bridge

package
v1.8.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 28, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BridgeABI = BridgeMetaData.ABI

BridgeABI is the input ABI used to generate the binding from. Deprecated: Use BridgeMetaData.ABI instead.

View Source
var BridgeBin = BridgeMetaData.Bin

BridgeBin is the compiled bytecode used for deploying new contracts. Deprecated: Use BridgeMetaData.Bin instead.

View Source
var BridgeMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"contractIERC20\",\"name\":\"_token\",\"type\":\"address\"},{\"internalType\":\"contractIAuthorizers\",\"name\":\"_authorizers\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousAuthorizers\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newAuthorizers\",\"type\":\"address\"}],\"name\":\"AuthorizersTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"bytes\",\"name\":\"clientId\",\"type\":\"bytes\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"}],\"name\":\"Burned\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"txid\",\"type\":\"bytes\"},{\"indexed\":true,\"internalType\":\"bytes\",\"name\":\"clientId\",\"type\":\"bytes\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"}],\"name\":\"Minted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"authorizers\",\"outputs\":[{\"internalType\":\"contractIAuthorizers\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"balance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenToRescue\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"rescueFunds\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"token\",\"outputs\":[{\"internalType\":\"contractIERC20\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"_clientId\",\"type\":\"bytes\"}],\"name\":\"burn\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"_txid\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"_clientId\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"_nonce\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"_signatures\",\"type\":\"bytes\"}],\"name\":\"mint\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_for\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"_txid\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"_clientId\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"_nonce\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"_signatures\",\"type\":\"bytes\"}],\"name\":\"mintFor\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"_txid\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"_clientId\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"_nonce\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"name\":\"isAuthorizationValid\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
	Bin: "0x6080604052600060035534801561001557600080fd5b5060405162001448380380620014488339810160408190526100369161010a565b8082610041336100a2565b600180546001600160a01b039283166001600160a01b0319918216179091556002805492841692909116821790556040516000907fc44d874e85f1c5b65d10c0c33020d49211b91e9f2704457f2ef269e5fb7a6b5d908290a3505050610144565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b038116811461010757600080fd5b50565b6000806040838503121561011d57600080fd5b8251610128816100f2565b6020840151909250610139816100f2565b809150509250929050565b6112f480620001546000396000f3fe608060405234801561001057600080fd5b50600436106100a95760003560e01c80638da5cb5b116100715780638da5cb5b1461012b57806392c463bc1461013c578063b69ef8a81461014f578063f2fde38b14610165578063fc0c546a14610178578063fe9d93031461018b57600080fd5b80633e12faa4146100ae5780634f815160146100c357806356741b2c146100d65780636ccae05414610100578063715018a614610123575b600080fd5b6100c16100bc366004610dd3565b61019e565b005b6100c16100d1366004610e95565b610377565b6002546001600160a01b03165b6040516001600160a01b0390911681526020015b60405180910390f35b61011361010e366004610f42565b61051f565b60405190151581526020016100f7565b6100c161061c565b6000546001600160a01b03166100e3565b61011361014a366004610e95565b610630565b6101576106da565b6040519081526020016100f7565b6100c1610173366004610f83565b61074c565b6001546100e3906001600160a01b031681565b6100c1610199366004610fa7565b6107c5565b848484602082146101ca5760405162461bcd60e51b81526004016101c190610ff3565b60405180910390fd5b80600484846040516101dd92919061105a565b90815260200160405180910390205460016101f8919061106a565b146102155760405162461bcd60e51b81526004016101c190611090565b6040805160a0810182526001600160a01b038e16815260208082018e90528251601f8d0182900482028101820184528c81528f938f938f938f938f938f938f938f938f936000939290830191908b908b9081908401838280828437600092019190915250505090825250604080516020601f8a0181900481028201810190925288815291810191908990899081908401838280828437600092018290525093855250505060209091018690529091506102d66002546001600160a01b031690565b6001600160a01b031663207b601e8c8c8c8c8c8c8c6040518863ffffffff1660e01b815260040161030d9796959493929190611127565b6020604051808303816000875af115801561032c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103509190611177565b905061035e8282868661080b565b5050505050505050505050505050505050505050505050565b8484846020821461039a5760405162461bcd60e51b81526004016101c190610ff3565b80600484846040516103ad92919061105a565b90815260200160405180910390205460016103c8919061106a565b146103e55760405162461bcd60e51b81526004016101c190611090565b6040805160a08101825233815260208082018e90528251601f8d0182900482028101820184528c81526000938301918e908e9081908401838280828437600092019190915250505090825250604080516020601f8d018190048102820181019092528b815291810191908c908c9081908401838280828437600092018290525093855250505060209091018990529091506104886002546001600160a01b031690565b6001600160a01b031663207b601e338f8f8f8f8f8f6040518863ffffffff1660e01b81526004016104bf9796959493929190611127565b6020604051808303816000875af11580156104de573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105029190611177565b90506105108282898961080b565b50505050505050505050505050565b6000610529610a79565b6001546001600160a01b038086169116036105a15760405162461bcd60e51b815260206004820152603260248201527f546f6b656e506f6f6c3a2043616e6e6f7420636c61696d20746f6b656e2068656044820152711b1908189e481d1a194818dbdb9d1c9858dd60721b60648201526084016101c1565b60405163a9059cbb60e01b81526001600160a01b0384811660048301526024820184905285169063a9059cbb906044016020604051808303816000875af11580156105f0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106149190611190565b949350505050565b610624610a79565b61062e6000610ad3565b565b6000806106456002546001600160a01b031690565b6001600160a01b031663207b601e338c8c8c8c8c8c6040518863ffffffff1660e01b815260040161067c9796959493929190611127565b6020604051808303816000875af115801561069b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106bf9190611177565b90506106cc818585610b23565b9a9950505050505050505050565b6001546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015610723573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107479190611177565b905090565b610754610a79565b6001600160a01b0381166107b95760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016101c1565b6107c281610ad3565b50565b610806338484848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250610bcc92505050565b505050565b6002546040516314b5dc0b60e11b81528491849184916001600160a01b03169063296bb81690610843908690869086906004016111b2565b6020604051808303816000875af1158015610862573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108869190611190565b6108a25760405162461bcd60e51b81526004016101c1906111d5565b306001600160a01b031663fc0c546a6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156108e0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610904919061121b565b8751602089015160405163a9059cbb60e01b81526001600160a01b039283166004820152602481019190915291169063a9059cbb906044016020604051808303816000875af115801561095b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061097f9190611190565b6109d75760405162461bcd60e51b815260206004820152602360248201527f4272696467653a207472616e73666572206f7574206f6620706f6f6c206661696044820152621b195960ea1b60648201526084016101c1565b8660800151600488606001516040516109f09190611268565b90815260200160405180910390208190555086608001518760600151604051610a199190611268565b604051809103902088600001516001600160a01b03167f154c9d73b1247a0e3b766a2dfdf858043dc6d1fb8a20536197f6a6359e871ed38a602001518b60400151604051610a68929190611284565b60405180910390a450505050505050565b6000546001600160a01b0316331461062e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016101c1565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6002546040516314b5dc0b60e11b81526000918591859185916001600160a01b039091169063296bb81690610b60908690869086906004016111b2565b6020604051808303816000875af1158015610b7f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ba39190611190565b610bbf5760405162461bcd60e51b81526004016101c1906111d5565b5060019695505050505050565b306001600160a01b031663fc0c546a6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c0a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c2e919061121b565b6040516323b872dd60e01b81526001600160a01b0385811660048301523060248301526044820185905291909116906323b872dd906064016020604051808303816000875af1158015610c85573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ca99190611190565b610d045760405162461bcd60e51b815260206004820152602660248201527f4272696467653a207472616e7366657220696e746f206275726e20706f6f6c2060448201526519985a5b195960d21b60648201526084016101c1565b600354610d1290600161106a565b6003819055604051610d25908390611268565b6040518091039020846001600160a01b03167f2b1155a5de2441854f3781130b980daa499b3412053ee40fcde076774bb12df285604051610d6891815260200190565b60405180910390a4505050565b6001600160a01b03811681146107c257600080fd5b60008083601f840112610d9c57600080fd5b50813567ffffffffffffffff811115610db457600080fd5b602083019150836020828501011115610dcc57600080fd5b9250929050565b600080600080600080600080600060c08a8c031215610df157600080fd5b8935610dfc81610d75565b985060208a0135975060408a013567ffffffffffffffff80821115610e2057600080fd5b610e2c8d838e01610d8a565b909950975060608c0135915080821115610e4557600080fd5b610e518d838e01610d8a565b909750955060808c0135945060a08c0135915080821115610e7157600080fd5b50610e7e8c828d01610d8a565b915080935050809150509295985092959850929598565b60008060008060008060008060a0898b031215610eb157600080fd5b88359750602089013567ffffffffffffffff80821115610ed057600080fd5b610edc8c838d01610d8a565b909950975060408b0135915080821115610ef557600080fd5b610f018c838d01610d8a565b909750955060608b0135945060808b0135915080821115610f2157600080fd5b50610f2e8b828c01610d8a565b999c989b5096995094979396929594505050565b600080600060608486031215610f5757600080fd5b8335610f6281610d75565b92506020840135610f7281610d75565b929592945050506040919091013590565b600060208284031215610f9557600080fd5b8135610fa081610d75565b9392505050565b600080600060408486031215610fbc57600080fd5b83359250602084013567ffffffffffffffff811115610fda57600080fd5b610fe686828701610d8a565b9497909650939450505050565b60208082526041908201527f76616c6964436c69656e7449443a206120636c69656e7449442070726f76696460408201527f656420697320696e636f72726563742c206c656e677468206973206e6f7420336060820152601960f91b608082015260a00190565b8183823760009101908152919050565b6000821982111561108b57634e487b7160e01b600052601160045260246000fd5b500190565b60208082526048908201527f69664e6f744d696e7465643a206e6f6e63652070726f7669646564206d75737460408201527f20312067726561746572207468616e207468652070726576696f75732062757260608201526737103737b731b29760c11b608082015260a00190565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b60018060a01b038816815286602082015260a06040820152600061114f60a0830187896110fe565b82810360608401526111628186886110fe565b91505082608083015298975050505050505050565b60006020828403121561118957600080fd5b5051919050565b6000602082840312156111a257600080fd5b81518015158114610fa057600080fd5b8381526040602082015260006111cc6040830184866110fe565b95945050505050565b60208082526026908201527f417574686f72697a6572733a207369676e617475726573206e6f7420617574686040820152651bdc9a5e995960d21b606082015260800190565b60006020828403121561122d57600080fd5b8151610fa081610d75565b60005b8381101561125357818101518382015260200161123b565b83811115611262576000848401525b50505050565b6000825161127a818460208701611238565b9190910192915050565b82815260406020820152600082518060408401526112a9816060850160208701611238565b601f01601f191691909101606001939250505056fea264697066735822122066b070d3a355ac8dc696d617f1a503d2156475810d9060bb1f56e76e9ae5b78564736f6c634300080f0033",
}

