@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,608 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import Long from "long";
|
|
3
|
+
import _m0 from "protobufjs/minimal";
|
|
4
|
+
import { Plan } from "../../../../cosmos/upgrade/v1beta1/upgrade";
|
|
5
|
+
import { Any } from "../../../../google/protobuf/any";
|
|
6
|
+
|
|
7
|
+
export const protobufPackage = "ibc.core.client.v1";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* IdentifiedClientState defines a client state with an additional client
|
|
11
|
+
* identifier field.
|
|
12
|
+
*/
|
|
13
|
+
export interface IdentifiedClientState {
|
|
14
|
+
/** client identifier */
|
|
15
|
+
clientId: string;
|
|
16
|
+
/** client state */
|
|
17
|
+
clientState: Any | undefined;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* ConsensusStateWithHeight defines a consensus state with an additional height
|
|
22
|
+
* field.
|
|
23
|
+
*/
|
|
24
|
+
export interface ConsensusStateWithHeight {
|
|
25
|
+
/** consensus state height */
|
|
26
|
+
height:
|
|
27
|
+
| Height
|
|
28
|
+
| undefined;
|
|
29
|
+
/** consensus state */
|
|
30
|
+
consensusState: Any | undefined;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* ClientConsensusStates defines all the stored consensus states for a given
|
|
35
|
+
* client.
|
|
36
|
+
*/
|
|
37
|
+
export interface ClientConsensusStates {
|
|
38
|
+
/** client identifier */
|
|
39
|
+
clientId: string;
|
|
40
|
+
/** consensus states and their heights associated with the client */
|
|
41
|
+
consensusStates: ConsensusStateWithHeight[];
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* ClientUpdateProposal is a governance proposal. If it passes, the substitute
|
|
46
|
+
* client's latest consensus state is copied over to the subject client. The proposal
|
|
47
|
+
* handler may fail if the subject and the substitute do not match in client and
|
|
48
|
+
* chain parameters (with exception to latest height, frozen height, and chain-id).
|
|
49
|
+
*/
|
|
50
|
+
export interface ClientUpdateProposal {
|
|
51
|
+
/** the title of the update proposal */
|
|
52
|
+
title: string;
|
|
53
|
+
/** the description of the proposal */
|
|
54
|
+
description: string;
|
|
55
|
+
/** the client identifier for the client to be updated if the proposal passes */
|
|
56
|
+
subjectClientId: string;
|
|
57
|
+
/**
|
|
58
|
+
* the substitute client identifier for the client standing in for the subject
|
|
59
|
+
* client
|
|
60
|
+
*/
|
|
61
|
+
substituteClientId: string;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* UpgradeProposal is a gov Content type for initiating an IBC breaking
|
|
66
|
+
* upgrade.
|
|
67
|
+
*/
|
|
68
|
+
export interface UpgradeProposal {
|
|
69
|
+
title: string;
|
|
70
|
+
description: string;
|
|
71
|
+
plan:
|
|
72
|
+
| Plan
|
|
73
|
+
| undefined;
|
|
74
|
+
/**
|
|
75
|
+
* An UpgradedClientState must be provided to perform an IBC breaking upgrade.
|
|
76
|
+
* This will make the chain commit to the correct upgraded (self) client state
|
|
77
|
+
* before the upgrade occurs, so that connecting chains can verify that the
|
|
78
|
+
* new upgraded client is valid by verifying a proof on the previous version
|
|
79
|
+
* of the chain. This will allow IBC connections to persist smoothly across
|
|
80
|
+
* planned chain upgrades
|
|
81
|
+
*/
|
|
82
|
+
upgradedClientState: Any | undefined;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Height is a monotonically increasing data type
|
|
87
|
+
* that can be compared against another Height for the purposes of updating and
|
|
88
|
+
* freezing clients
|
|
89
|
+
*
|
|
90
|
+
* Normally the RevisionHeight is incremented at each height while keeping
|
|
91
|
+
* RevisionNumber the same. However some consensus algorithms may choose to
|
|
92
|
+
* reset the height in certain conditions e.g. hard forks, state-machine
|
|
93
|
+
* breaking changes In these cases, the RevisionNumber is incremented so that
|
|
94
|
+
* height continues to be monitonically increasing even as the RevisionHeight
|
|
95
|
+
* gets reset
|
|
96
|
+
*/
|
|
97
|
+
export interface Height {
|
|
98
|
+
/** the revision that the client is currently on */
|
|
99
|
+
revisionNumber: number;
|
|
100
|
+
/** the height within the given revision */
|
|
101
|
+
revisionHeight: number;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/** Params defines the set of IBC light client parameters. */
|
|
105
|
+
export interface Params {
|
|
106
|
+
/** allowed_clients defines the list of allowed client state types. */
|
|
107
|
+
allowedClients: string[];
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
function createBaseIdentifiedClientState(): IdentifiedClientState {
|
|
111
|
+
return { clientId: "", clientState: undefined };
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export const IdentifiedClientState = {
|
|
115
|
+
encode(message: IdentifiedClientState, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
116
|
+
if (message.clientId !== "") {
|
|
117
|
+
writer.uint32(10).string(message.clientId);
|
|
118
|
+
}
|
|
119
|
+
if (message.clientState !== undefined) {
|
|
120
|
+
Any.encode(message.clientState, writer.uint32(18).fork()).ldelim();
|
|
121
|
+
}
|
|
122
|
+
return writer;
|
|
123
|
+
},
|
|
124
|
+
|
|
125
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): IdentifiedClientState {
|
|
126
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
127
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
128
|
+
const message = createBaseIdentifiedClientState();
|
|
129
|
+
while (reader.pos < end) {
|
|
130
|
+
const tag = reader.uint32();
|
|
131
|
+
switch (tag >>> 3) {
|
|
132
|
+
case 1:
|
|
133
|
+
message.clientId = reader.string();
|
|
134
|
+
break;
|
|
135
|
+
case 2:
|
|
136
|
+
message.clientState = Any.decode(reader, reader.uint32());
|
|
137
|
+
break;
|
|
138
|
+
default:
|
|
139
|
+
reader.skipType(tag & 7);
|
|
140
|
+
break;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
return message;
|
|
144
|
+
},
|
|
145
|
+
|
|
146
|
+
fromJSON(object: any): IdentifiedClientState {
|
|
147
|
+
return {
|
|
148
|
+
clientId: isSet(object.clientId) ? String(object.clientId) : "",
|
|
149
|
+
clientState: isSet(object.clientState) ? Any.fromJSON(object.clientState) : undefined,
|
|
150
|
+
};
|
|
151
|
+
},
|
|
152
|
+
|
|
153
|
+
toJSON(message: IdentifiedClientState): unknown {
|
|
154
|
+
const obj: any = {};
|
|
155
|
+
message.clientId !== undefined && (obj.clientId = message.clientId);
|
|
156
|
+
message.clientState !== undefined
|
|
157
|
+
&& (obj.clientState = message.clientState ? Any.toJSON(message.clientState) : undefined);
|
|
158
|
+
return obj;
|
|
159
|
+
},
|
|
160
|
+
|
|
161
|
+
fromPartial<I extends Exact<DeepPartial<IdentifiedClientState>, I>>(object: I): IdentifiedClientState {
|
|
162
|
+
const message = createBaseIdentifiedClientState();
|
|
163
|
+
message.clientId = object.clientId ?? "";
|
|
164
|
+
message.clientState = (object.clientState !== undefined && object.clientState !== null)
|
|
165
|
+
? Any.fromPartial(object.clientState)
|
|
166
|
+
: undefined;
|
|
167
|
+
return message;
|
|
168
|
+
},
|
|
169
|
+
};
|
|
170
|
+
|
|
171
|
+
function createBaseConsensusStateWithHeight(): ConsensusStateWithHeight {
|
|
172
|
+
return { height: undefined, consensusState: undefined };
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
export const ConsensusStateWithHeight = {
|
|
176
|
+
encode(message: ConsensusStateWithHeight, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
177
|
+
if (message.height !== undefined) {
|
|
178
|
+
Height.encode(message.height, writer.uint32(10).fork()).ldelim();
|
|
179
|
+
}
|
|
180
|
+
if (message.consensusState !== undefined) {
|
|
181
|
+
Any.encode(message.consensusState, writer.uint32(18).fork()).ldelim();
|
|
182
|
+
}
|
|
183
|
+
return writer;
|
|
184
|
+
},
|
|
185
|
+
|
|
186
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ConsensusStateWithHeight {
|
|
187
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
188
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
189
|
+
const message = createBaseConsensusStateWithHeight();
|
|
190
|
+
while (reader.pos < end) {
|
|
191
|
+
const tag = reader.uint32();
|
|
192
|
+
switch (tag >>> 3) {
|
|
193
|
+
case 1:
|
|
194
|
+
message.height = Height.decode(reader, reader.uint32());
|
|
195
|
+
break;
|
|
196
|
+
case 2:
|
|
197
|
+
message.consensusState = Any.decode(reader, reader.uint32());
|
|
198
|
+
break;
|
|
199
|
+
default:
|
|
200
|
+
reader.skipType(tag & 7);
|
|
201
|
+
break;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
return message;
|
|
205
|
+
},
|
|
206
|
+
|
|
207
|
+
fromJSON(object: any): ConsensusStateWithHeight {
|
|
208
|
+
return {
|
|
209
|
+
height: isSet(object.height) ? Height.fromJSON(object.height) : undefined,
|
|
210
|
+
consensusState: isSet(object.consensusState) ? Any.fromJSON(object.consensusState) : undefined,
|
|
211
|
+
};
|
|
212
|
+
},
|
|
213
|
+
|
|
214
|
+
toJSON(message: ConsensusStateWithHeight): unknown {
|
|
215
|
+
const obj: any = {};
|
|
216
|
+
message.height !== undefined && (obj.height = message.height ? Height.toJSON(message.height) : undefined);
|
|
217
|
+
message.consensusState !== undefined
|
|
218
|
+
&& (obj.consensusState = message.consensusState ? Any.toJSON(message.consensusState) : undefined);
|
|
219
|
+
return obj;
|
|
220
|
+
},
|
|
221
|
+
|
|
222
|
+
fromPartial<I extends Exact<DeepPartial<ConsensusStateWithHeight>, I>>(object: I): ConsensusStateWithHeight {
|
|
223
|
+
const message = createBaseConsensusStateWithHeight();
|
|
224
|
+
message.height = (object.height !== undefined && object.height !== null)
|
|
225
|
+
? Height.fromPartial(object.height)
|
|
226
|
+
: undefined;
|
|
227
|
+
message.consensusState = (object.consensusState !== undefined && object.consensusState !== null)
|
|
228
|
+
? Any.fromPartial(object.consensusState)
|
|
229
|
+
: undefined;
|
|
230
|
+
return message;
|
|
231
|
+
},
|
|
232
|
+
};
|
|
233
|
+
|
|
234
|
+
function createBaseClientConsensusStates(): ClientConsensusStates {
|
|
235
|
+
return { clientId: "", consensusStates: [] };
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
export const ClientConsensusStates = {
|
|
239
|
+
encode(message: ClientConsensusStates, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
240
|
+
if (message.clientId !== "") {
|
|
241
|
+
writer.uint32(10).string(message.clientId);
|
|
242
|
+
}
|
|
243
|
+
for (const v of message.consensusStates) {
|
|
244
|
+
ConsensusStateWithHeight.encode(v!, writer.uint32(18).fork()).ldelim();
|
|
245
|
+
}
|
|
246
|
+
return writer;
|
|
247
|
+
},
|
|
248
|
+
|
|
249
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ClientConsensusStates {
|
|
250
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
251
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
252
|
+
const message = createBaseClientConsensusStates();
|
|
253
|
+
while (reader.pos < end) {
|
|
254
|
+
const tag = reader.uint32();
|
|
255
|
+
switch (tag >>> 3) {
|
|
256
|
+
case 1:
|
|
257
|
+
message.clientId = reader.string();
|
|
258
|
+
break;
|
|
259
|
+
case 2:
|
|
260
|
+
message.consensusStates.push(ConsensusStateWithHeight.decode(reader, reader.uint32()));
|
|
261
|
+
break;
|
|
262
|
+
default:
|
|
263
|
+
reader.skipType(tag & 7);
|
|
264
|
+
break;
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
return message;
|
|
268
|
+
},
|
|
269
|
+
|
|
270
|
+
fromJSON(object: any): ClientConsensusStates {
|
|
271
|
+
return {
|
|
272
|
+
clientId: isSet(object.clientId) ? String(object.clientId) : "",
|
|
273
|
+
consensusStates: Array.isArray(object?.consensusStates)
|
|
274
|
+
? object.consensusStates.map((e: any) => ConsensusStateWithHeight.fromJSON(e))
|
|
275
|
+
: [],
|
|
276
|
+
};
|
|
277
|
+
},
|
|
278
|
+
|
|
279
|
+
toJSON(message: ClientConsensusStates): unknown {
|
|
280
|
+
const obj: any = {};
|
|
281
|
+
message.clientId !== undefined && (obj.clientId = message.clientId);
|
|
282
|
+
if (message.consensusStates) {
|
|
283
|
+
obj.consensusStates = message.consensusStates.map((e) => e ? ConsensusStateWithHeight.toJSON(e) : undefined);
|
|
284
|
+
} else {
|
|
285
|
+
obj.consensusStates = [];
|
|
286
|
+
}
|
|
287
|
+
return obj;
|
|
288
|
+
},
|
|
289
|
+
|
|
290
|
+
fromPartial<I extends Exact<DeepPartial<ClientConsensusStates>, I>>(object: I): ClientConsensusStates {
|
|
291
|
+
const message = createBaseClientConsensusStates();
|
|
292
|
+
message.clientId = object.clientId ?? "";
|
|
293
|
+
message.consensusStates = object.consensusStates?.map((e) => ConsensusStateWithHeight.fromPartial(e)) || [];
|
|
294
|
+
return message;
|
|
295
|
+
},
|
|
296
|
+
};
|
|
297
|
+
|
|
298
|
+
function createBaseClientUpdateProposal(): ClientUpdateProposal {
|
|
299
|
+
return { title: "", description: "", subjectClientId: "", substituteClientId: "" };
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
export const ClientUpdateProposal = {
|
|
303
|
+
encode(message: ClientUpdateProposal, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
304
|
+
if (message.title !== "") {
|
|
305
|
+
writer.uint32(10).string(message.title);
|
|
306
|
+
}
|
|
307
|
+
if (message.description !== "") {
|
|
308
|
+
writer.uint32(18).string(message.description);
|
|
309
|
+
}
|
|
310
|
+
if (message.subjectClientId !== "") {
|
|
311
|
+
writer.uint32(26).string(message.subjectClientId);
|
|
312
|
+
}
|
|
313
|
+
if (message.substituteClientId !== "") {
|
|
314
|
+
writer.uint32(34).string(message.substituteClientId);
|
|
315
|
+
}
|
|
316
|
+
return writer;
|
|
317
|
+
},
|
|
318
|
+
|
|
319
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ClientUpdateProposal {
|
|
320
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
321
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
322
|
+
const message = createBaseClientUpdateProposal();
|
|
323
|
+
while (reader.pos < end) {
|
|
324
|
+
const tag = reader.uint32();
|
|
325
|
+
switch (tag >>> 3) {
|
|
326
|
+
case 1:
|
|
327
|
+
message.title = reader.string();
|
|
328
|
+
break;
|
|
329
|
+
case 2:
|
|
330
|
+
message.description = reader.string();
|
|
331
|
+
break;
|
|
332
|
+
case 3:
|
|
333
|
+
message.subjectClientId = reader.string();
|
|
334
|
+
break;
|
|
335
|
+
case 4:
|
|
336
|
+
message.substituteClientId = reader.string();
|
|
337
|
+
break;
|
|
338
|
+
default:
|
|
339
|
+
reader.skipType(tag & 7);
|
|
340
|
+
break;
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
return message;
|
|
344
|
+
},
|
|
345
|
+
|
|
346
|
+
fromJSON(object: any): ClientUpdateProposal {
|
|
347
|
+
return {
|
|
348
|
+
title: isSet(object.title) ? String(object.title) : "",
|
|
349
|
+
description: isSet(object.description) ? String(object.description) : "",
|
|
350
|
+
subjectClientId: isSet(object.subjectClientId) ? String(object.subjectClientId) : "",
|
|
351
|
+
substituteClientId: isSet(object.substituteClientId) ? String(object.substituteClientId) : "",
|
|
352
|
+
};
|
|
353
|
+
},
|
|
354
|
+
|
|
355
|
+
toJSON(message: ClientUpdateProposal): unknown {
|
|
356
|
+
const obj: any = {};
|
|
357
|
+
message.title !== undefined && (obj.title = message.title);
|
|
358
|
+
message.description !== undefined && (obj.description = message.description);
|
|
359
|
+
message.subjectClientId !== undefined && (obj.subjectClientId = message.subjectClientId);
|
|
360
|
+
message.substituteClientId !== undefined && (obj.substituteClientId = message.substituteClientId);
|
|
361
|
+
return obj;
|
|
362
|
+
},
|
|
363
|
+
|
|
364
|
+
fromPartial<I extends Exact<DeepPartial<ClientUpdateProposal>, I>>(object: I): ClientUpdateProposal {
|
|
365
|
+
const message = createBaseClientUpdateProposal();
|
|
366
|
+
message.title = object.title ?? "";
|
|
367
|
+
message.description = object.description ?? "";
|
|
368
|
+
message.subjectClientId = object.subjectClientId ?? "";
|
|
369
|
+
message.substituteClientId = object.substituteClientId ?? "";
|
|
370
|
+
return message;
|
|
371
|
+
},
|
|
372
|
+
};
|
|
373
|
+
|
|
374
|
+
function createBaseUpgradeProposal(): UpgradeProposal {
|
|
375
|
+
return { title: "", description: "", plan: undefined, upgradedClientState: undefined };
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
export const UpgradeProposal = {
|
|
379
|
+
encode(message: UpgradeProposal, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
380
|
+
if (message.title !== "") {
|
|
381
|
+
writer.uint32(10).string(message.title);
|
|
382
|
+
}
|
|
383
|
+
if (message.description !== "") {
|
|
384
|
+
writer.uint32(18).string(message.description);
|
|
385
|
+
}
|
|
386
|
+
if (message.plan !== undefined) {
|
|
387
|
+
Plan.encode(message.plan, writer.uint32(26).fork()).ldelim();
|
|
388
|
+
}
|
|
389
|
+
if (message.upgradedClientState !== undefined) {
|
|
390
|
+
Any.encode(message.upgradedClientState, writer.uint32(34).fork()).ldelim();
|
|
391
|
+
}
|
|
392
|
+
return writer;
|
|
393
|
+
},
|
|
394
|
+
|
|
395
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): UpgradeProposal {
|
|
396
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
397
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
398
|
+
const message = createBaseUpgradeProposal();
|
|
399
|
+
while (reader.pos < end) {
|
|
400
|
+
const tag = reader.uint32();
|
|
401
|
+
switch (tag >>> 3) {
|
|
402
|
+
case 1:
|
|
403
|
+
message.title = reader.string();
|
|
404
|
+
break;
|
|
405
|
+
case 2:
|
|
406
|
+
message.description = reader.string();
|
|
407
|
+
break;
|
|
408
|
+
case 3:
|
|
409
|
+
message.plan = Plan.decode(reader, reader.uint32());
|
|
410
|
+
break;
|
|
411
|
+
case 4:
|
|
412
|
+
message.upgradedClientState = Any.decode(reader, reader.uint32());
|
|
413
|
+
break;
|
|
414
|
+
default:
|
|
415
|
+
reader.skipType(tag & 7);
|
|
416
|
+
break;
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
return message;
|
|
420
|
+
},
|
|
421
|
+
|
|
422
|
+
fromJSON(object: any): UpgradeProposal {
|
|
423
|
+
return {
|
|
424
|
+
title: isSet(object.title) ? String(object.title) : "",
|
|
425
|
+
description: isSet(object.description) ? String(object.description) : "",
|
|
426
|
+
plan: isSet(object.plan) ? Plan.fromJSON(object.plan) : undefined,
|
|
427
|
+
upgradedClientState: isSet(object.upgradedClientState) ? Any.fromJSON(object.upgradedClientState) : undefined,
|
|
428
|
+
};
|
|
429
|
+
},
|
|
430
|
+
|
|
431
|
+
toJSON(message: UpgradeProposal): unknown {
|
|
432
|
+
const obj: any = {};
|
|
433
|
+
message.title !== undefined && (obj.title = message.title);
|
|
434
|
+
message.description !== undefined && (obj.description = message.description);
|
|
435
|
+
message.plan !== undefined && (obj.plan = message.plan ? Plan.toJSON(message.plan) : undefined);
|
|
436
|
+
message.upgradedClientState !== undefined
|
|
437
|
+
&& (obj.upgradedClientState = message.upgradedClientState ? Any.toJSON(message.upgradedClientState) : undefined);
|
|
438
|
+
return obj;
|
|
439
|
+
},
|
|
440
|
+
|
|
441
|
+
fromPartial<I extends Exact<DeepPartial<UpgradeProposal>, I>>(object: I): UpgradeProposal {
|
|
442
|
+
const message = createBaseUpgradeProposal();
|
|
443
|
+
message.title = object.title ?? "";
|
|
444
|
+
message.description = object.description ?? "";
|
|
445
|
+
message.plan = (object.plan !== undefined && object.plan !== null) ? Plan.fromPartial(object.plan) : undefined;
|
|
446
|
+
message.upgradedClientState = (object.upgradedClientState !== undefined && object.upgradedClientState !== null)
|
|
447
|
+
? Any.fromPartial(object.upgradedClientState)
|
|
448
|
+
: undefined;
|
|
449
|
+
return message;
|
|
450
|
+
},
|
|
451
|
+
};
|
|
452
|
+
|
|
453
|
+
function createBaseHeight(): Height {
|
|
454
|
+
return { revisionNumber: 0, revisionHeight: 0 };
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
export const Height = {
|
|
458
|
+
encode(message: Height, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
459
|
+
if (message.revisionNumber !== 0) {
|
|
460
|
+
writer.uint32(8).uint64(message.revisionNumber);
|
|
461
|
+
}
|
|
462
|
+
if (message.revisionHeight !== 0) {
|
|
463
|
+
writer.uint32(16).uint64(message.revisionHeight);
|
|
464
|
+
}
|
|
465
|
+
return writer;
|
|
466
|
+
},
|
|
467
|
+
|
|
468
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Height {
|
|
469
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
470
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
471
|
+
const message = createBaseHeight();
|
|
472
|
+
while (reader.pos < end) {
|
|
473
|
+
const tag = reader.uint32();
|
|
474
|
+
switch (tag >>> 3) {
|
|
475
|
+
case 1:
|
|
476
|
+
message.revisionNumber = longToNumber(reader.uint64() as Long);
|
|
477
|
+
break;
|
|
478
|
+
case 2:
|
|
479
|
+
message.revisionHeight = longToNumber(reader.uint64() as Long);
|
|
480
|
+
break;
|
|
481
|
+
default:
|
|
482
|
+
reader.skipType(tag & 7);
|
|
483
|
+
break;
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
return message;
|
|
487
|
+
},
|
|
488
|
+
|
|
489
|
+
fromJSON(object: any): Height {
|
|
490
|
+
return {
|
|
491
|
+
revisionNumber: isSet(object.revisionNumber) ? Number(object.revisionNumber) : 0,
|
|
492
|
+
revisionHeight: isSet(object.revisionHeight) ? Number(object.revisionHeight) : 0,
|
|
493
|
+
};
|
|
494
|
+
},
|
|
495
|
+
|
|
496
|
+
toJSON(message: Height): unknown {
|
|
497
|
+
const obj: any = {};
|
|
498
|
+
message.revisionNumber !== undefined && (obj.revisionNumber = Math.round(message.revisionNumber));
|
|
499
|
+
message.revisionHeight !== undefined && (obj.revisionHeight = Math.round(message.revisionHeight));
|
|
500
|
+
return obj;
|
|
501
|
+
},
|
|
502
|
+
|
|
503
|
+
fromPartial<I extends Exact<DeepPartial<Height>, I>>(object: I): Height {
|
|
504
|
+
const message = createBaseHeight();
|
|
505
|
+
message.revisionNumber = object.revisionNumber ?? 0;
|
|
506
|
+
message.revisionHeight = object.revisionHeight ?? 0;
|
|
507
|
+
return message;
|
|
508
|
+
},
|
|
509
|
+
};
|
|
510
|
+
|
|
511
|
+
function createBaseParams(): Params {
|
|
512
|
+
return { allowedClients: [] };
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
export const Params = {
|
|
516
|
+
encode(message: Params, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
517
|
+
for (const v of message.allowedClients) {
|
|
518
|
+
writer.uint32(10).string(v!);
|
|
519
|
+
}
|
|
520
|
+
return writer;
|
|
521
|
+
},
|
|
522
|
+
|
|
523
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Params {
|
|
524
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
525
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
526
|
+
const message = createBaseParams();
|
|
527
|
+
while (reader.pos < end) {
|
|
528
|
+
const tag = reader.uint32();
|
|
529
|
+
switch (tag >>> 3) {
|
|
530
|
+
case 1:
|
|
531
|
+
message.allowedClients.push(reader.string());
|
|
532
|
+
break;
|
|
533
|
+
default:
|
|
534
|
+
reader.skipType(tag & 7);
|
|
535
|
+
break;
|
|
536
|
+
}
|
|
537
|
+
}
|
|
538
|
+
return message;
|
|
539
|
+
},
|
|
540
|
+
|
|
541
|
+
fromJSON(object: any): Params {
|
|
542
|
+
return {
|
|
543
|
+
allowedClients: Array.isArray(object?.allowedClients) ? object.allowedClients.map((e: any) => String(e)) : [],
|
|
544
|
+
};
|
|
545
|
+
},
|
|
546
|
+
|
|
547
|
+
toJSON(message: Params): unknown {
|
|
548
|
+
const obj: any = {};
|
|
549
|
+
if (message.allowedClients) {
|
|
550
|
+
obj.allowedClients = message.allowedClients.map((e) => e);
|
|
551
|
+
} else {
|
|
552
|
+
obj.allowedClients = [];
|
|
553
|
+
}
|
|
554
|
+
return obj;
|
|
555
|
+
},
|
|
556
|
+
|
|
557
|
+
fromPartial<I extends Exact<DeepPartial<Params>, I>>(object: I): Params {
|
|
558
|
+
const message = createBaseParams();
|
|
559
|
+
message.allowedClients = object.allowedClients?.map((e) => e) || [];
|
|
560
|
+
return message;
|
|
561
|
+
},
|
|
562
|
+
};
|
|
563
|
+
|
|
564
|
+
declare var self: any | undefined;
|
|
565
|
+
declare var window: any | undefined;
|
|
566
|
+
declare var global: any | undefined;
|
|
567
|
+
var globalThis: any = (() => {
|
|
568
|
+
if (typeof globalThis !== "undefined") {
|
|
569
|
+
return globalThis;
|
|
570
|
+
}
|
|
571
|
+
if (typeof self !== "undefined") {
|
|
572
|
+
return self;
|
|
573
|
+
}
|
|
574
|
+
if (typeof window !== "undefined") {
|
|
575
|
+
return window;
|
|
576
|
+
}
|
|
577
|
+
if (typeof global !== "undefined") {
|
|
578
|
+
return global;
|
|
579
|
+
}
|
|
580
|
+
throw "Unable to locate global object";
|
|
581
|
+
})();
|
|
582
|
+
|
|
583
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
584
|
+
|
|
585
|
+
export type DeepPartial<T> = T extends Builtin ? T
|
|
586
|
+
: T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
587
|
+
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
588
|
+
: Partial<T>;
|
|
589
|
+
|
|
590
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
591
|
+
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
592
|
+
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
|
593
|
+
|
|
594
|
+
function longToNumber(long: Long): number {
|
|
595
|
+
if (long.gt(Number.MAX_SAFE_INTEGER)) {
|
|
596
|
+
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
597
|
+
}
|
|
598
|
+
return long.toNumber();
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
if (_m0.util.Long !== Long) {
|
|
602
|
+
_m0.util.Long = Long as any;
|
|
603
|
+
_m0.configure();
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
function isSet(value: any): boolean {
|
|
607
|
+
return value !== null && value !== undefined;
|
|
608
|
+
}
|