@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,423 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import Long from "long";
|
|
3
|
+
import _m0 from "protobufjs/minimal";
|
|
4
|
+
|
|
5
|
+
export const protobufPackage = "tendermint.p2p";
|
|
6
|
+
|
|
7
|
+
export interface NetAddress {
|
|
8
|
+
id: string;
|
|
9
|
+
ip: string;
|
|
10
|
+
port: number;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface ProtocolVersion {
|
|
14
|
+
p2p: number;
|
|
15
|
+
block: number;
|
|
16
|
+
app: number;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface DefaultNodeInfo {
|
|
20
|
+
protocolVersion: ProtocolVersion | undefined;
|
|
21
|
+
defaultNodeId: string;
|
|
22
|
+
listenAddr: string;
|
|
23
|
+
network: string;
|
|
24
|
+
version: string;
|
|
25
|
+
channels: Uint8Array;
|
|
26
|
+
moniker: string;
|
|
27
|
+
other: DefaultNodeInfoOther | undefined;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export interface DefaultNodeInfoOther {
|
|
31
|
+
txIndex: string;
|
|
32
|
+
rpcAddress: string;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
function createBaseNetAddress(): NetAddress {
|
|
36
|
+
return { id: "", ip: "", port: 0 };
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export const NetAddress = {
|
|
40
|
+
encode(message: NetAddress, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
41
|
+
if (message.id !== "") {
|
|
42
|
+
writer.uint32(10).string(message.id);
|
|
43
|
+
}
|
|
44
|
+
if (message.ip !== "") {
|
|
45
|
+
writer.uint32(18).string(message.ip);
|
|
46
|
+
}
|
|
47
|
+
if (message.port !== 0) {
|
|
48
|
+
writer.uint32(24).uint32(message.port);
|
|
49
|
+
}
|
|
50
|
+
return writer;
|
|
51
|
+
},
|
|
52
|
+
|
|
53
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): NetAddress {
|
|
54
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
55
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
56
|
+
const message = createBaseNetAddress();
|
|
57
|
+
while (reader.pos < end) {
|
|
58
|
+
const tag = reader.uint32();
|
|
59
|
+
switch (tag >>> 3) {
|
|
60
|
+
case 1:
|
|
61
|
+
message.id = reader.string();
|
|
62
|
+
break;
|
|
63
|
+
case 2:
|
|
64
|
+
message.ip = reader.string();
|
|
65
|
+
break;
|
|
66
|
+
case 3:
|
|
67
|
+
message.port = reader.uint32();
|
|
68
|
+
break;
|
|
69
|
+
default:
|
|
70
|
+
reader.skipType(tag & 7);
|
|
71
|
+
break;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
return message;
|
|
75
|
+
},
|
|
76
|
+
|
|
77
|
+
fromJSON(object: any): NetAddress {
|
|
78
|
+
return {
|
|
79
|
+
id: isSet(object.id) ? String(object.id) : "",
|
|
80
|
+
ip: isSet(object.ip) ? String(object.ip) : "",
|
|
81
|
+
port: isSet(object.port) ? Number(object.port) : 0,
|
|
82
|
+
};
|
|
83
|
+
},
|
|
84
|
+
|
|
85
|
+
toJSON(message: NetAddress): unknown {
|
|
86
|
+
const obj: any = {};
|
|
87
|
+
message.id !== undefined && (obj.id = message.id);
|
|
88
|
+
message.ip !== undefined && (obj.ip = message.ip);
|
|
89
|
+
message.port !== undefined && (obj.port = Math.round(message.port));
|
|
90
|
+
return obj;
|
|
91
|
+
},
|
|
92
|
+
|
|
93
|
+
fromPartial<I extends Exact<DeepPartial<NetAddress>, I>>(object: I): NetAddress {
|
|
94
|
+
const message = createBaseNetAddress();
|
|
95
|
+
message.id = object.id ?? "";
|
|
96
|
+
message.ip = object.ip ?? "";
|
|
97
|
+
message.port = object.port ?? 0;
|
|
98
|
+
return message;
|
|
99
|
+
},
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
function createBaseProtocolVersion(): ProtocolVersion {
|
|
103
|
+
return { p2p: 0, block: 0, app: 0 };
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export const ProtocolVersion = {
|
|
107
|
+
encode(message: ProtocolVersion, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
108
|
+
if (message.p2p !== 0) {
|
|
109
|
+
writer.uint32(8).uint64(message.p2p);
|
|
110
|
+
}
|
|
111
|
+
if (message.block !== 0) {
|
|
112
|
+
writer.uint32(16).uint64(message.block);
|
|
113
|
+
}
|
|
114
|
+
if (message.app !== 0) {
|
|
115
|
+
writer.uint32(24).uint64(message.app);
|
|
116
|
+
}
|
|
117
|
+
return writer;
|
|
118
|
+
},
|
|
119
|
+
|
|
120
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ProtocolVersion {
|
|
121
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
122
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
123
|
+
const message = createBaseProtocolVersion();
|
|
124
|
+
while (reader.pos < end) {
|
|
125
|
+
const tag = reader.uint32();
|
|
126
|
+
switch (tag >>> 3) {
|
|
127
|
+
case 1:
|
|
128
|
+
message.p2p = longToNumber(reader.uint64() as Long);
|
|
129
|
+
break;
|
|
130
|
+
case 2:
|
|
131
|
+
message.block = longToNumber(reader.uint64() as Long);
|
|
132
|
+
break;
|
|
133
|
+
case 3:
|
|
134
|
+
message.app = longToNumber(reader.uint64() as Long);
|
|
135
|
+
break;
|
|
136
|
+
default:
|
|
137
|
+
reader.skipType(tag & 7);
|
|
138
|
+
break;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
return message;
|
|
142
|
+
},
|
|
143
|
+
|
|
144
|
+
fromJSON(object: any): ProtocolVersion {
|
|
145
|
+
return {
|
|
146
|
+
p2p: isSet(object.p2p) ? Number(object.p2p) : 0,
|
|
147
|
+
block: isSet(object.block) ? Number(object.block) : 0,
|
|
148
|
+
app: isSet(object.app) ? Number(object.app) : 0,
|
|
149
|
+
};
|
|
150
|
+
},
|
|
151
|
+
|
|
152
|
+
toJSON(message: ProtocolVersion): unknown {
|
|
153
|
+
const obj: any = {};
|
|
154
|
+
message.p2p !== undefined && (obj.p2p = Math.round(message.p2p));
|
|
155
|
+
message.block !== undefined && (obj.block = Math.round(message.block));
|
|
156
|
+
message.app !== undefined && (obj.app = Math.round(message.app));
|
|
157
|
+
return obj;
|
|
158
|
+
},
|
|
159
|
+
|
|
160
|
+
fromPartial<I extends Exact<DeepPartial<ProtocolVersion>, I>>(object: I): ProtocolVersion {
|
|
161
|
+
const message = createBaseProtocolVersion();
|
|
162
|
+
message.p2p = object.p2p ?? 0;
|
|
163
|
+
message.block = object.block ?? 0;
|
|
164
|
+
message.app = object.app ?? 0;
|
|
165
|
+
return message;
|
|
166
|
+
},
|
|
167
|
+
};
|
|
168
|
+
|
|
169
|
+
function createBaseDefaultNodeInfo(): DefaultNodeInfo {
|
|
170
|
+
return {
|
|
171
|
+
protocolVersion: undefined,
|
|
172
|
+
defaultNodeId: "",
|
|
173
|
+
listenAddr: "",
|
|
174
|
+
network: "",
|
|
175
|
+
version: "",
|
|
176
|
+
channels: new Uint8Array(),
|
|
177
|
+
moniker: "",
|
|
178
|
+
other: undefined,
|
|
179
|
+
};
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
export const DefaultNodeInfo = {
|
|
183
|
+
encode(message: DefaultNodeInfo, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
184
|
+
if (message.protocolVersion !== undefined) {
|
|
185
|
+
ProtocolVersion.encode(message.protocolVersion, writer.uint32(10).fork()).ldelim();
|
|
186
|
+
}
|
|
187
|
+
if (message.defaultNodeId !== "") {
|
|
188
|
+
writer.uint32(18).string(message.defaultNodeId);
|
|
189
|
+
}
|
|
190
|
+
if (message.listenAddr !== "") {
|
|
191
|
+
writer.uint32(26).string(message.listenAddr);
|
|
192
|
+
}
|
|
193
|
+
if (message.network !== "") {
|
|
194
|
+
writer.uint32(34).string(message.network);
|
|
195
|
+
}
|
|
196
|
+
if (message.version !== "") {
|
|
197
|
+
writer.uint32(42).string(message.version);
|
|
198
|
+
}
|
|
199
|
+
if (message.channels.length !== 0) {
|
|
200
|
+
writer.uint32(50).bytes(message.channels);
|
|
201
|
+
}
|
|
202
|
+
if (message.moniker !== "") {
|
|
203
|
+
writer.uint32(58).string(message.moniker);
|
|
204
|
+
}
|
|
205
|
+
if (message.other !== undefined) {
|
|
206
|
+
DefaultNodeInfoOther.encode(message.other, writer.uint32(66).fork()).ldelim();
|
|
207
|
+
}
|
|
208
|
+
return writer;
|
|
209
|
+
},
|
|
210
|
+
|
|
211
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): DefaultNodeInfo {
|
|
212
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
213
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
214
|
+
const message = createBaseDefaultNodeInfo();
|
|
215
|
+
while (reader.pos < end) {
|
|
216
|
+
const tag = reader.uint32();
|
|
217
|
+
switch (tag >>> 3) {
|
|
218
|
+
case 1:
|
|
219
|
+
message.protocolVersion = ProtocolVersion.decode(reader, reader.uint32());
|
|
220
|
+
break;
|
|
221
|
+
case 2:
|
|
222
|
+
message.defaultNodeId = reader.string();
|
|
223
|
+
break;
|
|
224
|
+
case 3:
|
|
225
|
+
message.listenAddr = reader.string();
|
|
226
|
+
break;
|
|
227
|
+
case 4:
|
|
228
|
+
message.network = reader.string();
|
|
229
|
+
break;
|
|
230
|
+
case 5:
|
|
231
|
+
message.version = reader.string();
|
|
232
|
+
break;
|
|
233
|
+
case 6:
|
|
234
|
+
message.channels = reader.bytes();
|
|
235
|
+
break;
|
|
236
|
+
case 7:
|
|
237
|
+
message.moniker = reader.string();
|
|
238
|
+
break;
|
|
239
|
+
case 8:
|
|
240
|
+
message.other = DefaultNodeInfoOther.decode(reader, reader.uint32());
|
|
241
|
+
break;
|
|
242
|
+
default:
|
|
243
|
+
reader.skipType(tag & 7);
|
|
244
|
+
break;
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
return message;
|
|
248
|
+
},
|
|
249
|
+
|
|
250
|
+
fromJSON(object: any): DefaultNodeInfo {
|
|
251
|
+
return {
|
|
252
|
+
protocolVersion: isSet(object.protocolVersion) ? ProtocolVersion.fromJSON(object.protocolVersion) : undefined,
|
|
253
|
+
defaultNodeId: isSet(object.defaultNodeId) ? String(object.defaultNodeId) : "",
|
|
254
|
+
listenAddr: isSet(object.listenAddr) ? String(object.listenAddr) : "",
|
|
255
|
+
network: isSet(object.network) ? String(object.network) : "",
|
|
256
|
+
version: isSet(object.version) ? String(object.version) : "",
|
|
257
|
+
channels: isSet(object.channels) ? bytesFromBase64(object.channels) : new Uint8Array(),
|
|
258
|
+
moniker: isSet(object.moniker) ? String(object.moniker) : "",
|
|
259
|
+
other: isSet(object.other) ? DefaultNodeInfoOther.fromJSON(object.other) : undefined,
|
|
260
|
+
};
|
|
261
|
+
},
|
|
262
|
+
|
|
263
|
+
toJSON(message: DefaultNodeInfo): unknown {
|
|
264
|
+
const obj: any = {};
|
|
265
|
+
message.protocolVersion !== undefined
|
|
266
|
+
&& (obj.protocolVersion = message.protocolVersion ? ProtocolVersion.toJSON(message.protocolVersion) : undefined);
|
|
267
|
+
message.defaultNodeId !== undefined && (obj.defaultNodeId = message.defaultNodeId);
|
|
268
|
+
message.listenAddr !== undefined && (obj.listenAddr = message.listenAddr);
|
|
269
|
+
message.network !== undefined && (obj.network = message.network);
|
|
270
|
+
message.version !== undefined && (obj.version = message.version);
|
|
271
|
+
message.channels !== undefined
|
|
272
|
+
&& (obj.channels = base64FromBytes(message.channels !== undefined ? message.channels : new Uint8Array()));
|
|
273
|
+
message.moniker !== undefined && (obj.moniker = message.moniker);
|
|
274
|
+
message.other !== undefined && (obj.other = message.other ? DefaultNodeInfoOther.toJSON(message.other) : undefined);
|
|
275
|
+
return obj;
|
|
276
|
+
},
|
|
277
|
+
|
|
278
|
+
fromPartial<I extends Exact<DeepPartial<DefaultNodeInfo>, I>>(object: I): DefaultNodeInfo {
|
|
279
|
+
const message = createBaseDefaultNodeInfo();
|
|
280
|
+
message.protocolVersion = (object.protocolVersion !== undefined && object.protocolVersion !== null)
|
|
281
|
+
? ProtocolVersion.fromPartial(object.protocolVersion)
|
|
282
|
+
: undefined;
|
|
283
|
+
message.defaultNodeId = object.defaultNodeId ?? "";
|
|
284
|
+
message.listenAddr = object.listenAddr ?? "";
|
|
285
|
+
message.network = object.network ?? "";
|
|
286
|
+
message.version = object.version ?? "";
|
|
287
|
+
message.channels = object.channels ?? new Uint8Array();
|
|
288
|
+
message.moniker = object.moniker ?? "";
|
|
289
|
+
message.other = (object.other !== undefined && object.other !== null)
|
|
290
|
+
? DefaultNodeInfoOther.fromPartial(object.other)
|
|
291
|
+
: undefined;
|
|
292
|
+
return message;
|
|
293
|
+
},
|
|
294
|
+
};
|
|
295
|
+
|
|
296
|
+
function createBaseDefaultNodeInfoOther(): DefaultNodeInfoOther {
|
|
297
|
+
return { txIndex: "", rpcAddress: "" };
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
export const DefaultNodeInfoOther = {
|
|
301
|
+
encode(message: DefaultNodeInfoOther, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
302
|
+
if (message.txIndex !== "") {
|
|
303
|
+
writer.uint32(10).string(message.txIndex);
|
|
304
|
+
}
|
|
305
|
+
if (message.rpcAddress !== "") {
|
|
306
|
+
writer.uint32(18).string(message.rpcAddress);
|
|
307
|
+
}
|
|
308
|
+
return writer;
|
|
309
|
+
},
|
|
310
|
+
|
|
311
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): DefaultNodeInfoOther {
|
|
312
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
313
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
314
|
+
const message = createBaseDefaultNodeInfoOther();
|
|
315
|
+
while (reader.pos < end) {
|
|
316
|
+
const tag = reader.uint32();
|
|
317
|
+
switch (tag >>> 3) {
|
|
318
|
+
case 1:
|
|
319
|
+
message.txIndex = reader.string();
|
|
320
|
+
break;
|
|
321
|
+
case 2:
|
|
322
|
+
message.rpcAddress = reader.string();
|
|
323
|
+
break;
|
|
324
|
+
default:
|
|
325
|
+
reader.skipType(tag & 7);
|
|
326
|
+
break;
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
return message;
|
|
330
|
+
},
|
|
331
|
+
|
|
332
|
+
fromJSON(object: any): DefaultNodeInfoOther {
|
|
333
|
+
return {
|
|
334
|
+
txIndex: isSet(object.txIndex) ? String(object.txIndex) : "",
|
|
335
|
+
rpcAddress: isSet(object.rpcAddress) ? String(object.rpcAddress) : "",
|
|
336
|
+
};
|
|
337
|
+
},
|
|
338
|
+
|
|
339
|
+
toJSON(message: DefaultNodeInfoOther): unknown {
|
|
340
|
+
const obj: any = {};
|
|
341
|
+
message.txIndex !== undefined && (obj.txIndex = message.txIndex);
|
|
342
|
+
message.rpcAddress !== undefined && (obj.rpcAddress = message.rpcAddress);
|
|
343
|
+
return obj;
|
|
344
|
+
},
|
|
345
|
+
|
|
346
|
+
fromPartial<I extends Exact<DeepPartial<DefaultNodeInfoOther>, I>>(object: I): DefaultNodeInfoOther {
|
|
347
|
+
const message = createBaseDefaultNodeInfoOther();
|
|
348
|
+
message.txIndex = object.txIndex ?? "";
|
|
349
|
+
message.rpcAddress = object.rpcAddress ?? "";
|
|
350
|
+
return message;
|
|
351
|
+
},
|
|
352
|
+
};
|
|
353
|
+
|
|
354
|
+
declare var self: any | undefined;
|
|
355
|
+
declare var window: any | undefined;
|
|
356
|
+
declare var global: any | undefined;
|
|
357
|
+
var globalThis: any = (() => {
|
|
358
|
+
if (typeof globalThis !== "undefined") {
|
|
359
|
+
return globalThis;
|
|
360
|
+
}
|
|
361
|
+
if (typeof self !== "undefined") {
|
|
362
|
+
return self;
|
|
363
|
+
}
|
|
364
|
+
if (typeof window !== "undefined") {
|
|
365
|
+
return window;
|
|
366
|
+
}
|
|
367
|
+
if (typeof global !== "undefined") {
|
|
368
|
+
return global;
|
|
369
|
+
}
|
|
370
|
+
throw "Unable to locate global object";
|
|
371
|
+
})();
|
|
372
|
+
|
|
373
|
+
function bytesFromBase64(b64: string): Uint8Array {
|
|
374
|
+
if (globalThis.Buffer) {
|
|
375
|
+
return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
|
|
376
|
+
} else {
|
|
377
|
+
const bin = globalThis.atob(b64);
|
|
378
|
+
const arr = new Uint8Array(bin.length);
|
|
379
|
+
for (let i = 0; i < bin.length; ++i) {
|
|
380
|
+
arr[i] = bin.charCodeAt(i);
|
|
381
|
+
}
|
|
382
|
+
return arr;
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
function base64FromBytes(arr: Uint8Array): string {
|
|
387
|
+
if (globalThis.Buffer) {
|
|
388
|
+
return globalThis.Buffer.from(arr).toString("base64");
|
|
389
|
+
} else {
|
|
390
|
+
const bin: string[] = [];
|
|
391
|
+
arr.forEach((byte) => {
|
|
392
|
+
bin.push(String.fromCharCode(byte));
|
|
393
|
+
});
|
|
394
|
+
return globalThis.btoa(bin.join(""));
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
399
|
+
|
|
400
|
+
export type DeepPartial<T> = T extends Builtin ? T
|
|
401
|
+
: T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
402
|
+
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
403
|
+
: Partial<T>;
|
|
404
|
+
|
|
405
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
406
|
+
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
407
|
+
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
|
408
|
+
|
|
409
|
+
function longToNumber(long: Long): number {
|
|
410
|
+
if (long.gt(Number.MAX_SAFE_INTEGER)) {
|
|
411
|
+
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
412
|
+
}
|
|
413
|
+
return long.toNumber();
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
if (_m0.util.Long !== Long) {
|
|
417
|
+
_m0.util.Long = Long as any;
|
|
418
|
+
_m0.configure();
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
function isSet(value: any): boolean {
|
|
422
|
+
return value !== null && value !== undefined;
|
|
423
|
+
}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import _m0 from "protobufjs/minimal";
|
|
3
|
+
import { EvidenceList } from "./evidence";
|
|
4
|
+
import { Commit, Data, Header } from "./types";
|
|
5
|
+
|
|
6
|
+
export const protobufPackage = "tendermint.types";
|
|
7
|
+
|
|
8
|
+
export interface Block {
|
|
9
|
+
header: Header | undefined;
|
|
10
|
+
data: Data | undefined;
|
|
11
|
+
evidence: EvidenceList | undefined;
|
|
12
|
+
lastCommit: Commit | undefined;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
function createBaseBlock(): Block {
|
|
16
|
+
return { header: undefined, data: undefined, evidence: undefined, lastCommit: undefined };
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export const Block = {
|
|
20
|
+
encode(message: Block, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
21
|
+
if (message.header !== undefined) {
|
|
22
|
+
Header.encode(message.header, writer.uint32(10).fork()).ldelim();
|
|
23
|
+
}
|
|
24
|
+
if (message.data !== undefined) {
|
|
25
|
+
Data.encode(message.data, writer.uint32(18).fork()).ldelim();
|
|
26
|
+
}
|
|
27
|
+
if (message.evidence !== undefined) {
|
|
28
|
+
EvidenceList.encode(message.evidence, writer.uint32(26).fork()).ldelim();
|
|
29
|
+
}
|
|
30
|
+
if (message.lastCommit !== undefined) {
|
|
31
|
+
Commit.encode(message.lastCommit, writer.uint32(34).fork()).ldelim();
|
|
32
|
+
}
|
|
33
|
+
return writer;
|
|
34
|
+
},
|
|
35
|
+
|
|
36
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Block {
|
|
37
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
38
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
39
|
+
const message = createBaseBlock();
|
|
40
|
+
while (reader.pos < end) {
|
|
41
|
+
const tag = reader.uint32();
|
|
42
|
+
switch (tag >>> 3) {
|
|
43
|
+
case 1:
|
|
44
|
+
message.header = Header.decode(reader, reader.uint32());
|
|
45
|
+
break;
|
|
46
|
+
case 2:
|
|
47
|
+
message.data = Data.decode(reader, reader.uint32());
|
|
48
|
+
break;
|
|
49
|
+
case 3:
|
|
50
|
+
message.evidence = EvidenceList.decode(reader, reader.uint32());
|
|
51
|
+
break;
|
|
52
|
+
case 4:
|
|
53
|
+
message.lastCommit = Commit.decode(reader, reader.uint32());
|
|
54
|
+
break;
|
|
55
|
+
default:
|
|
56
|
+
reader.skipType(tag & 7);
|
|
57
|
+
break;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
return message;
|
|
61
|
+
},
|
|
62
|
+
|
|
63
|
+
fromJSON(object: any): Block {
|
|
64
|
+
return {
|
|
65
|
+
header: isSet(object.header) ? Header.fromJSON(object.header) : undefined,
|
|
66
|
+
data: isSet(object.data) ? Data.fromJSON(object.data) : undefined,
|
|
67
|
+
evidence: isSet(object.evidence) ? EvidenceList.fromJSON(object.evidence) : undefined,
|
|
68
|
+
lastCommit: isSet(object.lastCommit) ? Commit.fromJSON(object.lastCommit) : undefined,
|
|
69
|
+
};
|
|
70
|
+
},
|
|
71
|
+
|
|
72
|
+
toJSON(message: Block): unknown {
|
|
73
|
+
const obj: any = {};
|
|
74
|
+
message.header !== undefined && (obj.header = message.header ? Header.toJSON(message.header) : undefined);
|
|
75
|
+
message.data !== undefined && (obj.data = message.data ? Data.toJSON(message.data) : undefined);
|
|
76
|
+
message.evidence !== undefined
|
|
77
|
+
&& (obj.evidence = message.evidence ? EvidenceList.toJSON(message.evidence) : undefined);
|
|
78
|
+
message.lastCommit !== undefined
|
|
79
|
+
&& (obj.lastCommit = message.lastCommit ? Commit.toJSON(message.lastCommit) : undefined);
|
|
80
|
+
return obj;
|
|
81
|
+
},
|
|
82
|
+
|
|
83
|
+
fromPartial<I extends Exact<DeepPartial<Block>, I>>(object: I): Block {
|
|
84
|
+
const message = createBaseBlock();
|
|
85
|
+
message.header = (object.header !== undefined && object.header !== null)
|
|
86
|
+
? Header.fromPartial(object.header)
|
|
87
|
+
: undefined;
|
|
88
|
+
message.data = (object.data !== undefined && object.data !== null) ? Data.fromPartial(object.data) : undefined;
|
|
89
|
+
message.evidence = (object.evidence !== undefined && object.evidence !== null)
|
|
90
|
+
? EvidenceList.fromPartial(object.evidence)
|
|
91
|
+
: undefined;
|
|
92
|
+
message.lastCommit = (object.lastCommit !== undefined && object.lastCommit !== null)
|
|
93
|
+
? Commit.fromPartial(object.lastCommit)
|
|
94
|
+
: undefined;
|
|
95
|
+
return message;
|
|
96
|
+
},
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
100
|
+
|
|
101
|
+
export type DeepPartial<T> = T extends Builtin ? T
|
|
102
|
+
: T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
103
|
+
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
104
|
+
: Partial<T>;
|
|
105
|
+
|
|
106
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
107
|
+
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
108
|
+
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
|
109
|
+
|
|
110
|
+
function isSet(value: any): boolean {
|
|
111
|
+
return value !== null && value !== undefined;
|
|
112
|
+
}
|