@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,253 @@
|
|
|
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
|
+
* Params holds parameters for the mint module.
|
|
25
|
+
*/
|
|
26
|
+
export interface V1Beta1Params {
|
|
27
|
+
/** type of coin to mint */
|
|
28
|
+
mint_denom?: string;
|
|
29
|
+
|
|
30
|
+
/** maximum annual change in inflation rate */
|
|
31
|
+
inflation_rate_change?: string;
|
|
32
|
+
|
|
33
|
+
/** maximum inflation rate */
|
|
34
|
+
inflation_max?: string;
|
|
35
|
+
|
|
36
|
+
/** minimum inflation rate */
|
|
37
|
+
inflation_min?: string;
|
|
38
|
+
|
|
39
|
+
/** goal of percent bonded atoms */
|
|
40
|
+
goal_bonded?: string;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* expected blocks per year
|
|
44
|
+
* @format uint64
|
|
45
|
+
*/
|
|
46
|
+
blocks_per_year?: string;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* QueryAnnualProvisionsResponse is the response type for the
|
|
51
|
+
Query/AnnualProvisions RPC method.
|
|
52
|
+
*/
|
|
53
|
+
export interface V1Beta1QueryAnnualProvisionsResponse {
|
|
54
|
+
/**
|
|
55
|
+
* annual_provisions is the current minting annual provisions value.
|
|
56
|
+
* @format byte
|
|
57
|
+
*/
|
|
58
|
+
annual_provisions?: string;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* QueryInflationResponse is the response type for the Query/Inflation RPC
|
|
63
|
+
method.
|
|
64
|
+
*/
|
|
65
|
+
export interface V1Beta1QueryInflationResponse {
|
|
66
|
+
/**
|
|
67
|
+
* inflation is the current minting inflation value.
|
|
68
|
+
* @format byte
|
|
69
|
+
*/
|
|
70
|
+
inflation?: string;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* QueryParamsResponse is the response type for the Query/Params RPC method.
|
|
75
|
+
*/
|
|
76
|
+
export interface V1Beta1QueryParamsResponse {
|
|
77
|
+
/** params defines the parameters of the module. */
|
|
78
|
+
params?: V1Beta1Params;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
import axios, { AxiosInstance, AxiosRequestConfig, AxiosResponse, ResponseType } from "axios";
|
|
82
|
+
|
|
83
|
+
export type QueryParamsType = Record<string | number, any>;
|
|
84
|
+
|
|
85
|
+
export interface FullRequestParams extends Omit<AxiosRequestConfig, "data" | "params" | "url" | "responseType"> {
|
|
86
|
+
/** set parameter to `true` for call `securityWorker` for this request */
|
|
87
|
+
secure?: boolean;
|
|
88
|
+
/** request path */
|
|
89
|
+
path: string;
|
|
90
|
+
/** content type of request body */
|
|
91
|
+
type?: ContentType;
|
|
92
|
+
/** query params */
|
|
93
|
+
query?: QueryParamsType;
|
|
94
|
+
/** format of response (i.e. response.json() -> format: "json") */
|
|
95
|
+
format?: ResponseType;
|
|
96
|
+
/** request body */
|
|
97
|
+
body?: unknown;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export type RequestParams = Omit<FullRequestParams, "body" | "method" | "query" | "path">;
|
|
101
|
+
|
|
102
|
+
export interface ApiConfig<SecurityDataType = unknown> extends Omit<AxiosRequestConfig, "data" | "cancelToken"> {
|
|
103
|
+
securityWorker?: (
|
|
104
|
+
securityData: SecurityDataType | null,
|
|
105
|
+
) => Promise<AxiosRequestConfig | void> | AxiosRequestConfig | void;
|
|
106
|
+
secure?: boolean;
|
|
107
|
+
format?: ResponseType;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export enum ContentType {
|
|
111
|
+
Json = "application/json",
|
|
112
|
+
FormData = "multipart/form-data",
|
|
113
|
+
UrlEncoded = "application/x-www-form-urlencoded",
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export class HttpClient<SecurityDataType = unknown> {
|
|
117
|
+
public instance: AxiosInstance;
|
|
118
|
+
private securityData: SecurityDataType | null = null;
|
|
119
|
+
private securityWorker?: ApiConfig<SecurityDataType>["securityWorker"];
|
|
120
|
+
private secure?: boolean;
|
|
121
|
+
private format?: ResponseType;
|
|
122
|
+
|
|
123
|
+
constructor({ securityWorker, secure, format, ...axiosConfig }: ApiConfig<SecurityDataType> = {}) {
|
|
124
|
+
this.instance = axios.create({ ...axiosConfig, baseURL: axiosConfig.baseURL || "" });
|
|
125
|
+
this.secure = secure;
|
|
126
|
+
this.format = format;
|
|
127
|
+
this.securityWorker = securityWorker;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
public setSecurityData = (data: SecurityDataType | null) => {
|
|
131
|
+
this.securityData = data;
|
|
132
|
+
};
|
|
133
|
+
|
|
134
|
+
private mergeRequestParams(params1: AxiosRequestConfig, params2?: AxiosRequestConfig): AxiosRequestConfig {
|
|
135
|
+
return {
|
|
136
|
+
...this.instance.defaults,
|
|
137
|
+
...params1,
|
|
138
|
+
...(params2 || {}),
|
|
139
|
+
headers: {
|
|
140
|
+
...(this.instance.defaults.headers || {}),
|
|
141
|
+
...(params1.headers || {}),
|
|
142
|
+
...((params2 && params2.headers) || {}),
|
|
143
|
+
},
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
private createFormData(input: Record<string, unknown>): FormData {
|
|
148
|
+
return Object.keys(input || {}).reduce((formData, key) => {
|
|
149
|
+
const property = input[key];
|
|
150
|
+
formData.append(
|
|
151
|
+
key,
|
|
152
|
+
property instanceof Blob
|
|
153
|
+
? property
|
|
154
|
+
: typeof property === "object" && property !== null
|
|
155
|
+
? JSON.stringify(property)
|
|
156
|
+
: `${property}`,
|
|
157
|
+
);
|
|
158
|
+
return formData;
|
|
159
|
+
}, new FormData());
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
public request = async <T = any, _E = any>({
|
|
163
|
+
secure,
|
|
164
|
+
path,
|
|
165
|
+
type,
|
|
166
|
+
query,
|
|
167
|
+
format,
|
|
168
|
+
body,
|
|
169
|
+
...params
|
|
170
|
+
}: FullRequestParams): Promise<AxiosResponse<T>> => {
|
|
171
|
+
const secureParams =
|
|
172
|
+
((typeof secure === "boolean" ? secure : this.secure) &&
|
|
173
|
+
this.securityWorker &&
|
|
174
|
+
(await this.securityWorker(this.securityData))) ||
|
|
175
|
+
{};
|
|
176
|
+
const requestParams = this.mergeRequestParams(params, secureParams);
|
|
177
|
+
const responseFormat = (format && this.format) || void 0;
|
|
178
|
+
|
|
179
|
+
if (type === ContentType.FormData && body && body !== null && typeof body === "object") {
|
|
180
|
+
requestParams.headers.common = { Accept: "*/*" };
|
|
181
|
+
requestParams.headers.post = {};
|
|
182
|
+
requestParams.headers.put = {};
|
|
183
|
+
|
|
184
|
+
body = this.createFormData(body as Record<string, unknown>);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
return this.instance.request({
|
|
188
|
+
...requestParams,
|
|
189
|
+
headers: {
|
|
190
|
+
...(type && type !== ContentType.FormData ? { "Content-Type": type } : {}),
|
|
191
|
+
...(requestParams.headers || {}),
|
|
192
|
+
},
|
|
193
|
+
params: query,
|
|
194
|
+
responseType: responseFormat,
|
|
195
|
+
data: body,
|
|
196
|
+
url: path,
|
|
197
|
+
});
|
|
198
|
+
};
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* @title cosmos/mint/v1beta1/genesis.proto
|
|
203
|
+
* @version version not set
|
|
204
|
+
*/
|
|
205
|
+
export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDataType> {
|
|
206
|
+
/**
|
|
207
|
+
* No description
|
|
208
|
+
*
|
|
209
|
+
* @tags Query
|
|
210
|
+
* @name QueryAnnualProvisions
|
|
211
|
+
* @summary AnnualProvisions current minting annual provisions value.
|
|
212
|
+
* @request GET:/cosmos/mint/v1beta1/annual_provisions
|
|
213
|
+
*/
|
|
214
|
+
queryAnnualProvisions = (params: RequestParams = {}) =>
|
|
215
|
+
this.request<V1Beta1QueryAnnualProvisionsResponse, RpcStatus>({
|
|
216
|
+
path: `/cosmos/mint/v1beta1/annual_provisions`,
|
|
217
|
+
method: "GET",
|
|
218
|
+
format: "json",
|
|
219
|
+
...params,
|
|
220
|
+
});
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* No description
|
|
224
|
+
*
|
|
225
|
+
* @tags Query
|
|
226
|
+
* @name QueryInflation
|
|
227
|
+
* @summary Inflation returns the current minting inflation value.
|
|
228
|
+
* @request GET:/cosmos/mint/v1beta1/inflation
|
|
229
|
+
*/
|
|
230
|
+
queryInflation = (params: RequestParams = {}) =>
|
|
231
|
+
this.request<V1Beta1QueryInflationResponse, RpcStatus>({
|
|
232
|
+
path: `/cosmos/mint/v1beta1/inflation`,
|
|
233
|
+
method: "GET",
|
|
234
|
+
format: "json",
|
|
235
|
+
...params,
|
|
236
|
+
});
|
|
237
|
+
|
|
238
|
+
/**
|
|
239
|
+
* No description
|
|
240
|
+
*
|
|
241
|
+
* @tags Query
|
|
242
|
+
* @name QueryParams
|
|
243
|
+
* @summary Params returns the total set of minting parameters.
|
|
244
|
+
* @request GET:/cosmos/mint/v1beta1/params
|
|
245
|
+
*/
|
|
246
|
+
queryParams = (params: RequestParams = {}) =>
|
|
247
|
+
this.request<V1Beta1QueryParamsResponse, RpcStatus>({
|
|
248
|
+
path: `/cosmos/mint/v1beta1/params`,
|
|
249
|
+
method: "GET",
|
|
250
|
+
format: "json",
|
|
251
|
+
...params,
|
|
252
|
+
});
|
|
253
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import _m0 from "protobufjs/minimal";
|
|
3
|
+
import { Minter, Params } from "./mint";
|
|
4
|
+
|
|
5
|
+
export const protobufPackage = "cosmos.mint.v1beta1";
|
|
6
|
+
|
|
7
|
+
/** GenesisState defines the mint module's genesis state. */
|
|
8
|
+
export interface GenesisState {
|
|
9
|
+
/** minter is a space for holding current inflation information. */
|
|
10
|
+
minter:
|
|
11
|
+
| Minter
|
|
12
|
+
| undefined;
|
|
13
|
+
/** params defines all the paramaters of the module. */
|
|
14
|
+
params: Params | undefined;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
function createBaseGenesisState(): GenesisState {
|
|
18
|
+
return { minter: undefined, params: undefined };
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export const GenesisState = {
|
|
22
|
+
encode(message: GenesisState, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
23
|
+
if (message.minter !== undefined) {
|
|
24
|
+
Minter.encode(message.minter, writer.uint32(10).fork()).ldelim();
|
|
25
|
+
}
|
|
26
|
+
if (message.params !== undefined) {
|
|
27
|
+
Params.encode(message.params, writer.uint32(18).fork()).ldelim();
|
|
28
|
+
}
|
|
29
|
+
return writer;
|
|
30
|
+
},
|
|
31
|
+
|
|
32
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): GenesisState {
|
|
33
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
34
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
35
|
+
const message = createBaseGenesisState();
|
|
36
|
+
while (reader.pos < end) {
|
|
37
|
+
const tag = reader.uint32();
|
|
38
|
+
switch (tag >>> 3) {
|
|
39
|
+
case 1:
|
|
40
|
+
message.minter = Minter.decode(reader, reader.uint32());
|
|
41
|
+
break;
|
|
42
|
+
case 2:
|
|
43
|
+
message.params = Params.decode(reader, reader.uint32());
|
|
44
|
+
break;
|
|
45
|
+
default:
|
|
46
|
+
reader.skipType(tag & 7);
|
|
47
|
+
break;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
return message;
|
|
51
|
+
},
|
|
52
|
+
|
|
53
|
+
fromJSON(object: any): GenesisState {
|
|
54
|
+
return {
|
|
55
|
+
minter: isSet(object.minter) ? Minter.fromJSON(object.minter) : undefined,
|
|
56
|
+
params: isSet(object.params) ? Params.fromJSON(object.params) : undefined,
|
|
57
|
+
};
|
|
58
|
+
},
|
|
59
|
+
|
|
60
|
+
toJSON(message: GenesisState): unknown {
|
|
61
|
+
const obj: any = {};
|
|
62
|
+
message.minter !== undefined && (obj.minter = message.minter ? Minter.toJSON(message.minter) : undefined);
|
|
63
|
+
message.params !== undefined && (obj.params = message.params ? Params.toJSON(message.params) : undefined);
|
|
64
|
+
return obj;
|
|
65
|
+
},
|
|
66
|
+
|
|
67
|
+
fromPartial<I extends Exact<DeepPartial<GenesisState>, I>>(object: I): GenesisState {
|
|
68
|
+
const message = createBaseGenesisState();
|
|
69
|
+
message.minter = (object.minter !== undefined && object.minter !== null)
|
|
70
|
+
? Minter.fromPartial(object.minter)
|
|
71
|
+
: undefined;
|
|
72
|
+
message.params = (object.params !== undefined && object.params !== null)
|
|
73
|
+
? Params.fromPartial(object.params)
|
|
74
|
+
: undefined;
|
|
75
|
+
return message;
|
|
76
|
+
},
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
80
|
+
|
|
81
|
+
export type DeepPartial<T> = T extends Builtin ? T
|
|
82
|
+
: T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
83
|
+
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
84
|
+
: Partial<T>;
|
|
85
|
+
|
|
86
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
87
|
+
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
88
|
+
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
|
89
|
+
|
|
90
|
+
function isSet(value: any): boolean {
|
|
91
|
+
return value !== null && value !== undefined;
|
|
92
|
+
}
|
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import Long from "long";
|
|
3
|
+
import _m0 from "protobufjs/minimal";
|
|
4
|
+
|
|
5
|
+
export const protobufPackage = "cosmos.mint.v1beta1";
|
|
6
|
+
|
|
7
|
+
/** Minter represents the minting state. */
|
|
8
|
+
export interface Minter {
|
|
9
|
+
/** current annual inflation rate */
|
|
10
|
+
inflation: string;
|
|
11
|
+
/** current annual expected provisions */
|
|
12
|
+
annualProvisions: string;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/** Params holds parameters for the mint module. */
|
|
16
|
+
export interface Params {
|
|
17
|
+
/** type of coin to mint */
|
|
18
|
+
mintDenom: string;
|
|
19
|
+
/** maximum annual change in inflation rate */
|
|
20
|
+
inflationRateChange: string;
|
|
21
|
+
/** maximum inflation rate */
|
|
22
|
+
inflationMax: string;
|
|
23
|
+
/** minimum inflation rate */
|
|
24
|
+
inflationMin: string;
|
|
25
|
+
/** goal of percent bonded atoms */
|
|
26
|
+
goalBonded: string;
|
|
27
|
+
/** expected blocks per year */
|
|
28
|
+
blocksPerYear: number;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
function createBaseMinter(): Minter {
|
|
32
|
+
return { inflation: "", annualProvisions: "" };
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export const Minter = {
|
|
36
|
+
encode(message: Minter, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
37
|
+
if (message.inflation !== "") {
|
|
38
|
+
writer.uint32(10).string(message.inflation);
|
|
39
|
+
}
|
|
40
|
+
if (message.annualProvisions !== "") {
|
|
41
|
+
writer.uint32(18).string(message.annualProvisions);
|
|
42
|
+
}
|
|
43
|
+
return writer;
|
|
44
|
+
},
|
|
45
|
+
|
|
46
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Minter {
|
|
47
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
48
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
49
|
+
const message = createBaseMinter();
|
|
50
|
+
while (reader.pos < end) {
|
|
51
|
+
const tag = reader.uint32();
|
|
52
|
+
switch (tag >>> 3) {
|
|
53
|
+
case 1:
|
|
54
|
+
message.inflation = reader.string();
|
|
55
|
+
break;
|
|
56
|
+
case 2:
|
|
57
|
+
message.annualProvisions = reader.string();
|
|
58
|
+
break;
|
|
59
|
+
default:
|
|
60
|
+
reader.skipType(tag & 7);
|
|
61
|
+
break;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
return message;
|
|
65
|
+
},
|
|
66
|
+
|
|
67
|
+
fromJSON(object: any): Minter {
|
|
68
|
+
return {
|
|
69
|
+
inflation: isSet(object.inflation) ? String(object.inflation) : "",
|
|
70
|
+
annualProvisions: isSet(object.annualProvisions) ? String(object.annualProvisions) : "",
|
|
71
|
+
};
|
|
72
|
+
},
|
|
73
|
+
|
|
74
|
+
toJSON(message: Minter): unknown {
|
|
75
|
+
const obj: any = {};
|
|
76
|
+
message.inflation !== undefined && (obj.inflation = message.inflation);
|
|
77
|
+
message.annualProvisions !== undefined && (obj.annualProvisions = message.annualProvisions);
|
|
78
|
+
return obj;
|
|
79
|
+
},
|
|
80
|
+
|
|
81
|
+
fromPartial<I extends Exact<DeepPartial<Minter>, I>>(object: I): Minter {
|
|
82
|
+
const message = createBaseMinter();
|
|
83
|
+
message.inflation = object.inflation ?? "";
|
|
84
|
+
message.annualProvisions = object.annualProvisions ?? "";
|
|
85
|
+
return message;
|
|
86
|
+
},
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
function createBaseParams(): Params {
|
|
90
|
+
return {
|
|
91
|
+
mintDenom: "",
|
|
92
|
+
inflationRateChange: "",
|
|
93
|
+
inflationMax: "",
|
|
94
|
+
inflationMin: "",
|
|
95
|
+
goalBonded: "",
|
|
96
|
+
blocksPerYear: 0,
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export const Params = {
|
|
101
|
+
encode(message: Params, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
102
|
+
if (message.mintDenom !== "") {
|
|
103
|
+
writer.uint32(10).string(message.mintDenom);
|
|
104
|
+
}
|
|
105
|
+
if (message.inflationRateChange !== "") {
|
|
106
|
+
writer.uint32(18).string(message.inflationRateChange);
|
|
107
|
+
}
|
|
108
|
+
if (message.inflationMax !== "") {
|
|
109
|
+
writer.uint32(26).string(message.inflationMax);
|
|
110
|
+
}
|
|
111
|
+
if (message.inflationMin !== "") {
|
|
112
|
+
writer.uint32(34).string(message.inflationMin);
|
|
113
|
+
}
|
|
114
|
+
if (message.goalBonded !== "") {
|
|
115
|
+
writer.uint32(42).string(message.goalBonded);
|
|
116
|
+
}
|
|
117
|
+
if (message.blocksPerYear !== 0) {
|
|
118
|
+
writer.uint32(48).uint64(message.blocksPerYear);
|
|
119
|
+
}
|
|
120
|
+
return writer;
|
|
121
|
+
},
|
|
122
|
+
|
|
123
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Params {
|
|
124
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
125
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
126
|
+
const message = createBaseParams();
|
|
127
|
+
while (reader.pos < end) {
|
|
128
|
+
const tag = reader.uint32();
|
|
129
|
+
switch (tag >>> 3) {
|
|
130
|
+
case 1:
|
|
131
|
+
message.mintDenom = reader.string();
|
|
132
|
+
break;
|
|
133
|
+
case 2:
|
|
134
|
+
message.inflationRateChange = reader.string();
|
|
135
|
+
break;
|
|
136
|
+
case 3:
|
|
137
|
+
message.inflationMax = reader.string();
|
|
138
|
+
break;
|
|
139
|
+
case 4:
|
|
140
|
+
message.inflationMin = reader.string();
|
|
141
|
+
break;
|
|
142
|
+
case 5:
|
|
143
|
+
message.goalBonded = reader.string();
|
|
144
|
+
break;
|
|
145
|
+
case 6:
|
|
146
|
+
message.blocksPerYear = longToNumber(reader.uint64() as Long);
|
|
147
|
+
break;
|
|
148
|
+
default:
|
|
149
|
+
reader.skipType(tag & 7);
|
|
150
|
+
break;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
return message;
|
|
154
|
+
},
|
|
155
|
+
|
|
156
|
+
fromJSON(object: any): Params {
|
|
157
|
+
return {
|
|
158
|
+
mintDenom: isSet(object.mintDenom) ? String(object.mintDenom) : "",
|
|
159
|
+
inflationRateChange: isSet(object.inflationRateChange) ? String(object.inflationRateChange) : "",
|
|
160
|
+
inflationMax: isSet(object.inflationMax) ? String(object.inflationMax) : "",
|
|
161
|
+
inflationMin: isSet(object.inflationMin) ? String(object.inflationMin) : "",
|
|
162
|
+
goalBonded: isSet(object.goalBonded) ? String(object.goalBonded) : "",
|
|
163
|
+
blocksPerYear: isSet(object.blocksPerYear) ? Number(object.blocksPerYear) : 0,
|
|
164
|
+
};
|
|
165
|
+
},
|
|
166
|
+
|
|
167
|
+
toJSON(message: Params): unknown {
|
|
168
|
+
const obj: any = {};
|
|
169
|
+
message.mintDenom !== undefined && (obj.mintDenom = message.mintDenom);
|
|
170
|
+
message.inflationRateChange !== undefined && (obj.inflationRateChange = message.inflationRateChange);
|
|
171
|
+
message.inflationMax !== undefined && (obj.inflationMax = message.inflationMax);
|
|
172
|
+
message.inflationMin !== undefined && (obj.inflationMin = message.inflationMin);
|
|
173
|
+
message.goalBonded !== undefined && (obj.goalBonded = message.goalBonded);
|
|
174
|
+
message.blocksPerYear !== undefined && (obj.blocksPerYear = Math.round(message.blocksPerYear));
|
|
175
|
+
return obj;
|
|
176
|
+
},
|
|
177
|
+
|
|
178
|
+
fromPartial<I extends Exact<DeepPartial<Params>, I>>(object: I): Params {
|
|
179
|
+
const message = createBaseParams();
|
|
180
|
+
message.mintDenom = object.mintDenom ?? "";
|
|
181
|
+
message.inflationRateChange = object.inflationRateChange ?? "";
|
|
182
|
+
message.inflationMax = object.inflationMax ?? "";
|
|
183
|
+
message.inflationMin = object.inflationMin ?? "";
|
|
184
|
+
message.goalBonded = object.goalBonded ?? "";
|
|
185
|
+
message.blocksPerYear = object.blocksPerYear ?? 0;
|
|
186
|
+
return message;
|
|
187
|
+
},
|
|
188
|
+
};
|
|
189
|
+
|
|
190
|
+
declare var self: any | undefined;
|
|
191
|
+
declare var window: any | undefined;
|
|
192
|
+
declare var global: any | undefined;
|
|
193
|
+
var globalThis: any = (() => {
|
|
194
|
+
if (typeof globalThis !== "undefined") {
|
|
195
|
+
return globalThis;
|
|
196
|
+
}
|
|
197
|
+
if (typeof self !== "undefined") {
|
|
198
|
+
return self;
|
|
199
|
+
}
|
|
200
|
+
if (typeof window !== "undefined") {
|
|
201
|
+
return window;
|
|
202
|
+
}
|
|
203
|
+
if (typeof global !== "undefined") {
|
|
204
|
+
return global;
|
|
205
|
+
}
|
|
206
|
+
throw "Unable to locate global object";
|
|
207
|
+
})();
|
|
208
|
+
|
|
209
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
210
|
+
|
|
211
|
+
export type DeepPartial<T> = T extends Builtin ? T
|
|
212
|
+
: T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
213
|
+
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
214
|
+
: Partial<T>;
|
|
215
|
+
|
|
216
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
217
|
+
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
218
|
+
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
|
219
|
+
|
|
220
|
+
function longToNumber(long: Long): number {
|
|
221
|
+
if (long.gt(Number.MAX_SAFE_INTEGER)) {
|
|
222
|
+
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
223
|
+
}
|
|
224
|
+
return long.toNumber();
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
if (_m0.util.Long !== Long) {
|
|
228
|
+
_m0.util.Long = Long as any;
|
|
229
|
+
_m0.configure();
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
function isSet(value: any): boolean {
|
|
233
|
+
return value !== null && value !== undefined;
|
|
234
|
+
}
|