Documentation ¶
Index ¶
- Variables
- type EthereumBridge
- type EthereumBridgeCaller
- 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) WrappedTokens(opts *bind.CallOpts, arg0 common.Address) (common.Address, error)
- type EthereumBridgeCallerRaw
- type EthereumBridgeCallerSession
- 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) 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) 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) 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\":[{\"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\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"}],\"name\":\"sendNative\",\"outputs\":[],\"stateMutability\":\"payable\",\"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: "0x60806040526001805463ffffffff60a01b1916905534801561002057600080fd5b50612abd806100306000396000f3fe608060405260043610620000c65760003560e01c806383bece4d11620000735780639e405b7111620000555780639e405b711462000256578063a381c8e21462000290578063d5c6b50414620002b557620000ef565b806383bece4d14620001e35780639813c7b2146200020857620000ef565b8063458ffd6311620000a9578063458ffd631462000174578063485cc955146200019957806375cb267214620001be57620000ef565b80628d48e314620001095780631888d712146200015b57620000ef565b36620000ef5760405162461bcd60e51b8152600401620000e69062000d72565b60405180910390fd5b60405162461bcd60e51b8152600401620000e69062000dbe565b3480156200011657600080fd5b50620001436200012836600462000e09565b6004602052600090815260409020546001600160a01b031681565b60405162000152919062000e47565b60405180910390f35b620001726200016c36600462000e09565b620002fe565b005b3480156200018157600080fd5b50620001726200019336600462000eaf565b6200047e565b348015620001a657600080fd5b5062000172620001b836600462000f4b565b620005e7565b348015620001cb57600080fd5b5062000172620001dd36600462000e09565b6200075b565b348015620001f057600080fd5b50620001726200020236600462000fa2565b6200083b565b3480156200021557600080fd5b50620002476200022736600462000e09565b6001600160a01b0390811660009081526002602052604090205416151590565b60405162000152919062001003565b3480156200026357600080fd5b50620001436200027536600462000e09565b6003602052600090815260409020546001600160a01b031681565b3480156200029d57600080fd5b5062000172620002af36600462000fa2565b6200097f565b348015620002c257600080fd5b50620002ef620002d436600462000e09565b6002602052600090815260409020546001600160a01b031681565b60405162000152919062001038565b60003411620003215760405162461bcd60e51b8152600401620000e6906200107b565b600080805260036020527f3617319a054d772f909f7c479a2cebe5066e836a939412e32403c99029b92eff546040516383bece4d60e01b9162000377916001600160a01b03909116903490869060240162001094565b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152600554909150620003f7906001600160a01b03168260005b60008062000b0b565b6001546040517f346633fb0000000000000000000000000000000000000000000000000000000081526001600160a01b039091169063346633fb903490620004469086908390600401620010c2565b6000604051808303818588803b1580156200046057600080fd5b505af115801562000475573d6000803e3d6000fd5b50505050505050565b6005546000546001600160a01b0391821691163314620004b25760405162461bcd60e51b8152600401620000e69062001141565b806001600160a01b0316620004c662000c20565b6001600160a01b031614620004ef5760405162461bcd60e51b8152600401620000e690620011ac565b600085858585604051620005039062000d0a565b620005129493929190620011ec565b604051809103906000f0801580156200052f573d6000803e3d6000fd5b506001600160a01b038082166000818152600260209081526040808320805473ffffffffffffffffffffffffffffffffffffffff199081168617909155600383528184208054968f169682168717905594835260049091529081902080549093169091179091555190915081907f30c05779f384e0ae9d43bbf7ec4417f28bdc53d02a35551b6eb270a9c4c71dca90620005d5908a9084908b908b908b908b9062001221565b60405180910390a15050505050505050565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000810460ff16159067ffffffffffffffff16600081158015620006335750825b905060008267ffffffffffffffff166001148015620006515750303b155b90508115801562000660575080155b1562000698576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b845467ffffffffffffffff191660011785558315620006cd57845468ff00000000000000001916680100000000000000001785555b620006d8876200075b565b6005805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03881617905583156200047557845468ff0000000000000000191685556040517fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2906200074a9060019062001296565b60405180910390a150505050505050565b6200076562000ca0565b6000805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b038316908117909155604080517fa1a227fa000000000000000000000000000000000000000000000000000000008152905163a1a227fa916004808201926020929091908290030181865afa158015620007e5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200080b9190620012b3565b6001805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b039290921691909117905550565b6005546000546001600160a01b03918216911633146200086f5760405162461bcd60e51b8152600401620000e69062001141565b806001600160a01b03166200088362000c20565b6001600160a01b031614620008ac5760405162461bcd60e51b8152600401620000e690620011ac565b6001600160a01b03808516600090815260046020908152604080832054841680845260029092529091205490911680620008fa5760405162461bcd60e51b8152600401620000e69062001331565b6040517f979005ad0000000000000000000000000000000000000000000000000000000081526001600160a01b0382169063979005ad90620009439087908990600401620010c2565b600060405180830381600087803b1580156200095e57600080fd5b505af115801562000973573d6000803e3d6000fd5b50505050505050505050565b6001600160a01b0380841660009081526002602052604090205416620009b95760405162461bcd60e51b8152600401620000e69062001376565b6001600160a01b03808416600090815260026020526040908190205490517f1dd319cb0000000000000000000000000000000000000000000000000000000081529116908190631dd319cb9062000a179033908790600401620010c2565b600060405180830381600087803b15801562000a3257600080fd5b505af115801562000a47573d6000803e3d6000fd5b5050506001600160a01b038086166000908152600360205260408082205490519193506383bece4d60e01b9262000a88929116908790879060240162001094565b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff000000000000000000000000000000000000000000000000000000009093169290921790915260055490915062000b04906001600160a01b0316826000620003ee565b5050505050565b60006040518060600160405280876001600160a01b031681526020018681526020018481525060405160200162000b43919062001432565b60408051808303601f19018152919052600180549192506001600160a01b0382169163b1454caa917401000000000000000000000000000000000000000090910463ffffffff1690601462000b988362001474565b91906101000a81548163ffffffff021916908363ffffffff1602179055508684866040518563ffffffff1660e01b815260040162000bda9493929190620014b1565b6020604051808303816000875af115801562000bfa573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200047591906200151c565b60008060009054906101000a90046001600160a01b03166001600160a01b03166363012de56040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000c75573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000c9b9190620012b3565b905090565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005468010000000000000000900460ff1662000d08576040517fd7e6bcf800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b611546806200154283390190565b60238152602081017f436f6e747261637420646f6573206e6f7420737570706f72742072656365697681527f6528290000000000000000000000000000000000000000000000000000000000602082015290505b60400190565b6020808252810162000d848162000d18565b92915050565b601d8152602081017f66616c6c6261636b2829206d6574686f6420756e737570706f72746564000000815290505b60200190565b6020808252810162000d848162000d8a565b60006001600160a01b03821662000d84565b62000ded8162000dd0565b811462000df957600080fd5b50565b803562000d848162000de2565b60006020828403121562000e205762000e20600080fd5b600062000e2e848462000dfc565b949350505050565b62000e418162000dd0565b82525050565b6020810162000d84828462000e36565b60008083601f84011262000e6e5762000e6e600080fd5b50813567ffffffffffffffff81111562000e8b5762000e8b600080fd5b60208301915083600182028301111562000ea85762000ea8600080fd5b9250929050565b60008060008060006060868803121562000ecc5762000ecc600080fd5b600062000eda888862000dfc565b955050602086013567ffffffffffffffff81111562000efc5762000efc600080fd5b62000f0a8882890162000e57565b9450945050604086013567ffffffffffffffff81111562000f2e5762000f2e600080fd5b62000f3c8882890162000e57565b92509250509295509295909350565b6000806040838503121562000f635762000f63600080fd5b600062000f71858562000dfc565b925050602062000f848582860162000dfc565b9150509250929050565b8062000ded565b803562000d848162000f8e565b60008060006060848603121562000fbc5762000fbc600080fd5b600062000fca868662000dfc565b935050602062000fdd8682870162000f95565b925050604062000ff08682870162000dfc565b9150509250925092565b80151562000e41565b6020810162000d84828462000ffa565b600062000d848262000dd0565b600062000d848262001013565b62000e418162001020565b6020810162000d8482846200102d565b600d8152602081017f4e6f7468696e672073656e742e000000000000000000000000000000000000008152905062000db8565b6020808252810162000d848162001048565b8062000e41565b60608101620010a4828662000e36565b620010b360208301856200108d565b62000e2e604083018462000e36565b60408101620010d2828562000e36565b620010e160208301846200108d565b9392505050565b60308152602081017f436f6e74726163742063616c6c6572206973206e6f742074686520726567697381527f7465726564206d657373656e67657221000000000000000000000000000000006020820152905062000d6c565b6020808252810162000d8481620010e8565b60318152602081017f43726f737320636861696e206d65737361676520636f6d696e672066726f6d2081527f696e636f72726563742073656e646572210000000000000000000000000000006020820152905062000d6c565b6020808252810162000d848162001153565b82818337506000910152565b818352602083019250620011e0828483620011be565b50601f01601f19160190565b6040808252810162001200818688620011ca565b9050818103602083015262001217818486620011ca565b9695505050505050565b6080810162001231828962000e36565b62001240602083018862000e36565b818103604083015262001255818688620011ca565b905081810360608301526200126c818486620011ca565b98975050505050505050565b600067ffffffffffffffff821662000d84565b62000e418162001278565b6020810162000d8482846200128b565b805162000d848162000de2565b600060208284031215620012ca57620012ca600080fd5b600062000e2e8484620012a6565b602b8152602081017f526563656976696e672061737365747320666f7220756e6b6e6f776e2077726181527f7070656420746f6b656e210000000000000000000000000000000000000000006020820152905062000d6c565b6020808252810162000d8481620012d8565b60158152602081017f4e6f206d617070696e6720666f7220746f6b656e2e00000000000000000000008152905062000db8565b6020808252810162000d848162001343565b60005b83811015620013a55781810151838201526020016200138b565b50506000910152565b6000620013b9825190565b808452602084019350620013d281856020860162001388565b601f01601f19169290920192915050565b80516000906060840190620013f9858262000e36565b5060208301518482036020860152620014138282620013ae565b91505060408301516200142a60408601826200108d565b509392505050565b60208082528101620010e18184620013e3565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b63ffffffff16600063fffffffe19820162001493576200149362001445565b5060010190565b63ffffffff811662000e41565b60ff811662000e41565b60808101620014c182876200149a565b620014d060208301866200149a565b8181036040830152620014e48185620013ae565b9050620014f56060830184620014a7565b95945050505050565b67ffffffffffffffff811662000ded565b805162000d8481620014fe565b600060208284031215620015335762001533600080fd5b600062000e2e84846200150f56fe6080604052600580546001600160a01b03191673deb34a740eca1ec42c8b8204cbec0ba34fdd27f31790553480156200003757600080fd5b5060405162001546380380620015468339810160408190526200005a916200029e565b8181818160036200006c838262000412565b5060046200007b828262000412565b5050505050620000b27fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177533620000bb60201b60201c565b505050620004de565b60008281526007602090815260408083206001600160a01b038516845290915281205460ff16620001645760008381526007602090815260408083206001600160a01b03861684529091529020805460ff191660011790556200011b3390565b6001600160a01b0316826001600160a01b0316847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a450600162000168565b5060005b92915050565b634e487b7160e01b600052604160045260246000fd5b601f19601f83011681016001600160401b0381118282101715620001ac57620001ac6200016e565b6040525050565b6000620001bf60405190565b9050620001cd828262000184565b919050565b60006001600160401b03821115620001ee57620001ee6200016e565b601f19601f83011660200192915050565b60005b838110156200021c57818101518382015260200162000202565b50506000910152565b60006200023c6200023684620001d2565b620001b3565b905082815260208101848484011115620002595762000259600080fd5b62000266848285620001ff565b509392505050565b600082601f830112620002845762000284600080fd5b81516200029684826020860162000225565b949350505050565b60008060408385031215620002b657620002b6600080fd5b82516001600160401b03811115620002d157620002d1600080fd5b620002df858286016200026e565b602085015190935090506001600160401b03811115620003025762000302600080fd5b62000310858286016200026e565b9150509250929050565b634e487b7160e01b600052602260045260246000fd5b6002810460018216806200034557607f821691505b6020821081036200035a576200035a6200031a565b50919050565b6000620001686200036e8381565b90565b6200037c8362000360565b815460001960089490940293841b1916921b91909117905550565b6000620003a681848462000371565b505050565b81811015620003ca57620003c160008262000397565b600101620003ab565b5050565b601f821115620003a6576000818152602090206020601f85010481016020851015620003f75750805b6200040b6020601f860104830182620003ab565b5050505050565b81516001600160401b038111156200042e576200042e6200016e565b6200043a825462000330565b62000447828285620003ce565b506020601f8211600181146200047f5760008315620004665750848201515b600019600885021c19811660028502178555506200040b565b600084815260208120601f198516915b82811015620004b157878501518255602094850194600190920191016200048f565b5084821015620004cf5783870151600019601f87166008021c191681555b50505050600202600101905550565b61105880620004ee6000396000f3fe608060405234801561001057600080fd5b50600436106101515760003560e01c806336568abe116100cd578063979005ad11610081578063a9059cbb11610066578063a9059cbb146102ce578063d547741f146102e1578063dd62ed3e146102f457600080fd5b8063979005ad146102b3578063a217fddf146102c657600080fd5b806375b238fc116100b257806375b238fc1461024b57806391d148541461027257806395d89b41146102ab57600080fd5b806336568abe1461022557806370a082311461023857600080fd5b80631dd319cb11610124578063248a9ca311610109578063248a9ca3146101e05780632f2ff15d14610203578063313ce5671461021657600080fd5b80631dd319cb146101b857806323b872dd146101cd57600080fd5b806301ffc9a71461015657806306fdde031461017f578063095ea7b31461019457806318160ddd146101a7575b600080fd5b610169610164366004610c49565b610307565b6040516101769190610c7c565b60405180910390f35b6101876103a0565b6040516101769190610ce0565b6101696101a2366004610d27565b610432565b6002545b6040516101769190610d6a565b6101cb6101c6366004610d27565b61044a565b005b6101696101db366004610d78565b6104b4565b6101ab6101ee366004610dc8565b60009081526007602052604090206001015490565b6101cb610211366004610de9565b6104da565b60126040516101769190610e25565b6101cb610233366004610de9565b610505565b6101ab610246366004610e33565b610551565b6101ab7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177581565b610169610280366004610de9565b60009182526007602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6101876105c7565b6101cb6102c1366004610d27565b6105d6565b6101ab600081565b6101696102dc366004610d27565b61060a565b6101cb6102ef366004610de9565b610618565b6101ab610302366004610e54565b61063d565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b00000000000000000000000000000000000000000000000000000000148061039a57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b6060600380546103af90610e8c565b80601f01602080910402602001604051908101604052809291908181526020018280546103db90610e8c565b80156104285780601f106103fd57610100808354040283529160200191610428565b820191906000526020600020905b81548152906001019060200180831161040b57829003601f168201915b5050505050905090565b6000336104408185856106f8565b5060019392505050565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177561047481610705565b8161047e84610551565b10156104a55760405162461bcd60e51b815260040161049c90610eec565b60405180910390fd5b6104af8383610712565b505050565b6000336104c285828561074c565b6104cd8585856107b2565b60019150505b9392505050565b6000828152600760205260409020600101546104f581610705565b6104ff8383610811565b50505050565b6001600160a01b0381163314610547576040517f6697b23200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6104af82826108bf565b60006001600160a01b0382163203610581576001600160a01b03821660009081526020819052604090205461039a565b6001600160a01b03821633036105af576001600160a01b03821660009081526020819052604090205461039a565b60405162461bcd60e51b815260040161049c90610f2e565b6060600480546103af90610e8c565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177561060081610705565b6104af8383610946565b6000336104408185856107b2565b60008281526007602052604090206001015461063381610705565b6104ff83836108bf565b6000326001600160a01b038416148061065e5750326001600160a01b038316145b15610691576001600160a01b038084166000908152600160209081526040808320938616835292905220545b905061039a565b336001600160a01b03841614806106b05750336001600160a01b038316145b156106e0576001600160a01b0380841660009081526001602090815260408083209386168352929052205461068a565b60405162461bcd60e51b815260040161049c90610f3e565b6104af838383600161097c565b61070f8133610a81565b50565b6001600160a01b03821661073c576000604051634b637e8f60e11b815260040161049c9190610fa8565b61074882600083610ae1565b5050565b6000610758848461063d565b905060001981146104ff57818110156107a3578281836040517ffb8f41b200000000000000000000000000000000000000000000000000000000815260040161049c93929190610fb6565b6104ff8484848403600061097c565b6001600160a01b0383166107dc576000604051634b637e8f60e11b815260040161049c9190610fa8565b6001600160a01b03821661080657600060405163ec442f0560e01b815260040161049c9190610fa8565b6104af838383610ae1565b60008281526007602090815260408083206001600160a01b038516845290915281205460ff166108b75760008381526007602090815260408083206001600160a01b03861684529091529020805460ff1916600117905561086f3390565b6001600160a01b0316826001600160a01b0316847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a450600161039a565b50600061039a565b60008281526007602090815260408083206001600160a01b038516845290915281205460ff16156108b75760008381526007602090815260408083206001600160a01b0386168085529252808320805460ff1916905551339286917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a450600161039a565b6001600160a01b03821661097057600060405163ec442f0560e01b815260040161049c9190610fa8565b61074860008383610ae1565b6001600160a01b0384166109bf5760006040517fe602df0500000000000000000000000000000000000000000000000000000000815260040161049c9190610fa8565b6001600160a01b038316610a025760006040517f94280d6200000000000000000000000000000000000000000000000000000000815260040161049c9190610fa8565b6001600160a01b03808516600090815260016020908152604080832093871683529290522082905580156104ff57826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051610a739190610d6a565b60405180910390a350505050565b60008281526007602090815260408083206001600160a01b038516845290915290205460ff166107485780826040517fe2517d3f00000000000000000000000000000000000000000000000000000000815260040161049c929190610fde565b6001600160a01b038316610b0c578060026000828254610b01919061100f565b90915550610b849050565b6001600160a01b03831660009081526020819052604090205481811015610b65578381836040517fe450d38c00000000000000000000000000000000000000000000000000000000815260040161049c93929190610fb6565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b038216610ba057600280548290039055610bbf565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051610c029190610d6a565b60405180910390a3505050565b7fffffffff0000000000000000000000000000000000000000000000000000000081165b811461070f57600080fd5b803561039a81610c0f565b600060208284031215610c5e57610c5e600080fd5b6000610c6a8484610c3e565b949350505050565b8015155b82525050565b6020810161039a8284610c72565b60005b83811015610ca5578181015183820152602001610c8d565b50506000910152565b6000610cb8825190565b808452602084019350610ccf818560208601610c8a565b601f01601f19169290920192915050565b602080825281016104d38184610cae565b60006001600160a01b03821661039a565b610c3381610cf1565b803561039a81610d02565b80610c33565b803561039a81610d16565b60008060408385031215610d3d57610d3d600080fd5b6000610d498585610d0b565b9250506020610d5a85828601610d1c565b9150509250929050565b80610c76565b6020810161039a8284610d64565b600080600060608486031215610d9057610d90600080fd5b6000610d9c8686610d0b565b9350506020610dad86828701610d0b565b9250506040610dbe86828701610d1c565b9150509250925092565b600060208284031215610ddd57610ddd600080fd5b6000610c6a8484610d1c565b60008060408385031215610dff57610dff600080fd5b6000610e0b8585610d1c565b9250506020610d5a85828601610d0b565b60ff8116610c76565b6020810161039a8284610e1c565b600060208284031215610e4857610e48600080fd5b6000610c6a8484610d0b565b60008060408385031215610e6a57610e6a600080fd5b6000610e0b8585610d0b565b634e487b7160e01b600052602260045260246000fd5b600281046001821680610ea057607f821691505b602082108103610eb257610eb2610e76565b50919050565b60158152602081017f496e73756666696369656e742062616c616e63652e0000000000000000000000815290505b60200190565b6020808252810161039a81610eb8565b601f8152602081017f4e6f7420616c6c6f77656420746f2072656164207468652062616c616e63650081529050610ee6565b6020808252810161039a81610efc565b6020808252810161039a81602181527f4e6f7420616c6c6f77656420746f20726561642074686520616c6c6f77616e6360208201527f6500000000000000000000000000000000000000000000000000000000000000604082015260600190565b610c7681610cf1565b6020810161039a8284610f9f565b60608101610fc48286610f9f565b610fd16020830185610d64565b610c6a6040830184610d64565b60408101610fec8285610f9f565b6104d36020830184610d64565b634e487b7160e01b600052601160045260246000fd5b8082018082111561039a5761039a610ff956fea264697066735822122015a37e58522ca26bdd51e6ea23c5953be6e295684d318926ea7d989d6576fe1c64736f6c63430008150033a2646970667358221220f32fa9bbc81033e4c32c93807c57829cac33e49d74d4612615588dff6d00a05564736f6c63430008150033",
}
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) 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) 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) 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) 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) 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) 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) 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) 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) 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()