@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,864 @@
|
|
|
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
|
+
* Coin defines a token with a denomination and an amount.
|
|
135
|
+
|
|
136
|
+
NOTE: The amount field is an Int which implements the custom method
|
|
137
|
+
signatures required by gogoproto.
|
|
138
|
+
*/
|
|
139
|
+
export interface V1Beta1Coin {
|
|
140
|
+
denom?: string;
|
|
141
|
+
amount?: string;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* Deposit defines an amount deposited by an account address to an active
|
|
146
|
+
proposal.
|
|
147
|
+
*/
|
|
148
|
+
export interface V1Beta1Deposit {
|
|
149
|
+
/** @format uint64 */
|
|
150
|
+
proposal_id?: string;
|
|
151
|
+
depositor?: string;
|
|
152
|
+
amount?: V1Beta1Coin[];
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* DepositParams defines the params for deposits on governance proposals.
|
|
157
|
+
*/
|
|
158
|
+
export interface V1Beta1DepositParams {
|
|
159
|
+
/** Minimum deposit for a proposal to enter voting period. */
|
|
160
|
+
min_deposit?: V1Beta1Coin[];
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Maximum period for Atom holders to deposit on a proposal. Initial value: 2
|
|
164
|
+
* months.
|
|
165
|
+
*/
|
|
166
|
+
max_deposit_period?: string;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* MsgDepositResponse defines the Msg/Deposit response type.
|
|
171
|
+
*/
|
|
172
|
+
export type V1Beta1MsgDepositResponse = object;
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* MsgSubmitProposalResponse defines the Msg/SubmitProposal response type.
|
|
176
|
+
*/
|
|
177
|
+
export interface V1Beta1MsgSubmitProposalResponse {
|
|
178
|
+
/** @format uint64 */
|
|
179
|
+
proposal_id?: string;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* MsgVoteResponse defines the Msg/Vote response type.
|
|
184
|
+
*/
|
|
185
|
+
export type V1Beta1MsgVoteResponse = object;
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* MsgVoteWeightedResponse defines the Msg/VoteWeighted response type.
|
|
189
|
+
|
|
190
|
+
Since: cosmos-sdk 0.43
|
|
191
|
+
*/
|
|
192
|
+
export type V1Beta1MsgVoteWeightedResponse = object;
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* message SomeRequest {
|
|
196
|
+
Foo some_parameter = 1;
|
|
197
|
+
PageRequest pagination = 2;
|
|
198
|
+
}
|
|
199
|
+
*/
|
|
200
|
+
export interface V1Beta1PageRequest {
|
|
201
|
+
/**
|
|
202
|
+
* key is a value returned in PageResponse.next_key to begin
|
|
203
|
+
* querying the next page most efficiently. Only one of offset or key
|
|
204
|
+
* should be set.
|
|
205
|
+
* @format byte
|
|
206
|
+
*/
|
|
207
|
+
key?: string;
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* offset is a numeric offset that can be used when key is unavailable.
|
|
211
|
+
* It is less efficient than using key. Only one of offset or key should
|
|
212
|
+
* be set.
|
|
213
|
+
* @format uint64
|
|
214
|
+
*/
|
|
215
|
+
offset?: string;
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* limit is the total number of results to be returned in the result page.
|
|
219
|
+
* If left empty it will default to a value to be set by each app.
|
|
220
|
+
* @format uint64
|
|
221
|
+
*/
|
|
222
|
+
limit?: string;
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* count_total is set to true to indicate that the result set should include
|
|
226
|
+
* a count of the total number of items available for pagination in UIs.
|
|
227
|
+
* count_total is only respected when offset is used. It is ignored when key
|
|
228
|
+
* is set.
|
|
229
|
+
*/
|
|
230
|
+
count_total?: boolean;
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* reverse is set to true if results are to be returned in the descending order.
|
|
234
|
+
*
|
|
235
|
+
* Since: cosmos-sdk 0.43
|
|
236
|
+
*/
|
|
237
|
+
reverse?: boolean;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
/**
|
|
241
|
+
* PageResponse is to be embedded in gRPC response messages where the
|
|
242
|
+
corresponding request message has used PageRequest.
|
|
243
|
+
|
|
244
|
+
message SomeResponse {
|
|
245
|
+
repeated Bar results = 1;
|
|
246
|
+
PageResponse page = 2;
|
|
247
|
+
}
|
|
248
|
+
*/
|
|
249
|
+
export interface V1Beta1PageResponse {
|
|
250
|
+
/**
|
|
251
|
+
* next_key is the key to be passed to PageRequest.key to
|
|
252
|
+
* query the next page most efficiently. It will be empty if
|
|
253
|
+
* there are no more results.
|
|
254
|
+
* @format byte
|
|
255
|
+
*/
|
|
256
|
+
next_key?: string;
|
|
257
|
+
|
|
258
|
+
/**
|
|
259
|
+
* total is total number of results available if PageRequest.count_total
|
|
260
|
+
* was set, its value is undefined otherwise
|
|
261
|
+
* @format uint64
|
|
262
|
+
*/
|
|
263
|
+
total?: string;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
/**
|
|
267
|
+
* Proposal defines the core field members of a governance proposal.
|
|
268
|
+
*/
|
|
269
|
+
export interface V1Beta1Proposal {
|
|
270
|
+
/** @format uint64 */
|
|
271
|
+
proposal_id?: string;
|
|
272
|
+
|
|
273
|
+
/**
|
|
274
|
+
* `Any` contains an arbitrary serialized protocol buffer message along with a
|
|
275
|
+
* URL that describes the type of the serialized message.
|
|
276
|
+
*
|
|
277
|
+
* Protobuf library provides support to pack/unpack Any values in the form
|
|
278
|
+
* of utility functions or additional generated methods of the Any type.
|
|
279
|
+
* Example 1: Pack and unpack a message in C++.
|
|
280
|
+
* Foo foo = ...;
|
|
281
|
+
* Any any;
|
|
282
|
+
* any.PackFrom(foo);
|
|
283
|
+
* ...
|
|
284
|
+
* if (any.UnpackTo(&foo)) {
|
|
285
|
+
* ...
|
|
286
|
+
* }
|
|
287
|
+
* Example 2: Pack and unpack a message in Java.
|
|
288
|
+
* Any any = Any.pack(foo);
|
|
289
|
+
* if (any.is(Foo.class)) {
|
|
290
|
+
* foo = any.unpack(Foo.class);
|
|
291
|
+
* Example 3: Pack and unpack a message in Python.
|
|
292
|
+
* foo = Foo(...)
|
|
293
|
+
* any = Any()
|
|
294
|
+
* any.Pack(foo)
|
|
295
|
+
* if any.Is(Foo.DESCRIPTOR):
|
|
296
|
+
* any.Unpack(foo)
|
|
297
|
+
* Example 4: Pack and unpack a message in Go
|
|
298
|
+
* foo := &pb.Foo{...}
|
|
299
|
+
* any, err := anypb.New(foo)
|
|
300
|
+
* if err != nil {
|
|
301
|
+
* ...
|
|
302
|
+
* }
|
|
303
|
+
* ...
|
|
304
|
+
* foo := &pb.Foo{}
|
|
305
|
+
* if err := any.UnmarshalTo(foo); err != nil {
|
|
306
|
+
* The pack methods provided by protobuf library will by default use
|
|
307
|
+
* 'type.googleapis.com/full.type.name' as the type URL and the unpack
|
|
308
|
+
* methods only use the fully qualified type name after the last '/'
|
|
309
|
+
* in the type URL, for example "foo.bar.com/x/y.z" will yield type
|
|
310
|
+
* name "y.z".
|
|
311
|
+
* JSON
|
|
312
|
+
* ====
|
|
313
|
+
* The JSON representation of an `Any` value uses the regular
|
|
314
|
+
* representation of the deserialized, embedded message, with an
|
|
315
|
+
* additional field `@type` which contains the type URL. Example:
|
|
316
|
+
* package google.profile;
|
|
317
|
+
* message Person {
|
|
318
|
+
* string first_name = 1;
|
|
319
|
+
* string last_name = 2;
|
|
320
|
+
* {
|
|
321
|
+
* "@type": "type.googleapis.com/google.profile.Person",
|
|
322
|
+
* "firstName": <string>,
|
|
323
|
+
* "lastName": <string>
|
|
324
|
+
* If the embedded message type is well-known and has a custom JSON
|
|
325
|
+
* representation, that representation will be embedded adding a field
|
|
326
|
+
* `value` which holds the custom JSON in addition to the `@type`
|
|
327
|
+
* field. Example (for message [google.protobuf.Duration][]):
|
|
328
|
+
* "@type": "type.googleapis.com/google.protobuf.Duration",
|
|
329
|
+
* "value": "1.212s"
|
|
330
|
+
*/
|
|
331
|
+
content?: ProtobufAny;
|
|
332
|
+
|
|
333
|
+
/**
|
|
334
|
+
* ProposalStatus enumerates the valid statuses of a proposal.
|
|
335
|
+
*
|
|
336
|
+
* - PROPOSAL_STATUS_UNSPECIFIED: PROPOSAL_STATUS_UNSPECIFIED defines the default proposal status.
|
|
337
|
+
* - PROPOSAL_STATUS_DEPOSIT_PERIOD: PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit
|
|
338
|
+
* period.
|
|
339
|
+
* - PROPOSAL_STATUS_VOTING_PERIOD: PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting
|
|
340
|
+
* - PROPOSAL_STATUS_PASSED: PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has
|
|
341
|
+
* passed.
|
|
342
|
+
* - PROPOSAL_STATUS_REJECTED: PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has
|
|
343
|
+
* been rejected.
|
|
344
|
+
* - PROPOSAL_STATUS_FAILED: PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has
|
|
345
|
+
* failed.
|
|
346
|
+
*/
|
|
347
|
+
status?: V1Beta1ProposalStatus;
|
|
348
|
+
|
|
349
|
+
/**
|
|
350
|
+
* final_tally_result is the final tally result of the proposal. When
|
|
351
|
+
* querying a proposal via gRPC, this field is not populated until the
|
|
352
|
+
* proposal's voting period has ended.
|
|
353
|
+
*/
|
|
354
|
+
final_tally_result?: V1Beta1TallyResult;
|
|
355
|
+
|
|
356
|
+
/** @format date-time */
|
|
357
|
+
submit_time?: string;
|
|
358
|
+
|
|
359
|
+
/** @format date-time */
|
|
360
|
+
deposit_end_time?: string;
|
|
361
|
+
total_deposit?: V1Beta1Coin[];
|
|
362
|
+
|
|
363
|
+
/** @format date-time */
|
|
364
|
+
voting_start_time?: string;
|
|
365
|
+
|
|
366
|
+
/** @format date-time */
|
|
367
|
+
voting_end_time?: string;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
/**
|
|
371
|
+
* ProposalStatus enumerates the valid statuses of a proposal.
|
|
372
|
+
|
|
373
|
+
- PROPOSAL_STATUS_UNSPECIFIED: PROPOSAL_STATUS_UNSPECIFIED defines the default proposal status.
|
|
374
|
+
- PROPOSAL_STATUS_DEPOSIT_PERIOD: PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit
|
|
375
|
+
period.
|
|
376
|
+
- PROPOSAL_STATUS_VOTING_PERIOD: PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting
|
|
377
|
+
period.
|
|
378
|
+
- PROPOSAL_STATUS_PASSED: PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has
|
|
379
|
+
passed.
|
|
380
|
+
- PROPOSAL_STATUS_REJECTED: PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has
|
|
381
|
+
been rejected.
|
|
382
|
+
- PROPOSAL_STATUS_FAILED: PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has
|
|
383
|
+
failed.
|
|
384
|
+
*/
|
|
385
|
+
export enum V1Beta1ProposalStatus {
|
|
386
|
+
PROPOSAL_STATUS_UNSPECIFIED = "PROPOSAL_STATUS_UNSPECIFIED",
|
|
387
|
+
PROPOSAL_STATUS_DEPOSIT_PERIOD = "PROPOSAL_STATUS_DEPOSIT_PERIOD",
|
|
388
|
+
PROPOSAL_STATUS_VOTING_PERIOD = "PROPOSAL_STATUS_VOTING_PERIOD",
|
|
389
|
+
PROPOSAL_STATUS_PASSED = "PROPOSAL_STATUS_PASSED",
|
|
390
|
+
PROPOSAL_STATUS_REJECTED = "PROPOSAL_STATUS_REJECTED",
|
|
391
|
+
PROPOSAL_STATUS_FAILED = "PROPOSAL_STATUS_FAILED",
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
/**
|
|
395
|
+
* QueryDepositResponse is the response type for the Query/Deposit RPC method.
|
|
396
|
+
*/
|
|
397
|
+
export interface V1Beta1QueryDepositResponse {
|
|
398
|
+
/** deposit defines the requested deposit. */
|
|
399
|
+
deposit?: V1Beta1Deposit;
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
/**
|
|
403
|
+
* QueryDepositsResponse is the response type for the Query/Deposits RPC method.
|
|
404
|
+
*/
|
|
405
|
+
export interface V1Beta1QueryDepositsResponse {
|
|
406
|
+
deposits?: V1Beta1Deposit[];
|
|
407
|
+
|
|
408
|
+
/** pagination defines the pagination in the response. */
|
|
409
|
+
pagination?: V1Beta1PageResponse;
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
/**
|
|
413
|
+
* QueryParamsResponse is the response type for the Query/Params RPC method.
|
|
414
|
+
*/
|
|
415
|
+
export interface V1Beta1QueryParamsResponse {
|
|
416
|
+
/** voting_params defines the parameters related to voting. */
|
|
417
|
+
voting_params?: V1Beta1VotingParams;
|
|
418
|
+
|
|
419
|
+
/** deposit_params defines the parameters related to deposit. */
|
|
420
|
+
deposit_params?: V1Beta1DepositParams;
|
|
421
|
+
|
|
422
|
+
/** tally_params defines the parameters related to tally. */
|
|
423
|
+
tally_params?: V1Beta1TallyParams;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
/**
|
|
427
|
+
* QueryProposalResponse is the response type for the Query/Proposal RPC method.
|
|
428
|
+
*/
|
|
429
|
+
export interface V1Beta1QueryProposalResponse {
|
|
430
|
+
/** Proposal defines the core field members of a governance proposal. */
|
|
431
|
+
proposal?: V1Beta1Proposal;
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
/**
|
|
435
|
+
* QueryProposalsResponse is the response type for the Query/Proposals RPC
|
|
436
|
+
method.
|
|
437
|
+
*/
|
|
438
|
+
export interface V1Beta1QueryProposalsResponse {
|
|
439
|
+
proposals?: V1Beta1Proposal[];
|
|
440
|
+
|
|
441
|
+
/** pagination defines the pagination in the response. */
|
|
442
|
+
pagination?: V1Beta1PageResponse;
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
/**
|
|
446
|
+
* QueryTallyResultResponse is the response type for the Query/Tally RPC method.
|
|
447
|
+
*/
|
|
448
|
+
export interface V1Beta1QueryTallyResultResponse {
|
|
449
|
+
/** tally defines the requested tally. */
|
|
450
|
+
tally?: V1Beta1TallyResult;
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
/**
|
|
454
|
+
* QueryVoteResponse is the response type for the Query/Vote RPC method.
|
|
455
|
+
*/
|
|
456
|
+
export interface V1Beta1QueryVoteResponse {
|
|
457
|
+
/** vote defined the queried vote. */
|
|
458
|
+
vote?: V1Beta1Vote;
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
/**
|
|
462
|
+
* QueryVotesResponse is the response type for the Query/Votes RPC method.
|
|
463
|
+
*/
|
|
464
|
+
export interface V1Beta1QueryVotesResponse {
|
|
465
|
+
/** votes defined the queried votes. */
|
|
466
|
+
votes?: V1Beta1Vote[];
|
|
467
|
+
|
|
468
|
+
/** pagination defines the pagination in the response. */
|
|
469
|
+
pagination?: V1Beta1PageResponse;
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
/**
|
|
473
|
+
* TallyParams defines the params for tallying votes on governance proposals.
|
|
474
|
+
*/
|
|
475
|
+
export interface V1Beta1TallyParams {
|
|
476
|
+
/**
|
|
477
|
+
* Minimum percentage of total stake needed to vote for a result to be
|
|
478
|
+
* considered valid.
|
|
479
|
+
* @format byte
|
|
480
|
+
*/
|
|
481
|
+
quorum?: string;
|
|
482
|
+
|
|
483
|
+
/**
|
|
484
|
+
* Minimum proportion of Yes votes for proposal to pass. Default value: 0.5.
|
|
485
|
+
* @format byte
|
|
486
|
+
*/
|
|
487
|
+
threshold?: string;
|
|
488
|
+
|
|
489
|
+
/**
|
|
490
|
+
* Minimum value of Veto votes to Total votes ratio for proposal to be
|
|
491
|
+
* vetoed. Default value: 1/3.
|
|
492
|
+
* @format byte
|
|
493
|
+
*/
|
|
494
|
+
veto_threshold?: string;
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
/**
|
|
498
|
+
* TallyResult defines a standard tally for a governance proposal.
|
|
499
|
+
*/
|
|
500
|
+
export interface V1Beta1TallyResult {
|
|
501
|
+
yes?: string;
|
|
502
|
+
abstain?: string;
|
|
503
|
+
no?: string;
|
|
504
|
+
no_with_veto?: string;
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
/**
|
|
508
|
+
* Vote defines a vote on a governance proposal.
|
|
509
|
+
A Vote consists of a proposal ID, the voter, and the vote option.
|
|
510
|
+
*/
|
|
511
|
+
export interface V1Beta1Vote {
|
|
512
|
+
/** @format uint64 */
|
|
513
|
+
proposal_id?: string;
|
|
514
|
+
voter?: string;
|
|
515
|
+
|
|
516
|
+
/**
|
|
517
|
+
* Deprecated: Prefer to use `options` instead. This field is set in queries
|
|
518
|
+
* if and only if `len(options) == 1` and that option has weight 1. In all
|
|
519
|
+
* other cases, this field will default to VOTE_OPTION_UNSPECIFIED.
|
|
520
|
+
*/
|
|
521
|
+
option?: V1Beta1VoteOption;
|
|
522
|
+
|
|
523
|
+
/** Since: cosmos-sdk 0.43 */
|
|
524
|
+
options?: V1Beta1WeightedVoteOption[];
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
/**
|
|
528
|
+
* VoteOption enumerates the valid vote options for a given governance proposal.
|
|
529
|
+
|
|
530
|
+
- VOTE_OPTION_UNSPECIFIED: VOTE_OPTION_UNSPECIFIED defines a no-op vote option.
|
|
531
|
+
- VOTE_OPTION_YES: VOTE_OPTION_YES defines a yes vote option.
|
|
532
|
+
- VOTE_OPTION_ABSTAIN: VOTE_OPTION_ABSTAIN defines an abstain vote option.
|
|
533
|
+
- VOTE_OPTION_NO: VOTE_OPTION_NO defines a no vote option.
|
|
534
|
+
- VOTE_OPTION_NO_WITH_VETO: VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option.
|
|
535
|
+
*/
|
|
536
|
+
export enum V1Beta1VoteOption {
|
|
537
|
+
VOTE_OPTION_UNSPECIFIED = "VOTE_OPTION_UNSPECIFIED",
|
|
538
|
+
VOTE_OPTION_YES = "VOTE_OPTION_YES",
|
|
539
|
+
VOTE_OPTION_ABSTAIN = "VOTE_OPTION_ABSTAIN",
|
|
540
|
+
VOTE_OPTION_NO = "VOTE_OPTION_NO",
|
|
541
|
+
VOTE_OPTION_NO_WITH_VETO = "VOTE_OPTION_NO_WITH_VETO",
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
/**
|
|
545
|
+
* VotingParams defines the params for voting on governance proposals.
|
|
546
|
+
*/
|
|
547
|
+
export interface V1Beta1VotingParams {
|
|
548
|
+
/** Length of the voting period. */
|
|
549
|
+
voting_period?: string;
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
/**
|
|
553
|
+
* WeightedVoteOption defines a unit of vote for vote split.
|
|
554
|
+
|
|
555
|
+
Since: cosmos-sdk 0.43
|
|
556
|
+
*/
|
|
557
|
+
export interface V1Beta1WeightedVoteOption {
|
|
558
|
+
/**
|
|
559
|
+
* VoteOption enumerates the valid vote options for a given governance proposal.
|
|
560
|
+
*
|
|
561
|
+
* - VOTE_OPTION_UNSPECIFIED: VOTE_OPTION_UNSPECIFIED defines a no-op vote option.
|
|
562
|
+
* - VOTE_OPTION_YES: VOTE_OPTION_YES defines a yes vote option.
|
|
563
|
+
* - VOTE_OPTION_ABSTAIN: VOTE_OPTION_ABSTAIN defines an abstain vote option.
|
|
564
|
+
* - VOTE_OPTION_NO: VOTE_OPTION_NO defines a no vote option.
|
|
565
|
+
* - VOTE_OPTION_NO_WITH_VETO: VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option.
|
|
566
|
+
*/
|
|
567
|
+
option?: V1Beta1VoteOption;
|
|
568
|
+
weight?: string;
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
import axios, { AxiosInstance, AxiosRequestConfig, AxiosResponse, ResponseType } from "axios";
|
|
572
|
+
|
|
573
|
+
export type QueryParamsType = Record<string | number, any>;
|
|
574
|
+
|
|
575
|
+
export interface FullRequestParams extends Omit<AxiosRequestConfig, "data" | "params" | "url" | "responseType"> {
|
|
576
|
+
/** set parameter to `true` for call `securityWorker` for this request */
|
|
577
|
+
secure?: boolean;
|
|
578
|
+
/** request path */
|
|
579
|
+
path: string;
|
|
580
|
+
/** content type of request body */
|
|
581
|
+
type?: ContentType;
|
|
582
|
+
/** query params */
|
|
583
|
+
query?: QueryParamsType;
|
|
584
|
+
/** format of response (i.e. response.json() -> format: "json") */
|
|
585
|
+
format?: ResponseType;
|
|
586
|
+
/** request body */
|
|
587
|
+
body?: unknown;
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
export type RequestParams = Omit<FullRequestParams, "body" | "method" | "query" | "path">;
|
|
591
|
+
|
|
592
|
+
export interface ApiConfig<SecurityDataType = unknown> extends Omit<AxiosRequestConfig, "data" | "cancelToken"> {
|
|
593
|
+
securityWorker?: (
|
|
594
|
+
securityData: SecurityDataType | null,
|
|
595
|
+
) => Promise<AxiosRequestConfig | void> | AxiosRequestConfig | void;
|
|
596
|
+
secure?: boolean;
|
|
597
|
+
format?: ResponseType;
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
export enum ContentType {
|
|
601
|
+
Json = "application/json",
|
|
602
|
+
FormData = "multipart/form-data",
|
|
603
|
+
UrlEncoded = "application/x-www-form-urlencoded",
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
export class HttpClient<SecurityDataType = unknown> {
|
|
607
|
+
public instance: AxiosInstance;
|
|
608
|
+
private securityData: SecurityDataType | null = null;
|
|
609
|
+
private securityWorker?: ApiConfig<SecurityDataType>["securityWorker"];
|
|
610
|
+
private secure?: boolean;
|
|
611
|
+
private format?: ResponseType;
|
|
612
|
+
|
|
613
|
+
constructor({ securityWorker, secure, format, ...axiosConfig }: ApiConfig<SecurityDataType> = {}) {
|
|
614
|
+
this.instance = axios.create({ ...axiosConfig, baseURL: axiosConfig.baseURL || "" });
|
|
615
|
+
this.secure = secure;
|
|
616
|
+
this.format = format;
|
|
617
|
+
this.securityWorker = securityWorker;
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
public setSecurityData = (data: SecurityDataType | null) => {
|
|
621
|
+
this.securityData = data;
|
|
622
|
+
};
|
|
623
|
+
|
|
624
|
+
private mergeRequestParams(params1: AxiosRequestConfig, params2?: AxiosRequestConfig): AxiosRequestConfig {
|
|
625
|
+
return {
|
|
626
|
+
...this.instance.defaults,
|
|
627
|
+
...params1,
|
|
628
|
+
...(params2 || {}),
|
|
629
|
+
headers: {
|
|
630
|
+
...(this.instance.defaults.headers || {}),
|
|
631
|
+
...(params1.headers || {}),
|
|
632
|
+
...((params2 && params2.headers) || {}),
|
|
633
|
+
},
|
|
634
|
+
};
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
private createFormData(input: Record<string, unknown>): FormData {
|
|
638
|
+
return Object.keys(input || {}).reduce((formData, key) => {
|
|
639
|
+
const property = input[key];
|
|
640
|
+
formData.append(
|
|
641
|
+
key,
|
|
642
|
+
property instanceof Blob
|
|
643
|
+
? property
|
|
644
|
+
: typeof property === "object" && property !== null
|
|
645
|
+
? JSON.stringify(property)
|
|
646
|
+
: `${property}`,
|
|
647
|
+
);
|
|
648
|
+
return formData;
|
|
649
|
+
}, new FormData());
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
public request = async <T = any, _E = any>({
|
|
653
|
+
secure,
|
|
654
|
+
path,
|
|
655
|
+
type,
|
|
656
|
+
query,
|
|
657
|
+
format,
|
|
658
|
+
body,
|
|
659
|
+
...params
|
|
660
|
+
}: FullRequestParams): Promise<AxiosResponse<T>> => {
|
|
661
|
+
const secureParams =
|
|
662
|
+
((typeof secure === "boolean" ? secure : this.secure) &&
|
|
663
|
+
this.securityWorker &&
|
|
664
|
+
(await this.securityWorker(this.securityData))) ||
|
|
665
|
+
{};
|
|
666
|
+
const requestParams = this.mergeRequestParams(params, secureParams);
|
|
667
|
+
const responseFormat = (format && this.format) || void 0;
|
|
668
|
+
|
|
669
|
+
if (type === ContentType.FormData && body && body !== null && typeof body === "object") {
|
|
670
|
+
requestParams.headers.common = { Accept: "*/*" };
|
|
671
|
+
requestParams.headers.post = {};
|
|
672
|
+
requestParams.headers.put = {};
|
|
673
|
+
|
|
674
|
+
body = this.createFormData(body as Record<string, unknown>);
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
return this.instance.request({
|
|
678
|
+
...requestParams,
|
|
679
|
+
headers: {
|
|
680
|
+
...(type && type !== ContentType.FormData ? { "Content-Type": type } : {}),
|
|
681
|
+
...(requestParams.headers || {}),
|
|
682
|
+
},
|
|
683
|
+
params: query,
|
|
684
|
+
responseType: responseFormat,
|
|
685
|
+
data: body,
|
|
686
|
+
url: path,
|
|
687
|
+
});
|
|
688
|
+
};
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
/**
|
|
692
|
+
* @title cosmos/gov/v1beta1/genesis.proto
|
|
693
|
+
* @version version not set
|
|
694
|
+
*/
|
|
695
|
+
export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDataType> {
|
|
696
|
+
/**
|
|
697
|
+
* No description
|
|
698
|
+
*
|
|
699
|
+
* @tags Query
|
|
700
|
+
* @name QueryParams
|
|
701
|
+
* @summary Params queries all parameters of the gov module.
|
|
702
|
+
* @request GET:/cosmos/gov/v1beta1/params/{params_type}
|
|
703
|
+
*/
|
|
704
|
+
queryParams = (paramsType: string, params: RequestParams = {}) =>
|
|
705
|
+
this.request<V1Beta1QueryParamsResponse, RpcStatus>({
|
|
706
|
+
path: `/cosmos/gov/v1beta1/params/${paramsType}`,
|
|
707
|
+
method: "GET",
|
|
708
|
+
format: "json",
|
|
709
|
+
...params,
|
|
710
|
+
});
|
|
711
|
+
|
|
712
|
+
/**
|
|
713
|
+
* No description
|
|
714
|
+
*
|
|
715
|
+
* @tags Query
|
|
716
|
+
* @name QueryProposals
|
|
717
|
+
* @summary Proposals queries all proposals based on given status.
|
|
718
|
+
* @request GET:/cosmos/gov/v1beta1/proposals
|
|
719
|
+
*/
|
|
720
|
+
queryProposals = (
|
|
721
|
+
query?: {
|
|
722
|
+
proposal_status?:
|
|
723
|
+
| "PROPOSAL_STATUS_UNSPECIFIED"
|
|
724
|
+
| "PROPOSAL_STATUS_DEPOSIT_PERIOD"
|
|
725
|
+
| "PROPOSAL_STATUS_VOTING_PERIOD"
|
|
726
|
+
| "PROPOSAL_STATUS_PASSED"
|
|
727
|
+
| "PROPOSAL_STATUS_REJECTED"
|
|
728
|
+
| "PROPOSAL_STATUS_FAILED";
|
|
729
|
+
voter?: string;
|
|
730
|
+
depositor?: string;
|
|
731
|
+
"pagination.key"?: string;
|
|
732
|
+
"pagination.offset"?: string;
|
|
733
|
+
"pagination.limit"?: string;
|
|
734
|
+
"pagination.count_total"?: boolean;
|
|
735
|
+
"pagination.reverse"?: boolean;
|
|
736
|
+
},
|
|
737
|
+
params: RequestParams = {},
|
|
738
|
+
) =>
|
|
739
|
+
this.request<V1Beta1QueryProposalsResponse, RpcStatus>({
|
|
740
|
+
path: `/cosmos/gov/v1beta1/proposals`,
|
|
741
|
+
method: "GET",
|
|
742
|
+
query: query,
|
|
743
|
+
format: "json",
|
|
744
|
+
...params,
|
|
745
|
+
});
|
|
746
|
+
|
|
747
|
+
/**
|
|
748
|
+
* No description
|
|
749
|
+
*
|
|
750
|
+
* @tags Query
|
|
751
|
+
* @name QueryProposal
|
|
752
|
+
* @summary Proposal queries proposal details based on ProposalID.
|
|
753
|
+
* @request GET:/cosmos/gov/v1beta1/proposals/{proposal_id}
|
|
754
|
+
*/
|
|
755
|
+
queryProposal = (proposalId: string, params: RequestParams = {}) =>
|
|
756
|
+
this.request<V1Beta1QueryProposalResponse, RpcStatus>({
|
|
757
|
+
path: `/cosmos/gov/v1beta1/proposals/${proposalId}`,
|
|
758
|
+
method: "GET",
|
|
759
|
+
format: "json",
|
|
760
|
+
...params,
|
|
761
|
+
});
|
|
762
|
+
|
|
763
|
+
/**
|
|
764
|
+
* No description
|
|
765
|
+
*
|
|
766
|
+
* @tags Query
|
|
767
|
+
* @name QueryDeposits
|
|
768
|
+
* @summary Deposits queries all deposits of a single proposal.
|
|
769
|
+
* @request GET:/cosmos/gov/v1beta1/proposals/{proposal_id}/deposits
|
|
770
|
+
*/
|
|
771
|
+
queryDeposits = (
|
|
772
|
+
proposalId: string,
|
|
773
|
+
query?: {
|
|
774
|
+
"pagination.key"?: string;
|
|
775
|
+
"pagination.offset"?: string;
|
|
776
|
+
"pagination.limit"?: string;
|
|
777
|
+
"pagination.count_total"?: boolean;
|
|
778
|
+
"pagination.reverse"?: boolean;
|
|
779
|
+
},
|
|
780
|
+
params: RequestParams = {},
|
|
781
|
+
) =>
|
|
782
|
+
this.request<V1Beta1QueryDepositsResponse, RpcStatus>({
|
|
783
|
+
path: `/cosmos/gov/v1beta1/proposals/${proposalId}/deposits`,
|
|
784
|
+
method: "GET",
|
|
785
|
+
query: query,
|
|
786
|
+
format: "json",
|
|
787
|
+
...params,
|
|
788
|
+
});
|
|
789
|
+
|
|
790
|
+
/**
|
|
791
|
+
* No description
|
|
792
|
+
*
|
|
793
|
+
* @tags Query
|
|
794
|
+
* @name QueryDeposit
|
|
795
|
+
* @summary Deposit queries single deposit information based proposalID, depositAddr.
|
|
796
|
+
* @request GET:/cosmos/gov/v1beta1/proposals/{proposal_id}/deposits/{depositor}
|
|
797
|
+
*/
|
|
798
|
+
queryDeposit = (proposalId: string, depositor: string, params: RequestParams = {}) =>
|
|
799
|
+
this.request<V1Beta1QueryDepositResponse, RpcStatus>({
|
|
800
|
+
path: `/cosmos/gov/v1beta1/proposals/${proposalId}/deposits/${depositor}`,
|
|
801
|
+
method: "GET",
|
|
802
|
+
format: "json",
|
|
803
|
+
...params,
|
|
804
|
+
});
|
|
805
|
+
|
|
806
|
+
/**
|
|
807
|
+
* No description
|
|
808
|
+
*
|
|
809
|
+
* @tags Query
|
|
810
|
+
* @name QueryTallyResult
|
|
811
|
+
* @summary TallyResult queries the tally of a proposal vote.
|
|
812
|
+
* @request GET:/cosmos/gov/v1beta1/proposals/{proposal_id}/tally
|
|
813
|
+
*/
|
|
814
|
+
queryTallyResult = (proposalId: string, params: RequestParams = {}) =>
|
|
815
|
+
this.request<V1Beta1QueryTallyResultResponse, RpcStatus>({
|
|
816
|
+
path: `/cosmos/gov/v1beta1/proposals/${proposalId}/tally`,
|
|
817
|
+
method: "GET",
|
|
818
|
+
format: "json",
|
|
819
|
+
...params,
|
|
820
|
+
});
|
|
821
|
+
|
|
822
|
+
/**
|
|
823
|
+
* No description
|
|
824
|
+
*
|
|
825
|
+
* @tags Query
|
|
826
|
+
* @name QueryVotes
|
|
827
|
+
* @summary Votes queries votes of a given proposal.
|
|
828
|
+
* @request GET:/cosmos/gov/v1beta1/proposals/{proposal_id}/votes
|
|
829
|
+
*/
|
|
830
|
+
queryVotes = (
|
|
831
|
+
proposalId: string,
|
|
832
|
+
query?: {
|
|
833
|
+
"pagination.key"?: string;
|
|
834
|
+
"pagination.offset"?: string;
|
|
835
|
+
"pagination.limit"?: string;
|
|
836
|
+
"pagination.count_total"?: boolean;
|
|
837
|
+
"pagination.reverse"?: boolean;
|
|
838
|
+
},
|
|
839
|
+
params: RequestParams = {},
|
|
840
|
+
) =>
|
|
841
|
+
this.request<V1Beta1QueryVotesResponse, RpcStatus>({
|
|
842
|
+
path: `/cosmos/gov/v1beta1/proposals/${proposalId}/votes`,
|
|
843
|
+
method: "GET",
|
|
844
|
+
query: query,
|
|
845
|
+
format: "json",
|
|
846
|
+
...params,
|
|
847
|
+
});
|
|
848
|
+
|
|
849
|
+
/**
|
|
850
|
+
* No description
|
|
851
|
+
*
|
|
852
|
+
* @tags Query
|
|
853
|
+
* @name QueryVote
|
|
854
|
+
* @summary Vote queries voted information based on proposalID, voterAddr.
|
|
855
|
+
* @request GET:/cosmos/gov/v1beta1/proposals/{proposal_id}/votes/{voter}
|
|
856
|
+
*/
|
|
857
|
+
queryVote = (proposalId: string, voter: string, params: RequestParams = {}) =>
|
|
858
|
+
this.request<V1Beta1QueryVoteResponse, RpcStatus>({
|
|
859
|
+
path: `/cosmos/gov/v1beta1/proposals/${proposalId}/votes/${voter}`,
|
|
860
|
+
method: "GET",
|
|
861
|
+
format: "json",
|
|
862
|
+
...params,
|
|
863
|
+
});
|
|
864
|
+
}
|