@burnt-labs/xion-types 0.0.1-test.1762962136
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/jest.config.js +18 -0
- package/package.json +56 -0
- package/scripts/aminos.ts +29 -0
- package/scripts/codegen.ts +94 -0
- package/scripts/download-protos.ts +248 -0
- package/telescope.config.json +84 -0
- package/tsconfig.esm.json +9 -0
- package/tsconfig.json +18 -0
- package/types/abstractaccount/bundle.ts +35 -0
- package/types/abstractaccount/client.ts +48 -0
- package/types/abstractaccount/lcd.ts +130 -0
- package/types/abstractaccount/rpc.query.ts +93 -0
- package/types/abstractaccount/rpc.tx.ts +74 -0
- package/types/abstractaccount/v1/account.ts +250 -0
- package/types/abstractaccount/v1/events.ts +135 -0
- package/types/abstractaccount/v1/genesis.ts +106 -0
- package/types/abstractaccount/v1/params.ts +192 -0
- package/types/abstractaccount/v1/query.lcd.ts +19 -0
- package/types/abstractaccount/v1/query.rpc.Query.ts +31 -0
- package/types/abstractaccount/v1/query.ts +160 -0
- package/types/abstractaccount/v1/tx.amino.ts +14 -0
- package/types/abstractaccount/v1/tx.registry.ts +53 -0
- package/types/abstractaccount/v1/tx.rpc.msg.ts +29 -0
- package/types/abstractaccount/v1/tx.ts +454 -0
- package/types/amino/amino.ts +1 -0
- package/types/amino/bundle.ts +5 -0
- package/types/binary.ts +535 -0
- package/types/cosmos/app/runtime/v1alpha1/module.ts +492 -0
- package/types/cosmos/app/v1alpha1/config.ts +437 -0
- package/types/cosmos/app/v1alpha1/module.ts +466 -0
- package/types/cosmos/app/v1alpha1/query.rpc.Query.ts +31 -0
- package/types/cosmos/app/v1alpha1/query.ts +176 -0
- package/types/cosmos/auth/module/v1/module.ts +288 -0
- package/types/cosmos/auth/v1beta1/auth.ts +562 -0
- package/types/cosmos/auth/v1beta1/genesis.ts +123 -0
- package/types/cosmos/auth/v1beta1/query.lcd.ts +91 -0
- package/types/cosmos/auth/v1beta1/query.rpc.Query.ts +137 -0
- package/types/cosmos/auth/v1beta1/query.ts +2005 -0
- package/types/cosmos/auth/v1beta1/tx.amino.ts +9 -0
- package/types/cosmos/auth/v1beta1/tx.registry.ts +35 -0
- package/types/cosmos/auth/v1beta1/tx.rpc.msg.ts +24 -0
- package/types/cosmos/auth/v1beta1/tx.ts +208 -0
- package/types/cosmos/authz/module/v1/module.ts +77 -0
- package/types/cosmos/authz/v1beta1/authz.ts +599 -0
- package/types/cosmos/authz/v1beta1/event.ts +274 -0
- package/types/cosmos/authz/v1beta1/genesis.ts +99 -0
- package/types/cosmos/authz/v1beta1/query.lcd.ts +59 -0
- package/types/cosmos/authz/v1beta1/query.rpc.Query.ts +53 -0
- package/types/cosmos/authz/v1beta1/query.ts +734 -0
- package/types/cosmos/authz/v1beta1/tx.amino.ts +19 -0
- package/types/cosmos/authz/v1beta1/tx.registry.ts +71 -0
- package/types/cosmos/authz/v1beta1/tx.rpc.msg.ts +49 -0
- package/types/cosmos/authz/v1beta1/tx.ts +666 -0
- package/types/cosmos/autocli/v1/options.ts +1317 -0
- package/types/cosmos/autocli/v1/query.rpc.Query.ts +32 -0
- package/types/cosmos/autocli/v1/query.ts +298 -0
- package/types/cosmos/bank/module/v1/module.ts +156 -0
- package/types/cosmos/bank/v1beta1/authz.ts +134 -0
- package/types/cosmos/bank/v1beta1/bank.ts +984 -0
- package/types/cosmos/bank/v1beta1/genesis.ts +316 -0
- package/types/cosmos/bank/v1beta1/query.lcd.ts +207 -0
- package/types/cosmos/bank/v1beta1/query.rpc.Query.ts +212 -0
- package/types/cosmos/bank/v1beta1/query.ts +3051 -0
- package/types/cosmos/bank/v1beta1/tx.amino.ts +24 -0
- package/types/cosmos/bank/v1beta1/tx.registry.ts +89 -0
- package/types/cosmos/bank/v1beta1/tx.rpc.msg.ts +53 -0
- package/types/cosmos/bank/v1beta1/tx.ts +845 -0
- package/types/cosmos/base/abci/v1beta1/abci.ts +1776 -0
- package/types/cosmos/base/node/v1beta1/query.lcd.ts +25 -0
- package/types/cosmos/base/node/v1beta1/query.rpc.Service.ts +42 -0
- package/types/cosmos/base/node/v1beta1/query.ts +467 -0
- package/types/cosmos/base/query/v1beta1/pagination.ts +372 -0
- package/types/cosmos/base/reflection/v1beta1/reflection.ts +385 -0
- package/types/cosmos/base/reflection/v2alpha1/reflection.ts +2790 -0
- package/types/cosmos/base/tendermint/v1beta1/query.lcd.ts +87 -0
- package/types/cosmos/base/tendermint/v1beta1/query.rpc.Service.ts +103 -0
- package/types/cosmos/base/tendermint/v1beta1/query.ts +2358 -0
- package/types/cosmos/base/tendermint/v1beta1/types.ts +492 -0
- package/types/cosmos/base/v1beta1/coin.ts +449 -0
- package/types/cosmos/benchmark/module/v1/module.ts +384 -0
- package/types/cosmos/benchmark/v1/benchmark.ts +186 -0
- package/types/cosmos/benchmark/v1/tx.amino.ts +9 -0
- package/types/cosmos/benchmark/v1/tx.registry.ts +35 -0
- package/types/cosmos/benchmark/v1/tx.rpc.msg.ts +21 -0
- package/types/cosmos/benchmark/v1/tx.ts +224 -0
- package/types/cosmos/bundle.ts +807 -0
- package/types/cosmos/circuit/module/v1/module.ts +100 -0
- package/types/cosmos/circuit/v1/query.lcd.ts +40 -0
- package/types/cosmos/circuit/v1/query.rpc.Query.ts +55 -0
- package/types/cosmos/circuit/v1/query.ts +576 -0
- package/types/cosmos/circuit/v1/tx.amino.ts +19 -0
- package/types/cosmos/circuit/v1/tx.registry.ts +71 -0
- package/types/cosmos/circuit/v1/tx.rpc.msg.ts +43 -0
- package/types/cosmos/circuit/v1/tx.ts +685 -0
- package/types/cosmos/circuit/v1/types.ts +419 -0
- package/types/cosmos/client.ts +100 -0
- package/types/cosmos/consensus/module/v1/module.ts +100 -0
- package/types/cosmos/consensus/v1/query.lcd.ts +19 -0
- package/types/cosmos/consensus/v1/query.rpc.Query.ts +31 -0
- package/types/cosmos/consensus/v1/query.ts +182 -0
- package/types/cosmos/consensus/v1/tx.amino.ts +9 -0
- package/types/cosmos/consensus/v1/tx.registry.ts +35 -0
- package/types/cosmos/consensus/v1/tx.rpc.msg.ts +24 -0
- package/types/cosmos/consensus/v1/tx.ts +257 -0
- package/types/cosmos/counter/module/v1/module.ts +100 -0
- package/types/cosmos/counter/v1/query.rpc.Query.ts +31 -0
- package/types/cosmos/counter/v1/query.ts +171 -0
- package/types/cosmos/counter/v1/tx.amino.ts +9 -0
- package/types/cosmos/counter/v1/tx.registry.ts +35 -0
- package/types/cosmos/counter/v1/tx.rpc.msg.ts +21 -0
- package/types/cosmos/counter/v1/tx.ts +217 -0
- package/types/cosmos/crisis/module/v1/module.ts +119 -0
- package/types/cosmos/crisis/v1beta1/genesis.ts +105 -0
- package/types/cosmos/crisis/v1beta1/tx.amino.ts +14 -0
- package/types/cosmos/crisis/v1beta1/tx.registry.ts +53 -0
- package/types/cosmos/crisis/v1beta1/tx.rpc.msg.ts +32 -0
- package/types/cosmos/crisis/v1beta1/tx.ts +413 -0
- package/types/cosmos/crypto/bls12_381/keys.ts +207 -0
- package/types/cosmos/crypto/ed25519/keys.ts +214 -0
- package/types/cosmos/crypto/hd/v1/hd.ts +180 -0
- package/types/cosmos/crypto/keyring/v1/record.ts +542 -0
- package/types/cosmos/crypto/multisig/keys.ts +124 -0
- package/types/cosmos/crypto/multisig/v1beta1/multisig.ts +231 -0
- package/types/cosmos/crypto/secp256k1/keys.ts +207 -0
- package/types/cosmos/crypto/secp256r1/keys.ts +203 -0
- package/types/cosmos/distribution/module/v1/module.ts +115 -0
- package/types/cosmos/distribution/v1beta1/distribution.ts +1551 -0
- package/types/cosmos/distribution/v1beta1/genesis.ts +1208 -0
- package/types/cosmos/distribution/v1beta1/query.lcd.ts +89 -0
- package/types/cosmos/distribution/v1beta1/query.rpc.Query.ts +137 -0
- package/types/cosmos/distribution/v1beta1/query.ts +2195 -0
- package/types/cosmos/distribution/v1beta1/tx.amino.ts +39 -0
- package/types/cosmos/distribution/v1beta1/tx.registry.ts +143 -0
- package/types/cosmos/distribution/v1beta1/tx.rpc.msg.ts +96 -0
- package/types/cosmos/distribution/v1beta1/tx.ts +1460 -0
- package/types/cosmos/epochs/module/v1/module.ts +77 -0
- package/types/cosmos/epochs/v1beta1/events.ts +205 -0
- package/types/cosmos/epochs/v1beta1/genesis.ts +384 -0
- package/types/cosmos/epochs/v1beta1/query.lcd.ts +31 -0
- package/types/cosmos/epochs/v1beta1/query.rpc.Query.ts +42 -0
- package/types/cosmos/epochs/v1beta1/query.ts +390 -0
- package/types/cosmos/evidence/module/v1/module.ts +77 -0
- package/types/cosmos/evidence/v1beta1/evidence.ts +166 -0
- package/types/cosmos/evidence/v1beta1/genesis.ts +103 -0
- package/types/cosmos/evidence/v1beta1/query.lcd.ts +40 -0
- package/types/cosmos/evidence/v1beta1/query.rpc.Query.ts +44 -0
- package/types/cosmos/evidence/v1beta1/query.ts +458 -0
- package/types/cosmos/evidence/v1beta1/tx.amino.ts +9 -0
- package/types/cosmos/evidence/v1beta1/tx.registry.ts +35 -0
- package/types/cosmos/evidence/v1beta1/tx.rpc.msg.ts +24 -0
- package/types/cosmos/evidence/v1beta1/tx.ts +243 -0
- package/types/cosmos/feegrant/module/v1/module.ts +77 -0
- package/types/cosmos/feegrant/v1beta1/feegrant.ts +701 -0
- package/types/cosmos/feegrant/v1beta1/genesis.ts +99 -0
- package/types/cosmos/feegrant/v1beta1/query.lcd.ts +44 -0
- package/types/cosmos/feegrant/v1beta1/query.rpc.Query.ts +53 -0
- package/types/cosmos/feegrant/v1beta1/query.ts +683 -0
- package/types/cosmos/feegrant/v1beta1/tx.amino.ts +19 -0
- package/types/cosmos/feegrant/v1beta1/tx.registry.ts +71 -0
- package/types/cosmos/feegrant/v1beta1/tx.rpc.msg.ts +43 -0
- package/types/cosmos/feegrant/v1beta1/tx.ts +683 -0
- package/types/cosmos/genutil/module/v1/module.ts +77 -0
- package/types/cosmos/genutil/v1beta1/genesis.ts +103 -0
- package/types/cosmos/gov/module/v1/module.ts +123 -0
- package/types/cosmos/gov/v1/genesis.ts +288 -0
- package/types/cosmos/gov/v1/gov.ts +1889 -0
- package/types/cosmos/gov/v1/query.lcd.ts +95 -0
- package/types/cosmos/gov/v1/query.rpc.Query.ts +119 -0
- package/types/cosmos/gov/v1/query.ts +2026 -0
- package/types/cosmos/gov/v1/tx.amino.ts +39 -0
- package/types/cosmos/gov/v1/tx.registry.ts +143 -0
- package/types/cosmos/gov/v1/tx.rpc.msg.ts +75 -0
- package/types/cosmos/gov/v1/tx.ts +1911 -0
- package/types/cosmos/gov/v1beta1/genesis.ts +221 -0
- package/types/cosmos/gov/v1beta1/gov.ts +1725 -0
- package/types/cosmos/gov/v1beta1/query.lcd.ts +89 -0
- package/types/cosmos/gov/v1beta1/query.rpc.Query.ts +108 -0
- package/types/cosmos/gov/v1beta1/query.ts +1813 -0
- package/types/cosmos/gov/v1beta1/tx.amino.ts +24 -0
- package/types/cosmos/gov/v1beta1/tx.registry.ts +89 -0
- package/types/cosmos/gov/v1beta1/tx.rpc.msg.ts +45 -0
- package/types/cosmos/gov/v1beta1/tx.ts +1128 -0
- package/types/cosmos/group/module/v1/module.ts +128 -0
- package/types/cosmos/group/v1/events.ts +1195 -0
- package/types/cosmos/group/v1/genesis.ts +256 -0
- package/types/cosmos/group/v1/query.lcd.ts +158 -0
- package/types/cosmos/group/v1/query.rpc.Query.ts +182 -0
- package/types/cosmos/group/v1/query.ts +3108 -0
- package/types/cosmos/group/v1/tx.amino.ts +74 -0
- package/types/cosmos/group/v1/tx.registry.ts +269 -0
- package/types/cosmos/group/v1/tx.rpc.msg.ts +125 -0
- package/types/cosmos/group/v1/tx.ts +3353 -0
- package/types/cosmos/group/v1/types.ts +2248 -0
- package/types/cosmos/ics23/v1/proofs.ts +2167 -0
- package/types/cosmos/lcd.ts +125 -0
- package/types/cosmos/mint/module/v1/module.ts +115 -0
- package/types/cosmos/mint/v1beta1/genesis.ts +120 -0
- package/types/cosmos/mint/v1beta1/mint.ts +313 -0
- package/types/cosmos/mint/v1beta1/query.lcd.ts +31 -0
- package/types/cosmos/mint/v1beta1/query.rpc.Query.ts +53 -0
- package/types/cosmos/mint/v1beta1/query.ts +544 -0
- package/types/cosmos/mint/v1beta1/tx.amino.ts +9 -0
- package/types/cosmos/mint/v1beta1/tx.registry.ts +35 -0
- package/types/cosmos/mint/v1beta1/tx.rpc.msg.ts +24 -0
- package/types/cosmos/mint/v1beta1/tx.ts +208 -0
- package/types/cosmos/msg/textual/v1/textual.ts +1 -0
- package/types/cosmos/msg/v1/msg.ts +1 -0
- package/types/cosmos/nft/module/v1/module.ts +77 -0
- package/types/cosmos/nft/v1beta1/event.ts +429 -0
- package/types/cosmos/nft/v1beta1/genesis.ts +243 -0
- package/types/cosmos/nft/v1beta1/nft.ts +389 -0
- package/types/cosmos/nft/v1beta1/query.lcd.ts +77 -0
- package/types/cosmos/nft/v1beta1/query.rpc.Query.ts +102 -0
- package/types/cosmos/nft/v1beta1/query.ts +1513 -0
- package/types/cosmos/nft/v1beta1/tx.amino.ts +9 -0
- package/types/cosmos/nft/v1beta1/tx.registry.ts +35 -0
- package/types/cosmos/nft/v1beta1/tx.rpc.msg.ts +21 -0
- package/types/cosmos/nft/v1beta1/tx.ts +232 -0
- package/types/cosmos/params/module/v1/module.ts +77 -0
- package/types/cosmos/params/v1beta1/params.ts +262 -0
- package/types/cosmos/params/v1beta1/query.lcd.ts +35 -0
- package/types/cosmos/params/v1beta1/query.rpc.Query.ts +45 -0
- package/types/cosmos/params/v1beta1/query.ts +521 -0
- package/types/cosmos/protocolpool/module/v1/module.ts +100 -0
- package/types/cosmos/protocolpool/v1/genesis.ts +126 -0
- package/types/cosmos/protocolpool/v1/query.lcd.ts +37 -0
- package/types/cosmos/protocolpool/v1/query.rpc.Query.ts +64 -0
- package/types/cosmos/protocolpool/v1/query.ts +761 -0
- package/types/cosmos/protocolpool/v1/tx.amino.ts +29 -0
- package/types/cosmos/protocolpool/v1/tx.registry.ts +107 -0
- package/types/cosmos/protocolpool/v1/tx.rpc.msg.ts +69 -0
- package/types/cosmos/protocolpool/v1/tx.ts +1124 -0
- package/types/cosmos/protocolpool/v1/types.ts +268 -0
- package/types/cosmos/query/v1/query.ts +1 -0
- package/types/cosmos/reflection/v1/reflection.ts +178 -0
- package/types/cosmos/rpc.query.ts +90 -0
- package/types/cosmos/rpc.tx.ts +71 -0
- package/types/cosmos/slashing/module/v1/module.ts +100 -0
- package/types/cosmos/slashing/v1beta1/genesis.ts +511 -0
- package/types/cosmos/slashing/v1beta1/query.lcd.ts +40 -0
- package/types/cosmos/slashing/v1beta1/query.rpc.Query.ts +55 -0
- package/types/cosmos/slashing/v1beta1/query.ts +606 -0
- package/types/cosmos/slashing/v1beta1/slashing.ts +371 -0
- package/types/cosmos/slashing/v1beta1/tx.amino.ts +14 -0
- package/types/cosmos/slashing/v1beta1/tx.registry.ts +53 -0
- package/types/cosmos/slashing/v1beta1/tx.rpc.msg.ts +36 -0
- package/types/cosmos/slashing/v1beta1/tx.ts +377 -0
- package/types/cosmos/staking/module/v1/module.ts +165 -0
- package/types/cosmos/staking/v1beta1/authz.ts +321 -0
- package/types/cosmos/staking/v1beta1/genesis.ts +370 -0
- package/types/cosmos/staking/v1beta1/query.lcd.ts +174 -0
- package/types/cosmos/staking/v1beta1/query.rpc.Query.ts +217 -0
- package/types/cosmos/staking/v1beta1/query.ts +3187 -0
- package/types/cosmos/staking/v1beta1/staking.ts +3193 -0
- package/types/cosmos/staking/v1beta1/tx.amino.ts +39 -0
- package/types/cosmos/staking/v1beta1/tx.registry.ts +143 -0
- package/types/cosmos/staking/v1beta1/tx.rpc.msg.ts +84 -0
- package/types/cosmos/staking/v1beta1/tx.ts +1642 -0
- package/types/cosmos/store/internal/kv/v1beta1/kv.ts +208 -0
- package/types/cosmos/store/snapshots/v1/snapshot.ts +840 -0
- package/types/cosmos/store/streaming/abci/grpc.ts +393 -0
- package/types/cosmos/store/v1beta1/commit_info.ts +369 -0
- package/types/cosmos/store/v1beta1/listening.ts +296 -0
- package/types/cosmos/tx/config/v1/config.ts +127 -0
- package/types/cosmos/tx/signing/v1beta1/signing.ts +713 -0
- package/types/cosmos/tx/v1beta1/service.lcd.ts +59 -0
- package/types/cosmos/tx/v1beta1/service.rpc.Service.ts +119 -0
- package/types/cosmos/tx/v1beta1/service.ts +2319 -0
- package/types/cosmos/tx/v1beta1/tx.ts +2168 -0
- package/types/cosmos/upgrade/module/v1/module.ts +100 -0
- package/types/cosmos/upgrade/v1beta1/query.lcd.ts +54 -0
- package/types/cosmos/upgrade/v1beta1/query.rpc.Query.ts +82 -0
- package/types/cosmos/upgrade/v1beta1/query.ts +1004 -0
- package/types/cosmos/upgrade/v1beta1/tx.amino.ts +14 -0
- package/types/cosmos/upgrade/v1beta1/tx.registry.ts +53 -0
- package/types/cosmos/upgrade/v1beta1/tx.rpc.msg.ts +32 -0
- package/types/cosmos/upgrade/v1beta1/tx.ts +368 -0
- package/types/cosmos/upgrade/v1beta1/upgrade.ts +623 -0
- package/types/cosmos/vesting/module/v1/module.ts +77 -0
- package/types/cosmos/vesting/v1beta1/tx.amino.ts +19 -0
- package/types/cosmos/vesting/v1beta1/tx.registry.ts +71 -0
- package/types/cosmos/vesting/v1beta1/tx.rpc.msg.ts +46 -0
- package/types/cosmos/vesting/v1beta1/tx.ts +688 -0
- package/types/cosmos/vesting/v1beta1/vesting.ts +751 -0
- package/types/cosmos_proto/bundle.ts +5 -0
- package/types/cosmos_proto/cosmos.ts +355 -0
- package/types/cosmwasm/bundle.ts +39 -0
- package/types/cosmwasm/client.ts +48 -0
- package/types/cosmwasm/lcd.ts +132 -0
- package/types/cosmwasm/rpc.query.ts +95 -0
- package/types/cosmwasm/rpc.tx.ts +76 -0
- package/types/cosmwasm/wasm/v1/authz.ts +1409 -0
- package/types/cosmwasm/wasm/v1/genesis.ts +544 -0
- package/types/cosmwasm/wasm/v1/ibc.ts +437 -0
- package/types/cosmwasm/wasm/v1/proposal_legacy.ts +2711 -0
- package/types/cosmwasm/wasm/v1/query.lcd.ts +154 -0
- package/types/cosmwasm/wasm/v1/query.rpc.Query.ts +181 -0
- package/types/cosmwasm/wasm/v1/query.ts +3339 -0
- package/types/cosmwasm/wasm/v1/tx.amino.ts +89 -0
- package/types/cosmwasm/wasm/v1/tx.registry.ts +323 -0
- package/types/cosmwasm/wasm/v1/tx.rpc.msg.ts +197 -0
- package/types/cosmwasm/wasm/v1/tx.ts +4403 -0
- package/types/cosmwasm/wasm/v1/types.ts +1193 -0
- package/types/gogoproto/bundle.ts +5 -0
- package/types/gogoproto/gogo.ts +1 -0
- package/types/google/api/annotations.ts +1 -0
- package/types/google/api/apikeys/v2/apikeys.ts +1245 -0
- package/types/google/api/apikeys/v2/resources.ts +1268 -0
- package/types/google/api/auth.ts +1175 -0
- package/types/google/api/backend.ts +691 -0
- package/types/google/api/billing.ts +333 -0
- package/types/google/api/client.ts +3100 -0
- package/types/google/api/cloudquotas/v1/cloudquotas.ts +1196 -0
- package/types/google/api/cloudquotas/v1/resources.ts +2065 -0
- package/types/google/api/cloudquotas/v1beta/cloudquotas.ts +1196 -0
- package/types/google/api/cloudquotas/v1beta/quota_adjuster_settings.ts +509 -0
- package/types/google/api/cloudquotas/v1beta/resources.ts +2069 -0
- package/types/google/api/config_change.ts +385 -0
- package/types/google/api/consumer.ts +362 -0
- package/types/google/api/context.ts +418 -0
- package/types/google/api/control.ts +141 -0
- package/types/google/api/distribution.ts +1253 -0
- package/types/google/api/documentation.ts +738 -0
- package/types/google/api/endpoint.ts +245 -0
- package/types/google/api/error_reason.ts +816 -0
- package/types/google/api/expr/conformance/v1alpha1/conformance_service.ts +1293 -0
- package/types/google/api/expr/v1alpha1/checked.ts +2259 -0
- package/types/google/api/expr/v1alpha1/eval.ts +675 -0
- package/types/google/api/expr/v1alpha1/explain.ts +257 -0
- package/types/google/api/expr/v1alpha1/syntax.ts +2983 -0
- package/types/google/api/expr/v1alpha1/value.ts +771 -0
- package/types/google/api/expr/v1beta1/decl.ts +563 -0
- package/types/google/api/expr/v1beta1/eval.ts +758 -0
- package/types/google/api/expr/v1beta1/expr.ts +1750 -0
- package/types/google/api/expr/v1beta1/source.ts +446 -0
- package/types/google/api/expr/v1beta1/value.ts +771 -0
- package/types/google/api/field_behavior.ts +136 -0
- package/types/google/api/field_info.ts +319 -0
- package/types/google/api/http.ts +1362 -0
- package/types/google/api/httpbody.ts +270 -0
- package/types/google/api/label.ts +174 -0
- package/types/google/api/launch_stage.ts +112 -0
- package/types/google/api/log.ts +201 -0
- package/types/google/api/logging.ts +355 -0
- package/types/google/api/metric.ts +1174 -0
- package/types/google/api/monitored_resource.ts +841 -0
- package/types/google/api/monitoring.ts +430 -0
- package/types/google/api/policy.ts +314 -0
- package/types/google/api/quota.ts +1040 -0
- package/types/google/api/resource.ts +769 -0
- package/types/google/api/routing.ts +1405 -0
- package/types/google/api/service.ts +790 -0
- package/types/google/api/servicecontrol/v1/check_error.ts +366 -0
- package/types/google/api/servicecontrol/v1/distribution.ts +773 -0
- package/types/google/api/servicecontrol/v1/http_request.ts +427 -0
- package/types/google/api/servicecontrol/v1/log_entry.ts +804 -0
- package/types/google/api/servicecontrol/v1/metric_value.ts +499 -0
- package/types/google/api/servicecontrol/v1/operation.ts +544 -0
- package/types/google/api/servicecontrol/v1/quota_controller.ts +1041 -0
- package/types/google/api/servicecontrol/v1/service_controller.ts +1164 -0
- package/types/google/api/servicecontrol/v2/service_controller.ts +949 -0
- package/types/google/api/servicemanagement/v1/resources.ts +1888 -0
- package/types/google/api/servicemanagement/v1/servicemanager.ts +2444 -0
- package/types/google/api/serviceusage/v1/resources.ts +629 -0
- package/types/google/api/serviceusage/v1/serviceusage.ts +1530 -0
- package/types/google/api/serviceusage/v1beta1/resources.ts +2972 -0
- package/types/google/api/serviceusage/v1beta1/serviceusage.ts +4567 -0
- package/types/google/api/source_info.ts +97 -0
- package/types/google/api/system_parameter.ts +461 -0
- package/types/google/api/usage.ts +404 -0
- package/types/google/api/visibility.ts +328 -0
- package/types/google/bundle.ts +115 -0
- package/types/google/logging/type/log_severity.ts +104 -0
- package/types/google/longrunning/operations.ts +1153 -0
- package/types/google/protobuf/any.ts +424 -0
- package/types/google/protobuf/api.ts +942 -0
- package/types/google/protobuf/descriptor.ts +7801 -0
- package/types/google/protobuf/duration.ts +284 -0
- package/types/google/protobuf/empty.ts +93 -0
- package/types/google/protobuf/field_mask.ts +694 -0
- package/types/google/protobuf/source_context.ts +105 -0
- package/types/google/protobuf/struct.ts +584 -0
- package/types/google/protobuf/timestamp.ts +373 -0
- package/types/google/protobuf/type.ts +1279 -0
- package/types/google/protobuf/wrappers.ts +1002 -0
- package/types/google/rpc/code.ts +286 -0
- package/types/google/rpc/context/attribute_context.ts +2517 -0
- package/types/google/rpc/context/audit_context.ts +188 -0
- package/types/google/rpc/error_details.ts +2467 -0
- package/types/google/rpc/http.ts +424 -0
- package/types/google/rpc/status.ts +173 -0
- package/types/helpers.ts +259 -0
- package/types/ibc/applications/interchain_accounts/controller/v1/controller.ts +107 -0
- package/types/ibc/applications/interchain_accounts/controller/v1/query.lcd.ts +25 -0
- package/types/ibc/applications/interchain_accounts/controller/v1/query.rpc.Query.ts +42 -0
- package/types/ibc/applications/interchain_accounts/controller/v1/query.ts +379 -0
- package/types/ibc/applications/interchain_accounts/controller/v1/tx.amino.ts +19 -0
- package/types/ibc/applications/interchain_accounts/controller/v1/tx.registry.ts +71 -0
- package/types/ibc/applications/interchain_accounts/controller/v1/tx.rpc.msg.ts +37 -0
- package/types/ibc/applications/interchain_accounts/controller/v1/tx.ts +692 -0
- package/types/ibc/applications/interchain_accounts/genesis/v1/genesis.ts +675 -0
- package/types/ibc/applications/interchain_accounts/host/v1/host.ts +261 -0
- package/types/ibc/applications/interchain_accounts/host/v1/query.lcd.ts +19 -0
- package/types/ibc/applications/interchain_accounts/host/v1/query.rpc.Query.ts +31 -0
- package/types/ibc/applications/interchain_accounts/host/v1/query.ts +176 -0
- package/types/ibc/applications/interchain_accounts/host/v1/tx.amino.ts +14 -0
- package/types/ibc/applications/interchain_accounts/host/v1/tx.registry.ts +53 -0
- package/types/ibc/applications/interchain_accounts/host/v1/tx.rpc.msg.ts +29 -0
- package/types/ibc/applications/interchain_accounts/host/v1/tx.ts +440 -0
- package/types/ibc/applications/interchain_accounts/v1/account.ts +115 -0
- package/types/ibc/applications/interchain_accounts/v1/metadata.ts +206 -0
- package/types/ibc/applications/interchain_accounts/v1/packet.ts +262 -0
- package/types/ibc/applications/transfer/v1/authz.ts +297 -0
- package/types/ibc/applications/transfer/v1/denomtrace.ts +133 -0
- package/types/ibc/applications/transfer/v1/genesis.ts +156 -0
- package/types/ibc/applications/transfer/v1/packet.ts +186 -0
- package/types/ibc/applications/transfer/v1/query.lcd.ts +76 -0
- package/types/ibc/applications/transfer/v1/query.rpc.Query.ts +88 -0
- package/types/ibc/applications/transfer/v1/query.ts +1233 -0
- package/types/ibc/applications/transfer/v1/token.ts +347 -0
- package/types/ibc/applications/transfer/v1/transfer.ts +140 -0
- package/types/ibc/applications/transfer/v1/tx.amino.ts +14 -0
- package/types/ibc/applications/transfer/v1/tx.registry.ts +53 -0
- package/types/ibc/applications/transfer/v1/tx.rpc.msg.ts +29 -0
- package/types/ibc/applications/transfer/v1/tx.ts +579 -0
- package/types/ibc/bundle.ts +265 -0
- package/types/ibc/client.ts +72 -0
- package/types/ibc/core/channel/v1/channel.ts +1455 -0
- package/types/ibc/core/channel/v1/genesis.ts +351 -0
- package/types/ibc/core/channel/v1/query.lcd.ts +135 -0
- package/types/ibc/core/channel/v1/query.rpc.Query.ts +200 -0
- package/types/ibc/core/channel/v1/query.ts +3943 -0
- package/types/ibc/core/channel/v1/tx.amino.ts +54 -0
- package/types/ibc/core/channel/v1/tx.registry.ts +197 -0
- package/types/ibc/core/channel/v1/tx.rpc.msg.ts +96 -0
- package/types/ibc/core/channel/v1/tx.ts +2558 -0
- package/types/ibc/core/channel/v2/genesis.ts +433 -0
- package/types/ibc/core/channel/v2/packet.ts +640 -0
- package/types/ibc/core/channel/v2/query.lcd.ts +77 -0
- package/types/ibc/core/channel/v2/query.rpc.Query.ts +108 -0
- package/types/ibc/core/channel/v2/query.ts +2075 -0
- package/types/ibc/core/channel/v2/tx.amino.ts +24 -0
- package/types/ibc/core/channel/v2/tx.registry.ts +89 -0
- package/types/ibc/core/channel/v2/tx.rpc.msg.ts +45 -0
- package/types/ibc/core/channel/v2/tx.ts +1003 -0
- package/types/ibc/core/client/v1/client.ts +636 -0
- package/types/ibc/core/client/v1/genesis.ts +448 -0
- package/types/ibc/core/client/v1/query.lcd.ts +102 -0
- package/types/ibc/core/client/v1/query.rpc.Query.ts +149 -0
- package/types/ibc/core/client/v1/query.ts +2588 -0
- package/types/ibc/core/client/v1/tx.amino.ts +44 -0
- package/types/ibc/core/client/v1/tx.registry.ts +161 -0
- package/types/ibc/core/client/v1/tx.rpc.msg.ts +77 -0
- package/types/ibc/core/client/v1/tx.ts +1796 -0
- package/types/ibc/core/client/v2/config.ts +115 -0
- package/types/ibc/core/client/v2/counterparty.ts +122 -0
- package/types/ibc/core/client/v2/genesis.ts +220 -0
- package/types/ibc/core/client/v2/query.lcd.ts +25 -0
- package/types/ibc/core/client/v2/query.rpc.Query.ts +42 -0
- package/types/ibc/core/client/v2/query.ts +402 -0
- package/types/ibc/core/client/v2/tx.amino.ts +14 -0
- package/types/ibc/core/client/v2/tx.registry.ts +53 -0
- package/types/ibc/core/client/v2/tx.rpc.msg.ts +29 -0
- package/types/ibc/core/client/v2/tx.ts +453 -0
- package/types/ibc/core/commitment/v1/commitment.ts +321 -0
- package/types/ibc/core/commitment/v2/commitment.ts +193 -0
- package/types/ibc/core/connection/v1/connection.ts +1056 -0
- package/types/ibc/core/connection/v1/genesis.ts +150 -0
- package/types/ibc/core/connection/v1/query.lcd.ts +61 -0
- package/types/ibc/core/connection/v1/query.rpc.Query.ts +97 -0
- package/types/ibc/core/connection/v1/query.ts +1472 -0
- package/types/ibc/core/connection/v1/tx.amino.ts +29 -0
- package/types/ibc/core/connection/v1/tx.registry.ts +107 -0
- package/types/ibc/core/connection/v1/tx.rpc.msg.ts +59 -0
- package/types/ibc/core/connection/v1/tx.ts +1456 -0
- package/types/ibc/core/types/v1/genesis.ts +191 -0
- package/types/ibc/lcd.ts +176 -0
- package/types/ibc/lightclients/solomachine/v2/solomachine.ts +2161 -0
- package/types/ibc/lightclients/solomachine/v3/solomachine.ts +1114 -0
- package/types/ibc/lightclients/tendermint/v1/tendermint.ts +891 -0
- package/types/ibc/lightclients/wasm/v1/genesis.ts +201 -0
- package/types/ibc/lightclients/wasm/v1/query.lcd.ts +34 -0
- package/types/ibc/lightclients/wasm/v1/query.rpc.Query.ts +44 -0
- package/types/ibc/lightclients/wasm/v1/query.ts +413 -0
- package/types/ibc/lightclients/wasm/v1/tx.amino.ts +19 -0
- package/types/ibc/lightclients/wasm/v1/tx.registry.ts +71 -0
- package/types/ibc/lightclients/wasm/v1/tx.rpc.msg.ts +37 -0
- package/types/ibc/lightclients/wasm/v1/tx.ts +640 -0
- package/types/ibc/lightclients/wasm/v1/wasm.ts +444 -0
- package/types/ibc/rpc.query.ts +123 -0
- package/types/ibc/rpc.tx.ts +104 -0
- package/types/index.ts +25 -0
- package/types/tendermint/abci/types.ts +6565 -0
- package/types/tendermint/bundle.ts +33 -0
- package/types/tendermint/crypto/keys.ts +106 -0
- package/types/tendermint/crypto/proof.ts +576 -0
- package/types/tendermint/p2p/types.ts +523 -0
- package/types/tendermint/types/block.ts +134 -0
- package/types/tendermint/types/evidence.ts +491 -0
- package/types/tendermint/types/params.ts +839 -0
- package/types/tendermint/types/types.ts +2266 -0
- package/types/tendermint/types/validator.ts +399 -0
- package/types/tendermint/version/types.ts +228 -0
- package/types/utf8.ts +149 -0
- package/types/varint.ts +489 -0
- package/types/xion/bundle.ts +117 -0
- package/types/xion/client.ts +57 -0
- package/types/xion/feeabs/v1beta1/epoch.ts +386 -0
- package/types/xion/feeabs/v1beta1/genesis.ts +136 -0
- package/types/xion/feeabs/v1beta1/osmosisibc.ts +868 -0
- package/types/xion/feeabs/v1beta1/params.ts +189 -0
- package/types/xion/feeabs/v1beta1/proposal.ts +593 -0
- package/types/xion/feeabs/v1beta1/query.lcd.ts +37 -0
- package/types/xion/feeabs/v1beta1/query.rpc.Query.ts +64 -0
- package/types/xion/feeabs/v1beta1/query.ts +732 -0
- package/types/xion/feeabs/v1beta1/tx.amino.ts +39 -0
- package/types/xion/feeabs/v1beta1/tx.registry.ts +143 -0
- package/types/xion/feeabs/v1beta1/tx.rpc.msg.ts +72 -0
- package/types/xion/feeabs/v1beta1/tx.ts +1261 -0
- package/types/xion/globalfee/v1/genesis.ts +249 -0
- package/types/xion/globalfee/v1/query.lcd.ts +19 -0
- package/types/xion/globalfee/v1/query.rpc.Query.ts +31 -0
- package/types/xion/globalfee/v1/query.ts +178 -0
- package/types/xion/jwk/v1/audience.ts +224 -0
- package/types/xion/jwk/v1/genesis.ts +117 -0
- package/types/xion/jwk/v1/params.ts +113 -0
- package/types/xion/jwk/v1/query.lcd.ts +52 -0
- package/types/xion/jwk/v1/query.rpc.Query.ts +77 -0
- package/types/xion/jwk/v1/query.ts +1697 -0
- package/types/xion/jwk/v1/tx.amino.ts +29 -0
- package/types/xion/jwk/v1/tx.registry.ts +107 -0
- package/types/xion/jwk/v1/tx.rpc.msg.ts +53 -0
- package/types/xion/jwk/v1/tx.ts +1040 -0
- package/types/xion/lcd.ts +147 -0
- package/types/xion/mint/v1/event.ts +216 -0
- package/types/xion/mint/v1/genesis.ts +114 -0
- package/types/xion/mint/v1/mint.ts +307 -0
- package/types/xion/mint/v1/query.lcd.ts +31 -0
- package/types/xion/mint/v1/query.rpc.Query.ts +53 -0
- package/types/xion/mint/v1/query.ts +508 -0
- package/types/xion/mint/v1/tx.amino.ts +9 -0
- package/types/xion/mint/v1/tx.registry.ts +35 -0
- package/types/xion/mint/v1/tx.rpc.msg.ts +26 -0
- package/types/xion/mint/v1/tx.ts +222 -0
- package/types/xion/rpc.query.ts +105 -0
- package/types/xion/rpc.tx.ts +83 -0
- package/types/xion/v1/feegrant.ts +457 -0
- package/types/xion/v1/genesis.ts +116 -0
- package/types/xion/v1/query.rpc.Query.ts +64 -0
- package/types/xion/v1/query.ts +862 -0
- package/types/xion/v1/tx.amino.ts +24 -0
- package/types/xion/v1/tx.registry.ts +89 -0
- package/types/xion/v1/tx.rpc.msg.ts +57 -0
- package/types/xion/v1/tx.ts +793 -0
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
//@ts-nocheck
|
|
2
|
+
import * as _266 from "./feeabs/v1beta1/epoch";
|
|
3
|
+
import * as _267 from "./feeabs/v1beta1/genesis";
|
|
4
|
+
import * as _268 from "./feeabs/v1beta1/osmosisibc";
|
|
5
|
+
import * as _269 from "./feeabs/v1beta1/params";
|
|
6
|
+
import * as _270 from "./feeabs/v1beta1/proposal";
|
|
7
|
+
import * as _271 from "./feeabs/v1beta1/query";
|
|
8
|
+
import * as _272 from "./feeabs/v1beta1/tx";
|
|
9
|
+
import * as _273 from "./globalfee/v1/genesis";
|
|
10
|
+
import * as _274 from "./globalfee/v1/query";
|
|
11
|
+
import * as _275 from "./jwk/v1/audience";
|
|
12
|
+
import * as _276 from "./jwk/v1/genesis";
|
|
13
|
+
import * as _277 from "./jwk/v1/params";
|
|
14
|
+
import * as _278 from "./jwk/v1/query";
|
|
15
|
+
import * as _279 from "./jwk/v1/tx";
|
|
16
|
+
import * as _280 from "./mint/v1/event";
|
|
17
|
+
import * as _281 from "./mint/v1/genesis";
|
|
18
|
+
import * as _282 from "./mint/v1/mint";
|
|
19
|
+
import * as _283 from "./mint/v1/query";
|
|
20
|
+
import * as _284 from "./mint/v1/tx";
|
|
21
|
+
import * as _285 from "./v1/feegrant";
|
|
22
|
+
import * as _286 from "./v1/genesis";
|
|
23
|
+
import * as _287 from "./v1/query";
|
|
24
|
+
import * as _288 from "./v1/tx";
|
|
25
|
+
import * as _454 from "./feeabs/v1beta1/tx.amino";
|
|
26
|
+
import * as _455 from "./jwk/v1/tx.amino";
|
|
27
|
+
import * as _456 from "./mint/v1/tx.amino";
|
|
28
|
+
import * as _457 from "./v1/tx.amino";
|
|
29
|
+
import * as _458 from "./feeabs/v1beta1/tx.registry";
|
|
30
|
+
import * as _459 from "./jwk/v1/tx.registry";
|
|
31
|
+
import * as _460 from "./mint/v1/tx.registry";
|
|
32
|
+
import * as _461 from "./v1/tx.registry";
|
|
33
|
+
import * as _462 from "./feeabs/v1beta1/query.lcd";
|
|
34
|
+
import * as _463 from "./globalfee/v1/query.lcd";
|
|
35
|
+
import * as _464 from "./jwk/v1/query.lcd";
|
|
36
|
+
import * as _465 from "./mint/v1/query.lcd";
|
|
37
|
+
import * as _466 from "./feeabs/v1beta1/query.rpc.Query";
|
|
38
|
+
import * as _467 from "./globalfee/v1/query.rpc.Query";
|
|
39
|
+
import * as _468 from "./jwk/v1/query.rpc.Query";
|
|
40
|
+
import * as _469 from "./mint/v1/query.rpc.Query";
|
|
41
|
+
import * as _470 from "./v1/query.rpc.Query";
|
|
42
|
+
import * as _471 from "./feeabs/v1beta1/tx.rpc.msg";
|
|
43
|
+
import * as _472 from "./jwk/v1/tx.rpc.msg";
|
|
44
|
+
import * as _473 from "./mint/v1/tx.rpc.msg";
|
|
45
|
+
import * as _474 from "./v1/tx.rpc.msg";
|
|
46
|
+
import * as _487 from "./lcd";
|
|
47
|
+
import * as _488 from "./rpc.query";
|
|
48
|
+
import * as _489 from "./rpc.tx";
|
|
49
|
+
export namespace xion {
|
|
50
|
+
export namespace feeabs {
|
|
51
|
+
export const v1beta1 = {
|
|
52
|
+
..._266,
|
|
53
|
+
..._267,
|
|
54
|
+
..._268,
|
|
55
|
+
..._269,
|
|
56
|
+
..._270,
|
|
57
|
+
..._271,
|
|
58
|
+
..._272,
|
|
59
|
+
..._454,
|
|
60
|
+
..._458,
|
|
61
|
+
..._462,
|
|
62
|
+
..._466,
|
|
63
|
+
..._471
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
export namespace globalfee {
|
|
67
|
+
export const v1 = {
|
|
68
|
+
..._273,
|
|
69
|
+
..._274,
|
|
70
|
+
..._463,
|
|
71
|
+
..._467
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
export namespace jwk {
|
|
75
|
+
export const v1 = {
|
|
76
|
+
..._275,
|
|
77
|
+
..._276,
|
|
78
|
+
..._277,
|
|
79
|
+
..._278,
|
|
80
|
+
..._279,
|
|
81
|
+
..._455,
|
|
82
|
+
..._459,
|
|
83
|
+
..._464,
|
|
84
|
+
..._468,
|
|
85
|
+
..._472
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
export namespace mint {
|
|
89
|
+
export const v1 = {
|
|
90
|
+
..._280,
|
|
91
|
+
..._281,
|
|
92
|
+
..._282,
|
|
93
|
+
..._283,
|
|
94
|
+
..._284,
|
|
95
|
+
..._456,
|
|
96
|
+
..._460,
|
|
97
|
+
..._465,
|
|
98
|
+
..._469,
|
|
99
|
+
..._473
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
export const v1 = {
|
|
103
|
+
..._285,
|
|
104
|
+
..._286,
|
|
105
|
+
..._287,
|
|
106
|
+
..._288,
|
|
107
|
+
..._457,
|
|
108
|
+
..._461,
|
|
109
|
+
..._470,
|
|
110
|
+
..._474
|
|
111
|
+
};
|
|
112
|
+
export const ClientFactory = {
|
|
113
|
+
..._487,
|
|
114
|
+
..._488,
|
|
115
|
+
..._489
|
|
116
|
+
};
|
|
117
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
//@ts-nocheck
|
|
2
|
+
import { GeneratedType, Registry, OfflineSigner } from "@cosmjs/proto-signing";
|
|
3
|
+
import { defaultRegistryTypes, AminoTypes, SigningStargateClient } from "@cosmjs/stargate";
|
|
4
|
+
import { HttpEndpoint } from "@cosmjs/tendermint-rpc";
|
|
5
|
+
import * as xionFeeabsV1beta1TxRegistry from "./feeabs/v1beta1/tx.registry";
|
|
6
|
+
import * as xionJwkV1TxRegistry from "./jwk/v1/tx.registry";
|
|
7
|
+
import * as xionMintV1TxRegistry from "./mint/v1/tx.registry";
|
|
8
|
+
import * as xionV1TxRegistry from "./v1/tx.registry";
|
|
9
|
+
import * as xionFeeabsV1beta1TxAmino from "./feeabs/v1beta1/tx.amino";
|
|
10
|
+
import * as xionJwkV1TxAmino from "./jwk/v1/tx.amino";
|
|
11
|
+
import * as xionMintV1TxAmino from "./mint/v1/tx.amino";
|
|
12
|
+
import * as xionV1TxAmino from "./v1/tx.amino";
|
|
13
|
+
export const xionAminoConverters = {
|
|
14
|
+
...xionFeeabsV1beta1TxAmino.AminoConverter,
|
|
15
|
+
...xionJwkV1TxAmino.AminoConverter,
|
|
16
|
+
...xionMintV1TxAmino.AminoConverter,
|
|
17
|
+
...xionV1TxAmino.AminoConverter
|
|
18
|
+
};
|
|
19
|
+
export const xionProtoRegistry: ReadonlyArray<[string, GeneratedType]> = [...xionFeeabsV1beta1TxRegistry.registry, ...xionJwkV1TxRegistry.registry, ...xionMintV1TxRegistry.registry, ...xionV1TxRegistry.registry];
|
|
20
|
+
export const getSigningXionClientOptions = ({
|
|
21
|
+
defaultTypes = defaultRegistryTypes
|
|
22
|
+
}: {
|
|
23
|
+
defaultTypes?: ReadonlyArray<[string, GeneratedType]>;
|
|
24
|
+
} = {}): {
|
|
25
|
+
registry: Registry;
|
|
26
|
+
aminoTypes: AminoTypes;
|
|
27
|
+
} => {
|
|
28
|
+
const registry = new Registry([...defaultTypes, ...xionProtoRegistry]);
|
|
29
|
+
const aminoTypes = new AminoTypes({
|
|
30
|
+
...xionAminoConverters
|
|
31
|
+
});
|
|
32
|
+
return {
|
|
33
|
+
registry,
|
|
34
|
+
aminoTypes
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
export const getSigningXionClient = async ({
|
|
38
|
+
rpcEndpoint,
|
|
39
|
+
signer,
|
|
40
|
+
defaultTypes = defaultRegistryTypes
|
|
41
|
+
}: {
|
|
42
|
+
rpcEndpoint: string | HttpEndpoint;
|
|
43
|
+
signer: OfflineSigner;
|
|
44
|
+
defaultTypes?: ReadonlyArray<[string, GeneratedType]>;
|
|
45
|
+
}) => {
|
|
46
|
+
const {
|
|
47
|
+
registry,
|
|
48
|
+
aminoTypes
|
|
49
|
+
} = getSigningXionClientOptions({
|
|
50
|
+
defaultTypes
|
|
51
|
+
});
|
|
52
|
+
const client = await SigningStargateClient.connectWithSigner(rpcEndpoint, signer, {
|
|
53
|
+
registry: registry as any,
|
|
54
|
+
aminoTypes
|
|
55
|
+
});
|
|
56
|
+
return client;
|
|
57
|
+
};
|
|
@@ -0,0 +1,386 @@
|
|
|
1
|
+
//@ts-nocheck
|
|
2
|
+
import { Timestamp } from "../../../google/protobuf/timestamp";
|
|
3
|
+
import { Duration, DurationAmino, DurationSDKType } from "../../../google/protobuf/duration";
|
|
4
|
+
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
5
|
+
import { toTimestamp, fromTimestamp } from "../../../helpers";
|
|
6
|
+
/** EpochInfo defines information of a epoch */
|
|
7
|
+
export interface EpochInfo {
|
|
8
|
+
/** identifier is a unique reference to this particular timer. */
|
|
9
|
+
identifier: string;
|
|
10
|
+
/**
|
|
11
|
+
* start_time is the time at which the timer first ever ticks.
|
|
12
|
+
* If start_time is in the future, the epoch will not begin until the start
|
|
13
|
+
* time.
|
|
14
|
+
*/
|
|
15
|
+
startTime: Date;
|
|
16
|
+
/**
|
|
17
|
+
* duration is the time in between epoch ticks.
|
|
18
|
+
* In order for intended behavior to be met, duration should
|
|
19
|
+
* be greater than the chains expected block time.
|
|
20
|
+
* Duration must be non-zero.
|
|
21
|
+
*/
|
|
22
|
+
duration: Duration;
|
|
23
|
+
/**
|
|
24
|
+
* current_epoch is the current epoch number, or in other words,
|
|
25
|
+
* how many times has the timer 'ticked'.
|
|
26
|
+
* The first tick (current_epoch=1) is defined as
|
|
27
|
+
* the first block whose blocktime is greater than the EpochInfo start_time.
|
|
28
|
+
*/
|
|
29
|
+
currentEpoch: bigint;
|
|
30
|
+
/**
|
|
31
|
+
* current_epoch_start_time describes the start time of the current timer
|
|
32
|
+
* interval. The interval is (current_epoch_start_time,
|
|
33
|
+
* current_epoch_start_time + duration] When the timer ticks, this is set to
|
|
34
|
+
* current_epoch_start_time = last_epoch_start_time + duration only one timer
|
|
35
|
+
* tick for a given identifier can occur per block.
|
|
36
|
+
*
|
|
37
|
+
* NOTE! The current_epoch_start_time may diverge significantly from the
|
|
38
|
+
* wall-clock time the epoch began at. Wall-clock time of epoch start may be
|
|
39
|
+
* >> current_epoch_start_time. Suppose current_epoch_start_time = 10,
|
|
40
|
+
* duration = 5. Suppose the chain goes offline at t=14, and comes back online
|
|
41
|
+
* at t=30, and produces blocks at every successive time. (t=31, 32, etc.)
|
|
42
|
+
* * The t=30 block will start the epoch for (10, 15]
|
|
43
|
+
* * The t=31 block will start the epoch for (15, 20]
|
|
44
|
+
* * The t=32 block will start the epoch for (20, 25]
|
|
45
|
+
* * The t=33 block will start the epoch for (25, 30]
|
|
46
|
+
* * The t=34 block will start the epoch for (30, 35]
|
|
47
|
+
* * The **t=36** block will start the epoch for (35, 40]
|
|
48
|
+
*/
|
|
49
|
+
currentEpochStartTime: Date;
|
|
50
|
+
/**
|
|
51
|
+
* epoch_counting_started is a boolean, that indicates whether this
|
|
52
|
+
* epoch timer has began yet.
|
|
53
|
+
*/
|
|
54
|
+
epochCountingStarted: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* current_epoch_start_height is the block height at which the current epoch
|
|
57
|
+
* started. (The block height at which the timer last ticked)
|
|
58
|
+
*/
|
|
59
|
+
currentEpochStartHeight: bigint;
|
|
60
|
+
}
|
|
61
|
+
export interface EpochInfoProtoMsg {
|
|
62
|
+
typeUrl: "/xion.feeabs.v1beta1.EpochInfo";
|
|
63
|
+
value: Uint8Array;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* EpochInfo defines information of a epoch
|
|
67
|
+
* @name EpochInfoAmino
|
|
68
|
+
* @package xion.feeabs.v1beta1
|
|
69
|
+
* @see proto type: xion.feeabs.v1beta1.EpochInfo
|
|
70
|
+
*/
|
|
71
|
+
export interface EpochInfoAmino {
|
|
72
|
+
/**
|
|
73
|
+
* identifier is a unique reference to this particular timer.
|
|
74
|
+
*/
|
|
75
|
+
identifier?: string;
|
|
76
|
+
/**
|
|
77
|
+
* start_time is the time at which the timer first ever ticks.
|
|
78
|
+
* If start_time is in the future, the epoch will not begin until the start
|
|
79
|
+
* time.
|
|
80
|
+
*/
|
|
81
|
+
start_time?: string;
|
|
82
|
+
/**
|
|
83
|
+
* duration is the time in between epoch ticks.
|
|
84
|
+
* In order for intended behavior to be met, duration should
|
|
85
|
+
* be greater than the chains expected block time.
|
|
86
|
+
* Duration must be non-zero.
|
|
87
|
+
*/
|
|
88
|
+
duration?: DurationAmino;
|
|
89
|
+
/**
|
|
90
|
+
* current_epoch is the current epoch number, or in other words,
|
|
91
|
+
* how many times has the timer 'ticked'.
|
|
92
|
+
* The first tick (current_epoch=1) is defined as
|
|
93
|
+
* the first block whose blocktime is greater than the EpochInfo start_time.
|
|
94
|
+
*/
|
|
95
|
+
current_epoch?: string;
|
|
96
|
+
/**
|
|
97
|
+
* current_epoch_start_time describes the start time of the current timer
|
|
98
|
+
* interval. The interval is (current_epoch_start_time,
|
|
99
|
+
* current_epoch_start_time + duration] When the timer ticks, this is set to
|
|
100
|
+
* current_epoch_start_time = last_epoch_start_time + duration only one timer
|
|
101
|
+
* tick for a given identifier can occur per block.
|
|
102
|
+
*
|
|
103
|
+
* NOTE! The current_epoch_start_time may diverge significantly from the
|
|
104
|
+
* wall-clock time the epoch began at. Wall-clock time of epoch start may be
|
|
105
|
+
* >> current_epoch_start_time. Suppose current_epoch_start_time = 10,
|
|
106
|
+
* duration = 5. Suppose the chain goes offline at t=14, and comes back online
|
|
107
|
+
* at t=30, and produces blocks at every successive time. (t=31, 32, etc.)
|
|
108
|
+
* * The t=30 block will start the epoch for (10, 15]
|
|
109
|
+
* * The t=31 block will start the epoch for (15, 20]
|
|
110
|
+
* * The t=32 block will start the epoch for (20, 25]
|
|
111
|
+
* * The t=33 block will start the epoch for (25, 30]
|
|
112
|
+
* * The t=34 block will start the epoch for (30, 35]
|
|
113
|
+
* * The **t=36** block will start the epoch for (35, 40]
|
|
114
|
+
*/
|
|
115
|
+
current_epoch_start_time?: string;
|
|
116
|
+
/**
|
|
117
|
+
* epoch_counting_started is a boolean, that indicates whether this
|
|
118
|
+
* epoch timer has began yet.
|
|
119
|
+
*/
|
|
120
|
+
epoch_counting_started?: boolean;
|
|
121
|
+
/**
|
|
122
|
+
* current_epoch_start_height is the block height at which the current epoch
|
|
123
|
+
* started. (The block height at which the timer last ticked)
|
|
124
|
+
*/
|
|
125
|
+
current_epoch_start_height?: string;
|
|
126
|
+
}
|
|
127
|
+
export interface EpochInfoAminoMsg {
|
|
128
|
+
type: "/xion.feeabs.v1beta1.EpochInfo";
|
|
129
|
+
value: EpochInfoAmino;
|
|
130
|
+
}
|
|
131
|
+
/** EpochInfo defines information of a epoch */
|
|
132
|
+
export interface EpochInfoSDKType {
|
|
133
|
+
identifier: string;
|
|
134
|
+
start_time: Date;
|
|
135
|
+
duration: DurationSDKType;
|
|
136
|
+
current_epoch: bigint;
|
|
137
|
+
current_epoch_start_time: Date;
|
|
138
|
+
epoch_counting_started: boolean;
|
|
139
|
+
current_epoch_start_height: bigint;
|
|
140
|
+
}
|
|
141
|
+
/** ExponentialBackoff defines backoff epoch */
|
|
142
|
+
export interface ExponentialBackoff {
|
|
143
|
+
/** jump defines the exponential backoff multiplier */
|
|
144
|
+
jump: bigint;
|
|
145
|
+
/** future_epoch defines the target epoch for the backoff */
|
|
146
|
+
futureEpoch: bigint;
|
|
147
|
+
}
|
|
148
|
+
export interface ExponentialBackoffProtoMsg {
|
|
149
|
+
typeUrl: "/xion.feeabs.v1beta1.ExponentialBackoff";
|
|
150
|
+
value: Uint8Array;
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* ExponentialBackoff defines backoff epoch
|
|
154
|
+
* @name ExponentialBackoffAmino
|
|
155
|
+
* @package xion.feeabs.v1beta1
|
|
156
|
+
* @see proto type: xion.feeabs.v1beta1.ExponentialBackoff
|
|
157
|
+
*/
|
|
158
|
+
export interface ExponentialBackoffAmino {
|
|
159
|
+
/**
|
|
160
|
+
* jump defines the exponential backoff multiplier
|
|
161
|
+
*/
|
|
162
|
+
jump?: string;
|
|
163
|
+
/**
|
|
164
|
+
* future_epoch defines the target epoch for the backoff
|
|
165
|
+
*/
|
|
166
|
+
future_epoch?: string;
|
|
167
|
+
}
|
|
168
|
+
export interface ExponentialBackoffAminoMsg {
|
|
169
|
+
type: "/xion.feeabs.v1beta1.ExponentialBackoff";
|
|
170
|
+
value: ExponentialBackoffAmino;
|
|
171
|
+
}
|
|
172
|
+
/** ExponentialBackoff defines backoff epoch */
|
|
173
|
+
export interface ExponentialBackoffSDKType {
|
|
174
|
+
jump: bigint;
|
|
175
|
+
future_epoch: bigint;
|
|
176
|
+
}
|
|
177
|
+
function createBaseEpochInfo(): EpochInfo {
|
|
178
|
+
return {
|
|
179
|
+
identifier: "",
|
|
180
|
+
startTime: new Date(),
|
|
181
|
+
duration: Duration.fromPartial({}),
|
|
182
|
+
currentEpoch: BigInt(0),
|
|
183
|
+
currentEpochStartTime: new Date(),
|
|
184
|
+
epochCountingStarted: false,
|
|
185
|
+
currentEpochStartHeight: BigInt(0)
|
|
186
|
+
};
|
|
187
|
+
}
|
|
188
|
+
export const EpochInfo = {
|
|
189
|
+
typeUrl: "/xion.feeabs.v1beta1.EpochInfo",
|
|
190
|
+
encode(message: EpochInfo, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
191
|
+
if (message.identifier !== "") {
|
|
192
|
+
writer.uint32(10).string(message.identifier);
|
|
193
|
+
}
|
|
194
|
+
if (message.startTime !== undefined) {
|
|
195
|
+
Timestamp.encode(toTimestamp(message.startTime), writer.uint32(18).fork()).ldelim();
|
|
196
|
+
}
|
|
197
|
+
if (message.duration !== undefined) {
|
|
198
|
+
Duration.encode(message.duration, writer.uint32(26).fork()).ldelim();
|
|
199
|
+
}
|
|
200
|
+
if (message.currentEpoch !== BigInt(0)) {
|
|
201
|
+
writer.uint32(32).int64(message.currentEpoch);
|
|
202
|
+
}
|
|
203
|
+
if (message.currentEpochStartTime !== undefined) {
|
|
204
|
+
Timestamp.encode(toTimestamp(message.currentEpochStartTime), writer.uint32(42).fork()).ldelim();
|
|
205
|
+
}
|
|
206
|
+
if (message.epochCountingStarted === true) {
|
|
207
|
+
writer.uint32(48).bool(message.epochCountingStarted);
|
|
208
|
+
}
|
|
209
|
+
if (message.currentEpochStartHeight !== BigInt(0)) {
|
|
210
|
+
writer.uint32(64).int64(message.currentEpochStartHeight);
|
|
211
|
+
}
|
|
212
|
+
return writer;
|
|
213
|
+
},
|
|
214
|
+
decode(input: BinaryReader | Uint8Array, length?: number): EpochInfo {
|
|
215
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
216
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
217
|
+
const message = createBaseEpochInfo();
|
|
218
|
+
while (reader.pos < end) {
|
|
219
|
+
const tag = reader.uint32();
|
|
220
|
+
switch (tag >>> 3) {
|
|
221
|
+
case 1:
|
|
222
|
+
message.identifier = reader.string();
|
|
223
|
+
break;
|
|
224
|
+
case 2:
|
|
225
|
+
message.startTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
226
|
+
break;
|
|
227
|
+
case 3:
|
|
228
|
+
message.duration = Duration.decode(reader, reader.uint32());
|
|
229
|
+
break;
|
|
230
|
+
case 4:
|
|
231
|
+
message.currentEpoch = reader.int64();
|
|
232
|
+
break;
|
|
233
|
+
case 5:
|
|
234
|
+
message.currentEpochStartTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
235
|
+
break;
|
|
236
|
+
case 6:
|
|
237
|
+
message.epochCountingStarted = reader.bool();
|
|
238
|
+
break;
|
|
239
|
+
case 8:
|
|
240
|
+
message.currentEpochStartHeight = reader.int64();
|
|
241
|
+
break;
|
|
242
|
+
default:
|
|
243
|
+
reader.skipType(tag & 7);
|
|
244
|
+
break;
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
return message;
|
|
248
|
+
},
|
|
249
|
+
fromPartial(object: Partial<EpochInfo>): EpochInfo {
|
|
250
|
+
const message = createBaseEpochInfo();
|
|
251
|
+
message.identifier = object.identifier ?? "";
|
|
252
|
+
message.startTime = object.startTime ?? undefined;
|
|
253
|
+
message.duration = object.duration !== undefined && object.duration !== null ? Duration.fromPartial(object.duration) : undefined;
|
|
254
|
+
message.currentEpoch = object.currentEpoch !== undefined && object.currentEpoch !== null ? BigInt(object.currentEpoch.toString()) : BigInt(0);
|
|
255
|
+
message.currentEpochStartTime = object.currentEpochStartTime ?? undefined;
|
|
256
|
+
message.epochCountingStarted = object.epochCountingStarted ?? false;
|
|
257
|
+
message.currentEpochStartHeight = object.currentEpochStartHeight !== undefined && object.currentEpochStartHeight !== null ? BigInt(object.currentEpochStartHeight.toString()) : BigInt(0);
|
|
258
|
+
return message;
|
|
259
|
+
},
|
|
260
|
+
fromAmino(object: EpochInfoAmino): EpochInfo {
|
|
261
|
+
const message = createBaseEpochInfo();
|
|
262
|
+
if (object.identifier !== undefined && object.identifier !== null) {
|
|
263
|
+
message.identifier = object.identifier;
|
|
264
|
+
}
|
|
265
|
+
if (object.start_time !== undefined && object.start_time !== null) {
|
|
266
|
+
message.startTime = fromTimestamp(Timestamp.fromAmino(object.start_time));
|
|
267
|
+
}
|
|
268
|
+
if (object.duration !== undefined && object.duration !== null) {
|
|
269
|
+
message.duration = Duration.fromAmino(object.duration);
|
|
270
|
+
}
|
|
271
|
+
if (object.current_epoch !== undefined && object.current_epoch !== null) {
|
|
272
|
+
message.currentEpoch = BigInt(object.current_epoch);
|
|
273
|
+
}
|
|
274
|
+
if (object.current_epoch_start_time !== undefined && object.current_epoch_start_time !== null) {
|
|
275
|
+
message.currentEpochStartTime = fromTimestamp(Timestamp.fromAmino(object.current_epoch_start_time));
|
|
276
|
+
}
|
|
277
|
+
if (object.epoch_counting_started !== undefined && object.epoch_counting_started !== null) {
|
|
278
|
+
message.epochCountingStarted = object.epoch_counting_started;
|
|
279
|
+
}
|
|
280
|
+
if (object.current_epoch_start_height !== undefined && object.current_epoch_start_height !== null) {
|
|
281
|
+
message.currentEpochStartHeight = BigInt(object.current_epoch_start_height);
|
|
282
|
+
}
|
|
283
|
+
return message;
|
|
284
|
+
},
|
|
285
|
+
toAmino(message: EpochInfo): EpochInfoAmino {
|
|
286
|
+
const obj: any = {};
|
|
287
|
+
obj.identifier = message.identifier === "" ? undefined : message.identifier;
|
|
288
|
+
obj.start_time = message.startTime ? Timestamp.toAmino(toTimestamp(message.startTime)) : undefined;
|
|
289
|
+
obj.duration = message.duration ? Duration.toAmino(message.duration) : undefined;
|
|
290
|
+
obj.current_epoch = message.currentEpoch !== BigInt(0) ? message.currentEpoch?.toString() : undefined;
|
|
291
|
+
obj.current_epoch_start_time = message.currentEpochStartTime ? Timestamp.toAmino(toTimestamp(message.currentEpochStartTime)) : undefined;
|
|
292
|
+
obj.epoch_counting_started = message.epochCountingStarted === false ? undefined : message.epochCountingStarted;
|
|
293
|
+
obj.current_epoch_start_height = message.currentEpochStartHeight !== BigInt(0) ? message.currentEpochStartHeight?.toString() : undefined;
|
|
294
|
+
return obj;
|
|
295
|
+
},
|
|
296
|
+
fromAminoMsg(object: EpochInfoAminoMsg): EpochInfo {
|
|
297
|
+
return EpochInfo.fromAmino(object.value);
|
|
298
|
+
},
|
|
299
|
+
fromProtoMsg(message: EpochInfoProtoMsg): EpochInfo {
|
|
300
|
+
return EpochInfo.decode(message.value);
|
|
301
|
+
},
|
|
302
|
+
toProto(message: EpochInfo): Uint8Array {
|
|
303
|
+
return EpochInfo.encode(message).finish();
|
|
304
|
+
},
|
|
305
|
+
toProtoMsg(message: EpochInfo): EpochInfoProtoMsg {
|
|
306
|
+
return {
|
|
307
|
+
typeUrl: "/xion.feeabs.v1beta1.EpochInfo",
|
|
308
|
+
value: EpochInfo.encode(message).finish()
|
|
309
|
+
};
|
|
310
|
+
}
|
|
311
|
+
};
|
|
312
|
+
function createBaseExponentialBackoff(): ExponentialBackoff {
|
|
313
|
+
return {
|
|
314
|
+
jump: BigInt(0),
|
|
315
|
+
futureEpoch: BigInt(0)
|
|
316
|
+
};
|
|
317
|
+
}
|
|
318
|
+
export const ExponentialBackoff = {
|
|
319
|
+
typeUrl: "/xion.feeabs.v1beta1.ExponentialBackoff",
|
|
320
|
+
encode(message: ExponentialBackoff, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
321
|
+
if (message.jump !== BigInt(0)) {
|
|
322
|
+
writer.uint32(8).int64(message.jump);
|
|
323
|
+
}
|
|
324
|
+
if (message.futureEpoch !== BigInt(0)) {
|
|
325
|
+
writer.uint32(16).int64(message.futureEpoch);
|
|
326
|
+
}
|
|
327
|
+
return writer;
|
|
328
|
+
},
|
|
329
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ExponentialBackoff {
|
|
330
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
331
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
332
|
+
const message = createBaseExponentialBackoff();
|
|
333
|
+
while (reader.pos < end) {
|
|
334
|
+
const tag = reader.uint32();
|
|
335
|
+
switch (tag >>> 3) {
|
|
336
|
+
case 1:
|
|
337
|
+
message.jump = reader.int64();
|
|
338
|
+
break;
|
|
339
|
+
case 2:
|
|
340
|
+
message.futureEpoch = reader.int64();
|
|
341
|
+
break;
|
|
342
|
+
default:
|
|
343
|
+
reader.skipType(tag & 7);
|
|
344
|
+
break;
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
return message;
|
|
348
|
+
},
|
|
349
|
+
fromPartial(object: Partial<ExponentialBackoff>): ExponentialBackoff {
|
|
350
|
+
const message = createBaseExponentialBackoff();
|
|
351
|
+
message.jump = object.jump !== undefined && object.jump !== null ? BigInt(object.jump.toString()) : BigInt(0);
|
|
352
|
+
message.futureEpoch = object.futureEpoch !== undefined && object.futureEpoch !== null ? BigInt(object.futureEpoch.toString()) : BigInt(0);
|
|
353
|
+
return message;
|
|
354
|
+
},
|
|
355
|
+
fromAmino(object: ExponentialBackoffAmino): ExponentialBackoff {
|
|
356
|
+
const message = createBaseExponentialBackoff();
|
|
357
|
+
if (object.jump !== undefined && object.jump !== null) {
|
|
358
|
+
message.jump = BigInt(object.jump);
|
|
359
|
+
}
|
|
360
|
+
if (object.future_epoch !== undefined && object.future_epoch !== null) {
|
|
361
|
+
message.futureEpoch = BigInt(object.future_epoch);
|
|
362
|
+
}
|
|
363
|
+
return message;
|
|
364
|
+
},
|
|
365
|
+
toAmino(message: ExponentialBackoff): ExponentialBackoffAmino {
|
|
366
|
+
const obj: any = {};
|
|
367
|
+
obj.jump = message.jump !== BigInt(0) ? message.jump?.toString() : undefined;
|
|
368
|
+
obj.future_epoch = message.futureEpoch !== BigInt(0) ? message.futureEpoch?.toString() : undefined;
|
|
369
|
+
return obj;
|
|
370
|
+
},
|
|
371
|
+
fromAminoMsg(object: ExponentialBackoffAminoMsg): ExponentialBackoff {
|
|
372
|
+
return ExponentialBackoff.fromAmino(object.value);
|
|
373
|
+
},
|
|
374
|
+
fromProtoMsg(message: ExponentialBackoffProtoMsg): ExponentialBackoff {
|
|
375
|
+
return ExponentialBackoff.decode(message.value);
|
|
376
|
+
},
|
|
377
|
+
toProto(message: ExponentialBackoff): Uint8Array {
|
|
378
|
+
return ExponentialBackoff.encode(message).finish();
|
|
379
|
+
},
|
|
380
|
+
toProtoMsg(message: ExponentialBackoff): ExponentialBackoffProtoMsg {
|
|
381
|
+
return {
|
|
382
|
+
typeUrl: "/xion.feeabs.v1beta1.ExponentialBackoff",
|
|
383
|
+
value: ExponentialBackoff.encode(message).finish()
|
|
384
|
+
};
|
|
385
|
+
}
|
|
386
|
+
};
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
//@ts-nocheck
|
|
2
|
+
import { Params, ParamsAmino, ParamsSDKType } from "./params";
|
|
3
|
+
import { EpochInfo, EpochInfoAmino, EpochInfoSDKType } from "./epoch";
|
|
4
|
+
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
5
|
+
/** GenesisState defines the feeabs module's genesis state. */
|
|
6
|
+
export interface GenesisState {
|
|
7
|
+
/** params defines the parameters for the feeabs module */
|
|
8
|
+
params: Params;
|
|
9
|
+
/** epochs defines the list of epoch information */
|
|
10
|
+
epochs: EpochInfo[];
|
|
11
|
+
/** port_id defines the IBC port identifier */
|
|
12
|
+
portId: string;
|
|
13
|
+
}
|
|
14
|
+
export interface GenesisStateProtoMsg {
|
|
15
|
+
typeUrl: "/xion.feeabs.v1beta1.GenesisState";
|
|
16
|
+
value: Uint8Array;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* GenesisState defines the feeabs module's genesis state.
|
|
20
|
+
* @name GenesisStateAmino
|
|
21
|
+
* @package xion.feeabs.v1beta1
|
|
22
|
+
* @see proto type: xion.feeabs.v1beta1.GenesisState
|
|
23
|
+
*/
|
|
24
|
+
export interface GenesisStateAmino {
|
|
25
|
+
/**
|
|
26
|
+
* params defines the parameters for the feeabs module
|
|
27
|
+
*/
|
|
28
|
+
params?: ParamsAmino;
|
|
29
|
+
/**
|
|
30
|
+
* epochs defines the list of epoch information
|
|
31
|
+
*/
|
|
32
|
+
epochs?: EpochInfoAmino[];
|
|
33
|
+
/**
|
|
34
|
+
* port_id defines the IBC port identifier
|
|
35
|
+
*/
|
|
36
|
+
port_id?: string;
|
|
37
|
+
}
|
|
38
|
+
export interface GenesisStateAminoMsg {
|
|
39
|
+
type: "/xion.feeabs.v1beta1.GenesisState";
|
|
40
|
+
value: GenesisStateAmino;
|
|
41
|
+
}
|
|
42
|
+
/** GenesisState defines the feeabs module's genesis state. */
|
|
43
|
+
export interface GenesisStateSDKType {
|
|
44
|
+
params: ParamsSDKType;
|
|
45
|
+
epochs: EpochInfoSDKType[];
|
|
46
|
+
port_id: string;
|
|
47
|
+
}
|
|
48
|
+
function createBaseGenesisState(): GenesisState {
|
|
49
|
+
return {
|
|
50
|
+
params: Params.fromPartial({}),
|
|
51
|
+
epochs: [],
|
|
52
|
+
portId: ""
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
export const GenesisState = {
|
|
56
|
+
typeUrl: "/xion.feeabs.v1beta1.GenesisState",
|
|
57
|
+
encode(message: GenesisState, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
58
|
+
if (message.params !== undefined) {
|
|
59
|
+
Params.encode(message.params, writer.uint32(10).fork()).ldelim();
|
|
60
|
+
}
|
|
61
|
+
for (const v of message.epochs) {
|
|
62
|
+
EpochInfo.encode(v!, writer.uint32(18).fork()).ldelim();
|
|
63
|
+
}
|
|
64
|
+
if (message.portId !== "") {
|
|
65
|
+
writer.uint32(26).string(message.portId);
|
|
66
|
+
}
|
|
67
|
+
return writer;
|
|
68
|
+
},
|
|
69
|
+
decode(input: BinaryReader | Uint8Array, length?: number): GenesisState {
|
|
70
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
71
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
72
|
+
const message = createBaseGenesisState();
|
|
73
|
+
while (reader.pos < end) {
|
|
74
|
+
const tag = reader.uint32();
|
|
75
|
+
switch (tag >>> 3) {
|
|
76
|
+
case 1:
|
|
77
|
+
message.params = Params.decode(reader, reader.uint32());
|
|
78
|
+
break;
|
|
79
|
+
case 2:
|
|
80
|
+
message.epochs.push(EpochInfo.decode(reader, reader.uint32()));
|
|
81
|
+
break;
|
|
82
|
+
case 3:
|
|
83
|
+
message.portId = reader.string();
|
|
84
|
+
break;
|
|
85
|
+
default:
|
|
86
|
+
reader.skipType(tag & 7);
|
|
87
|
+
break;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
return message;
|
|
91
|
+
},
|
|
92
|
+
fromPartial(object: Partial<GenesisState>): GenesisState {
|
|
93
|
+
const message = createBaseGenesisState();
|
|
94
|
+
message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined;
|
|
95
|
+
message.epochs = object.epochs?.map(e => EpochInfo.fromPartial(e)) || [];
|
|
96
|
+
message.portId = object.portId ?? "";
|
|
97
|
+
return message;
|
|
98
|
+
},
|
|
99
|
+
fromAmino(object: GenesisStateAmino): GenesisState {
|
|
100
|
+
const message = createBaseGenesisState();
|
|
101
|
+
if (object.params !== undefined && object.params !== null) {
|
|
102
|
+
message.params = Params.fromAmino(object.params);
|
|
103
|
+
}
|
|
104
|
+
message.epochs = object.epochs?.map(e => EpochInfo.fromAmino(e)) || [];
|
|
105
|
+
if (object.port_id !== undefined && object.port_id !== null) {
|
|
106
|
+
message.portId = object.port_id;
|
|
107
|
+
}
|
|
108
|
+
return message;
|
|
109
|
+
},
|
|
110
|
+
toAmino(message: GenesisState): GenesisStateAmino {
|
|
111
|
+
const obj: any = {};
|
|
112
|
+
obj.params = message.params ? Params.toAmino(message.params) : undefined;
|
|
113
|
+
if (message.epochs) {
|
|
114
|
+
obj.epochs = message.epochs.map(e => e ? EpochInfo.toAmino(e) : undefined);
|
|
115
|
+
} else {
|
|
116
|
+
obj.epochs = message.epochs;
|
|
117
|
+
}
|
|
118
|
+
obj.port_id = message.portId === "" ? undefined : message.portId;
|
|
119
|
+
return obj;
|
|
120
|
+
},
|
|
121
|
+
fromAminoMsg(object: GenesisStateAminoMsg): GenesisState {
|
|
122
|
+
return GenesisState.fromAmino(object.value);
|
|
123
|
+
},
|
|
124
|
+
fromProtoMsg(message: GenesisStateProtoMsg): GenesisState {
|
|
125
|
+
return GenesisState.decode(message.value);
|
|
126
|
+
},
|
|
127
|
+
toProto(message: GenesisState): Uint8Array {
|
|
128
|
+
return GenesisState.encode(message).finish();
|
|
129
|
+
},
|
|
130
|
+
toProtoMsg(message: GenesisState): GenesisStateProtoMsg {
|
|
131
|
+
return {
|
|
132
|
+
typeUrl: "/xion.feeabs.v1beta1.GenesisState",
|
|
133
|
+
value: GenesisState.encode(message).finish()
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
};
|