juno-network 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- package/main/codegen/cosmos/client.js +11 -5
- package/main/codegen/cosmwasm/client.js +11 -5
- package/main/codegen/ibc/client.js +11 -5
- package/package.json +3 -3
- package/types/codegen/JunoSwap.client.d.ts +120 -0
- package/types/codegen/JunoSwap.types.d.ts +124 -0
- package/types/codegen/confio/proofs.d.ts +495 -0
- package/types/codegen/contracts.d.ts +12 -0
- package/types/codegen/cosmos/app/v1alpha1/config.d.ts +51 -0
- package/types/codegen/cosmos/app/v1alpha1/module.d.ts +105 -0
- package/types/codegen/cosmos/app/v1alpha1/query.d.ts +25 -0
- package/types/codegen/cosmos/app/v1alpha1/query.rpc.query.d.ts +11 -0
- package/types/codegen/cosmos/auth/v1beta1/auth.d.ts +49 -0
- package/types/codegen/cosmos/auth/v1beta1/genesis.d.ts +18 -0
- package/types/codegen/cosmos/auth/v1beta1/query.d.ts +171 -0
- package/types/codegen/cosmos/auth/v1beta1/query.lcd.d.ts +14 -0
- package/types/codegen/cosmos/auth/v1beta1/query.rpc.query.d.ts +23 -0
- package/types/codegen/cosmos/authz/v1beta1/authz.d.ts +95 -0
- package/types/codegen/cosmos/authz/v1beta1/event.d.ts +48 -0
- package/types/codegen/cosmos/authz/v1beta1/genesis.d.ts +16 -0
- package/types/codegen/cosmos/authz/v1beta1/query.d.ts +118 -0
- package/types/codegen/cosmos/authz/v1beta1/query.lcd.d.ts +11 -0
- package/types/codegen/cosmos/authz/v1beta1/query.rpc.query.d.ts +21 -0
- package/types/codegen/cosmos/authz/v1beta1/tx.amino.d.ts +54 -0
- package/types/codegen/cosmos/authz/v1beta1/tx.d.ts +118 -0
- package/types/codegen/cosmos/authz/v1beta1/tx.registry.d.ts +76 -0
- package/types/codegen/cosmos/authz/v1beta1/tx.rpc.msg.d.ts +15 -0
- package/types/codegen/cosmos/bank/v1beta1/authz.d.ts +26 -0
- package/types/codegen/cosmos/bank/v1beta1/bank.d.ts +222 -0
- package/types/codegen/cosmos/bank/v1beta1/genesis.d.ts +62 -0
- package/types/codegen/cosmos/bank/v1beta1/query.d.ts +396 -0
- package/types/codegen/cosmos/bank/v1beta1/query.lcd.d.ts +17 -0
- package/types/codegen/cosmos/bank/v1beta1/query.rpc.query.d.ts +39 -0
- package/types/codegen/cosmos/bank/v1beta1/tx.amino.d.ts +44 -0
- package/types/codegen/cosmos/bank/v1beta1/tx.d.ts +58 -0
- package/types/codegen/cosmos/bank/v1beta1/tx.registry.d.ts +36 -0
- package/types/codegen/cosmos/bank/v1beta1/tx.rpc.msg.d.ts +13 -0
- package/types/codegen/cosmos/base/abci/v1beta1/abci.d.ts +354 -0
- package/types/codegen/cosmos/base/kv/v1beta1/kv.d.ts +25 -0
- package/types/codegen/cosmos/base/query/v1beta1/pagination.d.ts +138 -0
- package/types/codegen/cosmos/base/reflection/v1beta1/reflection.d.ts +53 -0
- package/types/codegen/cosmos/base/reflection/v2alpha1/reflection.d.ts +514 -0
- package/types/codegen/cosmos/base/snapshots/v1beta1/snapshot.d.ts +118 -0
- package/types/codegen/cosmos/base/store/v1beta1/commit_info.d.ts +47 -0
- package/types/codegen/cosmos/base/store/v1beta1/listening.d.ts +24 -0
- package/types/codegen/cosmos/base/tendermint/v1beta1/query.d.ts +197 -0
- package/types/codegen/cosmos/base/tendermint/v1beta1/query.lcd.d.ts +13 -0
- package/types/codegen/cosmos/base/tendermint/v1beta1/query.rpc.svc.d.ts +21 -0
- package/types/codegen/cosmos/base/v1beta1/coin.d.ts +78 -0
- package/types/codegen/cosmos/bundle.d.ts +6233 -0
- package/types/codegen/cosmos/capability/v1beta1/capability.d.ts +45 -0
- package/types/codegen/cosmos/capability/v1beta1/genesis.d.ts +34 -0
- package/types/codegen/cosmos/client.d.ts +473 -0
- package/types/codegen/cosmos/crisis/v1beta1/genesis.d.ts +18 -0
- package/types/codegen/cosmos/crisis/v1beta1/tx.amino.d.ts +17 -0
- package/types/codegen/cosmos/crisis/v1beta1/tx.d.ts +25 -0
- package/types/codegen/cosmos/crisis/v1beta1/tx.registry.d.ts +36 -0
- package/types/codegen/cosmos/crisis/v1beta1/tx.rpc.msg.d.ts +11 -0
- package/types/codegen/cosmos/crypto/ed25519/keys.d.ts +46 -0
- package/types/codegen/cosmos/crypto/hd/v1/hd.d.ts +39 -0
- package/types/codegen/cosmos/crypto/keyring/v1/record.d.ts +95 -0
- package/types/codegen/cosmos/crypto/multisig/keys.d.ts +26 -0
- package/types/codegen/cosmos/crypto/multisig/v1beta1/multisig.d.ts +48 -0
- package/types/codegen/cosmos/crypto/secp256k1/keys.d.ts +40 -0
- package/types/codegen/cosmos/crypto/secp256r1/keys.d.ts +38 -0
- package/types/codegen/cosmos/distribution/v1beta1/distribution.d.ts +281 -0
- package/types/codegen/cosmos/distribution/v1beta1/genesis.d.ts +224 -0
- package/types/codegen/cosmos/distribution/v1beta1/query.d.ts +385 -0
- package/types/codegen/cosmos/distribution/v1beta1/query.lcd.d.ts +17 -0
- package/types/codegen/cosmos/distribution/v1beta1/query.rpc.query.d.ts +39 -0
- package/types/codegen/cosmos/distribution/v1beta1/tx.amino.d.ts +54 -0
- package/types/codegen/cosmos/distribution/v1beta1/tx.d.ts +133 -0
- package/types/codegen/cosmos/distribution/v1beta1/tx.registry.d.ts +60 -0
- package/types/codegen/cosmos/distribution/v1beta1/tx.rpc.msg.d.ts +17 -0
- package/types/codegen/cosmos/evidence/v1beta1/evidence.d.ts +19 -0
- package/types/codegen/cosmos/evidence/v1beta1/genesis.d.ts +15 -0
- package/types/codegen/cosmos/evidence/v1beta1/query.d.ts +60 -0
- package/types/codegen/cosmos/evidence/v1beta1/query.lcd.d.ts +9 -0
- package/types/codegen/cosmos/evidence/v1beta1/query.rpc.query.d.ts +13 -0
- package/types/codegen/cosmos/evidence/v1beta1/tx.amino.d.ts +19 -0
- package/types/codegen/cosmos/evidence/v1beta1/tx.d.ts +30 -0
- package/types/codegen/cosmos/evidence/v1beta1/tx.registry.d.ts +36 -0
- package/types/codegen/cosmos/evidence/v1beta1/tx.rpc.msg.d.ts +11 -0
- package/types/codegen/cosmos/feegrant/v1beta1/feegrant.d.ts +89 -0
- package/types/codegen/cosmos/feegrant/v1beta1/genesis.d.ts +14 -0
- package/types/codegen/cosmos/feegrant/v1beta1/query.d.ts +84 -0
- package/types/codegen/cosmos/feegrant/v1beta1/query.lcd.d.ts +10 -0
- package/types/codegen/cosmos/feegrant/v1beta1/query.rpc.query.d.ts +15 -0
- package/types/codegen/cosmos/feegrant/v1beta1/tx.amino.d.ts +32 -0
- package/types/codegen/cosmos/feegrant/v1beta1/tx.d.ts +56 -0
- package/types/codegen/cosmos/feegrant/v1beta1/tx.registry.d.ts +56 -0
- package/types/codegen/cosmos/feegrant/v1beta1/tx.rpc.msg.d.ts +13 -0
- package/types/codegen/cosmos/genutil/v1beta1/genesis.d.ts +14 -0
- package/types/codegen/cosmos/gov/v1/genesis.d.ts +42 -0
- package/types/codegen/cosmos/gov/v1/gov.d.ts +301 -0
- package/types/codegen/cosmos/gov/v1/query.d.ts +298 -0
- package/types/codegen/cosmos/gov/v1/query.lcd.d.ts +16 -0
- package/types/codegen/cosmos/gov/v1/query.rpc.query.d.ts +36 -0
- package/types/codegen/cosmos/gov/v1/tx.amino.d.ts +86 -0
- package/types/codegen/cosmos/gov/v1/tx.d.ts +169 -0
- package/types/codegen/cosmos/gov/v1/tx.registry.d.ts +72 -0
- package/types/codegen/cosmos/gov/v1/tx.rpc.msg.d.ts +19 -0
- package/types/codegen/cosmos/gov/v1beta1/genesis.d.ts +42 -0
- package/types/codegen/cosmos/gov/v1beta1/gov.d.ts +338 -0
- package/types/codegen/cosmos/gov/v1beta1/query.d.ts +298 -0
- package/types/codegen/cosmos/gov/v1beta1/query.lcd.d.ts +16 -0
- package/types/codegen/cosmos/gov/v1beta1/query.rpc.query.d.ts +36 -0
- package/types/codegen/cosmos/gov/v1beta1/tx.amino.d.ts +68 -0
- package/types/codegen/cosmos/gov/v1beta1/tx.d.ts +141 -0
- package/types/codegen/cosmos/gov/v1beta1/tx.registry.d.ts +60 -0
- package/types/codegen/cosmos/gov/v1beta1/tx.rpc.msg.d.ts +17 -0
- package/types/codegen/cosmos/group/v1/events.d.ts +115 -0
- package/types/codegen/cosmos/group/v1/genesis.d.ts +38 -0
- package/types/codegen/cosmos/group/v1/query.d.ts +350 -0
- package/types/codegen/cosmos/group/v1/query.lcd.d.ts +20 -0
- package/types/codegen/cosmos/group/v1/query.rpc.query.d.ts +35 -0
- package/types/codegen/cosmos/group/v1/tx.amino.d.ts +227 -0
- package/types/codegen/cosmos/group/v1/tx.d.ts +419 -0
- package/types/codegen/cosmos/group/v1/tx.registry.d.ts +296 -0
- package/types/codegen/cosmos/group/v1/tx.rpc.msg.d.ts +37 -0
- package/types/codegen/cosmos/group/v1/types.d.ts +324 -0
- package/types/codegen/cosmos/lcd.d.ts +28 -0
- package/types/codegen/cosmos/mint/v1beta1/genesis.d.ts +17 -0
- package/types/codegen/cosmos/mint/v1beta1/mint.d.ts +38 -0
- package/types/codegen/cosmos/mint/v1beta1/query.d.ts +78 -0
- package/types/codegen/cosmos/mint/v1beta1/query.lcd.d.ts +10 -0
- package/types/codegen/cosmos/mint/v1beta1/query.rpc.query.d.ts +15 -0
- package/types/codegen/cosmos/msg/v1/msg.d.ts +1 -0
- package/types/codegen/cosmos/nft/v1beta1/event.d.ts +42 -0
- package/types/codegen/cosmos/nft/v1beta1/genesis.d.ts +30 -0
- package/types/codegen/cosmos/nft/v1beta1/nft.d.ts +47 -0
- package/types/codegen/cosmos/nft/v1beta1/query.d.ts +166 -0
- package/types/codegen/cosmos/nft/v1beta1/query.lcd.d.ts +14 -0
- package/types/codegen/cosmos/nft/v1beta1/query.rpc.query.d.ts +23 -0
- package/types/codegen/cosmos/nft/v1beta1/tx.amino.d.ts +18 -0
- package/types/codegen/cosmos/nft/v1beta1/tx.d.ts +30 -0
- package/types/codegen/cosmos/nft/v1beta1/tx.registry.d.ts +36 -0
- package/types/codegen/cosmos/nft/v1beta1/tx.rpc.msg.d.ts +11 -0
- package/types/codegen/cosmos/orm/v1/orm.d.ts +117 -0
- package/types/codegen/cosmos/orm/v1alpha1/schema.d.ts +90 -0
- package/types/codegen/cosmos/params/v1beta1/params.d.ts +31 -0
- package/types/codegen/cosmos/params/v1beta1/query.d.ts +71 -0
- package/types/codegen/cosmos/params/v1beta1/query.lcd.d.ts +9 -0
- package/types/codegen/cosmos/params/v1beta1/query.rpc.query.d.ts +13 -0
- package/types/codegen/cosmos/rpc.query.d.ts +97 -0
- package/types/codegen/cosmos/rpc.tx.d.ts +26 -0
- package/types/codegen/cosmos/slashing/v1beta1/genesis.d.ts +70 -0
- package/types/codegen/cosmos/slashing/v1beta1/query.d.ts +85 -0
- package/types/codegen/cosmos/slashing/v1beta1/query.lcd.d.ts +10 -0
- package/types/codegen/cosmos/slashing/v1beta1/query.rpc.query.d.ts +15 -0
- package/types/codegen/cosmos/slashing/v1beta1/slashing.d.ts +52 -0
- package/types/codegen/cosmos/slashing/v1beta1/tx.amino.d.ts +15 -0
- package/types/codegen/cosmos/slashing/v1beta1/tx.d.ts +23 -0
- package/types/codegen/cosmos/slashing/v1beta1/tx.registry.d.ts +36 -0
- package/types/codegen/cosmos/slashing/v1beta1/tx.rpc.msg.d.ts +11 -0
- package/types/codegen/cosmos/staking/v1beta1/authz.d.ts +97 -0
- package/types/codegen/cosmos/staking/v1beta1/genesis.d.ts +75 -0
- package/types/codegen/cosmos/staking/v1beta1/query.d.ts +592 -0
- package/types/codegen/cosmos/staking/v1beta1/query.lcd.d.ts +22 -0
- package/types/codegen/cosmos/staking/v1beta1/query.rpc.query.d.ts +54 -0
- package/types/codegen/cosmos/staking/v1beta1/staking.d.ts +568 -0
- package/types/codegen/cosmos/staking/v1beta1/tx.amino.d.ts +106 -0
- package/types/codegen/cosmos/staking/v1beta1/tx.d.ts +191 -0
- package/types/codegen/cosmos/staking/v1beta1/tx.registry.d.ts +72 -0
- package/types/codegen/cosmos/staking/v1beta1/tx.rpc.msg.d.ts +19 -0
- package/types/codegen/cosmos/tx/signing/v1beta1/signing.d.ts +203 -0
- package/types/codegen/cosmos/tx/v1beta1/service.d.ts +339 -0
- package/types/codegen/cosmos/tx/v1beta1/service.lcd.d.ts +11 -0
- package/types/codegen/cosmos/tx/v1beta1/service.rpc.svc.d.ts +27 -0
- package/types/codegen/cosmos/tx/v1beta1/tx.d.ts +603 -0
- package/types/codegen/cosmos/upgrade/v1beta1/query.d.ts +233 -0
- package/types/codegen/cosmos/upgrade/v1beta1/query.lcd.d.ts +13 -0
- package/types/codegen/cosmos/upgrade/v1beta1/query.rpc.query.d.ts +27 -0
- package/types/codegen/cosmos/upgrade/v1beta1/tx.amino.d.ts +39 -0
- package/types/codegen/cosmos/upgrade/v1beta1/tx.d.ts +91 -0
- package/types/codegen/cosmos/upgrade/v1beta1/tx.registry.d.ts +36 -0
- package/types/codegen/cosmos/upgrade/v1beta1/tx.rpc.msg.d.ts +13 -0
- package/types/codegen/cosmos/upgrade/v1beta1/upgrade.d.ts +165 -0
- package/types/codegen/cosmos/vesting/v1beta1/tx.amino.d.ts +58 -0
- package/types/codegen/cosmos/vesting/v1beta1/tx.d.ts +88 -0
- package/types/codegen/cosmos/vesting/v1beta1/tx.registry.d.ts +76 -0
- package/types/codegen/cosmos/vesting/v1beta1/tx.rpc.msg.d.ts +15 -0
- package/types/codegen/cosmos/vesting/v1beta1/vesting.d.ts +97 -0
- package/types/codegen/cosmos_proto/bundle.d.ts +24 -0
- package/types/codegen/cosmos_proto/cosmos.d.ts +124 -0
- package/types/codegen/cosmwasm/bundle.d.ts +1109 -0
- package/types/codegen/cosmwasm/client.d.ts +120 -0
- package/types/codegen/cosmwasm/lcd.d.ts +33 -0
- package/types/codegen/cosmwasm/rpc.query.d.ts +112 -0
- package/types/codegen/cosmwasm/rpc.tx.d.ts +31 -0
- package/types/codegen/cosmwasm/wasm/v1/genesis.d.ts +101 -0
- package/types/codegen/cosmwasm/wasm/v1/ibc.d.ts +60 -0
- package/types/codegen/cosmwasm/wasm/v1/proposal.d.ts +297 -0
- package/types/codegen/cosmwasm/wasm/v1/query.d.ts +411 -0
- package/types/codegen/cosmwasm/wasm/v1/query.lcd.d.ts +17 -0
- package/types/codegen/cosmwasm/wasm/v1/query.rpc.query.d.ts +39 -0
- package/types/codegen/cosmwasm/wasm/v1/tx.amino.d.ts +95 -0
- package/types/codegen/cosmwasm/wasm/v1/tx.d.ts +262 -0
- package/types/codegen/cosmwasm/wasm/v1/tx.registry.d.ts +84 -0
- package/types/codegen/cosmwasm/wasm/v1/tx.rpc.msg.d.ts +21 -0
- package/types/codegen/cosmwasm/wasm/v1/types.d.ts +247 -0
- package/types/codegen/gogoproto/bundle.d.ts +1 -0
- package/types/codegen/gogoproto/gogo.d.ts +1 -0
- package/types/codegen/google/api/annotations.d.ts +1 -0
- package/types/codegen/google/api/http.d.ts +375 -0
- package/types/codegen/google/bundle.d.ts +1545 -0
- package/types/codegen/google/protobuf/any.d.ts +237 -0
- package/types/codegen/google/protobuf/descriptor.d.ts +1725 -0
- package/types/codegen/google/protobuf/duration.d.ts +161 -0
- package/types/codegen/google/protobuf/empty.d.ts +33 -0
- package/types/codegen/google/protobuf/field_mask.d.ts +417 -0
- package/types/codegen/google/protobuf/struct.d.ts +148 -0
- package/types/codegen/google/protobuf/timestamp.d.ts +205 -0
- package/types/codegen/google/protobuf/wrappers.d.ts +209 -0
- package/types/codegen/ibc/applications/transfer/v1/genesis.d.ts +20 -0
- package/types/codegen/ibc/applications/transfer/v1/query.d.ts +118 -0
- package/types/codegen/ibc/applications/transfer/v1/query.lcd.d.ts +11 -0
- package/types/codegen/ibc/applications/transfer/v1/query.rpc.query.d.ts +21 -0
- package/types/codegen/ibc/applications/transfer/v1/transfer.d.ts +74 -0
- package/types/codegen/ibc/applications/transfer/v1/tx.amino.d.ts +25 -0
- package/types/codegen/ibc/applications/transfer/v1/tx.d.ts +74 -0
- package/types/codegen/ibc/applications/transfer/v1/tx.registry.d.ts +24 -0
- package/types/codegen/ibc/applications/transfer/v1/tx.rpc.msg.d.ts +11 -0
- package/types/codegen/ibc/applications/transfer/v2/packet.d.ts +37 -0
- package/types/codegen/ibc/bundle.d.ts +3781 -0
- package/types/codegen/ibc/client.d.ts +559 -0
- package/types/codegen/ibc/core/channel/v1/channel.d.ts +313 -0
- package/types/codegen/ibc/core/channel/v1/genesis.d.ts +55 -0
- package/types/codegen/ibc/core/channel/v1/query.d.ts +726 -0
- package/types/codegen/ibc/core/channel/v1/query.lcd.d.ts +21 -0
- package/types/codegen/ibc/core/channel/v1/query.rpc.query.d.ts +51 -0
- package/types/codegen/ibc/core/channel/v1/tx.amino.d.ts +209 -0
- package/types/codegen/ibc/core/channel/v1/tx.d.ts +380 -0
- package/types/codegen/ibc/core/channel/v1/tx.registry.d.ts +132 -0
- package/types/codegen/ibc/core/channel/v1/tx.rpc.msg.d.ts +29 -0
- package/types/codegen/ibc/core/client/v1/client.d.ts +219 -0
- package/types/codegen/ibc/core/client/v1/genesis.d.ts +82 -0
- package/types/codegen/ibc/core/client/v1/query.d.ts +377 -0
- package/types/codegen/ibc/core/client/v1/query.lcd.d.ts +16 -0
- package/types/codegen/ibc/core/client/v1/query.rpc.query.d.ts +36 -0
- package/types/codegen/ibc/core/client/v1/tx.amino.d.ts +77 -0
- package/types/codegen/ibc/core/client/v1/tx.d.ts +187 -0
- package/types/codegen/ibc/core/client/v1/tx.registry.d.ts +60 -0
- package/types/codegen/ibc/core/client/v1/tx.rpc.msg.d.ts +17 -0
- package/types/codegen/ibc/core/commitment/v1/commitment.d.ts +89 -0
- package/types/codegen/ibc/core/connection/v1/connection.d.ts +260 -0
- package/types/codegen/ibc/core/connection/v1/genesis.d.ts +24 -0
- package/types/codegen/ibc/core/connection/v1/query.d.ts +264 -0
- package/types/codegen/ibc/core/connection/v1/query.lcd.d.ts +13 -0
- package/types/codegen/ibc/core/connection/v1/query.rpc.query.d.ts +27 -0
- package/types/codegen/ibc/core/connection/v1/tx.amino.d.ts +103 -0
- package/types/codegen/ibc/core/connection/v1/tx.d.ts +225 -0
- package/types/codegen/ibc/core/connection/v1/tx.registry.d.ts +60 -0
- package/types/codegen/ibc/core/connection/v1/tx.rpc.msg.d.ts +17 -0
- package/types/codegen/ibc/core/port/v1/query.d.ts +37 -0
- package/types/codegen/ibc/core/port/v1/query.rpc.query.d.ts +11 -0
- package/types/codegen/ibc/core/types/v1/genesis.d.ts +21 -0
- package/types/codegen/ibc/lcd.d.ts +46 -0
- package/types/codegen/ibc/lightclients/localhost/v1/localhost.d.ts +28 -0
- package/types/codegen/ibc/lightclients/solomachine/v1/solomachine.d.ts +433 -0
- package/types/codegen/ibc/lightclients/solomachine/v2/solomachine.d.ts +433 -0
- package/types/codegen/ibc/lightclients/tendermint/v1/tendermint.d.ts +215 -0
- package/types/codegen/ibc/rpc.query.d.ts +148 -0
- package/types/codegen/ibc/rpc.tx.d.ts +44 -0
- package/types/codegen/ics23/bundle.d.ts +545 -0
- package/types/codegen/index.d.ts +18 -0
- package/types/codegen/juno/bundle.d.ts +226 -0
- package/types/codegen/juno/lcd.d.ts +31 -0
- package/types/codegen/juno/mint/genesis.d.ts +22 -0
- package/types/codegen/juno/mint/mint.d.ts +44 -0
- package/types/codegen/juno/mint/query.d.ts +99 -0
- package/types/codegen/juno/mint/query.lcd.d.ts +11 -0
- package/types/codegen/juno/mint/query.rpc.query.d.ts +21 -0
- package/types/codegen/juno/rpc.query.d.ts +104 -0
- package/types/codegen/tendermint/abci/types.d.ts +902 -0
- package/types/codegen/tendermint/bundle.d.ts +2065 -0
- package/types/codegen/tendermint/crypto/keys.d.ts +17 -0
- package/types/codegen/tendermint/crypto/proof.d.ts +89 -0
- package/types/codegen/tendermint/libs/bits/types.d.ts +15 -0
- package/types/codegen/tendermint/p2p/types.d.ts +87 -0
- package/types/codegen/tendermint/types/block.d.ts +21 -0
- package/types/codegen/tendermint/types/evidence.d.ts +70 -0
- package/types/codegen/tendermint/types/params.d.ts +181 -0
- package/types/codegen/tendermint/types/types.d.ts +326 -0
- package/types/codegen/tendermint/types/validator.d.ts +48 -0
- package/types/codegen/tendermint/version/types.d.ts +48 -0
- package/types/index.d.ts +1 -0
@@ -0,0 +1,11 @@
|
|
1
|
+
import { Rpc } from "@osmonauts/helpers";
|
2
|
+
import { QueryConfigRequest, QueryConfigResponse } from "./query";
|
3
|
+
/** Query defines the RPC service */
|
4
|
+
export interface Query {
|
5
|
+
config(request: QueryConfigRequest): Promise<QueryConfigResponse>;
|
6
|
+
}
|
7
|
+
export declare class QueryClientImpl implements Query {
|
8
|
+
private readonly rpc;
|
9
|
+
constructor(rpc: Rpc);
|
10
|
+
config(request: QueryConfigRequest): Promise<QueryConfigResponse>;
|
11
|
+
}
|
@@ -0,0 +1,49 @@
|
|
1
|
+
import { Any } from "../../../google/protobuf/any";
|
2
|
+
import * as _m0 from "protobufjs/minimal";
|
3
|
+
import { Long, DeepPartial } from "@osmonauts/helpers";
|
4
|
+
/**
|
5
|
+
* BaseAccount defines a base account type. It contains all the necessary fields
|
6
|
+
* for basic account functionality. Any custom account type should extend this
|
7
|
+
* type for additional functionality (e.g. vesting).
|
8
|
+
*/
|
9
|
+
export interface BaseAccount {
|
10
|
+
address: string;
|
11
|
+
pub_key: Any;
|
12
|
+
account_number: Long;
|
13
|
+
sequence: Long;
|
14
|
+
}
|
15
|
+
/** ModuleAccount defines an account for modules that holds coins on a pool. */
|
16
|
+
export interface ModuleAccount {
|
17
|
+
base_account: BaseAccount;
|
18
|
+
name: string;
|
19
|
+
permissions: string[];
|
20
|
+
}
|
21
|
+
/** Params defines the parameters for the auth module. */
|
22
|
+
export interface Params {
|
23
|
+
max_memo_characters: Long;
|
24
|
+
tx_sig_limit: Long;
|
25
|
+
tx_size_cost_per_byte: Long;
|
26
|
+
sig_verify_cost_ed25519: Long;
|
27
|
+
sig_verify_cost_secp256k1: Long;
|
28
|
+
}
|
29
|
+
export declare const BaseAccount: {
|
30
|
+
encode(message: BaseAccount, writer?: _m0.Writer): _m0.Writer;
|
31
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): BaseAccount;
|
32
|
+
fromJSON(object: any): BaseAccount;
|
33
|
+
toJSON(message: BaseAccount): unknown;
|
34
|
+
fromPartial(object: DeepPartial<BaseAccount>): BaseAccount;
|
35
|
+
};
|
36
|
+
export declare const ModuleAccount: {
|
37
|
+
encode(message: ModuleAccount, writer?: _m0.Writer): _m0.Writer;
|
38
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ModuleAccount;
|
39
|
+
fromJSON(object: any): ModuleAccount;
|
40
|
+
toJSON(message: ModuleAccount): unknown;
|
41
|
+
fromPartial(object: DeepPartial<ModuleAccount>): ModuleAccount;
|
42
|
+
};
|
43
|
+
export declare const Params: {
|
44
|
+
encode(message: Params, writer?: _m0.Writer): _m0.Writer;
|
45
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Params;
|
46
|
+
fromJSON(object: any): Params;
|
47
|
+
toJSON(message: Params): unknown;
|
48
|
+
fromPartial(object: DeepPartial<Params>): Params;
|
49
|
+
};
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { Params } from "./auth";
|
2
|
+
import { Any } from "../../../google/protobuf/any";
|
3
|
+
import * as _m0 from "protobufjs/minimal";
|
4
|
+
import { DeepPartial } from "@osmonauts/helpers";
|
5
|
+
/** GenesisState defines the auth module's genesis state. */
|
6
|
+
export interface GenesisState {
|
7
|
+
/** params defines all the paramaters of the module. */
|
8
|
+
params: Params;
|
9
|
+
/** accounts are the accounts present at genesis. */
|
10
|
+
accounts: Any[];
|
11
|
+
}
|
12
|
+
export declare const GenesisState: {
|
13
|
+
encode(message: GenesisState, writer?: _m0.Writer): _m0.Writer;
|
14
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): GenesisState;
|
15
|
+
fromJSON(object: any): GenesisState;
|
16
|
+
toJSON(message: GenesisState): unknown;
|
17
|
+
fromPartial(object: DeepPartial<GenesisState>): GenesisState;
|
18
|
+
};
|
@@ -0,0 +1,171 @@
|
|
1
|
+
import { PageRequest, PageResponse } from "../../base/query/v1beta1/pagination";
|
2
|
+
import { Any } from "../../../google/protobuf/any";
|
3
|
+
import { Params } from "./auth";
|
4
|
+
import * as _m0 from "protobufjs/minimal";
|
5
|
+
import { DeepPartial } from "@osmonauts/helpers";
|
6
|
+
/**
|
7
|
+
* QueryAccountsRequest is the request type for the Query/Accounts RPC method.
|
8
|
+
*
|
9
|
+
* Since: cosmos-sdk 0.43
|
10
|
+
*/
|
11
|
+
export interface QueryAccountsRequest {
|
12
|
+
/** pagination defines an optional pagination for the request. */
|
13
|
+
pagination?: PageRequest;
|
14
|
+
}
|
15
|
+
/**
|
16
|
+
* QueryAccountsResponse is the response type for the Query/Accounts RPC method.
|
17
|
+
*
|
18
|
+
* Since: cosmos-sdk 0.43
|
19
|
+
*/
|
20
|
+
export interface QueryAccountsResponse {
|
21
|
+
/** accounts are the existing accounts */
|
22
|
+
accounts: Any[];
|
23
|
+
/** pagination defines the pagination in the response. */
|
24
|
+
pagination?: PageResponse;
|
25
|
+
}
|
26
|
+
/** QueryAccountRequest is the request type for the Query/Account RPC method. */
|
27
|
+
export interface QueryAccountRequest {
|
28
|
+
/** address defines the address to query for. */
|
29
|
+
address: string;
|
30
|
+
}
|
31
|
+
/** QueryModuleAccountsRequest is the request type for the Query/ModuleAccounts RPC method. */
|
32
|
+
export interface QueryModuleAccountsRequest {
|
33
|
+
}
|
34
|
+
/** QueryParamsResponse is the response type for the Query/Params RPC method. */
|
35
|
+
export interface QueryParamsResponse {
|
36
|
+
/** params defines the parameters of the module. */
|
37
|
+
params: Params;
|
38
|
+
}
|
39
|
+
/** QueryAccountResponse is the response type for the Query/Account RPC method. */
|
40
|
+
export interface QueryAccountResponse {
|
41
|
+
/** account defines the account of the corresponding address. */
|
42
|
+
account: Any;
|
43
|
+
}
|
44
|
+
/** QueryParamsRequest is the request type for the Query/Params RPC method. */
|
45
|
+
export interface QueryParamsRequest {
|
46
|
+
}
|
47
|
+
/** QueryModuleAccountsResponse is the response type for the Query/ModuleAccounts RPC method. */
|
48
|
+
export interface QueryModuleAccountsResponse {
|
49
|
+
accounts: Any[];
|
50
|
+
}
|
51
|
+
/** Bech32PrefixRequest is the request type for Bech32Prefix rpc method */
|
52
|
+
export interface Bech32PrefixRequest {
|
53
|
+
}
|
54
|
+
/** Bech32PrefixResponse is the response type for Bech32Prefix rpc method */
|
55
|
+
export interface Bech32PrefixResponse {
|
56
|
+
bech32_prefix: string;
|
57
|
+
}
|
58
|
+
/** AddressBytesToStringRequest is the request type for AddressString rpc method */
|
59
|
+
export interface AddressBytesToStringRequest {
|
60
|
+
address_bytes: Uint8Array;
|
61
|
+
}
|
62
|
+
/** AddressBytesToStringResponse is the response type for AddressString rpc method */
|
63
|
+
export interface AddressBytesToStringResponse {
|
64
|
+
address_string: string;
|
65
|
+
}
|
66
|
+
/** AddressStringToBytesRequest is the request type for AccountBytes rpc method */
|
67
|
+
export interface AddressStringToBytesRequest {
|
68
|
+
address_string: string;
|
69
|
+
}
|
70
|
+
/** AddressStringToBytesResponse is the response type for AddressBytes rpc method */
|
71
|
+
export interface AddressStringToBytesResponse {
|
72
|
+
address_bytes: Uint8Array;
|
73
|
+
}
|
74
|
+
export declare const QueryAccountsRequest: {
|
75
|
+
encode(message: QueryAccountsRequest, writer?: _m0.Writer): _m0.Writer;
|
76
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryAccountsRequest;
|
77
|
+
fromJSON(object: any): QueryAccountsRequest;
|
78
|
+
toJSON(message: QueryAccountsRequest): unknown;
|
79
|
+
fromPartial(object: DeepPartial<QueryAccountsRequest>): QueryAccountsRequest;
|
80
|
+
};
|
81
|
+
export declare const QueryAccountsResponse: {
|
82
|
+
encode(message: QueryAccountsResponse, writer?: _m0.Writer): _m0.Writer;
|
83
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryAccountsResponse;
|
84
|
+
fromJSON(object: any): QueryAccountsResponse;
|
85
|
+
toJSON(message: QueryAccountsResponse): unknown;
|
86
|
+
fromPartial(object: DeepPartial<QueryAccountsResponse>): QueryAccountsResponse;
|
87
|
+
};
|
88
|
+
export declare const QueryAccountRequest: {
|
89
|
+
encode(message: QueryAccountRequest, writer?: _m0.Writer): _m0.Writer;
|
90
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryAccountRequest;
|
91
|
+
fromJSON(object: any): QueryAccountRequest;
|
92
|
+
toJSON(message: QueryAccountRequest): unknown;
|
93
|
+
fromPartial(object: DeepPartial<QueryAccountRequest>): QueryAccountRequest;
|
94
|
+
};
|
95
|
+
export declare const QueryModuleAccountsRequest: {
|
96
|
+
encode(_: QueryModuleAccountsRequest, writer?: _m0.Writer): _m0.Writer;
|
97
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryModuleAccountsRequest;
|
98
|
+
fromJSON(_: any): QueryModuleAccountsRequest;
|
99
|
+
toJSON(_: QueryModuleAccountsRequest): unknown;
|
100
|
+
fromPartial(_: DeepPartial<QueryModuleAccountsRequest>): QueryModuleAccountsRequest;
|
101
|
+
};
|
102
|
+
export declare const QueryParamsResponse: {
|
103
|
+
encode(message: QueryParamsResponse, writer?: _m0.Writer): _m0.Writer;
|
104
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsResponse;
|
105
|
+
fromJSON(object: any): QueryParamsResponse;
|
106
|
+
toJSON(message: QueryParamsResponse): unknown;
|
107
|
+
fromPartial(object: DeepPartial<QueryParamsResponse>): QueryParamsResponse;
|
108
|
+
};
|
109
|
+
export declare const QueryAccountResponse: {
|
110
|
+
encode(message: QueryAccountResponse, writer?: _m0.Writer): _m0.Writer;
|
111
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryAccountResponse;
|
112
|
+
fromJSON(object: any): QueryAccountResponse;
|
113
|
+
toJSON(message: QueryAccountResponse): unknown;
|
114
|
+
fromPartial(object: DeepPartial<QueryAccountResponse>): QueryAccountResponse;
|
115
|
+
};
|
116
|
+
export declare const QueryParamsRequest: {
|
117
|
+
encode(_: QueryParamsRequest, writer?: _m0.Writer): _m0.Writer;
|
118
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsRequest;
|
119
|
+
fromJSON(_: any): QueryParamsRequest;
|
120
|
+
toJSON(_: QueryParamsRequest): unknown;
|
121
|
+
fromPartial(_: DeepPartial<QueryParamsRequest>): QueryParamsRequest;
|
122
|
+
};
|
123
|
+
export declare const QueryModuleAccountsResponse: {
|
124
|
+
encode(message: QueryModuleAccountsResponse, writer?: _m0.Writer): _m0.Writer;
|
125
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryModuleAccountsResponse;
|
126
|
+
fromJSON(object: any): QueryModuleAccountsResponse;
|
127
|
+
toJSON(message: QueryModuleAccountsResponse): unknown;
|
128
|
+
fromPartial(object: DeepPartial<QueryModuleAccountsResponse>): QueryModuleAccountsResponse;
|
129
|
+
};
|
130
|
+
export declare const Bech32PrefixRequest: {
|
131
|
+
encode(_: Bech32PrefixRequest, writer?: _m0.Writer): _m0.Writer;
|
132
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Bech32PrefixRequest;
|
133
|
+
fromJSON(_: any): Bech32PrefixRequest;
|
134
|
+
toJSON(_: Bech32PrefixRequest): unknown;
|
135
|
+
fromPartial(_: DeepPartial<Bech32PrefixRequest>): Bech32PrefixRequest;
|
136
|
+
};
|
137
|
+
export declare const Bech32PrefixResponse: {
|
138
|
+
encode(message: Bech32PrefixResponse, writer?: _m0.Writer): _m0.Writer;
|
139
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Bech32PrefixResponse;
|
140
|
+
fromJSON(object: any): Bech32PrefixResponse;
|
141
|
+
toJSON(message: Bech32PrefixResponse): unknown;
|
142
|
+
fromPartial(object: DeepPartial<Bech32PrefixResponse>): Bech32PrefixResponse;
|
143
|
+
};
|
144
|
+
export declare const AddressBytesToStringRequest: {
|
145
|
+
encode(message: AddressBytesToStringRequest, writer?: _m0.Writer): _m0.Writer;
|
146
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): AddressBytesToStringRequest;
|
147
|
+
fromJSON(object: any): AddressBytesToStringRequest;
|
148
|
+
toJSON(message: AddressBytesToStringRequest): unknown;
|
149
|
+
fromPartial(object: DeepPartial<AddressBytesToStringRequest>): AddressBytesToStringRequest;
|
150
|
+
};
|
151
|
+
export declare const AddressBytesToStringResponse: {
|
152
|
+
encode(message: AddressBytesToStringResponse, writer?: _m0.Writer): _m0.Writer;
|
153
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): AddressBytesToStringResponse;
|
154
|
+
fromJSON(object: any): AddressBytesToStringResponse;
|
155
|
+
toJSON(message: AddressBytesToStringResponse): unknown;
|
156
|
+
fromPartial(object: DeepPartial<AddressBytesToStringResponse>): AddressBytesToStringResponse;
|
157
|
+
};
|
158
|
+
export declare const AddressStringToBytesRequest: {
|
159
|
+
encode(message: AddressStringToBytesRequest, writer?: _m0.Writer): _m0.Writer;
|
160
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): AddressStringToBytesRequest;
|
161
|
+
fromJSON(object: any): AddressStringToBytesRequest;
|
162
|
+
toJSON(message: AddressStringToBytesRequest): unknown;
|
163
|
+
fromPartial(object: DeepPartial<AddressStringToBytesRequest>): AddressStringToBytesRequest;
|
164
|
+
};
|
165
|
+
export declare const AddressStringToBytesResponse: {
|
166
|
+
encode(message: AddressStringToBytesResponse, writer?: _m0.Writer): _m0.Writer;
|
167
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): AddressStringToBytesResponse;
|
168
|
+
fromJSON(object: any): AddressStringToBytesResponse;
|
169
|
+
toJSON(message: AddressStringToBytesResponse): unknown;
|
170
|
+
fromPartial(object: DeepPartial<AddressStringToBytesResponse>): AddressStringToBytesResponse;
|
171
|
+
};
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { LCDClient } from "@osmonauts/lcd";
|
2
|
+
import { QueryAccountsRequest, QueryAccountsResponse, QueryAccountRequest, QueryAccountResponse, QueryParamsRequest, QueryParamsResponse, QueryModuleAccountsRequest, QueryModuleAccountsResponse, Bech32PrefixRequest, Bech32PrefixResponse, AddressBytesToStringRequest, AddressBytesToStringResponse, AddressStringToBytesRequest, AddressStringToBytesResponse } from "./query";
|
3
|
+
export declare class LCDQueryClient extends LCDClient {
|
4
|
+
constructor({ restEndpoint }: {
|
5
|
+
restEndpoint: string;
|
6
|
+
});
|
7
|
+
accounts(params?: QueryAccountsRequest): Promise<QueryAccountsResponse>;
|
8
|
+
account(params: QueryAccountRequest): Promise<QueryAccountResponse>;
|
9
|
+
params(_params?: QueryParamsRequest): Promise<QueryParamsResponse>;
|
10
|
+
moduleAccounts(_params?: QueryModuleAccountsRequest): Promise<QueryModuleAccountsResponse>;
|
11
|
+
bech32Prefix(_params?: Bech32PrefixRequest): Promise<Bech32PrefixResponse>;
|
12
|
+
addressBytesToString(params: AddressBytesToStringRequest): Promise<AddressBytesToStringResponse>;
|
13
|
+
addressStringToBytes(params: AddressStringToBytesRequest): Promise<AddressStringToBytesResponse>;
|
14
|
+
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import { Rpc } from "@osmonauts/helpers";
|
2
|
+
import { QueryAccountsRequest, QueryAccountsResponse, QueryAccountRequest, QueryAccountResponse, QueryParamsRequest, QueryParamsResponse, QueryModuleAccountsRequest, QueryModuleAccountsResponse, Bech32PrefixRequest, Bech32PrefixResponse, AddressBytesToStringRequest, AddressBytesToStringResponse, AddressStringToBytesRequest, AddressStringToBytesResponse } from "./query";
|
3
|
+
/** Query defines the RPC service */
|
4
|
+
export interface Query {
|
5
|
+
accounts(request: QueryAccountsRequest): Promise<QueryAccountsResponse>;
|
6
|
+
account(request: QueryAccountRequest): Promise<QueryAccountResponse>;
|
7
|
+
params(request: QueryParamsRequest): Promise<QueryParamsResponse>;
|
8
|
+
moduleAccounts(request: QueryModuleAccountsRequest): Promise<QueryModuleAccountsResponse>;
|
9
|
+
bech32Prefix(request: Bech32PrefixRequest): Promise<Bech32PrefixResponse>;
|
10
|
+
addressBytesToString(request: AddressBytesToStringRequest): Promise<AddressBytesToStringResponse>;
|
11
|
+
addressStringToBytes(request: AddressStringToBytesRequest): Promise<AddressStringToBytesResponse>;
|
12
|
+
}
|
13
|
+
export declare class QueryClientImpl implements Query {
|
14
|
+
private readonly rpc;
|
15
|
+
constructor(rpc: Rpc);
|
16
|
+
accounts(request: QueryAccountsRequest): Promise<QueryAccountsResponse>;
|
17
|
+
account(request: QueryAccountRequest): Promise<QueryAccountResponse>;
|
18
|
+
params(request: QueryParamsRequest): Promise<QueryParamsResponse>;
|
19
|
+
moduleAccounts(request: QueryModuleAccountsRequest): Promise<QueryModuleAccountsResponse>;
|
20
|
+
bech32Prefix(request: Bech32PrefixRequest): Promise<Bech32PrefixResponse>;
|
21
|
+
addressBytesToString(request: AddressBytesToStringRequest): Promise<AddressBytesToStringResponse>;
|
22
|
+
addressStringToBytes(request: AddressStringToBytesRequest): Promise<AddressStringToBytesResponse>;
|
23
|
+
}
|
@@ -0,0 +1,95 @@
|
|
1
|
+
import { Any, AnySDKType } from "../../../google/protobuf/any";
|
2
|
+
import * as _m0 from "protobufjs/minimal";
|
3
|
+
import { DeepPartial } from "@osmonauts/helpers";
|
4
|
+
/**
|
5
|
+
* GenericAuthorization gives the grantee unrestricted permissions to execute
|
6
|
+
* the provided method on behalf of the granter's account.
|
7
|
+
*/
|
8
|
+
export interface GenericAuthorization {
|
9
|
+
/** Msg, identified by it's type URL, to grant unrestricted permissions to execute */
|
10
|
+
msg: string;
|
11
|
+
}
|
12
|
+
/**
|
13
|
+
* GenericAuthorization gives the grantee unrestricted permissions to execute
|
14
|
+
* the provided method on behalf of the granter's account.
|
15
|
+
*/
|
16
|
+
export interface GenericAuthorizationSDKType {
|
17
|
+
/** Msg, identified by it's type URL, to grant unrestricted permissions to execute */
|
18
|
+
msg: string;
|
19
|
+
}
|
20
|
+
/**
|
21
|
+
* Grant gives permissions to execute
|
22
|
+
* the provide method with expiration time.
|
23
|
+
*/
|
24
|
+
export interface Grant {
|
25
|
+
authorization: Any;
|
26
|
+
/**
|
27
|
+
* time when the grant will expire and will be pruned. If null, then the grant
|
28
|
+
* doesn't have a time expiration (other conditions in `authorization`
|
29
|
+
* may apply to invalidate the grant)
|
30
|
+
*/
|
31
|
+
expiration?: Date;
|
32
|
+
}
|
33
|
+
/**
|
34
|
+
* Grant gives permissions to execute
|
35
|
+
* the provide method with expiration time.
|
36
|
+
*/
|
37
|
+
export interface GrantSDKType {
|
38
|
+
authorization: AnySDKType;
|
39
|
+
/**
|
40
|
+
* time when the grant will expire and will be pruned. If null, then the grant
|
41
|
+
* doesn't have a time expiration (other conditions in `authorization`
|
42
|
+
* may apply to invalidate the grant)
|
43
|
+
*/
|
44
|
+
expiration?: Date;
|
45
|
+
}
|
46
|
+
/**
|
47
|
+
* GrantAuthorization extends a grant with both the addresses of the grantee and granter.
|
48
|
+
* It is used in genesis.proto and query.proto
|
49
|
+
*/
|
50
|
+
export interface GrantAuthorization {
|
51
|
+
granter: string;
|
52
|
+
grantee: string;
|
53
|
+
authorization: Any;
|
54
|
+
expiration: Date;
|
55
|
+
}
|
56
|
+
/**
|
57
|
+
* GrantAuthorization extends a grant with both the addresses of the grantee and granter.
|
58
|
+
* It is used in genesis.proto and query.proto
|
59
|
+
*/
|
60
|
+
export interface GrantAuthorizationSDKType {
|
61
|
+
granter: string;
|
62
|
+
grantee: string;
|
63
|
+
authorization: AnySDKType;
|
64
|
+
expiration: Date;
|
65
|
+
}
|
66
|
+
/** GrantQueueItem contains the list of TypeURL of a sdk.Msg. */
|
67
|
+
export interface GrantQueueItem {
|
68
|
+
/** msg_type_urls contains the list of TypeURL of a sdk.Msg. */
|
69
|
+
msgTypeUrls: string[];
|
70
|
+
}
|
71
|
+
/** GrantQueueItem contains the list of TypeURL of a sdk.Msg. */
|
72
|
+
export interface GrantQueueItemSDKType {
|
73
|
+
/** msg_type_urls contains the list of TypeURL of a sdk.Msg. */
|
74
|
+
msg_type_urls: string[];
|
75
|
+
}
|
76
|
+
export declare const GenericAuthorization: {
|
77
|
+
encode(message: GenericAuthorization, writer?: _m0.Writer): _m0.Writer;
|
78
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): GenericAuthorization;
|
79
|
+
fromPartial(object: DeepPartial<GenericAuthorization>): GenericAuthorization;
|
80
|
+
};
|
81
|
+
export declare const Grant: {
|
82
|
+
encode(message: Grant, writer?: _m0.Writer): _m0.Writer;
|
83
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Grant;
|
84
|
+
fromPartial(object: DeepPartial<Grant>): Grant;
|
85
|
+
};
|
86
|
+
export declare const GrantAuthorization: {
|
87
|
+
encode(message: GrantAuthorization, writer?: _m0.Writer): _m0.Writer;
|
88
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): GrantAuthorization;
|
89
|
+
fromPartial(object: DeepPartial<GrantAuthorization>): GrantAuthorization;
|
90
|
+
};
|
91
|
+
export declare const GrantQueueItem: {
|
92
|
+
encode(message: GrantQueueItem, writer?: _m0.Writer): _m0.Writer;
|
93
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): GrantQueueItem;
|
94
|
+
fromPartial(object: DeepPartial<GrantQueueItem>): GrantQueueItem;
|
95
|
+
};
|
@@ -0,0 +1,48 @@
|
|
1
|
+
import * as _m0 from "protobufjs/minimal";
|
2
|
+
import { DeepPartial } from "@osmonauts/helpers";
|
3
|
+
/** EventGrant is emitted on Msg/Grant */
|
4
|
+
export interface EventGrant {
|
5
|
+
/** Msg type URL for which an autorization is granted */
|
6
|
+
msgTypeUrl: string;
|
7
|
+
/** Granter account address */
|
8
|
+
granter: string;
|
9
|
+
/** Grantee account address */
|
10
|
+
grantee: string;
|
11
|
+
}
|
12
|
+
/** EventGrant is emitted on Msg/Grant */
|
13
|
+
export interface EventGrantSDKType {
|
14
|
+
/** Msg type URL for which an autorization is granted */
|
15
|
+
msg_type_url: string;
|
16
|
+
/** Granter account address */
|
17
|
+
granter: string;
|
18
|
+
/** Grantee account address */
|
19
|
+
grantee: string;
|
20
|
+
}
|
21
|
+
/** EventRevoke is emitted on Msg/Revoke */
|
22
|
+
export interface EventRevoke {
|
23
|
+
/** Msg type URL for which an autorization is revoked */
|
24
|
+
msgTypeUrl: string;
|
25
|
+
/** Granter account address */
|
26
|
+
granter: string;
|
27
|
+
/** Grantee account address */
|
28
|
+
grantee: string;
|
29
|
+
}
|
30
|
+
/** EventRevoke is emitted on Msg/Revoke */
|
31
|
+
export interface EventRevokeSDKType {
|
32
|
+
/** Msg type URL for which an autorization is revoked */
|
33
|
+
msg_type_url: string;
|
34
|
+
/** Granter account address */
|
35
|
+
granter: string;
|
36
|
+
/** Grantee account address */
|
37
|
+
grantee: string;
|
38
|
+
}
|
39
|
+
export declare const EventGrant: {
|
40
|
+
encode(message: EventGrant, writer?: _m0.Writer): _m0.Writer;
|
41
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): EventGrant;
|
42
|
+
fromPartial(object: DeepPartial<EventGrant>): EventGrant;
|
43
|
+
};
|
44
|
+
export declare const EventRevoke: {
|
45
|
+
encode(message: EventRevoke, writer?: _m0.Writer): _m0.Writer;
|
46
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): EventRevoke;
|
47
|
+
fromPartial(object: DeepPartial<EventRevoke>): EventRevoke;
|
48
|
+
};
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { GrantAuthorization, GrantAuthorizationSDKType } from "./authz";
|
2
|
+
import * as _m0 from "protobufjs/minimal";
|
3
|
+
import { DeepPartial } from "@osmonauts/helpers";
|
4
|
+
/** GenesisState defines the authz module's genesis state. */
|
5
|
+
export interface GenesisState {
|
6
|
+
authorization: GrantAuthorization[];
|
7
|
+
}
|
8
|
+
/** GenesisState defines the authz module's genesis state. */
|
9
|
+
export interface GenesisStateSDKType {
|
10
|
+
authorization: GrantAuthorizationSDKType[];
|
11
|
+
}
|
12
|
+
export declare const GenesisState: {
|
13
|
+
encode(message: GenesisState, writer?: _m0.Writer): _m0.Writer;
|
14
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): GenesisState;
|
15
|
+
fromPartial(object: DeepPartial<GenesisState>): GenesisState;
|
16
|
+
};
|
@@ -0,0 +1,118 @@
|
|
1
|
+
import { PageRequest, PageRequestSDKType, PageResponse, PageResponseSDKType } from "../../base/query/v1beta1/pagination";
|
2
|
+
import { Grant, GrantSDKType, GrantAuthorization, GrantAuthorizationSDKType } from "./authz";
|
3
|
+
import * as _m0 from "protobufjs/minimal";
|
4
|
+
import { DeepPartial } from "@osmonauts/helpers";
|
5
|
+
/** QueryGrantsRequest is the request type for the Query/Grants RPC method. */
|
6
|
+
export interface QueryGrantsRequest {
|
7
|
+
granter?: string;
|
8
|
+
grantee?: string;
|
9
|
+
/** Optional, msg_type_url, when set, will query only grants matching given msg type. */
|
10
|
+
msgTypeUrl?: string;
|
11
|
+
/** pagination defines an pagination for the request. */
|
12
|
+
pagination?: PageRequest;
|
13
|
+
}
|
14
|
+
/** QueryGrantsRequest is the request type for the Query/Grants RPC method. */
|
15
|
+
export interface QueryGrantsRequestSDKType {
|
16
|
+
granter?: string;
|
17
|
+
grantee?: string;
|
18
|
+
/** Optional, msg_type_url, when set, will query only grants matching given msg type. */
|
19
|
+
msg_type_url?: string;
|
20
|
+
/** pagination defines an pagination for the request. */
|
21
|
+
pagination?: PageRequestSDKType;
|
22
|
+
}
|
23
|
+
/** QueryGrantsResponse is the response type for the Query/Authorizations RPC method. */
|
24
|
+
export interface QueryGrantsResponse {
|
25
|
+
/** authorizations is a list of grants granted for grantee by granter. */
|
26
|
+
grants: Grant[];
|
27
|
+
/** pagination defines an pagination for the response. */
|
28
|
+
pagination?: PageResponse;
|
29
|
+
}
|
30
|
+
/** QueryGrantsResponse is the response type for the Query/Authorizations RPC method. */
|
31
|
+
export interface QueryGrantsResponseSDKType {
|
32
|
+
/** authorizations is a list of grants granted for grantee by granter. */
|
33
|
+
grants: GrantSDKType[];
|
34
|
+
/** pagination defines an pagination for the response. */
|
35
|
+
pagination?: PageResponseSDKType;
|
36
|
+
}
|
37
|
+
/** QueryGranterGrantsRequest is the request type for the Query/GranterGrants RPC method. */
|
38
|
+
export interface QueryGranterGrantsRequest {
|
39
|
+
granter: string;
|
40
|
+
/** pagination defines an pagination for the request. */
|
41
|
+
pagination?: PageRequest;
|
42
|
+
}
|
43
|
+
/** QueryGranterGrantsRequest is the request type for the Query/GranterGrants RPC method. */
|
44
|
+
export interface QueryGranterGrantsRequestSDKType {
|
45
|
+
granter: string;
|
46
|
+
/** pagination defines an pagination for the request. */
|
47
|
+
pagination?: PageRequestSDKType;
|
48
|
+
}
|
49
|
+
/** QueryGranterGrantsResponse is the response type for the Query/GranterGrants RPC method. */
|
50
|
+
export interface QueryGranterGrantsResponse {
|
51
|
+
/** grants is a list of grants granted by the granter. */
|
52
|
+
grants: GrantAuthorization[];
|
53
|
+
/** pagination defines an pagination for the response. */
|
54
|
+
pagination?: PageResponse;
|
55
|
+
}
|
56
|
+
/** QueryGranterGrantsResponse is the response type for the Query/GranterGrants RPC method. */
|
57
|
+
export interface QueryGranterGrantsResponseSDKType {
|
58
|
+
/** grants is a list of grants granted by the granter. */
|
59
|
+
grants: GrantAuthorizationSDKType[];
|
60
|
+
/** pagination defines an pagination for the response. */
|
61
|
+
pagination?: PageResponseSDKType;
|
62
|
+
}
|
63
|
+
/** QueryGranteeGrantsRequest is the request type for the Query/IssuedGrants RPC method. */
|
64
|
+
export interface QueryGranteeGrantsRequest {
|
65
|
+
grantee: string;
|
66
|
+
/** pagination defines an pagination for the request. */
|
67
|
+
pagination?: PageRequest;
|
68
|
+
}
|
69
|
+
/** QueryGranteeGrantsRequest is the request type for the Query/IssuedGrants RPC method. */
|
70
|
+
export interface QueryGranteeGrantsRequestSDKType {
|
71
|
+
grantee: string;
|
72
|
+
/** pagination defines an pagination for the request. */
|
73
|
+
pagination?: PageRequestSDKType;
|
74
|
+
}
|
75
|
+
/** QueryGranteeGrantsResponse is the response type for the Query/GranteeGrants RPC method. */
|
76
|
+
export interface QueryGranteeGrantsResponse {
|
77
|
+
/** grants is a list of grants granted to the grantee. */
|
78
|
+
grants: GrantAuthorization[];
|
79
|
+
/** pagination defines an pagination for the response. */
|
80
|
+
pagination?: PageResponse;
|
81
|
+
}
|
82
|
+
/** QueryGranteeGrantsResponse is the response type for the Query/GranteeGrants RPC method. */
|
83
|
+
export interface QueryGranteeGrantsResponseSDKType {
|
84
|
+
/** grants is a list of grants granted to the grantee. */
|
85
|
+
grants: GrantAuthorizationSDKType[];
|
86
|
+
/** pagination defines an pagination for the response. */
|
87
|
+
pagination?: PageResponseSDKType;
|
88
|
+
}
|
89
|
+
export declare const QueryGrantsRequest: {
|
90
|
+
encode(message: QueryGrantsRequest, writer?: _m0.Writer): _m0.Writer;
|
91
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryGrantsRequest;
|
92
|
+
fromPartial(object: DeepPartial<QueryGrantsRequest>): QueryGrantsRequest;
|
93
|
+
};
|
94
|
+
export declare const QueryGrantsResponse: {
|
95
|
+
encode(message: QueryGrantsResponse, writer?: _m0.Writer): _m0.Writer;
|
96
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryGrantsResponseSDKType;
|
97
|
+
fromPartial(object: DeepPartial<QueryGrantsResponse>): QueryGrantsResponse;
|
98
|
+
};
|
99
|
+
export declare const QueryGranterGrantsRequest: {
|
100
|
+
encode(message: QueryGranterGrantsRequest, writer?: _m0.Writer): _m0.Writer;
|
101
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryGranterGrantsRequest;
|
102
|
+
fromPartial(object: DeepPartial<QueryGranterGrantsRequest>): QueryGranterGrantsRequest;
|
103
|
+
};
|
104
|
+
export declare const QueryGranterGrantsResponse: {
|
105
|
+
encode(message: QueryGranterGrantsResponse, writer?: _m0.Writer): _m0.Writer;
|
106
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryGranterGrantsResponseSDKType;
|
107
|
+
fromPartial(object: DeepPartial<QueryGranterGrantsResponse>): QueryGranterGrantsResponse;
|
108
|
+
};
|
109
|
+
export declare const QueryGranteeGrantsRequest: {
|
110
|
+
encode(message: QueryGranteeGrantsRequest, writer?: _m0.Writer): _m0.Writer;
|
111
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryGranteeGrantsRequest;
|
112
|
+
fromPartial(object: DeepPartial<QueryGranteeGrantsRequest>): QueryGranteeGrantsRequest;
|
113
|
+
};
|
114
|
+
export declare const QueryGranteeGrantsResponse: {
|
115
|
+
encode(message: QueryGranteeGrantsResponse, writer?: _m0.Writer): _m0.Writer;
|
116
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryGranteeGrantsResponseSDKType;
|
117
|
+
fromPartial(object: DeepPartial<QueryGranteeGrantsResponse>): QueryGranteeGrantsResponse;
|
118
|
+
};
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { LCDClient } from "@osmonauts/lcd";
|
2
|
+
import { QueryGrantsRequest, QueryGrantsResponseSDKType, QueryGranterGrantsRequest, QueryGranterGrantsResponseSDKType, QueryGranteeGrantsRequest, QueryGranteeGrantsResponseSDKType } from "./query";
|
3
|
+
export declare class LCDQueryClient {
|
4
|
+
req: LCDClient;
|
5
|
+
constructor({ requestClient }: {
|
6
|
+
requestClient: LCDClient;
|
7
|
+
});
|
8
|
+
grants(params: QueryGrantsRequest): Promise<QueryGrantsResponseSDKType>;
|
9
|
+
granterGrants(params: QueryGranterGrantsRequest): Promise<QueryGranterGrantsResponseSDKType>;
|
10
|
+
granteeGrants(params: QueryGranteeGrantsRequest): Promise<QueryGranteeGrantsResponseSDKType>;
|
11
|
+
}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import { Rpc } from "@osmonauts/helpers";
|
2
|
+
import { QueryClient } from "@cosmjs/stargate";
|
3
|
+
import { QueryGrantsRequest, QueryGrantsResponseSDKType, QueryGranterGrantsRequest, QueryGranterGrantsResponseSDKType, QueryGranteeGrantsRequest, QueryGranteeGrantsResponseSDKType } from "./query";
|
4
|
+
/** Query defines the RPC service */
|
5
|
+
export interface Query {
|
6
|
+
grants(request: QueryGrantsRequest): Promise<QueryGrantsResponseSDKType>;
|
7
|
+
granterGrants(request: QueryGranterGrantsRequest): Promise<QueryGranterGrantsResponseSDKType>;
|
8
|
+
granteeGrants(request: QueryGranteeGrantsRequest): Promise<QueryGranteeGrantsResponseSDKType>;
|
9
|
+
}
|
10
|
+
export declare class QueryClientImpl implements Query {
|
11
|
+
private readonly rpc;
|
12
|
+
constructor(rpc: Rpc);
|
13
|
+
grants(request: QueryGrantsRequest): Promise<QueryGrantsResponseSDKType>;
|
14
|
+
granterGrants(request: QueryGranterGrantsRequest): Promise<QueryGranterGrantsResponseSDKType>;
|
15
|
+
granteeGrants(request: QueryGranteeGrantsRequest): Promise<QueryGranteeGrantsResponseSDKType>;
|
16
|
+
}
|
17
|
+
export declare const createRpcQueryExtension: (base: QueryClient) => {
|
18
|
+
grants(request: QueryGrantsRequest): Promise<QueryGrantsResponseSDKType>;
|
19
|
+
granterGrants(request: QueryGranterGrantsRequest): Promise<QueryGranterGrantsResponseSDKType>;
|
20
|
+
granteeGrants(request: QueryGranteeGrantsRequest): Promise<QueryGranteeGrantsResponseSDKType>;
|
21
|
+
};
|
@@ -0,0 +1,54 @@
|
|
1
|
+
import { AminoMsg } from "@cosmjs/amino";
|
2
|
+
import { MsgGrant, MsgExec, MsgRevoke } from "./tx";
|
3
|
+
export interface AminoMsgGrant extends AminoMsg {
|
4
|
+
type: "cosmos-sdk/MsgGrant";
|
5
|
+
value: {
|
6
|
+
granter: string;
|
7
|
+
grantee: string;
|
8
|
+
grant: {
|
9
|
+
authorization: {
|
10
|
+
type_url: string;
|
11
|
+
value: Uint8Array;
|
12
|
+
};
|
13
|
+
expiration: {
|
14
|
+
seconds: string;
|
15
|
+
nanos: number;
|
16
|
+
};
|
17
|
+
};
|
18
|
+
};
|
19
|
+
}
|
20
|
+
export interface AminoMsgExec extends AminoMsg {
|
21
|
+
type: "cosmos-sdk/MsgExec";
|
22
|
+
value: {
|
23
|
+
grantee: string;
|
24
|
+
msgs: {
|
25
|
+
type_url: string;
|
26
|
+
value: Uint8Array;
|
27
|
+
}[];
|
28
|
+
};
|
29
|
+
}
|
30
|
+
export interface AminoMsgRevoke extends AminoMsg {
|
31
|
+
type: "cosmos-sdk/MsgRevoke";
|
32
|
+
value: {
|
33
|
+
granter: string;
|
34
|
+
grantee: string;
|
35
|
+
msg_type_url: string;
|
36
|
+
};
|
37
|
+
}
|
38
|
+
export declare const AminoConverter: {
|
39
|
+
"/cosmos.authz.v1beta1.MsgGrant": {
|
40
|
+
aminoType: string;
|
41
|
+
toAmino: ({ granter, grantee, grant }: MsgGrant) => AminoMsgGrant["value"];
|
42
|
+
fromAmino: ({ granter, grantee, grant }: AminoMsgGrant["value"]) => MsgGrant;
|
43
|
+
};
|
44
|
+
"/cosmos.authz.v1beta1.MsgExec": {
|
45
|
+
aminoType: string;
|
46
|
+
toAmino: ({ grantee, msgs }: MsgExec) => AminoMsgExec["value"];
|
47
|
+
fromAmino: ({ grantee, msgs }: AminoMsgExec["value"]) => MsgExec;
|
48
|
+
};
|
49
|
+
"/cosmos.authz.v1beta1.MsgRevoke": {
|
50
|
+
aminoType: string;
|
51
|
+
toAmino: ({ granter, grantee, msg_type_url }: MsgRevoke) => AminoMsgRevoke["value"];
|
52
|
+
fromAmino: ({ granter, grantee, msg_type_url }: AminoMsgRevoke["value"]) => MsgRevoke;
|
53
|
+
};
|
54
|
+
};
|