Documentation
¶
Index ¶
- Variables
- type EthereumBridge
- type EthereumBridgeCaller
- func (_EthereumBridge *EthereumBridgeCaller) Erc20Fee(opts *bind.CallOpts) (*big.Int, error)
- func (_EthereumBridge *EthereumBridgeCaller) HasTokenMapping(opts *bind.CallOpts, wrappedToken common.Address) (bool, error)
- func (_EthereumBridge *EthereumBridgeCaller) LocalToRemoteToken(opts *bind.CallOpts, arg0 common.Address) (common.Address, error)
- func (_EthereumBridge *EthereumBridgeCaller) RemoteToLocalToken(opts *bind.CallOpts, arg0 common.Address) (common.Address, error)
- func (_EthereumBridge *EthereumBridgeCaller) ValueTransferFee(opts *bind.CallOpts) (*big.Int, error)
- func (_EthereumBridge *EthereumBridgeCaller) WrappedTokens(opts *bind.CallOpts, arg0 common.Address) (common.Address, error)
- type EthereumBridgeCallerRaw
- type EthereumBridgeCallerSession
- func (_EthereumBridge *EthereumBridgeCallerSession) Erc20Fee() (*big.Int, error)
- func (_EthereumBridge *EthereumBridgeCallerSession) HasTokenMapping(wrappedToken common.Address) (bool, error)
- func (_EthereumBridge *EthereumBridgeCallerSession) LocalToRemoteToken(arg0 common.Address) (common.Address, error)
- func (_EthereumBridge *EthereumBridgeCallerSession) RemoteToLocalToken(arg0 common.Address) (common.Address, error)
- func (_EthereumBridge *EthereumBridgeCallerSession) ValueTransferFee() (*big.Int, error)
- func (_EthereumBridge *EthereumBridgeCallerSession) WrappedTokens(arg0 common.Address) (common.Address, error)
- type EthereumBridgeCreatedWrappedToken
- type EthereumBridgeCreatedWrappedTokenIterator
- type EthereumBridgeFilterer
- func (_EthereumBridge *EthereumBridgeFilterer) FilterCreatedWrappedToken(opts *bind.FilterOpts) (*EthereumBridgeCreatedWrappedTokenIterator, error)
- func (_EthereumBridge *EthereumBridgeFilterer) FilterInitialized(opts *bind.FilterOpts) (*EthereumBridgeInitializedIterator, error)
- func (_EthereumBridge *EthereumBridgeFilterer) ParseCreatedWrappedToken(log types.Log) (*EthereumBridgeCreatedWrappedToken, error)
- func (_EthereumBridge *EthereumBridgeFilterer) ParseInitialized(log types.Log) (*EthereumBridgeInitialized, error)
- func (_EthereumBridge *EthereumBridgeFilterer) WatchCreatedWrappedToken(opts *bind.WatchOpts, sink chan<- *EthereumBridgeCreatedWrappedToken) (event.Subscription, error)
- func (_EthereumBridge *EthereumBridgeFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *EthereumBridgeInitialized) (event.Subscription, error)
- type EthereumBridgeInitialized
- type EthereumBridgeInitializedIterator
- type EthereumBridgeRaw
- func (_EthereumBridge *EthereumBridgeRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_EthereumBridge *EthereumBridgeRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_EthereumBridge *EthereumBridgeRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type EthereumBridgeSession
- func (_EthereumBridge *EthereumBridgeSession) Configure(messengerAddress common.Address) (*types.Transaction, error)
- func (_EthereumBridge *EthereumBridgeSession) Erc20Fee() (*big.Int, error)
- func (_EthereumBridge *EthereumBridgeSession) Fallback(calldata []byte) (*types.Transaction, error)
- func (_EthereumBridge *EthereumBridgeSession) HasTokenMapping(wrappedToken common.Address) (bool, error)
- func (_EthereumBridge *EthereumBridgeSession) Initialize(messenger common.Address, remoteBridge common.Address) (*types.Transaction, error)
- func (_EthereumBridge *EthereumBridgeSession) LocalToRemoteToken(arg0 common.Address) (common.Address, error)
- func (_EthereumBridge *EthereumBridgeSession) OnCreateTokenCommand(crossChainAddress common.Address, name string, symbol string) (*types.Transaction, error)
- func (_EthereumBridge *EthereumBridgeSession) Receive() (*types.Transaction, error)
- func (_EthereumBridge *EthereumBridgeSession) ReceiveAssets(asset common.Address, amount *big.Int, receiver common.Address) (*types.Transaction, error)
- func (_EthereumBridge *EthereumBridgeSession) RemoteToLocalToken(arg0 common.Address) (common.Address, error)
- func (_EthereumBridge *EthereumBridgeSession) SendERC20(asset common.Address, amount *big.Int, receiver common.Address) (*types.Transaction, error)
- func (_EthereumBridge *EthereumBridgeSession) SendNative(receiver common.Address) (*types.Transaction, error)
- func (_EthereumBridge *EthereumBridgeSession) ValueTransferFee() (*big.Int, error)
- func (_EthereumBridge *EthereumBridgeSession) WrappedTokens(arg0 common.Address) (common.Address, error)
- type EthereumBridgeTransactor
- func (_EthereumBridge *EthereumBridgeTransactor) Configure(opts *bind.TransactOpts, messengerAddress common.Address) (*types.Transaction, error)
- func (_EthereumBridge *EthereumBridgeTransactor) Fallback(opts *bind.TransactOpts, calldata []byte) (*types.Transaction, error)
- func (_EthereumBridge *EthereumBridgeTransactor) Initialize(opts *bind.TransactOpts, messenger common.Address, remoteBridge common.Address) (*types.Transaction, error)
- func (_EthereumBridge *EthereumBridgeTransactor) OnCreateTokenCommand(opts *bind.TransactOpts, crossChainAddress common.Address, name string, ...) (*types.Transaction, error)
- func (_EthereumBridge *EthereumBridgeTransactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_EthereumBridge *EthereumBridgeTransactor) ReceiveAssets(opts *bind.TransactOpts, asset common.Address, amount *big.Int, ...) (*types.Transaction, error)
- func (_EthereumBridge *EthereumBridgeTransactor) SendERC20(opts *bind.TransactOpts, asset common.Address, amount *big.Int, ...) (*types.Transaction, error)
- func (_EthereumBridge *EthereumBridgeTransactor) SendNative(opts *bind.TransactOpts, receiver common.Address) (*types.Transaction, error)
- type EthereumBridgeTransactorRaw
- type EthereumBridgeTransactorSession
- func (_EthereumBridge *EthereumBridgeTransactorSession) Configure(messengerAddress common.Address) (*types.Transaction, error)
- func (_EthereumBridge *EthereumBridgeTransactorSession) Fallback(calldata []byte) (*types.Transaction, error)
- func (_EthereumBridge *EthereumBridgeTransactorSession) Initialize(messenger common.Address, remoteBridge common.Address) (*types.Transaction, error)
- func (_EthereumBridge *EthereumBridgeTransactorSession) OnCreateTokenCommand(crossChainAddress common.Address, name string, symbol string) (*types.Transaction, error)
- func (_EthereumBridge *EthereumBridgeTransactorSession) Receive() (*types.Transaction, error)
- func (_EthereumBridge *EthereumBridgeTransactorSession) ReceiveAssets(asset common.Address, amount *big.Int, receiver common.Address) (*types.Transaction, error)
- func (_EthereumBridge *EthereumBridgeTransactorSession) SendERC20(asset common.Address, amount *big.Int, receiver common.Address) (*types.Transaction, error)
- func (_EthereumBridge *EthereumBridgeTransactorSession) SendNative(receiver common.Address) (*types.Transaction, error)
Constants ¶
This section is empty.
Variables ¶
var EthereumBridgeABI = EthereumBridgeMetaData.ABI
EthereumBridgeABI is the input ABI used to generate the binding from. Deprecated: Use EthereumBridgeMetaData.ABI instead.
var EthereumBridgeBin = EthereumBridgeMetaData.Bin
EthereumBridgeBin is the compiled bytecode used for deploying new contracts. Deprecated: Use EthereumBridgeMetaData.Bin instead.
var EthereumBridgeMetaData = &bind.MetaData{
ABI: "[{\"inputs\":[],\"name\":\"InvalidInitialization\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotInitializing\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"remoteAddress\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"localAddress\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"symbol\",\"type\":\"string\"}],\"name\":\"CreatedWrappedToken\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint64\",\"name\":\"version\",\"type\":\"uint64\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"stateMutability\":\"payable\",\"type\":\"fallback\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"messengerAddress\",\"type\":\"address\"}],\"name\":\"configure\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"erc20Fee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"wrappedToken\",\"type\":\"address\"}],\"name\":\"hasTokenMapping\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"messenger\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"remoteBridge\",\"type\":\"address\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"localToRemoteToken\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"crossChainAddress\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"symbol\",\"type\":\"string\"}],\"name\":\"onCreateTokenCommand\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"}],\"name\":\"receiveAssets\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"remoteToLocalToken\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"}],\"name\":\"sendERC20\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"}],\"name\":\"sendNative\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"valueTransferFee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"wrappedTokens\",\"outputs\":[{\"internalType\":\"contractWrappedERC20\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}]",
Bin: "0x60806040526001805463ffffffff60a01b19169055348015601e575f5ffd5b50612a1a8061002c5f395ff3fe6080604052600436106100c9575f3560e01c806375cb2672116100735780639e405b711161004d5780639e405b7114610249578063a381c8e21461027d578063d5c6b50414610290576100ef565b806375cb2672146101c557806383bece4d146101e45780639813c7b214610203576100ef565b8063458ffd63116100a4578063458ffd6314610187578063485cc955146101a65780636a17539014610151576100ef565b80628d48e31461010757806307d7fb9a146101515780631888d71214610172576100ef565b366100ef5760405162461bcd60e51b81526004016100e690610daa565b60405180910390fd5b60405162461bcd60e51b81526004016100e690610df4565b348015610112575f5ffd5b5061013b610121366004610e35565b60046020525f90815260409020546001600160a01b031681565b6040516101489190610e68565b60405180910390f35b34801561015c575f5ffd5b506101656102d1565b6040516101489190610e7c565b610185610180366004610e35565b610347565b005b348015610192575f5ffd5b506101856101a1366004610ed8565b61046d565b3480156101b1575f5ffd5b506101856101c0366004610f5f565b6105c1565b3480156101d0575f5ffd5b506101856101df366004610e35565b61072a565b3480156101ef575f5ffd5b506101856101fe366004610fa6565b610802565b34801561020e575f5ffd5b5061023c61021d366004610e35565b6001600160a01b039081165f9081526002602052604090205416151590565b6040516101489190610ff4565b348015610254575f5ffd5b5061013b610263366004610e35565b60036020525f90815260409020546001600160a01b031681565b61018561028b366004610fa6565b610930565b34801561029b575f5ffd5b506102c46102aa366004610e35565b60026020525f90815260409020546001600160a01b031681565b604051610148919061101f565b5f6102e46001546001600160a01b031690565b6001600160a01b031662a1b8156040518163ffffffff1660e01b8152600401602060405180830381865afa15801561031e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103429190611038565b905090565b5f34116103665760405162461bcd60e51b81526004016100e690611087565b6001546001600160a01b03166001600160a01b031662a1b8156040518163ffffffff1660e01b8152600401602060405180830381865afa1580156103ac573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103d09190611038565b3410156103ef5760405162461bcd60e51b81526004016100e6906110ef565b6001546040517f346633fb0000000000000000000000000000000000000000000000000000000081526001600160a01b039091169063346633fb90349061043c90859083906004016110ff565b5f604051808303818588803b158015610453575f5ffd5b505af1158015610465573d5f5f3e3d5ffd5b505050505050565b6005545f546001600160a01b039182169116331461049d5760405162461bcd60e51b81526004016100e690611172565b806001600160a01b03166104af610b52565b6001600160a01b0316146104d55760405162461bcd60e51b81526004016100e6906111da565b5f858585856040516104e690610d43565b6104f39493929190611215565b604051809103905ff08015801561050c573d5f5f3e3d5ffd5b506001600160a01b038082165f818152600260209081526040808320805473ffffffffffffffffffffffffffffffffffffffff199081168617909155600383528184208054968f169682168717905594835260049091529081902080549093169091179091555190915081907f30c05779f384e0ae9d43bbf7ec4417f28bdc53d02a35551b6eb270a9c4c71dca906105af908a9084908b908b908b908b90611246565b60405180910390a15050505050505050565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000810460ff16159067ffffffffffffffff165f8115801561060b5750825b90505f8267ffffffffffffffff1660011480156106275750303b155b905081158015610635575080155b1561066c576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b845467ffffffffffffffff1916600117855583156106a057845468ff00000000000000001916680100000000000000001785555b6106a98761072a565b6005805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b038816179055831561072157845468ff0000000000000000191685556040517fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d290610718906001906112af565b60405180910390a15b50505050505050565b610732610bc6565b5f805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b038316908117909155604080517fa1a227fa000000000000000000000000000000000000000000000000000000008152905163a1a227fa916004808201926020929091908290030181865afa1580156107ae573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107d291906112c8565b6001805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b039290921691909117905550565b6005545f546001600160a01b03918216911633146108325760405162461bcd60e51b81526004016100e690611172565b806001600160a01b0316610844610b52565b6001600160a01b03161461086a5760405162461bcd60e51b81526004016100e6906111da565b6001600160a01b038085165f908152600460209081526040808320548416808452600290925290912054909116806108b45760405162461bcd60e51b81526004016100e69061133d565b6040517f979005ad0000000000000000000000000000000000000000000000000000000081526001600160a01b0382169063979005ad906108fb90879089906004016110ff565b5f604051808303815f87803b158015610912575f5ffd5b505af1158015610924573d5f5f3e3d5ffd5b50505050505050505050565b6001600160a01b038084165f90815260026020526040902054166109665760405162461bcd60e51b81526004016100e69061137f565b6001600160a01b038084165f90815260026020526040908190205490517f1dd319cb0000000000000000000000000000000000000000000000000000000081529116908190631dd319cb906109c190339087906004016110ff565b5f604051808303815f87803b1580156109d8575f5ffd5b505af11580156109ea573d5f5f3e3d5ffd5b5050506001600160a01b038086165f908152600360205260408082205490519193507f83bece4d0000000000000000000000000000000000000000000000000000000092610a41929116908790879060240161138f565b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909316929092179091529050610ab46001546001600160a01b031690565b6001600160a01b031662a1b8156040518163ffffffff1660e01b8152600401602060405180830381865afa158015610aee573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610b129190611038565b341015610b315760405162461bcd60e51b81526004016100e690611417565b600554610b4b906001600160a01b0316825f5f5f34610c2f565b5050505050565b5f5f5f9054906101000a90046001600160a01b03166001600160a01b03166363012de56040518163ffffffff1660e01b8152600401602060405180830381865afa158015610ba2573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061034291906112c8565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005468010000000000000000900460ff16610c2d576040517fd7e6bcf800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b5f6040518060600160405280886001600160a01b0316815260200187815260200185815250604051602001610c6491906114ab565b60408051808303601f19018152919052600180549192506001600160a01b0382169163b1454caa91859174010000000000000000000000000000000000000000900463ffffffff16906014610cb8836114e9565b91906101000a81548163ffffffff021916908363ffffffff1602179055508885886040518663ffffffff1660e01b8152600401610cf89493929190611520565b60206040518083038185885af1158015610d14573d5f5f3e3d5ffd5b50505050506040513d601f19601f82011682018060405250810190610d399190611580565b5050505050505050565b6114478061159e83390190565b60238152602081017f436f6e747261637420646f6573206e6f7420737570706f72742072656365697681527f6528290000000000000000000000000000000000000000000000000000000000602082015290505b60400190565b60208082528101610dba81610d50565b92915050565b601d8152602081017f66616c6c6261636b2829206d6574686f6420756e737570706f72746564000000815290505b60200190565b60208082528101610dba81610dc0565b5f6001600160a01b038216610dba565b610e1d81610e04565b8114610e27575f5ffd5b50565b8035610dba81610e14565b5f60208284031215610e4857610e485f5ffd5b610e528383610e2a565b9392505050565b610e6281610e04565b82525050565b60208101610dba8284610e59565b80610e62565b60208101610dba8284610e76565b5f5f83601f840112610e9d57610e9d5f5ffd5b50813567ffffffffffffffff811115610eb757610eb75f5ffd5b602083019150836001820283011115610ed157610ed15f5ffd5b9250929050565b5f5f5f5f5f60608688031215610eef57610eef5f5ffd5b610ef98787610e2a565b9450602086013567ffffffffffffffff811115610f1757610f175f5ffd5b610f2388828901610e8a565b9450945050604086013567ffffffffffffffff811115610f4457610f445f5ffd5b610f5088828901610e8a565b92509250509295509295909350565b5f5f60408385031215610f7357610f735f5ffd5b610f7d8484610e2a565b9150610f8c8460208501610e2a565b90509250929050565b80610e1d565b8035610dba81610f95565b5f5f5f60608486031215610fbb57610fbb5f5ffd5b610fc58585610e2a565b9250610fd48560208601610f9b565b9150610fe38560408601610e2a565b90509250925092565b801515610e62565b60208101610dba8284610fec565b5f610dba82610e04565b5f610dba82611002565b610e628161100c565b60208101610dba8284611016565b8051610dba81610f95565b5f6020828403121561104b5761104b5f5ffd5b610e52838361102d565b600d8152602081017f4e6f7468696e672073656e742e0000000000000000000000000000000000000081529050610dee565b60208082528101610dba81611055565b602c8152602081017f496e73756666696369656e742066756e647320746f207075626c69736820766181527f6c7565207472616e73666572000000000000000000000000000000000000000060208201529050610da4565b60208082528101610dba81611097565b6040810161110d8285610e59565b610e526020830184610e76565b60308152602081017f436f6e74726163742063616c6c6572206973206e6f742074686520726567697381527f7465726564206d657373656e676572210000000000000000000000000000000060208201529050610da4565b60208082528101610dba8161111a565b60318152602081017f43726f737320636861696e206d65737361676520636f6d696e672066726f6d2081527f696e636f72726563742073656e6465722100000000000000000000000000000060208201529050610da4565b60208082528101610dba81611182565b82818337505f910152565b8183526020830192506112098284836111ea565b50601f01601f19160190565b604080825281016112278186886111f5565b9050818103602083015261123c8184866111f5565b9695505050505050565b608081016112548289610e59565b6112616020830188610e59565b81810360408301526112748186886111f5565b905081810360608301526112898184866111f5565b98975050505050505050565b5f67ffffffffffffffff8216610dba565b610e6281611295565b60208101610dba82846112a6565b8051610dba81610e14565b5f602082840312156112db576112db5f5ffd5b610e5283836112bd565b602b8152602081017f526563656976696e672061737365747320666f7220756e6b6e6f776e2077726181527f7070656420746f6b656e2100000000000000000000000000000000000000000060208201529050610da4565b60208082528101610dba816112e5565b60158152602081017f4e6f206d617070696e6720666f7220746f6b656e2e000000000000000000000081529050610dee565b60208082528101610dba8161134d565b6060810161139d8286610e59565b6113aa6020830185610e76565b6113b76040830184610e59565b949350505050565b60258152602081017f496e73756666696369656e742066756e647320746f207075626c697368206d6581527f737361676500000000000000000000000000000000000000000000000000000060208201529050610da4565b60208082528101610dba816113bf565b8281835e505f910152565b5f61143b825190565b808452602084019350611452818560208601611427565b601f01601f19169290920192915050565b80515f9060608401906114768582610e59565b506020830151848203602086015261148e8282611432565b91505060408301516114a36040860182610e76565b509392505050565b60208082528101610e528184611463565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b63ffffffff165f63fffffffe198201611504576115046114bc565b5060010190565b63ffffffff8116610e62565b60ff8116610e62565b6080810161152e828761150b565b61153b602083018661150b565b818103604083015261154d8185611432565b905061155c6060830184611517565b95945050505050565b67ffffffffffffffff8116610e1d565b8051610dba81611565565b5f60208284031215611593576115935f5ffd5b610e52838361157556fe6080604052600580546001600160a01b03191673deb34a740eca1ec42c8b8204cbec0ba34fdd27f3179055348015610035575f5ffd5b5060405161144738038061144783398101604081905261005491610251565b818181816003610064838261039e565b506004610071828261039e565b50505050506100a67fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775336100ae60201b60201c565b505050610459565b5f8281526007602090815260408083206001600160a01b038516845290915281205460ff16610152575f8381526007602090815260408083206001600160a01b03861684529091529020805460ff1916600117905561010a3390565b6001600160a01b0316826001600160a01b0316847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a4506001610155565b505f5b92915050565b634e487b7160e01b5f52604160045260245ffd5b601f19601f83011681016001600160401b03811182821017156101945761019461015b565b6040525050565b5f6101a560405190565b90506101b1828261016f565b919050565b5f6001600160401b038211156101ce576101ce61015b565b601f19601f83011660200192915050565b8281835e505f910152565b5f6101fc6101f7846101b6565b61019b565b9050828152838383011115610212576102125f5ffd5b6102208360208301846101df565b9392505050565b5f82601f830112610239576102395f5ffd5b81516102498482602086016101ea565b949350505050565b5f5f60408385031215610265576102655f5ffd5b82516001600160401b0381111561027d5761027d5f5ffd5b61028985828601610227565b602085015190935090506001600160401b038111156102a9576102a95f5ffd5b6102b585828601610227565b9150509250929050565b634e487b7160e01b5f52602260045260245ffd5b6002810460018216806102e757607f821691505b6020821081036102f9576102f96102bf565b50919050565b5f61015561030a8381565b90565b610316836102ff565b81545f1960089490940293841b1916921b91909117905550565b5f61033c81848461030d565b505050565b8181101561035b576103535f82610330565b600101610341565b5050565b601f82111561033c575f818152602090206020601f850104810160208510156103855750805b6103976020601f860104830182610341565b5050505050565b81516001600160401b038111156103b7576103b761015b565b6103c182546102d3565b6103cc82828561035f565b506020601f8211600181146103ff575f83156103e85750848201515b5f19600885021c1981166002850217855550610397565b5f84815260208120601f198516915b8281101561042e578785015182556020948501946001909201910161040e565b508482101561044a57838701515f19601f87166008021c191681555b50505050600202600101905550565b610fe1806104665f395ff3fe608060405234801561000f575f5ffd5b5060043610610149575f3560e01c806336568abe116100c7578063979005ad1161007d578063a9059cbb11610063578063a9059cbb146102c2578063d547741f146102d5578063dd62ed3e146102e8575f5ffd5b8063979005ad146102a8578063a217fddf146102bb575f5ffd5b806375b238fc116100ad57806375b238fc1461024157806391d148541461026857806395d89b41146102a0575f5ffd5b806336568abe1461021b57806370a082311461022e575f5ffd5b80631dd319cb1161011c578063248a9ca311610102578063248a9ca3146101d75780632f2ff15d146101f9578063313ce5671461020c575f5ffd5b80631dd319cb146101af57806323b872dd146101c4575f5ffd5b806301ffc9a71461014d57806306fdde0314610176578063095ea7b31461018b57806318160ddd1461019e575b5f5ffd5b61016061015b366004610c18565b6102fb565b60405161016d9190610c3f565b60405180910390f35b61017e610393565b60405161016d9190610c89565b610160610199366004610ccf565b610423565b6002545b60405161016d9190610d0b565b6101c26101bd366004610ccf565b61043a565b005b6101606101d2366004610d19565b6104a4565b6101a26101e5366004610d5f565b5f9081526007602052604090206001015490565b6101c2610207366004610d7c565b6104c9565b601260405161016d9190610db2565b6101c2610229366004610d7c565b6104f3565b6101a261023c366004610dc0565b61053f565b6101a27fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177581565b610160610276366004610d7c565b5f9182526007602090815260408084206001600160a01b0393909316845291905290205460ff1690565b61017e6105b2565b6101c26102b6366004610ccf565b6105c1565b6101a25f81565b6101606102d0366004610ccf565b6105f5565b6101c26102e3366004610d7c565b610602565b6101a26102f6366004610ddd565b610626565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b00000000000000000000000000000000000000000000000000000000148061038d57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b6060600380546103a290610e0f565b80601f01602080910402602001604051908101604052809291908181526020018280546103ce90610e0f565b80156104195780601f106103f057610100808354040283529160200191610419565b820191905f5260205f20905b8154815290600101906020018083116103fc57829003601f168201915b5050505050905090565b5f336104308185856106de565b5060019392505050565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775610464816106eb565b8161046e8461053f565b10156104955760405162461bcd60e51b815260040161048c90610e6f565b60405180910390fd5b61049f83836106f8565b505050565b5f336104b1858285610730565b6104bc858585610793565b60019150505b9392505050565b5f828152600760205260409020600101546104e3816106eb565b6104ed83836107f0565b50505050565b6001600160a01b0381163314610535576040517f6697b23200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61049f828261089b565b5f6001600160a01b038216320361056d576001600160a01b0382165f9081526020819052604090205461038d565b6001600160a01b038216330361059a576001600160a01b0382165f9081526020819052604090205461038d565b60405162461bcd60e51b815260040161048c90610eb1565b6060600480546103a290610e0f565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c217756105eb816106eb565b61049f8383610920565b5f33610430818585610793565b5f8281526007602052604090206001015461061c816106eb565b6104ed838361089b565b5f326001600160a01b03841614806106465750326001600160a01b038316145b15610678576001600160a01b038084165f908152600160209081526040808320938616835292905220545b905061038d565b336001600160a01b03841614806106975750336001600160a01b038316145b156106c6576001600160a01b038084165f90815260016020908152604080832093861683529290522054610671565b60405162461bcd60e51b815260040161048c90610ec1565b61049f8383836001610954565b6106f58133610a56565b50565b6001600160a01b038216610721575f604051634b637e8f60e11b815260040161048c9190610f2b565b61072c825f83610ab5565b5050565b5f61073b8484610626565b90505f1981146104ed5781811015610785578281836040517ffb8f41b200000000000000000000000000000000000000000000000000000000815260040161048c93929190610f39565b6104ed84848484035f610954565b6001600160a01b0383166107bc575f604051634b637e8f60e11b815260040161048c9190610f2b565b6001600160a01b0382166107e5575f60405163ec442f0560e01b815260040161048c9190610f2b565b61049f838383610ab5565b5f8281526007602090815260408083206001600160a01b038516845290915281205460ff16610894575f8381526007602090815260408083206001600160a01b03861684529091529020805460ff1916600117905561084c3390565b6001600160a01b0316826001600160a01b0316847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a450600161038d565b505f61038d565b5f8281526007602090815260408083206001600160a01b038516845290915281205460ff1615610894575f8381526007602090815260408083206001600160a01b0386168085529252808320805460ff1916905551339286917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a450600161038d565b6001600160a01b038216610949575f60405163ec442f0560e01b815260040161048c9190610f2b565b61072c5f8383610ab5565b6001600160a01b038416610996575f6040517fe602df0500000000000000000000000000000000000000000000000000000000815260040161048c9190610f2b565b6001600160a01b0383166109d8575f6040517f94280d6200000000000000000000000000000000000000000000000000000000815260040161048c9190610f2b565b6001600160a01b038085165f90815260016020908152604080832093871683529290522082905580156104ed57826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051610a489190610d0b565b60405180910390a350505050565b5f8281526007602090815260408083206001600160a01b038516845290915290205460ff1661072c5780826040517fe2517d3f00000000000000000000000000000000000000000000000000000000815260040161048c929190610f69565b6001600160a01b038316610adf578060025f828254610ad49190610f98565b90915550610b559050565b6001600160a01b0383165f9081526020819052604090205481811015610b37578381836040517fe450d38c00000000000000000000000000000000000000000000000000000000815260040161048c93929190610f39565b6001600160a01b0384165f9081526020819052604090209082900390555b6001600160a01b038216610b7157600280548290039055610b8f565b6001600160a01b0382165f9081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051610bd29190610d0b565b60405180910390a3505050565b7fffffffff0000000000000000000000000000000000000000000000000000000081165b81146106f5575f5ffd5b803561038d81610bdf565b5f60208284031215610c2b57610c2b5f5ffd5b6104c28383610c0d565b8015155b82525050565b6020810161038d8284610c35565b8281835e505f910152565b5f610c61825190565b808452602084019350610c78818560208601610c4d565b601f01601f19169290920192915050565b602080825281016104c28184610c58565b5f6001600160a01b03821661038d565b610c0381610c9a565b803561038d81610caa565b80610c03565b803561038d81610cbe565b5f5f60408385031215610ce357610ce35f5ffd5b610ced8484610cb3565b9150610cfc8460208501610cc4565b90509250929050565b80610c39565b6020810161038d8284610d05565b5f5f5f60608486031215610d2e57610d2e5f5ffd5b610d388585610cb3565b9250610d478560208601610cb3565b9150610d568560408601610cc4565b90509250925092565b5f60208284031215610d7257610d725f5ffd5b6104c28383610cc4565b5f5f60408385031215610d9057610d905f5ffd5b610d9a8484610cc4565b9150610cfc8460208501610cb3565b60ff8116610c39565b6020810161038d8284610da9565b5f60208284031215610dd357610dd35f5ffd5b6104c28383610cb3565b5f5f60408385031215610df157610df15f5ffd5b610d9a8484610cb3565b634e487b7160e01b5f52602260045260245ffd5b600281046001821680610e2357607f821691505b602082108103610e3557610e35610dfb565b50919050565b60158152602081017f496e73756666696369656e742062616c616e63652e0000000000000000000000815290505b60200190565b6020808252810161038d81610e3b565b601f8152602081017f4e6f7420616c6c6f77656420746f2072656164207468652062616c616e63650081529050610e69565b6020808252810161038d81610e7f565b6020808252810161038d81602181527f4e6f7420616c6c6f77656420746f20726561642074686520616c6c6f77616e6360208201527f6500000000000000000000000000000000000000000000000000000000000000604082015260600190565b610c3981610c9a565b6020810161038d8284610f22565b60608101610f478286610f22565b610f546020830185610d05565b610f616040830184610d05565b949350505050565b60408101610f778285610f22565b6104c26020830184610d05565b634e487b7160e01b5f52601160045260245ffd5b8082018082111561038d5761038d610f8456fea2646970667358221220ba6b4996116e560a54ab485db6a674eeef7255da269323f7a3bdf4b4aa8995c964736f6c634300081c0033a2646970667358221220a50eef4d7c37697b5da0a8a5a57fc72aa1999ba80341ff7e20ddd1d9b045cb5964736f6c634300081c0033",
}
EthereumBridgeMetaData contains all meta data concerning the EthereumBridge contract.
Functions ¶
This section is empty.
Types ¶
type EthereumBridge ¶
type EthereumBridge struct { EthereumBridgeCaller // Read-only binding to the contract EthereumBridgeTransactor // Write-only binding to the contract EthereumBridgeFilterer // Log filterer for contract events }
EthereumBridge is an auto generated Go binding around an Ethereum contract.
func DeployEthereumBridge ¶
func DeployEthereumBridge(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *EthereumBridge, error)
DeployEthereumBridge deploys a new Ethereum contract, binding an instance of EthereumBridge to it.
func NewEthereumBridge ¶
func NewEthereumBridge(address common.Address, backend bind.ContractBackend) (*EthereumBridge, error)
NewEthereumBridge creates a new instance of EthereumBridge, bound to a specific deployed contract.
type EthereumBridgeCaller ¶
type EthereumBridgeCaller struct {
// contains filtered or unexported fields
}
EthereumBridgeCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewEthereumBridgeCaller ¶
func NewEthereumBridgeCaller(address common.Address, caller bind.ContractCaller) (*EthereumBridgeCaller, error)
NewEthereumBridgeCaller creates a new read-only instance of EthereumBridge, bound to a specific deployed contract.
func (*EthereumBridgeCaller) Erc20Fee ¶ added in v1.0.0
Erc20Fee is a free data retrieval call binding the contract method 0x07d7fb9a.
Solidity: function erc20Fee() view returns(uint256)
func (*EthereumBridgeCaller) HasTokenMapping ¶
func (_EthereumBridge *EthereumBridgeCaller) HasTokenMapping(opts *bind.CallOpts, wrappedToken common.Address) (bool, error)
HasTokenMapping is a free data retrieval call binding the contract method 0x9813c7b2.
Solidity: function hasTokenMapping(address wrappedToken) view returns(bool)
func (*EthereumBridgeCaller) LocalToRemoteToken ¶
func (_EthereumBridge *EthereumBridgeCaller) LocalToRemoteToken(opts *bind.CallOpts, arg0 common.Address) (common.Address, error)
LocalToRemoteToken is a free data retrieval call binding the contract method 0x9e405b71.
Solidity: function localToRemoteToken(address ) view returns(address)
func (*EthereumBridgeCaller) RemoteToLocalToken ¶
func (_EthereumBridge *EthereumBridgeCaller) RemoteToLocalToken(opts *bind.CallOpts, arg0 common.Address) (common.Address, error)
RemoteToLocalToken is a free data retrieval call binding the contract method 0x008d48e3.
Solidity: function remoteToLocalToken(address ) view returns(address)
func (*EthereumBridgeCaller) ValueTransferFee ¶ added in v1.0.0
func (_EthereumBridge *EthereumBridgeCaller) ValueTransferFee(opts *bind.CallOpts) (*big.Int, error)
ValueTransferFee is a free data retrieval call binding the contract method 0x6a175390.
Solidity: function valueTransferFee() view returns(uint256)
func (*EthereumBridgeCaller) WrappedTokens ¶
func (_EthereumBridge *EthereumBridgeCaller) WrappedTokens(opts *bind.CallOpts, arg0 common.Address) (common.Address, error)
WrappedTokens is a free data retrieval call binding the contract method 0xd5c6b504.
Solidity: function wrappedTokens(address ) view returns(address)
type EthereumBridgeCallerRaw ¶
type EthereumBridgeCallerRaw struct {
Contract *EthereumBridgeCaller // Generic read-only contract binding to access the raw methods on
}
EthereumBridgeCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*EthereumBridgeCallerRaw) Call ¶
func (_EthereumBridge *EthereumBridgeCallerRaw) 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 EthereumBridgeCallerSession ¶
type EthereumBridgeCallerSession struct { Contract *EthereumBridgeCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
EthereumBridgeCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*EthereumBridgeCallerSession) Erc20Fee ¶ added in v1.0.0
func (_EthereumBridge *EthereumBridgeCallerSession) Erc20Fee() (*big.Int, error)
Erc20Fee is a free data retrieval call binding the contract method 0x07d7fb9a.
Solidity: function erc20Fee() view returns(uint256)
func (*EthereumBridgeCallerSession) HasTokenMapping ¶
func (_EthereumBridge *EthereumBridgeCallerSession) HasTokenMapping(wrappedToken common.Address) (bool, error)
HasTokenMapping is a free data retrieval call binding the contract method 0x9813c7b2.
Solidity: function hasTokenMapping(address wrappedToken) view returns(bool)
func (*EthereumBridgeCallerSession) LocalToRemoteToken ¶
func (_EthereumBridge *EthereumBridgeCallerSession) LocalToRemoteToken(arg0 common.Address) (common.Address, error)
LocalToRemoteToken is a free data retrieval call binding the contract method 0x9e405b71.
Solidity: function localToRemoteToken(address ) view returns(address)
func (*EthereumBridgeCallerSession) RemoteToLocalToken ¶
func (_EthereumBridge *EthereumBridgeCallerSession) RemoteToLocalToken(arg0 common.Address) (common.Address, error)
RemoteToLocalToken is a free data retrieval call binding the contract method 0x008d48e3.
Solidity: function remoteToLocalToken(address ) view returns(address)
func (*EthereumBridgeCallerSession) ValueTransferFee ¶ added in v1.0.0
func (_EthereumBridge *EthereumBridgeCallerSession) ValueTransferFee() (*big.Int, error)
ValueTransferFee is a free data retrieval call binding the contract method 0x6a175390.
Solidity: function valueTransferFee() view returns(uint256)
func (*EthereumBridgeCallerSession) WrappedTokens ¶
func (_EthereumBridge *EthereumBridgeCallerSession) WrappedTokens(arg0 common.Address) (common.Address, error)
WrappedTokens is a free data retrieval call binding the contract method 0xd5c6b504.
Solidity: function wrappedTokens(address ) view returns(address)
type EthereumBridgeCreatedWrappedToken ¶
type EthereumBridgeCreatedWrappedToken struct { RemoteAddress common.Address LocalAddress common.Address Name string Symbol string Raw types.Log // Blockchain specific contextual infos }
EthereumBridgeCreatedWrappedToken represents a CreatedWrappedToken event raised by the EthereumBridge contract.
type EthereumBridgeCreatedWrappedTokenIterator ¶
type EthereumBridgeCreatedWrappedTokenIterator struct { Event *EthereumBridgeCreatedWrappedToken // Event containing the contract specifics and raw log // contains filtered or unexported fields }
EthereumBridgeCreatedWrappedTokenIterator is returned from FilterCreatedWrappedToken and is used to iterate over the raw logs and unpacked data for CreatedWrappedToken events raised by the EthereumBridge contract.
func (*EthereumBridgeCreatedWrappedTokenIterator) Close ¶
func (it *EthereumBridgeCreatedWrappedTokenIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*EthereumBridgeCreatedWrappedTokenIterator) Error ¶
func (it *EthereumBridgeCreatedWrappedTokenIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*EthereumBridgeCreatedWrappedTokenIterator) Next ¶
func (it *EthereumBridgeCreatedWrappedTokenIterator) 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 EthereumBridgeFilterer ¶
type EthereumBridgeFilterer struct {
// contains filtered or unexported fields
}
EthereumBridgeFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewEthereumBridgeFilterer ¶
func NewEthereumBridgeFilterer(address common.Address, filterer bind.ContractFilterer) (*EthereumBridgeFilterer, error)
NewEthereumBridgeFilterer creates a new log filterer instance of EthereumBridge, bound to a specific deployed contract.
func (*EthereumBridgeFilterer) FilterCreatedWrappedToken ¶
func (_EthereumBridge *EthereumBridgeFilterer) FilterCreatedWrappedToken(opts *bind.FilterOpts) (*EthereumBridgeCreatedWrappedTokenIterator, error)
FilterCreatedWrappedToken is a free log retrieval operation binding the contract event 0x30c05779f384e0ae9d43bbf7ec4417f28bdc53d02a35551b6eb270a9c4c71dca.
Solidity: event CreatedWrappedToken(address remoteAddress, address localAddress, string name, string symbol)
func (*EthereumBridgeFilterer) FilterInitialized ¶ added in v0.21.0
func (_EthereumBridge *EthereumBridgeFilterer) FilterInitialized(opts *bind.FilterOpts) (*EthereumBridgeInitializedIterator, error)
FilterInitialized is a free log retrieval operation binding the contract event 0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2.
Solidity: event Initialized(uint64 version)
func (*EthereumBridgeFilterer) ParseCreatedWrappedToken ¶
func (_EthereumBridge *EthereumBridgeFilterer) ParseCreatedWrappedToken(log types.Log) (*EthereumBridgeCreatedWrappedToken, error)
ParseCreatedWrappedToken is a log parse operation binding the contract event 0x30c05779f384e0ae9d43bbf7ec4417f28bdc53d02a35551b6eb270a9c4c71dca.
Solidity: event CreatedWrappedToken(address remoteAddress, address localAddress, string name, string symbol)
func (*EthereumBridgeFilterer) ParseInitialized ¶ added in v0.21.0
func (_EthereumBridge *EthereumBridgeFilterer) ParseInitialized(log types.Log) (*EthereumBridgeInitialized, error)
ParseInitialized is a log parse operation binding the contract event 0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2.
Solidity: event Initialized(uint64 version)
func (*EthereumBridgeFilterer) WatchCreatedWrappedToken ¶
func (_EthereumBridge *EthereumBridgeFilterer) WatchCreatedWrappedToken(opts *bind.WatchOpts, sink chan<- *EthereumBridgeCreatedWrappedToken) (event.Subscription, error)
WatchCreatedWrappedToken is a free log subscription operation binding the contract event 0x30c05779f384e0ae9d43bbf7ec4417f28bdc53d02a35551b6eb270a9c4c71dca.
Solidity: event CreatedWrappedToken(address remoteAddress, address localAddress, string name, string symbol)
func (*EthereumBridgeFilterer) WatchInitialized ¶ added in v0.21.0
func (_EthereumBridge *EthereumBridgeFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *EthereumBridgeInitialized) (event.Subscription, error)
WatchInitialized is a free log subscription operation binding the contract event 0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2.
Solidity: event Initialized(uint64 version)
type EthereumBridgeInitialized ¶ added in v0.21.0
type EthereumBridgeInitialized struct { Version uint64 Raw types.Log // Blockchain specific contextual infos }
EthereumBridgeInitialized represents a Initialized event raised by the EthereumBridge contract.
type EthereumBridgeInitializedIterator ¶ added in v0.21.0
type EthereumBridgeInitializedIterator struct { Event *EthereumBridgeInitialized // Event containing the contract specifics and raw log // contains filtered or unexported fields }
EthereumBridgeInitializedIterator is returned from FilterInitialized and is used to iterate over the raw logs and unpacked data for Initialized events raised by the EthereumBridge contract.
func (*EthereumBridgeInitializedIterator) Close ¶ added in v0.21.0
func (it *EthereumBridgeInitializedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*EthereumBridgeInitializedIterator) Error ¶ added in v0.21.0
func (it *EthereumBridgeInitializedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*EthereumBridgeInitializedIterator) Next ¶ added in v0.21.0
func (it *EthereumBridgeInitializedIterator) 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 EthereumBridgeRaw ¶
type EthereumBridgeRaw struct {
Contract *EthereumBridge // Generic contract binding to access the raw methods on
}
EthereumBridgeRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*EthereumBridgeRaw) Call ¶
func (_EthereumBridge *EthereumBridgeRaw) 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 (*EthereumBridgeRaw) Transact ¶
func (_EthereumBridge *EthereumBridgeRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*EthereumBridgeRaw) Transfer ¶
func (_EthereumBridge *EthereumBridgeRaw) 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 EthereumBridgeSession ¶
type EthereumBridgeSession struct { Contract *EthereumBridge // 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 }
EthereumBridgeSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*EthereumBridgeSession) Configure ¶
func (_EthereumBridge *EthereumBridgeSession) Configure(messengerAddress common.Address) (*types.Transaction, error)
Configure is a paid mutator transaction binding the contract method 0x75cb2672.
Solidity: function configure(address messengerAddress) returns()
func (*EthereumBridgeSession) Erc20Fee ¶ added in v1.0.0
func (_EthereumBridge *EthereumBridgeSession) Erc20Fee() (*big.Int, error)
Erc20Fee is a free data retrieval call binding the contract method 0x07d7fb9a.
Solidity: function erc20Fee() view returns(uint256)
func (*EthereumBridgeSession) Fallback ¶
func (_EthereumBridge *EthereumBridgeSession) Fallback(calldata []byte) (*types.Transaction, error)
Fallback is a paid mutator transaction binding the contract fallback function.
Solidity: fallback() payable returns()
func (*EthereumBridgeSession) HasTokenMapping ¶
func (_EthereumBridge *EthereumBridgeSession) HasTokenMapping(wrappedToken common.Address) (bool, error)
HasTokenMapping is a free data retrieval call binding the contract method 0x9813c7b2.
Solidity: function hasTokenMapping(address wrappedToken) view returns(bool)
func (*EthereumBridgeSession) Initialize ¶
func (_EthereumBridge *EthereumBridgeSession) Initialize(messenger common.Address, remoteBridge common.Address) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0x485cc955.
Solidity: function initialize(address messenger, address remoteBridge) returns()
func (*EthereumBridgeSession) LocalToRemoteToken ¶
func (_EthereumBridge *EthereumBridgeSession) LocalToRemoteToken(arg0 common.Address) (common.Address, error)
LocalToRemoteToken is a free data retrieval call binding the contract method 0x9e405b71.
Solidity: function localToRemoteToken(address ) view returns(address)
func (*EthereumBridgeSession) OnCreateTokenCommand ¶
func (_EthereumBridge *EthereumBridgeSession) OnCreateTokenCommand(crossChainAddress common.Address, name string, symbol string) (*types.Transaction, error)
OnCreateTokenCommand is a paid mutator transaction binding the contract method 0x458ffd63.
Solidity: function onCreateTokenCommand(address crossChainAddress, string name, string symbol) returns()
func (*EthereumBridgeSession) Receive ¶
func (_EthereumBridge *EthereumBridgeSession) Receive() (*types.Transaction, error)
Receive is a paid mutator transaction binding the contract receive function.
Solidity: receive() payable returns()
func (*EthereumBridgeSession) ReceiveAssets ¶
func (_EthereumBridge *EthereumBridgeSession) ReceiveAssets(asset common.Address, amount *big.Int, receiver common.Address) (*types.Transaction, error)
ReceiveAssets is a paid mutator transaction binding the contract method 0x83bece4d.
Solidity: function receiveAssets(address asset, uint256 amount, address receiver) returns()
func (*EthereumBridgeSession) RemoteToLocalToken ¶
func (_EthereumBridge *EthereumBridgeSession) RemoteToLocalToken(arg0 common.Address) (common.Address, error)
RemoteToLocalToken is a free data retrieval call binding the contract method 0x008d48e3.
Solidity: function remoteToLocalToken(address ) view returns(address)
func (*EthereumBridgeSession) SendERC20 ¶
func (_EthereumBridge *EthereumBridgeSession) SendERC20(asset common.Address, amount *big.Int, receiver common.Address) (*types.Transaction, error)
SendERC20 is a paid mutator transaction binding the contract method 0xa381c8e2.
Solidity: function sendERC20(address asset, uint256 amount, address receiver) payable returns()
func (*EthereumBridgeSession) SendNative ¶
func (_EthereumBridge *EthereumBridgeSession) SendNative(receiver common.Address) (*types.Transaction, error)
SendNative is a paid mutator transaction binding the contract method 0x1888d712.
Solidity: function sendNative(address receiver) payable returns()
func (*EthereumBridgeSession) ValueTransferFee ¶ added in v1.0.0
func (_EthereumBridge *EthereumBridgeSession) ValueTransferFee() (*big.Int, error)
ValueTransferFee is a free data retrieval call binding the contract method 0x6a175390.
Solidity: function valueTransferFee() view returns(uint256)
func (*EthereumBridgeSession) WrappedTokens ¶
func (_EthereumBridge *EthereumBridgeSession) WrappedTokens(arg0 common.Address) (common.Address, error)
WrappedTokens is a free data retrieval call binding the contract method 0xd5c6b504.
Solidity: function wrappedTokens(address ) view returns(address)
type EthereumBridgeTransactor ¶
type EthereumBridgeTransactor struct {
// contains filtered or unexported fields
}
EthereumBridgeTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewEthereumBridgeTransactor ¶
func NewEthereumBridgeTransactor(address common.Address, transactor bind.ContractTransactor) (*EthereumBridgeTransactor, error)
NewEthereumBridgeTransactor creates a new write-only instance of EthereumBridge, bound to a specific deployed contract.
func (*EthereumBridgeTransactor) Configure ¶
func (_EthereumBridge *EthereumBridgeTransactor) Configure(opts *bind.TransactOpts, messengerAddress common.Address) (*types.Transaction, error)
Configure is a paid mutator transaction binding the contract method 0x75cb2672.
Solidity: function configure(address messengerAddress) returns()
func (*EthereumBridgeTransactor) Fallback ¶
func (_EthereumBridge *EthereumBridgeTransactor) Fallback(opts *bind.TransactOpts, calldata []byte) (*types.Transaction, error)
Fallback is a paid mutator transaction binding the contract fallback function.
Solidity: fallback() payable returns()
func (*EthereumBridgeTransactor) Initialize ¶
func (_EthereumBridge *EthereumBridgeTransactor) Initialize(opts *bind.TransactOpts, messenger common.Address, remoteBridge common.Address) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0x485cc955.
Solidity: function initialize(address messenger, address remoteBridge) returns()
func (*EthereumBridgeTransactor) OnCreateTokenCommand ¶
func (_EthereumBridge *EthereumBridgeTransactor) OnCreateTokenCommand(opts *bind.TransactOpts, crossChainAddress common.Address, name string, symbol string) (*types.Transaction, error)
OnCreateTokenCommand is a paid mutator transaction binding the contract method 0x458ffd63.
Solidity: function onCreateTokenCommand(address crossChainAddress, string name, string symbol) returns()
func (*EthereumBridgeTransactor) Receive ¶
func (_EthereumBridge *EthereumBridgeTransactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error)
Receive is a paid mutator transaction binding the contract receive function.
Solidity: receive() payable returns()
func (*EthereumBridgeTransactor) ReceiveAssets ¶
func (_EthereumBridge *EthereumBridgeTransactor) ReceiveAssets(opts *bind.TransactOpts, asset common.Address, amount *big.Int, receiver common.Address) (*types.Transaction, error)
ReceiveAssets is a paid mutator transaction binding the contract method 0x83bece4d.
Solidity: function receiveAssets(address asset, uint256 amount, address receiver) returns()
func (*EthereumBridgeTransactor) SendERC20 ¶
func (_EthereumBridge *EthereumBridgeTransactor) SendERC20(opts *bind.TransactOpts, asset common.Address, amount *big.Int, receiver common.Address) (*types.Transaction, error)
SendERC20 is a paid mutator transaction binding the contract method 0xa381c8e2.
Solidity: function sendERC20(address asset, uint256 amount, address receiver) payable returns()
func (*EthereumBridgeTransactor) SendNative ¶
func (_EthereumBridge *EthereumBridgeTransactor) SendNative(opts *bind.TransactOpts, receiver common.Address) (*types.Transaction, error)
SendNative is a paid mutator transaction binding the contract method 0x1888d712.
Solidity: function sendNative(address receiver) payable returns()
type EthereumBridgeTransactorRaw ¶
type EthereumBridgeTransactorRaw struct {
Contract *EthereumBridgeTransactor // Generic write-only contract binding to access the raw methods on
}
EthereumBridgeTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*EthereumBridgeTransactorRaw) Transact ¶
func (_EthereumBridge *EthereumBridgeTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*EthereumBridgeTransactorRaw) Transfer ¶
func (_EthereumBridge *EthereumBridgeTransactorRaw) 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 EthereumBridgeTransactorSession ¶
type EthereumBridgeTransactorSession struct { Contract *EthereumBridgeTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
EthereumBridgeTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*EthereumBridgeTransactorSession) Configure ¶
func (_EthereumBridge *EthereumBridgeTransactorSession) Configure(messengerAddress common.Address) (*types.Transaction, error)
Configure is a paid mutator transaction binding the contract method 0x75cb2672.
Solidity: function configure(address messengerAddress) returns()
func (*EthereumBridgeTransactorSession) Fallback ¶
func (_EthereumBridge *EthereumBridgeTransactorSession) Fallback(calldata []byte) (*types.Transaction, error)
Fallback is a paid mutator transaction binding the contract fallback function.
Solidity: fallback() payable returns()
func (*EthereumBridgeTransactorSession) Initialize ¶
func (_EthereumBridge *EthereumBridgeTransactorSession) Initialize(messenger common.Address, remoteBridge common.Address) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0x485cc955.
Solidity: function initialize(address messenger, address remoteBridge) returns()
func (*EthereumBridgeTransactorSession) OnCreateTokenCommand ¶
func (_EthereumBridge *EthereumBridgeTransactorSession) OnCreateTokenCommand(crossChainAddress common.Address, name string, symbol string) (*types.Transaction, error)
OnCreateTokenCommand is a paid mutator transaction binding the contract method 0x458ffd63.
Solidity: function onCreateTokenCommand(address crossChainAddress, string name, string symbol) returns()
func (*EthereumBridgeTransactorSession) Receive ¶
func (_EthereumBridge *EthereumBridgeTransactorSession) Receive() (*types.Transaction, error)
Receive is a paid mutator transaction binding the contract receive function.
Solidity: receive() payable returns()
func (*EthereumBridgeTransactorSession) ReceiveAssets ¶
func (_EthereumBridge *EthereumBridgeTransactorSession) ReceiveAssets(asset common.Address, amount *big.Int, receiver common.Address) (*types.Transaction, error)
ReceiveAssets is a paid mutator transaction binding the contract method 0x83bece4d.
Solidity: function receiveAssets(address asset, uint256 amount, address receiver) returns()
func (*EthereumBridgeTransactorSession) SendERC20 ¶
func (_EthereumBridge *EthereumBridgeTransactorSession) SendERC20(asset common.Address, amount *big.Int, receiver common.Address) (*types.Transaction, error)
SendERC20 is a paid mutator transaction binding the contract method 0xa381c8e2.
Solidity: function sendERC20(address asset, uint256 amount, address receiver) payable returns()
func (*EthereumBridgeTransactorSession) SendNative ¶
func (_EthereumBridge *EthereumBridgeTransactorSession) SendNative(receiver common.Address) (*types.Transaction, error)
SendNative is a paid mutator transaction binding the contract method 0x1888d712.
Solidity: function sendNative(address receiver) payable returns()