BridgeMetaData contains all meta data concerning the Bridge contract.

Functions

This section is empty.

Types

type Bridge

type Bridge struct {
	BridgeCaller     // Read-only binding to the contract
	BridgeTransactor // Write-only binding to the contract
	BridgeFilterer   // Log filterer for contract events
}

Bridge is an auto generated Go binding around an Ethereum contract.

func DeployBridge

func DeployBridge(auth *bind.TransactOpts, backend bind.ContractBackend, _token common.Address, _authorizers common.Address) (common.Address, *types.Transaction, *Bridge, error)

DeployBridge deploys a new Ethereum contract, binding an instance of Bridge to it.

func NewBridge

func NewBridge(address common.Address, backend bind.ContractBackend) (*Bridge, error)

NewBridge creates a new instance of Bridge, bound to a specific deployed contract.

type BridgeAuthorizersTransferred

type BridgeAuthorizersTransferred struct {
	PreviousAuthorizers common.Address
	NewAuthorizers      common.Address
	Raw                 types.Log // Blockchain specific contextual infos
}

BridgeAuthorizersTransferred represents a AuthorizersTransferred event raised by the Bridge contract.

type BridgeAuthorizersTransferredIterator

type BridgeAuthorizersTransferredIterator struct {
	Event *BridgeAuthorizersTransferred // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

BridgeAuthorizersTransferredIterator is returned from FilterAuthorizersTransferred and is used to iterate over the raw logs and unpacked data for AuthorizersTransferred events raised by the Bridge contract.

func (*BridgeAuthorizersTransferredIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*BridgeAuthorizersTransferredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*BridgeAuthorizersTransferredIterator) Next

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 BridgeBurned

type BridgeBurned struct {
	From     common.Address
	Amount   *big.Int
	ClientId common.Hash
	Nonce    *big.Int
	Raw      types.Log // Blockchain specific contextual infos
}

BridgeBurned represents a Burned event raised by the Bridge contract.

type BridgeBurnedIterator

type BridgeBurnedIterator struct {
	Event *BridgeBurned // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

BridgeBurnedIterator is returned from FilterBurned and is used to iterate over the raw logs and unpacked data for Burned events raised by the Bridge contract.

func (*BridgeBurnedIterator) Close

func (it *BridgeBurnedIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*BridgeBurnedIterator) Error

func (it *BridgeBurnedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*BridgeBurnedIterator) Next

func (it *BridgeBurnedIterator) 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 BridgeCaller

type BridgeCaller struct {
	// contains filtered or unexported fields
}

BridgeCaller is an auto generated read-only Go binding around an Ethereum contract.

func NewBridgeCaller

func NewBridgeCaller(address common.Address, caller bind.ContractCaller) (*BridgeCaller, error)

NewBridgeCaller creates a new read-only instance of Bridge, bound to a specific deployed contract.

func (*BridgeCaller) Authorizers

func (_Bridge *BridgeCaller) Authorizers(opts *bind.CallOpts) (common.Address, error)

Authorizers is a free data retrieval call binding the contract method 0x56741b2c.

Solidity: function authorizers() view returns(address)

func (*BridgeCaller) Balance

func (_Bridge *BridgeCaller) Balance(opts *bind.CallOpts) (*big.Int, error)

Balance is a free data retrieval call binding the contract method 0xb69ef8a8.

Solidity: function balance() view returns(uint256)

func (*BridgeCaller) Owner

func (_Bridge *BridgeCaller) Owner(opts *bind.CallOpts) (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*BridgeCaller) Token

func (_Bridge *BridgeCaller) Token(opts *bind.CallOpts) (common.Address, error)

Token is a free data retrieval call binding the contract method 0xfc0c546a.

Solidity: function token() view returns(address)

type BridgeCallerRaw

type BridgeCallerRaw struct {
	Contract *BridgeCaller // Generic read-only contract binding to access the raw methods on
}

BridgeCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.

func (*BridgeCallerRaw) Call

func (_Bridge *BridgeCallerRaw) 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 BridgeCallerSession

type BridgeCallerSession struct {
	Contract *BridgeCaller // Generic contract caller binding to set the session for
	CallOpts bind.CallOpts // Call options to use throughout this session
}

BridgeCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.

func (*BridgeCallerSession) Authorizers

func (_Bridge *BridgeCallerSession) Authorizers() (common.Address, error)

Authorizers is a free data retrieval call binding the contract method 0x56741b2c.

Solidity: function authorizers() view returns(address)

func (*BridgeCallerSession) Balance

func (_Bridge *BridgeCallerSession) Balance() (*big.Int, error)

Balance is a free data retrieval call binding the contract method 0xb69ef8a8.

Solidity: function balance() view returns(uint256)

func (*BridgeCallerSession) Owner

func (_Bridge *BridgeCallerSession) Owner() (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*BridgeCallerSession) Token

func (_Bridge *BridgeCallerSession) Token() (common.Address, error)

Token is a free data retrieval call binding the contract method 0xfc0c546a.

Solidity: function token() view returns(address)

type BridgeFilterer

type BridgeFilterer struct {
	// contains filtered or unexported fields
}

BridgeFilterer is an auto generated log filtering Go binding around an Ethereum contract events.

func NewBridgeFilterer

func NewBridgeFilterer(address common.Address, filterer bind.ContractFilterer) (*BridgeFilterer, error)

NewBridgeFilterer creates a new log filterer instance of Bridge, bound to a specific deployed contract.

func (*BridgeFilterer) FilterAuthorizersTransferred

func (_Bridge *BridgeFilterer) FilterAuthorizersTransferred(opts *bind.FilterOpts, previousAuthorizers []common.Address, newAuthorizers []common.Address) (*BridgeAuthorizersTransferredIterator, error)

FilterAuthorizersTransferred is a free log retrieval operation binding the contract event 0xc44d874e85f1c5b65d10c0c33020d49211b91e9f2704457f2ef269e5fb7a6b5d.

Solidity: event AuthorizersTransferred(address indexed previousAuthorizers, address indexed newAuthorizers)

func (*BridgeFilterer) FilterBurned

func (_Bridge *BridgeFilterer) FilterBurned(opts *bind.FilterOpts, from []common.Address, clientId [][]byte, nonce []*big.Int) (*BridgeBurnedIterator, error)

FilterBurned is a free log retrieval operation binding the contract event 0x2b1155a5de2441854f3781130b980daa499b3412053ee40fcde076774bb12df2.

Solidity: event Burned(address indexed from, uint256 amount, bytes indexed clientId, uint256 indexed nonce)

func (*BridgeFilterer) FilterMinted

func (_Bridge *BridgeFilterer) FilterMinted(opts *bind.FilterOpts, to []common.Address, clientId [][]byte, nonce []*big.Int) (*BridgeMintedIterator, error)

FilterMinted is a free log retrieval operation binding the contract event 0x154c9d73b1247a0e3b766a2dfdf858043dc6d1fb8a20536197f6a6359e871ed3.

Solidity: event Minted(address indexed to, uint256 amount, bytes txid, bytes indexed clientId, uint256 indexed nonce)

func (*BridgeFilterer) FilterOwnershipTransferred

func (_Bridge *BridgeFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*BridgeOwnershipTransferredIterator, error)

FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*BridgeFilterer) ParseAuthorizersTransferred

func (_Bridge *BridgeFilterer) ParseAuthorizersTransferred(log types.Log) (*BridgeAuthorizersTransferred, error)

ParseAuthorizersTransferred is a log parse operation binding the contract event 0xc44d874e85f1c5b65d10c0c33020d49211b91e9f2704457f2ef269e5fb7a6b5d.

Solidity: event AuthorizersTransferred(address indexed previousAuthorizers, address indexed newAuthorizers)

func (*BridgeFilterer) ParseBurned

func (_Bridge *BridgeFilterer) ParseBurned(log types.Log) (*BridgeBurned, error)

ParseBurned is a log parse operation binding the contract event 0x2b1155a5de2441854f3781130b980daa499b3412053ee40fcde076774bb12df2.

Solidity: event Burned(address indexed from, uint256 amount, bytes indexed clientId, uint256 indexed nonce)

func (*BridgeFilterer) ParseMinted

func (_Bridge *BridgeFilterer) ParseMinted(log types.Log) (*BridgeMinted, error)

ParseMinted is a log parse operation binding the contract event 0x154c9d73b1247a0e3b766a2dfdf858043dc6d1fb8a20536197f6a6359e871ed3.

Solidity: event Minted(address indexed to, uint256 amount, bytes txid, bytes indexed clientId, uint256 indexed nonce)

func (*BridgeFilterer) ParseOwnershipTransferred

func (_Bridge *BridgeFilterer) ParseOwnershipTransferred(log types.Log) (*BridgeOwnershipTransferred, error)

ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*BridgeFilterer) WatchAuthorizersTransferred

