contract

package
v0.0.0-...-6b52b4a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SlitABI = SlitMetaData.ABI

SlitABI is the input ABI used to generate the binding from. Deprecated: Use SlitMetaData.ABI instead.

View Source
var SlitMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Approval\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"}],\"name\":\"allowance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"orderId\",\"type\":\"string\"}],\"name\":\"checkOrder\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"orderId\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"_orderPrice\",\"type\":\"uint256\"}],\"name\":\"clientOrder\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"decimals\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"fullnodeDepositAmount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"_type\",\"type\":\"uint8\"}],\"name\":\"isDeposit\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"privoderDepositAmount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"_type\",\"type\":\"uint8\"}],\"name\":\"stake\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"symbol\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"transfer\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"_type\",\"type\":\"uint8\"}],\"name\":\"withdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}

SlitMetaData contains all meta data concerning the Slit contract.

Functions

This section is empty.

Types

type Slit

type Slit struct {
	SlitCaller     // Read-only binding to the contract
	SlitTransactor // Write-only binding to the contract
	SlitFilterer   // Log filterer for contract events
}

Slit is an auto generated Go binding around an Ethereum contract.

func NewSlit

func NewSlit(address common.Address, backend bind.ContractBackend) (*Slit, error)

NewSlit creates a new instance of Slit, bound to a specific deployed contract.

type SlitApproval

type SlitApproval struct {
	Owner   common.Address
	Spender common.Address
	Value   *big.Int
	Raw     types.Log // Blockchain specific contextual infos
}

SlitApproval represents a Approval event raised by the Slit contract.

type SlitApprovalIterator

