@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,557 @@
|
|
|
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
|
+
export interface ProtobufAny {
|
|
13
|
+
"@type"?: string;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export interface RpcStatus {
|
|
17
|
+
/** @format int32 */
|
|
18
|
+
code?: number;
|
|
19
|
+
message?: string;
|
|
20
|
+
details?: ProtobufAny[];
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Coin defines a token with a denomination and an amount.
|
|
25
|
+
|
|
26
|
+
NOTE: The amount field is an Int which implements the custom method
|
|
27
|
+
signatures required by gogoproto.
|
|
28
|
+
*/
|
|
29
|
+
export interface V1Beta1Coin {
|
|
30
|
+
denom?: string;
|
|
31
|
+
amount?: string;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* DecCoin defines a token with a denomination and a decimal amount.
|
|
36
|
+
|
|
37
|
+
NOTE: The amount field is an Dec which implements the custom method
|
|
38
|
+
signatures required by gogoproto.
|
|
39
|
+
*/
|
|
40
|
+
export interface V1Beta1DecCoin {
|
|
41
|
+
denom?: string;
|
|
42
|
+
amount?: string;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* DelegationDelegatorReward represents the properties
|
|
47
|
+
of a delegator's delegation reward.
|
|
48
|
+
*/
|
|
49
|
+
export interface V1Beta1DelegationDelegatorReward {
|
|
50
|
+
validator_address?: string;
|
|
51
|
+
reward?: V1Beta1DecCoin[];
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* MsgFundCommunityPoolResponse defines the Msg/FundCommunityPool response type.
|
|
56
|
+
*/
|
|
57
|
+
export type V1Beta1MsgFundCommunityPoolResponse = object;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* MsgSetWithdrawAddressResponse defines the Msg/SetWithdrawAddress response type.
|
|
61
|
+
*/
|
|
62
|
+
export type V1Beta1MsgSetWithdrawAddressResponse = object;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* MsgWithdrawDelegatorRewardResponse defines the Msg/WithdrawDelegatorReward response type.
|
|
66
|
+
*/
|
|
67
|
+
export interface V1Beta1MsgWithdrawDelegatorRewardResponse {
|
|
68
|
+
/** Since: cosmos-sdk 0.46 */
|
|
69
|
+
amount?: V1Beta1Coin[];
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* MsgWithdrawValidatorCommissionResponse defines the Msg/WithdrawValidatorCommission response type.
|
|
74
|
+
*/
|
|
75
|
+
export interface V1Beta1MsgWithdrawValidatorCommissionResponse {
|
|
76
|
+
/** Since: cosmos-sdk 0.46 */
|
|
77
|
+
amount?: V1Beta1Coin[];
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* message SomeRequest {
|
|
82
|
+
Foo some_parameter = 1;
|
|
83
|
+
PageRequest pagination = 2;
|
|
84
|
+
}
|
|
85
|
+
*/
|
|
86
|
+
export interface V1Beta1PageRequest {
|
|
87
|
+
/**
|
|
88
|
+
* key is a value returned in PageResponse.next_key to begin
|
|
89
|
+
* querying the next page most efficiently. Only one of offset or key
|
|
90
|
+
* should be set.
|
|
91
|
+
* @format byte
|
|
92
|
+
*/
|
|
93
|
+
key?: string;
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* offset is a numeric offset that can be used when key is unavailable.
|
|
97
|
+
* It is less efficient than using key. Only one of offset or key should
|
|
98
|
+
* be set.
|
|
99
|
+
* @format uint64
|
|
100
|
+
*/
|
|
101
|
+
offset?: string;
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* limit is the total number of results to be returned in the result page.
|
|
105
|
+
* If left empty it will default to a value to be set by each app.
|
|
106
|
+
* @format uint64
|
|
107
|
+
*/
|
|
108
|
+
limit?: string;
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* count_total is set to true to indicate that the result set should include
|
|
112
|
+
* a count of the total number of items available for pagination in UIs.
|
|
113
|
+
* count_total is only respected when offset is used. It is ignored when key
|
|
114
|
+
* is set.
|
|
115
|
+
*/
|
|
116
|
+
count_total?: boolean;
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* reverse is set to true if results are to be returned in the descending order.
|
|
120
|
+
*
|
|
121
|
+
* Since: cosmos-sdk 0.43
|
|
122
|
+
*/
|
|
123
|
+
reverse?: boolean;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* PageResponse is to be embedded in gRPC response messages where the
|
|
128
|
+
corresponding request message has used PageRequest.
|
|
129
|
+
|
|
130
|
+
message SomeResponse {
|
|
131
|
+
repeated Bar results = 1;
|
|
132
|
+
PageResponse page = 2;
|
|
133
|
+
}
|
|
134
|
+
*/
|
|
135
|
+
export interface V1Beta1PageResponse {
|
|
136
|
+
/**
|
|
137
|
+
* next_key is the key to be passed to PageRequest.key to
|
|
138
|
+
* query the next page most efficiently. It will be empty if
|
|
139
|
+
* there are no more results.
|
|
140
|
+
* @format byte
|
|
141
|
+
*/
|
|
142
|
+
next_key?: string;
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* total is total number of results available if PageRequest.count_total
|
|
146
|
+
* was set, its value is undefined otherwise
|
|
147
|
+
* @format uint64
|
|
148
|
+
*/
|
|
149
|
+
total?: string;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* Params defines the set of params for the distribution module.
|
|
154
|
+
*/
|
|
155
|
+
export interface V1Beta1Params {
|
|
156
|
+
community_tax?: string;
|
|
157
|
+
base_proposer_reward?: string;
|
|
158
|
+
bonus_proposer_reward?: string;
|
|
159
|
+
withdraw_addr_enabled?: boolean;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* QueryCommunityPoolResponse is the response type for the Query/CommunityPool
|
|
164
|
+
RPC method.
|
|
165
|
+
*/
|
|
166
|
+
export interface V1Beta1QueryCommunityPoolResponse {
|
|
167
|
+
/** pool defines community pool's coins. */
|
|
168
|
+
pool?: V1Beta1DecCoin[];
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* QueryDelegationRewardsResponse is the response type for the
|
|
173
|
+
Query/DelegationRewards RPC method.
|
|
174
|
+
*/
|
|
175
|
+
export interface V1Beta1QueryDelegationRewardsResponse {
|
|
176
|
+
/** rewards defines the rewards accrued by a delegation. */
|
|
177
|
+
rewards?: V1Beta1DecCoin[];
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* QueryDelegationTotalRewardsResponse is the response type for the
|
|
182
|
+
Query/DelegationTotalRewards RPC method.
|
|
183
|
+
*/
|
|
184
|
+
export interface V1Beta1QueryDelegationTotalRewardsResponse {
|
|
185
|
+
/** rewards defines all the rewards accrued by a delegator. */
|
|
186
|
+
rewards?: V1Beta1DelegationDelegatorReward[];
|
|
187
|
+
|
|
188
|
+
/** total defines the sum of all the rewards. */
|
|
189
|
+
total?: V1Beta1DecCoin[];
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* QueryDelegatorValidatorsResponse is the response type for the
|
|
194
|
+
Query/DelegatorValidators RPC method.
|
|
195
|
+
*/
|
|
196
|
+
export interface V1Beta1QueryDelegatorValidatorsResponse {
|
|
197
|
+
/** validators defines the validators a delegator is delegating for. */
|
|
198
|
+
validators?: string[];
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* QueryDelegatorWithdrawAddressResponse is the response type for the
|
|
203
|
+
Query/DelegatorWithdrawAddress RPC method.
|
|
204
|
+
*/
|
|
205
|
+
export interface V1Beta1QueryDelegatorWithdrawAddressResponse {
|
|
206
|
+
/** withdraw_address defines the delegator address to query for. */
|
|
207
|
+
withdraw_address?: string;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* QueryParamsResponse is the response type for the Query/Params RPC method.
|
|
212
|
+
*/
|
|
213
|
+
export interface V1Beta1QueryParamsResponse {
|
|
214
|
+
/** params defines the parameters of the module. */
|
|
215
|
+
params?: V1Beta1Params;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
export interface V1Beta1QueryValidatorCommissionResponse {
|
|
219
|
+
/** commission defines the commision the validator received. */
|
|
220
|
+
commission?: V1Beta1ValidatorAccumulatedCommission;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* QueryValidatorOutstandingRewardsResponse is the response type for the
|
|
225
|
+
Query/ValidatorOutstandingRewards RPC method.
|
|
226
|
+
*/
|
|
227
|
+
export interface V1Beta1QueryValidatorOutstandingRewardsResponse {
|
|
228
|
+
/**
|
|
229
|
+
* ValidatorOutstandingRewards represents outstanding (un-withdrawn) rewards
|
|
230
|
+
* for a validator inexpensive to track, allows simple sanity checks.
|
|
231
|
+
*/
|
|
232
|
+
rewards?: V1Beta1ValidatorOutstandingRewards;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
/**
|
|
236
|
+
* QueryValidatorSlashesResponse is the response type for the
|
|
237
|
+
Query/ValidatorSlashes RPC method.
|
|
238
|
+
*/
|
|
239
|
+
export interface V1Beta1QueryValidatorSlashesResponse {
|
|
240
|
+
/** slashes defines the slashes the validator received. */
|
|
241
|
+
slashes?: V1Beta1ValidatorSlashEvent[];
|
|
242
|
+
|
|
243
|
+
/** pagination defines the pagination in the response. */
|
|
244
|
+
pagination?: V1Beta1PageResponse;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* ValidatorAccumulatedCommission represents accumulated commission
|
|
249
|
+
for a validator kept as a running counter, can be withdrawn at any time.
|
|
250
|
+
*/
|
|
251
|
+
export interface V1Beta1ValidatorAccumulatedCommission {
|
|
252
|
+
commission?: V1Beta1DecCoin[];
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
/**
|
|
256
|
+
* ValidatorOutstandingRewards represents outstanding (un-withdrawn) rewards
|
|
257
|
+
for a validator inexpensive to track, allows simple sanity checks.
|
|
258
|
+
*/
|
|
259
|
+
export interface V1Beta1ValidatorOutstandingRewards {
|
|
260
|
+
rewards?: V1Beta1DecCoin[];
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
/**
|
|
264
|
+
* ValidatorSlashEvent represents a validator slash event.
|
|
265
|
+
Height is implicit within the store key.
|
|
266
|
+
This is needed to calculate appropriate amount of staking tokens
|
|
267
|
+
for delegations which are withdrawn after a slash has occurred.
|
|
268
|
+
*/
|
|
269
|
+
export interface V1Beta1ValidatorSlashEvent {
|
|
270
|
+
/** @format uint64 */
|
|
271
|
+
validator_period?: string;
|
|
272
|
+
fraction?: string;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
import axios, { AxiosInstance, AxiosRequestConfig, AxiosResponse, ResponseType } from "axios";
|
|
276
|
+
|
|
277
|
+
export type QueryParamsType = Record<string | number, any>;
|
|
278
|
+
|
|
279
|
+
export interface FullRequestParams extends Omit<AxiosRequestConfig, "data" | "params" | "url" | "responseType"> {
|
|
280
|
+
/** set parameter to `true` for call `securityWorker` for this request */
|
|
281
|
+
secure?: boolean;
|
|
282
|
+
/** request path */
|
|
283
|
+
path: string;
|
|
284
|
+
/** content type of request body */
|
|
285
|
+
type?: ContentType;
|
|
286
|
+
/** query params */
|
|
287
|
+
query?: QueryParamsType;
|
|
288
|
+
/** format of response (i.e. response.json() -> format: "json") */
|
|
289
|
+
format?: ResponseType;
|
|
290
|
+
/** request body */
|
|
291
|
+
body?: unknown;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
export type RequestParams = Omit<FullRequestParams, "body" | "method" | "query" | "path">;
|
|
295
|
+
|
|
296
|
+
export interface ApiConfig<SecurityDataType = unknown> extends Omit<AxiosRequestConfig, "data" | "cancelToken"> {
|
|
297
|
+
securityWorker?: (
|
|
298
|
+
securityData: SecurityDataType | null,
|
|
299
|
+
) => Promise<AxiosRequestConfig | void> | AxiosRequestConfig | void;
|
|
300
|
+
secure?: boolean;
|
|
301
|
+
format?: ResponseType;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
export enum ContentType {
|
|
305
|
+
Json = "application/json",
|
|
306
|
+
FormData = "multipart/form-data",
|
|
307
|
+
UrlEncoded = "application/x-www-form-urlencoded",
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
export class HttpClient<SecurityDataType = unknown> {
|
|
311
|
+
public instance: AxiosInstance;
|
|
312
|
+
private securityData: SecurityDataType | null = null;
|
|
313
|
+
private securityWorker?: ApiConfig<SecurityDataType>["securityWorker"];
|
|
314
|
+
private secure?: boolean;
|
|
315
|
+
private format?: ResponseType;
|
|
316
|
+
|
|
317
|
+
constructor({ securityWorker, secure, format, ...axiosConfig }: ApiConfig<SecurityDataType> = {}) {
|
|
318
|
+
this.instance = axios.create({ ...axiosConfig, baseURL: axiosConfig.baseURL || "" });
|
|
319
|
+
this.secure = secure;
|
|
320
|
+
this.format = format;
|
|
321
|
+
this.securityWorker = securityWorker;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
public setSecurityData = (data: SecurityDataType | null) => {
|
|
325
|
+
this.securityData = data;
|
|
326
|
+
};
|
|
327
|
+
|
|
328
|
+
private mergeRequestParams(params1: AxiosRequestConfig, params2?: AxiosRequestConfig): AxiosRequestConfig {
|
|
329
|
+
return {
|
|
330
|
+
...this.instance.defaults,
|
|
331
|
+
...params1,
|
|
332
|
+
...(params2 || {}),
|
|
333
|
+
headers: {
|
|
334
|
+
...(this.instance.defaults.headers || {}),
|
|
335
|
+
...(params1.headers || {}),
|
|
336
|
+
...((params2 && params2.headers) || {}),
|
|
337
|
+
},
|
|
338
|
+
};
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
private createFormData(input: Record<string, unknown>): FormData {
|
|
342
|
+
return Object.keys(input || {}).reduce((formData, key) => {
|
|
343
|
+
const property = input[key];
|
|
344
|
+
formData.append(
|
|
345
|
+
key,
|
|
346
|
+
property instanceof Blob
|
|
347
|
+
? property
|
|
348
|
+
: typeof property === "object" && property !== null
|
|
349
|
+
? JSON.stringify(property)
|
|
350
|
+
: `${property}`,
|
|
351
|
+
);
|
|
352
|
+
return formData;
|
|
353
|
+
}, new FormData());
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
public request = async <T = any, _E = any>({
|
|
357
|
+
secure,
|
|
358
|
+
path,
|
|
359
|
+
type,
|
|
360
|
+
query,
|
|
361
|
+
format,
|
|
362
|
+
body,
|
|
363
|
+
...params
|
|
364
|
+
}: FullRequestParams): Promise<AxiosResponse<T>> => {
|
|
365
|
+
const secureParams =
|
|
366
|
+
((typeof secure === "boolean" ? secure : this.secure) &&
|
|
367
|
+
this.securityWorker &&
|
|
368
|
+
(await this.securityWorker(this.securityData))) ||
|
|
369
|
+
{};
|
|
370
|
+
const requestParams = this.mergeRequestParams(params, secureParams);
|
|
371
|
+
const responseFormat = (format && this.format) || void 0;
|
|
372
|
+
|
|
373
|
+
if (type === ContentType.FormData && body && body !== null && typeof body === "object") {
|
|
374
|
+
requestParams.headers.common = { Accept: "*/*" };
|
|
375
|
+
requestParams.headers.post = {};
|
|
376
|
+
requestParams.headers.put = {};
|
|
377
|
+
|
|
378
|
+
body = this.createFormData(body as Record<string, unknown>);
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
return this.instance.request({
|
|
382
|
+
...requestParams,
|
|
383
|
+
headers: {
|
|
384
|
+
...(type && type !== ContentType.FormData ? { "Content-Type": type } : {}),
|
|
385
|
+
...(requestParams.headers || {}),
|
|
386
|
+
},
|
|
387
|
+
params: query,
|
|
388
|
+
responseType: responseFormat,
|
|
389
|
+
data: body,
|
|
390
|
+
url: path,
|
|
391
|
+
});
|
|
392
|
+
};
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
/**
|
|
396
|
+
* @title cosmos/distribution/v1beta1/distribution.proto
|
|
397
|
+
* @version version not set
|
|
398
|
+
*/
|
|
399
|
+
export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDataType> {
|
|
400
|
+
/**
|
|
401
|
+
* No description
|
|
402
|
+
*
|
|
403
|
+
* @tags Query
|
|
404
|
+
* @name QueryCommunityPool
|
|
405
|
+
* @summary CommunityPool queries the community pool coins.
|
|
406
|
+
* @request GET:/cosmos/distribution/v1beta1/community_pool
|
|
407
|
+
*/
|
|
408
|
+
queryCommunityPool = (params: RequestParams = {}) =>
|
|
409
|
+
this.request<V1Beta1QueryCommunityPoolResponse, RpcStatus>({
|
|
410
|
+
path: `/cosmos/distribution/v1beta1/community_pool`,
|
|
411
|
+
method: "GET",
|
|
412
|
+
format: "json",
|
|
413
|
+
...params,
|
|
414
|
+
});
|
|
415
|
+
|
|
416
|
+
/**
|
|
417
|
+
* No description
|
|
418
|
+
*
|
|
419
|
+
* @tags Query
|
|
420
|
+
* @name QueryDelegationTotalRewards
|
|
421
|
+
* @summary DelegationTotalRewards queries the total rewards accrued by a each
|
|
422
|
+
validator.
|
|
423
|
+
* @request GET:/cosmos/distribution/v1beta1/delegators/{delegator_address}/rewards
|
|
424
|
+
*/
|
|
425
|
+
queryDelegationTotalRewards = (delegatorAddress: string, params: RequestParams = {}) =>
|
|
426
|
+
this.request<V1Beta1QueryDelegationTotalRewardsResponse, RpcStatus>({
|
|
427
|
+
path: `/cosmos/distribution/v1beta1/delegators/${delegatorAddress}/rewards`,
|
|
428
|
+
method: "GET",
|
|
429
|
+
format: "json",
|
|
430
|
+
...params,
|
|
431
|
+
});
|
|
432
|
+
|
|
433
|
+
/**
|
|
434
|
+
* No description
|
|
435
|
+
*
|
|
436
|
+
* @tags Query
|
|
437
|
+
* @name QueryDelegationRewards
|
|
438
|
+
* @summary DelegationRewards queries the total rewards accrued by a delegation.
|
|
439
|
+
* @request GET:/cosmos/distribution/v1beta1/delegators/{delegator_address}/rewards/{validator_address}
|
|
440
|
+
*/
|
|
441
|
+
queryDelegationRewards = (delegatorAddress: string, validatorAddress: string, params: RequestParams = {}) =>
|
|
442
|
+
this.request<V1Beta1QueryDelegationRewardsResponse, RpcStatus>({
|
|
443
|
+
path: `/cosmos/distribution/v1beta1/delegators/${delegatorAddress}/rewards/${validatorAddress}`,
|
|
444
|
+
method: "GET",
|
|
445
|
+
format: "json",
|
|
446
|
+
...params,
|
|
447
|
+
});
|
|
448
|
+
|
|
449
|
+
/**
|
|
450
|
+
* No description
|
|
451
|
+
*
|
|
452
|
+
* @tags Query
|
|
453
|
+
* @name QueryDelegatorValidators
|
|
454
|
+
* @summary DelegatorValidators queries the validators of a delegator.
|
|
455
|
+
* @request GET:/cosmos/distribution/v1beta1/delegators/{delegator_address}/validators
|
|
456
|
+
*/
|
|
457
|
+
queryDelegatorValidators = (delegatorAddress: string, params: RequestParams = {}) =>
|
|
458
|
+
this.request<V1Beta1QueryDelegatorValidatorsResponse, RpcStatus>({
|
|
459
|
+
path: `/cosmos/distribution/v1beta1/delegators/${delegatorAddress}/validators`,
|
|
460
|
+
method: "GET",
|
|
461
|
+
format: "json",
|
|
462
|
+
...params,
|
|
463
|
+
});
|
|
464
|
+
|
|
465
|
+
/**
|
|
466
|
+
* No description
|
|
467
|
+
*
|
|
468
|
+
* @tags Query
|
|
469
|
+
* @name QueryDelegatorWithdrawAddress
|
|
470
|
+
* @summary DelegatorWithdrawAddress queries withdraw address of a delegator.
|
|
471
|
+
* @request GET:/cosmos/distribution/v1beta1/delegators/{delegator_address}/withdraw_address
|
|
472
|
+
*/
|
|
473
|
+
queryDelegatorWithdrawAddress = (delegatorAddress: string, params: RequestParams = {}) =>
|
|
474
|
+
this.request<V1Beta1QueryDelegatorWithdrawAddressResponse, RpcStatus>({
|
|
475
|
+
path: `/cosmos/distribution/v1beta1/delegators/${delegatorAddress}/withdraw_address`,
|
|
476
|
+
method: "GET",
|
|
477
|
+
format: "json",
|
|
478
|
+
...params,
|
|
479
|
+
});
|
|
480
|
+
|
|
481
|
+
/**
|
|
482
|
+
* No description
|
|
483
|
+
*
|
|
484
|
+
* @tags Query
|
|
485
|
+
* @name QueryParams
|
|
486
|
+
* @summary Params queries params of the distribution module.
|
|
487
|
+
* @request GET:/cosmos/distribution/v1beta1/params
|
|
488
|
+
*/
|
|
489
|
+
queryParams = (params: RequestParams = {}) =>
|
|
490
|
+
this.request<V1Beta1QueryParamsResponse, RpcStatus>({
|
|
491
|
+
path: `/cosmos/distribution/v1beta1/params`,
|
|
492
|
+
method: "GET",
|
|
493
|
+
format: "json",
|
|
494
|
+
...params,
|
|
495
|
+
});
|
|
496
|
+
|
|
497
|
+
/**
|
|
498
|
+
* No description
|
|
499
|
+
*
|
|
500
|
+
* @tags Query
|
|
501
|
+
* @name QueryValidatorCommission
|
|
502
|
+
* @summary ValidatorCommission queries accumulated commission for a validator.
|
|
503
|
+
* @request GET:/cosmos/distribution/v1beta1/validators/{validator_address}/commission
|
|
504
|
+
*/
|
|
505
|
+
queryValidatorCommission = (validatorAddress: string, params: RequestParams = {}) =>
|
|
506
|
+
this.request<V1Beta1QueryValidatorCommissionResponse, RpcStatus>({
|
|
507
|
+
path: `/cosmos/distribution/v1beta1/validators/${validatorAddress}/commission`,
|
|
508
|
+
method: "GET",
|
|
509
|
+
format: "json",
|
|
510
|
+
...params,
|
|
511
|
+
});
|
|
512
|
+
|
|
513
|
+
/**
|
|
514
|
+
* No description
|
|
515
|
+
*
|
|
516
|
+
* @tags Query
|
|
517
|
+
* @name QueryValidatorOutstandingRewards
|
|
518
|
+
* @summary ValidatorOutstandingRewards queries rewards of a validator address.
|
|
519
|
+
* @request GET:/cosmos/distribution/v1beta1/validators/{validator_address}/outstanding_rewards
|
|
520
|
+
*/
|
|
521
|
+
queryValidatorOutstandingRewards = (validatorAddress: string, params: RequestParams = {}) =>
|
|
522
|
+
this.request<V1Beta1QueryValidatorOutstandingRewardsResponse, RpcStatus>({
|
|
523
|
+
path: `/cosmos/distribution/v1beta1/validators/${validatorAddress}/outstanding_rewards`,
|
|
524
|
+
method: "GET",
|
|
525
|
+
format: "json",
|
|
526
|
+
...params,
|
|
527
|
+
});
|
|
528
|
+
|
|
529
|
+
/**
|
|
530
|
+
* No description
|
|
531
|
+
*
|
|
532
|
+
* @tags Query
|
|
533
|
+
* @name QueryValidatorSlashes
|
|
534
|
+
* @summary ValidatorSlashes queries slash events of a validator.
|
|
535
|
+
* @request GET:/cosmos/distribution/v1beta1/validators/{validator_address}/slashes
|
|
536
|
+
*/
|
|
537
|
+
queryValidatorSlashes = (
|
|
538
|
+
validatorAddress: string,
|
|
539
|
+
query?: {
|
|
540
|
+
starting_height?: string;
|
|
541
|
+
ending_height?: string;
|
|
542
|
+
"pagination.key"?: string;
|
|
543
|
+
"pagination.offset"?: string;
|
|
544
|
+
"pagination.limit"?: string;
|
|
545
|
+
"pagination.count_total"?: boolean;
|
|
546
|
+
"pagination.reverse"?: boolean;
|
|
547
|
+
},
|
|
548
|
+
params: RequestParams = {},
|
|
549
|
+
) =>
|
|
550
|
+
this.request<V1Beta1QueryValidatorSlashesResponse, RpcStatus>({
|
|
551
|
+
path: `/cosmos/distribution/v1beta1/validators/${validatorAddress}/slashes`,
|
|
552
|
+
method: "GET",
|
|
553
|
+
query: query,
|
|
554
|
+
format: "json",
|
|
555
|
+
...params,
|
|
556
|
+
});
|
|
557
|
+
}
|