func (_Bridge *BridgeFilterer) WatchAuthorizersTransferred(opts *bind.WatchOpts, sink chan<- *BridgeAuthorizersTransferred, previousAuthorizers []common.Address, newAuthorizers []common.Address) (event.Subscription, error)

WatchAuthorizersTransferred is a free log subscription operation binding the contract event 0xc44d874e85f1c5b65d10c0c33020d49211b91e9f2704457f2ef269e5fb7a6b5d.

Solidity: event AuthorizersTransferred(address indexed previousAuthorizers, address indexed newAuthorizers)

func (*BridgeFilterer) WatchBurned

func (_Bridge *BridgeFilterer) WatchBurned(opts *bind.WatchOpts, sink chan<- *BridgeBurned, from []common.Address, clientId [][]byte, nonce []*big.Int) (event.Subscription, error)

WatchBurned is a free log subscription operation binding the contract event 0x2b1155a5de2441854f3781130b980daa499b3412053ee40fcde076774bb12df2.

Solidity: event Burned(address indexed from, uint256 amount, bytes indexed clientId, uint256 indexed nonce)

func (*BridgeFilterer) WatchMinted

func (_Bridge *BridgeFilterer) WatchMinted(opts *bind.WatchOpts, sink chan<- *BridgeMinted, to []common.Address, clientId [][]byte, nonce []*big.Int) (event.Subscription, error)

