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) TestCheckValidatorSignatures(opts *bind.CallOpts, _currentValidators []common.Address, ...) error
- func (_Hub2 *Hub2Caller) TestMakeCheckpoint(opts *bind.CallOpts, _validators []common.Address, _powers []*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) TestCheckValidatorSignatures(_currentValidators []common.Address, _currentPowers []*big.Int, _v []uint8, ...) error
- func (_Hub2 *Hub2CallerSession) TestMakeCheckpoint(_validators []common.Address, _powers []*big.Int, _valsetNonce *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) TestCheckValidatorSignatures(_currentValidators []common.Address, _currentPowers []*big.Int, _v []uint8, ...) error
- func (_Hub2 *Hub2Session) TestMakeCheckpoint(_validators []common.Address, _powers []*big.Int, _valsetNonce *big.Int, ...) 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\":\"address[]\",\"name\":\"_currentValidators\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"_currentPowers\",\"type\":\"uint256[]\"},{\"internalType\":\"uint8[]\",\"name\":\"_v\",\"type\":\"uint8[]\"},{\"internalType\":\"bytes32[]\",\"name\":\"_r\",\"type\":\"bytes32[]\"},{\"internalType\":\"bytes32[]\",\"name\":\"_s\",\"type\":\"bytes32[]\"},{\"internalType\":\"bytes32\",\"name\":\"_theHash\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"_powerThreshold\",\"type\":\"uint256\"}],\"name\":\"testCheckValidatorSignatures\",\"outputs\":[],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"_validators\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"_powers\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256\",\"name\":\"_valsetNonce\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"_gravityId\",\"type\":\"bytes32\"}],\"name\":\"testMakeCheckpoint\",\"outputs\":[],\"stateMutability\":\"pure\",\"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: "0x6080604052600060045560016005553480156200001b57600080fd5b5060405162002bc238038062002bc28339810160408190526200003e916200025c565b60016000558251845114620000705760405162461bcd60e51b8152600401620000679062000480565b60405180910390fd5b6000805b8451811015620000af578481815181106200008b57fe5b60200260200101518201915086821115620000a657620000af565b60010162000074565b50858111620000d25760405162461bcd60e51b8152600401620000679062000423565b6000620000e28686838b62000176565b600689905560078890556001819055600880546001600160a01b038088166001600160a01b031992831617909255600980549287169290911691909117905560045460055460405192935090917fb119f1f36224601586b5037da909ecf37e83864dddea5d32ad4e32ac1d97e62b9162000160918a908a90620004b7565b60405180910390a2505050505050505062000537565b6040516000906918da1958dadc1bda5b9d60b21b908290620001a5908590849088908b908b90602001620003dc565b60408051808303601f190181529190528051602090910120979650505050505050565b80516001600160a01b0381168114620001e057600080fd5b92915050565b600082601f830112620001f7578081fd5b81516200020e620002088262000517565b620004f0565b8181529150602080830190848101818402860182018710156200023057600080fd5b60005b84811015620002515781518452928201929082019060010162000233565b505050505092915050565b60008060008060008060c0878903121562000275578182fd5b865160208089015160408a01519298509650906001600160401b03808211156200029d578485fd5b818a0191508a601f830112620002b1578485fd5b8151620002c2620002088262000517565b81815284810190848601868402860187018f1015620002df578889fd5b8895505b838610156200030d57620002f88f82620001c8565b835260019590950194918601918601620002e3565b5060608d0151909950945050508083111562000327578485fd5b50506200033789828a01620001e6565b935050620003498860808901620001c8565b91506200035a8860a08901620001c8565b90509295509295509295565b6000815180845260208085019450808401835b83811015620003a05781516001600160a01b03168752958201959082019060010162000379565b509495945050505050565b6000815180845260208085019450808401835b83811015620003a057815187529582019590820190600101620003be565b600086825285602083015284604083015260a060608301526200040360a083018562000366565b8281036080840152620004178185620003ab565b98975050505050505050565b6020808252603c908201527f5375626d69747465642076616c696461746f7220736574207369676e6174757260408201527f657320646f206e6f74206861766520656e6f75676820706f7765722e00000000606082015260800190565b6020808252601f908201527f4d616c666f726d65642063757272656e742076616c696461746f722073657400604082015260600190565b600084825260606020830152620004d2606083018562000366565b8281036040840152620004e68185620003ab565b9695505050505050565b6040518181016001600160401b03811182821017156200050f57600080fd5b604052919050565b60006001600160401b038211156200052d578081fd5b5060209081020190565b61267b80620005476000396000f3fe6080604052600436106101235760003560e01c8063b56561fe116100a0578063df97174b11610064578063df97174b1461030f578063e2d7c0481461032f578063e3cb9f6214610342578063e5a2b5d214610362578063f2b53307146103775761013e565b8063b56561fe14610285578063bdda81d41461029a578063c227c30b146102af578063c9d194d5146102cf578063db7c4e57146102ef5761013e565b80634f0e0ef3116100e75780634f0e0ef3146101fb57806373b20547146102105780637dfb6f86146102255780637ecccecc1461024557806383b435db146102655761013e565b8063011b2174146101435780630c246c82146101795780631762d25a146101995780632fcb4f04146101b9578063452a9320146101d95761013e565b3661013e576008546001600160a01b0316331461013c57fe5b005b600080fd5b34801561014f57600080fd5b5061016361015e3660046116f7565b61038c565b6040516101709190611e83565b60405180910390f35b34801561018557600080fd5b5061013c610194366004611b46565b6103a7565b3480156101a557600080fd5b5061013c6101b4366004611756565b6106be565b3480156101c557600080fd5b5061013c6101d43660046116f7565b6107ab565b3480156101e557600080fd5b506101ee6107f7565b6040516101709190611e32565b34801561020757600080fd5b506101ee610806565b34801561021c57600080fd5b50610163610815565b34801561023157600080fd5b50610163610240366004611cce565b61081b565b34801561025157600080fd5b5061013c610260366004611713565b61082d565b34801561027157600080fd5b5061013c6102803660046119a9565b6108d4565b34801561029157600080fd5b50610163610bfe565b3480156102a657600080fd5b50610163610c04565b3480156102bb57600080fd5b5061013c6102ca366004611c3e565b610c0a565b3480156102db57600080fd5b506101636102ea366004611cce565b610c1d565b3480156102fb57600080fd5b5061013c61030a3660046117a5565b610c2f565b34801561031b57600080fd5b5061016361032a3660046116f7565b610c47565b61013c61033d366004611ce6565b610c59565b34801561034e57600080fd5b5061013c61035d366004611883565b610d53565b34801561036e57600080fd5b50610163610ebd565b34801561038357600080fd5b50610163610ec3565b6001600160a01b031660009081526002602052604090205490565b600260005414156103d35760405162461bcd60e51b81526004016103ca9061255a565b60405180910390fd5b600260005560c081015143106103fb5760405162461bcd60e51b81526004016103ca9061223f565b61010081015160e0820151600090815260036020526040902054106104325760405162461bcd60e51b81526004016103ca906121ab565b85518751148015610444575083518751145b8015610451575082518751145b801561045e575081518751145b61047a5760405162461bcd60e51b81526004016103ca90612523565b60015461048b888888600654610ec9565b146104a85760405162461bcd60e51b81526004016103ca906120c1565b602081015151815151146104ce5760405162461bcd60e51b81526004016103ca90612302565b806060015151816040015151146104f75760405162461bcd60e51b81526004016103ca90612091565b6000600654681b1bd9da58d0d85b1b60ba1b836000015184602001518560400151866060015187608001518860a001518960c001518a60e001518b61010001516040516020016105519b9a99989796959493929190611ecf565b60405160208183030381529060405280519060200120905061057a888887878786600754610f1b565b61010082015160e08301516000908152600360205260408120919091555b8251518110156105fa576105f28360800151846000015183815181106105ba57fe5b6020026020010151856020015184815181106105d257fe5b60200260200101516001600160a01b03166110129092919063ffffffff16565b600101610598565b50606061060f83608001518460a00151611068565b905060005b8360400151518110156106555761064d338560400151838151811061063557fe5b6020026020010151866060015184815181106105d257fe5b600101610614565b506005546106649060016110b3565b600581905560e08401516101008501516040517ff91c95577d70e79c860c20704cbae1beca2045c2e55e466e8a5223f1c0866c93936106a69392918690612016565b60405180910390a15050600160005550505050505050565b6009546001600160a01b031633146106e85760405162461bcd60e51b81526004016103ca9061237a565b60005b82518110156107a657600083828151811061070257fe5b6020026020010151905061079d83826001600160a01b03166370a08231306040518263ffffffff1660e01b815260040161073c9190611e32565b60206040518083038186803b15801561075457600080fd5b505afa158015610768573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061078c9190611d11565b6001600160a01b0384169190611012565b506001016106eb565b505050565b6009546001600160a01b031633146107d55760405162461bcd60e51b81526004016103ca9061237a565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b6009546001600160a01b031681565b6008546001600160a01b031681565b60055481565b60036020526000908152604090205481565b600260005414156108505760405162461bcd60e51b81526004016103ca9061255a565b600260005561086a6001600160a01b0386163330856110d8565b6005546108789060016110b3565b6005819055604051859133916001600160a01b038916917f7f4f5725b195c7be189dc38c65df0483114975b57463ac93012ba3ede3b56a95916108c091899189918991612045565b60405180910390a450506001600055505050565b600260005414156108f75760405162461bcd60e51b81526004016103ca9061255a565b600260008181556001600160a01b0384168152602091909152604090205483116109335760405162461bcd60e51b81526004016103ca9061211e565b8043106109525760405162461bcd60e51b81526004016103ca906122a5565b8a518c51148015610964575088518c51145b8015610971575087518c51145b801561097e575086518c51145b61099a5760405162461bcd60e51b81526004016103ca90612523565b6001546109ab8d8d8d600654610ec9565b146109c85760405162461bcd60e51b81526004016103ca906120c1565b845186511480156109da575083518651145b6109f65760405162461bcd60e51b81526004016103ca90612174565b610a508c8c8b8b8b6006546f0e8e4c2dce6c2c6e8d2dedc84c2e8c6d60831b8d8d8d8d8d8d604051602001610a32989796959493929190611f75565b60405160208183030381529060405280519060200120600754610f1b565b6001600160a01b0380831660008181526002602052604090208590556008549091161415610b3b5760005b8651811015610b355760085487516001600160a01b0390911690632e1a7d4d90899084908110610aa757fe5b60200260200101516040518263ffffffff1660e01b8152600401610acb9190611e83565b600060405180830381600087803b158015610ae557600080fd5b505af1158015610af9573d6000803e3d6000fd5b50505050610b2d868281518110610b0c57fe5b6020026020010151888381518110610b2057fe5b60200260200101516110ff565b600101610a7b565b50610b95565b60005b8651811015610b9357610b8b868281518110610b5657fe5b6020026020010151888381518110610b6a57fe5b6020026020010151856001600160a01b03166110129092919063ffffffff16565b600101610b3e565b505b600554610ba39060016110b3565b60058190556040516001600160a01b0384169185917f02c7e81975f8edb86e2a0c038b7b86a49c744236abf0f6177ff5afc6986ab70891610be391611e83565b60405180910390a35050600160005550505050505050505050565b60045481565b60065481565b610c1684848484610ec9565b5050505050565b60009081526003602052604090205490565b610c3e87878787878787610f1b565b50505050505050565b60026020526000908152604090205481565b60026000541415610c7c5760405162461bcd60e51b81526004016103ca9061255a565b6002600090815560085460408051630d0e30db60e41b815290516001600160a01b039092169263d0e30db0923492600480820193929182900301818588803b158015610cc757600080fd5b505af1158015610cdb573d6000803e3d6000fd5b5050505050610cf660016005546110b390919063ffffffff16565b6005819055600854604051859233926001600160a01b0316917f7f4f5725b195c7be189dc38c65df0483114975b57463ac93012ba3ede3b56a9591610d419188913491899190612045565b60405180910390a45050600160005550565b60026000541415610d765760405162461bcd60e51b81526004016103ca9061255a565b6002600055838711610d9a5760405162461bcd60e51b81526004016103ca90612402565b8751895114610dbb5760405162461bcd60e51b81526004016103ca90612343565b84518651148015610dcd575082518651145b8015610dda575081518651145b8015610de7575080518651145b610e035760405162461bcd60e51b81526004016103ca90612523565b600154610e14878787600654610ec9565b14610e315760405162461bcd60e51b81526004016103ca906120c1565b6000610e418a8a8a600654610ec9565b9050610e54878786868686600754610f1b565b60018181556004899055600554610e6a916110b3565b600581905560405189917fb119f1f36224601586b5037da909ecf37e83864dddea5d32ad4e32ac1d97e62b91610ea491908e908e90612591565b60405180910390a2505060016000555050505050505050565b60075481565b60015481565b6040516000906918da1958dadc1bda5b9d60b21b908290610ef6908590849088908b908b90602001611e8c565b60408051601f198184030181529190528051602090910120925050505b949350505050565b6000805b8851811015610fe857868181518110610f3457fe5b602002602001015160ff16600014610fe057610f9f898281518110610f5557fe5b602002602001015185898481518110610f6a57fe5b6020026020010151898581518110610f7e57fe5b6020026020010151898681518110610f9257fe5b602002602001015161118c565b610fbb5760405162461bcd60e51b81526004016103ca90612262565b878181518110610fc757fe5b60200260200101518201915082821115610fe057610fe8565b600101610f1f565b508181116110085760405162461bcd60e51b81526004016103ca906123a5565b5050505050505050565b6107a68363a9059cbb60e01b8484604051602401611031929190611e6a565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611227565b60606110aa83836040518060400160405280601e81526020017f416464726573733a206c6f772d6c6576656c2063616c6c206661696c656400008152506112b6565b90505b92915050565b6000828201838110156110aa5760405162461bcd60e51b81526004016103ca90612208565b6110f9846323b872dd60e01b85858560405160240161103193929190611e46565b50505050565b604080516000808252602082019092526001600160a01b0384169083906040516111299190611de5565b60006040518083038185875af1925050503d8060008114611166576040519150601f19603f3d011682016040523d82523d6000602084013e61116b565b606091505b50509050806107a65760405162461bcd60e51b81526004016103ca90612496565b600080856040516020016111a09190611e01565b604051602081830303815290604052805190602001209050600181868686604051600081526020016040526040516111db9493929190612060565b6020604051602081039080840390855afa1580156111fd573d6000803e3d6000fd5b505050602060405103516001600160a01b0316876001600160a01b03161491505095945050505050565b606061127c826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166112b69092919063ffffffff16565b8051909150156107a6578080602001905181019061129a9190611cae565b6107a65760405162461bcd60e51b81526004016103ca906124d9565b6060610f13848460008560606112cb85611384565b6112e75760405162461bcd60e51b81526004016103ca9061245f565b60006060866001600160a01b031685876040516113049190611de5565b60006040518083038185875af1925050503d8060008114611341576040519150601f19603f3d011682016040523d82523d6000602084013e611346565b606091505b5091509150811561135a579150610f139050565b80511561136a5780518082602001fd5b8360405162461bcd60e51b81526004016103ca919061207e565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590610f13575050151592915050565b80356110ad8161262d565b600082601f8301126113d8578081fd5b81356113eb6113e6826125e2565b6125bc565b81815291506020808301908481018184028601820187101561140c57600080fd5b60005b848110156114345781356114228161262d565b8452928201929082019060010161140f565b505050505092915050565b600082601f83011261144f578081fd5b813561145d6113e6826125e2565b81815291506020808301908481018184028601820187101561147e57600080fd5b60005b848110156114345781356114948161262d565b84529282019290820190600101611481565b600082601f8301126114b6578081fd5b81356114c46113e6826125e2565b8181529150602080830190848101818402860182018710156114e557600080fd5b60005b84811015611434578135845292820192908201906001016114e8565b600082601f830112611514578081fd5b81356115226113e6826125e2565b81815291506020808301908481018184028601820187101561154357600080fd5b6000805b8581101561157157823560ff8116811461155f578283fd5b85529383019391830191600101611547565b50505050505092915050565b600082601f83011261158d578081fd5b81356001600160401b038111156115a2578182fd5b6115b5601f8201601f19166020016125bc565b91508082528360208285010111156115cc57600080fd5b8060208401602084013760009082016020015292915050565b60006101208083850312156115f8578182fd5b611601816125bc565b91505081356001600160401b038082111561161b57600080fd5b611627858386016114a6565b8352602084013591508082111561163d57600080fd5b611649858386016113c8565b6020840152604084013591508082111561166257600080fd5b61166e858386016114a6565b6040840152606084013591508082111561168757600080fd5b611693858386016113c8565b60608401526116a585608086016113bd565b608084015260a08401359150808211156116be57600080fd5b506116cb8482850161157d565b60a08301525060c082013560c082015260e082013560e082015261010080830135818301525092915050565b600060208284031215611708578081fd5b81356110aa8161262d565b600080600080600060a0868803121561172a578081fd5b85356117358161262d565b97602087013597506040870135966060810135965060800135945092505050565b60008060408385031215611768578182fd5b82356001600160401b0381111561177d578283fd5b611789858286016113c8565b925050602083013561179a8161262d565b809150509250929050565b600080600080600080600060e0888a0312156117bf578182fd5b87356001600160401b03808211156117d5578384fd5b6117e18b838c016113c8565b985060208a01359150808211156117f6578384fd5b6118028b838c016114a6565b975060408a0135915080821115611817578384fd5b6118238b838c01611504565b965060608a0135915080821115611838578384fd5b6118448b838c016114a6565b955060808a0135915080821115611859578384fd5b506118668a828b016114a6565b93505060a0880135915060c0880135905092959891949750929550565b60008060008060008060008060006101208a8c0312156118a1578283fd5b89356001600160401b03808211156118b7578485fd5b6118c38d838e016113c8565b9a5060208c01359150808211156118d8578485fd5b6118e48d838e016114a6565b995060408c0135985060608c0135915080821115611900578485fd5b61190c8d838e016113c8565b975060808c0135915080821115611921578485fd5b61192d8d838e016114a6565b965060a08c0135955060c08c0135915080821115611949578485fd5b6119558d838e01611504565b945060e08c013591508082111561196a578384fd5b6119768d838e016114a6565b93506101008c013591508082111561198c578283fd5b506119998c828d016114a6565b9150509295985092959850929598565b6000806000806000806000806000806000806101808d8f0312156119cb578586fd5b6001600160401b038d3511156119df578586fd5b6119ec8e8e358f016113c8565b9b506001600160401b0360208e01351115611a05578586fd5b611a158e60208f01358f016114a6565b9a5060408d013599506001600160401b0360608e01351115611a35578586fd5b611a458e60608f01358f01611504565b98506001600160401b0360808e01351115611a5e578586fd5b611a6e8e60808f01358f016114a6565b97506001600160401b0360a08e01351115611a87578586fd5b611a978e60a08f01358f016114a6565b96506001600160401b0360c08e01351115611ab0578586fd5b611ac08e60c08f01358f016114a6565b95506001600160401b0360e08e01351115611ad9578283fd5b611ae98e60e08f01358f0161143f565b94506001600160401b036101008e01351115611b03578283fd5b611b148e6101008f01358f016114a6565b93506101208d01359250611b2c8e6101408f016113bd565b91506101608d013590509295989b509295989b509295989b565b600080600080600080600060e0888a031215611b60578081fd5b87356001600160401b0380821115611b76578283fd5b611b828b838c016113c8565b985060208a0135915080821115611b97578283fd5b611ba38b838c016114a6565b975060408a0135965060608a0135915080821115611bbf578283fd5b611bcb8b838c01611504565b955060808a0135915080821115611be0578283fd5b611bec8b838c016114a6565b945060a08a0135915080821115611c01578283fd5b611c0d8b838c016114a6565b935060c08a0135915080821115611c22578283fd5b50611c2f8a828b016115e5565b91505092959891949750929550565b60008060008060808587031215611c53578182fd5b84356001600160401b0380821115611c69578384fd5b611c75888389016113c8565b95506020870135915080821115611c8a578384fd5b50611c97878288016114a6565b949794965050505060408301359260600135919050565b600060208284031215611cbf578081fd5b815180151581146110aa578182fd5b600060208284031215611cdf578081fd5b5035919050565b600080600060608486031215611cfa578081fd5b505081359360208301359350604090920135919050565b600060208284031215611d22578081fd5b5051919050565b6001600160a01b0316815260200190565b6001600160a01b03169052565b6000815180845260208085019450808401835b83811015611d7f5781516001600160a01b031687529582019590820190600101611d5a565b509495945050505050565b6000815180845260208085019450808401835b83811015611d7f57815187529582019590820190600101611d9d565b60008151808452611dd1816020860160208601612601565b601f01601f19169290920160200192915050565b60008251611df7818460208701612601565b9190910192915050565b7f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152601c810191909152603c0190565b6001600160a01b0391909116815260200190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b03929092168252602082015260400190565b90815260200190565b600086825285602083015284604083015260a06060830152611eb160a0830185611d47565b8281036080840152611ec38185611d8a565b98975050505050505050565b60006101608d83528c6020840152806040840152611eef8184018d611d8a565b90508281036060840152611f03818c611d47565b90508281036080840152611f17818b611d8a565b905082810360a0840152611f2b818a611d47565b6001600160a01b03891660c085015283810360e08501529050611f4e8188611db9565b61010084019690965250506101208101929092526101409091015298975050505050505050565b60006101008a835260208a81850152816040850152611f968285018b611d8a565b91508382036060850152818951611fad8185611e83565b9150828b019350845b81811015611fd757611fc9838651611d29565b948401949250600101611fb6565b50508481036080860152611feb818a611d8a565b93505050508460a083015261200360c0830185611d3a565b8260e08301529998505050505050505050565b60008582528460208301528360408301526080606083015261203b6080830184611db9565b9695505050505050565b93845260208401929092526040830152606082015260800190565b93845260ff9290921660208401526040830152606082015260800190565b6000602082526110aa6020830184611db9565b6020808252601690820152754d616c666f726d6564206c697374206f66206665657360501b604082015260600190565b6020808252603f908201527f537570706c6965642063757272656e742076616c696461746f727320616e642060408201527f706f7765727320646f206e6f74206d6174636820636865636b706f696e742e00606082015260800190565b60208082526036908201527f4e6577206261746368206e6f6e6365206d7573742062652067726561746572206040820152757468616e207468652063757272656e74206e6f6e636560501b606082015260800190565b6020808252601f908201527f4d616c666f726d6564206261746368206f66207472616e73616374696f6e7300604082015260600190565b6020808252603d908201527f4e657720696e76616c69646174696f6e206e6f6e6365206d757374206265206760408201527f726561746572207468616e207468652063757272656e74206e6f6e6365000000606082015260800190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b602080825260099082015268151a5b5959081bdd5d60ba1b604082015260600190565b60208082526023908201527f56616c696461746f72207369676e617475726520646f6573206e6f74206d617460408201526231b41760e91b606082015260800190565b6020808252603b908201527f42617463682074696d656f7574206d757374206265206772656174657220746860408201527f616e207468652063757272656e7420626c6f636b206865696768740000000000606082015260800190565b60208082526021908201527f4d616c666f726d6564206c697374206f6620746f6b656e207472616e736665726040820152607360f81b606082015260800190565b6020808252601b908201527f4d616c666f726d6564206e65772076616c696461746f72207365740000000000604082015260600190565b6020808252601190820152701c195c9b5a5cdcda5bdb8819195b9a5959607a1b604082015260600190565b6020808252603c908201527f5375626d69747465642076616c696461746f7220736574207369676e6174757260408201527f657320646f206e6f74206861766520656e6f75676820706f7765722e00000000606082015260800190565b60208082526037908201527f4e65772076616c736574206e6f6e6365206d757374206265206772656174657260408201527f207468616e207468652063757272656e74206e6f6e6365000000000000000000606082015260800190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b60208082526023908201527f5472616e7366657248656c7065723a204554485f5452414e534645525f46414960408201526213115160ea1b606082015260800190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6040820152691bdd081cdd58d8d9595960b21b606082015260800190565b6020808252601f908201527f4d616c666f726d65642063757272656e742076616c696461746f722073657400604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6000848252606060208301526125aa6060830185611d47565b828103604084015261203b8185611d8a565b6040518181016001600160401b03811182821017156125da57600080fd5b604052919050565b60006001600160401b038211156125f7578081fd5b5060209081020190565b60005b8381101561261c578181015183820152602001612604565b838111156110f95750506000910152565b6001600160a01b038116811461264257600080fd5b5056fea2646970667358221220e76f28571200eb4b535c1d26643a0a5d0116cf00b29cd275c2d883b91e1416ed64736f6c634300060c0033",
}
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) TestCheckValidatorSignatures ¶
func (_Hub2 *Hub2Caller) TestCheckValidatorSignatures(opts *bind.CallOpts, _currentValidators []common.Address, _currentPowers []*big.Int, _v []uint8, _r [][32]byte, _s [][32]byte, _theHash [32]byte, _powerThreshold *big.Int) error
TestCheckValidatorSignatures is a free data retrieval call binding the contract method 0xdb7c4e57.
Solidity: function testCheckValidatorSignatures(address[] _currentValidators, uint256[] _currentPowers, uint8[] _v, bytes32[] _r, bytes32[] _s, bytes32 _theHash, uint256 _powerThreshold) pure returns()
func (*Hub2Caller) TestMakeCheckpoint ¶
func (_Hub2 *Hub2Caller) TestMakeCheckpoint(opts *bind.CallOpts, _validators []common.Address, _powers []*big.Int, _valsetNonce *big.Int, _gravityId [32]byte) error
TestMakeCheckpoint is a free data retrieval call binding the contract method 0xc227c30b.
Solidity: function testMakeCheckpoint(address[] _validators, uint256[] _powers, uint256 _valsetNonce, bytes32 _gravityId) pure returns()
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) TestCheckValidatorSignatures ¶
func (_Hub2 *Hub2CallerSession) TestCheckValidatorSignatures(_currentValidators []common.Address, _currentPowers []*big.Int, _v []uint8, _r [][32]byte, _s [][32]byte, _theHash [32]byte, _powerThreshold *big.Int) error
TestCheckValidatorSignatures is a free data retrieval call binding the contract method 0xdb7c4e57.
Solidity: function testCheckValidatorSignatures(address[] _currentValidators, uint256[] _currentPowers, uint8[] _v, bytes32[] _r, bytes32[] _s, bytes32 _theHash, uint256 _powerThreshold) pure returns()
func (*Hub2CallerSession) TestMakeCheckpoint ¶
func (_Hub2 *Hub2CallerSession) TestMakeCheckpoint(_validators []common.Address, _powers []*big.Int, _valsetNonce *big.Int, _gravityId [32]byte) error
TestMakeCheckpoint is a free data retrieval call binding the contract method 0xc227c30b.
Solidity: function testMakeCheckpoint(address[] _validators, uint256[] _powers, uint256 _valsetNonce, bytes32 _gravityId) pure returns()
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) TestCheckValidatorSignatures ¶
func (_Hub2 *Hub2Session) TestCheckValidatorSignatures(_currentValidators []common.Address, _currentPowers []*big.Int, _v []uint8, _r [][32]byte, _s [][32]byte, _theHash [32]byte, _powerThreshold *big.Int) error
TestCheckValidatorSignatures is a free data retrieval call binding the contract method 0xdb7c4e57.
Solidity: function testCheckValidatorSignatures(address[] _currentValidators, uint256[] _currentPowers, uint8[] _v, bytes32[] _r, bytes32[] _s, bytes32 _theHash, uint256 _powerThreshold) pure returns()
func (*Hub2Session) TestMakeCheckpoint ¶
func (_Hub2 *Hub2Session) TestMakeCheckpoint(_validators []common.Address, _powers []*big.Int, _valsetNonce *big.Int, _gravityId [32]byte) error
TestMakeCheckpoint is a free data retrieval call binding the contract method 0xc227c30b.
Solidity: function testMakeCheckpoint(address[] _validators, uint256[] _powers, uint256 _valsetNonce, bytes32 _gravityId) pure 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.