type SlitApprovalIterator struct {
	Event *SlitApproval // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

SlitApprovalIterator is returned from FilterApproval and is used to iterate over the raw logs and unpacked data for Approval events raised by the Slit contract.

func (*SlitApprovalIterator) Close

func (it *SlitApprovalIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*SlitApprovalIterator) Error

func (it *SlitApprovalIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*SlitApprovalIterator) Next

func (it *SlitApprovalIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type SlitCaller

type SlitCaller struct {
	// contains filtered or unexported fields
}

SlitCaller is an auto generated read-only Go binding around an Ethereum contract.

func NewSlitCaller

func NewSlitCaller(address common.Address, caller bind.ContractCaller) (*SlitCaller, error)

NewSlitCaller creates a new read-only instance of Slit, bound to a specific deployed contract.

func (*SlitCaller) Allowance

func (_Slit *SlitCaller) Allowance(opts *bind.CallOpts, owner common.Address, spender common.Address) (*big.Int, error)

Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.

Solidity: function allowance(address owner, address spender) view returns(uint256)

func (*SlitCaller) BalanceOf

func (_Slit *SlitCaller) BalanceOf(opts *bind.CallOpts, account common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

Solidity: function balanceOf(address account) view returns(uint256)

func (*SlitCaller) CheckOrder

func (_Slit *SlitCaller) CheckOrder(opts *bind.CallOpts, orderId string) (bool, error)

CheckOrder is a free data retrieval call binding the contract method 0xdd6887ed.

Solidity: function checkOrder(string orderId) view returns(bool)

func (*SlitCaller) Decimals

func (_Slit *SlitCaller) Decimals(opts *bind.CallOpts) (uint8, error)

Decimals is a free data retrieval call binding the contract method 0x313ce567.

Solidity: function decimals() view returns(uint8)

func (*SlitCaller) FullnodeDepositAmount

func (_Slit *SlitCaller) FullnodeDepositAmount(opts *bind.CallOpts) (*big.Int, error)

FullnodeDepositAmount is a free data retrieval call binding the contract method 0xd35b1ac2.

Solidity: function fullnodeDepositAmount() view returns(uint256)

func (*SlitCaller) IsDeposit

func (_Slit *SlitCaller) IsDeposit(opts *bind.CallOpts, _type uint8) (bool, error)

IsDeposit is a free data retrieval call binding the contract method 0xf276b8aa.

Solidity: function isDeposit(uint8 _type) view returns(bool)

func (*SlitCaller) Name

func (_Slit *SlitCaller) Name(opts *bind.CallOpts) (string, error)

Name is a free data retrieval call binding the contract method 0x06fdde03.

Solidity: function name() view returns(string)

func (*SlitCaller) PrivoderDepositAmount

func (_Slit *SlitCaller) PrivoderDepositAmount(opts *bind.CallOpts) (*big.Int, error)

PrivoderDepositAmount is a free data retrieval call binding the contract method 0xcd74c0a7.

Solidity: function privoderDepositAmount() view returns(uint256)

func (*SlitCaller) Symbol

func (_Slit *SlitCaller) Symbol(opts *bind.CallOpts) (string, error)

Symbol is a free data retrieval call binding the contract method 0x95d89b41.

Solidity: function symbol() view returns(string)

func (*SlitCaller) TotalSupply

func (_Slit *SlitCaller) TotalSupply(opts *bind.CallOpts) (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() view returns(uint256)

type SlitCallerRaw

type SlitCallerRaw struct {
	Contract *SlitCaller // Generic read-only contract binding to access the raw methods on
}

SlitCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.

func (*SlitCallerRaw) Call

func (_Slit *SlitCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

type SlitCallerSession

type SlitCallerSession struct {
	Contract *SlitCaller   // Generic contract caller binding to set the session for
	CallOpts bind.CallOpts // Call options to use throughout this session
}

SlitCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.

func (*SlitCallerSession) Allowance

func (_Slit *SlitCallerSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error)

Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.

Solidity: function allowance(address owner, address spender) view returns(uint256)

func (*SlitCallerSession) BalanceOf

func (_Slit *SlitCallerSession) BalanceOf(account common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

Solidity: function balanceOf(address account) view returns(uint256)

func (*SlitCallerSession) CheckOrder

func (_Slit *SlitCallerSession) CheckOrder(orderId string) (bool, error)

CheckOrder is a free data retrieval call binding the contract method 0xdd6887ed.

Solidity: function checkOrder(string orderId) view returns(bool)

func (*SlitCallerSession) Decimals

func (_Slit *SlitCallerSession) Decimals() (uint8, error)

Decimals is a free data retrieval call binding the contract method 0x313ce567.

Solidity: function decimals() view returns(uint8)

func (*SlitCallerSession) FullnodeDepositAmount

func (_Slit *SlitCallerSession) FullnodeDepositAmount() (*big.Int, error)

FullnodeDepositAmount is a free data retrieval call binding the contract method 0xd35b1ac2.

Solidity: function fullnodeDepositAmount() view returns(uint256)

func (*SlitCallerSession) IsDeposit

func (_Slit *SlitCallerSession) IsDeposit(_type uint8) (bool, error)

IsDeposit is a free data retrieval call binding the contract method 0xf276b8aa.

Solidity: function isDeposit(uint8 _type) view returns(bool)

func (*SlitCallerSession) Name

func (_Slit *SlitCallerSession) Name() (string, error)

Name is a free data retrieval call binding the contract method 0x06fdde03.

Solidity: function name() view returns(string)

func (*SlitCallerSession) PrivoderDepositAmount

func (_Slit *SlitCallerSession) PrivoderDepositAmount() (*big.Int, error)

PrivoderDepositAmount is a free data retrieval call binding the contract method 0xcd74c0a7.

Solidity: function privoderDepositAmount() view returns(uint256)

func (*SlitCallerSession) Symbol

func (_Slit *SlitCallerSession) Symbol() (string, error)

Symbol is a free data retrieval call binding the contract method 0x95d89b41.

Solidity: function symbol() view returns(string)

func (*SlitCallerSession) TotalSupply

func (_Slit *SlitCallerSession) TotalSupply() (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() view returns(uint256)

type SlitFilterer

type SlitFilterer struct {
	// contains filtered or unexported fields
}

SlitFilterer is an auto generated log filtering Go binding around an Ethereum contract events.

func NewSlitFilterer

func NewSlitFilterer(address common.Address, filterer bind.ContractFilterer) (*SlitFilterer, error)

NewSlitFilterer creates a new log filterer instance of Slit, bound to a specific deployed contract.

func (*SlitFilterer) FilterApproval

func (_Slit *SlitFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*SlitApprovalIterator, error)

FilterApproval is a free log retrieval operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.

Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)

func (*SlitFilterer) FilterTransfer

func (_Slit *SlitFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*SlitTransferIterator, error)

FilterTransfer is a free log retrieval operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.

Solidity: event Transfer(address indexed from, address indexed to, uint256 value)

func (*SlitFilterer) ParseApproval

func (_Slit *SlitFilterer) ParseApproval(log types.Log) (*SlitApproval, error)

ParseApproval is a log parse operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.

Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)

func (*SlitFilterer) ParseTransfer

func (_Slit *SlitFilterer) ParseTransfer(log types.Log) (*SlitTransfer, error)

ParseTransfer is a log parse operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.

Solidity: event Transfer(address indexed from, address indexed to, uint256 value)

func (*SlitFilterer) WatchApproval

func (_Slit *SlitFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *SlitApproval, owner []common.Address, spender []common.Address) (event.Subscription, error)

WatchApproval is a free log subscription operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.

Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)

func (*SlitFilterer) WatchTransfer

func (_Slit *SlitFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *SlitTransfer, from []common.Address, to []common.Address) (event.Subscription, error)

WatchTransfer is a free log subscription operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.

Solidity: event Transfer(address indexed from, address indexed to, uint256 value)

type SlitRaw

type SlitRaw struct {
	Contract *Slit // Generic contract binding to access the raw methods on
}

SlitRaw is an auto generated low-level Go binding around an Ethereum contract.

func (*SlitRaw) Call

func (_Slit *SlitRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

func (*SlitRaw) Transact

func (_Slit *SlitRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*SlitRaw) Transfer

func (_Slit *SlitRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type SlitSession

type SlitSession struct {
	Contract     *Slit             // Generic contract binding to set the session for
	CallOpts     bind.CallOpts     // Call options to use throughout this session
	TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}

SlitSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.

func (*SlitSession) Allowance

func (_Slit *SlitSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error)

Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.

Solidity: function allowance(address owner, address spender) view returns(uint256)

func (*SlitSession) Approve

func (_Slit *SlitSession) Approve(spender common.Address, value *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(address spender, uint256 value) returns(bool)

func (*SlitSession) BalanceOf

func (_Slit *SlitSession) BalanceOf(account common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

Solidity: function balanceOf(address account) view returns(uint256)

func (*SlitSession) CheckOrder

func (_Slit *SlitSession) CheckOrder(orderId string) (bool, error)

CheckOrder is a free data retrieval call binding the contract method 0xdd6887ed.

Solidity: function checkOrder(string orderId) view returns(bool)

func (*SlitSession) ClientOrder

func (_Slit *SlitSession) ClientOrder(orderId string, _orderPrice *big.Int) (*types.Transaction, error)

ClientOrder is a paid mutator transaction binding the contract method 0x1b005437.

Solidity: function clientOrder(string orderId, uint256 _orderPrice) returns()

func (*SlitSession) Decimals

func (_Slit *SlitSession) Decimals() (uint8, error)

Decimals is a free data retrieval call binding the contract method 0x313ce567.

Solidity: function decimals() view returns(uint8)

func (*SlitSession) FullnodeDepositAmount

func (_Slit *SlitSession) FullnodeDepositAmount() (*big.Int, error)

FullnodeDepositAmount is a free data retrieval call binding the contract method 0xd35b1ac2.

Solidity: function fullnodeDepositAmount() view returns(uint256)

func (*SlitSession) IsDeposit

func (_Slit *SlitSession) IsDeposit(_type uint8) (bool, error)

IsDeposit is a free data retrieval call binding the contract method 0xf276b8aa.

Solidity: function isDeposit(uint8 _type) view returns(bool)

func (*SlitSession) Name

func (_Slit *SlitSession) Name() (string, error)

Name is a free data retrieval call binding the contract method 0x06fdde03.

Solidity: function name() view returns(string)

func (*SlitSession) PrivoderDepositAmount

func (_Slit *SlitSession) PrivoderDepositAmount() (*big.Int, error)

PrivoderDepositAmount is a free data retrieval call binding the contract method 0xcd74c0a7.

Solidity: function privoderDepositAmount() view returns(uint256)

func (*SlitSession) Stake

func (_Slit *SlitSession) Stake(_type uint8) (*types.Transaction, error)

Stake is a paid mutator transaction binding the contract method 0x604f2177.

Solidity: function stake(uint8 _type) returns()

func (*SlitSession) Symbol

func (_Slit *SlitSession) Symbol() (string, error)

Symbol is a free data retrieval call binding the contract method 0x95d89b41.

Solidity: function symbol() view returns(string)

func (*SlitSession) TotalSupply

func (_Slit *SlitSession) TotalSupply() (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() view returns(uint256)

func (*SlitSession) Transfer

func (_Slit *SlitSession) Transfer(to common.Address, value *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.

Solidity: function transfer(address to, uint256 value) returns(bool)

func (*SlitSession) TransferFrom

func (_Slit *SlitSession) TransferFrom(from common.Address, to common.Address, value *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.

Solidity: function transferFrom(address from, address to, uint256 value) returns(bool)

func (*SlitSession) Withdraw

func (_Slit *SlitSession) Withdraw(_type uint8) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0xc6ab5d90.

Solidity: function withdraw(uint8 _type) returns()

type SlitTransactor

type SlitTransactor struct {
	// contains filtered or unexported fields
}

SlitTransactor is an auto generated write-only Go binding around an Ethereum contract.

func NewSlitTransactor

func NewSlitTransactor(address common.Address, transactor bind.ContractTransactor) (*SlitTransactor, error)

NewSlitTransactor creates a new write-only instance of Slit, bound to a specific deployed contract.

func (*SlitTransactor) Approve

func (_Slit *SlitTransactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(address spender, uint256 value) returns(bool)

func (*SlitTransactor) ClientOrder

func (_Slit *SlitTransactor) ClientOrder(opts *bind.TransactOpts, orderId string, _orderPrice *big.Int) (*types.Transaction, error)

ClientOrder is a paid mutator transaction binding the contract method 0x1b005437.

Solidity: function clientOrder(string orderId, uint256 _orderPrice) returns()

func (*SlitTransactor) Stake

func (_Slit *SlitTransactor) Stake(opts *bind.TransactOpts, _type uint8) (*types.Transaction, error)

Stake is a paid mutator transaction binding the contract method 0x604f2177.

Solidity: function stake(uint8 _type) returns()

func (*SlitTransactor) Transfer

func (_Slit *SlitTransactor) Transfer(opts *bind.TransactOpts, to common.Address, value *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.

Solidity: function transfer(address to, uint256 value) returns(bool)

func (*SlitTransactor) TransferFrom

func (_Slit *SlitTransactor) TransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, value *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.

Solidity: function transferFrom(address from, address to, uint256 value) returns(bool)

func (*SlitTransactor) Withdraw

func (_Slit *SlitTransactor) Withdraw(opts *bind.TransactOpts, _type uint8) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0xc6ab5d90.

Solidity: function withdraw(uint8 _type) returns()

type SlitTransactorRaw

type SlitTransactorRaw struct {
	Contract *SlitTransactor // Generic write-only contract binding to access the raw methods on
}

SlitTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.

func (*SlitTransactorRaw) Transact

func (_Slit *SlitTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*SlitTransactorRaw) Transfer

func (_Slit *SlitTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type SlitTransactorSession

type SlitTransactorSession struct {
	Contract     *SlitTransactor   // Generic contract transactor binding to set the session for
	TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}

SlitTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.

func (*SlitTransactorSession) Approve

func (_Slit *SlitTransactorSession) Approve(spender common.Address, value *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(address spender, uint256 value) returns(bool)

func (*SlitTransactorSession) ClientOrder

func (_Slit *SlitTransactorSession) ClientOrder(orderId string, _orderPrice *big.Int) (*types.Transaction, error)

ClientOrder is a paid mutator transaction binding the contract method 0x1b005437.

Solidity: function clientOrder(string orderId, uint256 _orderPrice) returns()

func (*SlitTransactorSession) Stake

func (_Slit *SlitTransactorSession) Stake(_type uint8) (*types.Transaction, error)

Stake is a paid mutator transaction binding the contract method 0x604f2177.

Solidity: function stake(uint8 _type) returns()

func (*SlitTransactorSession) Transfer

func (_Slit *SlitTransactorSession) Transfer(to common.Address, value *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.

Solidity: function transfer(address to, uint256 value) returns(bool)

func (*SlitTransactorSession) TransferFrom

func (_Slit *SlitTransactorSession) TransferFrom(from common.Address, to common.Address, value *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.

Solidity: function transferFrom(address from, address to, uint256 value) returns(bool)

func (*SlitTransactorSession) Withdraw

func (_Slit *SlitTransactorSession) Withdraw(_type uint8) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0xc6ab5d90.

Solidity: function withdraw(uint8 _type) returns()

type SlitTransfer

type SlitTransfer struct {
	From  common.Address
	To    common.Address
	Value *big.Int
	Raw   types.Log // Blockchain specific contextual infos
}

SlitTransfer represents a Transfer event raised by the Slit contract.

type SlitTransferIterator

type SlitTransferIterator struct {
	Event *SlitTransfer // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

SlitTransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the Slit contract.

func (*SlitTransferIterator) Close

func (it *SlitTransferIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*SlitTransferIterator) Error

func (it *SlitTransferIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*SlitTransferIterator) Next

func (it *SlitTransferIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL