From 55cc72ffbeb18fb80f6a790c10bb2112dce90141 Mon Sep 17 00:00:00 2001 From: mmsqe Date: Mon, 25 Sep 2023 11:48:43 +0800 Subject: [PATCH 1/2] Problem: redundant logs are added from relayer --- integration_tests/test_ibc_rly.py | 13 - .../relayer/i_relayer_module.abigen.go | 2843 ++--------------- x/cronos/events/bindings/src/Relayer.sol | 88 - x/cronos/events/event.go | 2 +- x/cronos/events/events.go | 28 +- 5 files changed, 248 insertions(+), 2726 deletions(-) diff --git a/integration_tests/test_ibc_rly.py b/integration_tests/test_ibc_rly.py index 29e37ff6f6..d9800dfa01 100644 --- a/integration_tests/test_ibc_rly.py +++ b/integration_tests/test_ibc_rly.py @@ -168,13 +168,6 @@ def burn(burner, amt, denom): } -def update_client(): - return { - "clientId": keccak(text="07-tendermint-0"), - "clientType": keccak(text="07-tendermint"), - } - - def recv_packet(src, dst, amt, denom): return { "packetDataHex": (dst, src, [(amt, denom)]), @@ -251,7 +244,6 @@ def check_balance_change(): cronos_addr = module_address("cronos") transfer_addr = module_address("transfer") expected = [ - update_client(), recv_packet(relayer0, cronos_signer2, src_amount, src_denom), denom_trace(denom), *send_from_module_to_acc(transfer_addr, cronos_signer2, src_amount, denom), @@ -260,7 +252,6 @@ def check_balance_change(): *send_from_module_to_acc(cronos_addr, cronos_signer2, dst_amount, dst_denom), write_ack(relayer0, cronos_signer2, src_amount, src_denom), ] - for i, log in enumerate(logs): method_name, args = get_topic_data(w3, log) assert args == AttributeDict(expected[i]), [i, method_name] @@ -288,7 +279,6 @@ def test_ibc_incentivized_transfer(ibc): feeibc_addr = module_address("feeibc") escrow = get_escrow_address(cli, channel) expected = [ - update_client(), acknowledge_packet(), distribute_fee(src_relayer, fee), *send_coins(feeibc_addr, src_relayer, src_amount, fee_denom), @@ -297,7 +287,6 @@ def test_ibc_incentivized_transfer(ibc): distribute_fee(cronos_signer2, fee), *send_coins(feeibc_addr, cronos_signer2, src_amount, fee_denom), fungible(checksum_dst_adr, cronos_signer2, amount, dst_denom), - update_client(), recv_packet(dst_adr, cronos_signer2, amount, transfer_denom), *send_coins(escrow, cronos_signer2, amount, dst_denom), fungible(cronos_signer2, checksum_dst_adr, amount, transfer_denom), @@ -315,10 +304,8 @@ def get_transfer_source_tokens_topics(dst_adr, amount, contract, escrow): cronos_denom = f"cronos{contract}" transfer_cronos_denom = f"transfer/{channel}/{cronos_denom}" return [ - update_client(), acknowledge_packet(), fungible(checksum_dst_adr, ADDRS["validator"], amount, cronos_denom), - update_client(), recv_packet(dst_adr, cronos_signer2, amount, transfer_cronos_denom), *send_coins(escrow, cronos_signer2, amount, cronos_denom), fungible(cronos_signer2, checksum_dst_adr, amount, transfer_cronos_denom), diff --git a/x/cronos/events/bindings/cosmos/precompile/relayer/i_relayer_module.abigen.go b/x/cronos/events/bindings/cosmos/precompile/relayer/i_relayer_module.abigen.go index 4a2f071aab..1ada623ec7 100644 --- a/x/cronos/events/bindings/cosmos/precompile/relayer/i_relayer_module.abigen.go +++ b/x/cronos/events/bindings/cosmos/precompile/relayer/i_relayer_module.abigen.go @@ -43,7 +43,7 @@ type IRelayerModulePacketData struct { // RelayerModuleMetaData contains all meta data concerning the RelayerModule contract. var RelayerModuleMetaData = &bind.MetaData{ - ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"string\",\"name\":\"packetSrcPort\",\"type\":\"string\"},{\"indexed\":true,\"internalType\":\"string\",\"name\":\"packetSrcChannel\",\"type\":\"string\"},{\"indexed\":true,\"internalType\":\"string\",\"name\":\"packetDstPort\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"packetDstChannel\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"packetChannelOrdering\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"packetConnection\",\"type\":\"string\"}],\"name\":\"AcknowledgePacket\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"burner\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"denom\",\"type\":\"string\"}],\"indexed\":false,\"internalType\":\"structCosmos.Coin[]\",\"name\":\"amount\",\"type\":\"tuple[]\"}],\"name\":\"Burn\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"string\",\"name\":\"portId\",\"type\":\"string\"},{\"indexed\":true,\"internalType\":\"string\",\"name\":\"channelId\",\"type\":\"string\"},{\"indexed\":true,\"internalType\":\"string\",\"name\":\"counterpartyPortId\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"counterpartyChannelId\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"connectionId\",\"type\":\"string\"}],\"name\":\"ChannelCloseConfirm\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"string\",\"name\":\"portId\",\"type\":\"string\"},{\"indexed\":true,\"internalType\":\"string\",\"name\":\"channelId\",\"type\":\"string\"},{\"indexed\":true,\"internalType\":\"string\",\"name\":\"counterpartyPortId\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"counterpartyChannelId\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"connectionId\",\"type\":\"string\"}],\"name\":\"ChannelCloseInit\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[],\"name\":\"ChannelClosed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"string\",\"name\":\"portId\",\"type\":\"string\"},{\"indexed\":true,\"internalType\":\"string\",\"name\":\"channelId\",\"type\":\"string\"},{\"indexed\":true,\"internalType\":\"string\",\"name\":\"counterpartyPortId\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"counterpartyChannelId\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"connectionId\",\"type\":\"string\"}],\"name\":\"ChannelOpenAck\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"string\",\"name\":\"portId\",\"type\":\"string\"},{\"indexed\":true,\"internalType\":\"string\",\"name\":\"channelId\",\"type\":\"string\"},{\"indexed\":true,\"internalType\":\"string\",\"name\":\"counterpartyPortId\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"counterpartyChannelId\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"connectionId\",\"type\":\"string\"}],\"name\":\"ChannelOpenConfirm\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"string\",\"name\":\"portId\",\"type\":\"string\"},{\"indexed\":true,\"internalType\":\"string\",\"name\":\"channelId\",\"type\":\"string\"},{\"indexed\":true,\"internalType\":\"string\",\"name\":\"counterpartyPortId\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"counterpartyChannelId\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"connectionId\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"version\",\"type\":\"string\"}],\"name\":\"ChannelOpenInit\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"string\",\"name\":\"portId\",\"type\":\"string\"},{\"indexed\":true,\"internalType\":\"string\",\"name\":\"channelId\",\"type\":\"string\"},{\"indexed\":true,\"internalType\":\"string\",\"name\":\"counterpartyPortId\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"counterpartyChannelId\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"connectionId\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"version\",\"type\":\"string\"}],\"name\":\"ChannelOpenTry\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"denom\",\"type\":\"string\"}],\"indexed\":false,\"internalType\":\"structCosmos.Coin[]\",\"name\":\"amount\",\"type\":\"tuple[]\"}],\"name\":\"CoinReceived\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"denom\",\"type\":\"string\"}],\"indexed\":false,\"internalType\":\"structCosmos.Coin[]\",\"name\":\"amount\",\"type\":\"tuple[]\"}],\"name\":\"CoinSpent\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"minter\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"denom\",\"type\":\"string\"}],\"indexed\":false,\"internalType\":\"structCosmos.Coin[]\",\"name\":\"amount\",\"type\":\"tuple[]\"}],\"name\":\"Coinbase\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"string\",\"name\":\"connectionId\",\"type\":\"string\"},{\"indexed\":true,\"internalType\":\"string\",\"name\":\"clientId\",\"type\":\"string\"},{\"indexed\":true,\"internalType\":\"string\",\"name\":\"counterpartyClientId\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"counterpartyConnectionId\",\"type\":\"string\"}],\"name\":\"ConnectionOpenAck\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"string\",\"name\":\"connectionId\",\"type\":\"string\"},{\"indexed\":true,\"internalType\":\"string\",\"name\":\"clientId\",\"type\":\"string\"},{\"indexed\":true,\"internalType\":\"string\",\"name\":\"counterpartyClientId\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"counterpartyConnectionId\",\"type\":\"string\"}],\"name\":\"ConnectionOpenConfirm\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"string\",\"name\":\"connectionId\",\"type\":\"string\"},{\"indexed\":true,\"internalType\":\"string\",\"name\":\"clientId\",\"type\":\"string\"},{\"indexed\":true,\"internalType\":\"string\",\"name\":\"counterpartyClientId\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"counterpartyConnectionId\",\"type\":\"string\"}],\"name\":\"ConnectionOpenInit\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"string\",\"name\":\"connectionId\",\"type\":\"string\"},{\"indexed\":true,\"internalType\":\"string\",\"name\":\"clientId\",\"type\":\"string\"},{\"indexed\":true,\"internalType\":\"string\",\"name\":\"counterpartyClientId\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"counterpartyConnectionId\",\"type\":\"string\"}],\"name\":\"ConnectionOpenTry\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"string\",\"name\":\"clientId\",\"type\":\"string\"},{\"indexed\":true,\"internalType\":\"string\",\"name\":\"clientType\",\"type\":\"string\"}],\"name\":\"CreateClient\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"string\",\"name\":\"denom\",\"type\":\"string\"}],\"name\":\"DenominationTrace\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"string\",\"name\":\"fee\",\"type\":\"string\"}],\"name\":\"DistributeFee\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"string\",\"name\":\"denom\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"FungibleTokenPacket\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"string\",\"name\":\"denom\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"IbcTransfer\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[],\"name\":\"Message\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"sender\",\"type\":\"string\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"denom\",\"type\":\"string\"}],\"internalType\":\"structCosmos.Coin[]\",\"name\":\"amount\",\"type\":\"tuple[]\"}],\"indexed\":false,\"internalType\":\"structIRelayerModule.PacketData\",\"name\":\"packetDataHex\",\"type\":\"tuple\"}],\"name\":\"RecvPacket\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"string\",\"name\":\"subjectId\",\"type\":\"string\"},{\"indexed\":true,\"internalType\":\"string\",\"name\":\"clientType\",\"type\":\"string\"}],\"name\":\"SubmitMisbehaviour\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"refundReceiver\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"string\",\"name\":\"refundDenom\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Timeout\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"string\",\"name\":\"packetSrcPort\",\"type\":\"string\"},{\"indexed\":true,\"internalType\":\"string\",\"name\":\"packetSrcChannel\",\"type\":\"string\"},{\"indexed\":true,\"internalType\":\"string\",\"name\":\"packetDstPort\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"packetDstChannel\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"packetChannelOrdering\",\"type\":\"string\"}],\"name\":\"TimeoutPacket\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"denom\",\"type\":\"string\"}],\"indexed\":false,\"internalType\":\"structCosmos.Coin[]\",\"name\":\"amount\",\"type\":\"tuple[]\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"string\",\"name\":\"clientId\",\"type\":\"string\"},{\"indexed\":true,\"internalType\":\"string\",\"name\":\"clientType\",\"type\":\"string\"}],\"name\":\"UpdateClient\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"string\",\"name\":\"clientId\",\"type\":\"string\"},{\"indexed\":true,\"internalType\":\"string\",\"name\":\"clientType\",\"type\":\"string\"}],\"name\":\"UpgradeClient\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"packetConnection\",\"type\":\"string\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"sender\",\"type\":\"string\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"denom\",\"type\":\"string\"}],\"internalType\":\"structCosmos.Coin[]\",\"name\":\"amount\",\"type\":\"tuple[]\"}],\"indexed\":false,\"internalType\":\"structIRelayerModule.PacketData\",\"name\":\"packetDataHex\",\"type\":\"tuple\"}],\"name\":\"WriteAcknowledgement\",\"type\":\"event\"}]", + ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"string\",\"name\":\"packetSrcPort\",\"type\":\"string\"},{\"indexed\":true,\"internalType\":\"string\",\"name\":\"packetSrcChannel\",\"type\":\"string\"},{\"indexed\":true,\"internalType\":\"string\",\"name\":\"packetDstPort\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"packetDstChannel\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"packetChannelOrdering\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"packetConnection\",\"type\":\"string\"}],\"name\":\"AcknowledgePacket\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"burner\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"denom\",\"type\":\"string\"}],\"indexed\":false,\"internalType\":\"structCosmos.Coin[]\",\"name\":\"amount\",\"type\":\"tuple[]\"}],\"name\":\"Burn\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[],\"name\":\"ChannelClosed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"denom\",\"type\":\"string\"}],\"indexed\":false,\"internalType\":\"structCosmos.Coin[]\",\"name\":\"amount\",\"type\":\"tuple[]\"}],\"name\":\"CoinReceived\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"denom\",\"type\":\"string\"}],\"indexed\":false,\"internalType\":\"structCosmos.Coin[]\",\"name\":\"amount\",\"type\":\"tuple[]\"}],\"name\":\"CoinSpent\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"minter\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"denom\",\"type\":\"string\"}],\"indexed\":false,\"internalType\":\"structCosmos.Coin[]\",\"name\":\"amount\",\"type\":\"tuple[]\"}],\"name\":\"Coinbase\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"string\",\"name\":\"denom\",\"type\":\"string\"}],\"name\":\"DenominationTrace\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"string\",\"name\":\"fee\",\"type\":\"string\"}],\"name\":\"DistributeFee\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"string\",\"name\":\"denom\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"FungibleTokenPacket\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"string\",\"name\":\"denom\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"IbcTransfer\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"sender\",\"type\":\"string\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"denom\",\"type\":\"string\"}],\"internalType\":\"structCosmos.Coin[]\",\"name\":\"amount\",\"type\":\"tuple[]\"}],\"indexed\":false,\"internalType\":\"structIRelayerModule.PacketData\",\"name\":\"packetDataHex\",\"type\":\"tuple\"}],\"name\":\"RecvPacket\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"refundReceiver\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"string\",\"name\":\"refundDenom\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Timeout\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"string\",\"name\":\"packetSrcPort\",\"type\":\"string\"},{\"indexed\":true,\"internalType\":\"string\",\"name\":\"packetSrcChannel\",\"type\":\"string\"},{\"indexed\":true,\"internalType\":\"string\",\"name\":\"packetDstPort\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"packetDstChannel\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"packetChannelOrdering\",\"type\":\"string\"}],\"name\":\"TimeoutPacket\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"denom\",\"type\":\"string\"}],\"indexed\":false,\"internalType\":\"structCosmos.Coin[]\",\"name\":\"amount\",\"type\":\"tuple[]\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"packetConnection\",\"type\":\"string\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"sender\",\"type\":\"string\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"denom\",\"type\":\"string\"}],\"internalType\":\"structCosmos.Coin[]\",\"name\":\"amount\",\"type\":\"tuple[]\"}],\"indexed\":false,\"internalType\":\"structIRelayerModule.PacketData\",\"name\":\"packetDataHex\",\"type\":\"tuple\"}],\"name\":\"WriteAcknowledgement\",\"type\":\"event\"}]", } // RelayerModuleABI is the input ABI used to generate the binding from. @@ -502,9 +502,9 @@ func (_RelayerModule *RelayerModuleFilterer) ParseBurn(log types.Log) (*RelayerM return event, nil } -// RelayerModuleChannelCloseConfirmIterator is returned from FilterChannelCloseConfirm and is used to iterate over the raw logs and unpacked data for ChannelCloseConfirm events raised by the RelayerModule contract. -type RelayerModuleChannelCloseConfirmIterator struct { - Event *RelayerModuleChannelCloseConfirm // Event containing the contract specifics and raw log +// RelayerModuleChannelClosedIterator is returned from FilterChannelClosed and is used to iterate over the raw logs and unpacked data for ChannelClosed events raised by the RelayerModule contract. +type RelayerModuleChannelClosedIterator struct { + Event *RelayerModuleChannelClosed // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -518,7 +518,7 @@ type RelayerModuleChannelCloseConfirmIterator struct { // 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. -func (it *RelayerModuleChannelCloseConfirmIterator) Next() bool { +func (it *RelayerModuleChannelClosedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -527,7 +527,7 @@ func (it *RelayerModuleChannelCloseConfirmIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(RelayerModuleChannelCloseConfirm) + it.Event = new(RelayerModuleChannelClosed) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -542,7 +542,7 @@ func (it *RelayerModuleChannelCloseConfirmIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(RelayerModuleChannelCloseConfirm) + it.Event = new(RelayerModuleChannelClosed) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -558,71 +558,40 @@ func (it *RelayerModuleChannelCloseConfirmIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *RelayerModuleChannelCloseConfirmIterator) Error() error { +func (it *RelayerModuleChannelClosedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *RelayerModuleChannelCloseConfirmIterator) Close() error { +func (it *RelayerModuleChannelClosedIterator) Close() error { it.sub.Unsubscribe() return nil } -// RelayerModuleChannelCloseConfirm represents a ChannelCloseConfirm event raised by the RelayerModule contract. -type RelayerModuleChannelCloseConfirm struct { - PortId common.Hash - ChannelId common.Hash - CounterpartyPortId common.Hash - CounterpartyChannelId string - ConnectionId string - Raw types.Log // Blockchain specific contextual infos +// RelayerModuleChannelClosed represents a ChannelClosed event raised by the RelayerModule contract. +type RelayerModuleChannelClosed struct { + Raw types.Log // Blockchain specific contextual infos } -// FilterChannelCloseConfirm is a free log retrieval operation binding the contract event 0x1d27827947f32db531c2d0a11a83e392e9391cf32071f1716bc53c3df605b637. +// FilterChannelClosed is a free log retrieval operation binding the contract event 0x6821b7df6ac3c960825ec594d716b8c7babb16a672ffdf0679a9ff6e873d5c82. // -// Solidity: event ChannelCloseConfirm(string indexed portId, string indexed channelId, string indexed counterpartyPortId, string counterpartyChannelId, string connectionId) -func (_RelayerModule *RelayerModuleFilterer) FilterChannelCloseConfirm(opts *bind.FilterOpts, portId []string, channelId []string, counterpartyPortId []string) (*RelayerModuleChannelCloseConfirmIterator, error) { - - var portIdRule []interface{} - for _, portIdItem := range portId { - portIdRule = append(portIdRule, portIdItem) - } - var channelIdRule []interface{} - for _, channelIdItem := range channelId { - channelIdRule = append(channelIdRule, channelIdItem) - } - var counterpartyPortIdRule []interface{} - for _, counterpartyPortIdItem := range counterpartyPortId { - counterpartyPortIdRule = append(counterpartyPortIdRule, counterpartyPortIdItem) - } +// Solidity: event ChannelClosed() +func (_RelayerModule *RelayerModuleFilterer) FilterChannelClosed(opts *bind.FilterOpts) (*RelayerModuleChannelClosedIterator, error) { - logs, sub, err := _RelayerModule.contract.FilterLogs(opts, "ChannelCloseConfirm", portIdRule, channelIdRule, counterpartyPortIdRule) + logs, sub, err := _RelayerModule.contract.FilterLogs(opts, "ChannelClosed") if err != nil { return nil, err } - return &RelayerModuleChannelCloseConfirmIterator{contract: _RelayerModule.contract, event: "ChannelCloseConfirm", logs: logs, sub: sub}, nil + return &RelayerModuleChannelClosedIterator{contract: _RelayerModule.contract, event: "ChannelClosed", logs: logs, sub: sub}, nil } -// WatchChannelCloseConfirm is a free log subscription operation binding the contract event 0x1d27827947f32db531c2d0a11a83e392e9391cf32071f1716bc53c3df605b637. +// WatchChannelClosed is a free log subscription operation binding the contract event 0x6821b7df6ac3c960825ec594d716b8c7babb16a672ffdf0679a9ff6e873d5c82. // -// Solidity: event ChannelCloseConfirm(string indexed portId, string indexed channelId, string indexed counterpartyPortId, string counterpartyChannelId, string connectionId) -func (_RelayerModule *RelayerModuleFilterer) WatchChannelCloseConfirm(opts *bind.WatchOpts, sink chan<- *RelayerModuleChannelCloseConfirm, portId []string, channelId []string, counterpartyPortId []string) (event.Subscription, error) { - - var portIdRule []interface{} - for _, portIdItem := range portId { - portIdRule = append(portIdRule, portIdItem) - } - var channelIdRule []interface{} - for _, channelIdItem := range channelId { - channelIdRule = append(channelIdRule, channelIdItem) - } - var counterpartyPortIdRule []interface{} - for _, counterpartyPortIdItem := range counterpartyPortId { - counterpartyPortIdRule = append(counterpartyPortIdRule, counterpartyPortIdItem) - } +// Solidity: event ChannelClosed() +func (_RelayerModule *RelayerModuleFilterer) WatchChannelClosed(opts *bind.WatchOpts, sink chan<- *RelayerModuleChannelClosed) (event.Subscription, error) { - logs, sub, err := _RelayerModule.contract.WatchLogs(opts, "ChannelCloseConfirm", portIdRule, channelIdRule, counterpartyPortIdRule) + logs, sub, err := _RelayerModule.contract.WatchLogs(opts, "ChannelClosed") if err != nil { return nil, err } @@ -632,8 +601,8 @@ func (_RelayerModule *RelayerModuleFilterer) WatchChannelCloseConfirm(opts *bind select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(RelayerModuleChannelCloseConfirm) - if err := _RelayerModule.contract.UnpackLog(event, "ChannelCloseConfirm", log); err != nil { + event := new(RelayerModuleChannelClosed) + if err := _RelayerModule.contract.UnpackLog(event, "ChannelClosed", log); err != nil { return err } event.Raw = log @@ -654,21 +623,21 @@ func (_RelayerModule *RelayerModuleFilterer) WatchChannelCloseConfirm(opts *bind }), nil } -// ParseChannelCloseConfirm is a log parse operation binding the contract event 0x1d27827947f32db531c2d0a11a83e392e9391cf32071f1716bc53c3df605b637. +// ParseChannelClosed is a log parse operation binding the contract event 0x6821b7df6ac3c960825ec594d716b8c7babb16a672ffdf0679a9ff6e873d5c82. // -// Solidity: event ChannelCloseConfirm(string indexed portId, string indexed channelId, string indexed counterpartyPortId, string counterpartyChannelId, string connectionId) -func (_RelayerModule *RelayerModuleFilterer) ParseChannelCloseConfirm(log types.Log) (*RelayerModuleChannelCloseConfirm, error) { - event := new(RelayerModuleChannelCloseConfirm) - if err := _RelayerModule.contract.UnpackLog(event, "ChannelCloseConfirm", log); err != nil { +// Solidity: event ChannelClosed() +func (_RelayerModule *RelayerModuleFilterer) ParseChannelClosed(log types.Log) (*RelayerModuleChannelClosed, error) { + event := new(RelayerModuleChannelClosed) + if err := _RelayerModule.contract.UnpackLog(event, "ChannelClosed", log); err != nil { return nil, err } event.Raw = log return event, nil } -// RelayerModuleChannelCloseInitIterator is returned from FilterChannelCloseInit and is used to iterate over the raw logs and unpacked data for ChannelCloseInit events raised by the RelayerModule contract. -type RelayerModuleChannelCloseInitIterator struct { - Event *RelayerModuleChannelCloseInit // Event containing the contract specifics and raw log +// RelayerModuleCoinReceivedIterator is returned from FilterCoinReceived and is used to iterate over the raw logs and unpacked data for CoinReceived events raised by the RelayerModule contract. +type RelayerModuleCoinReceivedIterator struct { + Event *RelayerModuleCoinReceived // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -682,7 +651,7 @@ type RelayerModuleChannelCloseInitIterator struct { // 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. -func (it *RelayerModuleChannelCloseInitIterator) Next() bool { +func (it *RelayerModuleCoinReceivedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -691,7 +660,7 @@ func (it *RelayerModuleChannelCloseInitIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(RelayerModuleChannelCloseInit) + it.Event = new(RelayerModuleCoinReceived) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -706,7 +675,7 @@ func (it *RelayerModuleChannelCloseInitIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(RelayerModuleChannelCloseInit) + it.Event = new(RelayerModuleCoinReceived) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -722,71 +691,52 @@ func (it *RelayerModuleChannelCloseInitIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *RelayerModuleChannelCloseInitIterator) Error() error { +func (it *RelayerModuleCoinReceivedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *RelayerModuleChannelCloseInitIterator) Close() error { +func (it *RelayerModuleCoinReceivedIterator) Close() error { it.sub.Unsubscribe() return nil } -// RelayerModuleChannelCloseInit represents a ChannelCloseInit event raised by the RelayerModule contract. -type RelayerModuleChannelCloseInit struct { - PortId common.Hash - ChannelId common.Hash - CounterpartyPortId common.Hash - CounterpartyChannelId string - ConnectionId string - Raw types.Log // Blockchain specific contextual infos +// RelayerModuleCoinReceived represents a CoinReceived event raised by the RelayerModule contract. +type RelayerModuleCoinReceived struct { + Receiver common.Address + Amount []CosmosCoin + Raw types.Log // Blockchain specific contextual infos } -// FilterChannelCloseInit is a free log retrieval operation binding the contract event 0x645976448b76cf17132a7f0f96d505a70aa349bc7753973035352feb57901375. +// FilterCoinReceived is a free log retrieval operation binding the contract event 0x13f9c352919df1623a08e6d6d9eac5f774573896f09916d8fbc5d083095fc3b4. // -// Solidity: event ChannelCloseInit(string indexed portId, string indexed channelId, string indexed counterpartyPortId, string counterpartyChannelId, string connectionId) -func (_RelayerModule *RelayerModuleFilterer) FilterChannelCloseInit(opts *bind.FilterOpts, portId []string, channelId []string, counterpartyPortId []string) (*RelayerModuleChannelCloseInitIterator, error) { +// Solidity: event CoinReceived(address indexed receiver, (uint256,string)[] amount) +func (_RelayerModule *RelayerModuleFilterer) FilterCoinReceived(opts *bind.FilterOpts, receiver []common.Address) (*RelayerModuleCoinReceivedIterator, error) { - var portIdRule []interface{} - for _, portIdItem := range portId { - portIdRule = append(portIdRule, portIdItem) - } - var channelIdRule []interface{} - for _, channelIdItem := range channelId { - channelIdRule = append(channelIdRule, channelIdItem) - } - var counterpartyPortIdRule []interface{} - for _, counterpartyPortIdItem := range counterpartyPortId { - counterpartyPortIdRule = append(counterpartyPortIdRule, counterpartyPortIdItem) + var receiverRule []interface{} + for _, receiverItem := range receiver { + receiverRule = append(receiverRule, receiverItem) } - logs, sub, err := _RelayerModule.contract.FilterLogs(opts, "ChannelCloseInit", portIdRule, channelIdRule, counterpartyPortIdRule) + logs, sub, err := _RelayerModule.contract.FilterLogs(opts, "CoinReceived", receiverRule) if err != nil { return nil, err } - return &RelayerModuleChannelCloseInitIterator{contract: _RelayerModule.contract, event: "ChannelCloseInit", logs: logs, sub: sub}, nil + return &RelayerModuleCoinReceivedIterator{contract: _RelayerModule.contract, event: "CoinReceived", logs: logs, sub: sub}, nil } -// WatchChannelCloseInit is a free log subscription operation binding the contract event 0x645976448b76cf17132a7f0f96d505a70aa349bc7753973035352feb57901375. +// WatchCoinReceived is a free log subscription operation binding the contract event 0x13f9c352919df1623a08e6d6d9eac5f774573896f09916d8fbc5d083095fc3b4. // -// Solidity: event ChannelCloseInit(string indexed portId, string indexed channelId, string indexed counterpartyPortId, string counterpartyChannelId, string connectionId) -func (_RelayerModule *RelayerModuleFilterer) WatchChannelCloseInit(opts *bind.WatchOpts, sink chan<- *RelayerModuleChannelCloseInit, portId []string, channelId []string, counterpartyPortId []string) (event.Subscription, error) { +// Solidity: event CoinReceived(address indexed receiver, (uint256,string)[] amount) +func (_RelayerModule *RelayerModuleFilterer) WatchCoinReceived(opts *bind.WatchOpts, sink chan<- *RelayerModuleCoinReceived, receiver []common.Address) (event.Subscription, error) { - var portIdRule []interface{} - for _, portIdItem := range portId { - portIdRule = append(portIdRule, portIdItem) - } - var channelIdRule []interface{} - for _, channelIdItem := range channelId { - channelIdRule = append(channelIdRule, channelIdItem) - } - var counterpartyPortIdRule []interface{} - for _, counterpartyPortIdItem := range counterpartyPortId { - counterpartyPortIdRule = append(counterpartyPortIdRule, counterpartyPortIdItem) + var receiverRule []interface{} + for _, receiverItem := range receiver { + receiverRule = append(receiverRule, receiverItem) } - logs, sub, err := _RelayerModule.contract.WatchLogs(opts, "ChannelCloseInit", portIdRule, channelIdRule, counterpartyPortIdRule) + logs, sub, err := _RelayerModule.contract.WatchLogs(opts, "CoinReceived", receiverRule) if err != nil { return nil, err } @@ -796,8 +746,8 @@ func (_RelayerModule *RelayerModuleFilterer) WatchChannelCloseInit(opts *bind.Wa select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(RelayerModuleChannelCloseInit) - if err := _RelayerModule.contract.UnpackLog(event, "ChannelCloseInit", log); err != nil { + event := new(RelayerModuleCoinReceived) + if err := _RelayerModule.contract.UnpackLog(event, "CoinReceived", log); err != nil { return err } event.Raw = log @@ -818,21 +768,21 @@ func (_RelayerModule *RelayerModuleFilterer) WatchChannelCloseInit(opts *bind.Wa }), nil } -// ParseChannelCloseInit is a log parse operation binding the contract event 0x645976448b76cf17132a7f0f96d505a70aa349bc7753973035352feb57901375. +// ParseCoinReceived is a log parse operation binding the contract event 0x13f9c352919df1623a08e6d6d9eac5f774573896f09916d8fbc5d083095fc3b4. // -// Solidity: event ChannelCloseInit(string indexed portId, string indexed channelId, string indexed counterpartyPortId, string counterpartyChannelId, string connectionId) -func (_RelayerModule *RelayerModuleFilterer) ParseChannelCloseInit(log types.Log) (*RelayerModuleChannelCloseInit, error) { - event := new(RelayerModuleChannelCloseInit) - if err := _RelayerModule.contract.UnpackLog(event, "ChannelCloseInit", log); err != nil { +// Solidity: event CoinReceived(address indexed receiver, (uint256,string)[] amount) +func (_RelayerModule *RelayerModuleFilterer) ParseCoinReceived(log types.Log) (*RelayerModuleCoinReceived, error) { + event := new(RelayerModuleCoinReceived) + if err := _RelayerModule.contract.UnpackLog(event, "CoinReceived", log); err != nil { return nil, err } event.Raw = log return event, nil } -// RelayerModuleChannelClosedIterator is returned from FilterChannelClosed and is used to iterate over the raw logs and unpacked data for ChannelClosed events raised by the RelayerModule contract. -type RelayerModuleChannelClosedIterator struct { - Event *RelayerModuleChannelClosed // Event containing the contract specifics and raw log +// RelayerModuleCoinSpentIterator is returned from FilterCoinSpent and is used to iterate over the raw logs and unpacked data for CoinSpent events raised by the RelayerModule contract. +type RelayerModuleCoinSpentIterator struct { + Event *RelayerModuleCoinSpent // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -846,7 +796,7 @@ type RelayerModuleChannelClosedIterator struct { // 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. -func (it *RelayerModuleChannelClosedIterator) Next() bool { +func (it *RelayerModuleCoinSpentIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -855,7 +805,7 @@ func (it *RelayerModuleChannelClosedIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(RelayerModuleChannelClosed) + it.Event = new(RelayerModuleCoinSpent) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -870,7 +820,7 @@ func (it *RelayerModuleChannelClosedIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(RelayerModuleChannelClosed) + it.Event = new(RelayerModuleCoinSpent) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -886,40 +836,52 @@ func (it *RelayerModuleChannelClosedIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *RelayerModuleChannelClosedIterator) Error() error { +func (it *RelayerModuleCoinSpentIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *RelayerModuleChannelClosedIterator) Close() error { +func (it *RelayerModuleCoinSpentIterator) Close() error { it.sub.Unsubscribe() return nil } -// RelayerModuleChannelClosed represents a ChannelClosed event raised by the RelayerModule contract. -type RelayerModuleChannelClosed struct { - Raw types.Log // Blockchain specific contextual infos +// RelayerModuleCoinSpent represents a CoinSpent event raised by the RelayerModule contract. +type RelayerModuleCoinSpent struct { + Spender common.Address + Amount []CosmosCoin + Raw types.Log // Blockchain specific contextual infos } -// FilterChannelClosed is a free log retrieval operation binding the contract event 0x6821b7df6ac3c960825ec594d716b8c7babb16a672ffdf0679a9ff6e873d5c82. +// FilterCoinSpent is a free log retrieval operation binding the contract event 0x8b8b22fea5b121b174e6cfea34ddaf187b66b43dab67679fa291a0fae2427a99. // -// Solidity: event ChannelClosed() -func (_RelayerModule *RelayerModuleFilterer) FilterChannelClosed(opts *bind.FilterOpts) (*RelayerModuleChannelClosedIterator, error) { +// Solidity: event CoinSpent(address indexed spender, (uint256,string)[] amount) +func (_RelayerModule *RelayerModuleFilterer) FilterCoinSpent(opts *bind.FilterOpts, spender []common.Address) (*RelayerModuleCoinSpentIterator, error) { - logs, sub, err := _RelayerModule.contract.FilterLogs(opts, "ChannelClosed") + var spenderRule []interface{} + for _, spenderItem := range spender { + spenderRule = append(spenderRule, spenderItem) + } + + logs, sub, err := _RelayerModule.contract.FilterLogs(opts, "CoinSpent", spenderRule) if err != nil { return nil, err } - return &RelayerModuleChannelClosedIterator{contract: _RelayerModule.contract, event: "ChannelClosed", logs: logs, sub: sub}, nil + return &RelayerModuleCoinSpentIterator{contract: _RelayerModule.contract, event: "CoinSpent", logs: logs, sub: sub}, nil } -// WatchChannelClosed is a free log subscription operation binding the contract event 0x6821b7df6ac3c960825ec594d716b8c7babb16a672ffdf0679a9ff6e873d5c82. +// WatchCoinSpent is a free log subscription operation binding the contract event 0x8b8b22fea5b121b174e6cfea34ddaf187b66b43dab67679fa291a0fae2427a99. // -// Solidity: event ChannelClosed() -func (_RelayerModule *RelayerModuleFilterer) WatchChannelClosed(opts *bind.WatchOpts, sink chan<- *RelayerModuleChannelClosed) (event.Subscription, error) { +// Solidity: event CoinSpent(address indexed spender, (uint256,string)[] amount) +func (_RelayerModule *RelayerModuleFilterer) WatchCoinSpent(opts *bind.WatchOpts, sink chan<- *RelayerModuleCoinSpent, spender []common.Address) (event.Subscription, error) { - logs, sub, err := _RelayerModule.contract.WatchLogs(opts, "ChannelClosed") + var spenderRule []interface{} + for _, spenderItem := range spender { + spenderRule = append(spenderRule, spenderItem) + } + + logs, sub, err := _RelayerModule.contract.WatchLogs(opts, "CoinSpent", spenderRule) if err != nil { return nil, err } @@ -929,8 +891,8 @@ func (_RelayerModule *RelayerModuleFilterer) WatchChannelClosed(opts *bind.Watch select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(RelayerModuleChannelClosed) - if err := _RelayerModule.contract.UnpackLog(event, "ChannelClosed", log); err != nil { + event := new(RelayerModuleCoinSpent) + if err := _RelayerModule.contract.UnpackLog(event, "CoinSpent", log); err != nil { return err } event.Raw = log @@ -951,21 +913,21 @@ func (_RelayerModule *RelayerModuleFilterer) WatchChannelClosed(opts *bind.Watch }), nil } -// ParseChannelClosed is a log parse operation binding the contract event 0x6821b7df6ac3c960825ec594d716b8c7babb16a672ffdf0679a9ff6e873d5c82. +// ParseCoinSpent is a log parse operation binding the contract event 0x8b8b22fea5b121b174e6cfea34ddaf187b66b43dab67679fa291a0fae2427a99. // -// Solidity: event ChannelClosed() -func (_RelayerModule *RelayerModuleFilterer) ParseChannelClosed(log types.Log) (*RelayerModuleChannelClosed, error) { - event := new(RelayerModuleChannelClosed) - if err := _RelayerModule.contract.UnpackLog(event, "ChannelClosed", log); err != nil { +// Solidity: event CoinSpent(address indexed spender, (uint256,string)[] amount) +func (_RelayerModule *RelayerModuleFilterer) ParseCoinSpent(log types.Log) (*RelayerModuleCoinSpent, error) { + event := new(RelayerModuleCoinSpent) + if err := _RelayerModule.contract.UnpackLog(event, "CoinSpent", log); err != nil { return nil, err } event.Raw = log return event, nil } -// RelayerModuleChannelOpenAckIterator is returned from FilterChannelOpenAck and is used to iterate over the raw logs and unpacked data for ChannelOpenAck events raised by the RelayerModule contract. -type RelayerModuleChannelOpenAckIterator struct { - Event *RelayerModuleChannelOpenAck // Event containing the contract specifics and raw log +// RelayerModuleCoinbaseIterator is returned from FilterCoinbase and is used to iterate over the raw logs and unpacked data for Coinbase events raised by the RelayerModule contract. +type RelayerModuleCoinbaseIterator struct { + Event *RelayerModuleCoinbase // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -979,7 +941,7 @@ type RelayerModuleChannelOpenAckIterator struct { // 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. -func (it *RelayerModuleChannelOpenAckIterator) Next() bool { +func (it *RelayerModuleCoinbaseIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -988,7 +950,7 @@ func (it *RelayerModuleChannelOpenAckIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(RelayerModuleChannelOpenAck) + it.Event = new(RelayerModuleCoinbase) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -1003,7 +965,7 @@ func (it *RelayerModuleChannelOpenAckIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(RelayerModuleChannelOpenAck) + it.Event = new(RelayerModuleCoinbase) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -1019,71 +981,52 @@ func (it *RelayerModuleChannelOpenAckIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *RelayerModuleChannelOpenAckIterator) Error() error { +func (it *RelayerModuleCoinbaseIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *RelayerModuleChannelOpenAckIterator) Close() error { +func (it *RelayerModuleCoinbaseIterator) Close() error { it.sub.Unsubscribe() return nil } -// RelayerModuleChannelOpenAck represents a ChannelOpenAck event raised by the RelayerModule contract. -type RelayerModuleChannelOpenAck struct { - PortId common.Hash - ChannelId common.Hash - CounterpartyPortId common.Hash - CounterpartyChannelId string - ConnectionId string - Raw types.Log // Blockchain specific contextual infos +// RelayerModuleCoinbase represents a Coinbase event raised by the RelayerModule contract. +type RelayerModuleCoinbase struct { + Minter common.Address + Amount []CosmosCoin + Raw types.Log // Blockchain specific contextual infos } -// FilterChannelOpenAck is a free log retrieval operation binding the contract event 0xe9342577bf02f748ba783edd9094f8e93b2ef7face9bc7478d7b30358ddeef6f. +// FilterCoinbase is a free log retrieval operation binding the contract event 0xefb3f1f2a9af64b5fcc2da3c5a088d780585c674b8075fe2a1ba6b0d906cbe9f. // -// Solidity: event ChannelOpenAck(string indexed portId, string indexed channelId, string indexed counterpartyPortId, string counterpartyChannelId, string connectionId) -func (_RelayerModule *RelayerModuleFilterer) FilterChannelOpenAck(opts *bind.FilterOpts, portId []string, channelId []string, counterpartyPortId []string) (*RelayerModuleChannelOpenAckIterator, error) { +// Solidity: event Coinbase(address indexed minter, (uint256,string)[] amount) +func (_RelayerModule *RelayerModuleFilterer) FilterCoinbase(opts *bind.FilterOpts, minter []common.Address) (*RelayerModuleCoinbaseIterator, error) { - var portIdRule []interface{} - for _, portIdItem := range portId { - portIdRule = append(portIdRule, portIdItem) - } - var channelIdRule []interface{} - for _, channelIdItem := range channelId { - channelIdRule = append(channelIdRule, channelIdItem) - } - var counterpartyPortIdRule []interface{} - for _, counterpartyPortIdItem := range counterpartyPortId { - counterpartyPortIdRule = append(counterpartyPortIdRule, counterpartyPortIdItem) + var minterRule []interface{} + for _, minterItem := range minter { + minterRule = append(minterRule, minterItem) } - logs, sub, err := _RelayerModule.contract.FilterLogs(opts, "ChannelOpenAck", portIdRule, channelIdRule, counterpartyPortIdRule) + logs, sub, err := _RelayerModule.contract.FilterLogs(opts, "Coinbase", minterRule) if err != nil { return nil, err } - return &RelayerModuleChannelOpenAckIterator{contract: _RelayerModule.contract, event: "ChannelOpenAck", logs: logs, sub: sub}, nil + return &RelayerModuleCoinbaseIterator{contract: _RelayerModule.contract, event: "Coinbase", logs: logs, sub: sub}, nil } -// WatchChannelOpenAck is a free log subscription operation binding the contract event 0xe9342577bf02f748ba783edd9094f8e93b2ef7face9bc7478d7b30358ddeef6f. +// WatchCoinbase is a free log subscription operation binding the contract event 0xefb3f1f2a9af64b5fcc2da3c5a088d780585c674b8075fe2a1ba6b0d906cbe9f. // -// Solidity: event ChannelOpenAck(string indexed portId, string indexed channelId, string indexed counterpartyPortId, string counterpartyChannelId, string connectionId) -func (_RelayerModule *RelayerModuleFilterer) WatchChannelOpenAck(opts *bind.WatchOpts, sink chan<- *RelayerModuleChannelOpenAck, portId []string, channelId []string, counterpartyPortId []string) (event.Subscription, error) { +// Solidity: event Coinbase(address indexed minter, (uint256,string)[] amount) +func (_RelayerModule *RelayerModuleFilterer) WatchCoinbase(opts *bind.WatchOpts, sink chan<- *RelayerModuleCoinbase, minter []common.Address) (event.Subscription, error) { - var portIdRule []interface{} - for _, portIdItem := range portId { - portIdRule = append(portIdRule, portIdItem) - } - var channelIdRule []interface{} - for _, channelIdItem := range channelId { - channelIdRule = append(channelIdRule, channelIdItem) - } - var counterpartyPortIdRule []interface{} - for _, counterpartyPortIdItem := range counterpartyPortId { - counterpartyPortIdRule = append(counterpartyPortIdRule, counterpartyPortIdItem) + var minterRule []interface{} + for _, minterItem := range minter { + minterRule = append(minterRule, minterItem) } - logs, sub, err := _RelayerModule.contract.WatchLogs(opts, "ChannelOpenAck", portIdRule, channelIdRule, counterpartyPortIdRule) + logs, sub, err := _RelayerModule.contract.WatchLogs(opts, "Coinbase", minterRule) if err != nil { return nil, err } @@ -1093,8 +1036,8 @@ func (_RelayerModule *RelayerModuleFilterer) WatchChannelOpenAck(opts *bind.Watc select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(RelayerModuleChannelOpenAck) - if err := _RelayerModule.contract.UnpackLog(event, "ChannelOpenAck", log); err != nil { + event := new(RelayerModuleCoinbase) + if err := _RelayerModule.contract.UnpackLog(event, "Coinbase", log); err != nil { return err } event.Raw = log @@ -1115,21 +1058,21 @@ func (_RelayerModule *RelayerModuleFilterer) WatchChannelOpenAck(opts *bind.Watc }), nil } -// ParseChannelOpenAck is a log parse operation binding the contract event 0xe9342577bf02f748ba783edd9094f8e93b2ef7face9bc7478d7b30358ddeef6f. +// ParseCoinbase is a log parse operation binding the contract event 0xefb3f1f2a9af64b5fcc2da3c5a088d780585c674b8075fe2a1ba6b0d906cbe9f. // -// Solidity: event ChannelOpenAck(string indexed portId, string indexed channelId, string indexed counterpartyPortId, string counterpartyChannelId, string connectionId) -func (_RelayerModule *RelayerModuleFilterer) ParseChannelOpenAck(log types.Log) (*RelayerModuleChannelOpenAck, error) { - event := new(RelayerModuleChannelOpenAck) - if err := _RelayerModule.contract.UnpackLog(event, "ChannelOpenAck", log); err != nil { +// Solidity: event Coinbase(address indexed minter, (uint256,string)[] amount) +func (_RelayerModule *RelayerModuleFilterer) ParseCoinbase(log types.Log) (*RelayerModuleCoinbase, error) { + event := new(RelayerModuleCoinbase) + if err := _RelayerModule.contract.UnpackLog(event, "Coinbase", log); err != nil { return nil, err } event.Raw = log return event, nil } -// RelayerModuleChannelOpenConfirmIterator is returned from FilterChannelOpenConfirm and is used to iterate over the raw logs and unpacked data for ChannelOpenConfirm events raised by the RelayerModule contract. -type RelayerModuleChannelOpenConfirmIterator struct { - Event *RelayerModuleChannelOpenConfirm // Event containing the contract specifics and raw log +// RelayerModuleDenominationTraceIterator is returned from FilterDenominationTrace and is used to iterate over the raw logs and unpacked data for DenominationTrace events raised by the RelayerModule contract. +type RelayerModuleDenominationTraceIterator struct { + Event *RelayerModuleDenominationTrace // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -1143,7 +1086,7 @@ type RelayerModuleChannelOpenConfirmIterator struct { // 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. -func (it *RelayerModuleChannelOpenConfirmIterator) Next() bool { +func (it *RelayerModuleDenominationTraceIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -1152,7 +1095,7 @@ func (it *RelayerModuleChannelOpenConfirmIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(RelayerModuleChannelOpenConfirm) + it.Event = new(RelayerModuleDenominationTrace) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -1167,7 +1110,7 @@ func (it *RelayerModuleChannelOpenConfirmIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(RelayerModuleChannelOpenConfirm) + it.Event = new(RelayerModuleDenominationTrace) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -1183,71 +1126,51 @@ func (it *RelayerModuleChannelOpenConfirmIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *RelayerModuleChannelOpenConfirmIterator) Error() error { +func (it *RelayerModuleDenominationTraceIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *RelayerModuleChannelOpenConfirmIterator) Close() error { +func (it *RelayerModuleDenominationTraceIterator) Close() error { it.sub.Unsubscribe() return nil } -// RelayerModuleChannelOpenConfirm represents a ChannelOpenConfirm event raised by the RelayerModule contract. -type RelayerModuleChannelOpenConfirm struct { - PortId common.Hash - ChannelId common.Hash - CounterpartyPortId common.Hash - CounterpartyChannelId string - ConnectionId string - Raw types.Log // Blockchain specific contextual infos +// RelayerModuleDenominationTrace represents a DenominationTrace event raised by the RelayerModule contract. +type RelayerModuleDenominationTrace struct { + Denom common.Hash + Raw types.Log // Blockchain specific contextual infos } -// FilterChannelOpenConfirm is a free log retrieval operation binding the contract event 0xcccb79544f2a910ecd04c3bd96f870be6f5c74e0d00c18443c25ecf7b9800918. +// FilterDenominationTrace is a free log retrieval operation binding the contract event 0x483180a024351f3ea4c4782eaadb34add715974648a3d47bbff4a7b76da20859. // -// Solidity: event ChannelOpenConfirm(string indexed portId, string indexed channelId, string indexed counterpartyPortId, string counterpartyChannelId, string connectionId) -func (_RelayerModule *RelayerModuleFilterer) FilterChannelOpenConfirm(opts *bind.FilterOpts, portId []string, channelId []string, counterpartyPortId []string) (*RelayerModuleChannelOpenConfirmIterator, error) { +// Solidity: event DenominationTrace(string indexed denom) +func (_RelayerModule *RelayerModuleFilterer) FilterDenominationTrace(opts *bind.FilterOpts, denom []string) (*RelayerModuleDenominationTraceIterator, error) { - var portIdRule []interface{} - for _, portIdItem := range portId { - portIdRule = append(portIdRule, portIdItem) - } - var channelIdRule []interface{} - for _, channelIdItem := range channelId { - channelIdRule = append(channelIdRule, channelIdItem) - } - var counterpartyPortIdRule []interface{} - for _, counterpartyPortIdItem := range counterpartyPortId { - counterpartyPortIdRule = append(counterpartyPortIdRule, counterpartyPortIdItem) + var denomRule []interface{} + for _, denomItem := range denom { + denomRule = append(denomRule, denomItem) } - logs, sub, err := _RelayerModule.contract.FilterLogs(opts, "ChannelOpenConfirm", portIdRule, channelIdRule, counterpartyPortIdRule) + logs, sub, err := _RelayerModule.contract.FilterLogs(opts, "DenominationTrace", denomRule) if err != nil { return nil, err } - return &RelayerModuleChannelOpenConfirmIterator{contract: _RelayerModule.contract, event: "ChannelOpenConfirm", logs: logs, sub: sub}, nil + return &RelayerModuleDenominationTraceIterator{contract: _RelayerModule.contract, event: "DenominationTrace", logs: logs, sub: sub}, nil } -// WatchChannelOpenConfirm is a free log subscription operation binding the contract event 0xcccb79544f2a910ecd04c3bd96f870be6f5c74e0d00c18443c25ecf7b9800918. +// WatchDenominationTrace is a free log subscription operation binding the contract event 0x483180a024351f3ea4c4782eaadb34add715974648a3d47bbff4a7b76da20859. // -// Solidity: event ChannelOpenConfirm(string indexed portId, string indexed channelId, string indexed counterpartyPortId, string counterpartyChannelId, string connectionId) -func (_RelayerModule *RelayerModuleFilterer) WatchChannelOpenConfirm(opts *bind.WatchOpts, sink chan<- *RelayerModuleChannelOpenConfirm, portId []string, channelId []string, counterpartyPortId []string) (event.Subscription, error) { +// Solidity: event DenominationTrace(string indexed denom) +func (_RelayerModule *RelayerModuleFilterer) WatchDenominationTrace(opts *bind.WatchOpts, sink chan<- *RelayerModuleDenominationTrace, denom []string) (event.Subscription, error) { - var portIdRule []interface{} - for _, portIdItem := range portId { - portIdRule = append(portIdRule, portIdItem) - } - var channelIdRule []interface{} - for _, channelIdItem := range channelId { - channelIdRule = append(channelIdRule, channelIdItem) - } - var counterpartyPortIdRule []interface{} - for _, counterpartyPortIdItem := range counterpartyPortId { - counterpartyPortIdRule = append(counterpartyPortIdRule, counterpartyPortIdItem) + var denomRule []interface{} + for _, denomItem := range denom { + denomRule = append(denomRule, denomItem) } - logs, sub, err := _RelayerModule.contract.WatchLogs(opts, "ChannelOpenConfirm", portIdRule, channelIdRule, counterpartyPortIdRule) + logs, sub, err := _RelayerModule.contract.WatchLogs(opts, "DenominationTrace", denomRule) if err != nil { return nil, err } @@ -1257,8 +1180,8 @@ func (_RelayerModule *RelayerModuleFilterer) WatchChannelOpenConfirm(opts *bind. select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(RelayerModuleChannelOpenConfirm) - if err := _RelayerModule.contract.UnpackLog(event, "ChannelOpenConfirm", log); err != nil { + event := new(RelayerModuleDenominationTrace) + if err := _RelayerModule.contract.UnpackLog(event, "DenominationTrace", log); err != nil { return err } event.Raw = log @@ -1279,21 +1202,21 @@ func (_RelayerModule *RelayerModuleFilterer) WatchChannelOpenConfirm(opts *bind. }), nil } -// ParseChannelOpenConfirm is a log parse operation binding the contract event 0xcccb79544f2a910ecd04c3bd96f870be6f5c74e0d00c18443c25ecf7b9800918. +// ParseDenominationTrace is a log parse operation binding the contract event 0x483180a024351f3ea4c4782eaadb34add715974648a3d47bbff4a7b76da20859. // -// Solidity: event ChannelOpenConfirm(string indexed portId, string indexed channelId, string indexed counterpartyPortId, string counterpartyChannelId, string connectionId) -func (_RelayerModule *RelayerModuleFilterer) ParseChannelOpenConfirm(log types.Log) (*RelayerModuleChannelOpenConfirm, error) { - event := new(RelayerModuleChannelOpenConfirm) - if err := _RelayerModule.contract.UnpackLog(event, "ChannelOpenConfirm", log); err != nil { +// Solidity: event DenominationTrace(string indexed denom) +func (_RelayerModule *RelayerModuleFilterer) ParseDenominationTrace(log types.Log) (*RelayerModuleDenominationTrace, error) { + event := new(RelayerModuleDenominationTrace) + if err := _RelayerModule.contract.UnpackLog(event, "DenominationTrace", log); err != nil { return nil, err } event.Raw = log return event, nil } -// RelayerModuleChannelOpenInitIterator is returned from FilterChannelOpenInit and is used to iterate over the raw logs and unpacked data for ChannelOpenInit events raised by the RelayerModule contract. -type RelayerModuleChannelOpenInitIterator struct { - Event *RelayerModuleChannelOpenInit // Event containing the contract specifics and raw log +// RelayerModuleDistributeFeeIterator is returned from FilterDistributeFee and is used to iterate over the raw logs and unpacked data for DistributeFee events raised by the RelayerModule contract. +type RelayerModuleDistributeFeeIterator struct { + Event *RelayerModuleDistributeFee // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -1307,7 +1230,7 @@ type RelayerModuleChannelOpenInitIterator struct { // 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. -func (it *RelayerModuleChannelOpenInitIterator) Next() bool { +func (it *RelayerModuleDistributeFeeIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -1316,7 +1239,7 @@ func (it *RelayerModuleChannelOpenInitIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(RelayerModuleChannelOpenInit) + it.Event = new(RelayerModuleDistributeFee) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -1331,7 +1254,7 @@ func (it *RelayerModuleChannelOpenInitIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(RelayerModuleChannelOpenInit) + it.Event = new(RelayerModuleDistributeFee) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -1347,1771 +1270,57 @@ func (it *RelayerModuleChannelOpenInitIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *RelayerModuleChannelOpenInitIterator) Error() error { +func (it *RelayerModuleDistributeFeeIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *RelayerModuleChannelOpenInitIterator) Close() error { +func (it *RelayerModuleDistributeFeeIterator) Close() error { it.sub.Unsubscribe() return nil } -// RelayerModuleChannelOpenInit represents a ChannelOpenInit event raised by the RelayerModule contract. -type RelayerModuleChannelOpenInit struct { - PortId common.Hash - ChannelId common.Hash - CounterpartyPortId common.Hash - CounterpartyChannelId string - ConnectionId string - Version string - Raw types.Log // Blockchain specific contextual infos +// RelayerModuleDistributeFee represents a DistributeFee event raised by the RelayerModule contract. +type RelayerModuleDistributeFee struct { + Receiver common.Address + Fee common.Hash + Raw types.Log // Blockchain specific contextual infos } -// FilterChannelOpenInit is a free log retrieval operation binding the contract event 0xf80048ae930ff368af371496b4e42c025aabac6437dc6cac31865d3c7af74500. +// FilterDistributeFee is a free log retrieval operation binding the contract event 0x67e2bceb7881996b4bbddf9ab5d5c9bceb0ace3a06538b5e40be96094c4c9a72. // -// Solidity: event ChannelOpenInit(string indexed portId, string indexed channelId, string indexed counterpartyPortId, string counterpartyChannelId, string connectionId, string version) -func (_RelayerModule *RelayerModuleFilterer) FilterChannelOpenInit(opts *bind.FilterOpts, portId []string, channelId []string, counterpartyPortId []string) (*RelayerModuleChannelOpenInitIterator, error) { +// Solidity: event DistributeFee(address indexed receiver, string indexed fee) +func (_RelayerModule *RelayerModuleFilterer) FilterDistributeFee(opts *bind.FilterOpts, receiver []common.Address, fee []string) (*RelayerModuleDistributeFeeIterator, error) { - var portIdRule []interface{} - for _, portIdItem := range portId { - portIdRule = append(portIdRule, portIdItem) - } - var channelIdRule []interface{} - for _, channelIdItem := range channelId { - channelIdRule = append(channelIdRule, channelIdItem) + var receiverRule []interface{} + for _, receiverItem := range receiver { + receiverRule = append(receiverRule, receiverItem) } - var counterpartyPortIdRule []interface{} - for _, counterpartyPortIdItem := range counterpartyPortId { - counterpartyPortIdRule = append(counterpartyPortIdRule, counterpartyPortIdItem) + var feeRule []interface{} + for _, feeItem := range fee { + feeRule = append(feeRule, feeItem) } - logs, sub, err := _RelayerModule.contract.FilterLogs(opts, "ChannelOpenInit", portIdRule, channelIdRule, counterpartyPortIdRule) + logs, sub, err := _RelayerModule.contract.FilterLogs(opts, "DistributeFee", receiverRule, feeRule) if err != nil { return nil, err } - return &RelayerModuleChannelOpenInitIterator{contract: _RelayerModule.contract, event: "ChannelOpenInit", logs: logs, sub: sub}, nil + return &RelayerModuleDistributeFeeIterator{contract: _RelayerModule.contract, event: "DistributeFee", logs: logs, sub: sub}, nil } -// WatchChannelOpenInit is a free log subscription operation binding the contract event 0xf80048ae930ff368af371496b4e42c025aabac6437dc6cac31865d3c7af74500. +// WatchDistributeFee is a free log subscription operation binding the contract event 0x67e2bceb7881996b4bbddf9ab5d5c9bceb0ace3a06538b5e40be96094c4c9a72. // -// Solidity: event ChannelOpenInit(string indexed portId, string indexed channelId, string indexed counterpartyPortId, string counterpartyChannelId, string connectionId, string version) -func (_RelayerModule *RelayerModuleFilterer) WatchChannelOpenInit(opts *bind.WatchOpts, sink chan<- *RelayerModuleChannelOpenInit, portId []string, channelId []string, counterpartyPortId []string) (event.Subscription, error) { +// Solidity: event DistributeFee(address indexed receiver, string indexed fee) +func (_RelayerModule *RelayerModuleFilterer) WatchDistributeFee(opts *bind.WatchOpts, sink chan<- *RelayerModuleDistributeFee, receiver []common.Address, fee []string) (event.Subscription, error) { - var portIdRule []interface{} - for _, portIdItem := range portId { - portIdRule = append(portIdRule, portIdItem) + var receiverRule []interface{} + for _, receiverItem := range receiver { + receiverRule = append(receiverRule, receiverItem) } - var channelIdRule []interface{} - for _, channelIdItem := range channelId { - channelIdRule = append(channelIdRule, channelIdItem) - } - var counterpartyPortIdRule []interface{} - for _, counterpartyPortIdItem := range counterpartyPortId { - counterpartyPortIdRule = append(counterpartyPortIdRule, counterpartyPortIdItem) - } - - logs, sub, err := _RelayerModule.contract.WatchLogs(opts, "ChannelOpenInit", portIdRule, channelIdRule, counterpartyPortIdRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(RelayerModuleChannelOpenInit) - if err := _RelayerModule.contract.UnpackLog(event, "ChannelOpenInit", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseChannelOpenInit is a log parse operation binding the contract event 0xf80048ae930ff368af371496b4e42c025aabac6437dc6cac31865d3c7af74500. -// -// Solidity: event ChannelOpenInit(string indexed portId, string indexed channelId, string indexed counterpartyPortId, string counterpartyChannelId, string connectionId, string version) -func (_RelayerModule *RelayerModuleFilterer) ParseChannelOpenInit(log types.Log) (*RelayerModuleChannelOpenInit, error) { - event := new(RelayerModuleChannelOpenInit) - if err := _RelayerModule.contract.UnpackLog(event, "ChannelOpenInit", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// RelayerModuleChannelOpenTryIterator is returned from FilterChannelOpenTry and is used to iterate over the raw logs and unpacked data for ChannelOpenTry events raised by the RelayerModule contract. -type RelayerModuleChannelOpenTryIterator struct { - Event *RelayerModuleChannelOpenTry // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// 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. -func (it *RelayerModuleChannelOpenTryIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(RelayerModuleChannelOpenTry) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(RelayerModuleChannelOpenTry) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *RelayerModuleChannelOpenTryIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *RelayerModuleChannelOpenTryIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// RelayerModuleChannelOpenTry represents a ChannelOpenTry event raised by the RelayerModule contract. -type RelayerModuleChannelOpenTry struct { - PortId common.Hash - ChannelId common.Hash - CounterpartyPortId common.Hash - CounterpartyChannelId string - ConnectionId string - Version string - Raw types.Log // Blockchain specific contextual infos -} - -// FilterChannelOpenTry is a free log retrieval operation binding the contract event 0x9c5a76e8bddb2e5c238e35b7ce7a850ad22a776479bfc8b4af5e88e073fa9c70. -// -// Solidity: event ChannelOpenTry(string indexed portId, string indexed channelId, string indexed counterpartyPortId, string counterpartyChannelId, string connectionId, string version) -func (_RelayerModule *RelayerModuleFilterer) FilterChannelOpenTry(opts *bind.FilterOpts, portId []string, channelId []string, counterpartyPortId []string) (*RelayerModuleChannelOpenTryIterator, error) { - - var portIdRule []interface{} - for _, portIdItem := range portId { - portIdRule = append(portIdRule, portIdItem) - } - var channelIdRule []interface{} - for _, channelIdItem := range channelId { - channelIdRule = append(channelIdRule, channelIdItem) - } - var counterpartyPortIdRule []interface{} - for _, counterpartyPortIdItem := range counterpartyPortId { - counterpartyPortIdRule = append(counterpartyPortIdRule, counterpartyPortIdItem) - } - - logs, sub, err := _RelayerModule.contract.FilterLogs(opts, "ChannelOpenTry", portIdRule, channelIdRule, counterpartyPortIdRule) - if err != nil { - return nil, err - } - return &RelayerModuleChannelOpenTryIterator{contract: _RelayerModule.contract, event: "ChannelOpenTry", logs: logs, sub: sub}, nil -} - -// WatchChannelOpenTry is a free log subscription operation binding the contract event 0x9c5a76e8bddb2e5c238e35b7ce7a850ad22a776479bfc8b4af5e88e073fa9c70. -// -// Solidity: event ChannelOpenTry(string indexed portId, string indexed channelId, string indexed counterpartyPortId, string counterpartyChannelId, string connectionId, string version) -func (_RelayerModule *RelayerModuleFilterer) WatchChannelOpenTry(opts *bind.WatchOpts, sink chan<- *RelayerModuleChannelOpenTry, portId []string, channelId []string, counterpartyPortId []string) (event.Subscription, error) { - - var portIdRule []interface{} - for _, portIdItem := range portId { - portIdRule = append(portIdRule, portIdItem) - } - var channelIdRule []interface{} - for _, channelIdItem := range channelId { - channelIdRule = append(channelIdRule, channelIdItem) - } - var counterpartyPortIdRule []interface{} - for _, counterpartyPortIdItem := range counterpartyPortId { - counterpartyPortIdRule = append(counterpartyPortIdRule, counterpartyPortIdItem) - } - - logs, sub, err := _RelayerModule.contract.WatchLogs(opts, "ChannelOpenTry", portIdRule, channelIdRule, counterpartyPortIdRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(RelayerModuleChannelOpenTry) - if err := _RelayerModule.contract.UnpackLog(event, "ChannelOpenTry", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseChannelOpenTry is a log parse operation binding the contract event 0x9c5a76e8bddb2e5c238e35b7ce7a850ad22a776479bfc8b4af5e88e073fa9c70. -// -// Solidity: event ChannelOpenTry(string indexed portId, string indexed channelId, string indexed counterpartyPortId, string counterpartyChannelId, string connectionId, string version) -func (_RelayerModule *RelayerModuleFilterer) ParseChannelOpenTry(log types.Log) (*RelayerModuleChannelOpenTry, error) { - event := new(RelayerModuleChannelOpenTry) - if err := _RelayerModule.contract.UnpackLog(event, "ChannelOpenTry", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// RelayerModuleCoinReceivedIterator is returned from FilterCoinReceived and is used to iterate over the raw logs and unpacked data for CoinReceived events raised by the RelayerModule contract. -type RelayerModuleCoinReceivedIterator struct { - Event *RelayerModuleCoinReceived // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// 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. -func (it *RelayerModuleCoinReceivedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(RelayerModuleCoinReceived) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(RelayerModuleCoinReceived) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *RelayerModuleCoinReceivedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *RelayerModuleCoinReceivedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// RelayerModuleCoinReceived represents a CoinReceived event raised by the RelayerModule contract. -type RelayerModuleCoinReceived struct { - Receiver common.Address - Amount []CosmosCoin - Raw types.Log // Blockchain specific contextual infos -} - -// FilterCoinReceived is a free log retrieval operation binding the contract event 0x13f9c352919df1623a08e6d6d9eac5f774573896f09916d8fbc5d083095fc3b4. -// -// Solidity: event CoinReceived(address indexed receiver, (uint256,string)[] amount) -func (_RelayerModule *RelayerModuleFilterer) FilterCoinReceived(opts *bind.FilterOpts, receiver []common.Address) (*RelayerModuleCoinReceivedIterator, error) { - - var receiverRule []interface{} - for _, receiverItem := range receiver { - receiverRule = append(receiverRule, receiverItem) - } - - logs, sub, err := _RelayerModule.contract.FilterLogs(opts, "CoinReceived", receiverRule) - if err != nil { - return nil, err - } - return &RelayerModuleCoinReceivedIterator{contract: _RelayerModule.contract, event: "CoinReceived", logs: logs, sub: sub}, nil -} - -// WatchCoinReceived is a free log subscription operation binding the contract event 0x13f9c352919df1623a08e6d6d9eac5f774573896f09916d8fbc5d083095fc3b4. -// -// Solidity: event CoinReceived(address indexed receiver, (uint256,string)[] amount) -func (_RelayerModule *RelayerModuleFilterer) WatchCoinReceived(opts *bind.WatchOpts, sink chan<- *RelayerModuleCoinReceived, receiver []common.Address) (event.Subscription, error) { - - var receiverRule []interface{} - for _, receiverItem := range receiver { - receiverRule = append(receiverRule, receiverItem) - } - - logs, sub, err := _RelayerModule.contract.WatchLogs(opts, "CoinReceived", receiverRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(RelayerModuleCoinReceived) - if err := _RelayerModule.contract.UnpackLog(event, "CoinReceived", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseCoinReceived is a log parse operation binding the contract event 0x13f9c352919df1623a08e6d6d9eac5f774573896f09916d8fbc5d083095fc3b4. -// -// Solidity: event CoinReceived(address indexed receiver, (uint256,string)[] amount) -func (_RelayerModule *RelayerModuleFilterer) ParseCoinReceived(log types.Log) (*RelayerModuleCoinReceived, error) { - event := new(RelayerModuleCoinReceived) - if err := _RelayerModule.contract.UnpackLog(event, "CoinReceived", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// RelayerModuleCoinSpentIterator is returned from FilterCoinSpent and is used to iterate over the raw logs and unpacked data for CoinSpent events raised by the RelayerModule contract. -type RelayerModuleCoinSpentIterator struct { - Event *RelayerModuleCoinSpent // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// 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. -func (it *RelayerModuleCoinSpentIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(RelayerModuleCoinSpent) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(RelayerModuleCoinSpent) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *RelayerModuleCoinSpentIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *RelayerModuleCoinSpentIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// RelayerModuleCoinSpent represents a CoinSpent event raised by the RelayerModule contract. -type RelayerModuleCoinSpent struct { - Spender common.Address - Amount []CosmosCoin - Raw types.Log // Blockchain specific contextual infos -} - -// FilterCoinSpent is a free log retrieval operation binding the contract event 0x8b8b22fea5b121b174e6cfea34ddaf187b66b43dab67679fa291a0fae2427a99. -// -// Solidity: event CoinSpent(address indexed spender, (uint256,string)[] amount) -func (_RelayerModule *RelayerModuleFilterer) FilterCoinSpent(opts *bind.FilterOpts, spender []common.Address) (*RelayerModuleCoinSpentIterator, error) { - - var spenderRule []interface{} - for _, spenderItem := range spender { - spenderRule = append(spenderRule, spenderItem) - } - - logs, sub, err := _RelayerModule.contract.FilterLogs(opts, "CoinSpent", spenderRule) - if err != nil { - return nil, err - } - return &RelayerModuleCoinSpentIterator{contract: _RelayerModule.contract, event: "CoinSpent", logs: logs, sub: sub}, nil -} - -// WatchCoinSpent is a free log subscription operation binding the contract event 0x8b8b22fea5b121b174e6cfea34ddaf187b66b43dab67679fa291a0fae2427a99. -// -// Solidity: event CoinSpent(address indexed spender, (uint256,string)[] amount) -func (_RelayerModule *RelayerModuleFilterer) WatchCoinSpent(opts *bind.WatchOpts, sink chan<- *RelayerModuleCoinSpent, spender []common.Address) (event.Subscription, error) { - - var spenderRule []interface{} - for _, spenderItem := range spender { - spenderRule = append(spenderRule, spenderItem) - } - - logs, sub, err := _RelayerModule.contract.WatchLogs(opts, "CoinSpent", spenderRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(RelayerModuleCoinSpent) - if err := _RelayerModule.contract.UnpackLog(event, "CoinSpent", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseCoinSpent is a log parse operation binding the contract event 0x8b8b22fea5b121b174e6cfea34ddaf187b66b43dab67679fa291a0fae2427a99. -// -// Solidity: event CoinSpent(address indexed spender, (uint256,string)[] amount) -func (_RelayerModule *RelayerModuleFilterer) ParseCoinSpent(log types.Log) (*RelayerModuleCoinSpent, error) { - event := new(RelayerModuleCoinSpent) - if err := _RelayerModule.contract.UnpackLog(event, "CoinSpent", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// RelayerModuleCoinbaseIterator is returned from FilterCoinbase and is used to iterate over the raw logs and unpacked data for Coinbase events raised by the RelayerModule contract. -type RelayerModuleCoinbaseIterator struct { - Event *RelayerModuleCoinbase // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// 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. -func (it *RelayerModuleCoinbaseIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(RelayerModuleCoinbase) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(RelayerModuleCoinbase) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *RelayerModuleCoinbaseIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *RelayerModuleCoinbaseIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// RelayerModuleCoinbase represents a Coinbase event raised by the RelayerModule contract. -type RelayerModuleCoinbase struct { - Minter common.Address - Amount []CosmosCoin - Raw types.Log // Blockchain specific contextual infos -} - -// FilterCoinbase is a free log retrieval operation binding the contract event 0xefb3f1f2a9af64b5fcc2da3c5a088d780585c674b8075fe2a1ba6b0d906cbe9f. -// -// Solidity: event Coinbase(address indexed minter, (uint256,string)[] amount) -func (_RelayerModule *RelayerModuleFilterer) FilterCoinbase(opts *bind.FilterOpts, minter []common.Address) (*RelayerModuleCoinbaseIterator, error) { - - var minterRule []interface{} - for _, minterItem := range minter { - minterRule = append(minterRule, minterItem) - } - - logs, sub, err := _RelayerModule.contract.FilterLogs(opts, "Coinbase", minterRule) - if err != nil { - return nil, err - } - return &RelayerModuleCoinbaseIterator{contract: _RelayerModule.contract, event: "Coinbase", logs: logs, sub: sub}, nil -} - -// WatchCoinbase is a free log subscription operation binding the contract event 0xefb3f1f2a9af64b5fcc2da3c5a088d780585c674b8075fe2a1ba6b0d906cbe9f. -// -// Solidity: event Coinbase(address indexed minter, (uint256,string)[] amount) -func (_RelayerModule *RelayerModuleFilterer) WatchCoinbase(opts *bind.WatchOpts, sink chan<- *RelayerModuleCoinbase, minter []common.Address) (event.Subscription, error) { - - var minterRule []interface{} - for _, minterItem := range minter { - minterRule = append(minterRule, minterItem) - } - - logs, sub, err := _RelayerModule.contract.WatchLogs(opts, "Coinbase", minterRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(RelayerModuleCoinbase) - if err := _RelayerModule.contract.UnpackLog(event, "Coinbase", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseCoinbase is a log parse operation binding the contract event 0xefb3f1f2a9af64b5fcc2da3c5a088d780585c674b8075fe2a1ba6b0d906cbe9f. -// -// Solidity: event Coinbase(address indexed minter, (uint256,string)[] amount) -func (_RelayerModule *RelayerModuleFilterer) ParseCoinbase(log types.Log) (*RelayerModuleCoinbase, error) { - event := new(RelayerModuleCoinbase) - if err := _RelayerModule.contract.UnpackLog(event, "Coinbase", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// RelayerModuleConnectionOpenAckIterator is returned from FilterConnectionOpenAck and is used to iterate over the raw logs and unpacked data for ConnectionOpenAck events raised by the RelayerModule contract. -type RelayerModuleConnectionOpenAckIterator struct { - Event *RelayerModuleConnectionOpenAck // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// 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. -func (it *RelayerModuleConnectionOpenAckIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(RelayerModuleConnectionOpenAck) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(RelayerModuleConnectionOpenAck) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *RelayerModuleConnectionOpenAckIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *RelayerModuleConnectionOpenAckIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// RelayerModuleConnectionOpenAck represents a ConnectionOpenAck event raised by the RelayerModule contract. -type RelayerModuleConnectionOpenAck struct { - ConnectionId common.Hash - ClientId common.Hash - CounterpartyClientId common.Hash - CounterpartyConnectionId string - Raw types.Log // Blockchain specific contextual infos -} - -// FilterConnectionOpenAck is a free log retrieval operation binding the contract event 0xe7615b4ebffcb930061f901cc07ee67b4d32c8f9052141eb8bce2dec3f577fe1. -// -// Solidity: event ConnectionOpenAck(string indexed connectionId, string indexed clientId, string indexed counterpartyClientId, string counterpartyConnectionId) -func (_RelayerModule *RelayerModuleFilterer) FilterConnectionOpenAck(opts *bind.FilterOpts, connectionId []string, clientId []string, counterpartyClientId []string) (*RelayerModuleConnectionOpenAckIterator, error) { - - var connectionIdRule []interface{} - for _, connectionIdItem := range connectionId { - connectionIdRule = append(connectionIdRule, connectionIdItem) - } - var clientIdRule []interface{} - for _, clientIdItem := range clientId { - clientIdRule = append(clientIdRule, clientIdItem) - } - var counterpartyClientIdRule []interface{} - for _, counterpartyClientIdItem := range counterpartyClientId { - counterpartyClientIdRule = append(counterpartyClientIdRule, counterpartyClientIdItem) - } - - logs, sub, err := _RelayerModule.contract.FilterLogs(opts, "ConnectionOpenAck", connectionIdRule, clientIdRule, counterpartyClientIdRule) - if err != nil { - return nil, err - } - return &RelayerModuleConnectionOpenAckIterator{contract: _RelayerModule.contract, event: "ConnectionOpenAck", logs: logs, sub: sub}, nil -} - -// WatchConnectionOpenAck is a free log subscription operation binding the contract event 0xe7615b4ebffcb930061f901cc07ee67b4d32c8f9052141eb8bce2dec3f577fe1. -// -// Solidity: event ConnectionOpenAck(string indexed connectionId, string indexed clientId, string indexed counterpartyClientId, string counterpartyConnectionId) -func (_RelayerModule *RelayerModuleFilterer) WatchConnectionOpenAck(opts *bind.WatchOpts, sink chan<- *RelayerModuleConnectionOpenAck, connectionId []string, clientId []string, counterpartyClientId []string) (event.Subscription, error) { - - var connectionIdRule []interface{} - for _, connectionIdItem := range connectionId { - connectionIdRule = append(connectionIdRule, connectionIdItem) - } - var clientIdRule []interface{} - for _, clientIdItem := range clientId { - clientIdRule = append(clientIdRule, clientIdItem) - } - var counterpartyClientIdRule []interface{} - for _, counterpartyClientIdItem := range counterpartyClientId { - counterpartyClientIdRule = append(counterpartyClientIdRule, counterpartyClientIdItem) - } - - logs, sub, err := _RelayerModule.contract.WatchLogs(opts, "ConnectionOpenAck", connectionIdRule, clientIdRule, counterpartyClientIdRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(RelayerModuleConnectionOpenAck) - if err := _RelayerModule.contract.UnpackLog(event, "ConnectionOpenAck", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseConnectionOpenAck is a log parse operation binding the contract event 0xe7615b4ebffcb930061f901cc07ee67b4d32c8f9052141eb8bce2dec3f577fe1. -// -// Solidity: event ConnectionOpenAck(string indexed connectionId, string indexed clientId, string indexed counterpartyClientId, string counterpartyConnectionId) -func (_RelayerModule *RelayerModuleFilterer) ParseConnectionOpenAck(log types.Log) (*RelayerModuleConnectionOpenAck, error) { - event := new(RelayerModuleConnectionOpenAck) - if err := _RelayerModule.contract.UnpackLog(event, "ConnectionOpenAck", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// RelayerModuleConnectionOpenConfirmIterator is returned from FilterConnectionOpenConfirm and is used to iterate over the raw logs and unpacked data for ConnectionOpenConfirm events raised by the RelayerModule contract. -type RelayerModuleConnectionOpenConfirmIterator struct { - Event *RelayerModuleConnectionOpenConfirm // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// 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. -func (it *RelayerModuleConnectionOpenConfirmIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(RelayerModuleConnectionOpenConfirm) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(RelayerModuleConnectionOpenConfirm) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *RelayerModuleConnectionOpenConfirmIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *RelayerModuleConnectionOpenConfirmIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// RelayerModuleConnectionOpenConfirm represents a ConnectionOpenConfirm event raised by the RelayerModule contract. -type RelayerModuleConnectionOpenConfirm struct { - ConnectionId common.Hash - ClientId common.Hash - CounterpartyClientId common.Hash - CounterpartyConnectionId string - Raw types.Log // Blockchain specific contextual infos -} - -// FilterConnectionOpenConfirm is a free log retrieval operation binding the contract event 0x063c0e9664347d8013d3575d502050fd936d3b51035f056696a639523feaed6d. -// -// Solidity: event ConnectionOpenConfirm(string indexed connectionId, string indexed clientId, string indexed counterpartyClientId, string counterpartyConnectionId) -func (_RelayerModule *RelayerModuleFilterer) FilterConnectionOpenConfirm(opts *bind.FilterOpts, connectionId []string, clientId []string, counterpartyClientId []string) (*RelayerModuleConnectionOpenConfirmIterator, error) { - - var connectionIdRule []interface{} - for _, connectionIdItem := range connectionId { - connectionIdRule = append(connectionIdRule, connectionIdItem) - } - var clientIdRule []interface{} - for _, clientIdItem := range clientId { - clientIdRule = append(clientIdRule, clientIdItem) - } - var counterpartyClientIdRule []interface{} - for _, counterpartyClientIdItem := range counterpartyClientId { - counterpartyClientIdRule = append(counterpartyClientIdRule, counterpartyClientIdItem) - } - - logs, sub, err := _RelayerModule.contract.FilterLogs(opts, "ConnectionOpenConfirm", connectionIdRule, clientIdRule, counterpartyClientIdRule) - if err != nil { - return nil, err - } - return &RelayerModuleConnectionOpenConfirmIterator{contract: _RelayerModule.contract, event: "ConnectionOpenConfirm", logs: logs, sub: sub}, nil -} - -// WatchConnectionOpenConfirm is a free log subscription operation binding the contract event 0x063c0e9664347d8013d3575d502050fd936d3b51035f056696a639523feaed6d. -// -// Solidity: event ConnectionOpenConfirm(string indexed connectionId, string indexed clientId, string indexed counterpartyClientId, string counterpartyConnectionId) -func (_RelayerModule *RelayerModuleFilterer) WatchConnectionOpenConfirm(opts *bind.WatchOpts, sink chan<- *RelayerModuleConnectionOpenConfirm, connectionId []string, clientId []string, counterpartyClientId []string) (event.Subscription, error) { - - var connectionIdRule []interface{} - for _, connectionIdItem := range connectionId { - connectionIdRule = append(connectionIdRule, connectionIdItem) - } - var clientIdRule []interface{} - for _, clientIdItem := range clientId { - clientIdRule = append(clientIdRule, clientIdItem) - } - var counterpartyClientIdRule []interface{} - for _, counterpartyClientIdItem := range counterpartyClientId { - counterpartyClientIdRule = append(counterpartyClientIdRule, counterpartyClientIdItem) - } - - logs, sub, err := _RelayerModule.contract.WatchLogs(opts, "ConnectionOpenConfirm", connectionIdRule, clientIdRule, counterpartyClientIdRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(RelayerModuleConnectionOpenConfirm) - if err := _RelayerModule.contract.UnpackLog(event, "ConnectionOpenConfirm", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseConnectionOpenConfirm is a log parse operation binding the contract event 0x063c0e9664347d8013d3575d502050fd936d3b51035f056696a639523feaed6d. -// -// Solidity: event ConnectionOpenConfirm(string indexed connectionId, string indexed clientId, string indexed counterpartyClientId, string counterpartyConnectionId) -func (_RelayerModule *RelayerModuleFilterer) ParseConnectionOpenConfirm(log types.Log) (*RelayerModuleConnectionOpenConfirm, error) { - event := new(RelayerModuleConnectionOpenConfirm) - if err := _RelayerModule.contract.UnpackLog(event, "ConnectionOpenConfirm", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// RelayerModuleConnectionOpenInitIterator is returned from FilterConnectionOpenInit and is used to iterate over the raw logs and unpacked data for ConnectionOpenInit events raised by the RelayerModule contract. -type RelayerModuleConnectionOpenInitIterator struct { - Event *RelayerModuleConnectionOpenInit // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// 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. -func (it *RelayerModuleConnectionOpenInitIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(RelayerModuleConnectionOpenInit) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(RelayerModuleConnectionOpenInit) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *RelayerModuleConnectionOpenInitIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *RelayerModuleConnectionOpenInitIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// RelayerModuleConnectionOpenInit represents a ConnectionOpenInit event raised by the RelayerModule contract. -type RelayerModuleConnectionOpenInit struct { - ConnectionId common.Hash - ClientId common.Hash - CounterpartyClientId common.Hash - CounterpartyConnectionId string - Raw types.Log // Blockchain specific contextual infos -} - -// FilterConnectionOpenInit is a free log retrieval operation binding the contract event 0x77fdc802b8b6331cb2c8d6bd52b9872dd22a59d21350263d1bf00b702a48f6e9. -// -// Solidity: event ConnectionOpenInit(string indexed connectionId, string indexed clientId, string indexed counterpartyClientId, string counterpartyConnectionId) -func (_RelayerModule *RelayerModuleFilterer) FilterConnectionOpenInit(opts *bind.FilterOpts, connectionId []string, clientId []string, counterpartyClientId []string) (*RelayerModuleConnectionOpenInitIterator, error) { - - var connectionIdRule []interface{} - for _, connectionIdItem := range connectionId { - connectionIdRule = append(connectionIdRule, connectionIdItem) - } - var clientIdRule []interface{} - for _, clientIdItem := range clientId { - clientIdRule = append(clientIdRule, clientIdItem) - } - var counterpartyClientIdRule []interface{} - for _, counterpartyClientIdItem := range counterpartyClientId { - counterpartyClientIdRule = append(counterpartyClientIdRule, counterpartyClientIdItem) - } - - logs, sub, err := _RelayerModule.contract.FilterLogs(opts, "ConnectionOpenInit", connectionIdRule, clientIdRule, counterpartyClientIdRule) - if err != nil { - return nil, err - } - return &RelayerModuleConnectionOpenInitIterator{contract: _RelayerModule.contract, event: "ConnectionOpenInit", logs: logs, sub: sub}, nil -} - -// WatchConnectionOpenInit is a free log subscription operation binding the contract event 0x77fdc802b8b6331cb2c8d6bd52b9872dd22a59d21350263d1bf00b702a48f6e9. -// -// Solidity: event ConnectionOpenInit(string indexed connectionId, string indexed clientId, string indexed counterpartyClientId, string counterpartyConnectionId) -func (_RelayerModule *RelayerModuleFilterer) WatchConnectionOpenInit(opts *bind.WatchOpts, sink chan<- *RelayerModuleConnectionOpenInit, connectionId []string, clientId []string, counterpartyClientId []string) (event.Subscription, error) { - - var connectionIdRule []interface{} - for _, connectionIdItem := range connectionId { - connectionIdRule = append(connectionIdRule, connectionIdItem) - } - var clientIdRule []interface{} - for _, clientIdItem := range clientId { - clientIdRule = append(clientIdRule, clientIdItem) - } - var counterpartyClientIdRule []interface{} - for _, counterpartyClientIdItem := range counterpartyClientId { - counterpartyClientIdRule = append(counterpartyClientIdRule, counterpartyClientIdItem) - } - - logs, sub, err := _RelayerModule.contract.WatchLogs(opts, "ConnectionOpenInit", connectionIdRule, clientIdRule, counterpartyClientIdRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(RelayerModuleConnectionOpenInit) - if err := _RelayerModule.contract.UnpackLog(event, "ConnectionOpenInit", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseConnectionOpenInit is a log parse operation binding the contract event 0x77fdc802b8b6331cb2c8d6bd52b9872dd22a59d21350263d1bf00b702a48f6e9. -// -// Solidity: event ConnectionOpenInit(string indexed connectionId, string indexed clientId, string indexed counterpartyClientId, string counterpartyConnectionId) -func (_RelayerModule *RelayerModuleFilterer) ParseConnectionOpenInit(log types.Log) (*RelayerModuleConnectionOpenInit, error) { - event := new(RelayerModuleConnectionOpenInit) - if err := _RelayerModule.contract.UnpackLog(event, "ConnectionOpenInit", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// RelayerModuleConnectionOpenTryIterator is returned from FilterConnectionOpenTry and is used to iterate over the raw logs and unpacked data for ConnectionOpenTry events raised by the RelayerModule contract. -type RelayerModuleConnectionOpenTryIterator struct { - Event *RelayerModuleConnectionOpenTry // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// 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. -func (it *RelayerModuleConnectionOpenTryIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(RelayerModuleConnectionOpenTry) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(RelayerModuleConnectionOpenTry) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *RelayerModuleConnectionOpenTryIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *RelayerModuleConnectionOpenTryIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// RelayerModuleConnectionOpenTry represents a ConnectionOpenTry event raised by the RelayerModule contract. -type RelayerModuleConnectionOpenTry struct { - ConnectionId common.Hash - ClientId common.Hash - CounterpartyClientId common.Hash - CounterpartyConnectionId string - Raw types.Log // Blockchain specific contextual infos -} - -// FilterConnectionOpenTry is a free log retrieval operation binding the contract event 0xa616a9aa2c65e935abbd15b07a9b5ff6c9c48b06b460a39b0b8cfda2a985869f. -// -// Solidity: event ConnectionOpenTry(string indexed connectionId, string indexed clientId, string indexed counterpartyClientId, string counterpartyConnectionId) -func (_RelayerModule *RelayerModuleFilterer) FilterConnectionOpenTry(opts *bind.FilterOpts, connectionId []string, clientId []string, counterpartyClientId []string) (*RelayerModuleConnectionOpenTryIterator, error) { - - var connectionIdRule []interface{} - for _, connectionIdItem := range connectionId { - connectionIdRule = append(connectionIdRule, connectionIdItem) - } - var clientIdRule []interface{} - for _, clientIdItem := range clientId { - clientIdRule = append(clientIdRule, clientIdItem) - } - var counterpartyClientIdRule []interface{} - for _, counterpartyClientIdItem := range counterpartyClientId { - counterpartyClientIdRule = append(counterpartyClientIdRule, counterpartyClientIdItem) - } - - logs, sub, err := _RelayerModule.contract.FilterLogs(opts, "ConnectionOpenTry", connectionIdRule, clientIdRule, counterpartyClientIdRule) - if err != nil { - return nil, err - } - return &RelayerModuleConnectionOpenTryIterator{contract: _RelayerModule.contract, event: "ConnectionOpenTry", logs: logs, sub: sub}, nil -} - -// WatchConnectionOpenTry is a free log subscription operation binding the contract event 0xa616a9aa2c65e935abbd15b07a9b5ff6c9c48b06b460a39b0b8cfda2a985869f. -// -// Solidity: event ConnectionOpenTry(string indexed connectionId, string indexed clientId, string indexed counterpartyClientId, string counterpartyConnectionId) -func (_RelayerModule *RelayerModuleFilterer) WatchConnectionOpenTry(opts *bind.WatchOpts, sink chan<- *RelayerModuleConnectionOpenTry, connectionId []string, clientId []string, counterpartyClientId []string) (event.Subscription, error) { - - var connectionIdRule []interface{} - for _, connectionIdItem := range connectionId { - connectionIdRule = append(connectionIdRule, connectionIdItem) - } - var clientIdRule []interface{} - for _, clientIdItem := range clientId { - clientIdRule = append(clientIdRule, clientIdItem) - } - var counterpartyClientIdRule []interface{} - for _, counterpartyClientIdItem := range counterpartyClientId { - counterpartyClientIdRule = append(counterpartyClientIdRule, counterpartyClientIdItem) - } - - logs, sub, err := _RelayerModule.contract.WatchLogs(opts, "ConnectionOpenTry", connectionIdRule, clientIdRule, counterpartyClientIdRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(RelayerModuleConnectionOpenTry) - if err := _RelayerModule.contract.UnpackLog(event, "ConnectionOpenTry", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseConnectionOpenTry is a log parse operation binding the contract event 0xa616a9aa2c65e935abbd15b07a9b5ff6c9c48b06b460a39b0b8cfda2a985869f. -// -// Solidity: event ConnectionOpenTry(string indexed connectionId, string indexed clientId, string indexed counterpartyClientId, string counterpartyConnectionId) -func (_RelayerModule *RelayerModuleFilterer) ParseConnectionOpenTry(log types.Log) (*RelayerModuleConnectionOpenTry, error) { - event := new(RelayerModuleConnectionOpenTry) - if err := _RelayerModule.contract.UnpackLog(event, "ConnectionOpenTry", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// RelayerModuleCreateClientIterator is returned from FilterCreateClient and is used to iterate over the raw logs and unpacked data for CreateClient events raised by the RelayerModule contract. -type RelayerModuleCreateClientIterator struct { - Event *RelayerModuleCreateClient // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// 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. -func (it *RelayerModuleCreateClientIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(RelayerModuleCreateClient) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(RelayerModuleCreateClient) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *RelayerModuleCreateClientIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *RelayerModuleCreateClientIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// RelayerModuleCreateClient represents a CreateClient event raised by the RelayerModule contract. -type RelayerModuleCreateClient struct { - ClientId common.Hash - ClientType common.Hash - Raw types.Log // Blockchain specific contextual infos -} - -// FilterCreateClient is a free log retrieval operation binding the contract event 0x99c72989fdc811e2ff3a5265b08f636a887faf5cbc61a014d2ac521a77421e8a. -// -// Solidity: event CreateClient(string indexed clientId, string indexed clientType) -func (_RelayerModule *RelayerModuleFilterer) FilterCreateClient(opts *bind.FilterOpts, clientId []string, clientType []string) (*RelayerModuleCreateClientIterator, error) { - - var clientIdRule []interface{} - for _, clientIdItem := range clientId { - clientIdRule = append(clientIdRule, clientIdItem) - } - var clientTypeRule []interface{} - for _, clientTypeItem := range clientType { - clientTypeRule = append(clientTypeRule, clientTypeItem) - } - - logs, sub, err := _RelayerModule.contract.FilterLogs(opts, "CreateClient", clientIdRule, clientTypeRule) - if err != nil { - return nil, err - } - return &RelayerModuleCreateClientIterator{contract: _RelayerModule.contract, event: "CreateClient", logs: logs, sub: sub}, nil -} - -// WatchCreateClient is a free log subscription operation binding the contract event 0x99c72989fdc811e2ff3a5265b08f636a887faf5cbc61a014d2ac521a77421e8a. -// -// Solidity: event CreateClient(string indexed clientId, string indexed clientType) -func (_RelayerModule *RelayerModuleFilterer) WatchCreateClient(opts *bind.WatchOpts, sink chan<- *RelayerModuleCreateClient, clientId []string, clientType []string) (event.Subscription, error) { - - var clientIdRule []interface{} - for _, clientIdItem := range clientId { - clientIdRule = append(clientIdRule, clientIdItem) - } - var clientTypeRule []interface{} - for _, clientTypeItem := range clientType { - clientTypeRule = append(clientTypeRule, clientTypeItem) - } - - logs, sub, err := _RelayerModule.contract.WatchLogs(opts, "CreateClient", clientIdRule, clientTypeRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(RelayerModuleCreateClient) - if err := _RelayerModule.contract.UnpackLog(event, "CreateClient", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseCreateClient is a log parse operation binding the contract event 0x99c72989fdc811e2ff3a5265b08f636a887faf5cbc61a014d2ac521a77421e8a. -// -// Solidity: event CreateClient(string indexed clientId, string indexed clientType) -func (_RelayerModule *RelayerModuleFilterer) ParseCreateClient(log types.Log) (*RelayerModuleCreateClient, error) { - event := new(RelayerModuleCreateClient) - if err := _RelayerModule.contract.UnpackLog(event, "CreateClient", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// RelayerModuleDenominationTraceIterator is returned from FilterDenominationTrace and is used to iterate over the raw logs and unpacked data for DenominationTrace events raised by the RelayerModule contract. -type RelayerModuleDenominationTraceIterator struct { - Event *RelayerModuleDenominationTrace // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// 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. -func (it *RelayerModuleDenominationTraceIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(RelayerModuleDenominationTrace) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(RelayerModuleDenominationTrace) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *RelayerModuleDenominationTraceIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *RelayerModuleDenominationTraceIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// RelayerModuleDenominationTrace represents a DenominationTrace event raised by the RelayerModule contract. -type RelayerModuleDenominationTrace struct { - Denom common.Hash - Raw types.Log // Blockchain specific contextual infos -} - -// FilterDenominationTrace is a free log retrieval operation binding the contract event 0x483180a024351f3ea4c4782eaadb34add715974648a3d47bbff4a7b76da20859. -// -// Solidity: event DenominationTrace(string indexed denom) -func (_RelayerModule *RelayerModuleFilterer) FilterDenominationTrace(opts *bind.FilterOpts, denom []string) (*RelayerModuleDenominationTraceIterator, error) { - - var denomRule []interface{} - for _, denomItem := range denom { - denomRule = append(denomRule, denomItem) - } - - logs, sub, err := _RelayerModule.contract.FilterLogs(opts, "DenominationTrace", denomRule) - if err != nil { - return nil, err - } - return &RelayerModuleDenominationTraceIterator{contract: _RelayerModule.contract, event: "DenominationTrace", logs: logs, sub: sub}, nil -} - -// WatchDenominationTrace is a free log subscription operation binding the contract event 0x483180a024351f3ea4c4782eaadb34add715974648a3d47bbff4a7b76da20859. -// -// Solidity: event DenominationTrace(string indexed denom) -func (_RelayerModule *RelayerModuleFilterer) WatchDenominationTrace(opts *bind.WatchOpts, sink chan<- *RelayerModuleDenominationTrace, denom []string) (event.Subscription, error) { - - var denomRule []interface{} - for _, denomItem := range denom { - denomRule = append(denomRule, denomItem) - } - - logs, sub, err := _RelayerModule.contract.WatchLogs(opts, "DenominationTrace", denomRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(RelayerModuleDenominationTrace) - if err := _RelayerModule.contract.UnpackLog(event, "DenominationTrace", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseDenominationTrace is a log parse operation binding the contract event 0x483180a024351f3ea4c4782eaadb34add715974648a3d47bbff4a7b76da20859. -// -// Solidity: event DenominationTrace(string indexed denom) -func (_RelayerModule *RelayerModuleFilterer) ParseDenominationTrace(log types.Log) (*RelayerModuleDenominationTrace, error) { - event := new(RelayerModuleDenominationTrace) - if err := _RelayerModule.contract.UnpackLog(event, "DenominationTrace", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// RelayerModuleDistributeFeeIterator is returned from FilterDistributeFee and is used to iterate over the raw logs and unpacked data for DistributeFee events raised by the RelayerModule contract. -type RelayerModuleDistributeFeeIterator struct { - Event *RelayerModuleDistributeFee // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// 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. -func (it *RelayerModuleDistributeFeeIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(RelayerModuleDistributeFee) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(RelayerModuleDistributeFee) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *RelayerModuleDistributeFeeIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *RelayerModuleDistributeFeeIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// RelayerModuleDistributeFee represents a DistributeFee event raised by the RelayerModule contract. -type RelayerModuleDistributeFee struct { - Receiver common.Address - Fee common.Hash - Raw types.Log // Blockchain specific contextual infos -} - -// FilterDistributeFee is a free log retrieval operation binding the contract event 0x67e2bceb7881996b4bbddf9ab5d5c9bceb0ace3a06538b5e40be96094c4c9a72. -// -// Solidity: event DistributeFee(address indexed receiver, string indexed fee) -func (_RelayerModule *RelayerModuleFilterer) FilterDistributeFee(opts *bind.FilterOpts, receiver []common.Address, fee []string) (*RelayerModuleDistributeFeeIterator, error) { - - var receiverRule []interface{} - for _, receiverItem := range receiver { - receiverRule = append(receiverRule, receiverItem) - } - var feeRule []interface{} - for _, feeItem := range fee { - feeRule = append(feeRule, feeItem) - } - - logs, sub, err := _RelayerModule.contract.FilterLogs(opts, "DistributeFee", receiverRule, feeRule) - if err != nil { - return nil, err - } - return &RelayerModuleDistributeFeeIterator{contract: _RelayerModule.contract, event: "DistributeFee", logs: logs, sub: sub}, nil -} - -// WatchDistributeFee is a free log subscription operation binding the contract event 0x67e2bceb7881996b4bbddf9ab5d5c9bceb0ace3a06538b5e40be96094c4c9a72. -// -// Solidity: event DistributeFee(address indexed receiver, string indexed fee) -func (_RelayerModule *RelayerModuleFilterer) WatchDistributeFee(opts *bind.WatchOpts, sink chan<- *RelayerModuleDistributeFee, receiver []common.Address, fee []string) (event.Subscription, error) { - - var receiverRule []interface{} - for _, receiverItem := range receiver { - receiverRule = append(receiverRule, receiverItem) - } - var feeRule []interface{} - for _, feeItem := range fee { - feeRule = append(feeRule, feeItem) + var feeRule []interface{} + for _, feeItem := range fee { + feeRule = append(feeRule, feeItem) } logs, sub, err := _RelayerModule.contract.WatchLogs(opts, "DistributeFee", receiverRule, feeRule) @@ -3484,276 +1693,9 @@ func (_RelayerModule *RelayerModuleFilterer) ParseIbcTransfer(log types.Log) (*R return event, nil } -// RelayerModuleMessageIterator is returned from FilterMessage and is used to iterate over the raw logs and unpacked data for Message events raised by the RelayerModule contract. -type RelayerModuleMessageIterator struct { - Event *RelayerModuleMessage // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// 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. -func (it *RelayerModuleMessageIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(RelayerModuleMessage) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(RelayerModuleMessage) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *RelayerModuleMessageIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *RelayerModuleMessageIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// RelayerModuleMessage represents a Message event raised by the RelayerModule contract. -type RelayerModuleMessage struct { - Raw types.Log // Blockchain specific contextual infos -} - -// FilterMessage is a free log retrieval operation binding the contract event 0xa1fb1de9edd1fb65c0511622fb0cd565140cf89f7579780ffa06863d994d4adb. -// -// Solidity: event Message() -func (_RelayerModule *RelayerModuleFilterer) FilterMessage(opts *bind.FilterOpts) (*RelayerModuleMessageIterator, error) { - - logs, sub, err := _RelayerModule.contract.FilterLogs(opts, "Message") - if err != nil { - return nil, err - } - return &RelayerModuleMessageIterator{contract: _RelayerModule.contract, event: "Message", logs: logs, sub: sub}, nil -} - -// WatchMessage is a free log subscription operation binding the contract event 0xa1fb1de9edd1fb65c0511622fb0cd565140cf89f7579780ffa06863d994d4adb. -// -// Solidity: event Message() -func (_RelayerModule *RelayerModuleFilterer) WatchMessage(opts *bind.WatchOpts, sink chan<- *RelayerModuleMessage) (event.Subscription, error) { - - logs, sub, err := _RelayerModule.contract.WatchLogs(opts, "Message") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(RelayerModuleMessage) - if err := _RelayerModule.contract.UnpackLog(event, "Message", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseMessage is a log parse operation binding the contract event 0xa1fb1de9edd1fb65c0511622fb0cd565140cf89f7579780ffa06863d994d4adb. -// -// Solidity: event Message() -func (_RelayerModule *RelayerModuleFilterer) ParseMessage(log types.Log) (*RelayerModuleMessage, error) { - event := new(RelayerModuleMessage) - if err := _RelayerModule.contract.UnpackLog(event, "Message", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - // RelayerModuleRecvPacketIterator is returned from FilterRecvPacket and is used to iterate over the raw logs and unpacked data for RecvPacket events raised by the RelayerModule contract. type RelayerModuleRecvPacketIterator struct { - Event *RelayerModuleRecvPacket // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// 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. -func (it *RelayerModuleRecvPacketIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(RelayerModuleRecvPacket) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(RelayerModuleRecvPacket) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *RelayerModuleRecvPacketIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *RelayerModuleRecvPacketIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// RelayerModuleRecvPacket represents a RecvPacket event raised by the RelayerModule contract. -type RelayerModuleRecvPacket struct { - PacketDataHex IRelayerModulePacketData - Raw types.Log // Blockchain specific contextual infos -} - -// FilterRecvPacket is a free log retrieval operation binding the contract event 0x9b65d2e7fb26fd6c5ea41ebf07b4360b58fb218c4e50aa439df57a4c082f9190. -// -// Solidity: event RecvPacket((address,string,(uint256,string)[]) packetDataHex) -func (_RelayerModule *RelayerModuleFilterer) FilterRecvPacket(opts *bind.FilterOpts) (*RelayerModuleRecvPacketIterator, error) { - - logs, sub, err := _RelayerModule.contract.FilterLogs(opts, "RecvPacket") - if err != nil { - return nil, err - } - return &RelayerModuleRecvPacketIterator{contract: _RelayerModule.contract, event: "RecvPacket", logs: logs, sub: sub}, nil -} - -// WatchRecvPacket is a free log subscription operation binding the contract event 0x9b65d2e7fb26fd6c5ea41ebf07b4360b58fb218c4e50aa439df57a4c082f9190. -// -// Solidity: event RecvPacket((address,string,(uint256,string)[]) packetDataHex) -func (_RelayerModule *RelayerModuleFilterer) WatchRecvPacket(opts *bind.WatchOpts, sink chan<- *RelayerModuleRecvPacket) (event.Subscription, error) { - - logs, sub, err := _RelayerModule.contract.WatchLogs(opts, "RecvPacket") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(RelayerModuleRecvPacket) - if err := _RelayerModule.contract.UnpackLog(event, "RecvPacket", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseRecvPacket is a log parse operation binding the contract event 0x9b65d2e7fb26fd6c5ea41ebf07b4360b58fb218c4e50aa439df57a4c082f9190. -// -// Solidity: event RecvPacket((address,string,(uint256,string)[]) packetDataHex) -func (_RelayerModule *RelayerModuleFilterer) ParseRecvPacket(log types.Log) (*RelayerModuleRecvPacket, error) { - event := new(RelayerModuleRecvPacket) - if err := _RelayerModule.contract.UnpackLog(event, "RecvPacket", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// RelayerModuleSubmitMisbehaviourIterator is returned from FilterSubmitMisbehaviour and is used to iterate over the raw logs and unpacked data for SubmitMisbehaviour events raised by the RelayerModule contract. -type RelayerModuleSubmitMisbehaviourIterator struct { - Event *RelayerModuleSubmitMisbehaviour // Event containing the contract specifics and raw log + Event *RelayerModuleRecvPacket // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -3767,7 +1709,7 @@ type RelayerModuleSubmitMisbehaviourIterator struct { // 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. -func (it *RelayerModuleSubmitMisbehaviourIterator) Next() bool { +func (it *RelayerModuleRecvPacketIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -3776,7 +1718,7 @@ func (it *RelayerModuleSubmitMisbehaviourIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(RelayerModuleSubmitMisbehaviour) + it.Event = new(RelayerModuleRecvPacket) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -3791,7 +1733,7 @@ func (it *RelayerModuleSubmitMisbehaviourIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(RelayerModuleSubmitMisbehaviour) + it.Event = new(RelayerModuleRecvPacket) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -3807,60 +1749,41 @@ func (it *RelayerModuleSubmitMisbehaviourIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *RelayerModuleSubmitMisbehaviourIterator) Error() error { +func (it *RelayerModuleRecvPacketIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *RelayerModuleSubmitMisbehaviourIterator) Close() error { +func (it *RelayerModuleRecvPacketIterator) Close() error { it.sub.Unsubscribe() return nil } -// RelayerModuleSubmitMisbehaviour represents a SubmitMisbehaviour event raised by the RelayerModule contract. -type RelayerModuleSubmitMisbehaviour struct { - SubjectId common.Hash - ClientType common.Hash - Raw types.Log // Blockchain specific contextual infos +// RelayerModuleRecvPacket represents a RecvPacket event raised by the RelayerModule contract. +type RelayerModuleRecvPacket struct { + PacketDataHex IRelayerModulePacketData + Raw types.Log // Blockchain specific contextual infos } -// FilterSubmitMisbehaviour is a free log retrieval operation binding the contract event 0x5e3d4bfbdf00af6a11dfe40554bb939eca3f49763f519b0c2fb78b7277911029. +// FilterRecvPacket is a free log retrieval operation binding the contract event 0x9b65d2e7fb26fd6c5ea41ebf07b4360b58fb218c4e50aa439df57a4c082f9190. // -// Solidity: event SubmitMisbehaviour(string indexed subjectId, string indexed clientType) -func (_RelayerModule *RelayerModuleFilterer) FilterSubmitMisbehaviour(opts *bind.FilterOpts, subjectId []string, clientType []string) (*RelayerModuleSubmitMisbehaviourIterator, error) { - - var subjectIdRule []interface{} - for _, subjectIdItem := range subjectId { - subjectIdRule = append(subjectIdRule, subjectIdItem) - } - var clientTypeRule []interface{} - for _, clientTypeItem := range clientType { - clientTypeRule = append(clientTypeRule, clientTypeItem) - } +// Solidity: event RecvPacket((address,string,(uint256,string)[]) packetDataHex) +func (_RelayerModule *RelayerModuleFilterer) FilterRecvPacket(opts *bind.FilterOpts) (*RelayerModuleRecvPacketIterator, error) { - logs, sub, err := _RelayerModule.contract.FilterLogs(opts, "SubmitMisbehaviour", subjectIdRule, clientTypeRule) + logs, sub, err := _RelayerModule.contract.FilterLogs(opts, "RecvPacket") if err != nil { return nil, err } - return &RelayerModuleSubmitMisbehaviourIterator{contract: _RelayerModule.contract, event: "SubmitMisbehaviour", logs: logs, sub: sub}, nil + return &RelayerModuleRecvPacketIterator{contract: _RelayerModule.contract, event: "RecvPacket", logs: logs, sub: sub}, nil } -// WatchSubmitMisbehaviour is a free log subscription operation binding the contract event 0x5e3d4bfbdf00af6a11dfe40554bb939eca3f49763f519b0c2fb78b7277911029. +// WatchRecvPacket is a free log subscription operation binding the contract event 0x9b65d2e7fb26fd6c5ea41ebf07b4360b58fb218c4e50aa439df57a4c082f9190. // -// Solidity: event SubmitMisbehaviour(string indexed subjectId, string indexed clientType) -func (_RelayerModule *RelayerModuleFilterer) WatchSubmitMisbehaviour(opts *bind.WatchOpts, sink chan<- *RelayerModuleSubmitMisbehaviour, subjectId []string, clientType []string) (event.Subscription, error) { - - var subjectIdRule []interface{} - for _, subjectIdItem := range subjectId { - subjectIdRule = append(subjectIdRule, subjectIdItem) - } - var clientTypeRule []interface{} - for _, clientTypeItem := range clientType { - clientTypeRule = append(clientTypeRule, clientTypeItem) - } +// Solidity: event RecvPacket((address,string,(uint256,string)[]) packetDataHex) +func (_RelayerModule *RelayerModuleFilterer) WatchRecvPacket(opts *bind.WatchOpts, sink chan<- *RelayerModuleRecvPacket) (event.Subscription, error) { - logs, sub, err := _RelayerModule.contract.WatchLogs(opts, "SubmitMisbehaviour", subjectIdRule, clientTypeRule) + logs, sub, err := _RelayerModule.contract.WatchLogs(opts, "RecvPacket") if err != nil { return nil, err } @@ -3870,8 +1793,8 @@ func (_RelayerModule *RelayerModuleFilterer) WatchSubmitMisbehaviour(opts *bind. select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(RelayerModuleSubmitMisbehaviour) - if err := _RelayerModule.contract.UnpackLog(event, "SubmitMisbehaviour", log); err != nil { + event := new(RelayerModuleRecvPacket) + if err := _RelayerModule.contract.UnpackLog(event, "RecvPacket", log); err != nil { return err } event.Raw = log @@ -3892,12 +1815,12 @@ func (_RelayerModule *RelayerModuleFilterer) WatchSubmitMisbehaviour(opts *bind. }), nil } -// ParseSubmitMisbehaviour is a log parse operation binding the contract event 0x5e3d4bfbdf00af6a11dfe40554bb939eca3f49763f519b0c2fb78b7277911029. +// ParseRecvPacket is a log parse operation binding the contract event 0x9b65d2e7fb26fd6c5ea41ebf07b4360b58fb218c4e50aa439df57a4c082f9190. // -// Solidity: event SubmitMisbehaviour(string indexed subjectId, string indexed clientType) -func (_RelayerModule *RelayerModuleFilterer) ParseSubmitMisbehaviour(log types.Log) (*RelayerModuleSubmitMisbehaviour, error) { - event := new(RelayerModuleSubmitMisbehaviour) - if err := _RelayerModule.contract.UnpackLog(event, "SubmitMisbehaviour", log); err != nil { +// Solidity: event RecvPacket((address,string,(uint256,string)[]) packetDataHex) +func (_RelayerModule *RelayerModuleFilterer) ParseRecvPacket(log types.Log) (*RelayerModuleRecvPacket, error) { + event := new(RelayerModuleRecvPacket) + if err := _RelayerModule.contract.UnpackLog(event, "RecvPacket", log); err != nil { return nil, err } event.Raw = log @@ -4376,312 +2299,6 @@ func (_RelayerModule *RelayerModuleFilterer) ParseTransfer(log types.Log) (*Rela return event, nil } -// RelayerModuleUpdateClientIterator is returned from FilterUpdateClient and is used to iterate over the raw logs and unpacked data for UpdateClient events raised by the RelayerModule contract. -type RelayerModuleUpdateClientIterator struct { - Event *RelayerModuleUpdateClient // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// 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. -func (it *RelayerModuleUpdateClientIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(RelayerModuleUpdateClient) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(RelayerModuleUpdateClient) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *RelayerModuleUpdateClientIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *RelayerModuleUpdateClientIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// RelayerModuleUpdateClient represents a UpdateClient event raised by the RelayerModule contract. -type RelayerModuleUpdateClient struct { - ClientId common.Hash - ClientType common.Hash - Raw types.Log // Blockchain specific contextual infos -} - -// FilterUpdateClient is a free log retrieval operation binding the contract event 0x96cbed941dd0e14249990cc56370fd97652ced76f675a2d8ce36b9545a000583. -// -// Solidity: event UpdateClient(string indexed clientId, string indexed clientType) -func (_RelayerModule *RelayerModuleFilterer) FilterUpdateClient(opts *bind.FilterOpts, clientId []string, clientType []string) (*RelayerModuleUpdateClientIterator, error) { - - var clientIdRule []interface{} - for _, clientIdItem := range clientId { - clientIdRule = append(clientIdRule, clientIdItem) - } - var clientTypeRule []interface{} - for _, clientTypeItem := range clientType { - clientTypeRule = append(clientTypeRule, clientTypeItem) - } - - logs, sub, err := _RelayerModule.contract.FilterLogs(opts, "UpdateClient", clientIdRule, clientTypeRule) - if err != nil { - return nil, err - } - return &RelayerModuleUpdateClientIterator{contract: _RelayerModule.contract, event: "UpdateClient", logs: logs, sub: sub}, nil -} - -// WatchUpdateClient is a free log subscription operation binding the contract event 0x96cbed941dd0e14249990cc56370fd97652ced76f675a2d8ce36b9545a000583. -// -// Solidity: event UpdateClient(string indexed clientId, string indexed clientType) -func (_RelayerModule *RelayerModuleFilterer) WatchUpdateClient(opts *bind.WatchOpts, sink chan<- *RelayerModuleUpdateClient, clientId []string, clientType []string) (event.Subscription, error) { - - var clientIdRule []interface{} - for _, clientIdItem := range clientId { - clientIdRule = append(clientIdRule, clientIdItem) - } - var clientTypeRule []interface{} - for _, clientTypeItem := range clientType { - clientTypeRule = append(clientTypeRule, clientTypeItem) - } - - logs, sub, err := _RelayerModule.contract.WatchLogs(opts, "UpdateClient", clientIdRule, clientTypeRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(RelayerModuleUpdateClient) - if err := _RelayerModule.contract.UnpackLog(event, "UpdateClient", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseUpdateClient is a log parse operation binding the contract event 0x96cbed941dd0e14249990cc56370fd97652ced76f675a2d8ce36b9545a000583. -// -// Solidity: event UpdateClient(string indexed clientId, string indexed clientType) -func (_RelayerModule *RelayerModuleFilterer) ParseUpdateClient(log types.Log) (*RelayerModuleUpdateClient, error) { - event := new(RelayerModuleUpdateClient) - if err := _RelayerModule.contract.UnpackLog(event, "UpdateClient", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// RelayerModuleUpgradeClientIterator is returned from FilterUpgradeClient and is used to iterate over the raw logs and unpacked data for UpgradeClient events raised by the RelayerModule contract. -type RelayerModuleUpgradeClientIterator struct { - Event *RelayerModuleUpgradeClient // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// 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. -func (it *RelayerModuleUpgradeClientIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(RelayerModuleUpgradeClient) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(RelayerModuleUpgradeClient) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *RelayerModuleUpgradeClientIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *RelayerModuleUpgradeClientIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// RelayerModuleUpgradeClient represents a UpgradeClient event raised by the RelayerModule contract. -type RelayerModuleUpgradeClient struct { - ClientId common.Hash - ClientType common.Hash - Raw types.Log // Blockchain specific contextual infos -} - -// FilterUpgradeClient is a free log retrieval operation binding the contract event 0xea94737b2a063148360d4e7658f21a26653e4cd80dd2142c2ea96422be27e2e4. -// -// Solidity: event UpgradeClient(string indexed clientId, string indexed clientType) -func (_RelayerModule *RelayerModuleFilterer) FilterUpgradeClient(opts *bind.FilterOpts, clientId []string, clientType []string) (*RelayerModuleUpgradeClientIterator, error) { - - var clientIdRule []interface{} - for _, clientIdItem := range clientId { - clientIdRule = append(clientIdRule, clientIdItem) - } - var clientTypeRule []interface{} - for _, clientTypeItem := range clientType { - clientTypeRule = append(clientTypeRule, clientTypeItem) - } - - logs, sub, err := _RelayerModule.contract.FilterLogs(opts, "UpgradeClient", clientIdRule, clientTypeRule) - if err != nil { - return nil, err - } - return &RelayerModuleUpgradeClientIterator{contract: _RelayerModule.contract, event: "UpgradeClient", logs: logs, sub: sub}, nil -} - -// WatchUpgradeClient is a free log subscription operation binding the contract event 0xea94737b2a063148360d4e7658f21a26653e4cd80dd2142c2ea96422be27e2e4. -// -// Solidity: event UpgradeClient(string indexed clientId, string indexed clientType) -func (_RelayerModule *RelayerModuleFilterer) WatchUpgradeClient(opts *bind.WatchOpts, sink chan<- *RelayerModuleUpgradeClient, clientId []string, clientType []string) (event.Subscription, error) { - - var clientIdRule []interface{} - for _, clientIdItem := range clientId { - clientIdRule = append(clientIdRule, clientIdItem) - } - var clientTypeRule []interface{} - for _, clientTypeItem := range clientType { - clientTypeRule = append(clientTypeRule, clientTypeItem) - } - - logs, sub, err := _RelayerModule.contract.WatchLogs(opts, "UpgradeClient", clientIdRule, clientTypeRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(RelayerModuleUpgradeClient) - if err := _RelayerModule.contract.UnpackLog(event, "UpgradeClient", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseUpgradeClient is a log parse operation binding the contract event 0xea94737b2a063148360d4e7658f21a26653e4cd80dd2142c2ea96422be27e2e4. -// -// Solidity: event UpgradeClient(string indexed clientId, string indexed clientType) -func (_RelayerModule *RelayerModuleFilterer) ParseUpgradeClient(log types.Log) (*RelayerModuleUpgradeClient, error) { - event := new(RelayerModuleUpgradeClient) - if err := _RelayerModule.contract.UnpackLog(event, "UpgradeClient", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - // RelayerModuleWriteAcknowledgementIterator is returned from FilterWriteAcknowledgement and is used to iterate over the raw logs and unpacked data for WriteAcknowledgement events raised by the RelayerModule contract. type RelayerModuleWriteAcknowledgementIterator struct { Event *RelayerModuleWriteAcknowledgement // Event containing the contract specifics and raw log diff --git a/x/cronos/events/bindings/src/Relayer.sol b/x/cronos/events/bindings/src/Relayer.sol index a899451db1..987b17bbf4 100644 --- a/x/cronos/events/bindings/src/Relayer.sol +++ b/x/cronos/events/bindings/src/Relayer.sol @@ -4,93 +4,6 @@ pragma solidity ^0.8.4; import {Cosmos} from "./CosmosTypes.sol"; interface IRelayerModule { - // Client - event CreateClient( - string indexed clientId, - string indexed clientType - ); - event UpdateClient( - string indexed clientId, - string indexed clientType - ); - event UpgradeClient( - string indexed clientId, - string indexed clientType - ); - event SubmitMisbehaviour( - string indexed subjectId, - string indexed clientType - ); - // Connection - event ConnectionOpenInit( - string indexed connectionId, - string indexed clientId, - string indexed counterpartyClientId, - string counterpartyConnectionId - ); - event ConnectionOpenTry( - string indexed connectionId, - string indexed clientId, - string indexed counterpartyClientId, - string counterpartyConnectionId - ); - event ConnectionOpenAck( - string indexed connectionId, - string indexed clientId, - string indexed counterpartyClientId, - string counterpartyConnectionId - ); - event ConnectionOpenConfirm( - string indexed connectionId, - string indexed clientId, - string indexed counterpartyClientId, - string counterpartyConnectionId - ); - // Channel - event ChannelOpenInit( - string indexed portId, - string indexed channelId, - string indexed counterpartyPortId, - string counterpartyChannelId, - string connectionId, - string version - ); - event ChannelOpenTry( - string indexed portId, - string indexed channelId, - string indexed counterpartyPortId, - string counterpartyChannelId, - string connectionId, - string version - ); - event ChannelOpenAck( - string indexed portId, - string indexed channelId, - string indexed counterpartyPortId, - string counterpartyChannelId, - string connectionId - ); - event ChannelOpenConfirm( - string indexed portId, - string indexed channelId, - string indexed counterpartyPortId, - string counterpartyChannelId, - string connectionId - ); - event ChannelCloseInit( - string indexed portId, - string indexed channelId, - string indexed counterpartyPortId, - string counterpartyChannelId, - string connectionId - ); - event ChannelCloseConfirm( - string indexed portId, - string indexed channelId, - string indexed counterpartyPortId, - string counterpartyChannelId, - string connectionId - ); struct PacketData { address receiver; string sender; @@ -116,7 +29,6 @@ interface IRelayerModule { string packetDstChannel, string packetChannelOrdering ); - event Message(); // IBC transfer event Timeout( address indexed refundReceiver, diff --git a/x/cronos/events/event.go b/x/cronos/events/event.go index f2eab85601..524b36d5bd 100644 --- a/x/cronos/events/event.go +++ b/x/cronos/events/event.go @@ -48,7 +48,7 @@ func makeFilter( } decode, ok := valueDecoders[name] if !ok { - decode = ReturnStringAsIs + return nil, fmt.Errorf("no decoder for %s", name) } values, err := decode(value, indexed) if err != nil { diff --git a/x/cronos/events/events.go b/x/cronos/events/events.go index c86b13de52..6f00c16d3f 100644 --- a/x/cronos/events/events.go +++ b/x/cronos/events/events.go @@ -3,6 +3,7 @@ package events import ( sdk "github.com/cosmos/cosmos-sdk/types" banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" + ibcfeetypes "github.com/cosmos/ibc-go/v7/modules/apps/29-fee/types" transfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types" ibctypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types" generated "github.com/crypto-org-chain/cronos/v2/x/cronos/events/bindings/cosmos/precompile/relayer" @@ -13,14 +14,22 @@ import ( var ( IBCEvents map[string]*EventDescriptor IBCValueDecoders = ValueDecoders{ - ibctypes.AttributeKeyDataHex: ConvertPacketData, - transfertypes.AttributeKeyAmount: ConvertAmount, - banktypes.AttributeKeyRecipient: ConvertAccAddressFromBech32, - banktypes.AttributeKeySpender: ConvertAccAddressFromBech32, - banktypes.AttributeKeyReceiver: ConvertAccAddressFromBech32, - banktypes.AttributeKeySender: ConvertAccAddressFromBech32, - banktypes.AttributeKeyMinter: ConvertAccAddressFromBech32, - banktypes.AttributeKeyBurner: ConvertAccAddressFromBech32, + ibctypes.AttributeKeyDataHex: ConvertPacketData, + ibctypes.AttributeKeyConnection: ReturnStringAsIs, + ibctypes.AttributeKeyChannelOrdering: ReturnStringAsIs, + ibctypes.AttributeKeySrcPort: ReturnStringAsIs, + ibctypes.AttributeKeySrcChannel: ReturnStringAsIs, + ibctypes.AttributeKeyDstPort: ReturnStringAsIs, + ibctypes.AttributeKeyDstChannel: ReturnStringAsIs, + ibcfeetypes.AttributeKeyFee: ReturnStringAsIs, + transfertypes.AttributeKeyDenom: ReturnStringAsIs, + transfertypes.AttributeKeyAmount: ConvertAmount, + banktypes.AttributeKeyRecipient: ConvertAccAddressFromBech32, + banktypes.AttributeKeySpender: ConvertAccAddressFromBech32, + banktypes.AttributeKeyReceiver: ConvertAccAddressFromBech32, + banktypes.AttributeKeySender: ConvertAccAddressFromBech32, + banktypes.AttributeKeyMinter: ConvertAccAddressFromBech32, + banktypes.AttributeKeyBurner: ConvertAccAddressFromBech32, } ) @@ -33,9 +42,6 @@ func init() { } func ConvertEvent(event sdk.Event) (*ethtypes.Log, error) { - if event.Type == sdk.EventTypeMessage { - return nil, nil - } desc, ok := IBCEvents[event.Type] if !ok { return nil, nil From 640761927d103911b3a7c31e995ac062b47dcdcb Mon Sep 17 00:00:00 2001 From: mmsqe Date: Mon, 25 Sep 2023 12:56:14 +0800 Subject: [PATCH 2/2] add change doc --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index d714ca9f25..43853ccf33 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -80,6 +80,7 @@ - [#1171](https://github.com/crypto-org-chain/cronos/pull/1171) Add memiavl background snapshot writing concurrency limit. - [#1179](https://github.com/crypto-org-chain/cronos/pull/1179) Support blocking addresses in mempool. - [#1182](https://github.com/crypto-org-chain/cronos/pull/1182) Bump librocksdb to 8.5.3. +- [#1183](https://github.com/crypto-org-chain/cronos/pull/1183) Avoid redundant logs added from relayer. *April 13, 2023*