WatchMinted is a free log subscription operation binding the contract event 0x154c9d73b1247a0e3b766a2dfdf858043dc6d1fb8a20536197f6a6359e871ed3.

Solidity: event Minted(address indexed to, uint256 amount, bytes txid, bytes indexed clientId, uint256 indexed nonce)

func (*BridgeFilterer) WatchOwnershipTransferred

func (_Bridge *BridgeFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *BridgeOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error)

WatchOwnershipTransferred is a free log subscription operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

type BridgeMinted

type BridgeMinted struct {
	To       common.Address
	Amount   *big.Int
	Txid     []byte
	ClientId common.Hash
	Nonce    *big.Int
	Raw      types.Log // Blockchain specific contextual infos
}

BridgeMinted represents a Minted event raised by the Bridge contract.

type BridgeMintedIterator

type BridgeMintedIterator struct {
	Event *BridgeMinted // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

BridgeMintedIterator is returned from FilterMinted and is used to iterate over the raw logs and unpacked data for Minted events raised by the Bridge contract.

func (*BridgeMintedIterator) Close

func (it *BridgeMintedIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*BridgeMintedIterator) Error

func (it *BridgeMintedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*BridgeMintedIterator) Next

func (it *BridgeMintedIterator) 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 BridgeOwnershipTransferred

type BridgeOwnershipTransferred struct {
	PreviousOwner common.Address
	NewOwner      common.Address
	Raw           types.Log // Blockchain specific contextual infos
}

BridgeOwnershipTransferred represents a OwnershipTransferred event raised by the Bridge contract.

type BridgeOwnershipTransferredIterator

type BridgeOwnershipTransferredIterator struct {
	Event *BridgeOwnershipTransferred // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

BridgeOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the Bridge contract.

func (*BridgeOwnershipTransferredIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*BridgeOwnershipTransferredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*BridgeOwnershipTransferredIterator) Next

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 BridgeRaw

type BridgeRaw struct {
	Contract *Bridge // Generic contract binding to access the raw methods on
}

BridgeRaw is an auto generated low-level Go binding around an Ethereum contract.

func (*BridgeRaw) Call

func (_Bridge *BridgeRaw) 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 (*BridgeRaw) Transact

func (_Bridge *BridgeRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*BridgeRaw) Transfer

func (_Bridge *BridgeRaw) 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 BridgeSession

type BridgeSession struct {
	Contract     *Bridge           // 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
}

BridgeSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.

func (*BridgeSession) Authorizers

func (_Bridge *BridgeSession) Authorizers() (common.Address, error)

Authorizers is a free data retrieval call binding the contract method 0x56741b2c.

Solidity: function authorizers() view returns(address)

func (*BridgeSession) Balance

func (_Bridge *BridgeSession) Balance() (*big.Int, error)

Balance is a free data retrieval call binding the contract method 0xb69ef8a8.

Solidity: function balance() view returns(uint256)

func (*BridgeSession) Burn

func (_Bridge *BridgeSession) Burn(_amount *big.Int, _clientId []byte) (*types.Transaction, error)

Burn is a paid mutator transaction binding the contract method 0xfe9d9303.

Solidity: function burn(uint256 _amount, bytes _clientId) returns()

func (*BridgeSession) IsAuthorizationValid

func (_Bridge *BridgeSession) IsAuthorizationValid(_amount *big.Int, _txid []byte, _clientId []byte, _nonce *big.Int, signature []byte) (*types.Transaction, error)

IsAuthorizationValid is a paid mutator transaction binding the contract method 0x92c463bc.

Solidity: function isAuthorizationValid(uint256 _amount, bytes _txid, bytes _clientId, uint256 _nonce, bytes signature) returns(bool)

func (*BridgeSession) Mint

func (_Bridge *BridgeSession) Mint(_amount *big.Int, _txid []byte, _clientId []byte, _nonce *big.Int, _signatures []byte) (*types.Transaction, error)

Mint is a paid mutator transaction binding the contract method 0x4f815160.

Solidity: function mint(uint256 _amount, bytes _txid, bytes _clientId, uint256 _nonce, bytes _signatures) returns()

func (*BridgeSession) MintFor

func (_Bridge *BridgeSession) MintFor(_for common.Address, _amount *big.Int, _txid []byte, _clientId []byte, _nonce *big.Int, _signatures []byte) (*types.Transaction, error)

MintFor is a paid mutator transaction binding the contract method 0x3e12faa4.

Solidity: function mintFor(address _for, uint256 _amount, bytes _txid, bytes _clientId, uint256 _nonce, bytes _signatures) returns()

func (*BridgeSession) Owner

func (_Bridge *BridgeSession) Owner() (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*BridgeSession) RenounceOwnership

func (_Bridge *BridgeSession) RenounceOwnership() (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*BridgeSession) RescueFunds

func (_Bridge *BridgeSession) RescueFunds(tokenToRescue common.Address, to common.Address, amount *big.Int) (*types.Transaction, error)

RescueFunds is a paid mutator transaction binding the contract method 0x6ccae054.

Solidity: function rescueFunds(address tokenToRescue, address to, uint256 amount) returns(bool)

func (*BridgeSession) Token

func (_Bridge *BridgeSession) Token() (common.Address, error)

Token is a free data retrieval call binding the contract method 0xfc0c546a.

Solidity: function token() view returns(address)

func (*BridgeSession) TransferOwnership

func (_Bridge *BridgeSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

type BridgeTransactor

type BridgeTransactor struct {
	// contains filtered or unexported fields
}

BridgeTransactor is an auto generated write-only Go binding around an Ethereum contract.

func NewBridgeTransactor

func NewBridgeTransactor(address common.Address, transactor bind.ContractTransactor) (*BridgeTransactor, error)

NewBridgeTransactor creates a new write-only instance of Bridge, bound to a specific deployed contract.

func (*BridgeTransactor) Burn

func (_Bridge *BridgeTransactor) Burn(opts *bind.TransactOpts, _amount *big.Int, _clientId []byte) (*types.Transaction, error)

Burn is a paid mutator transaction binding the contract method 0xfe9d9303.

Solidity: function burn(uint256 _amount, bytes _clientId) returns()

func (*BridgeTransactor) IsAuthorizationValid

func (_Bridge *BridgeTransactor) IsAuthorizationValid(opts *bind.TransactOpts, _amount *big.Int, _txid []byte, _clientId []byte, _nonce *big.Int, signature []byte) (*types.Transaction, error)

IsAuthorizationValid is a paid mutator transaction binding the contract method 0x92c463bc.

Solidity: function isAuthorizationValid(uint256 _amount, bytes _txid, bytes _clientId, uint256 _nonce, bytes signature) returns(bool)

func (*BridgeTransactor) Mint

func (_Bridge *BridgeTransactor) Mint(opts *bind.TransactOpts, _amount *big.Int, _txid []byte, _clientId []byte, _nonce *big.Int, _signatures []byte) (*types.Transaction, error)

Mint is a paid mutator transaction binding the contract method 0x4f815160.

Solidity: function mint(uint256 _amount, bytes _txid, bytes _clientId, uint256 _nonce, bytes _signatures) returns()

func (*BridgeTransactor) MintFor

func (_Bridge *BridgeTransactor) MintFor(opts *bind.TransactOpts, _for common.Address, _amount *big.Int, _txid []byte, _clientId []byte, _nonce *big.Int, _signatures []byte) (*types.Transaction, error)

MintFor is a paid mutator transaction binding the contract method 0x3e12faa4.

Solidity: function mintFor(address _for, uint256 _amount, bytes _txid, bytes _clientId, uint256 _nonce, bytes _signatures) returns()

func (*BridgeTransactor) RenounceOwnership

func (_Bridge *BridgeTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*BridgeTransactor) RescueFunds

func (_Bridge *BridgeTransactor) RescueFunds(opts *bind.TransactOpts, tokenToRescue common.Address, to common.Address, amount *big.Int) (*types.Transaction, error)

RescueFunds is a paid mutator transaction binding the contract method 0x6ccae054.

Solidity: function rescueFunds(address tokenToRescue, address to, uint256 amount) returns(bool)

func (*BridgeTransactor) TransferOwnership

func (_Bridge *BridgeTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

type BridgeTransactorRaw

type BridgeTransactorRaw struct {
	Contract *BridgeTransactor // Generic write-only contract binding to access the raw methods on
}

BridgeTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.

func (*BridgeTransactorRaw) Transact

func (_Bridge *BridgeTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*BridgeTransactorRaw) Transfer

func (_Bridge *BridgeTransactorRaw) 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 BridgeTransactorSession

type BridgeTransactorSession struct {
	Contract     *BridgeTransactor // Generic contract transactor binding to set the session for
	TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}

BridgeTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.

func (*BridgeTransactorSession) Burn

func (_Bridge *BridgeTransactorSession) Burn(_amount *big.Int, _clientId []byte) (*types.Transaction, error)

Burn is a paid mutator transaction binding the contract method 0xfe9d9303.

Solidity: function burn(uint256 _amount, bytes _clientId) returns()

func (*BridgeTransactorSession) IsAuthorizationValid

func (_Bridge *BridgeTransactorSession) IsAuthorizationValid(_amount *big.Int, _txid []byte, _clientId []byte, _nonce *big.Int, signature []byte) (*types.Transaction, error)

IsAuthorizationValid is a paid mutator transaction binding the contract method 0x92c463bc.

Solidity: function isAuthorizationValid(uint256 _amount, bytes _txid, bytes _clientId, uint256 _nonce, bytes signature) returns(bool)

func (*BridgeTransactorSession) Mint

func (_Bridge *BridgeTransactorSession) Mint(_amount *big.Int, _txid []byte, _clientId []byte, _nonce *big.Int, _signatures []byte) (*types.Transaction, error)

Mint is a paid mutator transaction binding the contract method 0x4f815160.

Solidity: function mint(uint256 _amount, bytes _txid, bytes _clientId, uint256 _nonce, bytes _signatures) returns()

func (*BridgeTransactorSession) MintFor

func (_Bridge *BridgeTransactorSession) MintFor(_for common.Address, _amount *big.Int, _txid []byte, _clientId []byte, _nonce *big.Int, _signatures []byte) (*types.Transaction, error)

MintFor is a paid mutator transaction binding the contract method 0x3e12faa4.

Solidity: function mintFor(address _for, uint256 _amount, bytes _txid, bytes _clientId, uint256 _nonce, bytes _signatures) returns()

func (*BridgeTransactorSession) RenounceOwnership

func (_Bridge *BridgeTransactorSession) RenounceOwnership() (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*BridgeTransactorSession) RescueFunds

func (_Bridge *BridgeTransactorSession) RescueFunds(tokenToRescue common.Address, to common.Address, amount *big.Int) (*types.Transaction, error)

RescueFunds is a paid mutator transaction binding the contract method 0x6ccae054.

Solidity: function rescueFunds(address tokenToRescue, address to, uint256 amount) returns(bool)

func (*BridgeTransactorSession) TransferOwnership

func (_Bridge *BridgeTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL