package
1.2.3
Repository: https://github.com/tomochain/tomox-sdk.git
Documentation: pkg.go.dev

# Functions

DeployERC20 deploys a new Ethereum contract, binding an instance of ERC20 to it.
DeployExchange deploys a new Ethereum contract, binding an instance of Exchange to it.
DeployOwned deploys a new Ethereum contract, binding an instance of Owned to it.
DeploySafeMath deploys a new Ethereum contract, binding an instance of SafeMath to it.
DeployToken deploys a new Ethereum contract, binding an instance of Token to it.
NewERC20 creates a new instance of ERC20, bound to a specific deployed contract.
NewERC20Caller creates a new read-only instance of ERC20, bound to a specific deployed contract.
NewERC20Filterer creates a new log filterer instance of ERC20, bound to a specific deployed contract.
NewERC20Transactor creates a new write-only instance of ERC20, bound to a specific deployed contract.
NewExchange creates a new instance of Exchange, bound to a specific deployed contract.
NewExchangeCaller creates a new read-only instance of Exchange, bound to a specific deployed contract.
NewExchangeFilterer creates a new log filterer instance of Exchange, bound to a specific deployed contract.
NewExchangeTransactor creates a new write-only instance of Exchange, bound to a specific deployed contract.
NewOwned creates a new instance of Owned, bound to a specific deployed contract.
NewOwnedCaller creates a new read-only instance of Owned, bound to a specific deployed contract.
NewOwnedFilterer creates a new log filterer instance of Owned, bound to a specific deployed contract.
NewOwnedTransactor creates a new write-only instance of Owned, bound to a specific deployed contract.
NewSafeMath creates a new instance of SafeMath, bound to a specific deployed contract.
NewSafeMathCaller creates a new read-only instance of SafeMath, bound to a specific deployed contract.
NewSafeMathFilterer creates a new log filterer instance of SafeMath, bound to a specific deployed contract.
NewSafeMathTransactor creates a new write-only instance of SafeMath, bound to a specific deployed contract.
NewToken creates a new instance of Token, bound to a specific deployed contract.
NewTokenCaller creates a new read-only instance of Token, bound to a specific deployed contract.
NewTokenFilterer creates a new log filterer instance of Token, bound to a specific deployed contract.
NewTokenTransactor creates a new write-only instance of Token, bound to a specific deployed contract.

# Constants

ERC20ABI is the input ABI used to generate the binding from.
ERC20Bin is the compiled bytecode used for deploying new contracts.
ExchangeABI is the input ABI used to generate the binding from.
ExchangeBin is the compiled bytecode used for deploying new contracts.
OwnedABI is the input ABI used to generate the binding from.
OwnedBin is the compiled bytecode used for deploying new contracts.
SafeMathABI is the input ABI used to generate the binding from.
SafeMathBin is the compiled bytecode used for deploying new contracts.
TokenABI is the input ABI used to generate the binding from.
TokenBin is the compiled bytecode used for deploying new contracts.

# Structs

