Documentation ¶
Index ¶
- Constants
- Variables
- type Escrows
- type EscrowsCaller
- func (_Escrows *EscrowsCaller) AppchainIndex(opts *bind.CallOpts) (*big.Int, error)
- func (_Escrows *EscrowsCaller) DEFAULTADMINROLE(opts *bind.CallOpts) ([32]byte, error)
- func (_Escrows *EscrowsCaller) GetRoleAdmin(opts *bind.CallOpts, role [32]byte) ([32]byte, error)
- func (_Escrows *EscrowsCaller) GetRoleMember(opts *bind.CallOpts, role [32]byte, index *big.Int) (common.Address, error)
- func (_Escrows *EscrowsCaller) GetRoleMemberCount(opts *bind.CallOpts, role [32]byte) (*big.Int, error)
- func (_Escrows *EscrowsCaller) HasRole(opts *bind.CallOpts, role [32]byte, account common.Address) (bool, error)
- func (_Escrows *EscrowsCaller) Index2Height(opts *bind.CallOpts, arg0 *big.Int) (*big.Int, error)
- func (_Escrows *EscrowsCaller) LockAmount(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
- func (_Escrows *EscrowsCaller) PIERROLE(opts *bind.CallOpts) ([32]byte, error)
- func (_Escrows *EscrowsCaller) RELAYERROLE(opts *bind.CallOpts) ([32]byte, error)
- func (_Escrows *EscrowsCaller) RelayIndex(opts *bind.CallOpts) (*big.Int, error)
- func (_Escrows *EscrowsCaller) SupportToken(opts *bind.CallOpts, arg0 common.Address) (common.Address, error)
- func (_Escrows *EscrowsCaller) TxUnlocked(opts *bind.CallOpts, arg0 string) (bool, error)
- type EscrowsCallerRaw
- type EscrowsCallerSession
- func (_Escrows *EscrowsCallerSession) AppchainIndex() (*big.Int, error)
- func (_Escrows *EscrowsCallerSession) DEFAULTADMINROLE() ([32]byte, error)
- func (_Escrows *EscrowsCallerSession) GetRoleAdmin(role [32]byte) ([32]byte, error)
- func (_Escrows *EscrowsCallerSession) GetRoleMember(role [32]byte, index *big.Int) (common.Address, error)
- func (_Escrows *EscrowsCallerSession) GetRoleMemberCount(role [32]byte) (*big.Int, error)
- func (_Escrows *EscrowsCallerSession) HasRole(role [32]byte, account common.Address) (bool, error)
- func (_Escrows *EscrowsCallerSession) Index2Height(arg0 *big.Int) (*big.Int, error)
- func (_Escrows *EscrowsCallerSession) LockAmount(arg0 common.Address) (*big.Int, error)
- func (_Escrows *EscrowsCallerSession) PIERROLE() ([32]byte, error)
- func (_Escrows *EscrowsCallerSession) RELAYERROLE() ([32]byte, error)
- func (_Escrows *EscrowsCallerSession) RelayIndex() (*big.Int, error)
- func (_Escrows *EscrowsCallerSession) SupportToken(arg0 common.Address) (common.Address, error)
- func (_Escrows *EscrowsCallerSession) TxUnlocked(arg0 string) (bool, error)
- type EscrowsFilterer
- func (_Escrows *EscrowsFilterer) FilterLock(opts *bind.FilterOpts) (*EscrowsLockIterator, error)
- func (_Escrows *EscrowsFilterer) FilterQuickSwap(opts *bind.FilterOpts) (*EscrowsQuickSwapIterator, error)
- func (_Escrows *EscrowsFilterer) FilterRoleAdminChanged(opts *bind.FilterOpts, role [][32]byte, previousAdminRole [][32]byte, ...) (*EscrowsRoleAdminChangedIterator, error)
- func (_Escrows *EscrowsFilterer) FilterRoleGranted(opts *bind.FilterOpts, role [][32]byte, account []common.Address, ...) (*EscrowsRoleGrantedIterator, error)
- func (_Escrows *EscrowsFilterer) FilterRoleRevoked(opts *bind.FilterOpts, role [][32]byte, account []common.Address, ...) (*EscrowsRoleRevokedIterator, error)
- func (_Escrows *EscrowsFilterer) FilterUnlock(opts *bind.FilterOpts) (*EscrowsUnlockIterator, error)
- func (_Escrows *EscrowsFilterer) ParseLock(log types.Log) (*EscrowsLock, error)
- func (_Escrows *EscrowsFilterer) ParseQuickSwap(log types.Log) (*EscrowsQuickSwap, error)
- func (_Escrows *EscrowsFilterer) ParseRoleAdminChanged(log types.Log) (*EscrowsRoleAdminChanged, error)
- func (_Escrows *EscrowsFilterer) ParseRoleGranted(log types.Log) (*EscrowsRoleGranted, error)
- func (_Escrows *EscrowsFilterer) ParseRoleRevoked(log types.Log) (*EscrowsRoleRevoked, error)
- func (_Escrows *EscrowsFilterer) ParseUnlock(log types.Log) (*EscrowsUnlock, error)
- func (_Escrows *EscrowsFilterer) WatchLock(opts *bind.WatchOpts, sink chan<- *EscrowsLock) (event.Subscription, error)
- func (_Escrows *EscrowsFilterer) WatchQuickSwap(opts *bind.WatchOpts, sink chan<- *EscrowsQuickSwap) (event.Subscription, error)
- func (_Escrows *EscrowsFilterer) WatchRoleAdminChanged(opts *bind.WatchOpts, sink chan<- *EscrowsRoleAdminChanged, role [][32]byte, ...) (event.Subscription, error)
- func (_Escrows *EscrowsFilterer) WatchRoleGranted(opts *bind.WatchOpts, sink chan<- *EscrowsRoleGranted, role [][32]byte, ...) (event.Subscription, error)
- func (_Escrows *EscrowsFilterer) WatchRoleRevoked(opts *bind.WatchOpts, sink chan<- *EscrowsRoleRevoked, role [][32]byte, ...) (event.Subscription, error)
- func (_Escrows *EscrowsFilterer) WatchUnlock(opts *bind.WatchOpts, sink chan<- *EscrowsUnlock) (event.Subscription, error)
- type EscrowsLock
- type EscrowsLockIterator
- type EscrowsQuickSwap
- type EscrowsQuickSwapIterator
- type EscrowsRaw
- func (_Escrows *EscrowsRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_Escrows *EscrowsRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Escrows *EscrowsRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type EscrowsRoleAdminChanged
- type EscrowsRoleAdminChangedIterator
- type EscrowsRoleGranted
- type EscrowsRoleGrantedIterator
- type EscrowsRoleRevoked
- type EscrowsRoleRevokedIterator
- type EscrowsSession
- func (_Escrows *EscrowsSession) AddSupportToken(ethTokenAddr common.Address, relayTokenAddr common.Address) (*types.Transaction, error)
- func (_Escrows *EscrowsSession) AddSupportTokens(ethTokenAddrs []common.Address, relayTokenAddrs []common.Address) (*types.Transaction, error)
- func (_Escrows *EscrowsSession) AppchainIndex() (*big.Int, error)
- func (_Escrows *EscrowsSession) DEFAULTADMINROLE() ([32]byte, error)
- func (_Escrows *EscrowsSession) GetRoleAdmin(role [32]byte) ([32]byte, error)
- func (_Escrows *EscrowsSession) GetRoleMember(role [32]byte, index *big.Int) (common.Address, error)
- func (_Escrows *EscrowsSession) GetRoleMemberCount(role [32]byte) (*big.Int, error)
- func (_Escrows *EscrowsSession) GrantRole(role [32]byte, account common.Address) (*types.Transaction, error)
- func (_Escrows *EscrowsSession) HasRole(role [32]byte, account common.Address) (bool, error)
- func (_Escrows *EscrowsSession) Index2Height(arg0 *big.Int) (*big.Int, error)
- func (_Escrows *EscrowsSession) Init() (*types.Transaction, error)
- func (_Escrows *EscrowsSession) Lock(token common.Address, amount *big.Int, recipient string) (*types.Transaction, error)
- func (_Escrows *EscrowsSession) LockAmount(arg0 common.Address) (*big.Int, error)
- func (_Escrows *EscrowsSession) PIERROLE() ([32]byte, error)
- func (_Escrows *EscrowsSession) QuickSwap(dstChainId string, dstContract string, token common.Address, amount *big.Int, ...) (*types.Transaction, error)
- func (_Escrows *EscrowsSession) RELAYERROLE() ([32]byte, error)
- func (_Escrows *EscrowsSession) RelayIndex() (*big.Int, error)
- func (_Escrows *EscrowsSession) RemoveSupportToken(ethTokenAddr common.Address) (*types.Transaction, error)
- func (_Escrows *EscrowsSession) RemoveSupportTokens(addrs []common.Address) (*types.Transaction, error)
- func (_Escrows *EscrowsSession) RenounceRole(role [32]byte, account common.Address) (*types.Transaction, error)
- func (_Escrows *EscrowsSession) RevokeRole(role [32]byte, account common.Address) (*types.Transaction, error)
- func (_Escrows *EscrowsSession) SupportToken(arg0 common.Address) (common.Address, error)
- func (_Escrows *EscrowsSession) TxUnlocked(arg0 string) (bool, error)
- func (_Escrows *EscrowsSession) Unlock(token common.Address, from common.Address, recipient common.Address, ...) (*types.Transaction, error)
- type EscrowsTransactor
- func (_Escrows *EscrowsTransactor) AddSupportToken(opts *bind.TransactOpts, ethTokenAddr common.Address, ...) (*types.Transaction, error)
- func (_Escrows *EscrowsTransactor) AddSupportTokens(opts *bind.TransactOpts, ethTokenAddrs []common.Address, ...) (*types.Transaction, error)
- func (_Escrows *EscrowsTransactor) GrantRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)
- func (_Escrows *EscrowsTransactor) Init(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Escrows *EscrowsTransactor) Lock(opts *bind.TransactOpts, token common.Address, amount *big.Int, ...) (*types.Transaction, error)
- func (_Escrows *EscrowsTransactor) QuickSwap(opts *bind.TransactOpts, dstChainId string, dstContract string, ...) (*types.Transaction, error)
- func (_Escrows *EscrowsTransactor) RemoveSupportToken(opts *bind.TransactOpts, ethTokenAddr common.Address) (*types.Transaction, error)
- func (_Escrows *EscrowsTransactor) RemoveSupportTokens(opts *bind.TransactOpts, addrs []common.Address) (*types.Transaction, error)
- func (_Escrows *EscrowsTransactor) RenounceRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)
- func (_Escrows *EscrowsTransactor) RevokeRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)
- func (_Escrows *EscrowsTransactor) Unlock(opts *bind.TransactOpts, token common.Address, from common.Address, ...) (*types.Transaction, error)
- type EscrowsTransactorRaw
- type EscrowsTransactorSession
- func (_Escrows *EscrowsTransactorSession) AddSupportToken(ethTokenAddr common.Address, relayTokenAddr common.Address) (*types.Transaction, error)
- func (_Escrows *EscrowsTransactorSession) AddSupportTokens(ethTokenAddrs []common.Address, relayTokenAddrs []common.Address) (*types.Transaction, error)
- func (_Escrows *EscrowsTransactorSession) GrantRole(role [32]byte, account common.Address) (*types.Transaction, error)
- func (_Escrows *EscrowsTransactorSession) Init() (*types.Transaction, error)
- func (_Escrows *EscrowsTransactorSession) Lock(token common.Address, amount *big.Int, recipient string) (*types.Transaction, error)
- func (_Escrows *EscrowsTransactorSession) QuickSwap(dstChainId string, dstContract string, token common.Address, amount *big.Int, ...) (*types.Transaction, error)
- func (_Escrows *EscrowsTransactorSession) RemoveSupportToken(ethTokenAddr common.Address) (*types.Transaction, error)
- func (_Escrows *EscrowsTransactorSession) RemoveSupportTokens(addrs []common.Address) (*types.Transaction, error)
- func (_Escrows *EscrowsTransactorSession) RenounceRole(role [32]byte, account common.Address) (*types.Transaction, error)
- func (_Escrows *EscrowsTransactorSession) RevokeRole(role [32]byte, account common.Address) (*types.Transaction, error)
- func (_Escrows *EscrowsTransactorSession) Unlock(token common.Address, from common.Address, recipient common.Address, ...) (*types.Transaction, error)
- type EscrowsUnlock
- type EscrowsUnlockIterator
Constants ¶
const EscrowsABI = "" /* 8864-byte string literal not displayed */
EscrowsABI is the input ABI used to generate the binding from.
Variables ¶
var EscrowsBin = "" /* 16080-byte string literal not displayed */
EscrowsBin is the compiled bytecode used for deploying new contracts.
var EscrowsFuncSigs = map[string]string{
"a217fddf": "DEFAULT_ADMIN_ROLE()",
"fced6ada": "PIER_ROLE()",
"926d7d7f": "RELAYER_ROLE()",
"7010584c": "addSupportToken(address,address)",
"ab1494de": "addSupportTokens(address[],address[])",
"82815874": "appchainIndex()",
"248a9ca3": "getRoleAdmin(bytes32)",
"9010d07c": "getRoleMember(bytes32,uint256)",
"ca15c873": "getRoleMemberCount(bytes32)",
"2f2ff15d": "grantRole(bytes32,address)",
"91d14854": "hasRole(bytes32,address)",
"96f963b4": "index2Height(uint256)",
"e1c7392a": "init()",
"c267ce5f": "lock(address,uint256,string)",
"95bc3bd0": "lockAmount(address)",
"eedf5b7b": "quickSwap(string,string,address,uint256,string)",
"a26c16a4": "relayIndex()",
"e2769cfa": "removeSupportToken(address)",
"0daff621": "removeSupportTokens(address[])",
"36568abe": "renounceRole(bytes32,address)",
"d547741f": "revokeRole(bytes32,address)",
"2a4f1621": "supportToken(address)",
"967145af": "txUnlocked(string)",
"ef2abc1f": "unlock(address,address,address,uint256,string,uint256,bytes[])",
}
EscrowsFuncSigs maps the 4-byte function signature to its string representation.
Functions ¶
This section is empty.
Types ¶
type Escrows ¶
type Escrows struct { EscrowsCaller // Read-only binding to the contract EscrowsTransactor // Write-only binding to the contract EscrowsFilterer // Log filterer for contract events }
Escrows is an auto generated Go binding around an Ethereum contract.
func DeployEscrows ¶
func DeployEscrows(auth *bind.TransactOpts, backend bind.ContractBackend, _relayers []common.Address) (common.Address, *types.Transaction, *Escrows, error)
DeployEscrows deploys a new Ethereum contract, binding an instance of Escrows to it.
func NewEscrows ¶
NewEscrows creates a new instance of Escrows, bound to a specific deployed contract.
type EscrowsCaller ¶
type EscrowsCaller struct {
// contains filtered or unexported fields
}
EscrowsCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewEscrowsCaller ¶
func NewEscrowsCaller(address common.Address, caller bind.ContractCaller) (*EscrowsCaller, error)
NewEscrowsCaller creates a new read-only instance of Escrows, bound to a specific deployed contract.
func (*EscrowsCaller) AppchainIndex ¶
AppchainIndex is a free data retrieval call binding the contract method 0x82815874.
Solidity: function appchainIndex() view returns(uint256)
func (*EscrowsCaller) DEFAULTADMINROLE ¶
func (_Escrows *EscrowsCaller) DEFAULTADMINROLE(opts *bind.CallOpts) ([32]byte, error)
DEFAULTADMINROLE is a free data retrieval call binding the contract method 0xa217fddf.
Solidity: function DEFAULT_ADMIN_ROLE() view returns(bytes32)
func (*EscrowsCaller) GetRoleAdmin ¶
GetRoleAdmin is a free data retrieval call binding the contract method 0x248a9ca3.
Solidity: function getRoleAdmin(bytes32 role) view returns(bytes32)
func (*EscrowsCaller) GetRoleMember ¶
func (_Escrows *EscrowsCaller) GetRoleMember(opts *bind.CallOpts, role [32]byte, index *big.Int) (common.Address, error)
GetRoleMember is a free data retrieval call binding the contract method 0x9010d07c.
Solidity: function getRoleMember(bytes32 role, uint256 index) view returns(address)
func (*EscrowsCaller) GetRoleMemberCount ¶
func (_Escrows *EscrowsCaller) GetRoleMemberCount(opts *bind.CallOpts, role [32]byte) (*big.Int, error)
GetRoleMemberCount is a free data retrieval call binding the contract method 0xca15c873.
Solidity: function getRoleMemberCount(bytes32 role) view returns(uint256)
func (*EscrowsCaller) HasRole ¶
func (_Escrows *EscrowsCaller) HasRole(opts *bind.CallOpts, role [32]byte, account common.Address) (bool, error)
HasRole is a free data retrieval call binding the contract method 0x91d14854.
Solidity: function hasRole(bytes32 role, address account) view returns(bool)
func (*EscrowsCaller) Index2Height ¶
Index2Height is a free data retrieval call binding the contract method 0x96f963b4.
Solidity: function index2Height(uint256 ) view returns(uint256)
func (*EscrowsCaller) LockAmount ¶
func (_Escrows *EscrowsCaller) LockAmount(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
LockAmount is a free data retrieval call binding the contract method 0x95bc3bd0.
Solidity: function lockAmount(address ) view returns(uint256)
func (*EscrowsCaller) PIERROLE ¶
func (_Escrows *EscrowsCaller) PIERROLE(opts *bind.CallOpts) ([32]byte, error)
PIERROLE is a free data retrieval call binding the contract method 0xfced6ada.
Solidity: function PIER_ROLE() view returns(bytes32)
func (*EscrowsCaller) RELAYERROLE ¶
func (_Escrows *EscrowsCaller) RELAYERROLE(opts *bind.CallOpts) ([32]byte, error)
RELAYERROLE is a free data retrieval call binding the contract method 0x926d7d7f.
Solidity: function RELAYER_ROLE() view returns(bytes32)
func (*EscrowsCaller) RelayIndex ¶
RelayIndex is a free data retrieval call binding the contract method 0xa26c16a4.
Solidity: function relayIndex() view returns(uint256)
func (*EscrowsCaller) SupportToken ¶
func (_Escrows *EscrowsCaller) SupportToken(opts *bind.CallOpts, arg0 common.Address) (common.Address, error)
SupportToken is a free data retrieval call binding the contract method 0x2a4f1621.
Solidity: function supportToken(address ) view returns(address)
func (*EscrowsCaller) TxUnlocked ¶
TxUnlocked is a free data retrieval call binding the contract method 0x967145af.
Solidity: function txUnlocked(string ) view returns(bool)
type EscrowsCallerRaw ¶
type EscrowsCallerRaw struct {
Contract *EscrowsCaller // Generic read-only contract binding to access the raw methods on
}
EscrowsCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*EscrowsCallerRaw) Call ¶
func (_Escrows *EscrowsCallerRaw) 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 EscrowsCallerSession ¶
type EscrowsCallerSession struct { Contract *EscrowsCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
EscrowsCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*EscrowsCallerSession) AppchainIndex ¶
func (_Escrows *EscrowsCallerSession) AppchainIndex() (*big.Int, error)
AppchainIndex is a free data retrieval call binding the contract method 0x82815874.
Solidity: function appchainIndex() view returns(uint256)
func (*EscrowsCallerSession) DEFAULTADMINROLE ¶
func (_Escrows *EscrowsCallerSession) DEFAULTADMINROLE() ([32]byte, error)
DEFAULTADMINROLE is a free data retrieval call binding the contract method 0xa217fddf.
Solidity: function DEFAULT_ADMIN_ROLE() view returns(bytes32)
func (*EscrowsCallerSession) GetRoleAdmin ¶
func (_Escrows *EscrowsCallerSession) GetRoleAdmin(role [32]byte) ([32]byte, error)
GetRoleAdmin is a free data retrieval call binding the contract method 0x248a9ca3.
Solidity: function getRoleAdmin(bytes32 role) view returns(bytes32)
func (*EscrowsCallerSession) GetRoleMember ¶
func (_Escrows *EscrowsCallerSession) GetRoleMember(role [32]byte, index *big.Int) (common.Address, error)
GetRoleMember is a free data retrieval call binding the contract method 0x9010d07c.
Solidity: function getRoleMember(bytes32 role, uint256 index) view returns(address)
func (*EscrowsCallerSession) GetRoleMemberCount ¶
func (_Escrows *EscrowsCallerSession) GetRoleMemberCount(role [32]byte) (*big.Int, error)
GetRoleMemberCount is a free data retrieval call binding the contract method 0xca15c873.
Solidity: function getRoleMemberCount(bytes32 role) view returns(uint256)
func (*EscrowsCallerSession) HasRole ¶
HasRole is a free data retrieval call binding the contract method 0x91d14854.
Solidity: function hasRole(bytes32 role, address account) view returns(bool)
func (*EscrowsCallerSession) Index2Height ¶
Index2Height is a free data retrieval call binding the contract method 0x96f963b4.
Solidity: function index2Height(uint256 ) view returns(uint256)
func (*EscrowsCallerSession) LockAmount ¶
LockAmount is a free data retrieval call binding the contract method 0x95bc3bd0.
Solidity: function lockAmount(address ) view returns(uint256)
func (*EscrowsCallerSession) PIERROLE ¶
func (_Escrows *EscrowsCallerSession) PIERROLE() ([32]byte, error)
PIERROLE is a free data retrieval call binding the contract method 0xfced6ada.
Solidity: function PIER_ROLE() view returns(bytes32)
func (*EscrowsCallerSession) RELAYERROLE ¶
func (_Escrows *EscrowsCallerSession) RELAYERROLE() ([32]byte, error)
RELAYERROLE is a free data retrieval call binding the contract method 0x926d7d7f.
Solidity: function RELAYER_ROLE() view returns(bytes32)
func (*EscrowsCallerSession) RelayIndex ¶
func (_Escrows *EscrowsCallerSession) RelayIndex() (*big.Int, error)
RelayIndex is a free data retrieval call binding the contract method 0xa26c16a4.
Solidity: function relayIndex() view returns(uint256)
func (*EscrowsCallerSession) SupportToken ¶
SupportToken is a free data retrieval call binding the contract method 0x2a4f1621.
Solidity: function supportToken(address ) view returns(address)
func (*EscrowsCallerSession) TxUnlocked ¶
func (_Escrows *EscrowsCallerSession) TxUnlocked(arg0 string) (bool, error)
TxUnlocked is a free data retrieval call binding the contract method 0x967145af.
Solidity: function txUnlocked(string ) view returns(bool)
type EscrowsFilterer ¶
type EscrowsFilterer struct {
// contains filtered or unexported fields
}
EscrowsFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewEscrowsFilterer ¶
func NewEscrowsFilterer(address common.Address, filterer bind.ContractFilterer) (*EscrowsFilterer, error)
NewEscrowsFilterer creates a new log filterer instance of Escrows, bound to a specific deployed contract.
func (*EscrowsFilterer) FilterLock ¶
func (_Escrows *EscrowsFilterer) FilterLock(opts *bind.FilterOpts) (*EscrowsLockIterator, error)
FilterLock is a free log retrieval operation binding the contract event 0x67741de31257ee580484c64e9f8b91449aa7df22ae38fcb86e50bdadfca0ad23.
Solidity: event Lock(address ethToken, address relayToken, address locker, string recipient, uint256 amount, uint256 appchainIndex)
func (*EscrowsFilterer) FilterQuickSwap ¶
func (_Escrows *EscrowsFilterer) FilterQuickSwap(opts *bind.FilterOpts) (*EscrowsQuickSwapIterator, error)
FilterQuickSwap is a free log retrieval operation binding the contract event 0xbf42a9b8a78d1a7612fe5abd3e8bb6a6d68d4a31cc3a0ead24cdad19450fab83.
Solidity: event QuickSwap(string dstChainId, string dstContract)
func (*EscrowsFilterer) FilterRoleAdminChanged ¶
func (_Escrows *EscrowsFilterer) FilterRoleAdminChanged(opts *bind.FilterOpts, role [][32]byte, previousAdminRole [][32]byte, newAdminRole [][32]byte) (*EscrowsRoleAdminChangedIterator, error)
FilterRoleAdminChanged is a free log retrieval operation binding the contract event 0xbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff.
Solidity: event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)
func (*EscrowsFilterer) FilterRoleGranted ¶
func (_Escrows *EscrowsFilterer) FilterRoleGranted(opts *bind.FilterOpts, role [][32]byte, account []common.Address, sender []common.Address) (*EscrowsRoleGrantedIterator, error)
FilterRoleGranted is a free log retrieval operation binding the contract event 0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d.
Solidity: event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)
func (*EscrowsFilterer) FilterRoleRevoked ¶
func (_Escrows *EscrowsFilterer) FilterRoleRevoked(opts *bind.FilterOpts, role [][32]byte, account []common.Address, sender []common.Address) (*EscrowsRoleRevokedIterator, error)
FilterRoleRevoked is a free log retrieval operation binding the contract event 0xf6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b.
Solidity: event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)
func (*EscrowsFilterer) FilterUnlock ¶
func (_Escrows *EscrowsFilterer) FilterUnlock(opts *bind.FilterOpts) (*EscrowsUnlockIterator, error)
FilterUnlock is a free log retrieval operation binding the contract event 0x5800596ed55e41c52e6e763640e29ff0d4c09c47408a512c4fb0974a452c1f0c.
Solidity: event Unlock(address ethToken, address relayToken, address from, address recipient, uint256 amount, string txid)
func (*EscrowsFilterer) ParseLock ¶
func (_Escrows *EscrowsFilterer) ParseLock(log types.Log) (*EscrowsLock, error)
ParseLock is a log parse operation binding the contract event 0x67741de31257ee580484c64e9f8b91449aa7df22ae38fcb86e50bdadfca0ad23.
Solidity: event Lock(address ethToken, address relayToken, address locker, string recipient, uint256 amount, uint256 appchainIndex)
func (*EscrowsFilterer) ParseQuickSwap ¶
func (_Escrows *EscrowsFilterer) ParseQuickSwap(log types.Log) (*EscrowsQuickSwap, error)
ParseQuickSwap is a log parse operation binding the contract event 0xbf42a9b8a78d1a7612fe5abd3e8bb6a6d68d4a31cc3a0ead24cdad19450fab83.
Solidity: event QuickSwap(string dstChainId, string dstContract)
func (*EscrowsFilterer) ParseRoleAdminChanged ¶
func (_Escrows *EscrowsFilterer) ParseRoleAdminChanged(log types.Log) (*EscrowsRoleAdminChanged, error)
ParseRoleAdminChanged is a log parse operation binding the contract event 0xbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff.
Solidity: event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)
func (*EscrowsFilterer) ParseRoleGranted ¶
func (_Escrows *EscrowsFilterer) ParseRoleGranted(log types.Log) (*EscrowsRoleGranted, error)
ParseRoleGranted is a log parse operation binding the contract event 0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d.
Solidity: event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)
func (*EscrowsFilterer) ParseRoleRevoked ¶
func (_Escrows *EscrowsFilterer) ParseRoleRevoked(log types.Log) (*EscrowsRoleRevoked, error)
ParseRoleRevoked is a log parse operation binding the contract event 0xf6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b.
Solidity: event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)
func (*EscrowsFilterer) ParseUnlock ¶
func (_Escrows *EscrowsFilterer) ParseUnlock(log types.Log) (*EscrowsUnlock, error)
ParseUnlock is a log parse operation binding the contract event 0x5800596ed55e41c52e6e763640e29ff0d4c09c47408a512c4fb0974a452c1f0c.
Solidity: event Unlock(address ethToken, address relayToken, address from, address recipient, uint256 amount, string txid)
func (*EscrowsFilterer) WatchLock ¶
func (_Escrows *EscrowsFilterer) WatchLock(opts *bind.WatchOpts, sink chan<- *EscrowsLock) (event.Subscription, error)
WatchLock is a free log subscription operation binding the contract event 0x67741de31257ee580484c64e9f8b91449aa7df22ae38fcb86e50bdadfca0ad23.
Solidity: event Lock(address ethToken, address relayToken, address locker, string recipient, uint256 amount, uint256 appchainIndex)
func (*EscrowsFilterer) WatchQuickSwap ¶
func (_Escrows *EscrowsFilterer) WatchQuickSwap(opts *bind.WatchOpts, sink chan<- *EscrowsQuickSwap) (event.Subscription, error)
WatchQuickSwap is a free log subscription operation binding the contract event 0xbf42a9b8a78d1a7612fe5abd3e8bb6a6d68d4a31cc3a0ead24cdad19450fab83.
Solidity: event QuickSwap(string dstChainId, string dstContract)
func (*EscrowsFilterer) WatchRoleAdminChanged ¶
func (_Escrows *EscrowsFilterer) WatchRoleAdminChanged(opts *bind.WatchOpts, sink chan<- *EscrowsRoleAdminChanged, role [][32]byte, previousAdminRole [][32]byte, newAdminRole [][32]byte) (event.Subscription, error)
WatchRoleAdminChanged is a free log subscription operation binding the contract event 0xbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff.
Solidity: event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)
func (*EscrowsFilterer) WatchRoleGranted ¶
func (_Escrows *EscrowsFilterer) WatchRoleGranted(opts *bind.WatchOpts, sink chan<- *EscrowsRoleGranted, role [][32]byte, account []common.Address, sender []common.Address) (event.Subscription, error)
WatchRoleGranted is a free log subscription operation binding the contract event 0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d.
Solidity: event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)
func (*EscrowsFilterer) WatchRoleRevoked ¶
func (_Escrows *EscrowsFilterer) WatchRoleRevoked(opts *bind.WatchOpts, sink chan<- *EscrowsRoleRevoked, role [][32]byte, account []common.Address, sender []common.Address) (event.Subscription, error)
WatchRoleRevoked is a free log subscription operation binding the contract event 0xf6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b.
Solidity: event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)
func (*EscrowsFilterer) WatchUnlock ¶
func (_Escrows *EscrowsFilterer) WatchUnlock(opts *bind.WatchOpts, sink chan<- *EscrowsUnlock) (event.Subscription, error)
WatchUnlock is a free log subscription operation binding the contract event 0x5800596ed55e41c52e6e763640e29ff0d4c09c47408a512c4fb0974a452c1f0c.
Solidity: event Unlock(address ethToken, address relayToken, address from, address recipient, uint256 amount, string txid)
type EscrowsLock ¶
type EscrowsLock struct { EthToken common.Address RelayToken common.Address Locker common.Address Recipient string Amount *big.Int AppchainIndex *big.Int Raw types.Log // Blockchain specific contextual infos }
EscrowsLock represents a Lock event raised by the Escrows contract.
type EscrowsLockIterator ¶
type EscrowsLockIterator struct { Event *EscrowsLock // Event containing the contract specifics and raw log // contains filtered or unexported fields }
EscrowsLockIterator is returned from FilterLock and is used to iterate over the raw logs and unpacked data for Lock events raised by the Escrows contract.
func (*EscrowsLockIterator) Close ¶
func (it *EscrowsLockIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*EscrowsLockIterator) Error ¶
func (it *EscrowsLockIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*EscrowsLockIterator) Next ¶
func (it *EscrowsLockIterator) 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 EscrowsQuickSwap ¶
type EscrowsQuickSwap struct { DstChainId string DstContract string Raw types.Log // Blockchain specific contextual infos }
EscrowsQuickSwap represents a QuickSwap event raised by the Escrows contract.
type EscrowsQuickSwapIterator ¶
type EscrowsQuickSwapIterator struct { Event *EscrowsQuickSwap // Event containing the contract specifics and raw log // contains filtered or unexported fields }
EscrowsQuickSwapIterator is returned from FilterQuickSwap and is used to iterate over the raw logs and unpacked data for QuickSwap events raised by the Escrows contract.
func (*EscrowsQuickSwapIterator) Close ¶
func (it *EscrowsQuickSwapIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*EscrowsQuickSwapIterator) Error ¶
func (it *EscrowsQuickSwapIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*EscrowsQuickSwapIterator) Next ¶
func (it *EscrowsQuickSwapIterator) 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 EscrowsRaw ¶
type EscrowsRaw struct {
Contract *Escrows // Generic contract binding to access the raw methods on
}
EscrowsRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*EscrowsRaw) Call ¶
func (_Escrows *EscrowsRaw) 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 (*EscrowsRaw) Transact ¶
func (_Escrows *EscrowsRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*EscrowsRaw) Transfer ¶
func (_Escrows *EscrowsRaw) 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 EscrowsRoleAdminChanged ¶
type EscrowsRoleAdminChanged struct { Role [32]byte PreviousAdminRole [32]byte NewAdminRole [32]byte Raw types.Log // Blockchain specific contextual infos }
EscrowsRoleAdminChanged represents a RoleAdminChanged event raised by the Escrows contract.
type EscrowsRoleAdminChangedIterator ¶
type EscrowsRoleAdminChangedIterator struct { Event *EscrowsRoleAdminChanged // Event containing the contract specifics and raw log // contains filtered or unexported fields }
EscrowsRoleAdminChangedIterator is returned from FilterRoleAdminChanged and is used to iterate over the raw logs and unpacked data for RoleAdminChanged events raised by the Escrows contract.
func (*EscrowsRoleAdminChangedIterator) Close ¶
func (it *EscrowsRoleAdminChangedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*EscrowsRoleAdminChangedIterator) Error ¶
func (it *EscrowsRoleAdminChangedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*EscrowsRoleAdminChangedIterator) Next ¶
func (it *EscrowsRoleAdminChangedIterator) 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 EscrowsRoleGranted ¶
type EscrowsRoleGranted struct { Role [32]byte Account common.Address Sender common.Address Raw types.Log // Blockchain specific contextual infos }
EscrowsRoleGranted represents a RoleGranted event raised by the Escrows contract.
type EscrowsRoleGrantedIterator ¶
type EscrowsRoleGrantedIterator struct { Event *EscrowsRoleGranted // Event containing the contract specifics and raw log // contains filtered or unexported fields }
EscrowsRoleGrantedIterator is returned from FilterRoleGranted and is used to iterate over the raw logs and unpacked data for RoleGranted events raised by the Escrows contract.
func (*EscrowsRoleGrantedIterator) Close ¶
func (it *EscrowsRoleGrantedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*EscrowsRoleGrantedIterator) Error ¶
func (it *EscrowsRoleGrantedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*EscrowsRoleGrantedIterator) Next ¶
func (it *EscrowsRoleGrantedIterator) 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 EscrowsRoleRevoked ¶
type EscrowsRoleRevoked struct { Role [32]byte Account common.Address Sender common.Address Raw types.Log // Blockchain specific contextual infos }
EscrowsRoleRevoked represents a RoleRevoked event raised by the Escrows contract.
type EscrowsRoleRevokedIterator ¶
type EscrowsRoleRevokedIterator struct { Event *EscrowsRoleRevoked // Event containing the contract specifics and raw log // contains filtered or unexported fields }
EscrowsRoleRevokedIterator is returned from FilterRoleRevoked and is used to iterate over the raw logs and unpacked data for RoleRevoked events raised by the Escrows contract.
func (*EscrowsRoleRevokedIterator) Close ¶
func (it *EscrowsRoleRevokedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*EscrowsRoleRevokedIterator) Error ¶
func (it *EscrowsRoleRevokedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*EscrowsRoleRevokedIterator) Next ¶
func (it *EscrowsRoleRevokedIterator) 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 EscrowsSession ¶
type EscrowsSession struct { Contract *Escrows // 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 }
EscrowsSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*EscrowsSession) AddSupportToken ¶
func (_Escrows *EscrowsSession) AddSupportToken(ethTokenAddr common.Address, relayTokenAddr common.Address) (*types.Transaction, error)
AddSupportToken is a paid mutator transaction binding the contract method 0x7010584c.
Solidity: function addSupportToken(address ethTokenAddr, address relayTokenAddr) returns()
func (*EscrowsSession) AddSupportTokens ¶
func (_Escrows *EscrowsSession) AddSupportTokens(ethTokenAddrs []common.Address, relayTokenAddrs []common.Address) (*types.Transaction, error)
AddSupportTokens is a paid mutator transaction binding the contract method 0xab1494de.
Solidity: function addSupportTokens(address[] ethTokenAddrs, address[] relayTokenAddrs) returns()
func (*EscrowsSession) AppchainIndex ¶
func (_Escrows *EscrowsSession) AppchainIndex() (*big.Int, error)
AppchainIndex is a free data retrieval call binding the contract method 0x82815874.
Solidity: function appchainIndex() view returns(uint256)
func (*EscrowsSession) DEFAULTADMINROLE ¶
func (_Escrows *EscrowsSession) DEFAULTADMINROLE() ([32]byte, error)
DEFAULTADMINROLE is a free data retrieval call binding the contract method 0xa217fddf.
Solidity: function DEFAULT_ADMIN_ROLE() view returns(bytes32)
func (*EscrowsSession) GetRoleAdmin ¶
func (_Escrows *EscrowsSession) GetRoleAdmin(role [32]byte) ([32]byte, error)
GetRoleAdmin is a free data retrieval call binding the contract method 0x248a9ca3.
Solidity: function getRoleAdmin(bytes32 role) view returns(bytes32)
func (*EscrowsSession) GetRoleMember ¶
func (_Escrows *EscrowsSession) GetRoleMember(role [32]byte, index *big.Int) (common.Address, error)
GetRoleMember is a free data retrieval call binding the contract method 0x9010d07c.
Solidity: function getRoleMember(bytes32 role, uint256 index) view returns(address)
func (*EscrowsSession) GetRoleMemberCount ¶
func (_Escrows *EscrowsSession) GetRoleMemberCount(role [32]byte) (*big.Int, error)
GetRoleMemberCount is a free data retrieval call binding the contract method 0xca15c873.
Solidity: function getRoleMemberCount(bytes32 role) view returns(uint256)
func (*EscrowsSession) GrantRole ¶
func (_Escrows *EscrowsSession) GrantRole(role [32]byte, account common.Address) (*types.Transaction, error)
GrantRole is a paid mutator transaction binding the contract method 0x2f2ff15d.
Solidity: function grantRole(bytes32 role, address account) returns()
func (*EscrowsSession) HasRole ¶
HasRole is a free data retrieval call binding the contract method 0x91d14854.
Solidity: function hasRole(bytes32 role, address account) view returns(bool)
func (*EscrowsSession) Index2Height ¶
Index2Height is a free data retrieval call binding the contract method 0x96f963b4.
Solidity: function index2Height(uint256 ) view returns(uint256)
func (*EscrowsSession) Init ¶
func (_Escrows *EscrowsSession) Init() (*types.Transaction, error)
Init is a paid mutator transaction binding the contract method 0xe1c7392a.
Solidity: function init() returns()
func (*EscrowsSession) Lock ¶
func (_Escrows *EscrowsSession) Lock(token common.Address, amount *big.Int, recipient string) (*types.Transaction, error)
Lock is a paid mutator transaction binding the contract method 0xc267ce5f.
Solidity: function lock(address token, uint256 amount, string recipient) returns()
func (*EscrowsSession) LockAmount ¶
LockAmount is a free data retrieval call binding the contract method 0x95bc3bd0.
Solidity: function lockAmount(address ) view returns(uint256)
func (*EscrowsSession) PIERROLE ¶
func (_Escrows *EscrowsSession) PIERROLE() ([32]byte, error)
PIERROLE is a free data retrieval call binding the contract method 0xfced6ada.
Solidity: function PIER_ROLE() view returns(bytes32)
func (*EscrowsSession) QuickSwap ¶
func (_Escrows *EscrowsSession) QuickSwap(dstChainId string, dstContract string, token common.Address, amount *big.Int, recipient string) (*types.Transaction, error)
QuickSwap is a paid mutator transaction binding the contract method 0xeedf5b7b.
Solidity: function quickSwap(string dstChainId, string dstContract, address token, uint256 amount, string recipient) returns()
func (*EscrowsSession) RELAYERROLE ¶
func (_Escrows *EscrowsSession) RELAYERROLE() ([32]byte, error)
RELAYERROLE is a free data retrieval call binding the contract method 0x926d7d7f.
Solidity: function RELAYER_ROLE() view returns(bytes32)
func (*EscrowsSession) RelayIndex ¶
func (_Escrows *EscrowsSession) RelayIndex() (*big.Int, error)
RelayIndex is a free data retrieval call binding the contract method 0xa26c16a4.
Solidity: function relayIndex() view returns(uint256)
func (*EscrowsSession) RemoveSupportToken ¶
func (_Escrows *EscrowsSession) RemoveSupportToken(ethTokenAddr common.Address) (*types.Transaction, error)
RemoveSupportToken is a paid mutator transaction binding the contract method 0xe2769cfa.
Solidity: function removeSupportToken(address ethTokenAddr) returns()
func (*EscrowsSession) RemoveSupportTokens ¶
func (_Escrows *EscrowsSession) RemoveSupportTokens(addrs []common.Address) (*types.Transaction, error)
RemoveSupportTokens is a paid mutator transaction binding the contract method 0x0daff621.
Solidity: function removeSupportTokens(address[] addrs) returns()
func (*EscrowsSession) RenounceRole ¶
func (_Escrows *EscrowsSession) RenounceRole(role [32]byte, account common.Address) (*types.Transaction, error)
RenounceRole is a paid mutator transaction binding the contract method 0x36568abe.
Solidity: function renounceRole(bytes32 role, address account) returns()
func (*EscrowsSession) RevokeRole ¶
func (_Escrows *EscrowsSession) RevokeRole(role [32]byte, account common.Address) (*types.Transaction, error)
RevokeRole is a paid mutator transaction binding the contract method 0xd547741f.
Solidity: function revokeRole(bytes32 role, address account) returns()
func (*EscrowsSession) SupportToken ¶
SupportToken is a free data retrieval call binding the contract method 0x2a4f1621.
Solidity: function supportToken(address ) view returns(address)
func (*EscrowsSession) TxUnlocked ¶
func (_Escrows *EscrowsSession) TxUnlocked(arg0 string) (bool, error)
TxUnlocked is a free data retrieval call binding the contract method 0x967145af.
Solidity: function txUnlocked(string ) view returns(bool)
func (*EscrowsSession) Unlock ¶
func (_Escrows *EscrowsSession) Unlock(token common.Address, from common.Address, recipient common.Address, amount *big.Int, _txid string, _relayIndex *big.Int, signatures [][]byte) (*types.Transaction, error)
Unlock is a paid mutator transaction binding the contract method 0xef2abc1f.
Solidity: function unlock(address token, address from, address recipient, uint256 amount, string _txid, uint256 _relayIndex, bytes[] signatures) returns()
type EscrowsTransactor ¶
type EscrowsTransactor struct {
// contains filtered or unexported fields
}
EscrowsTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewEscrowsTransactor ¶
func NewEscrowsTransactor(address common.Address, transactor bind.ContractTransactor) (*EscrowsTransactor, error)
NewEscrowsTransactor creates a new write-only instance of Escrows, bound to a specific deployed contract.
func (*EscrowsTransactor) AddSupportToken ¶
func (_Escrows *EscrowsTransactor) AddSupportToken(opts *bind.TransactOpts, ethTokenAddr common.Address, relayTokenAddr common.Address) (*types.Transaction, error)
AddSupportToken is a paid mutator transaction binding the contract method 0x7010584c.
Solidity: function addSupportToken(address ethTokenAddr, address relayTokenAddr) returns()
func (*EscrowsTransactor) AddSupportTokens ¶
func (_Escrows *EscrowsTransactor) AddSupportTokens(opts *bind.TransactOpts, ethTokenAddrs []common.Address, relayTokenAddrs []common.Address) (*types.Transaction, error)
AddSupportTokens is a paid mutator transaction binding the contract method 0xab1494de.
Solidity: function addSupportTokens(address[] ethTokenAddrs, address[] relayTokenAddrs) returns()
func (*EscrowsTransactor) GrantRole ¶
func (_Escrows *EscrowsTransactor) GrantRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)
GrantRole is a paid mutator transaction binding the contract method 0x2f2ff15d.
Solidity: function grantRole(bytes32 role, address account) returns()
func (*EscrowsTransactor) Init ¶
func (_Escrows *EscrowsTransactor) Init(opts *bind.TransactOpts) (*types.Transaction, error)
Init is a paid mutator transaction binding the contract method 0xe1c7392a.
Solidity: function init() returns()
func (*EscrowsTransactor) Lock ¶
func (_Escrows *EscrowsTransactor) Lock(opts *bind.TransactOpts, token common.Address, amount *big.Int, recipient string) (*types.Transaction, error)
Lock is a paid mutator transaction binding the contract method 0xc267ce5f.
Solidity: function lock(address token, uint256 amount, string recipient) returns()
func (*EscrowsTransactor) QuickSwap ¶
func (_Escrows *EscrowsTransactor) QuickSwap(opts *bind.TransactOpts, dstChainId string, dstContract string, token common.Address, amount *big.Int, recipient string) (*types.Transaction, error)
QuickSwap is a paid mutator transaction binding the contract method 0xeedf5b7b.
Solidity: function quickSwap(string dstChainId, string dstContract, address token, uint256 amount, string recipient) returns()
func (*EscrowsTransactor) RemoveSupportToken ¶
func (_Escrows *EscrowsTransactor) RemoveSupportToken(opts *bind.TransactOpts, ethTokenAddr common.Address) (*types.Transaction, error)
RemoveSupportToken is a paid mutator transaction binding the contract method 0xe2769cfa.
Solidity: function removeSupportToken(address ethTokenAddr) returns()
func (*EscrowsTransactor) RemoveSupportTokens ¶
func (_Escrows *EscrowsTransactor) RemoveSupportTokens(opts *bind.TransactOpts, addrs []common.Address) (*types.Transaction, error)
RemoveSupportTokens is a paid mutator transaction binding the contract method 0x0daff621.
Solidity: function removeSupportTokens(address[] addrs) returns()
func (*EscrowsTransactor) RenounceRole ¶
func (_Escrows *EscrowsTransactor) RenounceRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)
RenounceRole is a paid mutator transaction binding the contract method 0x36568abe.
Solidity: function renounceRole(bytes32 role, address account) returns()
func (*EscrowsTransactor) RevokeRole ¶
func (_Escrows *EscrowsTransactor) RevokeRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)
RevokeRole is a paid mutator transaction binding the contract method 0xd547741f.
Solidity: function revokeRole(bytes32 role, address account) returns()
func (*EscrowsTransactor) Unlock ¶
func (_Escrows *EscrowsTransactor) Unlock(opts *bind.TransactOpts, token common.Address, from common.Address, recipient common.Address, amount *big.Int, _txid string, _relayIndex *big.Int, signatures [][]byte) (*types.Transaction, error)
Unlock is a paid mutator transaction binding the contract method 0xef2abc1f.
Solidity: function unlock(address token, address from, address recipient, uint256 amount, string _txid, uint256 _relayIndex, bytes[] signatures) returns()
type EscrowsTransactorRaw ¶
type EscrowsTransactorRaw struct {
Contract *EscrowsTransactor // Generic write-only contract binding to access the raw methods on
}
EscrowsTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*EscrowsTransactorRaw) Transact ¶
func (_Escrows *EscrowsTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*EscrowsTransactorRaw) Transfer ¶
func (_Escrows *EscrowsTransactorRaw) 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 EscrowsTransactorSession ¶
type EscrowsTransactorSession struct { Contract *EscrowsTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
EscrowsTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*EscrowsTransactorSession) AddSupportToken ¶
func (_Escrows *EscrowsTransactorSession) AddSupportToken(ethTokenAddr common.Address, relayTokenAddr common.Address) (*types.Transaction, error)
AddSupportToken is a paid mutator transaction binding the contract method 0x7010584c.
Solidity: function addSupportToken(address ethTokenAddr, address relayTokenAddr) returns()
func (*EscrowsTransactorSession) AddSupportTokens ¶
func (_Escrows *EscrowsTransactorSession) AddSupportTokens(ethTokenAddrs []common.Address, relayTokenAddrs []common.Address) (*types.Transaction, error)
AddSupportTokens is a paid mutator transaction binding the contract method 0xab1494de.
Solidity: function addSupportTokens(address[] ethTokenAddrs, address[] relayTokenAddrs) returns()
func (*EscrowsTransactorSession) GrantRole ¶
func (_Escrows *EscrowsTransactorSession) GrantRole(role [32]byte, account common.Address) (*types.Transaction, error)
GrantRole is a paid mutator transaction binding the contract method 0x2f2ff15d.
Solidity: function grantRole(bytes32 role, address account) returns()
func (*EscrowsTransactorSession) Init ¶
func (_Escrows *EscrowsTransactorSession) Init() (*types.Transaction, error)
Init is a paid mutator transaction binding the contract method 0xe1c7392a.
Solidity: function init() returns()
func (*EscrowsTransactorSession) Lock ¶
func (_Escrows *EscrowsTransactorSession) Lock(token common.Address, amount *big.Int, recipient string) (*types.Transaction, error)
Lock is a paid mutator transaction binding the contract method 0xc267ce5f.
Solidity: function lock(address token, uint256 amount, string recipient) returns()
func (*EscrowsTransactorSession) QuickSwap ¶
func (_Escrows *EscrowsTransactorSession) QuickSwap(dstChainId string, dstContract string, token common.Address, amount *big.Int, recipient string) (*types.Transaction, error)
QuickSwap is a paid mutator transaction binding the contract method 0xeedf5b7b.
Solidity: function quickSwap(string dstChainId, string dstContract, address token, uint256 amount, string recipient) returns()
func (*EscrowsTransactorSession) RemoveSupportToken ¶
func (_Escrows *EscrowsTransactorSession) RemoveSupportToken(ethTokenAddr common.Address) (*types.Transaction, error)
RemoveSupportToken is a paid mutator transaction binding the contract method 0xe2769cfa.
Solidity: function removeSupportToken(address ethTokenAddr) returns()
func (*EscrowsTransactorSession) RemoveSupportTokens ¶
func (_Escrows *EscrowsTransactorSession) RemoveSupportTokens(addrs []common.Address) (*types.Transaction, error)
RemoveSupportTokens is a paid mutator transaction binding the contract method 0x0daff621.
Solidity: function removeSupportTokens(address[] addrs) returns()
func (*EscrowsTransactorSession) RenounceRole ¶
func (_Escrows *EscrowsTransactorSession) RenounceRole(role [32]byte, account common.Address) (*types.Transaction, error)
RenounceRole is a paid mutator transaction binding the contract method 0x36568abe.
Solidity: function renounceRole(bytes32 role, address account) returns()
func (*EscrowsTransactorSession) RevokeRole ¶
func (_Escrows *EscrowsTransactorSession) RevokeRole(role [32]byte, account common.Address) (*types.Transaction, error)
RevokeRole is a paid mutator transaction binding the contract method 0xd547741f.
Solidity: function revokeRole(bytes32 role, address account) returns()
func (*EscrowsTransactorSession) Unlock ¶
func (_Escrows *EscrowsTransactorSession) Unlock(token common.Address, from common.Address, recipient common.Address, amount *big.Int, _txid string, _relayIndex *big.Int, signatures [][]byte) (*types.Transaction, error)
Unlock is a paid mutator transaction binding the contract method 0xef2abc1f.
Solidity: function unlock(address token, address from, address recipient, uint256 amount, string _txid, uint256 _relayIndex, bytes[] signatures) returns()
type EscrowsUnlock ¶
type EscrowsUnlock struct { EthToken common.Address RelayToken common.Address From common.Address Recipient common.Address Amount *big.Int Txid string Raw types.Log // Blockchain specific contextual infos }
EscrowsUnlock represents a Unlock event raised by the Escrows contract.
type EscrowsUnlockIterator ¶
type EscrowsUnlockIterator struct { Event *EscrowsUnlock // Event containing the contract specifics and raw log // contains filtered or unexported fields }
EscrowsUnlockIterator is returned from FilterUnlock and is used to iterate over the raw logs and unpacked data for Unlock events raised by the Escrows contract.
func (*EscrowsUnlockIterator) Close ¶
func (it *EscrowsUnlockIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*EscrowsUnlockIterator) Error ¶
func (it *EscrowsUnlockIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*EscrowsUnlockIterator) Next ¶
func (it *EscrowsUnlockIterator) 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.