Documentation ¶
Index ¶
- Variables
- type Hub2
- type Hub2Caller
- func (_Hub2 *Hub2Caller) Guardian(opts *bind.CallOpts) (common.Address, error)
- func (_Hub2 *Hub2Caller) LastBatchNonce(opts *bind.CallOpts, _erc20Address common.Address) (*big.Int, error)
- func (_Hub2 *Hub2Caller) LastLogicCallNonce(opts *bind.CallOpts, _invalidation_id [32]byte) (*big.Int, error)
- func (_Hub2 *Hub2Caller) StateGravityId(opts *bind.CallOpts) ([32]byte, error)
- func (_Hub2 *Hub2Caller) StateInvalidationMapping(opts *bind.CallOpts, arg0 [32]byte) (*big.Int, error)
- func (_Hub2 *Hub2Caller) StateLastBatchNonces(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
- func (_Hub2 *Hub2Caller) StateLastEventNonce(opts *bind.CallOpts) (*big.Int, error)
- func (_Hub2 *Hub2Caller) StateLastValsetCheckpoint(opts *bind.CallOpts) ([32]byte, error)
- func (_Hub2 *Hub2Caller) StateLastValsetNonce(opts *bind.CallOpts) (*big.Int, error)
- func (_Hub2 *Hub2Caller) StatePowerThreshold(opts *bind.CallOpts) (*big.Int, error)
- func (_Hub2 *Hub2Caller) WethAddress(opts *bind.CallOpts) (common.Address, error)
- type Hub2CallerRaw
- type Hub2CallerSession
- func (_Hub2 *Hub2CallerSession) Guardian() (common.Address, error)
- func (_Hub2 *Hub2CallerSession) LastBatchNonce(_erc20Address common.Address) (*big.Int, error)
- func (_Hub2 *Hub2CallerSession) LastLogicCallNonce(_invalidation_id [32]byte) (*big.Int, error)
- func (_Hub2 *Hub2CallerSession) StateGravityId() ([32]byte, error)
- func (_Hub2 *Hub2CallerSession) StateInvalidationMapping(arg0 [32]byte) (*big.Int, error)
- func (_Hub2 *Hub2CallerSession) StateLastBatchNonces(arg0 common.Address) (*big.Int, error)
- func (_Hub2 *Hub2CallerSession) StateLastEventNonce() (*big.Int, error)
- func (_Hub2 *Hub2CallerSession) StateLastValsetCheckpoint() ([32]byte, error)
- func (_Hub2 *Hub2CallerSession) StateLastValsetNonce() (*big.Int, error)
- func (_Hub2 *Hub2CallerSession) StatePowerThreshold() (*big.Int, error)
- func (_Hub2 *Hub2CallerSession) WethAddress() (common.Address, error)
- type Hub2Filterer
- func (_Hub2 *Hub2Filterer) FilterLogicCallEvent(opts *bind.FilterOpts) (*Hub2LogicCallEventIterator, error)
- func (_Hub2 *Hub2Filterer) FilterTransactionBatchExecutedEvent(opts *bind.FilterOpts, _batchNonce []*big.Int, _token []common.Address) (*Hub2TransactionBatchExecutedEventIterator, error)
- func (_Hub2 *Hub2Filterer) FilterTransferToChainEvent(opts *bind.FilterOpts, _tokenContract []common.Address, ...) (*Hub2TransferToChainEventIterator, error)
- func (_Hub2 *Hub2Filterer) FilterValsetUpdatedEvent(opts *bind.FilterOpts, _newValsetNonce []*big.Int) (*Hub2ValsetUpdatedEventIterator, error)
- func (_Hub2 *Hub2Filterer) ParseLogicCallEvent(log types.Log) (*Hub2LogicCallEvent, error)
- func (_Hub2 *Hub2Filterer) ParseTransactionBatchExecutedEvent(log types.Log) (*Hub2TransactionBatchExecutedEvent, error)
- func (_Hub2 *Hub2Filterer) ParseTransferToChainEvent(log types.Log) (*Hub2TransferToChainEvent, error)
- func (_Hub2 *Hub2Filterer) ParseValsetUpdatedEvent(log types.Log) (*Hub2ValsetUpdatedEvent, error)
- func (_Hub2 *Hub2Filterer) WatchLogicCallEvent(opts *bind.WatchOpts, sink chan<- *Hub2LogicCallEvent) (event.Subscription, error)
- func (_Hub2 *Hub2Filterer) WatchTransactionBatchExecutedEvent(opts *bind.WatchOpts, sink chan<- *Hub2TransactionBatchExecutedEvent, ...) (event.Subscription, error)
- func (_Hub2 *Hub2Filterer) WatchTransferToChainEvent(opts *bind.WatchOpts, sink chan<- *Hub2TransferToChainEvent, ...) (event.Subscription, error)
- func (_Hub2 *Hub2Filterer) WatchValsetUpdatedEvent(opts *bind.WatchOpts, sink chan<- *Hub2ValsetUpdatedEvent, ...) (event.Subscription, error)
- type Hub2LogicCallEvent
- type Hub2LogicCallEventIterator
- type Hub2Raw
- func (_Hub2 *Hub2Raw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_Hub2 *Hub2Raw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Hub2 *Hub2Raw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type Hub2Session
- func (_Hub2 *Hub2Session) ChangeGuardian(_guardian common.Address) (*types.Transaction, error)
- func (_Hub2 *Hub2Session) Guardian() (common.Address, error)
- func (_Hub2 *Hub2Session) LastBatchNonce(_erc20Address common.Address) (*big.Int, error)
- func (_Hub2 *Hub2Session) LastLogicCallNonce(_invalidation_id [32]byte) (*big.Int, error)
- func (_Hub2 *Hub2Session) PanicHalt(_tokenContracts []common.Address, _safeAddress common.Address) (*types.Transaction, error)
- func (_Hub2 *Hub2Session) Receive() (*types.Transaction, error)
- func (_Hub2 *Hub2Session) StateGravityId() ([32]byte, error)
- func (_Hub2 *Hub2Session) StateInvalidationMapping(arg0 [32]byte) (*big.Int, error)
- func (_Hub2 *Hub2Session) StateLastBatchNonces(arg0 common.Address) (*big.Int, error)
- func (_Hub2 *Hub2Session) StateLastEventNonce() (*big.Int, error)
- func (_Hub2 *Hub2Session) StateLastValsetCheckpoint() ([32]byte, error)
- func (_Hub2 *Hub2Session) StateLastValsetNonce() (*big.Int, error)
- func (_Hub2 *Hub2Session) StatePowerThreshold() (*big.Int, error)
- func (_Hub2 *Hub2Session) SubmitBatch(_currentValidators []common.Address, _currentPowers []*big.Int, ...) (*types.Transaction, error)
- func (_Hub2 *Hub2Session) SubmitLogicCall(_currentValidators []common.Address, _currentPowers []*big.Int, ...) (*types.Transaction, error)
- func (_Hub2 *Hub2Session) TransferETHToChain(_destinationChain [32]byte, _destination [32]byte, _fee *big.Int) (*types.Transaction, error)
- func (_Hub2 *Hub2Session) TransferToChain(_tokenContract common.Address, _destinationChain [32]byte, ...) (*types.Transaction, error)
- func (_Hub2 *Hub2Session) UpdateValset(_newValidators []common.Address, _newPowers []*big.Int, ...) (*types.Transaction, error)
- func (_Hub2 *Hub2Session) WethAddress() (common.Address, error)
- type Hub2TransactionBatchExecutedEvent
- type Hub2TransactionBatchExecutedEventIterator
- type Hub2Transactor
- func (_Hub2 *Hub2Transactor) ChangeGuardian(opts *bind.TransactOpts, _guardian common.Address) (*types.Transaction, error)
- func (_Hub2 *Hub2Transactor) PanicHalt(opts *bind.TransactOpts, _tokenContracts []common.Address, ...) (*types.Transaction, error)
- func (_Hub2 *Hub2Transactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Hub2 *Hub2Transactor) SubmitBatch(opts *bind.TransactOpts, _currentValidators []common.Address, ...) (*types.Transaction, error)
- func (_Hub2 *Hub2Transactor) SubmitLogicCall(opts *bind.TransactOpts, _currentValidators []common.Address, ...) (*types.Transaction, error)
- func (_Hub2 *Hub2Transactor) TransferETHToChain(opts *bind.TransactOpts, _destinationChain [32]byte, _destination [32]byte, ...) (*types.Transaction, error)
- func (_Hub2 *Hub2Transactor) TransferToChain(opts *bind.TransactOpts, _tokenContract common.Address, ...) (*types.Transaction, error)
- func (_Hub2 *Hub2Transactor) UpdateValset(opts *bind.TransactOpts, _newValidators []common.Address, ...) (*types.Transaction, error)
- type Hub2TransactorRaw
- type Hub2TransactorSession
- func (_Hub2 *Hub2TransactorSession) ChangeGuardian(_guardian common.Address) (*types.Transaction, error)
- func (_Hub2 *Hub2TransactorSession) PanicHalt(_tokenContracts []common.Address, _safeAddress common.Address) (*types.Transaction, error)
- func (_Hub2 *Hub2TransactorSession) Receive() (*types.Transaction, error)
- func (_Hub2 *Hub2TransactorSession) SubmitBatch(_currentValidators []common.Address, _currentPowers []*big.Int, ...) (*types.Transaction, error)
- func (_Hub2 *Hub2TransactorSession) SubmitLogicCall(_currentValidators []common.Address, _currentPowers []*big.Int, ...) (*types.Transaction, error)
- func (_Hub2 *Hub2TransactorSession) TransferETHToChain(_destinationChain [32]byte, _destination [32]byte, _fee *big.Int) (*types.Transaction, error)
- func (_Hub2 *Hub2TransactorSession) TransferToChain(_tokenContract common.Address, _destinationChain [32]byte, ...) (*types.Transaction, error)
- func (_Hub2 *Hub2TransactorSession) UpdateValset(_newValidators []common.Address, _newPowers []*big.Int, ...) (*types.Transaction, error)
- type Hub2TransferToChainEvent
- type Hub2TransferToChainEventIterator
- type Hub2ValsetUpdatedEvent
- type Hub2ValsetUpdatedEventIterator
- type LogicCallArgs
Constants ¶
This section is empty.
Variables ¶
var Hub2ABI = Hub2MetaData.ABI
Hub2ABI is the input ABI used to generate the binding from. Deprecated: Use Hub2MetaData.ABI instead.
var Hub2Bin = Hub2MetaData.Bin
Hub2Bin is the compiled bytecode used for deploying new contracts. Deprecated: Use Hub2MetaData.Bin instead.
var Hub2MetaData = &bind.MetaData{
ABI: "[{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"_gravityId\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"_powerThreshold\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"_validators\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"_powers\",\"type\":\"uint256[]\"},{\"internalType\":\"address\",\"name\":\"_wethAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_guardian\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"_invalidationId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"_invalidationNonce\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"_eventNonce\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"_returnData\",\"type\":\"bytes\"}],\"name\":\"LogicCallEvent\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"_batchNonce\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"_token\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"_eventNonce\",\"type\":\"uint256\"}],\"name\":\"TransactionBatchExecutedEvent\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"_tokenContract\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"_sender\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"_destinationChain\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"_destination\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"_fee\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"_eventNonce\",\"type\":\"uint256\"}],\"name\":\"TransferToChainEvent\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"_newValsetNonce\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"_eventNonce\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address[]\",\"name\":\"_validators\",\"type\":\"address[]\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"_powers\",\"type\":\"uint256[]\"}],\"name\":\"ValsetUpdatedEvent\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_guardian\",\"type\":\"address\"}],\"name\":\"changeGuardian\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"guardian\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_erc20Address\",\"type\":\"address\"}],\"name\":\"lastBatchNonce\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"_invalidation_id\",\"type\":\"bytes32\"}],\"name\":\"lastLogicCallNonce\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"_tokenContracts\",\"type\":\"address[]\"},{\"internalType\":\"address\",\"name\":\"_safeAddress\",\"type\":\"address\"}],\"name\":\"panicHalt\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"state_gravityId\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"state_invalidationMapping\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"state_lastBatchNonces\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"state_lastEventNonce\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"state_lastValsetCheckpoint\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"state_lastValsetNonce\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"state_powerThreshold\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"_currentValidators\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"_currentPowers\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256\",\"name\":\"_currentValsetNonce\",\"type\":\"uint256\"},{\"internalType\":\"uint8[]\",\"name\":\"_v\",\"type\":\"uint8[]\"},{\"internalType\":\"bytes32[]\",\"name\":\"_r\",\"type\":\"bytes32[]\"},{\"internalType\":\"bytes32[]\",\"name\":\"_s\",\"type\":\"bytes32[]\"},{\"internalType\":\"uint256[]\",\"name\":\"_amounts\",\"type\":\"uint256[]\"},{\"internalType\":\"addresspayable[]\",\"name\":\"_destinations\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"_fees\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256\",\"name\":\"_batchNonce\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_tokenContract\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_batchTimeout\",\"type\":\"uint256\"}],\"name\":\"submitBatch\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"_currentValidators\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"_currentPowers\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256\",\"name\":\"_currentValsetNonce\",\"type\":\"uint256\"},{\"internalType\":\"uint8[]\",\"name\":\"_v\",\"type\":\"uint8[]\"},{\"internalType\":\"bytes32[]\",\"name\":\"_r\",\"type\":\"bytes32[]\"},{\"internalType\":\"bytes32[]\",\"name\":\"_s\",\"type\":\"bytes32[]\"},{\"components\":[{\"internalType\":\"uint256[]\",\"name\":\"transferAmounts\",\"type\":\"uint256[]\"},{\"internalType\":\"address[]\",\"name\":\"transferTokenContracts\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"feeAmounts\",\"type\":\"uint256[]\"},{\"internalType\":\"address[]\",\"name\":\"feeTokenContracts\",\"type\":\"address[]\"},{\"internalType\":\"address\",\"name\":\"logicContractAddress\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"payload\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"timeOut\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"invalidationId\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"invalidationNonce\",\"type\":\"uint256\"}],\"internalType\":\"structLogicCallArgs\",\"name\":\"_args\",\"type\":\"tuple\"}],\"name\":\"submitLogicCall\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"_destinationChain\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"_destination\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"_fee\",\"type\":\"uint256\"}],\"name\":\"transferETHToChain\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_tokenContract\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"_destinationChain\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"_destination\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_fee\",\"type\":\"uint256\"}],\"name\":\"transferToChain\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"_newValidators\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"_newPowers\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256\",\"name\":\"_newValsetNonce\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"_currentValidators\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"_currentPowers\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256\",\"name\":\"_currentValsetNonce\",\"type\":\"uint256\"},{\"internalType\":\"uint8[]\",\"name\":\"_v\",\"type\":\"uint8[]\"},{\"internalType\":\"bytes32[]\",\"name\":\"_r\",\"type\":\"bytes32[]\"},{\"internalType\":\"bytes32[]\",\"name\":\"_s\",\"type\":\"bytes32[]\"}],\"name\":\"updateValset\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"wethAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}]",
Bin: "0x6080604052600060045560016005553480156200001b57600080fd5b50604051620029f3380380620029f38339810160408190526200003e916200025c565b60016000558251845114620000705760405162461bcd60e51b8152600401620000679062000480565b60405180910390fd5b6000805b8451811015620000af578481815181106200008b57fe5b60200260200101518201915086821115620000a657620000af565b60010162000074565b50858111620000d25760405162461bcd60e51b8152600401620000679062000423565b6000620000e28686838b62000176565b600689905560078890556001819055600880546001600160a01b038088166001600160a01b031992831617909255600980549287169290911691909117905560045460055460405192935090917fb119f1f36224601586b5037da909ecf37e83864dddea5d32ad4e32ac1d97e62b9162000160918a908a90620004b7565b60405180910390a2505050505050505062000537565b6040516000906918da1958dadc1bda5b9d60b21b908290620001a5908590849088908b908b90602001620003dc565b60408051808303601f190181529190528051602090910120979650505050505050565b80516001600160a01b0381168114620001e057600080fd5b92915050565b600082601f830112620001f7578081fd5b81516200020e620002088262000517565b620004f0565b8181529150602080830190848101818402860182018710156200023057600080fd5b60005b84811015620002515781518452928201929082019060010162000233565b505050505092915050565b60008060008060008060c0878903121562000275578182fd5b865160208089015160408a01519298509650906001600160401b03808211156200029d578485fd5b818a0191508a601f830112620002b1578485fd5b8151620002c2620002088262000517565b81815284810190848601868402860187018f1015620002df578889fd5b8895505b838610156200030d57620002f88f82620001c8565b835260019590950194918601918601620002e3565b5060608d0151909950945050508083111562000327578485fd5b50506200033789828a01620001e6565b935050620003498860808901620001c8565b91506200035a8860a08901620001c8565b90509295509295509295565b6000815180845260208085019450808401835b83811015620003a05781516001600160a01b03168752958201959082019060010162000379565b509495945050505050565b6000815180845260208085019450808401835b83811015620003a057815187529582019590820190600101620003be565b600086825285602083015284604083015260a060608301526200040360a083018562000366565b8281036080840152620004178185620003ab565b98975050505050505050565b6020808252603c908201527f5375626d69747465642076616c696461746f7220736574207369676e6174757260408201527f657320646f206e6f74206861766520656e6f75676820706f7765722e00000000606082015260800190565b6020808252601f908201527f4d616c666f726d65642063757272656e742076616c696461746f722073657400604082015260600190565b600084825260606020830152620004d2606083018562000366565b8281036040840152620004e68185620003ab565b9695505050505050565b6040518181016001600160401b03811182821017156200050f57600080fd5b604052919050565b60006001600160401b038211156200052d578081fd5b5060209081020190565b6124ac80620005476000396000f3fe60806040526004361061010d5760003560e01c806383b435db11610095578063df97174b11610064578063df97174b146102b9578063e2d7c048146102d9578063e3cb9f62146102ec578063e5a2b5d21461030c578063f2b533071461032157610128565b806383b435db1461024f578063b56561fe1461026f578063bdda81d414610284578063c9d194d51461029957610128565b8063452a9320116100dc578063452a9320146101c35780634f0e0ef3146101e557806373b20547146101fa5780637dfb6f861461020f5780637ecccecc1461022f57610128565b8063011b21741461012d5780630c246c82146101635780631762d25a146101835780632fcb4f04146101a357610128565b36610128576008546001600160a01b0316331461012657fe5b005b600080fd5b34801561013957600080fd5b5061014d610148366004611676565b610336565b60405161015a9190611cb4565b60405180910390f35b34801561016f57600080fd5b5061012661017e3660046119e7565b610351565b34801561018f57600080fd5b5061012661019e3660046116d5565b610668565b3480156101af57600080fd5b506101266101be366004611676565b610755565b3480156101cf57600080fd5b506101d86107a1565b60405161015a9190611c63565b3480156101f157600080fd5b506101d86107b0565b34801561020657600080fd5b5061014d6107bf565b34801561021b57600080fd5b5061014d61022a366004611aff565b6107c5565b34801561023b57600080fd5b5061012661024a366004611692565b6107d7565b34801561025b57600080fd5b5061012661026a36600461184a565b61087e565b34801561027b57600080fd5b5061014d610ba8565b34801561029057600080fd5b5061014d610bae565b3480156102a557600080fd5b5061014d6102b4366004611aff565b610bb4565b3480156102c557600080fd5b5061014d6102d4366004611676565b610bc6565b6101266102e7366004611b17565b610bd8565b3480156102f857600080fd5b50610126610307366004611724565b610cd2565b34801561031857600080fd5b5061014d610e3c565b34801561032d57600080fd5b5061014d610e42565b6001600160a01b031660009081526002602052604090205490565b6002600054141561037d5760405162461bcd60e51b81526004016103749061238b565b60405180910390fd5b600260005560c081015143106103a55760405162461bcd60e51b815260040161037490612070565b61010081015160e0820151600090815260036020526040902054106103dc5760405162461bcd60e51b815260040161037490611fdc565b855187511480156103ee575083518751145b80156103fb575082518751145b8015610408575081518751145b6104245760405162461bcd60e51b815260040161037490612354565b600154610435888888600654610e48565b146104525760405162461bcd60e51b815260040161037490611ef2565b602081015151815151146104785760405162461bcd60e51b815260040161037490612133565b806060015151816040015151146104a15760405162461bcd60e51b815260040161037490611ec2565b6000600654681b1bd9da58d0d85b1b60ba1b836000015184602001518560400151866060015187608001518860a001518960c001518a60e001518b61010001516040516020016104fb9b9a99989796959493929190611d00565b604051602081830303815290604052805190602001209050610524888887878786600754610e9a565b61010082015160e08301516000908152600360205260408120919091555b8251518110156105a45761059c83608001518460000151838151811061056457fe5b60200260200101518560200151848151811061057c57fe5b60200260200101516001600160a01b0316610f919092919063ffffffff16565b600101610542565b5060606105b983608001518460a00151610fe7565b905060005b8360400151518110156105ff576105f733856040015183815181106105df57fe5b60200260200101518660600151848151811061057c57fe5b6001016105be565b5060055461060e906001611032565b600581905560e08401516101008501516040517ff91c95577d70e79c860c20704cbae1beca2045c2e55e466e8a5223f1c0866c93936106509392918690611e47565b60405180910390a15050600160005550505050505050565b6009546001600160a01b031633146106925760405162461bcd60e51b8152600401610374906121ab565b60005b82518110156107505760008382815181106106ac57fe5b6020026020010151905061074783826001600160a01b03166370a08231306040518263ffffffff1660e01b81526004016106e69190611c63565b60206040518083038186803b1580156106fe57600080fd5b505afa158015610712573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107369190611b42565b6001600160a01b0384169190610f91565b50600101610695565b505050565b6009546001600160a01b0316331461077f5760405162461bcd60e51b8152600401610374906121ab565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b6009546001600160a01b031681565b6008546001600160a01b031681565b60055481565b60036020526000908152604090205481565b600260005414156107fa5760405162461bcd60e51b81526004016103749061238b565b60026000556108146001600160a01b038616333085611057565b600554610822906001611032565b6005819055604051859133916001600160a01b038916917f7f4f5725b195c7be189dc38c65df0483114975b57463ac93012ba3ede3b56a959161086a91899189918991611e76565b60405180910390a450506001600055505050565b600260005414156108a15760405162461bcd60e51b81526004016103749061238b565b600260008181556001600160a01b0384168152602091909152604090205483116108dd5760405162461bcd60e51b815260040161037490611f4f565b8043106108fc5760405162461bcd60e51b8152600401610374906120d6565b8a518c5114801561090e575088518c51145b801561091b575087518c51145b8015610928575086518c51145b6109445760405162461bcd60e51b815260040161037490612354565b6001546109558d8d8d600654610e48565b146109725760405162461bcd60e51b815260040161037490611ef2565b84518651148015610984575083518651145b6109a05760405162461bcd60e51b815260040161037490611fa5565b6109fa8c8c8b8b8b6006546f0e8e4c2dce6c2c6e8d2dedc84c2e8c6d60831b8d8d8d8d8d8d6040516020016109dc989796959493929190611da6565b60405160208183030381529060405280519060200120600754610e9a565b6001600160a01b0380831660008181526002602052604090208590556008549091161415610ae55760005b8651811015610adf5760085487516001600160a01b0390911690632e1a7d4d90899084908110610a5157fe5b60200260200101516040518263ffffffff1660e01b8152600401610a759190611cb4565b600060405180830381600087803b158015610a8f57600080fd5b505af1158015610aa3573d6000803e3d6000fd5b50505050610ad7868281518110610ab657fe5b6020026020010151888381518110610aca57fe5b602002602001015161107e565b600101610a25565b50610b3f565b60005b8651811015610b3d57610b35868281518110610b0057fe5b6020026020010151888381518110610b1457fe5b6020026020010151856001600160a01b0316610f919092919063ffffffff16565b600101610ae8565b505b600554610b4d906001611032565b60058190556040516001600160a01b0384169185917f02c7e81975f8edb86e2a0c038b7b86a49c744236abf0f6177ff5afc6986ab70891610b8d91611cb4565b60405180910390a35050600160005550505050505050505050565b60045481565b60065481565b60009081526003602052604090205490565b60026020526000908152604090205481565b60026000541415610bfb5760405162461bcd60e51b81526004016103749061238b565b6002600090815560085460408051630d0e30db60e41b815290516001600160a01b039092169263d0e30db0923492600480820193929182900301818588803b158015610c4657600080fd5b505af1158015610c5a573d6000803e3d6000fd5b5050505050610c75600160055461103290919063ffffffff16565b6005819055600854604051859233926001600160a01b0316917f7f4f5725b195c7be189dc38c65df0483114975b57463ac93012ba3ede3b56a9591610cc09188913491899190611e76565b60405180910390a45050600160005550565b60026000541415610cf55760405162461bcd60e51b81526004016103749061238b565b6002600055838711610d195760405162461bcd60e51b815260040161037490612233565b8751895114610d3a5760405162461bcd60e51b815260040161037490612174565b84518651148015610d4c575082518651145b8015610d59575081518651145b8015610d66575080518651145b610d825760405162461bcd60e51b815260040161037490612354565b600154610d93878787600654610e48565b14610db05760405162461bcd60e51b815260040161037490611ef2565b6000610dc08a8a8a600654610e48565b9050610dd3878786868686600754610e9a565b60018181556004899055600554610de991611032565b600581905560405189917fb119f1f36224601586b5037da909ecf37e83864dddea5d32ad4e32ac1d97e62b91610e2391908e908e906123c2565b60405180910390a2505060016000555050505050505050565b60075481565b60015481565b6040516000906918da1958dadc1bda5b9d60b21b908290610e75908590849088908b908b90602001611cbd565b60408051601f198184030181529190528051602090910120925050505b949350505050565b6000805b8851811015610f6757868181518110610eb357fe5b602002602001015160ff16600014610f5f57610f1e898281518110610ed457fe5b602002602001015185898481518110610ee957fe5b6020026020010151898581518110610efd57fe5b6020026020010151898681518110610f1157fe5b602002602001015161110b565b610f3a5760405162461bcd60e51b815260040161037490612093565b878181518110610f4657fe5b60200260200101518201915082821115610f5f57610f67565b600101610e9e565b50818111610f875760405162461bcd60e51b8152600401610374906121d6565b5050505050505050565b6107508363a9059cbb60e01b8484604051602401610fb0929190611c9b565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526111a6565b606061102983836040518060400160405280601e81526020017f416464726573733a206c6f772d6c6576656c2063616c6c206661696c65640000815250611235565b90505b92915050565b6000828201838110156110295760405162461bcd60e51b815260040161037490612039565b611078846323b872dd60e01b858585604051602401610fb093929190611c77565b50505050565b604080516000808252602082019092526001600160a01b0384169083906040516110a89190611c16565b60006040518083038185875af1925050503d80600081146110e5576040519150601f19603f3d011682016040523d82523d6000602084013e6110ea565b606091505b50509050806107505760405162461bcd60e51b8152600401610374906122c7565b6000808560405160200161111f9190611c32565b6040516020818303038152906040528051906020012090506001818686866040516000815260200160405260405161115a9493929190611e91565b6020604051602081039080840390855afa15801561117c573d6000803e3d6000fd5b505050602060405103516001600160a01b0316876001600160a01b03161491505095945050505050565b60606111fb826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166112359092919063ffffffff16565b80519091501561075057808060200190518101906112199190611adf565b6107505760405162461bcd60e51b81526004016103749061230a565b6060610e928484600085606061124a85611303565b6112665760405162461bcd60e51b815260040161037490612290565b60006060866001600160a01b031685876040516112839190611c16565b60006040518083038185875af1925050503d80600081146112c0576040519150601f19603f3d011682016040523d82523d6000602084013e6112c5565b606091505b509150915081156112d9579150610e929050565b8051156112e95780518082602001fd5b8360405162461bcd60e51b81526004016103749190611eaf565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590610e92575050151592915050565b803561102c8161245e565b600082601f830112611357578081fd5b813561136a61136582612413565b6123ed565b81815291506020808301908481018184028601820187101561138b57600080fd5b60005b848110156113b35781356113a18161245e565b8452928201929082019060010161138e565b505050505092915050565b600082601f8301126113ce578081fd5b81356113dc61136582612413565b8181529150602080830190848101818402860182018710156113fd57600080fd5b60005b848110156113b35781356114138161245e565b84529282019290820190600101611400565b600082601f830112611435578081fd5b813561144361136582612413565b81815291506020808301908481018184028601820187101561146457600080fd5b60005b848110156113b357813584529282019290820190600101611467565b600082601f830112611493578081fd5b81356114a161136582612413565b8181529150602080830190848101818402860182018710156114c257600080fd5b6000805b858110156114f057823560ff811681146114de578283fd5b855293830193918301916001016114c6565b50505050505092915050565b600082601f83011261150c578081fd5b81356001600160401b03811115611521578182fd5b611534601f8201601f19166020016123ed565b915080825283602082850101111561154b57600080fd5b8060208401602084013760009082016020015292915050565b6000610120808385031215611577578182fd5b611580816123ed565b91505081356001600160401b038082111561159a57600080fd5b6115a685838601611425565b835260208401359150808211156115bc57600080fd5b6115c885838601611347565b602084015260408401359150808211156115e157600080fd5b6115ed85838601611425565b6040840152606084013591508082111561160657600080fd5b61161285838601611347565b6060840152611624856080860161133c565b608084015260a084013591508082111561163d57600080fd5b5061164a848285016114fc565b60a08301525060c082013560c082015260e082013560e082015261010080830135818301525092915050565b600060208284031215611687578081fd5b81356110298161245e565b600080600080600060a086880312156116a9578081fd5b85356116b48161245e565b97602087013597506040870135966060810135965060800135945092505050565b600080604083850312156116e7578182fd5b82356001600160401b038111156116fc578283fd5b61170885828601611347565b92505060208301356117198161245e565b809150509250929050565b60008060008060008060008060006101208a8c031215611742578384fd5b89356001600160401b0380821115611758578586fd5b6117648d838e01611347565b9a5060208c0135915080821115611779578586fd5b6117858d838e01611425565b995060408c0135985060608c01359150808211156117a1578586fd5b6117ad8d838e01611347565b975060808c01359150808211156117c2578586fd5b6117ce8d838e01611425565b965060a08c0135955060c08c01359150808211156117ea578485fd5b6117f68d838e01611483565b945060e08c013591508082111561180b578384fd5b6118178d838e01611425565b93506101008c013591508082111561182d578283fd5b5061183a8c828d01611425565b9150509295985092959850929598565b6000806000806000806000806000806000806101808d8f03121561186c578586fd5b6001600160401b038d351115611880578586fd5b61188d8e8e358f01611347565b9b506001600160401b0360208e013511156118a6578586fd5b6118b68e60208f01358f01611425565b9a5060408d013599506001600160401b0360608e013511156118d6578586fd5b6118e68e60608f01358f01611483565b98506001600160401b0360808e013511156118ff578586fd5b61190f8e60808f01358f01611425565b97506001600160401b0360a08e01351115611928578586fd5b6119388e60a08f01358f01611425565b96506001600160401b0360c08e01351115611951578586fd5b6119618e60c08f01358f01611425565b95506001600160401b0360e08e0135111561197a578283fd5b61198a8e60e08f01358f016113be565b94506001600160401b036101008e013511156119a4578283fd5b6119b58e6101008f01358f01611425565b93506101208d013592506119cd8e6101408f0161133c565b91506101608d013590509295989b509295989b509295989b565b600080600080600080600060e0888a031215611a01578081fd5b87356001600160401b0380821115611a17578283fd5b611a238b838c01611347565b985060208a0135915080821115611a38578283fd5b611a448b838c01611425565b975060408a0135965060608a0135915080821115611a60578283fd5b611a6c8b838c01611483565b955060808a0135915080821115611a81578283fd5b611a8d8b838c01611425565b945060a08a0135915080821115611aa2578283fd5b611aae8b838c01611425565b935060c08a0135915080821115611ac3578283fd5b50611ad08a828b01611564565b91505092959891949750929550565b600060208284031215611af0578081fd5b81518015158114611029578182fd5b600060208284031215611b10578081fd5b5035919050565b600080600060608486031215611b2b578081fd5b505081359360208301359350604090920135919050565b600060208284031215611b53578081fd5b5051919050565b6001600160a01b0316815260200190565b6001600160a01b03169052565b6000815180845260208085019450808401835b83811015611bb05781516001600160a01b031687529582019590820190600101611b8b565b509495945050505050565b6000815180845260208085019450808401835b83811015611bb057815187529582019590820190600101611bce565b60008151808452611c02816020860160208601612432565b601f01601f19169290920160200192915050565b60008251611c28818460208701612432565b9190910192915050565b7f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152601c810191909152603c0190565b6001600160a01b0391909116815260200190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b03929092168252602082015260400190565b90815260200190565b600086825285602083015284604083015260a06060830152611ce260a0830185611b78565b8281036080840152611cf48185611bbb565b98975050505050505050565b60006101608d83528c6020840152806040840152611d208184018d611bbb565b90508281036060840152611d34818c611b78565b90508281036080840152611d48818b611bbb565b905082810360a0840152611d5c818a611b78565b6001600160a01b03891660c085015283810360e08501529050611d7f8188611bea565b61010084019690965250506101208101929092526101409091015298975050505050505050565b60006101008a835260208a81850152816040850152611dc78285018b611bbb565b91508382036060850152818951611dde8185611cb4565b9150828b019350845b81811015611e0857611dfa838651611b5a565b948401949250600101611de7565b50508481036080860152611e1c818a611bbb565b93505050508460a0830152611e3460c0830185611b6b565b8260e08301529998505050505050505050565b600085825284602083015283604083015260806060830152611e6c6080830184611bea565b9695505050505050565b93845260208401929092526040830152606082015260800190565b93845260ff9290921660208401526040830152606082015260800190565b6000602082526110296020830184611bea565b6020808252601690820152754d616c666f726d6564206c697374206f66206665657360501b604082015260600190565b6020808252603f908201527f537570706c6965642063757272656e742076616c696461746f727320616e642060408201527f706f7765727320646f206e6f74206d6174636820636865636b706f696e742e00606082015260800190565b60208082526036908201527f4e6577206261746368206e6f6e6365206d7573742062652067726561746572206040820152757468616e207468652063757272656e74206e6f6e636560501b606082015260800190565b6020808252601f908201527f4d616c666f726d6564206261746368206f66207472616e73616374696f6e7300604082015260600190565b6020808252603d908201527f4e657720696e76616c69646174696f6e206e6f6e6365206d757374206265206760408201527f726561746572207468616e207468652063757272656e74206e6f6e6365000000606082015260800190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b602080825260099082015268151a5b5959081bdd5d60ba1b604082015260600190565b60208082526023908201527f56616c696461746f72207369676e617475726520646f6573206e6f74206d617460408201526231b41760e91b606082015260800190565b6020808252603b908201527f42617463682074696d656f7574206d757374206265206772656174657220746860408201527f616e207468652063757272656e7420626c6f636b206865696768740000000000606082015260800190565b60208082526021908201527f4d616c666f726d6564206c697374206f6620746f6b656e207472616e736665726040820152607360f81b606082015260800190565b6020808252601b908201527f4d616c666f726d6564206e65772076616c696461746f72207365740000000000604082015260600190565b6020808252601190820152701c195c9b5a5cdcda5bdb8819195b9a5959607a1b604082015260600190565b6020808252603c908201527f5375626d69747465642076616c696461746f7220736574207369676e6174757260408201527f657320646f206e6f74206861766520656e6f75676820706f7765722e00000000606082015260800190565b60208082526037908201527f4e65772076616c736574206e6f6e6365206d757374206265206772656174657260408201527f207468616e207468652063757272656e74206e6f6e6365000000000000000000606082015260800190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b60208082526023908201527f5472616e7366657248656c7065723a204554485f5452414e534645525f46414960408201526213115160ea1b606082015260800190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6040820152691bdd081cdd58d8d9595960b21b606082015260800190565b6020808252601f908201527f4d616c666f726d65642063757272656e742076616c696461746f722073657400604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6000848252606060208301526123db6060830185611b78565b8281036040840152611e6c8185611bbb565b6040518181016001600160401b038111828210171561240b57600080fd5b604052919050565b60006001600160401b03821115612428578081fd5b5060209081020190565b60005b8381101561244d578181015183820152602001612435565b838111156110785750506000910152565b6001600160a01b038116811461247357600080fd5b5056fea26469706673582212204eab98682e955a3c1ea46a58cbd1d93c2861643852780e4978f3f32a108af29f64736f6c634300060c0033",
}
Hub2MetaData contains all meta data concerning the Hub2 contract.
Functions ¶
This section is empty.
Types ¶
type Hub2 ¶
type Hub2 struct { Hub2Caller // Read-only binding to the contract Hub2Transactor // Write-only binding to the contract Hub2Filterer // Log filterer for contract events }
Hub2 is an auto generated Go binding around an Ethereum contract.
func DeployHub2 ¶
func DeployHub2(auth *bind.TransactOpts, backend bind.ContractBackend, _gravityId [32]byte, _powerThreshold *big.Int, _validators []common.Address, _powers []*big.Int, _wethAddress common.Address, _guardian common.Address) (common.Address, *types.Transaction, *Hub2, error)
DeployHub2 deploys a new Ethereum contract, binding an instance of Hub2 to it.
type Hub2Caller ¶
type Hub2Caller struct {
// contains filtered or unexported fields
}
Hub2Caller is an auto generated read-only Go binding around an Ethereum contract.
func NewHub2Caller ¶
func NewHub2Caller(address common.Address, caller bind.ContractCaller) (*Hub2Caller, error)
NewHub2Caller creates a new read-only instance of Hub2, bound to a specific deployed contract.
func (*Hub2Caller) Guardian ¶
Guardian is a free data retrieval call binding the contract method 0x452a9320.
Solidity: function guardian() view returns(address)
func (*Hub2Caller) LastBatchNonce ¶
func (_Hub2 *Hub2Caller) LastBatchNonce(opts *bind.CallOpts, _erc20Address common.Address) (*big.Int, error)
LastBatchNonce is a free data retrieval call binding the contract method 0x011b2174.
Solidity: function lastBatchNonce(address _erc20Address) view returns(uint256)
func (*Hub2Caller) LastLogicCallNonce ¶
func (_Hub2 *Hub2Caller) LastLogicCallNonce(opts *bind.CallOpts, _invalidation_id [32]byte) (*big.Int, error)
LastLogicCallNonce is a free data retrieval call binding the contract method 0xc9d194d5.
Solidity: function lastLogicCallNonce(bytes32 _invalidation_id) view returns(uint256)
func (*Hub2Caller) StateGravityId ¶
func (_Hub2 *Hub2Caller) StateGravityId(opts *bind.CallOpts) ([32]byte, error)
StateGravityId is a free data retrieval call binding the contract method 0xbdda81d4.
Solidity: function state_gravityId() view returns(bytes32)
func (*Hub2Caller) StateInvalidationMapping ¶
func (_Hub2 *Hub2Caller) StateInvalidationMapping(opts *bind.CallOpts, arg0 [32]byte) (*big.Int, error)
StateInvalidationMapping is a free data retrieval call binding the contract method 0x7dfb6f86.
Solidity: function state_invalidationMapping(bytes32 ) view returns(uint256)
func (*Hub2Caller) StateLastBatchNonces ¶
func (_Hub2 *Hub2Caller) StateLastBatchNonces(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
StateLastBatchNonces is a free data retrieval call binding the contract method 0xdf97174b.
Solidity: function state_lastBatchNonces(address ) view returns(uint256)
func (*Hub2Caller) StateLastEventNonce ¶
StateLastEventNonce is a free data retrieval call binding the contract method 0x73b20547.
Solidity: function state_lastEventNonce() view returns(uint256)
func (*Hub2Caller) StateLastValsetCheckpoint ¶
func (_Hub2 *Hub2Caller) StateLastValsetCheckpoint(opts *bind.CallOpts) ([32]byte, error)
StateLastValsetCheckpoint is a free data retrieval call binding the contract method 0xf2b53307.
Solidity: function state_lastValsetCheckpoint() view returns(bytes32)
func (*Hub2Caller) StateLastValsetNonce ¶
StateLastValsetNonce is a free data retrieval call binding the contract method 0xb56561fe.
Solidity: function state_lastValsetNonce() view returns(uint256)
func (*Hub2Caller) StatePowerThreshold ¶
StatePowerThreshold is a free data retrieval call binding the contract method 0xe5a2b5d2.
Solidity: function state_powerThreshold() view returns(uint256)
func (*Hub2Caller) WethAddress ¶
WethAddress is a free data retrieval call binding the contract method 0x4f0e0ef3.
Solidity: function wethAddress() view returns(address)
type Hub2CallerRaw ¶
type Hub2CallerRaw struct {
Contract *Hub2Caller // Generic read-only contract binding to access the raw methods on
}
Hub2CallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*Hub2CallerRaw) Call ¶
func (_Hub2 *Hub2CallerRaw) 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 Hub2CallerSession ¶
type Hub2CallerSession struct { Contract *Hub2Caller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
Hub2CallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*Hub2CallerSession) Guardian ¶
func (_Hub2 *Hub2CallerSession) Guardian() (common.Address, error)
Guardian is a free data retrieval call binding the contract method 0x452a9320.
Solidity: function guardian() view returns(address)
func (*Hub2CallerSession) LastBatchNonce ¶
LastBatchNonce is a free data retrieval call binding the contract method 0x011b2174.
Solidity: function lastBatchNonce(address _erc20Address) view returns(uint256)
func (*Hub2CallerSession) LastLogicCallNonce ¶
func (_Hub2 *Hub2CallerSession) LastLogicCallNonce(_invalidation_id [32]byte) (*big.Int, error)
LastLogicCallNonce is a free data retrieval call binding the contract method 0xc9d194d5.
Solidity: function lastLogicCallNonce(bytes32 _invalidation_id) view returns(uint256)
func (*Hub2CallerSession) StateGravityId ¶
func (_Hub2 *Hub2CallerSession) StateGravityId() ([32]byte, error)
StateGravityId is a free data retrieval call binding the contract method 0xbdda81d4.
Solidity: function state_gravityId() view returns(bytes32)
func (*Hub2CallerSession) StateInvalidationMapping ¶
func (_Hub2 *Hub2CallerSession) StateInvalidationMapping(arg0 [32]byte) (*big.Int, error)
StateInvalidationMapping is a free data retrieval call binding the contract method 0x7dfb6f86.
Solidity: function state_invalidationMapping(bytes32 ) view returns(uint256)
func (*Hub2CallerSession) StateLastBatchNonces ¶
StateLastBatchNonces is a free data retrieval call binding the contract method 0xdf97174b.
Solidity: function state_lastBatchNonces(address ) view returns(uint256)
func (*Hub2CallerSession) StateLastEventNonce ¶
func (_Hub2 *Hub2CallerSession) StateLastEventNonce() (*big.Int, error)
StateLastEventNonce is a free data retrieval call binding the contract method 0x73b20547.
Solidity: function state_lastEventNonce() view returns(uint256)
func (*Hub2CallerSession) StateLastValsetCheckpoint ¶
func (_Hub2 *Hub2CallerSession) StateLastValsetCheckpoint() ([32]byte, error)
StateLastValsetCheckpoint is a free data retrieval call binding the contract method 0xf2b53307.
Solidity: function state_lastValsetCheckpoint() view returns(bytes32)
func (*Hub2CallerSession) StateLastValsetNonce ¶
func (_Hub2 *Hub2CallerSession) StateLastValsetNonce() (*big.Int, error)
StateLastValsetNonce is a free data retrieval call binding the contract method 0xb56561fe.
Solidity: function state_lastValsetNonce() view returns(uint256)
func (*Hub2CallerSession) StatePowerThreshold ¶
func (_Hub2 *Hub2CallerSession) StatePowerThreshold() (*big.Int, error)
StatePowerThreshold is a free data retrieval call binding the contract method 0xe5a2b5d2.
Solidity: function state_powerThreshold() view returns(uint256)
func (*Hub2CallerSession) WethAddress ¶
func (_Hub2 *Hub2CallerSession) WethAddress() (common.Address, error)
WethAddress is a free data retrieval call binding the contract method 0x4f0e0ef3.
Solidity: function wethAddress() view returns(address)
type Hub2Filterer ¶
type Hub2Filterer struct {
// contains filtered or unexported fields
}
Hub2Filterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewHub2Filterer ¶
func NewHub2Filterer(address common.Address, filterer bind.ContractFilterer) (*Hub2Filterer, error)
NewHub2Filterer creates a new log filterer instance of Hub2, bound to a specific deployed contract.
func (*Hub2Filterer) FilterLogicCallEvent ¶
func (_Hub2 *Hub2Filterer) FilterLogicCallEvent(opts *bind.FilterOpts) (*Hub2LogicCallEventIterator, error)
FilterLogicCallEvent is a free log retrieval operation binding the contract event 0xf91c95577d70e79c860c20704cbae1beca2045c2e55e466e8a5223f1c0866c93.
Solidity: event LogicCallEvent(bytes32 _invalidationId, uint256 _invalidationNonce, uint256 _eventNonce, bytes _returnData)
func (*Hub2Filterer) FilterTransactionBatchExecutedEvent ¶
func (_Hub2 *Hub2Filterer) FilterTransactionBatchExecutedEvent(opts *bind.FilterOpts, _batchNonce []*big.Int, _token []common.Address) (*Hub2TransactionBatchExecutedEventIterator, error)
FilterTransactionBatchExecutedEvent is a free log retrieval operation binding the contract event 0x02c7e81975f8edb86e2a0c038b7b86a49c744236abf0f6177ff5afc6986ab708.
Solidity: event TransactionBatchExecutedEvent(uint256 indexed _batchNonce, address indexed _token, uint256 _eventNonce)
func (*Hub2Filterer) FilterTransferToChainEvent ¶
func (_Hub2 *Hub2Filterer) FilterTransferToChainEvent(opts *bind.FilterOpts, _tokenContract []common.Address, _sender []common.Address, _destinationChain [][32]byte) (*Hub2TransferToChainEventIterator, error)
FilterTransferToChainEvent is a free log retrieval operation binding the contract event 0x7f4f5725b195c7be189dc38c65df0483114975b57463ac93012ba3ede3b56a95.
Solidity: event TransferToChainEvent(address indexed _tokenContract, address indexed _sender, bytes32 indexed _destinationChain, bytes32 _destination, uint256 _amount, uint256 _fee, uint256 _eventNonce)
func (*Hub2Filterer) FilterValsetUpdatedEvent ¶
func (_Hub2 *Hub2Filterer) FilterValsetUpdatedEvent(opts *bind.FilterOpts, _newValsetNonce []*big.Int) (*Hub2ValsetUpdatedEventIterator, error)
FilterValsetUpdatedEvent is a free log retrieval operation binding the contract event 0xb119f1f36224601586b5037da909ecf37e83864dddea5d32ad4e32ac1d97e62b.
Solidity: event ValsetUpdatedEvent(uint256 indexed _newValsetNonce, uint256 _eventNonce, address[] _validators, uint256[] _powers)
func (*Hub2Filterer) ParseLogicCallEvent ¶
func (_Hub2 *Hub2Filterer) ParseLogicCallEvent(log types.Log) (*Hub2LogicCallEvent, error)
ParseLogicCallEvent is a log parse operation binding the contract event 0xf91c95577d70e79c860c20704cbae1beca2045c2e55e466e8a5223f1c0866c93.
Solidity: event LogicCallEvent(bytes32 _invalidationId, uint256 _invalidationNonce, uint256 _eventNonce, bytes _returnData)
func (*Hub2Filterer) ParseTransactionBatchExecutedEvent ¶
func (_Hub2 *Hub2Filterer) ParseTransactionBatchExecutedEvent(log types.Log) (*Hub2TransactionBatchExecutedEvent, error)
ParseTransactionBatchExecutedEvent is a log parse operation binding the contract event 0x02c7e81975f8edb86e2a0c038b7b86a49c744236abf0f6177ff5afc6986ab708.
Solidity: event TransactionBatchExecutedEvent(uint256 indexed _batchNonce, address indexed _token, uint256 _eventNonce)
func (*Hub2Filterer) ParseTransferToChainEvent ¶
func (_Hub2 *Hub2Filterer) ParseTransferToChainEvent(log types.Log) (*Hub2TransferToChainEvent, error)
ParseTransferToChainEvent is a log parse operation binding the contract event 0x7f4f5725b195c7be189dc38c65df0483114975b57463ac93012ba3ede3b56a95.
Solidity: event TransferToChainEvent(address indexed _tokenContract, address indexed _sender, bytes32 indexed _destinationChain, bytes32 _destination, uint256 _amount, uint256 _fee, uint256 _eventNonce)
func (*Hub2Filterer) ParseValsetUpdatedEvent ¶
func (_Hub2 *Hub2Filterer) ParseValsetUpdatedEvent(log types.Log) (*Hub2ValsetUpdatedEvent, error)
ParseValsetUpdatedEvent is a log parse operation binding the contract event 0xb119f1f36224601586b5037da909ecf37e83864dddea5d32ad4e32ac1d97e62b.
Solidity: event ValsetUpdatedEvent(uint256 indexed _newValsetNonce, uint256 _eventNonce, address[] _validators, uint256[] _powers)
func (*Hub2Filterer) WatchLogicCallEvent ¶
func (_Hub2 *Hub2Filterer) WatchLogicCallEvent(opts *bind.WatchOpts, sink chan<- *Hub2LogicCallEvent) (event.Subscription, error)
WatchLogicCallEvent is a free log subscription operation binding the contract event 0xf91c95577d70e79c860c20704cbae1beca2045c2e55e466e8a5223f1c0866c93.
Solidity: event LogicCallEvent(bytes32 _invalidationId, uint256 _invalidationNonce, uint256 _eventNonce, bytes _returnData)
func (*Hub2Filterer) WatchTransactionBatchExecutedEvent ¶
func (_Hub2 *Hub2Filterer) WatchTransactionBatchExecutedEvent(opts *bind.WatchOpts, sink chan<- *Hub2TransactionBatchExecutedEvent, _batchNonce []*big.Int, _token []common.Address) (event.Subscription, error)
WatchTransactionBatchExecutedEvent is a free log subscription operation binding the contract event 0x02c7e81975f8edb86e2a0c038b7b86a49c744236abf0f6177ff5afc6986ab708.
Solidity: event TransactionBatchExecutedEvent(uint256 indexed _batchNonce, address indexed _token, uint256 _eventNonce)
func (*Hub2Filterer) WatchTransferToChainEvent ¶
func (_Hub2 *Hub2Filterer) WatchTransferToChainEvent(opts *bind.WatchOpts, sink chan<- *Hub2TransferToChainEvent, _tokenContract []common.Address, _sender []common.Address, _destinationChain [][32]byte) (event.Subscription, error)
WatchTransferToChainEvent is a free log subscription operation binding the contract event 0x7f4f5725b195c7be189dc38c65df0483114975b57463ac93012ba3ede3b56a95.
Solidity: event TransferToChainEvent(address indexed _tokenContract, address indexed _sender, bytes32 indexed _destinationChain, bytes32 _destination, uint256 _amount, uint256 _fee, uint256 _eventNonce)
func (*Hub2Filterer) WatchValsetUpdatedEvent ¶
func (_Hub2 *Hub2Filterer) WatchValsetUpdatedEvent(opts *bind.WatchOpts, sink chan<- *Hub2ValsetUpdatedEvent, _newValsetNonce []*big.Int) (event.Subscription, error)
WatchValsetUpdatedEvent is a free log subscription operation binding the contract event 0xb119f1f36224601586b5037da909ecf37e83864dddea5d32ad4e32ac1d97e62b.
Solidity: event ValsetUpdatedEvent(uint256 indexed _newValsetNonce, uint256 _eventNonce, address[] _validators, uint256[] _powers)
type Hub2LogicCallEvent ¶
type Hub2LogicCallEvent struct { InvalidationId [32]byte InvalidationNonce *big.Int EventNonce *big.Int ReturnData []byte Raw types.Log // Blockchain specific contextual infos }
Hub2LogicCallEvent represents a LogicCallEvent event raised by the Hub2 contract.
type Hub2LogicCallEventIterator ¶
type Hub2LogicCallEventIterator struct { Event *Hub2LogicCallEvent // Event containing the contract specifics and raw log // contains filtered or unexported fields }
Hub2LogicCallEventIterator is returned from FilterLogicCallEvent and is used to iterate over the raw logs and unpacked data for LogicCallEvent events raised by the Hub2 contract.
func (*Hub2LogicCallEventIterator) Close ¶
func (it *Hub2LogicCallEventIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*Hub2LogicCallEventIterator) Error ¶
func (it *Hub2LogicCallEventIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*Hub2LogicCallEventIterator) Next ¶
func (it *Hub2LogicCallEventIterator) 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 Hub2Raw ¶
type Hub2Raw struct {
Contract *Hub2 // Generic contract binding to access the raw methods on
}
Hub2Raw is an auto generated low-level Go binding around an Ethereum contract.
func (*Hub2Raw) Call ¶
func (_Hub2 *Hub2Raw) 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 (*Hub2Raw) Transact ¶
func (_Hub2 *Hub2Raw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*Hub2Raw) Transfer ¶
func (_Hub2 *Hub2Raw) 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 Hub2Session ¶
type Hub2Session struct { Contract *Hub2 // 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 }
Hub2Session is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*Hub2Session) ChangeGuardian ¶
func (_Hub2 *Hub2Session) ChangeGuardian(_guardian common.Address) (*types.Transaction, error)
ChangeGuardian is a paid mutator transaction binding the contract method 0x2fcb4f04.
Solidity: function changeGuardian(address _guardian) returns()
func (*Hub2Session) Guardian ¶
func (_Hub2 *Hub2Session) Guardian() (common.Address, error)
Guardian is a free data retrieval call binding the contract method 0x452a9320.
Solidity: function guardian() view returns(address)
func (*Hub2Session) LastBatchNonce ¶
LastBatchNonce is a free data retrieval call binding the contract method 0x011b2174.
Solidity: function lastBatchNonce(address _erc20Address) view returns(uint256)
func (*Hub2Session) LastLogicCallNonce ¶
func (_Hub2 *Hub2Session) LastLogicCallNonce(_invalidation_id [32]byte) (*big.Int, error)
LastLogicCallNonce is a free data retrieval call binding the contract method 0xc9d194d5.
Solidity: function lastLogicCallNonce(bytes32 _invalidation_id) view returns(uint256)
func (*Hub2Session) PanicHalt ¶
func (_Hub2 *Hub2Session) PanicHalt(_tokenContracts []common.Address, _safeAddress common.Address) (*types.Transaction, error)
PanicHalt is a paid mutator transaction binding the contract method 0x1762d25a.
Solidity: function panicHalt(address[] _tokenContracts, address _safeAddress) returns()
func (*Hub2Session) Receive ¶
func (_Hub2 *Hub2Session) Receive() (*types.Transaction, error)
Receive is a paid mutator transaction binding the contract receive function.
Solidity: receive() payable returns()
func (*Hub2Session) StateGravityId ¶
func (_Hub2 *Hub2Session) StateGravityId() ([32]byte, error)
StateGravityId is a free data retrieval call binding the contract method 0xbdda81d4.
Solidity: function state_gravityId() view returns(bytes32)
func (*Hub2Session) StateInvalidationMapping ¶
func (_Hub2 *Hub2Session) StateInvalidationMapping(arg0 [32]byte) (*big.Int, error)
StateInvalidationMapping is a free data retrieval call binding the contract method 0x7dfb6f86.
Solidity: function state_invalidationMapping(bytes32 ) view returns(uint256)
func (*Hub2Session) StateLastBatchNonces ¶
StateLastBatchNonces is a free data retrieval call binding the contract method 0xdf97174b.
Solidity: function state_lastBatchNonces(address ) view returns(uint256)
func (*Hub2Session) StateLastEventNonce ¶
func (_Hub2 *Hub2Session) StateLastEventNonce() (*big.Int, error)
StateLastEventNonce is a free data retrieval call binding the contract method 0x73b20547.
Solidity: function state_lastEventNonce() view returns(uint256)
func (*Hub2Session) StateLastValsetCheckpoint ¶
func (_Hub2 *Hub2Session) StateLastValsetCheckpoint() ([32]byte, error)
StateLastValsetCheckpoint is a free data retrieval call binding the contract method 0xf2b53307.
Solidity: function state_lastValsetCheckpoint() view returns(bytes32)
func (*Hub2Session) StateLastValsetNonce ¶
func (_Hub2 *Hub2Session) StateLastValsetNonce() (*big.Int, error)
StateLastValsetNonce is a free data retrieval call binding the contract method 0xb56561fe.
Solidity: function state_lastValsetNonce() view returns(uint256)
func (*Hub2Session) StatePowerThreshold ¶
func (_Hub2 *Hub2Session) StatePowerThreshold() (*big.Int, error)
StatePowerThreshold is a free data retrieval call binding the contract method 0xe5a2b5d2.
Solidity: function state_powerThreshold() view returns(uint256)
func (*Hub2Session) SubmitBatch ¶
func (_Hub2 *Hub2Session) SubmitBatch(_currentValidators []common.Address, _currentPowers []*big.Int, _currentValsetNonce *big.Int, _v []uint8, _r [][32]byte, _s [][32]byte, _amounts []*big.Int, _destinations []common.Address, _fees []*big.Int, _batchNonce *big.Int, _tokenContract common.Address, _batchTimeout *big.Int) (*types.Transaction, error)
SubmitBatch is a paid mutator transaction binding the contract method 0x83b435db.
Solidity: function submitBatch(address[] _currentValidators, uint256[] _currentPowers, uint256 _currentValsetNonce, uint8[] _v, bytes32[] _r, bytes32[] _s, uint256[] _amounts, address[] _destinations, uint256[] _fees, uint256 _batchNonce, address _tokenContract, uint256 _batchTimeout) returns()
func (*Hub2Session) SubmitLogicCall ¶
func (_Hub2 *Hub2Session) SubmitLogicCall(_currentValidators []common.Address, _currentPowers []*big.Int, _currentValsetNonce *big.Int, _v []uint8, _r [][32]byte, _s [][32]byte, _args LogicCallArgs) (*types.Transaction, error)
SubmitLogicCall is a paid mutator transaction binding the contract method 0x0c246c82.
Solidity: function submitLogicCall(address[] _currentValidators, uint256[] _currentPowers, uint256 _currentValsetNonce, uint8[] _v, bytes32[] _r, bytes32[] _s, (uint256[],address[],uint256[],address[],address,bytes,uint256,bytes32,uint256) _args) returns()
func (*Hub2Session) TransferETHToChain ¶
func (_Hub2 *Hub2Session) TransferETHToChain(_destinationChain [32]byte, _destination [32]byte, _fee *big.Int) (*types.Transaction, error)
TransferETHToChain is a paid mutator transaction binding the contract method 0xe2d7c048.
Solidity: function transferETHToChain(bytes32 _destinationChain, bytes32 _destination, uint256 _fee) payable returns()
func (*Hub2Session) TransferToChain ¶
func (_Hub2 *Hub2Session) TransferToChain(_tokenContract common.Address, _destinationChain [32]byte, _destination [32]byte, _amount *big.Int, _fee *big.Int) (*types.Transaction, error)
TransferToChain is a paid mutator transaction binding the contract method 0x7ecccecc.
Solidity: function transferToChain(address _tokenContract, bytes32 _destinationChain, bytes32 _destination, uint256 _amount, uint256 _fee) returns()
func (*Hub2Session) UpdateValset ¶
func (_Hub2 *Hub2Session) UpdateValset(_newValidators []common.Address, _newPowers []*big.Int, _newValsetNonce *big.Int, _currentValidators []common.Address, _currentPowers []*big.Int, _currentValsetNonce *big.Int, _v []uint8, _r [][32]byte, _s [][32]byte) (*types.Transaction, error)
UpdateValset is a paid mutator transaction binding the contract method 0xe3cb9f62.
Solidity: function updateValset(address[] _newValidators, uint256[] _newPowers, uint256 _newValsetNonce, address[] _currentValidators, uint256[] _currentPowers, uint256 _currentValsetNonce, uint8[] _v, bytes32[] _r, bytes32[] _s) returns()
func (*Hub2Session) WethAddress ¶
func (_Hub2 *Hub2Session) WethAddress() (common.Address, error)
WethAddress is a free data retrieval call binding the contract method 0x4f0e0ef3.
Solidity: function wethAddress() view returns(address)
type Hub2TransactionBatchExecutedEvent ¶
type Hub2TransactionBatchExecutedEvent struct { BatchNonce *big.Int Token common.Address EventNonce *big.Int Raw types.Log // Blockchain specific contextual infos }
Hub2TransactionBatchExecutedEvent represents a TransactionBatchExecutedEvent event raised by the Hub2 contract.
type Hub2TransactionBatchExecutedEventIterator ¶
type Hub2TransactionBatchExecutedEventIterator struct { Event *Hub2TransactionBatchExecutedEvent // Event containing the contract specifics and raw log // contains filtered or unexported fields }
Hub2TransactionBatchExecutedEventIterator is returned from FilterTransactionBatchExecutedEvent and is used to iterate over the raw logs and unpacked data for TransactionBatchExecutedEvent events raised by the Hub2 contract.
func (*Hub2TransactionBatchExecutedEventIterator) Close ¶
func (it *Hub2TransactionBatchExecutedEventIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*Hub2TransactionBatchExecutedEventIterator) Error ¶
func (it *Hub2TransactionBatchExecutedEventIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*Hub2TransactionBatchExecutedEventIterator) Next ¶
func (it *Hub2TransactionBatchExecutedEventIterator) 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 Hub2Transactor ¶
type Hub2Transactor struct {
// contains filtered or unexported fields
}
Hub2Transactor is an auto generated write-only Go binding around an Ethereum contract.
func NewHub2Transactor ¶
func NewHub2Transactor(address common.Address, transactor bind.ContractTransactor) (*Hub2Transactor, error)
NewHub2Transactor creates a new write-only instance of Hub2, bound to a specific deployed contract.
func (*Hub2Transactor) ChangeGuardian ¶
func (_Hub2 *Hub2Transactor) ChangeGuardian(opts *bind.TransactOpts, _guardian common.Address) (*types.Transaction, error)
ChangeGuardian is a paid mutator transaction binding the contract method 0x2fcb4f04.
Solidity: function changeGuardian(address _guardian) returns()
func (*Hub2Transactor) PanicHalt ¶
func (_Hub2 *Hub2Transactor) PanicHalt(opts *bind.TransactOpts, _tokenContracts []common.Address, _safeAddress common.Address) (*types.Transaction, error)
PanicHalt is a paid mutator transaction binding the contract method 0x1762d25a.
Solidity: function panicHalt(address[] _tokenContracts, address _safeAddress) returns()
func (*Hub2Transactor) Receive ¶
func (_Hub2 *Hub2Transactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error)
Receive is a paid mutator transaction binding the contract receive function.
Solidity: receive() payable returns()
func (*Hub2Transactor) SubmitBatch ¶
func (_Hub2 *Hub2Transactor) SubmitBatch(opts *bind.TransactOpts, _currentValidators []common.Address, _currentPowers []*big.Int, _currentValsetNonce *big.Int, _v []uint8, _r [][32]byte, _s [][32]byte, _amounts []*big.Int, _destinations []common.Address, _fees []*big.Int, _batchNonce *big.Int, _tokenContract common.Address, _batchTimeout *big.Int) (*types.Transaction, error)
SubmitBatch is a paid mutator transaction binding the contract method 0x83b435db.
Solidity: function submitBatch(address[] _currentValidators, uint256[] _currentPowers, uint256 _currentValsetNonce, uint8[] _v, bytes32[] _r, bytes32[] _s, uint256[] _amounts, address[] _destinations, uint256[] _fees, uint256 _batchNonce, address _tokenContract, uint256 _batchTimeout) returns()
func (*Hub2Transactor) SubmitLogicCall ¶
func (_Hub2 *Hub2Transactor) SubmitLogicCall(opts *bind.TransactOpts, _currentValidators []common.Address, _currentPowers []*big.Int, _currentValsetNonce *big.Int, _v []uint8, _r [][32]byte, _s [][32]byte, _args LogicCallArgs) (*types.Transaction, error)
SubmitLogicCall is a paid mutator transaction binding the contract method 0x0c246c82.
Solidity: function submitLogicCall(address[] _currentValidators, uint256[] _currentPowers, uint256 _currentValsetNonce, uint8[] _v, bytes32[] _r, bytes32[] _s, (uint256[],address[],uint256[],address[],address,bytes,uint256,bytes32,uint256) _args) returns()
func (*Hub2Transactor) TransferETHToChain ¶
func (_Hub2 *Hub2Transactor) TransferETHToChain(opts *bind.TransactOpts, _destinationChain [32]byte, _destination [32]byte, _fee *big.Int) (*types.Transaction, error)
TransferETHToChain is a paid mutator transaction binding the contract method 0xe2d7c048.
Solidity: function transferETHToChain(bytes32 _destinationChain, bytes32 _destination, uint256 _fee) payable returns()
func (*Hub2Transactor) TransferToChain ¶
func (_Hub2 *Hub2Transactor) TransferToChain(opts *bind.TransactOpts, _tokenContract common.Address, _destinationChain [32]byte, _destination [32]byte, _amount *big.Int, _fee *big.Int) (*types.Transaction, error)
TransferToChain is a paid mutator transaction binding the contract method 0x7ecccecc.
Solidity: function transferToChain(address _tokenContract, bytes32 _destinationChain, bytes32 _destination, uint256 _amount, uint256 _fee) returns()
func (*Hub2Transactor) UpdateValset ¶
func (_Hub2 *Hub2Transactor) UpdateValset(opts *bind.TransactOpts, _newValidators []common.Address, _newPowers []*big.Int, _newValsetNonce *big.Int, _currentValidators []common.Address, _currentPowers []*big.Int, _currentValsetNonce *big.Int, _v []uint8, _r [][32]byte, _s [][32]byte) (*types.Transaction, error)
UpdateValset is a paid mutator transaction binding the contract method 0xe3cb9f62.
Solidity: function updateValset(address[] _newValidators, uint256[] _newPowers, uint256 _newValsetNonce, address[] _currentValidators, uint256[] _currentPowers, uint256 _currentValsetNonce, uint8[] _v, bytes32[] _r, bytes32[] _s) returns()
type Hub2TransactorRaw ¶
type Hub2TransactorRaw struct {
Contract *Hub2Transactor // Generic write-only contract binding to access the raw methods on
}
Hub2TransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*Hub2TransactorRaw) Transact ¶
func (_Hub2 *Hub2TransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*Hub2TransactorRaw) Transfer ¶
func (_Hub2 *Hub2TransactorRaw) 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 Hub2TransactorSession ¶
type Hub2TransactorSession struct { Contract *Hub2Transactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
Hub2TransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*Hub2TransactorSession) ChangeGuardian ¶
func (_Hub2 *Hub2TransactorSession) ChangeGuardian(_guardian common.Address) (*types.Transaction, error)
ChangeGuardian is a paid mutator transaction binding the contract method 0x2fcb4f04.
Solidity: function changeGuardian(address _guardian) returns()
func (*Hub2TransactorSession) PanicHalt ¶
func (_Hub2 *Hub2TransactorSession) PanicHalt(_tokenContracts []common.Address, _safeAddress common.Address) (*types.Transaction, error)
PanicHalt is a paid mutator transaction binding the contract method 0x1762d25a.
Solidity: function panicHalt(address[] _tokenContracts, address _safeAddress) returns()
func (*Hub2TransactorSession) Receive ¶
func (_Hub2 *Hub2TransactorSession) Receive() (*types.Transaction, error)
Receive is a paid mutator transaction binding the contract receive function.
Solidity: receive() payable returns()
func (*Hub2TransactorSession) SubmitBatch ¶
func (_Hub2 *Hub2TransactorSession) SubmitBatch(_currentValidators []common.Address, _currentPowers []*big.Int, _currentValsetNonce *big.Int, _v []uint8, _r [][32]byte, _s [][32]byte, _amounts []*big.Int, _destinations []common.Address, _fees []*big.Int, _batchNonce *big.Int, _tokenContract common.Address, _batchTimeout *big.Int) (*types.Transaction, error)
SubmitBatch is a paid mutator transaction binding the contract method 0x83b435db.
Solidity: function submitBatch(address[] _currentValidators, uint256[] _currentPowers, uint256 _currentValsetNonce, uint8[] _v, bytes32[] _r, bytes32[] _s, uint256[] _amounts, address[] _destinations, uint256[] _fees, uint256 _batchNonce, address _tokenContract, uint256 _batchTimeout) returns()
func (*Hub2TransactorSession) SubmitLogicCall ¶
func (_Hub2 *Hub2TransactorSession) SubmitLogicCall(_currentValidators []common.Address, _currentPowers []*big.Int, _currentValsetNonce *big.Int, _v []uint8, _r [][32]byte, _s [][32]byte, _args LogicCallArgs) (*types.Transaction, error)
SubmitLogicCall is a paid mutator transaction binding the contract method 0x0c246c82.
Solidity: function submitLogicCall(address[] _currentValidators, uint256[] _currentPowers, uint256 _currentValsetNonce, uint8[] _v, bytes32[] _r, bytes32[] _s, (uint256[],address[],uint256[],address[],address,bytes,uint256,bytes32,uint256) _args) returns()
func (*Hub2TransactorSession) TransferETHToChain ¶
func (_Hub2 *Hub2TransactorSession) TransferETHToChain(_destinationChain [32]byte, _destination [32]byte, _fee *big.Int) (*types.Transaction, error)
TransferETHToChain is a paid mutator transaction binding the contract method 0xe2d7c048.
Solidity: function transferETHToChain(bytes32 _destinationChain, bytes32 _destination, uint256 _fee) payable returns()
func (*Hub2TransactorSession) TransferToChain ¶
func (_Hub2 *Hub2TransactorSession) TransferToChain(_tokenContract common.Address, _destinationChain [32]byte, _destination [32]byte, _amount *big.Int, _fee *big.Int) (*types.Transaction, error)
TransferToChain is a paid mutator transaction binding the contract method 0x7ecccecc.
Solidity: function transferToChain(address _tokenContract, bytes32 _destinationChain, bytes32 _destination, uint256 _amount, uint256 _fee) returns()
func (*Hub2TransactorSession) UpdateValset ¶
func (_Hub2 *Hub2TransactorSession) UpdateValset(_newValidators []common.Address, _newPowers []*big.Int, _newValsetNonce *big.Int, _currentValidators []common.Address, _currentPowers []*big.Int, _currentValsetNonce *big.Int, _v []uint8, _r [][32]byte, _s [][32]byte) (*types.Transaction, error)
UpdateValset is a paid mutator transaction binding the contract method 0xe3cb9f62.
Solidity: function updateValset(address[] _newValidators, uint256[] _newPowers, uint256 _newValsetNonce, address[] _currentValidators, uint256[] _currentPowers, uint256 _currentValsetNonce, uint8[] _v, bytes32[] _r, bytes32[] _s) returns()
type Hub2TransferToChainEvent ¶
type Hub2TransferToChainEvent struct { TokenContract common.Address Sender common.Address DestinationChain [32]byte Destination [32]byte Amount *big.Int Fee *big.Int EventNonce *big.Int Raw types.Log // Blockchain specific contextual infos }
Hub2TransferToChainEvent represents a TransferToChainEvent event raised by the Hub2 contract.
type Hub2TransferToChainEventIterator ¶
type Hub2TransferToChainEventIterator struct { Event *Hub2TransferToChainEvent // Event containing the contract specifics and raw log // contains filtered or unexported fields }
Hub2TransferToChainEventIterator is returned from FilterTransferToChainEvent and is used to iterate over the raw logs and unpacked data for TransferToChainEvent events raised by the Hub2 contract.
func (*Hub2TransferToChainEventIterator) Close ¶
func (it *Hub2TransferToChainEventIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*Hub2TransferToChainEventIterator) Error ¶
func (it *Hub2TransferToChainEventIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*Hub2TransferToChainEventIterator) Next ¶
func (it *Hub2TransferToChainEventIterator) 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 Hub2ValsetUpdatedEvent ¶
type Hub2ValsetUpdatedEvent struct { NewValsetNonce *big.Int EventNonce *big.Int Validators []common.Address Powers []*big.Int Raw types.Log // Blockchain specific contextual infos }
Hub2ValsetUpdatedEvent represents a ValsetUpdatedEvent event raised by the Hub2 contract.
type Hub2ValsetUpdatedEventIterator ¶
type Hub2ValsetUpdatedEventIterator struct { Event *Hub2ValsetUpdatedEvent // Event containing the contract specifics and raw log // contains filtered or unexported fields }
Hub2ValsetUpdatedEventIterator is returned from FilterValsetUpdatedEvent and is used to iterate over the raw logs and unpacked data for ValsetUpdatedEvent events raised by the Hub2 contract.
func (*Hub2ValsetUpdatedEventIterator) Close ¶
func (it *Hub2ValsetUpdatedEventIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*Hub2ValsetUpdatedEventIterator) Error ¶
func (it *Hub2ValsetUpdatedEventIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*Hub2ValsetUpdatedEventIterator) Next ¶
func (it *Hub2ValsetUpdatedEventIterator) 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 LogicCallArgs ¶
type LogicCallArgs struct { TransferAmounts []*big.Int TransferTokenContracts []common.Address FeeAmounts []*big.Int FeeTokenContracts []common.Address LogicContractAddress common.Address Payload []byte TimeOut *big.Int InvalidationId [32]byte InvalidationNonce *big.Int }
LogicCallArgs is an auto generated low-level Go binding around an user-defined struct.