@xpla/xpla-react 1.7.0-beta.0
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/CHANGELOG.md +8 -0
- package/package.json +47 -0
- package/src/amino/amino.ts +1 -0
- package/src/binary.ts +534 -0
- package/src/cosmos/app/runtime/v1alpha1/module.ts +423 -0
- package/src/cosmos/app/runtime/v2/module.ts +589 -0
- package/src/cosmos/app/v1alpha1/config.ts +422 -0
- package/src/cosmos/app/v1alpha1/module.ts +461 -0
- package/src/cosmos/app/v1alpha1/query.rpc.func.ts +14 -0
- package/src/cosmos/app/v1alpha1/query.ts +177 -0
- package/src/cosmos/auth/module/v1/module.ts +253 -0
- package/src/cosmos/auth/v1beta1/accounts.ts +226 -0
- package/src/cosmos/auth/v1beta1/auth.ts +550 -0
- package/src/cosmos/auth/v1beta1/genesis.ts +119 -0
- package/src/cosmos/auth/v1beta1/query.rpc.func.ts +113 -0
- package/src/cosmos/auth/v1beta1/query.ts +2034 -0
- package/src/cosmos/auth/v1beta1/tx.registry.ts +29 -0
- package/src/cosmos/auth/v1beta1/tx.rpc.func.ts +13 -0
- package/src/cosmos/auth/v1beta1/tx.ts +219 -0
- package/src/cosmos/authz/module/v1/module.ts +80 -0
- package/src/cosmos/authz/v1beta1/authz.ts +481 -0
- package/src/cosmos/authz/v1beta1/event.ts +259 -0
- package/src/cosmos/authz/v1beta1/genesis.ts +100 -0
- package/src/cosmos/authz/v1beta1/query.rpc.func.ts +36 -0
- package/src/cosmos/authz/v1beta1/query.ts +707 -0
- package/src/cosmos/authz/v1beta1/tx.registry.ts +65 -0
- package/src/cosmos/authz/v1beta1/tx.rpc.func.ts +31 -0
- package/src/cosmos/authz/v1beta1/tx.ts +647 -0
- package/src/cosmos/autocli/v1/options.ts +1145 -0
- package/src/cosmos/autocli/v1/query.rpc.func.ts +14 -0
- package/src/cosmos/autocli/v1/query.ts +288 -0
- package/src/cosmos/bank/module/v1/module.ts +153 -0
- package/src/cosmos/bank/v1beta1/authz.ts +138 -0
- package/src/cosmos/bank/v1beta1/bank.ts +974 -0
- package/src/cosmos/bank/v1beta1/genesis.ts +307 -0
- package/src/cosmos/bank/v1beta1/query.rpc.func.ts +146 -0
- package/src/cosmos/bank/v1beta1/query.ts +3027 -0
- package/src/cosmos/bank/v1beta1/tx.registry.ts +83 -0
- package/src/cosmos/bank/v1beta1/tx.rpc.func.ts +40 -0
- package/src/cosmos/bank/v1beta1/tx.ts +861 -0
- package/src/cosmos/base/abci/v1beta1/abci.ts +1698 -0
- package/src/cosmos/base/grpc/v2/service.rpc.func.ts +25 -0
- package/src/cosmos/base/grpc/v2/service.ts +473 -0
- package/src/cosmos/base/node/v1beta1/query.rpc.func.ts +25 -0
- package/src/cosmos/base/node/v1beta1/query.ts +454 -0
- package/src/cosmos/base/query/v1beta1/pagination.ts +361 -0
- package/src/cosmos/base/reflection/v1beta1/reflection.rpc.func.ts +25 -0
- package/src/cosmos/base/reflection/v1beta1/reflection.ts +382 -0
- package/src/cosmos/base/reflection/v2alpha1/reflection.rpc.func.ts +69 -0
- package/src/cosmos/base/reflection/v2alpha1/reflection.ts +2727 -0
- package/src/cosmos/base/tendermint/v1beta1/query.rpc.func.ts +80 -0
- package/src/cosmos/base/tendermint/v1beta1/query.ts +2302 -0
- package/src/cosmos/base/tendermint/v1beta1/types.ts +455 -0
- package/src/cosmos/base/v1beta1/coin.ts +439 -0
- package/src/cosmos/circuit/module/v1/module.ts +99 -0
- package/src/cosmos/circuit/v1/query.rpc.func.ts +36 -0
- package/src/cosmos/circuit/v1/query.ts +574 -0
- package/src/cosmos/circuit/v1/tx.registry.ts +65 -0
- package/src/cosmos/circuit/v1/tx.rpc.func.ts +31 -0
- package/src/cosmos/circuit/v1/tx.ts +676 -0
- package/src/cosmos/circuit/v1/types.ts +413 -0
- package/src/cosmos/consensus/module/v1/module.ts +99 -0
- package/src/cosmos/consensus/v1/query.rpc.func.ts +14 -0
- package/src/cosmos/consensus/v1/query.ts +185 -0
- package/src/cosmos/consensus/v1/tx.registry.ts +29 -0
- package/src/cosmos/consensus/v1/tx.rpc.func.ts +13 -0
- package/src/cosmos/consensus/v1/tx.ts +255 -0
- package/src/cosmos/crisis/module/v1/module.ts +115 -0
- package/src/cosmos/crisis/v1beta1/genesis.ts +106 -0
- package/src/cosmos/crisis/v1beta1/tx.registry.ts +47 -0
- package/src/cosmos/crisis/v1beta1/tx.rpc.func.ts +22 -0
- package/src/cosmos/crisis/v1beta1/tx.ts +416 -0
- package/src/cosmos/crypto/ed25519/keys.ts +209 -0
- package/src/cosmos/crypto/hd/v1/hd.ts +169 -0
- package/src/cosmos/crypto/keyring/v1/record.ts +529 -0
- package/src/cosmos/crypto/multisig/keys.ts +122 -0
- package/src/cosmos/crypto/multisig/v1beta1/multisig.ts +225 -0
- package/src/cosmos/crypto/secp256k1/keys.ts +203 -0
- package/src/cosmos/crypto/secp256r1/keys.ts +201 -0
- package/src/cosmos/distribution/module/v1/module.ts +113 -0
- package/src/cosmos/distribution/v1beta1/distribution.ts +1494 -0
- package/src/cosmos/distribution/v1beta1/genesis.ts +1129 -0
- package/src/cosmos/distribution/v1beta1/query.rpc.func.ts +113 -0
- package/src/cosmos/distribution/v1beta1/query.ts +2126 -0
- package/src/cosmos/distribution/v1beta1/tx.registry.ts +137 -0
- package/src/cosmos/distribution/v1beta1/tx.rpc.func.ts +67 -0
- package/src/cosmos/distribution/v1beta1/tx.ts +1478 -0
- package/src/cosmos/evidence/module/v1/module.ts +80 -0
- package/src/cosmos/evidence/v1beta1/evidence.ts +154 -0
- package/src/cosmos/evidence/v1beta1/genesis.ts +102 -0
- package/src/cosmos/evidence/v1beta1/query.rpc.func.ts +25 -0
- package/src/cosmos/evidence/v1beta1/query.ts +451 -0
- package/src/cosmos/evidence/v1beta1/tx.registry.ts +29 -0
- package/src/cosmos/evidence/v1beta1/tx.rpc.func.ts +13 -0
- package/src/cosmos/evidence/v1beta1/tx.ts +221 -0
- package/src/cosmos/feegrant/module/v1/module.ts +80 -0
- package/src/cosmos/feegrant/v1beta1/feegrant.ts +573 -0
- package/src/cosmos/feegrant/v1beta1/genesis.ts +100 -0
- package/src/cosmos/feegrant/v1beta1/query.rpc.func.ts +36 -0
- package/src/cosmos/feegrant/v1beta1/query.ts +677 -0
- package/src/cosmos/feegrant/v1beta1/tx.registry.ts +65 -0
- package/src/cosmos/feegrant/v1beta1/tx.rpc.func.ts +31 -0
- package/src/cosmos/feegrant/v1beta1/tx.ts +597 -0
- package/src/cosmos/genutil/module/v1/module.ts +80 -0
- package/src/cosmos/genutil/v1beta1/genesis.ts +101 -0
- package/src/cosmos/gov/module/v1/module.ts +121 -0
- package/src/cosmos/gov/v1/genesis.ts +280 -0
- package/src/cosmos/gov/v1/gov.ts +1843 -0
- package/src/cosmos/gov/v1/query.rpc.func.ts +102 -0
- package/src/cosmos/gov/v1/query.ts +1970 -0
- package/src/cosmos/gov/v1/tx.registry.ts +137 -0
- package/src/cosmos/gov/v1/tx.rpc.func.ts +67 -0
- package/src/cosmos/gov/v1/tx.ts +1657 -0
- package/src/cosmos/gov/v1beta1/genesis.ts +202 -0
- package/src/cosmos/gov/v1beta1/gov.ts +1425 -0
- package/src/cosmos/gov/v1beta1/query.rpc.func.ts +91 -0
- package/src/cosmos/gov/v1beta1/query.ts +1749 -0
- package/src/cosmos/gov/v1beta1/tx.registry.ts +83 -0
- package/src/cosmos/gov/v1beta1/tx.rpc.func.ts +40 -0
- package/src/cosmos/gov/v1beta1/tx.ts +881 -0
- package/src/cosmos/group/module/v1/module.ts +128 -0
- package/src/cosmos/group/v1/events.ts +1044 -0
- package/src/cosmos/group/v1/genesis.ts +240 -0
- package/src/cosmos/group/v1/query.rpc.func.ts +157 -0
- package/src/cosmos/group/v1/query.ts +3015 -0
- package/src/cosmos/group/v1/tx.registry.ts +263 -0
- package/src/cosmos/group/v1/tx.rpc.func.ts +130 -0
- package/src/cosmos/group/v1/tx.ts +3207 -0
- package/src/cosmos/group/v1/types.ts +2081 -0
- package/src/cosmos/ics23/v1/proofs.ts +2060 -0
- package/src/cosmos/mint/module/v1/module.ts +113 -0
- package/src/cosmos/mint/v1beta1/genesis.ts +116 -0
- package/src/cosmos/mint/v1beta1/mint.ts +291 -0
- package/src/cosmos/mint/v1beta1/query.rpc.func.ts +36 -0
- package/src/cosmos/mint/v1beta1/query.ts +541 -0
- package/src/cosmos/mint/v1beta1/tx.registry.ts +29 -0
- package/src/cosmos/mint/v1beta1/tx.rpc.func.ts +13 -0
- package/src/cosmos/mint/v1beta1/tx.ts +219 -0
- package/src/cosmos/msg/textual/v1/textual.ts +1 -0
- package/src/cosmos/msg/v1/msg.ts +1 -0
- package/src/cosmos/nft/module/v1/module.ts +80 -0
- package/src/cosmos/nft/v1beta1/event.ts +403 -0
- package/src/cosmos/nft/v1beta1/genesis.ts +234 -0
- package/src/cosmos/nft/v1beta1/nft.ts +356 -0
- package/src/cosmos/nft/v1beta1/query.rpc.func.ts +80 -0
- package/src/cosmos/nft/v1beta1/query.ts +1465 -0
- package/src/cosmos/nft/v1beta1/tx.registry.ts +29 -0
- package/src/cosmos/nft/v1beta1/tx.rpc.func.ts +13 -0
- package/src/cosmos/nft/v1beta1/tx.ts +224 -0
- package/src/cosmos/orm/module/v1alpha1/module.ts +88 -0
- package/src/cosmos/orm/query/v1alpha1/query.rpc.func.ts +25 -0
- package/src/cosmos/orm/query/v1alpha1/query.ts +993 -0
- package/src/cosmos/orm/v1/orm.ts +589 -0
- package/src/cosmos/orm/v1alpha1/schema.ts +325 -0
- package/src/cosmos/params/module/v1/module.ts +80 -0
- package/src/cosmos/params/v1beta1/params.ts +255 -0
- package/src/cosmos/params/v1beta1/query.rpc.func.ts +25 -0
- package/src/cosmos/params/v1beta1/query.ts +525 -0
- package/src/cosmos/query/v1/query.ts +1 -0
- package/src/cosmos/reflection/v1/reflection.rpc.func.ts +14 -0
- package/src/cosmos/reflection/v1/reflection.ts +179 -0
- package/src/cosmos/slashing/module/v1/module.ts +99 -0
- package/src/cosmos/slashing/v1beta1/genesis.ts +492 -0
- package/src/cosmos/slashing/v1beta1/query.rpc.func.ts +36 -0
- package/src/cosmos/slashing/v1beta1/query.ts +598 -0
- package/src/cosmos/slashing/v1beta1/slashing.ts +357 -0
- package/src/cosmos/slashing/v1beta1/tx.registry.ts +47 -0
- package/src/cosmos/slashing/v1beta1/tx.rpc.func.ts +22 -0
- package/src/cosmos/slashing/v1beta1/tx.ts +390 -0
- package/src/cosmos/staking/module/v1/module.ts +157 -0
- package/src/cosmos/staking/v1beta1/authz.ts +323 -0
- package/src/cosmos/staking/v1beta1/genesis.ts +346 -0
- package/src/cosmos/staking/v1beta1/query.rpc.func.ts +157 -0
- package/src/cosmos/staking/v1beta1/query.ts +3073 -0
- package/src/cosmos/staking/v1beta1/staking.ts +3005 -0
- package/src/cosmos/staking/v1beta1/tx.registry.ts +137 -0
- package/src/cosmos/staking/v1beta1/tx.rpc.func.ts +67 -0
- package/src/cosmos/staking/v1beta1/tx.ts +1638 -0
- package/src/cosmos/store/internal/kv/v1beta1/kv.ts +207 -0
- package/src/cosmos/store/snapshots/v1/snapshot.ts +863 -0
- package/src/cosmos/store/snapshots/v2/snapshot.ts +823 -0
- package/src/cosmos/store/streaming/abci/grpc.ts +393 -0
- package/src/cosmos/store/v1beta1/commit_info.ts +362 -0
- package/src/cosmos/store/v1beta1/listening.ts +286 -0
- package/src/cosmos/streaming/v1/grpc.ts +985 -0
- package/src/cosmos/tx/config/v1/config.ts +127 -0
- package/src/cosmos/tx/signing/v1beta1/signing.ts +688 -0
- package/src/cosmos/tx/v1beta1/service.rpc.func.ts +102 -0
- package/src/cosmos/tx/v1beta1/service.ts +2294 -0
- package/src/cosmos/tx/v1beta1/tx.ts +2029 -0
- package/src/cosmos/upgrade/module/v1/module.ts +99 -0
- package/src/cosmos/upgrade/v1beta1/query.rpc.func.ts +58 -0
- package/src/cosmos/upgrade/v1beta1/query.ts +1016 -0
- package/src/cosmos/upgrade/v1beta1/tx.registry.ts +47 -0
- package/src/cosmos/upgrade/v1beta1/tx.rpc.func.ts +22 -0
- package/src/cosmos/upgrade/v1beta1/tx.ts +398 -0
- package/src/cosmos/upgrade/v1beta1/upgrade.ts +591 -0
- package/src/cosmos/validate/module/v1/module.ts +80 -0
- package/src/cosmos/vesting/module/v1/module.ts +80 -0
- package/src/cosmos/vesting/v1beta1/tx.registry.ts +65 -0
- package/src/cosmos/vesting/v1beta1/tx.rpc.func.ts +31 -0
- package/src/cosmos/vesting/v1beta1/tx.ts +698 -0
- package/src/cosmos/vesting/v1beta1/vesting.ts +735 -0
- package/src/cosmos_proto/cosmos.ts +341 -0
- package/src/cosmwasm/wasm/v1/authz.ts +1231 -0
- package/src/cosmwasm/wasm/v1/genesis.ts +532 -0
- package/src/cosmwasm/wasm/v1/ibc.ts +355 -0
- package/src/cosmwasm/wasm/v1/proposal_legacy.ts +2432 -0
- package/src/cosmwasm/wasm/v1/query.rpc.func.ts +124 -0
- package/src/cosmwasm/wasm/v1/query.ts +2560 -0
- package/src/cosmwasm/wasm/v1/tx.registry.ts +317 -0
- package/src/cosmwasm/wasm/v1/tx.rpc.func.ts +157 -0
- package/src/cosmwasm/wasm/v1/tx.ts +4191 -0
- package/src/cosmwasm/wasm/v1/types.ts +1120 -0
- package/src/ethermint/crypto/v1/ethsecp256k1/keys.ts +193 -0
- package/src/ethermint/evm/v1/events.ts +485 -0
- package/src/ethermint/evm/v1/evm.ts +1590 -0
- package/src/ethermint/evm/v1/genesis.ts +240 -0
- package/src/ethermint/evm/v1/query.rpc.func.ts +136 -0
- package/src/ethermint/evm/v1/query.ts +2535 -0
- package/src/ethermint/evm/v1/tx.registry.ts +47 -0
- package/src/ethermint/evm/v1/tx.rpc.func.ts +22 -0
- package/src/ethermint/evm/v1/tx.ts +1333 -0
- package/src/ethermint/feemarket/v1/events.ts +195 -0
- package/src/ethermint/feemarket/v1/feemarket.ts +213 -0
- package/src/ethermint/feemarket/v1/genesis.ts +114 -0
- package/src/ethermint/feemarket/v1/query.rpc.func.ts +36 -0
- package/src/ethermint/feemarket/v1/query.ts +487 -0
- package/src/ethermint/feemarket/v1/tx.registry.ts +29 -0
- package/src/ethermint/feemarket/v1/tx.rpc.func.ts +13 -0
- package/src/ethermint/feemarket/v1/tx.ts +197 -0
- package/src/ethermint/types/v1/account.ts +114 -0
- package/src/ethermint/types/v1/dynamic_fee.ts +91 -0
- package/src/ethermint/types/v1/indexer.ts +205 -0
- package/src/ethermint/types/v1/web3.ts +147 -0
- package/src/extern.ts +38 -0
- package/src/gogoproto/gogo.ts +1 -0
- package/src/google/api/annotations.ts +1 -0
- package/src/google/api/http.ts +1069 -0
- package/src/google/protobuf/any.ts +331 -0
- package/src/google/protobuf/descriptor.ts +7177 -0
- package/src/google/protobuf/duration.ts +225 -0
- package/src/google/protobuf/timestamp.ts +281 -0
- package/src/helper-func-types.ts +191 -0
- package/src/helpers.ts +259 -0
- package/src/ibc/applications/fee/v1/ack.ts +131 -0
- package/src/ibc/applications/fee/v1/fee.ts +481 -0
- package/src/ibc/applications/fee/v1/genesis.ts +661 -0
- package/src/ibc/applications/fee/v1/metadata.ts +121 -0
- package/src/ibc/applications/fee/v1/query.rpc.func.ts +113 -0
- package/src/ibc/applications/fee/v1/query.ts +2134 -0
- package/src/ibc/applications/fee/v1/tx.registry.ts +83 -0
- package/src/ibc/applications/fee/v1/tx.rpc.func.ts +40 -0
- package/src/ibc/applications/fee/v1/tx.ts +889 -0
- package/src/ibc/applications/interchain_accounts/controller/v1/controller.ts +105 -0
- package/src/ibc/applications/interchain_accounts/controller/v1/query.rpc.func.ts +25 -0
- package/src/ibc/applications/interchain_accounts/controller/v1/query.ts +379 -0
- package/src/ibc/applications/interchain_accounts/controller/v1/tx.registry.ts +65 -0
- package/src/ibc/applications/interchain_accounts/controller/v1/tx.rpc.func.ts +31 -0
- package/src/ibc/applications/interchain_accounts/controller/v1/tx.ts +685 -0
- package/src/ibc/applications/interchain_accounts/genesis/v1/genesis.ts +661 -0
- package/src/ibc/applications/interchain_accounts/host/v1/host.ts +253 -0
- package/src/ibc/applications/interchain_accounts/host/v1/query.rpc.func.ts +14 -0
- package/src/ibc/applications/interchain_accounts/host/v1/query.ts +177 -0
- package/src/ibc/applications/interchain_accounts/host/v1/tx.registry.ts +47 -0
- package/src/ibc/applications/interchain_accounts/host/v1/tx.rpc.func.ts +22 -0
- package/src/ibc/applications/interchain_accounts/host/v1/tx.ts +429 -0
- package/src/ibc/applications/interchain_accounts/v1/account.ts +112 -0
- package/src/ibc/applications/interchain_accounts/v1/metadata.ts +191 -0
- package/src/ibc/applications/interchain_accounts/v1/packet.ts +259 -0
- package/src/ibc/applications/transfer/v1/authz.ts +280 -0
- package/src/ibc/applications/transfer/v1/genesis.ts +153 -0
- package/src/ibc/applications/transfer/v1/query.rpc.func.ts +69 -0
- package/src/ibc/applications/transfer/v1/query.ts +1205 -0
- package/src/ibc/applications/transfer/v1/transfer.ts +261 -0
- package/src/ibc/applications/transfer/v1/tx.registry.ts +47 -0
- package/src/ibc/applications/transfer/v1/tx.rpc.func.ts +22 -0
- package/src/ibc/applications/transfer/v1/tx.ts +532 -0
- package/src/ibc/applications/transfer/v2/packet.ts +171 -0
- package/src/ibc/core/channel/v1/channel.ts +1510 -0
- package/src/ibc/core/channel/v1/genesis.ts +354 -0
- package/src/ibc/core/channel/v1/query.rpc.func.ts +190 -0
- package/src/ibc/core/channel/v1/query.ts +4354 -0
- package/src/ibc/core/channel/v1/tx.registry.ts +353 -0
- package/src/ibc/core/channel/v1/tx.rpc.func.ts +175 -0
- package/src/ibc/core/channel/v1/tx.ts +4866 -0
- package/src/ibc/core/channel/v1/upgrade.ts +388 -0
- package/src/ibc/core/client/v1/client.ts +927 -0
- package/src/ibc/core/client/v1/genesis.ts +426 -0
- package/src/ibc/core/client/v1/query.rpc.func.ts +113 -0
- package/src/ibc/core/client/v1/query.ts +2280 -0
- package/src/ibc/core/client/v1/tx.registry.ts +137 -0
- package/src/ibc/core/client/v1/tx.rpc.func.ts +67 -0
- package/src/ibc/core/client/v1/tx.ts +1543 -0
- package/src/ibc/core/commitment/v1/commitment.ts +418 -0
- package/src/ibc/core/connection/v1/connection.ts +1010 -0
- package/src/ibc/core/connection/v1/genesis.ts +146 -0
- package/src/ibc/core/connection/v1/query.rpc.func.ts +69 -0
- package/src/ibc/core/connection/v1/query.ts +1408 -0
- package/src/ibc/core/connection/v1/tx.registry.ts +101 -0
- package/src/ibc/core/connection/v1/tx.rpc.func.ts +49 -0
- package/src/ibc/core/connection/v1/tx.ts +1365 -0
- package/src/ibc/core/types/v1/genesis.ts +137 -0
- package/src/ibc/lightclients/localhost/v2/localhost.ts +100 -0
- package/src/ibc/lightclients/solomachine/v2/solomachine.ts +2103 -0
- package/src/ibc/lightclients/solomachine/v3/solomachine.ts +1070 -0
- package/src/ibc/lightclients/tendermint/v1/tendermint.ts +838 -0
- package/src/ibc/lightclients/wasm/v1/genesis.ts +197 -0
- package/src/ibc/lightclients/wasm/v1/query.rpc.func.ts +25 -0
- package/src/ibc/lightclients/wasm/v1/query.ts +404 -0
- package/src/ibc/lightclients/wasm/v1/tx.registry.ts +65 -0
- package/src/ibc/lightclients/wasm/v1/tx.rpc.func.ts +31 -0
- package/src/ibc/lightclients/wasm/v1/tx.ts +621 -0
- package/src/ibc/lightclients/wasm/v1/wasm.ts +438 -0
- package/src/react-query.ts +185 -0
- package/src/registry.ts +218 -0
- package/src/tendermint/abci/types.ts +6283 -0
- package/src/tendermint/crypto/keys.ts +103 -0
- package/src/tendermint/crypto/proof.ts +555 -0
- package/src/tendermint/p2p/types.ts +507 -0
- package/src/tendermint/types/block.ts +131 -0
- package/src/tendermint/types/evidence.ts +476 -0
- package/src/tendermint/types/params.ts +814 -0
- package/src/tendermint/types/types.ts +2157 -0
- package/src/tendermint/types/validator.ts +389 -0
- package/src/tendermint/version/types.ts +219 -0
- package/src/types.ts +155 -0
- package/src/utf8.ts +148 -0
- package/src/varint.ts +488 -0
- package/src/xpla/reward/v1beta1/genesis.ts +92 -0
- package/src/xpla/reward/v1beta1/query.rpc.func.ts +25 -0
- package/src/xpla/reward/v1beta1/query.ts +333 -0
- package/src/xpla/reward/v1beta1/reward.ts +153 -0
- package/src/xpla/reward/v1beta1/tx.registry.ts +47 -0
- package/src/xpla/reward/v1beta1/tx.rpc.func.ts +22 -0
- package/src/xpla/reward/v1beta1/tx.ts +391 -0
- package/src/xpla/volunteer/v1beta1/genesis.ts +92 -0
- package/src/xpla/volunteer/v1beta1/proposal.ts +649 -0
- package/src/xpla/volunteer/v1beta1/query.rpc.func.ts +14 -0
- package/src/xpla/volunteer/v1beta1/query.ts +160 -0
- package/src/xpla/volunteer/v1beta1/tx.registry.ts +47 -0
- package/src/xpla/volunteer/v1beta1/tx.rpc.func.ts +22 -0
- package/src/xpla/volunteer/v1beta1/tx.ts +448 -0
- package/src/xpla/volunteer/v1beta1/volunteervalidator.ts +107 -0
- package/tsconfig.esm.json +10 -0
- package/tsconfig.json +10 -0
|
@@ -0,0 +1,589 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
2
|
+
import { DeepPartial } from "../../../helpers";
|
|
3
|
+
import { GlobalDecoderRegistry } from "../../../registry";
|
|
4
|
+
/** TableDescriptor describes an ORM table. */
|
|
5
|
+
export interface TableDescriptor {
|
|
6
|
+
/** primary_key defines the primary key for the table. */
|
|
7
|
+
primaryKey?: PrimaryKeyDescriptor;
|
|
8
|
+
/** index defines one or more secondary indexes. */
|
|
9
|
+
index: SecondaryIndexDescriptor[];
|
|
10
|
+
/**
|
|
11
|
+
* id is a non-zero integer ID that must be unique within the
|
|
12
|
+
* tables and singletons in this file. It may be deprecated in the future when this
|
|
13
|
+
* can be auto-generated.
|
|
14
|
+
*/
|
|
15
|
+
id: number;
|
|
16
|
+
}
|
|
17
|
+
export interface TableDescriptorProtoMsg {
|
|
18
|
+
typeUrl: "/cosmos.orm.v1.TableDescriptor";
|
|
19
|
+
value: Uint8Array;
|
|
20
|
+
}
|
|
21
|
+
/** TableDescriptor describes an ORM table. */
|
|
22
|
+
export interface TableDescriptorAmino {
|
|
23
|
+
/** primary_key defines the primary key for the table. */
|
|
24
|
+
primary_key?: PrimaryKeyDescriptorAmino;
|
|
25
|
+
/** index defines one or more secondary indexes. */
|
|
26
|
+
index: SecondaryIndexDescriptorAmino[];
|
|
27
|
+
/**
|
|
28
|
+
* id is a non-zero integer ID that must be unique within the
|
|
29
|
+
* tables and singletons in this file. It may be deprecated in the future when this
|
|
30
|
+
* can be auto-generated.
|
|
31
|
+
*/
|
|
32
|
+
id: number;
|
|
33
|
+
}
|
|
34
|
+
export interface TableDescriptorAminoMsg {
|
|
35
|
+
type: "cosmos-sdk/TableDescriptor";
|
|
36
|
+
value: TableDescriptorAmino;
|
|
37
|
+
}
|
|
38
|
+
/** PrimaryKeyDescriptor describes a table primary key. */
|
|
39
|
+
export interface PrimaryKeyDescriptor {
|
|
40
|
+
/**
|
|
41
|
+
* fields is a comma-separated list of fields in the primary key. Spaces are
|
|
42
|
+
* not allowed. Supported field types, their encodings, and any applicable constraints
|
|
43
|
+
* are described below.
|
|
44
|
+
* - uint32 are encoded as 2,3,4 or 5 bytes using a compact encoding that
|
|
45
|
+
* is suitable for sorted iteration (not varint encoding). This type is
|
|
46
|
+
* well-suited for small integers.
|
|
47
|
+
* - uint64 are encoded as 2,4,6 or 9 bytes using a compact encoding that
|
|
48
|
+
* is suitable for sorted iteration (not varint encoding). This type is
|
|
49
|
+
* well-suited for small integers such as auto-incrementing sequences.
|
|
50
|
+
* - fixed32, fixed64 are encoded as big-endian fixed width bytes and support
|
|
51
|
+
* sorted iteration. These types are well-suited for encoding fixed with
|
|
52
|
+
* decimals as integers.
|
|
53
|
+
* - string's are encoded as raw bytes in terminal key segments and null-terminated
|
|
54
|
+
* in non-terminal segments. Null characters are thus forbidden in strings.
|
|
55
|
+
* string fields support sorted iteration.
|
|
56
|
+
* - bytes are encoded as raw bytes in terminal segments and length-prefixed
|
|
57
|
+
* with a 32-bit unsigned varint in non-terminal segments.
|
|
58
|
+
* - int32, sint32, int64, sint64, sfixed32, sfixed64 are encoded as fixed width bytes with
|
|
59
|
+
* an encoding that enables sorted iteration.
|
|
60
|
+
* - google.protobuf.Timestamp is encoded such that values with only seconds occupy 6 bytes,
|
|
61
|
+
* values including nanos occupy 9 bytes, and nil values occupy 1 byte. When iterating, nil
|
|
62
|
+
* values will always be ordered last. Seconds and nanos values must conform to the officially
|
|
63
|
+
* specified ranges of 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z and 0 to 999,999,999 respectively.
|
|
64
|
+
* - google.protobuf.Duration is encoded as 12 bytes using an encoding that enables sorted iteration.
|
|
65
|
+
* - enum fields are encoded using varint encoding and do not support sorted
|
|
66
|
+
* iteration.
|
|
67
|
+
* - bool fields are encoded as a single byte 0 or 1.
|
|
68
|
+
*
|
|
69
|
+
* All other fields types are unsupported in keys including repeated and
|
|
70
|
+
* oneof fields.
|
|
71
|
+
*
|
|
72
|
+
* Primary keys are prefixed by the varint encoded table id and the byte 0x0
|
|
73
|
+
* plus any additional prefix specified by the schema.
|
|
74
|
+
*/
|
|
75
|
+
fields: string;
|
|
76
|
+
/**
|
|
77
|
+
* auto_increment specifies that the primary key is generated by an
|
|
78
|
+
* auto-incrementing integer. If this is set to true fields must only
|
|
79
|
+
* contain one field of that is of type uint64.
|
|
80
|
+
*/
|
|
81
|
+
autoIncrement: boolean;
|
|
82
|
+
}
|
|
83
|
+
export interface PrimaryKeyDescriptorProtoMsg {
|
|
84
|
+
typeUrl: "/cosmos.orm.v1.PrimaryKeyDescriptor";
|
|
85
|
+
value: Uint8Array;
|
|
86
|
+
}
|
|
87
|
+
/** PrimaryKeyDescriptor describes a table primary key. */
|
|
88
|
+
export interface PrimaryKeyDescriptorAmino {
|
|
89
|
+
/**
|
|
90
|
+
* fields is a comma-separated list of fields in the primary key. Spaces are
|
|
91
|
+
* not allowed. Supported field types, their encodings, and any applicable constraints
|
|
92
|
+
* are described below.
|
|
93
|
+
* - uint32 are encoded as 2,3,4 or 5 bytes using a compact encoding that
|
|
94
|
+
* is suitable for sorted iteration (not varint encoding). This type is
|
|
95
|
+
* well-suited for small integers.
|
|
96
|
+
* - uint64 are encoded as 2,4,6 or 9 bytes using a compact encoding that
|
|
97
|
+
* is suitable for sorted iteration (not varint encoding). This type is
|
|
98
|
+
* well-suited for small integers such as auto-incrementing sequences.
|
|
99
|
+
* - fixed32, fixed64 are encoded as big-endian fixed width bytes and support
|
|
100
|
+
* sorted iteration. These types are well-suited for encoding fixed with
|
|
101
|
+
* decimals as integers.
|
|
102
|
+
* - string's are encoded as raw bytes in terminal key segments and null-terminated
|
|
103
|
+
* in non-terminal segments. Null characters are thus forbidden in strings.
|
|
104
|
+
* string fields support sorted iteration.
|
|
105
|
+
* - bytes are encoded as raw bytes in terminal segments and length-prefixed
|
|
106
|
+
* with a 32-bit unsigned varint in non-terminal segments.
|
|
107
|
+
* - int32, sint32, int64, sint64, sfixed32, sfixed64 are encoded as fixed width bytes with
|
|
108
|
+
* an encoding that enables sorted iteration.
|
|
109
|
+
* - google.protobuf.Timestamp is encoded such that values with only seconds occupy 6 bytes,
|
|
110
|
+
* values including nanos occupy 9 bytes, and nil values occupy 1 byte. When iterating, nil
|
|
111
|
+
* values will always be ordered last. Seconds and nanos values must conform to the officially
|
|
112
|
+
* specified ranges of 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z and 0 to 999,999,999 respectively.
|
|
113
|
+
* - google.protobuf.Duration is encoded as 12 bytes using an encoding that enables sorted iteration.
|
|
114
|
+
* - enum fields are encoded using varint encoding and do not support sorted
|
|
115
|
+
* iteration.
|
|
116
|
+
* - bool fields are encoded as a single byte 0 or 1.
|
|
117
|
+
*
|
|
118
|
+
* All other fields types are unsupported in keys including repeated and
|
|
119
|
+
* oneof fields.
|
|
120
|
+
*
|
|
121
|
+
* Primary keys are prefixed by the varint encoded table id and the byte 0x0
|
|
122
|
+
* plus any additional prefix specified by the schema.
|
|
123
|
+
*/
|
|
124
|
+
fields: string;
|
|
125
|
+
/**
|
|
126
|
+
* auto_increment specifies that the primary key is generated by an
|
|
127
|
+
* auto-incrementing integer. If this is set to true fields must only
|
|
128
|
+
* contain one field of that is of type uint64.
|
|
129
|
+
*/
|
|
130
|
+
auto_increment: boolean;
|
|
131
|
+
}
|
|
132
|
+
export interface PrimaryKeyDescriptorAminoMsg {
|
|
133
|
+
type: "cosmos-sdk/PrimaryKeyDescriptor";
|
|
134
|
+
value: PrimaryKeyDescriptorAmino;
|
|
135
|
+
}
|
|
136
|
+
/** PrimaryKeyDescriptor describes a table secondary index. */
|
|
137
|
+
export interface SecondaryIndexDescriptor {
|
|
138
|
+
/**
|
|
139
|
+
* fields is a comma-separated list of fields in the index. The supported
|
|
140
|
+
* field types are the same as those for PrimaryKeyDescriptor.fields.
|
|
141
|
+
* Index keys are prefixed by the varint encoded table id and the varint
|
|
142
|
+
* encoded index id plus any additional prefix specified by the schema.
|
|
143
|
+
*
|
|
144
|
+
* In addition the field segments, non-unique index keys are suffixed with
|
|
145
|
+
* any additional primary key fields not present in the index fields so that the
|
|
146
|
+
* primary key can be reconstructed. Unique indexes instead of being suffixed
|
|
147
|
+
* store the remaining primary key fields in the value..
|
|
148
|
+
*/
|
|
149
|
+
fields: string;
|
|
150
|
+
/**
|
|
151
|
+
* id is a non-zero integer ID that must be unique within the indexes for this
|
|
152
|
+
* table and less than 32768. It may be deprecated in the future when this can
|
|
153
|
+
* be auto-generated.
|
|
154
|
+
*/
|
|
155
|
+
id: number;
|
|
156
|
+
/** unique specifies that this an unique index. */
|
|
157
|
+
unique: boolean;
|
|
158
|
+
}
|
|
159
|
+
export interface SecondaryIndexDescriptorProtoMsg {
|
|
160
|
+
typeUrl: "/cosmos.orm.v1.SecondaryIndexDescriptor";
|
|
161
|
+
value: Uint8Array;
|
|
162
|
+
}
|
|
163
|
+
/** PrimaryKeyDescriptor describes a table secondary index. */
|
|
164
|
+
export interface SecondaryIndexDescriptorAmino {
|
|
165
|
+
/**
|
|
166
|
+
* fields is a comma-separated list of fields in the index. The supported
|
|
167
|
+
* field types are the same as those for PrimaryKeyDescriptor.fields.
|
|
168
|
+
* Index keys are prefixed by the varint encoded table id and the varint
|
|
169
|
+
* encoded index id plus any additional prefix specified by the schema.
|
|
170
|
+
*
|
|
171
|
+
* In addition the field segments, non-unique index keys are suffixed with
|
|
172
|
+
* any additional primary key fields not present in the index fields so that the
|
|
173
|
+
* primary key can be reconstructed. Unique indexes instead of being suffixed
|
|
174
|
+
* store the remaining primary key fields in the value..
|
|
175
|
+
*/
|
|
176
|
+
fields: string;
|
|
177
|
+
/**
|
|
178
|
+
* id is a non-zero integer ID that must be unique within the indexes for this
|
|
179
|
+
* table and less than 32768. It may be deprecated in the future when this can
|
|
180
|
+
* be auto-generated.
|
|
181
|
+
*/
|
|
182
|
+
id: number;
|
|
183
|
+
/** unique specifies that this an unique index. */
|
|
184
|
+
unique: boolean;
|
|
185
|
+
}
|
|
186
|
+
export interface SecondaryIndexDescriptorAminoMsg {
|
|
187
|
+
type: "cosmos-sdk/SecondaryIndexDescriptor";
|
|
188
|
+
value: SecondaryIndexDescriptorAmino;
|
|
189
|
+
}
|
|
190
|
+
/** TableDescriptor describes an ORM singleton table which has at most one instance. */
|
|
191
|
+
export interface SingletonDescriptor {
|
|
192
|
+
/**
|
|
193
|
+
* id is a non-zero integer ID that must be unique within the
|
|
194
|
+
* tables and singletons in this file. It may be deprecated in the future when this
|
|
195
|
+
* can be auto-generated.
|
|
196
|
+
*/
|
|
197
|
+
id: number;
|
|
198
|
+
}
|
|
199
|
+
export interface SingletonDescriptorProtoMsg {
|
|
200
|
+
typeUrl: "/cosmos.orm.v1.SingletonDescriptor";
|
|
201
|
+
value: Uint8Array;
|
|
202
|
+
}
|
|
203
|
+
/** TableDescriptor describes an ORM singleton table which has at most one instance. */
|
|
204
|
+
export interface SingletonDescriptorAmino {
|
|
205
|
+
/**
|
|
206
|
+
* id is a non-zero integer ID that must be unique within the
|
|
207
|
+
* tables and singletons in this file. It may be deprecated in the future when this
|
|
208
|
+
* can be auto-generated.
|
|
209
|
+
*/
|
|
210
|
+
id: number;
|
|
211
|
+
}
|
|
212
|
+
export interface SingletonDescriptorAminoMsg {
|
|
213
|
+
type: "cosmos-sdk/SingletonDescriptor";
|
|
214
|
+
value: SingletonDescriptorAmino;
|
|
215
|
+
}
|
|
216
|
+
function createBaseTableDescriptor(): TableDescriptor {
|
|
217
|
+
return {
|
|
218
|
+
primaryKey: undefined,
|
|
219
|
+
index: [],
|
|
220
|
+
id: 0
|
|
221
|
+
};
|
|
222
|
+
}
|
|
223
|
+
export const TableDescriptor = {
|
|
224
|
+
typeUrl: "/cosmos.orm.v1.TableDescriptor",
|
|
225
|
+
aminoType: "cosmos-sdk/TableDescriptor",
|
|
226
|
+
is(o: any): o is TableDescriptor {
|
|
227
|
+
return o && (o.$typeUrl === TableDescriptor.typeUrl || Array.isArray(o.index) && (!o.index.length || SecondaryIndexDescriptor.is(o.index[0])) && typeof o.id === "number");
|
|
228
|
+
},
|
|
229
|
+
isAmino(o: any): o is TableDescriptorAmino {
|
|
230
|
+
return o && (o.$typeUrl === TableDescriptor.typeUrl || Array.isArray(o.index) && (!o.index.length || SecondaryIndexDescriptor.isAmino(o.index[0])) && typeof o.id === "number");
|
|
231
|
+
},
|
|
232
|
+
encode(message: TableDescriptor, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
233
|
+
if (message.primaryKey !== undefined) {
|
|
234
|
+
PrimaryKeyDescriptor.encode(message.primaryKey, writer.uint32(10).fork()).ldelim();
|
|
235
|
+
}
|
|
236
|
+
for (const v of message.index) {
|
|
237
|
+
SecondaryIndexDescriptor.encode(v!, writer.uint32(18).fork()).ldelim();
|
|
238
|
+
}
|
|
239
|
+
if (message.id !== 0) {
|
|
240
|
+
writer.uint32(24).uint32(message.id);
|
|
241
|
+
}
|
|
242
|
+
return writer;
|
|
243
|
+
},
|
|
244
|
+
decode(input: BinaryReader | Uint8Array, length?: number): TableDescriptor {
|
|
245
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
246
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
247
|
+
const message = createBaseTableDescriptor();
|
|
248
|
+
while (reader.pos < end) {
|
|
249
|
+
const tag = reader.uint32();
|
|
250
|
+
switch (tag >>> 3) {
|
|
251
|
+
case 1:
|
|
252
|
+
message.primaryKey = PrimaryKeyDescriptor.decode(reader, reader.uint32());
|
|
253
|
+
break;
|
|
254
|
+
case 2:
|
|
255
|
+
message.index.push(SecondaryIndexDescriptor.decode(reader, reader.uint32()));
|
|
256
|
+
break;
|
|
257
|
+
case 3:
|
|
258
|
+
message.id = reader.uint32();
|
|
259
|
+
break;
|
|
260
|
+
default:
|
|
261
|
+
reader.skipType(tag & 7);
|
|
262
|
+
break;
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
return message;
|
|
266
|
+
},
|
|
267
|
+
fromPartial(object: DeepPartial<TableDescriptor>): TableDescriptor {
|
|
268
|
+
const message = createBaseTableDescriptor();
|
|
269
|
+
message.primaryKey = object.primaryKey !== undefined && object.primaryKey !== null ? PrimaryKeyDescriptor.fromPartial(object.primaryKey) : undefined;
|
|
270
|
+
message.index = object.index?.map(e => SecondaryIndexDescriptor.fromPartial(e)) || [];
|
|
271
|
+
message.id = object.id ?? 0;
|
|
272
|
+
return message;
|
|
273
|
+
},
|
|
274
|
+
fromAmino(object: TableDescriptorAmino): TableDescriptor {
|
|
275
|
+
const message = createBaseTableDescriptor();
|
|
276
|
+
if (object.primary_key !== undefined && object.primary_key !== null) {
|
|
277
|
+
message.primaryKey = PrimaryKeyDescriptor.fromAmino(object.primary_key);
|
|
278
|
+
}
|
|
279
|
+
message.index = object.index?.map(e => SecondaryIndexDescriptor.fromAmino(e)) || [];
|
|
280
|
+
if (object.id !== undefined && object.id !== null) {
|
|
281
|
+
message.id = object.id;
|
|
282
|
+
}
|
|
283
|
+
return message;
|
|
284
|
+
},
|
|
285
|
+
toAmino(message: TableDescriptor): TableDescriptorAmino {
|
|
286
|
+
const obj: any = {};
|
|
287
|
+
obj.primary_key = message.primaryKey ? PrimaryKeyDescriptor.toAmino(message.primaryKey) : undefined;
|
|
288
|
+
if (message.index) {
|
|
289
|
+
obj.index = message.index.map(e => e ? SecondaryIndexDescriptor.toAmino(e) : undefined);
|
|
290
|
+
} else {
|
|
291
|
+
obj.index = message.index;
|
|
292
|
+
}
|
|
293
|
+
obj.id = message.id === 0 ? undefined : message.id;
|
|
294
|
+
return obj;
|
|
295
|
+
},
|
|
296
|
+
fromAminoMsg(object: TableDescriptorAminoMsg): TableDescriptor {
|
|
297
|
+
return TableDescriptor.fromAmino(object.value);
|
|
298
|
+
},
|
|
299
|
+
toAminoMsg(message: TableDescriptor): TableDescriptorAminoMsg {
|
|
300
|
+
return {
|
|
301
|
+
type: "cosmos-sdk/TableDescriptor",
|
|
302
|
+
value: TableDescriptor.toAmino(message)
|
|
303
|
+
};
|
|
304
|
+
},
|
|
305
|
+
fromProtoMsg(message: TableDescriptorProtoMsg): TableDescriptor {
|
|
306
|
+
return TableDescriptor.decode(message.value);
|
|
307
|
+
},
|
|
308
|
+
toProto(message: TableDescriptor): Uint8Array {
|
|
309
|
+
return TableDescriptor.encode(message).finish();
|
|
310
|
+
},
|
|
311
|
+
toProtoMsg(message: TableDescriptor): TableDescriptorProtoMsg {
|
|
312
|
+
return {
|
|
313
|
+
typeUrl: "/cosmos.orm.v1.TableDescriptor",
|
|
314
|
+
value: TableDescriptor.encode(message).finish()
|
|
315
|
+
};
|
|
316
|
+
}
|
|
317
|
+
};
|
|
318
|
+
GlobalDecoderRegistry.register(TableDescriptor.typeUrl, TableDescriptor);
|
|
319
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(TableDescriptor.aminoType, TableDescriptor.typeUrl);
|
|
320
|
+
function createBasePrimaryKeyDescriptor(): PrimaryKeyDescriptor {
|
|
321
|
+
return {
|
|
322
|
+
fields: "",
|
|
323
|
+
autoIncrement: false
|
|
324
|
+
};
|
|
325
|
+
}
|
|
326
|
+
export const PrimaryKeyDescriptor = {
|
|
327
|
+
typeUrl: "/cosmos.orm.v1.PrimaryKeyDescriptor",
|
|
328
|
+
aminoType: "cosmos-sdk/PrimaryKeyDescriptor",
|
|
329
|
+
is(o: any): o is PrimaryKeyDescriptor {
|
|
330
|
+
return o && (o.$typeUrl === PrimaryKeyDescriptor.typeUrl || typeof o.fields === "string" && typeof o.autoIncrement === "boolean");
|
|
331
|
+
},
|
|
332
|
+
isAmino(o: any): o is PrimaryKeyDescriptorAmino {
|
|
333
|
+
return o && (o.$typeUrl === PrimaryKeyDescriptor.typeUrl || typeof o.fields === "string" && typeof o.auto_increment === "boolean");
|
|
334
|
+
},
|
|
335
|
+
encode(message: PrimaryKeyDescriptor, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
336
|
+
if (message.fields !== "") {
|
|
337
|
+
writer.uint32(10).string(message.fields);
|
|
338
|
+
}
|
|
339
|
+
if (message.autoIncrement === true) {
|
|
340
|
+
writer.uint32(16).bool(message.autoIncrement);
|
|
341
|
+
}
|
|
342
|
+
return writer;
|
|
343
|
+
},
|
|
344
|
+
decode(input: BinaryReader | Uint8Array, length?: number): PrimaryKeyDescriptor {
|
|
345
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
346
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
347
|
+
const message = createBasePrimaryKeyDescriptor();
|
|
348
|
+
while (reader.pos < end) {
|
|
349
|
+
const tag = reader.uint32();
|
|
350
|
+
switch (tag >>> 3) {
|
|
351
|
+
case 1:
|
|
352
|
+
message.fields = reader.string();
|
|
353
|
+
break;
|
|
354
|
+
case 2:
|
|
355
|
+
message.autoIncrement = reader.bool();
|
|
356
|
+
break;
|
|
357
|
+
default:
|
|
358
|
+
reader.skipType(tag & 7);
|
|
359
|
+
break;
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
return message;
|
|
363
|
+
},
|
|
364
|
+
fromPartial(object: DeepPartial<PrimaryKeyDescriptor>): PrimaryKeyDescriptor {
|
|
365
|
+
const message = createBasePrimaryKeyDescriptor();
|
|
366
|
+
message.fields = object.fields ?? "";
|
|
367
|
+
message.autoIncrement = object.autoIncrement ?? false;
|
|
368
|
+
return message;
|
|
369
|
+
},
|
|
370
|
+
fromAmino(object: PrimaryKeyDescriptorAmino): PrimaryKeyDescriptor {
|
|
371
|
+
const message = createBasePrimaryKeyDescriptor();
|
|
372
|
+
if (object.fields !== undefined && object.fields !== null) {
|
|
373
|
+
message.fields = object.fields;
|
|
374
|
+
}
|
|
375
|
+
if (object.auto_increment !== undefined && object.auto_increment !== null) {
|
|
376
|
+
message.autoIncrement = object.auto_increment;
|
|
377
|
+
}
|
|
378
|
+
return message;
|
|
379
|
+
},
|
|
380
|
+
toAmino(message: PrimaryKeyDescriptor): PrimaryKeyDescriptorAmino {
|
|
381
|
+
const obj: any = {};
|
|
382
|
+
obj.fields = message.fields === "" ? undefined : message.fields;
|
|
383
|
+
obj.auto_increment = message.autoIncrement === false ? undefined : message.autoIncrement;
|
|
384
|
+
return obj;
|
|
385
|
+
},
|
|
386
|
+
fromAminoMsg(object: PrimaryKeyDescriptorAminoMsg): PrimaryKeyDescriptor {
|
|
387
|
+
return PrimaryKeyDescriptor.fromAmino(object.value);
|
|
388
|
+
},
|
|
389
|
+
toAminoMsg(message: PrimaryKeyDescriptor): PrimaryKeyDescriptorAminoMsg {
|
|
390
|
+
return {
|
|
391
|
+
type: "cosmos-sdk/PrimaryKeyDescriptor",
|
|
392
|
+
value: PrimaryKeyDescriptor.toAmino(message)
|
|
393
|
+
};
|
|
394
|
+
},
|
|
395
|
+
fromProtoMsg(message: PrimaryKeyDescriptorProtoMsg): PrimaryKeyDescriptor {
|
|
396
|
+
return PrimaryKeyDescriptor.decode(message.value);
|
|
397
|
+
},
|
|
398
|
+
toProto(message: PrimaryKeyDescriptor): Uint8Array {
|
|
399
|
+
return PrimaryKeyDescriptor.encode(message).finish();
|
|
400
|
+
},
|
|
401
|
+
toProtoMsg(message: PrimaryKeyDescriptor): PrimaryKeyDescriptorProtoMsg {
|
|
402
|
+
return {
|
|
403
|
+
typeUrl: "/cosmos.orm.v1.PrimaryKeyDescriptor",
|
|
404
|
+
value: PrimaryKeyDescriptor.encode(message).finish()
|
|
405
|
+
};
|
|
406
|
+
}
|
|
407
|
+
};
|
|
408
|
+
GlobalDecoderRegistry.register(PrimaryKeyDescriptor.typeUrl, PrimaryKeyDescriptor);
|
|
409
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(PrimaryKeyDescriptor.aminoType, PrimaryKeyDescriptor.typeUrl);
|
|
410
|
+
function createBaseSecondaryIndexDescriptor(): SecondaryIndexDescriptor {
|
|
411
|
+
return {
|
|
412
|
+
fields: "",
|
|
413
|
+
id: 0,
|
|
414
|
+
unique: false
|
|
415
|
+
};
|
|
416
|
+
}
|
|
417
|
+
export const SecondaryIndexDescriptor = {
|
|
418
|
+
typeUrl: "/cosmos.orm.v1.SecondaryIndexDescriptor",
|
|
419
|
+
aminoType: "cosmos-sdk/SecondaryIndexDescriptor",
|
|
420
|
+
is(o: any): o is SecondaryIndexDescriptor {
|
|
421
|
+
return o && (o.$typeUrl === SecondaryIndexDescriptor.typeUrl || typeof o.fields === "string" && typeof o.id === "number" && typeof o.unique === "boolean");
|
|
422
|
+
},
|
|
423
|
+
isAmino(o: any): o is SecondaryIndexDescriptorAmino {
|
|
424
|
+
return o && (o.$typeUrl === SecondaryIndexDescriptor.typeUrl || typeof o.fields === "string" && typeof o.id === "number" && typeof o.unique === "boolean");
|
|
425
|
+
},
|
|
426
|
+
encode(message: SecondaryIndexDescriptor, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
427
|
+
if (message.fields !== "") {
|
|
428
|
+
writer.uint32(10).string(message.fields);
|
|
429
|
+
}
|
|
430
|
+
if (message.id !== 0) {
|
|
431
|
+
writer.uint32(16).uint32(message.id);
|
|
432
|
+
}
|
|
433
|
+
if (message.unique === true) {
|
|
434
|
+
writer.uint32(24).bool(message.unique);
|
|
435
|
+
}
|
|
436
|
+
return writer;
|
|
437
|
+
},
|
|
438
|
+
decode(input: BinaryReader | Uint8Array, length?: number): SecondaryIndexDescriptor {
|
|
439
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
440
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
441
|
+
const message = createBaseSecondaryIndexDescriptor();
|
|
442
|
+
while (reader.pos < end) {
|
|
443
|
+
const tag = reader.uint32();
|
|
444
|
+
switch (tag >>> 3) {
|
|
445
|
+
case 1:
|
|
446
|
+
message.fields = reader.string();
|
|
447
|
+
break;
|
|
448
|
+
case 2:
|
|
449
|
+
message.id = reader.uint32();
|
|
450
|
+
break;
|
|
451
|
+
case 3:
|
|
452
|
+
message.unique = reader.bool();
|
|
453
|
+
break;
|
|
454
|
+
default:
|
|
455
|
+
reader.skipType(tag & 7);
|
|
456
|
+
break;
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
return message;
|
|
460
|
+
},
|
|
461
|
+
fromPartial(object: DeepPartial<SecondaryIndexDescriptor>): SecondaryIndexDescriptor {
|
|
462
|
+
const message = createBaseSecondaryIndexDescriptor();
|
|
463
|
+
message.fields = object.fields ?? "";
|
|
464
|
+
message.id = object.id ?? 0;
|
|
465
|
+
message.unique = object.unique ?? false;
|
|
466
|
+
return message;
|
|
467
|
+
},
|
|
468
|
+
fromAmino(object: SecondaryIndexDescriptorAmino): SecondaryIndexDescriptor {
|
|
469
|
+
const message = createBaseSecondaryIndexDescriptor();
|
|
470
|
+
if (object.fields !== undefined && object.fields !== null) {
|
|
471
|
+
message.fields = object.fields;
|
|
472
|
+
}
|
|
473
|
+
if (object.id !== undefined && object.id !== null) {
|
|
474
|
+
message.id = object.id;
|
|
475
|
+
}
|
|
476
|
+
if (object.unique !== undefined && object.unique !== null) {
|
|
477
|
+
message.unique = object.unique;
|
|
478
|
+
}
|
|
479
|
+
return message;
|
|
480
|
+
},
|
|
481
|
+
toAmino(message: SecondaryIndexDescriptor): SecondaryIndexDescriptorAmino {
|
|
482
|
+
const obj: any = {};
|
|
483
|
+
obj.fields = message.fields === "" ? undefined : message.fields;
|
|
484
|
+
obj.id = message.id === 0 ? undefined : message.id;
|
|
485
|
+
obj.unique = message.unique === false ? undefined : message.unique;
|
|
486
|
+
return obj;
|
|
487
|
+
},
|
|
488
|
+
fromAminoMsg(object: SecondaryIndexDescriptorAminoMsg): SecondaryIndexDescriptor {
|
|
489
|
+
return SecondaryIndexDescriptor.fromAmino(object.value);
|
|
490
|
+
},
|
|
491
|
+
toAminoMsg(message: SecondaryIndexDescriptor): SecondaryIndexDescriptorAminoMsg {
|
|
492
|
+
return {
|
|
493
|
+
type: "cosmos-sdk/SecondaryIndexDescriptor",
|
|
494
|
+
value: SecondaryIndexDescriptor.toAmino(message)
|
|
495
|
+
};
|
|
496
|
+
},
|
|
497
|
+
fromProtoMsg(message: SecondaryIndexDescriptorProtoMsg): SecondaryIndexDescriptor {
|
|
498
|
+
return SecondaryIndexDescriptor.decode(message.value);
|
|
499
|
+
},
|
|
500
|
+
toProto(message: SecondaryIndexDescriptor): Uint8Array {
|
|
501
|
+
return SecondaryIndexDescriptor.encode(message).finish();
|
|
502
|
+
},
|
|
503
|
+
toProtoMsg(message: SecondaryIndexDescriptor): SecondaryIndexDescriptorProtoMsg {
|
|
504
|
+
return {
|
|
505
|
+
typeUrl: "/cosmos.orm.v1.SecondaryIndexDescriptor",
|
|
506
|
+
value: SecondaryIndexDescriptor.encode(message).finish()
|
|
507
|
+
};
|
|
508
|
+
}
|
|
509
|
+
};
|
|
510
|
+
GlobalDecoderRegistry.register(SecondaryIndexDescriptor.typeUrl, SecondaryIndexDescriptor);
|
|
511
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(SecondaryIndexDescriptor.aminoType, SecondaryIndexDescriptor.typeUrl);
|
|
512
|
+
function createBaseSingletonDescriptor(): SingletonDescriptor {
|
|
513
|
+
return {
|
|
514
|
+
id: 0
|
|
515
|
+
};
|
|
516
|
+
}
|
|
517
|
+
export const SingletonDescriptor = {
|
|
518
|
+
typeUrl: "/cosmos.orm.v1.SingletonDescriptor",
|
|
519
|
+
aminoType: "cosmos-sdk/SingletonDescriptor",
|
|
520
|
+
is(o: any): o is SingletonDescriptor {
|
|
521
|
+
return o && (o.$typeUrl === SingletonDescriptor.typeUrl || typeof o.id === "number");
|
|
522
|
+
},
|
|
523
|
+
isAmino(o: any): o is SingletonDescriptorAmino {
|
|
524
|
+
return o && (o.$typeUrl === SingletonDescriptor.typeUrl || typeof o.id === "number");
|
|
525
|
+
},
|
|
526
|
+
encode(message: SingletonDescriptor, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
527
|
+
if (message.id !== 0) {
|
|
528
|
+
writer.uint32(8).uint32(message.id);
|
|
529
|
+
}
|
|
530
|
+
return writer;
|
|
531
|
+
},
|
|
532
|
+
decode(input: BinaryReader | Uint8Array, length?: number): SingletonDescriptor {
|
|
533
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
534
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
535
|
+
const message = createBaseSingletonDescriptor();
|
|
536
|
+
while (reader.pos < end) {
|
|
537
|
+
const tag = reader.uint32();
|
|
538
|
+
switch (tag >>> 3) {
|
|
539
|
+
case 1:
|
|
540
|
+
message.id = reader.uint32();
|
|
541
|
+
break;
|
|
542
|
+
default:
|
|
543
|
+
reader.skipType(tag & 7);
|
|
544
|
+
break;
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
return message;
|
|
548
|
+
},
|
|
549
|
+
fromPartial(object: DeepPartial<SingletonDescriptor>): SingletonDescriptor {
|
|
550
|
+
const message = createBaseSingletonDescriptor();
|
|
551
|
+
message.id = object.id ?? 0;
|
|
552
|
+
return message;
|
|
553
|
+
},
|
|
554
|
+
fromAmino(object: SingletonDescriptorAmino): SingletonDescriptor {
|
|
555
|
+
const message = createBaseSingletonDescriptor();
|
|
556
|
+
if (object.id !== undefined && object.id !== null) {
|
|
557
|
+
message.id = object.id;
|
|
558
|
+
}
|
|
559
|
+
return message;
|
|
560
|
+
},
|
|
561
|
+
toAmino(message: SingletonDescriptor): SingletonDescriptorAmino {
|
|
562
|
+
const obj: any = {};
|
|
563
|
+
obj.id = message.id === 0 ? undefined : message.id;
|
|
564
|
+
return obj;
|
|
565
|
+
},
|
|
566
|
+
fromAminoMsg(object: SingletonDescriptorAminoMsg): SingletonDescriptor {
|
|
567
|
+
return SingletonDescriptor.fromAmino(object.value);
|
|
568
|
+
},
|
|
569
|
+
toAminoMsg(message: SingletonDescriptor): SingletonDescriptorAminoMsg {
|
|
570
|
+
return {
|
|
571
|
+
type: "cosmos-sdk/SingletonDescriptor",
|
|
572
|
+
value: SingletonDescriptor.toAmino(message)
|
|
573
|
+
};
|
|
574
|
+
},
|
|
575
|
+
fromProtoMsg(message: SingletonDescriptorProtoMsg): SingletonDescriptor {
|
|
576
|
+
return SingletonDescriptor.decode(message.value);
|
|
577
|
+
},
|
|
578
|
+
toProto(message: SingletonDescriptor): Uint8Array {
|
|
579
|
+
return SingletonDescriptor.encode(message).finish();
|
|
580
|
+
},
|
|
581
|
+
toProtoMsg(message: SingletonDescriptor): SingletonDescriptorProtoMsg {
|
|
582
|
+
return {
|
|
583
|
+
typeUrl: "/cosmos.orm.v1.SingletonDescriptor",
|
|
584
|
+
value: SingletonDescriptor.encode(message).finish()
|
|
585
|
+
};
|
|
586
|
+
}
|
|
587
|
+
};
|
|
588
|
+
GlobalDecoderRegistry.register(SingletonDescriptor.typeUrl, SingletonDescriptor);
|
|
589
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(SingletonDescriptor.aminoType, SingletonDescriptor.typeUrl);
|