@iconlake/client 0.0.1
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/client.ts +170 -0
- package/cosmos.auth.v1beta1/index.ts +6 -0
- package/cosmos.auth.v1beta1/module.ts +102 -0
- package/cosmos.auth.v1beta1/registry.ts +7 -0
- package/cosmos.auth.v1beta1/rest.ts +641 -0
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/auth.ts +324 -0
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/genesis.ts +95 -0
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/query.ts +1212 -0
- package/cosmos.auth.v1beta1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
- package/cosmos.auth.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
- package/cosmos.auth.v1beta1/types/gogoproto/gogo.ts +2 -0
- package/cosmos.auth.v1beta1/types/google/api/annotations.ts +2 -0
- package/cosmos.auth.v1beta1/types/google/api/http.ts +589 -0
- package/cosmos.auth.v1beta1/types/google/protobuf/any.ts +240 -0
- package/cosmos.auth.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
- package/cosmos.auth.v1beta1/types.ts +11 -0
- package/cosmos.authz.v1beta1/index.ts +6 -0
- package/cosmos.authz.v1beta1/module.ts +207 -0
- package/cosmos.authz.v1beta1/registry.ts +13 -0
- package/cosmos.authz.v1beta1/rest.ts +604 -0
- package/cosmos.authz.v1beta1/types/cosmos/authz/v1beta1/authz.ts +325 -0
- package/cosmos.authz.v1beta1/types/cosmos/authz/v1beta1/event.ts +175 -0
- package/cosmos.authz.v1beta1/types/cosmos/authz/v1beta1/genesis.ts +78 -0
- package/cosmos.authz.v1beta1/types/cosmos/authz/v1beta1/query.ts +516 -0
- package/cosmos.authz.v1beta1/types/cosmos/authz/v1beta1/tx.ts +493 -0
- package/cosmos.authz.v1beta1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
- package/cosmos.authz.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
- package/cosmos.authz.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
- package/cosmos.authz.v1beta1/types/gogoproto/gogo.ts +2 -0
- package/cosmos.authz.v1beta1/types/google/api/annotations.ts +2 -0
- package/cosmos.authz.v1beta1/types/google/api/http.ts +589 -0
- package/cosmos.authz.v1beta1/types/google/protobuf/any.ts +240 -0
- package/cosmos.authz.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
- package/cosmos.authz.v1beta1/types/google/protobuf/timestamp.ts +216 -0
- package/cosmos.authz.v1beta1/types.ts +17 -0
- package/cosmos.bank.v1beta1/index.ts +6 -0
- package/cosmos.bank.v1beta1/module.ts +182 -0
- package/cosmos.bank.v1beta1/registry.ts +11 -0
- package/cosmos.bank.v1beta1/rest.ts +656 -0
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/authz.ts +77 -0
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/bank.ts +604 -0
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/genesis.ts +203 -0
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/query.ts +1366 -0
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/tx.ts +289 -0
- package/cosmos.bank.v1beta1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
- package/cosmos.bank.v1beta1/types/cosmos/base/v1beta1/coin.ts +261 -0
- package/cosmos.bank.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
- package/cosmos.bank.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
- package/cosmos.bank.v1beta1/types/gogoproto/gogo.ts +2 -0
- package/cosmos.bank.v1beta1/types/google/api/annotations.ts +2 -0
- package/cosmos.bank.v1beta1/types/google/api/http.ts +589 -0
- package/cosmos.bank.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
- package/cosmos.bank.v1beta1/types.ts +25 -0
- package/cosmos.base.node.v1beta1/index.ts +6 -0
- package/cosmos.base.node.v1beta1/module.ts +96 -0
- package/cosmos.base.node.v1beta1/registry.ts +7 -0
- package/cosmos.base.node.v1beta1/rest.ts +170 -0
- package/cosmos.base.node.v1beta1/types/cosmos/base/node/v1beta1/query.ts +137 -0
- package/cosmos.base.node.v1beta1/types/google/api/annotations.ts +2 -0
- package/cosmos.base.node.v1beta1/types/google/api/http.ts +589 -0
- package/cosmos.base.node.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
- package/cosmos.base.node.v1beta1/types.ts +5 -0
- package/cosmos.base.tendermint.v1beta1/index.ts +6 -0
- package/cosmos.base.tendermint.v1beta1/module.ts +110 -0
- package/cosmos.base.tendermint.v1beta1/registry.ts +7 -0
- package/cosmos.base.tendermint.v1beta1/rest.ts +1147 -0
- package/cosmos.base.tendermint.v1beta1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
- package/cosmos.base.tendermint.v1beta1/types/cosmos/base/tendermint/v1beta1/query.ts +1646 -0
- package/cosmos.base.tendermint.v1beta1/types/cosmos/base/tendermint/v1beta1/types.ts +442 -0
- package/cosmos.base.tendermint.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
- package/cosmos.base.tendermint.v1beta1/types/gogoproto/gogo.ts +2 -0
- package/cosmos.base.tendermint.v1beta1/types/google/api/annotations.ts +2 -0
- package/cosmos.base.tendermint.v1beta1/types/google/api/http.ts +589 -0
- package/cosmos.base.tendermint.v1beta1/types/google/protobuf/any.ts +240 -0
- package/cosmos.base.tendermint.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
- package/cosmos.base.tendermint.v1beta1/types/google/protobuf/timestamp.ts +216 -0
- package/cosmos.base.tendermint.v1beta1/types/tendermint/crypto/keys.ts +129 -0
- package/cosmos.base.tendermint.v1beta1/types/tendermint/crypto/proof.ts +439 -0
- package/cosmos.base.tendermint.v1beta1/types/tendermint/p2p/types.ts +423 -0
- package/cosmos.base.tendermint.v1beta1/types/tendermint/types/block.ts +112 -0
- package/cosmos.base.tendermint.v1beta1/types/tendermint/types/evidence.ts +412 -0
- package/cosmos.base.tendermint.v1beta1/types/tendermint/types/types.ts +1452 -0
- package/cosmos.base.tendermint.v1beta1/types/tendermint/types/validator.ts +308 -0
- package/cosmos.base.tendermint.v1beta1/types/tendermint/version/types.ts +184 -0
- package/cosmos.base.tendermint.v1beta1/types.ts +19 -0
- package/cosmos.crisis.v1beta1/index.ts +6 -0
- package/cosmos.crisis.v1beta1/module.ts +129 -0
- package/cosmos.crisis.v1beta1/registry.ts +9 -0
- package/cosmos.crisis.v1beta1/rest.ts +152 -0
- package/cosmos.crisis.v1beta1/types/cosmos/base/v1beta1/coin.ts +261 -0
- package/cosmos.crisis.v1beta1/types/cosmos/crisis/v1beta1/genesis.ts +79 -0
- package/cosmos.crisis.v1beta1/types/cosmos/crisis/v1beta1/tx.ts +159 -0
- package/cosmos.crisis.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
- package/cosmos.crisis.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
- package/cosmos.crisis.v1beta1/types/gogoproto/gogo.ts +2 -0
- package/cosmos.crisis.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
- package/cosmos.crisis.v1beta1/types.ts +5 -0
- package/cosmos.distribution.v1beta1/index.ts +6 -0
- package/cosmos.distribution.v1beta1/module.ts +266 -0
- package/cosmos.distribution.v1beta1/registry.ts +15 -0
- package/cosmos.distribution.v1beta1/rest.ts +557 -0
- package/cosmos.distribution.v1beta1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
- package/cosmos.distribution.v1beta1/types/cosmos/base/v1beta1/coin.ts +261 -0
- package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/distribution.ts +945 -0
- package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/genesis.ts +849 -0
- package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/query.ts +1289 -0
- package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/tx.ts +550 -0
- package/cosmos.distribution.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
- package/cosmos.distribution.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
- package/cosmos.distribution.v1beta1/types/gogoproto/gogo.ts +2 -0
- package/cosmos.distribution.v1beta1/types/google/api/annotations.ts +2 -0
- package/cosmos.distribution.v1beta1/types/google/api/http.ts +589 -0
- package/cosmos.distribution.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
- package/cosmos.distribution.v1beta1/types.ts +43 -0
- package/cosmos.evidence.v1beta1/index.ts +6 -0
- package/cosmos.evidence.v1beta1/module.ts +131 -0
- package/cosmos.evidence.v1beta1/registry.ts +9 -0
- package/cosmos.evidence.v1beta1/rest.ts +402 -0
- package/cosmos.evidence.v1beta1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
- package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/evidence.ts +161 -0
- package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/genesis.ts +73 -0
- package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/query.ts +343 -0
- package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/tx.ts +213 -0
- package/cosmos.evidence.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
- package/cosmos.evidence.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
- package/cosmos.evidence.v1beta1/types/gogoproto/gogo.ts +2 -0
- package/cosmos.evidence.v1beta1/types/google/api/annotations.ts +2 -0
- package/cosmos.evidence.v1beta1/types/google/api/http.ts +589 -0
- package/cosmos.evidence.v1beta1/types/google/protobuf/any.ts +240 -0
- package/cosmos.evidence.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
- package/cosmos.evidence.v1beta1/types/google/protobuf/timestamp.ts +216 -0
- package/cosmos.evidence.v1beta1/types.ts +7 -0
- package/cosmos.feegrant.v1beta1/index.ts +6 -0
- package/cosmos.feegrant.v1beta1/module.ts +170 -0
- package/cosmos.feegrant.v1beta1/registry.ts +11 -0
- package/cosmos.feegrant.v1beta1/rest.ts +452 -0
- package/cosmos.feegrant.v1beta1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
- package/cosmos.feegrant.v1beta1/types/cosmos/base/v1beta1/coin.ts +261 -0
- package/cosmos.feegrant.v1beta1/types/cosmos/feegrant/v1beta1/feegrant.ts +409 -0
- package/cosmos.feegrant.v1beta1/types/cosmos/feegrant/v1beta1/genesis.ts +76 -0
- package/cosmos.feegrant.v1beta1/types/cosmos/feegrant/v1beta1/query.ts +484 -0
- package/cosmos.feegrant.v1beta1/types/cosmos/feegrant/v1beta1/tx.ts +294 -0
- package/cosmos.feegrant.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
- package/cosmos.feegrant.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
- package/cosmos.feegrant.v1beta1/types/gogoproto/gogo.ts +2 -0
- package/cosmos.feegrant.v1beta1/types/google/api/annotations.ts +2 -0
- package/cosmos.feegrant.v1beta1/types/google/api/http.ts +589 -0
- package/cosmos.feegrant.v1beta1/types/google/protobuf/any.ts +240 -0
- package/cosmos.feegrant.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
- package/cosmos.feegrant.v1beta1/types/google/protobuf/duration.ts +187 -0
- package/cosmos.feegrant.v1beta1/types/google/protobuf/timestamp.ts +216 -0
- package/cosmos.feegrant.v1beta1/types.ts +13 -0
- package/cosmos.gov.v1/index.ts +6 -0
- package/cosmos.gov.v1/module.ts +244 -0
- package/cosmos.gov.v1/registry.ts +15 -0
- package/cosmos.gov.v1/rest.ts +798 -0
- package/cosmos.gov.v1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
- package/cosmos.gov.v1/types/cosmos/base/v1beta1/coin.ts +261 -0
- package/cosmos.gov.v1/types/cosmos/gov/v1/genesis.ts +208 -0
- package/cosmos.gov.v1/types/cosmos/gov/v1/gov.ts +925 -0
- package/cosmos.gov.v1/types/cosmos/gov/v1/query.ts +1202 -0
- package/cosmos.gov.v1/types/cosmos/gov/v1/tx.ts +763 -0
- package/cosmos.gov.v1/types/cosmos/msg/v1/msg.ts +2 -0
- package/cosmos.gov.v1/types/cosmos_proto/cosmos.ts +247 -0
- package/cosmos.gov.v1/types/gogoproto/gogo.ts +2 -0
- package/cosmos.gov.v1/types/google/api/annotations.ts +2 -0
- package/cosmos.gov.v1/types/google/api/http.ts +589 -0
- package/cosmos.gov.v1/types/google/protobuf/any.ts +240 -0
- package/cosmos.gov.v1/types/google/protobuf/descriptor.ts +3753 -0
- package/cosmos.gov.v1/types/google/protobuf/duration.ts +187 -0
- package/cosmos.gov.v1/types/google/protobuf/timestamp.ts +216 -0
- package/cosmos.gov.v1/types.ts +21 -0
- package/cosmos.gov.v1beta1/index.ts +6 -0
- package/cosmos.gov.v1beta1/module.ts +246 -0
- package/cosmos.gov.v1beta1/registry.ts +15 -0
- package/cosmos.gov.v1beta1/rest.ts +864 -0
- package/cosmos.gov.v1beta1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
- package/cosmos.gov.v1beta1/types/cosmos/base/v1beta1/coin.ts +261 -0
- package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/genesis.ts +206 -0
- package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/gov.ts +1015 -0
- package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/query.ts +1200 -0
- package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/tx.ts +612 -0
- package/cosmos.gov.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
- package/cosmos.gov.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
- package/cosmos.gov.v1beta1/types/gogoproto/gogo.ts +2 -0
- package/cosmos.gov.v1beta1/types/google/api/annotations.ts +2 -0
- package/cosmos.gov.v1beta1/types/google/api/http.ts +589 -0
- package/cosmos.gov.v1beta1/types/google/protobuf/any.ts +240 -0
- package/cosmos.gov.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
- package/cosmos.gov.v1beta1/types/google/protobuf/duration.ts +187 -0
- package/cosmos.gov.v1beta1/types/google/protobuf/timestamp.ts +216 -0
- package/cosmos.gov.v1beta1/types.ts +23 -0
- package/cosmos.group.v1/index.ts +6 -0
- package/cosmos.group.v1/module.ts +598 -0
- package/cosmos.group.v1/registry.ts +35 -0
- package/cosmos.group.v1/rest.ts +1162 -0
- package/cosmos.group.v1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
- package/cosmos.group.v1/types/cosmos/group/v1/events.ts +568 -0
- package/cosmos.group.v1/types/cosmos/group/v1/genesis.ts +228 -0
- package/cosmos.group.v1/types/cosmos/group/v1/query.ts +1897 -0
- package/cosmos.group.v1/types/cosmos/group/v1/tx.ts +2113 -0
- package/cosmos.group.v1/types/cosmos/group/v1/types.ts +1422 -0
- package/cosmos.group.v1/types/cosmos/msg/v1/msg.ts +2 -0
- package/cosmos.group.v1/types/cosmos_proto/cosmos.ts +247 -0
- package/cosmos.group.v1/types/gogoproto/gogo.ts +2 -0
- package/cosmos.group.v1/types/google/api/annotations.ts +2 -0
- package/cosmos.group.v1/types/google/api/http.ts +589 -0
- package/cosmos.group.v1/types/google/protobuf/any.ts +240 -0
- package/cosmos.group.v1/types/google/protobuf/descriptor.ts +3753 -0
- package/cosmos.group.v1/types/google/protobuf/duration.ts +187 -0
- package/cosmos.group.v1/types/google/protobuf/timestamp.ts +216 -0
- package/cosmos.group.v1/types.ts +45 -0
- package/cosmos.mint.v1beta1/index.ts +6 -0
- package/cosmos.mint.v1beta1/module.ts +100 -0
- package/cosmos.mint.v1beta1/registry.ts +7 -0
- package/cosmos.mint.v1beta1/rest.ts +253 -0
- package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/genesis.ts +92 -0
- package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/mint.ts +234 -0
- package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/query.ts +412 -0
- package/cosmos.mint.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
- package/cosmos.mint.v1beta1/types/gogoproto/gogo.ts +2 -0
- package/cosmos.mint.v1beta1/types/google/api/annotations.ts +2 -0
- package/cosmos.mint.v1beta1/types/google/api/http.ts +589 -0
- package/cosmos.mint.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
- package/cosmos.mint.v1beta1/types.ts +9 -0
- package/cosmos.nft.v1beta1/index.ts +6 -0
- package/cosmos.nft.v1beta1/module.ts +108 -0
- package/cosmos.nft.v1beta1/registry.ts +7 -0
- package/cosmos.nft.v1beta1/rest.ts +685 -0
- package/cosmos.nft.v1beta1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
- package/cosmos.nft.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
- package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/event.ts +251 -0
- package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/genesis.ts +163 -0
- package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/nft.ts +240 -0
- package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/query.ts +964 -0
- package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/tx.ts +173 -0
- package/cosmos.nft.v1beta1/types/google/api/annotations.ts +2 -0
- package/cosmos.nft.v1beta1/types/google/api/http.ts +589 -0
- package/cosmos.nft.v1beta1/types/google/protobuf/any.ts +240 -0
- package/cosmos.nft.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
- package/cosmos.nft.v1beta1/types.ts +17 -0
- package/cosmos.params.v1beta1/index.ts +6 -0
- package/cosmos.params.v1beta1/module.ts +102 -0
- package/cosmos.params.v1beta1/registry.ts +7 -0
- package/cosmos.params.v1beta1/rest.ts +220 -0
- package/cosmos.params.v1beta1/types/cosmos/params/v1beta1/params.ts +174 -0
- package/cosmos.params.v1beta1/types/cosmos/params/v1beta1/query.ts +364 -0
- package/cosmos.params.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
- package/cosmos.params.v1beta1/types/gogoproto/gogo.ts +2 -0
- package/cosmos.params.v1beta1/types/google/api/annotations.ts +2 -0
- package/cosmos.params.v1beta1/types/google/api/http.ts +589 -0
- package/cosmos.params.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
- package/cosmos.params.v1beta1/types.ts +11 -0
- package/cosmos.slashing.v1beta1/index.ts +6 -0
- package/cosmos.slashing.v1beta1/module.ts +139 -0
- package/cosmos.slashing.v1beta1/registry.ts +9 -0
- package/cosmos.slashing.v1beta1/rest.ts +368 -0
- package/cosmos.slashing.v1beta1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
- package/cosmos.slashing.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
- package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/genesis.ts +364 -0
- package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/query.ts +411 -0
- package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/slashing.ts +352 -0
- package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/tx.ts +141 -0
- package/cosmos.slashing.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
- package/cosmos.slashing.v1beta1/types/gogoproto/gogo.ts +2 -0
- package/cosmos.slashing.v1beta1/types/google/api/annotations.ts +2 -0
- package/cosmos.slashing.v1beta1/types/google/api/http.ts +589 -0
- package/cosmos.slashing.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
- package/cosmos.slashing.v1beta1/types/google/protobuf/duration.ts +187 -0
- package/cosmos.slashing.v1beta1/types/google/protobuf/timestamp.ts +216 -0
- package/cosmos.slashing.v1beta1/types.ts +15 -0
- package/cosmos.staking.v1beta1/index.ts +6 -0
- package/cosmos.staking.v1beta1/module.ts +340 -0
- package/cosmos.staking.v1beta1/registry.ts +19 -0
- package/cosmos.staking.v1beta1/rest.ts +1239 -0
- package/cosmos.staking.v1beta1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
- package/cosmos.staking.v1beta1/types/cosmos/base/v1beta1/coin.ts +261 -0
- package/cosmos.staking.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/authz.ts +245 -0
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/genesis.ts +322 -0
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/query.ts +2109 -0
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/staking.ts +1829 -0
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/tx.ts +1005 -0
- package/cosmos.staking.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
- package/cosmos.staking.v1beta1/types/gogoproto/gogo.ts +2 -0
- package/cosmos.staking.v1beta1/types/google/api/annotations.ts +2 -0
- package/cosmos.staking.v1beta1/types/google/api/http.ts +589 -0
- package/cosmos.staking.v1beta1/types/google/protobuf/any.ts +240 -0
- package/cosmos.staking.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
- package/cosmos.staking.v1beta1/types/google/protobuf/duration.ts +187 -0
- package/cosmos.staking.v1beta1/types/google/protobuf/timestamp.ts +216 -0
- package/cosmos.staking.v1beta1/types/tendermint/crypto/keys.ts +129 -0
- package/cosmos.staking.v1beta1/types/tendermint/crypto/proof.ts +439 -0
- package/cosmos.staking.v1beta1/types/tendermint/types/types.ts +1452 -0
- package/cosmos.staking.v1beta1/types/tendermint/types/validator.ts +308 -0
- package/cosmos.staking.v1beta1/types/tendermint/version/types.ts +184 -0
- package/cosmos.staking.v1beta1/types.ts +51 -0
- package/cosmos.tx.v1beta1/index.ts +6 -0
- package/cosmos.tx.v1beta1/module.ts +122 -0
- package/cosmos.tx.v1beta1/registry.ts +7 -0
- package/cosmos.tx.v1beta1/rest.ts +1372 -0
- package/cosmos.tx.v1beta1/types/cosmos/base/abci/v1beta1/abci.ts +1040 -0
- package/cosmos.tx.v1beta1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
- package/cosmos.tx.v1beta1/types/cosmos/base/v1beta1/coin.ts +261 -0
- package/cosmos.tx.v1beta1/types/cosmos/crypto/multisig/v1beta1/multisig.ts +195 -0
- package/cosmos.tx.v1beta1/types/cosmos/tx/signing/v1beta1/signing.ts +556 -0
- package/cosmos.tx.v1beta1/types/cosmos/tx/v1beta1/service.ts +1057 -0
- package/cosmos.tx.v1beta1/types/cosmos/tx/v1beta1/tx.ts +1355 -0
- package/cosmos.tx.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
- package/cosmos.tx.v1beta1/types/gogoproto/gogo.ts +2 -0
- package/cosmos.tx.v1beta1/types/google/api/annotations.ts +2 -0
- package/cosmos.tx.v1beta1/types/google/api/http.ts +589 -0
- package/cosmos.tx.v1beta1/types/google/protobuf/any.ts +240 -0
- package/cosmos.tx.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
- package/cosmos.tx.v1beta1/types/google/protobuf/duration.ts +187 -0
- package/cosmos.tx.v1beta1/types/google/protobuf/timestamp.ts +216 -0
- package/cosmos.tx.v1beta1/types/tendermint/abci/types.ts +4154 -0
- package/cosmos.tx.v1beta1/types/tendermint/crypto/keys.ts +129 -0
- package/cosmos.tx.v1beta1/types/tendermint/crypto/proof.ts +439 -0
- package/cosmos.tx.v1beta1/types/tendermint/types/block.ts +112 -0
- package/cosmos.tx.v1beta1/types/tendermint/types/evidence.ts +412 -0
- package/cosmos.tx.v1beta1/types/tendermint/types/params.ts +514 -0
- package/cosmos.tx.v1beta1/types/tendermint/types/types.ts +1452 -0
- package/cosmos.tx.v1beta1/types/tendermint/types/validator.ts +308 -0
- package/cosmos.tx.v1beta1/types/tendermint/version/types.ts +184 -0
- package/cosmos.tx.v1beta1/types.ts +31 -0
- package/cosmos.upgrade.v1beta1/index.ts +6 -0
- package/cosmos.upgrade.v1beta1/module.ts +170 -0
- package/cosmos.upgrade.v1beta1/registry.ts +11 -0
- package/cosmos.upgrade.v1beta1/rest.ts +468 -0
- package/cosmos.upgrade.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
- package/cosmos.upgrade.v1beta1/types/cosmos/upgrade/v1beta1/query.ts +728 -0
- package/cosmos.upgrade.v1beta1/types/cosmos/upgrade/v1beta1/tx.ts +284 -0
- package/cosmos.upgrade.v1beta1/types/cosmos/upgrade/v1beta1/upgrade.ts +429 -0
- package/cosmos.upgrade.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
- package/cosmos.upgrade.v1beta1/types/gogoproto/gogo.ts +2 -0
- package/cosmos.upgrade.v1beta1/types/google/api/annotations.ts +2 -0
- package/cosmos.upgrade.v1beta1/types/google/api/http.ts +589 -0
- package/cosmos.upgrade.v1beta1/types/google/protobuf/any.ts +240 -0
- package/cosmos.upgrade.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
- package/cosmos.upgrade.v1beta1/types/google/protobuf/timestamp.ts +216 -0
- package/cosmos.upgrade.v1beta1/types.ts +13 -0
- package/cosmos.vesting.v1beta1/index.ts +6 -0
- package/cosmos.vesting.v1beta1/module.ts +207 -0
- package/cosmos.vesting.v1beta1/registry.ts +13 -0
- package/cosmos.vesting.v1beta1/rest.ts +297 -0
- package/cosmos.vesting.v1beta1/types/cosmos/auth/v1beta1/auth.ts +324 -0
- package/cosmos.vesting.v1beta1/types/cosmos/base/v1beta1/coin.ts +261 -0
- package/cosmos.vesting.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
- package/cosmos.vesting.v1beta1/types/cosmos/vesting/v1beta1/tx.ts +540 -0
- package/cosmos.vesting.v1beta1/types/cosmos/vesting/v1beta1/vesting.ts +529 -0
- package/cosmos.vesting.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
- package/cosmos.vesting.v1beta1/types/gogoproto/gogo.ts +2 -0
- package/cosmos.vesting.v1beta1/types/google/protobuf/any.ts +240 -0
- package/cosmos.vesting.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
- package/cosmos.vesting.v1beta1/types.ts +17 -0
- package/env.ts +7 -0
- package/helpers.ts +32 -0
- package/ibc.applications.interchain_accounts.controller.v1/index.ts +6 -0
- package/ibc.applications.interchain_accounts.controller.v1/module.ts +98 -0
- package/ibc.applications.interchain_accounts.controller.v1/registry.ts +7 -0
- package/ibc.applications.interchain_accounts.controller.v1/rest.ts +346 -0
- package/ibc.applications.interchain_accounts.controller.v1/types/gogoproto/gogo.ts +2 -0
- package/ibc.applications.interchain_accounts.controller.v1/types/google/api/annotations.ts +2 -0
- package/ibc.applications.interchain_accounts.controller.v1/types/google/api/http.ts +589 -0
- package/ibc.applications.interchain_accounts.controller.v1/types/google/protobuf/any.ts +240 -0
- package/ibc.applications.interchain_accounts.controller.v1/types/google/protobuf/descriptor.ts +3753 -0
- package/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/controller/v1/controller.ts +75 -0
- package/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/controller/v1/query.ts +274 -0
- package/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/controller/v1/tx.ts +361 -0
- package/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/v1/packet.ts +234 -0
- package/ibc.applications.interchain_accounts.controller.v1/types.ts +7 -0
- package/ibc.applications.interchain_accounts.host.v1/index.ts +6 -0
- package/ibc.applications.interchain_accounts.host.v1/module.ts +98 -0
- package/ibc.applications.interchain_accounts.host.v1/registry.ts +7 -0
- package/ibc.applications.interchain_accounts.host.v1/rest.ts +183 -0
- package/ibc.applications.interchain_accounts.host.v1/types/gogoproto/gogo.ts +2 -0
- package/ibc.applications.interchain_accounts.host.v1/types/google/api/annotations.ts +2 -0
- package/ibc.applications.interchain_accounts.host.v1/types/google/api/http.ts +589 -0
- package/ibc.applications.interchain_accounts.host.v1/types/google/protobuf/descriptor.ts +3753 -0
- package/ibc.applications.interchain_accounts.host.v1/types/ibc/applications/interchain_accounts/host/v1/host.ts +92 -0
- package/ibc.applications.interchain_accounts.host.v1/types/ibc/applications/interchain_accounts/host/v1/query.ts +141 -0
- package/ibc.applications.interchain_accounts.host.v1/types.ts +7 -0
- package/ibc.applications.transfer.v1/index.ts +6 -0
- package/ibc.applications.transfer.v1/module.ts +133 -0
- package/ibc.applications.transfer.v1/registry.ts +9 -0
- package/ibc.applications.transfer.v1/rest.ts +544 -0
- package/ibc.applications.transfer.v1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
- package/ibc.applications.transfer.v1/types/cosmos/base/v1beta1/coin.ts +261 -0
- package/ibc.applications.transfer.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +429 -0
- package/ibc.applications.transfer.v1/types/cosmos_proto/cosmos.ts +247 -0
- package/ibc.applications.transfer.v1/types/gogoproto/gogo.ts +2 -0
- package/ibc.applications.transfer.v1/types/google/api/annotations.ts +2 -0
- package/ibc.applications.transfer.v1/types/google/api/http.ts +589 -0
- package/ibc.applications.transfer.v1/types/google/protobuf/any.ts +240 -0
- package/ibc.applications.transfer.v1/types/google/protobuf/descriptor.ts +3753 -0
- package/ibc.applications.transfer.v1/types/google/protobuf/timestamp.ts +216 -0
- package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/genesis.ts +100 -0
- package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/query.ts +659 -0
- package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/transfer.ts +168 -0
- package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/tx.ts +287 -0
- package/ibc.applications.transfer.v1/types/ibc/core/client/v1/client.ts +608 -0
- package/ibc.applications.transfer.v1/types.ts +9 -0
- package/ibc.core.channel.v1/index.ts +6 -0
- package/ibc.core.channel.v1/module.ts +112 -0
- package/ibc.core.channel.v1/registry.ts +7 -0
- package/ibc.core.channel.v1/rest.ts +1375 -0
- package/ibc.core.channel.v1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
- package/ibc.core.channel.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +429 -0
- package/ibc.core.channel.v1/types/cosmos_proto/cosmos.ts +247 -0
- package/ibc.core.channel.v1/types/gogoproto/gogo.ts +2 -0
- package/ibc.core.channel.v1/types/google/api/annotations.ts +2 -0
- package/ibc.core.channel.v1/types/google/api/http.ts +589 -0
- package/ibc.core.channel.v1/types/google/protobuf/any.ts +240 -0
- package/ibc.core.channel.v1/types/google/protobuf/descriptor.ts +3753 -0
- package/ibc.core.channel.v1/types/google/protobuf/timestamp.ts +216 -0
- package/ibc.core.channel.v1/types/ibc/core/channel/v1/channel.ts +905 -0
- package/ibc.core.channel.v1/types/ibc/core/channel/v1/genesis.ts +301 -0
- package/ibc.core.channel.v1/types/ibc/core/channel/v1/query.ts +2472 -0
- package/ibc.core.channel.v1/types/ibc/core/channel/v1/tx.ts +1784 -0
- package/ibc.core.channel.v1/types/ibc/core/client/v1/client.ts +608 -0
- package/ibc.core.channel.v1/types.ts +21 -0
- package/ibc.core.client.v1/index.ts +6 -0
- package/ibc.core.client.v1/module.ts +114 -0
- package/ibc.core.client.v1/registry.ts +7 -0
- package/ibc.core.client.v1/rest.ts +1084 -0
- package/ibc.core.client.v1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
- package/ibc.core.client.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +429 -0
- package/ibc.core.client.v1/types/cosmos_proto/cosmos.ts +247 -0
- package/ibc.core.client.v1/types/gogoproto/gogo.ts +2 -0
- package/ibc.core.client.v1/types/google/api/annotations.ts +2 -0
- package/ibc.core.client.v1/types/google/api/http.ts +589 -0
- package/ibc.core.client.v1/types/google/protobuf/any.ts +240 -0
- package/ibc.core.client.v1/types/google/protobuf/descriptor.ts +3753 -0
- package/ibc.core.client.v1/types/google/protobuf/timestamp.ts +216 -0
- package/ibc.core.client.v1/types/ibc/core/client/v1/client.ts +608 -0
- package/ibc.core.client.v1/types/ibc/core/client/v1/genesis.ts +357 -0
- package/ibc.core.client.v1/types/ibc/core/client/v1/query.ts +1390 -0
- package/ibc.core.client.v1/types/ibc/core/client/v1/tx.ts +691 -0
- package/ibc.core.client.v1/types.ts +23 -0
- package/ibc.core.connection.v1/index.ts +6 -0
- package/ibc.core.connection.v1/module.ts +110 -0
- package/ibc.core.connection.v1/registry.ts +7 -0
- package/ibc.core.connection.v1/rest.ts +889 -0
- package/ibc.core.connection.v1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
- package/ibc.core.connection.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +429 -0
- package/ibc.core.connection.v1/types/cosmos_proto/cosmos.ts +247 -0
- package/ibc.core.connection.v1/types/gogoproto/gogo.ts +2 -0
- package/ibc.core.connection.v1/types/google/api/annotations.ts +2 -0
- package/ibc.core.connection.v1/types/google/api/http.ts +589 -0
- package/ibc.core.connection.v1/types/google/protobuf/any.ts +240 -0
- package/ibc.core.connection.v1/types/google/protobuf/descriptor.ts +3753 -0
- package/ibc.core.connection.v1/types/google/protobuf/timestamp.ts +216 -0
- package/ibc.core.connection.v1/types/ibc/core/client/v1/client.ts +608 -0
- package/ibc.core.connection.v1/types/ibc/core/commitment/v1/commitment.ts +299 -0
- package/ibc.core.connection.v1/types/ibc/core/connection/v1/connection.ts +698 -0
- package/ibc.core.connection.v1/types/ibc/core/connection/v1/genesis.ts +152 -0
- package/ibc.core.connection.v1/types/ibc/core/connection/v1/query.ts +1041 -0
- package/ibc.core.connection.v1/types/ibc/core/connection/v1/tx.ts +908 -0
- package/ibc.core.connection.v1/types/proofs.ts +1408 -0
- package/ibc.core.connection.v1/types.ts +19 -0
- package/iconlake.icon/index.ts +6 -0
- package/iconlake.icon/module.ts +135 -0
- package/iconlake.icon/registry.ts +9 -0
- package/iconlake.icon/rest.ts +206 -0
- package/iconlake.icon/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
- package/iconlake.icon/types/gogoproto/gogo.ts +2 -0
- package/iconlake.icon/types/google/api/annotations.ts +2 -0
- package/iconlake.icon/types/google/api/http.ts +589 -0
- package/iconlake.icon/types/google/protobuf/descriptor.ts +3753 -0
- package/iconlake.icon/types/iconlake/icon/genesis.ts +74 -0
- package/iconlake.icon/types/iconlake/icon/params.ts +58 -0
- package/iconlake.icon/types/iconlake/icon/query.ts +276 -0
- package/iconlake.icon/types/iconlake/icon/tx.ts +374 -0
- package/iconlake.icon/types.ts +11 -0
- package/iconlake.iconlake/index.ts +6 -0
- package/iconlake.iconlake/module.ts +133 -0
- package/iconlake.iconlake/registry.ts +9 -0
- package/iconlake.iconlake/rest.ts +342 -0
- package/iconlake.iconlake/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
- package/iconlake.iconlake/types/cosmos/base/v1beta1/coin.ts +261 -0
- package/iconlake.iconlake/types/cosmos_proto/cosmos.ts +247 -0
- package/iconlake.iconlake/types/gogoproto/gogo.ts +2 -0
- package/iconlake.iconlake/types/google/api/annotations.ts +2 -0
- package/iconlake.iconlake/types/google/api/http.ts +589 -0
- package/iconlake.iconlake/types/google/protobuf/descriptor.ts +3753 -0
- package/iconlake.iconlake/types/iconlake/iconlake/account.ts +140 -0
- package/iconlake.iconlake/types/iconlake/iconlake/genesis.ts +91 -0
- package/iconlake.iconlake/types/iconlake/iconlake/params.ts +58 -0
- package/iconlake.iconlake/types/iconlake/iconlake/query.ts +388 -0
- package/iconlake.iconlake/types/iconlake/iconlake/tx.ts +214 -0
- package/iconlake.iconlake/types.ts +9 -0
- package/index.ts +75 -0
- package/modules.ts +5 -0
- package/package.json +35 -0
- package/tsconfig.json +12 -0
- package/types.d.ts +21 -0
|
@@ -0,0 +1,1375 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/*
|
|
4
|
+
* ---------------------------------------------------------------
|
|
5
|
+
* ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
|
|
6
|
+
* ## ##
|
|
7
|
+
* ## AUTHOR: acacode ##
|
|
8
|
+
* ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
|
|
9
|
+
* ---------------------------------------------------------------
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* `Any` contains an arbitrary serialized protocol buffer message along with a
|
|
14
|
+
URL that describes the type of the serialized message.
|
|
15
|
+
|
|
16
|
+
Protobuf library provides support to pack/unpack Any values in the form
|
|
17
|
+
of utility functions or additional generated methods of the Any type.
|
|
18
|
+
|
|
19
|
+
Example 1: Pack and unpack a message in C++.
|
|
20
|
+
|
|
21
|
+
Foo foo = ...;
|
|
22
|
+
Any any;
|
|
23
|
+
any.PackFrom(foo);
|
|
24
|
+
...
|
|
25
|
+
if (any.UnpackTo(&foo)) {
|
|
26
|
+
...
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
Example 2: Pack and unpack a message in Java.
|
|
30
|
+
|
|
31
|
+
Foo foo = ...;
|
|
32
|
+
Any any = Any.pack(foo);
|
|
33
|
+
...
|
|
34
|
+
if (any.is(Foo.class)) {
|
|
35
|
+
foo = any.unpack(Foo.class);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
Example 3: Pack and unpack a message in Python.
|
|
39
|
+
|
|
40
|
+
foo = Foo(...)
|
|
41
|
+
any = Any()
|
|
42
|
+
any.Pack(foo)
|
|
43
|
+
...
|
|
44
|
+
if any.Is(Foo.DESCRIPTOR):
|
|
45
|
+
any.Unpack(foo)
|
|
46
|
+
...
|
|
47
|
+
|
|
48
|
+
Example 4: Pack and unpack a message in Go
|
|
49
|
+
|
|
50
|
+
foo := &pb.Foo{...}
|
|
51
|
+
any, err := anypb.New(foo)
|
|
52
|
+
if err != nil {
|
|
53
|
+
...
|
|
54
|
+
}
|
|
55
|
+
...
|
|
56
|
+
foo := &pb.Foo{}
|
|
57
|
+
if err := any.UnmarshalTo(foo); err != nil {
|
|
58
|
+
...
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
The pack methods provided by protobuf library will by default use
|
|
62
|
+
'type.googleapis.com/full.type.name' as the type URL and the unpack
|
|
63
|
+
methods only use the fully qualified type name after the last '/'
|
|
64
|
+
in the type URL, for example "foo.bar.com/x/y.z" will yield type
|
|
65
|
+
name "y.z".
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
JSON
|
|
69
|
+
====
|
|
70
|
+
The JSON representation of an `Any` value uses the regular
|
|
71
|
+
representation of the deserialized, embedded message, with an
|
|
72
|
+
additional field `@type` which contains the type URL. Example:
|
|
73
|
+
|
|
74
|
+
package google.profile;
|
|
75
|
+
message Person {
|
|
76
|
+
string first_name = 1;
|
|
77
|
+
string last_name = 2;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
{
|
|
81
|
+
"@type": "type.googleapis.com/google.profile.Person",
|
|
82
|
+
"firstName": <string>,
|
|
83
|
+
"lastName": <string>
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
If the embedded message type is well-known and has a custom JSON
|
|
87
|
+
representation, that representation will be embedded adding a field
|
|
88
|
+
`value` which holds the custom JSON in addition to the `@type`
|
|
89
|
+
field. Example (for message [google.protobuf.Duration][]):
|
|
90
|
+
|
|
91
|
+
{
|
|
92
|
+
"@type": "type.googleapis.com/google.protobuf.Duration",
|
|
93
|
+
"value": "1.212s"
|
|
94
|
+
}
|
|
95
|
+
*/
|
|
96
|
+
export interface ProtobufAny {
|
|
97
|
+
/**
|
|
98
|
+
* A URL/resource name that uniquely identifies the type of the serialized
|
|
99
|
+
* protocol buffer message. This string must contain at least
|
|
100
|
+
* one "/" character. The last segment of the URL's path must represent
|
|
101
|
+
* the fully qualified name of the type (as in
|
|
102
|
+
* `path/google.protobuf.Duration`). The name should be in a canonical form
|
|
103
|
+
* (e.g., leading "." is not accepted).
|
|
104
|
+
*
|
|
105
|
+
* In practice, teams usually precompile into the binary all types that they
|
|
106
|
+
* expect it to use in the context of Any. However, for URLs which use the
|
|
107
|
+
* scheme `http`, `https`, or no scheme, one can optionally set up a type
|
|
108
|
+
* server that maps type URLs to message definitions as follows:
|
|
109
|
+
* * If no scheme is provided, `https` is assumed.
|
|
110
|
+
* * An HTTP GET on the URL must yield a [google.protobuf.Type][]
|
|
111
|
+
* value in binary format, or produce an error.
|
|
112
|
+
* * Applications are allowed to cache lookup results based on the
|
|
113
|
+
* URL, or have them precompiled into a binary to avoid any
|
|
114
|
+
* lookup. Therefore, binary compatibility needs to be preserved
|
|
115
|
+
* on changes to types. (Use versioned type names to manage
|
|
116
|
+
* breaking changes.)
|
|
117
|
+
* Note: this functionality is not currently available in the official
|
|
118
|
+
* protobuf release, and it is not used for type URLs beginning with
|
|
119
|
+
* type.googleapis.com.
|
|
120
|
+
* Schemes other than `http`, `https` (or the empty scheme) might be
|
|
121
|
+
* used with implementation specific semantics.
|
|
122
|
+
*/
|
|
123
|
+
"@type"?: string;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
export interface RpcStatus {
|
|
127
|
+
/** @format int32 */
|
|
128
|
+
code?: number;
|
|
129
|
+
message?: string;
|
|
130
|
+
details?: ProtobufAny[];
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* Channel defines pipeline for exactly-once packet delivery between specific
|
|
135
|
+
modules on separate blockchains, which has at least one end capable of
|
|
136
|
+
sending packets and one end capable of receiving packets.
|
|
137
|
+
*/
|
|
138
|
+
export interface V1Channel {
|
|
139
|
+
/**
|
|
140
|
+
* current state of the channel end
|
|
141
|
+
* State defines if a channel is in one of the following states:
|
|
142
|
+
* CLOSED, INIT, TRYOPEN, OPEN or UNINITIALIZED.
|
|
143
|
+
*
|
|
144
|
+
* - STATE_UNINITIALIZED_UNSPECIFIED: Default State
|
|
145
|
+
* - STATE_INIT: A channel has just started the opening handshake.
|
|
146
|
+
* - STATE_TRYOPEN: A channel has acknowledged the handshake step on the counterparty chain.
|
|
147
|
+
* - STATE_OPEN: A channel has completed the handshake. Open channels are
|
|
148
|
+
* ready to send and receive packets.
|
|
149
|
+
* - STATE_CLOSED: A channel has been closed and can no longer be used to send or receive
|
|
150
|
+
* packets.
|
|
151
|
+
*/
|
|
152
|
+
state?: V1State;
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* whether the channel is ordered or unordered
|
|
156
|
+
* - ORDER_NONE_UNSPECIFIED: zero-value for channel ordering
|
|
157
|
+
* - ORDER_UNORDERED: packets can be delivered in any order, which may differ from the order in
|
|
158
|
+
* which they were sent.
|
|
159
|
+
* - ORDER_ORDERED: packets are delivered exactly in the order which they were sent
|
|
160
|
+
*/
|
|
161
|
+
ordering?: V1Order;
|
|
162
|
+
|
|
163
|
+
/** counterparty channel end */
|
|
164
|
+
counterparty?: V1Counterparty;
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* list of connection identifiers, in order, along which packets sent on
|
|
168
|
+
* this channel will travel
|
|
169
|
+
*/
|
|
170
|
+
connection_hops?: string[];
|
|
171
|
+
|
|
172
|
+
/** opaque channel version, which is agreed upon during the handshake */
|
|
173
|
+
version?: string;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
export interface V1Counterparty {
|
|
177
|
+
/** port on the counterparty chain which owns the other end of the channel. */
|
|
178
|
+
port_id?: string;
|
|
179
|
+
|
|
180
|
+
/** channel end on the counterparty chain */
|
|
181
|
+
channel_id?: string;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* Normally the RevisionHeight is incremented at each height while keeping
|
|
186
|
+
RevisionNumber the same. However some consensus algorithms may choose to
|
|
187
|
+
reset the height in certain conditions e.g. hard forks, state-machine
|
|
188
|
+
breaking changes In these cases, the RevisionNumber is incremented so that
|
|
189
|
+
height continues to be monitonically increasing even as the RevisionHeight
|
|
190
|
+
gets reset
|
|
191
|
+
*/
|
|
192
|
+
export interface V1Height {
|
|
193
|
+
/**
|
|
194
|
+
* the revision that the client is currently on
|
|
195
|
+
* @format uint64
|
|
196
|
+
*/
|
|
197
|
+
revision_number?: string;
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* the height within the given revision
|
|
201
|
+
* @format uint64
|
|
202
|
+
*/
|
|
203
|
+
revision_height?: string;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* IdentifiedChannel defines a channel with additional port and channel
|
|
208
|
+
identifier fields.
|
|
209
|
+
*/
|
|
210
|
+
export interface V1IdentifiedChannel {
|
|
211
|
+
/**
|
|
212
|
+
* current state of the channel end
|
|
213
|
+
* State defines if a channel is in one of the following states:
|
|
214
|
+
* CLOSED, INIT, TRYOPEN, OPEN or UNINITIALIZED.
|
|
215
|
+
*
|
|
216
|
+
* - STATE_UNINITIALIZED_UNSPECIFIED: Default State
|
|
217
|
+
* - STATE_INIT: A channel has just started the opening handshake.
|
|
218
|
+
* - STATE_TRYOPEN: A channel has acknowledged the handshake step on the counterparty chain.
|
|
219
|
+
* - STATE_OPEN: A channel has completed the handshake. Open channels are
|
|
220
|
+
* ready to send and receive packets.
|
|
221
|
+
* - STATE_CLOSED: A channel has been closed and can no longer be used to send or receive
|
|
222
|
+
* packets.
|
|
223
|
+
*/
|
|
224
|
+
state?: V1State;
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* whether the channel is ordered or unordered
|
|
228
|
+
* - ORDER_NONE_UNSPECIFIED: zero-value for channel ordering
|
|
229
|
+
* - ORDER_UNORDERED: packets can be delivered in any order, which may differ from the order in
|
|
230
|
+
* which they were sent.
|
|
231
|
+
* - ORDER_ORDERED: packets are delivered exactly in the order which they were sent
|
|
232
|
+
*/
|
|
233
|
+
ordering?: V1Order;
|
|
234
|
+
|
|
235
|
+
/** counterparty channel end */
|
|
236
|
+
counterparty?: V1Counterparty;
|
|
237
|
+
|
|
238
|
+
/**
|
|
239
|
+
* list of connection identifiers, in order, along which packets sent on
|
|
240
|
+
* this channel will travel
|
|
241
|
+
*/
|
|
242
|
+
connection_hops?: string[];
|
|
243
|
+
|
|
244
|
+
/** opaque channel version, which is agreed upon during the handshake */
|
|
245
|
+
version?: string;
|
|
246
|
+
|
|
247
|
+
/** port identifier */
|
|
248
|
+
port_id?: string;
|
|
249
|
+
|
|
250
|
+
/** channel identifier */
|
|
251
|
+
channel_id?: string;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* IdentifiedClientState defines a client state with an additional client
|
|
256
|
+
identifier field.
|
|
257
|
+
*/
|
|
258
|
+
export interface V1IdentifiedClientState {
|
|
259
|
+
/** client identifier */
|
|
260
|
+
client_id?: string;
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* client state
|
|
264
|
+
* `Any` contains an arbitrary serialized protocol buffer message along with a
|
|
265
|
+
* URL that describes the type of the serialized message.
|
|
266
|
+
*
|
|
267
|
+
* Protobuf library provides support to pack/unpack Any values in the form
|
|
268
|
+
* of utility functions or additional generated methods of the Any type.
|
|
269
|
+
* Example 1: Pack and unpack a message in C++.
|
|
270
|
+
* Foo foo = ...;
|
|
271
|
+
* Any any;
|
|
272
|
+
* any.PackFrom(foo);
|
|
273
|
+
* ...
|
|
274
|
+
* if (any.UnpackTo(&foo)) {
|
|
275
|
+
* ...
|
|
276
|
+
* }
|
|
277
|
+
* Example 2: Pack and unpack a message in Java.
|
|
278
|
+
* Any any = Any.pack(foo);
|
|
279
|
+
* if (any.is(Foo.class)) {
|
|
280
|
+
* foo = any.unpack(Foo.class);
|
|
281
|
+
* Example 3: Pack and unpack a message in Python.
|
|
282
|
+
* foo = Foo(...)
|
|
283
|
+
* any = Any()
|
|
284
|
+
* any.Pack(foo)
|
|
285
|
+
* if any.Is(Foo.DESCRIPTOR):
|
|
286
|
+
* any.Unpack(foo)
|
|
287
|
+
* Example 4: Pack and unpack a message in Go
|
|
288
|
+
* foo := &pb.Foo{...}
|
|
289
|
+
* any, err := anypb.New(foo)
|
|
290
|
+
* if err != nil {
|
|
291
|
+
* ...
|
|
292
|
+
* }
|
|
293
|
+
* ...
|
|
294
|
+
* foo := &pb.Foo{}
|
|
295
|
+
* if err := any.UnmarshalTo(foo); err != nil {
|
|
296
|
+
* The pack methods provided by protobuf library will by default use
|
|
297
|
+
* 'type.googleapis.com/full.type.name' as the type URL and the unpack
|
|
298
|
+
* methods only use the fully qualified type name after the last '/'
|
|
299
|
+
* in the type URL, for example "foo.bar.com/x/y.z" will yield type
|
|
300
|
+
* name "y.z".
|
|
301
|
+
* JSON
|
|
302
|
+
* ====
|
|
303
|
+
* The JSON representation of an `Any` value uses the regular
|
|
304
|
+
* representation of the deserialized, embedded message, with an
|
|
305
|
+
* additional field `@type` which contains the type URL. Example:
|
|
306
|
+
* package google.profile;
|
|
307
|
+
* message Person {
|
|
308
|
+
* string first_name = 1;
|
|
309
|
+
* string last_name = 2;
|
|
310
|
+
* {
|
|
311
|
+
* "@type": "type.googleapis.com/google.profile.Person",
|
|
312
|
+
* "firstName": <string>,
|
|
313
|
+
* "lastName": <string>
|
|
314
|
+
* If the embedded message type is well-known and has a custom JSON
|
|
315
|
+
* representation, that representation will be embedded adding a field
|
|
316
|
+
* `value` which holds the custom JSON in addition to the `@type`
|
|
317
|
+
* field. Example (for message [google.protobuf.Duration][]):
|
|
318
|
+
* "@type": "type.googleapis.com/google.protobuf.Duration",
|
|
319
|
+
* "value": "1.212s"
|
|
320
|
+
*/
|
|
321
|
+
client_state?: ProtobufAny;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
/**
|
|
325
|
+
* MsgAcknowledgementResponse defines the Msg/Acknowledgement response type.
|
|
326
|
+
*/
|
|
327
|
+
export interface V1MsgAcknowledgementResponse {
|
|
328
|
+
/**
|
|
329
|
+
* - RESPONSE_RESULT_TYPE_UNSPECIFIED: Default zero value enumeration
|
|
330
|
+
* - RESPONSE_RESULT_TYPE_NOOP: The message did not call the IBC application callbacks (because, for example, the packet had already been relayed)
|
|
331
|
+
* - RESPONSE_RESULT_TYPE_SUCCESS: The message was executed successfully
|
|
332
|
+
*/
|
|
333
|
+
result?: V1ResponseResultType;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
/**
|
|
337
|
+
* MsgChannelCloseConfirmResponse defines the Msg/ChannelCloseConfirm response
|
|
338
|
+
type.
|
|
339
|
+
*/
|
|
340
|
+
export type V1MsgChannelCloseConfirmResponse = object;
|
|
341
|
+
|
|
342
|
+
/**
|
|
343
|
+
* MsgChannelCloseInitResponse defines the Msg/ChannelCloseInit response type.
|
|
344
|
+
*/
|
|
345
|
+
export type V1MsgChannelCloseInitResponse = object;
|
|
346
|
+
|
|
347
|
+
/**
|
|
348
|
+
* MsgChannelOpenAckResponse defines the Msg/ChannelOpenAck response type.
|
|
349
|
+
*/
|
|
350
|
+
export type V1MsgChannelOpenAckResponse = object;
|
|
351
|
+
|
|
352
|
+
/**
|
|
353
|
+
* MsgChannelOpenConfirmResponse defines the Msg/ChannelOpenConfirm response
|
|
354
|
+
type.
|
|
355
|
+
*/
|
|
356
|
+
export type V1MsgChannelOpenConfirmResponse = object;
|
|
357
|
+
|
|
358
|
+
/**
|
|
359
|
+
* MsgChannelOpenInitResponse defines the Msg/ChannelOpenInit response type.
|
|
360
|
+
*/
|
|
361
|
+
export interface V1MsgChannelOpenInitResponse {
|
|
362
|
+
channel_id?: string;
|
|
363
|
+
version?: string;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
/**
|
|
367
|
+
* MsgChannelOpenTryResponse defines the Msg/ChannelOpenTry response type.
|
|
368
|
+
*/
|
|
369
|
+
export interface V1MsgChannelOpenTryResponse {
|
|
370
|
+
version?: string;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
/**
|
|
374
|
+
* MsgRecvPacketResponse defines the Msg/RecvPacket response type.
|
|
375
|
+
*/
|
|
376
|
+
export interface V1MsgRecvPacketResponse {
|
|
377
|
+
/**
|
|
378
|
+
* - RESPONSE_RESULT_TYPE_UNSPECIFIED: Default zero value enumeration
|
|
379
|
+
* - RESPONSE_RESULT_TYPE_NOOP: The message did not call the IBC application callbacks (because, for example, the packet had already been relayed)
|
|
380
|
+
* - RESPONSE_RESULT_TYPE_SUCCESS: The message was executed successfully
|
|
381
|
+
*/
|
|
382
|
+
result?: V1ResponseResultType;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
/**
|
|
386
|
+
* MsgTimeoutOnCloseResponse defines the Msg/TimeoutOnClose response type.
|
|
387
|
+
*/
|
|
388
|
+
export interface V1MsgTimeoutOnCloseResponse {
|
|
389
|
+
/**
|
|
390
|
+
* - RESPONSE_RESULT_TYPE_UNSPECIFIED: Default zero value enumeration
|
|
391
|
+
* - RESPONSE_RESULT_TYPE_NOOP: The message did not call the IBC application callbacks (because, for example, the packet had already been relayed)
|
|
392
|
+
* - RESPONSE_RESULT_TYPE_SUCCESS: The message was executed successfully
|
|
393
|
+
*/
|
|
394
|
+
result?: V1ResponseResultType;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
/**
|
|
398
|
+
* MsgTimeoutResponse defines the Msg/Timeout response type.
|
|
399
|
+
*/
|
|
400
|
+
export interface V1MsgTimeoutResponse {
|
|
401
|
+
/**
|
|
402
|
+
* - RESPONSE_RESULT_TYPE_UNSPECIFIED: Default zero value enumeration
|
|
403
|
+
* - RESPONSE_RESULT_TYPE_NOOP: The message did not call the IBC application callbacks (because, for example, the packet had already been relayed)
|
|
404
|
+
* - RESPONSE_RESULT_TYPE_SUCCESS: The message was executed successfully
|
|
405
|
+
*/
|
|
406
|
+
result?: V1ResponseResultType;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
/**
|
|
410
|
+
* - ORDER_NONE_UNSPECIFIED: zero-value for channel ordering
|
|
411
|
+
- ORDER_UNORDERED: packets can be delivered in any order, which may differ from the order in
|
|
412
|
+
which they were sent.
|
|
413
|
+
- ORDER_ORDERED: packets are delivered exactly in the order which they were sent
|
|
414
|
+
*/
|
|
415
|
+
export enum V1Order {
|
|
416
|
+
ORDER_NONE_UNSPECIFIED = "ORDER_NONE_UNSPECIFIED",
|
|
417
|
+
ORDER_UNORDERED = "ORDER_UNORDERED",
|
|
418
|
+
ORDER_ORDERED = "ORDER_ORDERED",
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
export interface V1Packet {
|
|
422
|
+
/**
|
|
423
|
+
* number corresponds to the order of sends and receives, where a Packet
|
|
424
|
+
* with an earlier sequence number must be sent and received before a Packet
|
|
425
|
+
* with a later sequence number.
|
|
426
|
+
* @format uint64
|
|
427
|
+
*/
|
|
428
|
+
sequence?: string;
|
|
429
|
+
|
|
430
|
+
/** identifies the port on the sending chain. */
|
|
431
|
+
source_port?: string;
|
|
432
|
+
|
|
433
|
+
/** identifies the channel end on the sending chain. */
|
|
434
|
+
source_channel?: string;
|
|
435
|
+
|
|
436
|
+
/** identifies the port on the receiving chain. */
|
|
437
|
+
destination_port?: string;
|
|
438
|
+
|
|
439
|
+
/** identifies the channel end on the receiving chain. */
|
|
440
|
+
destination_channel?: string;
|
|
441
|
+
|
|
442
|
+
/**
|
|
443
|
+
* actual opaque bytes transferred directly to the application module
|
|
444
|
+
* @format byte
|
|
445
|
+
*/
|
|
446
|
+
data?: string;
|
|
447
|
+
|
|
448
|
+
/**
|
|
449
|
+
* block height after which the packet times out
|
|
450
|
+
* Normally the RevisionHeight is incremented at each height while keeping
|
|
451
|
+
* RevisionNumber the same. However some consensus algorithms may choose to
|
|
452
|
+
* reset the height in certain conditions e.g. hard forks, state-machine
|
|
453
|
+
* breaking changes In these cases, the RevisionNumber is incremented so that
|
|
454
|
+
* height continues to be monitonically increasing even as the RevisionHeight
|
|
455
|
+
* gets reset
|
|
456
|
+
*/
|
|
457
|
+
timeout_height?: V1Height;
|
|
458
|
+
|
|
459
|
+
/**
|
|
460
|
+
* block timestamp (in nanoseconds) after which the packet times out
|
|
461
|
+
* @format uint64
|
|
462
|
+
*/
|
|
463
|
+
timeout_timestamp?: string;
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
/**
|
|
467
|
+
* PacketState defines the generic type necessary to retrieve and store
|
|
468
|
+
packet commitments, acknowledgements, and receipts.
|
|
469
|
+
Caller is responsible for knowing the context necessary to interpret this
|
|
470
|
+
state as a commitment, acknowledgement, or a receipt.
|
|
471
|
+
*/
|
|
472
|
+
export interface V1PacketState {
|
|
473
|
+
/** channel port identifier. */
|
|
474
|
+
port_id?: string;
|
|
475
|
+
|
|
476
|
+
/** channel unique identifier. */
|
|
477
|
+
channel_id?: string;
|
|
478
|
+
|
|
479
|
+
/**
|
|
480
|
+
* packet sequence.
|
|
481
|
+
* @format uint64
|
|
482
|
+
*/
|
|
483
|
+
sequence?: string;
|
|
484
|
+
|
|
485
|
+
/**
|
|
486
|
+
* embedded data that represents packet state.
|
|
487
|
+
* @format byte
|
|
488
|
+
*/
|
|
489
|
+
data?: string;
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
export interface V1QueryChannelClientStateResponse {
|
|
493
|
+
/**
|
|
494
|
+
* client state associated with the channel
|
|
495
|
+
* IdentifiedClientState defines a client state with an additional client
|
|
496
|
+
* identifier field.
|
|
497
|
+
*/
|
|
498
|
+
identified_client_state?: V1IdentifiedClientState;
|
|
499
|
+
|
|
500
|
+
/**
|
|
501
|
+
* merkle proof of existence
|
|
502
|
+
* @format byte
|
|
503
|
+
*/
|
|
504
|
+
proof?: string;
|
|
505
|
+
|
|
506
|
+
/**
|
|
507
|
+
* height at which the proof was retrieved
|
|
508
|
+
* Normally the RevisionHeight is incremented at each height while keeping
|
|
509
|
+
* RevisionNumber the same. However some consensus algorithms may choose to
|
|
510
|
+
* reset the height in certain conditions e.g. hard forks, state-machine
|
|
511
|
+
* breaking changes In these cases, the RevisionNumber is incremented so that
|
|
512
|
+
* height continues to be monitonically increasing even as the RevisionHeight
|
|
513
|
+
* gets reset
|
|
514
|
+
*/
|
|
515
|
+
proof_height?: V1Height;
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
export interface V1QueryChannelConsensusStateResponse {
|
|
519
|
+
/**
|
|
520
|
+
* consensus state associated with the channel
|
|
521
|
+
* `Any` contains an arbitrary serialized protocol buffer message along with a
|
|
522
|
+
* URL that describes the type of the serialized message.
|
|
523
|
+
*
|
|
524
|
+
* Protobuf library provides support to pack/unpack Any values in the form
|
|
525
|
+
* of utility functions or additional generated methods of the Any type.
|
|
526
|
+
* Example 1: Pack and unpack a message in C++.
|
|
527
|
+
* Foo foo = ...;
|
|
528
|
+
* Any any;
|
|
529
|
+
* any.PackFrom(foo);
|
|
530
|
+
* ...
|
|
531
|
+
* if (any.UnpackTo(&foo)) {
|
|
532
|
+
* ...
|
|
533
|
+
* }
|
|
534
|
+
* Example 2: Pack and unpack a message in Java.
|
|
535
|
+
* Any any = Any.pack(foo);
|
|
536
|
+
* if (any.is(Foo.class)) {
|
|
537
|
+
* foo = any.unpack(Foo.class);
|
|
538
|
+
* Example 3: Pack and unpack a message in Python.
|
|
539
|
+
* foo = Foo(...)
|
|
540
|
+
* any = Any()
|
|
541
|
+
* any.Pack(foo)
|
|
542
|
+
* if any.Is(Foo.DESCRIPTOR):
|
|
543
|
+
* any.Unpack(foo)
|
|
544
|
+
* Example 4: Pack and unpack a message in Go
|
|
545
|
+
* foo := &pb.Foo{...}
|
|
546
|
+
* any, err := anypb.New(foo)
|
|
547
|
+
* if err != nil {
|
|
548
|
+
* ...
|
|
549
|
+
* }
|
|
550
|
+
* ...
|
|
551
|
+
* foo := &pb.Foo{}
|
|
552
|
+
* if err := any.UnmarshalTo(foo); err != nil {
|
|
553
|
+
* The pack methods provided by protobuf library will by default use
|
|
554
|
+
* 'type.googleapis.com/full.type.name' as the type URL and the unpack
|
|
555
|
+
* methods only use the fully qualified type name after the last '/'
|
|
556
|
+
* in the type URL, for example "foo.bar.com/x/y.z" will yield type
|
|
557
|
+
* name "y.z".
|
|
558
|
+
* JSON
|
|
559
|
+
* ====
|
|
560
|
+
* The JSON representation of an `Any` value uses the regular
|
|
561
|
+
* representation of the deserialized, embedded message, with an
|
|
562
|
+
* additional field `@type` which contains the type URL. Example:
|
|
563
|
+
* package google.profile;
|
|
564
|
+
* message Person {
|
|
565
|
+
* string first_name = 1;
|
|
566
|
+
* string last_name = 2;
|
|
567
|
+
* {
|
|
568
|
+
* "@type": "type.googleapis.com/google.profile.Person",
|
|
569
|
+
* "firstName": <string>,
|
|
570
|
+
* "lastName": <string>
|
|
571
|
+
* If the embedded message type is well-known and has a custom JSON
|
|
572
|
+
* representation, that representation will be embedded adding a field
|
|
573
|
+
* `value` which holds the custom JSON in addition to the `@type`
|
|
574
|
+
* field. Example (for message [google.protobuf.Duration][]):
|
|
575
|
+
* "@type": "type.googleapis.com/google.protobuf.Duration",
|
|
576
|
+
* "value": "1.212s"
|
|
577
|
+
*/
|
|
578
|
+
consensus_state?: ProtobufAny;
|
|
579
|
+
|
|
580
|
+
/** client ID associated with the consensus state */
|
|
581
|
+
client_id?: string;
|
|
582
|
+
|
|
583
|
+
/**
|
|
584
|
+
* merkle proof of existence
|
|
585
|
+
* @format byte
|
|
586
|
+
*/
|
|
587
|
+
proof?: string;
|
|
588
|
+
|
|
589
|
+
/**
|
|
590
|
+
* height at which the proof was retrieved
|
|
591
|
+
* Normally the RevisionHeight is incremented at each height while keeping
|
|
592
|
+
* RevisionNumber the same. However some consensus algorithms may choose to
|
|
593
|
+
* reset the height in certain conditions e.g. hard forks, state-machine
|
|
594
|
+
* breaking changes In these cases, the RevisionNumber is incremented so that
|
|
595
|
+
* height continues to be monitonically increasing even as the RevisionHeight
|
|
596
|
+
* gets reset
|
|
597
|
+
*/
|
|
598
|
+
proof_height?: V1Height;
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
/**
|
|
602
|
+
* QueryChannelResponse is the response type for the Query/Channel RPC method.
|
|
603
|
+
Besides the Channel end, it includes a proof and the height from which the
|
|
604
|
+
proof was retrieved.
|
|
605
|
+
*/
|
|
606
|
+
export interface V1QueryChannelResponse {
|
|
607
|
+
/**
|
|
608
|
+
* channel associated with the request identifiers
|
|
609
|
+
* Channel defines pipeline for exactly-once packet delivery between specific
|
|
610
|
+
* modules on separate blockchains, which has at least one end capable of
|
|
611
|
+
* sending packets and one end capable of receiving packets.
|
|
612
|
+
*/
|
|
613
|
+
channel?: V1Channel;
|
|
614
|
+
|
|
615
|
+
/**
|
|
616
|
+
* merkle proof of existence
|
|
617
|
+
* @format byte
|
|
618
|
+
*/
|
|
619
|
+
proof?: string;
|
|
620
|
+
|
|
621
|
+
/**
|
|
622
|
+
* height at which the proof was retrieved
|
|
623
|
+
* Normally the RevisionHeight is incremented at each height while keeping
|
|
624
|
+
* RevisionNumber the same. However some consensus algorithms may choose to
|
|
625
|
+
* reset the height in certain conditions e.g. hard forks, state-machine
|
|
626
|
+
* breaking changes In these cases, the RevisionNumber is incremented so that
|
|
627
|
+
* height continues to be monitonically increasing even as the RevisionHeight
|
|
628
|
+
* gets reset
|
|
629
|
+
*/
|
|
630
|
+
proof_height?: V1Height;
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
/**
|
|
634
|
+
* QueryChannelsResponse is the response type for the Query/Channels RPC method.
|
|
635
|
+
*/
|
|
636
|
+
export interface V1QueryChannelsResponse {
|
|
637
|
+
/** list of stored channels of the chain. */
|
|
638
|
+
channels?: V1IdentifiedChannel[];
|
|
639
|
+
|
|
640
|
+
/**
|
|
641
|
+
* pagination response
|
|
642
|
+
* PageResponse is to be embedded in gRPC response messages where the
|
|
643
|
+
* corresponding request message has used PageRequest.
|
|
644
|
+
*
|
|
645
|
+
* message SomeResponse {
|
|
646
|
+
* repeated Bar results = 1;
|
|
647
|
+
* PageResponse page = 2;
|
|
648
|
+
* }
|
|
649
|
+
*/
|
|
650
|
+
pagination?: V1Beta1PageResponse;
|
|
651
|
+
|
|
652
|
+
/**
|
|
653
|
+
* query block height
|
|
654
|
+
* Normally the RevisionHeight is incremented at each height while keeping
|
|
655
|
+
* RevisionNumber the same. However some consensus algorithms may choose to
|
|
656
|
+
* reset the height in certain conditions e.g. hard forks, state-machine
|
|
657
|
+
* breaking changes In these cases, the RevisionNumber is incremented so that
|
|
658
|
+
* height continues to be monitonically increasing even as the RevisionHeight
|
|
659
|
+
* gets reset
|
|
660
|
+
*/
|
|
661
|
+
height?: V1Height;
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
export interface V1QueryConnectionChannelsResponse {
|
|
665
|
+
/** list of channels associated with a connection. */
|
|
666
|
+
channels?: V1IdentifiedChannel[];
|
|
667
|
+
|
|
668
|
+
/**
|
|
669
|
+
* pagination response
|
|
670
|
+
* PageResponse is to be embedded in gRPC response messages where the
|
|
671
|
+
* corresponding request message has used PageRequest.
|
|
672
|
+
*
|
|
673
|
+
* message SomeResponse {
|
|
674
|
+
* repeated Bar results = 1;
|
|
675
|
+
* PageResponse page = 2;
|
|
676
|
+
* }
|
|
677
|
+
*/
|
|
678
|
+
pagination?: V1Beta1PageResponse;
|
|
679
|
+
|
|
680
|
+
/**
|
|
681
|
+
* query block height
|
|
682
|
+
* Normally the RevisionHeight is incremented at each height while keeping
|
|
683
|
+
* RevisionNumber the same. However some consensus algorithms may choose to
|
|
684
|
+
* reset the height in certain conditions e.g. hard forks, state-machine
|
|
685
|
+
* breaking changes In these cases, the RevisionNumber is incremented so that
|
|
686
|
+
* height continues to be monitonically increasing even as the RevisionHeight
|
|
687
|
+
* gets reset
|
|
688
|
+
*/
|
|
689
|
+
height?: V1Height;
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
export interface V1QueryNextSequenceReceiveResponse {
|
|
693
|
+
/**
|
|
694
|
+
* next sequence receive number
|
|
695
|
+
* @format uint64
|
|
696
|
+
*/
|
|
697
|
+
next_sequence_receive?: string;
|
|
698
|
+
|
|
699
|
+
/**
|
|
700
|
+
* merkle proof of existence
|
|
701
|
+
* @format byte
|
|
702
|
+
*/
|
|
703
|
+
proof?: string;
|
|
704
|
+
|
|
705
|
+
/**
|
|
706
|
+
* height at which the proof was retrieved
|
|
707
|
+
* Normally the RevisionHeight is incremented at each height while keeping
|
|
708
|
+
* RevisionNumber the same. However some consensus algorithms may choose to
|
|
709
|
+
* reset the height in certain conditions e.g. hard forks, state-machine
|
|
710
|
+
* breaking changes In these cases, the RevisionNumber is incremented so that
|
|
711
|
+
* height continues to be monitonically increasing even as the RevisionHeight
|
|
712
|
+
* gets reset
|
|
713
|
+
*/
|
|
714
|
+
proof_height?: V1Height;
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
export interface V1QueryPacketAcknowledgementResponse {
|
|
718
|
+
/**
|
|
719
|
+
* packet associated with the request fields
|
|
720
|
+
* @format byte
|
|
721
|
+
*/
|
|
722
|
+
acknowledgement?: string;
|
|
723
|
+
|
|
724
|
+
/**
|
|
725
|
+
* merkle proof of existence
|
|
726
|
+
* @format byte
|
|
727
|
+
*/
|
|
728
|
+
proof?: string;
|
|
729
|
+
|
|
730
|
+
/**
|
|
731
|
+
* height at which the proof was retrieved
|
|
732
|
+
* Normally the RevisionHeight is incremented at each height while keeping
|
|
733
|
+
* RevisionNumber the same. However some consensus algorithms may choose to
|
|
734
|
+
* reset the height in certain conditions e.g. hard forks, state-machine
|
|
735
|
+
* breaking changes In these cases, the RevisionNumber is incremented so that
|
|
736
|
+
* height continues to be monitonically increasing even as the RevisionHeight
|
|
737
|
+
* gets reset
|
|
738
|
+
*/
|
|
739
|
+
proof_height?: V1Height;
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
export interface V1QueryPacketAcknowledgementsResponse {
|
|
743
|
+
acknowledgements?: V1PacketState[];
|
|
744
|
+
|
|
745
|
+
/**
|
|
746
|
+
* pagination response
|
|
747
|
+
* PageResponse is to be embedded in gRPC response messages where the
|
|
748
|
+
* corresponding request message has used PageRequest.
|
|
749
|
+
*
|
|
750
|
+
* message SomeResponse {
|
|
751
|
+
* repeated Bar results = 1;
|
|
752
|
+
* PageResponse page = 2;
|
|
753
|
+
* }
|
|
754
|
+
*/
|
|
755
|
+
pagination?: V1Beta1PageResponse;
|
|
756
|
+
|
|
757
|
+
/**
|
|
758
|
+
* query block height
|
|
759
|
+
* Normally the RevisionHeight is incremented at each height while keeping
|
|
760
|
+
* RevisionNumber the same. However some consensus algorithms may choose to
|
|
761
|
+
* reset the height in certain conditions e.g. hard forks, state-machine
|
|
762
|
+
* breaking changes In these cases, the RevisionNumber is incremented so that
|
|
763
|
+
* height continues to be monitonically increasing even as the RevisionHeight
|
|
764
|
+
* gets reset
|
|
765
|
+
*/
|
|
766
|
+
height?: V1Height;
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
export interface V1QueryPacketCommitmentResponse {
|
|
770
|
+
/**
|
|
771
|
+
* packet associated with the request fields
|
|
772
|
+
* @format byte
|
|
773
|
+
*/
|
|
774
|
+
commitment?: string;
|
|
775
|
+
|
|
776
|
+
/**
|
|
777
|
+
* merkle proof of existence
|
|
778
|
+
* @format byte
|
|
779
|
+
*/
|
|
780
|
+
proof?: string;
|
|
781
|
+
|
|
782
|
+
/**
|
|
783
|
+
* height at which the proof was retrieved
|
|
784
|
+
* Normally the RevisionHeight is incremented at each height while keeping
|
|
785
|
+
* RevisionNumber the same. However some consensus algorithms may choose to
|
|
786
|
+
* reset the height in certain conditions e.g. hard forks, state-machine
|
|
787
|
+
* breaking changes In these cases, the RevisionNumber is incremented so that
|
|
788
|
+
* height continues to be monitonically increasing even as the RevisionHeight
|
|
789
|
+
* gets reset
|
|
790
|
+
*/
|
|
791
|
+
proof_height?: V1Height;
|
|
792
|
+
}
|
|
793
|
+
|
|
794
|
+
export interface V1QueryPacketCommitmentsResponse {
|
|
795
|
+
commitments?: V1PacketState[];
|
|
796
|
+
|
|
797
|
+
/**
|
|
798
|
+
* pagination response
|
|
799
|
+
* PageResponse is to be embedded in gRPC response messages where the
|
|
800
|
+
* corresponding request message has used PageRequest.
|
|
801
|
+
*
|
|
802
|
+
* message SomeResponse {
|
|
803
|
+
* repeated Bar results = 1;
|
|
804
|
+
* PageResponse page = 2;
|
|
805
|
+
* }
|
|
806
|
+
*/
|
|
807
|
+
pagination?: V1Beta1PageResponse;
|
|
808
|
+
|
|
809
|
+
/**
|
|
810
|
+
* query block height
|
|
811
|
+
* Normally the RevisionHeight is incremented at each height while keeping
|
|
812
|
+
* RevisionNumber the same. However some consensus algorithms may choose to
|
|
813
|
+
* reset the height in certain conditions e.g. hard forks, state-machine
|
|
814
|
+
* breaking changes In these cases, the RevisionNumber is incremented so that
|
|
815
|
+
* height continues to be monitonically increasing even as the RevisionHeight
|
|
816
|
+
* gets reset
|
|
817
|
+
*/
|
|
818
|
+
height?: V1Height;
|
|
819
|
+
}
|
|
820
|
+
|
|
821
|
+
export interface V1QueryPacketReceiptResponse {
|
|
822
|
+
/** success flag for if receipt exists */
|
|
823
|
+
received?: boolean;
|
|
824
|
+
|
|
825
|
+
/**
|
|
826
|
+
* merkle proof of existence
|
|
827
|
+
* @format byte
|
|
828
|
+
*/
|
|
829
|
+
proof?: string;
|
|
830
|
+
|
|
831
|
+
/**
|
|
832
|
+
* height at which the proof was retrieved
|
|
833
|
+
* Normally the RevisionHeight is incremented at each height while keeping
|
|
834
|
+
* RevisionNumber the same. However some consensus algorithms may choose to
|
|
835
|
+
* reset the height in certain conditions e.g. hard forks, state-machine
|
|
836
|
+
* breaking changes In these cases, the RevisionNumber is incremented so that
|
|
837
|
+
* height continues to be monitonically increasing even as the RevisionHeight
|
|
838
|
+
* gets reset
|
|
839
|
+
*/
|
|
840
|
+
proof_height?: V1Height;
|
|
841
|
+
}
|
|
842
|
+
|
|
843
|
+
export interface V1QueryUnreceivedAcksResponse {
|
|
844
|
+
/** list of unreceived acknowledgement sequences */
|
|
845
|
+
sequences?: string[];
|
|
846
|
+
|
|
847
|
+
/**
|
|
848
|
+
* query block height
|
|
849
|
+
* Normally the RevisionHeight is incremented at each height while keeping
|
|
850
|
+
* RevisionNumber the same. However some consensus algorithms may choose to
|
|
851
|
+
* reset the height in certain conditions e.g. hard forks, state-machine
|
|
852
|
+
* breaking changes In these cases, the RevisionNumber is incremented so that
|
|
853
|
+
* height continues to be monitonically increasing even as the RevisionHeight
|
|
854
|
+
* gets reset
|
|
855
|
+
*/
|
|
856
|
+
height?: V1Height;
|
|
857
|
+
}
|
|
858
|
+
|
|
859
|
+
export interface V1QueryUnreceivedPacketsResponse {
|
|
860
|
+
/** list of unreceived packet sequences */
|
|
861
|
+
sequences?: string[];
|
|
862
|
+
|
|
863
|
+
/**
|
|
864
|
+
* query block height
|
|
865
|
+
* Normally the RevisionHeight is incremented at each height while keeping
|
|
866
|
+
* RevisionNumber the same. However some consensus algorithms may choose to
|
|
867
|
+
* reset the height in certain conditions e.g. hard forks, state-machine
|
|
868
|
+
* breaking changes In these cases, the RevisionNumber is incremented so that
|
|
869
|
+
* height continues to be monitonically increasing even as the RevisionHeight
|
|
870
|
+
* gets reset
|
|
871
|
+
*/
|
|
872
|
+
height?: V1Height;
|
|
873
|
+
}
|
|
874
|
+
|
|
875
|
+
/**
|
|
876
|
+
* - RESPONSE_RESULT_TYPE_UNSPECIFIED: Default zero value enumeration
|
|
877
|
+
- RESPONSE_RESULT_TYPE_NOOP: The message did not call the IBC application callbacks (because, for example, the packet had already been relayed)
|
|
878
|
+
- RESPONSE_RESULT_TYPE_SUCCESS: The message was executed successfully
|
|
879
|
+
*/
|
|
880
|
+
export enum V1ResponseResultType {
|
|
881
|
+
RESPONSE_RESULT_TYPE_UNSPECIFIED = "RESPONSE_RESULT_TYPE_UNSPECIFIED",
|
|
882
|
+
RESPONSE_RESULT_TYPE_NOOP = "RESPONSE_RESULT_TYPE_NOOP",
|
|
883
|
+
RESPONSE_RESULT_TYPE_SUCCESS = "RESPONSE_RESULT_TYPE_SUCCESS",
|
|
884
|
+
}
|
|
885
|
+
|
|
886
|
+
/**
|
|
887
|
+
* State defines if a channel is in one of the following states:
|
|
888
|
+
CLOSED, INIT, TRYOPEN, OPEN or UNINITIALIZED.
|
|
889
|
+
|
|
890
|
+
- STATE_UNINITIALIZED_UNSPECIFIED: Default State
|
|
891
|
+
- STATE_INIT: A channel has just started the opening handshake.
|
|
892
|
+
- STATE_TRYOPEN: A channel has acknowledged the handshake step on the counterparty chain.
|
|
893
|
+
- STATE_OPEN: A channel has completed the handshake. Open channels are
|
|
894
|
+
ready to send and receive packets.
|
|
895
|
+
- STATE_CLOSED: A channel has been closed and can no longer be used to send or receive
|
|
896
|
+
packets.
|
|
897
|
+
*/
|
|
898
|
+
export enum V1State {
|
|
899
|
+
STATE_UNINITIALIZED_UNSPECIFIED = "STATE_UNINITIALIZED_UNSPECIFIED",
|
|
900
|
+
STATE_INIT = "STATE_INIT",
|
|
901
|
+
STATE_TRYOPEN = "STATE_TRYOPEN",
|
|
902
|
+
STATE_OPEN = "STATE_OPEN",
|
|
903
|
+
STATE_CLOSED = "STATE_CLOSED",
|
|
904
|
+
}
|
|
905
|
+
|
|
906
|
+
/**
|
|
907
|
+
* message SomeRequest {
|
|
908
|
+
Foo some_parameter = 1;
|
|
909
|
+
PageRequest pagination = 2;
|
|
910
|
+
}
|
|
911
|
+
*/
|
|
912
|
+
export interface V1Beta1PageRequest {
|
|
913
|
+
/**
|
|
914
|
+
* key is a value returned in PageResponse.next_key to begin
|
|
915
|
+
* querying the next page most efficiently. Only one of offset or key
|
|
916
|
+
* should be set.
|
|
917
|
+
* @format byte
|
|
918
|
+
*/
|
|
919
|
+
key?: string;
|
|
920
|
+
|
|
921
|
+
/**
|
|
922
|
+
* offset is a numeric offset that can be used when key is unavailable.
|
|
923
|
+
* It is less efficient than using key. Only one of offset or key should
|
|
924
|
+
* be set.
|
|
925
|
+
* @format uint64
|
|
926
|
+
*/
|
|
927
|
+
offset?: string;
|
|
928
|
+
|
|
929
|
+
/**
|
|
930
|
+
* limit is the total number of results to be returned in the result page.
|
|
931
|
+
* If left empty it will default to a value to be set by each app.
|
|
932
|
+
* @format uint64
|
|
933
|
+
*/
|
|
934
|
+
limit?: string;
|
|
935
|
+
|
|
936
|
+
/**
|
|
937
|
+
* count_total is set to true to indicate that the result set should include
|
|
938
|
+
* a count of the total number of items available for pagination in UIs.
|
|
939
|
+
* count_total is only respected when offset is used. It is ignored when key
|
|
940
|
+
* is set.
|
|
941
|
+
*/
|
|
942
|
+
count_total?: boolean;
|
|
943
|
+
|
|
944
|
+
/**
|
|
945
|
+
* reverse is set to true if results are to be returned in the descending order.
|
|
946
|
+
*
|
|
947
|
+
* Since: cosmos-sdk 0.43
|
|
948
|
+
*/
|
|
949
|
+
reverse?: boolean;
|
|
950
|
+
}
|
|
951
|
+
|
|
952
|
+
/**
|
|
953
|
+
* PageResponse is to be embedded in gRPC response messages where the
|
|
954
|
+
corresponding request message has used PageRequest.
|
|
955
|
+
|
|
956
|
+
message SomeResponse {
|
|
957
|
+
repeated Bar results = 1;
|
|
958
|
+
PageResponse page = 2;
|
|
959
|
+
}
|
|
960
|
+
*/
|
|
961
|
+
export interface V1Beta1PageResponse {
|
|
962
|
+
/**
|
|
963
|
+
* next_key is the key to be passed to PageRequest.key to
|
|
964
|
+
* query the next page most efficiently. It will be empty if
|
|
965
|
+
* there are no more results.
|
|
966
|
+
* @format byte
|
|
967
|
+
*/
|
|
968
|
+
next_key?: string;
|
|
969
|
+
|
|
970
|
+
/**
|
|
971
|
+
* total is total number of results available if PageRequest.count_total
|
|
972
|
+
* was set, its value is undefined otherwise
|
|
973
|
+
* @format uint64
|
|
974
|
+
*/
|
|
975
|
+
total?: string;
|
|
976
|
+
}
|
|
977
|
+
|
|
978
|
+
import axios, { AxiosInstance, AxiosRequestConfig, AxiosResponse, ResponseType } from "axios";
|
|
979
|
+
|
|
980
|
+
export type QueryParamsType = Record<string | number, any>;
|
|
981
|
+
|
|
982
|
+
export interface FullRequestParams extends Omit<AxiosRequestConfig, "data" | "params" | "url" | "responseType"> {
|
|
983
|
+
/** set parameter to `true` for call `securityWorker` for this request */
|
|
984
|
+
secure?: boolean;
|
|
985
|
+
/** request path */
|
|
986
|
+
path: string;
|
|
987
|
+
/** content type of request body */
|
|
988
|
+
type?: ContentType;
|
|
989
|
+
/** query params */
|
|
990
|
+
query?: QueryParamsType;
|
|
991
|
+
/** format of response (i.e. response.json() -> format: "json") */
|
|
992
|
+
format?: ResponseType;
|
|
993
|
+
/** request body */
|
|
994
|
+
body?: unknown;
|
|
995
|
+
}
|
|
996
|
+
|
|
997
|
+
export type RequestParams = Omit<FullRequestParams, "body" | "method" | "query" | "path">;
|
|
998
|
+
|
|
999
|
+
export interface ApiConfig<SecurityDataType = unknown> extends Omit<AxiosRequestConfig, "data" | "cancelToken"> {
|
|
1000
|
+
securityWorker?: (
|
|
1001
|
+
securityData: SecurityDataType | null,
|
|
1002
|
+
) => Promise<AxiosRequestConfig | void> | AxiosRequestConfig | void;
|
|
1003
|
+
secure?: boolean;
|
|
1004
|
+
format?: ResponseType;
|
|
1005
|
+
}
|
|
1006
|
+
|
|
1007
|
+
export enum ContentType {
|
|
1008
|
+
Json = "application/json",
|
|
1009
|
+
FormData = "multipart/form-data",
|
|
1010
|
+
UrlEncoded = "application/x-www-form-urlencoded",
|
|
1011
|
+
}
|
|
1012
|
+
|
|
1013
|
+
export class HttpClient<SecurityDataType = unknown> {
|
|
1014
|
+
public instance: AxiosInstance;
|
|
1015
|
+
private securityData: SecurityDataType | null = null;
|
|
1016
|
+
private securityWorker?: ApiConfig<SecurityDataType>["securityWorker"];
|
|
1017
|
+
private secure?: boolean;
|
|
1018
|
+
private format?: ResponseType;
|
|
1019
|
+
|
|
1020
|
+
constructor({ securityWorker, secure, format, ...axiosConfig }: ApiConfig<SecurityDataType> = {}) {
|
|
1021
|
+
this.instance = axios.create({ ...axiosConfig, baseURL: axiosConfig.baseURL || "" });
|
|
1022
|
+
this.secure = secure;
|
|
1023
|
+
this.format = format;
|
|
1024
|
+
this.securityWorker = securityWorker;
|
|
1025
|
+
}
|
|
1026
|
+
|
|
1027
|
+
public setSecurityData = (data: SecurityDataType | null) => {
|
|
1028
|
+
this.securityData = data;
|
|
1029
|
+
};
|
|
1030
|
+
|
|
1031
|
+
private mergeRequestParams(params1: AxiosRequestConfig, params2?: AxiosRequestConfig): AxiosRequestConfig {
|
|
1032
|
+
return {
|
|
1033
|
+
...this.instance.defaults,
|
|
1034
|
+
...params1,
|
|
1035
|
+
...(params2 || {}),
|
|
1036
|
+
headers: {
|
|
1037
|
+
...(this.instance.defaults.headers || {}),
|
|
1038
|
+
...(params1.headers || {}),
|
|
1039
|
+
...((params2 && params2.headers) || {}),
|
|
1040
|
+
},
|
|
1041
|
+
};
|
|
1042
|
+
}
|
|
1043
|
+
|
|
1044
|
+
private createFormData(input: Record<string, unknown>): FormData {
|
|
1045
|
+
return Object.keys(input || {}).reduce((formData, key) => {
|
|
1046
|
+
const property = input[key];
|
|
1047
|
+
formData.append(
|
|
1048
|
+
key,
|
|
1049
|
+
property instanceof Blob
|
|
1050
|
+
? property
|
|
1051
|
+
: typeof property === "object" && property !== null
|
|
1052
|
+
? JSON.stringify(property)
|
|
1053
|
+
: `${property}`,
|
|
1054
|
+
);
|
|
1055
|
+
return formData;
|
|
1056
|
+
}, new FormData());
|
|
1057
|
+
}
|
|
1058
|
+
|
|
1059
|
+
public request = async <T = any, _E = any>({
|
|
1060
|
+
secure,
|
|
1061
|
+
path,
|
|
1062
|
+
type,
|
|
1063
|
+
query,
|
|
1064
|
+
format,
|
|
1065
|
+
body,
|
|
1066
|
+
...params
|
|
1067
|
+
}: FullRequestParams): Promise<AxiosResponse<T>> => {
|
|
1068
|
+
const secureParams =
|
|
1069
|
+
((typeof secure === "boolean" ? secure : this.secure) &&
|
|
1070
|
+
this.securityWorker &&
|
|
1071
|
+
(await this.securityWorker(this.securityData))) ||
|
|
1072
|
+
{};
|
|
1073
|
+
const requestParams = this.mergeRequestParams(params, secureParams);
|
|
1074
|
+
const responseFormat = (format && this.format) || void 0;
|
|
1075
|
+
|
|
1076
|
+
if (type === ContentType.FormData && body && body !== null && typeof body === "object") {
|
|
1077
|
+
requestParams.headers.common = { Accept: "*/*" };
|
|
1078
|
+
requestParams.headers.post = {};
|
|
1079
|
+
requestParams.headers.put = {};
|
|
1080
|
+
|
|
1081
|
+
body = this.createFormData(body as Record<string, unknown>);
|
|
1082
|
+
}
|
|
1083
|
+
|
|
1084
|
+
return this.instance.request({
|
|
1085
|
+
...requestParams,
|
|
1086
|
+
headers: {
|
|
1087
|
+
...(type && type !== ContentType.FormData ? { "Content-Type": type } : {}),
|
|
1088
|
+
...(requestParams.headers || {}),
|
|
1089
|
+
},
|
|
1090
|
+
params: query,
|
|
1091
|
+
responseType: responseFormat,
|
|
1092
|
+
data: body,
|
|
1093
|
+
url: path,
|
|
1094
|
+
});
|
|
1095
|
+
};
|
|
1096
|
+
}
|
|
1097
|
+
|
|
1098
|
+
/**
|
|
1099
|
+
* @title ibc/core/channel/v1/channel.proto
|
|
1100
|
+
* @version version not set
|
|
1101
|
+
*/
|
|
1102
|
+
export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDataType> {
|
|
1103
|
+
/**
|
|
1104
|
+
* No description
|
|
1105
|
+
*
|
|
1106
|
+
* @tags Query
|
|
1107
|
+
* @name QueryChannels
|
|
1108
|
+
* @summary Channels queries all the IBC channels of a chain.
|
|
1109
|
+
* @request GET:/ibc/core/channel/v1/channels
|
|
1110
|
+
*/
|
|
1111
|
+
queryChannels = (
|
|
1112
|
+
query?: {
|
|
1113
|
+
"pagination.key"?: string;
|
|
1114
|
+
"pagination.offset"?: string;
|
|
1115
|
+
"pagination.limit"?: string;
|
|
1116
|
+
"pagination.count_total"?: boolean;
|
|
1117
|
+
"pagination.reverse"?: boolean;
|
|
1118
|
+
},
|
|
1119
|
+
params: RequestParams = {},
|
|
1120
|
+
) =>
|
|
1121
|
+
this.request<V1QueryChannelsResponse, RpcStatus>({
|
|
1122
|
+
path: `/ibc/core/channel/v1/channels`,
|
|
1123
|
+
method: "GET",
|
|
1124
|
+
query: query,
|
|
1125
|
+
format: "json",
|
|
1126
|
+
...params,
|
|
1127
|
+
});
|
|
1128
|
+
|
|
1129
|
+
/**
|
|
1130
|
+
* No description
|
|
1131
|
+
*
|
|
1132
|
+
* @tags Query
|
|
1133
|
+
* @name QueryChannel
|
|
1134
|
+
* @summary Channel queries an IBC Channel.
|
|
1135
|
+
* @request GET:/ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}
|
|
1136
|
+
*/
|
|
1137
|
+
queryChannel = (channelId: string, portId: string, params: RequestParams = {}) =>
|
|
1138
|
+
this.request<V1QueryChannelResponse, RpcStatus>({
|
|
1139
|
+
path: `/ibc/core/channel/v1/channels/${channelId}/ports/${portId}`,
|
|
1140
|
+
method: "GET",
|
|
1141
|
+
format: "json",
|
|
1142
|
+
...params,
|
|
1143
|
+
});
|
|
1144
|
+
|
|
1145
|
+
/**
|
|
1146
|
+
* No description
|
|
1147
|
+
*
|
|
1148
|
+
* @tags Query
|
|
1149
|
+
* @name QueryChannelClientState
|
|
1150
|
+
* @summary ChannelClientState queries for the client state for the channel associated
|
|
1151
|
+
with the provided channel identifiers.
|
|
1152
|
+
* @request GET:/ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/client_state
|
|
1153
|
+
*/
|
|
1154
|
+
queryChannelClientState = (channelId: string, portId: string, params: RequestParams = {}) =>
|
|
1155
|
+
this.request<V1QueryChannelClientStateResponse, RpcStatus>({
|
|
1156
|
+
path: `/ibc/core/channel/v1/channels/${channelId}/ports/${portId}/client_state`,
|
|
1157
|
+
method: "GET",
|
|
1158
|
+
format: "json",
|
|
1159
|
+
...params,
|
|
1160
|
+
});
|
|
1161
|
+
|
|
1162
|
+
/**
|
|
1163
|
+
* No description
|
|
1164
|
+
*
|
|
1165
|
+
* @tags Query
|
|
1166
|
+
* @name QueryChannelConsensusState
|
|
1167
|
+
* @summary ChannelConsensusState queries for the consensus state for the channel
|
|
1168
|
+
associated with the provided channel identifiers.
|
|
1169
|
+
* @request GET:/ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/consensus_state/revision/{revision_number}/height/{revision_height}
|
|
1170
|
+
*/
|
|
1171
|
+
queryChannelConsensusState = (
|
|
1172
|
+
channelId: string,
|
|
1173
|
+
portId: string,
|
|
1174
|
+
revisionNumber: string,
|
|
1175
|
+
revisionHeight: string,
|
|
1176
|
+
params: RequestParams = {},
|
|
1177
|
+
) =>
|
|
1178
|
+
this.request<V1QueryChannelConsensusStateResponse, RpcStatus>({
|
|
1179
|
+
path: `/ibc/core/channel/v1/channels/${channelId}/ports/${portId}/consensus_state/revision/${revisionNumber}/height/${revisionHeight}`,
|
|
1180
|
+
method: "GET",
|
|
1181
|
+
format: "json",
|
|
1182
|
+
...params,
|
|
1183
|
+
});
|
|
1184
|
+
|
|
1185
|
+
/**
|
|
1186
|
+
* No description
|
|
1187
|
+
*
|
|
1188
|
+
* @tags Query
|
|
1189
|
+
* @name QueryNextSequenceReceive
|
|
1190
|
+
* @summary NextSequenceReceive returns the next receive sequence for a given channel.
|
|
1191
|
+
* @request GET:/ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/next_sequence
|
|
1192
|
+
*/
|
|
1193
|
+
queryNextSequenceReceive = (channelId: string, portId: string, params: RequestParams = {}) =>
|
|
1194
|
+
this.request<V1QueryNextSequenceReceiveResponse, RpcStatus>({
|
|
1195
|
+
path: `/ibc/core/channel/v1/channels/${channelId}/ports/${portId}/next_sequence`,
|
|
1196
|
+
method: "GET",
|
|
1197
|
+
format: "json",
|
|
1198
|
+
...params,
|
|
1199
|
+
});
|
|
1200
|
+
|
|
1201
|
+
/**
|
|
1202
|
+
* No description
|
|
1203
|
+
*
|
|
1204
|
+
* @tags Query
|
|
1205
|
+
* @name QueryPacketAcknowledgements
|
|
1206
|
+
* @summary PacketAcknowledgements returns all the packet acknowledgements associated
|
|
1207
|
+
with a channel.
|
|
1208
|
+
* @request GET:/ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/packet_acknowledgements
|
|
1209
|
+
*/
|
|
1210
|
+
queryPacketAcknowledgements = (
|
|
1211
|
+
channelId: string,
|
|
1212
|
+
portId: string,
|
|
1213
|
+
query?: {
|
|
1214
|
+
"pagination.key"?: string;
|
|
1215
|
+
"pagination.offset"?: string;
|
|
1216
|
+
"pagination.limit"?: string;
|
|
1217
|
+
"pagination.count_total"?: boolean;
|
|
1218
|
+
"pagination.reverse"?: boolean;
|
|
1219
|
+
packet_commitment_sequences?: string[];
|
|
1220
|
+
},
|
|
1221
|
+
params: RequestParams = {},
|
|
1222
|
+
) =>
|
|
1223
|
+
this.request<V1QueryPacketAcknowledgementsResponse, RpcStatus>({
|
|
1224
|
+
path: `/ibc/core/channel/v1/channels/${channelId}/ports/${portId}/packet_acknowledgements`,
|
|
1225
|
+
method: "GET",
|
|
1226
|
+
query: query,
|
|
1227
|
+
format: "json",
|
|
1228
|
+
...params,
|
|
1229
|
+
});
|
|
1230
|
+
|
|
1231
|
+
/**
|
|
1232
|
+
* No description
|
|
1233
|
+
*
|
|
1234
|
+
* @tags Query
|
|
1235
|
+
* @name QueryPacketAcknowledgement
|
|
1236
|
+
* @summary PacketAcknowledgement queries a stored packet acknowledgement hash.
|
|
1237
|
+
* @request GET:/ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/packet_acks/{sequence}
|
|
1238
|
+
*/
|
|
1239
|
+
queryPacketAcknowledgement = (channelId: string, portId: string, sequence: string, params: RequestParams = {}) =>
|
|
1240
|
+
this.request<V1QueryPacketAcknowledgementResponse, RpcStatus>({
|
|
1241
|
+
path: `/ibc/core/channel/v1/channels/${channelId}/ports/${portId}/packet_acks/${sequence}`,
|
|
1242
|
+
method: "GET",
|
|
1243
|
+
format: "json",
|
|
1244
|
+
...params,
|
|
1245
|
+
});
|
|
1246
|
+
|
|
1247
|
+
/**
|
|
1248
|
+
* No description
|
|
1249
|
+
*
|
|
1250
|
+
* @tags Query
|
|
1251
|
+
* @name QueryPacketCommitments
|
|
1252
|
+
* @summary PacketCommitments returns all the packet commitments hashes associated
|
|
1253
|
+
with a channel.
|
|
1254
|
+
* @request GET:/ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/packet_commitments
|
|
1255
|
+
*/
|
|
1256
|
+
queryPacketCommitments = (
|
|
1257
|
+
channelId: string,
|
|
1258
|
+
portId: string,
|
|
1259
|
+
query?: {
|
|
1260
|
+
"pagination.key"?: string;
|
|
1261
|
+
"pagination.offset"?: string;
|
|
1262
|
+
"pagination.limit"?: string;
|
|
1263
|
+
"pagination.count_total"?: boolean;
|
|
1264
|
+
"pagination.reverse"?: boolean;
|
|
1265
|
+
},
|
|
1266
|
+
params: RequestParams = {},
|
|
1267
|
+
) =>
|
|
1268
|
+
this.request<V1QueryPacketCommitmentsResponse, RpcStatus>({
|
|
1269
|
+
path: `/ibc/core/channel/v1/channels/${channelId}/ports/${portId}/packet_commitments`,
|
|
1270
|
+
method: "GET",
|
|
1271
|
+
query: query,
|
|
1272
|
+
format: "json",
|
|
1273
|
+
...params,
|
|
1274
|
+
});
|
|
1275
|
+
|
|
1276
|
+
/**
|
|
1277
|
+
* No description
|
|
1278
|
+
*
|
|
1279
|
+
* @tags Query
|
|
1280
|
+
* @name QueryUnreceivedAcks
|
|
1281
|
+
* @summary UnreceivedAcks returns all the unreceived IBC acknowledgements associated
|
|
1282
|
+
with a channel and sequences.
|
|
1283
|
+
* @request GET:/ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/packet_commitments/{packet_ack_sequences}/unreceived_acks
|
|
1284
|
+
*/
|
|
1285
|
+
queryUnreceivedAcks = (channelId: string, portId: string, packetAckSequences: string[], params: RequestParams = {}) =>
|
|
1286
|
+
this.request<V1QueryUnreceivedAcksResponse, RpcStatus>({
|
|
1287
|
+
path: `/ibc/core/channel/v1/channels/${channelId}/ports/${portId}/packet_commitments/${packetAckSequences}/unreceived_acks`,
|
|
1288
|
+
method: "GET",
|
|
1289
|
+
format: "json",
|
|
1290
|
+
...params,
|
|
1291
|
+
});
|
|
1292
|
+
|
|
1293
|
+
/**
|
|
1294
|
+
* No description
|
|
1295
|
+
*
|
|
1296
|
+
* @tags Query
|
|
1297
|
+
* @name QueryUnreceivedPackets
|
|
1298
|
+
* @summary UnreceivedPackets returns all the unreceived IBC packets associated with a
|
|
1299
|
+
channel and sequences.
|
|
1300
|
+
* @request GET:/ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/packet_commitments/{packet_commitment_sequences}/unreceived_packets
|
|
1301
|
+
*/
|
|
1302
|
+
queryUnreceivedPackets = (
|
|
1303
|
+
channelId: string,
|
|
1304
|
+
portId: string,
|
|
1305
|
+
packetCommitmentSequences: string[],
|
|
1306
|
+
params: RequestParams = {},
|
|
1307
|
+
) =>
|
|
1308
|
+
this.request<V1QueryUnreceivedPacketsResponse, RpcStatus>({
|
|
1309
|
+
path: `/ibc/core/channel/v1/channels/${channelId}/ports/${portId}/packet_commitments/${packetCommitmentSequences}/unreceived_packets`,
|
|
1310
|
+
method: "GET",
|
|
1311
|
+
format: "json",
|
|
1312
|
+
...params,
|
|
1313
|
+
});
|
|
1314
|
+
|
|
1315
|
+
/**
|
|
1316
|
+
* No description
|
|
1317
|
+
*
|
|
1318
|
+
* @tags Query
|
|
1319
|
+
* @name QueryPacketCommitment
|
|
1320
|
+
* @summary PacketCommitment queries a stored packet commitment hash.
|
|
1321
|
+
* @request GET:/ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/packet_commitments/{sequence}
|
|
1322
|
+
*/
|
|
1323
|
+
queryPacketCommitment = (channelId: string, portId: string, sequence: string, params: RequestParams = {}) =>
|
|
1324
|
+
this.request<V1QueryPacketCommitmentResponse, RpcStatus>({
|
|
1325
|
+
path: `/ibc/core/channel/v1/channels/${channelId}/ports/${portId}/packet_commitments/${sequence}`,
|
|
1326
|
+
method: "GET",
|
|
1327
|
+
format: "json",
|
|
1328
|
+
...params,
|
|
1329
|
+
});
|
|
1330
|
+
|
|
1331
|
+
/**
|
|
1332
|
+
* No description
|
|
1333
|
+
*
|
|
1334
|
+
* @tags Query
|
|
1335
|
+
* @name QueryPacketReceipt
|
|
1336
|
+
* @summary PacketReceipt queries if a given packet sequence has been received on the
|
|
1337
|
+
queried chain
|
|
1338
|
+
* @request GET:/ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/packet_receipts/{sequence}
|
|
1339
|
+
*/
|
|
1340
|
+
queryPacketReceipt = (channelId: string, portId: string, sequence: string, params: RequestParams = {}) =>
|
|
1341
|
+
this.request<V1QueryPacketReceiptResponse, RpcStatus>({
|
|
1342
|
+
path: `/ibc/core/channel/v1/channels/${channelId}/ports/${portId}/packet_receipts/${sequence}`,
|
|
1343
|
+
method: "GET",
|
|
1344
|
+
format: "json",
|
|
1345
|
+
...params,
|
|
1346
|
+
});
|
|
1347
|
+
|
|
1348
|
+
/**
|
|
1349
|
+
* No description
|
|
1350
|
+
*
|
|
1351
|
+
* @tags Query
|
|
1352
|
+
* @name QueryConnectionChannels
|
|
1353
|
+
* @summary ConnectionChannels queries all the channels associated with a connection
|
|
1354
|
+
end.
|
|
1355
|
+
* @request GET:/ibc/core/channel/v1/connections/{connection}/channels
|
|
1356
|
+
*/
|
|
1357
|
+
queryConnectionChannels = (
|
|
1358
|
+
connection: string,
|
|
1359
|
+
query?: {
|
|
1360
|
+
"pagination.key"?: string;
|
|
1361
|
+
"pagination.offset"?: string;
|
|
1362
|
+
"pagination.limit"?: string;
|
|
1363
|
+
"pagination.count_total"?: boolean;
|
|
1364
|
+
"pagination.reverse"?: boolean;
|
|
1365
|
+
},
|
|
1366
|
+
params: RequestParams = {},
|
|
1367
|
+
) =>
|
|
1368
|
+
this.request<V1QueryConnectionChannelsResponse, RpcStatus>({
|
|
1369
|
+
path: `/ibc/core/channel/v1/connections/${connection}/channels`,
|
|
1370
|
+
method: "GET",
|
|
1371
|
+
query: query,
|
|
1372
|
+
format: "json",
|
|
1373
|
+
...params,
|
|
1374
|
+
});
|
|
1375
|
+
}
|