@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,889 @@
|
|
|
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
|
+
* Params defines the set of Connection parameters.
|
|
14
|
+
*/
|
|
15
|
+
export interface Coreconnectionv1Params {
|
|
16
|
+
/**
|
|
17
|
+
* maximum expected time per block (in nanoseconds), used to enforce block delay. This parameter should reflect the
|
|
18
|
+
* largest amount of time that the chain might reasonably take to produce the next block under normal operating
|
|
19
|
+
* conditions. A safe choice is 3-5x the expected time per block.
|
|
20
|
+
* @format uint64
|
|
21
|
+
*/
|
|
22
|
+
max_expected_time_per_block?: string;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* `Any` contains an arbitrary serialized protocol buffer message along with a
|
|
27
|
+
URL that describes the type of the serialized message.
|
|
28
|
+
|
|
29
|
+
Protobuf library provides support to pack/unpack Any values in the form
|
|
30
|
+
of utility functions or additional generated methods of the Any type.
|
|
31
|
+
|
|
32
|
+
Example 1: Pack and unpack a message in C++.
|
|
33
|
+
|
|
34
|
+
Foo foo = ...;
|
|
35
|
+
Any any;
|
|
36
|
+
any.PackFrom(foo);
|
|
37
|
+
...
|
|
38
|
+
if (any.UnpackTo(&foo)) {
|
|
39
|
+
...
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
Example 2: Pack and unpack a message in Java.
|
|
43
|
+
|
|
44
|
+
Foo foo = ...;
|
|
45
|
+
Any any = Any.pack(foo);
|
|
46
|
+
...
|
|
47
|
+
if (any.is(Foo.class)) {
|
|
48
|
+
foo = any.unpack(Foo.class);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
Example 3: Pack and unpack a message in Python.
|
|
52
|
+
|
|
53
|
+
foo = Foo(...)
|
|
54
|
+
any = Any()
|
|
55
|
+
any.Pack(foo)
|
|
56
|
+
...
|
|
57
|
+
if any.Is(Foo.DESCRIPTOR):
|
|
58
|
+
any.Unpack(foo)
|
|
59
|
+
...
|
|
60
|
+
|
|
61
|
+
Example 4: Pack and unpack a message in Go
|
|
62
|
+
|
|
63
|
+
foo := &pb.Foo{...}
|
|
64
|
+
any, err := anypb.New(foo)
|
|
65
|
+
if err != nil {
|
|
66
|
+
...
|
|
67
|
+
}
|
|
68
|
+
...
|
|
69
|
+
foo := &pb.Foo{}
|
|
70
|
+
if err := any.UnmarshalTo(foo); err != nil {
|
|
71
|
+
...
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
The pack methods provided by protobuf library will by default use
|
|
75
|
+
'type.googleapis.com/full.type.name' as the type URL and the unpack
|
|
76
|
+
methods only use the fully qualified type name after the last '/'
|
|
77
|
+
in the type URL, for example "foo.bar.com/x/y.z" will yield type
|
|
78
|
+
name "y.z".
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
JSON
|
|
82
|
+
====
|
|
83
|
+
The JSON representation of an `Any` value uses the regular
|
|
84
|
+
representation of the deserialized, embedded message, with an
|
|
85
|
+
additional field `@type` which contains the type URL. Example:
|
|
86
|
+
|
|
87
|
+
package google.profile;
|
|
88
|
+
message Person {
|
|
89
|
+
string first_name = 1;
|
|
90
|
+
string last_name = 2;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
{
|
|
94
|
+
"@type": "type.googleapis.com/google.profile.Person",
|
|
95
|
+
"firstName": <string>,
|
|
96
|
+
"lastName": <string>
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
If the embedded message type is well-known and has a custom JSON
|
|
100
|
+
representation, that representation will be embedded adding a field
|
|
101
|
+
`value` which holds the custom JSON in addition to the `@type`
|
|
102
|
+
field. Example (for message [google.protobuf.Duration][]):
|
|
103
|
+
|
|
104
|
+
{
|
|
105
|
+
"@type": "type.googleapis.com/google.protobuf.Duration",
|
|
106
|
+
"value": "1.212s"
|
|
107
|
+
}
|
|
108
|
+
*/
|
|
109
|
+
export interface ProtobufAny {
|
|
110
|
+
/**
|
|
111
|
+
* A URL/resource name that uniquely identifies the type of the serialized
|
|
112
|
+
* protocol buffer message. This string must contain at least
|
|
113
|
+
* one "/" character. The last segment of the URL's path must represent
|
|
114
|
+
* the fully qualified name of the type (as in
|
|
115
|
+
* `path/google.protobuf.Duration`). The name should be in a canonical form
|
|
116
|
+
* (e.g., leading "." is not accepted).
|
|
117
|
+
*
|
|
118
|
+
* In practice, teams usually precompile into the binary all types that they
|
|
119
|
+
* expect it to use in the context of Any. However, for URLs which use the
|
|
120
|
+
* scheme `http`, `https`, or no scheme, one can optionally set up a type
|
|
121
|
+
* server that maps type URLs to message definitions as follows:
|
|
122
|
+
* * If no scheme is provided, `https` is assumed.
|
|
123
|
+
* * An HTTP GET on the URL must yield a [google.protobuf.Type][]
|
|
124
|
+
* value in binary format, or produce an error.
|
|
125
|
+
* * Applications are allowed to cache lookup results based on the
|
|
126
|
+
* URL, or have them precompiled into a binary to avoid any
|
|
127
|
+
* lookup. Therefore, binary compatibility needs to be preserved
|
|
128
|
+
* on changes to types. (Use versioned type names to manage
|
|
129
|
+
* breaking changes.)
|
|
130
|
+
* Note: this functionality is not currently available in the official
|
|
131
|
+
* protobuf release, and it is not used for type URLs beginning with
|
|
132
|
+
* type.googleapis.com.
|
|
133
|
+
* Schemes other than `http`, `https` (or the empty scheme) might be
|
|
134
|
+
* used with implementation specific semantics.
|
|
135
|
+
*/
|
|
136
|
+
"@type"?: string;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export interface RpcStatus {
|
|
140
|
+
/** @format int32 */
|
|
141
|
+
code?: number;
|
|
142
|
+
message?: string;
|
|
143
|
+
details?: ProtobufAny[];
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* ConnectionEnd defines a stateful object on a chain connected to another
|
|
148
|
+
separate one.
|
|
149
|
+
NOTE: there must only be 2 defined ConnectionEnds to establish
|
|
150
|
+
a connection between two chains.
|
|
151
|
+
*/
|
|
152
|
+
export interface V1ConnectionEnd {
|
|
153
|
+
/** client associated with this connection. */
|
|
154
|
+
client_id?: string;
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* IBC version which can be utilised to determine encodings or protocols for
|
|
158
|
+
* channels or packets utilising this connection.
|
|
159
|
+
*/
|
|
160
|
+
versions?: V1Version[];
|
|
161
|
+
|
|
162
|
+
/** current state of the connection end. */
|
|
163
|
+
state?: V1State;
|
|
164
|
+
|
|
165
|
+
/** counterparty chain associated with this connection. */
|
|
166
|
+
counterparty?: V1Counterparty;
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* delay period that must pass before a consensus state can be used for
|
|
170
|
+
* packet-verification NOTE: delay period logic is only implemented by some
|
|
171
|
+
* clients.
|
|
172
|
+
* @format uint64
|
|
173
|
+
*/
|
|
174
|
+
delay_period?: string;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* Counterparty defines the counterparty chain associated with a connection end.
|
|
179
|
+
*/
|
|
180
|
+
export interface V1Counterparty {
|
|
181
|
+
/**
|
|
182
|
+
* identifies the client on the counterparty chain associated with a given
|
|
183
|
+
* connection.
|
|
184
|
+
*/
|
|
185
|
+
client_id?: string;
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* identifies the connection end on the counterparty chain associated with a
|
|
189
|
+
* given connection.
|
|
190
|
+
*/
|
|
191
|
+
connection_id?: string;
|
|
192
|
+
|
|
193
|
+
/** commitment merkle prefix of the counterparty chain. */
|
|
194
|
+
prefix?: V1MerklePrefix;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* Normally the RevisionHeight is incremented at each height while keeping
|
|
199
|
+
RevisionNumber the same. However some consensus algorithms may choose to
|
|
200
|
+
reset the height in certain conditions e.g. hard forks, state-machine
|
|
201
|
+
breaking changes In these cases, the RevisionNumber is incremented so that
|
|
202
|
+
height continues to be monitonically increasing even as the RevisionHeight
|
|
203
|
+
gets reset
|
|
204
|
+
*/
|
|
205
|
+
export interface V1Height {
|
|
206
|
+
/**
|
|
207
|
+
* the revision that the client is currently on
|
|
208
|
+
* @format uint64
|
|
209
|
+
*/
|
|
210
|
+
revision_number?: string;
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* the height within the given revision
|
|
214
|
+
* @format uint64
|
|
215
|
+
*/
|
|
216
|
+
revision_height?: string;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* IdentifiedClientState defines a client state with an additional client
|
|
221
|
+
identifier field.
|
|
222
|
+
*/
|
|
223
|
+
export interface V1IdentifiedClientState {
|
|
224
|
+
/** client identifier */
|
|
225
|
+
client_id?: string;
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* client state
|
|
229
|
+
* `Any` contains an arbitrary serialized protocol buffer message along with a
|
|
230
|
+
* URL that describes the type of the serialized message.
|
|
231
|
+
*
|
|
232
|
+
* Protobuf library provides support to pack/unpack Any values in the form
|
|
233
|
+
* of utility functions or additional generated methods of the Any type.
|
|
234
|
+
* Example 1: Pack and unpack a message in C++.
|
|
235
|
+
* Foo foo = ...;
|
|
236
|
+
* Any any;
|
|
237
|
+
* any.PackFrom(foo);
|
|
238
|
+
* ...
|
|
239
|
+
* if (any.UnpackTo(&foo)) {
|
|
240
|
+
* ...
|
|
241
|
+
* }
|
|
242
|
+
* Example 2: Pack and unpack a message in Java.
|
|
243
|
+
* Any any = Any.pack(foo);
|
|
244
|
+
* if (any.is(Foo.class)) {
|
|
245
|
+
* foo = any.unpack(Foo.class);
|
|
246
|
+
* Example 3: Pack and unpack a message in Python.
|
|
247
|
+
* foo = Foo(...)
|
|
248
|
+
* any = Any()
|
|
249
|
+
* any.Pack(foo)
|
|
250
|
+
* if any.Is(Foo.DESCRIPTOR):
|
|
251
|
+
* any.Unpack(foo)
|
|
252
|
+
* Example 4: Pack and unpack a message in Go
|
|
253
|
+
* foo := &pb.Foo{...}
|
|
254
|
+
* any, err := anypb.New(foo)
|
|
255
|
+
* if err != nil {
|
|
256
|
+
* ...
|
|
257
|
+
* }
|
|
258
|
+
* ...
|
|
259
|
+
* foo := &pb.Foo{}
|
|
260
|
+
* if err := any.UnmarshalTo(foo); err != nil {
|
|
261
|
+
* The pack methods provided by protobuf library will by default use
|
|
262
|
+
* 'type.googleapis.com/full.type.name' as the type URL and the unpack
|
|
263
|
+
* methods only use the fully qualified type name after the last '/'
|
|
264
|
+
* in the type URL, for example "foo.bar.com/x/y.z" will yield type
|
|
265
|
+
* name "y.z".
|
|
266
|
+
* JSON
|
|
267
|
+
* ====
|
|
268
|
+
* The JSON representation of an `Any` value uses the regular
|
|
269
|
+
* representation of the deserialized, embedded message, with an
|
|
270
|
+
* additional field `@type` which contains the type URL. Example:
|
|
271
|
+
* package google.profile;
|
|
272
|
+
* message Person {
|
|
273
|
+
* string first_name = 1;
|
|
274
|
+
* string last_name = 2;
|
|
275
|
+
* {
|
|
276
|
+
* "@type": "type.googleapis.com/google.profile.Person",
|
|
277
|
+
* "firstName": <string>,
|
|
278
|
+
* "lastName": <string>
|
|
279
|
+
* If the embedded message type is well-known and has a custom JSON
|
|
280
|
+
* representation, that representation will be embedded adding a field
|
|
281
|
+
* `value` which holds the custom JSON in addition to the `@type`
|
|
282
|
+
* field. Example (for message [google.protobuf.Duration][]):
|
|
283
|
+
* "@type": "type.googleapis.com/google.protobuf.Duration",
|
|
284
|
+
* "value": "1.212s"
|
|
285
|
+
*/
|
|
286
|
+
client_state?: ProtobufAny;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
/**
|
|
290
|
+
* IdentifiedConnection defines a connection with additional connection
|
|
291
|
+
identifier field.
|
|
292
|
+
*/
|
|
293
|
+
export interface V1IdentifiedConnection {
|
|
294
|
+
/** connection identifier. */
|
|
295
|
+
id?: string;
|
|
296
|
+
|
|
297
|
+
/** client associated with this connection. */
|
|
298
|
+
client_id?: string;
|
|
299
|
+
|
|
300
|
+
/**
|
|
301
|
+
* IBC version which can be utilised to determine encodings or protocols for
|
|
302
|
+
* channels or packets utilising this connection
|
|
303
|
+
*/
|
|
304
|
+
versions?: V1Version[];
|
|
305
|
+
|
|
306
|
+
/** current state of the connection end. */
|
|
307
|
+
state?: V1State;
|
|
308
|
+
|
|
309
|
+
/** counterparty chain associated with this connection. */
|
|
310
|
+
counterparty?: V1Counterparty;
|
|
311
|
+
|
|
312
|
+
/**
|
|
313
|
+
* delay period associated with this connection.
|
|
314
|
+
* @format uint64
|
|
315
|
+
*/
|
|
316
|
+
delay_period?: string;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
export interface V1MerklePrefix {
|
|
320
|
+
/** @format byte */
|
|
321
|
+
key_prefix?: string;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
/**
|
|
325
|
+
* MsgConnectionOpenAckResponse defines the Msg/ConnectionOpenAck response type.
|
|
326
|
+
*/
|
|
327
|
+
export type V1MsgConnectionOpenAckResponse = object;
|
|
328
|
+
|
|
329
|
+
/**
|
|
330
|
+
* MsgConnectionOpenConfirmResponse defines the Msg/ConnectionOpenConfirm
|
|
331
|
+
response type.
|
|
332
|
+
*/
|
|
333
|
+
export type V1MsgConnectionOpenConfirmResponse = object;
|
|
334
|
+
|
|
335
|
+
/**
|
|
336
|
+
* MsgConnectionOpenInitResponse defines the Msg/ConnectionOpenInit response
|
|
337
|
+
type.
|
|
338
|
+
*/
|
|
339
|
+
export type V1MsgConnectionOpenInitResponse = object;
|
|
340
|
+
|
|
341
|
+
/**
|
|
342
|
+
* MsgConnectionOpenTryResponse defines the Msg/ConnectionOpenTry response type.
|
|
343
|
+
*/
|
|
344
|
+
export type V1MsgConnectionOpenTryResponse = object;
|
|
345
|
+
|
|
346
|
+
export interface V1QueryClientConnectionsResponse {
|
|
347
|
+
/** slice of all the connection paths associated with a client. */
|
|
348
|
+
connection_paths?: string[];
|
|
349
|
+
|
|
350
|
+
/**
|
|
351
|
+
* merkle proof of existence
|
|
352
|
+
* @format byte
|
|
353
|
+
*/
|
|
354
|
+
proof?: string;
|
|
355
|
+
|
|
356
|
+
/**
|
|
357
|
+
* height at which the proof was generated
|
|
358
|
+
* Normally the RevisionHeight is incremented at each height while keeping
|
|
359
|
+
* RevisionNumber the same. However some consensus algorithms may choose to
|
|
360
|
+
* reset the height in certain conditions e.g. hard forks, state-machine
|
|
361
|
+
* breaking changes In these cases, the RevisionNumber is incremented so that
|
|
362
|
+
* height continues to be monitonically increasing even as the RevisionHeight
|
|
363
|
+
* gets reset
|
|
364
|
+
*/
|
|
365
|
+
proof_height?: V1Height;
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
export interface V1QueryConnectionClientStateResponse {
|
|
369
|
+
/**
|
|
370
|
+
* client state associated with the channel
|
|
371
|
+
* IdentifiedClientState defines a client state with an additional client
|
|
372
|
+
* identifier field.
|
|
373
|
+
*/
|
|
374
|
+
identified_client_state?: V1IdentifiedClientState;
|
|
375
|
+
|
|
376
|
+
/**
|
|
377
|
+
* merkle proof of existence
|
|
378
|
+
* @format byte
|
|
379
|
+
*/
|
|
380
|
+
proof?: string;
|
|
381
|
+
|
|
382
|
+
/**
|
|
383
|
+
* height at which the proof was retrieved
|
|
384
|
+
* Normally the RevisionHeight is incremented at each height while keeping
|
|
385
|
+
* RevisionNumber the same. However some consensus algorithms may choose to
|
|
386
|
+
* reset the height in certain conditions e.g. hard forks, state-machine
|
|
387
|
+
* breaking changes In these cases, the RevisionNumber is incremented so that
|
|
388
|
+
* height continues to be monitonically increasing even as the RevisionHeight
|
|
389
|
+
* gets reset
|
|
390
|
+
*/
|
|
391
|
+
proof_height?: V1Height;
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
export interface V1QueryConnectionConsensusStateResponse {
|
|
395
|
+
/**
|
|
396
|
+
* consensus state associated with the channel
|
|
397
|
+
* `Any` contains an arbitrary serialized protocol buffer message along with a
|
|
398
|
+
* URL that describes the type of the serialized message.
|
|
399
|
+
*
|
|
400
|
+
* Protobuf library provides support to pack/unpack Any values in the form
|
|
401
|
+
* of utility functions or additional generated methods of the Any type.
|
|
402
|
+
* Example 1: Pack and unpack a message in C++.
|
|
403
|
+
* Foo foo = ...;
|
|
404
|
+
* Any any;
|
|
405
|
+
* any.PackFrom(foo);
|
|
406
|
+
* ...
|
|
407
|
+
* if (any.UnpackTo(&foo)) {
|
|
408
|
+
* ...
|
|
409
|
+
* }
|
|
410
|
+
* Example 2: Pack and unpack a message in Java.
|
|
411
|
+
* Any any = Any.pack(foo);
|
|
412
|
+
* if (any.is(Foo.class)) {
|
|
413
|
+
* foo = any.unpack(Foo.class);
|
|
414
|
+
* Example 3: Pack and unpack a message in Python.
|
|
415
|
+
* foo = Foo(...)
|
|
416
|
+
* any = Any()
|
|
417
|
+
* any.Pack(foo)
|
|
418
|
+
* if any.Is(Foo.DESCRIPTOR):
|
|
419
|
+
* any.Unpack(foo)
|
|
420
|
+
* Example 4: Pack and unpack a message in Go
|
|
421
|
+
* foo := &pb.Foo{...}
|
|
422
|
+
* any, err := anypb.New(foo)
|
|
423
|
+
* if err != nil {
|
|
424
|
+
* ...
|
|
425
|
+
* }
|
|
426
|
+
* ...
|
|
427
|
+
* foo := &pb.Foo{}
|
|
428
|
+
* if err := any.UnmarshalTo(foo); err != nil {
|
|
429
|
+
* The pack methods provided by protobuf library will by default use
|
|
430
|
+
* 'type.googleapis.com/full.type.name' as the type URL and the unpack
|
|
431
|
+
* methods only use the fully qualified type name after the last '/'
|
|
432
|
+
* in the type URL, for example "foo.bar.com/x/y.z" will yield type
|
|
433
|
+
* name "y.z".
|
|
434
|
+
* JSON
|
|
435
|
+
* ====
|
|
436
|
+
* The JSON representation of an `Any` value uses the regular
|
|
437
|
+
* representation of the deserialized, embedded message, with an
|
|
438
|
+
* additional field `@type` which contains the type URL. Example:
|
|
439
|
+
* package google.profile;
|
|
440
|
+
* message Person {
|
|
441
|
+
* string first_name = 1;
|
|
442
|
+
* string last_name = 2;
|
|
443
|
+
* {
|
|
444
|
+
* "@type": "type.googleapis.com/google.profile.Person",
|
|
445
|
+
* "firstName": <string>,
|
|
446
|
+
* "lastName": <string>
|
|
447
|
+
* If the embedded message type is well-known and has a custom JSON
|
|
448
|
+
* representation, that representation will be embedded adding a field
|
|
449
|
+
* `value` which holds the custom JSON in addition to the `@type`
|
|
450
|
+
* field. Example (for message [google.protobuf.Duration][]):
|
|
451
|
+
* "@type": "type.googleapis.com/google.protobuf.Duration",
|
|
452
|
+
* "value": "1.212s"
|
|
453
|
+
*/
|
|
454
|
+
consensus_state?: ProtobufAny;
|
|
455
|
+
|
|
456
|
+
/** client ID associated with the consensus state */
|
|
457
|
+
client_id?: string;
|
|
458
|
+
|
|
459
|
+
/**
|
|
460
|
+
* merkle proof of existence
|
|
461
|
+
* @format byte
|
|
462
|
+
*/
|
|
463
|
+
proof?: string;
|
|
464
|
+
|
|
465
|
+
/**
|
|
466
|
+
* height at which the proof was retrieved
|
|
467
|
+
* Normally the RevisionHeight is incremented at each height while keeping
|
|
468
|
+
* RevisionNumber the same. However some consensus algorithms may choose to
|
|
469
|
+
* reset the height in certain conditions e.g. hard forks, state-machine
|
|
470
|
+
* breaking changes In these cases, the RevisionNumber is incremented so that
|
|
471
|
+
* height continues to be monitonically increasing even as the RevisionHeight
|
|
472
|
+
* gets reset
|
|
473
|
+
*/
|
|
474
|
+
proof_height?: V1Height;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
/**
|
|
478
|
+
* QueryConnectionParamsResponse is the response type for the Query/ConnectionParams RPC method.
|
|
479
|
+
*/
|
|
480
|
+
export interface V1QueryConnectionParamsResponse {
|
|
481
|
+
/** params defines the parameters of the module. */
|
|
482
|
+
params?: Coreconnectionv1Params;
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
/**
|
|
486
|
+
* QueryConnectionResponse is the response type for the Query/Connection RPC
|
|
487
|
+
method. Besides the connection end, it includes a proof and the height from
|
|
488
|
+
which the proof was retrieved.
|
|
489
|
+
*/
|
|
490
|
+
export interface V1QueryConnectionResponse {
|
|
491
|
+
/**
|
|
492
|
+
* connection associated with the request identifier
|
|
493
|
+
* ConnectionEnd defines a stateful object on a chain connected to another
|
|
494
|
+
* separate one.
|
|
495
|
+
* NOTE: there must only be 2 defined ConnectionEnds to establish
|
|
496
|
+
* a connection between two chains.
|
|
497
|
+
*/
|
|
498
|
+
connection?: V1ConnectionEnd;
|
|
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
|
+
/**
|
|
519
|
+
* QueryConnectionsResponse is the response type for the Query/Connections RPC
|
|
520
|
+
method.
|
|
521
|
+
*/
|
|
522
|
+
export interface V1QueryConnectionsResponse {
|
|
523
|
+
/** list of stored connections of the chain. */
|
|
524
|
+
connections?: V1IdentifiedConnection[];
|
|
525
|
+
|
|
526
|
+
/**
|
|
527
|
+
* pagination response
|
|
528
|
+
* PageResponse is to be embedded in gRPC response messages where the
|
|
529
|
+
* corresponding request message has used PageRequest.
|
|
530
|
+
*
|
|
531
|
+
* message SomeResponse {
|
|
532
|
+
* repeated Bar results = 1;
|
|
533
|
+
* PageResponse page = 2;
|
|
534
|
+
* }
|
|
535
|
+
*/
|
|
536
|
+
pagination?: V1Beta1PageResponse;
|
|
537
|
+
|
|
538
|
+
/**
|
|
539
|
+
* query block height
|
|
540
|
+
* Normally the RevisionHeight is incremented at each height while keeping
|
|
541
|
+
* RevisionNumber the same. However some consensus algorithms may choose to
|
|
542
|
+
* reset the height in certain conditions e.g. hard forks, state-machine
|
|
543
|
+
* breaking changes In these cases, the RevisionNumber is incremented so that
|
|
544
|
+
* height continues to be monitonically increasing even as the RevisionHeight
|
|
545
|
+
* gets reset
|
|
546
|
+
*/
|
|
547
|
+
height?: V1Height;
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
/**
|
|
551
|
+
* State defines if a connection is in one of the following states:
|
|
552
|
+
INIT, TRYOPEN, OPEN or UNINITIALIZED.
|
|
553
|
+
|
|
554
|
+
- STATE_UNINITIALIZED_UNSPECIFIED: Default State
|
|
555
|
+
- STATE_INIT: A connection end has just started the opening handshake.
|
|
556
|
+
- STATE_TRYOPEN: A connection end has acknowledged the handshake step on the counterparty
|
|
557
|
+
chain.
|
|
558
|
+
- STATE_OPEN: A connection end has completed the handshake.
|
|
559
|
+
*/
|
|
560
|
+
export enum V1State {
|
|
561
|
+
STATE_UNINITIALIZED_UNSPECIFIED = "STATE_UNINITIALIZED_UNSPECIFIED",
|
|
562
|
+
STATE_INIT = "STATE_INIT",
|
|
563
|
+
STATE_TRYOPEN = "STATE_TRYOPEN",
|
|
564
|
+
STATE_OPEN = "STATE_OPEN",
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
/**
|
|
568
|
+
* Version defines the versioning scheme used to negotiate the IBC verison in
|
|
569
|
+
the connection handshake.
|
|
570
|
+
*/
|
|
571
|
+
export interface V1Version {
|
|
572
|
+
/** unique version identifier */
|
|
573
|
+
identifier?: string;
|
|
574
|
+
|
|
575
|
+
/** list of features compatible with the specified identifier */
|
|
576
|
+
features?: string[];
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
/**
|
|
580
|
+
* message SomeRequest {
|
|
581
|
+
Foo some_parameter = 1;
|
|
582
|
+
PageRequest pagination = 2;
|
|
583
|
+
}
|
|
584
|
+
*/
|
|
585
|
+
export interface V1Beta1PageRequest {
|
|
586
|
+
/**
|
|
587
|
+
* key is a value returned in PageResponse.next_key to begin
|
|
588
|
+
* querying the next page most efficiently. Only one of offset or key
|
|
589
|
+
* should be set.
|
|
590
|
+
* @format byte
|
|
591
|
+
*/
|
|
592
|
+
key?: string;
|
|
593
|
+
|
|
594
|
+
/**
|
|
595
|
+
* offset is a numeric offset that can be used when key is unavailable.
|
|
596
|
+
* It is less efficient than using key. Only one of offset or key should
|
|
597
|
+
* be set.
|
|
598
|
+
* @format uint64
|
|
599
|
+
*/
|
|
600
|
+
offset?: string;
|
|
601
|
+
|
|
602
|
+
/**
|
|
603
|
+
* limit is the total number of results to be returned in the result page.
|
|
604
|
+
* If left empty it will default to a value to be set by each app.
|
|
605
|
+
* @format uint64
|
|
606
|
+
*/
|
|
607
|
+
limit?: string;
|
|
608
|
+
|
|
609
|
+
/**
|
|
610
|
+
* count_total is set to true to indicate that the result set should include
|
|
611
|
+
* a count of the total number of items available for pagination in UIs.
|
|
612
|
+
* count_total is only respected when offset is used. It is ignored when key
|
|
613
|
+
* is set.
|
|
614
|
+
*/
|
|
615
|
+
count_total?: boolean;
|
|
616
|
+
|
|
617
|
+
/**
|
|
618
|
+
* reverse is set to true if results are to be returned in the descending order.
|
|
619
|
+
*
|
|
620
|
+
* Since: cosmos-sdk 0.43
|
|
621
|
+
*/
|
|
622
|
+
reverse?: boolean;
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
/**
|
|
626
|
+
* PageResponse is to be embedded in gRPC response messages where the
|
|
627
|
+
corresponding request message has used PageRequest.
|
|
628
|
+
|
|
629
|
+
message SomeResponse {
|
|
630
|
+
repeated Bar results = 1;
|
|
631
|
+
PageResponse page = 2;
|
|
632
|
+
}
|
|
633
|
+
*/
|
|
634
|
+
export interface V1Beta1PageResponse {
|
|
635
|
+
/**
|
|
636
|
+
* next_key is the key to be passed to PageRequest.key to
|
|
637
|
+
* query the next page most efficiently. It will be empty if
|
|
638
|
+
* there are no more results.
|
|
639
|
+
* @format byte
|
|
640
|
+
*/
|
|
641
|
+
next_key?: string;
|
|
642
|
+
|
|
643
|
+
/**
|
|
644
|
+
* total is total number of results available if PageRequest.count_total
|
|
645
|
+
* was set, its value is undefined otherwise
|
|
646
|
+
* @format uint64
|
|
647
|
+
*/
|
|
648
|
+
total?: string;
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
import axios, { AxiosInstance, AxiosRequestConfig, AxiosResponse, ResponseType } from "axios";
|
|
652
|
+
|
|
653
|
+
export type QueryParamsType = Record<string | number, any>;
|
|
654
|
+
|
|
655
|
+
export interface FullRequestParams extends Omit<AxiosRequestConfig, "data" | "params" | "url" | "responseType"> {
|
|
656
|
+
/** set parameter to `true` for call `securityWorker` for this request */
|
|
657
|
+
secure?: boolean;
|
|
658
|
+
/** request path */
|
|
659
|
+
path: string;
|
|
660
|
+
/** content type of request body */
|
|
661
|
+
type?: ContentType;
|
|
662
|
+
/** query params */
|
|
663
|
+
query?: QueryParamsType;
|
|
664
|
+
/** format of response (i.e. response.json() -> format: "json") */
|
|
665
|
+
format?: ResponseType;
|
|
666
|
+
/** request body */
|
|
667
|
+
body?: unknown;
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
export type RequestParams = Omit<FullRequestParams, "body" | "method" | "query" | "path">;
|
|
671
|
+
|
|
672
|
+
export interface ApiConfig<SecurityDataType = unknown> extends Omit<AxiosRequestConfig, "data" | "cancelToken"> {
|
|
673
|
+
securityWorker?: (
|
|
674
|
+
securityData: SecurityDataType | null,
|
|
675
|
+
) => Promise<AxiosRequestConfig | void> | AxiosRequestConfig | void;
|
|
676
|
+
secure?: boolean;
|
|
677
|
+
format?: ResponseType;
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
export enum ContentType {
|
|
681
|
+
Json = "application/json",
|
|
682
|
+
FormData = "multipart/form-data",
|
|
683
|
+
UrlEncoded = "application/x-www-form-urlencoded",
|
|
684
|
+
}
|
|
685
|
+
|
|
686
|
+
export class HttpClient<SecurityDataType = unknown> {
|
|
687
|
+
public instance: AxiosInstance;
|
|
688
|
+
private securityData: SecurityDataType | null = null;
|
|
689
|
+
private securityWorker?: ApiConfig<SecurityDataType>["securityWorker"];
|
|
690
|
+
private secure?: boolean;
|
|
691
|
+
private format?: ResponseType;
|
|
692
|
+
|
|
693
|
+
constructor({ securityWorker, secure, format, ...axiosConfig }: ApiConfig<SecurityDataType> = {}) {
|
|
694
|
+
this.instance = axios.create({ ...axiosConfig, baseURL: axiosConfig.baseURL || "" });
|
|
695
|
+
this.secure = secure;
|
|
696
|
+
this.format = format;
|
|
697
|
+
this.securityWorker = securityWorker;
|
|
698
|
+
}
|
|
699
|
+
|
|
700
|
+
public setSecurityData = (data: SecurityDataType | null) => {
|
|
701
|
+
this.securityData = data;
|
|
702
|
+
};
|
|
703
|
+
|
|
704
|
+
private mergeRequestParams(params1: AxiosRequestConfig, params2?: AxiosRequestConfig): AxiosRequestConfig {
|
|
705
|
+
return {
|
|
706
|
+
...this.instance.defaults,
|
|
707
|
+
...params1,
|
|
708
|
+
...(params2 || {}),
|
|
709
|
+
headers: {
|
|
710
|
+
...(this.instance.defaults.headers || {}),
|
|
711
|
+
...(params1.headers || {}),
|
|
712
|
+
...((params2 && params2.headers) || {}),
|
|
713
|
+
},
|
|
714
|
+
};
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
private createFormData(input: Record<string, unknown>): FormData {
|
|
718
|
+
return Object.keys(input || {}).reduce((formData, key) => {
|
|
719
|
+
const property = input[key];
|
|
720
|
+
formData.append(
|
|
721
|
+
key,
|
|
722
|
+
property instanceof Blob
|
|
723
|
+
? property
|
|
724
|
+
: typeof property === "object" && property !== null
|
|
725
|
+
? JSON.stringify(property)
|
|
726
|
+
: `${property}`,
|
|
727
|
+
);
|
|
728
|
+
return formData;
|
|
729
|
+
}, new FormData());
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
public request = async <T = any, _E = any>({
|
|
733
|
+
secure,
|
|
734
|
+
path,
|
|
735
|
+
type,
|
|
736
|
+
query,
|
|
737
|
+
format,
|
|
738
|
+
body,
|
|
739
|
+
...params
|
|
740
|
+
}: FullRequestParams): Promise<AxiosResponse<T>> => {
|
|
741
|
+
const secureParams =
|
|
742
|
+
((typeof secure === "boolean" ? secure : this.secure) &&
|
|
743
|
+
this.securityWorker &&
|
|
744
|
+
(await this.securityWorker(this.securityData))) ||
|
|
745
|
+
{};
|
|
746
|
+
const requestParams = this.mergeRequestParams(params, secureParams);
|
|
747
|
+
const responseFormat = (format && this.format) || void 0;
|
|
748
|
+
|
|
749
|
+
if (type === ContentType.FormData && body && body !== null && typeof body === "object") {
|
|
750
|
+
requestParams.headers.common = { Accept: "*/*" };
|
|
751
|
+
requestParams.headers.post = {};
|
|
752
|
+
requestParams.headers.put = {};
|
|
753
|
+
|
|
754
|
+
body = this.createFormData(body as Record<string, unknown>);
|
|
755
|
+
}
|
|
756
|
+
|
|
757
|
+
return this.instance.request({
|
|
758
|
+
...requestParams,
|
|
759
|
+
headers: {
|
|
760
|
+
...(type && type !== ContentType.FormData ? { "Content-Type": type } : {}),
|
|
761
|
+
...(requestParams.headers || {}),
|
|
762
|
+
},
|
|
763
|
+
params: query,
|
|
764
|
+
responseType: responseFormat,
|
|
765
|
+
data: body,
|
|
766
|
+
url: path,
|
|
767
|
+
});
|
|
768
|
+
};
|
|
769
|
+
}
|
|
770
|
+
|
|
771
|
+
/**
|
|
772
|
+
* @title ibc/core/connection/v1/connection.proto
|
|
773
|
+
* @version version not set
|
|
774
|
+
*/
|
|
775
|
+
export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDataType> {
|
|
776
|
+
/**
|
|
777
|
+
* No description
|
|
778
|
+
*
|
|
779
|
+
* @tags Query
|
|
780
|
+
* @name QueryClientConnections
|
|
781
|
+
* @summary ClientConnections queries the connection paths associated with a client
|
|
782
|
+
state.
|
|
783
|
+
* @request GET:/ibc/core/connection/v1/client_connections/{client_id}
|
|
784
|
+
*/
|
|
785
|
+
queryClientConnections = (clientId: string, params: RequestParams = {}) =>
|
|
786
|
+
this.request<V1QueryClientConnectionsResponse, RpcStatus>({
|
|
787
|
+
path: `/ibc/core/connection/v1/client_connections/${clientId}`,
|
|
788
|
+
method: "GET",
|
|
789
|
+
format: "json",
|
|
790
|
+
...params,
|
|
791
|
+
});
|
|
792
|
+
|
|
793
|
+
/**
|
|
794
|
+
* No description
|
|
795
|
+
*
|
|
796
|
+
* @tags Query
|
|
797
|
+
* @name QueryConnections
|
|
798
|
+
* @summary Connections queries all the IBC connections of a chain.
|
|
799
|
+
* @request GET:/ibc/core/connection/v1/connections
|
|
800
|
+
*/
|
|
801
|
+
queryConnections = (
|
|
802
|
+
query?: {
|
|
803
|
+
"pagination.key"?: string;
|
|
804
|
+
"pagination.offset"?: string;
|
|
805
|
+
"pagination.limit"?: string;
|
|
806
|
+
"pagination.count_total"?: boolean;
|
|
807
|
+
"pagination.reverse"?: boolean;
|
|
808
|
+
},
|
|
809
|
+
params: RequestParams = {},
|
|
810
|
+
) =>
|
|
811
|
+
this.request<V1QueryConnectionsResponse, RpcStatus>({
|
|
812
|
+
path: `/ibc/core/connection/v1/connections`,
|
|
813
|
+
method: "GET",
|
|
814
|
+
query: query,
|
|
815
|
+
format: "json",
|
|
816
|
+
...params,
|
|
817
|
+
});
|
|
818
|
+
|
|
819
|
+
/**
|
|
820
|
+
* No description
|
|
821
|
+
*
|
|
822
|
+
* @tags Query
|
|
823
|
+
* @name QueryConnection
|
|
824
|
+
* @summary Connection queries an IBC connection end.
|
|
825
|
+
* @request GET:/ibc/core/connection/v1/connections/{connection_id}
|
|
826
|
+
*/
|
|
827
|
+
queryConnection = (connectionId: string, params: RequestParams = {}) =>
|
|
828
|
+
this.request<V1QueryConnectionResponse, RpcStatus>({
|
|
829
|
+
path: `/ibc/core/connection/v1/connections/${connectionId}`,
|
|
830
|
+
method: "GET",
|
|
831
|
+
format: "json",
|
|
832
|
+
...params,
|
|
833
|
+
});
|
|
834
|
+
|
|
835
|
+
/**
|
|
836
|
+
* No description
|
|
837
|
+
*
|
|
838
|
+
* @tags Query
|
|
839
|
+
* @name QueryConnectionClientState
|
|
840
|
+
* @summary ConnectionClientState queries the client state associated with the
|
|
841
|
+
connection.
|
|
842
|
+
* @request GET:/ibc/core/connection/v1/connections/{connection_id}/client_state
|
|
843
|
+
*/
|
|
844
|
+
queryConnectionClientState = (connectionId: string, params: RequestParams = {}) =>
|
|
845
|
+
this.request<V1QueryConnectionClientStateResponse, RpcStatus>({
|
|
846
|
+
path: `/ibc/core/connection/v1/connections/${connectionId}/client_state`,
|
|
847
|
+
method: "GET",
|
|
848
|
+
format: "json",
|
|
849
|
+
...params,
|
|
850
|
+
});
|
|
851
|
+
|
|
852
|
+
/**
|
|
853
|
+
* No description
|
|
854
|
+
*
|
|
855
|
+
* @tags Query
|
|
856
|
+
* @name QueryConnectionConsensusState
|
|
857
|
+
* @summary ConnectionConsensusState queries the consensus state associated with the
|
|
858
|
+
connection.
|
|
859
|
+
* @request GET:/ibc/core/connection/v1/connections/{connection_id}/consensus_state/revision/{revision_number}/height/{revision_height}
|
|
860
|
+
*/
|
|
861
|
+
queryConnectionConsensusState = (
|
|
862
|
+
connectionId: string,
|
|
863
|
+
revisionNumber: string,
|
|
864
|
+
revisionHeight: string,
|
|
865
|
+
params: RequestParams = {},
|
|
866
|
+
) =>
|
|
867
|
+
this.request<V1QueryConnectionConsensusStateResponse, RpcStatus>({
|
|
868
|
+
path: `/ibc/core/connection/v1/connections/${connectionId}/consensus_state/revision/${revisionNumber}/height/${revisionHeight}`,
|
|
869
|
+
method: "GET",
|
|
870
|
+
format: "json",
|
|
871
|
+
...params,
|
|
872
|
+
});
|
|
873
|
+
|
|
874
|
+
/**
|
|
875
|
+
* No description
|
|
876
|
+
*
|
|
877
|
+
* @tags Query
|
|
878
|
+
* @name QueryConnectionParams
|
|
879
|
+
* @summary ConnectionParams queries all parameters of the ibc connection submodule.
|
|
880
|
+
* @request GET:/ibc/core/connection/v1/params
|
|
881
|
+
*/
|
|
882
|
+
queryConnectionParams = (params: RequestParams = {}) =>
|
|
883
|
+
this.request<V1QueryConnectionParamsResponse, RpcStatus>({
|
|
884
|
+
path: `/ibc/core/connection/v1/params`,
|
|
885
|
+
method: "GET",
|
|
886
|
+
format: "json",
|
|
887
|
+
...params,
|
|
888
|
+
});
|
|
889
|
+
}
|