@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,412 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import _m0 from "protobufjs/minimal";
|
|
3
|
+
import { Params } from "./mint";
|
|
4
|
+
|
|
5
|
+
export const protobufPackage = "cosmos.mint.v1beta1";
|
|
6
|
+
|
|
7
|
+
/** QueryParamsRequest is the request type for the Query/Params RPC method. */
|
|
8
|
+
export interface QueryParamsRequest {
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/** QueryParamsResponse is the response type for the Query/Params RPC method. */
|
|
12
|
+
export interface QueryParamsResponse {
|
|
13
|
+
/** params defines the parameters of the module. */
|
|
14
|
+
params: Params | undefined;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/** QueryInflationRequest is the request type for the Query/Inflation RPC method. */
|
|
18
|
+
export interface QueryInflationRequest {
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* QueryInflationResponse is the response type for the Query/Inflation RPC
|
|
23
|
+
* method.
|
|
24
|
+
*/
|
|
25
|
+
export interface QueryInflationResponse {
|
|
26
|
+
/** inflation is the current minting inflation value. */
|
|
27
|
+
inflation: Uint8Array;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* QueryAnnualProvisionsRequest is the request type for the
|
|
32
|
+
* Query/AnnualProvisions RPC method.
|
|
33
|
+
*/
|
|
34
|
+
export interface QueryAnnualProvisionsRequest {
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* QueryAnnualProvisionsResponse is the response type for the
|
|
39
|
+
* Query/AnnualProvisions RPC method.
|
|
40
|
+
*/
|
|
41
|
+
export interface QueryAnnualProvisionsResponse {
|
|
42
|
+
/** annual_provisions is the current minting annual provisions value. */
|
|
43
|
+
annualProvisions: Uint8Array;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
function createBaseQueryParamsRequest(): QueryParamsRequest {
|
|
47
|
+
return {};
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export const QueryParamsRequest = {
|
|
51
|
+
encode(_: QueryParamsRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
52
|
+
return writer;
|
|
53
|
+
},
|
|
54
|
+
|
|
55
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsRequest {
|
|
56
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
57
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
58
|
+
const message = createBaseQueryParamsRequest();
|
|
59
|
+
while (reader.pos < end) {
|
|
60
|
+
const tag = reader.uint32();
|
|
61
|
+
switch (tag >>> 3) {
|
|
62
|
+
default:
|
|
63
|
+
reader.skipType(tag & 7);
|
|
64
|
+
break;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
return message;
|
|
68
|
+
},
|
|
69
|
+
|
|
70
|
+
fromJSON(_: any): QueryParamsRequest {
|
|
71
|
+
return {};
|
|
72
|
+
},
|
|
73
|
+
|
|
74
|
+
toJSON(_: QueryParamsRequest): unknown {
|
|
75
|
+
const obj: any = {};
|
|
76
|
+
return obj;
|
|
77
|
+
},
|
|
78
|
+
|
|
79
|
+
fromPartial<I extends Exact<DeepPartial<QueryParamsRequest>, I>>(_: I): QueryParamsRequest {
|
|
80
|
+
const message = createBaseQueryParamsRequest();
|
|
81
|
+
return message;
|
|
82
|
+
},
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
function createBaseQueryParamsResponse(): QueryParamsResponse {
|
|
86
|
+
return { params: undefined };
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export const QueryParamsResponse = {
|
|
90
|
+
encode(message: QueryParamsResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
91
|
+
if (message.params !== undefined) {
|
|
92
|
+
Params.encode(message.params, writer.uint32(10).fork()).ldelim();
|
|
93
|
+
}
|
|
94
|
+
return writer;
|
|
95
|
+
},
|
|
96
|
+
|
|
97
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsResponse {
|
|
98
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
99
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
100
|
+
const message = createBaseQueryParamsResponse();
|
|
101
|
+
while (reader.pos < end) {
|
|
102
|
+
const tag = reader.uint32();
|
|
103
|
+
switch (tag >>> 3) {
|
|
104
|
+
case 1:
|
|
105
|
+
message.params = Params.decode(reader, reader.uint32());
|
|
106
|
+
break;
|
|
107
|
+
default:
|
|
108
|
+
reader.skipType(tag & 7);
|
|
109
|
+
break;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
return message;
|
|
113
|
+
},
|
|
114
|
+
|
|
115
|
+
fromJSON(object: any): QueryParamsResponse {
|
|
116
|
+
return { params: isSet(object.params) ? Params.fromJSON(object.params) : undefined };
|
|
117
|
+
},
|
|
118
|
+
|
|
119
|
+
toJSON(message: QueryParamsResponse): unknown {
|
|
120
|
+
const obj: any = {};
|
|
121
|
+
message.params !== undefined && (obj.params = message.params ? Params.toJSON(message.params) : undefined);
|
|
122
|
+
return obj;
|
|
123
|
+
},
|
|
124
|
+
|
|
125
|
+
fromPartial<I extends Exact<DeepPartial<QueryParamsResponse>, I>>(object: I): QueryParamsResponse {
|
|
126
|
+
const message = createBaseQueryParamsResponse();
|
|
127
|
+
message.params = (object.params !== undefined && object.params !== null)
|
|
128
|
+
? Params.fromPartial(object.params)
|
|
129
|
+
: undefined;
|
|
130
|
+
return message;
|
|
131
|
+
},
|
|
132
|
+
};
|
|
133
|
+
|
|
134
|
+
function createBaseQueryInflationRequest(): QueryInflationRequest {
|
|
135
|
+
return {};
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
export const QueryInflationRequest = {
|
|
139
|
+
encode(_: QueryInflationRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
140
|
+
return writer;
|
|
141
|
+
},
|
|
142
|
+
|
|
143
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryInflationRequest {
|
|
144
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
145
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
146
|
+
const message = createBaseQueryInflationRequest();
|
|
147
|
+
while (reader.pos < end) {
|
|
148
|
+
const tag = reader.uint32();
|
|
149
|
+
switch (tag >>> 3) {
|
|
150
|
+
default:
|
|
151
|
+
reader.skipType(tag & 7);
|
|
152
|
+
break;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
return message;
|
|
156
|
+
},
|
|
157
|
+
|
|
158
|
+
fromJSON(_: any): QueryInflationRequest {
|
|
159
|
+
return {};
|
|
160
|
+
},
|
|
161
|
+
|
|
162
|
+
toJSON(_: QueryInflationRequest): unknown {
|
|
163
|
+
const obj: any = {};
|
|
164
|
+
return obj;
|
|
165
|
+
},
|
|
166
|
+
|
|
167
|
+
fromPartial<I extends Exact<DeepPartial<QueryInflationRequest>, I>>(_: I): QueryInflationRequest {
|
|
168
|
+
const message = createBaseQueryInflationRequest();
|
|
169
|
+
return message;
|
|
170
|
+
},
|
|
171
|
+
};
|
|
172
|
+
|
|
173
|
+
function createBaseQueryInflationResponse(): QueryInflationResponse {
|
|
174
|
+
return { inflation: new Uint8Array() };
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
export const QueryInflationResponse = {
|
|
178
|
+
encode(message: QueryInflationResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
179
|
+
if (message.inflation.length !== 0) {
|
|
180
|
+
writer.uint32(10).bytes(message.inflation);
|
|
181
|
+
}
|
|
182
|
+
return writer;
|
|
183
|
+
},
|
|
184
|
+
|
|
185
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryInflationResponse {
|
|
186
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
187
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
188
|
+
const message = createBaseQueryInflationResponse();
|
|
189
|
+
while (reader.pos < end) {
|
|
190
|
+
const tag = reader.uint32();
|
|
191
|
+
switch (tag >>> 3) {
|
|
192
|
+
case 1:
|
|
193
|
+
message.inflation = reader.bytes();
|
|
194
|
+
break;
|
|
195
|
+
default:
|
|
196
|
+
reader.skipType(tag & 7);
|
|
197
|
+
break;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
return message;
|
|
201
|
+
},
|
|
202
|
+
|
|
203
|
+
fromJSON(object: any): QueryInflationResponse {
|
|
204
|
+
return { inflation: isSet(object.inflation) ? bytesFromBase64(object.inflation) : new Uint8Array() };
|
|
205
|
+
},
|
|
206
|
+
|
|
207
|
+
toJSON(message: QueryInflationResponse): unknown {
|
|
208
|
+
const obj: any = {};
|
|
209
|
+
message.inflation !== undefined
|
|
210
|
+
&& (obj.inflation = base64FromBytes(message.inflation !== undefined ? message.inflation : new Uint8Array()));
|
|
211
|
+
return obj;
|
|
212
|
+
},
|
|
213
|
+
|
|
214
|
+
fromPartial<I extends Exact<DeepPartial<QueryInflationResponse>, I>>(object: I): QueryInflationResponse {
|
|
215
|
+
const message = createBaseQueryInflationResponse();
|
|
216
|
+
message.inflation = object.inflation ?? new Uint8Array();
|
|
217
|
+
return message;
|
|
218
|
+
},
|
|
219
|
+
};
|
|
220
|
+
|
|
221
|
+
function createBaseQueryAnnualProvisionsRequest(): QueryAnnualProvisionsRequest {
|
|
222
|
+
return {};
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
export const QueryAnnualProvisionsRequest = {
|
|
226
|
+
encode(_: QueryAnnualProvisionsRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
227
|
+
return writer;
|
|
228
|
+
},
|
|
229
|
+
|
|
230
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryAnnualProvisionsRequest {
|
|
231
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
232
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
233
|
+
const message = createBaseQueryAnnualProvisionsRequest();
|
|
234
|
+
while (reader.pos < end) {
|
|
235
|
+
const tag = reader.uint32();
|
|
236
|
+
switch (tag >>> 3) {
|
|
237
|
+
default:
|
|
238
|
+
reader.skipType(tag & 7);
|
|
239
|
+
break;
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
return message;
|
|
243
|
+
},
|
|
244
|
+
|
|
245
|
+
fromJSON(_: any): QueryAnnualProvisionsRequest {
|
|
246
|
+
return {};
|
|
247
|
+
},
|
|
248
|
+
|
|
249
|
+
toJSON(_: QueryAnnualProvisionsRequest): unknown {
|
|
250
|
+
const obj: any = {};
|
|
251
|
+
return obj;
|
|
252
|
+
},
|
|
253
|
+
|
|
254
|
+
fromPartial<I extends Exact<DeepPartial<QueryAnnualProvisionsRequest>, I>>(_: I): QueryAnnualProvisionsRequest {
|
|
255
|
+
const message = createBaseQueryAnnualProvisionsRequest();
|
|
256
|
+
return message;
|
|
257
|
+
},
|
|
258
|
+
};
|
|
259
|
+
|
|
260
|
+
function createBaseQueryAnnualProvisionsResponse(): QueryAnnualProvisionsResponse {
|
|
261
|
+
return { annualProvisions: new Uint8Array() };
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
export const QueryAnnualProvisionsResponse = {
|
|
265
|
+
encode(message: QueryAnnualProvisionsResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
266
|
+
if (message.annualProvisions.length !== 0) {
|
|
267
|
+
writer.uint32(10).bytes(message.annualProvisions);
|
|
268
|
+
}
|
|
269
|
+
return writer;
|
|
270
|
+
},
|
|
271
|
+
|
|
272
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryAnnualProvisionsResponse {
|
|
273
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
274
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
275
|
+
const message = createBaseQueryAnnualProvisionsResponse();
|
|
276
|
+
while (reader.pos < end) {
|
|
277
|
+
const tag = reader.uint32();
|
|
278
|
+
switch (tag >>> 3) {
|
|
279
|
+
case 1:
|
|
280
|
+
message.annualProvisions = reader.bytes();
|
|
281
|
+
break;
|
|
282
|
+
default:
|
|
283
|
+
reader.skipType(tag & 7);
|
|
284
|
+
break;
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
return message;
|
|
288
|
+
},
|
|
289
|
+
|
|
290
|
+
fromJSON(object: any): QueryAnnualProvisionsResponse {
|
|
291
|
+
return {
|
|
292
|
+
annualProvisions: isSet(object.annualProvisions) ? bytesFromBase64(object.annualProvisions) : new Uint8Array(),
|
|
293
|
+
};
|
|
294
|
+
},
|
|
295
|
+
|
|
296
|
+
toJSON(message: QueryAnnualProvisionsResponse): unknown {
|
|
297
|
+
const obj: any = {};
|
|
298
|
+
message.annualProvisions !== undefined
|
|
299
|
+
&& (obj.annualProvisions = base64FromBytes(
|
|
300
|
+
message.annualProvisions !== undefined ? message.annualProvisions : new Uint8Array(),
|
|
301
|
+
));
|
|
302
|
+
return obj;
|
|
303
|
+
},
|
|
304
|
+
|
|
305
|
+
fromPartial<I extends Exact<DeepPartial<QueryAnnualProvisionsResponse>, I>>(
|
|
306
|
+
object: I,
|
|
307
|
+
): QueryAnnualProvisionsResponse {
|
|
308
|
+
const message = createBaseQueryAnnualProvisionsResponse();
|
|
309
|
+
message.annualProvisions = object.annualProvisions ?? new Uint8Array();
|
|
310
|
+
return message;
|
|
311
|
+
},
|
|
312
|
+
};
|
|
313
|
+
|
|
314
|
+
/** Query provides defines the gRPC querier service. */
|
|
315
|
+
export interface Query {
|
|
316
|
+
/** Params returns the total set of minting parameters. */
|
|
317
|
+
Params(request: QueryParamsRequest): Promise<QueryParamsResponse>;
|
|
318
|
+
/** Inflation returns the current minting inflation value. */
|
|
319
|
+
Inflation(request: QueryInflationRequest): Promise<QueryInflationResponse>;
|
|
320
|
+
/** AnnualProvisions current minting annual provisions value. */
|
|
321
|
+
AnnualProvisions(request: QueryAnnualProvisionsRequest): Promise<QueryAnnualProvisionsResponse>;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
export class QueryClientImpl implements Query {
|
|
325
|
+
private readonly rpc: Rpc;
|
|
326
|
+
constructor(rpc: Rpc) {
|
|
327
|
+
this.rpc = rpc;
|
|
328
|
+
this.Params = this.Params.bind(this);
|
|
329
|
+
this.Inflation = this.Inflation.bind(this);
|
|
330
|
+
this.AnnualProvisions = this.AnnualProvisions.bind(this);
|
|
331
|
+
}
|
|
332
|
+
Params(request: QueryParamsRequest): Promise<QueryParamsResponse> {
|
|
333
|
+
const data = QueryParamsRequest.encode(request).finish();
|
|
334
|
+
const promise = this.rpc.request("cosmos.mint.v1beta1.Query", "Params", data);
|
|
335
|
+
return promise.then((data) => QueryParamsResponse.decode(new _m0.Reader(data)));
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
Inflation(request: QueryInflationRequest): Promise<QueryInflationResponse> {
|
|
339
|
+
const data = QueryInflationRequest.encode(request).finish();
|
|
340
|
+
const promise = this.rpc.request("cosmos.mint.v1beta1.Query", "Inflation", data);
|
|
341
|
+
return promise.then((data) => QueryInflationResponse.decode(new _m0.Reader(data)));
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
AnnualProvisions(request: QueryAnnualProvisionsRequest): Promise<QueryAnnualProvisionsResponse> {
|
|
345
|
+
const data = QueryAnnualProvisionsRequest.encode(request).finish();
|
|
346
|
+
const promise = this.rpc.request("cosmos.mint.v1beta1.Query", "AnnualProvisions", data);
|
|
347
|
+
return promise.then((data) => QueryAnnualProvisionsResponse.decode(new _m0.Reader(data)));
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
interface Rpc {
|
|
352
|
+
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
declare var self: any | undefined;
|
|
356
|
+
declare var window: any | undefined;
|
|
357
|
+
declare var global: any | undefined;
|
|
358
|
+
var globalThis: any = (() => {
|
|
359
|
+
if (typeof globalThis !== "undefined") {
|
|
360
|
+
return globalThis;
|
|
361
|
+
}
|
|
362
|
+
if (typeof self !== "undefined") {
|
|
363
|
+
return self;
|
|
364
|
+
}
|
|
365
|
+
if (typeof window !== "undefined") {
|
|
366
|
+
return window;
|
|
367
|
+
}
|
|
368
|
+
if (typeof global !== "undefined") {
|
|
369
|
+
return global;
|
|
370
|
+
}
|
|
371
|
+
throw "Unable to locate global object";
|
|
372
|
+
})();
|
|
373
|
+
|
|
374
|
+
function bytesFromBase64(b64: string): Uint8Array {
|
|
375
|
+
if (globalThis.Buffer) {
|
|
376
|
+
return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
|
|
377
|
+
} else {
|
|
378
|
+
const bin = globalThis.atob(b64);
|
|
379
|
+
const arr = new Uint8Array(bin.length);
|
|
380
|
+
for (let i = 0; i < bin.length; ++i) {
|
|
381
|
+
arr[i] = bin.charCodeAt(i);
|
|
382
|
+
}
|
|
383
|
+
return arr;
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
function base64FromBytes(arr: Uint8Array): string {
|
|
388
|
+
if (globalThis.Buffer) {
|
|
389
|
+
return globalThis.Buffer.from(arr).toString("base64");
|
|
390
|
+
} else {
|
|
391
|
+
const bin: string[] = [];
|
|
392
|
+
arr.forEach((byte) => {
|
|
393
|
+
bin.push(String.fromCharCode(byte));
|
|
394
|
+
});
|
|
395
|
+
return globalThis.btoa(bin.join(""));
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
400
|
+
|
|
401
|
+
export type DeepPartial<T> = T extends Builtin ? T
|
|
402
|
+
: T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
403
|
+
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
404
|
+
: Partial<T>;
|
|
405
|
+
|
|
406
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
407
|
+
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
408
|
+
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
|
409
|
+
|
|
410
|
+
function isSet(value: any): boolean {
|
|
411
|
+
return value !== null && value !== undefined;
|
|
412
|
+
}
|
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import _m0 from "protobufjs/minimal";
|
|
3
|
+
|
|
4
|
+
export const protobufPackage = "cosmos_proto";
|
|
5
|
+
|
|
6
|
+
export enum ScalarType {
|
|
7
|
+
SCALAR_TYPE_UNSPECIFIED = 0,
|
|
8
|
+
SCALAR_TYPE_STRING = 1,
|
|
9
|
+
SCALAR_TYPE_BYTES = 2,
|
|
10
|
+
UNRECOGNIZED = -1,
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export function scalarTypeFromJSON(object: any): ScalarType {
|
|
14
|
+
switch (object) {
|
|
15
|
+
case 0:
|
|
16
|
+
case "SCALAR_TYPE_UNSPECIFIED":
|
|
17
|
+
return ScalarType.SCALAR_TYPE_UNSPECIFIED;
|
|
18
|
+
case 1:
|
|
19
|
+
case "SCALAR_TYPE_STRING":
|
|
20
|
+
return ScalarType.SCALAR_TYPE_STRING;
|
|
21
|
+
case 2:
|
|
22
|
+
case "SCALAR_TYPE_BYTES":
|
|
23
|
+
return ScalarType.SCALAR_TYPE_BYTES;
|
|
24
|
+
case -1:
|
|
25
|
+
case "UNRECOGNIZED":
|
|
26
|
+
default:
|
|
27
|
+
return ScalarType.UNRECOGNIZED;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export function scalarTypeToJSON(object: ScalarType): string {
|
|
32
|
+
switch (object) {
|
|
33
|
+
case ScalarType.SCALAR_TYPE_UNSPECIFIED:
|
|
34
|
+
return "SCALAR_TYPE_UNSPECIFIED";
|
|
35
|
+
case ScalarType.SCALAR_TYPE_STRING:
|
|
36
|
+
return "SCALAR_TYPE_STRING";
|
|
37
|
+
case ScalarType.SCALAR_TYPE_BYTES:
|
|
38
|
+
return "SCALAR_TYPE_BYTES";
|
|
39
|
+
case ScalarType.UNRECOGNIZED:
|
|
40
|
+
default:
|
|
41
|
+
return "UNRECOGNIZED";
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* InterfaceDescriptor describes an interface type to be used with
|
|
47
|
+
* accepts_interface and implements_interface and declared by declare_interface.
|
|
48
|
+
*/
|
|
49
|
+
export interface InterfaceDescriptor {
|
|
50
|
+
/**
|
|
51
|
+
* name is the name of the interface. It should be a short-name (without
|
|
52
|
+
* a period) such that the fully qualified name of the interface will be
|
|
53
|
+
* package.name, ex. for the package a.b and interface named C, the
|
|
54
|
+
* fully-qualified name will be a.b.C.
|
|
55
|
+
*/
|
|
56
|
+
name: string;
|
|
57
|
+
/**
|
|
58
|
+
* description is a human-readable description of the interface and its
|
|
59
|
+
* purpose.
|
|
60
|
+
*/
|
|
61
|
+
description: string;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* ScalarDescriptor describes an scalar type to be used with
|
|
66
|
+
* the scalar field option and declared by declare_scalar.
|
|
67
|
+
* Scalars extend simple protobuf built-in types with additional
|
|
68
|
+
* syntax and semantics, for instance to represent big integers.
|
|
69
|
+
* Scalars should ideally define an encoding such that there is only one
|
|
70
|
+
* valid syntactical representation for a given semantic meaning,
|
|
71
|
+
* i.e. the encoding should be deterministic.
|
|
72
|
+
*/
|
|
73
|
+
export interface ScalarDescriptor {
|
|
74
|
+
/**
|
|
75
|
+
* name is the name of the scalar. It should be a short-name (without
|
|
76
|
+
* a period) such that the fully qualified name of the scalar will be
|
|
77
|
+
* package.name, ex. for the package a.b and scalar named C, the
|
|
78
|
+
* fully-qualified name will be a.b.C.
|
|
79
|
+
*/
|
|
80
|
+
name: string;
|
|
81
|
+
/**
|
|
82
|
+
* description is a human-readable description of the scalar and its
|
|
83
|
+
* encoding format. For instance a big integer or decimal scalar should
|
|
84
|
+
* specify precisely the expected encoding format.
|
|
85
|
+
*/
|
|
86
|
+
description: string;
|
|
87
|
+
/**
|
|
88
|
+
* field_type is the type of field with which this scalar can be used.
|
|
89
|
+
* Scalars can be used with one and only one type of field so that
|
|
90
|
+
* encoding standards and simple and clear. Currently only string and
|
|
91
|
+
* bytes fields are supported for scalars.
|
|
92
|
+
*/
|
|
93
|
+
fieldType: ScalarType[];
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
function createBaseInterfaceDescriptor(): InterfaceDescriptor {
|
|
97
|
+
return { name: "", description: "" };
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export const InterfaceDescriptor = {
|
|
101
|
+
encode(message: InterfaceDescriptor, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
102
|
+
if (message.name !== "") {
|
|
103
|
+
writer.uint32(10).string(message.name);
|
|
104
|
+
}
|
|
105
|
+
if (message.description !== "") {
|
|
106
|
+
writer.uint32(18).string(message.description);
|
|
107
|
+
}
|
|
108
|
+
return writer;
|
|
109
|
+
},
|
|
110
|
+
|
|
111
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): InterfaceDescriptor {
|
|
112
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
113
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
114
|
+
const message = createBaseInterfaceDescriptor();
|
|
115
|
+
while (reader.pos < end) {
|
|
116
|
+
const tag = reader.uint32();
|
|
117
|
+
switch (tag >>> 3) {
|
|
118
|
+
case 1:
|
|
119
|
+
message.name = reader.string();
|
|
120
|
+
break;
|
|
121
|
+
case 2:
|
|
122
|
+
message.description = reader.string();
|
|
123
|
+
break;
|
|
124
|
+
default:
|
|
125
|
+
reader.skipType(tag & 7);
|
|
126
|
+
break;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
return message;
|
|
130
|
+
},
|
|
131
|
+
|
|
132
|
+
fromJSON(object: any): InterfaceDescriptor {
|
|
133
|
+
return {
|
|
134
|
+
name: isSet(object.name) ? String(object.name) : "",
|
|
135
|
+
description: isSet(object.description) ? String(object.description) : "",
|
|
136
|
+
};
|
|
137
|
+
},
|
|
138
|
+
|
|
139
|
+
toJSON(message: InterfaceDescriptor): unknown {
|
|
140
|
+
const obj: any = {};
|
|
141
|
+
message.name !== undefined && (obj.name = message.name);
|
|
142
|
+
message.description !== undefined && (obj.description = message.description);
|
|
143
|
+
return obj;
|
|
144
|
+
},
|
|
145
|
+
|
|
146
|
+
fromPartial<I extends Exact<DeepPartial<InterfaceDescriptor>, I>>(object: I): InterfaceDescriptor {
|
|
147
|
+
const message = createBaseInterfaceDescriptor();
|
|
148
|
+
message.name = object.name ?? "";
|
|
149
|
+
message.description = object.description ?? "";
|
|
150
|
+
return message;
|
|
151
|
+
},
|
|
152
|
+
};
|
|
153
|
+
|
|
154
|
+
function createBaseScalarDescriptor(): ScalarDescriptor {
|
|
155
|
+
return { name: "", description: "", fieldType: [] };
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
export const ScalarDescriptor = {
|
|
159
|
+
encode(message: ScalarDescriptor, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
160
|
+
if (message.name !== "") {
|
|
161
|
+
writer.uint32(10).string(message.name);
|
|
162
|
+
}
|
|
163
|
+
if (message.description !== "") {
|
|
164
|
+
writer.uint32(18).string(message.description);
|
|
165
|
+
}
|
|
166
|
+
writer.uint32(26).fork();
|
|
167
|
+
for (const v of message.fieldType) {
|
|
168
|
+
writer.int32(v);
|
|
169
|
+
}
|
|
170
|
+
writer.ldelim();
|
|
171
|
+
return writer;
|
|
172
|
+
},
|
|
173
|
+
|
|
174
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ScalarDescriptor {
|
|
175
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
176
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
177
|
+
const message = createBaseScalarDescriptor();
|
|
178
|
+
while (reader.pos < end) {
|
|
179
|
+
const tag = reader.uint32();
|
|
180
|
+
switch (tag >>> 3) {
|
|
181
|
+
case 1:
|
|
182
|
+
message.name = reader.string();
|
|
183
|
+
break;
|
|
184
|
+
case 2:
|
|
185
|
+
message.description = reader.string();
|
|
186
|
+
break;
|
|
187
|
+
case 3:
|
|
188
|
+
if ((tag & 7) === 2) {
|
|
189
|
+
const end2 = reader.uint32() + reader.pos;
|
|
190
|
+
while (reader.pos < end2) {
|
|
191
|
+
message.fieldType.push(reader.int32() as any);
|
|
192
|
+
}
|
|
193
|
+
} else {
|
|
194
|
+
message.fieldType.push(reader.int32() as any);
|
|
195
|
+
}
|
|
196
|
+
break;
|
|
197
|
+
default:
|
|
198
|
+
reader.skipType(tag & 7);
|
|
199
|
+
break;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
return message;
|
|
203
|
+
},
|
|
204
|
+
|
|
205
|
+
fromJSON(object: any): ScalarDescriptor {
|
|
206
|
+
return {
|
|
207
|
+
name: isSet(object.name) ? String(object.name) : "",
|
|
208
|
+
description: isSet(object.description) ? String(object.description) : "",
|
|
209
|
+
fieldType: Array.isArray(object?.fieldType) ? object.fieldType.map((e: any) => scalarTypeFromJSON(e)) : [],
|
|
210
|
+
};
|
|
211
|
+
},
|
|
212
|
+
|
|
213
|
+
toJSON(message: ScalarDescriptor): unknown {
|
|
214
|
+
const obj: any = {};
|
|
215
|
+
message.name !== undefined && (obj.name = message.name);
|
|
216
|
+
message.description !== undefined && (obj.description = message.description);
|
|
217
|
+
if (message.fieldType) {
|
|
218
|
+
obj.fieldType = message.fieldType.map((e) => scalarTypeToJSON(e));
|
|
219
|
+
} else {
|
|
220
|
+
obj.fieldType = [];
|
|
221
|
+
}
|
|
222
|
+
return obj;
|
|
223
|
+
},
|
|
224
|
+
|
|
225
|
+
fromPartial<I extends Exact<DeepPartial<ScalarDescriptor>, I>>(object: I): ScalarDescriptor {
|
|
226
|
+
const message = createBaseScalarDescriptor();
|
|
227
|
+
message.name = object.name ?? "";
|
|
228
|
+
message.description = object.description ?? "";
|
|
229
|
+
message.fieldType = object.fieldType?.map((e) => e) || [];
|
|
230
|
+
return message;
|
|
231
|
+
},
|
|
232
|
+
};
|
|
233
|
+
|
|
234
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
235
|
+
|
|
236
|
+
export type DeepPartial<T> = T extends Builtin ? T
|
|
237
|
+
: T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
238
|
+
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
239
|
+
: Partial<T>;
|
|
240
|
+
|
|
241
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
242
|
+
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
243
|
+
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
|
244
|
+
|
|
245
|
+
function isSet(value: any): boolean {
|
|
246
|
+
return value !== null && value !== undefined;
|
|
247
|
+
}
|