@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,297 @@
|
|
|
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
|
+
/**
|
|
13
|
+
* `Any` contains an arbitrary serialized protocol buffer message along with a
|
|
14
|
+
URL that describes the type of the serialized message.
|
|
15
|
+
|
|
16
|
+
Protobuf library provides support to pack/unpack Any values in the form
|
|
17
|
+
of utility functions or additional generated methods of the Any type.
|
|
18
|
+
|
|
19
|
+
Example 1: Pack and unpack a message in C++.
|
|
20
|
+
|
|
21
|
+
Foo foo = ...;
|
|
22
|
+
Any any;
|
|
23
|
+
any.PackFrom(foo);
|
|
24
|
+
...
|
|
25
|
+
if (any.UnpackTo(&foo)) {
|
|
26
|
+
...
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
Example 2: Pack and unpack a message in Java.
|
|
30
|
+
|
|
31
|
+
Foo foo = ...;
|
|
32
|
+
Any any = Any.pack(foo);
|
|
33
|
+
...
|
|
34
|
+
if (any.is(Foo.class)) {
|
|
35
|
+
foo = any.unpack(Foo.class);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
Example 3: Pack and unpack a message in Python.
|
|
39
|
+
|
|
40
|
+
foo = Foo(...)
|
|
41
|
+
any = Any()
|
|
42
|
+
any.Pack(foo)
|
|
43
|
+
...
|
|
44
|
+
if any.Is(Foo.DESCRIPTOR):
|
|
45
|
+
any.Unpack(foo)
|
|
46
|
+
...
|
|
47
|
+
|
|
48
|
+
Example 4: Pack and unpack a message in Go
|
|
49
|
+
|
|
50
|
+
foo := &pb.Foo{...}
|
|
51
|
+
any, err := anypb.New(foo)
|
|
52
|
+
if err != nil {
|
|
53
|
+
...
|
|
54
|
+
}
|
|
55
|
+
...
|
|
56
|
+
foo := &pb.Foo{}
|
|
57
|
+
if err := any.UnmarshalTo(foo); err != nil {
|
|
58
|
+
...
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
The pack methods provided by protobuf library will by default use
|
|
62
|
+
'type.googleapis.com/full.type.name' as the type URL and the unpack
|
|
63
|
+
methods only use the fully qualified type name after the last '/'
|
|
64
|
+
in the type URL, for example "foo.bar.com/x/y.z" will yield type
|
|
65
|
+
name "y.z".
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
JSON
|
|
69
|
+
====
|
|
70
|
+
The JSON representation of an `Any` value uses the regular
|
|
71
|
+
representation of the deserialized, embedded message, with an
|
|
72
|
+
additional field `@type` which contains the type URL. Example:
|
|
73
|
+
|
|
74
|
+
package google.profile;
|
|
75
|
+
message Person {
|
|
76
|
+
string first_name = 1;
|
|
77
|
+
string last_name = 2;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
{
|
|
81
|
+
"@type": "type.googleapis.com/google.profile.Person",
|
|
82
|
+
"firstName": <string>,
|
|
83
|
+
"lastName": <string>
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
If the embedded message type is well-known and has a custom JSON
|
|
87
|
+
representation, that representation will be embedded adding a field
|
|
88
|
+
`value` which holds the custom JSON in addition to the `@type`
|
|
89
|
+
field. Example (for message [google.protobuf.Duration][]):
|
|
90
|
+
|
|
91
|
+
{
|
|
92
|
+
"@type": "type.googleapis.com/google.protobuf.Duration",
|
|
93
|
+
"value": "1.212s"
|
|
94
|
+
}
|
|
95
|
+
*/
|
|
96
|
+
export interface ProtobufAny {
|
|
97
|
+
/**
|
|
98
|
+
* A URL/resource name that uniquely identifies the type of the serialized
|
|
99
|
+
* protocol buffer message. This string must contain at least
|
|
100
|
+
* one "/" character. The last segment of the URL's path must represent
|
|
101
|
+
* the fully qualified name of the type (as in
|
|
102
|
+
* `path/google.protobuf.Duration`). The name should be in a canonical form
|
|
103
|
+
* (e.g., leading "." is not accepted).
|
|
104
|
+
*
|
|
105
|
+
* In practice, teams usually precompile into the binary all types that they
|
|
106
|
+
* expect it to use in the context of Any. However, for URLs which use the
|
|
107
|
+
* scheme `http`, `https`, or no scheme, one can optionally set up a type
|
|
108
|
+
* server that maps type URLs to message definitions as follows:
|
|
109
|
+
* * If no scheme is provided, `https` is assumed.
|
|
110
|
+
* * An HTTP GET on the URL must yield a [google.protobuf.Type][]
|
|
111
|
+
* value in binary format, or produce an error.
|
|
112
|
+
* * Applications are allowed to cache lookup results based on the
|
|
113
|
+
* URL, or have them precompiled into a binary to avoid any
|
|
114
|
+
* lookup. Therefore, binary compatibility needs to be preserved
|
|
115
|
+
* on changes to types. (Use versioned type names to manage
|
|
116
|
+
* breaking changes.)
|
|
117
|
+
* Note: this functionality is not currently available in the official
|
|
118
|
+
* protobuf release, and it is not used for type URLs beginning with
|
|
119
|
+
* type.googleapis.com.
|
|
120
|
+
* Schemes other than `http`, `https` (or the empty scheme) might be
|
|
121
|
+
* used with implementation specific semantics.
|
|
122
|
+
*/
|
|
123
|
+
"@type"?: string;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
export interface RpcStatus {
|
|
127
|
+
/** @format int32 */
|
|
128
|
+
code?: number;
|
|
129
|
+
message?: string;
|
|
130
|
+
details?: ProtobufAny[];
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* Coin defines a token with a denomination and an amount.
|
|
135
|
+
|
|
136
|
+
NOTE: The amount field is an Int which implements the custom method
|
|
137
|
+
signatures required by gogoproto.
|
|
138
|
+
*/
|
|
139
|
+
export interface V1Beta1Coin {
|
|
140
|
+
denom?: string;
|
|
141
|
+
amount?: string;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* MsgCreateVestingAccountResponse defines the Msg/CreatePeriodicVestingAccount
|
|
146
|
+
response type.
|
|
147
|
+
|
|
148
|
+
Since: cosmos-sdk 0.46
|
|
149
|
+
*/
|
|
150
|
+
export type V1Beta1MsgCreatePeriodicVestingAccountResponse = object;
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* MsgCreatePermanentLockedAccountResponse defines the Msg/CreatePermanentLockedAccount response type.
|
|
154
|
+
|
|
155
|
+
Since: cosmos-sdk 0.46
|
|
156
|
+
*/
|
|
157
|
+
export type V1Beta1MsgCreatePermanentLockedAccountResponse = object;
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* MsgCreateVestingAccountResponse defines the Msg/CreateVestingAccount response type.
|
|
161
|
+
*/
|
|
162
|
+
export type V1Beta1MsgCreateVestingAccountResponse = object;
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* Period defines a length of time and amount of coins that will vest.
|
|
166
|
+
*/
|
|
167
|
+
export interface V1Beta1Period {
|
|
168
|
+
/** @format int64 */
|
|
169
|
+
length?: string;
|
|
170
|
+
amount?: V1Beta1Coin[];
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
import axios, { AxiosInstance, AxiosRequestConfig, AxiosResponse, ResponseType } from "axios";
|
|
174
|
+
|
|
175
|
+
export type QueryParamsType = Record<string | number, any>;
|
|
176
|
+
|
|
177
|
+
export interface FullRequestParams extends Omit<AxiosRequestConfig, "data" | "params" | "url" | "responseType"> {
|
|
178
|
+
/** set parameter to `true` for call `securityWorker` for this request */
|
|
179
|
+
secure?: boolean;
|
|
180
|
+
/** request path */
|
|
181
|
+
path: string;
|
|
182
|
+
/** content type of request body */
|
|
183
|
+
type?: ContentType;
|
|
184
|
+
/** query params */
|
|
185
|
+
query?: QueryParamsType;
|
|
186
|
+
/** format of response (i.e. response.json() -> format: "json") */
|
|
187
|
+
format?: ResponseType;
|
|
188
|
+
/** request body */
|
|
189
|
+
body?: unknown;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
export type RequestParams = Omit<FullRequestParams, "body" | "method" | "query" | "path">;
|
|
193
|
+
|
|
194
|
+
export interface ApiConfig<SecurityDataType = unknown> extends Omit<AxiosRequestConfig, "data" | "cancelToken"> {
|
|
195
|
+
securityWorker?: (
|
|
196
|
+
securityData: SecurityDataType | null,
|
|
197
|
+
) => Promise<AxiosRequestConfig | void> | AxiosRequestConfig | void;
|
|
198
|
+
secure?: boolean;
|
|
199
|
+
format?: ResponseType;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
export enum ContentType {
|
|
203
|
+
Json = "application/json",
|
|
204
|
+
FormData = "multipart/form-data",
|
|
205
|
+
UrlEncoded = "application/x-www-form-urlencoded",
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
export class HttpClient<SecurityDataType = unknown> {
|
|
209
|
+
public instance: AxiosInstance;
|
|
210
|
+
private securityData: SecurityDataType | null = null;
|
|
211
|
+
private securityWorker?: ApiConfig<SecurityDataType>["securityWorker"];
|
|
212
|
+
private secure?: boolean;
|
|
213
|
+
private format?: ResponseType;
|
|
214
|
+
|
|
215
|
+
constructor({ securityWorker, secure, format, ...axiosConfig }: ApiConfig<SecurityDataType> = {}) {
|
|
216
|
+
this.instance = axios.create({ ...axiosConfig, baseURL: axiosConfig.baseURL || "" });
|
|
217
|
+
this.secure = secure;
|
|
218
|
+
this.format = format;
|
|
219
|
+
this.securityWorker = securityWorker;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
public setSecurityData = (data: SecurityDataType | null) => {
|
|
223
|
+
this.securityData = data;
|
|
224
|
+
};
|
|
225
|
+
|
|
226
|
+
private mergeRequestParams(params1: AxiosRequestConfig, params2?: AxiosRequestConfig): AxiosRequestConfig {
|
|
227
|
+
return {
|
|
228
|
+
...this.instance.defaults,
|
|
229
|
+
...params1,
|
|
230
|
+
...(params2 || {}),
|
|
231
|
+
headers: {
|
|
232
|
+
...(this.instance.defaults.headers || {}),
|
|
233
|
+
...(params1.headers || {}),
|
|
234
|
+
...((params2 && params2.headers) || {}),
|
|
235
|
+
},
|
|
236
|
+
};
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
private createFormData(input: Record<string, unknown>): FormData {
|
|
240
|
+
return Object.keys(input || {}).reduce((formData, key) => {
|
|
241
|
+
const property = input[key];
|
|
242
|
+
formData.append(
|
|
243
|
+
key,
|
|
244
|
+
property instanceof Blob
|
|
245
|
+
? property
|
|
246
|
+
: typeof property === "object" && property !== null
|
|
247
|
+
? JSON.stringify(property)
|
|
248
|
+
: `${property}`,
|
|
249
|
+
);
|
|
250
|
+
return formData;
|
|
251
|
+
}, new FormData());
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
public request = async <T = any, _E = any>({
|
|
255
|
+
secure,
|
|
256
|
+
path,
|
|
257
|
+
type,
|
|
258
|
+
query,
|
|
259
|
+
format,
|
|
260
|
+
body,
|
|
261
|
+
...params
|
|
262
|
+
}: FullRequestParams): Promise<AxiosResponse<T>> => {
|
|
263
|
+
const secureParams =
|
|
264
|
+
((typeof secure === "boolean" ? secure : this.secure) &&
|
|
265
|
+
this.securityWorker &&
|
|
266
|
+
(await this.securityWorker(this.securityData))) ||
|
|
267
|
+
{};
|
|
268
|
+
const requestParams = this.mergeRequestParams(params, secureParams);
|
|
269
|
+
const responseFormat = (format && this.format) || void 0;
|
|
270
|
+
|
|
271
|
+
if (type === ContentType.FormData && body && body !== null && typeof body === "object") {
|
|
272
|
+
requestParams.headers.common = { Accept: "*/*" };
|
|
273
|
+
requestParams.headers.post = {};
|
|
274
|
+
requestParams.headers.put = {};
|
|
275
|
+
|
|
276
|
+
body = this.createFormData(body as Record<string, unknown>);
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
return this.instance.request({
|
|
280
|
+
...requestParams,
|
|
281
|
+
headers: {
|
|
282
|
+
...(type && type !== ContentType.FormData ? { "Content-Type": type } : {}),
|
|
283
|
+
...(requestParams.headers || {}),
|
|
284
|
+
},
|
|
285
|
+
params: query,
|
|
286
|
+
responseType: responseFormat,
|
|
287
|
+
data: body,
|
|
288
|
+
url: path,
|
|
289
|
+
});
|
|
290
|
+
};
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
/**
|
|
294
|
+
* @title cosmos/vesting/v1beta1/tx.proto
|
|
295
|
+
* @version version not set
|
|
296
|
+
*/
|
|
297
|
+
export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDataType> {}
|
|
@@ -0,0 +1,324 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import Long from "long";
|
|
3
|
+
import _m0 from "protobufjs/minimal";
|
|
4
|
+
import { Any } from "../../../google/protobuf/any";
|
|
5
|
+
|
|
6
|
+
export const protobufPackage = "cosmos.auth.v1beta1";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* BaseAccount defines a base account type. It contains all the necessary fields
|
|
10
|
+
* for basic account functionality. Any custom account type should extend this
|
|
11
|
+
* type for additional functionality (e.g. vesting).
|
|
12
|
+
*/
|
|
13
|
+
export interface BaseAccount {
|
|
14
|
+
address: string;
|
|
15
|
+
pubKey: Any | undefined;
|
|
16
|
+
accountNumber: number;
|
|
17
|
+
sequence: number;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/** ModuleAccount defines an account for modules that holds coins on a pool. */
|
|
21
|
+
export interface ModuleAccount {
|
|
22
|
+
baseAccount: BaseAccount | undefined;
|
|
23
|
+
name: string;
|
|
24
|
+
permissions: string[];
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/** Params defines the parameters for the auth module. */
|
|
28
|
+
export interface Params {
|
|
29
|
+
maxMemoCharacters: number;
|
|
30
|
+
txSigLimit: number;
|
|
31
|
+
txSizeCostPerByte: number;
|
|
32
|
+
sigVerifyCostEd25519: number;
|
|
33
|
+
sigVerifyCostSecp256k1: number;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
function createBaseBaseAccount(): BaseAccount {
|
|
37
|
+
return { address: "", pubKey: undefined, accountNumber: 0, sequence: 0 };
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export const BaseAccount = {
|
|
41
|
+
encode(message: BaseAccount, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
42
|
+
if (message.address !== "") {
|
|
43
|
+
writer.uint32(10).string(message.address);
|
|
44
|
+
}
|
|
45
|
+
if (message.pubKey !== undefined) {
|
|
46
|
+
Any.encode(message.pubKey, writer.uint32(18).fork()).ldelim();
|
|
47
|
+
}
|
|
48
|
+
if (message.accountNumber !== 0) {
|
|
49
|
+
writer.uint32(24).uint64(message.accountNumber);
|
|
50
|
+
}
|
|
51
|
+
if (message.sequence !== 0) {
|
|
52
|
+
writer.uint32(32).uint64(message.sequence);
|
|
53
|
+
}
|
|
54
|
+
return writer;
|
|
55
|
+
},
|
|
56
|
+
|
|
57
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): BaseAccount {
|
|
58
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
59
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
60
|
+
const message = createBaseBaseAccount();
|
|
61
|
+
while (reader.pos < end) {
|
|
62
|
+
const tag = reader.uint32();
|
|
63
|
+
switch (tag >>> 3) {
|
|
64
|
+
case 1:
|
|
65
|
+
message.address = reader.string();
|
|
66
|
+
break;
|
|
67
|
+
case 2:
|
|
68
|
+
message.pubKey = Any.decode(reader, reader.uint32());
|
|
69
|
+
break;
|
|
70
|
+
case 3:
|
|
71
|
+
message.accountNumber = longToNumber(reader.uint64() as Long);
|
|
72
|
+
break;
|
|
73
|
+
case 4:
|
|
74
|
+
message.sequence = longToNumber(reader.uint64() as Long);
|
|
75
|
+
break;
|
|
76
|
+
default:
|
|
77
|
+
reader.skipType(tag & 7);
|
|
78
|
+
break;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
return message;
|
|
82
|
+
},
|
|
83
|
+
|
|
84
|
+
fromJSON(object: any): BaseAccount {
|
|
85
|
+
return {
|
|
86
|
+
address: isSet(object.address) ? String(object.address) : "",
|
|
87
|
+
pubKey: isSet(object.pubKey) ? Any.fromJSON(object.pubKey) : undefined,
|
|
88
|
+
accountNumber: isSet(object.accountNumber) ? Number(object.accountNumber) : 0,
|
|
89
|
+
sequence: isSet(object.sequence) ? Number(object.sequence) : 0,
|
|
90
|
+
};
|
|
91
|
+
},
|
|
92
|
+
|
|
93
|
+
toJSON(message: BaseAccount): unknown {
|
|
94
|
+
const obj: any = {};
|
|
95
|
+
message.address !== undefined && (obj.address = message.address);
|
|
96
|
+
message.pubKey !== undefined && (obj.pubKey = message.pubKey ? Any.toJSON(message.pubKey) : undefined);
|
|
97
|
+
message.accountNumber !== undefined && (obj.accountNumber = Math.round(message.accountNumber));
|
|
98
|
+
message.sequence !== undefined && (obj.sequence = Math.round(message.sequence));
|
|
99
|
+
return obj;
|
|
100
|
+
},
|
|
101
|
+
|
|
102
|
+
fromPartial<I extends Exact<DeepPartial<BaseAccount>, I>>(object: I): BaseAccount {
|
|
103
|
+
const message = createBaseBaseAccount();
|
|
104
|
+
message.address = object.address ?? "";
|
|
105
|
+
message.pubKey = (object.pubKey !== undefined && object.pubKey !== null)
|
|
106
|
+
? Any.fromPartial(object.pubKey)
|
|
107
|
+
: undefined;
|
|
108
|
+
message.accountNumber = object.accountNumber ?? 0;
|
|
109
|
+
message.sequence = object.sequence ?? 0;
|
|
110
|
+
return message;
|
|
111
|
+
},
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
function createBaseModuleAccount(): ModuleAccount {
|
|
115
|
+
return { baseAccount: undefined, name: "", permissions: [] };
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export const ModuleAccount = {
|
|
119
|
+
encode(message: ModuleAccount, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
120
|
+
if (message.baseAccount !== undefined) {
|
|
121
|
+
BaseAccount.encode(message.baseAccount, writer.uint32(10).fork()).ldelim();
|
|
122
|
+
}
|
|
123
|
+
if (message.name !== "") {
|
|
124
|
+
writer.uint32(18).string(message.name);
|
|
125
|
+
}
|
|
126
|
+
for (const v of message.permissions) {
|
|
127
|
+
writer.uint32(26).string(v!);
|
|
128
|
+
}
|
|
129
|
+
return writer;
|
|
130
|
+
},
|
|
131
|
+
|
|
132
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ModuleAccount {
|
|
133
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
134
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
135
|
+
const message = createBaseModuleAccount();
|
|
136
|
+
while (reader.pos < end) {
|
|
137
|
+
const tag = reader.uint32();
|
|
138
|
+
switch (tag >>> 3) {
|
|
139
|
+
case 1:
|
|
140
|
+
message.baseAccount = BaseAccount.decode(reader, reader.uint32());
|
|
141
|
+
break;
|
|
142
|
+
case 2:
|
|
143
|
+
message.name = reader.string();
|
|
144
|
+
break;
|
|
145
|
+
case 3:
|
|
146
|
+
message.permissions.push(reader.string());
|
|
147
|
+
break;
|
|
148
|
+
default:
|
|
149
|
+
reader.skipType(tag & 7);
|
|
150
|
+
break;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
return message;
|
|
154
|
+
},
|
|
155
|
+
|
|
156
|
+
fromJSON(object: any): ModuleAccount {
|
|
157
|
+
return {
|
|
158
|
+
baseAccount: isSet(object.baseAccount) ? BaseAccount.fromJSON(object.baseAccount) : undefined,
|
|
159
|
+
name: isSet(object.name) ? String(object.name) : "",
|
|
160
|
+
permissions: Array.isArray(object?.permissions) ? object.permissions.map((e: any) => String(e)) : [],
|
|
161
|
+
};
|
|
162
|
+
},
|
|
163
|
+
|
|
164
|
+
toJSON(message: ModuleAccount): unknown {
|
|
165
|
+
const obj: any = {};
|
|
166
|
+
message.baseAccount !== undefined
|
|
167
|
+
&& (obj.baseAccount = message.baseAccount ? BaseAccount.toJSON(message.baseAccount) : undefined);
|
|
168
|
+
message.name !== undefined && (obj.name = message.name);
|
|
169
|
+
if (message.permissions) {
|
|
170
|
+
obj.permissions = message.permissions.map((e) => e);
|
|
171
|
+
} else {
|
|
172
|
+
obj.permissions = [];
|
|
173
|
+
}
|
|
174
|
+
return obj;
|
|
175
|
+
},
|
|
176
|
+
|
|
177
|
+
fromPartial<I extends Exact<DeepPartial<ModuleAccount>, I>>(object: I): ModuleAccount {
|
|
178
|
+
const message = createBaseModuleAccount();
|
|
179
|
+
message.baseAccount = (object.baseAccount !== undefined && object.baseAccount !== null)
|
|
180
|
+
? BaseAccount.fromPartial(object.baseAccount)
|
|
181
|
+
: undefined;
|
|
182
|
+
message.name = object.name ?? "";
|
|
183
|
+
message.permissions = object.permissions?.map((e) => e) || [];
|
|
184
|
+
return message;
|
|
185
|
+
},
|
|
186
|
+
};
|
|
187
|
+
|
|
188
|
+
function createBaseParams(): Params {
|
|
189
|
+
return {
|
|
190
|
+
maxMemoCharacters: 0,
|
|
191
|
+
txSigLimit: 0,
|
|
192
|
+
txSizeCostPerByte: 0,
|
|
193
|
+
sigVerifyCostEd25519: 0,
|
|
194
|
+
sigVerifyCostSecp256k1: 0,
|
|
195
|
+
};
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
export const Params = {
|
|
199
|
+
encode(message: Params, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
200
|
+
if (message.maxMemoCharacters !== 0) {
|
|
201
|
+
writer.uint32(8).uint64(message.maxMemoCharacters);
|
|
202
|
+
}
|
|
203
|
+
if (message.txSigLimit !== 0) {
|
|
204
|
+
writer.uint32(16).uint64(message.txSigLimit);
|
|
205
|
+
}
|
|
206
|
+
if (message.txSizeCostPerByte !== 0) {
|
|
207
|
+
writer.uint32(24).uint64(message.txSizeCostPerByte);
|
|
208
|
+
}
|
|
209
|
+
if (message.sigVerifyCostEd25519 !== 0) {
|
|
210
|
+
writer.uint32(32).uint64(message.sigVerifyCostEd25519);
|
|
211
|
+
}
|
|
212
|
+
if (message.sigVerifyCostSecp256k1 !== 0) {
|
|
213
|
+
writer.uint32(40).uint64(message.sigVerifyCostSecp256k1);
|
|
214
|
+
}
|
|
215
|
+
return writer;
|
|
216
|
+
},
|
|
217
|
+
|
|
218
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Params {
|
|
219
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
220
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
221
|
+
const message = createBaseParams();
|
|
222
|
+
while (reader.pos < end) {
|
|
223
|
+
const tag = reader.uint32();
|
|
224
|
+
switch (tag >>> 3) {
|
|
225
|
+
case 1:
|
|
226
|
+
message.maxMemoCharacters = longToNumber(reader.uint64() as Long);
|
|
227
|
+
break;
|
|
228
|
+
case 2:
|
|
229
|
+
message.txSigLimit = longToNumber(reader.uint64() as Long);
|
|
230
|
+
break;
|
|
231
|
+
case 3:
|
|
232
|
+
message.txSizeCostPerByte = longToNumber(reader.uint64() as Long);
|
|
233
|
+
break;
|
|
234
|
+
case 4:
|
|
235
|
+
message.sigVerifyCostEd25519 = longToNumber(reader.uint64() as Long);
|
|
236
|
+
break;
|
|
237
|
+
case 5:
|
|
238
|
+
message.sigVerifyCostSecp256k1 = longToNumber(reader.uint64() as Long);
|
|
239
|
+
break;
|
|
240
|
+
default:
|
|
241
|
+
reader.skipType(tag & 7);
|
|
242
|
+
break;
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
return message;
|
|
246
|
+
},
|
|
247
|
+
|
|
248
|
+
fromJSON(object: any): Params {
|
|
249
|
+
return {
|
|
250
|
+
maxMemoCharacters: isSet(object.maxMemoCharacters) ? Number(object.maxMemoCharacters) : 0,
|
|
251
|
+
txSigLimit: isSet(object.txSigLimit) ? Number(object.txSigLimit) : 0,
|
|
252
|
+
txSizeCostPerByte: isSet(object.txSizeCostPerByte) ? Number(object.txSizeCostPerByte) : 0,
|
|
253
|
+
sigVerifyCostEd25519: isSet(object.sigVerifyCostEd25519) ? Number(object.sigVerifyCostEd25519) : 0,
|
|
254
|
+
sigVerifyCostSecp256k1: isSet(object.sigVerifyCostSecp256k1) ? Number(object.sigVerifyCostSecp256k1) : 0,
|
|
255
|
+
};
|
|
256
|
+
},
|
|
257
|
+
|
|
258
|
+
toJSON(message: Params): unknown {
|
|
259
|
+
const obj: any = {};
|
|
260
|
+
message.maxMemoCharacters !== undefined && (obj.maxMemoCharacters = Math.round(message.maxMemoCharacters));
|
|
261
|
+
message.txSigLimit !== undefined && (obj.txSigLimit = Math.round(message.txSigLimit));
|
|
262
|
+
message.txSizeCostPerByte !== undefined && (obj.txSizeCostPerByte = Math.round(message.txSizeCostPerByte));
|
|
263
|
+
message.sigVerifyCostEd25519 !== undefined && (obj.sigVerifyCostEd25519 = Math.round(message.sigVerifyCostEd25519));
|
|
264
|
+
message.sigVerifyCostSecp256k1 !== undefined
|
|
265
|
+
&& (obj.sigVerifyCostSecp256k1 = Math.round(message.sigVerifyCostSecp256k1));
|
|
266
|
+
return obj;
|
|
267
|
+
},
|
|
268
|
+
|
|
269
|
+
fromPartial<I extends Exact<DeepPartial<Params>, I>>(object: I): Params {
|
|
270
|
+
const message = createBaseParams();
|
|
271
|
+
message.maxMemoCharacters = object.maxMemoCharacters ?? 0;
|
|
272
|
+
message.txSigLimit = object.txSigLimit ?? 0;
|
|
273
|
+
message.txSizeCostPerByte = object.txSizeCostPerByte ?? 0;
|
|
274
|
+
message.sigVerifyCostEd25519 = object.sigVerifyCostEd25519 ?? 0;
|
|
275
|
+
message.sigVerifyCostSecp256k1 = object.sigVerifyCostSecp256k1 ?? 0;
|
|
276
|
+
return message;
|
|
277
|
+
},
|
|
278
|
+
};
|
|
279
|
+
|
|
280
|
+
declare var self: any | undefined;
|
|
281
|
+
declare var window: any | undefined;
|
|
282
|
+
declare var global: any | undefined;
|
|
283
|
+
var globalThis: any = (() => {
|
|
284
|
+
if (typeof globalThis !== "undefined") {
|
|
285
|
+
return globalThis;
|
|
286
|
+
}
|
|
287
|
+
if (typeof self !== "undefined") {
|
|
288
|
+
return self;
|
|
289
|
+
}
|
|
290
|
+
if (typeof window !== "undefined") {
|
|
291
|
+
return window;
|
|
292
|
+
}
|
|
293
|
+
if (typeof global !== "undefined") {
|
|
294
|
+
return global;
|
|
295
|
+
}
|
|
296
|
+
throw "Unable to locate global object";
|
|
297
|
+
})();
|
|
298
|
+
|
|
299
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
300
|
+
|
|
301
|
+
export type DeepPartial<T> = T extends Builtin ? T
|
|
302
|
+
: T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
303
|
+
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
304
|
+
: Partial<T>;
|
|
305
|
+
|
|
306
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
307
|
+
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
308
|
+
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
|
309
|
+
|
|
310
|
+
function longToNumber(long: Long): number {
|
|
311
|
+
if (long.gt(Number.MAX_SAFE_INTEGER)) {
|
|
312
|
+
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
313
|
+
}
|
|
314
|
+
return long.toNumber();
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
if (_m0.util.Long !== Long) {
|
|
318
|
+
_m0.util.Long = Long as any;
|
|
319
|
+
_m0.configure();
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
function isSet(value: any): boolean {
|
|
323
|
+
return value !== null && value !== undefined;
|
|
324
|
+
}
|