Documentation ¶
Index ¶
- Constants
- Variables
- type SRC20Handler
- type SRC20HandlerCaller
- func (_SRC20Handler *SRC20HandlerCaller) BridgeAddress(opts *bind.CallOpts) (common.ContractAddress, error)
- func (_SRC20Handler *SRC20HandlerCaller) Bytes32ToString(opts *bind.CallOpts, x [32]byte) (string, error)
- func (_SRC20Handler *SRC20HandlerCaller) CurrencyToResourceID(opts *bind.CallOpts, arg0 string) ([32]byte, error)
- func (_SRC20Handler *SRC20HandlerCaller) DepositRecords(opts *bind.CallOpts, arg0 uint8, arg1 uint64) (struct{ ... }, error)
- func (_SRC20Handler *SRC20HandlerCaller) GetDepositRecord(opts *bind.CallOpts, depositNonce uint64, destId uint8) (SRC20HandlerDepositRecord, error)
- func (_SRC20Handler *SRC20HandlerCaller) ResourceIDToCurrency(opts *bind.CallOpts, arg0 [32]byte) (string, error)
- func (_SRC20Handler *SRC20HandlerCaller) ResourceIDToTokenContractAddress(opts *bind.CallOpts, arg0 [32]byte) (common.ContractAddress, error)
- type SRC20HandlerCallerRaw
- type SRC20HandlerCallerSession
- func (_SRC20Handler *SRC20HandlerCallerSession) BridgeAddress() (common.ContractAddress, error)
- func (_SRC20Handler *SRC20HandlerCallerSession) Bytes32ToString(x [32]byte) (string, error)
- func (_SRC20Handler *SRC20HandlerCallerSession) CurrencyToResourceID(arg0 string) ([32]byte, error)
- func (_SRC20Handler *SRC20HandlerCallerSession) DepositRecords(arg0 uint8, arg1 uint64) (struct{ ... }, error)
- func (_SRC20Handler *SRC20HandlerCallerSession) GetDepositRecord(depositNonce uint64, destId uint8) (SRC20HandlerDepositRecord, error)
- func (_SRC20Handler *SRC20HandlerCallerSession) ResourceIDToCurrency(arg0 [32]byte) (string, error)
- func (_SRC20Handler *SRC20HandlerCallerSession) ResourceIDToTokenContractAddress(arg0 [32]byte) (common.ContractAddress, error)
- type SRC20HandlerDepositRecord
- type SRC20HandlerFilterer
- type SRC20HandlerRaw
- func (_SRC20Handler *SRC20HandlerRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error
- func (_SRC20Handler *SRC20HandlerRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_SRC20Handler *SRC20HandlerRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type SRC20HandlerSession
- func (_SRC20Handler *SRC20HandlerSession) BridgeAddress() (common.ContractAddress, error)
- func (_SRC20Handler *SRC20HandlerSession) Bytes32ToString(x [32]byte) (string, error)
- func (_SRC20Handler *SRC20HandlerSession) CurrencyToResourceID(arg0 string) ([32]byte, error)
- func (_SRC20Handler *SRC20HandlerSession) Deposit(resourceID [32]byte, destinationChainID uint8, depositNonce uint64, ...) (*types.Transaction, error)
- func (_SRC20Handler *SRC20HandlerSession) DepositRecords(arg0 uint8, arg1 uint64) (struct{ ... }, error)
- func (_SRC20Handler *SRC20HandlerSession) ExecuteProposal(resourceID [32]byte, _recipient common.Address, amount *big.Int) (*types.Transaction, error)
- func (_SRC20Handler *SRC20HandlerSession) GetDepositRecord(depositNonce uint64, destId uint8) (SRC20HandlerDepositRecord, error)
- func (_SRC20Handler *SRC20HandlerSession) ResourceIDToCurrency(arg0 [32]byte) (string, error)
- func (_SRC20Handler *SRC20HandlerSession) ResourceIDToTokenContractAddress(arg0 [32]byte) (common.ContractAddress, error)
- func (_SRC20Handler *SRC20HandlerSession) SetReourceTokenAddress(resourceID [32]byte, contractAddress common.Address) (*types.Transaction, error)
- func (_SRC20Handler *SRC20HandlerSession) SetResourceCurrency(resourceID [32]byte, currency string) (*types.Transaction, error)
- func (_SRC20Handler *SRC20HandlerSession) Withdraw(currency string, recipient common.Address, amount *big.Int) (*types.Transaction, error)
- type SRC20HandlerTransactor
- func (_SRC20Handler *SRC20HandlerTransactor) Deposit(opts *bind.TransactOpts, resourceID [32]byte, destinationChainID uint8, ...) (*types.Transaction, error)
- func (_SRC20Handler *SRC20HandlerTransactor) ExecuteProposal(opts *bind.TransactOpts, resourceID [32]byte, _recipient common.Address, ...) (*types.Transaction, error)
- func (_SRC20Handler *SRC20HandlerTransactor) SetReourceTokenAddress(opts *bind.TransactOpts, resourceID [32]byte, contractAddress common.Address) (*types.Transaction, error)
- func (_SRC20Handler *SRC20HandlerTransactor) SetResourceCurrency(opts *bind.TransactOpts, resourceID [32]byte, currency string) (*types.Transaction, error)
- func (_SRC20Handler *SRC20HandlerTransactor) Withdraw(opts *bind.TransactOpts, currency string, recipient common.Address, ...) (*types.Transaction, error)
- type SRC20HandlerTransactorRaw
- type SRC20HandlerTransactorSession
- func (_SRC20Handler *SRC20HandlerTransactorSession) Deposit(resourceID [32]byte, destinationChainID uint8, depositNonce uint64, ...) (*types.Transaction, error)
- func (_SRC20Handler *SRC20HandlerTransactorSession) ExecuteProposal(resourceID [32]byte, _recipient common.Address, amount *big.Int) (*types.Transaction, error)
- func (_SRC20Handler *SRC20HandlerTransactorSession) SetReourceTokenAddress(resourceID [32]byte, contractAddress common.Address) (*types.Transaction, error)
- func (_SRC20Handler *SRC20HandlerTransactorSession) SetResourceCurrency(resourceID [32]byte, currency string) (*types.Transaction, error)
- func (_SRC20Handler *SRC20HandlerTransactorSession) Withdraw(currency string, recipient common.Address, amount *big.Int) (*types.Transaction, error)
Constants ¶
const SRC20HandlerABI = "" /* 4878-byte string literal not displayed */
SRC20HandlerABI is the input ABI used to generate the binding from.
Variables ¶
var SRC20HandlerBin = "" /* 17582-byte string literal not displayed */
SRC20HandlerBin is the compiled bytecode used for deploying new contracts.
Functions ¶
This section is empty.
Types ¶
type SRC20Handler ¶
type SRC20Handler struct { SRC20HandlerCaller // Read-only binding to the contract SRC20HandlerTransactor // Write-only binding to the contract SRC20HandlerFilterer // Log filterer for contract events }
SRC20Handler is an auto generated Go binding around an Ethereum contract.
func DeploySRC20Handler ¶
func DeploySRC20Handler(auth *bind.TransactOpts, backend bind.ContractBackend, bridgeAddress common.Address) (common.Address, *types.Transaction, *SRC20Handler, error)
DeploySRC20Handler deploys a new Ethereum contract, binding an instance of SRC20Handler to it.
func NewSRC20Handler ¶
func NewSRC20Handler(address common.Address, backend bind.ContractBackend) (*SRC20Handler, error)
NewSRC20Handler creates a new instance of SRC20Handler, bound to a specific deployed contract.
type SRC20HandlerCaller ¶
type SRC20HandlerCaller struct {
// contains filtered or unexported fields
}
SRC20HandlerCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewSRC20HandlerCaller ¶
func NewSRC20HandlerCaller(address common.Address, caller bind.ContractCaller) (*SRC20HandlerCaller, error)
NewSRC20HandlerCaller creates a new read-only instance of SRC20Handler, bound to a specific deployed contract.
func (*SRC20HandlerCaller) BridgeAddress ¶
func (_SRC20Handler *SRC20HandlerCaller) BridgeAddress(opts *bind.CallOpts) (common.ContractAddress, error)
BridgeAddress is a free data retrieval call binding the contract method 0x318c136e.
Solidity: function _bridgeAddress() view returns(address)
func (*SRC20HandlerCaller) Bytes32ToString ¶
func (_SRC20Handler *SRC20HandlerCaller) Bytes32ToString(opts *bind.CallOpts, x [32]byte) (string, error)
Bytes32ToString is a free data retrieval call binding the contract method 0x9201de55.
Solidity: function bytes32ToString(bytes32 x) pure returns(string)
func (*SRC20HandlerCaller) CurrencyToResourceID ¶
func (_SRC20Handler *SRC20HandlerCaller) CurrencyToResourceID(opts *bind.CallOpts, arg0 string) ([32]byte, error)
CurrencyToResourceID is a free data retrieval call binding the contract method 0x80b90744.
Solidity: function _currencyToResourceID(string ) view returns(bytes32)
func (*SRC20HandlerCaller) DepositRecords ¶
func (_SRC20Handler *SRC20HandlerCaller) DepositRecords(opts *bind.CallOpts, arg0 uint8, arg1 uint64) (struct { TokenAddress common.ContractAddress LenDestinationRecipientAddress uint8 DestinationChainID uint8 ResourceID [32]byte DestinationRecipientAddress []byte Depositer common.ContractAddress Amount *big.Int }, error)
DepositRecords is a free data retrieval call binding the contract method 0x4402027f.
Solidity: function _depositRecords(uint8 , uint64 ) view returns(address _tokenAddress, uint8 _lenDestinationRecipientAddress, uint8 _destinationChainID, bytes32 _resourceID, bytes _destinationRecipientAddress, address _depositer, uint256 _amount)
func (*SRC20HandlerCaller) GetDepositRecord ¶
func (_SRC20Handler *SRC20HandlerCaller) GetDepositRecord(opts *bind.CallOpts, depositNonce uint64, destId uint8) (SRC20HandlerDepositRecord, error)
GetDepositRecord is a free data retrieval call binding the contract method 0xba484c09.
Solidity: function getDepositRecord(uint64 depositNonce, uint8 destId) view returns((address,uint8,uint8,bytes32,bytes,address,uint256))
func (*SRC20HandlerCaller) ResourceIDToCurrency ¶
func (_SRC20Handler *SRC20HandlerCaller) ResourceIDToCurrency(opts *bind.CallOpts, arg0 [32]byte) (string, error)
ResourceIDToCurrency is a free data retrieval call binding the contract method 0xc6a3f31f.
Solidity: function _resourceIDToCurrency(bytes32 ) view returns(string)
func (*SRC20HandlerCaller) ResourceIDToTokenContractAddress ¶
func (_SRC20Handler *SRC20HandlerCaller) ResourceIDToTokenContractAddress(opts *bind.CallOpts, arg0 [32]byte) (common.ContractAddress, error)
ResourceIDToTokenContractAddress is a free data retrieval call binding the contract method 0x0a6d55d8.
Solidity: function _resourceIDToTokenContractAddress(bytes32 ) view returns(address)
type SRC20HandlerCallerRaw ¶
type SRC20HandlerCallerRaw struct {
Contract *SRC20HandlerCaller // Generic read-only contract binding to access the raw methods on
}
SRC20HandlerCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*SRC20HandlerCallerRaw) Call ¶
func (_SRC20Handler *SRC20HandlerCallerRaw) 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 SRC20HandlerCallerSession ¶
type SRC20HandlerCallerSession struct { Contract *SRC20HandlerCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
SRC20HandlerCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*SRC20HandlerCallerSession) BridgeAddress ¶
func (_SRC20Handler *SRC20HandlerCallerSession) BridgeAddress() (common.ContractAddress, error)
BridgeAddress is a free data retrieval call binding the contract method 0x318c136e.
Solidity: function _bridgeAddress() view returns(address)
func (*SRC20HandlerCallerSession) Bytes32ToString ¶
func (_SRC20Handler *SRC20HandlerCallerSession) Bytes32ToString(x [32]byte) (string, error)
Bytes32ToString is a free data retrieval call binding the contract method 0x9201de55.
Solidity: function bytes32ToString(bytes32 x) pure returns(string)
func (*SRC20HandlerCallerSession) CurrencyToResourceID ¶
func (_SRC20Handler *SRC20HandlerCallerSession) CurrencyToResourceID(arg0 string) ([32]byte, error)
CurrencyToResourceID is a free data retrieval call binding the contract method 0x80b90744.
Solidity: function _currencyToResourceID(string ) view returns(bytes32)
func (*SRC20HandlerCallerSession) DepositRecords ¶
func (_SRC20Handler *SRC20HandlerCallerSession) DepositRecords(arg0 uint8, arg1 uint64) (struct { TokenAddress common.ContractAddress LenDestinationRecipientAddress uint8 DestinationChainID uint8 ResourceID [32]byte DestinationRecipientAddress []byte Depositer common.ContractAddress Amount *big.Int }, error)
DepositRecords is a free data retrieval call binding the contract method 0x4402027f.
Solidity: function _depositRecords(uint8 , uint64 ) view returns(address _tokenAddress, uint8 _lenDestinationRecipientAddress, uint8 _destinationChainID, bytes32 _resourceID, bytes _destinationRecipientAddress, address _depositer, uint256 _amount)
func (*SRC20HandlerCallerSession) GetDepositRecord ¶
func (_SRC20Handler *SRC20HandlerCallerSession) GetDepositRecord(depositNonce uint64, destId uint8) (SRC20HandlerDepositRecord, error)
GetDepositRecord is a free data retrieval call binding the contract method 0xba484c09.
Solidity: function getDepositRecord(uint64 depositNonce, uint8 destId) view returns((address,uint8,uint8,bytes32,bytes,address,uint256))
func (*SRC20HandlerCallerSession) ResourceIDToCurrency ¶
func (_SRC20Handler *SRC20HandlerCallerSession) ResourceIDToCurrency(arg0 [32]byte) (string, error)
ResourceIDToCurrency is a free data retrieval call binding the contract method 0xc6a3f31f.
Solidity: function _resourceIDToCurrency(bytes32 ) view returns(string)
func (*SRC20HandlerCallerSession) ResourceIDToTokenContractAddress ¶
func (_SRC20Handler *SRC20HandlerCallerSession) ResourceIDToTokenContractAddress(arg0 [32]byte) (common.ContractAddress, error)
ResourceIDToTokenContractAddress is a free data retrieval call binding the contract method 0x0a6d55d8.
Solidity: function _resourceIDToTokenContractAddress(bytes32 ) view returns(address)
type SRC20HandlerDepositRecord ¶
type SRC20HandlerDepositRecord struct { TokenAddress common.ContractAddress LenDestinationRecipientAddress uint8 DestinationChainID uint8 ResourceID [32]byte DestinationRecipientAddress []byte Depositer common.ContractAddress Amount *big.Int }
SRC20HandlerDepositRecord is an auto generated low-level Go binding around an user-defined struct.
type SRC20HandlerFilterer ¶
type SRC20HandlerFilterer struct {
// contains filtered or unexported fields
}
SRC20HandlerFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewSRC20HandlerFilterer ¶
func NewSRC20HandlerFilterer(address common.Address, filterer bind.ContractFilterer) (*SRC20HandlerFilterer, error)
NewSRC20HandlerFilterer creates a new log filterer instance of SRC20Handler, bound to a specific deployed contract.
type SRC20HandlerRaw ¶
type SRC20HandlerRaw struct {
Contract *SRC20Handler // Generic contract binding to access the raw methods on
}
SRC20HandlerRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*SRC20HandlerRaw) Call ¶
func (_SRC20Handler *SRC20HandlerRaw) 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 (*SRC20HandlerRaw) Transact ¶
func (_SRC20Handler *SRC20HandlerRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*SRC20HandlerRaw) Transfer ¶
func (_SRC20Handler *SRC20HandlerRaw) 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 SRC20HandlerSession ¶
type SRC20HandlerSession struct { Contract *SRC20Handler // 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 }
SRC20HandlerSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*SRC20HandlerSession) BridgeAddress ¶
func (_SRC20Handler *SRC20HandlerSession) BridgeAddress() (common.ContractAddress, error)
BridgeAddress is a free data retrieval call binding the contract method 0x318c136e.
Solidity: function _bridgeAddress() view returns(address)
func (*SRC20HandlerSession) Bytes32ToString ¶
func (_SRC20Handler *SRC20HandlerSession) Bytes32ToString(x [32]byte) (string, error)
Bytes32ToString is a free data retrieval call binding the contract method 0x9201de55.
Solidity: function bytes32ToString(bytes32 x) pure returns(string)
func (*SRC20HandlerSession) CurrencyToResourceID ¶
func (_SRC20Handler *SRC20HandlerSession) CurrencyToResourceID(arg0 string) ([32]byte, error)
CurrencyToResourceID is a free data retrieval call binding the contract method 0x80b90744.
Solidity: function _currencyToResourceID(string ) view returns(bytes32)
func (*SRC20HandlerSession) Deposit ¶
func (_SRC20Handler *SRC20HandlerSession) Deposit(resourceID [32]byte, destinationChainID uint8, depositNonce uint64, depositer common.Address, recipient []byte, amount *big.Int) (*types.Transaction, error)
Deposit is a paid mutator transaction binding the contract method 0xba40f284.
Solidity: function deposit(bytes32 resourceID, uint8 destinationChainID, uint64 depositNonce, address depositer, bytes recipient, uint256 amount) payable returns()
func (*SRC20HandlerSession) DepositRecords ¶
func (_SRC20Handler *SRC20HandlerSession) DepositRecords(arg0 uint8, arg1 uint64) (struct { TokenAddress common.ContractAddress LenDestinationRecipientAddress uint8 DestinationChainID uint8 ResourceID [32]byte DestinationRecipientAddress []byte Depositer common.ContractAddress Amount *big.Int }, error)
DepositRecords is a free data retrieval call binding the contract method 0x4402027f.
Solidity: function _depositRecords(uint8 , uint64 ) view returns(address _tokenAddress, uint8 _lenDestinationRecipientAddress, uint8 _destinationChainID, bytes32 _resourceID, bytes _destinationRecipientAddress, address _depositer, uint256 _amount)
func (*SRC20HandlerSession) ExecuteProposal ¶
func (_SRC20Handler *SRC20HandlerSession) ExecuteProposal(resourceID [32]byte, _recipient common.Address, amount *big.Int) (*types.Transaction, error)
ExecuteProposal is a paid mutator transaction binding the contract method 0x0396ec10.
Solidity: function executeProposal(bytes32 resourceID, address _recipient, uint256 amount) returns()
func (*SRC20HandlerSession) GetDepositRecord ¶
func (_SRC20Handler *SRC20HandlerSession) GetDepositRecord(depositNonce uint64, destId uint8) (SRC20HandlerDepositRecord, error)
GetDepositRecord is a free data retrieval call binding the contract method 0xba484c09.
Solidity: function getDepositRecord(uint64 depositNonce, uint8 destId) view returns((address,uint8,uint8,bytes32,bytes,address,uint256))
func (*SRC20HandlerSession) ResourceIDToCurrency ¶
func (_SRC20Handler *SRC20HandlerSession) ResourceIDToCurrency(arg0 [32]byte) (string, error)
ResourceIDToCurrency is a free data retrieval call binding the contract method 0xc6a3f31f.
Solidity: function _resourceIDToCurrency(bytes32 ) view returns(string)
func (*SRC20HandlerSession) ResourceIDToTokenContractAddress ¶
func (_SRC20Handler *SRC20HandlerSession) ResourceIDToTokenContractAddress(arg0 [32]byte) (common.ContractAddress, error)
ResourceIDToTokenContractAddress is a free data retrieval call binding the contract method 0x0a6d55d8.
Solidity: function _resourceIDToTokenContractAddress(bytes32 ) view returns(address)
func (*SRC20HandlerSession) SetReourceTokenAddress ¶
func (_SRC20Handler *SRC20HandlerSession) SetReourceTokenAddress(resourceID [32]byte, contractAddress common.Address) (*types.Transaction, error)
SetReourceTokenAddress is a paid mutator transaction binding the contract method 0x9707bece.
Solidity: function setReourceTokenAddress(bytes32 resourceID, address contractAddress) returns()
func (*SRC20HandlerSession) SetResourceCurrency ¶
func (_SRC20Handler *SRC20HandlerSession) SetResourceCurrency(resourceID [32]byte, currency string) (*types.Transaction, error)
SetResourceCurrency is a paid mutator transaction binding the contract method 0xdfce8258.
Solidity: function setResourceCurrency(bytes32 resourceID, string currency) returns()
func (*SRC20HandlerSession) Withdraw ¶
func (_SRC20Handler *SRC20HandlerSession) Withdraw(currency string, recipient common.Address, amount *big.Int) (*types.Transaction, error)
Withdraw is a paid mutator transaction binding the contract method 0x5a73b0bf.
Solidity: function withdraw(string currency, address recipient, uint256 amount) returns()
type SRC20HandlerTransactor ¶
type SRC20HandlerTransactor struct {
// contains filtered or unexported fields
}
SRC20HandlerTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewSRC20HandlerTransactor ¶
func NewSRC20HandlerTransactor(address common.Address, transactor bind.ContractTransactor) (*SRC20HandlerTransactor, error)
NewSRC20HandlerTransactor creates a new write-only instance of SRC20Handler, bound to a specific deployed contract.
func (*SRC20HandlerTransactor) Deposit ¶
func (_SRC20Handler *SRC20HandlerTransactor) Deposit(opts *bind.TransactOpts, resourceID [32]byte, destinationChainID uint8, depositNonce uint64, depositer common.Address, recipient []byte, amount *big.Int) (*types.Transaction, error)
Deposit is a paid mutator transaction binding the contract method 0xba40f284.
Solidity: function deposit(bytes32 resourceID, uint8 destinationChainID, uint64 depositNonce, address depositer, bytes recipient, uint256 amount) payable returns()
func (*SRC20HandlerTransactor) ExecuteProposal ¶
func (_SRC20Handler *SRC20HandlerTransactor) ExecuteProposal(opts *bind.TransactOpts, resourceID [32]byte, _recipient common.Address, amount *big.Int) (*types.Transaction, error)
ExecuteProposal is a paid mutator transaction binding the contract method 0x0396ec10.
Solidity: function executeProposal(bytes32 resourceID, address _recipient, uint256 amount) returns()
func (*SRC20HandlerTransactor) SetReourceTokenAddress ¶
func (_SRC20Handler *SRC20HandlerTransactor) SetReourceTokenAddress(opts *bind.TransactOpts, resourceID [32]byte, contractAddress common.Address) (*types.Transaction, error)
SetReourceTokenAddress is a paid mutator transaction binding the contract method 0x9707bece.
Solidity: function setReourceTokenAddress(bytes32 resourceID, address contractAddress) returns()
func (*SRC20HandlerTransactor) SetResourceCurrency ¶
func (_SRC20Handler *SRC20HandlerTransactor) SetResourceCurrency(opts *bind.TransactOpts, resourceID [32]byte, currency string) (*types.Transaction, error)
SetResourceCurrency is a paid mutator transaction binding the contract method 0xdfce8258.
Solidity: function setResourceCurrency(bytes32 resourceID, string currency) returns()
func (*SRC20HandlerTransactor) Withdraw ¶
func (_SRC20Handler *SRC20HandlerTransactor) Withdraw(opts *bind.TransactOpts, currency string, recipient common.Address, amount *big.Int) (*types.Transaction, error)
Withdraw is a paid mutator transaction binding the contract method 0x5a73b0bf.
Solidity: function withdraw(string currency, address recipient, uint256 amount) returns()
type SRC20HandlerTransactorRaw ¶
type SRC20HandlerTransactorRaw struct {
Contract *SRC20HandlerTransactor // Generic write-only contract binding to access the raw methods on
}
SRC20HandlerTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*SRC20HandlerTransactorRaw) Transact ¶
func (_SRC20Handler *SRC20HandlerTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*SRC20HandlerTransactorRaw) Transfer ¶
func (_SRC20Handler *SRC20HandlerTransactorRaw) 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 SRC20HandlerTransactorSession ¶
type SRC20HandlerTransactorSession struct { Contract *SRC20HandlerTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
SRC20HandlerTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*SRC20HandlerTransactorSession) Deposit ¶
func (_SRC20Handler *SRC20HandlerTransactorSession) Deposit(resourceID [32]byte, destinationChainID uint8, depositNonce uint64, depositer common.Address, recipient []byte, amount *big.Int) (*types.Transaction, error)
Deposit is a paid mutator transaction binding the contract method 0xba40f284.
Solidity: function deposit(bytes32 resourceID, uint8 destinationChainID, uint64 depositNonce, address depositer, bytes recipient, uint256 amount) payable returns()
func (*SRC20HandlerTransactorSession) ExecuteProposal ¶
func (_SRC20Handler *SRC20HandlerTransactorSession) ExecuteProposal(resourceID [32]byte, _recipient common.Address, amount *big.Int) (*types.Transaction, error)
ExecuteProposal is a paid mutator transaction binding the contract method 0x0396ec10.
Solidity: function executeProposal(bytes32 resourceID, address _recipient, uint256 amount) returns()
func (*SRC20HandlerTransactorSession) SetReourceTokenAddress ¶
func (_SRC20Handler *SRC20HandlerTransactorSession) SetReourceTokenAddress(resourceID [32]byte, contractAddress common.Address) (*types.Transaction, error)
SetReourceTokenAddress is a paid mutator transaction binding the contract method 0x9707bece.
Solidity: function setReourceTokenAddress(bytes32 resourceID, address contractAddress) returns()
func (*SRC20HandlerTransactorSession) SetResourceCurrency ¶
func (_SRC20Handler *SRC20HandlerTransactorSession) SetResourceCurrency(resourceID [32]byte, currency string) (*types.Transaction, error)
SetResourceCurrency is a paid mutator transaction binding the contract method 0xdfce8258.
Solidity: function setResourceCurrency(bytes32 resourceID, string currency) returns()
func (*SRC20HandlerTransactorSession) Withdraw ¶
func (_SRC20Handler *SRC20HandlerTransactorSession) Withdraw(currency string, recipient common.Address, amount *big.Int) (*types.Transaction, error)
Withdraw is a paid mutator transaction binding the contract method 0x5a73b0bf.
Solidity: function withdraw(string currency, address recipient, uint256 amount) returns()