@bze/bzejs 0.0.9 → 0.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/main/codegen/amino/amino.js +5 -0
- package/main/codegen/amino/bundle.js +15 -0
- package/main/codegen/beezee/cointrunk/anon_articles_counter.js +1 -1
- package/main/codegen/beezee/cointrunk/article.js +1 -1
- package/main/codegen/beezee/cointrunk/events.js +1 -1
- package/main/codegen/beezee/cointrunk/genesis.js +1 -1
- package/main/codegen/beezee/cointrunk/publisher.js +1 -1
- package/main/codegen/bze/bundle.js +34 -34
- package/main/codegen/confio/proofs.js +1145 -0
- package/main/codegen/cosmos/auth/v1beta1/auth.js +1 -1
- package/main/codegen/cosmos/authz/v1beta1/tx.amino.js +0 -2
- package/main/codegen/cosmos/base/abci/v1beta1/abci.js +1 -1
- package/main/codegen/cosmos/base/query/v1beta1/pagination.js +1 -1
- package/main/codegen/cosmos/base/snapshots/v1beta1/snapshot.js +1 -1
- package/main/codegen/cosmos/base/store/v1beta1/commit_info.js +1 -1
- package/main/codegen/cosmos/base/tendermint/v1beta1/query.js +1 -1
- package/main/codegen/cosmos/bundle.js +213 -213
- package/main/codegen/cosmos/capability/v1beta1/capability.js +1 -1
- package/main/codegen/cosmos/capability/v1beta1/genesis.js +1 -1
- package/main/codegen/cosmos/evidence/v1beta1/evidence.js +1 -1
- package/main/codegen/cosmos/gov/v1/genesis.js +1 -1
- package/main/codegen/cosmos/gov/v1/gov.js +2 -21
- package/main/codegen/cosmos/gov/v1/query.js +1 -1
- package/main/codegen/cosmos/gov/v1beta1/genesis.js +1 -1
- package/main/codegen/cosmos/gov/v1beta1/gov.js +2 -21
- package/main/codegen/cosmos/gov/v1beta1/query.js +1 -1
- package/main/codegen/cosmos/group/v1/events.js +1 -1
- package/main/codegen/cosmos/group/v1/genesis.js +1 -1
- package/main/codegen/cosmos/group/v1/query.js +1 -1
- package/main/codegen/cosmos/group/v1/tx.js +1 -7
- package/main/codegen/cosmos/group/v1/types.js +4 -38
- package/main/codegen/cosmos/orm/v1alpha1/schema.js +1 -10
- package/main/codegen/cosmos/slashing/v1beta1/slashing.js +1 -1
- package/main/codegen/cosmos/staking/v1beta1/authz.js +1 -13
- package/main/codegen/cosmos/staking/v1beta1/staking.js +1 -9
- package/main/codegen/cosmos/staking/v1beta1/tx.amino.js +0 -2
- package/main/codegen/cosmos/tx/signing/v1beta1/signing.js +1 -19
- package/main/codegen/cosmos/tx/v1beta1/service.js +2 -17
- package/main/codegen/cosmos/upgrade/v1beta1/upgrade.js +1 -1
- package/main/codegen/cosmos/vesting/v1beta1/tx.js +1 -1
- package/main/codegen/cosmos/vesting/v1beta1/vesting.js +1 -1
- package/main/codegen/cosmos_proto/bundle.js +2 -2
- package/main/codegen/cosmos_proto/cosmos.js +1 -7
- package/main/codegen/gogoproto/bundle.js +2 -2
- package/main/codegen/google/bundle.js +9 -9
- package/main/codegen/google/protobuf/descriptor.js +6 -63
- package/main/codegen/google/protobuf/duration.js +1 -1
- package/main/codegen/google/protobuf/timestamp.js +1 -1
- package/main/codegen/helpers.js +1 -1
- package/main/codegen/ibc/applications/transfer/v1/genesis.js +82 -0
- package/main/codegen/ibc/applications/transfer/v1/query.js +291 -0
- package/main/codegen/ibc/applications/transfer/v1/query.lcd.js +114 -0
- package/main/codegen/ibc/applications/transfer/v1/query.rpc.Query.js +75 -0
- package/main/codegen/ibc/applications/transfer/v1/transfer.js +124 -0
- package/main/codegen/ibc/applications/transfer/v1/tx.amino.js +61 -0
- package/main/codegen/ibc/applications/transfer/v1/tx.js +141 -0
- package/main/codegen/ibc/applications/transfer/v1/tx.registry.js +44 -0
- package/main/codegen/ibc/applications/transfer/v1/tx.rpc.msg.js +35 -0
- package/main/codegen/ibc/applications/transfer/v2/packet.js +83 -0
- package/main/codegen/ibc/bundle.js +116 -0
- package/main/codegen/ibc/client.js +67 -0
- package/main/codegen/ibc/core/channel/v1/channel.js +596 -0
- package/main/codegen/ibc/core/channel/v1/genesis.js +252 -0
- package/main/codegen/ibc/core/channel/v1/query.js +1749 -0
- package/main/codegen/ibc/core/channel/v1/query.lcd.js +406 -0
- package/main/codegen/ibc/core/channel/v1/query.rpc.Query.js +204 -0
- package/main/codegen/ibc/core/channel/v1/tx.amino.js +508 -0
- package/main/codegen/ibc/core/channel/v1/tx.js +1101 -0
- package/main/codegen/ibc/core/channel/v1/tx.registry.js +206 -0
- package/main/codegen/ibc/core/channel/v1/tx.rpc.msg.js +125 -0
- package/main/codegen/ibc/core/client/v1/client.js +459 -0
- package/main/codegen/ibc/core/client/v1/genesis.js +250 -0
- package/main/codegen/ibc/core/client/v1/query.js +841 -0
- package/main/codegen/ibc/core/client/v1/query.lcd.js +263 -0
- package/main/codegen/ibc/core/client/v1/query.rpc.Query.js +142 -0
- package/main/codegen/ibc/core/client/v1/tx.amino.js +148 -0
- package/main/codegen/ibc/core/client/v1/tx.js +411 -0
- package/main/codegen/ibc/core/client/v1/tx.registry.js +98 -0
- package/main/codegen/ibc/core/client/v1/tx.rpc.msg.js +65 -0
- package/main/codegen/ibc/core/commitment/v1/commitment.js +234 -0
- package/main/codegen/ibc/core/connection/v1/connection.js +532 -0
- package/main/codegen/ibc/core/connection/v1/genesis.js +102 -0
- package/main/codegen/ibc/core/connection/v1/query.js +615 -0
- package/main/codegen/ibc/core/connection/v1/query.lcd.js +170 -0
- package/main/codegen/ibc/core/connection/v1/query.rpc.Query.js +100 -0
- package/main/codegen/ibc/core/connection/v1/tx.amino.js +268 -0
- package/main/codegen/ibc/core/connection/v1/tx.js +568 -0
- package/main/codegen/ibc/core/connection/v1/tx.registry.js +98 -0
- package/main/codegen/ibc/core/connection/v1/tx.rpc.msg.js +65 -0
- package/main/codegen/ibc/core/port/v1/query.js +133 -0
- package/main/codegen/ibc/core/port/v1/query.rpc.Query.js +45 -0
- package/main/codegen/ibc/core/types/v1/genesis.js +69 -0
- package/main/codegen/ibc/lcd.js +341 -0
- package/main/codegen/ibc/lightclients/localhost/v1/localhost.js +66 -0
- package/main/codegen/ibc/lightclients/solomachine/v1/solomachine.js +1054 -0
- package/main/codegen/ibc/lightclients/solomachine/v2/solomachine.js +1054 -0
- package/main/codegen/ibc/lightclients/tendermint/v1/tendermint.js +434 -0
- package/main/codegen/ibc/rpc.query.js +280 -0
- package/main/codegen/ibc/rpc.tx.js +256 -0
- package/main/codegen/ics23/bundle.js +15 -0
- package/main/codegen/index.js +58 -25
- package/main/codegen/tendermint/abci/types.js +4 -33
- package/main/codegen/tendermint/bundle.js +17 -17
- package/main/codegen/tendermint/crypto/proof.js +1 -1
- package/main/codegen/tendermint/libs/bits/types.js +1 -1
- package/main/codegen/tendermint/p2p/types.js +1 -1
- package/main/codegen/tendermint/types/types.js +2 -18
- package/main/codegen/tendermint/types/validator.js +1 -1
- package/main/codegen/tendermint/version/types.js +1 -1
- package/module/codegen/amino/amino.js +1 -0
- package/module/codegen/amino/bundle.js +5 -0
- package/module/codegen/beezee/cointrunk/anon_articles_counter.js +1 -1
- package/module/codegen/beezee/cointrunk/article.js +1 -1
- package/module/codegen/beezee/cointrunk/events.js +1 -1
- package/module/codegen/beezee/cointrunk/genesis.js +1 -1
- package/module/codegen/beezee/cointrunk/publisher.js +1 -1
- package/module/codegen/bze/bundle.js +34 -34
- package/module/codegen/confio/proofs.js +1051 -0
- package/module/codegen/cosmos/auth/v1beta1/auth.js +1 -1
- package/module/codegen/cosmos/authz/v1beta1/tx.amino.js +0 -2
- package/module/codegen/cosmos/base/abci/v1beta1/abci.js +1 -1
- package/module/codegen/cosmos/base/query/v1beta1/pagination.js +1 -1
- package/module/codegen/cosmos/base/snapshots/v1beta1/snapshot.js +1 -1
- package/module/codegen/cosmos/base/store/v1beta1/commit_info.js +1 -1
- package/module/codegen/cosmos/base/tendermint/v1beta1/query.js +1 -1
- package/module/codegen/cosmos/bundle.js +213 -213
- package/module/codegen/cosmos/capability/v1beta1/capability.js +1 -1
- package/module/codegen/cosmos/capability/v1beta1/genesis.js +1 -1
- package/module/codegen/cosmos/evidence/v1beta1/evidence.js +1 -1
- package/module/codegen/cosmos/gov/v1/genesis.js +1 -1
- package/module/codegen/cosmos/gov/v1/gov.js +2 -23
- package/module/codegen/cosmos/gov/v1/query.js +1 -1
- package/module/codegen/cosmos/gov/v1beta1/genesis.js +1 -1
- package/module/codegen/cosmos/gov/v1beta1/gov.js +2 -23
- package/module/codegen/cosmos/gov/v1beta1/query.js +1 -1
- package/module/codegen/cosmos/group/v1/events.js +1 -1
- package/module/codegen/cosmos/group/v1/genesis.js +1 -1
- package/module/codegen/cosmos/group/v1/query.js +1 -1
- package/module/codegen/cosmos/group/v1/tx.js +1 -8
- package/module/codegen/cosmos/group/v1/types.js +4 -42
- package/module/codegen/cosmos/orm/v1alpha1/schema.js +1 -11
- package/module/codegen/cosmos/slashing/v1beta1/slashing.js +1 -1
- package/module/codegen/cosmos/staking/v1beta1/authz.js +1 -14
- package/module/codegen/cosmos/staking/v1beta1/staking.js +1 -10
- package/module/codegen/cosmos/staking/v1beta1/tx.amino.js +0 -1
- package/module/codegen/cosmos/tx/signing/v1beta1/signing.js +1 -20
- package/module/codegen/cosmos/tx/v1beta1/service.js +2 -19
- package/module/codegen/cosmos/upgrade/v1beta1/upgrade.js +1 -1
- package/module/codegen/cosmos/vesting/v1beta1/tx.js +1 -1
- package/module/codegen/cosmos/vesting/v1beta1/vesting.js +1 -1
- package/module/codegen/cosmos_proto/bundle.js +2 -2
- package/module/codegen/cosmos_proto/cosmos.js +1 -7
- package/module/codegen/gogoproto/bundle.js +2 -2
- package/module/codegen/google/bundle.js +9 -9
- package/module/codegen/google/protobuf/descriptor.js +6 -65
- package/module/codegen/google/protobuf/duration.js +1 -1
- package/module/codegen/google/protobuf/timestamp.js +1 -1
- package/module/codegen/helpers.js +1 -1
- package/module/codegen/ibc/applications/transfer/v1/genesis.js +59 -0
- package/module/codegen/ibc/applications/transfer/v1/query.js +263 -0
- package/module/codegen/ibc/applications/transfer/v1/query.lcd.js +39 -0
- package/module/codegen/ibc/applications/transfer/v1/query.rpc.Query.js +47 -0
- package/module/codegen/ibc/applications/transfer/v1/transfer.js +114 -0
- package/module/codegen/ibc/applications/transfer/v1/tx.amino.js +57 -0
- package/module/codegen/ibc/applications/transfer/v1/tx.js +130 -0
- package/module/codegen/ibc/applications/transfer/v1/tx.registry.js +33 -0
- package/module/codegen/ibc/applications/transfer/v1/tx.rpc.msg.js +17 -0
- package/module/codegen/ibc/applications/transfer/v2/packet.js +74 -0
- package/module/codegen/ibc/bundle.js +106 -0
- package/module/codegen/ibc/client.js +42 -0
- package/module/codegen/ibc/core/channel/v1/channel.js +554 -0
- package/module/codegen/ibc/core/channel/v1/genesis.js +161 -0
- package/module/codegen/ibc/core/channel/v1/query.js +1612 -0
- package/module/codegen/ibc/core/channel/v1/query.lcd.js +138 -0
- package/module/codegen/ibc/core/channel/v1/query.rpc.Query.js +137 -0
- package/module/codegen/ibc/core/channel/v1/tx.amino.js +522 -0
- package/module/codegen/ibc/core/channel/v1/tx.js +1072 -0
- package/module/codegen/ibc/core/channel/v1/tx.registry.js +195 -0
- package/module/codegen/ibc/core/channel/v1/tx.rpc.msg.js +71 -0
- package/module/codegen/ibc/core/client/v1/client.js +418 -0
- package/module/codegen/ibc/core/client/v1/genesis.js +191 -0
- package/module/codegen/ibc/core/client/v1/query.js +791 -0
- package/module/codegen/ibc/core/client/v1/query.lcd.js +88 -0
- package/module/codegen/ibc/core/client/v1/query.rpc.Query.js +92 -0
- package/module/codegen/ibc/core/client/v1/tx.amino.js +150 -0
- package/module/codegen/ibc/core/client/v1/tx.js +395 -0
- package/module/codegen/ibc/core/client/v1/tx.registry.js +87 -0
- package/module/codegen/ibc/core/client/v1/tx.rpc.msg.js +35 -0
- package/module/codegen/ibc/core/commitment/v1/commitment.js +197 -0
- package/module/codegen/ibc/core/connection/v1/connection.js +457 -0
- package/module/codegen/ibc/core/connection/v1/genesis.js +67 -0
- package/module/codegen/ibc/core/connection/v1/query.js +571 -0
- package/module/codegen/ibc/core/connection/v1/query.lcd.js +56 -0
- package/module/codegen/ibc/core/connection/v1/query.rpc.Query.js +65 -0
- package/module/codegen/ibc/core/connection/v1/tx.amino.js +266 -0
- package/module/codegen/ibc/core/connection/v1/tx.js +537 -0
- package/module/codegen/ibc/core/connection/v1/tx.registry.js +87 -0
- package/module/codegen/ibc/core/connection/v1/tx.rpc.msg.js +35 -0
- package/module/codegen/ibc/core/port/v1/query.js +123 -0
- package/module/codegen/ibc/core/port/v1/query.rpc.Query.js +27 -0
- package/module/codegen/ibc/core/types/v1/genesis.js +60 -0
- package/module/codegen/ibc/lcd.js +123 -0
- package/module/codegen/ibc/lightclients/localhost/v1/localhost.js +57 -0
- package/module/codegen/ibc/lightclients/solomachine/v1/solomachine.js +1028 -0
- package/module/codegen/ibc/lightclients/solomachine/v2/solomachine.js +1028 -0
- package/module/codegen/ibc/lightclients/tendermint/v1/tendermint.js +395 -0
- package/module/codegen/ibc/rpc.query.js +87 -0
- package/module/codegen/ibc/rpc.tx.js +64 -0
- package/module/codegen/ics23/bundle.js +5 -0
- package/module/codegen/index.js +6 -3
- package/module/codegen/tendermint/abci/types.js +4 -33
- package/module/codegen/tendermint/bundle.js +17 -17
- package/module/codegen/tendermint/crypto/proof.js +1 -1
- package/module/codegen/tendermint/libs/bits/types.js +1 -1
- package/module/codegen/tendermint/p2p/types.js +1 -1
- package/module/codegen/tendermint/types/evidence.js +1 -1
- package/module/codegen/tendermint/types/types.js +3 -21
- package/module/codegen/tendermint/types/validator.js +1 -1
- package/module/codegen/tendermint/version/types.js +1 -1
- package/package.json +1 -1
- package/src/codegen/amino/amino.ts +1 -0
- package/src/codegen/amino/bundle.ts +3 -0
- package/src/codegen/beezee/burner/query.ts +0 -1
- package/src/codegen/beezee/burner/tx.amino.ts +3 -3
- package/src/codegen/beezee/cointrunk/anon_articles_counter.ts +1 -1
- package/src/codegen/beezee/cointrunk/article.ts +1 -1
- package/src/codegen/beezee/cointrunk/events.ts +1 -1
- package/src/codegen/beezee/cointrunk/genesis.ts +1 -1
- package/src/codegen/beezee/cointrunk/publisher.ts +1 -1
- package/src/codegen/beezee/cointrunk/query.ts +0 -1
- package/src/codegen/beezee/cointrunk/tx.amino.ts +6 -6
- package/src/codegen/bze/bundle.ts +48 -48
- package/src/codegen/confio/proofs.ts +1451 -0
- package/src/codegen/cosmos/app/v1alpha1/config.ts +0 -18
- package/src/codegen/cosmos/app/v1alpha1/module.ts +0 -67
- package/src/codegen/cosmos/app/v1alpha1/query.ts +0 -1
- package/src/codegen/cosmos/auth/v1beta1/auth.ts +1 -1
- package/src/codegen/cosmos/auth/v1beta1/genesis.ts +0 -3
- package/src/codegen/cosmos/auth/v1beta1/query.ts +0 -7
- package/src/codegen/cosmos/authz/v1beta1/authz.ts +0 -8
- package/src/codegen/cosmos/authz/v1beta1/event.ts +0 -10
- package/src/codegen/cosmos/authz/v1beta1/query.ts +0 -17
- package/src/codegen/cosmos/authz/v1beta1/tx.amino.ts +9 -10
- package/src/codegen/cosmos/authz/v1beta1/tx.ts +0 -6
- package/src/codegen/cosmos/bank/v1beta1/bank.ts +0 -46
- package/src/codegen/cosmos/bank/v1beta1/genesis.ts +0 -13
- package/src/codegen/cosmos/bank/v1beta1/query.ts +0 -44
- package/src/codegen/cosmos/bank/v1beta1/tx.amino.ts +6 -6
- package/src/codegen/cosmos/base/abci/v1beta1/abci.ts +1 -87
- package/src/codegen/cosmos/base/query/v1beta1/pagination.ts +1 -40
- package/src/codegen/cosmos/base/reflection/v1beta1/reflection.ts +0 -2
- package/src/codegen/cosmos/base/reflection/v2alpha1/reflection.ts +0 -78
- package/src/codegen/cosmos/base/snapshots/v1beta1/snapshot.ts +1 -6
- package/src/codegen/cosmos/base/store/v1beta1/commit_info.ts +1 -1
- package/src/codegen/cosmos/base/store/v1beta1/listening.ts +0 -3
- package/src/codegen/cosmos/base/tendermint/v1beta1/query.ts +1 -15
- package/src/codegen/cosmos/bundle.ts +328 -328
- package/src/codegen/cosmos/capability/v1beta1/capability.ts +1 -1
- package/src/codegen/cosmos/capability/v1beta1/genesis.ts +1 -10
- package/src/codegen/cosmos/crisis/v1beta1/genesis.ts +0 -4
- package/src/codegen/cosmos/crisis/v1beta1/tx.amino.ts +3 -3
- package/src/codegen/cosmos/crypto/hd/v1/hd.ts +0 -12
- package/src/codegen/cosmos/crypto/keyring/v1/record.ts +0 -11
- package/src/codegen/cosmos/crypto/secp256r1/keys.ts +0 -5
- package/src/codegen/cosmos/distribution/v1beta1/genesis.ts +0 -48
- package/src/codegen/cosmos/distribution/v1beta1/query.ts +0 -27
- package/src/codegen/cosmos/distribution/v1beta1/tx.amino.ts +12 -12
- package/src/codegen/cosmos/evidence/v1beta1/evidence.ts +1 -1
- package/src/codegen/cosmos/evidence/v1beta1/genesis.ts +0 -1
- package/src/codegen/cosmos/evidence/v1beta1/query.ts +0 -6
- package/src/codegen/cosmos/evidence/v1beta1/tx.amino.ts +3 -3
- package/src/codegen/cosmos/evidence/v1beta1/tx.ts +0 -1
- package/src/codegen/cosmos/feegrant/v1beta1/feegrant.ts +0 -34
- package/src/codegen/cosmos/feegrant/v1beta1/query.ts +0 -14
- package/src/codegen/cosmos/feegrant/v1beta1/tx.amino.ts +6 -6
- package/src/codegen/cosmos/feegrant/v1beta1/tx.ts +0 -8
- package/src/codegen/cosmos/genutil/v1beta1/genesis.ts +0 -1
- package/src/codegen/cosmos/gov/v1/genesis.ts +1 -14
- package/src/codegen/cosmos/gov/v1/gov.ts +4 -86
- package/src/codegen/cosmos/gov/v1/query.ts +3 -43
- package/src/codegen/cosmos/gov/v1/tx.amino.ts +15 -15
- package/src/codegen/cosmos/gov/v1/tx.ts +2 -7
- package/src/codegen/cosmos/gov/v1beta1/genesis.ts +1 -14
- package/src/codegen/cosmos/gov/v1beta1/gov.ts +5 -91
- package/src/codegen/cosmos/gov/v1beta1/query.ts +3 -43
- package/src/codegen/cosmos/gov/v1beta1/tx.amino.ts +12 -12
- package/src/codegen/cosmos/gov/v1beta1/tx.ts +2 -2
- package/src/codegen/cosmos/group/v1/events.ts +3 -16
- package/src/codegen/cosmos/group/v1/genesis.ts +1 -25
- package/src/codegen/cosmos/group/v1/query.ts +1 -61
- package/src/codegen/cosmos/group/v1/tx.amino.ts +42 -42
- package/src/codegen/cosmos/group/v1/tx.ts +5 -121
- package/src/codegen/cosmos/group/v1/types.ts +8 -205
- package/src/codegen/cosmos/mint/v1beta1/genesis.ts +0 -3
- package/src/codegen/cosmos/mint/v1beta1/mint.ts +0 -14
- package/src/codegen/cosmos/mint/v1beta1/query.ts +0 -3
- package/src/codegen/cosmos/nft/v1beta1/genesis.ts +0 -4
- package/src/codegen/cosmos/nft/v1beta1/nft.ts +0 -22
- package/src/codegen/cosmos/nft/v1beta1/query.ts +0 -1
- package/src/codegen/cosmos/nft/v1beta1/tx.amino.ts +3 -3
- package/src/codegen/cosmos/nft/v1beta1/tx.ts +0 -7
- package/src/codegen/cosmos/orm/v1/orm.ts +0 -71
- package/src/codegen/cosmos/orm/v1alpha1/schema.ts +2 -70
- package/src/codegen/cosmos/params/v1beta1/query.ts +0 -4
- package/src/codegen/cosmos/slashing/v1beta1/genesis.ts +0 -20
- package/src/codegen/cosmos/slashing/v1beta1/query.ts +0 -3
- package/src/codegen/cosmos/slashing/v1beta1/slashing.ts +1 -21
- package/src/codegen/cosmos/slashing/v1beta1/tx.amino.ts +3 -3
- package/src/codegen/cosmos/staking/v1beta1/authz.ts +2 -34
- package/src/codegen/cosmos/staking/v1beta1/genesis.ts +0 -22
- package/src/codegen/cosmos/staking/v1beta1/query.ts +0 -60
- package/src/codegen/cosmos/staking/v1beta1/staking.ts +2 -97
- package/src/codegen/cosmos/staking/v1beta1/tx.amino.ts +15 -16
- package/src/codegen/cosmos/staking/v1beta1/tx.ts +0 -7
- package/src/codegen/cosmos/tx/signing/v1beta1/signing.ts +2 -66
- package/src/codegen/cosmos/tx/v1beta1/service.ts +4 -74
- package/src/codegen/cosmos/tx/v1beta1/tx.ts +3 -181
- package/src/codegen/cosmos/upgrade/v1beta1/query.ts +0 -14
- package/src/codegen/cosmos/upgrade/v1beta1/tx.amino.ts +6 -6
- package/src/codegen/cosmos/upgrade/v1beta1/tx.ts +0 -4
- package/src/codegen/cosmos/upgrade/v1beta1/upgrade.ts +1 -35
- package/src/codegen/cosmos/vesting/v1beta1/tx.amino.ts +9 -9
- package/src/codegen/cosmos/vesting/v1beta1/tx.ts +1 -1
- package/src/codegen/cosmos/vesting/v1beta1/vesting.ts +1 -1
- package/src/codegen/cosmos_proto/bundle.ts +2 -2
- package/src/codegen/cosmos_proto/cosmos.ts +2 -37
- package/src/codegen/gogoproto/bundle.ts +2 -2
- package/src/codegen/google/api/http.ts +0 -66
- package/src/codegen/google/bundle.ts +13 -13
- package/src/codegen/google/protobuf/any.ts +0 -31
- package/src/codegen/google/protobuf/descriptor.ts +12 -638
- package/src/codegen/google/protobuf/duration.ts +1 -15
- package/src/codegen/google/protobuf/timestamp.ts +1 -13
- package/src/codegen/helpers.ts +3 -1
- package/src/codegen/ibc/applications/transfer/v1/genesis.ts +82 -0
- package/src/codegen/ibc/applications/transfer/v1/query.lcd.ts +49 -0
- package/src/codegen/ibc/applications/transfer/v1/query.rpc.Query.ts +65 -0
- package/src/codegen/ibc/applications/transfer/v1/query.ts +362 -0
- package/src/codegen/ibc/applications/transfer/v1/transfer.ts +167 -0
- package/src/codegen/ibc/applications/transfer/v1/tx.amino.ts +73 -0
- package/src/codegen/ibc/applications/transfer/v1/tx.registry.ts +37 -0
- package/src/codegen/ibc/applications/transfer/v1/tx.rpc.msg.ts +24 -0
- package/src/codegen/ibc/applications/transfer/v1/tx.ts +198 -0
- package/src/codegen/ibc/applications/transfer/v2/packet.ts +108 -0
- package/src/codegen/ibc/bundle.ts +137 -0
- package/src/codegen/ibc/client.ts +54 -0
- package/src/codegen/ibc/core/channel/v1/channel.ts +826 -0
- package/src/codegen/ibc/core/channel/v1/genesis.ts +229 -0
- package/src/codegen/ibc/core/channel/v1/query.lcd.ts +165 -0
- package/src/codegen/ibc/core/channel/v1/query.rpc.Query.ts +229 -0
- package/src/codegen/ibc/core/channel/v1/query.ts +2326 -0
- package/src/codegen/ibc/core/channel/v1/tx.amino.ts +670 -0
- package/src/codegen/ibc/core/channel/v1/tx.registry.ts +226 -0
- package/src/codegen/ibc/core/channel/v1/tx.rpc.msg.ts +117 -0
- package/src/codegen/ibc/core/channel/v1/tx.ts +1487 -0
- package/src/codegen/ibc/core/client/v1/client.ts +597 -0
- package/src/codegen/ibc/core/client/v1/genesis.ts +276 -0
- package/src/codegen/ibc/core/client/v1/query.lcd.ts +107 -0
- package/src/codegen/ibc/core/client/v1/query.rpc.Query.ts +141 -0
- package/src/codegen/ibc/core/client/v1/query.ts +1095 -0
- package/src/codegen/ibc/core/client/v1/tx.amino.ts +205 -0
- package/src/codegen/ibc/core/client/v1/tx.registry.ts +100 -0
- package/src/codegen/ibc/core/client/v1/tx.rpc.msg.ts +54 -0
- package/src/codegen/ibc/core/client/v1/tx.ts +571 -0
- package/src/codegen/ibc/core/commitment/v1/commitment.ts +257 -0
- package/src/codegen/ibc/core/connection/v1/connection.ts +685 -0
- package/src/codegen/ibc/core/connection/v1/genesis.ts +96 -0
- package/src/codegen/ibc/core/connection/v1/query.lcd.ts +68 -0
- package/src/codegen/ibc/core/connection/v1/query.rpc.Query.ts +102 -0
- package/src/codegen/ibc/core/connection/v1/query.ts +805 -0
- package/src/codegen/ibc/core/connection/v1/tx.amino.ts +343 -0
- package/src/codegen/ibc/core/connection/v1/tx.registry.ts +100 -0
- package/src/codegen/ibc/core/connection/v1/tx.rpc.msg.ts +57 -0
- package/src/codegen/ibc/core/connection/v1/tx.ts +770 -0
- package/src/codegen/ibc/core/port/v1/query.rpc.Query.ts +35 -0
- package/src/codegen/ibc/core/port/v1/query.ts +185 -0
- package/src/codegen/ibc/core/types/v1/genesis.ts +92 -0
- package/src/codegen/ibc/lcd.ts +125 -0
- package/src/codegen/ibc/lightclients/localhost/v1/localhost.ts +79 -0
- package/src/codegen/ibc/lightclients/solomachine/v1/solomachine.ts +1441 -0
- package/src/codegen/ibc/lightclients/solomachine/v2/solomachine.ts +1441 -0
- package/src/codegen/ibc/lightclients/tendermint/v1/tendermint.ts +585 -0
- package/src/codegen/ibc/rpc.query.ts +89 -0
- package/src/codegen/ibc/rpc.tx.ts +67 -0
- package/src/codegen/ics23/bundle.ts +3 -0
- package/src/codegen/index.ts +6 -3
- package/src/codegen/tendermint/abci/types.ts +8 -109
- package/src/codegen/tendermint/bundle.ts +22 -22
- package/src/codegen/tendermint/crypto/proof.ts +1 -4
- package/src/codegen/tendermint/libs/bits/types.ts +1 -1
- package/src/codegen/tendermint/p2p/types.ts +1 -1
- package/src/codegen/tendermint/types/evidence.ts +1 -1
- package/src/codegen/tendermint/types/params.ts +0 -36
- package/src/codegen/tendermint/types/types.ts +6 -50
- package/src/codegen/tendermint/types/validator.ts +1 -1
- package/src/codegen/tendermint/version/types.ts +1 -1
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { IdentifiedConnection, ConnectionPaths, Params } from "./connection";
|
|
2
|
+
import { Long } from "../../../../helpers";
|
|
3
|
+
import * as _m0 from "protobufjs/minimal";
|
|
4
|
+
/** GenesisState defines the ibc connection submodule's genesis state. */
|
|
5
|
+
|
|
6
|
+
/** GenesisState defines the ibc connection submodule's genesis state. */
|
|
7
|
+
|
|
8
|
+
function createBaseGenesisState() {
|
|
9
|
+
return {
|
|
10
|
+
connections: [],
|
|
11
|
+
clientConnectionPaths: [],
|
|
12
|
+
nextConnectionSequence: Long.UZERO,
|
|
13
|
+
params: undefined
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
export const GenesisState = {
|
|
17
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
18
|
+
for (const v of message.connections) {
|
|
19
|
+
IdentifiedConnection.encode(v, writer.uint32(10).fork()).ldelim();
|
|
20
|
+
}
|
|
21
|
+
for (const v of message.clientConnectionPaths) {
|
|
22
|
+
ConnectionPaths.encode(v, writer.uint32(18).fork()).ldelim();
|
|
23
|
+
}
|
|
24
|
+
if (!message.nextConnectionSequence.isZero()) {
|
|
25
|
+
writer.uint32(24).uint64(message.nextConnectionSequence);
|
|
26
|
+
}
|
|
27
|
+
if (message.params !== undefined) {
|
|
28
|
+
Params.encode(message.params, writer.uint32(34).fork()).ldelim();
|
|
29
|
+
}
|
|
30
|
+
return writer;
|
|
31
|
+
},
|
|
32
|
+
decode(input, length) {
|
|
33
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
34
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
35
|
+
const message = createBaseGenesisState();
|
|
36
|
+
while (reader.pos < end) {
|
|
37
|
+
const tag = reader.uint32();
|
|
38
|
+
switch (tag >>> 3) {
|
|
39
|
+
case 1:
|
|
40
|
+
message.connections.push(IdentifiedConnection.decode(reader, reader.uint32()));
|
|
41
|
+
break;
|
|
42
|
+
case 2:
|
|
43
|
+
message.clientConnectionPaths.push(ConnectionPaths.decode(reader, reader.uint32()));
|
|
44
|
+
break;
|
|
45
|
+
case 3:
|
|
46
|
+
message.nextConnectionSequence = reader.uint64();
|
|
47
|
+
break;
|
|
48
|
+
case 4:
|
|
49
|
+
message.params = Params.decode(reader, reader.uint32());
|
|
50
|
+
break;
|
|
51
|
+
default:
|
|
52
|
+
reader.skipType(tag & 7);
|
|
53
|
+
break;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
return message;
|
|
57
|
+
},
|
|
58
|
+
fromPartial(object) {
|
|
59
|
+
var _object$connections, _object$clientConnect;
|
|
60
|
+
const message = createBaseGenesisState();
|
|
61
|
+
message.connections = ((_object$connections = object.connections) === null || _object$connections === void 0 ? void 0 : _object$connections.map(e => IdentifiedConnection.fromPartial(e))) || [];
|
|
62
|
+
message.clientConnectionPaths = ((_object$clientConnect = object.clientConnectionPaths) === null || _object$clientConnect === void 0 ? void 0 : _object$clientConnect.map(e => ConnectionPaths.fromPartial(e))) || [];
|
|
63
|
+
message.nextConnectionSequence = object.nextConnectionSequence !== undefined && object.nextConnectionSequence !== null ? Long.fromValue(object.nextConnectionSequence) : Long.UZERO;
|
|
64
|
+
message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined;
|
|
65
|
+
return message;
|
|
66
|
+
}
|
|
67
|
+
};
|
|
@@ -0,0 +1,571 @@
|
|
|
1
|
+
import { PageRequest, PageResponse } from "../../../../cosmos/base/query/v1beta1/pagination";
|
|
2
|
+
import { ConnectionEnd, IdentifiedConnection } from "./connection";
|
|
3
|
+
import { Height, IdentifiedClientState } from "../../client/v1/client";
|
|
4
|
+
import { Any } from "../../../../google/protobuf/any";
|
|
5
|
+
import * as _m0 from "protobufjs/minimal";
|
|
6
|
+
import { Long } from "../../../../helpers";
|
|
7
|
+
/**
|
|
8
|
+
* QueryConnectionRequest is the request type for the Query/Connection RPC
|
|
9
|
+
* method
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* QueryConnectionRequest is the request type for the Query/Connection RPC
|
|
14
|
+
* method
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* QueryConnectionResponse is the response type for the Query/Connection RPC
|
|
19
|
+
* method. Besides the connection end, it includes a proof and the height from
|
|
20
|
+
* which the proof was retrieved.
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* QueryConnectionResponse is the response type for the Query/Connection RPC
|
|
25
|
+
* method. Besides the connection end, it includes a proof and the height from
|
|
26
|
+
* which the proof was retrieved.
|
|
27
|
+
*/
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* QueryConnectionsRequest is the request type for the Query/Connections RPC
|
|
31
|
+
* method
|
|
32
|
+
*/
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* QueryConnectionsRequest is the request type for the Query/Connections RPC
|
|
36
|
+
* method
|
|
37
|
+
*/
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* QueryConnectionsResponse is the response type for the Query/Connections RPC
|
|
41
|
+
* method.
|
|
42
|
+
*/
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* QueryConnectionsResponse is the response type for the Query/Connections RPC
|
|
46
|
+
* method.
|
|
47
|
+
*/
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* QueryClientConnectionsRequest is the request type for the
|
|
51
|
+
* Query/ClientConnections RPC method
|
|
52
|
+
*/
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* QueryClientConnectionsRequest is the request type for the
|
|
56
|
+
* Query/ClientConnections RPC method
|
|
57
|
+
*/
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* QueryClientConnectionsResponse is the response type for the
|
|
61
|
+
* Query/ClientConnections RPC method
|
|
62
|
+
*/
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* QueryClientConnectionsResponse is the response type for the
|
|
66
|
+
* Query/ClientConnections RPC method
|
|
67
|
+
*/
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* QueryConnectionClientStateRequest is the request type for the
|
|
71
|
+
* Query/ConnectionClientState RPC method
|
|
72
|
+
*/
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* QueryConnectionClientStateRequest is the request type for the
|
|
76
|
+
* Query/ConnectionClientState RPC method
|
|
77
|
+
*/
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* QueryConnectionClientStateResponse is the response type for the
|
|
81
|
+
* Query/ConnectionClientState RPC method
|
|
82
|
+
*/
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* QueryConnectionClientStateResponse is the response type for the
|
|
86
|
+
* Query/ConnectionClientState RPC method
|
|
87
|
+
*/
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* QueryConnectionConsensusStateRequest is the request type for the
|
|
91
|
+
* Query/ConnectionConsensusState RPC method
|
|
92
|
+
*/
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* QueryConnectionConsensusStateRequest is the request type for the
|
|
96
|
+
* Query/ConnectionConsensusState RPC method
|
|
97
|
+
*/
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* QueryConnectionConsensusStateResponse is the response type for the
|
|
101
|
+
* Query/ConnectionConsensusState RPC method
|
|
102
|
+
*/
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* QueryConnectionConsensusStateResponse is the response type for the
|
|
106
|
+
* Query/ConnectionConsensusState RPC method
|
|
107
|
+
*/
|
|
108
|
+
|
|
109
|
+
function createBaseQueryConnectionRequest() {
|
|
110
|
+
return {
|
|
111
|
+
connectionId: ""
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
export const QueryConnectionRequest = {
|
|
115
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
116
|
+
if (message.connectionId !== "") {
|
|
117
|
+
writer.uint32(10).string(message.connectionId);
|
|
118
|
+
}
|
|
119
|
+
return writer;
|
|
120
|
+
},
|
|
121
|
+
decode(input, length) {
|
|
122
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
123
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
124
|
+
const message = createBaseQueryConnectionRequest();
|
|
125
|
+
while (reader.pos < end) {
|
|
126
|
+
const tag = reader.uint32();
|
|
127
|
+
switch (tag >>> 3) {
|
|
128
|
+
case 1:
|
|
129
|
+
message.connectionId = reader.string();
|
|
130
|
+
break;
|
|
131
|
+
default:
|
|
132
|
+
reader.skipType(tag & 7);
|
|
133
|
+
break;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
return message;
|
|
137
|
+
},
|
|
138
|
+
fromPartial(object) {
|
|
139
|
+
var _object$connectionId;
|
|
140
|
+
const message = createBaseQueryConnectionRequest();
|
|
141
|
+
message.connectionId = (_object$connectionId = object.connectionId) !== null && _object$connectionId !== void 0 ? _object$connectionId : "";
|
|
142
|
+
return message;
|
|
143
|
+
}
|
|
144
|
+
};
|
|
145
|
+
function createBaseQueryConnectionResponse() {
|
|
146
|
+
return {
|
|
147
|
+
connection: undefined,
|
|
148
|
+
proof: new Uint8Array(),
|
|
149
|
+
proofHeight: undefined
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
export const QueryConnectionResponse = {
|
|
153
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
154
|
+
if (message.connection !== undefined) {
|
|
155
|
+
ConnectionEnd.encode(message.connection, writer.uint32(10).fork()).ldelim();
|
|
156
|
+
}
|
|
157
|
+
if (message.proof.length !== 0) {
|
|
158
|
+
writer.uint32(18).bytes(message.proof);
|
|
159
|
+
}
|
|
160
|
+
if (message.proofHeight !== undefined) {
|
|
161
|
+
Height.encode(message.proofHeight, writer.uint32(26).fork()).ldelim();
|
|
162
|
+
}
|
|
163
|
+
return writer;
|
|
164
|
+
},
|
|
165
|
+
decode(input, length) {
|
|
166
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
167
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
168
|
+
const message = createBaseQueryConnectionResponse();
|
|
169
|
+
while (reader.pos < end) {
|
|
170
|
+
const tag = reader.uint32();
|
|
171
|
+
switch (tag >>> 3) {
|
|
172
|
+
case 1:
|
|
173
|
+
message.connection = ConnectionEnd.decode(reader, reader.uint32());
|
|
174
|
+
break;
|
|
175
|
+
case 2:
|
|
176
|
+
message.proof = reader.bytes();
|
|
177
|
+
break;
|
|
178
|
+
case 3:
|
|
179
|
+
message.proofHeight = Height.decode(reader, reader.uint32());
|
|
180
|
+
break;
|
|
181
|
+
default:
|
|
182
|
+
reader.skipType(tag & 7);
|
|
183
|
+
break;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
return message;
|
|
187
|
+
},
|
|
188
|
+
fromPartial(object) {
|
|
189
|
+
var _object$proof;
|
|
190
|
+
const message = createBaseQueryConnectionResponse();
|
|
191
|
+
message.connection = object.connection !== undefined && object.connection !== null ? ConnectionEnd.fromPartial(object.connection) : undefined;
|
|
192
|
+
message.proof = (_object$proof = object.proof) !== null && _object$proof !== void 0 ? _object$proof : new Uint8Array();
|
|
193
|
+
message.proofHeight = object.proofHeight !== undefined && object.proofHeight !== null ? Height.fromPartial(object.proofHeight) : undefined;
|
|
194
|
+
return message;
|
|
195
|
+
}
|
|
196
|
+
};
|
|
197
|
+
function createBaseQueryConnectionsRequest() {
|
|
198
|
+
return {
|
|
199
|
+
pagination: undefined
|
|
200
|
+
};
|
|
201
|
+
}
|
|
202
|
+
export const QueryConnectionsRequest = {
|
|
203
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
204
|
+
if (message.pagination !== undefined) {
|
|
205
|
+
PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim();
|
|
206
|
+
}
|
|
207
|
+
return writer;
|
|
208
|
+
},
|
|
209
|
+
decode(input, length) {
|
|
210
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
211
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
212
|
+
const message = createBaseQueryConnectionsRequest();
|
|
213
|
+
while (reader.pos < end) {
|
|
214
|
+
const tag = reader.uint32();
|
|
215
|
+
switch (tag >>> 3) {
|
|
216
|
+
case 1:
|
|
217
|
+
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
218
|
+
break;
|
|
219
|
+
default:
|
|
220
|
+
reader.skipType(tag & 7);
|
|
221
|
+
break;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
return message;
|
|
225
|
+
},
|
|
226
|
+
fromPartial(object) {
|
|
227
|
+
const message = createBaseQueryConnectionsRequest();
|
|
228
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined;
|
|
229
|
+
return message;
|
|
230
|
+
}
|
|
231
|
+
};
|
|
232
|
+
function createBaseQueryConnectionsResponse() {
|
|
233
|
+
return {
|
|
234
|
+
connections: [],
|
|
235
|
+
pagination: undefined,
|
|
236
|
+
height: undefined
|
|
237
|
+
};
|
|
238
|
+
}
|
|
239
|
+
export const QueryConnectionsResponse = {
|
|
240
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
241
|
+
for (const v of message.connections) {
|
|
242
|
+
IdentifiedConnection.encode(v, writer.uint32(10).fork()).ldelim();
|
|
243
|
+
}
|
|
244
|
+
if (message.pagination !== undefined) {
|
|
245
|
+
PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
246
|
+
}
|
|
247
|
+
if (message.height !== undefined) {
|
|
248
|
+
Height.encode(message.height, writer.uint32(26).fork()).ldelim();
|
|
249
|
+
}
|
|
250
|
+
return writer;
|
|
251
|
+
},
|
|
252
|
+
decode(input, length) {
|
|
253
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
254
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
255
|
+
const message = createBaseQueryConnectionsResponse();
|
|
256
|
+
while (reader.pos < end) {
|
|
257
|
+
const tag = reader.uint32();
|
|
258
|
+
switch (tag >>> 3) {
|
|
259
|
+
case 1:
|
|
260
|
+
message.connections.push(IdentifiedConnection.decode(reader, reader.uint32()));
|
|
261
|
+
break;
|
|
262
|
+
case 2:
|
|
263
|
+
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
264
|
+
break;
|
|
265
|
+
case 3:
|
|
266
|
+
message.height = Height.decode(reader, reader.uint32());
|
|
267
|
+
break;
|
|
268
|
+
default:
|
|
269
|
+
reader.skipType(tag & 7);
|
|
270
|
+
break;
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
return message;
|
|
274
|
+
},
|
|
275
|
+
fromPartial(object) {
|
|
276
|
+
var _object$connections;
|
|
277
|
+
const message = createBaseQueryConnectionsResponse();
|
|
278
|
+
message.connections = ((_object$connections = object.connections) === null || _object$connections === void 0 ? void 0 : _object$connections.map(e => IdentifiedConnection.fromPartial(e))) || [];
|
|
279
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined;
|
|
280
|
+
message.height = object.height !== undefined && object.height !== null ? Height.fromPartial(object.height) : undefined;
|
|
281
|
+
return message;
|
|
282
|
+
}
|
|
283
|
+
};
|
|
284
|
+
function createBaseQueryClientConnectionsRequest() {
|
|
285
|
+
return {
|
|
286
|
+
clientId: ""
|
|
287
|
+
};
|
|
288
|
+
}
|
|
289
|
+
export const QueryClientConnectionsRequest = {
|
|
290
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
291
|
+
if (message.clientId !== "") {
|
|
292
|
+
writer.uint32(10).string(message.clientId);
|
|
293
|
+
}
|
|
294
|
+
return writer;
|
|
295
|
+
},
|
|
296
|
+
decode(input, length) {
|
|
297
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
298
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
299
|
+
const message = createBaseQueryClientConnectionsRequest();
|
|
300
|
+
while (reader.pos < end) {
|
|
301
|
+
const tag = reader.uint32();
|
|
302
|
+
switch (tag >>> 3) {
|
|
303
|
+
case 1:
|
|
304
|
+
message.clientId = reader.string();
|
|
305
|
+
break;
|
|
306
|
+
default:
|
|
307
|
+
reader.skipType(tag & 7);
|
|
308
|
+
break;
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
return message;
|
|
312
|
+
},
|
|
313
|
+
fromPartial(object) {
|
|
314
|
+
var _object$clientId;
|
|
315
|
+
const message = createBaseQueryClientConnectionsRequest();
|
|
316
|
+
message.clientId = (_object$clientId = object.clientId) !== null && _object$clientId !== void 0 ? _object$clientId : "";
|
|
317
|
+
return message;
|
|
318
|
+
}
|
|
319
|
+
};
|
|
320
|
+
function createBaseQueryClientConnectionsResponse() {
|
|
321
|
+
return {
|
|
322
|
+
connectionPaths: [],
|
|
323
|
+
proof: new Uint8Array(),
|
|
324
|
+
proofHeight: undefined
|
|
325
|
+
};
|
|
326
|
+
}
|
|
327
|
+
export const QueryClientConnectionsResponse = {
|
|
328
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
329
|
+
for (const v of message.connectionPaths) {
|
|
330
|
+
writer.uint32(10).string(v);
|
|
331
|
+
}
|
|
332
|
+
if (message.proof.length !== 0) {
|
|
333
|
+
writer.uint32(18).bytes(message.proof);
|
|
334
|
+
}
|
|
335
|
+
if (message.proofHeight !== undefined) {
|
|
336
|
+
Height.encode(message.proofHeight, writer.uint32(26).fork()).ldelim();
|
|
337
|
+
}
|
|
338
|
+
return writer;
|
|
339
|
+
},
|
|
340
|
+
decode(input, length) {
|
|
341
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
342
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
343
|
+
const message = createBaseQueryClientConnectionsResponse();
|
|
344
|
+
while (reader.pos < end) {
|
|
345
|
+
const tag = reader.uint32();
|
|
346
|
+
switch (tag >>> 3) {
|
|
347
|
+
case 1:
|
|
348
|
+
message.connectionPaths.push(reader.string());
|
|
349
|
+
break;
|
|
350
|
+
case 2:
|
|
351
|
+
message.proof = reader.bytes();
|
|
352
|
+
break;
|
|
353
|
+
case 3:
|
|
354
|
+
message.proofHeight = Height.decode(reader, reader.uint32());
|
|
355
|
+
break;
|
|
356
|
+
default:
|
|
357
|
+
reader.skipType(tag & 7);
|
|
358
|
+
break;
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
return message;
|
|
362
|
+
},
|
|
363
|
+
fromPartial(object) {
|
|
364
|
+
var _object$connectionPat, _object$proof2;
|
|
365
|
+
const message = createBaseQueryClientConnectionsResponse();
|
|
366
|
+
message.connectionPaths = ((_object$connectionPat = object.connectionPaths) === null || _object$connectionPat === void 0 ? void 0 : _object$connectionPat.map(e => e)) || [];
|
|
367
|
+
message.proof = (_object$proof2 = object.proof) !== null && _object$proof2 !== void 0 ? _object$proof2 : new Uint8Array();
|
|
368
|
+
message.proofHeight = object.proofHeight !== undefined && object.proofHeight !== null ? Height.fromPartial(object.proofHeight) : undefined;
|
|
369
|
+
return message;
|
|
370
|
+
}
|
|
371
|
+
};
|
|
372
|
+
function createBaseQueryConnectionClientStateRequest() {
|
|
373
|
+
return {
|
|
374
|
+
connectionId: ""
|
|
375
|
+
};
|
|
376
|
+
}
|
|
377
|
+
export const QueryConnectionClientStateRequest = {
|
|
378
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
379
|
+
if (message.connectionId !== "") {
|
|
380
|
+
writer.uint32(10).string(message.connectionId);
|
|
381
|
+
}
|
|
382
|
+
return writer;
|
|
383
|
+
},
|
|
384
|
+
decode(input, length) {
|
|
385
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
386
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
387
|
+
const message = createBaseQueryConnectionClientStateRequest();
|
|
388
|
+
while (reader.pos < end) {
|
|
389
|
+
const tag = reader.uint32();
|
|
390
|
+
switch (tag >>> 3) {
|
|
391
|
+
case 1:
|
|
392
|
+
message.connectionId = reader.string();
|
|
393
|
+
break;
|
|
394
|
+
default:
|
|
395
|
+
reader.skipType(tag & 7);
|
|
396
|
+
break;
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
return message;
|
|
400
|
+
},
|
|
401
|
+
fromPartial(object) {
|
|
402
|
+
var _object$connectionId2;
|
|
403
|
+
const message = createBaseQueryConnectionClientStateRequest();
|
|
404
|
+
message.connectionId = (_object$connectionId2 = object.connectionId) !== null && _object$connectionId2 !== void 0 ? _object$connectionId2 : "";
|
|
405
|
+
return message;
|
|
406
|
+
}
|
|
407
|
+
};
|
|
408
|
+
function createBaseQueryConnectionClientStateResponse() {
|
|
409
|
+
return {
|
|
410
|
+
identifiedClientState: undefined,
|
|
411
|
+
proof: new Uint8Array(),
|
|
412
|
+
proofHeight: undefined
|
|
413
|
+
};
|
|
414
|
+
}
|
|
415
|
+
export const QueryConnectionClientStateResponse = {
|
|
416
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
417
|
+
if (message.identifiedClientState !== undefined) {
|
|
418
|
+
IdentifiedClientState.encode(message.identifiedClientState, writer.uint32(10).fork()).ldelim();
|
|
419
|
+
}
|
|
420
|
+
if (message.proof.length !== 0) {
|
|
421
|
+
writer.uint32(18).bytes(message.proof);
|
|
422
|
+
}
|
|
423
|
+
if (message.proofHeight !== undefined) {
|
|
424
|
+
Height.encode(message.proofHeight, writer.uint32(26).fork()).ldelim();
|
|
425
|
+
}
|
|
426
|
+
return writer;
|
|
427
|
+
},
|
|
428
|
+
decode(input, length) {
|
|
429
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
430
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
431
|
+
const message = createBaseQueryConnectionClientStateResponse();
|
|
432
|
+
while (reader.pos < end) {
|
|
433
|
+
const tag = reader.uint32();
|
|
434
|
+
switch (tag >>> 3) {
|
|
435
|
+
case 1:
|
|
436
|
+
message.identifiedClientState = IdentifiedClientState.decode(reader, reader.uint32());
|
|
437
|
+
break;
|
|
438
|
+
case 2:
|
|
439
|
+
message.proof = reader.bytes();
|
|
440
|
+
break;
|
|
441
|
+
case 3:
|
|
442
|
+
message.proofHeight = Height.decode(reader, reader.uint32());
|
|
443
|
+
break;
|
|
444
|
+
default:
|
|
445
|
+
reader.skipType(tag & 7);
|
|
446
|
+
break;
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
return message;
|
|
450
|
+
},
|
|
451
|
+
fromPartial(object) {
|
|
452
|
+
var _object$proof3;
|
|
453
|
+
const message = createBaseQueryConnectionClientStateResponse();
|
|
454
|
+
message.identifiedClientState = object.identifiedClientState !== undefined && object.identifiedClientState !== null ? IdentifiedClientState.fromPartial(object.identifiedClientState) : undefined;
|
|
455
|
+
message.proof = (_object$proof3 = object.proof) !== null && _object$proof3 !== void 0 ? _object$proof3 : new Uint8Array();
|
|
456
|
+
message.proofHeight = object.proofHeight !== undefined && object.proofHeight !== null ? Height.fromPartial(object.proofHeight) : undefined;
|
|
457
|
+
return message;
|
|
458
|
+
}
|
|
459
|
+
};
|
|
460
|
+
function createBaseQueryConnectionConsensusStateRequest() {
|
|
461
|
+
return {
|
|
462
|
+
connectionId: "",
|
|
463
|
+
revisionNumber: Long.UZERO,
|
|
464
|
+
revisionHeight: Long.UZERO
|
|
465
|
+
};
|
|
466
|
+
}
|
|
467
|
+
export const QueryConnectionConsensusStateRequest = {
|
|
468
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
469
|
+
if (message.connectionId !== "") {
|
|
470
|
+
writer.uint32(10).string(message.connectionId);
|
|
471
|
+
}
|
|
472
|
+
if (!message.revisionNumber.isZero()) {
|
|
473
|
+
writer.uint32(16).uint64(message.revisionNumber);
|
|
474
|
+
}
|
|
475
|
+
if (!message.revisionHeight.isZero()) {
|
|
476
|
+
writer.uint32(24).uint64(message.revisionHeight);
|
|
477
|
+
}
|
|
478
|
+
return writer;
|
|
479
|
+
},
|
|
480
|
+
decode(input, length) {
|
|
481
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
482
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
483
|
+
const message = createBaseQueryConnectionConsensusStateRequest();
|
|
484
|
+
while (reader.pos < end) {
|
|
485
|
+
const tag = reader.uint32();
|
|
486
|
+
switch (tag >>> 3) {
|
|
487
|
+
case 1:
|
|
488
|
+
message.connectionId = reader.string();
|
|
489
|
+
break;
|
|
490
|
+
case 2:
|
|
491
|
+
message.revisionNumber = reader.uint64();
|
|
492
|
+
break;
|
|
493
|
+
case 3:
|
|
494
|
+
message.revisionHeight = reader.uint64();
|
|
495
|
+
break;
|
|
496
|
+
default:
|
|
497
|
+
reader.skipType(tag & 7);
|
|
498
|
+
break;
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
return message;
|
|
502
|
+
},
|
|
503
|
+
fromPartial(object) {
|
|
504
|
+
var _object$connectionId3;
|
|
505
|
+
const message = createBaseQueryConnectionConsensusStateRequest();
|
|
506
|
+
message.connectionId = (_object$connectionId3 = object.connectionId) !== null && _object$connectionId3 !== void 0 ? _object$connectionId3 : "";
|
|
507
|
+
message.revisionNumber = object.revisionNumber !== undefined && object.revisionNumber !== null ? Long.fromValue(object.revisionNumber) : Long.UZERO;
|
|
508
|
+
message.revisionHeight = object.revisionHeight !== undefined && object.revisionHeight !== null ? Long.fromValue(object.revisionHeight) : Long.UZERO;
|
|
509
|
+
return message;
|
|
510
|
+
}
|
|
511
|
+
};
|
|
512
|
+
function createBaseQueryConnectionConsensusStateResponse() {
|
|
513
|
+
return {
|
|
514
|
+
consensusState: undefined,
|
|
515
|
+
clientId: "",
|
|
516
|
+
proof: new Uint8Array(),
|
|
517
|
+
proofHeight: undefined
|
|
518
|
+
};
|
|
519
|
+
}
|
|
520
|
+
export const QueryConnectionConsensusStateResponse = {
|
|
521
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
522
|
+
if (message.consensusState !== undefined) {
|
|
523
|
+
Any.encode(message.consensusState, writer.uint32(10).fork()).ldelim();
|
|
524
|
+
}
|
|
525
|
+
if (message.clientId !== "") {
|
|
526
|
+
writer.uint32(18).string(message.clientId);
|
|
527
|
+
}
|
|
528
|
+
if (message.proof.length !== 0) {
|
|
529
|
+
writer.uint32(26).bytes(message.proof);
|
|
530
|
+
}
|
|
531
|
+
if (message.proofHeight !== undefined) {
|
|
532
|
+
Height.encode(message.proofHeight, writer.uint32(34).fork()).ldelim();
|
|
533
|
+
}
|
|
534
|
+
return writer;
|
|
535
|
+
},
|
|
536
|
+
decode(input, length) {
|
|
537
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
538
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
539
|
+
const message = createBaseQueryConnectionConsensusStateResponse();
|
|
540
|
+
while (reader.pos < end) {
|
|
541
|
+
const tag = reader.uint32();
|
|
542
|
+
switch (tag >>> 3) {
|
|
543
|
+
case 1:
|
|
544
|
+
message.consensusState = Any.decode(reader, reader.uint32());
|
|
545
|
+
break;
|
|
546
|
+
case 2:
|
|
547
|
+
message.clientId = reader.string();
|
|
548
|
+
break;
|
|
549
|
+
case 3:
|
|
550
|
+
message.proof = reader.bytes();
|
|
551
|
+
break;
|
|
552
|
+
case 4:
|
|
553
|
+
message.proofHeight = Height.decode(reader, reader.uint32());
|
|
554
|
+
break;
|
|
555
|
+
default:
|
|
556
|
+
reader.skipType(tag & 7);
|
|
557
|
+
break;
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
return message;
|
|
561
|
+
},
|
|
562
|
+
fromPartial(object) {
|
|
563
|
+
var _object$clientId2, _object$proof4;
|
|
564
|
+
const message = createBaseQueryConnectionConsensusStateResponse();
|
|
565
|
+
message.consensusState = object.consensusState !== undefined && object.consensusState !== null ? Any.fromPartial(object.consensusState) : undefined;
|
|
566
|
+
message.clientId = (_object$clientId2 = object.clientId) !== null && _object$clientId2 !== void 0 ? _object$clientId2 : "";
|
|
567
|
+
message.proof = (_object$proof4 = object.proof) !== null && _object$proof4 !== void 0 ? _object$proof4 : new Uint8Array();
|
|
568
|
+
message.proofHeight = object.proofHeight !== undefined && object.proofHeight !== null ? Height.fromPartial(object.proofHeight) : undefined;
|
|
569
|
+
return message;
|
|
570
|
+
}
|
|
571
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
|
+
import { setPaginationParams } from "../../../../helpers";
|
|
3
|
+
export class LCDQueryClient {
|
|
4
|
+
constructor({
|
|
5
|
+
requestClient
|
|
6
|
+
}) {
|
|
7
|
+
_defineProperty(this, "req", void 0);
|
|
8
|
+
this.req = requestClient;
|
|
9
|
+
this.connection = this.connection.bind(this);
|
|
10
|
+
this.connections = this.connections.bind(this);
|
|
11
|
+
this.clientConnections = this.clientConnections.bind(this);
|
|
12
|
+
this.connectionClientState = this.connectionClientState.bind(this);
|
|
13
|
+
this.connectionConsensusState = this.connectionConsensusState.bind(this);
|
|
14
|
+
}
|
|
15
|
+
/* Connection queries an IBC connection end. */
|
|
16
|
+
|
|
17
|
+
async connection(params) {
|
|
18
|
+
const endpoint = `ibc/core/connection/v1/connections/${params.connectionId}`;
|
|
19
|
+
return await this.req.get(endpoint);
|
|
20
|
+
}
|
|
21
|
+
/* Connections queries all the IBC connections of a chain. */
|
|
22
|
+
|
|
23
|
+
async connections(params = {
|
|
24
|
+
pagination: undefined
|
|
25
|
+
}) {
|
|
26
|
+
const options = {
|
|
27
|
+
params: {}
|
|
28
|
+
};
|
|
29
|
+
if (typeof (params === null || params === void 0 ? void 0 : params.pagination) !== "undefined") {
|
|
30
|
+
setPaginationParams(options, params.pagination);
|
|
31
|
+
}
|
|
32
|
+
const endpoint = `ibc/core/connection/v1/connections`;
|
|
33
|
+
return await this.req.get(endpoint, options);
|
|
34
|
+
}
|
|
35
|
+
/* ClientConnections queries the connection paths associated with a client
|
|
36
|
+
state. */
|
|
37
|
+
|
|
38
|
+
async clientConnections(params) {
|
|
39
|
+
const endpoint = `ibc/core/connection/v1/client_connections/${params.clientId}`;
|
|
40
|
+
return await this.req.get(endpoint);
|
|
41
|
+
}
|
|
42
|
+
/* ConnectionClientState queries the client state associated with the
|
|
43
|
+
connection. */
|
|
44
|
+
|
|
45
|
+
async connectionClientState(params) {
|
|
46
|
+
const endpoint = `ibc/core/connection/v1/connections/${params.connectionId}/client_state`;
|
|
47
|
+
return await this.req.get(endpoint);
|
|
48
|
+
}
|
|
49
|
+
/* ConnectionConsensusState queries the consensus state associated with the
|
|
50
|
+
connection. */
|
|
51
|
+
|
|
52
|
+
async connectionConsensusState(params) {
|
|
53
|
+
const endpoint = `ibc/core/connection/v1/connections/${params.connectionId}/consensus_state/revision/${params.revisionNumber}/height/${params.revisionHeight}`;
|
|
54
|
+
return await this.req.get(endpoint);
|
|
55
|
+
}
|
|
56
|
+
}
|