ERC20 is an auto generated Go binding around an Ethereum contract.
ERC20Approval represents a Approval event raised by the ERC20 contract.
ERC20ApprovalIterator is returned from FilterApproval and is used to iterate over the raw logs and unpacked data for Approval events raised by the ERC20 contract.
ERC20Caller is an auto generated read-only Go binding around an Ethereum contract.
ERC20CallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
ERC20CallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
ERC20Filterer is an auto generated log filtering Go binding around an Ethereum contract events.
ERC20Raw is an auto generated low-level Go binding around an Ethereum contract.
ERC20Session is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
ERC20Transactor is an auto generated write-only Go binding around an Ethereum contract.
ERC20TransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
ERC20TransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
ERC20Transfer represents a Transfer event raised by the ERC20 contract.
ERC20TransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the ERC20 contract.
Exchange is an auto generated Go binding around an Ethereum contract.
ExchangeCaller is an auto generated read-only Go binding around an Ethereum contract.
ExchangeCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
ExchangeCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
ExchangeFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
ExchangeLogBatchTrades represents a LogBatchTrades event raised by the Exchange contract.
ExchangeLogBatchTradesIterator is returned from FilterLogBatchTrades and is used to iterate over the raw logs and unpacked data for LogBatchTrades events raised by the Exchange contract.
ExchangeLogCancelOrder represents a LogCancelOrder event raised by the Exchange contract.
ExchangeLogCancelOrderIterator is returned from FilterLogCancelOrder and is used to iterate over the raw logs and unpacked data for LogCancelOrder events raised by the Exchange contract.
ExchangeLogError represents a LogError event raised by the Exchange contract.
ExchangeLogErrorIterator is returned from FilterLogError and is used to iterate over the raw logs and unpacked data for LogError events raised by the Exchange contract.
ExchangeLogOperatorUpdate represents a LogOperatorUpdate event raised by the Exchange contract.
ExchangeLogOperatorUpdateIterator is returned from FilterLogOperatorUpdate and is used to iterate over the raw logs and unpacked data for LogOperatorUpdate events raised by the Exchange contract.
ExchangeLogRewardAccountUpdate represents a LogRewardAccountUpdate event raised by the Exchange contract.
ExchangeLogRewardAccountUpdateIterator is returned from FilterLogRewardAccountUpdate and is used to iterate over the raw logs and unpacked data for LogRewardAccountUpdate events raised by the Exchange contract.
ExchangeLogTrade represents a LogTrade event raised by the Exchange contract.
ExchangeLogTradeIterator is returned from FilterLogTrade and is used to iterate over the raw logs and unpacked data for LogTrade events raised by the Exchange contract.
ExchangeLogWethTokenUpdate represents a LogWethTokenUpdate event raised by the Exchange contract.
ExchangeLogWethTokenUpdateIterator is returned from FilterLogWethTokenUpdate and is used to iterate over the raw logs and unpacked data for LogWethTokenUpdate events raised by the Exchange contract.
ExchangeRaw is an auto generated low-level Go binding around an Ethereum contract.
ExchangeSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
ExchangeSetOwner represents a SetOwner event raised by the Exchange contract.
ExchangeSetOwnerIterator is returned from FilterSetOwner and is used to iterate over the raw logs and unpacked data for SetOwner events raised by the Exchange contract.
ExchangeTransactor is an auto generated write-only Go binding around an Ethereum contract.
ExchangeTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
ExchangeTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
Owned is an auto generated Go binding around an Ethereum contract.
OwnedCaller is an auto generated read-only Go binding around an Ethereum contract.
OwnedCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
OwnedCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
OwnedFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
OwnedRaw is an auto generated low-level Go binding around an Ethereum contract.
OwnedSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
OwnedSetOwner represents a SetOwner event raised by the Owned contract.
OwnedSetOwnerIterator is returned from FilterSetOwner and is used to iterate over the raw logs and unpacked data for SetOwner events raised by the Owned contract.
OwnedTransactor is an auto generated write-only Go binding around an Ethereum contract.
OwnedTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
OwnedTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
SafeMath is an auto generated Go binding around an Ethereum contract.
SafeMathCaller is an auto generated read-only Go binding around an Ethereum contract.
SafeMathCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
SafeMathCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
SafeMathFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
SafeMathRaw is an auto generated low-level Go binding around an Ethereum contract.
SafeMathSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
SafeMathTransactor is an auto generated write-only Go binding around an Ethereum contract.
SafeMathTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
SafeMathTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
Token is an auto generated Go binding around an Ethereum contract.
TokenApproval represents a Approval event raised by the Token contract.
TokenApprovalIterator is returned from FilterApproval and is used to iterate over the raw logs and unpacked data for Approval events raised by the Token contract.
TokenCaller is an auto generated read-only Go binding around an Ethereum contract.
TokenCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
TokenCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
TokenFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
TokenMint represents a Mint event raised by the Token contract.
TokenMintFinished represents a MintFinished event raised by the Token contract.
TokenMintFinishedIterator is returned from FilterMintFinished and is used to iterate over the raw logs and unpacked data for MintFinished events raised by the Token contract.
TokenMintIterator is returned from FilterMint and is used to iterate over the raw logs and unpacked data for Mint events raised by the Token contract.
TokenRaw is an auto generated low-level Go binding around an Ethereum contract.
TokenSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
TokenSetOwner represents a SetOwner event raised by the Token contract.
TokenSetOwnerIterator is returned from FilterSetOwner and is used to iterate over the raw logs and unpacked data for SetOwner events raised by the Token contract.
TokenTransactor is an auto generated write-only Go binding around an Ethereum contract.
TokenTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
TokenTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
TokenTransfer represents a Transfer event raised by the Token contract.
TokenTransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the Token contract.