@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,209 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
2
|
+
import { DeepPartial, bytesFromBase64, base64FromBytes } from "../../../helpers";
|
|
3
|
+
import { GlobalDecoderRegistry } from "../../../registry";
|
|
4
|
+
/**
|
|
5
|
+
* PubKey is an ed25519 public key for handling Tendermint keys in SDK.
|
|
6
|
+
* It's needed for Any serialization and SDK compatibility.
|
|
7
|
+
* It must not be used in a non Tendermint key context because it doesn't implement
|
|
8
|
+
* ADR-28. Nevertheless, you will like to use ed25519 in app user level
|
|
9
|
+
* then you must create a new proto message and follow ADR-28 for Address construction.
|
|
10
|
+
*/
|
|
11
|
+
export interface PubKey {
|
|
12
|
+
key: Uint8Array;
|
|
13
|
+
}
|
|
14
|
+
export interface PubKeyProtoMsg {
|
|
15
|
+
typeUrl: "/cosmos.crypto.ed25519.PubKey";
|
|
16
|
+
value: Uint8Array;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* PubKey is an ed25519 public key for handling Tendermint keys in SDK.
|
|
20
|
+
* It's needed for Any serialization and SDK compatibility.
|
|
21
|
+
* It must not be used in a non Tendermint key context because it doesn't implement
|
|
22
|
+
* ADR-28. Nevertheless, you will like to use ed25519 in app user level
|
|
23
|
+
* then you must create a new proto message and follow ADR-28 for Address construction.
|
|
24
|
+
*/
|
|
25
|
+
export interface PubKeyAmino {
|
|
26
|
+
key: string;
|
|
27
|
+
}
|
|
28
|
+
export interface PubKeyAminoMsg {
|
|
29
|
+
type: "tendermint/PubKeyEd25519";
|
|
30
|
+
value: PubKeyAmino;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* PrivKey defines a ed25519 private key.
|
|
34
|
+
* NOTE: ed25519 keys must not be used in SDK apps except in a tendermint validator context.
|
|
35
|
+
*/
|
|
36
|
+
export interface PrivKey {
|
|
37
|
+
key: Uint8Array;
|
|
38
|
+
}
|
|
39
|
+
export interface PrivKeyProtoMsg {
|
|
40
|
+
typeUrl: "/cosmos.crypto.ed25519.PrivKey";
|
|
41
|
+
value: Uint8Array;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* PrivKey defines a ed25519 private key.
|
|
45
|
+
* NOTE: ed25519 keys must not be used in SDK apps except in a tendermint validator context.
|
|
46
|
+
*/
|
|
47
|
+
export interface PrivKeyAmino {
|
|
48
|
+
key: string;
|
|
49
|
+
}
|
|
50
|
+
export interface PrivKeyAminoMsg {
|
|
51
|
+
type: "tendermint/PrivKeyEd25519";
|
|
52
|
+
value: PrivKeyAmino;
|
|
53
|
+
}
|
|
54
|
+
function createBasePubKey(): PubKey {
|
|
55
|
+
return {
|
|
56
|
+
key: new Uint8Array()
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
export const PubKey = {
|
|
60
|
+
typeUrl: "/cosmos.crypto.ed25519.PubKey",
|
|
61
|
+
aminoType: "tendermint/PubKeyEd25519",
|
|
62
|
+
is(o: any): o is PubKey {
|
|
63
|
+
return o && (o.$typeUrl === PubKey.typeUrl || o.key instanceof Uint8Array || typeof o.key === "string");
|
|
64
|
+
},
|
|
65
|
+
isAmino(o: any): o is PubKeyAmino {
|
|
66
|
+
return o && (o.$typeUrl === PubKey.typeUrl || o.key instanceof Uint8Array || typeof o.key === "string");
|
|
67
|
+
},
|
|
68
|
+
encode(message: PubKey, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
69
|
+
if (message.key.length !== 0) {
|
|
70
|
+
writer.uint32(10).bytes(message.key);
|
|
71
|
+
}
|
|
72
|
+
return writer;
|
|
73
|
+
},
|
|
74
|
+
decode(input: BinaryReader | Uint8Array, length?: number): PubKey {
|
|
75
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
76
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
77
|
+
const message = createBasePubKey();
|
|
78
|
+
while (reader.pos < end) {
|
|
79
|
+
const tag = reader.uint32();
|
|
80
|
+
switch (tag >>> 3) {
|
|
81
|
+
case 1:
|
|
82
|
+
message.key = reader.bytes();
|
|
83
|
+
break;
|
|
84
|
+
default:
|
|
85
|
+
reader.skipType(tag & 7);
|
|
86
|
+
break;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
return message;
|
|
90
|
+
},
|
|
91
|
+
fromPartial(object: DeepPartial<PubKey>): PubKey {
|
|
92
|
+
const message = createBasePubKey();
|
|
93
|
+
message.key = object.key ?? new Uint8Array();
|
|
94
|
+
return message;
|
|
95
|
+
},
|
|
96
|
+
fromAmino(object: PubKeyAmino): PubKey {
|
|
97
|
+
const message = createBasePubKey();
|
|
98
|
+
if (object.key !== undefined && object.key !== null) {
|
|
99
|
+
message.key = bytesFromBase64(object.key);
|
|
100
|
+
}
|
|
101
|
+
return message;
|
|
102
|
+
},
|
|
103
|
+
toAmino(message: PubKey): PubKeyAmino {
|
|
104
|
+
const obj: any = {};
|
|
105
|
+
obj.key = message.key ? base64FromBytes(message.key) : undefined;
|
|
106
|
+
return obj;
|
|
107
|
+
},
|
|
108
|
+
fromAminoMsg(object: PubKeyAminoMsg): PubKey {
|
|
109
|
+
return PubKey.fromAmino(object.value);
|
|
110
|
+
},
|
|
111
|
+
toAminoMsg(message: PubKey): PubKeyAminoMsg {
|
|
112
|
+
return {
|
|
113
|
+
type: "tendermint/PubKeyEd25519",
|
|
114
|
+
value: PubKey.toAmino(message)
|
|
115
|
+
};
|
|
116
|
+
},
|
|
117
|
+
fromProtoMsg(message: PubKeyProtoMsg): PubKey {
|
|
118
|
+
return PubKey.decode(message.value);
|
|
119
|
+
},
|
|
120
|
+
toProto(message: PubKey): Uint8Array {
|
|
121
|
+
return PubKey.encode(message).finish();
|
|
122
|
+
},
|
|
123
|
+
toProtoMsg(message: PubKey): PubKeyProtoMsg {
|
|
124
|
+
return {
|
|
125
|
+
typeUrl: "/cosmos.crypto.ed25519.PubKey",
|
|
126
|
+
value: PubKey.encode(message).finish()
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
};
|
|
130
|
+
GlobalDecoderRegistry.register(PubKey.typeUrl, PubKey);
|
|
131
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(PubKey.aminoType, PubKey.typeUrl);
|
|
132
|
+
function createBasePrivKey(): PrivKey {
|
|
133
|
+
return {
|
|
134
|
+
key: new Uint8Array()
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
export const PrivKey = {
|
|
138
|
+
typeUrl: "/cosmos.crypto.ed25519.PrivKey",
|
|
139
|
+
aminoType: "tendermint/PrivKeyEd25519",
|
|
140
|
+
is(o: any): o is PrivKey {
|
|
141
|
+
return o && (o.$typeUrl === PrivKey.typeUrl || o.key instanceof Uint8Array || typeof o.key === "string");
|
|
142
|
+
},
|
|
143
|
+
isAmino(o: any): o is PrivKeyAmino {
|
|
144
|
+
return o && (o.$typeUrl === PrivKey.typeUrl || o.key instanceof Uint8Array || typeof o.key === "string");
|
|
145
|
+
},
|
|
146
|
+
encode(message: PrivKey, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
147
|
+
if (message.key.length !== 0) {
|
|
148
|
+
writer.uint32(10).bytes(message.key);
|
|
149
|
+
}
|
|
150
|
+
return writer;
|
|
151
|
+
},
|
|
152
|
+
decode(input: BinaryReader | Uint8Array, length?: number): PrivKey {
|
|
153
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
154
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
155
|
+
const message = createBasePrivKey();
|
|
156
|
+
while (reader.pos < end) {
|
|
157
|
+
const tag = reader.uint32();
|
|
158
|
+
switch (tag >>> 3) {
|
|
159
|
+
case 1:
|
|
160
|
+
message.key = reader.bytes();
|
|
161
|
+
break;
|
|
162
|
+
default:
|
|
163
|
+
reader.skipType(tag & 7);
|
|
164
|
+
break;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
return message;
|
|
168
|
+
},
|
|
169
|
+
fromPartial(object: DeepPartial<PrivKey>): PrivKey {
|
|
170
|
+
const message = createBasePrivKey();
|
|
171
|
+
message.key = object.key ?? new Uint8Array();
|
|
172
|
+
return message;
|
|
173
|
+
},
|
|
174
|
+
fromAmino(object: PrivKeyAmino): PrivKey {
|
|
175
|
+
const message = createBasePrivKey();
|
|
176
|
+
if (object.key !== undefined && object.key !== null) {
|
|
177
|
+
message.key = bytesFromBase64(object.key);
|
|
178
|
+
}
|
|
179
|
+
return message;
|
|
180
|
+
},
|
|
181
|
+
toAmino(message: PrivKey): PrivKeyAmino {
|
|
182
|
+
const obj: any = {};
|
|
183
|
+
obj.key = message.key ? base64FromBytes(message.key) : undefined;
|
|
184
|
+
return obj;
|
|
185
|
+
},
|
|
186
|
+
fromAminoMsg(object: PrivKeyAminoMsg): PrivKey {
|
|
187
|
+
return PrivKey.fromAmino(object.value);
|
|
188
|
+
},
|
|
189
|
+
toAminoMsg(message: PrivKey): PrivKeyAminoMsg {
|
|
190
|
+
return {
|
|
191
|
+
type: "tendermint/PrivKeyEd25519",
|
|
192
|
+
value: PrivKey.toAmino(message)
|
|
193
|
+
};
|
|
194
|
+
},
|
|
195
|
+
fromProtoMsg(message: PrivKeyProtoMsg): PrivKey {
|
|
196
|
+
return PrivKey.decode(message.value);
|
|
197
|
+
},
|
|
198
|
+
toProto(message: PrivKey): Uint8Array {
|
|
199
|
+
return PrivKey.encode(message).finish();
|
|
200
|
+
},
|
|
201
|
+
toProtoMsg(message: PrivKey): PrivKeyProtoMsg {
|
|
202
|
+
return {
|
|
203
|
+
typeUrl: "/cosmos.crypto.ed25519.PrivKey",
|
|
204
|
+
value: PrivKey.encode(message).finish()
|
|
205
|
+
};
|
|
206
|
+
}
|
|
207
|
+
};
|
|
208
|
+
GlobalDecoderRegistry.register(PrivKey.typeUrl, PrivKey);
|
|
209
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(PrivKey.aminoType, PrivKey.typeUrl);
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "../../../../binary";
|
|
2
|
+
import { DeepPartial } from "../../../../helpers";
|
|
3
|
+
import { GlobalDecoderRegistry } from "../../../../registry";
|
|
4
|
+
/** BIP44Params is used as path field in ledger item in Record. */
|
|
5
|
+
export interface BIP44Params {
|
|
6
|
+
/** purpose is a constant set to 44' (or 0x8000002C) following the BIP43 recommendation */
|
|
7
|
+
purpose: number;
|
|
8
|
+
/** coin_type is a constant that improves privacy */
|
|
9
|
+
coinType: number;
|
|
10
|
+
/** account splits the key space into independent user identities */
|
|
11
|
+
account: number;
|
|
12
|
+
/**
|
|
13
|
+
* change is a constant used for public derivation. Constant 0 is used for external chain and constant 1 for internal
|
|
14
|
+
* chain.
|
|
15
|
+
*/
|
|
16
|
+
change: boolean;
|
|
17
|
+
/** address_index is used as child index in BIP32 derivation */
|
|
18
|
+
addressIndex: number;
|
|
19
|
+
}
|
|
20
|
+
export interface BIP44ParamsProtoMsg {
|
|
21
|
+
typeUrl: "/cosmos.crypto.hd.v1.BIP44Params";
|
|
22
|
+
value: Uint8Array;
|
|
23
|
+
}
|
|
24
|
+
/** BIP44Params is used as path field in ledger item in Record. */
|
|
25
|
+
export interface BIP44ParamsAmino {
|
|
26
|
+
/** purpose is a constant set to 44' (or 0x8000002C) following the BIP43 recommendation */
|
|
27
|
+
purpose: number;
|
|
28
|
+
/** coin_type is a constant that improves privacy */
|
|
29
|
+
coin_type: number;
|
|
30
|
+
/** account splits the key space into independent user identities */
|
|
31
|
+
account: number;
|
|
32
|
+
/**
|
|
33
|
+
* change is a constant used for public derivation. Constant 0 is used for external chain and constant 1 for internal
|
|
34
|
+
* chain.
|
|
35
|
+
*/
|
|
36
|
+
change: boolean;
|
|
37
|
+
/** address_index is used as child index in BIP32 derivation */
|
|
38
|
+
address_index: number;
|
|
39
|
+
}
|
|
40
|
+
export interface BIP44ParamsAminoMsg {
|
|
41
|
+
type: "crypto/keys/hd/BIP44Params";
|
|
42
|
+
value: BIP44ParamsAmino;
|
|
43
|
+
}
|
|
44
|
+
function createBaseBIP44Params(): BIP44Params {
|
|
45
|
+
return {
|
|
46
|
+
purpose: 0,
|
|
47
|
+
coinType: 0,
|
|
48
|
+
account: 0,
|
|
49
|
+
change: false,
|
|
50
|
+
addressIndex: 0
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
export const BIP44Params = {
|
|
54
|
+
typeUrl: "/cosmos.crypto.hd.v1.BIP44Params",
|
|
55
|
+
aminoType: "crypto/keys/hd/BIP44Params",
|
|
56
|
+
is(o: any): o is BIP44Params {
|
|
57
|
+
return o && (o.$typeUrl === BIP44Params.typeUrl || typeof o.purpose === "number" && typeof o.coinType === "number" && typeof o.account === "number" && typeof o.change === "boolean" && typeof o.addressIndex === "number");
|
|
58
|
+
},
|
|
59
|
+
isAmino(o: any): o is BIP44ParamsAmino {
|
|
60
|
+
return o && (o.$typeUrl === BIP44Params.typeUrl || typeof o.purpose === "number" && typeof o.coin_type === "number" && typeof o.account === "number" && typeof o.change === "boolean" && typeof o.address_index === "number");
|
|
61
|
+
},
|
|
62
|
+
encode(message: BIP44Params, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
63
|
+
if (message.purpose !== 0) {
|
|
64
|
+
writer.uint32(8).uint32(message.purpose);
|
|
65
|
+
}
|
|
66
|
+
if (message.coinType !== 0) {
|
|
67
|
+
writer.uint32(16).uint32(message.coinType);
|
|
68
|
+
}
|
|
69
|
+
if (message.account !== 0) {
|
|
70
|
+
writer.uint32(24).uint32(message.account);
|
|
71
|
+
}
|
|
72
|
+
if (message.change === true) {
|
|
73
|
+
writer.uint32(32).bool(message.change);
|
|
74
|
+
}
|
|
75
|
+
if (message.addressIndex !== 0) {
|
|
76
|
+
writer.uint32(40).uint32(message.addressIndex);
|
|
77
|
+
}
|
|
78
|
+
return writer;
|
|
79
|
+
},
|
|
80
|
+
decode(input: BinaryReader | Uint8Array, length?: number): BIP44Params {
|
|
81
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
82
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
83
|
+
const message = createBaseBIP44Params();
|
|
84
|
+
while (reader.pos < end) {
|
|
85
|
+
const tag = reader.uint32();
|
|
86
|
+
switch (tag >>> 3) {
|
|
87
|
+
case 1:
|
|
88
|
+
message.purpose = reader.uint32();
|
|
89
|
+
break;
|
|
90
|
+
case 2:
|
|
91
|
+
message.coinType = reader.uint32();
|
|
92
|
+
break;
|
|
93
|
+
case 3:
|
|
94
|
+
message.account = reader.uint32();
|
|
95
|
+
break;
|
|
96
|
+
case 4:
|
|
97
|
+
message.change = reader.bool();
|
|
98
|
+
break;
|
|
99
|
+
case 5:
|
|
100
|
+
message.addressIndex = reader.uint32();
|
|
101
|
+
break;
|
|
102
|
+
default:
|
|
103
|
+
reader.skipType(tag & 7);
|
|
104
|
+
break;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
return message;
|
|
108
|
+
},
|
|
109
|
+
fromPartial(object: DeepPartial<BIP44Params>): BIP44Params {
|
|
110
|
+
const message = createBaseBIP44Params();
|
|
111
|
+
message.purpose = object.purpose ?? 0;
|
|
112
|
+
message.coinType = object.coinType ?? 0;
|
|
113
|
+
message.account = object.account ?? 0;
|
|
114
|
+
message.change = object.change ?? false;
|
|
115
|
+
message.addressIndex = object.addressIndex ?? 0;
|
|
116
|
+
return message;
|
|
117
|
+
},
|
|
118
|
+
fromAmino(object: BIP44ParamsAmino): BIP44Params {
|
|
119
|
+
const message = createBaseBIP44Params();
|
|
120
|
+
if (object.purpose !== undefined && object.purpose !== null) {
|
|
121
|
+
message.purpose = object.purpose;
|
|
122
|
+
}
|
|
123
|
+
if (object.coin_type !== undefined && object.coin_type !== null) {
|
|
124
|
+
message.coinType = object.coin_type;
|
|
125
|
+
}
|
|
126
|
+
if (object.account !== undefined && object.account !== null) {
|
|
127
|
+
message.account = object.account;
|
|
128
|
+
}
|
|
129
|
+
if (object.change !== undefined && object.change !== null) {
|
|
130
|
+
message.change = object.change;
|
|
131
|
+
}
|
|
132
|
+
if (object.address_index !== undefined && object.address_index !== null) {
|
|
133
|
+
message.addressIndex = object.address_index;
|
|
134
|
+
}
|
|
135
|
+
return message;
|
|
136
|
+
},
|
|
137
|
+
toAmino(message: BIP44Params): BIP44ParamsAmino {
|
|
138
|
+
const obj: any = {};
|
|
139
|
+
obj.purpose = message.purpose === 0 ? undefined : message.purpose;
|
|
140
|
+
obj.coin_type = message.coinType === 0 ? undefined : message.coinType;
|
|
141
|
+
obj.account = message.account === 0 ? undefined : message.account;
|
|
142
|
+
obj.change = message.change === false ? undefined : message.change;
|
|
143
|
+
obj.address_index = message.addressIndex === 0 ? undefined : message.addressIndex;
|
|
144
|
+
return obj;
|
|
145
|
+
},
|
|
146
|
+
fromAminoMsg(object: BIP44ParamsAminoMsg): BIP44Params {
|
|
147
|
+
return BIP44Params.fromAmino(object.value);
|
|
148
|
+
},
|
|
149
|
+
toAminoMsg(message: BIP44Params): BIP44ParamsAminoMsg {
|
|
150
|
+
return {
|
|
151
|
+
type: "crypto/keys/hd/BIP44Params",
|
|
152
|
+
value: BIP44Params.toAmino(message)
|
|
153
|
+
};
|
|
154
|
+
},
|
|
155
|
+
fromProtoMsg(message: BIP44ParamsProtoMsg): BIP44Params {
|
|
156
|
+
return BIP44Params.decode(message.value);
|
|
157
|
+
},
|
|
158
|
+
toProto(message: BIP44Params): Uint8Array {
|
|
159
|
+
return BIP44Params.encode(message).finish();
|
|
160
|
+
},
|
|
161
|
+
toProtoMsg(message: BIP44Params): BIP44ParamsProtoMsg {
|
|
162
|
+
return {
|
|
163
|
+
typeUrl: "/cosmos.crypto.hd.v1.BIP44Params",
|
|
164
|
+
value: BIP44Params.encode(message).finish()
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
};
|
|
168
|
+
GlobalDecoderRegistry.register(BIP44Params.typeUrl, BIP44Params);
|
|
169
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(BIP44Params.aminoType, BIP44Params.typeUrl);
|