@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,429 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import Long from "long";
|
|
3
|
+
import _m0 from "protobufjs/minimal";
|
|
4
|
+
import { Any } from "../../../google/protobuf/any";
|
|
5
|
+
import { Timestamp } from "../../../google/protobuf/timestamp";
|
|
6
|
+
|
|
7
|
+
export const protobufPackage = "cosmos.upgrade.v1beta1";
|
|
8
|
+
|
|
9
|
+
/** Plan specifies information about a planned upgrade and when it should occur. */
|
|
10
|
+
export interface Plan {
|
|
11
|
+
/**
|
|
12
|
+
* Sets the name for the upgrade. This name will be used by the upgraded
|
|
13
|
+
* version of the software to apply any special "on-upgrade" commands during
|
|
14
|
+
* the first BeginBlock method after the upgrade is applied. It is also used
|
|
15
|
+
* to detect whether a software version can handle a given upgrade. If no
|
|
16
|
+
* upgrade handler with this name has been set in the software, it will be
|
|
17
|
+
* assumed that the software is out-of-date when the upgrade Time or Height is
|
|
18
|
+
* reached and the software will exit.
|
|
19
|
+
*/
|
|
20
|
+
name: string;
|
|
21
|
+
/**
|
|
22
|
+
* Deprecated: Time based upgrades have been deprecated. Time based upgrade logic
|
|
23
|
+
* has been removed from the SDK.
|
|
24
|
+
* If this field is not empty, an error will be thrown.
|
|
25
|
+
*
|
|
26
|
+
* @deprecated
|
|
27
|
+
*/
|
|
28
|
+
time:
|
|
29
|
+
| Date
|
|
30
|
+
| undefined;
|
|
31
|
+
/**
|
|
32
|
+
* The height at which the upgrade must be performed.
|
|
33
|
+
* Only used if Time is not set.
|
|
34
|
+
*/
|
|
35
|
+
height: number;
|
|
36
|
+
/**
|
|
37
|
+
* Any application specific upgrade info to be included on-chain
|
|
38
|
+
* such as a git commit that validators could automatically upgrade to
|
|
39
|
+
*/
|
|
40
|
+
info: string;
|
|
41
|
+
/**
|
|
42
|
+
* Deprecated: UpgradedClientState field has been deprecated. IBC upgrade logic has been
|
|
43
|
+
* moved to the IBC module in the sub module 02-client.
|
|
44
|
+
* If this field is not empty, an error will be thrown.
|
|
45
|
+
*
|
|
46
|
+
* @deprecated
|
|
47
|
+
*/
|
|
48
|
+
upgradedClientState: Any | undefined;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* SoftwareUpgradeProposal is a gov Content type for initiating a software
|
|
53
|
+
* upgrade.
|
|
54
|
+
* Deprecated: This legacy proposal is deprecated in favor of Msg-based gov
|
|
55
|
+
* proposals, see MsgSoftwareUpgrade.
|
|
56
|
+
*
|
|
57
|
+
* @deprecated
|
|
58
|
+
*/
|
|
59
|
+
export interface SoftwareUpgradeProposal {
|
|
60
|
+
title: string;
|
|
61
|
+
description: string;
|
|
62
|
+
plan: Plan | undefined;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* CancelSoftwareUpgradeProposal is a gov Content type for cancelling a software
|
|
67
|
+
* upgrade.
|
|
68
|
+
* Deprecated: This legacy proposal is deprecated in favor of Msg-based gov
|
|
69
|
+
* proposals, see MsgCancelUpgrade.
|
|
70
|
+
*
|
|
71
|
+
* @deprecated
|
|
72
|
+
*/
|
|
73
|
+
export interface CancelSoftwareUpgradeProposal {
|
|
74
|
+
title: string;
|
|
75
|
+
description: string;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* ModuleVersion specifies a module and its consensus version.
|
|
80
|
+
*
|
|
81
|
+
* Since: cosmos-sdk 0.43
|
|
82
|
+
*/
|
|
83
|
+
export interface ModuleVersion {
|
|
84
|
+
/** name of the app module */
|
|
85
|
+
name: string;
|
|
86
|
+
/** consensus version of the app module */
|
|
87
|
+
version: number;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
function createBasePlan(): Plan {
|
|
91
|
+
return { name: "", time: undefined, height: 0, info: "", upgradedClientState: undefined };
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export const Plan = {
|
|
95
|
+
encode(message: Plan, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
96
|
+
if (message.name !== "") {
|
|
97
|
+
writer.uint32(10).string(message.name);
|
|
98
|
+
}
|
|
99
|
+
if (message.time !== undefined) {
|
|
100
|
+
Timestamp.encode(toTimestamp(message.time), writer.uint32(18).fork()).ldelim();
|
|
101
|
+
}
|
|
102
|
+
if (message.height !== 0) {
|
|
103
|
+
writer.uint32(24).int64(message.height);
|
|
104
|
+
}
|
|
105
|
+
if (message.info !== "") {
|
|
106
|
+
writer.uint32(34).string(message.info);
|
|
107
|
+
}
|
|
108
|
+
if (message.upgradedClientState !== undefined) {
|
|
109
|
+
Any.encode(message.upgradedClientState, writer.uint32(42).fork()).ldelim();
|
|
110
|
+
}
|
|
111
|
+
return writer;
|
|
112
|
+
},
|
|
113
|
+
|
|
114
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Plan {
|
|
115
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
116
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
117
|
+
const message = createBasePlan();
|
|
118
|
+
while (reader.pos < end) {
|
|
119
|
+
const tag = reader.uint32();
|
|
120
|
+
switch (tag >>> 3) {
|
|
121
|
+
case 1:
|
|
122
|
+
message.name = reader.string();
|
|
123
|
+
break;
|
|
124
|
+
case 2:
|
|
125
|
+
message.time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
126
|
+
break;
|
|
127
|
+
case 3:
|
|
128
|
+
message.height = longToNumber(reader.int64() as Long);
|
|
129
|
+
break;
|
|
130
|
+
case 4:
|
|
131
|
+
message.info = reader.string();
|
|
132
|
+
break;
|
|
133
|
+
case 5:
|
|
134
|
+
message.upgradedClientState = Any.decode(reader, reader.uint32());
|
|
135
|
+
break;
|
|
136
|
+
default:
|
|
137
|
+
reader.skipType(tag & 7);
|
|
138
|
+
break;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
return message;
|
|
142
|
+
},
|
|
143
|
+
|
|
144
|
+
fromJSON(object: any): Plan {
|
|
145
|
+
return {
|
|
146
|
+
name: isSet(object.name) ? String(object.name) : "",
|
|
147
|
+
time: isSet(object.time) ? fromJsonTimestamp(object.time) : undefined,
|
|
148
|
+
height: isSet(object.height) ? Number(object.height) : 0,
|
|
149
|
+
info: isSet(object.info) ? String(object.info) : "",
|
|
150
|
+
upgradedClientState: isSet(object.upgradedClientState) ? Any.fromJSON(object.upgradedClientState) : undefined,
|
|
151
|
+
};
|
|
152
|
+
},
|
|
153
|
+
|
|
154
|
+
toJSON(message: Plan): unknown {
|
|
155
|
+
const obj: any = {};
|
|
156
|
+
message.name !== undefined && (obj.name = message.name);
|
|
157
|
+
message.time !== undefined && (obj.time = message.time.toISOString());
|
|
158
|
+
message.height !== undefined && (obj.height = Math.round(message.height));
|
|
159
|
+
message.info !== undefined && (obj.info = message.info);
|
|
160
|
+
message.upgradedClientState !== undefined
|
|
161
|
+
&& (obj.upgradedClientState = message.upgradedClientState ? Any.toJSON(message.upgradedClientState) : undefined);
|
|
162
|
+
return obj;
|
|
163
|
+
},
|
|
164
|
+
|
|
165
|
+
fromPartial<I extends Exact<DeepPartial<Plan>, I>>(object: I): Plan {
|
|
166
|
+
const message = createBasePlan();
|
|
167
|
+
message.name = object.name ?? "";
|
|
168
|
+
message.time = object.time ?? undefined;
|
|
169
|
+
message.height = object.height ?? 0;
|
|
170
|
+
message.info = object.info ?? "";
|
|
171
|
+
message.upgradedClientState = (object.upgradedClientState !== undefined && object.upgradedClientState !== null)
|
|
172
|
+
? Any.fromPartial(object.upgradedClientState)
|
|
173
|
+
: undefined;
|
|
174
|
+
return message;
|
|
175
|
+
},
|
|
176
|
+
};
|
|
177
|
+
|
|
178
|
+
function createBaseSoftwareUpgradeProposal(): SoftwareUpgradeProposal {
|
|
179
|
+
return { title: "", description: "", plan: undefined };
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
export const SoftwareUpgradeProposal = {
|
|
183
|
+
encode(message: SoftwareUpgradeProposal, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
184
|
+
if (message.title !== "") {
|
|
185
|
+
writer.uint32(10).string(message.title);
|
|
186
|
+
}
|
|
187
|
+
if (message.description !== "") {
|
|
188
|
+
writer.uint32(18).string(message.description);
|
|
189
|
+
}
|
|
190
|
+
if (message.plan !== undefined) {
|
|
191
|
+
Plan.encode(message.plan, writer.uint32(26).fork()).ldelim();
|
|
192
|
+
}
|
|
193
|
+
return writer;
|
|
194
|
+
},
|
|
195
|
+
|
|
196
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): SoftwareUpgradeProposal {
|
|
197
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
198
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
199
|
+
const message = createBaseSoftwareUpgradeProposal();
|
|
200
|
+
while (reader.pos < end) {
|
|
201
|
+
const tag = reader.uint32();
|
|
202
|
+
switch (tag >>> 3) {
|
|
203
|
+
case 1:
|
|
204
|
+
message.title = reader.string();
|
|
205
|
+
break;
|
|
206
|
+
case 2:
|
|
207
|
+
message.description = reader.string();
|
|
208
|
+
break;
|
|
209
|
+
case 3:
|
|
210
|
+
message.plan = Plan.decode(reader, reader.uint32());
|
|
211
|
+
break;
|
|
212
|
+
default:
|
|
213
|
+
reader.skipType(tag & 7);
|
|
214
|
+
break;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
return message;
|
|
218
|
+
},
|
|
219
|
+
|
|
220
|
+
fromJSON(object: any): SoftwareUpgradeProposal {
|
|
221
|
+
return {
|
|
222
|
+
title: isSet(object.title) ? String(object.title) : "",
|
|
223
|
+
description: isSet(object.description) ? String(object.description) : "",
|
|
224
|
+
plan: isSet(object.plan) ? Plan.fromJSON(object.plan) : undefined,
|
|
225
|
+
};
|
|
226
|
+
},
|
|
227
|
+
|
|
228
|
+
toJSON(message: SoftwareUpgradeProposal): unknown {
|
|
229
|
+
const obj: any = {};
|
|
230
|
+
message.title !== undefined && (obj.title = message.title);
|
|
231
|
+
message.description !== undefined && (obj.description = message.description);
|
|
232
|
+
message.plan !== undefined && (obj.plan = message.plan ? Plan.toJSON(message.plan) : undefined);
|
|
233
|
+
return obj;
|
|
234
|
+
},
|
|
235
|
+
|
|
236
|
+
fromPartial<I extends Exact<DeepPartial<SoftwareUpgradeProposal>, I>>(object: I): SoftwareUpgradeProposal {
|
|
237
|
+
const message = createBaseSoftwareUpgradeProposal();
|
|
238
|
+
message.title = object.title ?? "";
|
|
239
|
+
message.description = object.description ?? "";
|
|
240
|
+
message.plan = (object.plan !== undefined && object.plan !== null) ? Plan.fromPartial(object.plan) : undefined;
|
|
241
|
+
return message;
|
|
242
|
+
},
|
|
243
|
+
};
|
|
244
|
+
|
|
245
|
+
function createBaseCancelSoftwareUpgradeProposal(): CancelSoftwareUpgradeProposal {
|
|
246
|
+
return { title: "", description: "" };
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
export const CancelSoftwareUpgradeProposal = {
|
|
250
|
+
encode(message: CancelSoftwareUpgradeProposal, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
251
|
+
if (message.title !== "") {
|
|
252
|
+
writer.uint32(10).string(message.title);
|
|
253
|
+
}
|
|
254
|
+
if (message.description !== "") {
|
|
255
|
+
writer.uint32(18).string(message.description);
|
|
256
|
+
}
|
|
257
|
+
return writer;
|
|
258
|
+
},
|
|
259
|
+
|
|
260
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): CancelSoftwareUpgradeProposal {
|
|
261
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
262
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
263
|
+
const message = createBaseCancelSoftwareUpgradeProposal();
|
|
264
|
+
while (reader.pos < end) {
|
|
265
|
+
const tag = reader.uint32();
|
|
266
|
+
switch (tag >>> 3) {
|
|
267
|
+
case 1:
|
|
268
|
+
message.title = reader.string();
|
|
269
|
+
break;
|
|
270
|
+
case 2:
|
|
271
|
+
message.description = reader.string();
|
|
272
|
+
break;
|
|
273
|
+
default:
|
|
274
|
+
reader.skipType(tag & 7);
|
|
275
|
+
break;
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
return message;
|
|
279
|
+
},
|
|
280
|
+
|
|
281
|
+
fromJSON(object: any): CancelSoftwareUpgradeProposal {
|
|
282
|
+
return {
|
|
283
|
+
title: isSet(object.title) ? String(object.title) : "",
|
|
284
|
+
description: isSet(object.description) ? String(object.description) : "",
|
|
285
|
+
};
|
|
286
|
+
},
|
|
287
|
+
|
|
288
|
+
toJSON(message: CancelSoftwareUpgradeProposal): unknown {
|
|
289
|
+
const obj: any = {};
|
|
290
|
+
message.title !== undefined && (obj.title = message.title);
|
|
291
|
+
message.description !== undefined && (obj.description = message.description);
|
|
292
|
+
return obj;
|
|
293
|
+
},
|
|
294
|
+
|
|
295
|
+
fromPartial<I extends Exact<DeepPartial<CancelSoftwareUpgradeProposal>, I>>(
|
|
296
|
+
object: I,
|
|
297
|
+
): CancelSoftwareUpgradeProposal {
|
|
298
|
+
const message = createBaseCancelSoftwareUpgradeProposal();
|
|
299
|
+
message.title = object.title ?? "";
|
|
300
|
+
message.description = object.description ?? "";
|
|
301
|
+
return message;
|
|
302
|
+
},
|
|
303
|
+
};
|
|
304
|
+
|
|
305
|
+
function createBaseModuleVersion(): ModuleVersion {
|
|
306
|
+
return { name: "", version: 0 };
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
export const ModuleVersion = {
|
|
310
|
+
encode(message: ModuleVersion, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
311
|
+
if (message.name !== "") {
|
|
312
|
+
writer.uint32(10).string(message.name);
|
|
313
|
+
}
|
|
314
|
+
if (message.version !== 0) {
|
|
315
|
+
writer.uint32(16).uint64(message.version);
|
|
316
|
+
}
|
|
317
|
+
return writer;
|
|
318
|
+
},
|
|
319
|
+
|
|
320
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ModuleVersion {
|
|
321
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
322
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
323
|
+
const message = createBaseModuleVersion();
|
|
324
|
+
while (reader.pos < end) {
|
|
325
|
+
const tag = reader.uint32();
|
|
326
|
+
switch (tag >>> 3) {
|
|
327
|
+
case 1:
|
|
328
|
+
message.name = reader.string();
|
|
329
|
+
break;
|
|
330
|
+
case 2:
|
|
331
|
+
message.version = longToNumber(reader.uint64() as Long);
|
|
332
|
+
break;
|
|
333
|
+
default:
|
|
334
|
+
reader.skipType(tag & 7);
|
|
335
|
+
break;
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
return message;
|
|
339
|
+
},
|
|
340
|
+
|
|
341
|
+
fromJSON(object: any): ModuleVersion {
|
|
342
|
+
return {
|
|
343
|
+
name: isSet(object.name) ? String(object.name) : "",
|
|
344
|
+
version: isSet(object.version) ? Number(object.version) : 0,
|
|
345
|
+
};
|
|
346
|
+
},
|
|
347
|
+
|
|
348
|
+
toJSON(message: ModuleVersion): unknown {
|
|
349
|
+
const obj: any = {};
|
|
350
|
+
message.name !== undefined && (obj.name = message.name);
|
|
351
|
+
message.version !== undefined && (obj.version = Math.round(message.version));
|
|
352
|
+
return obj;
|
|
353
|
+
},
|
|
354
|
+
|
|
355
|
+
fromPartial<I extends Exact<DeepPartial<ModuleVersion>, I>>(object: I): ModuleVersion {
|
|
356
|
+
const message = createBaseModuleVersion();
|
|
357
|
+
message.name = object.name ?? "";
|
|
358
|
+
message.version = object.version ?? 0;
|
|
359
|
+
return message;
|
|
360
|
+
},
|
|
361
|
+
};
|
|
362
|
+
|
|
363
|
+
declare var self: any | undefined;
|
|
364
|
+
declare var window: any | undefined;
|
|
365
|
+
declare var global: any | undefined;
|
|
366
|
+
var globalThis: any = (() => {
|
|
367
|
+
if (typeof globalThis !== "undefined") {
|
|
368
|
+
return globalThis;
|
|
369
|
+
}
|
|
370
|
+
if (typeof self !== "undefined") {
|
|
371
|
+
return self;
|
|
372
|
+
}
|
|
373
|
+
if (typeof window !== "undefined") {
|
|
374
|
+
return window;
|
|
375
|
+
}
|
|
376
|
+
if (typeof global !== "undefined") {
|
|
377
|
+
return global;
|
|
378
|
+
}
|
|
379
|
+
throw "Unable to locate global object";
|
|
380
|
+
})();
|
|
381
|
+
|
|
382
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
383
|
+
|
|
384
|
+
export type DeepPartial<T> = T extends Builtin ? T
|
|
385
|
+
: T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
386
|
+
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
387
|
+
: Partial<T>;
|
|
388
|
+
|
|
389
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
390
|
+
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
391
|
+
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
|
392
|
+
|
|
393
|
+
function toTimestamp(date: Date): Timestamp {
|
|
394
|
+
const seconds = date.getTime() / 1_000;
|
|
395
|
+
const nanos = (date.getTime() % 1_000) * 1_000_000;
|
|
396
|
+
return { seconds, nanos };
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
function fromTimestamp(t: Timestamp): Date {
|
|
400
|
+
let millis = t.seconds * 1_000;
|
|
401
|
+
millis += t.nanos / 1_000_000;
|
|
402
|
+
return new Date(millis);
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
function fromJsonTimestamp(o: any): Date {
|
|
406
|
+
if (o instanceof Date) {
|
|
407
|
+
return o;
|
|
408
|
+
} else if (typeof o === "string") {
|
|
409
|
+
return new Date(o);
|
|
410
|
+
} else {
|
|
411
|
+
return fromTimestamp(Timestamp.fromJSON(o));
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
function longToNumber(long: Long): number {
|
|
416
|
+
if (long.gt(Number.MAX_SAFE_INTEGER)) {
|
|
417
|
+
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
418
|
+
}
|
|
419
|
+
return long.toNumber();
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
if (_m0.util.Long !== Long) {
|
|
423
|
+
_m0.util.Long = Long as any;
|
|
424
|
+
_m0.configure();
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
function isSet(value: any): boolean {
|
|
428
|
+
return value !== null && value !== undefined;
|
|
429
|
+
}
|
|
@@ -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
|
+
}
|