@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,342 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/*
|
|
4
|
+
* ---------------------------------------------------------------
|
|
5
|
+
* ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
|
|
6
|
+
* ## ##
|
|
7
|
+
* ## AUTHOR: acacode ##
|
|
8
|
+
* ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
|
|
9
|
+
* ---------------------------------------------------------------
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
export interface IconlakeAccount {
|
|
13
|
+
/** @format byte */
|
|
14
|
+
accAddress?: string;
|
|
15
|
+
|
|
16
|
+
/** @format int64 */
|
|
17
|
+
lastMintDropTime?: string;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export interface IconlakeMsgMintDropResponse {
|
|
21
|
+
creator?: string;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Coin defines a token with a denomination and an amount.
|
|
25
|
+
*
|
|
26
|
+
* NOTE: The amount field is an Int which implements the custom method
|
|
27
|
+
* signatures required by gogoproto.
|
|
28
|
+
*/
|
|
29
|
+
amount?: V1Beta1Coin;
|
|
30
|
+
|
|
31
|
+
/** @format int64 */
|
|
32
|
+
lastMintDropTime?: string;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Params defines the parameters for the module.
|
|
37
|
+
*/
|
|
38
|
+
export type IconlakeParams = object;
|
|
39
|
+
|
|
40
|
+
export interface IconlakeQueryAllAccountResponse {
|
|
41
|
+
account?: IconlakeAccount[];
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* PageResponse is to be embedded in gRPC response messages where the
|
|
45
|
+
* corresponding request message has used PageRequest.
|
|
46
|
+
*
|
|
47
|
+
* message SomeResponse {
|
|
48
|
+
* repeated Bar results = 1;
|
|
49
|
+
* PageResponse page = 2;
|
|
50
|
+
* }
|
|
51
|
+
*/
|
|
52
|
+
pagination?: V1Beta1PageResponse;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export interface IconlakeQueryGetAccountResponse {
|
|
56
|
+
account?: IconlakeAccount;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* QueryParamsResponse is response type for the Query/Params RPC method.
|
|
61
|
+
*/
|
|
62
|
+
export interface IconlakeQueryParamsResponse {
|
|
63
|
+
/** params holds all the parameters of this module. */
|
|
64
|
+
params?: IconlakeParams;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export interface ProtobufAny {
|
|
68
|
+
"@type"?: string;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export interface RpcStatus {
|
|
72
|
+
/** @format int32 */
|
|
73
|
+
code?: number;
|
|
74
|
+
message?: string;
|
|
75
|
+
details?: ProtobufAny[];
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Coin defines a token with a denomination and an amount.
|
|
80
|
+
|
|
81
|
+
NOTE: The amount field is an Int which implements the custom method
|
|
82
|
+
signatures required by gogoproto.
|
|
83
|
+
*/
|
|
84
|
+
export interface V1Beta1Coin {
|
|
85
|
+
denom?: string;
|
|
86
|
+
amount?: string;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* message SomeRequest {
|
|
91
|
+
Foo some_parameter = 1;
|
|
92
|
+
PageRequest pagination = 2;
|
|
93
|
+
}
|
|
94
|
+
*/
|
|
95
|
+
export interface V1Beta1PageRequest {
|
|
96
|
+
/**
|
|
97
|
+
* key is a value returned in PageResponse.next_key to begin
|
|
98
|
+
* querying the next page most efficiently. Only one of offset or key
|
|
99
|
+
* should be set.
|
|
100
|
+
* @format byte
|
|
101
|
+
*/
|
|
102
|
+
key?: string;
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* offset is a numeric offset that can be used when key is unavailable.
|
|
106
|
+
* It is less efficient than using key. Only one of offset or key should
|
|
107
|
+
* be set.
|
|
108
|
+
* @format uint64
|
|
109
|
+
*/
|
|
110
|
+
offset?: string;
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* limit is the total number of results to be returned in the result page.
|
|
114
|
+
* If left empty it will default to a value to be set by each app.
|
|
115
|
+
* @format uint64
|
|
116
|
+
*/
|
|
117
|
+
limit?: string;
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* count_total is set to true to indicate that the result set should include
|
|
121
|
+
* a count of the total number of items available for pagination in UIs.
|
|
122
|
+
* count_total is only respected when offset is used. It is ignored when key
|
|
123
|
+
* is set.
|
|
124
|
+
*/
|
|
125
|
+
count_total?: boolean;
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* reverse is set to true if results are to be returned in the descending order.
|
|
129
|
+
*
|
|
130
|
+
* Since: cosmos-sdk 0.43
|
|
131
|
+
*/
|
|
132
|
+
reverse?: boolean;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* PageResponse is to be embedded in gRPC response messages where the
|
|
137
|
+
corresponding request message has used PageRequest.
|
|
138
|
+
|
|
139
|
+
message SomeResponse {
|
|
140
|
+
repeated Bar results = 1;
|
|
141
|
+
PageResponse page = 2;
|
|
142
|
+
}
|
|
143
|
+
*/
|
|
144
|
+
export interface V1Beta1PageResponse {
|
|
145
|
+
/**
|
|
146
|
+
* next_key is the key to be passed to PageRequest.key to
|
|
147
|
+
* query the next page most efficiently. It will be empty if
|
|
148
|
+
* there are no more results.
|
|
149
|
+
* @format byte
|
|
150
|
+
*/
|
|
151
|
+
next_key?: string;
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* total is total number of results available if PageRequest.count_total
|
|
155
|
+
* was set, its value is undefined otherwise
|
|
156
|
+
* @format uint64
|
|
157
|
+
*/
|
|
158
|
+
total?: string;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
import axios, { AxiosInstance, AxiosRequestConfig, AxiosResponse, ResponseType } from "axios";
|
|
162
|
+
|
|
163
|
+
export type QueryParamsType = Record<string | number, any>;
|
|
164
|
+
|
|
165
|
+
export interface FullRequestParams extends Omit<AxiosRequestConfig, "data" | "params" | "url" | "responseType"> {
|
|
166
|
+
/** set parameter to `true` for call `securityWorker` for this request */
|
|
167
|
+
secure?: boolean;
|
|
168
|
+
/** request path */
|
|
169
|
+
path: string;
|
|
170
|
+
/** content type of request body */
|
|
171
|
+
type?: ContentType;
|
|
172
|
+
/** query params */
|
|
173
|
+
query?: QueryParamsType;
|
|
174
|
+
/** format of response (i.e. response.json() -> format: "json") */
|
|
175
|
+
format?: ResponseType;
|
|
176
|
+
/** request body */
|
|
177
|
+
body?: unknown;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
export type RequestParams = Omit<FullRequestParams, "body" | "method" | "query" | "path">;
|
|
181
|
+
|
|
182
|
+
export interface ApiConfig<SecurityDataType = unknown> extends Omit<AxiosRequestConfig, "data" | "cancelToken"> {
|
|
183
|
+
securityWorker?: (
|
|
184
|
+
securityData: SecurityDataType | null,
|
|
185
|
+
) => Promise<AxiosRequestConfig | void> | AxiosRequestConfig | void;
|
|
186
|
+
secure?: boolean;
|
|
187
|
+
format?: ResponseType;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
export enum ContentType {
|
|
191
|
+
Json = "application/json",
|
|
192
|
+
FormData = "multipart/form-data",
|
|
193
|
+
UrlEncoded = "application/x-www-form-urlencoded",
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
export class HttpClient<SecurityDataType = unknown> {
|
|
197
|
+
public instance: AxiosInstance;
|
|
198
|
+
private securityData: SecurityDataType | null = null;
|
|
199
|
+
private securityWorker?: ApiConfig<SecurityDataType>["securityWorker"];
|
|
200
|
+
private secure?: boolean;
|
|
201
|
+
private format?: ResponseType;
|
|
202
|
+
|
|
203
|
+
constructor({ securityWorker, secure, format, ...axiosConfig }: ApiConfig<SecurityDataType> = {}) {
|
|
204
|
+
this.instance = axios.create({ ...axiosConfig, baseURL: axiosConfig.baseURL || "" });
|
|
205
|
+
this.secure = secure;
|
|
206
|
+
this.format = format;
|
|
207
|
+
this.securityWorker = securityWorker;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
public setSecurityData = (data: SecurityDataType | null) => {
|
|
211
|
+
this.securityData = data;
|
|
212
|
+
};
|
|
213
|
+
|
|
214
|
+
private mergeRequestParams(params1: AxiosRequestConfig, params2?: AxiosRequestConfig): AxiosRequestConfig {
|
|
215
|
+
return {
|
|
216
|
+
...this.instance.defaults,
|
|
217
|
+
...params1,
|
|
218
|
+
...(params2 || {}),
|
|
219
|
+
headers: {
|
|
220
|
+
...(this.instance.defaults.headers || {}),
|
|
221
|
+
...(params1.headers || {}),
|
|
222
|
+
...((params2 && params2.headers) || {}),
|
|
223
|
+
},
|
|
224
|
+
};
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
private createFormData(input: Record<string, unknown>): FormData {
|
|
228
|
+
return Object.keys(input || {}).reduce((formData, key) => {
|
|
229
|
+
const property = input[key];
|
|
230
|
+
formData.append(
|
|
231
|
+
key,
|
|
232
|
+
property instanceof Blob
|
|
233
|
+
? property
|
|
234
|
+
: typeof property === "object" && property !== null
|
|
235
|
+
? JSON.stringify(property)
|
|
236
|
+
: `${property}`,
|
|
237
|
+
);
|
|
238
|
+
return formData;
|
|
239
|
+
}, new FormData());
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
public request = async <T = any, _E = any>({
|
|
243
|
+
secure,
|
|
244
|
+
path,
|
|
245
|
+
type,
|
|
246
|
+
query,
|
|
247
|
+
format,
|
|
248
|
+
body,
|
|
249
|
+
...params
|
|
250
|
+
}: FullRequestParams): Promise<AxiosResponse<T>> => {
|
|
251
|
+
const secureParams =
|
|
252
|
+
((typeof secure === "boolean" ? secure : this.secure) &&
|
|
253
|
+
this.securityWorker &&
|
|
254
|
+
(await this.securityWorker(this.securityData))) ||
|
|
255
|
+
{};
|
|
256
|
+
const requestParams = this.mergeRequestParams(params, secureParams);
|
|
257
|
+
const responseFormat = (format && this.format) || void 0;
|
|
258
|
+
|
|
259
|
+
if (type === ContentType.FormData && body && body !== null && typeof body === "object") {
|
|
260
|
+
requestParams.headers.common = { Accept: "*/*" };
|
|
261
|
+
requestParams.headers.post = {};
|
|
262
|
+
requestParams.headers.put = {};
|
|
263
|
+
|
|
264
|
+
body = this.createFormData(body as Record<string, unknown>);
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
return this.instance.request({
|
|
268
|
+
...requestParams,
|
|
269
|
+
headers: {
|
|
270
|
+
...(type && type !== ContentType.FormData ? { "Content-Type": type } : {}),
|
|
271
|
+
...(requestParams.headers || {}),
|
|
272
|
+
},
|
|
273
|
+
params: query,
|
|
274
|
+
responseType: responseFormat,
|
|
275
|
+
data: body,
|
|
276
|
+
url: path,
|
|
277
|
+
});
|
|
278
|
+
};
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
/**
|
|
282
|
+
* @title iconlake/iconlake/account.proto
|
|
283
|
+
* @version version not set
|
|
284
|
+
*/
|
|
285
|
+
export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDataType> {
|
|
286
|
+
/**
|
|
287
|
+
* No description
|
|
288
|
+
*
|
|
289
|
+
* @tags Query
|
|
290
|
+
* @name QueryAccountAll
|
|
291
|
+
* @request GET:/iconlake/iconlake/account
|
|
292
|
+
*/
|
|
293
|
+
queryAccountAll = (
|
|
294
|
+
query?: {
|
|
295
|
+
"pagination.key"?: string;
|
|
296
|
+
"pagination.offset"?: string;
|
|
297
|
+
"pagination.limit"?: string;
|
|
298
|
+
"pagination.count_total"?: boolean;
|
|
299
|
+
"pagination.reverse"?: boolean;
|
|
300
|
+
},
|
|
301
|
+
params: RequestParams = {},
|
|
302
|
+
) =>
|
|
303
|
+
this.request<IconlakeQueryAllAccountResponse, RpcStatus>({
|
|
304
|
+
path: `/iconlake/iconlake/account`,
|
|
305
|
+
method: "GET",
|
|
306
|
+
query: query,
|
|
307
|
+
format: "json",
|
|
308
|
+
...params,
|
|
309
|
+
});
|
|
310
|
+
|
|
311
|
+
/**
|
|
312
|
+
* No description
|
|
313
|
+
*
|
|
314
|
+
* @tags Query
|
|
315
|
+
* @name QueryAccount
|
|
316
|
+
* @summary Queries a list of Account items.
|
|
317
|
+
* @request GET:/iconlake/iconlake/account/{address}
|
|
318
|
+
*/
|
|
319
|
+
queryAccount = (address: string, params: RequestParams = {}) =>
|
|
320
|
+
this.request<IconlakeQueryGetAccountResponse, RpcStatus>({
|
|
321
|
+
path: `/iconlake/iconlake/account/${address}`,
|
|
322
|
+
method: "GET",
|
|
323
|
+
format: "json",
|
|
324
|
+
...params,
|
|
325
|
+
});
|
|
326
|
+
|
|
327
|
+
/**
|
|
328
|
+
* No description
|
|
329
|
+
*
|
|
330
|
+
* @tags Query
|
|
331
|
+
* @name QueryParams
|
|
332
|
+
* @summary Parameters queries the parameters of the module.
|
|
333
|
+
* @request GET:/iconlake/iconlake/params
|
|
334
|
+
*/
|
|
335
|
+
queryParams = (params: RequestParams = {}) =>
|
|
336
|
+
this.request<IconlakeQueryParamsResponse, RpcStatus>({
|
|
337
|
+
path: `/iconlake/iconlake/params`,
|
|
338
|
+
method: "GET",
|
|
339
|
+
format: "json",
|
|
340
|
+
...params,
|
|
341
|
+
});
|
|
342
|
+
}
|
|
@@ -0,0 +1,286 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import Long from "long";
|
|
3
|
+
import _m0 from "protobufjs/minimal";
|
|
4
|
+
|
|
5
|
+
export const protobufPackage = "cosmos.base.query.v1beta1";
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* PageRequest is to be embedded in gRPC request messages for efficient
|
|
9
|
+
* pagination. Ex:
|
|
10
|
+
*
|
|
11
|
+
* message SomeRequest {
|
|
12
|
+
* Foo some_parameter = 1;
|
|
13
|
+
* PageRequest pagination = 2;
|
|
14
|
+
* }
|
|
15
|
+
*/
|
|
16
|
+
export interface PageRequest {
|
|
17
|
+
/**
|
|
18
|
+
* key is a value returned in PageResponse.next_key to begin
|
|
19
|
+
* querying the next page most efficiently. Only one of offset or key
|
|
20
|
+
* should be set.
|
|
21
|
+
*/
|
|
22
|
+
key: Uint8Array;
|
|
23
|
+
/**
|
|
24
|
+
* offset is a numeric offset that can be used when key is unavailable.
|
|
25
|
+
* It is less efficient than using key. Only one of offset or key should
|
|
26
|
+
* be set.
|
|
27
|
+
*/
|
|
28
|
+
offset: number;
|
|
29
|
+
/**
|
|
30
|
+
* limit is the total number of results to be returned in the result page.
|
|
31
|
+
* If left empty it will default to a value to be set by each app.
|
|
32
|
+
*/
|
|
33
|
+
limit: number;
|
|
34
|
+
/**
|
|
35
|
+
* count_total is set to true to indicate that the result set should include
|
|
36
|
+
* a count of the total number of items available for pagination in UIs.
|
|
37
|
+
* count_total is only respected when offset is used. It is ignored when key
|
|
38
|
+
* is set.
|
|
39
|
+
*/
|
|
40
|
+
countTotal: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* reverse is set to true if results are to be returned in the descending order.
|
|
43
|
+
*
|
|
44
|
+
* Since: cosmos-sdk 0.43
|
|
45
|
+
*/
|
|
46
|
+
reverse: boolean;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* PageResponse is to be embedded in gRPC response messages where the
|
|
51
|
+
* corresponding request message has used PageRequest.
|
|
52
|
+
*
|
|
53
|
+
* message SomeResponse {
|
|
54
|
+
* repeated Bar results = 1;
|
|
55
|
+
* PageResponse page = 2;
|
|
56
|
+
* }
|
|
57
|
+
*/
|
|
58
|
+
export interface PageResponse {
|
|
59
|
+
/**
|
|
60
|
+
* next_key is the key to be passed to PageRequest.key to
|
|
61
|
+
* query the next page most efficiently. It will be empty if
|
|
62
|
+
* there are no more results.
|
|
63
|
+
*/
|
|
64
|
+
nextKey: Uint8Array;
|
|
65
|
+
/**
|
|
66
|
+
* total is total number of results available if PageRequest.count_total
|
|
67
|
+
* was set, its value is undefined otherwise
|
|
68
|
+
*/
|
|
69
|
+
total: number;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
function createBasePageRequest(): PageRequest {
|
|
73
|
+
return { key: new Uint8Array(), offset: 0, limit: 0, countTotal: false, reverse: false };
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export const PageRequest = {
|
|
77
|
+
encode(message: PageRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
78
|
+
if (message.key.length !== 0) {
|
|
79
|
+
writer.uint32(10).bytes(message.key);
|
|
80
|
+
}
|
|
81
|
+
if (message.offset !== 0) {
|
|
82
|
+
writer.uint32(16).uint64(message.offset);
|
|
83
|
+
}
|
|
84
|
+
if (message.limit !== 0) {
|
|
85
|
+
writer.uint32(24).uint64(message.limit);
|
|
86
|
+
}
|
|
87
|
+
if (message.countTotal === true) {
|
|
88
|
+
writer.uint32(32).bool(message.countTotal);
|
|
89
|
+
}
|
|
90
|
+
if (message.reverse === true) {
|
|
91
|
+
writer.uint32(40).bool(message.reverse);
|
|
92
|
+
}
|
|
93
|
+
return writer;
|
|
94
|
+
},
|
|
95
|
+
|
|
96
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PageRequest {
|
|
97
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
98
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
99
|
+
const message = createBasePageRequest();
|
|
100
|
+
while (reader.pos < end) {
|
|
101
|
+
const tag = reader.uint32();
|
|
102
|
+
switch (tag >>> 3) {
|
|
103
|
+
case 1:
|
|
104
|
+
message.key = reader.bytes();
|
|
105
|
+
break;
|
|
106
|
+
case 2:
|
|
107
|
+
message.offset = longToNumber(reader.uint64() as Long);
|
|
108
|
+
break;
|
|
109
|
+
case 3:
|
|
110
|
+
message.limit = longToNumber(reader.uint64() as Long);
|
|
111
|
+
break;
|
|
112
|
+
case 4:
|
|
113
|
+
message.countTotal = reader.bool();
|
|
114
|
+
break;
|
|
115
|
+
case 5:
|
|
116
|
+
message.reverse = reader.bool();
|
|
117
|
+
break;
|
|
118
|
+
default:
|
|
119
|
+
reader.skipType(tag & 7);
|
|
120
|
+
break;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
return message;
|
|
124
|
+
},
|
|
125
|
+
|
|
126
|
+
fromJSON(object: any): PageRequest {
|
|
127
|
+
return {
|
|
128
|
+
key: isSet(object.key) ? bytesFromBase64(object.key) : new Uint8Array(),
|
|
129
|
+
offset: isSet(object.offset) ? Number(object.offset) : 0,
|
|
130
|
+
limit: isSet(object.limit) ? Number(object.limit) : 0,
|
|
131
|
+
countTotal: isSet(object.countTotal) ? Boolean(object.countTotal) : false,
|
|
132
|
+
reverse: isSet(object.reverse) ? Boolean(object.reverse) : false,
|
|
133
|
+
};
|
|
134
|
+
},
|
|
135
|
+
|
|
136
|
+
toJSON(message: PageRequest): unknown {
|
|
137
|
+
const obj: any = {};
|
|
138
|
+
message.key !== undefined
|
|
139
|
+
&& (obj.key = base64FromBytes(message.key !== undefined ? message.key : new Uint8Array()));
|
|
140
|
+
message.offset !== undefined && (obj.offset = Math.round(message.offset));
|
|
141
|
+
message.limit !== undefined && (obj.limit = Math.round(message.limit));
|
|
142
|
+
message.countTotal !== undefined && (obj.countTotal = message.countTotal);
|
|
143
|
+
message.reverse !== undefined && (obj.reverse = message.reverse);
|
|
144
|
+
return obj;
|
|
145
|
+
},
|
|
146
|
+
|
|
147
|
+
fromPartial<I extends Exact<DeepPartial<PageRequest>, I>>(object: I): PageRequest {
|
|
148
|
+
const message = createBasePageRequest();
|
|
149
|
+
message.key = object.key ?? new Uint8Array();
|
|
150
|
+
message.offset = object.offset ?? 0;
|
|
151
|
+
message.limit = object.limit ?? 0;
|
|
152
|
+
message.countTotal = object.countTotal ?? false;
|
|
153
|
+
message.reverse = object.reverse ?? false;
|
|
154
|
+
return message;
|
|
155
|
+
},
|
|
156
|
+
};
|
|
157
|
+
|
|
158
|
+
function createBasePageResponse(): PageResponse {
|
|
159
|
+
return { nextKey: new Uint8Array(), total: 0 };
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
export const PageResponse = {
|
|
163
|
+
encode(message: PageResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
164
|
+
if (message.nextKey.length !== 0) {
|
|
165
|
+
writer.uint32(10).bytes(message.nextKey);
|
|
166
|
+
}
|
|
167
|
+
if (message.total !== 0) {
|
|
168
|
+
writer.uint32(16).uint64(message.total);
|
|
169
|
+
}
|
|
170
|
+
return writer;
|
|
171
|
+
},
|
|
172
|
+
|
|
173
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PageResponse {
|
|
174
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
175
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
176
|
+
const message = createBasePageResponse();
|
|
177
|
+
while (reader.pos < end) {
|
|
178
|
+
const tag = reader.uint32();
|
|
179
|
+
switch (tag >>> 3) {
|
|
180
|
+
case 1:
|
|
181
|
+
message.nextKey = reader.bytes();
|
|
182
|
+
break;
|
|
183
|
+
case 2:
|
|
184
|
+
message.total = longToNumber(reader.uint64() as Long);
|
|
185
|
+
break;
|
|
186
|
+
default:
|
|
187
|
+
reader.skipType(tag & 7);
|
|
188
|
+
break;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
return message;
|
|
192
|
+
},
|
|
193
|
+
|
|
194
|
+
fromJSON(object: any): PageResponse {
|
|
195
|
+
return {
|
|
196
|
+
nextKey: isSet(object.nextKey) ? bytesFromBase64(object.nextKey) : new Uint8Array(),
|
|
197
|
+
total: isSet(object.total) ? Number(object.total) : 0,
|
|
198
|
+
};
|
|
199
|
+
},
|
|
200
|
+
|
|
201
|
+
toJSON(message: PageResponse): unknown {
|
|
202
|
+
const obj: any = {};
|
|
203
|
+
message.nextKey !== undefined
|
|
204
|
+
&& (obj.nextKey = base64FromBytes(message.nextKey !== undefined ? message.nextKey : new Uint8Array()));
|
|
205
|
+
message.total !== undefined && (obj.total = Math.round(message.total));
|
|
206
|
+
return obj;
|
|
207
|
+
},
|
|
208
|
+
|
|
209
|
+
fromPartial<I extends Exact<DeepPartial<PageResponse>, I>>(object: I): PageResponse {
|
|
210
|
+
const message = createBasePageResponse();
|
|
211
|
+
message.nextKey = object.nextKey ?? new Uint8Array();
|
|
212
|
+
message.total = object.total ?? 0;
|
|
213
|
+
return message;
|
|
214
|
+
},
|
|
215
|
+
};
|
|
216
|
+
|
|
217
|
+
declare var self: any | undefined;
|
|
218
|
+
declare var window: any | undefined;
|
|
219
|
+
declare var global: any | undefined;
|
|
220
|
+
var globalThis: any = (() => {
|
|
221
|
+
if (typeof globalThis !== "undefined") {
|
|
222
|
+
return globalThis;
|
|
223
|
+
}
|
|
224
|
+
if (typeof self !== "undefined") {
|
|
225
|
+
return self;
|
|
226
|
+
}
|
|
227
|
+
if (typeof window !== "undefined") {
|
|
228
|
+
return window;
|
|
229
|
+
}
|
|
230
|
+
if (typeof global !== "undefined") {
|
|
231
|
+
return global;
|
|
232
|
+
}
|
|
233
|
+
throw "Unable to locate global object";
|
|
234
|
+
})();
|
|
235
|
+
|
|
236
|
+
function bytesFromBase64(b64: string): Uint8Array {
|
|
237
|
+
if (globalThis.Buffer) {
|
|
238
|
+
return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
|
|
239
|
+
} else {
|
|
240
|
+
const bin = globalThis.atob(b64);
|
|
241
|
+
const arr = new Uint8Array(bin.length);
|
|
242
|
+
for (let i = 0; i < bin.length; ++i) {
|
|
243
|
+
arr[i] = bin.charCodeAt(i);
|
|
244
|
+
}
|
|
245
|
+
return arr;
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
function base64FromBytes(arr: Uint8Array): string {
|
|
250
|
+
if (globalThis.Buffer) {
|
|
251
|
+
return globalThis.Buffer.from(arr).toString("base64");
|
|
252
|
+
} else {
|
|
253
|
+
const bin: string[] = [];
|
|
254
|
+
arr.forEach((byte) => {
|
|
255
|
+
bin.push(String.fromCharCode(byte));
|
|
256
|
+
});
|
|
257
|
+
return globalThis.btoa(bin.join(""));
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
262
|
+
|
|
263
|
+
export type DeepPartial<T> = T extends Builtin ? T
|
|
264
|
+
: T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
265
|
+
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
266
|
+
: Partial<T>;
|
|
267
|
+
|
|
268
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
269
|
+
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
270
|
+
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
|
271
|
+
|
|
272
|
+
function longToNumber(long: Long): number {
|
|
273
|
+
if (long.gt(Number.MAX_SAFE_INTEGER)) {
|
|
274
|
+
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
275
|
+
}
|
|
276
|
+
return long.toNumber();
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
if (_m0.util.Long !== Long) {
|
|
280
|
+
_m0.util.Long = Long as any;
|
|
281
|
+
_m0.configure();
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
function isSet(value: any): boolean {
|
|
285
|
+
return value !== null && value !== undefined;
|
|
286
|
+
}
|