add client extension support
This commit is contained in:
parent
e60d7b5cf5
commit
09add7334e
17
packages/codegen/.telescope.json
Normal file
17
packages/codegen/.telescope.json
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
{
|
||||||
|
"protoDirs": [
|
||||||
|
"./proto"
|
||||||
|
],
|
||||||
|
"outPath": "./src",
|
||||||
|
"options": {
|
||||||
|
"aminoEncoding": {
|
||||||
|
"enabled": false
|
||||||
|
},
|
||||||
|
"lcdClients": {
|
||||||
|
"enabled": true
|
||||||
|
},
|
||||||
|
"rpcClients": {
|
||||||
|
"enabled": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
1
packages/codegen/dist/amino/amino.d.ts
vendored
Normal file
1
packages/codegen/dist/amino/amino.d.ts
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
export {};
|
1
packages/codegen/dist/amino/bundle.d.ts
vendored
Normal file
1
packages/codegen/dist/amino/bundle.d.ts
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
export declare const amino: {};
|
439
packages/codegen/dist/confio/proofs.d.ts
vendored
Normal file
439
packages/codegen/dist/confio/proofs.d.ts
vendored
Normal file
@ -0,0 +1,439 @@
|
|||||||
|
import * as _m0 from "protobufjs/minimal";
|
||||||
|
import { DeepPartial } from "../helpers";
|
||||||
|
export declare enum HashOp {
|
||||||
|
/** NO_HASH - NO_HASH is the default if no data passed. Note this is an illegal argument some places. */
|
||||||
|
NO_HASH = 0,
|
||||||
|
SHA256 = 1,
|
||||||
|
SHA512 = 2,
|
||||||
|
KECCAK = 3,
|
||||||
|
RIPEMD160 = 4,
|
||||||
|
/** BITCOIN - ripemd160(sha256(x)) */
|
||||||
|
BITCOIN = 5,
|
||||||
|
UNRECOGNIZED = -1
|
||||||
|
}
|
||||||
|
export declare const HashOpSDKType: typeof HashOp;
|
||||||
|
export declare function hashOpFromJSON(object: any): HashOp;
|
||||||
|
export declare function hashOpToJSON(object: HashOp): string;
|
||||||
|
/**
|
||||||
|
* LengthOp defines how to process the key and value of the LeafOp
|
||||||
|
* to include length information. After encoding the length with the given
|
||||||
|
* algorithm, the length will be prepended to the key and value bytes.
|
||||||
|
* (Each one with it's own encoded length)
|
||||||
|
*/
|
||||||
|
export declare enum LengthOp {
|
||||||
|
/** NO_PREFIX - NO_PREFIX don't include any length info */
|
||||||
|
NO_PREFIX = 0,
|
||||||
|
/** VAR_PROTO - VAR_PROTO uses protobuf (and go-amino) varint encoding of the length */
|
||||||
|
VAR_PROTO = 1,
|
||||||
|
/** VAR_RLP - VAR_RLP uses rlp int encoding of the length */
|
||||||
|
VAR_RLP = 2,
|
||||||
|
/** FIXED32_BIG - FIXED32_BIG uses big-endian encoding of the length as a 32 bit integer */
|
||||||
|
FIXED32_BIG = 3,
|
||||||
|
/** FIXED32_LITTLE - FIXED32_LITTLE uses little-endian encoding of the length as a 32 bit integer */
|
||||||
|
FIXED32_LITTLE = 4,
|
||||||
|
/** FIXED64_BIG - FIXED64_BIG uses big-endian encoding of the length as a 64 bit integer */
|
||||||
|
FIXED64_BIG = 5,
|
||||||
|
/** FIXED64_LITTLE - FIXED64_LITTLE uses little-endian encoding of the length as a 64 bit integer */
|
||||||
|
FIXED64_LITTLE = 6,
|
||||||
|
/** REQUIRE_32_BYTES - REQUIRE_32_BYTES is like NONE, but will fail if the input is not exactly 32 bytes (sha256 output) */
|
||||||
|
REQUIRE_32_BYTES = 7,
|
||||||
|
/** REQUIRE_64_BYTES - REQUIRE_64_BYTES is like NONE, but will fail if the input is not exactly 64 bytes (sha512 output) */
|
||||||
|
REQUIRE_64_BYTES = 8,
|
||||||
|
UNRECOGNIZED = -1
|
||||||
|
}
|
||||||
|
export declare const LengthOpSDKType: typeof LengthOp;
|
||||||
|
export declare function lengthOpFromJSON(object: any): LengthOp;
|
||||||
|
export declare function lengthOpToJSON(object: LengthOp): string;
|
||||||
|
/**
|
||||||
|
* ExistenceProof takes a key and a value and a set of steps to perform on it.
|
||||||
|
* The result of peforming all these steps will provide a "root hash", which can
|
||||||
|
* be compared to the value in a header.
|
||||||
|
*
|
||||||
|
* Since it is computationally infeasible to produce a hash collission for any of the used
|
||||||
|
* cryptographic hash functions, if someone can provide a series of operations to transform
|
||||||
|
* a given key and value into a root hash that matches some trusted root, these key and values
|
||||||
|
* must be in the referenced merkle tree.
|
||||||
|
*
|
||||||
|
* The only possible issue is maliablity in LeafOp, such as providing extra prefix data,
|
||||||
|
* which should be controlled by a spec. Eg. with lengthOp as NONE,
|
||||||
|
* prefix = FOO, key = BAR, value = CHOICE
|
||||||
|
* and
|
||||||
|
* prefix = F, key = OOBAR, value = CHOICE
|
||||||
|
* would produce the same value.
|
||||||
|
*
|
||||||
|
* With LengthOp this is tricker but not impossible. Which is why the "leafPrefixEqual" field
|
||||||
|
* in the ProofSpec is valuable to prevent this mutability. And why all trees should
|
||||||
|
* length-prefix the data before hashing it.
|
||||||
|
*/
|
||||||
|
export interface ExistenceProof {
|
||||||
|
key: Uint8Array;
|
||||||
|
value: Uint8Array;
|
||||||
|
leaf?: LeafOp;
|
||||||
|
path: InnerOp[];
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* ExistenceProof takes a key and a value and a set of steps to perform on it.
|
||||||
|
* The result of peforming all these steps will provide a "root hash", which can
|
||||||
|
* be compared to the value in a header.
|
||||||
|
*
|
||||||
|
* Since it is computationally infeasible to produce a hash collission for any of the used
|
||||||
|
* cryptographic hash functions, if someone can provide a series of operations to transform
|
||||||
|
* a given key and value into a root hash that matches some trusted root, these key and values
|
||||||
|
* must be in the referenced merkle tree.
|
||||||
|
*
|
||||||
|
* The only possible issue is maliablity in LeafOp, such as providing extra prefix data,
|
||||||
|
* which should be controlled by a spec. Eg. with lengthOp as NONE,
|
||||||
|
* prefix = FOO, key = BAR, value = CHOICE
|
||||||
|
* and
|
||||||
|
* prefix = F, key = OOBAR, value = CHOICE
|
||||||
|
* would produce the same value.
|
||||||
|
*
|
||||||
|
* With LengthOp this is tricker but not impossible. Which is why the "leafPrefixEqual" field
|
||||||
|
* in the ProofSpec is valuable to prevent this mutability. And why all trees should
|
||||||
|
* length-prefix the data before hashing it.
|
||||||
|
*/
|
||||||
|
export interface ExistenceProofSDKType {
|
||||||
|
key: Uint8Array;
|
||||||
|
value: Uint8Array;
|
||||||
|
leaf?: LeafOpSDKType;
|
||||||
|
path: InnerOpSDKType[];
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* NonExistenceProof takes a proof of two neighbors, one left of the desired key,
|
||||||
|
* one right of the desired key. If both proofs are valid AND they are neighbors,
|
||||||
|
* then there is no valid proof for the given key.
|
||||||
|
*/
|
||||||
|
export interface NonExistenceProof {
|
||||||
|
/** TODO: remove this as unnecessary??? we prove a range */
|
||||||
|
key: Uint8Array;
|
||||||
|
left?: ExistenceProof;
|
||||||
|
right?: ExistenceProof;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* NonExistenceProof takes a proof of two neighbors, one left of the desired key,
|
||||||
|
* one right of the desired key. If both proofs are valid AND they are neighbors,
|
||||||
|
* then there is no valid proof for the given key.
|
||||||
|
*/
|
||||||
|
export interface NonExistenceProofSDKType {
|
||||||
|
key: Uint8Array;
|
||||||
|
left?: ExistenceProofSDKType;
|
||||||
|
right?: ExistenceProofSDKType;
|
||||||
|
}
|
||||||
|
/** CommitmentProof is either an ExistenceProof or a NonExistenceProof, or a Batch of such messages */
|
||||||
|
export interface CommitmentProof {
|
||||||
|
exist?: ExistenceProof;
|
||||||
|
nonexist?: NonExistenceProof;
|
||||||
|
batch?: BatchProof;
|
||||||
|
compressed?: CompressedBatchProof;
|
||||||
|
}
|
||||||
|
/** CommitmentProof is either an ExistenceProof or a NonExistenceProof, or a Batch of such messages */
|
||||||
|
export interface CommitmentProofSDKType {
|
||||||
|
exist?: ExistenceProofSDKType;
|
||||||
|
nonexist?: NonExistenceProofSDKType;
|
||||||
|
batch?: BatchProofSDKType;
|
||||||
|
compressed?: CompressedBatchProofSDKType;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* LeafOp represents the raw key-value data we wish to prove, and
|
||||||
|
* must be flexible to represent the internal transformation from
|
||||||
|
* the original key-value pairs into the basis hash, for many existing
|
||||||
|
* merkle trees.
|
||||||
|
*
|
||||||
|
* key and value are passed in. So that the signature of this operation is:
|
||||||
|
* leafOp(key, value) -> output
|
||||||
|
*
|
||||||
|
* To process this, first prehash the keys and values if needed (ANY means no hash in this case):
|
||||||
|
* hkey = prehashKey(key)
|
||||||
|
* hvalue = prehashValue(value)
|
||||||
|
*
|
||||||
|
* Then combine the bytes, and hash it
|
||||||
|
* output = hash(prefix || length(hkey) || hkey || length(hvalue) || hvalue)
|
||||||
|
*/
|
||||||
|
export interface LeafOp {
|
||||||
|
hash: HashOp;
|
||||||
|
prehashKey: HashOp;
|
||||||
|
prehashValue: HashOp;
|
||||||
|
length: LengthOp;
|
||||||
|
/**
|
||||||
|
* prefix is a fixed bytes that may optionally be included at the beginning to differentiate
|
||||||
|
* a leaf node from an inner node.
|
||||||
|
*/
|
||||||
|
prefix: Uint8Array;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* LeafOp represents the raw key-value data we wish to prove, and
|
||||||
|
* must be flexible to represent the internal transformation from
|
||||||
|
* the original key-value pairs into the basis hash, for many existing
|
||||||
|
* merkle trees.
|
||||||
|
*
|
||||||
|
* key and value are passed in. So that the signature of this operation is:
|
||||||
|
* leafOp(key, value) -> output
|
||||||
|
*
|
||||||
|
* To process this, first prehash the keys and values if needed (ANY means no hash in this case):
|
||||||
|
* hkey = prehashKey(key)
|
||||||
|
* hvalue = prehashValue(value)
|
||||||
|
*
|
||||||
|
* Then combine the bytes, and hash it
|
||||||
|
* output = hash(prefix || length(hkey) || hkey || length(hvalue) || hvalue)
|
||||||
|
*/
|
||||||
|
export interface LeafOpSDKType {
|
||||||
|
hash: HashOp;
|
||||||
|
prehash_key: HashOp;
|
||||||
|
prehash_value: HashOp;
|
||||||
|
length: LengthOp;
|
||||||
|
prefix: Uint8Array;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* InnerOp represents a merkle-proof step that is not a leaf.
|
||||||
|
* It represents concatenating two children and hashing them to provide the next result.
|
||||||
|
*
|
||||||
|
* The result of the previous step is passed in, so the signature of this op is:
|
||||||
|
* innerOp(child) -> output
|
||||||
|
*
|
||||||
|
* The result of applying InnerOp should be:
|
||||||
|
* output = op.hash(op.prefix || child || op.suffix)
|
||||||
|
*
|
||||||
|
* where the || operator is concatenation of binary data,
|
||||||
|
* and child is the result of hashing all the tree below this step.
|
||||||
|
*
|
||||||
|
* Any special data, like prepending child with the length, or prepending the entire operation with
|
||||||
|
* some value to differentiate from leaf nodes, should be included in prefix and suffix.
|
||||||
|
* If either of prefix or suffix is empty, we just treat it as an empty string
|
||||||
|
*/
|
||||||
|
export interface InnerOp {
|
||||||
|
hash: HashOp;
|
||||||
|
prefix: Uint8Array;
|
||||||
|
suffix: Uint8Array;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* InnerOp represents a merkle-proof step that is not a leaf.
|
||||||
|
* It represents concatenating two children and hashing them to provide the next result.
|
||||||
|
*
|
||||||
|
* The result of the previous step is passed in, so the signature of this op is:
|
||||||
|
* innerOp(child) -> output
|
||||||
|
*
|
||||||
|
* The result of applying InnerOp should be:
|
||||||
|
* output = op.hash(op.prefix || child || op.suffix)
|
||||||
|
*
|
||||||
|
* where the || operator is concatenation of binary data,
|
||||||
|
* and child is the result of hashing all the tree below this step.
|
||||||
|
*
|
||||||
|
* Any special data, like prepending child with the length, or prepending the entire operation with
|
||||||
|
* some value to differentiate from leaf nodes, should be included in prefix and suffix.
|
||||||
|
* If either of prefix or suffix is empty, we just treat it as an empty string
|
||||||
|
*/
|
||||||
|
export interface InnerOpSDKType {
|
||||||
|
hash: HashOp;
|
||||||
|
prefix: Uint8Array;
|
||||||
|
suffix: Uint8Array;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* ProofSpec defines what the expected parameters are for a given proof type.
|
||||||
|
* This can be stored in the client and used to validate any incoming proofs.
|
||||||
|
*
|
||||||
|
* verify(ProofSpec, Proof) -> Proof | Error
|
||||||
|
*
|
||||||
|
* As demonstrated in tests, if we don't fix the algorithm used to calculate the
|
||||||
|
* LeafHash for a given tree, there are many possible key-value pairs that can
|
||||||
|
* generate a given hash (by interpretting the preimage differently).
|
||||||
|
* We need this for proper security, requires client knows a priori what
|
||||||
|
* tree format server uses. But not in code, rather a configuration object.
|
||||||
|
*/
|
||||||
|
export interface ProofSpec {
|
||||||
|
/**
|
||||||
|
* any field in the ExistenceProof must be the same as in this spec.
|
||||||
|
* except Prefix, which is just the first bytes of prefix (spec can be longer)
|
||||||
|
*/
|
||||||
|
leafSpec?: LeafOp;
|
||||||
|
innerSpec?: InnerSpec;
|
||||||
|
/** max_depth (if > 0) is the maximum number of InnerOps allowed (mainly for fixed-depth tries) */
|
||||||
|
maxDepth: number;
|
||||||
|
/** min_depth (if > 0) is the minimum number of InnerOps allowed (mainly for fixed-depth tries) */
|
||||||
|
minDepth: number;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* ProofSpec defines what the expected parameters are for a given proof type.
|
||||||
|
* This can be stored in the client and used to validate any incoming proofs.
|
||||||
|
*
|
||||||
|
* verify(ProofSpec, Proof) -> Proof | Error
|
||||||
|
*
|
||||||
|
* As demonstrated in tests, if we don't fix the algorithm used to calculate the
|
||||||
|
* LeafHash for a given tree, there are many possible key-value pairs that can
|
||||||
|
* generate a given hash (by interpretting the preimage differently).
|
||||||
|
* We need this for proper security, requires client knows a priori what
|
||||||
|
* tree format server uses. But not in code, rather a configuration object.
|
||||||
|
*/
|
||||||
|
export interface ProofSpecSDKType {
|
||||||
|
leaf_spec?: LeafOpSDKType;
|
||||||
|
inner_spec?: InnerSpecSDKType;
|
||||||
|
max_depth: number;
|
||||||
|
min_depth: number;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* InnerSpec contains all store-specific structure info to determine if two proofs from a
|
||||||
|
* given store are neighbors.
|
||||||
|
*
|
||||||
|
* This enables:
|
||||||
|
*
|
||||||
|
* isLeftMost(spec: InnerSpec, op: InnerOp)
|
||||||
|
* isRightMost(spec: InnerSpec, op: InnerOp)
|
||||||
|
* isLeftNeighbor(spec: InnerSpec, left: InnerOp, right: InnerOp)
|
||||||
|
*/
|
||||||
|
export interface InnerSpec {
|
||||||
|
/**
|
||||||
|
* Child order is the ordering of the children node, must count from 0
|
||||||
|
* iavl tree is [0, 1] (left then right)
|
||||||
|
* merk is [0, 2, 1] (left, right, here)
|
||||||
|
*/
|
||||||
|
childOrder: number[];
|
||||||
|
childSize: number;
|
||||||
|
minPrefixLength: number;
|
||||||
|
maxPrefixLength: number;
|
||||||
|
/** empty child is the prehash image that is used when one child is nil (eg. 20 bytes of 0) */
|
||||||
|
emptyChild: Uint8Array;
|
||||||
|
/** hash is the algorithm that must be used for each InnerOp */
|
||||||
|
hash: HashOp;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* InnerSpec contains all store-specific structure info to determine if two proofs from a
|
||||||
|
* given store are neighbors.
|
||||||
|
*
|
||||||
|
* This enables:
|
||||||
|
*
|
||||||
|
* isLeftMost(spec: InnerSpec, op: InnerOp)
|
||||||
|
* isRightMost(spec: InnerSpec, op: InnerOp)
|
||||||
|
* isLeftNeighbor(spec: InnerSpec, left: InnerOp, right: InnerOp)
|
||||||
|
*/
|
||||||
|
export interface InnerSpecSDKType {
|
||||||
|
child_order: number[];
|
||||||
|
child_size: number;
|
||||||
|
min_prefix_length: number;
|
||||||
|
max_prefix_length: number;
|
||||||
|
empty_child: Uint8Array;
|
||||||
|
hash: HashOp;
|
||||||
|
}
|
||||||
|
/** BatchProof is a group of multiple proof types than can be compressed */
|
||||||
|
export interface BatchProof {
|
||||||
|
entries: BatchEntry[];
|
||||||
|
}
|
||||||
|
/** BatchProof is a group of multiple proof types than can be compressed */
|
||||||
|
export interface BatchProofSDKType {
|
||||||
|
entries: BatchEntrySDKType[];
|
||||||
|
}
|
||||||
|
/** Use BatchEntry not CommitmentProof, to avoid recursion */
|
||||||
|
export interface BatchEntry {
|
||||||
|
exist?: ExistenceProof;
|
||||||
|
nonexist?: NonExistenceProof;
|
||||||
|
}
|
||||||
|
/** Use BatchEntry not CommitmentProof, to avoid recursion */
|
||||||
|
export interface BatchEntrySDKType {
|
||||||
|
exist?: ExistenceProofSDKType;
|
||||||
|
nonexist?: NonExistenceProofSDKType;
|
||||||
|
}
|
||||||
|
export interface CompressedBatchProof {
|
||||||
|
entries: CompressedBatchEntry[];
|
||||||
|
lookupInners: InnerOp[];
|
||||||
|
}
|
||||||
|
export interface CompressedBatchProofSDKType {
|
||||||
|
entries: CompressedBatchEntrySDKType[];
|
||||||
|
lookup_inners: InnerOpSDKType[];
|
||||||
|
}
|
||||||
|
/** Use BatchEntry not CommitmentProof, to avoid recursion */
|
||||||
|
export interface CompressedBatchEntry {
|
||||||
|
exist?: CompressedExistenceProof;
|
||||||
|
nonexist?: CompressedNonExistenceProof;
|
||||||
|
}
|
||||||
|
/** Use BatchEntry not CommitmentProof, to avoid recursion */
|
||||||
|
export interface CompressedBatchEntrySDKType {
|
||||||
|
exist?: CompressedExistenceProofSDKType;
|
||||||
|
nonexist?: CompressedNonExistenceProofSDKType;
|
||||||
|
}
|
||||||
|
export interface CompressedExistenceProof {
|
||||||
|
key: Uint8Array;
|
||||||
|
value: Uint8Array;
|
||||||
|
leaf?: LeafOp;
|
||||||
|
/** these are indexes into the lookup_inners table in CompressedBatchProof */
|
||||||
|
path: number[];
|
||||||
|
}
|
||||||
|
export interface CompressedExistenceProofSDKType {
|
||||||
|
key: Uint8Array;
|
||||||
|
value: Uint8Array;
|
||||||
|
leaf?: LeafOpSDKType;
|
||||||
|
path: number[];
|
||||||
|
}
|
||||||
|
export interface CompressedNonExistenceProof {
|
||||||
|
/** TODO: remove this as unnecessary??? we prove a range */
|
||||||
|
key: Uint8Array;
|
||||||
|
left?: CompressedExistenceProof;
|
||||||
|
right?: CompressedExistenceProof;
|
||||||
|
}
|
||||||
|
export interface CompressedNonExistenceProofSDKType {
|
||||||
|
key: Uint8Array;
|
||||||
|
left?: CompressedExistenceProofSDKType;
|
||||||
|
right?: CompressedExistenceProofSDKType;
|
||||||
|
}
|
||||||
|
export declare const ExistenceProof: {
|
||||||
|
encode(message: ExistenceProof, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): ExistenceProof;
|
||||||
|
fromPartial(object: DeepPartial<ExistenceProof>): ExistenceProof;
|
||||||
|
};
|
||||||
|
export declare const NonExistenceProof: {
|
||||||
|
encode(message: NonExistenceProof, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): NonExistenceProof;
|
||||||
|
fromPartial(object: DeepPartial<NonExistenceProof>): NonExistenceProof;
|
||||||
|
};
|
||||||
|
export declare const CommitmentProof: {
|
||||||
|
encode(message: CommitmentProof, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): CommitmentProof;
|
||||||
|
fromPartial(object: DeepPartial<CommitmentProof>): CommitmentProof;
|
||||||
|
};
|
||||||
|
export declare const LeafOp: {
|
||||||
|
encode(message: LeafOp, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): LeafOp;
|
||||||
|
fromPartial(object: DeepPartial<LeafOp>): LeafOp;
|
||||||
|
};
|
||||||
|
export declare const InnerOp: {
|
||||||
|
encode(message: InnerOp, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): InnerOp;
|
||||||
|
fromPartial(object: DeepPartial<InnerOp>): InnerOp;
|
||||||
|
};
|
||||||
|
export declare const ProofSpec: {
|
||||||
|
encode(message: ProofSpec, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): ProofSpec;
|
||||||
|
fromPartial(object: DeepPartial<ProofSpec>): ProofSpec;
|
||||||
|
};
|
||||||
|
export declare const InnerSpec: {
|
||||||
|
encode(message: InnerSpec, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): InnerSpec;
|
||||||
|
fromPartial(object: DeepPartial<InnerSpec>): InnerSpec;
|
||||||
|
};
|
||||||
|
export declare const BatchProof: {
|
||||||
|
encode(message: BatchProof, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): BatchProof;
|
||||||
|
fromPartial(object: DeepPartial<BatchProof>): BatchProof;
|
||||||
|
};
|
||||||
|
export declare const BatchEntry: {
|
||||||
|
encode(message: BatchEntry, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): BatchEntry;
|
||||||
|
fromPartial(object: DeepPartial<BatchEntry>): BatchEntry;
|
||||||
|
};
|
||||||
|
export declare const CompressedBatchProof: {
|
||||||
|
encode(message: CompressedBatchProof, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): CompressedBatchProof;
|
||||||
|
fromPartial(object: DeepPartial<CompressedBatchProof>): CompressedBatchProof;
|
||||||
|
};
|
||||||
|
export declare const CompressedBatchEntry: {
|
||||||
|
encode(message: CompressedBatchEntry, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): CompressedBatchEntry;
|
||||||
|
fromPartial(object: DeepPartial<CompressedBatchEntry>): CompressedBatchEntry;
|
||||||
|
};
|
||||||
|
export declare const CompressedExistenceProof: {
|
||||||
|
encode(message: CompressedExistenceProof, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): CompressedExistenceProof;
|
||||||
|
fromPartial(object: DeepPartial<CompressedExistenceProof>): CompressedExistenceProof;
|
||||||
|
};
|
||||||
|
export declare const CompressedNonExistenceProof: {
|
||||||
|
encode(message: CompressedNonExistenceProof, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): CompressedNonExistenceProof;
|
||||||
|
fromPartial(object: DeepPartial<CompressedNonExistenceProof>): CompressedNonExistenceProof;
|
||||||
|
};
|
64
packages/codegen/dist/cosmos/app/v1alpha1/config.d.ts
vendored
Normal file
64
packages/codegen/dist/cosmos/app/v1alpha1/config.d.ts
vendored
Normal file
@ -0,0 +1,64 @@
|
|||||||
|
import { Any, AnySDKType } from "../../../google/protobuf/any";
|
||||||
|
import * as _m0 from "protobufjs/minimal";
|
||||||
|
import { DeepPartial } from "../../../helpers";
|
||||||
|
/**
|
||||||
|
* Config represents the configuration for a Cosmos SDK ABCI app.
|
||||||
|
* It is intended that all state machine logic including the version of
|
||||||
|
* baseapp and tx handlers (and possibly even Tendermint) that an app needs
|
||||||
|
* can be described in a config object. For compatibility, the framework should
|
||||||
|
* allow a mixture of declarative and imperative app wiring, however, apps
|
||||||
|
* that strive for the maximum ease of maintainability should be able to describe
|
||||||
|
* their state machine with a config object alone.
|
||||||
|
*/
|
||||||
|
export interface Config {
|
||||||
|
/** modules are the module configurations for the app. */
|
||||||
|
modules: ModuleConfig[];
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Config represents the configuration for a Cosmos SDK ABCI app.
|
||||||
|
* It is intended that all state machine logic including the version of
|
||||||
|
* baseapp and tx handlers (and possibly even Tendermint) that an app needs
|
||||||
|
* can be described in a config object. For compatibility, the framework should
|
||||||
|
* allow a mixture of declarative and imperative app wiring, however, apps
|
||||||
|
* that strive for the maximum ease of maintainability should be able to describe
|
||||||
|
* their state machine with a config object alone.
|
||||||
|
*/
|
||||||
|
export interface ConfigSDKType {
|
||||||
|
modules: ModuleConfigSDKType[];
|
||||||
|
}
|
||||||
|
/** ModuleConfig is a module configuration for an app. */
|
||||||
|
export interface ModuleConfig {
|
||||||
|
/**
|
||||||
|
* name is the unique name of the module within the app. It should be a name
|
||||||
|
* that persists between different versions of a module so that modules
|
||||||
|
* can be smoothly upgraded to new versions.
|
||||||
|
*
|
||||||
|
* For example, for the module cosmos.bank.module.v1.Module, we may chose
|
||||||
|
* to simply name the module "bank" in the app. When we upgrade to
|
||||||
|
* cosmos.bank.module.v2.Module, the app-specific name "bank" stays the same
|
||||||
|
* and the framework knows that the v2 module should receive all the same state
|
||||||
|
* that the v1 module had. Note: modules should provide info on which versions
|
||||||
|
* they can migrate from in the ModuleDescriptor.can_migration_from field.
|
||||||
|
*/
|
||||||
|
name: string;
|
||||||
|
/**
|
||||||
|
* config is the config object for the module. Module config messages should
|
||||||
|
* define a ModuleDescriptor using the cosmos.app.v1alpha1.is_module extension.
|
||||||
|
*/
|
||||||
|
config?: Any;
|
||||||
|
}
|
||||||
|
/** ModuleConfig is a module configuration for an app. */
|
||||||
|
export interface ModuleConfigSDKType {
|
||||||
|
name: string;
|
||||||
|
config?: AnySDKType;
|
||||||
|
}
|
||||||
|
export declare const Config: {
|
||||||
|
encode(message: Config, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): Config;
|
||||||
|
fromPartial(object: DeepPartial<Config>): Config;
|
||||||
|
};
|
||||||
|
export declare const ModuleConfig: {
|
||||||
|
encode(message: ModuleConfig, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): ModuleConfig;
|
||||||
|
fromPartial(object: DeepPartial<ModuleConfig>): ModuleConfig;
|
||||||
|
};
|
117
packages/codegen/dist/cosmos/app/v1alpha1/module.d.ts
vendored
Normal file
117
packages/codegen/dist/cosmos/app/v1alpha1/module.d.ts
vendored
Normal file
@ -0,0 +1,117 @@
|
|||||||
|
import * as _m0 from "protobufjs/minimal";
|
||||||
|
import { DeepPartial } from "../../../helpers";
|
||||||
|
/** ModuleDescriptor describes an app module. */
|
||||||
|
export interface ModuleDescriptor {
|
||||||
|
/**
|
||||||
|
* go_import names the package that should be imported by an app to load the
|
||||||
|
* module in the runtime module registry. Either go_import must be defined here
|
||||||
|
* or the go_package option must be defined at the file level to indicate
|
||||||
|
* to users where to location the module implementation. go_import takes
|
||||||
|
* precedence over go_package when both are defined.
|
||||||
|
*/
|
||||||
|
goImport: string;
|
||||||
|
/**
|
||||||
|
* use_package refers to a protobuf package that this module
|
||||||
|
* uses and exposes to the world. In an app, only one module should "use"
|
||||||
|
* or own a single protobuf package. It is assumed that the module uses
|
||||||
|
* all of the .proto files in a single package.
|
||||||
|
*/
|
||||||
|
usePackage: PackageReference[];
|
||||||
|
/**
|
||||||
|
* can_migrate_from defines which module versions this module can migrate
|
||||||
|
* state from. The framework will check that one module version is able to
|
||||||
|
* migrate from a previous module version before attempting to update its
|
||||||
|
* config. It is assumed that modules can transitively migrate from earlier
|
||||||
|
* versions. For instance if v3 declares it can migrate from v2, and v2
|
||||||
|
* declares it can migrate from v1, the framework knows how to migrate
|
||||||
|
* from v1 to v3, assuming all 3 module versions are registered at runtime.
|
||||||
|
*/
|
||||||
|
canMigrateFrom: MigrateFromInfo[];
|
||||||
|
}
|
||||||
|
/** ModuleDescriptor describes an app module. */
|
||||||
|
export interface ModuleDescriptorSDKType {
|
||||||
|
go_import: string;
|
||||||
|
use_package: PackageReferenceSDKType[];
|
||||||
|
can_migrate_from: MigrateFromInfoSDKType[];
|
||||||
|
}
|
||||||
|
/** PackageReference is a reference to a protobuf package used by a module. */
|
||||||
|
export interface PackageReference {
|
||||||
|
/** name is the fully-qualified name of the package. */
|
||||||
|
name: string;
|
||||||
|
/**
|
||||||
|
* revision is the optional revision of the package that is being used.
|
||||||
|
* Protobuf packages used in Cosmos should generally have a major version
|
||||||
|
* as the last part of the package name, ex. foo.bar.baz.v1.
|
||||||
|
* The revision of a package can be thought of as the minor version of a
|
||||||
|
* package which has additional backwards compatible definitions that weren't
|
||||||
|
* present in a previous version.
|
||||||
|
*
|
||||||
|
* A package should indicate its revision with a source code comment
|
||||||
|
* above the package declaration in one of its fields containing the
|
||||||
|
* test "Revision N" where N is an integer revision. All packages start
|
||||||
|
* at revision 0 the first time they are released in a module.
|
||||||
|
*
|
||||||
|
* When a new version of a module is released and items are added to existing
|
||||||
|
* .proto files, these definitions should contain comments of the form
|
||||||
|
* "Since Revision N" where N is an integer revision.
|
||||||
|
*
|
||||||
|
* When the module runtime starts up, it will check the pinned proto
|
||||||
|
* image and panic if there are runtime protobuf definitions that are not
|
||||||
|
* in the pinned descriptor which do not have
|
||||||
|
* a "Since Revision N" comment or have a "Since Revision N" comment where
|
||||||
|
* N is <= to the revision specified here. This indicates that the protobuf
|
||||||
|
* files have been updated, but the pinned file descriptor hasn't.
|
||||||
|
*
|
||||||
|
* If there are items in the pinned file descriptor with a revision
|
||||||
|
* greater than the value indicated here, this will also cause a panic
|
||||||
|
* as it may mean that the pinned descriptor for a legacy module has been
|
||||||
|
* improperly updated or that there is some other versioning discrepancy.
|
||||||
|
* Runtime protobuf definitions will also be checked for compatibility
|
||||||
|
* with pinned file descriptors to make sure there are no incompatible changes.
|
||||||
|
*
|
||||||
|
* This behavior ensures that:
|
||||||
|
* * pinned proto images are up-to-date
|
||||||
|
* * protobuf files are carefully annotated with revision comments which
|
||||||
|
* are important good client UX
|
||||||
|
* * protobuf files are changed in backwards and forwards compatible ways
|
||||||
|
*/
|
||||||
|
revision: number;
|
||||||
|
}
|
||||||
|
/** PackageReference is a reference to a protobuf package used by a module. */
|
||||||
|
export interface PackageReferenceSDKType {
|
||||||
|
name: string;
|
||||||
|
revision: number;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* MigrateFromInfo is information on a module version that a newer module
|
||||||
|
* can migrate from.
|
||||||
|
*/
|
||||||
|
export interface MigrateFromInfo {
|
||||||
|
/**
|
||||||
|
* module is the fully-qualified protobuf name of the module config object
|
||||||
|
* for the previous module version, ex: "cosmos.group.module.v1.Module".
|
||||||
|
*/
|
||||||
|
module: string;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* MigrateFromInfo is information on a module version that a newer module
|
||||||
|
* can migrate from.
|
||||||
|
*/
|
||||||
|
export interface MigrateFromInfoSDKType {
|
||||||
|
module: string;
|
||||||
|
}
|
||||||
|
export declare const ModuleDescriptor: {
|
||||||
|
encode(message: ModuleDescriptor, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): ModuleDescriptor;
|
||||||
|
fromPartial(object: DeepPartial<ModuleDescriptor>): ModuleDescriptor;
|
||||||
|
};
|
||||||
|
export declare const PackageReference: {
|
||||||
|
encode(message: PackageReference, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): PackageReference;
|
||||||
|
fromPartial(object: DeepPartial<PackageReference>): PackageReference;
|
||||||
|
};
|
||||||
|
export declare const MigrateFromInfo: {
|
||||||
|
encode(message: MigrateFromInfo, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): MigrateFromInfo;
|
||||||
|
fromPartial(object: DeepPartial<MigrateFromInfo>): MigrateFromInfo;
|
||||||
|
};
|
28
packages/codegen/dist/cosmos/app/v1alpha1/query.d.ts
vendored
Normal file
28
packages/codegen/dist/cosmos/app/v1alpha1/query.d.ts
vendored
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
import { Config, ConfigSDKType } from "./config";
|
||||||
|
import * as _m0 from "protobufjs/minimal";
|
||||||
|
import { DeepPartial } from "../../../helpers";
|
||||||
|
/** QueryConfigRequest is the Query/Config request type. */
|
||||||
|
export interface QueryConfigRequest {
|
||||||
|
}
|
||||||
|
/** QueryConfigRequest is the Query/Config request type. */
|
||||||
|
export interface QueryConfigRequestSDKType {
|
||||||
|
}
|
||||||
|
/** QueryConfigRequest is the Query/Config response type. */
|
||||||
|
export interface QueryConfigResponse {
|
||||||
|
/** config is the current app config. */
|
||||||
|
config?: Config;
|
||||||
|
}
|
||||||
|
/** QueryConfigRequest is the Query/Config response type. */
|
||||||
|
export interface QueryConfigResponseSDKType {
|
||||||
|
config?: ConfigSDKType;
|
||||||
|
}
|
||||||
|
export declare const QueryConfigRequest: {
|
||||||
|
encode(_: QueryConfigRequest, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryConfigRequest;
|
||||||
|
fromPartial(_: DeepPartial<QueryConfigRequest>): QueryConfigRequest;
|
||||||
|
};
|
||||||
|
export declare const QueryConfigResponse: {
|
||||||
|
encode(message: QueryConfigResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryConfigResponse;
|
||||||
|
fromPartial(object: DeepPartial<QueryConfigResponse>): QueryConfigResponse;
|
||||||
|
};
|
16
packages/codegen/dist/cosmos/app/v1alpha1/query.rpc.Query.d.ts
vendored
Normal file
16
packages/codegen/dist/cosmos/app/v1alpha1/query.rpc.Query.d.ts
vendored
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
import { Rpc } from "../../../helpers";
|
||||||
|
import { QueryClient } from "@cosmjs/stargate";
|
||||||
|
import { QueryConfigRequest, QueryConfigResponse } from "./query";
|
||||||
|
/** Query is the app module query service. */
|
||||||
|
export interface Query {
|
||||||
|
/** Config returns the current app config. */
|
||||||
|
config(request?: QueryConfigRequest): Promise<QueryConfigResponse>;
|
||||||
|
}
|
||||||
|
export declare class QueryClientImpl implements Query {
|
||||||
|
private readonly rpc;
|
||||||
|
constructor(rpc: Rpc);
|
||||||
|
config(request?: QueryConfigRequest): Promise<QueryConfigResponse>;
|
||||||
|
}
|
||||||
|
export declare const createRpcQueryExtension: (base: QueryClient) => {
|
||||||
|
config(request?: QueryConfigRequest): Promise<QueryConfigResponse>;
|
||||||
|
};
|
69
packages/codegen/dist/cosmos/auth/v1beta1/auth.d.ts
vendored
Normal file
69
packages/codegen/dist/cosmos/auth/v1beta1/auth.d.ts
vendored
Normal file
@ -0,0 +1,69 @@
|
|||||||
|
/// <reference types="long" />
|
||||||
|
import { Any, AnySDKType } from "../../../google/protobuf/any";
|
||||||
|
import { Long, DeepPartial } from "../../../helpers";
|
||||||
|
import * as _m0 from "protobufjs/minimal";
|
||||||
|
/**
|
||||||
|
* BaseAccount defines a base account type. It contains all the necessary fields
|
||||||
|
* for basic account functionality. Any custom account type should extend this
|
||||||
|
* type for additional functionality (e.g. vesting).
|
||||||
|
*/
|
||||||
|
export interface BaseAccount {
|
||||||
|
address: string;
|
||||||
|
pubKey?: Any;
|
||||||
|
accountNumber: Long;
|
||||||
|
sequence: Long;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* BaseAccount defines a base account type. It contains all the necessary fields
|
||||||
|
* for basic account functionality. Any custom account type should extend this
|
||||||
|
* type for additional functionality (e.g. vesting).
|
||||||
|
*/
|
||||||
|
export interface BaseAccountSDKType {
|
||||||
|
address: string;
|
||||||
|
pub_key?: AnySDKType;
|
||||||
|
account_number: Long;
|
||||||
|
sequence: Long;
|
||||||
|
}
|
||||||
|
/** ModuleAccount defines an account for modules that holds coins on a pool. */
|
||||||
|
export interface ModuleAccount {
|
||||||
|
baseAccount?: BaseAccount;
|
||||||
|
name: string;
|
||||||
|
permissions: string[];
|
||||||
|
}
|
||||||
|
/** ModuleAccount defines an account for modules that holds coins on a pool. */
|
||||||
|
export interface ModuleAccountSDKType {
|
||||||
|
base_account?: BaseAccountSDKType;
|
||||||
|
name: string;
|
||||||
|
permissions: string[];
|
||||||
|
}
|
||||||
|
/** Params defines the parameters for the auth module. */
|
||||||
|
export interface Params {
|
||||||
|
maxMemoCharacters: Long;
|
||||||
|
txSigLimit: Long;
|
||||||
|
txSizeCostPerByte: Long;
|
||||||
|
sigVerifyCostEd25519: Long;
|
||||||
|
sigVerifyCostSecp256k1: Long;
|
||||||
|
}
|
||||||
|
/** Params defines the parameters for the auth module. */
|
||||||
|
export interface ParamsSDKType {
|
||||||
|
max_memo_characters: Long;
|
||||||
|
tx_sig_limit: Long;
|
||||||
|
tx_size_cost_per_byte: Long;
|
||||||
|
sig_verify_cost_ed25519: Long;
|
||||||
|
sig_verify_cost_secp256k1: Long;
|
||||||
|
}
|
||||||
|
export declare const BaseAccount: {
|
||||||
|
encode(message: BaseAccount, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): BaseAccount;
|
||||||
|
fromPartial(object: DeepPartial<BaseAccount>): BaseAccount;
|
||||||
|
};
|
||||||
|
export declare const ModuleAccount: {
|
||||||
|
encode(message: ModuleAccount, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): ModuleAccount;
|
||||||
|
fromPartial(object: DeepPartial<ModuleAccount>): ModuleAccount;
|
||||||
|
};
|
||||||
|
export declare const Params: {
|
||||||
|
encode(message: Params, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): Params;
|
||||||
|
fromPartial(object: DeepPartial<Params>): Params;
|
||||||
|
};
|
21
packages/codegen/dist/cosmos/auth/v1beta1/genesis.d.ts
vendored
Normal file
21
packages/codegen/dist/cosmos/auth/v1beta1/genesis.d.ts
vendored
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
import { Params, ParamsSDKType } from "./auth";
|
||||||
|
import { Any, AnySDKType } from "../../../google/protobuf/any";
|
||||||
|
import * as _m0 from "protobufjs/minimal";
|
||||||
|
import { DeepPartial } from "../../../helpers";
|
||||||
|
/** GenesisState defines the auth module's genesis state. */
|
||||||
|
export interface GenesisState {
|
||||||
|
/** params defines all the paramaters of the module. */
|
||||||
|
params?: Params;
|
||||||
|
/** accounts are the accounts present at genesis. */
|
||||||
|
accounts: Any[];
|
||||||
|
}
|
||||||
|
/** GenesisState defines the auth module's genesis state. */
|
||||||
|
export interface GenesisStateSDKType {
|
||||||
|
params?: ParamsSDKType;
|
||||||
|
accounts: AnySDKType[];
|
||||||
|
}
|
||||||
|
export declare const GenesisState: {
|
||||||
|
encode(message: GenesisState, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): GenesisState;
|
||||||
|
fromPartial(object: DeepPartial<GenesisState>): GenesisState;
|
||||||
|
};
|
205
packages/codegen/dist/cosmos/auth/v1beta1/query.d.ts
vendored
Normal file
205
packages/codegen/dist/cosmos/auth/v1beta1/query.d.ts
vendored
Normal file
@ -0,0 +1,205 @@
|
|||||||
|
import { PageRequest, PageRequestSDKType, PageResponse, PageResponseSDKType } from "../../base/query/v1beta1/pagination";
|
||||||
|
import { Any, AnySDKType } from "../../../google/protobuf/any";
|
||||||
|
import { Params, ParamsSDKType } from "./auth";
|
||||||
|
import * as _m0 from "protobufjs/minimal";
|
||||||
|
import { DeepPartial } from "../../../helpers";
|
||||||
|
/**
|
||||||
|
* QueryAccountsRequest is the request type for the Query/Accounts RPC method.
|
||||||
|
*
|
||||||
|
* Since: cosmos-sdk 0.43
|
||||||
|
*/
|
||||||
|
export interface QueryAccountsRequest {
|
||||||
|
/** pagination defines an optional pagination for the request. */
|
||||||
|
pagination?: PageRequest;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* QueryAccountsRequest is the request type for the Query/Accounts RPC method.
|
||||||
|
*
|
||||||
|
* Since: cosmos-sdk 0.43
|
||||||
|
*/
|
||||||
|
export interface QueryAccountsRequestSDKType {
|
||||||
|
pagination?: PageRequestSDKType;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* QueryAccountsResponse is the response type for the Query/Accounts RPC method.
|
||||||
|
*
|
||||||
|
* Since: cosmos-sdk 0.43
|
||||||
|
*/
|
||||||
|
export interface QueryAccountsResponse {
|
||||||
|
/** accounts are the existing accounts */
|
||||||
|
accounts: Any[];
|
||||||
|
/** pagination defines the pagination in the response. */
|
||||||
|
pagination?: PageResponse;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* QueryAccountsResponse is the response type for the Query/Accounts RPC method.
|
||||||
|
*
|
||||||
|
* Since: cosmos-sdk 0.43
|
||||||
|
*/
|
||||||
|
export interface QueryAccountsResponseSDKType {
|
||||||
|
accounts: AnySDKType[];
|
||||||
|
pagination?: PageResponseSDKType;
|
||||||
|
}
|
||||||
|
/** QueryAccountRequest is the request type for the Query/Account RPC method. */
|
||||||
|
export interface QueryAccountRequest {
|
||||||
|
/** address defines the address to query for. */
|
||||||
|
address: string;
|
||||||
|
}
|
||||||
|
/** QueryAccountRequest is the request type for the Query/Account RPC method. */
|
||||||
|
export interface QueryAccountRequestSDKType {
|
||||||
|
address: string;
|
||||||
|
}
|
||||||
|
/** QueryModuleAccountsRequest is the request type for the Query/ModuleAccounts RPC method. */
|
||||||
|
export interface QueryModuleAccountsRequest {
|
||||||
|
}
|
||||||
|
/** QueryModuleAccountsRequest is the request type for the Query/ModuleAccounts RPC method. */
|
||||||
|
export interface QueryModuleAccountsRequestSDKType {
|
||||||
|
}
|
||||||
|
/** QueryParamsResponse is the response type for the Query/Params RPC method. */
|
||||||
|
export interface QueryParamsResponse {
|
||||||
|
/** params defines the parameters of the module. */
|
||||||
|
params?: Params;
|
||||||
|
}
|
||||||
|
/** QueryParamsResponse is the response type for the Query/Params RPC method. */
|
||||||
|
export interface QueryParamsResponseSDKType {
|
||||||
|
params?: ParamsSDKType;
|
||||||
|
}
|
||||||
|
/** QueryAccountResponse is the response type for the Query/Account RPC method. */
|
||||||
|
export interface QueryAccountResponse {
|
||||||
|
/** account defines the account of the corresponding address. */
|
||||||
|
account?: Any;
|
||||||
|
}
|
||||||
|
/** QueryAccountResponse is the response type for the Query/Account RPC method. */
|
||||||
|
export interface QueryAccountResponseSDKType {
|
||||||
|
account?: AnySDKType;
|
||||||
|
}
|
||||||
|
/** QueryParamsRequest is the request type for the Query/Params RPC method. */
|
||||||
|
export interface QueryParamsRequest {
|
||||||
|
}
|
||||||
|
/** QueryParamsRequest is the request type for the Query/Params RPC method. */
|
||||||
|
export interface QueryParamsRequestSDKType {
|
||||||
|
}
|
||||||
|
/** QueryModuleAccountsResponse is the response type for the Query/ModuleAccounts RPC method. */
|
||||||
|
export interface QueryModuleAccountsResponse {
|
||||||
|
accounts: Any[];
|
||||||
|
}
|
||||||
|
/** QueryModuleAccountsResponse is the response type for the Query/ModuleAccounts RPC method. */
|
||||||
|
export interface QueryModuleAccountsResponseSDKType {
|
||||||
|
accounts: AnySDKType[];
|
||||||
|
}
|
||||||
|
/** Bech32PrefixRequest is the request type for Bech32Prefix rpc method */
|
||||||
|
export interface Bech32PrefixRequest {
|
||||||
|
}
|
||||||
|
/** Bech32PrefixRequest is the request type for Bech32Prefix rpc method */
|
||||||
|
export interface Bech32PrefixRequestSDKType {
|
||||||
|
}
|
||||||
|
/** Bech32PrefixResponse is the response type for Bech32Prefix rpc method */
|
||||||
|
export interface Bech32PrefixResponse {
|
||||||
|
bech32Prefix: string;
|
||||||
|
}
|
||||||
|
/** Bech32PrefixResponse is the response type for Bech32Prefix rpc method */
|
||||||
|
export interface Bech32PrefixResponseSDKType {
|
||||||
|
bech32_prefix: string;
|
||||||
|
}
|
||||||
|
/** AddressBytesToStringRequest is the request type for AddressString rpc method */
|
||||||
|
export interface AddressBytesToStringRequest {
|
||||||
|
addressBytes: Uint8Array;
|
||||||
|
}
|
||||||
|
/** AddressBytesToStringRequest is the request type for AddressString rpc method */
|
||||||
|
export interface AddressBytesToStringRequestSDKType {
|
||||||
|
address_bytes: Uint8Array;
|
||||||
|
}
|
||||||
|
/** AddressBytesToStringResponse is the response type for AddressString rpc method */
|
||||||
|
export interface AddressBytesToStringResponse {
|
||||||
|
addressString: string;
|
||||||
|
}
|
||||||
|
/** AddressBytesToStringResponse is the response type for AddressString rpc method */
|
||||||
|
export interface AddressBytesToStringResponseSDKType {
|
||||||
|
address_string: string;
|
||||||
|
}
|
||||||
|
/** AddressStringToBytesRequest is the request type for AccountBytes rpc method */
|
||||||
|
export interface AddressStringToBytesRequest {
|
||||||
|
addressString: string;
|
||||||
|
}
|
||||||
|
/** AddressStringToBytesRequest is the request type for AccountBytes rpc method */
|
||||||
|
export interface AddressStringToBytesRequestSDKType {
|
||||||
|
address_string: string;
|
||||||
|
}
|
||||||
|
/** AddressStringToBytesResponse is the response type for AddressBytes rpc method */
|
||||||
|
export interface AddressStringToBytesResponse {
|
||||||
|
addressBytes: Uint8Array;
|
||||||
|
}
|
||||||
|
/** AddressStringToBytesResponse is the response type for AddressBytes rpc method */
|
||||||
|
export interface AddressStringToBytesResponseSDKType {
|
||||||
|
address_bytes: Uint8Array;
|
||||||
|
}
|
||||||
|
export declare const QueryAccountsRequest: {
|
||||||
|
encode(message: QueryAccountsRequest, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryAccountsRequest;
|
||||||
|
fromPartial(object: DeepPartial<QueryAccountsRequest>): QueryAccountsRequest;
|
||||||
|
};
|
||||||
|
export declare const QueryAccountsResponse: {
|
||||||
|
encode(message: QueryAccountsResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryAccountsResponse;
|
||||||
|
fromPartial(object: DeepPartial<QueryAccountsResponse>): QueryAccountsResponse;
|
||||||
|
};
|
||||||
|
export declare const QueryAccountRequest: {
|
||||||
|
encode(message: QueryAccountRequest, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryAccountRequest;
|
||||||
|
fromPartial(object: DeepPartial<QueryAccountRequest>): QueryAccountRequest;
|
||||||
|
};
|
||||||
|
export declare const QueryModuleAccountsRequest: {
|
||||||
|
encode(_: QueryModuleAccountsRequest, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryModuleAccountsRequest;
|
||||||
|
fromPartial(_: DeepPartial<QueryModuleAccountsRequest>): QueryModuleAccountsRequest;
|
||||||
|
};
|
||||||
|
export declare const QueryParamsResponse: {
|
||||||
|
encode(message: QueryParamsResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsResponse;
|
||||||
|
fromPartial(object: DeepPartial<QueryParamsResponse>): QueryParamsResponse;
|
||||||
|
};
|
||||||
|
export declare const QueryAccountResponse: {
|
||||||
|
encode(message: QueryAccountResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryAccountResponse;
|
||||||
|
fromPartial(object: DeepPartial<QueryAccountResponse>): QueryAccountResponse;
|
||||||
|
};
|
||||||
|
export declare const QueryParamsRequest: {
|
||||||
|
encode(_: QueryParamsRequest, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsRequest;
|
||||||
|
fromPartial(_: DeepPartial<QueryParamsRequest>): QueryParamsRequest;
|
||||||
|
};
|
||||||
|
export declare const QueryModuleAccountsResponse: {
|
||||||
|
encode(message: QueryModuleAccountsResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryModuleAccountsResponse;
|
||||||
|
fromPartial(object: DeepPartial<QueryModuleAccountsResponse>): QueryModuleAccountsResponse;
|
||||||
|
};
|
||||||
|
export declare const Bech32PrefixRequest: {
|
||||||
|
encode(_: Bech32PrefixRequest, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): Bech32PrefixRequest;
|
||||||
|
fromPartial(_: DeepPartial<Bech32PrefixRequest>): Bech32PrefixRequest;
|
||||||
|
};
|
||||||
|
export declare const Bech32PrefixResponse: {
|
||||||
|
encode(message: Bech32PrefixResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): Bech32PrefixResponse;
|
||||||
|
fromPartial(object: DeepPartial<Bech32PrefixResponse>): Bech32PrefixResponse;
|
||||||
|
};
|
||||||
|
export declare const AddressBytesToStringRequest: {
|
||||||
|
encode(message: AddressBytesToStringRequest, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): AddressBytesToStringRequest;
|
||||||
|
fromPartial(object: DeepPartial<AddressBytesToStringRequest>): AddressBytesToStringRequest;
|
||||||
|
};
|
||||||
|
export declare const AddressBytesToStringResponse: {
|
||||||
|
encode(message: AddressBytesToStringResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): AddressBytesToStringResponse;
|
||||||
|
fromPartial(object: DeepPartial<AddressBytesToStringResponse>): AddressBytesToStringResponse;
|
||||||
|
};
|
||||||
|
export declare const AddressStringToBytesRequest: {
|
||||||
|
encode(message: AddressStringToBytesRequest, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): AddressStringToBytesRequest;
|
||||||
|
fromPartial(object: DeepPartial<AddressStringToBytesRequest>): AddressStringToBytesRequest;
|
||||||
|
};
|
||||||
|
export declare const AddressStringToBytesResponse: {
|
||||||
|
encode(message: AddressStringToBytesResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): AddressStringToBytesResponse;
|
||||||
|
fromPartial(object: DeepPartial<AddressStringToBytesResponse>): AddressStringToBytesResponse;
|
||||||
|
};
|
15
packages/codegen/dist/cosmos/auth/v1beta1/query.lcd.d.ts
vendored
Normal file
15
packages/codegen/dist/cosmos/auth/v1beta1/query.lcd.d.ts
vendored
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
import { LCDClient } from "@osmonauts/lcd";
|
||||||
|
import { QueryAccountsRequest, QueryAccountsResponseSDKType, QueryAccountRequest, QueryAccountResponseSDKType, QueryParamsRequest, QueryParamsResponseSDKType, QueryModuleAccountsRequest, QueryModuleAccountsResponseSDKType, Bech32PrefixRequest, Bech32PrefixResponseSDKType, AddressBytesToStringRequest, AddressBytesToStringResponseSDKType, AddressStringToBytesRequest, AddressStringToBytesResponseSDKType } from "./query";
|
||||||
|
export declare class LCDQueryClient {
|
||||||
|
req: LCDClient;
|
||||||
|
constructor({ requestClient }: {
|
||||||
|
requestClient: LCDClient;
|
||||||
|
});
|
||||||
|
accounts(params?: QueryAccountsRequest): Promise<QueryAccountsResponseSDKType>;
|
||||||
|
account(params: QueryAccountRequest): Promise<QueryAccountResponseSDKType>;
|
||||||
|
params(_params?: QueryParamsRequest): Promise<QueryParamsResponseSDKType>;
|
||||||
|
moduleAccounts(_params?: QueryModuleAccountsRequest): Promise<QueryModuleAccountsResponseSDKType>;
|
||||||
|
bech32Prefix(_params?: Bech32PrefixRequest): Promise<Bech32PrefixResponseSDKType>;
|
||||||
|
addressBytesToString(params: AddressBytesToStringRequest): Promise<AddressBytesToStringResponseSDKType>;
|
||||||
|
addressStringToBytes(params: AddressStringToBytesRequest): Promise<AddressStringToBytesResponseSDKType>;
|
||||||
|
}
|
44
packages/codegen/dist/cosmos/auth/v1beta1/query.rpc.Query.d.ts
vendored
Normal file
44
packages/codegen/dist/cosmos/auth/v1beta1/query.rpc.Query.d.ts
vendored
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
import { Rpc } from "../../../helpers";
|
||||||
|
import { QueryClient } from "@cosmjs/stargate";
|
||||||
|
import { QueryAccountsRequest, QueryAccountsResponse, QueryAccountRequest, QueryAccountResponse, QueryParamsRequest, QueryParamsResponse, QueryModuleAccountsRequest, QueryModuleAccountsResponse, Bech32PrefixRequest, Bech32PrefixResponse, AddressBytesToStringRequest, AddressBytesToStringResponse, AddressStringToBytesRequest, AddressStringToBytesResponse } from "./query";
|
||||||
|
/** Query defines the gRPC querier service. */
|
||||||
|
export interface Query {
|
||||||
|
/**
|
||||||
|
* Accounts returns all the existing accounts
|
||||||
|
*
|
||||||
|
* Since: cosmos-sdk 0.43
|
||||||
|
*/
|
||||||
|
accounts(request?: QueryAccountsRequest): Promise<QueryAccountsResponse>;
|
||||||
|
/** Account returns account details based on address. */
|
||||||
|
account(request: QueryAccountRequest): Promise<QueryAccountResponse>;
|
||||||
|
/** Params queries all parameters. */
|
||||||
|
params(request?: QueryParamsRequest): Promise<QueryParamsResponse>;
|
||||||
|
/** ModuleAccounts returns all the existing module accounts. */
|
||||||
|
moduleAccounts(request?: QueryModuleAccountsRequest): Promise<QueryModuleAccountsResponse>;
|
||||||
|
/** Bech32 queries bech32Prefix */
|
||||||
|
bech32Prefix(request?: Bech32PrefixRequest): Promise<Bech32PrefixResponse>;
|
||||||
|
/** AddressBytesToString converts Account Address bytes to string */
|
||||||
|
addressBytesToString(request: AddressBytesToStringRequest): Promise<AddressBytesToStringResponse>;
|
||||||
|
/** AddressStringToBytes converts Address string to bytes */
|
||||||
|
addressStringToBytes(request: AddressStringToBytesRequest): Promise<AddressStringToBytesResponse>;
|
||||||
|
}
|
||||||
|
export declare class QueryClientImpl implements Query {
|
||||||
|
private readonly rpc;
|
||||||
|
constructor(rpc: Rpc);
|
||||||
|
accounts(request?: QueryAccountsRequest): Promise<QueryAccountsResponse>;
|
||||||
|
account(request: QueryAccountRequest): Promise<QueryAccountResponse>;
|
||||||
|
params(request?: QueryParamsRequest): Promise<QueryParamsResponse>;
|
||||||
|
moduleAccounts(request?: QueryModuleAccountsRequest): Promise<QueryModuleAccountsResponse>;
|
||||||
|
bech32Prefix(request?: Bech32PrefixRequest): Promise<Bech32PrefixResponse>;
|
||||||
|
addressBytesToString(request: AddressBytesToStringRequest): Promise<AddressBytesToStringResponse>;
|
||||||
|
addressStringToBytes(request: AddressStringToBytesRequest): Promise<AddressStringToBytesResponse>;
|
||||||
|
}
|
||||||
|
export declare const createRpcQueryExtension: (base: QueryClient) => {
|
||||||
|
accounts(request?: QueryAccountsRequest): Promise<QueryAccountsResponse>;
|
||||||
|
account(request: QueryAccountRequest): Promise<QueryAccountResponse>;
|
||||||
|
params(request?: QueryParamsRequest): Promise<QueryParamsResponse>;
|
||||||
|
moduleAccounts(request?: QueryModuleAccountsRequest): Promise<QueryModuleAccountsResponse>;
|
||||||
|
bech32Prefix(request?: Bech32PrefixRequest): Promise<Bech32PrefixResponse>;
|
||||||
|
addressBytesToString(request: AddressBytesToStringRequest): Promise<AddressBytesToStringResponse>;
|
||||||
|
addressStringToBytes(request: AddressStringToBytesRequest): Promise<AddressStringToBytesResponse>;
|
||||||
|
};
|
88
packages/codegen/dist/cosmos/authz/v1beta1/authz.d.ts
vendored
Normal file
88
packages/codegen/dist/cosmos/authz/v1beta1/authz.d.ts
vendored
Normal file
@ -0,0 +1,88 @@
|
|||||||
|
import { Any, AnySDKType } from "../../../google/protobuf/any";
|
||||||
|
import * as _m0 from "protobufjs/minimal";
|
||||||
|
import { DeepPartial } from "../../../helpers";
|
||||||
|
/**
|
||||||
|
* GenericAuthorization gives the grantee unrestricted permissions to execute
|
||||||
|
* the provided method on behalf of the granter's account.
|
||||||
|
*/
|
||||||
|
export interface GenericAuthorization {
|
||||||
|
/** Msg, identified by it's type URL, to grant unrestricted permissions to execute */
|
||||||
|
msg: string;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* GenericAuthorization gives the grantee unrestricted permissions to execute
|
||||||
|
* the provided method on behalf of the granter's account.
|
||||||
|
*/
|
||||||
|
export interface GenericAuthorizationSDKType {
|
||||||
|
msg: string;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Grant gives permissions to execute
|
||||||
|
* the provide method with expiration time.
|
||||||
|
*/
|
||||||
|
export interface Grant {
|
||||||
|
authorization?: Any;
|
||||||
|
/**
|
||||||
|
* time when the grant will expire and will be pruned. If null, then the grant
|
||||||
|
* doesn't have a time expiration (other conditions in `authorization`
|
||||||
|
* may apply to invalidate the grant)
|
||||||
|
*/
|
||||||
|
expiration?: Date;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Grant gives permissions to execute
|
||||||
|
* the provide method with expiration time.
|
||||||
|
*/
|
||||||
|
export interface GrantSDKType {
|
||||||
|
authorization?: AnySDKType;
|
||||||
|
expiration?: Date;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* GrantAuthorization extends a grant with both the addresses of the grantee and granter.
|
||||||
|
* It is used in genesis.proto and query.proto
|
||||||
|
*/
|
||||||
|
export interface GrantAuthorization {
|
||||||
|
granter: string;
|
||||||
|
grantee: string;
|
||||||
|
authorization?: Any;
|
||||||
|
expiration?: Date;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* GrantAuthorization extends a grant with both the addresses of the grantee and granter.
|
||||||
|
* It is used in genesis.proto and query.proto
|
||||||
|
*/
|
||||||
|
export interface GrantAuthorizationSDKType {
|
||||||
|
granter: string;
|
||||||
|
grantee: string;
|
||||||
|
authorization?: AnySDKType;
|
||||||
|
expiration?: Date;
|
||||||
|
}
|
||||||
|
/** GrantQueueItem contains the list of TypeURL of a sdk.Msg. */
|
||||||
|
export interface GrantQueueItem {
|
||||||
|
/** msg_type_urls contains the list of TypeURL of a sdk.Msg. */
|
||||||
|
msgTypeUrls: string[];
|
||||||
|
}
|
||||||
|
/** GrantQueueItem contains the list of TypeURL of a sdk.Msg. */
|
||||||
|
export interface GrantQueueItemSDKType {
|
||||||
|
msg_type_urls: string[];
|
||||||
|
}
|
||||||
|
export declare const GenericAuthorization: {
|
||||||
|
encode(message: GenericAuthorization, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): GenericAuthorization;
|
||||||
|
fromPartial(object: DeepPartial<GenericAuthorization>): GenericAuthorization;
|
||||||
|
};
|
||||||
|
export declare const Grant: {
|
||||||
|
encode(message: Grant, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): Grant;
|
||||||
|
fromPartial(object: DeepPartial<Grant>): Grant;
|
||||||
|
};
|
||||||
|
export declare const GrantAuthorization: {
|
||||||
|
encode(message: GrantAuthorization, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): GrantAuthorization;
|
||||||
|
fromPartial(object: DeepPartial<GrantAuthorization>): GrantAuthorization;
|
||||||
|
};
|
||||||
|
export declare const GrantQueueItem: {
|
||||||
|
encode(message: GrantQueueItem, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): GrantQueueItem;
|
||||||
|
fromPartial(object: DeepPartial<GrantQueueItem>): GrantQueueItem;
|
||||||
|
};
|
42
packages/codegen/dist/cosmos/authz/v1beta1/event.d.ts
vendored
Normal file
42
packages/codegen/dist/cosmos/authz/v1beta1/event.d.ts
vendored
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
import * as _m0 from "protobufjs/minimal";
|
||||||
|
import { DeepPartial } from "../../../helpers";
|
||||||
|
/** EventGrant is emitted on Msg/Grant */
|
||||||
|
export interface EventGrant {
|
||||||
|
/** Msg type URL for which an autorization is granted */
|
||||||
|
msgTypeUrl: string;
|
||||||
|
/** Granter account address */
|
||||||
|
granter: string;
|
||||||
|
/** Grantee account address */
|
||||||
|
grantee: string;
|
||||||
|
}
|
||||||
|
/** EventGrant is emitted on Msg/Grant */
|
||||||
|
export interface EventGrantSDKType {
|
||||||
|
msg_type_url: string;
|
||||||
|
granter: string;
|
||||||
|
grantee: string;
|
||||||
|
}
|
||||||
|
/** EventRevoke is emitted on Msg/Revoke */
|
||||||
|
export interface EventRevoke {
|
||||||
|
/** Msg type URL for which an autorization is revoked */
|
||||||
|
msgTypeUrl: string;
|
||||||
|
/** Granter account address */
|
||||||
|
granter: string;
|
||||||
|
/** Grantee account address */
|
||||||
|
grantee: string;
|
||||||
|
}
|
||||||
|
/** EventRevoke is emitted on Msg/Revoke */
|
||||||
|
export interface EventRevokeSDKType {
|
||||||
|
msg_type_url: string;
|
||||||
|
granter: string;
|
||||||
|
grantee: string;
|
||||||
|
}
|
||||||
|
export declare const EventGrant: {
|
||||||
|
encode(message: EventGrant, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): EventGrant;
|
||||||
|
fromPartial(object: DeepPartial<EventGrant>): EventGrant;
|
||||||
|
};
|
||||||
|
export declare const EventRevoke: {
|
||||||
|
encode(message: EventRevoke, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): EventRevoke;
|
||||||
|
fromPartial(object: DeepPartial<EventRevoke>): EventRevoke;
|
||||||
|
};
|
16
packages/codegen/dist/cosmos/authz/v1beta1/genesis.d.ts
vendored
Normal file
16
packages/codegen/dist/cosmos/authz/v1beta1/genesis.d.ts
vendored
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
import { GrantAuthorization, GrantAuthorizationSDKType } from "./authz";
|
||||||
|
import * as _m0 from "protobufjs/minimal";
|
||||||
|
import { DeepPartial } from "../../../helpers";
|
||||||
|
/** GenesisState defines the authz module's genesis state. */
|
||||||
|
export interface GenesisState {
|
||||||
|
authorization: GrantAuthorization[];
|
||||||
|
}
|
||||||
|
/** GenesisState defines the authz module's genesis state. */
|
||||||
|
export interface GenesisStateSDKType {
|
||||||
|
authorization: GrantAuthorizationSDKType[];
|
||||||
|
}
|
||||||
|
export declare const GenesisState: {
|
||||||
|
encode(message: GenesisState, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): GenesisState;
|
||||||
|
fromPartial(object: DeepPartial<GenesisState>): GenesisState;
|
||||||
|
};
|
108
packages/codegen/dist/cosmos/authz/v1beta1/query.d.ts
vendored
Normal file
108
packages/codegen/dist/cosmos/authz/v1beta1/query.d.ts
vendored
Normal file
@ -0,0 +1,108 @@
|
|||||||
|
import { PageRequest, PageRequestSDKType, PageResponse, PageResponseSDKType } from "../../base/query/v1beta1/pagination";
|
||||||
|
import { Grant, GrantSDKType, GrantAuthorization, GrantAuthorizationSDKType } from "./authz";
|
||||||
|
import * as _m0 from "protobufjs/minimal";
|
||||||
|
import { DeepPartial } from "../../../helpers";
|
||||||
|
/** QueryGrantsRequest is the request type for the Query/Grants RPC method. */
|
||||||
|
export interface QueryGrantsRequest {
|
||||||
|
granter: string;
|
||||||
|
grantee: string;
|
||||||
|
/** Optional, msg_type_url, when set, will query only grants matching given msg type. */
|
||||||
|
msgTypeUrl: string;
|
||||||
|
/** pagination defines an pagination for the request. */
|
||||||
|
pagination?: PageRequest;
|
||||||
|
}
|
||||||
|
/** QueryGrantsRequest is the request type for the Query/Grants RPC method. */
|
||||||
|
export interface QueryGrantsRequestSDKType {
|
||||||
|
granter: string;
|
||||||
|
grantee: string;
|
||||||
|
msg_type_url: string;
|
||||||
|
pagination?: PageRequestSDKType;
|
||||||
|
}
|
||||||
|
/** QueryGrantsResponse is the response type for the Query/Authorizations RPC method. */
|
||||||
|
export interface QueryGrantsResponse {
|
||||||
|
/** authorizations is a list of grants granted for grantee by granter. */
|
||||||
|
grants: Grant[];
|
||||||
|
/** pagination defines an pagination for the response. */
|
||||||
|
pagination?: PageResponse;
|
||||||
|
}
|
||||||
|
/** QueryGrantsResponse is the response type for the Query/Authorizations RPC method. */
|
||||||
|
export interface QueryGrantsResponseSDKType {
|
||||||
|
grants: GrantSDKType[];
|
||||||
|
pagination?: PageResponseSDKType;
|
||||||
|
}
|
||||||
|
/** QueryGranterGrantsRequest is the request type for the Query/GranterGrants RPC method. */
|
||||||
|
export interface QueryGranterGrantsRequest {
|
||||||
|
granter: string;
|
||||||
|
/** pagination defines an pagination for the request. */
|
||||||
|
pagination?: PageRequest;
|
||||||
|
}
|
||||||
|
/** QueryGranterGrantsRequest is the request type for the Query/GranterGrants RPC method. */
|
||||||
|
export interface QueryGranterGrantsRequestSDKType {
|
||||||
|
granter: string;
|
||||||
|
pagination?: PageRequestSDKType;
|
||||||
|
}
|
||||||
|
/** QueryGranterGrantsResponse is the response type for the Query/GranterGrants RPC method. */
|
||||||
|
export interface QueryGranterGrantsResponse {
|
||||||
|
/** grants is a list of grants granted by the granter. */
|
||||||
|
grants: GrantAuthorization[];
|
||||||
|
/** pagination defines an pagination for the response. */
|
||||||
|
pagination?: PageResponse;
|
||||||
|
}
|
||||||
|
/** QueryGranterGrantsResponse is the response type for the Query/GranterGrants RPC method. */
|
||||||
|
export interface QueryGranterGrantsResponseSDKType {
|
||||||
|
grants: GrantAuthorizationSDKType[];
|
||||||
|
pagination?: PageResponseSDKType;
|
||||||
|
}
|
||||||
|
/** QueryGranteeGrantsRequest is the request type for the Query/IssuedGrants RPC method. */
|
||||||
|
export interface QueryGranteeGrantsRequest {
|
||||||
|
grantee: string;
|
||||||
|
/** pagination defines an pagination for the request. */
|
||||||
|
pagination?: PageRequest;
|
||||||
|
}
|
||||||
|
/** QueryGranteeGrantsRequest is the request type for the Query/IssuedGrants RPC method. */
|
||||||
|
export interface QueryGranteeGrantsRequestSDKType {
|
||||||
|
grantee: string;
|
||||||
|
pagination?: PageRequestSDKType;
|
||||||
|
}
|
||||||
|
/** QueryGranteeGrantsResponse is the response type for the Query/GranteeGrants RPC method. */
|
||||||
|
export interface QueryGranteeGrantsResponse {
|
||||||
|
/** grants is a list of grants granted to the grantee. */
|
||||||
|
grants: GrantAuthorization[];
|
||||||
|
/** pagination defines an pagination for the response. */
|
||||||
|
pagination?: PageResponse;
|
||||||
|
}
|
||||||
|
/** QueryGranteeGrantsResponse is the response type for the Query/GranteeGrants RPC method. */
|
||||||
|
export interface QueryGranteeGrantsResponseSDKType {
|
||||||
|
grants: GrantAuthorizationSDKType[];
|
||||||
|
pagination?: PageResponseSDKType;
|
||||||
|
}
|
||||||
|
export declare const QueryGrantsRequest: {
|
||||||
|
encode(message: QueryGrantsRequest, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryGrantsRequest;
|
||||||
|
fromPartial(object: DeepPartial<QueryGrantsRequest>): QueryGrantsRequest;
|
||||||
|
};
|
||||||
|
export declare const QueryGrantsResponse: {
|
||||||
|
encode(message: QueryGrantsResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryGrantsResponse;
|
||||||
|
fromPartial(object: DeepPartial<QueryGrantsResponse>): QueryGrantsResponse;
|
||||||
|
};
|
||||||
|
export declare const QueryGranterGrantsRequest: {
|
||||||
|
encode(message: QueryGranterGrantsRequest, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryGranterGrantsRequest;
|
||||||
|
fromPartial(object: DeepPartial<QueryGranterGrantsRequest>): QueryGranterGrantsRequest;
|
||||||
|
};
|
||||||
|
export declare const QueryGranterGrantsResponse: {
|
||||||
|
encode(message: QueryGranterGrantsResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryGranterGrantsResponse;
|
||||||
|
fromPartial(object: DeepPartial<QueryGranterGrantsResponse>): QueryGranterGrantsResponse;
|
||||||
|
};
|
||||||
|
export declare const QueryGranteeGrantsRequest: {
|
||||||
|
encode(message: QueryGranteeGrantsRequest, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryGranteeGrantsRequest;
|
||||||
|
fromPartial(object: DeepPartial<QueryGranteeGrantsRequest>): QueryGranteeGrantsRequest;
|
||||||
|
};
|
||||||
|
export declare const QueryGranteeGrantsResponse: {
|
||||||
|
encode(message: QueryGranteeGrantsResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryGranteeGrantsResponse;
|
||||||
|
fromPartial(object: DeepPartial<QueryGranteeGrantsResponse>): QueryGranteeGrantsResponse;
|
||||||
|
};
|
11
packages/codegen/dist/cosmos/authz/v1beta1/query.lcd.d.ts
vendored
Normal file
11
packages/codegen/dist/cosmos/authz/v1beta1/query.lcd.d.ts
vendored
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
import { LCDClient } from "@osmonauts/lcd";
|
||||||
|
import { QueryGrantsRequest, QueryGrantsResponseSDKType, QueryGranterGrantsRequest, QueryGranterGrantsResponseSDKType, QueryGranteeGrantsRequest, QueryGranteeGrantsResponseSDKType } from "./query";
|
||||||
|
export declare class LCDQueryClient {
|
||||||
|
req: LCDClient;
|
||||||
|
constructor({ requestClient }: {
|
||||||
|
requestClient: LCDClient;
|
||||||
|
});
|
||||||
|
grants(params: QueryGrantsRequest): Promise<QueryGrantsResponseSDKType>;
|
||||||
|
granterGrants(params: QueryGranterGrantsRequest): Promise<QueryGranterGrantsResponseSDKType>;
|
||||||
|
granteeGrants(params: QueryGranteeGrantsRequest): Promise<QueryGranteeGrantsResponseSDKType>;
|
||||||
|
}
|
32
packages/codegen/dist/cosmos/authz/v1beta1/query.rpc.Query.d.ts
vendored
Normal file
32
packages/codegen/dist/cosmos/authz/v1beta1/query.rpc.Query.d.ts
vendored
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
import { Rpc } from "../../../helpers";
|
||||||
|
import { QueryClient } from "@cosmjs/stargate";
|
||||||
|
import { QueryGrantsRequest, QueryGrantsResponse, QueryGranterGrantsRequest, QueryGranterGrantsResponse, QueryGranteeGrantsRequest, QueryGranteeGrantsResponse } from "./query";
|
||||||
|
/** Query defines the gRPC querier service. */
|
||||||
|
export interface Query {
|
||||||
|
/** Returns list of `Authorization`, granted to the grantee by the granter. */
|
||||||
|
grants(request: QueryGrantsRequest): Promise<QueryGrantsResponse>;
|
||||||
|
/**
|
||||||
|
* GranterGrants returns list of `GrantAuthorization`, granted by granter.
|
||||||
|
*
|
||||||
|
* Since: cosmos-sdk 0.46
|
||||||
|
*/
|
||||||
|
granterGrants(request: QueryGranterGrantsRequest): Promise<QueryGranterGrantsResponse>;
|
||||||
|
/**
|
||||||
|
* GranteeGrants returns a list of `GrantAuthorization` by grantee.
|
||||||
|
*
|
||||||
|
* Since: cosmos-sdk 0.46
|
||||||
|
*/
|
||||||
|
granteeGrants(request: QueryGranteeGrantsRequest): Promise<QueryGranteeGrantsResponse>;
|
||||||
|
}
|
||||||
|
export declare class QueryClientImpl implements Query {
|
||||||
|
private readonly rpc;
|
||||||
|
constructor(rpc: Rpc);
|
||||||
|
grants(request: QueryGrantsRequest): Promise<QueryGrantsResponse>;
|
||||||
|
granterGrants(request: QueryGranterGrantsRequest): Promise<QueryGranterGrantsResponse>;
|
||||||
|
granteeGrants(request: QueryGranteeGrantsRequest): Promise<QueryGranteeGrantsResponse>;
|
||||||
|
}
|
||||||
|
export declare const createRpcQueryExtension: (base: QueryClient) => {
|
||||||
|
grants(request: QueryGrantsRequest): Promise<QueryGrantsResponse>;
|
||||||
|
granterGrants(request: QueryGranterGrantsRequest): Promise<QueryGranterGrantsResponse>;
|
||||||
|
granteeGrants(request: QueryGranteeGrantsRequest): Promise<QueryGranteeGrantsResponse>;
|
||||||
|
};
|
113
packages/codegen/dist/cosmos/authz/v1beta1/tx.d.ts
vendored
Normal file
113
packages/codegen/dist/cosmos/authz/v1beta1/tx.d.ts
vendored
Normal file
@ -0,0 +1,113 @@
|
|||||||
|
import { Grant, GrantSDKType } from "./authz";
|
||||||
|
import { Any, AnySDKType } from "../../../google/protobuf/any";
|
||||||
|
import * as _m0 from "protobufjs/minimal";
|
||||||
|
import { DeepPartial } from "../../../helpers";
|
||||||
|
/**
|
||||||
|
* MsgGrant is a request type for Grant method. It declares authorization to the grantee
|
||||||
|
* on behalf of the granter with the provided expiration time.
|
||||||
|
*/
|
||||||
|
export interface MsgGrant {
|
||||||
|
granter: string;
|
||||||
|
grantee: string;
|
||||||
|
grant?: Grant;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* MsgGrant is a request type for Grant method. It declares authorization to the grantee
|
||||||
|
* on behalf of the granter with the provided expiration time.
|
||||||
|
*/
|
||||||
|
export interface MsgGrantSDKType {
|
||||||
|
granter: string;
|
||||||
|
grantee: string;
|
||||||
|
grant?: GrantSDKType;
|
||||||
|
}
|
||||||
|
/** MsgExecResponse defines the Msg/MsgExecResponse response type. */
|
||||||
|
export interface MsgExecResponse {
|
||||||
|
results: Uint8Array[];
|
||||||
|
}
|
||||||
|
/** MsgExecResponse defines the Msg/MsgExecResponse response type. */
|
||||||
|
export interface MsgExecResponseSDKType {
|
||||||
|
results: Uint8Array[];
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* MsgExec attempts to execute the provided messages using
|
||||||
|
* authorizations granted to the grantee. Each message should have only
|
||||||
|
* one signer corresponding to the granter of the authorization.
|
||||||
|
*/
|
||||||
|
export interface MsgExec {
|
||||||
|
grantee: string;
|
||||||
|
/**
|
||||||
|
* Authorization Msg requests to execute. Each msg must implement Authorization interface
|
||||||
|
* The x/authz will try to find a grant matching (msg.signers[0], grantee, MsgTypeURL(msg))
|
||||||
|
* triple and validate it.
|
||||||
|
*/
|
||||||
|
msgs: Any[];
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* MsgExec attempts to execute the provided messages using
|
||||||
|
* authorizations granted to the grantee. Each message should have only
|
||||||
|
* one signer corresponding to the granter of the authorization.
|
||||||
|
*/
|
||||||
|
export interface MsgExecSDKType {
|
||||||
|
grantee: string;
|
||||||
|
msgs: AnySDKType[];
|
||||||
|
}
|
||||||
|
/** MsgGrantResponse defines the Msg/MsgGrant response type. */
|
||||||
|
export interface MsgGrantResponse {
|
||||||
|
}
|
||||||
|
/** MsgGrantResponse defines the Msg/MsgGrant response type. */
|
||||||
|
export interface MsgGrantResponseSDKType {
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* MsgRevoke revokes any authorization with the provided sdk.Msg type on the
|
||||||
|
* granter's account with that has been granted to the grantee.
|
||||||
|
*/
|
||||||
|
export interface MsgRevoke {
|
||||||
|
granter: string;
|
||||||
|
grantee: string;
|
||||||
|
msgTypeUrl: string;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* MsgRevoke revokes any authorization with the provided sdk.Msg type on the
|
||||||
|
* granter's account with that has been granted to the grantee.
|
||||||
|
*/
|
||||||
|
export interface MsgRevokeSDKType {
|
||||||
|
granter: string;
|
||||||
|
grantee: string;
|
||||||
|
msg_type_url: string;
|
||||||
|
}
|
||||||
|
/** MsgRevokeResponse defines the Msg/MsgRevokeResponse response type. */
|
||||||
|
export interface MsgRevokeResponse {
|
||||||
|
}
|
||||||
|
/** MsgRevokeResponse defines the Msg/MsgRevokeResponse response type. */
|
||||||
|
export interface MsgRevokeResponseSDKType {
|
||||||
|
}
|
||||||
|
export declare const MsgGrant: {
|
||||||
|
encode(message: MsgGrant, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): MsgGrant;
|
||||||
|
fromPartial(object: DeepPartial<MsgGrant>): MsgGrant;
|
||||||
|
};
|
||||||
|
export declare const MsgExecResponse: {
|
||||||
|
encode(message: MsgExecResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): MsgExecResponse;
|
||||||
|
fromPartial(object: DeepPartial<MsgExecResponse>): MsgExecResponse;
|
||||||
|
};
|
||||||
|
export declare const MsgExec: {
|
||||||
|
encode(message: MsgExec, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): MsgExec;
|
||||||
|
fromPartial(object: DeepPartial<MsgExec>): MsgExec;
|
||||||
|
};
|
||||||
|
export declare const MsgGrantResponse: {
|
||||||
|
encode(_: MsgGrantResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): MsgGrantResponse;
|
||||||
|
fromPartial(_: DeepPartial<MsgGrantResponse>): MsgGrantResponse;
|
||||||
|
};
|
||||||
|
export declare const MsgRevoke: {
|
||||||
|
encode(message: MsgRevoke, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): MsgRevoke;
|
||||||
|
fromPartial(object: DeepPartial<MsgRevoke>): MsgRevoke;
|
||||||
|
};
|
||||||
|
export declare const MsgRevokeResponse: {
|
||||||
|
encode(_: MsgRevokeResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): MsgRevokeResponse;
|
||||||
|
fromPartial(_: DeepPartial<MsgRevokeResponse>): MsgRevokeResponse;
|
||||||
|
};
|
30
packages/codegen/dist/cosmos/authz/v1beta1/tx.rpc.msg.d.ts
vendored
Normal file
30
packages/codegen/dist/cosmos/authz/v1beta1/tx.rpc.msg.d.ts
vendored
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
import { Rpc } from "../../../helpers";
|
||||||
|
import { MsgGrant, MsgGrantResponse, MsgExec, MsgExecResponse, MsgRevoke, MsgRevokeResponse } from "./tx";
|
||||||
|
/** Msg defines the authz Msg service. */
|
||||||
|
export interface Msg {
|
||||||
|
/**
|
||||||
|
* Grant grants the provided authorization to the grantee on the granter's
|
||||||
|
* account with the provided expiration time. If there is already a grant
|
||||||
|
* for the given (granter, grantee, Authorization) triple, then the grant
|
||||||
|
* will be overwritten.
|
||||||
|
*/
|
||||||
|
grant(request: MsgGrant): Promise<MsgGrantResponse>;
|
||||||
|
/**
|
||||||
|
* Exec attempts to execute the provided messages using
|
||||||
|
* authorizations granted to the grantee. Each message should have only
|
||||||
|
* one signer corresponding to the granter of the authorization.
|
||||||
|
*/
|
||||||
|
exec(request: MsgExec): Promise<MsgExecResponse>;
|
||||||
|
/**
|
||||||
|
* Revoke revokes any authorization corresponding to the provided method name on the
|
||||||
|
* granter's account that has been granted to the grantee.
|
||||||
|
*/
|
||||||
|
revoke(request: MsgRevoke): Promise<MsgRevokeResponse>;
|
||||||
|
}
|
||||||
|
export declare class MsgClientImpl implements Msg {
|
||||||
|
private readonly rpc;
|
||||||
|
constructor(rpc: Rpc);
|
||||||
|
grant(request: MsgGrant): Promise<MsgGrantResponse>;
|
||||||
|
exec(request: MsgExec): Promise<MsgExecResponse>;
|
||||||
|
revoke(request: MsgRevoke): Promise<MsgRevokeResponse>;
|
||||||
|
}
|
26
packages/codegen/dist/cosmos/bank/v1beta1/authz.d.ts
vendored
Normal file
26
packages/codegen/dist/cosmos/bank/v1beta1/authz.d.ts
vendored
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
import { Coin, CoinSDKType } from "../../base/v1beta1/coin";
|
||||||
|
import * as _m0 from "protobufjs/minimal";
|
||||||
|
import { DeepPartial } from "../../../helpers";
|
||||||
|
/**
|
||||||
|
* SendAuthorization allows the grantee to spend up to spend_limit coins from
|
||||||
|
* the granter's account.
|
||||||
|
*
|
||||||
|
* Since: cosmos-sdk 0.43
|
||||||
|
*/
|
||||||
|
export interface SendAuthorization {
|
||||||
|
spendLimit: Coin[];
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* SendAuthorization allows the grantee to spend up to spend_limit coins from
|
||||||
|
* the granter's account.
|
||||||
|
*
|
||||||
|
* Since: cosmos-sdk 0.43
|
||||||
|
*/
|
||||||
|
export interface SendAuthorizationSDKType {
|
||||||
|
spend_limit: CoinSDKType[];
|
||||||
|
}
|
||||||
|
export declare const SendAuthorization: {
|
||||||
|
encode(message: SendAuthorization, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): SendAuthorization;
|
||||||
|
fromPartial(object: DeepPartial<SendAuthorization>): SendAuthorization;
|
||||||
|
};
|
185
packages/codegen/dist/cosmos/bank/v1beta1/bank.d.ts
vendored
Normal file
185
packages/codegen/dist/cosmos/bank/v1beta1/bank.d.ts
vendored
Normal file
@ -0,0 +1,185 @@
|
|||||||
|
import { Coin, CoinSDKType } from "../../base/v1beta1/coin";
|
||||||
|
import * as _m0 from "protobufjs/minimal";
|
||||||
|
import { DeepPartial } from "../../../helpers";
|
||||||
|
/** Params defines the parameters for the bank module. */
|
||||||
|
export interface Params {
|
||||||
|
sendEnabled: SendEnabled[];
|
||||||
|
defaultSendEnabled: boolean;
|
||||||
|
}
|
||||||
|
/** Params defines the parameters for the bank module. */
|
||||||
|
export interface ParamsSDKType {
|
||||||
|
send_enabled: SendEnabledSDKType[];
|
||||||
|
default_send_enabled: boolean;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* SendEnabled maps coin denom to a send_enabled status (whether a denom is
|
||||||
|
* sendable).
|
||||||
|
*/
|
||||||
|
export interface SendEnabled {
|
||||||
|
denom: string;
|
||||||
|
enabled: boolean;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* SendEnabled maps coin denom to a send_enabled status (whether a denom is
|
||||||
|
* sendable).
|
||||||
|
*/
|
||||||
|
export interface SendEnabledSDKType {
|
||||||
|
denom: string;
|
||||||
|
enabled: boolean;
|
||||||
|
}
|
||||||
|
/** Input models transaction input. */
|
||||||
|
export interface Input {
|
||||||
|
address: string;
|
||||||
|
coins: Coin[];
|
||||||
|
}
|
||||||
|
/** Input models transaction input. */
|
||||||
|
export interface InputSDKType {
|
||||||
|
address: string;
|
||||||
|
coins: CoinSDKType[];
|
||||||
|
}
|
||||||
|
/** Output models transaction outputs. */
|
||||||
|
export interface Output {
|
||||||
|
address: string;
|
||||||
|
coins: Coin[];
|
||||||
|
}
|
||||||
|
/** Output models transaction outputs. */
|
||||||
|
export interface OutputSDKType {
|
||||||
|
address: string;
|
||||||
|
coins: CoinSDKType[];
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Supply represents a struct that passively keeps track of the total supply
|
||||||
|
* amounts in the network.
|
||||||
|
* This message is deprecated now that supply is indexed by denom.
|
||||||
|
*/
|
||||||
|
/** @deprecated */
|
||||||
|
export interface Supply {
|
||||||
|
total: Coin[];
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Supply represents a struct that passively keeps track of the total supply
|
||||||
|
* amounts in the network.
|
||||||
|
* This message is deprecated now that supply is indexed by denom.
|
||||||
|
*/
|
||||||
|
/** @deprecated */
|
||||||
|
export interface SupplySDKType {
|
||||||
|
total: CoinSDKType[];
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* DenomUnit represents a struct that describes a given
|
||||||
|
* denomination unit of the basic token.
|
||||||
|
*/
|
||||||
|
export interface DenomUnit {
|
||||||
|
/** denom represents the string name of the given denom unit (e.g uatom). */
|
||||||
|
denom: string;
|
||||||
|
/**
|
||||||
|
* exponent represents power of 10 exponent that one must
|
||||||
|
* raise the base_denom to in order to equal the given DenomUnit's denom
|
||||||
|
* 1 denom = 10^exponent base_denom
|
||||||
|
* (e.g. with a base_denom of uatom, one can create a DenomUnit of 'atom' with
|
||||||
|
* exponent = 6, thus: 1 atom = 10^6 uatom).
|
||||||
|
*/
|
||||||
|
exponent: number;
|
||||||
|
/** aliases is a list of string aliases for the given denom */
|
||||||
|
aliases: string[];
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* DenomUnit represents a struct that describes a given
|
||||||
|
* denomination unit of the basic token.
|
||||||
|
*/
|
||||||
|
export interface DenomUnitSDKType {
|
||||||
|
denom: string;
|
||||||
|
exponent: number;
|
||||||
|
aliases: string[];
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Metadata represents a struct that describes
|
||||||
|
* a basic token.
|
||||||
|
*/
|
||||||
|
export interface Metadata {
|
||||||
|
description: string;
|
||||||
|
/** denom_units represents the list of DenomUnit's for a given coin */
|
||||||
|
denomUnits: DenomUnit[];
|
||||||
|
/** base represents the base denom (should be the DenomUnit with exponent = 0). */
|
||||||
|
base: string;
|
||||||
|
/**
|
||||||
|
* display indicates the suggested denom that should be
|
||||||
|
* displayed in clients.
|
||||||
|
*/
|
||||||
|
display: string;
|
||||||
|
/**
|
||||||
|
* name defines the name of the token (eg: Cosmos Atom)
|
||||||
|
*
|
||||||
|
* Since: cosmos-sdk 0.43
|
||||||
|
*/
|
||||||
|
name: string;
|
||||||
|
/**
|
||||||
|
* symbol is the token symbol usually shown on exchanges (eg: ATOM). This can
|
||||||
|
* be the same as the display.
|
||||||
|
*
|
||||||
|
* Since: cosmos-sdk 0.43
|
||||||
|
*/
|
||||||
|
symbol: string;
|
||||||
|
/**
|
||||||
|
* URI to a document (on or off-chain) that contains additional information. Optional.
|
||||||
|
*
|
||||||
|
* Since: cosmos-sdk 0.46
|
||||||
|
*/
|
||||||
|
uri: string;
|
||||||
|
/**
|
||||||
|
* URIHash is a sha256 hash of a document pointed by URI. It's used to verify that
|
||||||
|
* the document didn't change. Optional.
|
||||||
|
*
|
||||||
|
* Since: cosmos-sdk 0.46
|
||||||
|
*/
|
||||||
|
uriHash: string;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Metadata represents a struct that describes
|
||||||
|
* a basic token.
|
||||||
|
*/
|
||||||
|
export interface MetadataSDKType {
|
||||||
|
description: string;
|
||||||
|
denom_units: DenomUnitSDKType[];
|
||||||
|
base: string;
|
||||||
|
display: string;
|
||||||
|
name: string;
|
||||||
|
symbol: string;
|
||||||
|
uri: string;
|
||||||
|
uri_hash: string;
|
||||||
|
}
|
||||||
|
export declare const Params: {
|
||||||
|
encode(message: Params, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): Params;
|
||||||
|
fromPartial(object: DeepPartial<Params>): Params;
|
||||||
|
};
|
||||||
|
export declare const SendEnabled: {
|
||||||
|
encode(message: SendEnabled, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): SendEnabled;
|
||||||
|
fromPartial(object: DeepPartial<SendEnabled>): SendEnabled;
|
||||||
|
};
|
||||||
|
export declare const Input: {
|
||||||
|
encode(message: Input, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): Input;
|
||||||
|
fromPartial(object: DeepPartial<Input>): Input;
|
||||||
|
};
|
||||||
|
export declare const Output: {
|
||||||
|
encode(message: Output, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): Output;
|
||||||
|
fromPartial(object: DeepPartial<Output>): Output;
|
||||||
|
};
|
||||||
|
export declare const Supply: {
|
||||||
|
encode(message: Supply, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): Supply;
|
||||||
|
fromPartial(object: DeepPartial<Supply>): Supply;
|
||||||
|
};
|
||||||
|
export declare const DenomUnit: {
|
||||||
|
encode(message: DenomUnit, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): DenomUnit;
|
||||||
|
fromPartial(object: DeepPartial<DenomUnit>): DenomUnit;
|
||||||
|
};
|
||||||
|
export declare const Metadata: {
|
||||||
|
encode(message: Metadata, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): Metadata;
|
||||||
|
fromPartial(object: DeepPartial<Metadata>): Metadata;
|
||||||
|
};
|
53
packages/codegen/dist/cosmos/bank/v1beta1/genesis.d.ts
vendored
Normal file
53
packages/codegen/dist/cosmos/bank/v1beta1/genesis.d.ts
vendored
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
import { Params, ParamsSDKType, Metadata, MetadataSDKType } from "./bank";
|
||||||
|
import { Coin, CoinSDKType } from "../../base/v1beta1/coin";
|
||||||
|
import * as _m0 from "protobufjs/minimal";
|
||||||
|
import { DeepPartial } from "../../../helpers";
|
||||||
|
/** GenesisState defines the bank module's genesis state. */
|
||||||
|
export interface GenesisState {
|
||||||
|
/** params defines all the paramaters of the module. */
|
||||||
|
params?: Params;
|
||||||
|
/** balances is an array containing the balances of all the accounts. */
|
||||||
|
balances: Balance[];
|
||||||
|
/**
|
||||||
|
* supply represents the total supply. If it is left empty, then supply will be calculated based on the provided
|
||||||
|
* balances. Otherwise, it will be used to validate that the sum of the balances equals this amount.
|
||||||
|
*/
|
||||||
|
supply: Coin[];
|
||||||
|
/** denom_metadata defines the metadata of the differents coins. */
|
||||||
|
denomMetadata: Metadata[];
|
||||||
|
}
|
||||||
|
/** GenesisState defines the bank module's genesis state. */
|
||||||
|
export interface GenesisStateSDKType {
|
||||||
|
params?: ParamsSDKType;
|
||||||
|
balances: BalanceSDKType[];
|
||||||
|
supply: CoinSDKType[];
|
||||||
|
denom_metadata: MetadataSDKType[];
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Balance defines an account address and balance pair used in the bank module's
|
||||||
|
* genesis state.
|
||||||
|
*/
|
||||||
|
export interface Balance {
|
||||||
|
/** address is the address of the balance holder. */
|
||||||
|
address: string;
|
||||||
|
/** coins defines the different coins this balance holds. */
|
||||||
|
coins: Coin[];
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Balance defines an account address and balance pair used in the bank module's
|
||||||
|
* genesis state.
|
||||||
|
*/
|
||||||
|
export interface BalanceSDKType {
|
||||||
|
address: string;
|
||||||
|
coins: CoinSDKType[];
|
||||||
|
}
|
||||||
|
export declare const GenesisState: {
|
||||||
|
encode(message: GenesisState, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): GenesisState;
|
||||||
|
fromPartial(object: DeepPartial<GenesisState>): GenesisState;
|
||||||
|
};
|
||||||
|
export declare const Balance: {
|
||||||
|
encode(message: Balance, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): Balance;
|
||||||
|
fromPartial(object: DeepPartial<Balance>): Balance;
|
||||||
|
};
|
362
packages/codegen/dist/cosmos/bank/v1beta1/query.d.ts
vendored
Normal file
362
packages/codegen/dist/cosmos/bank/v1beta1/query.d.ts
vendored
Normal file
@ -0,0 +1,362 @@
|
|||||||
|
import { PageRequest, PageRequestSDKType, PageResponse, PageResponseSDKType } from "../../base/query/v1beta1/pagination";
|
||||||
|
import { Coin, CoinSDKType } from "../../base/v1beta1/coin";
|
||||||
|
import { Params, ParamsSDKType, Metadata, MetadataSDKType } from "./bank";
|
||||||
|
import * as _m0 from "protobufjs/minimal";
|
||||||
|
import { DeepPartial } from "../../../helpers";
|
||||||
|
/** QueryBalanceRequest is the request type for the Query/Balance RPC method. */
|
||||||
|
export interface QueryBalanceRequest {
|
||||||
|
/** address is the address to query balances for. */
|
||||||
|
address: string;
|
||||||
|
/** denom is the coin denom to query balances for. */
|
||||||
|
denom: string;
|
||||||
|
}
|
||||||
|
/** QueryBalanceRequest is the request type for the Query/Balance RPC method. */
|
||||||
|
export interface QueryBalanceRequestSDKType {
|
||||||
|
address: string;
|
||||||
|
denom: string;
|
||||||
|
}
|
||||||
|
/** QueryBalanceResponse is the response type for the Query/Balance RPC method. */
|
||||||
|
export interface QueryBalanceResponse {
|
||||||
|
/** balance is the balance of the coin. */
|
||||||
|
balance?: Coin;
|
||||||
|
}
|
||||||
|
/** QueryBalanceResponse is the response type for the Query/Balance RPC method. */
|
||||||
|
export interface QueryBalanceResponseSDKType {
|
||||||
|
balance?: CoinSDKType;
|
||||||
|
}
|
||||||
|
/** QueryBalanceRequest is the request type for the Query/AllBalances RPC method. */
|
||||||
|
export interface QueryAllBalancesRequest {
|
||||||
|
/** address is the address to query balances for. */
|
||||||
|
address: string;
|
||||||
|
/** pagination defines an optional pagination for the request. */
|
||||||
|
pagination?: PageRequest;
|
||||||
|
}
|
||||||
|
/** QueryBalanceRequest is the request type for the Query/AllBalances RPC method. */
|
||||||
|
export interface QueryAllBalancesRequestSDKType {
|
||||||
|
address: string;
|
||||||
|
pagination?: PageRequestSDKType;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* QueryAllBalancesResponse is the response type for the Query/AllBalances RPC
|
||||||
|
* method.
|
||||||
|
*/
|
||||||
|
export interface QueryAllBalancesResponse {
|
||||||
|
/** balances is the balances of all the coins. */
|
||||||
|
balances: Coin[];
|
||||||
|
/** pagination defines the pagination in the response. */
|
||||||
|
pagination?: PageResponse;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* QueryAllBalancesResponse is the response type for the Query/AllBalances RPC
|
||||||
|
* method.
|
||||||
|
*/
|
||||||
|
export interface QueryAllBalancesResponseSDKType {
|
||||||
|
balances: CoinSDKType[];
|
||||||
|
pagination?: PageResponseSDKType;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* QuerySpendableBalancesRequest defines the gRPC request structure for querying
|
||||||
|
* an account's spendable balances.
|
||||||
|
*/
|
||||||
|
export interface QuerySpendableBalancesRequest {
|
||||||
|
/** address is the address to query spendable balances for. */
|
||||||
|
address: string;
|
||||||
|
/** pagination defines an optional pagination for the request. */
|
||||||
|
pagination?: PageRequest;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* QuerySpendableBalancesRequest defines the gRPC request structure for querying
|
||||||
|
* an account's spendable balances.
|
||||||
|
*/
|
||||||
|
export interface QuerySpendableBalancesRequestSDKType {
|
||||||
|
address: string;
|
||||||
|
pagination?: PageRequestSDKType;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* QuerySpendableBalancesResponse defines the gRPC response structure for querying
|
||||||
|
* an account's spendable balances.
|
||||||
|
*/
|
||||||
|
export interface QuerySpendableBalancesResponse {
|
||||||
|
/** balances is the spendable balances of all the coins. */
|
||||||
|
balances: Coin[];
|
||||||
|
/** pagination defines the pagination in the response. */
|
||||||
|
pagination?: PageResponse;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* QuerySpendableBalancesResponse defines the gRPC response structure for querying
|
||||||
|
* an account's spendable balances.
|
||||||
|
*/
|
||||||
|
export interface QuerySpendableBalancesResponseSDKType {
|
||||||
|
balances: CoinSDKType[];
|
||||||
|
pagination?: PageResponseSDKType;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* QueryTotalSupplyRequest is the request type for the Query/TotalSupply RPC
|
||||||
|
* method.
|
||||||
|
*/
|
||||||
|
export interface QueryTotalSupplyRequest {
|
||||||
|
/**
|
||||||
|
* pagination defines an optional pagination for the request.
|
||||||
|
*
|
||||||
|
* Since: cosmos-sdk 0.43
|
||||||
|
*/
|
||||||
|
pagination?: PageRequest;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* QueryTotalSupplyRequest is the request type for the Query/TotalSupply RPC
|
||||||
|
* method.
|
||||||
|
*/
|
||||||
|
export interface QueryTotalSupplyRequestSDKType {
|
||||||
|
pagination?: PageRequestSDKType;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* QueryTotalSupplyResponse is the response type for the Query/TotalSupply RPC
|
||||||
|
* method
|
||||||
|
*/
|
||||||
|
export interface QueryTotalSupplyResponse {
|
||||||
|
/** supply is the supply of the coins */
|
||||||
|
supply: Coin[];
|
||||||
|
/**
|
||||||
|
* pagination defines the pagination in the response.
|
||||||
|
*
|
||||||
|
* Since: cosmos-sdk 0.43
|
||||||
|
*/
|
||||||
|
pagination?: PageResponse;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* QueryTotalSupplyResponse is the response type for the Query/TotalSupply RPC
|
||||||
|
* method
|
||||||
|
*/
|
||||||
|
export interface QueryTotalSupplyResponseSDKType {
|
||||||
|
supply: CoinSDKType[];
|
||||||
|
pagination?: PageResponseSDKType;
|
||||||
|
}
|
||||||
|
/** QuerySupplyOfRequest is the request type for the Query/SupplyOf RPC method. */
|
||||||
|
export interface QuerySupplyOfRequest {
|
||||||
|
/** denom is the coin denom to query balances for. */
|
||||||
|
denom: string;
|
||||||
|
}
|
||||||
|
/** QuerySupplyOfRequest is the request type for the Query/SupplyOf RPC method. */
|
||||||
|
export interface QuerySupplyOfRequestSDKType {
|
||||||
|
denom: string;
|
||||||
|
}
|
||||||
|
/** QuerySupplyOfResponse is the response type for the Query/SupplyOf RPC method. */
|
||||||
|
export interface QuerySupplyOfResponse {
|
||||||
|
/** amount is the supply of the coin. */
|
||||||
|
amount?: Coin;
|
||||||
|
}
|
||||||
|
/** QuerySupplyOfResponse is the response type for the Query/SupplyOf RPC method. */
|
||||||
|
export interface QuerySupplyOfResponseSDKType {
|
||||||
|
amount?: CoinSDKType;
|
||||||
|
}
|
||||||
|
/** QueryParamsRequest defines the request type for querying x/bank parameters. */
|
||||||
|
export interface QueryParamsRequest {
|
||||||
|
}
|
||||||
|
/** QueryParamsRequest defines the request type for querying x/bank parameters. */
|
||||||
|
export interface QueryParamsRequestSDKType {
|
||||||
|
}
|
||||||
|
/** QueryParamsResponse defines the response type for querying x/bank parameters. */
|
||||||
|
export interface QueryParamsResponse {
|
||||||
|
params?: Params;
|
||||||
|
}
|
||||||
|
/** QueryParamsResponse defines the response type for querying x/bank parameters. */
|
||||||
|
export interface QueryParamsResponseSDKType {
|
||||||
|
params?: ParamsSDKType;
|
||||||
|
}
|
||||||
|
/** QueryDenomsMetadataRequest is the request type for the Query/DenomsMetadata RPC method. */
|
||||||
|
export interface QueryDenomsMetadataRequest {
|
||||||
|
/** pagination defines an optional pagination for the request. */
|
||||||
|
pagination?: PageRequest;
|
||||||
|
}
|
||||||
|
/** QueryDenomsMetadataRequest is the request type for the Query/DenomsMetadata RPC method. */
|
||||||
|
export interface QueryDenomsMetadataRequestSDKType {
|
||||||
|
pagination?: PageRequestSDKType;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* QueryDenomsMetadataResponse is the response type for the Query/DenomsMetadata RPC
|
||||||
|
* method.
|
||||||
|
*/
|
||||||
|
export interface QueryDenomsMetadataResponse {
|
||||||
|
/** metadata provides the client information for all the registered tokens. */
|
||||||
|
metadatas: Metadata[];
|
||||||
|
/** pagination defines the pagination in the response. */
|
||||||
|
pagination?: PageResponse;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* QueryDenomsMetadataResponse is the response type for the Query/DenomsMetadata RPC
|
||||||
|
* method.
|
||||||
|
*/
|
||||||
|
export interface QueryDenomsMetadataResponseSDKType {
|
||||||
|
metadatas: MetadataSDKType[];
|
||||||
|
pagination?: PageResponseSDKType;
|
||||||
|
}
|
||||||
|
/** QueryDenomMetadataRequest is the request type for the Query/DenomMetadata RPC method. */
|
||||||
|
export interface QueryDenomMetadataRequest {
|
||||||
|
/** denom is the coin denom to query the metadata for. */
|
||||||
|
denom: string;
|
||||||
|
}
|
||||||
|
/** QueryDenomMetadataRequest is the request type for the Query/DenomMetadata RPC method. */
|
||||||
|
export interface QueryDenomMetadataRequestSDKType {
|
||||||
|
denom: string;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* QueryDenomMetadataResponse is the response type for the Query/DenomMetadata RPC
|
||||||
|
* method.
|
||||||
|
*/
|
||||||
|
export interface QueryDenomMetadataResponse {
|
||||||
|
/** metadata describes and provides all the client information for the requested token. */
|
||||||
|
metadata?: Metadata;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* QueryDenomMetadataResponse is the response type for the Query/DenomMetadata RPC
|
||||||
|
* method.
|
||||||
|
*/
|
||||||
|
export interface QueryDenomMetadataResponseSDKType {
|
||||||
|
metadata?: MetadataSDKType;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* QueryDenomOwnersRequest defines the request type for the DenomOwners RPC query,
|
||||||
|
* which queries for a paginated set of all account holders of a particular
|
||||||
|
* denomination.
|
||||||
|
*/
|
||||||
|
export interface QueryDenomOwnersRequest {
|
||||||
|
/** denom defines the coin denomination to query all account holders for. */
|
||||||
|
denom: string;
|
||||||
|
/** pagination defines an optional pagination for the request. */
|
||||||
|
pagination?: PageRequest;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* QueryDenomOwnersRequest defines the request type for the DenomOwners RPC query,
|
||||||
|
* which queries for a paginated set of all account holders of a particular
|
||||||
|
* denomination.
|
||||||
|
*/
|
||||||
|
export interface QueryDenomOwnersRequestSDKType {
|
||||||
|
denom: string;
|
||||||
|
pagination?: PageRequestSDKType;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* DenomOwner defines structure representing an account that owns or holds a
|
||||||
|
* particular denominated token. It contains the account address and account
|
||||||
|
* balance of the denominated token.
|
||||||
|
*/
|
||||||
|
export interface DenomOwner {
|
||||||
|
/** address defines the address that owns a particular denomination. */
|
||||||
|
address: string;
|
||||||
|
/** balance is the balance of the denominated coin for an account. */
|
||||||
|
balance?: Coin;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* DenomOwner defines structure representing an account that owns or holds a
|
||||||
|
* particular denominated token. It contains the account address and account
|
||||||
|
* balance of the denominated token.
|
||||||
|
*/
|
||||||
|
export interface DenomOwnerSDKType {
|
||||||
|
address: string;
|
||||||
|
balance?: CoinSDKType;
|
||||||
|
}
|
||||||
|
/** QueryDenomOwnersResponse defines the RPC response of a DenomOwners RPC query. */
|
||||||
|
export interface QueryDenomOwnersResponse {
|
||||||
|
denomOwners: DenomOwner[];
|
||||||
|
/** pagination defines the pagination in the response. */
|
||||||
|
pagination?: PageResponse;
|
||||||
|
}
|
||||||
|
/** QueryDenomOwnersResponse defines the RPC response of a DenomOwners RPC query. */
|
||||||
|
export interface QueryDenomOwnersResponseSDKType {
|
||||||
|
denom_owners: DenomOwnerSDKType[];
|
||||||
|
pagination?: PageResponseSDKType;
|
||||||
|
}
|
||||||
|
export declare const QueryBalanceRequest: {
|
||||||
|
encode(message: QueryBalanceRequest, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryBalanceRequest;
|
||||||
|
fromPartial(object: DeepPartial<QueryBalanceRequest>): QueryBalanceRequest;
|
||||||
|
};
|
||||||
|
export declare const QueryBalanceResponse: {
|
||||||
|
encode(message: QueryBalanceResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryBalanceResponse;
|
||||||
|
fromPartial(object: DeepPartial<QueryBalanceResponse>): QueryBalanceResponse;
|
||||||
|
};
|
||||||
|
export declare const QueryAllBalancesRequest: {
|
||||||
|
encode(message: QueryAllBalancesRequest, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryAllBalancesRequest;
|
||||||
|
fromPartial(object: DeepPartial<QueryAllBalancesRequest>): QueryAllBalancesRequest;
|
||||||
|
};
|
||||||
|
export declare const QueryAllBalancesResponse: {
|
||||||
|
encode(message: QueryAllBalancesResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryAllBalancesResponse;
|
||||||
|
fromPartial(object: DeepPartial<QueryAllBalancesResponse>): QueryAllBalancesResponse;
|
||||||
|
};
|
||||||
|
export declare const QuerySpendableBalancesRequest: {
|
||||||
|
encode(message: QuerySpendableBalancesRequest, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QuerySpendableBalancesRequest;
|
||||||
|
fromPartial(object: DeepPartial<QuerySpendableBalancesRequest>): QuerySpendableBalancesRequest;
|
||||||
|
};
|
||||||
|
export declare const QuerySpendableBalancesResponse: {
|
||||||
|
encode(message: QuerySpendableBalancesResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QuerySpendableBalancesResponse;
|
||||||
|
fromPartial(object: DeepPartial<QuerySpendableBalancesResponse>): QuerySpendableBalancesResponse;
|
||||||
|
};
|
||||||
|
export declare const QueryTotalSupplyRequest: {
|
||||||
|
encode(message: QueryTotalSupplyRequest, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryTotalSupplyRequest;
|
||||||
|
fromPartial(object: DeepPartial<QueryTotalSupplyRequest>): QueryTotalSupplyRequest;
|
||||||
|
};
|
||||||
|
export declare const QueryTotalSupplyResponse: {
|
||||||
|
encode(message: QueryTotalSupplyResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryTotalSupplyResponse;
|
||||||
|
fromPartial(object: DeepPartial<QueryTotalSupplyResponse>): QueryTotalSupplyResponse;
|
||||||
|
};
|
||||||
|
export declare const QuerySupplyOfRequest: {
|
||||||
|
encode(message: QuerySupplyOfRequest, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QuerySupplyOfRequest;
|
||||||
|
fromPartial(object: DeepPartial<QuerySupplyOfRequest>): QuerySupplyOfRequest;
|
||||||
|
};
|
||||||
|
export declare const QuerySupplyOfResponse: {
|
||||||
|
encode(message: QuerySupplyOfResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QuerySupplyOfResponse;
|
||||||
|
fromPartial(object: DeepPartial<QuerySupplyOfResponse>): QuerySupplyOfResponse;
|
||||||
|
};
|
||||||
|
export declare const QueryParamsRequest: {
|
||||||
|
encode(_: QueryParamsRequest, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsRequest;
|
||||||
|
fromPartial(_: DeepPartial<QueryParamsRequest>): QueryParamsRequest;
|
||||||
|
};
|
||||||
|
export declare const QueryParamsResponse: {
|
||||||
|
encode(message: QueryParamsResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsResponse;
|
||||||
|
fromPartial(object: DeepPartial<QueryParamsResponse>): QueryParamsResponse;
|
||||||
|
};
|
||||||
|
export declare const QueryDenomsMetadataRequest: {
|
||||||
|
encode(message: QueryDenomsMetadataRequest, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDenomsMetadataRequest;
|
||||||
|
fromPartial(object: DeepPartial<QueryDenomsMetadataRequest>): QueryDenomsMetadataRequest;
|
||||||
|
};
|
||||||
|
export declare const QueryDenomsMetadataResponse: {
|
||||||
|
encode(message: QueryDenomsMetadataResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDenomsMetadataResponse;
|
||||||
|
fromPartial(object: DeepPartial<QueryDenomsMetadataResponse>): QueryDenomsMetadataResponse;
|
||||||
|
};
|
||||||
|
export declare const QueryDenomMetadataRequest: {
|
||||||
|
encode(message: QueryDenomMetadataRequest, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDenomMetadataRequest;
|
||||||
|
fromPartial(object: DeepPartial<QueryDenomMetadataRequest>): QueryDenomMetadataRequest;
|
||||||
|
};
|
||||||
|
export declare const QueryDenomMetadataResponse: {
|
||||||
|
encode(message: QueryDenomMetadataResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDenomMetadataResponse;
|
||||||
|
fromPartial(object: DeepPartial<QueryDenomMetadataResponse>): QueryDenomMetadataResponse;
|
||||||
|
};
|
||||||
|
export declare const QueryDenomOwnersRequest: {
|
||||||
|
encode(message: QueryDenomOwnersRequest, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDenomOwnersRequest;
|
||||||
|
fromPartial(object: DeepPartial<QueryDenomOwnersRequest>): QueryDenomOwnersRequest;
|
||||||
|
};
|
||||||
|
export declare const DenomOwner: {
|
||||||
|
encode(message: DenomOwner, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): DenomOwner;
|
||||||
|
fromPartial(object: DeepPartial<DenomOwner>): DenomOwner;
|
||||||
|
};
|
||||||
|
export declare const QueryDenomOwnersResponse: {
|
||||||
|
encode(message: QueryDenomOwnersResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDenomOwnersResponse;
|
||||||
|
fromPartial(object: DeepPartial<QueryDenomOwnersResponse>): QueryDenomOwnersResponse;
|
||||||
|
};
|
17
packages/codegen/dist/cosmos/bank/v1beta1/query.lcd.d.ts
vendored
Normal file
17
packages/codegen/dist/cosmos/bank/v1beta1/query.lcd.d.ts
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
import { LCDClient } from "@osmonauts/lcd";
|
||||||
|
import { QueryBalanceRequest, QueryBalanceResponseSDKType, QueryAllBalancesRequest, QueryAllBalancesResponseSDKType, QuerySpendableBalancesRequest, QuerySpendableBalancesResponseSDKType, QueryTotalSupplyRequest, QueryTotalSupplyResponseSDKType, QuerySupplyOfRequest, QuerySupplyOfResponseSDKType, QueryParamsRequest, QueryParamsResponseSDKType, QueryDenomMetadataRequest, QueryDenomMetadataResponseSDKType, QueryDenomsMetadataRequest, QueryDenomsMetadataResponseSDKType, QueryDenomOwnersRequest, QueryDenomOwnersResponseSDKType } from "./query";
|
||||||
|
export declare class LCDQueryClient {
|
||||||
|
req: LCDClient;
|
||||||
|
constructor({ requestClient }: {
|
||||||
|
requestClient: LCDClient;
|
||||||
|
});
|
||||||
|
balance(params: QueryBalanceRequest): Promise<QueryBalanceResponseSDKType>;
|
||||||
|
allBalances(params: QueryAllBalancesRequest): Promise<QueryAllBalancesResponseSDKType>;
|
||||||
|
spendableBalances(params: QuerySpendableBalancesRequest): Promise<QuerySpendableBalancesResponseSDKType>;
|
||||||
|
totalSupply(params?: QueryTotalSupplyRequest): Promise<QueryTotalSupplyResponseSDKType>;
|
||||||
|
supplyOf(params: QuerySupplyOfRequest): Promise<QuerySupplyOfResponseSDKType>;
|
||||||
|
params(_params?: QueryParamsRequest): Promise<QueryParamsResponseSDKType>;
|
||||||
|
denomMetadata(params: QueryDenomMetadataRequest): Promise<QueryDenomMetadataResponseSDKType>;
|
||||||
|
denomsMetadata(params?: QueryDenomsMetadataRequest): Promise<QueryDenomsMetadataResponseSDKType>;
|
||||||
|
denomOwners(params: QueryDenomOwnersRequest): Promise<QueryDenomOwnersResponseSDKType>;
|
||||||
|
}
|
57
packages/codegen/dist/cosmos/bank/v1beta1/query.rpc.Query.d.ts
vendored
Normal file
57
packages/codegen/dist/cosmos/bank/v1beta1/query.rpc.Query.d.ts
vendored
Normal file
@ -0,0 +1,57 @@
|
|||||||
|
import { Rpc } from "../../../helpers";
|
||||||
|
import { QueryClient } from "@cosmjs/stargate";
|
||||||
|
import { QueryBalanceRequest, QueryBalanceResponse, QueryAllBalancesRequest, QueryAllBalancesResponse, QuerySpendableBalancesRequest, QuerySpendableBalancesResponse, QueryTotalSupplyRequest, QueryTotalSupplyResponse, QuerySupplyOfRequest, QuerySupplyOfResponse, QueryParamsRequest, QueryParamsResponse, QueryDenomMetadataRequest, QueryDenomMetadataResponse, QueryDenomsMetadataRequest, QueryDenomsMetadataResponse, QueryDenomOwnersRequest, QueryDenomOwnersResponse } from "./query";
|
||||||
|
/** Query defines the gRPC querier service. */
|
||||||
|
export interface Query {
|
||||||
|
/** Balance queries the balance of a single coin for a single account. */
|
||||||
|
balance(request: QueryBalanceRequest): Promise<QueryBalanceResponse>;
|
||||||
|
/** AllBalances queries the balance of all coins for a single account. */
|
||||||
|
allBalances(request: QueryAllBalancesRequest): Promise<QueryAllBalancesResponse>;
|
||||||
|
/**
|
||||||
|
* SpendableBalances queries the spenable balance of all coins for a single
|
||||||
|
* account.
|
||||||
|
*/
|
||||||
|
spendableBalances(request: QuerySpendableBalancesRequest): Promise<QuerySpendableBalancesResponse>;
|
||||||
|
/** TotalSupply queries the total supply of all coins. */
|
||||||
|
totalSupply(request?: QueryTotalSupplyRequest): Promise<QueryTotalSupplyResponse>;
|
||||||
|
/** SupplyOf queries the supply of a single coin. */
|
||||||
|
supplyOf(request: QuerySupplyOfRequest): Promise<QuerySupplyOfResponse>;
|
||||||
|
/** Params queries the parameters of x/bank module. */
|
||||||
|
params(request?: QueryParamsRequest): Promise<QueryParamsResponse>;
|
||||||
|
/** DenomsMetadata queries the client metadata of a given coin denomination. */
|
||||||
|
denomMetadata(request: QueryDenomMetadataRequest): Promise<QueryDenomMetadataResponse>;
|
||||||
|
/**
|
||||||
|
* DenomsMetadata queries the client metadata for all registered coin
|
||||||
|
* denominations.
|
||||||
|
*/
|
||||||
|
denomsMetadata(request?: QueryDenomsMetadataRequest): Promise<QueryDenomsMetadataResponse>;
|
||||||
|
/**
|
||||||
|
* DenomOwners queries for all account addresses that own a particular token
|
||||||
|
* denomination.
|
||||||
|
*/
|
||||||
|
denomOwners(request: QueryDenomOwnersRequest): Promise<QueryDenomOwnersResponse>;
|
||||||
|
}
|
||||||
|
export declare class QueryClientImpl implements Query {
|
||||||
|
private readonly rpc;
|
||||||
|
constructor(rpc: Rpc);
|
||||||
|
balance(request: QueryBalanceRequest): Promise<QueryBalanceResponse>;
|
||||||
|
allBalances(request: QueryAllBalancesRequest): Promise<QueryAllBalancesResponse>;
|
||||||
|
spendableBalances(request: QuerySpendableBalancesRequest): Promise<QuerySpendableBalancesResponse>;
|
||||||
|
totalSupply(request?: QueryTotalSupplyRequest): Promise<QueryTotalSupplyResponse>;
|
||||||
|
supplyOf(request: QuerySupplyOfRequest): Promise<QuerySupplyOfResponse>;
|
||||||
|
params(request?: QueryParamsRequest): Promise<QueryParamsResponse>;
|
||||||
|
denomMetadata(request: QueryDenomMetadataRequest): Promise<QueryDenomMetadataResponse>;
|
||||||
|
denomsMetadata(request?: QueryDenomsMetadataRequest): Promise<QueryDenomsMetadataResponse>;
|
||||||
|
denomOwners(request: QueryDenomOwnersRequest): Promise<QueryDenomOwnersResponse>;
|
||||||
|
}
|
||||||
|
export declare const createRpcQueryExtension: (base: QueryClient) => {
|
||||||
|
balance(request: QueryBalanceRequest): Promise<QueryBalanceResponse>;
|
||||||
|
allBalances(request: QueryAllBalancesRequest): Promise<QueryAllBalancesResponse>;
|
||||||
|
spendableBalances(request: QuerySpendableBalancesRequest): Promise<QuerySpendableBalancesResponse>;
|
||||||
|
totalSupply(request?: QueryTotalSupplyRequest): Promise<QueryTotalSupplyResponse>;
|
||||||
|
supplyOf(request: QuerySupplyOfRequest): Promise<QuerySupplyOfResponse>;
|
||||||
|
params(request?: QueryParamsRequest): Promise<QueryParamsResponse>;
|
||||||
|
denomMetadata(request: QueryDenomMetadataRequest): Promise<QueryDenomMetadataResponse>;
|
||||||
|
denomsMetadata(request?: QueryDenomsMetadataRequest): Promise<QueryDenomsMetadataResponse>;
|
||||||
|
denomOwners(request: QueryDenomOwnersRequest): Promise<QueryDenomOwnersResponse>;
|
||||||
|
};
|
58
packages/codegen/dist/cosmos/bank/v1beta1/tx.d.ts
vendored
Normal file
58
packages/codegen/dist/cosmos/bank/v1beta1/tx.d.ts
vendored
Normal file
@ -0,0 +1,58 @@
|
|||||||
|
import { Coin, CoinSDKType } from "../../base/v1beta1/coin";
|
||||||
|
import { Input, InputSDKType, Output, OutputSDKType } from "./bank";
|
||||||
|
import * as _m0 from "protobufjs/minimal";
|
||||||
|
import { DeepPartial } from "../../../helpers";
|
||||||
|
/** MsgSend represents a message to send coins from one account to another. */
|
||||||
|
export interface MsgSend {
|
||||||
|
fromAddress: string;
|
||||||
|
toAddress: string;
|
||||||
|
amount: Coin[];
|
||||||
|
}
|
||||||
|
/** MsgSend represents a message to send coins from one account to another. */
|
||||||
|
export interface MsgSendSDKType {
|
||||||
|
from_address: string;
|
||||||
|
to_address: string;
|
||||||
|
amount: CoinSDKType[];
|
||||||
|
}
|
||||||
|
/** MsgSendResponse defines the Msg/Send response type. */
|
||||||
|
export interface MsgSendResponse {
|
||||||
|
}
|
||||||
|
/** MsgSendResponse defines the Msg/Send response type. */
|
||||||
|
export interface MsgSendResponseSDKType {
|
||||||
|
}
|
||||||
|
/** MsgMultiSend represents an arbitrary multi-in, multi-out send message. */
|
||||||
|
export interface MsgMultiSend {
|
||||||
|
inputs: Input[];
|
||||||
|
outputs: Output[];
|
||||||
|
}
|
||||||
|
/** MsgMultiSend represents an arbitrary multi-in, multi-out send message. */
|
||||||
|
export interface MsgMultiSendSDKType {
|
||||||
|
inputs: InputSDKType[];
|
||||||
|
outputs: OutputSDKType[];
|
||||||
|
}
|
||||||
|
/** MsgMultiSendResponse defines the Msg/MultiSend response type. */
|
||||||
|
export interface MsgMultiSendResponse {
|
||||||
|
}
|
||||||
|
/** MsgMultiSendResponse defines the Msg/MultiSend response type. */
|
||||||
|
export interface MsgMultiSendResponseSDKType {
|
||||||
|
}
|
||||||
|
export declare const MsgSend: {
|
||||||
|
encode(message: MsgSend, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): MsgSend;
|
||||||
|
fromPartial(object: DeepPartial<MsgSend>): MsgSend;
|
||||||
|
};
|
||||||
|
export declare const MsgSendResponse: {
|
||||||
|
encode(_: MsgSendResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): MsgSendResponse;
|
||||||
|
fromPartial(_: DeepPartial<MsgSendResponse>): MsgSendResponse;
|
||||||
|
};
|
||||||
|
export declare const MsgMultiSend: {
|
||||||
|
encode(message: MsgMultiSend, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): MsgMultiSend;
|
||||||
|
fromPartial(object: DeepPartial<MsgMultiSend>): MsgMultiSend;
|
||||||
|
};
|
||||||
|
export declare const MsgMultiSendResponse: {
|
||||||
|
encode(_: MsgMultiSendResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): MsgMultiSendResponse;
|
||||||
|
fromPartial(_: DeepPartial<MsgMultiSendResponse>): MsgMultiSendResponse;
|
||||||
|
};
|
15
packages/codegen/dist/cosmos/bank/v1beta1/tx.rpc.msg.d.ts
vendored
Normal file
15
packages/codegen/dist/cosmos/bank/v1beta1/tx.rpc.msg.d.ts
vendored
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
import { Rpc } from "../../../helpers";
|
||||||
|
import { MsgSend, MsgSendResponse, MsgMultiSend, MsgMultiSendResponse } from "./tx";
|
||||||
|
/** Msg defines the bank Msg service. */
|
||||||
|
export interface Msg {
|
||||||
|
/** Send defines a method for sending coins from one account to another account. */
|
||||||
|
send(request: MsgSend): Promise<MsgSendResponse>;
|
||||||
|
/** MultiSend defines a method for sending coins from some accounts to other accounts. */
|
||||||
|
multiSend(request: MsgMultiSend): Promise<MsgMultiSendResponse>;
|
||||||
|
}
|
||||||
|
export declare class MsgClientImpl implements Msg {
|
||||||
|
private readonly rpc;
|
||||||
|
constructor(rpc: Rpc);
|
||||||
|
send(request: MsgSend): Promise<MsgSendResponse>;
|
||||||
|
multiSend(request: MsgMultiSend): Promise<MsgMultiSendResponse>;
|
||||||
|
}
|
294
packages/codegen/dist/cosmos/base/abci/v1beta1/abci.d.ts
vendored
Normal file
294
packages/codegen/dist/cosmos/base/abci/v1beta1/abci.d.ts
vendored
Normal file
@ -0,0 +1,294 @@
|
|||||||
|
/// <reference types="long" />
|
||||||
|
import { Any, AnySDKType } from "../../../../google/protobuf/any";
|
||||||
|
import { Event, EventSDKType } from "../../../../tendermint/abci/types";
|
||||||
|
import { Long, DeepPartial } from "../../../../helpers";
|
||||||
|
import * as _m0 from "protobufjs/minimal";
|
||||||
|
/**
|
||||||
|
* TxResponse defines a structure containing relevant tx data and metadata. The
|
||||||
|
* tags are stringified and the log is JSON decoded.
|
||||||
|
*/
|
||||||
|
export interface TxResponse {
|
||||||
|
/** The block height */
|
||||||
|
height: Long;
|
||||||
|
/** The transaction hash. */
|
||||||
|
txhash: string;
|
||||||
|
/** Namespace for the Code */
|
||||||
|
codespace: string;
|
||||||
|
/** Response code. */
|
||||||
|
code: number;
|
||||||
|
/** Result bytes, if any. */
|
||||||
|
data: string;
|
||||||
|
/**
|
||||||
|
* The output of the application's logger (raw string). May be
|
||||||
|
* non-deterministic.
|
||||||
|
*/
|
||||||
|
rawLog: string;
|
||||||
|
/** The output of the application's logger (typed). May be non-deterministic. */
|
||||||
|
logs: ABCIMessageLog[];
|
||||||
|
/** Additional information. May be non-deterministic. */
|
||||||
|
info: string;
|
||||||
|
/** Amount of gas requested for transaction. */
|
||||||
|
gasWanted: Long;
|
||||||
|
/** Amount of gas consumed by transaction. */
|
||||||
|
gasUsed: Long;
|
||||||
|
/** The request transaction bytes. */
|
||||||
|
tx?: Any;
|
||||||
|
/**
|
||||||
|
* Time of the previous block. For heights > 1, it's the weighted median of
|
||||||
|
* the timestamps of the valid votes in the block.LastCommit. For height == 1,
|
||||||
|
* it's genesis time.
|
||||||
|
*/
|
||||||
|
timestamp: string;
|
||||||
|
/**
|
||||||
|
* Events defines all the events emitted by processing a transaction. Note,
|
||||||
|
* these events include those emitted by processing all the messages and those
|
||||||
|
* emitted from the ante handler. Whereas Logs contains the events, with
|
||||||
|
* additional metadata, emitted only by processing the messages.
|
||||||
|
*
|
||||||
|
* Since: cosmos-sdk 0.42.11, 0.44.5, 0.45
|
||||||
|
*/
|
||||||
|
events: Event[];
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* TxResponse defines a structure containing relevant tx data and metadata. The
|
||||||
|
* tags are stringified and the log is JSON decoded.
|
||||||
|
*/
|
||||||
|
export interface TxResponseSDKType {
|
||||||
|
height: Long;
|
||||||
|
txhash: string;
|
||||||
|
codespace: string;
|
||||||
|
code: number;
|
||||||
|
data: string;
|
||||||
|
raw_log: string;
|
||||||
|
logs: ABCIMessageLogSDKType[];
|
||||||
|
info: string;
|
||||||
|
gas_wanted: Long;
|
||||||
|
gas_used: Long;
|
||||||
|
tx?: AnySDKType;
|
||||||
|
timestamp: string;
|
||||||
|
events: EventSDKType[];
|
||||||
|
}
|
||||||
|
/** ABCIMessageLog defines a structure containing an indexed tx ABCI message log. */
|
||||||
|
export interface ABCIMessageLog {
|
||||||
|
msgIndex: number;
|
||||||
|
log: string;
|
||||||
|
/**
|
||||||
|
* Events contains a slice of Event objects that were emitted during some
|
||||||
|
* execution.
|
||||||
|
*/
|
||||||
|
events: StringEvent[];
|
||||||
|
}
|
||||||
|
/** ABCIMessageLog defines a structure containing an indexed tx ABCI message log. */
|
||||||
|
export interface ABCIMessageLogSDKType {
|
||||||
|
msg_index: number;
|
||||||
|
log: string;
|
||||||
|
events: StringEventSDKType[];
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* StringEvent defines en Event object wrapper where all the attributes
|
||||||
|
* contain key/value pairs that are strings instead of raw bytes.
|
||||||
|
*/
|
||||||
|
export interface StringEvent {
|
||||||
|
type: string;
|
||||||
|
attributes: Attribute[];
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* StringEvent defines en Event object wrapper where all the attributes
|
||||||
|
* contain key/value pairs that are strings instead of raw bytes.
|
||||||
|
*/
|
||||||
|
export interface StringEventSDKType {
|
||||||
|
type: string;
|
||||||
|
attributes: AttributeSDKType[];
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Attribute defines an attribute wrapper where the key and value are
|
||||||
|
* strings instead of raw bytes.
|
||||||
|
*/
|
||||||
|
export interface Attribute {
|
||||||
|
key: string;
|
||||||
|
value: string;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Attribute defines an attribute wrapper where the key and value are
|
||||||
|
* strings instead of raw bytes.
|
||||||
|
*/
|
||||||
|
export interface AttributeSDKType {
|
||||||
|
key: string;
|
||||||
|
value: string;
|
||||||
|
}
|
||||||
|
/** GasInfo defines tx execution gas context. */
|
||||||
|
export interface GasInfo {
|
||||||
|
/** GasWanted is the maximum units of work we allow this tx to perform. */
|
||||||
|
gasWanted: Long;
|
||||||
|
/** GasUsed is the amount of gas actually consumed. */
|
||||||
|
gasUsed: Long;
|
||||||
|
}
|
||||||
|
/** GasInfo defines tx execution gas context. */
|
||||||
|
export interface GasInfoSDKType {
|
||||||
|
gas_wanted: Long;
|
||||||
|
gas_used: Long;
|
||||||
|
}
|
||||||
|
/** Result is the union of ResponseFormat and ResponseCheckTx. */
|
||||||
|
export interface Result {
|
||||||
|
/**
|
||||||
|
* Data is any data returned from message or handler execution. It MUST be
|
||||||
|
* length prefixed in order to separate data from multiple message executions.
|
||||||
|
* Deprecated. This field is still populated, but prefer msg_response instead
|
||||||
|
* because it also contains the Msg response typeURL.
|
||||||
|
*/
|
||||||
|
/** @deprecated */
|
||||||
|
data: Uint8Array;
|
||||||
|
/** Log contains the log information from message or handler execution. */
|
||||||
|
log: string;
|
||||||
|
/**
|
||||||
|
* Events contains a slice of Event objects that were emitted during message
|
||||||
|
* or handler execution.
|
||||||
|
*/
|
||||||
|
events: Event[];
|
||||||
|
/**
|
||||||
|
* msg_responses contains the Msg handler responses type packed in Anys.
|
||||||
|
*
|
||||||
|
* Since: cosmos-sdk 0.46
|
||||||
|
*/
|
||||||
|
msgResponses: Any[];
|
||||||
|
}
|
||||||
|
/** Result is the union of ResponseFormat and ResponseCheckTx. */
|
||||||
|
export interface ResultSDKType {
|
||||||
|
/** @deprecated */
|
||||||
|
data: Uint8Array;
|
||||||
|
log: string;
|
||||||
|
events: EventSDKType[];
|
||||||
|
msg_responses: AnySDKType[];
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* SimulationResponse defines the response generated when a transaction is
|
||||||
|
* successfully simulated.
|
||||||
|
*/
|
||||||
|
export interface SimulationResponse {
|
||||||
|
gasInfo?: GasInfo;
|
||||||
|
result?: Result;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* SimulationResponse defines the response generated when a transaction is
|
||||||
|
* successfully simulated.
|
||||||
|
*/
|
||||||
|
export interface SimulationResponseSDKType {
|
||||||
|
gas_info?: GasInfoSDKType;
|
||||||
|
result?: ResultSDKType;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* MsgData defines the data returned in a Result object during message
|
||||||
|
* execution.
|
||||||
|
*/
|
||||||
|
/** @deprecated */
|
||||||
|
export interface MsgData {
|
||||||
|
msgType: string;
|
||||||
|
data: Uint8Array;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* MsgData defines the data returned in a Result object during message
|
||||||
|
* execution.
|
||||||
|
*/
|
||||||
|
/** @deprecated */
|
||||||
|
export interface MsgDataSDKType {
|
||||||
|
msg_type: string;
|
||||||
|
data: Uint8Array;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* TxMsgData defines a list of MsgData. A transaction will have a MsgData object
|
||||||
|
* for each message.
|
||||||
|
*/
|
||||||
|
export interface TxMsgData {
|
||||||
|
/** data field is deprecated and not populated. */
|
||||||
|
/** @deprecated */
|
||||||
|
data: MsgData[];
|
||||||
|
/**
|
||||||
|
* msg_responses contains the Msg handler responses packed into Anys.
|
||||||
|
*
|
||||||
|
* Since: cosmos-sdk 0.46
|
||||||
|
*/
|
||||||
|
msgResponses: Any[];
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* TxMsgData defines a list of MsgData. A transaction will have a MsgData object
|
||||||
|
* for each message.
|
||||||
|
*/
|
||||||
|
export interface TxMsgDataSDKType {
|
||||||
|
/** @deprecated */
|
||||||
|
data: MsgDataSDKType[];
|
||||||
|
msg_responses: AnySDKType[];
|
||||||
|
}
|
||||||
|
/** SearchTxsResult defines a structure for querying txs pageable */
|
||||||
|
export interface SearchTxsResult {
|
||||||
|
/** Count of all txs */
|
||||||
|
totalCount: Long;
|
||||||
|
/** Count of txs in current page */
|
||||||
|
count: Long;
|
||||||
|
/** Index of current page, start from 1 */
|
||||||
|
pageNumber: Long;
|
||||||
|
/** Count of total pages */
|
||||||
|
pageTotal: Long;
|
||||||
|
/** Max count txs per page */
|
||||||
|
limit: Long;
|
||||||
|
/** List of txs in current page */
|
||||||
|
txs: TxResponse[];
|
||||||
|
}
|
||||||
|
/** SearchTxsResult defines a structure for querying txs pageable */
|
||||||
|
export interface SearchTxsResultSDKType {
|
||||||
|
total_count: Long;
|
||||||
|
count: Long;
|
||||||
|
page_number: Long;
|
||||||
|
page_total: Long;
|
||||||
|
limit: Long;
|
||||||
|
txs: TxResponseSDKType[];
|
||||||
|
}
|
||||||
|
export declare const TxResponse: {
|
||||||
|
encode(message: TxResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): TxResponse;
|
||||||
|
fromPartial(object: DeepPartial<TxResponse>): TxResponse;
|
||||||
|
};
|
||||||
|
export declare const ABCIMessageLog: {
|
||||||
|
encode(message: ABCIMessageLog, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): ABCIMessageLog;
|
||||||
|
fromPartial(object: DeepPartial<ABCIMessageLog>): ABCIMessageLog;
|
||||||
|
};
|
||||||
|
export declare const StringEvent: {
|
||||||
|
encode(message: StringEvent, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): StringEvent;
|
||||||
|
fromPartial(object: DeepPartial<StringEvent>): StringEvent;
|
||||||
|
};
|
||||||
|
export declare const Attribute: {
|
||||||
|
encode(message: Attribute, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): Attribute;
|
||||||
|
fromPartial(object: DeepPartial<Attribute>): Attribute;
|
||||||
|
};
|
||||||
|
export declare const GasInfo: {
|
||||||
|
encode(message: GasInfo, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): GasInfo;
|
||||||
|
fromPartial(object: DeepPartial<GasInfo>): GasInfo;
|
||||||
|
};
|
||||||
|
export declare const Result: {
|
||||||
|
encode(message: Result, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): Result;
|
||||||
|
fromPartial(object: DeepPartial<Result>): Result;
|
||||||
|
};
|
||||||
|
export declare const SimulationResponse: {
|
||||||
|
encode(message: SimulationResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): SimulationResponse;
|
||||||
|
fromPartial(object: DeepPartial<SimulationResponse>): SimulationResponse;
|
||||||
|
};
|
||||||
|
export declare const MsgData: {
|
||||||
|
encode(message: MsgData, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): MsgData;
|
||||||
|
fromPartial(object: DeepPartial<MsgData>): MsgData;
|
||||||
|
};
|
||||||
|
export declare const TxMsgData: {
|
||||||
|
encode(message: TxMsgData, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): TxMsgData;
|
||||||
|
fromPartial(object: DeepPartial<TxMsgData>): TxMsgData;
|
||||||
|
};
|
||||||
|
export declare const SearchTxsResult: {
|
||||||
|
encode(message: SearchTxsResult, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): SearchTxsResult;
|
||||||
|
fromPartial(object: DeepPartial<SearchTxsResult>): SearchTxsResult;
|
||||||
|
};
|
30
packages/codegen/dist/cosmos/base/kv/v1beta1/kv.d.ts
vendored
Normal file
30
packages/codegen/dist/cosmos/base/kv/v1beta1/kv.d.ts
vendored
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
import * as _m0 from "protobufjs/minimal";
|
||||||
|
import { DeepPartial } from "../../../../helpers";
|
||||||
|
/** Pairs defines a repeated slice of Pair objects. */
|
||||||
|
export interface Pairs {
|
||||||
|
pairs: Pair[];
|
||||||
|
}
|
||||||
|
/** Pairs defines a repeated slice of Pair objects. */
|
||||||
|
export interface PairsSDKType {
|
||||||
|
pairs: PairSDKType[];
|
||||||
|
}
|
||||||
|
/** Pair defines a key/value bytes tuple. */
|
||||||
|
export interface Pair {
|
||||||
|
key: Uint8Array;
|
||||||
|
value: Uint8Array;
|
||||||
|
}
|
||||||
|
/** Pair defines a key/value bytes tuple. */
|
||||||
|
export interface PairSDKType {
|
||||||
|
key: Uint8Array;
|
||||||
|
value: Uint8Array;
|
||||||
|
}
|
||||||
|
export declare const Pairs: {
|
||||||
|
encode(message: Pairs, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): Pairs;
|
||||||
|
fromPartial(object: DeepPartial<Pairs>): Pairs;
|
||||||
|
};
|
||||||
|
export declare const Pair: {
|
||||||
|
encode(message: Pair, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): Pair;
|
||||||
|
fromPartial(object: DeepPartial<Pair>): Pair;
|
||||||
|
};
|
105
packages/codegen/dist/cosmos/base/query/v1beta1/pagination.d.ts
vendored
Normal file
105
packages/codegen/dist/cosmos/base/query/v1beta1/pagination.d.ts
vendored
Normal file
@ -0,0 +1,105 @@
|
|||||||
|
/// <reference types="long" />
|
||||||
|
import { Long, DeepPartial } from "../../../../helpers";
|
||||||
|
import * as _m0 from "protobufjs/minimal";
|
||||||
|
/**
|
||||||
|
* PageRequest is to be embedded in gRPC request messages for efficient
|
||||||
|
* pagination. Ex:
|
||||||
|
*
|
||||||
|
* message SomeRequest {
|
||||||
|
* Foo some_parameter = 1;
|
||||||
|
* PageRequest pagination = 2;
|
||||||
|
* }
|
||||||
|
*/
|
||||||
|
export interface PageRequest {
|
||||||
|
/**
|
||||||
|
* key is a value returned in PageResponse.next_key to begin
|
||||||
|
* querying the next page most efficiently. Only one of offset or key
|
||||||
|
* should be set.
|
||||||
|
*/
|
||||||
|
key: Uint8Array;
|
||||||
|
/**
|
||||||
|
* offset is a numeric offset that can be used when key is unavailable.
|
||||||
|
* It is less efficient than using key. Only one of offset or key should
|
||||||
|
* be set.
|
||||||
|
*/
|
||||||
|
offset: Long;
|
||||||
|
/**
|
||||||
|
* limit is the total number of results to be returned in the result page.
|
||||||
|
* If left empty it will default to a value to be set by each app.
|
||||||
|
*/
|
||||||
|
limit: Long;
|
||||||
|
/**
|
||||||
|
* count_total is set to true to indicate that the result set should include
|
||||||
|
* a count of the total number of items available for pagination in UIs.
|
||||||
|
* count_total is only respected when offset is used. It is ignored when key
|
||||||
|
* is set.
|
||||||
|
*/
|
||||||
|
countTotal: boolean;
|
||||||
|
/**
|
||||||
|
* reverse is set to true if results are to be returned in the descending order.
|
||||||
|
*
|
||||||
|
* Since: cosmos-sdk 0.43
|
||||||
|
*/
|
||||||
|
reverse: boolean;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* PageRequest is to be embedded in gRPC request messages for efficient
|
||||||
|
* pagination. Ex:
|
||||||
|
*
|
||||||
|
* message SomeRequest {
|
||||||
|
* Foo some_parameter = 1;
|
||||||
|
* PageRequest pagination = 2;
|
||||||
|
* }
|
||||||
|
*/
|
||||||
|
export interface PageRequestSDKType {
|
||||||
|
key: Uint8Array;
|
||||||
|
offset: Long;
|
||||||
|
limit: Long;
|
||||||
|
count_total: boolean;
|
||||||
|
reverse: boolean;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* PageResponse is to be embedded in gRPC response messages where the
|
||||||
|
* corresponding request message has used PageRequest.
|
||||||
|
*
|
||||||
|
* message SomeResponse {
|
||||||
|
* repeated Bar results = 1;
|
||||||
|
* PageResponse page = 2;
|
||||||
|
* }
|
||||||
|
*/
|
||||||
|
export interface PageResponse {
|
||||||
|
/**
|
||||||
|
* next_key is the key to be passed to PageRequest.key to
|
||||||
|
* query the next page most efficiently. It will be empty if
|
||||||
|
* there are no more results.
|
||||||
|
*/
|
||||||
|
nextKey: Uint8Array;
|
||||||
|
/**
|
||||||
|
* total is total number of results available if PageRequest.count_total
|
||||||
|
* was set, its value is undefined otherwise
|
||||||
|
*/
|
||||||
|
total: Long;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* PageResponse is to be embedded in gRPC response messages where the
|
||||||
|
* corresponding request message has used PageRequest.
|
||||||
|
*
|
||||||
|
* message SomeResponse {
|
||||||
|
* repeated Bar results = 1;
|
||||||
|
* PageResponse page = 2;
|
||||||
|
* }
|
||||||
|
*/
|
||||||
|
export interface PageResponseSDKType {
|
||||||
|
next_key: Uint8Array;
|
||||||
|
total: Long;
|
||||||
|
}
|
||||||
|
export declare const PageRequest: {
|
||||||
|
encode(message: PageRequest, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): PageRequest;
|
||||||
|
fromPartial(object: DeepPartial<PageRequest>): PageRequest;
|
||||||
|
};
|
||||||
|
export declare const PageResponse: {
|
||||||
|
encode(message: PageResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): PageResponse;
|
||||||
|
fromPartial(object: DeepPartial<PageResponse>): PageResponse;
|
||||||
|
};
|
66
packages/codegen/dist/cosmos/base/reflection/v1beta1/reflection.d.ts
vendored
Normal file
66
packages/codegen/dist/cosmos/base/reflection/v1beta1/reflection.d.ts
vendored
Normal file
@ -0,0 +1,66 @@
|
|||||||
|
import * as _m0 from "protobufjs/minimal";
|
||||||
|
import { DeepPartial } from "../../../../helpers";
|
||||||
|
/** ListAllInterfacesRequest is the request type of the ListAllInterfaces RPC. */
|
||||||
|
export interface ListAllInterfacesRequest {
|
||||||
|
}
|
||||||
|
/** ListAllInterfacesRequest is the request type of the ListAllInterfaces RPC. */
|
||||||
|
export interface ListAllInterfacesRequestSDKType {
|
||||||
|
}
|
||||||
|
/** ListAllInterfacesResponse is the response type of the ListAllInterfaces RPC. */
|
||||||
|
export interface ListAllInterfacesResponse {
|
||||||
|
/** interface_names is an array of all the registered interfaces. */
|
||||||
|
interfaceNames: string[];
|
||||||
|
}
|
||||||
|
/** ListAllInterfacesResponse is the response type of the ListAllInterfaces RPC. */
|
||||||
|
export interface ListAllInterfacesResponseSDKType {
|
||||||
|
interface_names: string[];
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* ListImplementationsRequest is the request type of the ListImplementations
|
||||||
|
* RPC.
|
||||||
|
*/
|
||||||
|
export interface ListImplementationsRequest {
|
||||||
|
/** interface_name defines the interface to query the implementations for. */
|
||||||
|
interfaceName: string;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* ListImplementationsRequest is the request type of the ListImplementations
|
||||||
|
* RPC.
|
||||||
|
*/
|
||||||
|
export interface ListImplementationsRequestSDKType {
|
||||||
|
interface_name: string;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* ListImplementationsResponse is the response type of the ListImplementations
|
||||||
|
* RPC.
|
||||||
|
*/
|
||||||
|
export interface ListImplementationsResponse {
|
||||||
|
implementationMessageNames: string[];
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* ListImplementationsResponse is the response type of the ListImplementations
|
||||||
|
* RPC.
|
||||||
|
*/
|
||||||
|
export interface ListImplementationsResponseSDKType {
|
||||||
|
implementation_message_names: string[];
|
||||||
|
}
|
||||||
|
export declare const ListAllInterfacesRequest: {
|
||||||
|
encode(_: ListAllInterfacesRequest, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): ListAllInterfacesRequest;
|
||||||
|
fromPartial(_: DeepPartial<ListAllInterfacesRequest>): ListAllInterfacesRequest;
|
||||||
|
};
|
||||||
|
export declare const ListAllInterfacesResponse: {
|
||||||
|
encode(message: ListAllInterfacesResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): ListAllInterfacesResponse;
|
||||||
|
fromPartial(object: DeepPartial<ListAllInterfacesResponse>): ListAllInterfacesResponse;
|
||||||
|
};
|
||||||
|
export declare const ListImplementationsRequest: {
|
||||||
|
encode(message: ListImplementationsRequest, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): ListImplementationsRequest;
|
||||||
|
fromPartial(object: DeepPartial<ListImplementationsRequest>): ListImplementationsRequest;
|
||||||
|
};
|
||||||
|
export declare const ListImplementationsResponse: {
|
||||||
|
encode(message: ListImplementationsResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): ListImplementationsResponse;
|
||||||
|
fromPartial(object: DeepPartial<ListImplementationsResponse>): ListImplementationsResponse;
|
||||||
|
};
|
451
packages/codegen/dist/cosmos/base/reflection/v2alpha1/reflection.d.ts
vendored
Normal file
451
packages/codegen/dist/cosmos/base/reflection/v2alpha1/reflection.d.ts
vendored
Normal file
@ -0,0 +1,451 @@
|
|||||||
|
import * as _m0 from "protobufjs/minimal";
|
||||||
|
import { DeepPartial } from "../../../../helpers";
|
||||||
|
/** AppDescriptor describes a cosmos-sdk based application */
|
||||||
|
export interface AppDescriptor {
|
||||||
|
/**
|
||||||
|
* AuthnDescriptor provides information on how to authenticate transactions on the application
|
||||||
|
* NOTE: experimental and subject to change in future releases.
|
||||||
|
*/
|
||||||
|
authn?: AuthnDescriptor;
|
||||||
|
/** chain provides the chain descriptor */
|
||||||
|
chain?: ChainDescriptor;
|
||||||
|
/** codec provides metadata information regarding codec related types */
|
||||||
|
codec?: CodecDescriptor;
|
||||||
|
/** configuration provides metadata information regarding the sdk.Config type */
|
||||||
|
configuration?: ConfigurationDescriptor;
|
||||||
|
/** query_services provides metadata information regarding the available queriable endpoints */
|
||||||
|
queryServices?: QueryServicesDescriptor;
|
||||||
|
/** tx provides metadata information regarding how to send transactions to the given application */
|
||||||
|
tx?: TxDescriptor;
|
||||||
|
}
|
||||||
|
/** AppDescriptor describes a cosmos-sdk based application */
|
||||||
|
export interface AppDescriptorSDKType {
|
||||||
|
authn?: AuthnDescriptorSDKType;
|
||||||
|
chain?: ChainDescriptorSDKType;
|
||||||
|
codec?: CodecDescriptorSDKType;
|
||||||
|
configuration?: ConfigurationDescriptorSDKType;
|
||||||
|
query_services?: QueryServicesDescriptorSDKType;
|
||||||
|
tx?: TxDescriptorSDKType;
|
||||||
|
}
|
||||||
|
/** TxDescriptor describes the accepted transaction type */
|
||||||
|
export interface TxDescriptor {
|
||||||
|
/**
|
||||||
|
* fullname is the protobuf fullname of the raw transaction type (for instance the tx.Tx type)
|
||||||
|
* it is not meant to support polymorphism of transaction types, it is supposed to be used by
|
||||||
|
* reflection clients to understand if they can handle a specific transaction type in an application.
|
||||||
|
*/
|
||||||
|
fullname: string;
|
||||||
|
/** msgs lists the accepted application messages (sdk.Msg) */
|
||||||
|
msgs: MsgDescriptor[];
|
||||||
|
}
|
||||||
|
/** TxDescriptor describes the accepted transaction type */
|
||||||
|
export interface TxDescriptorSDKType {
|
||||||
|
fullname: string;
|
||||||
|
msgs: MsgDescriptorSDKType[];
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* AuthnDescriptor provides information on how to sign transactions without relying
|
||||||
|
* on the online RPCs GetTxMetadata and CombineUnsignedTxAndSignatures
|
||||||
|
*/
|
||||||
|
export interface AuthnDescriptor {
|
||||||
|
/** sign_modes defines the supported signature algorithm */
|
||||||
|
signModes: SigningModeDescriptor[];
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* AuthnDescriptor provides information on how to sign transactions without relying
|
||||||
|
* on the online RPCs GetTxMetadata and CombineUnsignedTxAndSignatures
|
||||||
|
*/
|
||||||
|
export interface AuthnDescriptorSDKType {
|
||||||
|
sign_modes: SigningModeDescriptorSDKType[];
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* SigningModeDescriptor provides information on a signing flow of the application
|
||||||
|
* NOTE(fdymylja): here we could go as far as providing an entire flow on how
|
||||||
|
* to sign a message given a SigningModeDescriptor, but it's better to think about
|
||||||
|
* this another time
|
||||||
|
*/
|
||||||
|
export interface SigningModeDescriptor {
|
||||||
|
/** name defines the unique name of the signing mode */
|
||||||
|
name: string;
|
||||||
|
/** number is the unique int32 identifier for the sign_mode enum */
|
||||||
|
number: number;
|
||||||
|
/**
|
||||||
|
* authn_info_provider_method_fullname defines the fullname of the method to call to get
|
||||||
|
* the metadata required to authenticate using the provided sign_modes
|
||||||
|
*/
|
||||||
|
authnInfoProviderMethodFullname: string;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* SigningModeDescriptor provides information on a signing flow of the application
|
||||||
|
* NOTE(fdymylja): here we could go as far as providing an entire flow on how
|
||||||
|
* to sign a message given a SigningModeDescriptor, but it's better to think about
|
||||||
|
* this another time
|
||||||
|
*/
|
||||||
|
export interface SigningModeDescriptorSDKType {
|
||||||
|
name: string;
|
||||||
|
number: number;
|
||||||
|
authn_info_provider_method_fullname: string;
|
||||||
|
}
|
||||||
|
/** ChainDescriptor describes chain information of the application */
|
||||||
|
export interface ChainDescriptor {
|
||||||
|
/** id is the chain id */
|
||||||
|
id: string;
|
||||||
|
}
|
||||||
|
/** ChainDescriptor describes chain information of the application */
|
||||||
|
export interface ChainDescriptorSDKType {
|
||||||
|
id: string;
|
||||||
|
}
|
||||||
|
/** CodecDescriptor describes the registered interfaces and provides metadata information on the types */
|
||||||
|
export interface CodecDescriptor {
|
||||||
|
/** interfaces is a list of the registerted interfaces descriptors */
|
||||||
|
interfaces: InterfaceDescriptor[];
|
||||||
|
}
|
||||||
|
/** CodecDescriptor describes the registered interfaces and provides metadata information on the types */
|
||||||
|
export interface CodecDescriptorSDKType {
|
||||||
|
interfaces: InterfaceDescriptorSDKType[];
|
||||||
|
}
|
||||||
|
/** InterfaceDescriptor describes the implementation of an interface */
|
||||||
|
export interface InterfaceDescriptor {
|
||||||
|
/** fullname is the name of the interface */
|
||||||
|
fullname: string;
|
||||||
|
/**
|
||||||
|
* interface_accepting_messages contains information regarding the proto messages which contain the interface as
|
||||||
|
* google.protobuf.Any field
|
||||||
|
*/
|
||||||
|
interfaceAcceptingMessages: InterfaceAcceptingMessageDescriptor[];
|
||||||
|
/** interface_implementers is a list of the descriptors of the interface implementers */
|
||||||
|
interfaceImplementers: InterfaceImplementerDescriptor[];
|
||||||
|
}
|
||||||
|
/** InterfaceDescriptor describes the implementation of an interface */
|
||||||
|
export interface InterfaceDescriptorSDKType {
|
||||||
|
fullname: string;
|
||||||
|
interface_accepting_messages: InterfaceAcceptingMessageDescriptorSDKType[];
|
||||||
|
interface_implementers: InterfaceImplementerDescriptorSDKType[];
|
||||||
|
}
|
||||||
|
/** InterfaceImplementerDescriptor describes an interface implementer */
|
||||||
|
export interface InterfaceImplementerDescriptor {
|
||||||
|
/** fullname is the protobuf queryable name of the interface implementer */
|
||||||
|
fullname: string;
|
||||||
|
/**
|
||||||
|
* type_url defines the type URL used when marshalling the type as any
|
||||||
|
* this is required so we can provide type safe google.protobuf.Any marshalling and
|
||||||
|
* unmarshalling, making sure that we don't accept just 'any' type
|
||||||
|
* in our interface fields
|
||||||
|
*/
|
||||||
|
typeUrl: string;
|
||||||
|
}
|
||||||
|
/** InterfaceImplementerDescriptor describes an interface implementer */
|
||||||
|
export interface InterfaceImplementerDescriptorSDKType {
|
||||||
|
fullname: string;
|
||||||
|
type_url: string;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* InterfaceAcceptingMessageDescriptor describes a protobuf message which contains
|
||||||
|
* an interface represented as a google.protobuf.Any
|
||||||
|
*/
|
||||||
|
export interface InterfaceAcceptingMessageDescriptor {
|
||||||
|
/** fullname is the protobuf fullname of the type containing the interface */
|
||||||
|
fullname: string;
|
||||||
|
/**
|
||||||
|
* field_descriptor_names is a list of the protobuf name (not fullname) of the field
|
||||||
|
* which contains the interface as google.protobuf.Any (the interface is the same, but
|
||||||
|
* it can be in multiple fields of the same proto message)
|
||||||
|
*/
|
||||||
|
fieldDescriptorNames: string[];
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* InterfaceAcceptingMessageDescriptor describes a protobuf message which contains
|
||||||
|
* an interface represented as a google.protobuf.Any
|
||||||
|
*/
|
||||||
|
export interface InterfaceAcceptingMessageDescriptorSDKType {
|
||||||
|
fullname: string;
|
||||||
|
field_descriptor_names: string[];
|
||||||
|
}
|
||||||
|
/** ConfigurationDescriptor contains metadata information on the sdk.Config */
|
||||||
|
export interface ConfigurationDescriptor {
|
||||||
|
/** bech32_account_address_prefix is the account address prefix */
|
||||||
|
bech32AccountAddressPrefix: string;
|
||||||
|
}
|
||||||
|
/** ConfigurationDescriptor contains metadata information on the sdk.Config */
|
||||||
|
export interface ConfigurationDescriptorSDKType {
|
||||||
|
bech32_account_address_prefix: string;
|
||||||
|
}
|
||||||
|
/** MsgDescriptor describes a cosmos-sdk message that can be delivered with a transaction */
|
||||||
|
export interface MsgDescriptor {
|
||||||
|
/** msg_type_url contains the TypeURL of a sdk.Msg. */
|
||||||
|
msgTypeUrl: string;
|
||||||
|
}
|
||||||
|
/** MsgDescriptor describes a cosmos-sdk message that can be delivered with a transaction */
|
||||||
|
export interface MsgDescriptorSDKType {
|
||||||
|
msg_type_url: string;
|
||||||
|
}
|
||||||
|
/** GetAuthnDescriptorRequest is the request used for the GetAuthnDescriptor RPC */
|
||||||
|
export interface GetAuthnDescriptorRequest {
|
||||||
|
}
|
||||||
|
/** GetAuthnDescriptorRequest is the request used for the GetAuthnDescriptor RPC */
|
||||||
|
export interface GetAuthnDescriptorRequestSDKType {
|
||||||
|
}
|
||||||
|
/** GetAuthnDescriptorResponse is the response returned by the GetAuthnDescriptor RPC */
|
||||||
|
export interface GetAuthnDescriptorResponse {
|
||||||
|
/** authn describes how to authenticate to the application when sending transactions */
|
||||||
|
authn?: AuthnDescriptor;
|
||||||
|
}
|
||||||
|
/** GetAuthnDescriptorResponse is the response returned by the GetAuthnDescriptor RPC */
|
||||||
|
export interface GetAuthnDescriptorResponseSDKType {
|
||||||
|
authn?: AuthnDescriptorSDKType;
|
||||||
|
}
|
||||||
|
/** GetChainDescriptorRequest is the request used for the GetChainDescriptor RPC */
|
||||||
|
export interface GetChainDescriptorRequest {
|
||||||
|
}
|
||||||
|
/** GetChainDescriptorRequest is the request used for the GetChainDescriptor RPC */
|
||||||
|
export interface GetChainDescriptorRequestSDKType {
|
||||||
|
}
|
||||||
|
/** GetChainDescriptorResponse is the response returned by the GetChainDescriptor RPC */
|
||||||
|
export interface GetChainDescriptorResponse {
|
||||||
|
/** chain describes application chain information */
|
||||||
|
chain?: ChainDescriptor;
|
||||||
|
}
|
||||||
|
/** GetChainDescriptorResponse is the response returned by the GetChainDescriptor RPC */
|
||||||
|
export interface GetChainDescriptorResponseSDKType {
|
||||||
|
chain?: ChainDescriptorSDKType;
|
||||||
|
}
|
||||||
|
/** GetCodecDescriptorRequest is the request used for the GetCodecDescriptor RPC */
|
||||||
|
export interface GetCodecDescriptorRequest {
|
||||||
|
}
|
||||||
|
/** GetCodecDescriptorRequest is the request used for the GetCodecDescriptor RPC */
|
||||||
|
export interface GetCodecDescriptorRequestSDKType {
|
||||||
|
}
|
||||||
|
/** GetCodecDescriptorResponse is the response returned by the GetCodecDescriptor RPC */
|
||||||
|
export interface GetCodecDescriptorResponse {
|
||||||
|
/** codec describes the application codec such as registered interfaces and implementations */
|
||||||
|
codec?: CodecDescriptor;
|
||||||
|
}
|
||||||
|
/** GetCodecDescriptorResponse is the response returned by the GetCodecDescriptor RPC */
|
||||||
|
export interface GetCodecDescriptorResponseSDKType {
|
||||||
|
codec?: CodecDescriptorSDKType;
|
||||||
|
}
|
||||||
|
/** GetConfigurationDescriptorRequest is the request used for the GetConfigurationDescriptor RPC */
|
||||||
|
export interface GetConfigurationDescriptorRequest {
|
||||||
|
}
|
||||||
|
/** GetConfigurationDescriptorRequest is the request used for the GetConfigurationDescriptor RPC */
|
||||||
|
export interface GetConfigurationDescriptorRequestSDKType {
|
||||||
|
}
|
||||||
|
/** GetConfigurationDescriptorResponse is the response returned by the GetConfigurationDescriptor RPC */
|
||||||
|
export interface GetConfigurationDescriptorResponse {
|
||||||
|
/** config describes the application's sdk.Config */
|
||||||
|
config?: ConfigurationDescriptor;
|
||||||
|
}
|
||||||
|
/** GetConfigurationDescriptorResponse is the response returned by the GetConfigurationDescriptor RPC */
|
||||||
|
export interface GetConfigurationDescriptorResponseSDKType {
|
||||||
|
config?: ConfigurationDescriptorSDKType;
|
||||||
|
}
|
||||||
|
/** GetQueryServicesDescriptorRequest is the request used for the GetQueryServicesDescriptor RPC */
|
||||||
|
export interface GetQueryServicesDescriptorRequest {
|
||||||
|
}
|
||||||
|
/** GetQueryServicesDescriptorRequest is the request used for the GetQueryServicesDescriptor RPC */
|
||||||
|
export interface GetQueryServicesDescriptorRequestSDKType {
|
||||||
|
}
|
||||||
|
/** GetQueryServicesDescriptorResponse is the response returned by the GetQueryServicesDescriptor RPC */
|
||||||
|
export interface GetQueryServicesDescriptorResponse {
|
||||||
|
/** queries provides information on the available queryable services */
|
||||||
|
queries?: QueryServicesDescriptor;
|
||||||
|
}
|
||||||
|
/** GetQueryServicesDescriptorResponse is the response returned by the GetQueryServicesDescriptor RPC */
|
||||||
|
export interface GetQueryServicesDescriptorResponseSDKType {
|
||||||
|
queries?: QueryServicesDescriptorSDKType;
|
||||||
|
}
|
||||||
|
/** GetTxDescriptorRequest is the request used for the GetTxDescriptor RPC */
|
||||||
|
export interface GetTxDescriptorRequest {
|
||||||
|
}
|
||||||
|
/** GetTxDescriptorRequest is the request used for the GetTxDescriptor RPC */
|
||||||
|
export interface GetTxDescriptorRequestSDKType {
|
||||||
|
}
|
||||||
|
/** GetTxDescriptorResponse is the response returned by the GetTxDescriptor RPC */
|
||||||
|
export interface GetTxDescriptorResponse {
|
||||||
|
/**
|
||||||
|
* tx provides information on msgs that can be forwarded to the application
|
||||||
|
* alongside the accepted transaction protobuf type
|
||||||
|
*/
|
||||||
|
tx?: TxDescriptor;
|
||||||
|
}
|
||||||
|
/** GetTxDescriptorResponse is the response returned by the GetTxDescriptor RPC */
|
||||||
|
export interface GetTxDescriptorResponseSDKType {
|
||||||
|
tx?: TxDescriptorSDKType;
|
||||||
|
}
|
||||||
|
/** QueryServicesDescriptor contains the list of cosmos-sdk queriable services */
|
||||||
|
export interface QueryServicesDescriptor {
|
||||||
|
/** query_services is a list of cosmos-sdk QueryServiceDescriptor */
|
||||||
|
queryServices: QueryServiceDescriptor[];
|
||||||
|
}
|
||||||
|
/** QueryServicesDescriptor contains the list of cosmos-sdk queriable services */
|
||||||
|
export interface QueryServicesDescriptorSDKType {
|
||||||
|
query_services: QueryServiceDescriptorSDKType[];
|
||||||
|
}
|
||||||
|
/** QueryServiceDescriptor describes a cosmos-sdk queryable service */
|
||||||
|
export interface QueryServiceDescriptor {
|
||||||
|
/** fullname is the protobuf fullname of the service descriptor */
|
||||||
|
fullname: string;
|
||||||
|
/** is_module describes if this service is actually exposed by an application's module */
|
||||||
|
isModule: boolean;
|
||||||
|
/** methods provides a list of query service methods */
|
||||||
|
methods: QueryMethodDescriptor[];
|
||||||
|
}
|
||||||
|
/** QueryServiceDescriptor describes a cosmos-sdk queryable service */
|
||||||
|
export interface QueryServiceDescriptorSDKType {
|
||||||
|
fullname: string;
|
||||||
|
is_module: boolean;
|
||||||
|
methods: QueryMethodDescriptorSDKType[];
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* QueryMethodDescriptor describes a queryable method of a query service
|
||||||
|
* no other info is provided beside method name and tendermint queryable path
|
||||||
|
* because it would be redundant with the grpc reflection service
|
||||||
|
*/
|
||||||
|
export interface QueryMethodDescriptor {
|
||||||
|
/** name is the protobuf name (not fullname) of the method */
|
||||||
|
name: string;
|
||||||
|
/**
|
||||||
|
* full_query_path is the path that can be used to query
|
||||||
|
* this method via tendermint abci.Query
|
||||||
|
*/
|
||||||
|
fullQueryPath: string;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* QueryMethodDescriptor describes a queryable method of a query service
|
||||||
|
* no other info is provided beside method name and tendermint queryable path
|
||||||
|
* because it would be redundant with the grpc reflection service
|
||||||
|
*/
|
||||||
|
export interface QueryMethodDescriptorSDKType {
|
||||||
|
name: string;
|
||||||
|
full_query_path: string;
|
||||||
|
}
|
||||||
|
export declare const AppDescriptor: {
|
||||||
|
encode(message: AppDescriptor, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): AppDescriptor;
|
||||||
|
fromPartial(object: DeepPartial<AppDescriptor>): AppDescriptor;
|
||||||
|
};
|
||||||
|
export declare const TxDescriptor: {
|
||||||
|
encode(message: TxDescriptor, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): TxDescriptor;
|
||||||
|
fromPartial(object: DeepPartial<TxDescriptor>): TxDescriptor;
|
||||||
|
};
|
||||||
|
export declare const AuthnDescriptor: {
|
||||||
|
encode(message: AuthnDescriptor, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): AuthnDescriptor;
|
||||||
|
fromPartial(object: DeepPartial<AuthnDescriptor>): AuthnDescriptor;
|
||||||
|
};
|
||||||
|
export declare const SigningModeDescriptor: {
|
||||||
|
encode(message: SigningModeDescriptor, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): SigningModeDescriptor;
|
||||||
|
fromPartial(object: DeepPartial<SigningModeDescriptor>): SigningModeDescriptor;
|
||||||
|
};
|
||||||
|
export declare const ChainDescriptor: {
|
||||||
|
encode(message: ChainDescriptor, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): ChainDescriptor;
|
||||||
|
fromPartial(object: DeepPartial<ChainDescriptor>): ChainDescriptor;
|
||||||
|
};
|
||||||
|
export declare const CodecDescriptor: {
|
||||||
|
encode(message: CodecDescriptor, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): CodecDescriptor;
|
||||||
|
fromPartial(object: DeepPartial<CodecDescriptor>): CodecDescriptor;
|
||||||
|
};
|
||||||
|
export declare const InterfaceDescriptor: {
|
||||||
|
encode(message: InterfaceDescriptor, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): InterfaceDescriptor;
|
||||||
|
fromPartial(object: DeepPartial<InterfaceDescriptor>): InterfaceDescriptor;
|
||||||
|
};
|
||||||
|
export declare const InterfaceImplementerDescriptor: {
|
||||||
|
encode(message: InterfaceImplementerDescriptor, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): InterfaceImplementerDescriptor;
|
||||||
|
fromPartial(object: DeepPartial<InterfaceImplementerDescriptor>): InterfaceImplementerDescriptor;
|
||||||
|
};
|
||||||
|
export declare const InterfaceAcceptingMessageDescriptor: {
|
||||||
|
encode(message: InterfaceAcceptingMessageDescriptor, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): InterfaceAcceptingMessageDescriptor;
|
||||||
|
fromPartial(object: DeepPartial<InterfaceAcceptingMessageDescriptor>): InterfaceAcceptingMessageDescriptor;
|
||||||
|
};
|
||||||
|
export declare const ConfigurationDescriptor: {
|
||||||
|
encode(message: ConfigurationDescriptor, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): ConfigurationDescriptor;
|
||||||
|
fromPartial(object: DeepPartial<ConfigurationDescriptor>): ConfigurationDescriptor;
|
||||||
|
};
|
||||||
|
export declare const MsgDescriptor: {
|
||||||
|
encode(message: MsgDescriptor, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): MsgDescriptor;
|
||||||
|
fromPartial(object: DeepPartial<MsgDescriptor>): MsgDescriptor;
|
||||||
|
};
|
||||||
|
export declare const GetAuthnDescriptorRequest: {
|
||||||
|
encode(_: GetAuthnDescriptorRequest, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): GetAuthnDescriptorRequest;
|
||||||
|
fromPartial(_: DeepPartial<GetAuthnDescriptorRequest>): GetAuthnDescriptorRequest;
|
||||||
|
};
|
||||||
|
export declare const GetAuthnDescriptorResponse: {
|
||||||
|
encode(message: GetAuthnDescriptorResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): GetAuthnDescriptorResponse;
|
||||||
|
fromPartial(object: DeepPartial<GetAuthnDescriptorResponse>): GetAuthnDescriptorResponse;
|
||||||
|
};
|
||||||
|
export declare const GetChainDescriptorRequest: {
|
||||||
|
encode(_: GetChainDescriptorRequest, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): GetChainDescriptorRequest;
|
||||||
|
fromPartial(_: DeepPartial<GetChainDescriptorRequest>): GetChainDescriptorRequest;
|
||||||
|
};
|
||||||
|
export declare const GetChainDescriptorResponse: {
|
||||||
|
encode(message: GetChainDescriptorResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): GetChainDescriptorResponse;
|
||||||
|
fromPartial(object: DeepPartial<GetChainDescriptorResponse>): GetChainDescriptorResponse;
|
||||||
|
};
|
||||||
|
export declare const GetCodecDescriptorRequest: {
|
||||||
|
encode(_: GetCodecDescriptorRequest, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): GetCodecDescriptorRequest;
|
||||||
|
fromPartial(_: DeepPartial<GetCodecDescriptorRequest>): GetCodecDescriptorRequest;
|
||||||
|
};
|
||||||
|
export declare const GetCodecDescriptorResponse: {
|
||||||
|
encode(message: GetCodecDescriptorResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): GetCodecDescriptorResponse;
|
||||||
|
fromPartial(object: DeepPartial<GetCodecDescriptorResponse>): GetCodecDescriptorResponse;
|
||||||
|
};
|
||||||
|
export declare const GetConfigurationDescriptorRequest: {
|
||||||
|
encode(_: GetConfigurationDescriptorRequest, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): GetConfigurationDescriptorRequest;
|
||||||
|
fromPartial(_: DeepPartial<GetConfigurationDescriptorRequest>): GetConfigurationDescriptorRequest;
|
||||||
|
};
|
||||||
|
export declare const GetConfigurationDescriptorResponse: {
|
||||||
|
encode(message: GetConfigurationDescriptorResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): GetConfigurationDescriptorResponse;
|
||||||
|
fromPartial(object: DeepPartial<GetConfigurationDescriptorResponse>): GetConfigurationDescriptorResponse;
|
||||||
|
};
|
||||||
|
export declare const GetQueryServicesDescriptorRequest: {
|
||||||
|
encode(_: GetQueryServicesDescriptorRequest, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): GetQueryServicesDescriptorRequest;
|
||||||
|
fromPartial(_: DeepPartial<GetQueryServicesDescriptorRequest>): GetQueryServicesDescriptorRequest;
|
||||||
|
};
|
||||||
|
export declare const GetQueryServicesDescriptorResponse: {
|
||||||
|
encode(message: GetQueryServicesDescriptorResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): GetQueryServicesDescriptorResponse;
|
||||||
|
fromPartial(object: DeepPartial<GetQueryServicesDescriptorResponse>): GetQueryServicesDescriptorResponse;
|
||||||
|
};
|
||||||
|
export declare const GetTxDescriptorRequest: {
|
||||||
|
encode(_: GetTxDescriptorRequest, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): GetTxDescriptorRequest;
|
||||||
|
fromPartial(_: DeepPartial<GetTxDescriptorRequest>): GetTxDescriptorRequest;
|
||||||
|
};
|
||||||
|
export declare const GetTxDescriptorResponse: {
|
||||||
|
encode(message: GetTxDescriptorResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): GetTxDescriptorResponse;
|
||||||
|
fromPartial(object: DeepPartial<GetTxDescriptorResponse>): GetTxDescriptorResponse;
|
||||||
|
};
|
||||||
|
export declare const QueryServicesDescriptor: {
|
||||||
|
encode(message: QueryServicesDescriptor, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryServicesDescriptor;
|
||||||
|
fromPartial(object: DeepPartial<QueryServicesDescriptor>): QueryServicesDescriptor;
|
||||||
|
};
|
||||||
|
export declare const QueryServiceDescriptor: {
|
||||||
|
encode(message: QueryServiceDescriptor, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryServiceDescriptor;
|
||||||
|
fromPartial(object: DeepPartial<QueryServiceDescriptor>): QueryServiceDescriptor;
|
||||||
|
};
|
||||||
|
export declare const QueryMethodDescriptor: {
|
||||||
|
encode(message: QueryMethodDescriptor, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryMethodDescriptor;
|
||||||
|
fromPartial(object: DeepPartial<QueryMethodDescriptor>): QueryMethodDescriptor;
|
||||||
|
};
|
151
packages/codegen/dist/cosmos/base/snapshots/v1beta1/snapshot.d.ts
vendored
Normal file
151
packages/codegen/dist/cosmos/base/snapshots/v1beta1/snapshot.d.ts
vendored
Normal file
@ -0,0 +1,151 @@
|
|||||||
|
/// <reference types="long" />
|
||||||
|
import { Long, DeepPartial } from "../../../../helpers";
|
||||||
|
import * as _m0 from "protobufjs/minimal";
|
||||||
|
/** Snapshot contains Tendermint state sync snapshot info. */
|
||||||
|
export interface Snapshot {
|
||||||
|
height: Long;
|
||||||
|
format: number;
|
||||||
|
chunks: number;
|
||||||
|
hash: Uint8Array;
|
||||||
|
metadata?: Metadata;
|
||||||
|
}
|
||||||
|
/** Snapshot contains Tendermint state sync snapshot info. */
|
||||||
|
export interface SnapshotSDKType {
|
||||||
|
height: Long;
|
||||||
|
format: number;
|
||||||
|
chunks: number;
|
||||||
|
hash: Uint8Array;
|
||||||
|
metadata?: MetadataSDKType;
|
||||||
|
}
|
||||||
|
/** Metadata contains SDK-specific snapshot metadata. */
|
||||||
|
export interface Metadata {
|
||||||
|
/** SHA-256 chunk hashes */
|
||||||
|
chunkHashes: Uint8Array[];
|
||||||
|
}
|
||||||
|
/** Metadata contains SDK-specific snapshot metadata. */
|
||||||
|
export interface MetadataSDKType {
|
||||||
|
chunk_hashes: Uint8Array[];
|
||||||
|
}
|
||||||
|
/** SnapshotItem is an item contained in a rootmulti.Store snapshot. */
|
||||||
|
export interface SnapshotItem {
|
||||||
|
store?: SnapshotStoreItem;
|
||||||
|
iavl?: SnapshotIAVLItem;
|
||||||
|
extension?: SnapshotExtensionMeta;
|
||||||
|
extensionPayload?: SnapshotExtensionPayload;
|
||||||
|
kv?: SnapshotKVItem;
|
||||||
|
schema?: SnapshotSchema;
|
||||||
|
}
|
||||||
|
/** SnapshotItem is an item contained in a rootmulti.Store snapshot. */
|
||||||
|
export interface SnapshotItemSDKType {
|
||||||
|
store?: SnapshotStoreItemSDKType;
|
||||||
|
iavl?: SnapshotIAVLItemSDKType;
|
||||||
|
extension?: SnapshotExtensionMetaSDKType;
|
||||||
|
extension_payload?: SnapshotExtensionPayloadSDKType;
|
||||||
|
kv?: SnapshotKVItemSDKType;
|
||||||
|
schema?: SnapshotSchemaSDKType;
|
||||||
|
}
|
||||||
|
/** SnapshotStoreItem contains metadata about a snapshotted store. */
|
||||||
|
export interface SnapshotStoreItem {
|
||||||
|
name: string;
|
||||||
|
}
|
||||||
|
/** SnapshotStoreItem contains metadata about a snapshotted store. */
|
||||||
|
export interface SnapshotStoreItemSDKType {
|
||||||
|
name: string;
|
||||||
|
}
|
||||||
|
/** SnapshotIAVLItem is an exported IAVL node. */
|
||||||
|
export interface SnapshotIAVLItem {
|
||||||
|
key: Uint8Array;
|
||||||
|
value: Uint8Array;
|
||||||
|
/** version is block height */
|
||||||
|
version: Long;
|
||||||
|
/** height is depth of the tree. */
|
||||||
|
height: number;
|
||||||
|
}
|
||||||
|
/** SnapshotIAVLItem is an exported IAVL node. */
|
||||||
|
export interface SnapshotIAVLItemSDKType {
|
||||||
|
key: Uint8Array;
|
||||||
|
value: Uint8Array;
|
||||||
|
version: Long;
|
||||||
|
height: number;
|
||||||
|
}
|
||||||
|
/** SnapshotExtensionMeta contains metadata about an external snapshotter. */
|
||||||
|
export interface SnapshotExtensionMeta {
|
||||||
|
name: string;
|
||||||
|
format: number;
|
||||||
|
}
|
||||||
|
/** SnapshotExtensionMeta contains metadata about an external snapshotter. */
|
||||||
|
export interface SnapshotExtensionMetaSDKType {
|
||||||
|
name: string;
|
||||||
|
format: number;
|
||||||
|
}
|
||||||
|
/** SnapshotExtensionPayload contains payloads of an external snapshotter. */
|
||||||
|
export interface SnapshotExtensionPayload {
|
||||||
|
payload: Uint8Array;
|
||||||
|
}
|
||||||
|
/** SnapshotExtensionPayload contains payloads of an external snapshotter. */
|
||||||
|
export interface SnapshotExtensionPayloadSDKType {
|
||||||
|
payload: Uint8Array;
|
||||||
|
}
|
||||||
|
/** SnapshotKVItem is an exported Key/Value Pair */
|
||||||
|
export interface SnapshotKVItem {
|
||||||
|
key: Uint8Array;
|
||||||
|
value: Uint8Array;
|
||||||
|
}
|
||||||
|
/** SnapshotKVItem is an exported Key/Value Pair */
|
||||||
|
export interface SnapshotKVItemSDKType {
|
||||||
|
key: Uint8Array;
|
||||||
|
value: Uint8Array;
|
||||||
|
}
|
||||||
|
/** SnapshotSchema is an exported schema of smt store */
|
||||||
|
export interface SnapshotSchema {
|
||||||
|
keys: Uint8Array[];
|
||||||
|
}
|
||||||
|
/** SnapshotSchema is an exported schema of smt store */
|
||||||
|
export interface SnapshotSchemaSDKType {
|
||||||
|
keys: Uint8Array[];
|
||||||
|
}
|
||||||
|
export declare const Snapshot: {
|
||||||
|
encode(message: Snapshot, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): Snapshot;
|
||||||
|
fromPartial(object: DeepPartial<Snapshot>): Snapshot;
|
||||||
|
};
|
||||||
|
export declare const Metadata: {
|
||||||
|
encode(message: Metadata, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): Metadata;
|
||||||
|
fromPartial(object: DeepPartial<Metadata>): Metadata;
|
||||||
|
};
|
||||||
|
export declare const SnapshotItem: {
|
||||||
|
encode(message: SnapshotItem, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): SnapshotItem;
|
||||||
|
fromPartial(object: DeepPartial<SnapshotItem>): SnapshotItem;
|
||||||
|
};
|
||||||
|
export declare const SnapshotStoreItem: {
|
||||||
|
encode(message: SnapshotStoreItem, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): SnapshotStoreItem;
|
||||||
|
fromPartial(object: DeepPartial<SnapshotStoreItem>): SnapshotStoreItem;
|
||||||
|
};
|
||||||
|
export declare const SnapshotIAVLItem: {
|
||||||
|
encode(message: SnapshotIAVLItem, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): SnapshotIAVLItem;
|
||||||
|
fromPartial(object: DeepPartial<SnapshotIAVLItem>): SnapshotIAVLItem;
|
||||||
|
};
|
||||||
|
export declare const SnapshotExtensionMeta: {
|
||||||
|
encode(message: SnapshotExtensionMeta, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): SnapshotExtensionMeta;
|
||||||
|
fromPartial(object: DeepPartial<SnapshotExtensionMeta>): SnapshotExtensionMeta;
|
||||||
|
};
|
||||||
|
export declare const SnapshotExtensionPayload: {
|
||||||
|
encode(message: SnapshotExtensionPayload, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): SnapshotExtensionPayload;
|
||||||
|
fromPartial(object: DeepPartial<SnapshotExtensionPayload>): SnapshotExtensionPayload;
|
||||||
|
};
|
||||||
|
export declare const SnapshotKVItem: {
|
||||||
|
encode(message: SnapshotKVItem, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): SnapshotKVItem;
|
||||||
|
fromPartial(object: DeepPartial<SnapshotKVItem>): SnapshotKVItem;
|
||||||
|
};
|
||||||
|
export declare const SnapshotSchema: {
|
||||||
|
encode(message: SnapshotSchema, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): SnapshotSchema;
|
||||||
|
fromPartial(object: DeepPartial<SnapshotSchema>): SnapshotSchema;
|
||||||
|
};
|
66
packages/codegen/dist/cosmos/base/store/v1beta1/commit_info.d.ts
vendored
Normal file
66
packages/codegen/dist/cosmos/base/store/v1beta1/commit_info.d.ts
vendored
Normal file
@ -0,0 +1,66 @@
|
|||||||
|
/// <reference types="long" />
|
||||||
|
import { Long, DeepPartial } from "../../../../helpers";
|
||||||
|
import * as _m0 from "protobufjs/minimal";
|
||||||
|
/**
|
||||||
|
* CommitInfo defines commit information used by the multi-store when committing
|
||||||
|
* a version/height.
|
||||||
|
*/
|
||||||
|
export interface CommitInfo {
|
||||||
|
version: Long;
|
||||||
|
storeInfos: StoreInfo[];
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* CommitInfo defines commit information used by the multi-store when committing
|
||||||
|
* a version/height.
|
||||||
|
*/
|
||||||
|
export interface CommitInfoSDKType {
|
||||||
|
version: Long;
|
||||||
|
store_infos: StoreInfoSDKType[];
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* StoreInfo defines store-specific commit information. It contains a reference
|
||||||
|
* between a store name and the commit ID.
|
||||||
|
*/
|
||||||
|
export interface StoreInfo {
|
||||||
|
name: string;
|
||||||
|
commitId?: CommitID;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* StoreInfo defines store-specific commit information. It contains a reference
|
||||||
|
* between a store name and the commit ID.
|
||||||
|
*/
|
||||||
|
export interface StoreInfoSDKType {
|
||||||
|
name: string;
|
||||||
|
commit_id?: CommitIDSDKType;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* CommitID defines the committment information when a specific store is
|
||||||
|
* committed.
|
||||||
|
*/
|
||||||
|
export interface CommitID {
|
||||||
|
version: Long;
|
||||||
|
hash: Uint8Array;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* CommitID defines the committment information when a specific store is
|
||||||
|
* committed.
|
||||||
|
*/
|
||||||
|
export interface CommitIDSDKType {
|
||||||
|
version: Long;
|
||||||
|
hash: Uint8Array;
|
||||||
|
}
|
||||||
|
export declare const CommitInfo: {
|
||||||
|
encode(message: CommitInfo, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): CommitInfo;
|
||||||
|
fromPartial(object: DeepPartial<CommitInfo>): CommitInfo;
|
||||||
|
};
|
||||||
|
export declare const StoreInfo: {
|
||||||
|
encode(message: StoreInfo, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): StoreInfo;
|
||||||
|
fromPartial(object: DeepPartial<StoreInfo>): StoreInfo;
|
||||||
|
};
|
||||||
|
export declare const CommitID: {
|
||||||
|
encode(message: CommitID, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): CommitID;
|
||||||
|
fromPartial(object: DeepPartial<CommitID>): CommitID;
|
||||||
|
};
|
35
packages/codegen/dist/cosmos/base/store/v1beta1/listening.d.ts
vendored
Normal file
35
packages/codegen/dist/cosmos/base/store/v1beta1/listening.d.ts
vendored
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
import * as _m0 from "protobufjs/minimal";
|
||||||
|
import { DeepPartial } from "../../../../helpers";
|
||||||
|
/**
|
||||||
|
* StoreKVPair is a KVStore KVPair used for listening to state changes (Sets and Deletes)
|
||||||
|
* It optionally includes the StoreKey for the originating KVStore and a Boolean flag to distinguish between Sets and
|
||||||
|
* Deletes
|
||||||
|
*
|
||||||
|
* Since: cosmos-sdk 0.43
|
||||||
|
*/
|
||||||
|
export interface StoreKVPair {
|
||||||
|
/** the store key for the KVStore this pair originates from */
|
||||||
|
storeKey: string;
|
||||||
|
/** true indicates a delete operation, false indicates a set operation */
|
||||||
|
delete: boolean;
|
||||||
|
key: Uint8Array;
|
||||||
|
value: Uint8Array;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* StoreKVPair is a KVStore KVPair used for listening to state changes (Sets and Deletes)
|
||||||
|
* It optionally includes the StoreKey for the originating KVStore and a Boolean flag to distinguish between Sets and
|
||||||
|
* Deletes
|
||||||
|
*
|
||||||
|
* Since: cosmos-sdk 0.43
|
||||||
|
*/
|
||||||
|
export interface StoreKVPairSDKType {
|
||||||
|
store_key: string;
|
||||||
|
delete: boolean;
|
||||||
|
key: Uint8Array;
|
||||||
|
value: Uint8Array;
|
||||||
|
}
|
||||||
|
export declare const StoreKVPair: {
|
||||||
|
encode(message: StoreKVPair, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): StoreKVPair;
|
||||||
|
fromPartial(object: DeepPartial<StoreKVPair>): StoreKVPair;
|
||||||
|
};
|
245
packages/codegen/dist/cosmos/base/tendermint/v1beta1/query.d.ts
vendored
Normal file
245
packages/codegen/dist/cosmos/base/tendermint/v1beta1/query.d.ts
vendored
Normal file
@ -0,0 +1,245 @@
|
|||||||
|
/// <reference types="long" />
|
||||||
|
import { PageRequest, PageRequestSDKType, PageResponse, PageResponseSDKType } from "../../query/v1beta1/pagination";
|
||||||
|
import { Any, AnySDKType } from "../../../../google/protobuf/any";
|
||||||
|
import { BlockID, BlockIDSDKType } from "../../../../tendermint/types/types";
|
||||||
|
import { Block, BlockSDKType } from "../../../../tendermint/types/block";
|
||||||
|
import { NodeInfo, NodeInfoSDKType } from "../../../../tendermint/p2p/types";
|
||||||
|
import { Long, DeepPartial } from "../../../../helpers";
|
||||||
|
import * as _m0 from "protobufjs/minimal";
|
||||||
|
/** GetValidatorSetByHeightRequest is the request type for the Query/GetValidatorSetByHeight RPC method. */
|
||||||
|
export interface GetValidatorSetByHeightRequest {
|
||||||
|
height: Long;
|
||||||
|
/** pagination defines an pagination for the request. */
|
||||||
|
pagination?: PageRequest;
|
||||||
|
}
|
||||||
|
/** GetValidatorSetByHeightRequest is the request type for the Query/GetValidatorSetByHeight RPC method. */
|
||||||
|
export interface GetValidatorSetByHeightRequestSDKType {
|
||||||
|
height: Long;
|
||||||
|
pagination?: PageRequestSDKType;
|
||||||
|
}
|
||||||
|
/** GetValidatorSetByHeightResponse is the response type for the Query/GetValidatorSetByHeight RPC method. */
|
||||||
|
export interface GetValidatorSetByHeightResponse {
|
||||||
|
blockHeight: Long;
|
||||||
|
validators: Validator[];
|
||||||
|
/** pagination defines an pagination for the response. */
|
||||||
|
pagination?: PageResponse;
|
||||||
|
}
|
||||||
|
/** GetValidatorSetByHeightResponse is the response type for the Query/GetValidatorSetByHeight RPC method. */
|
||||||
|
export interface GetValidatorSetByHeightResponseSDKType {
|
||||||
|
block_height: Long;
|
||||||
|
validators: ValidatorSDKType[];
|
||||||
|
pagination?: PageResponseSDKType;
|
||||||
|
}
|
||||||
|
/** GetLatestValidatorSetRequest is the request type for the Query/GetValidatorSetByHeight RPC method. */
|
||||||
|
export interface GetLatestValidatorSetRequest {
|
||||||
|
/** pagination defines an pagination for the request. */
|
||||||
|
pagination?: PageRequest;
|
||||||
|
}
|
||||||
|
/** GetLatestValidatorSetRequest is the request type for the Query/GetValidatorSetByHeight RPC method. */
|
||||||
|
export interface GetLatestValidatorSetRequestSDKType {
|
||||||
|
pagination?: PageRequestSDKType;
|
||||||
|
}
|
||||||
|
/** GetLatestValidatorSetResponse is the response type for the Query/GetValidatorSetByHeight RPC method. */
|
||||||
|
export interface GetLatestValidatorSetResponse {
|
||||||
|
blockHeight: Long;
|
||||||
|
validators: Validator[];
|
||||||
|
/** pagination defines an pagination for the response. */
|
||||||
|
pagination?: PageResponse;
|
||||||
|
}
|
||||||
|
/** GetLatestValidatorSetResponse is the response type for the Query/GetValidatorSetByHeight RPC method. */
|
||||||
|
export interface GetLatestValidatorSetResponseSDKType {
|
||||||
|
block_height: Long;
|
||||||
|
validators: ValidatorSDKType[];
|
||||||
|
pagination?: PageResponseSDKType;
|
||||||
|
}
|
||||||
|
/** Validator is the type for the validator-set. */
|
||||||
|
export interface Validator {
|
||||||
|
address: string;
|
||||||
|
pubKey?: Any;
|
||||||
|
votingPower: Long;
|
||||||
|
proposerPriority: Long;
|
||||||
|
}
|
||||||
|
/** Validator is the type for the validator-set. */
|
||||||
|
export interface ValidatorSDKType {
|
||||||
|
address: string;
|
||||||
|
pub_key?: AnySDKType;
|
||||||
|
voting_power: Long;
|
||||||
|
proposer_priority: Long;
|
||||||
|
}
|
||||||
|
/** GetBlockByHeightRequest is the request type for the Query/GetBlockByHeight RPC method. */
|
||||||
|
export interface GetBlockByHeightRequest {
|
||||||
|
height: Long;
|
||||||
|
}
|
||||||
|
/** GetBlockByHeightRequest is the request type for the Query/GetBlockByHeight RPC method. */
|
||||||
|
export interface GetBlockByHeightRequestSDKType {
|
||||||
|
height: Long;
|
||||||
|
}
|
||||||
|
/** GetBlockByHeightResponse is the response type for the Query/GetBlockByHeight RPC method. */
|
||||||
|
export interface GetBlockByHeightResponse {
|
||||||
|
blockId?: BlockID;
|
||||||
|
block?: Block;
|
||||||
|
}
|
||||||
|
/** GetBlockByHeightResponse is the response type for the Query/GetBlockByHeight RPC method. */
|
||||||
|
export interface GetBlockByHeightResponseSDKType {
|
||||||
|
block_id?: BlockIDSDKType;
|
||||||
|
block?: BlockSDKType;
|
||||||
|
}
|
||||||
|
/** GetLatestBlockRequest is the request type for the Query/GetLatestBlock RPC method. */
|
||||||
|
export interface GetLatestBlockRequest {
|
||||||
|
}
|
||||||
|
/** GetLatestBlockRequest is the request type for the Query/GetLatestBlock RPC method. */
|
||||||
|
export interface GetLatestBlockRequestSDKType {
|
||||||
|
}
|
||||||
|
/** GetLatestBlockResponse is the response type for the Query/GetLatestBlock RPC method. */
|
||||||
|
export interface GetLatestBlockResponse {
|
||||||
|
blockId?: BlockID;
|
||||||
|
block?: Block;
|
||||||
|
}
|
||||||
|
/** GetLatestBlockResponse is the response type for the Query/GetLatestBlock RPC method. */
|
||||||
|
export interface GetLatestBlockResponseSDKType {
|
||||||
|
block_id?: BlockIDSDKType;
|
||||||
|
block?: BlockSDKType;
|
||||||
|
}
|
||||||
|
/** GetSyncingRequest is the request type for the Query/GetSyncing RPC method. */
|
||||||
|
export interface GetSyncingRequest {
|
||||||
|
}
|
||||||
|
/** GetSyncingRequest is the request type for the Query/GetSyncing RPC method. */
|
||||||
|
export interface GetSyncingRequestSDKType {
|
||||||
|
}
|
||||||
|
/** GetSyncingResponse is the response type for the Query/GetSyncing RPC method. */
|
||||||
|
export interface GetSyncingResponse {
|
||||||
|
syncing: boolean;
|
||||||
|
}
|
||||||
|
/** GetSyncingResponse is the response type for the Query/GetSyncing RPC method. */
|
||||||
|
export interface GetSyncingResponseSDKType {
|
||||||
|
syncing: boolean;
|
||||||
|
}
|
||||||
|
/** GetNodeInfoRequest is the request type for the Query/GetNodeInfo RPC method. */
|
||||||
|
export interface GetNodeInfoRequest {
|
||||||
|
}
|
||||||
|
/** GetNodeInfoRequest is the request type for the Query/GetNodeInfo RPC method. */
|
||||||
|
export interface GetNodeInfoRequestSDKType {
|
||||||
|
}
|
||||||
|
/** GetNodeInfoResponse is the response type for the Query/GetNodeInfo RPC method. */
|
||||||
|
export interface GetNodeInfoResponse {
|
||||||
|
nodeInfo?: NodeInfo;
|
||||||
|
applicationVersion?: VersionInfo;
|
||||||
|
}
|
||||||
|
/** GetNodeInfoResponse is the response type for the Query/GetNodeInfo RPC method. */
|
||||||
|
export interface GetNodeInfoResponseSDKType {
|
||||||
|
node_info?: NodeInfoSDKType;
|
||||||
|
application_version?: VersionInfoSDKType;
|
||||||
|
}
|
||||||
|
/** VersionInfo is the type for the GetNodeInfoResponse message. */
|
||||||
|
export interface VersionInfo {
|
||||||
|
name: string;
|
||||||
|
appName: string;
|
||||||
|
version: string;
|
||||||
|
gitCommit: string;
|
||||||
|
buildTags: string;
|
||||||
|
goVersion: string;
|
||||||
|
buildDeps: Module[];
|
||||||
|
/** Since: cosmos-sdk 0.43 */
|
||||||
|
cosmosSdkVersion: string;
|
||||||
|
}
|
||||||
|
/** VersionInfo is the type for the GetNodeInfoResponse message. */
|
||||||
|
export interface VersionInfoSDKType {
|
||||||
|
name: string;
|
||||||
|
app_name: string;
|
||||||
|
version: string;
|
||||||
|
git_commit: string;
|
||||||
|
build_tags: string;
|
||||||
|
go_version: string;
|
||||||
|
build_deps: ModuleSDKType[];
|
||||||
|
cosmos_sdk_version: string;
|
||||||
|
}
|
||||||
|
/** Module is the type for VersionInfo */
|
||||||
|
export interface Module {
|
||||||
|
/** module path */
|
||||||
|
path: string;
|
||||||
|
/** module version */
|
||||||
|
version: string;
|
||||||
|
/** checksum */
|
||||||
|
sum: string;
|
||||||
|
}
|
||||||
|
/** Module is the type for VersionInfo */
|
||||||
|
export interface ModuleSDKType {
|
||||||
|
path: string;
|
||||||
|
version: string;
|
||||||
|
sum: string;
|
||||||
|
}
|
||||||
|
export declare const GetValidatorSetByHeightRequest: {
|
||||||
|
encode(message: GetValidatorSetByHeightRequest, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): GetValidatorSetByHeightRequest;
|
||||||
|
fromPartial(object: DeepPartial<GetValidatorSetByHeightRequest>): GetValidatorSetByHeightRequest;
|
||||||
|
};
|
||||||
|
export declare const GetValidatorSetByHeightResponse: {
|
||||||
|
encode(message: GetValidatorSetByHeightResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): GetValidatorSetByHeightResponse;
|
||||||
|
fromPartial(object: DeepPartial<GetValidatorSetByHeightResponse>): GetValidatorSetByHeightResponse;
|
||||||
|
};
|
||||||
|
export declare const GetLatestValidatorSetRequest: {
|
||||||
|
encode(message: GetLatestValidatorSetRequest, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): GetLatestValidatorSetRequest;
|
||||||
|
fromPartial(object: DeepPartial<GetLatestValidatorSetRequest>): GetLatestValidatorSetRequest;
|
||||||
|
};
|
||||||
|
export declare const GetLatestValidatorSetResponse: {
|
||||||
|
encode(message: GetLatestValidatorSetResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): GetLatestValidatorSetResponse;
|
||||||
|
fromPartial(object: DeepPartial<GetLatestValidatorSetResponse>): GetLatestValidatorSetResponse;
|
||||||
|
};
|
||||||
|
export declare const Validator: {
|
||||||
|
encode(message: Validator, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): Validator;
|
||||||
|
fromPartial(object: DeepPartial<Validator>): Validator;
|
||||||
|
};
|
||||||
|
export declare const GetBlockByHeightRequest: {
|
||||||
|
encode(message: GetBlockByHeightRequest, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): GetBlockByHeightRequest;
|
||||||
|
fromPartial(object: DeepPartial<GetBlockByHeightRequest>): GetBlockByHeightRequest;
|
||||||
|
};
|
||||||
|
export declare const GetBlockByHeightResponse: {
|
||||||
|
encode(message: GetBlockByHeightResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): GetBlockByHeightResponse;
|
||||||
|
fromPartial(object: DeepPartial<GetBlockByHeightResponse>): GetBlockByHeightResponse;
|
||||||
|
};
|
||||||
|
export declare const GetLatestBlockRequest: {
|
||||||
|
encode(_: GetLatestBlockRequest, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): GetLatestBlockRequest;
|
||||||
|
fromPartial(_: DeepPartial<GetLatestBlockRequest>): GetLatestBlockRequest;
|
||||||
|
};
|
||||||
|
export declare const GetLatestBlockResponse: {
|
||||||
|
encode(message: GetLatestBlockResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): GetLatestBlockResponse;
|
||||||
|
fromPartial(object: DeepPartial<GetLatestBlockResponse>): GetLatestBlockResponse;
|
||||||
|
};
|
||||||
|
export declare const GetSyncingRequest: {
|
||||||
|
encode(_: GetSyncingRequest, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): GetSyncingRequest;
|
||||||
|
fromPartial(_: DeepPartial<GetSyncingRequest>): GetSyncingRequest;
|
||||||
|
};
|
||||||
|
export declare const GetSyncingResponse: {
|
||||||
|
encode(message: GetSyncingResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): GetSyncingResponse;
|
||||||
|
fromPartial(object: DeepPartial<GetSyncingResponse>): GetSyncingResponse;
|
||||||
|
};
|
||||||
|
export declare const GetNodeInfoRequest: {
|
||||||
|
encode(_: GetNodeInfoRequest, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): GetNodeInfoRequest;
|
||||||
|
fromPartial(_: DeepPartial<GetNodeInfoRequest>): GetNodeInfoRequest;
|
||||||
|
};
|
||||||
|
export declare const GetNodeInfoResponse: {
|
||||||
|
encode(message: GetNodeInfoResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): GetNodeInfoResponse;
|
||||||
|
fromPartial(object: DeepPartial<GetNodeInfoResponse>): GetNodeInfoResponse;
|
||||||
|
};
|
||||||
|
export declare const VersionInfo: {
|
||||||
|
encode(message: VersionInfo, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): VersionInfo;
|
||||||
|
fromPartial(object: DeepPartial<VersionInfo>): VersionInfo;
|
||||||
|
};
|
||||||
|
export declare const Module: {
|
||||||
|
encode(message: Module, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): Module;
|
||||||
|
fromPartial(object: DeepPartial<Module>): Module;
|
||||||
|
};
|
14
packages/codegen/dist/cosmos/base/tendermint/v1beta1/query.lcd.d.ts
vendored
Normal file
14
packages/codegen/dist/cosmos/base/tendermint/v1beta1/query.lcd.d.ts
vendored
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
import { LCDClient } from "@osmonauts/lcd";
|
||||||
|
import { GetNodeInfoRequest, GetNodeInfoResponseSDKType, GetSyncingRequest, GetSyncingResponseSDKType, GetLatestBlockRequest, GetLatestBlockResponseSDKType, GetBlockByHeightRequest, GetBlockByHeightResponseSDKType, GetLatestValidatorSetRequest, GetLatestValidatorSetResponseSDKType, GetValidatorSetByHeightRequest, GetValidatorSetByHeightResponseSDKType } from "./query";
|
||||||
|
export declare class LCDQueryClient {
|
||||||
|
req: LCDClient;
|
||||||
|
constructor({ requestClient }: {
|
||||||
|
requestClient: LCDClient;
|
||||||
|
});
|
||||||
|
getNodeInfo(_params?: GetNodeInfoRequest): Promise<GetNodeInfoResponseSDKType>;
|
||||||
|
getSyncing(_params?: GetSyncingRequest): Promise<GetSyncingResponseSDKType>;
|
||||||
|
getLatestBlock(_params?: GetLatestBlockRequest): Promise<GetLatestBlockResponseSDKType>;
|
||||||
|
getBlockByHeight(params: GetBlockByHeightRequest): Promise<GetBlockByHeightResponseSDKType>;
|
||||||
|
getLatestValidatorSet(params?: GetLatestValidatorSetRequest): Promise<GetLatestValidatorSetResponseSDKType>;
|
||||||
|
getValidatorSetByHeight(params: GetValidatorSetByHeightRequest): Promise<GetValidatorSetByHeightResponseSDKType>;
|
||||||
|
}
|
36
packages/codegen/dist/cosmos/base/tendermint/v1beta1/query.rpc.Service.d.ts
vendored
Normal file
36
packages/codegen/dist/cosmos/base/tendermint/v1beta1/query.rpc.Service.d.ts
vendored
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
import { Rpc } from "../../../../helpers";
|
||||||
|
import { QueryClient } from "@cosmjs/stargate";
|
||||||
|
import { GetNodeInfoRequest, GetNodeInfoResponse, GetSyncingRequest, GetSyncingResponse, GetLatestBlockRequest, GetLatestBlockResponse, GetBlockByHeightRequest, GetBlockByHeightResponse, GetLatestValidatorSetRequest, GetLatestValidatorSetResponse, GetValidatorSetByHeightRequest, GetValidatorSetByHeightResponse } from "./query";
|
||||||
|
/** Service defines the gRPC querier service for tendermint queries. */
|
||||||
|
export interface Service {
|
||||||
|
/** GetNodeInfo queries the current node info. */
|
||||||
|
getNodeInfo(request?: GetNodeInfoRequest): Promise<GetNodeInfoResponse>;
|
||||||
|
/** GetSyncing queries node syncing. */
|
||||||
|
getSyncing(request?: GetSyncingRequest): Promise<GetSyncingResponse>;
|
||||||
|
/** GetLatestBlock returns the latest block. */
|
||||||
|
getLatestBlock(request?: GetLatestBlockRequest): Promise<GetLatestBlockResponse>;
|
||||||
|
/** GetBlockByHeight queries block for given height. */
|
||||||
|
getBlockByHeight(request: GetBlockByHeightRequest): Promise<GetBlockByHeightResponse>;
|
||||||
|
/** GetLatestValidatorSet queries latest validator-set. */
|
||||||
|
getLatestValidatorSet(request?: GetLatestValidatorSetRequest): Promise<GetLatestValidatorSetResponse>;
|
||||||
|
/** GetValidatorSetByHeight queries validator-set at a given height. */
|
||||||
|
getValidatorSetByHeight(request: GetValidatorSetByHeightRequest): Promise<GetValidatorSetByHeightResponse>;
|
||||||
|
}
|
||||||
|
export declare class ServiceClientImpl implements Service {
|
||||||
|
private readonly rpc;
|
||||||
|
constructor(rpc: Rpc);
|
||||||
|
getNodeInfo(request?: GetNodeInfoRequest): Promise<GetNodeInfoResponse>;
|
||||||
|
getSyncing(request?: GetSyncingRequest): Promise<GetSyncingResponse>;
|
||||||
|
getLatestBlock(request?: GetLatestBlockRequest): Promise<GetLatestBlockResponse>;
|
||||||
|
getBlockByHeight(request: GetBlockByHeightRequest): Promise<GetBlockByHeightResponse>;
|
||||||
|
getLatestValidatorSet(request?: GetLatestValidatorSetRequest): Promise<GetLatestValidatorSetResponse>;
|
||||||
|
getValidatorSetByHeight(request: GetValidatorSetByHeightRequest): Promise<GetValidatorSetByHeightResponse>;
|
||||||
|
}
|
||||||
|
export declare const createRpcQueryExtension: (base: QueryClient) => {
|
||||||
|
getNodeInfo(request?: GetNodeInfoRequest): Promise<GetNodeInfoResponse>;
|
||||||
|
getSyncing(request?: GetSyncingRequest): Promise<GetSyncingResponse>;
|
||||||
|
getLatestBlock(request?: GetLatestBlockRequest): Promise<GetLatestBlockResponse>;
|
||||||
|
getBlockByHeight(request: GetBlockByHeightRequest): Promise<GetBlockByHeightResponse>;
|
||||||
|
getLatestValidatorSet(request?: GetLatestValidatorSetRequest): Promise<GetLatestValidatorSetResponse>;
|
||||||
|
getValidatorSetByHeight(request: GetValidatorSetByHeightRequest): Promise<GetValidatorSetByHeightResponse>;
|
||||||
|
};
|
78
packages/codegen/dist/cosmos/base/v1beta1/coin.d.ts
vendored
Normal file
78
packages/codegen/dist/cosmos/base/v1beta1/coin.d.ts
vendored
Normal file
@ -0,0 +1,78 @@
|
|||||||
|
import * as _m0 from "protobufjs/minimal";
|
||||||
|
import { DeepPartial } from "../../../helpers";
|
||||||
|
/**
|
||||||
|
* Coin defines a token with a denomination and an amount.
|
||||||
|
*
|
||||||
|
* NOTE: The amount field is an Int which implements the custom method
|
||||||
|
* signatures required by gogoproto.
|
||||||
|
*/
|
||||||
|
export interface Coin {
|
||||||
|
denom: string;
|
||||||
|
amount: string;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Coin defines a token with a denomination and an amount.
|
||||||
|
*
|
||||||
|
* NOTE: The amount field is an Int which implements the custom method
|
||||||
|
* signatures required by gogoproto.
|
||||||
|
*/
|
||||||
|
export interface CoinSDKType {
|
||||||
|
denom: string;
|
||||||
|
amount: string;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* DecCoin defines a token with a denomination and a decimal amount.
|
||||||
|
*
|
||||||
|
* NOTE: The amount field is an Dec which implements the custom method
|
||||||
|
* signatures required by gogoproto.
|
||||||
|
*/
|
||||||
|
export interface DecCoin {
|
||||||
|
denom: string;
|
||||||
|
amount: string;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* DecCoin defines a token with a denomination and a decimal amount.
|
||||||
|
*
|
||||||
|
* NOTE: The amount field is an Dec which implements the custom method
|
||||||
|
* signatures required by gogoproto.
|
||||||
|
*/
|
||||||
|
export interface DecCoinSDKType {
|
||||||
|
denom: string;
|
||||||
|
amount: string;
|
||||||
|
}
|
||||||
|
/** IntProto defines a Protobuf wrapper around an Int object. */
|
||||||
|
export interface IntProto {
|
||||||
|
int: string;
|
||||||
|
}
|
||||||
|
/** IntProto defines a Protobuf wrapper around an Int object. */
|
||||||
|
export interface IntProtoSDKType {
|
||||||
|
int: string;
|
||||||
|
}
|
||||||
|
/** DecProto defines a Protobuf wrapper around a Dec object. */
|
||||||
|
export interface DecProto {
|
||||||
|
dec: string;
|
||||||
|
}
|
||||||
|
/** DecProto defines a Protobuf wrapper around a Dec object. */
|
||||||
|
export interface DecProtoSDKType {
|
||||||
|
dec: string;
|
||||||
|
}
|
||||||
|
export declare const Coin: {
|
||||||
|
encode(message: Coin, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): Coin;
|
||||||
|
fromPartial(object: DeepPartial<Coin>): Coin;
|
||||||
|
};
|
||||||
|
export declare const DecCoin: {
|
||||||
|
encode(message: DecCoin, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): DecCoin;
|
||||||
|
fromPartial(object: DeepPartial<DecCoin>): DecCoin;
|
||||||
|
};
|
||||||
|
export declare const IntProto: {
|
||||||
|
encode(message: IntProto, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): IntProto;
|
||||||
|
fromPartial(object: DeepPartial<IntProto>): IntProto;
|
||||||
|
};
|
||||||
|
export declare const DecProto: {
|
||||||
|
encode(message: DecProto, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): DecProto;
|
||||||
|
fromPartial(object: DeepPartial<DecProto>): DecProto;
|
||||||
|
};
|
8995
packages/codegen/dist/cosmos/bundle.d.ts
vendored
Normal file
8995
packages/codegen/dist/cosmos/bundle.d.ts
vendored
Normal file
File diff suppressed because it is too large
Load Diff
62
packages/codegen/dist/cosmos/capability/v1beta1/capability.d.ts
vendored
Normal file
62
packages/codegen/dist/cosmos/capability/v1beta1/capability.d.ts
vendored
Normal file
@ -0,0 +1,62 @@
|
|||||||
|
/// <reference types="long" />
|
||||||
|
import { Long, DeepPartial } from "../../../helpers";
|
||||||
|
import * as _m0 from "protobufjs/minimal";
|
||||||
|
/**
|
||||||
|
* Capability defines an implementation of an object capability. The index
|
||||||
|
* provided to a Capability must be globally unique.
|
||||||
|
*/
|
||||||
|
export interface Capability {
|
||||||
|
index: Long;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Capability defines an implementation of an object capability. The index
|
||||||
|
* provided to a Capability must be globally unique.
|
||||||
|
*/
|
||||||
|
export interface CapabilitySDKType {
|
||||||
|
index: Long;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Owner defines a single capability owner. An owner is defined by the name of
|
||||||
|
* capability and the module name.
|
||||||
|
*/
|
||||||
|
export interface Owner {
|
||||||
|
module: string;
|
||||||
|
name: string;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Owner defines a single capability owner. An owner is defined by the name of
|
||||||
|
* capability and the module name.
|
||||||
|
*/
|
||||||
|
export interface OwnerSDKType {
|
||||||
|
module: string;
|
||||||
|
name: string;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* CapabilityOwners defines a set of owners of a single Capability. The set of
|
||||||
|
* owners must be unique.
|
||||||
|
*/
|
||||||
|
export interface CapabilityOwners {
|
||||||
|
owners: Owner[];
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* CapabilityOwners defines a set of owners of a single Capability. The set of
|
||||||
|
* owners must be unique.
|
||||||
|
*/
|
||||||
|
export interface CapabilityOwnersSDKType {
|
||||||
|
owners: OwnerSDKType[];
|
||||||
|
}
|
||||||
|
export declare const Capability: {
|
||||||
|
encode(message: Capability, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): Capability;
|
||||||
|
fromPartial(object: DeepPartial<Capability>): Capability;
|
||||||
|
};
|
||||||
|
export declare const Owner: {
|
||||||
|
encode(message: Owner, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): Owner;
|
||||||
|
fromPartial(object: DeepPartial<Owner>): Owner;
|
||||||
|
};
|
||||||
|
export declare const CapabilityOwners: {
|
||||||
|
encode(message: CapabilityOwners, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): CapabilityOwners;
|
||||||
|
fromPartial(object: DeepPartial<CapabilityOwners>): CapabilityOwners;
|
||||||
|
};
|
41
packages/codegen/dist/cosmos/capability/v1beta1/genesis.d.ts
vendored
Normal file
41
packages/codegen/dist/cosmos/capability/v1beta1/genesis.d.ts
vendored
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
/// <reference types="long" />
|
||||||
|
import { CapabilityOwners, CapabilityOwnersSDKType } from "./capability";
|
||||||
|
import { Long, DeepPartial } from "../../../helpers";
|
||||||
|
import * as _m0 from "protobufjs/minimal";
|
||||||
|
/** GenesisOwners defines the capability owners with their corresponding index. */
|
||||||
|
export interface GenesisOwners {
|
||||||
|
/** index is the index of the capability owner. */
|
||||||
|
index: Long;
|
||||||
|
/** index_owners are the owners at the given index. */
|
||||||
|
indexOwners?: CapabilityOwners;
|
||||||
|
}
|
||||||
|
/** GenesisOwners defines the capability owners with their corresponding index. */
|
||||||
|
export interface GenesisOwnersSDKType {
|
||||||
|
index: Long;
|
||||||
|
index_owners?: CapabilityOwnersSDKType;
|
||||||
|
}
|
||||||
|
/** GenesisState defines the capability module's genesis state. */
|
||||||
|
export interface GenesisState {
|
||||||
|
/** index is the capability global index. */
|
||||||
|
index: Long;
|
||||||
|
/**
|
||||||
|
* owners represents a map from index to owners of the capability index
|
||||||
|
* index key is string to allow amino marshalling.
|
||||||
|
*/
|
||||||
|
owners: GenesisOwners[];
|
||||||
|
}
|
||||||
|
/** GenesisState defines the capability module's genesis state. */
|
||||||
|
export interface GenesisStateSDKType {
|
||||||
|
index: Long;
|
||||||
|
owners: GenesisOwnersSDKType[];
|
||||||
|
}
|
||||||
|
export declare const GenesisOwners: {
|
||||||
|
encode(message: GenesisOwners, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): GenesisOwners;
|
||||||
|
fromPartial(object: DeepPartial<GenesisOwners>): GenesisOwners;
|
||||||
|
};
|
||||||
|
export declare const GenesisState: {
|
||||||
|
encode(message: GenesisState, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): GenesisState;
|
||||||
|
fromPartial(object: DeepPartial<GenesisState>): GenesisState;
|
||||||
|
};
|
20
packages/codegen/dist/cosmos/crisis/v1beta1/genesis.d.ts
vendored
Normal file
20
packages/codegen/dist/cosmos/crisis/v1beta1/genesis.d.ts
vendored
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
import { Coin, CoinSDKType } from "../../base/v1beta1/coin";
|
||||||
|
import * as _m0 from "protobufjs/minimal";
|
||||||
|
import { DeepPartial } from "../../../helpers";
|
||||||
|
/** GenesisState defines the crisis module's genesis state. */
|
||||||
|
export interface GenesisState {
|
||||||
|
/**
|
||||||
|
* constant_fee is the fee used to verify the invariant in the crisis
|
||||||
|
* module.
|
||||||
|
*/
|
||||||
|
constantFee?: Coin;
|
||||||
|
}
|
||||||
|
/** GenesisState defines the crisis module's genesis state. */
|
||||||
|
export interface GenesisStateSDKType {
|
||||||
|
constant_fee?: CoinSDKType;
|
||||||
|
}
|
||||||
|
export declare const GenesisState: {
|
||||||
|
encode(message: GenesisState, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): GenesisState;
|
||||||
|
fromPartial(object: DeepPartial<GenesisState>): GenesisState;
|
||||||
|
};
|
30
packages/codegen/dist/cosmos/crisis/v1beta1/tx.d.ts
vendored
Normal file
30
packages/codegen/dist/cosmos/crisis/v1beta1/tx.d.ts
vendored
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
import * as _m0 from "protobufjs/minimal";
|
||||||
|
import { DeepPartial } from "../../../helpers";
|
||||||
|
/** MsgVerifyInvariant represents a message to verify a particular invariance. */
|
||||||
|
export interface MsgVerifyInvariant {
|
||||||
|
sender: string;
|
||||||
|
invariantModuleName: string;
|
||||||
|
invariantRoute: string;
|
||||||
|
}
|
||||||
|
/** MsgVerifyInvariant represents a message to verify a particular invariance. */
|
||||||
|
export interface MsgVerifyInvariantSDKType {
|
||||||
|
sender: string;
|
||||||
|
invariant_module_name: string;
|
||||||
|
invariant_route: string;
|
||||||
|
}
|
||||||
|
/** MsgVerifyInvariantResponse defines the Msg/VerifyInvariant response type. */
|
||||||
|
export interface MsgVerifyInvariantResponse {
|
||||||
|
}
|
||||||
|
/** MsgVerifyInvariantResponse defines the Msg/VerifyInvariant response type. */
|
||||||
|
export interface MsgVerifyInvariantResponseSDKType {
|
||||||
|
}
|
||||||
|
export declare const MsgVerifyInvariant: {
|
||||||
|
encode(message: MsgVerifyInvariant, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): MsgVerifyInvariant;
|
||||||
|
fromPartial(object: DeepPartial<MsgVerifyInvariant>): MsgVerifyInvariant;
|
||||||
|
};
|
||||||
|
export declare const MsgVerifyInvariantResponse: {
|
||||||
|
encode(_: MsgVerifyInvariantResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): MsgVerifyInvariantResponse;
|
||||||
|
fromPartial(_: DeepPartial<MsgVerifyInvariantResponse>): MsgVerifyInvariantResponse;
|
||||||
|
};
|
12
packages/codegen/dist/cosmos/crisis/v1beta1/tx.rpc.msg.d.ts
vendored
Normal file
12
packages/codegen/dist/cosmos/crisis/v1beta1/tx.rpc.msg.d.ts
vendored
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
import { Rpc } from "../../../helpers";
|
||||||
|
import { MsgVerifyInvariant, MsgVerifyInvariantResponse } from "./tx";
|
||||||
|
/** Msg defines the bank Msg service. */
|
||||||
|
export interface Msg {
|
||||||
|
/** VerifyInvariant defines a method to verify a particular invariance. */
|
||||||
|
verifyInvariant(request: MsgVerifyInvariant): Promise<MsgVerifyInvariantResponse>;
|
||||||
|
}
|
||||||
|
export declare class MsgClientImpl implements Msg {
|
||||||
|
private readonly rpc;
|
||||||
|
constructor(rpc: Rpc);
|
||||||
|
verifyInvariant(request: MsgVerifyInvariant): Promise<MsgVerifyInvariantResponse>;
|
||||||
|
}
|
46
packages/codegen/dist/cosmos/crypto/ed25519/keys.d.ts
vendored
Normal file
46
packages/codegen/dist/cosmos/crypto/ed25519/keys.d.ts
vendored
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
import * as _m0 from "protobufjs/minimal";
|
||||||
|
import { DeepPartial } from "../../../helpers";
|
||||||
|
/**
|
||||||
|
* PubKey is an ed25519 public key for handling Tendermint keys in SDK.
|
||||||
|
* It's needed for Any serialization and SDK compatibility.
|
||||||
|
* It must not be used in a non Tendermint key context because it doesn't implement
|
||||||
|
* ADR-28. Nevertheless, you will like to use ed25519 in app user level
|
||||||
|
* then you must create a new proto message and follow ADR-28 for Address construction.
|
||||||
|
*/
|
||||||
|
export interface PubKey {
|
||||||
|
key: Uint8Array;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* PubKey is an ed25519 public key for handling Tendermint keys in SDK.
|
||||||
|
* It's needed for Any serialization and SDK compatibility.
|
||||||
|
* It must not be used in a non Tendermint key context because it doesn't implement
|
||||||
|
* ADR-28. Nevertheless, you will like to use ed25519 in app user level
|
||||||
|
* then you must create a new proto message and follow ADR-28 for Address construction.
|
||||||
|
*/
|
||||||
|
export interface PubKeySDKType {
|
||||||
|
key: Uint8Array;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Deprecated: PrivKey defines a ed25519 private key.
|
||||||
|
* NOTE: ed25519 keys must not be used in SDK apps except in a tendermint validator context.
|
||||||
|
*/
|
||||||
|
export interface PrivKey {
|
||||||
|
key: Uint8Array;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Deprecated: PrivKey defines a ed25519 private key.
|
||||||
|
* NOTE: ed25519 keys must not be used in SDK apps except in a tendermint validator context.
|
||||||
|
*/
|
||||||
|
export interface PrivKeySDKType {
|
||||||
|
key: Uint8Array;
|
||||||
|
}
|
||||||
|
export declare const PubKey: {
|
||||||
|
encode(message: PubKey, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): PubKey;
|
||||||
|
fromPartial(object: DeepPartial<PubKey>): PubKey;
|
||||||
|
};
|
||||||
|
export declare const PrivKey: {
|
||||||
|
encode(message: PrivKey, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): PrivKey;
|
||||||
|
fromPartial(object: DeepPartial<PrivKey>): PrivKey;
|
||||||
|
};
|
31
packages/codegen/dist/cosmos/crypto/hd/v1/hd.d.ts
vendored
Normal file
31
packages/codegen/dist/cosmos/crypto/hd/v1/hd.d.ts
vendored
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
import * as _m0 from "protobufjs/minimal";
|
||||||
|
import { DeepPartial } from "../../../../helpers";
|
||||||
|
/** BIP44Params is used as path field in ledger item in Record. */
|
||||||
|
export interface BIP44Params {
|
||||||
|
/** purpose is a constant set to 44' (or 0x8000002C) following the BIP43 recommendation */
|
||||||
|
purpose: number;
|
||||||
|
/** coin_type is a constant that improves privacy */
|
||||||
|
coinType: number;
|
||||||
|
/** account splits the key space into independent user identities */
|
||||||
|
account: number;
|
||||||
|
/**
|
||||||
|
* change is a constant used for public derivation. Constant 0 is used for external chain and constant 1 for internal
|
||||||
|
* chain.
|
||||||
|
*/
|
||||||
|
change: boolean;
|
||||||
|
/** address_index is used as child index in BIP32 derivation */
|
||||||
|
addressIndex: number;
|
||||||
|
}
|
||||||
|
/** BIP44Params is used as path field in ledger item in Record. */
|
||||||
|
export interface BIP44ParamsSDKType {
|
||||||
|
purpose: number;
|
||||||
|
coin_type: number;
|
||||||
|
account: number;
|
||||||
|
change: boolean;
|
||||||
|
address_index: number;
|
||||||
|
}
|
||||||
|
export declare const BIP44Params: {
|
||||||
|
encode(message: BIP44Params, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): BIP44Params;
|
||||||
|
fromPartial(object: DeepPartial<BIP44Params>): BIP44Params;
|
||||||
|
};
|
89
packages/codegen/dist/cosmos/crypto/keyring/v1/record.d.ts
vendored
Normal file
89
packages/codegen/dist/cosmos/crypto/keyring/v1/record.d.ts
vendored
Normal file
@ -0,0 +1,89 @@
|
|||||||
|
import { Any, AnySDKType } from "../../../../google/protobuf/any";
|
||||||
|
import { BIP44Params, BIP44ParamsSDKType } from "../../hd/v1/hd";
|
||||||
|
import * as _m0 from "protobufjs/minimal";
|
||||||
|
import { DeepPartial } from "../../../../helpers";
|
||||||
|
/** Record is used for representing a key in the keyring. */
|
||||||
|
export interface Record {
|
||||||
|
/** name represents a name of Record */
|
||||||
|
name: string;
|
||||||
|
/** pub_key represents a public key in any format */
|
||||||
|
pubKey?: Any;
|
||||||
|
/** local stores the public information about a locally stored key */
|
||||||
|
local?: Record_Local;
|
||||||
|
/** ledger stores the public information about a Ledger key */
|
||||||
|
ledger?: Record_Ledger;
|
||||||
|
/** Multi does not store any information. */
|
||||||
|
multi?: Record_Multi;
|
||||||
|
/** Offline does not store any information. */
|
||||||
|
offline?: Record_Offline;
|
||||||
|
}
|
||||||
|
/** Record is used for representing a key in the keyring. */
|
||||||
|
export interface RecordSDKType {
|
||||||
|
name: string;
|
||||||
|
pub_key?: AnySDKType;
|
||||||
|
local?: Record_LocalSDKType;
|
||||||
|
ledger?: Record_LedgerSDKType;
|
||||||
|
multi?: Record_MultiSDKType;
|
||||||
|
offline?: Record_OfflineSDKType;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Item is a keyring item stored in a keyring backend.
|
||||||
|
* Local item
|
||||||
|
*/
|
||||||
|
export interface Record_Local {
|
||||||
|
privKey?: Any;
|
||||||
|
privKeyType: string;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Item is a keyring item stored in a keyring backend.
|
||||||
|
* Local item
|
||||||
|
*/
|
||||||
|
export interface Record_LocalSDKType {
|
||||||
|
priv_key?: AnySDKType;
|
||||||
|
priv_key_type: string;
|
||||||
|
}
|
||||||
|
/** Ledger item */
|
||||||
|
export interface Record_Ledger {
|
||||||
|
path?: BIP44Params;
|
||||||
|
}
|
||||||
|
/** Ledger item */
|
||||||
|
export interface Record_LedgerSDKType {
|
||||||
|
path?: BIP44ParamsSDKType;
|
||||||
|
}
|
||||||
|
/** Multi item */
|
||||||
|
export interface Record_Multi {
|
||||||
|
}
|
||||||
|
/** Multi item */
|
||||||
|
export interface Record_MultiSDKType {
|
||||||
|
}
|
||||||
|
/** Offline item */
|
||||||
|
export interface Record_Offline {
|
||||||
|
}
|
||||||
|
/** Offline item */
|
||||||
|
export interface Record_OfflineSDKType {
|
||||||
|
}
|
||||||
|
export declare const Record: {
|
||||||
|
encode(message: Record, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): Record;
|
||||||
|
fromPartial(object: DeepPartial<Record>): Record;
|
||||||
|
};
|
||||||
|
export declare const Record_Local: {
|
||||||
|
encode(message: Record_Local, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): Record_Local;
|
||||||
|
fromPartial(object: DeepPartial<Record_Local>): Record_Local;
|
||||||
|
};
|
||||||
|
export declare const Record_Ledger: {
|
||||||
|
encode(message: Record_Ledger, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): Record_Ledger;
|
||||||
|
fromPartial(object: DeepPartial<Record_Ledger>): Record_Ledger;
|
||||||
|
};
|
||||||
|
export declare const Record_Multi: {
|
||||||
|
encode(_: Record_Multi, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): Record_Multi;
|
||||||
|
fromPartial(_: DeepPartial<Record_Multi>): Record_Multi;
|
||||||
|
};
|
||||||
|
export declare const Record_Offline: {
|
||||||
|
encode(_: Record_Offline, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): Record_Offline;
|
||||||
|
fromPartial(_: DeepPartial<Record_Offline>): Record_Offline;
|
||||||
|
};
|
26
packages/codegen/dist/cosmos/crypto/multisig/keys.d.ts
vendored
Normal file
26
packages/codegen/dist/cosmos/crypto/multisig/keys.d.ts
vendored
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
import { Any, AnySDKType } from "../../../google/protobuf/any";
|
||||||
|
import * as _m0 from "protobufjs/minimal";
|
||||||
|
import { DeepPartial } from "../../../helpers";
|
||||||
|
/**
|
||||||
|
* LegacyAminoPubKey specifies a public key type
|
||||||
|
* which nests multiple public keys and a threshold,
|
||||||
|
* it uses legacy amino address rules.
|
||||||
|
*/
|
||||||
|
export interface LegacyAminoPubKey {
|
||||||
|
threshold: number;
|
||||||
|
publicKeys: Any[];
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* LegacyAminoPubKey specifies a public key type
|
||||||
|
* which nests multiple public keys and a threshold,
|
||||||
|
* it uses legacy amino address rules.
|
||||||
|
*/
|
||||||
|
export interface LegacyAminoPubKeySDKType {
|
||||||
|
threshold: number;
|
||||||
|
public_keys: AnySDKType[];
|
||||||
|
}
|
||||||
|
export declare const LegacyAminoPubKey: {
|
||||||
|
encode(message: LegacyAminoPubKey, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): LegacyAminoPubKey;
|
||||||
|
fromPartial(object: DeepPartial<LegacyAminoPubKey>): LegacyAminoPubKey;
|
||||||
|
};
|
48
packages/codegen/dist/cosmos/crypto/multisig/v1beta1/multisig.d.ts
vendored
Normal file
48
packages/codegen/dist/cosmos/crypto/multisig/v1beta1/multisig.d.ts
vendored
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
import * as _m0 from "protobufjs/minimal";
|
||||||
|
import { DeepPartial } from "../../../../helpers";
|
||||||
|
/**
|
||||||
|
* MultiSignature wraps the signatures from a multisig.LegacyAminoPubKey.
|
||||||
|
* See cosmos.tx.v1betata1.ModeInfo.Multi for how to specify which signers
|
||||||
|
* signed and with which modes.
|
||||||
|
*/
|
||||||
|
export interface MultiSignature {
|
||||||
|
signatures: Uint8Array[];
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* MultiSignature wraps the signatures from a multisig.LegacyAminoPubKey.
|
||||||
|
* See cosmos.tx.v1betata1.ModeInfo.Multi for how to specify which signers
|
||||||
|
* signed and with which modes.
|
||||||
|
*/
|
||||||
|
export interface MultiSignatureSDKType {
|
||||||
|
signatures: Uint8Array[];
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* CompactBitArray is an implementation of a space efficient bit array.
|
||||||
|
* This is used to ensure that the encoded data takes up a minimal amount of
|
||||||
|
* space after proto encoding.
|
||||||
|
* This is not thread safe, and is not intended for concurrent usage.
|
||||||
|
*/
|
||||||
|
export interface CompactBitArray {
|
||||||
|
extraBitsStored: number;
|
||||||
|
elems: Uint8Array;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* CompactBitArray is an implementation of a space efficient bit array.
|
||||||
|
* This is used to ensure that the encoded data takes up a minimal amount of
|
||||||
|
* space after proto encoding.
|
||||||
|
* This is not thread safe, and is not intended for concurrent usage.
|
||||||
|
*/
|
||||||
|
export interface CompactBitArraySDKType {
|
||||||
|
extra_bits_stored: number;
|
||||||
|
elems: Uint8Array;
|
||||||
|
}
|
||||||
|
export declare const MultiSignature: {
|
||||||
|
encode(message: MultiSignature, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): MultiSignature;
|
||||||
|
fromPartial(object: DeepPartial<MultiSignature>): MultiSignature;
|
||||||
|
};
|
||||||
|
export declare const CompactBitArray: {
|
||||||
|
encode(message: CompactBitArray, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): CompactBitArray;
|
||||||
|
fromPartial(object: DeepPartial<CompactBitArray>): CompactBitArray;
|
||||||
|
};
|
40
packages/codegen/dist/cosmos/crypto/secp256k1/keys.d.ts
vendored
Normal file
40
packages/codegen/dist/cosmos/crypto/secp256k1/keys.d.ts
vendored
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
import * as _m0 from "protobufjs/minimal";
|
||||||
|
import { DeepPartial } from "../../../helpers";
|
||||||
|
/**
|
||||||
|
* PubKey defines a secp256k1 public key
|
||||||
|
* Key is the compressed form of the pubkey. The first byte depends is a 0x02 byte
|
||||||
|
* if the y-coordinate is the lexicographically largest of the two associated with
|
||||||
|
* the x-coordinate. Otherwise the first byte is a 0x03.
|
||||||
|
* This prefix is followed with the x-coordinate.
|
||||||
|
*/
|
||||||
|
export interface PubKey {
|
||||||
|
key: Uint8Array;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* PubKey defines a secp256k1 public key
|
||||||
|
* Key is the compressed form of the pubkey. The first byte depends is a 0x02 byte
|
||||||
|
* if the y-coordinate is the lexicographically largest of the two associated with
|
||||||
|
* the x-coordinate. Otherwise the first byte is a 0x03.
|
||||||
|
* This prefix is followed with the x-coordinate.
|
||||||
|
*/
|
||||||
|
export interface PubKeySDKType {
|
||||||
|
key: Uint8Array;
|
||||||
|
}
|
||||||
|
/** PrivKey defines a secp256k1 private key. */
|
||||||
|
export interface PrivKey {
|
||||||
|
key: Uint8Array;
|
||||||
|
}
|
||||||
|
/** PrivKey defines a secp256k1 private key. */
|
||||||
|
export interface PrivKeySDKType {
|
||||||
|
key: Uint8Array;
|
||||||
|
}
|
||||||
|
export declare const PubKey: {
|
||||||
|
encode(message: PubKey, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): PubKey;
|
||||||
|
fromPartial(object: DeepPartial<PubKey>): PubKey;
|
||||||
|
};
|
||||||
|
export declare const PrivKey: {
|
||||||
|
encode(message: PrivKey, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): PrivKey;
|
||||||
|
fromPartial(object: DeepPartial<PrivKey>): PrivKey;
|
||||||
|
};
|
33
packages/codegen/dist/cosmos/crypto/secp256r1/keys.d.ts
vendored
Normal file
33
packages/codegen/dist/cosmos/crypto/secp256r1/keys.d.ts
vendored
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
import * as _m0 from "protobufjs/minimal";
|
||||||
|
import { DeepPartial } from "../../../helpers";
|
||||||
|
/** PubKey defines a secp256r1 ECDSA public key. */
|
||||||
|
export interface PubKey {
|
||||||
|
/**
|
||||||
|
* Point on secp256r1 curve in a compressed representation as specified in section
|
||||||
|
* 4.3.6 of ANSI X9.62: https://webstore.ansi.org/standards/ascx9/ansix9621998
|
||||||
|
*/
|
||||||
|
key: Uint8Array;
|
||||||
|
}
|
||||||
|
/** PubKey defines a secp256r1 ECDSA public key. */
|
||||||
|
export interface PubKeySDKType {
|
||||||
|
key: Uint8Array;
|
||||||
|
}
|
||||||
|
/** PrivKey defines a secp256r1 ECDSA private key. */
|
||||||
|
export interface PrivKey {
|
||||||
|
/** secret number serialized using big-endian encoding */
|
||||||
|
secret: Uint8Array;
|
||||||
|
}
|
||||||
|
/** PrivKey defines a secp256r1 ECDSA private key. */
|
||||||
|
export interface PrivKeySDKType {
|
||||||
|
secret: Uint8Array;
|
||||||
|
}
|
||||||
|
export declare const PubKey: {
|
||||||
|
encode(message: PubKey, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): PubKey;
|
||||||
|
fromPartial(object: DeepPartial<PubKey>): PubKey;
|
||||||
|
};
|
||||||
|
export declare const PrivKey: {
|
||||||
|
encode(message: PrivKey, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): PrivKey;
|
||||||
|
fromPartial(object: DeepPartial<PrivKey>): PrivKey;
|
||||||
|
};
|
282
packages/codegen/dist/cosmos/distribution/v1beta1/distribution.d.ts
vendored
Normal file
282
packages/codegen/dist/cosmos/distribution/v1beta1/distribution.d.ts
vendored
Normal file
@ -0,0 +1,282 @@
|
|||||||
|
/// <reference types="long" />
|
||||||
|
import { DecCoin, DecCoinSDKType, Coin, CoinSDKType } from "../../base/v1beta1/coin";
|
||||||
|
import * as _m0 from "protobufjs/minimal";
|
||||||
|
import { DeepPartial, Long } from "../../../helpers";
|
||||||
|
/** Params defines the set of params for the distribution module. */
|
||||||
|
export interface Params {
|
||||||
|
communityTax: string;
|
||||||
|
baseProposerReward: string;
|
||||||
|
bonusProposerReward: string;
|
||||||
|
withdrawAddrEnabled: boolean;
|
||||||
|
}
|
||||||
|
/** Params defines the set of params for the distribution module. */
|
||||||
|
export interface ParamsSDKType {
|
||||||
|
community_tax: string;
|
||||||
|
base_proposer_reward: string;
|
||||||
|
bonus_proposer_reward: string;
|
||||||
|
withdraw_addr_enabled: boolean;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* ValidatorHistoricalRewards represents historical rewards for a validator.
|
||||||
|
* Height is implicit within the store key.
|
||||||
|
* Cumulative reward ratio is the sum from the zeroeth period
|
||||||
|
* until this period of rewards / tokens, per the spec.
|
||||||
|
* The reference count indicates the number of objects
|
||||||
|
* which might need to reference this historical entry at any point.
|
||||||
|
* ReferenceCount =
|
||||||
|
* number of outstanding delegations which ended the associated period (and
|
||||||
|
* might need to read that record)
|
||||||
|
* + number of slashes which ended the associated period (and might need to
|
||||||
|
* read that record)
|
||||||
|
* + one per validator for the zeroeth period, set on initialization
|
||||||
|
*/
|
||||||
|
export interface ValidatorHistoricalRewards {
|
||||||
|
cumulativeRewardRatio: DecCoin[];
|
||||||
|
referenceCount: number;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* ValidatorHistoricalRewards represents historical rewards for a validator.
|
||||||
|
* Height is implicit within the store key.
|
||||||
|
* Cumulative reward ratio is the sum from the zeroeth period
|
||||||
|
* until this period of rewards / tokens, per the spec.
|
||||||
|
* The reference count indicates the number of objects
|
||||||
|
* which might need to reference this historical entry at any point.
|
||||||
|
* ReferenceCount =
|
||||||
|
* number of outstanding delegations which ended the associated period (and
|
||||||
|
* might need to read that record)
|
||||||
|
* + number of slashes which ended the associated period (and might need to
|
||||||
|
* read that record)
|
||||||
|
* + one per validator for the zeroeth period, set on initialization
|
||||||
|
*/
|
||||||
|
export interface ValidatorHistoricalRewardsSDKType {
|
||||||
|
cumulative_reward_ratio: DecCoinSDKType[];
|
||||||
|
reference_count: number;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* ValidatorCurrentRewards represents current rewards and current
|
||||||
|
* period for a validator kept as a running counter and incremented
|
||||||
|
* each block as long as the validator's tokens remain constant.
|
||||||
|
*/
|
||||||
|
export interface ValidatorCurrentRewards {
|
||||||
|
rewards: DecCoin[];
|
||||||
|
period: Long;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* ValidatorCurrentRewards represents current rewards and current
|
||||||
|
* period for a validator kept as a running counter and incremented
|
||||||
|
* each block as long as the validator's tokens remain constant.
|
||||||
|
*/
|
||||||
|
export interface ValidatorCurrentRewardsSDKType {
|
||||||
|
rewards: DecCoinSDKType[];
|
||||||
|
period: Long;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* ValidatorAccumulatedCommission represents accumulated commission
|
||||||
|
* for a validator kept as a running counter, can be withdrawn at any time.
|
||||||
|
*/
|
||||||
|
export interface ValidatorAccumulatedCommission {
|
||||||
|
commission: DecCoin[];
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* ValidatorAccumulatedCommission represents accumulated commission
|
||||||
|
* for a validator kept as a running counter, can be withdrawn at any time.
|
||||||
|
*/
|
||||||
|
export interface ValidatorAccumulatedCommissionSDKType {
|
||||||
|
commission: DecCoinSDKType[];
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* ValidatorOutstandingRewards represents outstanding (un-withdrawn) rewards
|
||||||
|
* for a validator inexpensive to track, allows simple sanity checks.
|
||||||
|
*/
|
||||||
|
export interface ValidatorOutstandingRewards {
|
||||||
|
rewards: DecCoin[];
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* ValidatorOutstandingRewards represents outstanding (un-withdrawn) rewards
|
||||||
|
* for a validator inexpensive to track, allows simple sanity checks.
|
||||||
|
*/
|
||||||
|
export interface ValidatorOutstandingRewardsSDKType {
|
||||||
|
rewards: DecCoinSDKType[];
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* ValidatorSlashEvent represents a validator slash event.
|
||||||
|
* Height is implicit within the store key.
|
||||||
|
* This is needed to calculate appropriate amount of staking tokens
|
||||||
|
* for delegations which are withdrawn after a slash has occurred.
|
||||||
|
*/
|
||||||
|
export interface ValidatorSlashEvent {
|
||||||
|
validatorPeriod: Long;
|
||||||
|
fraction: string;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* ValidatorSlashEvent represents a validator slash event.
|
||||||
|
* Height is implicit within the store key.
|
||||||
|
* This is needed to calculate appropriate amount of staking tokens
|
||||||
|
* for delegations which are withdrawn after a slash has occurred.
|
||||||
|
*/
|
||||||
|
export interface ValidatorSlashEventSDKType {
|
||||||
|
validator_period: Long;
|
||||||
|
fraction: string;
|
||||||
|
}
|
||||||
|
/** ValidatorSlashEvents is a collection of ValidatorSlashEvent messages. */
|
||||||
|
export interface ValidatorSlashEvents {
|
||||||
|
validatorSlashEvents: ValidatorSlashEvent[];
|
||||||
|
}
|
||||||
|
/** ValidatorSlashEvents is a collection of ValidatorSlashEvent messages. */
|
||||||
|
export interface ValidatorSlashEventsSDKType {
|
||||||
|
validator_slash_events: ValidatorSlashEventSDKType[];
|
||||||
|
}
|
||||||
|
/** FeePool is the global fee pool for distribution. */
|
||||||
|
export interface FeePool {
|
||||||
|
communityPool: DecCoin[];
|
||||||
|
}
|
||||||
|
/** FeePool is the global fee pool for distribution. */
|
||||||
|
export interface FeePoolSDKType {
|
||||||
|
community_pool: DecCoinSDKType[];
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* CommunityPoolSpendProposal details a proposal for use of community funds,
|
||||||
|
* together with how many coins are proposed to be spent, and to which
|
||||||
|
* recipient account.
|
||||||
|
*/
|
||||||
|
export interface CommunityPoolSpendProposal {
|
||||||
|
title: string;
|
||||||
|
description: string;
|
||||||
|
recipient: string;
|
||||||
|
amount: Coin[];
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* CommunityPoolSpendProposal details a proposal for use of community funds,
|
||||||
|
* together with how many coins are proposed to be spent, and to which
|
||||||
|
* recipient account.
|
||||||
|
*/
|
||||||
|
export interface CommunityPoolSpendProposalSDKType {
|
||||||
|
title: string;
|
||||||
|
description: string;
|
||||||
|
recipient: string;
|
||||||
|
amount: CoinSDKType[];
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* DelegatorStartingInfo represents the starting info for a delegator reward
|
||||||
|
* period. It tracks the previous validator period, the delegation's amount of
|
||||||
|
* staking token, and the creation height (to check later on if any slashes have
|
||||||
|
* occurred). NOTE: Even though validators are slashed to whole staking tokens,
|
||||||
|
* the delegators within the validator may be left with less than a full token,
|
||||||
|
* thus sdk.Dec is used.
|
||||||
|
*/
|
||||||
|
export interface DelegatorStartingInfo {
|
||||||
|
previousPeriod: Long;
|
||||||
|
stake: string;
|
||||||
|
height: Long;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* DelegatorStartingInfo represents the starting info for a delegator reward
|
||||||
|
* period. It tracks the previous validator period, the delegation's amount of
|
||||||
|
* staking token, and the creation height (to check later on if any slashes have
|
||||||
|
* occurred). NOTE: Even though validators are slashed to whole staking tokens,
|
||||||
|
* the delegators within the validator may be left with less than a full token,
|
||||||
|
* thus sdk.Dec is used.
|
||||||
|
*/
|
||||||
|
export interface DelegatorStartingInfoSDKType {
|
||||||
|
previous_period: Long;
|
||||||
|
stake: string;
|
||||||
|
height: Long;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* DelegationDelegatorReward represents the properties
|
||||||
|
* of a delegator's delegation reward.
|
||||||
|
*/
|
||||||
|
export interface DelegationDelegatorReward {
|
||||||
|
validatorAddress: string;
|
||||||
|
reward: DecCoin[];
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* DelegationDelegatorReward represents the properties
|
||||||
|
* of a delegator's delegation reward.
|
||||||
|
*/
|
||||||
|
export interface DelegationDelegatorRewardSDKType {
|
||||||
|
validator_address: string;
|
||||||
|
reward: DecCoinSDKType[];
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* CommunityPoolSpendProposalWithDeposit defines a CommunityPoolSpendProposal
|
||||||
|
* with a deposit
|
||||||
|
*/
|
||||||
|
export interface CommunityPoolSpendProposalWithDeposit {
|
||||||
|
title: string;
|
||||||
|
description: string;
|
||||||
|
recipient: string;
|
||||||
|
amount: string;
|
||||||
|
deposit: string;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* CommunityPoolSpendProposalWithDeposit defines a CommunityPoolSpendProposal
|
||||||
|
* with a deposit
|
||||||
|
*/
|
||||||
|
export interface CommunityPoolSpendProposalWithDepositSDKType {
|
||||||
|
title: string;
|
||||||
|
description: string;
|
||||||
|
recipient: string;
|
||||||
|
amount: string;
|
||||||
|
deposit: string;
|
||||||
|
}
|
||||||
|
export declare const Params: {
|
||||||
|
encode(message: Params, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): Params;
|
||||||
|
fromPartial(object: DeepPartial<Params>): Params;
|
||||||
|
};
|
||||||
|
export declare const ValidatorHistoricalRewards: {
|
||||||
|
encode(message: ValidatorHistoricalRewards, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): ValidatorHistoricalRewards;
|
||||||
|
fromPartial(object: DeepPartial<ValidatorHistoricalRewards>): ValidatorHistoricalRewards;
|
||||||
|
};
|
||||||
|
export declare const ValidatorCurrentRewards: {
|
||||||
|
encode(message: ValidatorCurrentRewards, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): ValidatorCurrentRewards;
|
||||||
|
fromPartial(object: DeepPartial<ValidatorCurrentRewards>): ValidatorCurrentRewards;
|
||||||
|
};
|
||||||
|
export declare const ValidatorAccumulatedCommission: {
|
||||||
|
encode(message: ValidatorAccumulatedCommission, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): ValidatorAccumulatedCommission;
|
||||||
|
fromPartial(object: DeepPartial<ValidatorAccumulatedCommission>): ValidatorAccumulatedCommission;
|
||||||
|
};
|
||||||
|
export declare const ValidatorOutstandingRewards: {
|
||||||
|
encode(message: ValidatorOutstandingRewards, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): ValidatorOutstandingRewards;
|
||||||
|
fromPartial(object: DeepPartial<ValidatorOutstandingRewards>): ValidatorOutstandingRewards;
|
||||||
|
};
|
||||||
|
export declare const ValidatorSlashEvent: {
|
||||||
|
encode(message: ValidatorSlashEvent, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): ValidatorSlashEvent;
|
||||||
|
fromPartial(object: DeepPartial<ValidatorSlashEvent>): ValidatorSlashEvent;
|
||||||
|
};
|
||||||
|
export declare const ValidatorSlashEvents: {
|
||||||
|
encode(message: ValidatorSlashEvents, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): ValidatorSlashEvents;
|
||||||
|
fromPartial(object: DeepPartial<ValidatorSlashEvents>): ValidatorSlashEvents;
|
||||||
|
};
|
||||||
|
export declare const FeePool: {
|
||||||
|
encode(message: FeePool, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): FeePool;
|
||||||
|
fromPartial(object: DeepPartial<FeePool>): FeePool;
|
||||||
|
};
|
||||||
|
export declare const CommunityPoolSpendProposal: {
|
||||||
|
encode(message: CommunityPoolSpendProposal, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): CommunityPoolSpendProposal;
|
||||||
|
fromPartial(object: DeepPartial<CommunityPoolSpendProposal>): CommunityPoolSpendProposal;
|
||||||
|
};
|
||||||
|
export declare const DelegatorStartingInfo: {
|
||||||
|
encode(message: DelegatorStartingInfo, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): DelegatorStartingInfo;
|
||||||
|
fromPartial(object: DeepPartial<DelegatorStartingInfo>): DelegatorStartingInfo;
|
||||||
|
};
|
||||||
|
export declare const DelegationDelegatorReward: {
|
||||||
|
encode(message: DelegationDelegatorReward, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): DelegationDelegatorReward;
|
||||||
|
fromPartial(object: DeepPartial<DelegationDelegatorReward>): DelegationDelegatorReward;
|
||||||
|
};
|
||||||
|
export declare const CommunityPoolSpendProposalWithDeposit: {
|
||||||
|
encode(message: CommunityPoolSpendProposalWithDeposit, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): CommunityPoolSpendProposalWithDeposit;
|
||||||
|
fromPartial(object: DeepPartial<CommunityPoolSpendProposalWithDeposit>): CommunityPoolSpendProposalWithDeposit;
|
||||||
|
};
|
197
packages/codegen/dist/cosmos/distribution/v1beta1/genesis.d.ts
vendored
Normal file
197
packages/codegen/dist/cosmos/distribution/v1beta1/genesis.d.ts
vendored
Normal file
@ -0,0 +1,197 @@
|
|||||||
|
/// <reference types="long" />
|
||||||
|
import { DecCoin, DecCoinSDKType } from "../../base/v1beta1/coin";
|
||||||
|
import { ValidatorAccumulatedCommission, ValidatorAccumulatedCommissionSDKType, ValidatorHistoricalRewards, ValidatorHistoricalRewardsSDKType, ValidatorCurrentRewards, ValidatorCurrentRewardsSDKType, DelegatorStartingInfo, DelegatorStartingInfoSDKType, ValidatorSlashEvent, ValidatorSlashEventSDKType, Params, ParamsSDKType, FeePool, FeePoolSDKType } from "./distribution";
|
||||||
|
import * as _m0 from "protobufjs/minimal";
|
||||||
|
import { DeepPartial, Long } from "../../../helpers";
|
||||||
|
/**
|
||||||
|
* DelegatorWithdrawInfo is the address for where distributions rewards are
|
||||||
|
* withdrawn to by default this struct is only used at genesis to feed in
|
||||||
|
* default withdraw addresses.
|
||||||
|
*/
|
||||||
|
export interface DelegatorWithdrawInfo {
|
||||||
|
/** delegator_address is the address of the delegator. */
|
||||||
|
delegatorAddress: string;
|
||||||
|
/** withdraw_address is the address to withdraw the delegation rewards to. */
|
||||||
|
withdrawAddress: string;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* DelegatorWithdrawInfo is the address for where distributions rewards are
|
||||||
|
* withdrawn to by default this struct is only used at genesis to feed in
|
||||||
|
* default withdraw addresses.
|
||||||
|
*/
|
||||||
|
export interface DelegatorWithdrawInfoSDKType {
|
||||||
|
delegator_address: string;
|
||||||
|
withdraw_address: string;
|
||||||
|
}
|
||||||
|
/** ValidatorOutstandingRewardsRecord is used for import/export via genesis json. */
|
||||||
|
export interface ValidatorOutstandingRewardsRecord {
|
||||||
|
/** validator_address is the address of the validator. */
|
||||||
|
validatorAddress: string;
|
||||||
|
/** outstanding_rewards represents the oustanding rewards of a validator. */
|
||||||
|
outstandingRewards: DecCoin[];
|
||||||
|
}
|
||||||
|
/** ValidatorOutstandingRewardsRecord is used for import/export via genesis json. */
|
||||||
|
export interface ValidatorOutstandingRewardsRecordSDKType {
|
||||||
|
validator_address: string;
|
||||||
|
outstanding_rewards: DecCoinSDKType[];
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* ValidatorAccumulatedCommissionRecord is used for import / export via genesis
|
||||||
|
* json.
|
||||||
|
*/
|
||||||
|
export interface ValidatorAccumulatedCommissionRecord {
|
||||||
|
/** validator_address is the address of the validator. */
|
||||||
|
validatorAddress: string;
|
||||||
|
/** accumulated is the accumulated commission of a validator. */
|
||||||
|
accumulated?: ValidatorAccumulatedCommission;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* ValidatorAccumulatedCommissionRecord is used for import / export via genesis
|
||||||
|
* json.
|
||||||
|
*/
|
||||||
|
export interface ValidatorAccumulatedCommissionRecordSDKType {
|
||||||
|
validator_address: string;
|
||||||
|
accumulated?: ValidatorAccumulatedCommissionSDKType;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* ValidatorHistoricalRewardsRecord is used for import / export via genesis
|
||||||
|
* json.
|
||||||
|
*/
|
||||||
|
export interface ValidatorHistoricalRewardsRecord {
|
||||||
|
/** validator_address is the address of the validator. */
|
||||||
|
validatorAddress: string;
|
||||||
|
/** period defines the period the historical rewards apply to. */
|
||||||
|
period: Long;
|
||||||
|
/** rewards defines the historical rewards of a validator. */
|
||||||
|
rewards?: ValidatorHistoricalRewards;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* ValidatorHistoricalRewardsRecord is used for import / export via genesis
|
||||||
|
* json.
|
||||||
|
*/
|
||||||
|
export interface ValidatorHistoricalRewardsRecordSDKType {
|
||||||
|
validator_address: string;
|
||||||
|
period: Long;
|
||||||
|
rewards?: ValidatorHistoricalRewardsSDKType;
|
||||||
|
}
|
||||||
|
/** ValidatorCurrentRewardsRecord is used for import / export via genesis json. */
|
||||||
|
export interface ValidatorCurrentRewardsRecord {
|
||||||
|
/** validator_address is the address of the validator. */
|
||||||
|
validatorAddress: string;
|
||||||
|
/** rewards defines the current rewards of a validator. */
|
||||||
|
rewards?: ValidatorCurrentRewards;
|
||||||
|
}
|
||||||
|
/** ValidatorCurrentRewardsRecord is used for import / export via genesis json. */
|
||||||
|
export interface ValidatorCurrentRewardsRecordSDKType {
|
||||||
|
validator_address: string;
|
||||||
|
rewards?: ValidatorCurrentRewardsSDKType;
|
||||||
|
}
|
||||||
|
/** DelegatorStartingInfoRecord used for import / export via genesis json. */
|
||||||
|
export interface DelegatorStartingInfoRecord {
|
||||||
|
/** delegator_address is the address of the delegator. */
|
||||||
|
delegatorAddress: string;
|
||||||
|
/** validator_address is the address of the validator. */
|
||||||
|
validatorAddress: string;
|
||||||
|
/** starting_info defines the starting info of a delegator. */
|
||||||
|
startingInfo?: DelegatorStartingInfo;
|
||||||
|
}
|
||||||
|
/** DelegatorStartingInfoRecord used for import / export via genesis json. */
|
||||||
|
export interface DelegatorStartingInfoRecordSDKType {
|
||||||
|
delegator_address: string;
|
||||||
|
validator_address: string;
|
||||||
|
starting_info?: DelegatorStartingInfoSDKType;
|
||||||
|
}
|
||||||
|
/** ValidatorSlashEventRecord is used for import / export via genesis json. */
|
||||||
|
export interface ValidatorSlashEventRecord {
|
||||||
|
/** validator_address is the address of the validator. */
|
||||||
|
validatorAddress: string;
|
||||||
|
/** height defines the block height at which the slash event occured. */
|
||||||
|
height: Long;
|
||||||
|
/** period is the period of the slash event. */
|
||||||
|
period: Long;
|
||||||
|
/** validator_slash_event describes the slash event. */
|
||||||
|
validatorSlashEvent?: ValidatorSlashEvent;
|
||||||
|
}
|
||||||
|
/** ValidatorSlashEventRecord is used for import / export via genesis json. */
|
||||||
|
export interface ValidatorSlashEventRecordSDKType {
|
||||||
|
validator_address: string;
|
||||||
|
height: Long;
|
||||||
|
period: Long;
|
||||||
|
validator_slash_event?: ValidatorSlashEventSDKType;
|
||||||
|
}
|
||||||
|
/** GenesisState defines the distribution module's genesis state. */
|
||||||
|
export interface GenesisState {
|
||||||
|
/** params defines all the paramaters of the module. */
|
||||||
|
params?: Params;
|
||||||
|
/** fee_pool defines the fee pool at genesis. */
|
||||||
|
feePool?: FeePool;
|
||||||
|
/** fee_pool defines the delegator withdraw infos at genesis. */
|
||||||
|
delegatorWithdrawInfos: DelegatorWithdrawInfo[];
|
||||||
|
/** fee_pool defines the previous proposer at genesis. */
|
||||||
|
previousProposer: string;
|
||||||
|
/** fee_pool defines the outstanding rewards of all validators at genesis. */
|
||||||
|
outstandingRewards: ValidatorOutstandingRewardsRecord[];
|
||||||
|
/** fee_pool defines the accumulated commisions of all validators at genesis. */
|
||||||
|
validatorAccumulatedCommissions: ValidatorAccumulatedCommissionRecord[];
|
||||||
|
/** fee_pool defines the historical rewards of all validators at genesis. */
|
||||||
|
validatorHistoricalRewards: ValidatorHistoricalRewardsRecord[];
|
||||||
|
/** fee_pool defines the current rewards of all validators at genesis. */
|
||||||
|
validatorCurrentRewards: ValidatorCurrentRewardsRecord[];
|
||||||
|
/** fee_pool defines the delegator starting infos at genesis. */
|
||||||
|
delegatorStartingInfos: DelegatorStartingInfoRecord[];
|
||||||
|
/** fee_pool defines the validator slash events at genesis. */
|
||||||
|
validatorSlashEvents: ValidatorSlashEventRecord[];
|
||||||
|
}
|
||||||
|
/** GenesisState defines the distribution module's genesis state. */
|
||||||
|
export interface GenesisStateSDKType {
|
||||||
|
params?: ParamsSDKType;
|
||||||
|
fee_pool?: FeePoolSDKType;
|
||||||
|
delegator_withdraw_infos: DelegatorWithdrawInfoSDKType[];
|
||||||
|
previous_proposer: string;
|
||||||
|
outstanding_rewards: ValidatorOutstandingRewardsRecordSDKType[];
|
||||||
|
validator_accumulated_commissions: ValidatorAccumulatedCommissionRecordSDKType[];
|
||||||
|
validator_historical_rewards: ValidatorHistoricalRewardsRecordSDKType[];
|
||||||
|
validator_current_rewards: ValidatorCurrentRewardsRecordSDKType[];
|
||||||
|
delegator_starting_infos: DelegatorStartingInfoRecordSDKType[];
|
||||||
|
validator_slash_events: ValidatorSlashEventRecordSDKType[];
|
||||||
|
}
|
||||||
|
export declare const DelegatorWithdrawInfo: {
|
||||||
|
encode(message: DelegatorWithdrawInfo, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): DelegatorWithdrawInfo;
|
||||||
|
fromPartial(object: DeepPartial<DelegatorWithdrawInfo>): DelegatorWithdrawInfo;
|
||||||
|
};
|
||||||
|
export declare const ValidatorOutstandingRewardsRecord: {
|
||||||
|
encode(message: ValidatorOutstandingRewardsRecord, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): ValidatorOutstandingRewardsRecord;
|
||||||
|
fromPartial(object: DeepPartial<ValidatorOutstandingRewardsRecord>): ValidatorOutstandingRewardsRecord;
|
||||||
|
};
|
||||||
|
export declare const ValidatorAccumulatedCommissionRecord: {
|
||||||
|
encode(message: ValidatorAccumulatedCommissionRecord, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): ValidatorAccumulatedCommissionRecord;
|
||||||
|
fromPartial(object: DeepPartial<ValidatorAccumulatedCommissionRecord>): ValidatorAccumulatedCommissionRecord;
|
||||||
|
};
|
||||||
|
export declare const ValidatorHistoricalRewardsRecord: {
|
||||||
|
encode(message: ValidatorHistoricalRewardsRecord, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): ValidatorHistoricalRewardsRecord;
|
||||||
|
fromPartial(object: DeepPartial<ValidatorHistoricalRewardsRecord>): ValidatorHistoricalRewardsRecord;
|
||||||
|
};
|
||||||
|
export declare const ValidatorCurrentRewardsRecord: {
|
||||||
|
encode(message: ValidatorCurrentRewardsRecord, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): ValidatorCurrentRewardsRecord;
|
||||||
|
fromPartial(object: DeepPartial<ValidatorCurrentRewardsRecord>): ValidatorCurrentRewardsRecord;
|
||||||
|
};
|
||||||
|
export declare const DelegatorStartingInfoRecord: {
|
||||||
|
encode(message: DelegatorStartingInfoRecord, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): DelegatorStartingInfoRecord;
|
||||||
|
fromPartial(object: DeepPartial<DelegatorStartingInfoRecord>): DelegatorStartingInfoRecord;
|
||||||
|
};
|
||||||
|
export declare const ValidatorSlashEventRecord: {
|
||||||
|
encode(message: ValidatorSlashEventRecord, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): ValidatorSlashEventRecord;
|
||||||
|
fromPartial(object: DeepPartial<ValidatorSlashEventRecord>): ValidatorSlashEventRecord;
|
||||||
|
};
|
||||||
|
export declare const GenesisState: {
|
||||||
|
encode(message: GenesisState, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): GenesisState;
|
||||||
|
fromPartial(object: DeepPartial<GenesisState>): GenesisState;
|
||||||
|
};
|
365
packages/codegen/dist/cosmos/distribution/v1beta1/query.d.ts
vendored
Normal file
365
packages/codegen/dist/cosmos/distribution/v1beta1/query.d.ts
vendored
Normal file
@ -0,0 +1,365 @@
|
|||||||
|
/// <reference types="long" />
|
||||||
|
import { PageRequest, PageRequestSDKType, PageResponse, PageResponseSDKType } from "../../base/query/v1beta1/pagination";
|
||||||
|
import { Params, ParamsSDKType, ValidatorOutstandingRewards, ValidatorOutstandingRewardsSDKType, ValidatorAccumulatedCommission, ValidatorAccumulatedCommissionSDKType, ValidatorSlashEvent, ValidatorSlashEventSDKType, DelegationDelegatorReward, DelegationDelegatorRewardSDKType } from "./distribution";
|
||||||
|
import { DecCoin, DecCoinSDKType } from "../../base/v1beta1/coin";
|
||||||
|
import * as _m0 from "protobufjs/minimal";
|
||||||
|
import { DeepPartial, Long } from "../../../helpers";
|
||||||
|
/** QueryParamsRequest is the request type for the Query/Params RPC method. */
|
||||||
|
export interface QueryParamsRequest {
|
||||||
|
}
|
||||||
|
/** QueryParamsRequest is the request type for the Query/Params RPC method. */
|
||||||
|
export interface QueryParamsRequestSDKType {
|
||||||
|
}
|
||||||
|
/** QueryParamsResponse is the response type for the Query/Params RPC method. */
|
||||||
|
export interface QueryParamsResponse {
|
||||||
|
/** params defines the parameters of the module. */
|
||||||
|
params?: Params;
|
||||||
|
}
|
||||||
|
/** QueryParamsResponse is the response type for the Query/Params RPC method. */
|
||||||
|
export interface QueryParamsResponseSDKType {
|
||||||
|
params?: ParamsSDKType;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* QueryValidatorOutstandingRewardsRequest is the request type for the
|
||||||
|
* Query/ValidatorOutstandingRewards RPC method.
|
||||||
|
*/
|
||||||
|
export interface QueryValidatorOutstandingRewardsRequest {
|
||||||
|
/** validator_address defines the validator address to query for. */
|
||||||
|
validatorAddress: string;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* QueryValidatorOutstandingRewardsRequest is the request type for the
|
||||||
|
* Query/ValidatorOutstandingRewards RPC method.
|
||||||
|
*/
|
||||||
|
export interface QueryValidatorOutstandingRewardsRequestSDKType {
|
||||||
|
validator_address: string;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* QueryValidatorOutstandingRewardsResponse is the response type for the
|
||||||
|
* Query/ValidatorOutstandingRewards RPC method.
|
||||||
|
*/
|
||||||
|
export interface QueryValidatorOutstandingRewardsResponse {
|
||||||
|
rewards?: ValidatorOutstandingRewards;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* QueryValidatorOutstandingRewardsResponse is the response type for the
|
||||||
|
* Query/ValidatorOutstandingRewards RPC method.
|
||||||
|
*/
|
||||||
|
export interface QueryValidatorOutstandingRewardsResponseSDKType {
|
||||||
|
rewards?: ValidatorOutstandingRewardsSDKType;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* QueryValidatorCommissionRequest is the request type for the
|
||||||
|
* Query/ValidatorCommission RPC method
|
||||||
|
*/
|
||||||
|
export interface QueryValidatorCommissionRequest {
|
||||||
|
/** validator_address defines the validator address to query for. */
|
||||||
|
validatorAddress: string;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* QueryValidatorCommissionRequest is the request type for the
|
||||||
|
* Query/ValidatorCommission RPC method
|
||||||
|
*/
|
||||||
|
export interface QueryValidatorCommissionRequestSDKType {
|
||||||
|
validator_address: string;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* QueryValidatorCommissionResponse is the response type for the
|
||||||
|
* Query/ValidatorCommission RPC method
|
||||||
|
*/
|
||||||
|
export interface QueryValidatorCommissionResponse {
|
||||||
|
/** commission defines the commision the validator received. */
|
||||||
|
commission?: ValidatorAccumulatedCommission;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* QueryValidatorCommissionResponse is the response type for the
|
||||||
|
* Query/ValidatorCommission RPC method
|
||||||
|
*/
|
||||||
|
export interface QueryValidatorCommissionResponseSDKType {
|
||||||
|
commission?: ValidatorAccumulatedCommissionSDKType;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* QueryValidatorSlashesRequest is the request type for the
|
||||||
|
* Query/ValidatorSlashes RPC method
|
||||||
|
*/
|
||||||
|
export interface QueryValidatorSlashesRequest {
|
||||||
|
/** validator_address defines the validator address to query for. */
|
||||||
|
validatorAddress: string;
|
||||||
|
/** starting_height defines the optional starting height to query the slashes. */
|
||||||
|
startingHeight: Long;
|
||||||
|
/** starting_height defines the optional ending height to query the slashes. */
|
||||||
|
endingHeight: Long;
|
||||||
|
/** pagination defines an optional pagination for the request. */
|
||||||
|
pagination?: PageRequest;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* QueryValidatorSlashesRequest is the request type for the
|
||||||
|
* Query/ValidatorSlashes RPC method
|
||||||
|
*/
|
||||||
|
export interface QueryValidatorSlashesRequestSDKType {
|
||||||
|
validator_address: string;
|
||||||
|
starting_height: Long;
|
||||||
|
ending_height: Long;
|
||||||
|
pagination?: PageRequestSDKType;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* QueryValidatorSlashesResponse is the response type for the
|
||||||
|
* Query/ValidatorSlashes RPC method.
|
||||||
|
*/
|
||||||
|
export interface QueryValidatorSlashesResponse {
|
||||||
|
/** slashes defines the slashes the validator received. */
|
||||||
|
slashes: ValidatorSlashEvent[];
|
||||||
|
/** pagination defines the pagination in the response. */
|
||||||
|
pagination?: PageResponse;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* QueryValidatorSlashesResponse is the response type for the
|
||||||
|
* Query/ValidatorSlashes RPC method.
|
||||||
|
*/
|
||||||
|
export interface QueryValidatorSlashesResponseSDKType {
|
||||||
|
slashes: ValidatorSlashEventSDKType[];
|
||||||
|
pagination?: PageResponseSDKType;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* QueryDelegationRewardsRequest is the request type for the
|
||||||
|
* Query/DelegationRewards RPC method.
|
||||||
|
*/
|
||||||
|
export interface QueryDelegationRewardsRequest {
|
||||||
|
/** delegator_address defines the delegator address to query for. */
|
||||||
|
delegatorAddress: string;
|
||||||
|
/** validator_address defines the validator address to query for. */
|
||||||
|
validatorAddress: string;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* QueryDelegationRewardsRequest is the request type for the
|
||||||
|
* Query/DelegationRewards RPC method.
|
||||||
|
*/
|
||||||
|
export interface QueryDelegationRewardsRequestSDKType {
|
||||||
|
delegator_address: string;
|
||||||
|
validator_address: string;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* QueryDelegationRewardsResponse is the response type for the
|
||||||
|
* Query/DelegationRewards RPC method.
|
||||||
|
*/
|
||||||
|
export interface QueryDelegationRewardsResponse {
|
||||||
|
/** rewards defines the rewards accrued by a delegation. */
|
||||||
|
rewards: DecCoin[];
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* QueryDelegationRewardsResponse is the response type for the
|
||||||
|
* Query/DelegationRewards RPC method.
|
||||||
|
*/
|
||||||
|
export interface QueryDelegationRewardsResponseSDKType {
|
||||||
|
rewards: DecCoinSDKType[];
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* QueryDelegationTotalRewardsRequest is the request type for the
|
||||||
|
* Query/DelegationTotalRewards RPC method.
|
||||||
|
*/
|
||||||
|
export interface QueryDelegationTotalRewardsRequest {
|
||||||
|
/** delegator_address defines the delegator address to query for. */
|
||||||
|
delegatorAddress: string;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* QueryDelegationTotalRewardsRequest is the request type for the
|
||||||
|
* Query/DelegationTotalRewards RPC method.
|
||||||
|
*/
|
||||||
|
export interface QueryDelegationTotalRewardsRequestSDKType {
|
||||||
|
delegator_address: string;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* QueryDelegationTotalRewardsResponse is the response type for the
|
||||||
|
* Query/DelegationTotalRewards RPC method.
|
||||||
|
*/
|
||||||
|
export interface QueryDelegationTotalRewardsResponse {
|
||||||
|
/** rewards defines all the rewards accrued by a delegator. */
|
||||||
|
rewards: DelegationDelegatorReward[];
|
||||||
|
/** total defines the sum of all the rewards. */
|
||||||
|
total: DecCoin[];
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* QueryDelegationTotalRewardsResponse is the response type for the
|
||||||
|
* Query/DelegationTotalRewards RPC method.
|
||||||
|
*/
|
||||||
|
export interface QueryDelegationTotalRewardsResponseSDKType {
|
||||||
|
rewards: DelegationDelegatorRewardSDKType[];
|
||||||
|
total: DecCoinSDKType[];
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* QueryDelegatorValidatorsRequest is the request type for the
|
||||||
|
* Query/DelegatorValidators RPC method.
|
||||||
|
*/
|
||||||
|
export interface QueryDelegatorValidatorsRequest {
|
||||||
|
/** delegator_address defines the delegator address to query for. */
|
||||||
|
delegatorAddress: string;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* QueryDelegatorValidatorsRequest is the request type for the
|
||||||
|
* Query/DelegatorValidators RPC method.
|
||||||
|
*/
|
||||||
|
export interface QueryDelegatorValidatorsRequestSDKType {
|
||||||
|
delegator_address: string;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* QueryDelegatorValidatorsResponse is the response type for the
|
||||||
|
* Query/DelegatorValidators RPC method.
|
||||||
|
*/
|
||||||
|
export interface QueryDelegatorValidatorsResponse {
|
||||||
|
/** validators defines the validators a delegator is delegating for. */
|
||||||
|
validators: string[];
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* QueryDelegatorValidatorsResponse is the response type for the
|
||||||
|
* Query/DelegatorValidators RPC method.
|
||||||
|
*/
|
||||||
|
export interface QueryDelegatorValidatorsResponseSDKType {
|
||||||
|
validators: string[];
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* QueryDelegatorWithdrawAddressRequest is the request type for the
|
||||||
|
* Query/DelegatorWithdrawAddress RPC method.
|
||||||
|
*/
|
||||||
|
export interface QueryDelegatorWithdrawAddressRequest {
|
||||||
|
/** delegator_address defines the delegator address to query for. */
|
||||||
|
delegatorAddress: string;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* QueryDelegatorWithdrawAddressRequest is the request type for the
|
||||||
|
* Query/DelegatorWithdrawAddress RPC method.
|
||||||
|
*/
|
||||||
|
export interface QueryDelegatorWithdrawAddressRequestSDKType {
|
||||||
|
delegator_address: string;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* QueryDelegatorWithdrawAddressResponse is the response type for the
|
||||||
|
* Query/DelegatorWithdrawAddress RPC method.
|
||||||
|
*/
|
||||||
|
export interface QueryDelegatorWithdrawAddressResponse {
|
||||||
|
/** withdraw_address defines the delegator address to query for. */
|
||||||
|
withdrawAddress: string;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* QueryDelegatorWithdrawAddressResponse is the response type for the
|
||||||
|
* Query/DelegatorWithdrawAddress RPC method.
|
||||||
|
*/
|
||||||
|
export interface QueryDelegatorWithdrawAddressResponseSDKType {
|
||||||
|
withdraw_address: string;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* QueryCommunityPoolRequest is the request type for the Query/CommunityPool RPC
|
||||||
|
* method.
|
||||||
|
*/
|
||||||
|
export interface QueryCommunityPoolRequest {
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* QueryCommunityPoolRequest is the request type for the Query/CommunityPool RPC
|
||||||
|
* method.
|
||||||
|
*/
|
||||||
|
export interface QueryCommunityPoolRequestSDKType {
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* QueryCommunityPoolResponse is the response type for the Query/CommunityPool
|
||||||
|
* RPC method.
|
||||||
|
*/
|
||||||
|
export interface QueryCommunityPoolResponse {
|
||||||
|
/** pool defines community pool's coins. */
|
||||||
|
pool: DecCoin[];
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* QueryCommunityPoolResponse is the response type for the Query/CommunityPool
|
||||||
|
* RPC method.
|
||||||
|
*/
|
||||||
|
export interface QueryCommunityPoolResponseSDKType {
|
||||||
|
pool: DecCoinSDKType[];
|
||||||
|
}
|
||||||
|
export declare const QueryParamsRequest: {
|
||||||
|
encode(_: QueryParamsRequest, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsRequest;
|
||||||
|
fromPartial(_: DeepPartial<QueryParamsRequest>): QueryParamsRequest;
|
||||||
|
};
|
||||||
|
export declare const QueryParamsResponse: {
|
||||||
|
encode(message: QueryParamsResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsResponse;
|
||||||
|
fromPartial(object: DeepPartial<QueryParamsResponse>): QueryParamsResponse;
|
||||||
|
};
|
||||||
|
export declare const QueryValidatorOutstandingRewardsRequest: {
|
||||||
|
encode(message: QueryValidatorOutstandingRewardsRequest, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryValidatorOutstandingRewardsRequest;
|
||||||
|
fromPartial(object: DeepPartial<QueryValidatorOutstandingRewardsRequest>): QueryValidatorOutstandingRewardsRequest;
|
||||||
|
};
|
||||||
|
export declare const QueryValidatorOutstandingRewardsResponse: {
|
||||||
|
encode(message: QueryValidatorOutstandingRewardsResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryValidatorOutstandingRewardsResponse;
|
||||||
|
fromPartial(object: DeepPartial<QueryValidatorOutstandingRewardsResponse>): QueryValidatorOutstandingRewardsResponse;
|
||||||
|
};
|
||||||
|
export declare const QueryValidatorCommissionRequest: {
|
||||||
|
encode(message: QueryValidatorCommissionRequest, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryValidatorCommissionRequest;
|
||||||
|
fromPartial(object: DeepPartial<QueryValidatorCommissionRequest>): QueryValidatorCommissionRequest;
|
||||||
|
};
|
||||||
|
export declare const QueryValidatorCommissionResponse: {
|
||||||
|
encode(message: QueryValidatorCommissionResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryValidatorCommissionResponse;
|
||||||
|
fromPartial(object: DeepPartial<QueryValidatorCommissionResponse>): QueryValidatorCommissionResponse;
|
||||||
|
};
|
||||||
|
export declare const QueryValidatorSlashesRequest: {
|
||||||
|
encode(message: QueryValidatorSlashesRequest, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryValidatorSlashesRequest;
|
||||||
|
fromPartial(object: DeepPartial<QueryValidatorSlashesRequest>): QueryValidatorSlashesRequest;
|
||||||
|
};
|
||||||
|
export declare const QueryValidatorSlashesResponse: {
|
||||||
|
encode(message: QueryValidatorSlashesResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryValidatorSlashesResponse;
|
||||||
|
fromPartial(object: DeepPartial<QueryValidatorSlashesResponse>): QueryValidatorSlashesResponse;
|
||||||
|
};
|
||||||
|
export declare const QueryDelegationRewardsRequest: {
|
||||||
|
encode(message: QueryDelegationRewardsRequest, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDelegationRewardsRequest;
|
||||||
|
fromPartial(object: DeepPartial<QueryDelegationRewardsRequest>): QueryDelegationRewardsRequest;
|
||||||
|
};
|
||||||
|
export declare const QueryDelegationRewardsResponse: {
|
||||||
|
encode(message: QueryDelegationRewardsResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDelegationRewardsResponse;
|
||||||
|
fromPartial(object: DeepPartial<QueryDelegationRewardsResponse>): QueryDelegationRewardsResponse;
|
||||||
|
};
|
||||||
|
export declare const QueryDelegationTotalRewardsRequest: {
|
||||||
|
encode(message: QueryDelegationTotalRewardsRequest, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDelegationTotalRewardsRequest;
|
||||||
|
fromPartial(object: DeepPartial<QueryDelegationTotalRewardsRequest>): QueryDelegationTotalRewardsRequest;
|
||||||
|
};
|
||||||
|
export declare const QueryDelegationTotalRewardsResponse: {
|
||||||
|
encode(message: QueryDelegationTotalRewardsResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDelegationTotalRewardsResponse;
|
||||||
|
fromPartial(object: DeepPartial<QueryDelegationTotalRewardsResponse>): QueryDelegationTotalRewardsResponse;
|
||||||
|
};
|
||||||
|
export declare const QueryDelegatorValidatorsRequest: {
|
||||||
|
encode(message: QueryDelegatorValidatorsRequest, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDelegatorValidatorsRequest;
|
||||||
|
fromPartial(object: DeepPartial<QueryDelegatorValidatorsRequest>): QueryDelegatorValidatorsRequest;
|
||||||
|
};
|
||||||
|
export declare const QueryDelegatorValidatorsResponse: {
|
||||||
|
encode(message: QueryDelegatorValidatorsResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDelegatorValidatorsResponse;
|
||||||
|
fromPartial(object: DeepPartial<QueryDelegatorValidatorsResponse>): QueryDelegatorValidatorsResponse;
|
||||||
|
};
|
||||||
|
export declare const QueryDelegatorWithdrawAddressRequest: {
|
||||||
|
encode(message: QueryDelegatorWithdrawAddressRequest, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDelegatorWithdrawAddressRequest;
|
||||||
|
fromPartial(object: DeepPartial<QueryDelegatorWithdrawAddressRequest>): QueryDelegatorWithdrawAddressRequest;
|
||||||
|
};
|
||||||
|
export declare const QueryDelegatorWithdrawAddressResponse: {
|
||||||
|
encode(message: QueryDelegatorWithdrawAddressResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDelegatorWithdrawAddressResponse;
|
||||||
|
fromPartial(object: DeepPartial<QueryDelegatorWithdrawAddressResponse>): QueryDelegatorWithdrawAddressResponse;
|
||||||
|
};
|
||||||
|
export declare const QueryCommunityPoolRequest: {
|
||||||
|
encode(_: QueryCommunityPoolRequest, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryCommunityPoolRequest;
|
||||||
|
fromPartial(_: DeepPartial<QueryCommunityPoolRequest>): QueryCommunityPoolRequest;
|
||||||
|
};
|
||||||
|
export declare const QueryCommunityPoolResponse: {
|
||||||
|
encode(message: QueryCommunityPoolResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryCommunityPoolResponse;
|
||||||
|
fromPartial(object: DeepPartial<QueryCommunityPoolResponse>): QueryCommunityPoolResponse;
|
||||||
|
};
|
17
packages/codegen/dist/cosmos/distribution/v1beta1/query.lcd.d.ts
vendored
Normal file
17
packages/codegen/dist/cosmos/distribution/v1beta1/query.lcd.d.ts
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
import { LCDClient } from "@osmonauts/lcd";
|
||||||
|
import { QueryParamsRequest, QueryParamsResponseSDKType, QueryValidatorOutstandingRewardsRequest, QueryValidatorOutstandingRewardsResponseSDKType, QueryValidatorCommissionRequest, QueryValidatorCommissionResponseSDKType, QueryValidatorSlashesRequest, QueryValidatorSlashesResponseSDKType, QueryDelegationRewardsRequest, QueryDelegationRewardsResponseSDKType, QueryDelegationTotalRewardsRequest, QueryDelegationTotalRewardsResponseSDKType, QueryDelegatorValidatorsRequest, QueryDelegatorValidatorsResponseSDKType, QueryDelegatorWithdrawAddressRequest, QueryDelegatorWithdrawAddressResponseSDKType, QueryCommunityPoolRequest, QueryCommunityPoolResponseSDKType } from "./query";
|
||||||
|
export declare class LCDQueryClient {
|
||||||
|
req: LCDClient;
|
||||||
|
constructor({ requestClient }: {
|
||||||
|
requestClient: LCDClient;
|
||||||
|
});
|
||||||
|
params(_params?: QueryParamsRequest): Promise<QueryParamsResponseSDKType>;
|
||||||
|
validatorOutstandingRewards(params: QueryValidatorOutstandingRewardsRequest): Promise<QueryValidatorOutstandingRewardsResponseSDKType>;
|
||||||
|
validatorCommission(params: QueryValidatorCommissionRequest): Promise<QueryValidatorCommissionResponseSDKType>;
|
||||||
|
validatorSlashes(params: QueryValidatorSlashesRequest): Promise<QueryValidatorSlashesResponseSDKType>;
|
||||||
|
delegationRewards(params: QueryDelegationRewardsRequest): Promise<QueryDelegationRewardsResponseSDKType>;
|
||||||
|
delegationTotalRewards(params: QueryDelegationTotalRewardsRequest): Promise<QueryDelegationTotalRewardsResponseSDKType>;
|
||||||
|
delegatorValidators(params: QueryDelegatorValidatorsRequest): Promise<QueryDelegatorValidatorsResponseSDKType>;
|
||||||
|
delegatorWithdrawAddress(params: QueryDelegatorWithdrawAddressRequest): Promise<QueryDelegatorWithdrawAddressResponseSDKType>;
|
||||||
|
communityPool(_params?: QueryCommunityPoolRequest): Promise<QueryCommunityPoolResponseSDKType>;
|
||||||
|
}
|
51
packages/codegen/dist/cosmos/distribution/v1beta1/query.rpc.Query.d.ts
vendored
Normal file
51
packages/codegen/dist/cosmos/distribution/v1beta1/query.rpc.Query.d.ts
vendored
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
import { Rpc } from "../../../helpers";
|
||||||
|
import { QueryClient } from "@cosmjs/stargate";
|
||||||
|
import { QueryParamsRequest, QueryParamsResponse, QueryValidatorOutstandingRewardsRequest, QueryValidatorOutstandingRewardsResponse, QueryValidatorCommissionRequest, QueryValidatorCommissionResponse, QueryValidatorSlashesRequest, QueryValidatorSlashesResponse, QueryDelegationRewardsRequest, QueryDelegationRewardsResponse, QueryDelegationTotalRewardsRequest, QueryDelegationTotalRewardsResponse, QueryDelegatorValidatorsRequest, QueryDelegatorValidatorsResponse, QueryDelegatorWithdrawAddressRequest, QueryDelegatorWithdrawAddressResponse, QueryCommunityPoolRequest, QueryCommunityPoolResponse } from "./query";
|
||||||
|
/** Query defines the gRPC querier service for distribution module. */
|
||||||
|
export interface Query {
|
||||||
|
/** Params queries params of the distribution module. */
|
||||||
|
params(request?: QueryParamsRequest): Promise<QueryParamsResponse>;
|
||||||
|
/** ValidatorOutstandingRewards queries rewards of a validator address. */
|
||||||
|
validatorOutstandingRewards(request: QueryValidatorOutstandingRewardsRequest): Promise<QueryValidatorOutstandingRewardsResponse>;
|
||||||
|
/** ValidatorCommission queries accumulated commission for a validator. */
|
||||||
|
validatorCommission(request: QueryValidatorCommissionRequest): Promise<QueryValidatorCommissionResponse>;
|
||||||
|
/** ValidatorSlashes queries slash events of a validator. */
|
||||||
|
validatorSlashes(request: QueryValidatorSlashesRequest): Promise<QueryValidatorSlashesResponse>;
|
||||||
|
/** DelegationRewards queries the total rewards accrued by a delegation. */
|
||||||
|
delegationRewards(request: QueryDelegationRewardsRequest): Promise<QueryDelegationRewardsResponse>;
|
||||||
|
/**
|
||||||
|
* DelegationTotalRewards queries the total rewards accrued by a each
|
||||||
|
* validator.
|
||||||
|
*/
|
||||||
|
delegationTotalRewards(request: QueryDelegationTotalRewardsRequest): Promise<QueryDelegationTotalRewardsResponse>;
|
||||||
|
/** DelegatorValidators queries the validators of a delegator. */
|
||||||
|
delegatorValidators(request: QueryDelegatorValidatorsRequest): Promise<QueryDelegatorValidatorsResponse>;
|
||||||
|
/** DelegatorWithdrawAddress queries withdraw address of a delegator. */
|
||||||
|
delegatorWithdrawAddress(request: QueryDelegatorWithdrawAddressRequest): Promise<QueryDelegatorWithdrawAddressResponse>;
|
||||||
|
/** CommunityPool queries the community pool coins. */
|
||||||
|
communityPool(request?: QueryCommunityPoolRequest): Promise<QueryCommunityPoolResponse>;
|
||||||
|
}
|
||||||
|
export declare class QueryClientImpl implements Query {
|
||||||
|
private readonly rpc;
|
||||||
|
constructor(rpc: Rpc);
|
||||||
|
params(request?: QueryParamsRequest): Promise<QueryParamsResponse>;
|
||||||
|
validatorOutstandingRewards(request: QueryValidatorOutstandingRewardsRequest): Promise<QueryValidatorOutstandingRewardsResponse>;
|
||||||
|
validatorCommission(request: QueryValidatorCommissionRequest): Promise<QueryValidatorCommissionResponse>;
|
||||||
|
validatorSlashes(request: QueryValidatorSlashesRequest): Promise<QueryValidatorSlashesResponse>;
|
||||||
|
delegationRewards(request: QueryDelegationRewardsRequest): Promise<QueryDelegationRewardsResponse>;
|
||||||
|
delegationTotalRewards(request: QueryDelegationTotalRewardsRequest): Promise<QueryDelegationTotalRewardsResponse>;
|
||||||
|
delegatorValidators(request: QueryDelegatorValidatorsRequest): Promise<QueryDelegatorValidatorsResponse>;
|
||||||
|
delegatorWithdrawAddress(request: QueryDelegatorWithdrawAddressRequest): Promise<QueryDelegatorWithdrawAddressResponse>;
|
||||||
|
communityPool(request?: QueryCommunityPoolRequest): Promise<QueryCommunityPoolResponse>;
|
||||||
|
}
|
||||||
|
export declare const createRpcQueryExtension: (base: QueryClient) => {
|
||||||
|
params(request?: QueryParamsRequest): Promise<QueryParamsResponse>;
|
||||||
|
validatorOutstandingRewards(request: QueryValidatorOutstandingRewardsRequest): Promise<QueryValidatorOutstandingRewardsResponse>;
|
||||||
|
validatorCommission(request: QueryValidatorCommissionRequest): Promise<QueryValidatorCommissionResponse>;
|
||||||
|
validatorSlashes(request: QueryValidatorSlashesRequest): Promise<QueryValidatorSlashesResponse>;
|
||||||
|
delegationRewards(request: QueryDelegationRewardsRequest): Promise<QueryDelegationRewardsResponse>;
|
||||||
|
delegationTotalRewards(request: QueryDelegationTotalRewardsRequest): Promise<QueryDelegationTotalRewardsResponse>;
|
||||||
|
delegatorValidators(request: QueryDelegatorValidatorsRequest): Promise<QueryDelegatorValidatorsResponse>;
|
||||||
|
delegatorWithdrawAddress(request: QueryDelegatorWithdrawAddressRequest): Promise<QueryDelegatorWithdrawAddressResponse>;
|
||||||
|
communityPool(request?: QueryCommunityPoolRequest): Promise<QueryCommunityPoolResponse>;
|
||||||
|
};
|
133
packages/codegen/dist/cosmos/distribution/v1beta1/tx.d.ts
vendored
Normal file
133
packages/codegen/dist/cosmos/distribution/v1beta1/tx.d.ts
vendored
Normal file
@ -0,0 +1,133 @@
|
|||||||
|
import { Coin, CoinSDKType } from "../../base/v1beta1/coin";
|
||||||
|
import * as _m0 from "protobufjs/minimal";
|
||||||
|
import { DeepPartial } from "../../../helpers";
|
||||||
|
/**
|
||||||
|
* MsgSetWithdrawAddress sets the withdraw address for
|
||||||
|
* a delegator (or validator self-delegation).
|
||||||
|
*/
|
||||||
|
export interface MsgSetWithdrawAddress {
|
||||||
|
delegatorAddress: string;
|
||||||
|
withdrawAddress: string;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* MsgSetWithdrawAddress sets the withdraw address for
|
||||||
|
* a delegator (or validator self-delegation).
|
||||||
|
*/
|
||||||
|
export interface MsgSetWithdrawAddressSDKType {
|
||||||
|
delegator_address: string;
|
||||||
|
withdraw_address: string;
|
||||||
|
}
|
||||||
|
/** MsgSetWithdrawAddressResponse defines the Msg/SetWithdrawAddress response type. */
|
||||||
|
export interface MsgSetWithdrawAddressResponse {
|
||||||
|
}
|
||||||
|
/** MsgSetWithdrawAddressResponse defines the Msg/SetWithdrawAddress response type. */
|
||||||
|
export interface MsgSetWithdrawAddressResponseSDKType {
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* MsgWithdrawDelegatorReward represents delegation withdrawal to a delegator
|
||||||
|
* from a single validator.
|
||||||
|
*/
|
||||||
|
export interface MsgWithdrawDelegatorReward {
|
||||||
|
delegatorAddress: string;
|
||||||
|
validatorAddress: string;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* MsgWithdrawDelegatorReward represents delegation withdrawal to a delegator
|
||||||
|
* from a single validator.
|
||||||
|
*/
|
||||||
|
export interface MsgWithdrawDelegatorRewardSDKType {
|
||||||
|
delegator_address: string;
|
||||||
|
validator_address: string;
|
||||||
|
}
|
||||||
|
/** MsgWithdrawDelegatorRewardResponse defines the Msg/WithdrawDelegatorReward response type. */
|
||||||
|
export interface MsgWithdrawDelegatorRewardResponse {
|
||||||
|
amount: Coin[];
|
||||||
|
}
|
||||||
|
/** MsgWithdrawDelegatorRewardResponse defines the Msg/WithdrawDelegatorReward response type. */
|
||||||
|
export interface MsgWithdrawDelegatorRewardResponseSDKType {
|
||||||
|
amount: CoinSDKType[];
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* MsgWithdrawValidatorCommission withdraws the full commission to the validator
|
||||||
|
* address.
|
||||||
|
*/
|
||||||
|
export interface MsgWithdrawValidatorCommission {
|
||||||
|
validatorAddress: string;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* MsgWithdrawValidatorCommission withdraws the full commission to the validator
|
||||||
|
* address.
|
||||||
|
*/
|
||||||
|
export interface MsgWithdrawValidatorCommissionSDKType {
|
||||||
|
validator_address: string;
|
||||||
|
}
|
||||||
|
/** MsgWithdrawValidatorCommissionResponse defines the Msg/WithdrawValidatorCommission response type. */
|
||||||
|
export interface MsgWithdrawValidatorCommissionResponse {
|
||||||
|
amount: Coin[];
|
||||||
|
}
|
||||||
|
/** MsgWithdrawValidatorCommissionResponse defines the Msg/WithdrawValidatorCommission response type. */
|
||||||
|
export interface MsgWithdrawValidatorCommissionResponseSDKType {
|
||||||
|
amount: CoinSDKType[];
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* MsgFundCommunityPool allows an account to directly
|
||||||
|
* fund the community pool.
|
||||||
|
*/
|
||||||
|
export interface MsgFundCommunityPool {
|
||||||
|
amount: Coin[];
|
||||||
|
depositor: string;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* MsgFundCommunityPool allows an account to directly
|
||||||
|
* fund the community pool.
|
||||||
|
*/
|
||||||
|
export interface MsgFundCommunityPoolSDKType {
|
||||||
|
amount: CoinSDKType[];
|
||||||
|
depositor: string;
|
||||||
|
}
|
||||||
|
/** MsgFundCommunityPoolResponse defines the Msg/FundCommunityPool response type. */
|
||||||
|
export interface MsgFundCommunityPoolResponse {
|
||||||
|
}
|
||||||
|
/** MsgFundCommunityPoolResponse defines the Msg/FundCommunityPool response type. */
|
||||||
|
export interface MsgFundCommunityPoolResponseSDKType {
|
||||||
|
}
|
||||||
|
export declare const MsgSetWithdrawAddress: {
|
||||||
|
encode(message: MsgSetWithdrawAddress, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): MsgSetWithdrawAddress;
|
||||||
|
fromPartial(object: DeepPartial<MsgSetWithdrawAddress>): MsgSetWithdrawAddress;
|
||||||
|
};
|
||||||
|
export declare const MsgSetWithdrawAddressResponse: {
|
||||||
|
encode(_: MsgSetWithdrawAddressResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): MsgSetWithdrawAddressResponse;
|
||||||
|
fromPartial(_: DeepPartial<MsgSetWithdrawAddressResponse>): MsgSetWithdrawAddressResponse;
|
||||||
|
};
|
||||||
|
export declare const MsgWithdrawDelegatorReward: {
|
||||||
|
encode(message: MsgWithdrawDelegatorReward, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): MsgWithdrawDelegatorReward;
|
||||||
|
fromPartial(object: DeepPartial<MsgWithdrawDelegatorReward>): MsgWithdrawDelegatorReward;
|
||||||
|
};
|
||||||
|
export declare const MsgWithdrawDelegatorRewardResponse: {
|
||||||
|
encode(message: MsgWithdrawDelegatorRewardResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): MsgWithdrawDelegatorRewardResponse;
|
||||||
|
fromPartial(object: DeepPartial<MsgWithdrawDelegatorRewardResponse>): MsgWithdrawDelegatorRewardResponse;
|
||||||
|
};
|
||||||
|
export declare const MsgWithdrawValidatorCommission: {
|
||||||
|
encode(message: MsgWithdrawValidatorCommission, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): MsgWithdrawValidatorCommission;
|
||||||
|
fromPartial(object: DeepPartial<MsgWithdrawValidatorCommission>): MsgWithdrawValidatorCommission;
|
||||||
|
};
|
||||||
|
export declare const MsgWithdrawValidatorCommissionResponse: {
|
||||||
|
encode(message: MsgWithdrawValidatorCommissionResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): MsgWithdrawValidatorCommissionResponse;
|
||||||
|
fromPartial(object: DeepPartial<MsgWithdrawValidatorCommissionResponse>): MsgWithdrawValidatorCommissionResponse;
|
||||||
|
};
|
||||||
|
export declare const MsgFundCommunityPool: {
|
||||||
|
encode(message: MsgFundCommunityPool, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): MsgFundCommunityPool;
|
||||||
|
fromPartial(object: DeepPartial<MsgFundCommunityPool>): MsgFundCommunityPool;
|
||||||
|
};
|
||||||
|
export declare const MsgFundCommunityPoolResponse: {
|
||||||
|
encode(_: MsgFundCommunityPoolResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): MsgFundCommunityPoolResponse;
|
||||||
|
fromPartial(_: DeepPartial<MsgFundCommunityPoolResponse>): MsgFundCommunityPoolResponse;
|
||||||
|
};
|
33
packages/codegen/dist/cosmos/distribution/v1beta1/tx.rpc.msg.d.ts
vendored
Normal file
33
packages/codegen/dist/cosmos/distribution/v1beta1/tx.rpc.msg.d.ts
vendored
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
import { Rpc } from "../../../helpers";
|
||||||
|
import { MsgSetWithdrawAddress, MsgSetWithdrawAddressResponse, MsgWithdrawDelegatorReward, MsgWithdrawDelegatorRewardResponse, MsgWithdrawValidatorCommission, MsgWithdrawValidatorCommissionResponse, MsgFundCommunityPool, MsgFundCommunityPoolResponse } from "./tx";
|
||||||
|
/** Msg defines the distribution Msg service. */
|
||||||
|
export interface Msg {
|
||||||
|
/**
|
||||||
|
* SetWithdrawAddress defines a method to change the withdraw address
|
||||||
|
* for a delegator (or validator self-delegation).
|
||||||
|
*/
|
||||||
|
setWithdrawAddress(request: MsgSetWithdrawAddress): Promise<MsgSetWithdrawAddressResponse>;
|
||||||
|
/**
|
||||||
|
* WithdrawDelegatorReward defines a method to withdraw rewards of delegator
|
||||||
|
* from a single validator.
|
||||||
|
*/
|
||||||
|
withdrawDelegatorReward(request: MsgWithdrawDelegatorReward): Promise<MsgWithdrawDelegatorRewardResponse>;
|
||||||
|
/**
|
||||||
|
* WithdrawValidatorCommission defines a method to withdraw the
|
||||||
|
* full commission to the validator address.
|
||||||
|
*/
|
||||||
|
withdrawValidatorCommission(request: MsgWithdrawValidatorCommission): Promise<MsgWithdrawValidatorCommissionResponse>;
|
||||||
|
/**
|
||||||
|
* FundCommunityPool defines a method to allow an account to directly
|
||||||
|
* fund the community pool.
|
||||||
|
*/
|
||||||
|
fundCommunityPool(request: MsgFundCommunityPool): Promise<MsgFundCommunityPoolResponse>;
|
||||||
|
}
|
||||||
|
export declare class MsgClientImpl implements Msg {
|
||||||
|
private readonly rpc;
|
||||||
|
constructor(rpc: Rpc);
|
||||||
|
setWithdrawAddress(request: MsgSetWithdrawAddress): Promise<MsgSetWithdrawAddressResponse>;
|
||||||
|
withdrawDelegatorReward(request: MsgWithdrawDelegatorReward): Promise<MsgWithdrawDelegatorRewardResponse>;
|
||||||
|
withdrawValidatorCommission(request: MsgWithdrawValidatorCommission): Promise<MsgWithdrawValidatorCommissionResponse>;
|
||||||
|
fundCommunityPool(request: MsgFundCommunityPool): Promise<MsgFundCommunityPoolResponse>;
|
||||||
|
}
|
28
packages/codegen/dist/cosmos/evidence/v1beta1/evidence.d.ts
vendored
Normal file
28
packages/codegen/dist/cosmos/evidence/v1beta1/evidence.d.ts
vendored
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
/// <reference types="long" />
|
||||||
|
import { Long, DeepPartial } from "../../../helpers";
|
||||||
|
import * as _m0 from "protobufjs/minimal";
|
||||||
|
/**
|
||||||
|
* Equivocation implements the Evidence interface and defines evidence of double
|
||||||
|
* signing misbehavior.
|
||||||
|
*/
|
||||||
|
export interface Equivocation {
|
||||||
|
height: Long;
|
||||||
|
time?: Date;
|
||||||
|
power: Long;
|
||||||
|
consensusAddress: string;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Equivocation implements the Evidence interface and defines evidence of double
|
||||||
|
* signing misbehavior.
|
||||||
|
*/
|
||||||
|
export interface EquivocationSDKType {
|
||||||
|
height: Long;
|
||||||
|
time?: Date;
|
||||||
|
power: Long;
|
||||||
|
consensus_address: string;
|
||||||
|
}
|
||||||
|
export declare const Equivocation: {
|
||||||
|
encode(message: Equivocation, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): Equivocation;
|
||||||
|
fromPartial(object: DeepPartial<Equivocation>): Equivocation;
|
||||||
|
};
|
17
packages/codegen/dist/cosmos/evidence/v1beta1/genesis.d.ts
vendored
Normal file
17
packages/codegen/dist/cosmos/evidence/v1beta1/genesis.d.ts
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
import { Any, AnySDKType } from "../../../google/protobuf/any";
|
||||||
|
import * as _m0 from "protobufjs/minimal";
|
||||||
|
import { DeepPartial } from "../../../helpers";
|
||||||
|
/** GenesisState defines the evidence module's genesis state. */
|
||||||
|
export interface GenesisState {
|
||||||
|
/** evidence defines all the evidence at genesis. */
|
||||||
|
evidence: Any[];
|
||||||
|
}
|
||||||
|
/** GenesisState defines the evidence module's genesis state. */
|
||||||
|
export interface GenesisStateSDKType {
|
||||||
|
evidence: AnySDKType[];
|
||||||
|
}
|
||||||
|
export declare const GenesisState: {
|
||||||
|
encode(message: GenesisState, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): GenesisState;
|
||||||
|
fromPartial(object: DeepPartial<GenesisState>): GenesisState;
|
||||||
|
};
|
75
packages/codegen/dist/cosmos/evidence/v1beta1/query.d.ts
vendored
Normal file
75
packages/codegen/dist/cosmos/evidence/v1beta1/query.d.ts
vendored
Normal file
@ -0,0 +1,75 @@
|
|||||||
|
import { PageRequest, PageRequestSDKType, PageResponse, PageResponseSDKType } from "../../base/query/v1beta1/pagination";
|
||||||
|
import { Any, AnySDKType } from "../../../google/protobuf/any";
|
||||||
|
import * as _m0 from "protobufjs/minimal";
|
||||||
|
import { DeepPartial } from "../../../helpers";
|
||||||
|
/** QueryEvidenceRequest is the request type for the Query/Evidence RPC method. */
|
||||||
|
export interface QueryEvidenceRequest {
|
||||||
|
/** evidence_hash defines the hash of the requested evidence. */
|
||||||
|
evidenceHash: Uint8Array;
|
||||||
|
}
|
||||||
|
/** QueryEvidenceRequest is the request type for the Query/Evidence RPC method. */
|
||||||
|
export interface QueryEvidenceRequestSDKType {
|
||||||
|
evidence_hash: Uint8Array;
|
||||||
|
}
|
||||||
|
/** QueryEvidenceResponse is the response type for the Query/Evidence RPC method. */
|
||||||
|
export interface QueryEvidenceResponse {
|
||||||
|
/** evidence returns the requested evidence. */
|
||||||
|
evidence?: Any;
|
||||||
|
}
|
||||||
|
/** QueryEvidenceResponse is the response type for the Query/Evidence RPC method. */
|
||||||
|
export interface QueryEvidenceResponseSDKType {
|
||||||
|
evidence?: AnySDKType;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* QueryEvidenceRequest is the request type for the Query/AllEvidence RPC
|
||||||
|
* method.
|
||||||
|
*/
|
||||||
|
export interface QueryAllEvidenceRequest {
|
||||||
|
/** pagination defines an optional pagination for the request. */
|
||||||
|
pagination?: PageRequest;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* QueryEvidenceRequest is the request type for the Query/AllEvidence RPC
|
||||||
|
* method.
|
||||||
|
*/
|
||||||
|
export interface QueryAllEvidenceRequestSDKType {
|
||||||
|
pagination?: PageRequestSDKType;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* QueryAllEvidenceResponse is the response type for the Query/AllEvidence RPC
|
||||||
|
* method.
|
||||||
|
*/
|
||||||
|
export interface QueryAllEvidenceResponse {
|
||||||
|
/** evidence returns all evidences. */
|
||||||
|
evidence: Any[];
|
||||||
|
/** pagination defines the pagination in the response. */
|
||||||
|
pagination?: PageResponse;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* QueryAllEvidenceResponse is the response type for the Query/AllEvidence RPC
|
||||||
|
* method.
|
||||||
|
*/
|
||||||
|
export interface QueryAllEvidenceResponseSDKType {
|
||||||
|
evidence: AnySDKType[];
|
||||||
|
pagination?: PageResponseSDKType;
|
||||||
|
}
|
||||||
|
export declare const QueryEvidenceRequest: {
|
||||||
|
encode(message: QueryEvidenceRequest, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryEvidenceRequest;
|
||||||
|
fromPartial(object: DeepPartial<QueryEvidenceRequest>): QueryEvidenceRequest;
|
||||||
|
};
|
||||||
|
export declare const QueryEvidenceResponse: {
|
||||||
|
encode(message: QueryEvidenceResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryEvidenceResponse;
|
||||||
|
fromPartial(object: DeepPartial<QueryEvidenceResponse>): QueryEvidenceResponse;
|
||||||
|
};
|
||||||
|
export declare const QueryAllEvidenceRequest: {
|
||||||
|
encode(message: QueryAllEvidenceRequest, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryAllEvidenceRequest;
|
||||||
|
fromPartial(object: DeepPartial<QueryAllEvidenceRequest>): QueryAllEvidenceRequest;
|
||||||
|
};
|
||||||
|
export declare const QueryAllEvidenceResponse: {
|
||||||
|
encode(message: QueryAllEvidenceResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryAllEvidenceResponse;
|
||||||
|
fromPartial(object: DeepPartial<QueryAllEvidenceResponse>): QueryAllEvidenceResponse;
|
||||||
|
};
|
10
packages/codegen/dist/cosmos/evidence/v1beta1/query.lcd.d.ts
vendored
Normal file
10
packages/codegen/dist/cosmos/evidence/v1beta1/query.lcd.d.ts
vendored
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
import { LCDClient } from "@osmonauts/lcd";
|
||||||
|
import { QueryEvidenceRequest, QueryEvidenceResponseSDKType, QueryAllEvidenceRequest, QueryAllEvidenceResponseSDKType } from "./query";
|
||||||
|
export declare class LCDQueryClient {
|
||||||
|
req: LCDClient;
|
||||||
|
constructor({ requestClient }: {
|
||||||
|
requestClient: LCDClient;
|
||||||
|
});
|
||||||
|
evidence(params: QueryEvidenceRequest): Promise<QueryEvidenceResponseSDKType>;
|
||||||
|
allEvidence(params?: QueryAllEvidenceRequest): Promise<QueryAllEvidenceResponseSDKType>;
|
||||||
|
}
|
20
packages/codegen/dist/cosmos/evidence/v1beta1/query.rpc.Query.d.ts
vendored
Normal file
20
packages/codegen/dist/cosmos/evidence/v1beta1/query.rpc.Query.d.ts
vendored
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
import { Rpc } from "../../../helpers";
|
||||||
|
import { QueryClient } from "@cosmjs/stargate";
|
||||||
|
import { QueryEvidenceRequest, QueryEvidenceResponse, QueryAllEvidenceRequest, QueryAllEvidenceResponse } from "./query";
|
||||||
|
/** Query defines the gRPC querier service. */
|
||||||
|
export interface Query {
|
||||||
|
/** Evidence queries evidence based on evidence hash. */
|
||||||
|
evidence(request: QueryEvidenceRequest): Promise<QueryEvidenceResponse>;
|
||||||
|
/** AllEvidence queries all evidence. */
|
||||||
|
allEvidence(request?: QueryAllEvidenceRequest): Promise<QueryAllEvidenceResponse>;
|
||||||
|
}
|
||||||
|
export declare class QueryClientImpl implements Query {
|
||||||
|
private readonly rpc;
|
||||||
|
constructor(rpc: Rpc);
|
||||||
|
evidence(request: QueryEvidenceRequest): Promise<QueryEvidenceResponse>;
|
||||||
|
allEvidence(request?: QueryAllEvidenceRequest): Promise<QueryAllEvidenceResponse>;
|
||||||
|
}
|
||||||
|
export declare const createRpcQueryExtension: (base: QueryClient) => {
|
||||||
|
evidence(request: QueryEvidenceRequest): Promise<QueryEvidenceResponse>;
|
||||||
|
allEvidence(request?: QueryAllEvidenceRequest): Promise<QueryAllEvidenceResponse>;
|
||||||
|
};
|
38
packages/codegen/dist/cosmos/evidence/v1beta1/tx.d.ts
vendored
Normal file
38
packages/codegen/dist/cosmos/evidence/v1beta1/tx.d.ts
vendored
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
import { Any, AnySDKType } from "../../../google/protobuf/any";
|
||||||
|
import * as _m0 from "protobufjs/minimal";
|
||||||
|
import { DeepPartial } from "../../../helpers";
|
||||||
|
/**
|
||||||
|
* MsgSubmitEvidence represents a message that supports submitting arbitrary
|
||||||
|
* Evidence of misbehavior such as equivocation or counterfactual signing.
|
||||||
|
*/
|
||||||
|
export interface MsgSubmitEvidence {
|
||||||
|
submitter: string;
|
||||||
|
evidence?: Any;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* MsgSubmitEvidence represents a message that supports submitting arbitrary
|
||||||
|
* Evidence of misbehavior such as equivocation or counterfactual signing.
|
||||||
|
*/
|
||||||
|
export interface MsgSubmitEvidenceSDKType {
|
||||||
|
submitter: string;
|
||||||
|
evidence?: AnySDKType;
|
||||||
|
}
|
||||||
|
/** MsgSubmitEvidenceResponse defines the Msg/SubmitEvidence response type. */
|
||||||
|
export interface MsgSubmitEvidenceResponse {
|
||||||
|
/** hash defines the hash of the evidence. */
|
||||||
|
hash: Uint8Array;
|
||||||
|
}
|
||||||
|
/** MsgSubmitEvidenceResponse defines the Msg/SubmitEvidence response type. */
|
||||||
|
export interface MsgSubmitEvidenceResponseSDKType {
|
||||||
|
hash: Uint8Array;
|
||||||
|
}
|
||||||
|
export declare const MsgSubmitEvidence: {
|
||||||
|
encode(message: MsgSubmitEvidence, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): MsgSubmitEvidence;
|
||||||
|
fromPartial(object: DeepPartial<MsgSubmitEvidence>): MsgSubmitEvidence;
|
||||||
|
};
|
||||||
|
export declare const MsgSubmitEvidenceResponse: {
|
||||||
|
encode(message: MsgSubmitEvidenceResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): MsgSubmitEvidenceResponse;
|
||||||
|
fromPartial(object: DeepPartial<MsgSubmitEvidenceResponse>): MsgSubmitEvidenceResponse;
|
||||||
|
};
|
15
packages/codegen/dist/cosmos/evidence/v1beta1/tx.rpc.msg.d.ts
vendored
Normal file
15
packages/codegen/dist/cosmos/evidence/v1beta1/tx.rpc.msg.d.ts
vendored
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
import { Rpc } from "../../../helpers";
|
||||||
|
import { MsgSubmitEvidence, MsgSubmitEvidenceResponse } from "./tx";
|
||||||
|
/** Msg defines the evidence Msg service. */
|
||||||
|
export interface Msg {
|
||||||
|
/**
|
||||||
|
* SubmitEvidence submits an arbitrary Evidence of misbehavior such as equivocation or
|
||||||
|
* counterfactual signing.
|
||||||
|
*/
|
||||||
|
submitEvidence(request: MsgSubmitEvidence): Promise<MsgSubmitEvidenceResponse>;
|
||||||
|
}
|
||||||
|
export declare class MsgClientImpl implements Msg {
|
||||||
|
private readonly rpc;
|
||||||
|
constructor(rpc: Rpc);
|
||||||
|
submitEvidence(request: MsgSubmitEvidence): Promise<MsgSubmitEvidenceResponse>;
|
||||||
|
}
|
111
packages/codegen/dist/cosmos/feegrant/v1beta1/feegrant.d.ts
vendored
Normal file
111
packages/codegen/dist/cosmos/feegrant/v1beta1/feegrant.d.ts
vendored
Normal file
@ -0,0 +1,111 @@
|
|||||||
|
import { Coin, CoinSDKType } from "../../base/v1beta1/coin";
|
||||||
|
import { Duration, DurationSDKType } from "../../../google/protobuf/duration";
|
||||||
|
import { Any, AnySDKType } from "../../../google/protobuf/any";
|
||||||
|
import * as _m0 from "protobufjs/minimal";
|
||||||
|
import { DeepPartial } from "../../../helpers";
|
||||||
|
/**
|
||||||
|
* BasicAllowance implements Allowance with a one-time grant of tokens
|
||||||
|
* that optionally expires. The grantee can use up to SpendLimit to cover fees.
|
||||||
|
*/
|
||||||
|
export interface BasicAllowance {
|
||||||
|
/**
|
||||||
|
* spend_limit specifies the maximum amount of tokens that can be spent
|
||||||
|
* by this allowance and will be updated as tokens are spent. If it is
|
||||||
|
* empty, there is no spend limit and any amount of coins can be spent.
|
||||||
|
*/
|
||||||
|
spendLimit: Coin[];
|
||||||
|
/** expiration specifies an optional time when this allowance expires */
|
||||||
|
expiration?: Date;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* BasicAllowance implements Allowance with a one-time grant of tokens
|
||||||
|
* that optionally expires. The grantee can use up to SpendLimit to cover fees.
|
||||||
|
*/
|
||||||
|
export interface BasicAllowanceSDKType {
|
||||||
|
spend_limit: CoinSDKType[];
|
||||||
|
expiration?: Date;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* PeriodicAllowance extends Allowance to allow for both a maximum cap,
|
||||||
|
* as well as a limit per time period.
|
||||||
|
*/
|
||||||
|
export interface PeriodicAllowance {
|
||||||
|
/** basic specifies a struct of `BasicAllowance` */
|
||||||
|
basic?: BasicAllowance;
|
||||||
|
/**
|
||||||
|
* period specifies the time duration in which period_spend_limit coins can
|
||||||
|
* be spent before that allowance is reset
|
||||||
|
*/
|
||||||
|
period?: Duration;
|
||||||
|
/**
|
||||||
|
* period_spend_limit specifies the maximum number of coins that can be spent
|
||||||
|
* in the period
|
||||||
|
*/
|
||||||
|
periodSpendLimit: Coin[];
|
||||||
|
/** period_can_spend is the number of coins left to be spent before the period_reset time */
|
||||||
|
periodCanSpend: Coin[];
|
||||||
|
/**
|
||||||
|
* period_reset is the time at which this period resets and a new one begins,
|
||||||
|
* it is calculated from the start time of the first transaction after the
|
||||||
|
* last period ended
|
||||||
|
*/
|
||||||
|
periodReset?: Date;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* PeriodicAllowance extends Allowance to allow for both a maximum cap,
|
||||||
|
* as well as a limit per time period.
|
||||||
|
*/
|
||||||
|
export interface PeriodicAllowanceSDKType {
|
||||||
|
basic?: BasicAllowanceSDKType;
|
||||||
|
period?: DurationSDKType;
|
||||||
|
period_spend_limit: CoinSDKType[];
|
||||||
|
period_can_spend: CoinSDKType[];
|
||||||
|
period_reset?: Date;
|
||||||
|
}
|
||||||
|
/** AllowedMsgAllowance creates allowance only for specified message types. */
|
||||||
|
export interface AllowedMsgAllowance {
|
||||||
|
/** allowance can be any of basic and periodic fee allowance. */
|
||||||
|
allowance?: Any;
|
||||||
|
/** allowed_messages are the messages for which the grantee has the access. */
|
||||||
|
allowedMessages: string[];
|
||||||
|
}
|
||||||
|
/** AllowedMsgAllowance creates allowance only for specified message types. */
|
||||||
|
export interface AllowedMsgAllowanceSDKType {
|
||||||
|
allowance?: AnySDKType;
|
||||||
|
allowed_messages: string[];
|
||||||
|
}
|
||||||
|
/** Grant is stored in the KVStore to record a grant with full context */
|
||||||
|
export interface Grant {
|
||||||
|
/** granter is the address of the user granting an allowance of their funds. */
|
||||||
|
granter: string;
|
||||||
|
/** grantee is the address of the user being granted an allowance of another user's funds. */
|
||||||
|
grantee: string;
|
||||||
|
/** allowance can be any of basic, periodic, allowed fee allowance. */
|
||||||
|
allowance?: Any;
|
||||||
|
}
|
||||||
|
/** Grant is stored in the KVStore to record a grant with full context */
|
||||||
|
export interface GrantSDKType {
|
||||||
|
granter: string;
|
||||||
|
grantee: string;
|
||||||
|
allowance?: AnySDKType;
|
||||||
|
}
|
||||||
|
export declare const BasicAllowance: {
|
||||||
|
encode(message: BasicAllowance, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): BasicAllowance;
|
||||||
|
fromPartial(object: DeepPartial<BasicAllowance>): BasicAllowance;
|
||||||
|
};
|
||||||
|
export declare const PeriodicAllowance: {
|
||||||
|
encode(message: PeriodicAllowance, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): PeriodicAllowance;
|
||||||
|
fromPartial(object: DeepPartial<PeriodicAllowance>): PeriodicAllowance;
|
||||||
|
};
|
||||||
|
export declare const AllowedMsgAllowance: {
|
||||||
|
encode(message: AllowedMsgAllowance, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): AllowedMsgAllowance;
|
||||||
|
fromPartial(object: DeepPartial<AllowedMsgAllowance>): AllowedMsgAllowance;
|
||||||
|
};
|
||||||
|
export declare const Grant: {
|
||||||
|
encode(message: Grant, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): Grant;
|
||||||
|
fromPartial(object: DeepPartial<Grant>): Grant;
|
||||||
|
};
|
16
packages/codegen/dist/cosmos/feegrant/v1beta1/genesis.d.ts
vendored
Normal file
16
packages/codegen/dist/cosmos/feegrant/v1beta1/genesis.d.ts
vendored
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
import { Grant, GrantSDKType } from "./feegrant";
|
||||||
|
import * as _m0 from "protobufjs/minimal";
|
||||||
|
import { DeepPartial } from "../../../helpers";
|
||||||
|
/** GenesisState contains a set of fee allowances, persisted from the store */
|
||||||
|
export interface GenesisState {
|
||||||
|
allowances: Grant[];
|
||||||
|
}
|
||||||
|
/** GenesisState contains a set of fee allowances, persisted from the store */
|
||||||
|
export interface GenesisStateSDKType {
|
||||||
|
allowances: GrantSDKType[];
|
||||||
|
}
|
||||||
|
export declare const GenesisState: {
|
||||||
|
encode(message: GenesisState, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): GenesisState;
|
||||||
|
fromPartial(object: DeepPartial<GenesisState>): GenesisState;
|
||||||
|
};
|
101
packages/codegen/dist/cosmos/feegrant/v1beta1/query.d.ts
vendored
Normal file
101
packages/codegen/dist/cosmos/feegrant/v1beta1/query.d.ts
vendored
Normal file
@ -0,0 +1,101 @@
|
|||||||
|
import { PageRequest, PageRequestSDKType, PageResponse, PageResponseSDKType } from "../../base/query/v1beta1/pagination";
|
||||||
|
import { Grant, GrantSDKType } from "./feegrant";
|
||||||
|
import * as _m0 from "protobufjs/minimal";
|
||||||
|
import { DeepPartial } from "../../../helpers";
|
||||||
|
/** QueryAllowanceRequest is the request type for the Query/Allowance RPC method. */
|
||||||
|
export interface QueryAllowanceRequest {
|
||||||
|
/** granter is the address of the user granting an allowance of their funds. */
|
||||||
|
granter: string;
|
||||||
|
/** grantee is the address of the user being granted an allowance of another user's funds. */
|
||||||
|
grantee: string;
|
||||||
|
}
|
||||||
|
/** QueryAllowanceRequest is the request type for the Query/Allowance RPC method. */
|
||||||
|
export interface QueryAllowanceRequestSDKType {
|
||||||
|
granter: string;
|
||||||
|
grantee: string;
|
||||||
|
}
|
||||||
|
/** QueryAllowanceResponse is the response type for the Query/Allowance RPC method. */
|
||||||
|
export interface QueryAllowanceResponse {
|
||||||
|
/** allowance is a allowance granted for grantee by granter. */
|
||||||
|
allowance?: Grant;
|
||||||
|
}
|
||||||
|
/** QueryAllowanceResponse is the response type for the Query/Allowance RPC method. */
|
||||||
|
export interface QueryAllowanceResponseSDKType {
|
||||||
|
allowance?: GrantSDKType;
|
||||||
|
}
|
||||||
|
/** QueryAllowancesRequest is the request type for the Query/Allowances RPC method. */
|
||||||
|
export interface QueryAllowancesRequest {
|
||||||
|
grantee: string;
|
||||||
|
/** pagination defines an pagination for the request. */
|
||||||
|
pagination?: PageRequest;
|
||||||
|
}
|
||||||
|
/** QueryAllowancesRequest is the request type for the Query/Allowances RPC method. */
|
||||||
|
export interface QueryAllowancesRequestSDKType {
|
||||||
|
grantee: string;
|
||||||
|
pagination?: PageRequestSDKType;
|
||||||
|
}
|
||||||
|
/** QueryAllowancesResponse is the response type for the Query/Allowances RPC method. */
|
||||||
|
export interface QueryAllowancesResponse {
|
||||||
|
/** allowances are allowance's granted for grantee by granter. */
|
||||||
|
allowances: Grant[];
|
||||||
|
/** pagination defines an pagination for the response. */
|
||||||
|
pagination?: PageResponse;
|
||||||
|
}
|
||||||
|
/** QueryAllowancesResponse is the response type for the Query/Allowances RPC method. */
|
||||||
|
export interface QueryAllowancesResponseSDKType {
|
||||||
|
allowances: GrantSDKType[];
|
||||||
|
pagination?: PageResponseSDKType;
|
||||||
|
}
|
||||||
|
/** QueryAllowancesByGranterRequest is the request type for the Query/AllowancesByGranter RPC method. */
|
||||||
|
export interface QueryAllowancesByGranterRequest {
|
||||||
|
granter: string;
|
||||||
|
/** pagination defines an pagination for the request. */
|
||||||
|
pagination?: PageRequest;
|
||||||
|
}
|
||||||
|
/** QueryAllowancesByGranterRequest is the request type for the Query/AllowancesByGranter RPC method. */
|
||||||
|
export interface QueryAllowancesByGranterRequestSDKType {
|
||||||
|
granter: string;
|
||||||
|
pagination?: PageRequestSDKType;
|
||||||
|
}
|
||||||
|
/** QueryAllowancesByGranterResponse is the response type for the Query/AllowancesByGranter RPC method. */
|
||||||
|
export interface QueryAllowancesByGranterResponse {
|
||||||
|
/** allowances that have been issued by the granter. */
|
||||||
|
allowances: Grant[];
|
||||||
|
/** pagination defines an pagination for the response. */
|
||||||
|
pagination?: PageResponse;
|
||||||
|
}
|
||||||
|
/** QueryAllowancesByGranterResponse is the response type for the Query/AllowancesByGranter RPC method. */
|
||||||
|
export interface QueryAllowancesByGranterResponseSDKType {
|
||||||
|
allowances: GrantSDKType[];
|
||||||
|
pagination?: PageResponseSDKType;
|
||||||
|
}
|
||||||
|
export declare const QueryAllowanceRequest: {
|
||||||
|
encode(message: QueryAllowanceRequest, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryAllowanceRequest;
|
||||||
|
fromPartial(object: DeepPartial<QueryAllowanceRequest>): QueryAllowanceRequest;
|
||||||
|
};
|
||||||
|
export declare const QueryAllowanceResponse: {
|
||||||
|
encode(message: QueryAllowanceResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryAllowanceResponse;
|
||||||
|
fromPartial(object: DeepPartial<QueryAllowanceResponse>): QueryAllowanceResponse;
|
||||||
|
};
|
||||||
|
export declare const QueryAllowancesRequest: {
|
||||||
|
encode(message: QueryAllowancesRequest, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryAllowancesRequest;
|
||||||
|
fromPartial(object: DeepPartial<QueryAllowancesRequest>): QueryAllowancesRequest;
|
||||||
|
};
|
||||||
|
export declare const QueryAllowancesResponse: {
|
||||||
|
encode(message: QueryAllowancesResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryAllowancesResponse;
|
||||||
|
fromPartial(object: DeepPartial<QueryAllowancesResponse>): QueryAllowancesResponse;
|
||||||
|
};
|
||||||
|
export declare const QueryAllowancesByGranterRequest: {
|
||||||
|
encode(message: QueryAllowancesByGranterRequest, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryAllowancesByGranterRequest;
|
||||||
|
fromPartial(object: DeepPartial<QueryAllowancesByGranterRequest>): QueryAllowancesByGranterRequest;
|
||||||
|
};
|
||||||
|
export declare const QueryAllowancesByGranterResponse: {
|
||||||
|
encode(message: QueryAllowancesByGranterResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryAllowancesByGranterResponse;
|
||||||
|
fromPartial(object: DeepPartial<QueryAllowancesByGranterResponse>): QueryAllowancesByGranterResponse;
|
||||||
|
};
|
11
packages/codegen/dist/cosmos/feegrant/v1beta1/query.lcd.d.ts
vendored
Normal file
11
packages/codegen/dist/cosmos/feegrant/v1beta1/query.lcd.d.ts
vendored
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
import { LCDClient } from "@osmonauts/lcd";
|
||||||
|
import { QueryAllowanceRequest, QueryAllowanceResponseSDKType, QueryAllowancesRequest, QueryAllowancesResponseSDKType, QueryAllowancesByGranterRequest, QueryAllowancesByGranterResponseSDKType } from "./query";
|
||||||
|
export declare class LCDQueryClient {
|
||||||
|
req: LCDClient;
|
||||||
|
constructor({ requestClient }: {
|
||||||
|
requestClient: LCDClient;
|
||||||
|
});
|
||||||
|
allowance(params: QueryAllowanceRequest): Promise<QueryAllowanceResponseSDKType>;
|
||||||
|
allowances(params: QueryAllowancesRequest): Promise<QueryAllowancesResponseSDKType>;
|
||||||
|
allowancesByGranter(params: QueryAllowancesByGranterRequest): Promise<QueryAllowancesByGranterResponseSDKType>;
|
||||||
|
}
|
27
packages/codegen/dist/cosmos/feegrant/v1beta1/query.rpc.Query.d.ts
vendored
Normal file
27
packages/codegen/dist/cosmos/feegrant/v1beta1/query.rpc.Query.d.ts
vendored
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
import { Rpc } from "../../../helpers";
|
||||||
|
import { QueryClient } from "@cosmjs/stargate";
|
||||||
|
import { QueryAllowanceRequest, QueryAllowanceResponse, QueryAllowancesRequest, QueryAllowancesResponse, QueryAllowancesByGranterRequest, QueryAllowancesByGranterResponse } from "./query";
|
||||||
|
/** Query defines the gRPC querier service. */
|
||||||
|
export interface Query {
|
||||||
|
/** Allowance returns fee granted to the grantee by the granter. */
|
||||||
|
allowance(request: QueryAllowanceRequest): Promise<QueryAllowanceResponse>;
|
||||||
|
/** Allowances returns all the grants for address. */
|
||||||
|
allowances(request: QueryAllowancesRequest): Promise<QueryAllowancesResponse>;
|
||||||
|
/**
|
||||||
|
* AllowancesByGranter returns all the grants given by an address
|
||||||
|
* Since v0.46
|
||||||
|
*/
|
||||||
|
allowancesByGranter(request: QueryAllowancesByGranterRequest): Promise<QueryAllowancesByGranterResponse>;
|
||||||
|
}
|
||||||
|
export declare class QueryClientImpl implements Query {
|
||||||
|
private readonly rpc;
|
||||||
|
constructor(rpc: Rpc);
|
||||||
|
allowance(request: QueryAllowanceRequest): Promise<QueryAllowanceResponse>;
|
||||||
|
allowances(request: QueryAllowancesRequest): Promise<QueryAllowancesResponse>;
|
||||||
|
allowancesByGranter(request: QueryAllowancesByGranterRequest): Promise<QueryAllowancesByGranterResponse>;
|
||||||
|
}
|
||||||
|
export declare const createRpcQueryExtension: (base: QueryClient) => {
|
||||||
|
allowance(request: QueryAllowanceRequest): Promise<QueryAllowanceResponse>;
|
||||||
|
allowances(request: QueryAllowancesRequest): Promise<QueryAllowancesResponse>;
|
||||||
|
allowancesByGranter(request: QueryAllowancesByGranterRequest): Promise<QueryAllowancesByGranterResponse>;
|
||||||
|
};
|
68
packages/codegen/dist/cosmos/feegrant/v1beta1/tx.d.ts
vendored
Normal file
68
packages/codegen/dist/cosmos/feegrant/v1beta1/tx.d.ts
vendored
Normal file
@ -0,0 +1,68 @@
|
|||||||
|
import { Any, AnySDKType } from "../../../google/protobuf/any";
|
||||||
|
import * as _m0 from "protobufjs/minimal";
|
||||||
|
import { DeepPartial } from "../../../helpers";
|
||||||
|
/**
|
||||||
|
* MsgGrantAllowance adds permission for Grantee to spend up to Allowance
|
||||||
|
* of fees from the account of Granter.
|
||||||
|
*/
|
||||||
|
export interface MsgGrantAllowance {
|
||||||
|
/** granter is the address of the user granting an allowance of their funds. */
|
||||||
|
granter: string;
|
||||||
|
/** grantee is the address of the user being granted an allowance of another user's funds. */
|
||||||
|
grantee: string;
|
||||||
|
/** allowance can be any of basic, periodic, allowed fee allowance. */
|
||||||
|
allowance?: Any;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* MsgGrantAllowance adds permission for Grantee to spend up to Allowance
|
||||||
|
* of fees from the account of Granter.
|
||||||
|
*/
|
||||||
|
export interface MsgGrantAllowanceSDKType {
|
||||||
|
granter: string;
|
||||||
|
grantee: string;
|
||||||
|
allowance?: AnySDKType;
|
||||||
|
}
|
||||||
|
/** MsgGrantAllowanceResponse defines the Msg/GrantAllowanceResponse response type. */
|
||||||
|
export interface MsgGrantAllowanceResponse {
|
||||||
|
}
|
||||||
|
/** MsgGrantAllowanceResponse defines the Msg/GrantAllowanceResponse response type. */
|
||||||
|
export interface MsgGrantAllowanceResponseSDKType {
|
||||||
|
}
|
||||||
|
/** MsgRevokeAllowance removes any existing Allowance from Granter to Grantee. */
|
||||||
|
export interface MsgRevokeAllowance {
|
||||||
|
/** granter is the address of the user granting an allowance of their funds. */
|
||||||
|
granter: string;
|
||||||
|
/** grantee is the address of the user being granted an allowance of another user's funds. */
|
||||||
|
grantee: string;
|
||||||
|
}
|
||||||
|
/** MsgRevokeAllowance removes any existing Allowance from Granter to Grantee. */
|
||||||
|
export interface MsgRevokeAllowanceSDKType {
|
||||||
|
granter: string;
|
||||||
|
grantee: string;
|
||||||
|
}
|
||||||
|
/** MsgRevokeAllowanceResponse defines the Msg/RevokeAllowanceResponse response type. */
|
||||||
|
export interface MsgRevokeAllowanceResponse {
|
||||||
|
}
|
||||||
|
/** MsgRevokeAllowanceResponse defines the Msg/RevokeAllowanceResponse response type. */
|
||||||
|
export interface MsgRevokeAllowanceResponseSDKType {
|
||||||
|
}
|
||||||
|
export declare const MsgGrantAllowance: {
|
||||||
|
encode(message: MsgGrantAllowance, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): MsgGrantAllowance;
|
||||||
|
fromPartial(object: DeepPartial<MsgGrantAllowance>): MsgGrantAllowance;
|
||||||
|
};
|
||||||
|
export declare const MsgGrantAllowanceResponse: {
|
||||||
|
encode(_: MsgGrantAllowanceResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): MsgGrantAllowanceResponse;
|
||||||
|
fromPartial(_: DeepPartial<MsgGrantAllowanceResponse>): MsgGrantAllowanceResponse;
|
||||||
|
};
|
||||||
|
export declare const MsgRevokeAllowance: {
|
||||||
|
encode(message: MsgRevokeAllowance, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): MsgRevokeAllowance;
|
||||||
|
fromPartial(object: DeepPartial<MsgRevokeAllowance>): MsgRevokeAllowance;
|
||||||
|
};
|
||||||
|
export declare const MsgRevokeAllowanceResponse: {
|
||||||
|
encode(_: MsgRevokeAllowanceResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): MsgRevokeAllowanceResponse;
|
||||||
|
fromPartial(_: DeepPartial<MsgRevokeAllowanceResponse>): MsgRevokeAllowanceResponse;
|
||||||
|
};
|
21
packages/codegen/dist/cosmos/feegrant/v1beta1/tx.rpc.msg.d.ts
vendored
Normal file
21
packages/codegen/dist/cosmos/feegrant/v1beta1/tx.rpc.msg.d.ts
vendored
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
import { Rpc } from "../../../helpers";
|
||||||
|
import { MsgGrantAllowance, MsgGrantAllowanceResponse, MsgRevokeAllowance, MsgRevokeAllowanceResponse } from "./tx";
|
||||||
|
/** Msg defines the feegrant msg service. */
|
||||||
|
export interface Msg {
|
||||||
|
/**
|
||||||
|
* GrantAllowance grants fee allowance to the grantee on the granter's
|
||||||
|
* account with the provided expiration time.
|
||||||
|
*/
|
||||||
|
grantAllowance(request: MsgGrantAllowance): Promise<MsgGrantAllowanceResponse>;
|
||||||
|
/**
|
||||||
|
* RevokeAllowance revokes any fee allowance of granter's account that
|
||||||
|
* has been granted to the grantee.
|
||||||
|
*/
|
||||||
|
revokeAllowance(request: MsgRevokeAllowance): Promise<MsgRevokeAllowanceResponse>;
|
||||||
|
}
|
||||||
|
export declare class MsgClientImpl implements Msg {
|
||||||
|
private readonly rpc;
|
||||||
|
constructor(rpc: Rpc);
|
||||||
|
grantAllowance(request: MsgGrantAllowance): Promise<MsgGrantAllowanceResponse>;
|
||||||
|
revokeAllowance(request: MsgRevokeAllowance): Promise<MsgRevokeAllowanceResponse>;
|
||||||
|
}
|
16
packages/codegen/dist/cosmos/genutil/v1beta1/genesis.d.ts
vendored
Normal file
16
packages/codegen/dist/cosmos/genutil/v1beta1/genesis.d.ts
vendored
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
import * as _m0 from "protobufjs/minimal";
|
||||||
|
import { DeepPartial } from "../../../helpers";
|
||||||
|
/** GenesisState defines the raw genesis transaction in JSON. */
|
||||||
|
export interface GenesisState {
|
||||||
|
/** gen_txs defines the genesis transactions. */
|
||||||
|
genTxs: Uint8Array[];
|
||||||
|
}
|
||||||
|
/** GenesisState defines the raw genesis transaction in JSON. */
|
||||||
|
export interface GenesisStateSDKType {
|
||||||
|
gen_txs: Uint8Array[];
|
||||||
|
}
|
||||||
|
export declare const GenesisState: {
|
||||||
|
encode(message: GenesisState, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): GenesisState;
|
||||||
|
fromPartial(object: DeepPartial<GenesisState>): GenesisState;
|
||||||
|
};
|
36
packages/codegen/dist/cosmos/gov/v1/genesis.d.ts
vendored
Normal file
36
packages/codegen/dist/cosmos/gov/v1/genesis.d.ts
vendored
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
/// <reference types="long" />
|
||||||
|
import { Deposit, DepositSDKType, Vote, VoteSDKType, Proposal, ProposalSDKType, DepositParams, DepositParamsSDKType, VotingParams, VotingParamsSDKType, TallyParams, TallyParamsSDKType } from "./gov";
|
||||||
|
import { Long, DeepPartial } from "../../../helpers";
|
||||||
|
import * as _m0 from "protobufjs/minimal";
|
||||||
|
/** GenesisState defines the gov module's genesis state. */
|
||||||
|
export interface GenesisState {
|
||||||
|
/** starting_proposal_id is the ID of the starting proposal. */
|
||||||
|
startingProposalId: Long;
|
||||||
|
/** deposits defines all the deposits present at genesis. */
|
||||||
|
deposits: Deposit[];
|
||||||
|
/** votes defines all the votes present at genesis. */
|
||||||
|
votes: Vote[];
|
||||||
|
/** proposals defines all the proposals present at genesis. */
|
||||||
|
proposals: Proposal[];
|
||||||
|
/** params defines all the paramaters of related to deposit. */
|
||||||
|
depositParams?: DepositParams;
|
||||||
|
/** params defines all the paramaters of related to voting. */
|
||||||
|
votingParams?: VotingParams;
|
||||||
|
/** params defines all the paramaters of related to tally. */
|
||||||
|
tallyParams?: TallyParams;
|
||||||
|
}
|
||||||
|
/** GenesisState defines the gov module's genesis state. */
|
||||||
|
export interface GenesisStateSDKType {
|
||||||
|
starting_proposal_id: Long;
|
||||||
|
deposits: DepositSDKType[];
|
||||||
|
votes: VoteSDKType[];
|
||||||
|
proposals: ProposalSDKType[];
|
||||||
|
deposit_params?: DepositParamsSDKType;
|
||||||
|
voting_params?: VotingParamsSDKType;
|
||||||
|
tally_params?: TallyParamsSDKType;
|
||||||
|
}
|
||||||
|
export declare const GenesisState: {
|
||||||
|
encode(message: GenesisState, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): GenesisState;
|
||||||
|
fromPartial(object: DeepPartial<GenesisState>): GenesisState;
|
||||||
|
};
|
237
packages/codegen/dist/cosmos/gov/v1/gov.d.ts
vendored
Normal file
237
packages/codegen/dist/cosmos/gov/v1/gov.d.ts
vendored
Normal file
@ -0,0 +1,237 @@
|
|||||||
|
/// <reference types="long" />
|
||||||
|
import { Coin, CoinSDKType } from "../../base/v1beta1/coin";
|
||||||
|
import { Any, AnySDKType } from "../../../google/protobuf/any";
|
||||||
|
import { Duration, DurationSDKType } from "../../../google/protobuf/duration";
|
||||||
|
import * as _m0 from "protobufjs/minimal";
|
||||||
|
import { DeepPartial, Long } from "../../../helpers";
|
||||||
|
/** VoteOption enumerates the valid vote options for a given governance proposal. */
|
||||||
|
export declare enum VoteOption {
|
||||||
|
/** VOTE_OPTION_UNSPECIFIED - VOTE_OPTION_UNSPECIFIED defines a no-op vote option. */
|
||||||
|
VOTE_OPTION_UNSPECIFIED = 0,
|
||||||
|
/** VOTE_OPTION_YES - VOTE_OPTION_YES defines a yes vote option. */
|
||||||
|
VOTE_OPTION_YES = 1,
|
||||||
|
/** VOTE_OPTION_ABSTAIN - VOTE_OPTION_ABSTAIN defines an abstain vote option. */
|
||||||
|
VOTE_OPTION_ABSTAIN = 2,
|
||||||
|
/** VOTE_OPTION_NO - VOTE_OPTION_NO defines a no vote option. */
|
||||||
|
VOTE_OPTION_NO = 3,
|
||||||
|
/** VOTE_OPTION_NO_WITH_VETO - VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. */
|
||||||
|
VOTE_OPTION_NO_WITH_VETO = 4,
|
||||||
|
UNRECOGNIZED = -1
|
||||||
|
}
|
||||||
|
export declare const VoteOptionSDKType: typeof VoteOption;
|
||||||
|
export declare function voteOptionFromJSON(object: any): VoteOption;
|
||||||
|
export declare function voteOptionToJSON(object: VoteOption): string;
|
||||||
|
/** ProposalStatus enumerates the valid statuses of a proposal. */
|
||||||
|
export declare enum ProposalStatus {
|
||||||
|
/** PROPOSAL_STATUS_UNSPECIFIED - PROPOSAL_STATUS_UNSPECIFIED defines the default propopsal status. */
|
||||||
|
PROPOSAL_STATUS_UNSPECIFIED = 0,
|
||||||
|
/**
|
||||||
|
* PROPOSAL_STATUS_DEPOSIT_PERIOD - PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit
|
||||||
|
* period.
|
||||||
|
*/
|
||||||
|
PROPOSAL_STATUS_DEPOSIT_PERIOD = 1,
|
||||||
|
/**
|
||||||
|
* PROPOSAL_STATUS_VOTING_PERIOD - PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting
|
||||||
|
* period.
|
||||||
|
*/
|
||||||
|
PROPOSAL_STATUS_VOTING_PERIOD = 2,
|
||||||
|
/**
|
||||||
|
* PROPOSAL_STATUS_PASSED - PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has
|
||||||
|
* passed.
|
||||||
|
*/
|
||||||
|
PROPOSAL_STATUS_PASSED = 3,
|
||||||
|
/**
|
||||||
|
* PROPOSAL_STATUS_REJECTED - PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has
|
||||||
|
* been rejected.
|
||||||
|
*/
|
||||||
|
PROPOSAL_STATUS_REJECTED = 4,
|
||||||
|
/**
|
||||||
|
* PROPOSAL_STATUS_FAILED - PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has
|
||||||
|
* failed.
|
||||||
|
*/
|
||||||
|
PROPOSAL_STATUS_FAILED = 5,
|
||||||
|
UNRECOGNIZED = -1
|
||||||
|
}
|
||||||
|
export declare const ProposalStatusSDKType: typeof ProposalStatus;
|
||||||
|
export declare function proposalStatusFromJSON(object: any): ProposalStatus;
|
||||||
|
export declare function proposalStatusToJSON(object: ProposalStatus): string;
|
||||||
|
/** WeightedVoteOption defines a unit of vote for vote split. */
|
||||||
|
export interface WeightedVoteOption {
|
||||||
|
option: VoteOption;
|
||||||
|
weight: string;
|
||||||
|
}
|
||||||
|
/** WeightedVoteOption defines a unit of vote for vote split. */
|
||||||
|
export interface WeightedVoteOptionSDKType {
|
||||||
|
option: VoteOption;
|
||||||
|
weight: string;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Deposit defines an amount deposited by an account address to an active
|
||||||
|
* proposal.
|
||||||
|
*/
|
||||||
|
export interface Deposit {
|
||||||
|
proposalId: Long;
|
||||||
|
depositor: string;
|
||||||
|
amount: Coin[];
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Deposit defines an amount deposited by an account address to an active
|
||||||
|
* proposal.
|
||||||
|
*/
|
||||||
|
export interface DepositSDKType {
|
||||||
|
proposal_id: Long;
|
||||||
|
depositor: string;
|
||||||
|
amount: CoinSDKType[];
|
||||||
|
}
|
||||||
|
/** Proposal defines the core field members of a governance proposal. */
|
||||||
|
export interface Proposal {
|
||||||
|
id: Long;
|
||||||
|
messages: Any[];
|
||||||
|
status: ProposalStatus;
|
||||||
|
/**
|
||||||
|
* final_tally_result is the final tally result of the proposal. When
|
||||||
|
* querying a proposal via gRPC, this field is not populated until the
|
||||||
|
* proposal's voting period has ended.
|
||||||
|
*/
|
||||||
|
finalTallyResult?: TallyResult;
|
||||||
|
submitTime?: Date;
|
||||||
|
depositEndTime?: Date;
|
||||||
|
totalDeposit: Coin[];
|
||||||
|
votingStartTime?: Date;
|
||||||
|
votingEndTime?: Date;
|
||||||
|
/** metadata is any arbitrary metadata attached to the proposal. */
|
||||||
|
metadata: string;
|
||||||
|
}
|
||||||
|
/** Proposal defines the core field members of a governance proposal. */
|
||||||
|
export interface ProposalSDKType {
|
||||||
|
id: Long;
|
||||||
|
messages: AnySDKType[];
|
||||||
|
status: ProposalStatus;
|
||||||
|
final_tally_result?: TallyResultSDKType;
|
||||||
|
submit_time?: Date;
|
||||||
|
deposit_end_time?: Date;
|
||||||
|
total_deposit: CoinSDKType[];
|
||||||
|
voting_start_time?: Date;
|
||||||
|
voting_end_time?: Date;
|
||||||
|
metadata: string;
|
||||||
|
}
|
||||||
|
/** TallyResult defines a standard tally for a governance proposal. */
|
||||||
|
export interface TallyResult {
|
||||||
|
yesCount: string;
|
||||||
|
abstainCount: string;
|
||||||
|
noCount: string;
|
||||||
|
noWithVetoCount: string;
|
||||||
|
}
|
||||||
|
/** TallyResult defines a standard tally for a governance proposal. */
|
||||||
|
export interface TallyResultSDKType {
|
||||||
|
yes_count: string;
|
||||||
|
abstain_count: string;
|
||||||
|
no_count: string;
|
||||||
|
no_with_veto_count: string;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Vote defines a vote on a governance proposal.
|
||||||
|
* A Vote consists of a proposal ID, the voter, and the vote option.
|
||||||
|
*/
|
||||||
|
export interface Vote {
|
||||||
|
proposalId: Long;
|
||||||
|
voter: string;
|
||||||
|
options: WeightedVoteOption[];
|
||||||
|
/** metadata is any arbitrary metadata to attached to the vote. */
|
||||||
|
metadata: string;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Vote defines a vote on a governance proposal.
|
||||||
|
* A Vote consists of a proposal ID, the voter, and the vote option.
|
||||||
|
*/
|
||||||
|
export interface VoteSDKType {
|
||||||
|
proposal_id: Long;
|
||||||
|
voter: string;
|
||||||
|
options: WeightedVoteOptionSDKType[];
|
||||||
|
metadata: string;
|
||||||
|
}
|
||||||
|
/** DepositParams defines the params for deposits on governance proposals. */
|
||||||
|
export interface DepositParams {
|
||||||
|
/** Minimum deposit for a proposal to enter voting period. */
|
||||||
|
minDeposit: Coin[];
|
||||||
|
/**
|
||||||
|
* Maximum period for Atom holders to deposit on a proposal. Initial value: 2
|
||||||
|
* months.
|
||||||
|
*/
|
||||||
|
maxDepositPeriod?: Duration;
|
||||||
|
}
|
||||||
|
/** DepositParams defines the params for deposits on governance proposals. */
|
||||||
|
export interface DepositParamsSDKType {
|
||||||
|
min_deposit: CoinSDKType[];
|
||||||
|
max_deposit_period?: DurationSDKType;
|
||||||
|
}
|
||||||
|
/** VotingParams defines the params for voting on governance proposals. */
|
||||||
|
export interface VotingParams {
|
||||||
|
/** Length of the voting period. */
|
||||||
|
votingPeriod?: Duration;
|
||||||
|
}
|
||||||
|
/** VotingParams defines the params for voting on governance proposals. */
|
||||||
|
export interface VotingParamsSDKType {
|
||||||
|
voting_period?: DurationSDKType;
|
||||||
|
}
|
||||||
|
/** TallyParams defines the params for tallying votes on governance proposals. */
|
||||||
|
export interface TallyParams {
|
||||||
|
/**
|
||||||
|
* Minimum percentage of total stake needed to vote for a result to be
|
||||||
|
* considered valid.
|
||||||
|
*/
|
||||||
|
quorum: string;
|
||||||
|
/** Minimum proportion of Yes votes for proposal to pass. Default value: 0.5. */
|
||||||
|
threshold: string;
|
||||||
|
/**
|
||||||
|
* Minimum value of Veto votes to Total votes ratio for proposal to be
|
||||||
|
* vetoed. Default value: 1/3.
|
||||||
|
*/
|
||||||
|
vetoThreshold: string;
|
||||||
|
}
|
||||||
|
/** TallyParams defines the params for tallying votes on governance proposals. */
|
||||||
|
export interface TallyParamsSDKType {
|
||||||
|
quorum: string;
|
||||||
|
threshold: string;
|
||||||
|
veto_threshold: string;
|
||||||
|
}
|
||||||
|
export declare const WeightedVoteOption: {
|
||||||
|
encode(message: WeightedVoteOption, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): WeightedVoteOption;
|
||||||
|
fromPartial(object: DeepPartial<WeightedVoteOption>): WeightedVoteOption;
|
||||||
|
};
|
||||||
|
export declare const Deposit: {
|
||||||
|
encode(message: Deposit, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): Deposit;
|
||||||
|
fromPartial(object: DeepPartial<Deposit>): Deposit;
|
||||||
|
};
|
||||||
|
export declare const Proposal: {
|
||||||
|
encode(message: Proposal, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): Proposal;
|
||||||
|
fromPartial(object: DeepPartial<Proposal>): Proposal;
|
||||||
|
};
|
||||||
|
export declare const TallyResult: {
|
||||||
|
encode(message: TallyResult, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): TallyResult;
|
||||||
|
fromPartial(object: DeepPartial<TallyResult>): TallyResult;
|
||||||
|
};
|
||||||
|
export declare const Vote: {
|
||||||
|
encode(message: Vote, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): Vote;
|
||||||
|
fromPartial(object: DeepPartial<Vote>): Vote;
|
||||||
|
};
|
||||||
|
export declare const DepositParams: {
|
||||||
|
encode(message: DepositParams, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): DepositParams;
|
||||||
|
fromPartial(object: DeepPartial<DepositParams>): DepositParams;
|
||||||
|
};
|
||||||
|
export declare const VotingParams: {
|
||||||
|
encode(message: VotingParams, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): VotingParams;
|
||||||
|
fromPartial(object: DeepPartial<VotingParams>): VotingParams;
|
||||||
|
};
|
||||||
|
export declare const TallyParams: {
|
||||||
|
encode(message: TallyParams, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): TallyParams;
|
||||||
|
fromPartial(object: DeepPartial<TallyParams>): TallyParams;
|
||||||
|
};
|
271
packages/codegen/dist/cosmos/gov/v1/query.d.ts
vendored
Normal file
271
packages/codegen/dist/cosmos/gov/v1/query.d.ts
vendored
Normal file
@ -0,0 +1,271 @@
|
|||||||
|
/// <reference types="long" />
|
||||||
|
import { ProposalStatus, Proposal, ProposalSDKType, Vote, VoteSDKType, VotingParams, VotingParamsSDKType, DepositParams, DepositParamsSDKType, TallyParams, TallyParamsSDKType, Deposit, DepositSDKType, TallyResult, TallyResultSDKType } from "./gov";
|
||||||
|
import { PageRequest, PageRequestSDKType, PageResponse, PageResponseSDKType } from "../../base/query/v1beta1/pagination";
|
||||||
|
import { Long, DeepPartial } from "../../../helpers";
|
||||||
|
import * as _m0 from "protobufjs/minimal";
|
||||||
|
/** QueryProposalRequest is the request type for the Query/Proposal RPC method. */
|
||||||
|
export interface QueryProposalRequest {
|
||||||
|
/** proposal_id defines the unique id of the proposal. */
|
||||||
|
proposalId: Long;
|
||||||
|
}
|
||||||
|
/** QueryProposalRequest is the request type for the Query/Proposal RPC method. */
|
||||||
|
export interface QueryProposalRequestSDKType {
|
||||||
|
proposal_id: Long;
|
||||||
|
}
|
||||||
|
/** QueryProposalResponse is the response type for the Query/Proposal RPC method. */
|
||||||
|
export interface QueryProposalResponse {
|
||||||
|
proposal?: Proposal;
|
||||||
|
}
|
||||||
|
/** QueryProposalResponse is the response type for the Query/Proposal RPC method. */
|
||||||
|
export interface QueryProposalResponseSDKType {
|
||||||
|
proposal?: ProposalSDKType;
|
||||||
|
}
|
||||||
|
/** QueryProposalsRequest is the request type for the Query/Proposals RPC method. */
|
||||||
|
export interface QueryProposalsRequest {
|
||||||
|
/** proposal_status defines the status of the proposals. */
|
||||||
|
proposalStatus: ProposalStatus;
|
||||||
|
/** voter defines the voter address for the proposals. */
|
||||||
|
voter: string;
|
||||||
|
/** depositor defines the deposit addresses from the proposals. */
|
||||||
|
depositor: string;
|
||||||
|
/** pagination defines an optional pagination for the request. */
|
||||||
|
pagination?: PageRequest;
|
||||||
|
}
|
||||||
|
/** QueryProposalsRequest is the request type for the Query/Proposals RPC method. */
|
||||||
|
export interface QueryProposalsRequestSDKType {
|
||||||
|
proposal_status: ProposalStatus;
|
||||||
|
voter: string;
|
||||||
|
depositor: string;
|
||||||
|
pagination?: PageRequestSDKType;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* QueryProposalsResponse is the response type for the Query/Proposals RPC
|
||||||
|
* method.
|
||||||
|
*/
|
||||||
|
export interface QueryProposalsResponse {
|
||||||
|
proposals: Proposal[];
|
||||||
|
/** pagination defines the pagination in the response. */
|
||||||
|
pagination?: PageResponse;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* QueryProposalsResponse is the response type for the Query/Proposals RPC
|
||||||
|
* method.
|
||||||
|
*/
|
||||||
|
export interface QueryProposalsResponseSDKType {
|
||||||
|
proposals: ProposalSDKType[];
|
||||||
|
pagination?: PageResponseSDKType;
|
||||||
|
}
|
||||||
|
/** QueryVoteRequest is the request type for the Query/Vote RPC method. */
|
||||||
|
export interface QueryVoteRequest {
|
||||||
|
/** proposal_id defines the unique id of the proposal. */
|
||||||
|
proposalId: Long;
|
||||||
|
/** voter defines the oter address for the proposals. */
|
||||||
|
voter: string;
|
||||||
|
}
|
||||||
|
/** QueryVoteRequest is the request type for the Query/Vote RPC method. */
|
||||||
|
export interface QueryVoteRequestSDKType {
|
||||||
|
proposal_id: Long;
|
||||||
|
voter: string;
|
||||||
|
}
|
||||||
|
/** QueryVoteResponse is the response type for the Query/Vote RPC method. */
|
||||||
|
export interface QueryVoteResponse {
|
||||||
|
/** vote defined the queried vote. */
|
||||||
|
vote?: Vote;
|
||||||
|
}
|
||||||
|
/** QueryVoteResponse is the response type for the Query/Vote RPC method. */
|
||||||
|
export interface QueryVoteResponseSDKType {
|
||||||
|
vote?: VoteSDKType;
|
||||||
|
}
|
||||||
|
/** QueryVotesRequest is the request type for the Query/Votes RPC method. */
|
||||||
|
export interface QueryVotesRequest {
|
||||||
|
/** proposal_id defines the unique id of the proposal. */
|
||||||
|
proposalId: Long;
|
||||||
|
/** pagination defines an optional pagination for the request. */
|
||||||
|
pagination?: PageRequest;
|
||||||
|
}
|
||||||
|
/** QueryVotesRequest is the request type for the Query/Votes RPC method. */
|
||||||
|
export interface QueryVotesRequestSDKType {
|
||||||
|
proposal_id: Long;
|
||||||
|
pagination?: PageRequestSDKType;
|
||||||
|
}
|
||||||
|
/** QueryVotesResponse is the response type for the Query/Votes RPC method. */
|
||||||
|
export interface QueryVotesResponse {
|
||||||
|
/** votes defined the queried votes. */
|
||||||
|
votes: Vote[];
|
||||||
|
/** pagination defines the pagination in the response. */
|
||||||
|
pagination?: PageResponse;
|
||||||
|
}
|
||||||
|
/** QueryVotesResponse is the response type for the Query/Votes RPC method. */
|
||||||
|
export interface QueryVotesResponseSDKType {
|
||||||
|
votes: VoteSDKType[];
|
||||||
|
pagination?: PageResponseSDKType;
|
||||||
|
}
|
||||||
|
/** QueryParamsRequest is the request type for the Query/Params RPC method. */
|
||||||
|
export interface QueryParamsRequest {
|
||||||
|
/**
|
||||||
|
* params_type defines which parameters to query for, can be one of "voting",
|
||||||
|
* "tallying" or "deposit".
|
||||||
|
*/
|
||||||
|
paramsType: string;
|
||||||
|
}
|
||||||
|
/** QueryParamsRequest is the request type for the Query/Params RPC method. */
|
||||||
|
export interface QueryParamsRequestSDKType {
|
||||||
|
params_type: string;
|
||||||
|
}
|
||||||
|
/** QueryParamsResponse is the response type for the Query/Params RPC method. */
|
||||||
|
export interface QueryParamsResponse {
|
||||||
|
/** voting_params defines the parameters related to voting. */
|
||||||
|
votingParams?: VotingParams;
|
||||||
|
/** deposit_params defines the parameters related to deposit. */
|
||||||
|
depositParams?: DepositParams;
|
||||||
|
/** tally_params defines the parameters related to tally. */
|
||||||
|
tallyParams?: TallyParams;
|
||||||
|
}
|
||||||
|
/** QueryParamsResponse is the response type for the Query/Params RPC method. */
|
||||||
|
export interface QueryParamsResponseSDKType {
|
||||||
|
voting_params?: VotingParamsSDKType;
|
||||||
|
deposit_params?: DepositParamsSDKType;
|
||||||
|
tally_params?: TallyParamsSDKType;
|
||||||
|
}
|
||||||
|
/** QueryDepositRequest is the request type for the Query/Deposit RPC method. */
|
||||||
|
export interface QueryDepositRequest {
|
||||||
|
/** proposal_id defines the unique id of the proposal. */
|
||||||
|
proposalId: Long;
|
||||||
|
/** depositor defines the deposit addresses from the proposals. */
|
||||||
|
depositor: string;
|
||||||
|
}
|
||||||
|
/** QueryDepositRequest is the request type for the Query/Deposit RPC method. */
|
||||||
|
export interface QueryDepositRequestSDKType {
|
||||||
|
proposal_id: Long;
|
||||||
|
depositor: string;
|
||||||
|
}
|
||||||
|
/** QueryDepositResponse is the response type for the Query/Deposit RPC method. */
|
||||||
|
export interface QueryDepositResponse {
|
||||||
|
/** deposit defines the requested deposit. */
|
||||||
|
deposit?: Deposit;
|
||||||
|
}
|
||||||
|
/** QueryDepositResponse is the response type for the Query/Deposit RPC method. */
|
||||||
|
export interface QueryDepositResponseSDKType {
|
||||||
|
deposit?: DepositSDKType;
|
||||||
|
}
|
||||||
|
/** QueryDepositsRequest is the request type for the Query/Deposits RPC method. */
|
||||||
|
export interface QueryDepositsRequest {
|
||||||
|
/** proposal_id defines the unique id of the proposal. */
|
||||||
|
proposalId: Long;
|
||||||
|
/** pagination defines an optional pagination for the request. */
|
||||||
|
pagination?: PageRequest;
|
||||||
|
}
|
||||||
|
/** QueryDepositsRequest is the request type for the Query/Deposits RPC method. */
|
||||||
|
export interface QueryDepositsRequestSDKType {
|
||||||
|
proposal_id: Long;
|
||||||
|
pagination?: PageRequestSDKType;
|
||||||
|
}
|
||||||
|
/** QueryDepositsResponse is the response type for the Query/Deposits RPC method. */
|
||||||
|
export interface QueryDepositsResponse {
|
||||||
|
deposits: Deposit[];
|
||||||
|
/** pagination defines the pagination in the response. */
|
||||||
|
pagination?: PageResponse;
|
||||||
|
}
|
||||||
|
/** QueryDepositsResponse is the response type for the Query/Deposits RPC method. */
|
||||||
|
export interface QueryDepositsResponseSDKType {
|
||||||
|
deposits: DepositSDKType[];
|
||||||
|
pagination?: PageResponseSDKType;
|
||||||
|
}
|
||||||
|
/** QueryTallyResultRequest is the request type for the Query/Tally RPC method. */
|
||||||
|
export interface QueryTallyResultRequest {
|
||||||
|
/** proposal_id defines the unique id of the proposal. */
|
||||||
|
proposalId: Long;
|
||||||
|
}
|
||||||
|
/** QueryTallyResultRequest is the request type for the Query/Tally RPC method. */
|
||||||
|
export interface QueryTallyResultRequestSDKType {
|
||||||
|
proposal_id: Long;
|
||||||
|
}
|
||||||
|
/** QueryTallyResultResponse is the response type for the Query/Tally RPC method. */
|
||||||
|
export interface QueryTallyResultResponse {
|
||||||
|
/** tally defines the requested tally. */
|
||||||
|
tally?: TallyResult;
|
||||||
|
}
|
||||||
|
/** QueryTallyResultResponse is the response type for the Query/Tally RPC method. */
|
||||||
|
export interface QueryTallyResultResponseSDKType {
|
||||||
|
tally?: TallyResultSDKType;
|
||||||
|
}
|
||||||
|
export declare const QueryProposalRequest: {
|
||||||
|
encode(message: QueryProposalRequest, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryProposalRequest;
|
||||||
|
fromPartial(object: DeepPartial<QueryProposalRequest>): QueryProposalRequest;
|
||||||
|
};
|
||||||
|
export declare const QueryProposalResponse: {
|
||||||
|
encode(message: QueryProposalResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryProposalResponse;
|
||||||
|
fromPartial(object: DeepPartial<QueryProposalResponse>): QueryProposalResponse;
|
||||||
|
};
|
||||||
|
export declare const QueryProposalsRequest: {
|
||||||
|
encode(message: QueryProposalsRequest, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryProposalsRequest;
|
||||||
|
fromPartial(object: DeepPartial<QueryProposalsRequest>): QueryProposalsRequest;
|
||||||
|
};
|
||||||
|
export declare const QueryProposalsResponse: {
|
||||||
|
encode(message: QueryProposalsResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryProposalsResponse;
|
||||||
|
fromPartial(object: DeepPartial<QueryProposalsResponse>): QueryProposalsResponse;
|
||||||
|
};
|
||||||
|
export declare const QueryVoteRequest: {
|
||||||
|
encode(message: QueryVoteRequest, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryVoteRequest;
|
||||||
|
fromPartial(object: DeepPartial<QueryVoteRequest>): QueryVoteRequest;
|
||||||
|
};
|
||||||
|
export declare const QueryVoteResponse: {
|
||||||
|
encode(message: QueryVoteResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryVoteResponse;
|
||||||
|
fromPartial(object: DeepPartial<QueryVoteResponse>): QueryVoteResponse;
|
||||||
|
};
|
||||||
|
export declare const QueryVotesRequest: {
|
||||||
|
encode(message: QueryVotesRequest, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryVotesRequest;
|
||||||
|
fromPartial(object: DeepPartial<QueryVotesRequest>): QueryVotesRequest;
|
||||||
|
};
|
||||||
|
export declare const QueryVotesResponse: {
|
||||||
|
encode(message: QueryVotesResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryVotesResponse;
|
||||||
|
fromPartial(object: DeepPartial<QueryVotesResponse>): QueryVotesResponse;
|
||||||
|
};
|
||||||
|
export declare const QueryParamsRequest: {
|
||||||
|
encode(message: QueryParamsRequest, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsRequest;
|
||||||
|
fromPartial(object: DeepPartial<QueryParamsRequest>): QueryParamsRequest;
|
||||||
|
};
|
||||||
|
export declare const QueryParamsResponse: {
|
||||||
|
encode(message: QueryParamsResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsResponse;
|
||||||
|
fromPartial(object: DeepPartial<QueryParamsResponse>): QueryParamsResponse;
|
||||||
|
};
|
||||||
|
export declare const QueryDepositRequest: {
|
||||||
|
encode(message: QueryDepositRequest, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDepositRequest;
|
||||||
|
fromPartial(object: DeepPartial<QueryDepositRequest>): QueryDepositRequest;
|
||||||
|
};
|
||||||
|
export declare const QueryDepositResponse: {
|
||||||
|
encode(message: QueryDepositResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDepositResponse;
|
||||||
|
fromPartial(object: DeepPartial<QueryDepositResponse>): QueryDepositResponse;
|
||||||
|
};
|
||||||
|
export declare const QueryDepositsRequest: {
|
||||||
|
encode(message: QueryDepositsRequest, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDepositsRequest;
|
||||||
|
fromPartial(object: DeepPartial<QueryDepositsRequest>): QueryDepositsRequest;
|
||||||
|
};
|
||||||
|
export declare const QueryDepositsResponse: {
|
||||||
|
encode(message: QueryDepositsResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDepositsResponse;
|
||||||
|
fromPartial(object: DeepPartial<QueryDepositsResponse>): QueryDepositsResponse;
|
||||||
|
};
|
||||||
|
export declare const QueryTallyResultRequest: {
|
||||||
|
encode(message: QueryTallyResultRequest, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryTallyResultRequest;
|
||||||
|
fromPartial(object: DeepPartial<QueryTallyResultRequest>): QueryTallyResultRequest;
|
||||||
|
};
|
||||||
|
export declare const QueryTallyResultResponse: {
|
||||||
|
encode(message: QueryTallyResultResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryTallyResultResponse;
|
||||||
|
fromPartial(object: DeepPartial<QueryTallyResultResponse>): QueryTallyResultResponse;
|
||||||
|
};
|
16
packages/codegen/dist/cosmos/gov/v1/query.lcd.d.ts
vendored
Normal file
16
packages/codegen/dist/cosmos/gov/v1/query.lcd.d.ts
vendored
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
import { LCDClient } from "@osmonauts/lcd";
|
||||||
|
import { QueryProposalRequest, QueryProposalResponseSDKType, QueryProposalsRequest, QueryProposalsResponseSDKType, QueryVoteRequest, QueryVoteResponseSDKType, QueryVotesRequest, QueryVotesResponseSDKType, QueryParamsRequest, QueryParamsResponseSDKType, QueryDepositRequest, QueryDepositResponseSDKType, QueryDepositsRequest, QueryDepositsResponseSDKType, QueryTallyResultRequest, QueryTallyResultResponseSDKType } from "./query";
|
||||||
|
export declare class LCDQueryClient {
|
||||||
|
req: LCDClient;
|
||||||
|
constructor({ requestClient }: {
|
||||||
|
requestClient: LCDClient;
|
||||||
|
});
|
||||||
|
proposal(params: QueryProposalRequest): Promise<QueryProposalResponseSDKType>;
|
||||||
|
proposals(params: QueryProposalsRequest): Promise<QueryProposalsResponseSDKType>;
|
||||||
|
vote(params: QueryVoteRequest): Promise<QueryVoteResponseSDKType>;
|
||||||
|
votes(params: QueryVotesRequest): Promise<QueryVotesResponseSDKType>;
|
||||||
|
params(params: QueryParamsRequest): Promise<QueryParamsResponseSDKType>;
|
||||||
|
deposit(params: QueryDepositRequest): Promise<QueryDepositResponseSDKType>;
|
||||||
|
deposits(params: QueryDepositsRequest): Promise<QueryDepositsResponseSDKType>;
|
||||||
|
tallyResult(params: QueryTallyResultRequest): Promise<QueryTallyResultResponseSDKType>;
|
||||||
|
}
|
44
packages/codegen/dist/cosmos/gov/v1/query.rpc.Query.d.ts
vendored
Normal file
44
packages/codegen/dist/cosmos/gov/v1/query.rpc.Query.d.ts
vendored
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
import { Rpc } from "../../../helpers";
|
||||||
|
import { QueryClient } from "@cosmjs/stargate";
|
||||||
|
import { QueryProposalRequest, QueryProposalResponse, QueryProposalsRequest, QueryProposalsResponse, QueryVoteRequest, QueryVoteResponse, QueryVotesRequest, QueryVotesResponse, QueryParamsRequest, QueryParamsResponse, QueryDepositRequest, QueryDepositResponse, QueryDepositsRequest, QueryDepositsResponse, QueryTallyResultRequest, QueryTallyResultResponse } from "./query";
|
||||||
|
/** Query defines the gRPC querier service for gov module */
|
||||||
|
export interface Query {
|
||||||
|
/** Proposal queries proposal details based on ProposalID. */
|
||||||
|
proposal(request: QueryProposalRequest): Promise<QueryProposalResponse>;
|
||||||
|
/** Proposals queries all proposals based on given status. */
|
||||||
|
proposals(request: QueryProposalsRequest): Promise<QueryProposalsResponse>;
|
||||||
|
/** Vote queries voted information based on proposalID, voterAddr. */
|
||||||
|
vote(request: QueryVoteRequest): Promise<QueryVoteResponse>;
|
||||||
|
/** Votes queries votes of a given proposal. */
|
||||||
|
votes(request: QueryVotesRequest): Promise<QueryVotesResponse>;
|
||||||
|
/** Params queries all parameters of the gov module. */
|
||||||
|
params(request: QueryParamsRequest): Promise<QueryParamsResponse>;
|
||||||
|
/** Deposit queries single deposit information based proposalID, depositAddr. */
|
||||||
|
deposit(request: QueryDepositRequest): Promise<QueryDepositResponse>;
|
||||||
|
/** Deposits queries all deposits of a single proposal. */
|
||||||
|
deposits(request: QueryDepositsRequest): Promise<QueryDepositsResponse>;
|
||||||
|
/** TallyResult queries the tally of a proposal vote. */
|
||||||
|
tallyResult(request: QueryTallyResultRequest): Promise<QueryTallyResultResponse>;
|
||||||
|
}
|
||||||
|
export declare class QueryClientImpl implements Query {
|
||||||
|
private readonly rpc;
|
||||||
|
constructor(rpc: Rpc);
|
||||||
|
proposal(request: QueryProposalRequest): Promise<QueryProposalResponse>;
|
||||||
|
proposals(request: QueryProposalsRequest): Promise<QueryProposalsResponse>;
|
||||||
|
vote(request: QueryVoteRequest): Promise<QueryVoteResponse>;
|
||||||
|
votes(request: QueryVotesRequest): Promise<QueryVotesResponse>;
|
||||||
|
params(request: QueryParamsRequest): Promise<QueryParamsResponse>;
|
||||||
|
deposit(request: QueryDepositRequest): Promise<QueryDepositResponse>;
|
||||||
|
deposits(request: QueryDepositsRequest): Promise<QueryDepositsResponse>;
|
||||||
|
tallyResult(request: QueryTallyResultRequest): Promise<QueryTallyResultResponse>;
|
||||||
|
}
|
||||||
|
export declare const createRpcQueryExtension: (base: QueryClient) => {
|
||||||
|
proposal(request: QueryProposalRequest): Promise<QueryProposalResponse>;
|
||||||
|
proposals(request: QueryProposalsRequest): Promise<QueryProposalsResponse>;
|
||||||
|
vote(request: QueryVoteRequest): Promise<QueryVoteResponse>;
|
||||||
|
votes(request: QueryVotesRequest): Promise<QueryVotesResponse>;
|
||||||
|
params(request: QueryParamsRequest): Promise<QueryParamsResponse>;
|
||||||
|
deposit(request: QueryDepositRequest): Promise<QueryDepositResponse>;
|
||||||
|
deposits(request: QueryDepositsRequest): Promise<QueryDepositsResponse>;
|
||||||
|
tallyResult(request: QueryTallyResultRequest): Promise<QueryTallyResultResponse>;
|
||||||
|
};
|
167
packages/codegen/dist/cosmos/gov/v1/tx.d.ts
vendored
Normal file
167
packages/codegen/dist/cosmos/gov/v1/tx.d.ts
vendored
Normal file
@ -0,0 +1,167 @@
|
|||||||
|
/// <reference types="long" />
|
||||||
|
import { Any, AnySDKType } from "../../../google/protobuf/any";
|
||||||
|
import { Coin, CoinSDKType } from "../../base/v1beta1/coin";
|
||||||
|
import { VoteOption, WeightedVoteOption, WeightedVoteOptionSDKType } from "./gov";
|
||||||
|
import * as _m0 from "protobufjs/minimal";
|
||||||
|
import { DeepPartial, Long } from "../../../helpers";
|
||||||
|
/**
|
||||||
|
* MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary
|
||||||
|
* proposal Content.
|
||||||
|
*/
|
||||||
|
export interface MsgSubmitProposal {
|
||||||
|
messages: Any[];
|
||||||
|
initialDeposit: Coin[];
|
||||||
|
proposer: string;
|
||||||
|
/** metadata is any arbitrary metadata attached to the proposal. */
|
||||||
|
metadata: string;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary
|
||||||
|
* proposal Content.
|
||||||
|
*/
|
||||||
|
export interface MsgSubmitProposalSDKType {
|
||||||
|
messages: AnySDKType[];
|
||||||
|
initial_deposit: CoinSDKType[];
|
||||||
|
proposer: string;
|
||||||
|
metadata: string;
|
||||||
|
}
|
||||||
|
/** MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. */
|
||||||
|
export interface MsgSubmitProposalResponse {
|
||||||
|
proposalId: Long;
|
||||||
|
}
|
||||||
|
/** MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. */
|
||||||
|
export interface MsgSubmitProposalResponseSDKType {
|
||||||
|
proposal_id: Long;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* MsgExecLegacyContent is used to wrap the legacy content field into a message.
|
||||||
|
* This ensures backwards compatibility with v1beta1.MsgSubmitProposal.
|
||||||
|
*/
|
||||||
|
export interface MsgExecLegacyContent {
|
||||||
|
/** content is the proposal's content. */
|
||||||
|
content?: Any;
|
||||||
|
/** authority must be the gov module address. */
|
||||||
|
authority: string;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* MsgExecLegacyContent is used to wrap the legacy content field into a message.
|
||||||
|
* This ensures backwards compatibility with v1beta1.MsgSubmitProposal.
|
||||||
|
*/
|
||||||
|
export interface MsgExecLegacyContentSDKType {
|
||||||
|
content?: AnySDKType;
|
||||||
|
authority: string;
|
||||||
|
}
|
||||||
|
/** MsgExecLegacyContentResponse defines the Msg/ExecLegacyContent response type. */
|
||||||
|
export interface MsgExecLegacyContentResponse {
|
||||||
|
}
|
||||||
|
/** MsgExecLegacyContentResponse defines the Msg/ExecLegacyContent response type. */
|
||||||
|
export interface MsgExecLegacyContentResponseSDKType {
|
||||||
|
}
|
||||||
|
/** MsgVote defines a message to cast a vote. */
|
||||||
|
export interface MsgVote {
|
||||||
|
proposalId: Long;
|
||||||
|
voter: string;
|
||||||
|
option: VoteOption;
|
||||||
|
metadata: string;
|
||||||
|
}
|
||||||
|
/** MsgVote defines a message to cast a vote. */
|
||||||
|
export interface MsgVoteSDKType {
|
||||||
|
proposal_id: Long;
|
||||||
|
voter: string;
|
||||||
|
option: VoteOption;
|
||||||
|
metadata: string;
|
||||||
|
}
|
||||||
|
/** MsgVoteResponse defines the Msg/Vote response type. */
|
||||||
|
export interface MsgVoteResponse {
|
||||||
|
}
|
||||||
|
/** MsgVoteResponse defines the Msg/Vote response type. */
|
||||||
|
export interface MsgVoteResponseSDKType {
|
||||||
|
}
|
||||||
|
/** MsgVoteWeighted defines a message to cast a vote. */
|
||||||
|
export interface MsgVoteWeighted {
|
||||||
|
proposalId: Long;
|
||||||
|
voter: string;
|
||||||
|
options: WeightedVoteOption[];
|
||||||
|
metadata: string;
|
||||||
|
}
|
||||||
|
/** MsgVoteWeighted defines a message to cast a vote. */
|
||||||
|
export interface MsgVoteWeightedSDKType {
|
||||||
|
proposal_id: Long;
|
||||||
|
voter: string;
|
||||||
|
options: WeightedVoteOptionSDKType[];
|
||||||
|
metadata: string;
|
||||||
|
}
|
||||||
|
/** MsgVoteWeightedResponse defines the Msg/VoteWeighted response type. */
|
||||||
|
export interface MsgVoteWeightedResponse {
|
||||||
|
}
|
||||||
|
/** MsgVoteWeightedResponse defines the Msg/VoteWeighted response type. */
|
||||||
|
export interface MsgVoteWeightedResponseSDKType {
|
||||||
|
}
|
||||||
|
/** MsgDeposit defines a message to submit a deposit to an existing proposal. */
|
||||||
|
export interface MsgDeposit {
|
||||||
|
proposalId: Long;
|
||||||
|
depositor: string;
|
||||||
|
amount: Coin[];
|
||||||
|
}
|
||||||
|
/** MsgDeposit defines a message to submit a deposit to an existing proposal. */
|
||||||
|
export interface MsgDepositSDKType {
|
||||||
|
proposal_id: Long;
|
||||||
|
depositor: string;
|
||||||
|
amount: CoinSDKType[];
|
||||||
|
}
|
||||||
|
/** MsgDepositResponse defines the Msg/Deposit response type. */
|
||||||
|
export interface MsgDepositResponse {
|
||||||
|
}
|
||||||
|
/** MsgDepositResponse defines the Msg/Deposit response type. */
|
||||||
|
export interface MsgDepositResponseSDKType {
|
||||||
|
}
|
||||||
|
export declare const MsgSubmitProposal: {
|
||||||
|
encode(message: MsgSubmitProposal, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): MsgSubmitProposal;
|
||||||
|
fromPartial(object: DeepPartial<MsgSubmitProposal>): MsgSubmitProposal;
|
||||||
|
};
|
||||||
|
export declare const MsgSubmitProposalResponse: {
|
||||||
|
encode(message: MsgSubmitProposalResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): MsgSubmitProposalResponse;
|
||||||
|
fromPartial(object: DeepPartial<MsgSubmitProposalResponse>): MsgSubmitProposalResponse;
|
||||||
|
};
|
||||||
|
export declare const MsgExecLegacyContent: {
|
||||||
|
encode(message: MsgExecLegacyContent, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): MsgExecLegacyContent;
|
||||||
|
fromPartial(object: DeepPartial<MsgExecLegacyContent>): MsgExecLegacyContent;
|
||||||
|
};
|
||||||
|
export declare const MsgExecLegacyContentResponse: {
|
||||||
|
encode(_: MsgExecLegacyContentResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): MsgExecLegacyContentResponse;
|
||||||
|
fromPartial(_: DeepPartial<MsgExecLegacyContentResponse>): MsgExecLegacyContentResponse;
|
||||||
|
};
|
||||||
|
export declare const MsgVote: {
|
||||||
|
encode(message: MsgVote, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): MsgVote;
|
||||||
|
fromPartial(object: DeepPartial<MsgVote>): MsgVote;
|
||||||
|
};
|
||||||
|
export declare const MsgVoteResponse: {
|
||||||
|
encode(_: MsgVoteResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): MsgVoteResponse;
|
||||||
|
fromPartial(_: DeepPartial<MsgVoteResponse>): MsgVoteResponse;
|
||||||
|
};
|
||||||
|
export declare const MsgVoteWeighted: {
|
||||||
|
encode(message: MsgVoteWeighted, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): MsgVoteWeighted;
|
||||||
|
fromPartial(object: DeepPartial<MsgVoteWeighted>): MsgVoteWeighted;
|
||||||
|
};
|
||||||
|
export declare const MsgVoteWeightedResponse: {
|
||||||
|
encode(_: MsgVoteWeightedResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): MsgVoteWeightedResponse;
|
||||||
|
fromPartial(_: DeepPartial<MsgVoteWeightedResponse>): MsgVoteWeightedResponse;
|
||||||
|
};
|
||||||
|
export declare const MsgDeposit: {
|
||||||
|
encode(message: MsgDeposit, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): MsgDeposit;
|
||||||
|
fromPartial(object: DeepPartial<MsgDeposit>): MsgDeposit;
|
||||||
|
};
|
||||||
|
export declare const MsgDepositResponse: {
|
||||||
|
encode(_: MsgDepositResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): MsgDepositResponse;
|
||||||
|
fromPartial(_: DeepPartial<MsgDepositResponse>): MsgDepositResponse;
|
||||||
|
};
|
27
packages/codegen/dist/cosmos/gov/v1/tx.rpc.msg.d.ts
vendored
Normal file
27
packages/codegen/dist/cosmos/gov/v1/tx.rpc.msg.d.ts
vendored
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
import { Rpc } from "../../../helpers";
|
||||||
|
import { MsgSubmitProposal, MsgSubmitProposalResponse, MsgExecLegacyContent, MsgExecLegacyContentResponse, MsgVote, MsgVoteResponse, MsgVoteWeighted, MsgVoteWeightedResponse, MsgDeposit, MsgDepositResponse } from "./tx";
|
||||||
|
/** Msg defines the gov Msg service. */
|
||||||
|
export interface Msg {
|
||||||
|
/** SubmitProposal defines a method to create new proposal given a content. */
|
||||||
|
submitProposal(request: MsgSubmitProposal): Promise<MsgSubmitProposalResponse>;
|
||||||
|
/**
|
||||||
|
* ExecLegacyContent defines a Msg to be in included in a MsgSubmitProposal
|
||||||
|
* to execute a legacy content-based proposal.
|
||||||
|
*/
|
||||||
|
execLegacyContent(request: MsgExecLegacyContent): Promise<MsgExecLegacyContentResponse>;
|
||||||
|
/** Vote defines a method to add a vote on a specific proposal. */
|
||||||
|
vote(request: MsgVote): Promise<MsgVoteResponse>;
|
||||||
|
/** VoteWeighted defines a method to add a weighted vote on a specific proposal. */
|
||||||
|
voteWeighted(request: MsgVoteWeighted): Promise<MsgVoteWeightedResponse>;
|
||||||
|
/** Deposit defines a method to add deposit on a specific proposal. */
|
||||||
|
deposit(request: MsgDeposit): Promise<MsgDepositResponse>;
|
||||||
|
}
|
||||||
|
export declare class MsgClientImpl implements Msg {
|
||||||
|
private readonly rpc;
|
||||||
|
constructor(rpc: Rpc);
|
||||||
|
submitProposal(request: MsgSubmitProposal): Promise<MsgSubmitProposalResponse>;
|
||||||
|
execLegacyContent(request: MsgExecLegacyContent): Promise<MsgExecLegacyContentResponse>;
|
||||||
|
vote(request: MsgVote): Promise<MsgVoteResponse>;
|
||||||
|
voteWeighted(request: MsgVoteWeighted): Promise<MsgVoteWeightedResponse>;
|
||||||
|
deposit(request: MsgDeposit): Promise<MsgDepositResponse>;
|
||||||
|
}
|
36
packages/codegen/dist/cosmos/gov/v1beta1/genesis.d.ts
vendored
Normal file
36
packages/codegen/dist/cosmos/gov/v1beta1/genesis.d.ts
vendored
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
/// <reference types="long" />
|
||||||
|
import { Deposit, DepositSDKType, Vote, VoteSDKType, Proposal, ProposalSDKType, DepositParams, DepositParamsSDKType, VotingParams, VotingParamsSDKType, TallyParams, TallyParamsSDKType } from "./gov";
|
||||||
|
import { Long, DeepPartial } from "../../../helpers";
|
||||||
|
import * as _m0 from "protobufjs/minimal";
|
||||||
|
/** GenesisState defines the gov module's genesis state. */
|
||||||
|
export interface GenesisState {
|
||||||
|
/** starting_proposal_id is the ID of the starting proposal. */
|
||||||
|
startingProposalId: Long;
|
||||||
|
/** deposits defines all the deposits present at genesis. */
|
||||||
|
deposits: Deposit[];
|
||||||
|
/** votes defines all the votes present at genesis. */
|
||||||
|
votes: Vote[];
|
||||||
|
/** proposals defines all the proposals present at genesis. */
|
||||||
|
proposals: Proposal[];
|
||||||
|
/** params defines all the paramaters of related to deposit. */
|
||||||
|
depositParams?: DepositParams;
|
||||||
|
/** params defines all the paramaters of related to voting. */
|
||||||
|
votingParams?: VotingParams;
|
||||||
|
/** params defines all the paramaters of related to tally. */
|
||||||
|
tallyParams?: TallyParams;
|
||||||
|
}
|
||||||
|
/** GenesisState defines the gov module's genesis state. */
|
||||||
|
export interface GenesisStateSDKType {
|
||||||
|
starting_proposal_id: Long;
|
||||||
|
deposits: DepositSDKType[];
|
||||||
|
votes: VoteSDKType[];
|
||||||
|
proposals: ProposalSDKType[];
|
||||||
|
deposit_params?: DepositParamsSDKType;
|
||||||
|
voting_params?: VotingParamsSDKType;
|
||||||
|
tally_params?: TallyParamsSDKType;
|
||||||
|
}
|
||||||
|
export declare const GenesisState: {
|
||||||
|
encode(message: GenesisState, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): GenesisState;
|
||||||
|
fromPartial(object: DeepPartial<GenesisState>): GenesisState;
|
||||||
|
};
|
270
packages/codegen/dist/cosmos/gov/v1beta1/gov.d.ts
vendored
Normal file
270
packages/codegen/dist/cosmos/gov/v1beta1/gov.d.ts
vendored
Normal file
@ -0,0 +1,270 @@
|
|||||||
|
/// <reference types="long" />
|
||||||
|
import { Coin, CoinSDKType } from "../../base/v1beta1/coin";
|
||||||
|
import { Any, AnySDKType } from "../../../google/protobuf/any";
|
||||||
|
import { Duration, DurationSDKType } from "../../../google/protobuf/duration";
|
||||||
|
import * as _m0 from "protobufjs/minimal";
|
||||||
|
import { DeepPartial, Long } from "../../../helpers";
|
||||||
|
/** VoteOption enumerates the valid vote options for a given governance proposal. */
|
||||||
|
export declare enum VoteOption {
|
||||||
|
/** VOTE_OPTION_UNSPECIFIED - VOTE_OPTION_UNSPECIFIED defines a no-op vote option. */
|
||||||
|
VOTE_OPTION_UNSPECIFIED = 0,
|
||||||
|
/** VOTE_OPTION_YES - VOTE_OPTION_YES defines a yes vote option. */
|
||||||
|
VOTE_OPTION_YES = 1,
|
||||||
|
/** VOTE_OPTION_ABSTAIN - VOTE_OPTION_ABSTAIN defines an abstain vote option. */
|
||||||
|
VOTE_OPTION_ABSTAIN = 2,
|
||||||
|
/** VOTE_OPTION_NO - VOTE_OPTION_NO defines a no vote option. */
|
||||||
|
VOTE_OPTION_NO = 3,
|
||||||
|
/** VOTE_OPTION_NO_WITH_VETO - VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. */
|
||||||
|
VOTE_OPTION_NO_WITH_VETO = 4,
|
||||||
|
UNRECOGNIZED = -1
|
||||||
|
}
|
||||||
|
export declare const VoteOptionSDKType: typeof VoteOption;
|
||||||
|
export declare function voteOptionFromJSON(object: any): VoteOption;
|
||||||
|
export declare function voteOptionToJSON(object: VoteOption): string;
|
||||||
|
/** ProposalStatus enumerates the valid statuses of a proposal. */
|
||||||
|
export declare enum ProposalStatus {
|
||||||
|
/** PROPOSAL_STATUS_UNSPECIFIED - PROPOSAL_STATUS_UNSPECIFIED defines the default propopsal status. */
|
||||||
|
PROPOSAL_STATUS_UNSPECIFIED = 0,
|
||||||
|
/**
|
||||||
|
* PROPOSAL_STATUS_DEPOSIT_PERIOD - PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit
|
||||||
|
* period.
|
||||||
|
*/
|
||||||
|
PROPOSAL_STATUS_DEPOSIT_PERIOD = 1,
|
||||||
|
/**
|
||||||
|
* PROPOSAL_STATUS_VOTING_PERIOD - PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting
|
||||||
|
* period.
|
||||||
|
*/
|
||||||
|
PROPOSAL_STATUS_VOTING_PERIOD = 2,
|
||||||
|
/**
|
||||||
|
* PROPOSAL_STATUS_PASSED - PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has
|
||||||
|
* passed.
|
||||||
|
*/
|
||||||
|
PROPOSAL_STATUS_PASSED = 3,
|
||||||
|
/**
|
||||||
|
* PROPOSAL_STATUS_REJECTED - PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has
|
||||||
|
* been rejected.
|
||||||
|
*/
|
||||||
|
PROPOSAL_STATUS_REJECTED = 4,
|
||||||
|
/**
|
||||||
|
* PROPOSAL_STATUS_FAILED - PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has
|
||||||
|
* failed.
|
||||||
|
*/
|
||||||
|
PROPOSAL_STATUS_FAILED = 5,
|
||||||
|
UNRECOGNIZED = -1
|
||||||
|
}
|
||||||
|
export declare const ProposalStatusSDKType: typeof ProposalStatus;
|
||||||
|
export declare function proposalStatusFromJSON(object: any): ProposalStatus;
|
||||||
|
export declare function proposalStatusToJSON(object: ProposalStatus): string;
|
||||||
|
/**
|
||||||
|
* WeightedVoteOption defines a unit of vote for vote split.
|
||||||
|
*
|
||||||
|
* Since: cosmos-sdk 0.43
|
||||||
|
*/
|
||||||
|
export interface WeightedVoteOption {
|
||||||
|
option: VoteOption;
|
||||||
|
weight: string;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* WeightedVoteOption defines a unit of vote for vote split.
|
||||||
|
*
|
||||||
|
* Since: cosmos-sdk 0.43
|
||||||
|
*/
|
||||||
|
export interface WeightedVoteOptionSDKType {
|
||||||
|
option: VoteOption;
|
||||||
|
weight: string;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* TextProposal defines a standard text proposal whose changes need to be
|
||||||
|
* manually updated in case of approval.
|
||||||
|
*/
|
||||||
|
export interface TextProposal {
|
||||||
|
title: string;
|
||||||
|
description: string;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* TextProposal defines a standard text proposal whose changes need to be
|
||||||
|
* manually updated in case of approval.
|
||||||
|
*/
|
||||||
|
export interface TextProposalSDKType {
|
||||||
|
title: string;
|
||||||
|
description: string;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Deposit defines an amount deposited by an account address to an active
|
||||||
|
* proposal.
|
||||||
|
*/
|
||||||
|
export interface Deposit {
|
||||||
|
proposalId: Long;
|
||||||
|
depositor: string;
|
||||||
|
amount: Coin[];
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Deposit defines an amount deposited by an account address to an active
|
||||||
|
* proposal.
|
||||||
|
*/
|
||||||
|
export interface DepositSDKType {
|
||||||
|
proposal_id: Long;
|
||||||
|
depositor: string;
|
||||||
|
amount: CoinSDKType[];
|
||||||
|
}
|
||||||
|
/** Proposal defines the core field members of a governance proposal. */
|
||||||
|
export interface Proposal {
|
||||||
|
proposalId: Long;
|
||||||
|
content?: Any;
|
||||||
|
status: ProposalStatus;
|
||||||
|
/**
|
||||||
|
* final_tally_result is the final tally result of the proposal. When
|
||||||
|
* querying a proposal via gRPC, this field is not populated until the
|
||||||
|
* proposal's voting period has ended.
|
||||||
|
*/
|
||||||
|
finalTallyResult?: TallyResult;
|
||||||
|
submitTime?: Date;
|
||||||
|
depositEndTime?: Date;
|
||||||
|
totalDeposit: Coin[];
|
||||||
|
votingStartTime?: Date;
|
||||||
|
votingEndTime?: Date;
|
||||||
|
}
|
||||||
|
/** Proposal defines the core field members of a governance proposal. */
|
||||||
|
export interface ProposalSDKType {
|
||||||
|
proposal_id: Long;
|
||||||
|
content?: AnySDKType;
|
||||||
|
status: ProposalStatus;
|
||||||
|
final_tally_result?: TallyResultSDKType;
|
||||||
|
submit_time?: Date;
|
||||||
|
deposit_end_time?: Date;
|
||||||
|
total_deposit: CoinSDKType[];
|
||||||
|
voting_start_time?: Date;
|
||||||
|
voting_end_time?: Date;
|
||||||
|
}
|
||||||
|
/** TallyResult defines a standard tally for a governance proposal. */
|
||||||
|
export interface TallyResult {
|
||||||
|
yes: string;
|
||||||
|
abstain: string;
|
||||||
|
no: string;
|
||||||
|
noWithVeto: string;
|
||||||
|
}
|
||||||
|
/** TallyResult defines a standard tally for a governance proposal. */
|
||||||
|
export interface TallyResultSDKType {
|
||||||
|
yes: string;
|
||||||
|
abstain: string;
|
||||||
|
no: string;
|
||||||
|
no_with_veto: string;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Vote defines a vote on a governance proposal.
|
||||||
|
* A Vote consists of a proposal ID, the voter, and the vote option.
|
||||||
|
*/
|
||||||
|
export interface Vote {
|
||||||
|
proposalId: Long;
|
||||||
|
voter: string;
|
||||||
|
/**
|
||||||
|
* Deprecated: Prefer to use `options` instead. This field is set in queries
|
||||||
|
* if and only if `len(options) == 1` and that option has weight 1. In all
|
||||||
|
* other cases, this field will default to VOTE_OPTION_UNSPECIFIED.
|
||||||
|
*/
|
||||||
|
/** @deprecated */
|
||||||
|
option: VoteOption;
|
||||||
|
/** Since: cosmos-sdk 0.43 */
|
||||||
|
options: WeightedVoteOption[];
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Vote defines a vote on a governance proposal.
|
||||||
|
* A Vote consists of a proposal ID, the voter, and the vote option.
|
||||||
|
*/
|
||||||
|
export interface VoteSDKType {
|
||||||
|
proposal_id: Long;
|
||||||
|
voter: string;
|
||||||
|
/** @deprecated */
|
||||||
|
option: VoteOption;
|
||||||
|
options: WeightedVoteOptionSDKType[];
|
||||||
|
}
|
||||||
|
/** DepositParams defines the params for deposits on governance proposals. */
|
||||||
|
export interface DepositParams {
|
||||||
|
/** Minimum deposit for a proposal to enter voting period. */
|
||||||
|
minDeposit: Coin[];
|
||||||
|
/**
|
||||||
|
* Maximum period for Atom holders to deposit on a proposal. Initial value: 2
|
||||||
|
* months.
|
||||||
|
*/
|
||||||
|
maxDepositPeriod?: Duration;
|
||||||
|
}
|
||||||
|
/** DepositParams defines the params for deposits on governance proposals. */
|
||||||
|
export interface DepositParamsSDKType {
|
||||||
|
min_deposit: CoinSDKType[];
|
||||||
|
max_deposit_period?: DurationSDKType;
|
||||||
|
}
|
||||||
|
/** VotingParams defines the params for voting on governance proposals. */
|
||||||
|
export interface VotingParams {
|
||||||
|
/** Length of the voting period. */
|
||||||
|
votingPeriod?: Duration;
|
||||||
|
}
|
||||||
|
/** VotingParams defines the params for voting on governance proposals. */
|
||||||
|
export interface VotingParamsSDKType {
|
||||||
|
voting_period?: DurationSDKType;
|
||||||
|
}
|
||||||
|
/** TallyParams defines the params for tallying votes on governance proposals. */
|
||||||
|
export interface TallyParams {
|
||||||
|
/**
|
||||||
|
* Minimum percentage of total stake needed to vote for a result to be
|
||||||
|
* considered valid.
|
||||||
|
*/
|
||||||
|
quorum: Uint8Array;
|
||||||
|
/** Minimum proportion of Yes votes for proposal to pass. Default value: 0.5. */
|
||||||
|
threshold: Uint8Array;
|
||||||
|
/**
|
||||||
|
* Minimum value of Veto votes to Total votes ratio for proposal to be
|
||||||
|
* vetoed. Default value: 1/3.
|
||||||
|
*/
|
||||||
|
vetoThreshold: Uint8Array;
|
||||||
|
}
|
||||||
|
/** TallyParams defines the params for tallying votes on governance proposals. */
|
||||||
|
export interface TallyParamsSDKType {
|
||||||
|
quorum: Uint8Array;
|
||||||
|
threshold: Uint8Array;
|
||||||
|
veto_threshold: Uint8Array;
|
||||||
|
}
|
||||||
|
export declare const WeightedVoteOption: {
|
||||||
|
encode(message: WeightedVoteOption, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): WeightedVoteOption;
|
||||||
|
fromPartial(object: DeepPartial<WeightedVoteOption>): WeightedVoteOption;
|
||||||
|
};
|
||||||
|
export declare const TextProposal: {
|
||||||
|
encode(message: TextProposal, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): TextProposal;
|
||||||
|
fromPartial(object: DeepPartial<TextProposal>): TextProposal;
|
||||||
|
};
|
||||||
|
export declare const Deposit: {
|
||||||
|
encode(message: Deposit, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): Deposit;
|
||||||
|
fromPartial(object: DeepPartial<Deposit>): Deposit;
|
||||||
|
};
|
||||||
|
export declare const Proposal: {
|
||||||
|
encode(message: Proposal, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): Proposal;
|
||||||
|
fromPartial(object: DeepPartial<Proposal>): Proposal;
|
||||||
|
};
|
||||||
|
export declare const TallyResult: {
|
||||||
|
encode(message: TallyResult, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): TallyResult;
|
||||||
|
fromPartial(object: DeepPartial<TallyResult>): TallyResult;
|
||||||
|
};
|
||||||
|
export declare const Vote: {
|
||||||
|
encode(message: Vote, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): Vote;
|
||||||
|
fromPartial(object: DeepPartial<Vote>): Vote;
|
||||||
|
};
|
||||||
|
export declare const DepositParams: {
|
||||||
|
encode(message: DepositParams, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): DepositParams;
|
||||||
|
fromPartial(object: DeepPartial<DepositParams>): DepositParams;
|
||||||
|
};
|
||||||
|
export declare const VotingParams: {
|
||||||
|
encode(message: VotingParams, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): VotingParams;
|
||||||
|
fromPartial(object: DeepPartial<VotingParams>): VotingParams;
|
||||||
|
};
|
||||||
|
export declare const TallyParams: {
|
||||||
|
encode(message: TallyParams, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): TallyParams;
|
||||||
|
fromPartial(object: DeepPartial<TallyParams>): TallyParams;
|
||||||
|
};
|
271
packages/codegen/dist/cosmos/gov/v1beta1/query.d.ts
vendored
Normal file
271
packages/codegen/dist/cosmos/gov/v1beta1/query.d.ts
vendored
Normal file
@ -0,0 +1,271 @@
|
|||||||
|
/// <reference types="long" />
|
||||||
|
import { ProposalStatus, Proposal, ProposalSDKType, Vote, VoteSDKType, VotingParams, VotingParamsSDKType, DepositParams, DepositParamsSDKType, TallyParams, TallyParamsSDKType, Deposit, DepositSDKType, TallyResult, TallyResultSDKType } from "./gov";
|
||||||
|
import { PageRequest, PageRequestSDKType, PageResponse, PageResponseSDKType } from "../../base/query/v1beta1/pagination";
|
||||||
|
import { Long, DeepPartial } from "../../../helpers";
|
||||||
|
import * as _m0 from "protobufjs/minimal";
|
||||||
|
/** QueryProposalRequest is the request type for the Query/Proposal RPC method. */
|
||||||
|
export interface QueryProposalRequest {
|
||||||
|
/** proposal_id defines the unique id of the proposal. */
|
||||||
|
proposalId: Long;
|
||||||
|
}
|
||||||
|
/** QueryProposalRequest is the request type for the Query/Proposal RPC method. */
|
||||||
|
export interface QueryProposalRequestSDKType {
|
||||||
|
proposal_id: Long;
|
||||||
|
}
|
||||||
|
/** QueryProposalResponse is the response type for the Query/Proposal RPC method. */
|
||||||
|
export interface QueryProposalResponse {
|
||||||
|
proposal?: Proposal;
|
||||||
|
}
|
||||||
|
/** QueryProposalResponse is the response type for the Query/Proposal RPC method. */
|
||||||
|
export interface QueryProposalResponseSDKType {
|
||||||
|
proposal?: ProposalSDKType;
|
||||||
|
}
|
||||||
|
/** QueryProposalsRequest is the request type for the Query/Proposals RPC method. */
|
||||||
|
export interface QueryProposalsRequest {
|
||||||
|
/** proposal_status defines the status of the proposals. */
|
||||||
|
proposalStatus: ProposalStatus;
|
||||||
|
/** voter defines the voter address for the proposals. */
|
||||||
|
voter: string;
|
||||||
|
/** depositor defines the deposit addresses from the proposals. */
|
||||||
|
depositor: string;
|
||||||
|
/** pagination defines an optional pagination for the request. */
|
||||||
|
pagination?: PageRequest;
|
||||||
|
}
|
||||||
|
/** QueryProposalsRequest is the request type for the Query/Proposals RPC method. */
|
||||||
|
export interface QueryProposalsRequestSDKType {
|
||||||
|
proposal_status: ProposalStatus;
|
||||||
|
voter: string;
|
||||||
|
depositor: string;
|
||||||
|
pagination?: PageRequestSDKType;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* QueryProposalsResponse is the response type for the Query/Proposals RPC
|
||||||
|
* method.
|
||||||
|
*/
|
||||||
|
export interface QueryProposalsResponse {
|
||||||
|
proposals: Proposal[];
|
||||||
|
/** pagination defines the pagination in the response. */
|
||||||
|
pagination?: PageResponse;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* QueryProposalsResponse is the response type for the Query/Proposals RPC
|
||||||
|
* method.
|
||||||
|
*/
|
||||||
|
export interface QueryProposalsResponseSDKType {
|
||||||
|
proposals: ProposalSDKType[];
|
||||||
|
pagination?: PageResponseSDKType;
|
||||||
|
}
|
||||||
|
/** QueryVoteRequest is the request type for the Query/Vote RPC method. */
|
||||||
|
export interface QueryVoteRequest {
|
||||||
|
/** proposal_id defines the unique id of the proposal. */
|
||||||
|
proposalId: Long;
|
||||||
|
/** voter defines the oter address for the proposals. */
|
||||||
|
voter: string;
|
||||||
|
}
|
||||||
|
/** QueryVoteRequest is the request type for the Query/Vote RPC method. */
|
||||||
|
export interface QueryVoteRequestSDKType {
|
||||||
|
proposal_id: Long;
|
||||||
|
voter: string;
|
||||||
|
}
|
||||||
|
/** QueryVoteResponse is the response type for the Query/Vote RPC method. */
|
||||||
|
export interface QueryVoteResponse {
|
||||||
|
/** vote defined the queried vote. */
|
||||||
|
vote?: Vote;
|
||||||
|
}
|
||||||
|
/** QueryVoteResponse is the response type for the Query/Vote RPC method. */
|
||||||
|
export interface QueryVoteResponseSDKType {
|
||||||
|
vote?: VoteSDKType;
|
||||||
|
}
|
||||||
|
/** QueryVotesRequest is the request type for the Query/Votes RPC method. */
|
||||||
|
export interface QueryVotesRequest {
|
||||||
|
/** proposal_id defines the unique id of the proposal. */
|
||||||
|
proposalId: Long;
|
||||||
|
/** pagination defines an optional pagination for the request. */
|
||||||
|
pagination?: PageRequest;
|
||||||
|
}
|
||||||
|
/** QueryVotesRequest is the request type for the Query/Votes RPC method. */
|
||||||
|
export interface QueryVotesRequestSDKType {
|
||||||
|
proposal_id: Long;
|
||||||
|
pagination?: PageRequestSDKType;
|
||||||
|
}
|
||||||
|
/** QueryVotesResponse is the response type for the Query/Votes RPC method. */
|
||||||
|
export interface QueryVotesResponse {
|
||||||
|
/** votes defined the queried votes. */
|
||||||
|
votes: Vote[];
|
||||||
|
/** pagination defines the pagination in the response. */
|
||||||
|
pagination?: PageResponse;
|
||||||
|
}
|
||||||
|
/** QueryVotesResponse is the response type for the Query/Votes RPC method. */
|
||||||
|
export interface QueryVotesResponseSDKType {
|
||||||
|
votes: VoteSDKType[];
|
||||||
|
pagination?: PageResponseSDKType;
|
||||||
|
}
|
||||||
|
/** QueryParamsRequest is the request type for the Query/Params RPC method. */
|
||||||
|
export interface QueryParamsRequest {
|
||||||
|
/**
|
||||||
|
* params_type defines which parameters to query for, can be one of "voting",
|
||||||
|
* "tallying" or "deposit".
|
||||||
|
*/
|
||||||
|
paramsType: string;
|
||||||
|
}
|
||||||
|
/** QueryParamsRequest is the request type for the Query/Params RPC method. */
|
||||||
|
export interface QueryParamsRequestSDKType {
|
||||||
|
params_type: string;
|
||||||
|
}
|
||||||
|
/** QueryParamsResponse is the response type for the Query/Params RPC method. */
|
||||||
|
export interface QueryParamsResponse {
|
||||||
|
/** voting_params defines the parameters related to voting. */
|
||||||
|
votingParams?: VotingParams;
|
||||||
|
/** deposit_params defines the parameters related to deposit. */
|
||||||
|
depositParams?: DepositParams;
|
||||||
|
/** tally_params defines the parameters related to tally. */
|
||||||
|
tallyParams?: TallyParams;
|
||||||
|
}
|
||||||
|
/** QueryParamsResponse is the response type for the Query/Params RPC method. */
|
||||||
|
export interface QueryParamsResponseSDKType {
|
||||||
|
voting_params?: VotingParamsSDKType;
|
||||||
|
deposit_params?: DepositParamsSDKType;
|
||||||
|
tally_params?: TallyParamsSDKType;
|
||||||
|
}
|
||||||
|
/** QueryDepositRequest is the request type for the Query/Deposit RPC method. */
|
||||||
|
export interface QueryDepositRequest {
|
||||||
|
/** proposal_id defines the unique id of the proposal. */
|
||||||
|
proposalId: Long;
|
||||||
|
/** depositor defines the deposit addresses from the proposals. */
|
||||||
|
depositor: string;
|
||||||
|
}
|
||||||
|
/** QueryDepositRequest is the request type for the Query/Deposit RPC method. */
|
||||||
|
export interface QueryDepositRequestSDKType {
|
||||||
|
proposal_id: Long;
|
||||||
|
depositor: string;
|
||||||
|
}
|
||||||
|
/** QueryDepositResponse is the response type for the Query/Deposit RPC method. */
|
||||||
|
export interface QueryDepositResponse {
|
||||||
|
/** deposit defines the requested deposit. */
|
||||||
|
deposit?: Deposit;
|
||||||
|
}
|
||||||
|
/** QueryDepositResponse is the response type for the Query/Deposit RPC method. */
|
||||||
|
export interface QueryDepositResponseSDKType {
|
||||||
|
deposit?: DepositSDKType;
|
||||||
|
}
|
||||||
|
/** QueryDepositsRequest is the request type for the Query/Deposits RPC method. */
|
||||||
|
export interface QueryDepositsRequest {
|
||||||
|
/** proposal_id defines the unique id of the proposal. */
|
||||||
|
proposalId: Long;
|
||||||
|
/** pagination defines an optional pagination for the request. */
|
||||||
|
pagination?: PageRequest;
|
||||||
|
}
|
||||||
|
/** QueryDepositsRequest is the request type for the Query/Deposits RPC method. */
|
||||||
|
export interface QueryDepositsRequestSDKType {
|
||||||
|
proposal_id: Long;
|
||||||
|
pagination?: PageRequestSDKType;
|
||||||
|
}
|
||||||
|
/** QueryDepositsResponse is the response type for the Query/Deposits RPC method. */
|
||||||
|
export interface QueryDepositsResponse {
|
||||||
|
deposits: Deposit[];
|
||||||
|
/** pagination defines the pagination in the response. */
|
||||||
|
pagination?: PageResponse;
|
||||||
|
}
|
||||||
|
/** QueryDepositsResponse is the response type for the Query/Deposits RPC method. */
|
||||||
|
export interface QueryDepositsResponseSDKType {
|
||||||
|
deposits: DepositSDKType[];
|
||||||
|
pagination?: PageResponseSDKType;
|
||||||
|
}
|
||||||
|
/** QueryTallyResultRequest is the request type for the Query/Tally RPC method. */
|
||||||
|
export interface QueryTallyResultRequest {
|
||||||
|
/** proposal_id defines the unique id of the proposal. */
|
||||||
|
proposalId: Long;
|
||||||
|
}
|
||||||
|
/** QueryTallyResultRequest is the request type for the Query/Tally RPC method. */
|
||||||
|
export interface QueryTallyResultRequestSDKType {
|
||||||
|
proposal_id: Long;
|
||||||
|
}
|
||||||
|
/** QueryTallyResultResponse is the response type for the Query/Tally RPC method. */
|
||||||
|
export interface QueryTallyResultResponse {
|
||||||
|
/** tally defines the requested tally. */
|
||||||
|
tally?: TallyResult;
|
||||||
|
}
|
||||||
|
/** QueryTallyResultResponse is the response type for the Query/Tally RPC method. */
|
||||||
|
export interface QueryTallyResultResponseSDKType {
|
||||||
|
tally?: TallyResultSDKType;
|
||||||
|
}
|
||||||
|
export declare const QueryProposalRequest: {
|
||||||
|
encode(message: QueryProposalRequest, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryProposalRequest;
|
||||||
|
fromPartial(object: DeepPartial<QueryProposalRequest>): QueryProposalRequest;
|
||||||
|
};
|
||||||
|
export declare const QueryProposalResponse: {
|
||||||
|
encode(message: QueryProposalResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryProposalResponse;
|
||||||
|
fromPartial(object: DeepPartial<QueryProposalResponse>): QueryProposalResponse;
|
||||||
|
};
|
||||||
|
export declare const QueryProposalsRequest: {
|
||||||
|
encode(message: QueryProposalsRequest, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryProposalsRequest;
|
||||||
|
fromPartial(object: DeepPartial<QueryProposalsRequest>): QueryProposalsRequest;
|
||||||
|
};
|
||||||
|
export declare const QueryProposalsResponse: {
|
||||||
|
encode(message: QueryProposalsResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryProposalsResponse;
|
||||||
|
fromPartial(object: DeepPartial<QueryProposalsResponse>): QueryProposalsResponse;
|
||||||
|
};
|
||||||
|
export declare const QueryVoteRequest: {
|
||||||
|
encode(message: QueryVoteRequest, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryVoteRequest;
|
||||||
|
fromPartial(object: DeepPartial<QueryVoteRequest>): QueryVoteRequest;
|
||||||
|
};
|
||||||
|
export declare const QueryVoteResponse: {
|
||||||
|
encode(message: QueryVoteResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryVoteResponse;
|
||||||
|
fromPartial(object: DeepPartial<QueryVoteResponse>): QueryVoteResponse;
|
||||||
|
};
|
||||||
|
export declare const QueryVotesRequest: {
|
||||||
|
encode(message: QueryVotesRequest, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryVotesRequest;
|
||||||
|
fromPartial(object: DeepPartial<QueryVotesRequest>): QueryVotesRequest;
|
||||||
|
};
|
||||||
|
export declare const QueryVotesResponse: {
|
||||||
|
encode(message: QueryVotesResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryVotesResponse;
|
||||||
|
fromPartial(object: DeepPartial<QueryVotesResponse>): QueryVotesResponse;
|
||||||
|
};
|
||||||
|
export declare const QueryParamsRequest: {
|
||||||
|
encode(message: QueryParamsRequest, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsRequest;
|
||||||
|
fromPartial(object: DeepPartial<QueryParamsRequest>): QueryParamsRequest;
|
||||||
|
};
|
||||||
|
export declare const QueryParamsResponse: {
|
||||||
|
encode(message: QueryParamsResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsResponse;
|
||||||
|
fromPartial(object: DeepPartial<QueryParamsResponse>): QueryParamsResponse;
|
||||||
|
};
|
||||||
|
export declare const QueryDepositRequest: {
|
||||||
|
encode(message: QueryDepositRequest, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDepositRequest;
|
||||||
|
fromPartial(object: DeepPartial<QueryDepositRequest>): QueryDepositRequest;
|
||||||
|
};
|
||||||
|
export declare const QueryDepositResponse: {
|
||||||
|
encode(message: QueryDepositResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDepositResponse;
|
||||||
|
fromPartial(object: DeepPartial<QueryDepositResponse>): QueryDepositResponse;
|
||||||
|
};
|
||||||
|
export declare const QueryDepositsRequest: {
|
||||||
|
encode(message: QueryDepositsRequest, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDepositsRequest;
|
||||||
|
fromPartial(object: DeepPartial<QueryDepositsRequest>): QueryDepositsRequest;
|
||||||
|
};
|
||||||
|
export declare const QueryDepositsResponse: {
|
||||||
|
encode(message: QueryDepositsResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDepositsResponse;
|
||||||
|
fromPartial(object: DeepPartial<QueryDepositsResponse>): QueryDepositsResponse;
|
||||||
|
};
|
||||||
|
export declare const QueryTallyResultRequest: {
|
||||||
|
encode(message: QueryTallyResultRequest, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryTallyResultRequest;
|
||||||
|
fromPartial(object: DeepPartial<QueryTallyResultRequest>): QueryTallyResultRequest;
|
||||||
|
};
|
||||||
|
export declare const QueryTallyResultResponse: {
|
||||||
|
encode(message: QueryTallyResultResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryTallyResultResponse;
|
||||||
|
fromPartial(object: DeepPartial<QueryTallyResultResponse>): QueryTallyResultResponse;
|
||||||
|
};
|
16
packages/codegen/dist/cosmos/gov/v1beta1/query.lcd.d.ts
vendored
Normal file
16
packages/codegen/dist/cosmos/gov/v1beta1/query.lcd.d.ts
vendored
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
import { LCDClient } from "@osmonauts/lcd";
|
||||||
|
import { QueryProposalRequest, QueryProposalResponseSDKType, QueryProposalsRequest, QueryProposalsResponseSDKType, QueryVoteRequest, QueryVoteResponseSDKType, QueryVotesRequest, QueryVotesResponseSDKType, QueryParamsRequest, QueryParamsResponseSDKType, QueryDepositRequest, QueryDepositResponseSDKType, QueryDepositsRequest, QueryDepositsResponseSDKType, QueryTallyResultRequest, QueryTallyResultResponseSDKType } from "./query";
|
||||||
|
export declare class LCDQueryClient {
|
||||||
|
req: LCDClient;
|
||||||
|
constructor({ requestClient }: {
|
||||||
|
requestClient: LCDClient;
|
||||||
|
});
|
||||||
|
proposal(params: QueryProposalRequest): Promise<QueryProposalResponseSDKType>;
|
||||||
|
proposals(params: QueryProposalsRequest): Promise<QueryProposalsResponseSDKType>;
|
||||||
|
vote(params: QueryVoteRequest): Promise<QueryVoteResponseSDKType>;
|
||||||
|
votes(params: QueryVotesRequest): Promise<QueryVotesResponseSDKType>;
|
||||||
|
params(params: QueryParamsRequest): Promise<QueryParamsResponseSDKType>;
|
||||||
|
deposit(params: QueryDepositRequest): Promise<QueryDepositResponseSDKType>;
|
||||||
|
deposits(params: QueryDepositsRequest): Promise<QueryDepositsResponseSDKType>;
|
||||||
|
tallyResult(params: QueryTallyResultRequest): Promise<QueryTallyResultResponseSDKType>;
|
||||||
|
}
|
44
packages/codegen/dist/cosmos/gov/v1beta1/query.rpc.Query.d.ts
vendored
Normal file
44
packages/codegen/dist/cosmos/gov/v1beta1/query.rpc.Query.d.ts
vendored
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
import { Rpc } from "../../../helpers";
|
||||||
|
import { QueryClient } from "@cosmjs/stargate";
|
||||||
|
import { QueryProposalRequest, QueryProposalResponse, QueryProposalsRequest, QueryProposalsResponse, QueryVoteRequest, QueryVoteResponse, QueryVotesRequest, QueryVotesResponse, QueryParamsRequest, QueryParamsResponse, QueryDepositRequest, QueryDepositResponse, QueryDepositsRequest, QueryDepositsResponse, QueryTallyResultRequest, QueryTallyResultResponse } from "./query";
|
||||||
|
/** Query defines the gRPC querier service for gov module */
|
||||||
|
export interface Query {
|
||||||
|
/** Proposal queries proposal details based on ProposalID. */
|
||||||
|
proposal(request: QueryProposalRequest): Promise<QueryProposalResponse>;
|
||||||
|
/** Proposals queries all proposals based on given status. */
|
||||||
|
proposals(request: QueryProposalsRequest): Promise<QueryProposalsResponse>;
|
||||||
|
/** Vote queries voted information based on proposalID, voterAddr. */
|
||||||
|
vote(request: QueryVoteRequest): Promise<QueryVoteResponse>;
|
||||||
|
/** Votes queries votes of a given proposal. */
|
||||||
|
votes(request: QueryVotesRequest): Promise<QueryVotesResponse>;
|
||||||
|
/** Params queries all parameters of the gov module. */
|
||||||
|
params(request: QueryParamsRequest): Promise<QueryParamsResponse>;
|
||||||
|
/** Deposit queries single deposit information based proposalID, depositAddr. */
|
||||||
|
deposit(request: QueryDepositRequest): Promise<QueryDepositResponse>;
|
||||||
|
/** Deposits queries all deposits of a single proposal. */
|
||||||
|
deposits(request: QueryDepositsRequest): Promise<QueryDepositsResponse>;
|
||||||
|
/** TallyResult queries the tally of a proposal vote. */
|
||||||
|
tallyResult(request: QueryTallyResultRequest): Promise<QueryTallyResultResponse>;
|
||||||
|
}
|
||||||
|
export declare class QueryClientImpl implements Query {
|
||||||
|
private readonly rpc;
|
||||||
|
constructor(rpc: Rpc);
|
||||||
|
proposal(request: QueryProposalRequest): Promise<QueryProposalResponse>;
|
||||||
|
proposals(request: QueryProposalsRequest): Promise<QueryProposalsResponse>;
|
||||||
|
vote(request: QueryVoteRequest): Promise<QueryVoteResponse>;
|
||||||
|
votes(request: QueryVotesRequest): Promise<QueryVotesResponse>;
|
||||||
|
params(request: QueryParamsRequest): Promise<QueryParamsResponse>;
|
||||||
|
deposit(request: QueryDepositRequest): Promise<QueryDepositResponse>;
|
||||||
|
deposits(request: QueryDepositsRequest): Promise<QueryDepositsResponse>;
|
||||||
|
tallyResult(request: QueryTallyResultRequest): Promise<QueryTallyResultResponse>;
|
||||||
|
}
|
||||||
|
export declare const createRpcQueryExtension: (base: QueryClient) => {
|
||||||
|
proposal(request: QueryProposalRequest): Promise<QueryProposalResponse>;
|
||||||
|
proposals(request: QueryProposalsRequest): Promise<QueryProposalsResponse>;
|
||||||
|
vote(request: QueryVoteRequest): Promise<QueryVoteResponse>;
|
||||||
|
votes(request: QueryVotesRequest): Promise<QueryVotesResponse>;
|
||||||
|
params(request: QueryParamsRequest): Promise<QueryParamsResponse>;
|
||||||
|
deposit(request: QueryDepositRequest): Promise<QueryDepositResponse>;
|
||||||
|
deposits(request: QueryDepositsRequest): Promise<QueryDepositsResponse>;
|
||||||
|
tallyResult(request: QueryTallyResultRequest): Promise<QueryTallyResultResponse>;
|
||||||
|
};
|
142
packages/codegen/dist/cosmos/gov/v1beta1/tx.d.ts
vendored
Normal file
142
packages/codegen/dist/cosmos/gov/v1beta1/tx.d.ts
vendored
Normal file
@ -0,0 +1,142 @@
|
|||||||
|
/// <reference types="long" />
|
||||||
|
import { Any, AnySDKType } from "../../../google/protobuf/any";
|
||||||
|
import { Coin, CoinSDKType } from "../../base/v1beta1/coin";
|
||||||
|
import { VoteOption, WeightedVoteOption, WeightedVoteOptionSDKType } from "./gov";
|
||||||
|
import * as _m0 from "protobufjs/minimal";
|
||||||
|
import { DeepPartial, Long } from "../../../helpers";
|
||||||
|
/**
|
||||||
|
* MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary
|
||||||
|
* proposal Content.
|
||||||
|
*/
|
||||||
|
export interface MsgSubmitProposal {
|
||||||
|
content?: Any;
|
||||||
|
initialDeposit: Coin[];
|
||||||
|
proposer: string;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary
|
||||||
|
* proposal Content.
|
||||||
|
*/
|
||||||
|
export interface MsgSubmitProposalSDKType {
|
||||||
|
content?: AnySDKType;
|
||||||
|
initial_deposit: CoinSDKType[];
|
||||||
|
proposer: string;
|
||||||
|
}
|
||||||
|
/** MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. */
|
||||||
|
export interface MsgSubmitProposalResponse {
|
||||||
|
proposalId: Long;
|
||||||
|
}
|
||||||
|
/** MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. */
|
||||||
|
export interface MsgSubmitProposalResponseSDKType {
|
||||||
|
proposal_id: Long;
|
||||||
|
}
|
||||||
|
/** MsgVote defines a message to cast a vote. */
|
||||||
|
export interface MsgVote {
|
||||||
|
proposalId: Long;
|
||||||
|
voter: string;
|
||||||
|
option: VoteOption;
|
||||||
|
}
|
||||||
|
/** MsgVote defines a message to cast a vote. */
|
||||||
|
export interface MsgVoteSDKType {
|
||||||
|
proposal_id: Long;
|
||||||
|
voter: string;
|
||||||
|
option: VoteOption;
|
||||||
|
}
|
||||||
|
/** MsgVoteResponse defines the Msg/Vote response type. */
|
||||||
|
export interface MsgVoteResponse {
|
||||||
|
}
|
||||||
|
/** MsgVoteResponse defines the Msg/Vote response type. */
|
||||||
|
export interface MsgVoteResponseSDKType {
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* MsgVoteWeighted defines a message to cast a vote.
|
||||||
|
*
|
||||||
|
* Since: cosmos-sdk 0.43
|
||||||
|
*/
|
||||||
|
export interface MsgVoteWeighted {
|
||||||
|
proposalId: Long;
|
||||||
|
voter: string;
|
||||||
|
options: WeightedVoteOption[];
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* MsgVoteWeighted defines a message to cast a vote.
|
||||||
|
*
|
||||||
|
* Since: cosmos-sdk 0.43
|
||||||
|
*/
|
||||||
|
export interface MsgVoteWeightedSDKType {
|
||||||
|
proposal_id: Long;
|
||||||
|
voter: string;
|
||||||
|
options: WeightedVoteOptionSDKType[];
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* MsgVoteWeightedResponse defines the Msg/VoteWeighted response type.
|
||||||
|
*
|
||||||
|
* Since: cosmos-sdk 0.43
|
||||||
|
*/
|
||||||
|
export interface MsgVoteWeightedResponse {
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* MsgVoteWeightedResponse defines the Msg/VoteWeighted response type.
|
||||||
|
*
|
||||||
|
* Since: cosmos-sdk 0.43
|
||||||
|
*/
|
||||||
|
export interface MsgVoteWeightedResponseSDKType {
|
||||||
|
}
|
||||||
|
/** MsgDeposit defines a message to submit a deposit to an existing proposal. */
|
||||||
|
export interface MsgDeposit {
|
||||||
|
proposalId: Long;
|
||||||
|
depositor: string;
|
||||||
|
amount: Coin[];
|
||||||
|
}
|
||||||
|
/** MsgDeposit defines a message to submit a deposit to an existing proposal. */
|
||||||
|
export interface MsgDepositSDKType {
|
||||||
|
proposal_id: Long;
|
||||||
|
depositor: string;
|
||||||
|
amount: CoinSDKType[];
|
||||||
|
}
|
||||||
|
/** MsgDepositResponse defines the Msg/Deposit response type. */
|
||||||
|
export interface MsgDepositResponse {
|
||||||
|
}
|
||||||
|
/** MsgDepositResponse defines the Msg/Deposit response type. */
|
||||||
|
export interface MsgDepositResponseSDKType {
|
||||||
|
}
|
||||||
|
export declare const MsgSubmitProposal: {
|
||||||
|
encode(message: MsgSubmitProposal, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): MsgSubmitProposal;
|
||||||
|
fromPartial(object: DeepPartial<MsgSubmitProposal>): MsgSubmitProposal;
|
||||||
|
};
|
||||||
|
export declare const MsgSubmitProposalResponse: {
|
||||||
|
encode(message: MsgSubmitProposalResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): MsgSubmitProposalResponse;
|
||||||
|
fromPartial(object: DeepPartial<MsgSubmitProposalResponse>): MsgSubmitProposalResponse;
|
||||||
|
};
|
||||||
|
export declare const MsgVote: {
|
||||||
|
encode(message: MsgVote, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): MsgVote;
|
||||||
|
fromPartial(object: DeepPartial<MsgVote>): MsgVote;
|
||||||
|
};
|
||||||
|
export declare const MsgVoteResponse: {
|
||||||
|
encode(_: MsgVoteResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): MsgVoteResponse;
|
||||||
|
fromPartial(_: DeepPartial<MsgVoteResponse>): MsgVoteResponse;
|
||||||
|
};
|
||||||
|
export declare const MsgVoteWeighted: {
|
||||||
|
encode(message: MsgVoteWeighted, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): MsgVoteWeighted;
|
||||||
|
fromPartial(object: DeepPartial<MsgVoteWeighted>): MsgVoteWeighted;
|
||||||
|
};
|
||||||
|
export declare const MsgVoteWeightedResponse: {
|
||||||
|
encode(_: MsgVoteWeightedResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): MsgVoteWeightedResponse;
|
||||||
|
fromPartial(_: DeepPartial<MsgVoteWeightedResponse>): MsgVoteWeightedResponse;
|
||||||
|
};
|
||||||
|
export declare const MsgDeposit: {
|
||||||
|
encode(message: MsgDeposit, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): MsgDeposit;
|
||||||
|
fromPartial(object: DeepPartial<MsgDeposit>): MsgDeposit;
|
||||||
|
};
|
||||||
|
export declare const MsgDepositResponse: {
|
||||||
|
encode(_: MsgDepositResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): MsgDepositResponse;
|
||||||
|
fromPartial(_: DeepPartial<MsgDepositResponse>): MsgDepositResponse;
|
||||||
|
};
|
25
packages/codegen/dist/cosmos/gov/v1beta1/tx.rpc.msg.d.ts
vendored
Normal file
25
packages/codegen/dist/cosmos/gov/v1beta1/tx.rpc.msg.d.ts
vendored
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
import { Rpc } from "../../../helpers";
|
||||||
|
import { MsgSubmitProposal, MsgSubmitProposalResponse, MsgVote, MsgVoteResponse, MsgVoteWeighted, MsgVoteWeightedResponse, MsgDeposit, MsgDepositResponse } from "./tx";
|
||||||
|
/** Msg defines the bank Msg service. */
|
||||||
|
export interface Msg {
|
||||||
|
/** SubmitProposal defines a method to create new proposal given a content. */
|
||||||
|
submitProposal(request: MsgSubmitProposal): Promise<MsgSubmitProposalResponse>;
|
||||||
|
/** Vote defines a method to add a vote on a specific proposal. */
|
||||||
|
vote(request: MsgVote): Promise<MsgVoteResponse>;
|
||||||
|
/**
|
||||||
|
* VoteWeighted defines a method to add a weighted vote on a specific proposal.
|
||||||
|
*
|
||||||
|
* Since: cosmos-sdk 0.43
|
||||||
|
*/
|
||||||
|
voteWeighted(request: MsgVoteWeighted): Promise<MsgVoteWeightedResponse>;
|
||||||
|
/** Deposit defines a method to add deposit on a specific proposal. */
|
||||||
|
deposit(request: MsgDeposit): Promise<MsgDepositResponse>;
|
||||||
|
}
|
||||||
|
export declare class MsgClientImpl implements Msg {
|
||||||
|
private readonly rpc;
|
||||||
|
constructor(rpc: Rpc);
|
||||||
|
submitProposal(request: MsgSubmitProposal): Promise<MsgSubmitProposalResponse>;
|
||||||
|
vote(request: MsgVote): Promise<MsgVoteResponse>;
|
||||||
|
voteWeighted(request: MsgVoteWeighted): Promise<MsgVoteWeightedResponse>;
|
||||||
|
deposit(request: MsgDeposit): Promise<MsgDepositResponse>;
|
||||||
|
}
|
136
packages/codegen/dist/cosmos/group/v1/events.d.ts
vendored
Normal file
136
packages/codegen/dist/cosmos/group/v1/events.d.ts
vendored
Normal file
@ -0,0 +1,136 @@
|
|||||||
|
/// <reference types="long" />
|
||||||
|
import { ProposalExecutorResult } from "./types";
|
||||||
|
import { Long, DeepPartial } from "../../../helpers";
|
||||||
|
import * as _m0 from "protobufjs/minimal";
|
||||||
|
/** EventCreateGroup is an event emitted when a group is created. */
|
||||||
|
export interface EventCreateGroup {
|
||||||
|
/** group_id is the unique ID of the group. */
|
||||||
|
groupId: Long;
|
||||||
|
}
|
||||||
|
/** EventCreateGroup is an event emitted when a group is created. */
|
||||||
|
export interface EventCreateGroupSDKType {
|
||||||
|
group_id: Long;
|
||||||
|
}
|
||||||
|
/** EventUpdateGroup is an event emitted when a group is updated. */
|
||||||
|
export interface EventUpdateGroup {
|
||||||
|
/** group_id is the unique ID of the group. */
|
||||||
|
groupId: Long;
|
||||||
|
}
|
||||||
|
/** EventUpdateGroup is an event emitted when a group is updated. */
|
||||||
|
export interface EventUpdateGroupSDKType {
|
||||||
|
group_id: Long;
|
||||||
|
}
|
||||||
|
/** EventCreateGroupPolicy is an event emitted when a group policy is created. */
|
||||||
|
export interface EventCreateGroupPolicy {
|
||||||
|
/** address is the account address of the group policy. */
|
||||||
|
address: string;
|
||||||
|
}
|
||||||
|
/** EventCreateGroupPolicy is an event emitted when a group policy is created. */
|
||||||
|
export interface EventCreateGroupPolicySDKType {
|
||||||
|
address: string;
|
||||||
|
}
|
||||||
|
/** EventUpdateGroupPolicy is an event emitted when a group policy is updated. */
|
||||||
|
export interface EventUpdateGroupPolicy {
|
||||||
|
/** address is the account address of the group policy. */
|
||||||
|
address: string;
|
||||||
|
}
|
||||||
|
/** EventUpdateGroupPolicy is an event emitted when a group policy is updated. */
|
||||||
|
export interface EventUpdateGroupPolicySDKType {
|
||||||
|
address: string;
|
||||||
|
}
|
||||||
|
/** EventSubmitProposal is an event emitted when a proposal is created. */
|
||||||
|
export interface EventSubmitProposal {
|
||||||
|
/** proposal_id is the unique ID of the proposal. */
|
||||||
|
proposalId: Long;
|
||||||
|
}
|
||||||
|
/** EventSubmitProposal is an event emitted when a proposal is created. */
|
||||||
|
export interface EventSubmitProposalSDKType {
|
||||||
|
proposal_id: Long;
|
||||||
|
}
|
||||||
|
/** EventWithdrawProposal is an event emitted when a proposal is withdrawn. */
|
||||||
|
export interface EventWithdrawProposal {
|
||||||
|
/** proposal_id is the unique ID of the proposal. */
|
||||||
|
proposalId: Long;
|
||||||
|
}
|
||||||
|
/** EventWithdrawProposal is an event emitted when a proposal is withdrawn. */
|
||||||
|
export interface EventWithdrawProposalSDKType {
|
||||||
|
proposal_id: Long;
|
||||||
|
}
|
||||||
|
/** EventVote is an event emitted when a voter votes on a proposal. */
|
||||||
|
export interface EventVote {
|
||||||
|
/** proposal_id is the unique ID of the proposal. */
|
||||||
|
proposalId: Long;
|
||||||
|
}
|
||||||
|
/** EventVote is an event emitted when a voter votes on a proposal. */
|
||||||
|
export interface EventVoteSDKType {
|
||||||
|
proposal_id: Long;
|
||||||
|
}
|
||||||
|
/** EventExec is an event emitted when a proposal is executed. */
|
||||||
|
export interface EventExec {
|
||||||
|
/** proposal_id is the unique ID of the proposal. */
|
||||||
|
proposalId: Long;
|
||||||
|
/** result is the proposal execution result. */
|
||||||
|
result: ProposalExecutorResult;
|
||||||
|
}
|
||||||
|
/** EventExec is an event emitted when a proposal is executed. */
|
||||||
|
export interface EventExecSDKType {
|
||||||
|
proposal_id: Long;
|
||||||
|
result: ProposalExecutorResult;
|
||||||
|
}
|
||||||
|
/** EventLeaveGroup is an event emitted when group member leaves the group. */
|
||||||
|
export interface EventLeaveGroup {
|
||||||
|
/** group_id is the unique ID of the group. */
|
||||||
|
groupId: Long;
|
||||||
|
/** address is the account address of the group member. */
|
||||||
|
address: string;
|
||||||
|
}
|
||||||
|
/** EventLeaveGroup is an event emitted when group member leaves the group. */
|
||||||
|
export interface EventLeaveGroupSDKType {
|
||||||
|
group_id: Long;
|
||||||
|
address: string;
|
||||||
|
}
|
||||||
|
export declare const EventCreateGroup: {
|
||||||
|
encode(message: EventCreateGroup, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): EventCreateGroup;
|
||||||
|
fromPartial(object: DeepPartial<EventCreateGroup>): EventCreateGroup;
|
||||||
|
};
|
||||||
|
export declare const EventUpdateGroup: {
|
||||||
|
encode(message: EventUpdateGroup, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): EventUpdateGroup;
|
||||||
|
fromPartial(object: DeepPartial<EventUpdateGroup>): EventUpdateGroup;
|
||||||
|
};
|
||||||
|
export declare const EventCreateGroupPolicy: {
|
||||||
|
encode(message: EventCreateGroupPolicy, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): EventCreateGroupPolicy;
|
||||||
|
fromPartial(object: DeepPartial<EventCreateGroupPolicy>): EventCreateGroupPolicy;
|
||||||
|
};
|
||||||
|
export declare const EventUpdateGroupPolicy: {
|
||||||
|
encode(message: EventUpdateGroupPolicy, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): EventUpdateGroupPolicy;
|
||||||
|
fromPartial(object: DeepPartial<EventUpdateGroupPolicy>): EventUpdateGroupPolicy;
|
||||||
|
};
|
||||||
|
export declare const EventSubmitProposal: {
|
||||||
|
encode(message: EventSubmitProposal, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): EventSubmitProposal;
|
||||||
|
fromPartial(object: DeepPartial<EventSubmitProposal>): EventSubmitProposal;
|
||||||
|
};
|
||||||
|
export declare const EventWithdrawProposal: {
|
||||||
|
encode(message: EventWithdrawProposal, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): EventWithdrawProposal;
|
||||||
|
fromPartial(object: DeepPartial<EventWithdrawProposal>): EventWithdrawProposal;
|
||||||
|
};
|
||||||
|
export declare const EventVote: {
|
||||||
|
encode(message: EventVote, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): EventVote;
|
||||||
|
fromPartial(object: DeepPartial<EventVote>): EventVote;
|
||||||
|
};
|
||||||
|
export declare const EventExec: {
|
||||||
|
encode(message: EventExec, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): EventExec;
|
||||||
|
fromPartial(object: DeepPartial<EventExec>): EventExec;
|
||||||
|
};
|
||||||
|
export declare const EventLeaveGroup: {
|
||||||
|
encode(message: EventLeaveGroup, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): EventLeaveGroup;
|
||||||
|
fromPartial(object: DeepPartial<EventLeaveGroup>): EventLeaveGroup;
|
||||||
|
};
|
48
packages/codegen/dist/cosmos/group/v1/genesis.d.ts
vendored
Normal file
48
packages/codegen/dist/cosmos/group/v1/genesis.d.ts
vendored
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
/// <reference types="long" />
|
||||||
|
import { GroupInfo, GroupInfoSDKType, GroupMember, GroupMemberSDKType, GroupPolicyInfo, GroupPolicyInfoSDKType, Proposal, ProposalSDKType, Vote, VoteSDKType } from "./types";
|
||||||
|
import { Long, DeepPartial } from "../../../helpers";
|
||||||
|
import * as _m0 from "protobufjs/minimal";
|
||||||
|
/** GenesisState defines the group module's genesis state. */
|
||||||
|
export interface GenesisState {
|
||||||
|
/**
|
||||||
|
* group_seq is the group table orm.Sequence,
|
||||||
|
* it is used to get the next group ID.
|
||||||
|
*/
|
||||||
|
groupSeq: Long;
|
||||||
|
/** groups is the list of groups info. */
|
||||||
|
groups: GroupInfo[];
|
||||||
|
/** group_members is the list of groups members. */
|
||||||
|
groupMembers: GroupMember[];
|
||||||
|
/**
|
||||||
|
* group_policy_seq is the group policy table orm.Sequence,
|
||||||
|
* it is used to generate the next group policy account address.
|
||||||
|
*/
|
||||||
|
groupPolicySeq: Long;
|
||||||
|
/** group_policies is the list of group policies info. */
|
||||||
|
groupPolicies: GroupPolicyInfo[];
|
||||||
|
/**
|
||||||
|
* proposal_seq is the proposal table orm.Sequence,
|
||||||
|
* it is used to get the next proposal ID.
|
||||||
|
*/
|
||||||
|
proposalSeq: Long;
|
||||||
|
/** proposals is the list of proposals. */
|
||||||
|
proposals: Proposal[];
|
||||||
|
/** votes is the list of votes. */
|
||||||
|
votes: Vote[];
|
||||||
|
}
|
||||||
|
/** GenesisState defines the group module's genesis state. */
|
||||||
|
export interface GenesisStateSDKType {
|
||||||
|
group_seq: Long;
|
||||||
|
groups: GroupInfoSDKType[];
|
||||||
|
group_members: GroupMemberSDKType[];
|
||||||
|
group_policy_seq: Long;
|
||||||
|
group_policies: GroupPolicyInfoSDKType[];
|
||||||
|
proposal_seq: Long;
|
||||||
|
proposals: ProposalSDKType[];
|
||||||
|
votes: VoteSDKType[];
|
||||||
|
}
|
||||||
|
export declare const GenesisState: {
|
||||||
|
encode(message: GenesisState, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): GenesisState;
|
||||||
|
fromPartial(object: DeepPartial<GenesisState>): GenesisState;
|
||||||
|
};
|
420
packages/codegen/dist/cosmos/group/v1/query.d.ts
vendored
Normal file
420
packages/codegen/dist/cosmos/group/v1/query.d.ts
vendored
Normal file
@ -0,0 +1,420 @@
|
|||||||
|
/// <reference types="long" />
|
||||||
|
import { PageRequest, PageRequestSDKType, PageResponse, PageResponseSDKType } from "../../base/query/v1beta1/pagination";
|
||||||
|
import { GroupInfo, GroupInfoSDKType, GroupPolicyInfo, GroupPolicyInfoSDKType, GroupMember, GroupMemberSDKType, Proposal, ProposalSDKType, Vote, VoteSDKType, TallyResult, TallyResultSDKType } from "./types";
|
||||||
|
import { Long, DeepPartial } from "../../../helpers";
|
||||||
|
import * as _m0 from "protobufjs/minimal";
|
||||||
|
/** QueryGroupInfoRequest is the Query/GroupInfo request type. */
|
||||||
|
export interface QueryGroupInfoRequest {
|
||||||
|
/** group_id is the unique ID of the group. */
|
||||||
|
groupId: Long;
|
||||||
|
}
|
||||||
|
/** QueryGroupInfoRequest is the Query/GroupInfo request type. */
|
||||||
|
export interface QueryGroupInfoRequestSDKType {
|
||||||
|
group_id: Long;
|
||||||
|
}
|
||||||
|
/** QueryGroupInfoResponse is the Query/GroupInfo response type. */
|
||||||
|
export interface QueryGroupInfoResponse {
|
||||||
|
/** info is the GroupInfo for the group. */
|
||||||
|
info?: GroupInfo;
|
||||||
|
}
|
||||||
|
/** QueryGroupInfoResponse is the Query/GroupInfo response type. */
|
||||||
|
export interface QueryGroupInfoResponseSDKType {
|
||||||
|
info?: GroupInfoSDKType;
|
||||||
|
}
|
||||||
|
/** QueryGroupPolicyInfoRequest is the Query/GroupPolicyInfo request type. */
|
||||||
|
export interface QueryGroupPolicyInfoRequest {
|
||||||
|
/** address is the account address of the group policy. */
|
||||||
|
address: string;
|
||||||
|
}
|
||||||
|
/** QueryGroupPolicyInfoRequest is the Query/GroupPolicyInfo request type. */
|
||||||
|
export interface QueryGroupPolicyInfoRequestSDKType {
|
||||||
|
address: string;
|
||||||
|
}
|
||||||
|
/** QueryGroupPolicyInfoResponse is the Query/GroupPolicyInfo response type. */
|
||||||
|
export interface QueryGroupPolicyInfoResponse {
|
||||||
|
/** info is the GroupPolicyInfo for the group policy. */
|
||||||
|
info?: GroupPolicyInfo;
|
||||||
|
}
|
||||||
|
/** QueryGroupPolicyInfoResponse is the Query/GroupPolicyInfo response type. */
|
||||||
|
export interface QueryGroupPolicyInfoResponseSDKType {
|
||||||
|
info?: GroupPolicyInfoSDKType;
|
||||||
|
}
|
||||||
|
/** QueryGroupMembersRequest is the Query/GroupMembers request type. */
|
||||||
|
export interface QueryGroupMembersRequest {
|
||||||
|
/** group_id is the unique ID of the group. */
|
||||||
|
groupId: Long;
|
||||||
|
/** pagination defines an optional pagination for the request. */
|
||||||
|
pagination?: PageRequest;
|
||||||
|
}
|
||||||
|
/** QueryGroupMembersRequest is the Query/GroupMembers request type. */
|
||||||
|
export interface QueryGroupMembersRequestSDKType {
|
||||||
|
group_id: Long;
|
||||||
|
pagination?: PageRequestSDKType;
|
||||||
|
}
|
||||||
|
/** QueryGroupMembersResponse is the Query/GroupMembersResponse response type. */
|
||||||
|
export interface QueryGroupMembersResponse {
|
||||||
|
/** members are the members of the group with given group_id. */
|
||||||
|
members: GroupMember[];
|
||||||
|
/** pagination defines the pagination in the response. */
|
||||||
|
pagination?: PageResponse;
|
||||||
|
}
|
||||||
|
/** QueryGroupMembersResponse is the Query/GroupMembersResponse response type. */
|
||||||
|
export interface QueryGroupMembersResponseSDKType {
|
||||||
|
members: GroupMemberSDKType[];
|
||||||
|
pagination?: PageResponseSDKType;
|
||||||
|
}
|
||||||
|
/** QueryGroupsByAdminRequest is the Query/GroupsByAdmin request type. */
|
||||||
|
export interface QueryGroupsByAdminRequest {
|
||||||
|
/** admin is the account address of a group's admin. */
|
||||||
|
admin: string;
|
||||||
|
/** pagination defines an optional pagination for the request. */
|
||||||
|
pagination?: PageRequest;
|
||||||
|
}
|
||||||
|
/** QueryGroupsByAdminRequest is the Query/GroupsByAdmin request type. */
|
||||||
|
export interface QueryGroupsByAdminRequestSDKType {
|
||||||
|
admin: string;
|
||||||
|
pagination?: PageRequestSDKType;
|
||||||
|
}
|
||||||
|
/** QueryGroupsByAdminResponse is the Query/GroupsByAdminResponse response type. */
|
||||||
|
export interface QueryGroupsByAdminResponse {
|
||||||
|
/** groups are the groups info with the provided admin. */
|
||||||
|
groups: GroupInfo[];
|
||||||
|
/** pagination defines the pagination in the response. */
|
||||||
|
pagination?: PageResponse;
|
||||||
|
}
|
||||||
|
/** QueryGroupsByAdminResponse is the Query/GroupsByAdminResponse response type. */
|
||||||
|
export interface QueryGroupsByAdminResponseSDKType {
|
||||||
|
groups: GroupInfoSDKType[];
|
||||||
|
pagination?: PageResponseSDKType;
|
||||||
|
}
|
||||||
|
/** QueryGroupPoliciesByGroupRequest is the Query/GroupPoliciesByGroup request type. */
|
||||||
|
export interface QueryGroupPoliciesByGroupRequest {
|
||||||
|
/** group_id is the unique ID of the group policy's group. */
|
||||||
|
groupId: Long;
|
||||||
|
/** pagination defines an optional pagination for the request. */
|
||||||
|
pagination?: PageRequest;
|
||||||
|
}
|
||||||
|
/** QueryGroupPoliciesByGroupRequest is the Query/GroupPoliciesByGroup request type. */
|
||||||
|
export interface QueryGroupPoliciesByGroupRequestSDKType {
|
||||||
|
group_id: Long;
|
||||||
|
pagination?: PageRequestSDKType;
|
||||||
|
}
|
||||||
|
/** QueryGroupPoliciesByGroupResponse is the Query/GroupPoliciesByGroup response type. */
|
||||||
|
export interface QueryGroupPoliciesByGroupResponse {
|
||||||
|
/** group_policies are the group policies info associated with the provided group. */
|
||||||
|
groupPolicies: GroupPolicyInfo[];
|
||||||
|
/** pagination defines the pagination in the response. */
|
||||||
|
pagination?: PageResponse;
|
||||||
|
}
|
||||||
|
/** QueryGroupPoliciesByGroupResponse is the Query/GroupPoliciesByGroup response type. */
|
||||||
|
export interface QueryGroupPoliciesByGroupResponseSDKType {
|
||||||
|
group_policies: GroupPolicyInfoSDKType[];
|
||||||
|
pagination?: PageResponseSDKType;
|
||||||
|
}
|
||||||
|
/** QueryGroupPoliciesByAdminRequest is the Query/GroupPoliciesByAdmin request type. */
|
||||||
|
export interface QueryGroupPoliciesByAdminRequest {
|
||||||
|
/** admin is the admin address of the group policy. */
|
||||||
|
admin: string;
|
||||||
|
/** pagination defines an optional pagination for the request. */
|
||||||
|
pagination?: PageRequest;
|
||||||
|
}
|
||||||
|
/** QueryGroupPoliciesByAdminRequest is the Query/GroupPoliciesByAdmin request type. */
|
||||||
|
export interface QueryGroupPoliciesByAdminRequestSDKType {
|
||||||
|
admin: string;
|
||||||
|
pagination?: PageRequestSDKType;
|
||||||
|
}
|
||||||
|
/** QueryGroupPoliciesByAdminResponse is the Query/GroupPoliciesByAdmin response type. */
|
||||||
|
export interface QueryGroupPoliciesByAdminResponse {
|
||||||
|
/** group_policies are the group policies info with provided admin. */
|
||||||
|
groupPolicies: GroupPolicyInfo[];
|
||||||
|
/** pagination defines the pagination in the response. */
|
||||||
|
pagination?: PageResponse;
|
||||||
|
}
|
||||||
|
/** QueryGroupPoliciesByAdminResponse is the Query/GroupPoliciesByAdmin response type. */
|
||||||
|
export interface QueryGroupPoliciesByAdminResponseSDKType {
|
||||||
|
group_policies: GroupPolicyInfoSDKType[];
|
||||||
|
pagination?: PageResponseSDKType;
|
||||||
|
}
|
||||||
|
/** QueryProposalRequest is the Query/Proposal request type. */
|
||||||
|
export interface QueryProposalRequest {
|
||||||
|
/** proposal_id is the unique ID of a proposal. */
|
||||||
|
proposalId: Long;
|
||||||
|
}
|
||||||
|
/** QueryProposalRequest is the Query/Proposal request type. */
|
||||||
|
export interface QueryProposalRequestSDKType {
|
||||||
|
proposal_id: Long;
|
||||||
|
}
|
||||||
|
/** QueryProposalResponse is the Query/Proposal response type. */
|
||||||
|
export interface QueryProposalResponse {
|
||||||
|
/** proposal is the proposal info. */
|
||||||
|
proposal?: Proposal;
|
||||||
|
}
|
||||||
|
/** QueryProposalResponse is the Query/Proposal response type. */
|
||||||
|
export interface QueryProposalResponseSDKType {
|
||||||
|
proposal?: ProposalSDKType;
|
||||||
|
}
|
||||||
|
/** QueryProposalsByGroupPolicyRequest is the Query/ProposalByGroupPolicy request type. */
|
||||||
|
export interface QueryProposalsByGroupPolicyRequest {
|
||||||
|
/** address is the account address of the group policy related to proposals. */
|
||||||
|
address: string;
|
||||||
|
/** pagination defines an optional pagination for the request. */
|
||||||
|
pagination?: PageRequest;
|
||||||
|
}
|
||||||
|
/** QueryProposalsByGroupPolicyRequest is the Query/ProposalByGroupPolicy request type. */
|
||||||
|
export interface QueryProposalsByGroupPolicyRequestSDKType {
|
||||||
|
address: string;
|
||||||
|
pagination?: PageRequestSDKType;
|
||||||
|
}
|
||||||
|
/** QueryProposalsByGroupPolicyResponse is the Query/ProposalByGroupPolicy response type. */
|
||||||
|
export interface QueryProposalsByGroupPolicyResponse {
|
||||||
|
/** proposals are the proposals with given group policy. */
|
||||||
|
proposals: Proposal[];
|
||||||
|
/** pagination defines the pagination in the response. */
|
||||||
|
pagination?: PageResponse;
|
||||||
|
}
|
||||||
|
/** QueryProposalsByGroupPolicyResponse is the Query/ProposalByGroupPolicy response type. */
|
||||||
|
export interface QueryProposalsByGroupPolicyResponseSDKType {
|
||||||
|
proposals: ProposalSDKType[];
|
||||||
|
pagination?: PageResponseSDKType;
|
||||||
|
}
|
||||||
|
/** QueryVoteByProposalVoterRequest is the Query/VoteByProposalVoter request type. */
|
||||||
|
export interface QueryVoteByProposalVoterRequest {
|
||||||
|
/** proposal_id is the unique ID of a proposal. */
|
||||||
|
proposalId: Long;
|
||||||
|
/** voter is a proposal voter account address. */
|
||||||
|
voter: string;
|
||||||
|
}
|
||||||
|
/** QueryVoteByProposalVoterRequest is the Query/VoteByProposalVoter request type. */
|
||||||
|
export interface QueryVoteByProposalVoterRequestSDKType {
|
||||||
|
proposal_id: Long;
|
||||||
|
voter: string;
|
||||||
|
}
|
||||||
|
/** QueryVoteByProposalVoterResponse is the Query/VoteByProposalVoter response type. */
|
||||||
|
export interface QueryVoteByProposalVoterResponse {
|
||||||
|
/** vote is the vote with given proposal_id and voter. */
|
||||||
|
vote?: Vote;
|
||||||
|
}
|
||||||
|
/** QueryVoteByProposalVoterResponse is the Query/VoteByProposalVoter response type. */
|
||||||
|
export interface QueryVoteByProposalVoterResponseSDKType {
|
||||||
|
vote?: VoteSDKType;
|
||||||
|
}
|
||||||
|
/** QueryVotesByProposalRequest is the Query/VotesByProposal request type. */
|
||||||
|
export interface QueryVotesByProposalRequest {
|
||||||
|
/** proposal_id is the unique ID of a proposal. */
|
||||||
|
proposalId: Long;
|
||||||
|
/** pagination defines an optional pagination for the request. */
|
||||||
|
pagination?: PageRequest;
|
||||||
|
}
|
||||||
|
/** QueryVotesByProposalRequest is the Query/VotesByProposal request type. */
|
||||||
|
export interface QueryVotesByProposalRequestSDKType {
|
||||||
|
proposal_id: Long;
|
||||||
|
pagination?: PageRequestSDKType;
|
||||||
|
}
|
||||||
|
/** QueryVotesByProposalResponse is the Query/VotesByProposal response type. */
|
||||||
|
export interface QueryVotesByProposalResponse {
|
||||||
|
/** votes are the list of votes for given proposal_id. */
|
||||||
|
votes: Vote[];
|
||||||
|
/** pagination defines the pagination in the response. */
|
||||||
|
pagination?: PageResponse;
|
||||||
|
}
|
||||||
|
/** QueryVotesByProposalResponse is the Query/VotesByProposal response type. */
|
||||||
|
export interface QueryVotesByProposalResponseSDKType {
|
||||||
|
votes: VoteSDKType[];
|
||||||
|
pagination?: PageResponseSDKType;
|
||||||
|
}
|
||||||
|
/** QueryVotesByVoterRequest is the Query/VotesByVoter request type. */
|
||||||
|
export interface QueryVotesByVoterRequest {
|
||||||
|
/** voter is a proposal voter account address. */
|
||||||
|
voter: string;
|
||||||
|
/** pagination defines an optional pagination for the request. */
|
||||||
|
pagination?: PageRequest;
|
||||||
|
}
|
||||||
|
/** QueryVotesByVoterRequest is the Query/VotesByVoter request type. */
|
||||||
|
export interface QueryVotesByVoterRequestSDKType {
|
||||||
|
voter: string;
|
||||||
|
pagination?: PageRequestSDKType;
|
||||||
|
}
|
||||||
|
/** QueryVotesByVoterResponse is the Query/VotesByVoter response type. */
|
||||||
|
export interface QueryVotesByVoterResponse {
|
||||||
|
/** votes are the list of votes by given voter. */
|
||||||
|
votes: Vote[];
|
||||||
|
/** pagination defines the pagination in the response. */
|
||||||
|
pagination?: PageResponse;
|
||||||
|
}
|
||||||
|
/** QueryVotesByVoterResponse is the Query/VotesByVoter response type. */
|
||||||
|
export interface QueryVotesByVoterResponseSDKType {
|
||||||
|
votes: VoteSDKType[];
|
||||||
|
pagination?: PageResponseSDKType;
|
||||||
|
}
|
||||||
|
/** QueryGroupsByMemberRequest is the Query/GroupsByMember request type. */
|
||||||
|
export interface QueryGroupsByMemberRequest {
|
||||||
|
/** address is the group member address. */
|
||||||
|
address: string;
|
||||||
|
/** pagination defines an optional pagination for the request. */
|
||||||
|
pagination?: PageRequest;
|
||||||
|
}
|
||||||
|
/** QueryGroupsByMemberRequest is the Query/GroupsByMember request type. */
|
||||||
|
export interface QueryGroupsByMemberRequestSDKType {
|
||||||
|
address: string;
|
||||||
|
pagination?: PageRequestSDKType;
|
||||||
|
}
|
||||||
|
/** QueryGroupsByMemberResponse is the Query/GroupsByMember response type. */
|
||||||
|
export interface QueryGroupsByMemberResponse {
|
||||||
|
/** groups are the groups info with the provided group member. */
|
||||||
|
groups: GroupInfo[];
|
||||||
|
/** pagination defines the pagination in the response. */
|
||||||
|
pagination?: PageResponse;
|
||||||
|
}
|
||||||
|
/** QueryGroupsByMemberResponse is the Query/GroupsByMember response type. */
|
||||||
|
export interface QueryGroupsByMemberResponseSDKType {
|
||||||
|
groups: GroupInfoSDKType[];
|
||||||
|
pagination?: PageResponseSDKType;
|
||||||
|
}
|
||||||
|
/** QueryTallyResultRequest is the Query/TallyResult request type. */
|
||||||
|
export interface QueryTallyResultRequest {
|
||||||
|
/** proposal_id is the unique id of a proposal. */
|
||||||
|
proposalId: Long;
|
||||||
|
}
|
||||||
|
/** QueryTallyResultRequest is the Query/TallyResult request type. */
|
||||||
|
export interface QueryTallyResultRequestSDKType {
|
||||||
|
proposal_id: Long;
|
||||||
|
}
|
||||||
|
/** QueryTallyResultResponse is the Query/TallyResult response type. */
|
||||||
|
export interface QueryTallyResultResponse {
|
||||||
|
/** tally defines the requested tally. */
|
||||||
|
tally?: TallyResult;
|
||||||
|
}
|
||||||
|
/** QueryTallyResultResponse is the Query/TallyResult response type. */
|
||||||
|
export interface QueryTallyResultResponseSDKType {
|
||||||
|
tally?: TallyResultSDKType;
|
||||||
|
}
|
||||||
|
export declare const QueryGroupInfoRequest: {
|
||||||
|
encode(message: QueryGroupInfoRequest, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryGroupInfoRequest;
|
||||||
|
fromPartial(object: DeepPartial<QueryGroupInfoRequest>): QueryGroupInfoRequest;
|
||||||
|
};
|
||||||
|
export declare const QueryGroupInfoResponse: {
|
||||||
|
encode(message: QueryGroupInfoResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryGroupInfoResponse;
|
||||||
|
fromPartial(object: DeepPartial<QueryGroupInfoResponse>): QueryGroupInfoResponse;
|
||||||
|
};
|
||||||
|
export declare const QueryGroupPolicyInfoRequest: {
|
||||||
|
encode(message: QueryGroupPolicyInfoRequest, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryGroupPolicyInfoRequest;
|
||||||
|
fromPartial(object: DeepPartial<QueryGroupPolicyInfoRequest>): QueryGroupPolicyInfoRequest;
|
||||||
|
};
|
||||||
|
export declare const QueryGroupPolicyInfoResponse: {
|
||||||
|
encode(message: QueryGroupPolicyInfoResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryGroupPolicyInfoResponse;
|
||||||
|
fromPartial(object: DeepPartial<QueryGroupPolicyInfoResponse>): QueryGroupPolicyInfoResponse;
|
||||||
|
};
|
||||||
|
export declare const QueryGroupMembersRequest: {
|
||||||
|
encode(message: QueryGroupMembersRequest, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryGroupMembersRequest;
|
||||||
|
fromPartial(object: DeepPartial<QueryGroupMembersRequest>): QueryGroupMembersRequest;
|
||||||
|
};
|
||||||
|
export declare const QueryGroupMembersResponse: {
|
||||||
|
encode(message: QueryGroupMembersResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryGroupMembersResponse;
|
||||||
|
fromPartial(object: DeepPartial<QueryGroupMembersResponse>): QueryGroupMembersResponse;
|
||||||
|
};
|
||||||
|
export declare const QueryGroupsByAdminRequest: {
|
||||||
|
encode(message: QueryGroupsByAdminRequest, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryGroupsByAdminRequest;
|
||||||
|
fromPartial(object: DeepPartial<QueryGroupsByAdminRequest>): QueryGroupsByAdminRequest;
|
||||||
|
};
|
||||||
|
export declare const QueryGroupsByAdminResponse: {
|
||||||
|
encode(message: QueryGroupsByAdminResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryGroupsByAdminResponse;
|
||||||
|
fromPartial(object: DeepPartial<QueryGroupsByAdminResponse>): QueryGroupsByAdminResponse;
|
||||||
|
};
|
||||||
|
export declare const QueryGroupPoliciesByGroupRequest: {
|
||||||
|
encode(message: QueryGroupPoliciesByGroupRequest, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryGroupPoliciesByGroupRequest;
|
||||||
|
fromPartial(object: DeepPartial<QueryGroupPoliciesByGroupRequest>): QueryGroupPoliciesByGroupRequest;
|
||||||
|
};
|
||||||
|
export declare const QueryGroupPoliciesByGroupResponse: {
|
||||||
|
encode(message: QueryGroupPoliciesByGroupResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryGroupPoliciesByGroupResponse;
|
||||||
|
fromPartial(object: DeepPartial<QueryGroupPoliciesByGroupResponse>): QueryGroupPoliciesByGroupResponse;
|
||||||
|
};
|
||||||
|
export declare const QueryGroupPoliciesByAdminRequest: {
|
||||||
|
encode(message: QueryGroupPoliciesByAdminRequest, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryGroupPoliciesByAdminRequest;
|
||||||
|
fromPartial(object: DeepPartial<QueryGroupPoliciesByAdminRequest>): QueryGroupPoliciesByAdminRequest;
|
||||||
|
};
|
||||||
|
export declare const QueryGroupPoliciesByAdminResponse: {
|
||||||
|
encode(message: QueryGroupPoliciesByAdminResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryGroupPoliciesByAdminResponse;
|
||||||
|
fromPartial(object: DeepPartial<QueryGroupPoliciesByAdminResponse>): QueryGroupPoliciesByAdminResponse;
|
||||||
|
};
|
||||||
|
export declare const QueryProposalRequest: {
|
||||||
|
encode(message: QueryProposalRequest, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryProposalRequest;
|
||||||
|
fromPartial(object: DeepPartial<QueryProposalRequest>): QueryProposalRequest;
|
||||||
|
};
|
||||||
|
export declare const QueryProposalResponse: {
|
||||||
|
encode(message: QueryProposalResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryProposalResponse;
|
||||||
|
fromPartial(object: DeepPartial<QueryProposalResponse>): QueryProposalResponse;
|
||||||
|
};
|
||||||
|
export declare const QueryProposalsByGroupPolicyRequest: {
|
||||||
|
encode(message: QueryProposalsByGroupPolicyRequest, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryProposalsByGroupPolicyRequest;
|
||||||
|
fromPartial(object: DeepPartial<QueryProposalsByGroupPolicyRequest>): QueryProposalsByGroupPolicyRequest;
|
||||||
|
};
|
||||||
|
export declare const QueryProposalsByGroupPolicyResponse: {
|
||||||
|
encode(message: QueryProposalsByGroupPolicyResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryProposalsByGroupPolicyResponse;
|
||||||
|
fromPartial(object: DeepPartial<QueryProposalsByGroupPolicyResponse>): QueryProposalsByGroupPolicyResponse;
|
||||||
|
};
|
||||||
|
export declare const QueryVoteByProposalVoterRequest: {
|
||||||
|
encode(message: QueryVoteByProposalVoterRequest, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryVoteByProposalVoterRequest;
|
||||||
|
fromPartial(object: DeepPartial<QueryVoteByProposalVoterRequest>): QueryVoteByProposalVoterRequest;
|
||||||
|
};
|
||||||
|
export declare const QueryVoteByProposalVoterResponse: {
|
||||||
|
encode(message: QueryVoteByProposalVoterResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryVoteByProposalVoterResponse;
|
||||||
|
fromPartial(object: DeepPartial<QueryVoteByProposalVoterResponse>): QueryVoteByProposalVoterResponse;
|
||||||
|
};
|
||||||
|
export declare const QueryVotesByProposalRequest: {
|
||||||
|
encode(message: QueryVotesByProposalRequest, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryVotesByProposalRequest;
|
||||||
|
fromPartial(object: DeepPartial<QueryVotesByProposalRequest>): QueryVotesByProposalRequest;
|
||||||
|
};
|
||||||
|
export declare const QueryVotesByProposalResponse: {
|
||||||
|
encode(message: QueryVotesByProposalResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryVotesByProposalResponse;
|
||||||
|
fromPartial(object: DeepPartial<QueryVotesByProposalResponse>): QueryVotesByProposalResponse;
|
||||||
|
};
|
||||||
|
export declare const QueryVotesByVoterRequest: {
|
||||||
|
encode(message: QueryVotesByVoterRequest, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryVotesByVoterRequest;
|
||||||
|
fromPartial(object: DeepPartial<QueryVotesByVoterRequest>): QueryVotesByVoterRequest;
|
||||||
|
};
|
||||||
|
export declare const QueryVotesByVoterResponse: {
|
||||||
|
encode(message: QueryVotesByVoterResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryVotesByVoterResponse;
|
||||||
|
fromPartial(object: DeepPartial<QueryVotesByVoterResponse>): QueryVotesByVoterResponse;
|
||||||
|
};
|
||||||
|
export declare const QueryGroupsByMemberRequest: {
|
||||||
|
encode(message: QueryGroupsByMemberRequest, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryGroupsByMemberRequest;
|
||||||
|
fromPartial(object: DeepPartial<QueryGroupsByMemberRequest>): QueryGroupsByMemberRequest;
|
||||||
|
};
|
||||||
|
export declare const QueryGroupsByMemberResponse: {
|
||||||
|
encode(message: QueryGroupsByMemberResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryGroupsByMemberResponse;
|
||||||
|
fromPartial(object: DeepPartial<QueryGroupsByMemberResponse>): QueryGroupsByMemberResponse;
|
||||||
|
};
|
||||||
|
export declare const QueryTallyResultRequest: {
|
||||||
|
encode(message: QueryTallyResultRequest, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryTallyResultRequest;
|
||||||
|
fromPartial(object: DeepPartial<QueryTallyResultRequest>): QueryTallyResultRequest;
|
||||||
|
};
|
||||||
|
export declare const QueryTallyResultResponse: {
|
||||||
|
encode(message: QueryTallyResultResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryTallyResultResponse;
|
||||||
|
fromPartial(object: DeepPartial<QueryTallyResultResponse>): QueryTallyResultResponse;
|
||||||
|
};
|
21
packages/codegen/dist/cosmos/group/v1/query.lcd.d.ts
vendored
Normal file
21
packages/codegen/dist/cosmos/group/v1/query.lcd.d.ts
vendored
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
import { LCDClient } from "@osmonauts/lcd";
|
||||||
|
import { QueryGroupInfoRequest, QueryGroupInfoResponseSDKType, QueryGroupPolicyInfoRequest, QueryGroupPolicyInfoResponseSDKType, QueryGroupMembersRequest, QueryGroupMembersResponseSDKType, QueryGroupsByAdminRequest, QueryGroupsByAdminResponseSDKType, QueryGroupPoliciesByGroupRequest, QueryGroupPoliciesByGroupResponseSDKType, QueryGroupPoliciesByAdminRequest, QueryGroupPoliciesByAdminResponseSDKType, QueryProposalRequest, QueryProposalResponseSDKType, QueryProposalsByGroupPolicyRequest, QueryProposalsByGroupPolicyResponseSDKType, QueryVoteByProposalVoterRequest, QueryVoteByProposalVoterResponseSDKType, QueryVotesByProposalRequest, QueryVotesByProposalResponseSDKType, QueryVotesByVoterRequest, QueryVotesByVoterResponseSDKType, QueryGroupsByMemberRequest, QueryGroupsByMemberResponseSDKType, QueryTallyResultRequest, QueryTallyResultResponseSDKType } from "./query";
|
||||||
|
export declare class LCDQueryClient {
|
||||||
|
req: LCDClient;
|
||||||
|
constructor({ requestClient }: {
|
||||||
|
requestClient: LCDClient;
|
||||||
|
});
|
||||||
|
groupInfo(params: QueryGroupInfoRequest): Promise<QueryGroupInfoResponseSDKType>;
|
||||||
|
groupPolicyInfo(params: QueryGroupPolicyInfoRequest): Promise<QueryGroupPolicyInfoResponseSDKType>;
|
||||||
|
groupMembers(params: QueryGroupMembersRequest): Promise<QueryGroupMembersResponseSDKType>;
|
||||||
|
groupsByAdmin(params: QueryGroupsByAdminRequest): Promise<QueryGroupsByAdminResponseSDKType>;
|
||||||
|
groupPoliciesByGroup(params: QueryGroupPoliciesByGroupRequest): Promise<QueryGroupPoliciesByGroupResponseSDKType>;
|
||||||
|
groupPoliciesByAdmin(params: QueryGroupPoliciesByAdminRequest): Promise<QueryGroupPoliciesByAdminResponseSDKType>;
|
||||||
|
proposal(params: QueryProposalRequest): Promise<QueryProposalResponseSDKType>;
|
||||||
|
proposalsByGroupPolicy(params: QueryProposalsByGroupPolicyRequest): Promise<QueryProposalsByGroupPolicyResponseSDKType>;
|
||||||
|
voteByProposalVoter(params: QueryVoteByProposalVoterRequest): Promise<QueryVoteByProposalVoterResponseSDKType>;
|
||||||
|
votesByProposal(params: QueryVotesByProposalRequest): Promise<QueryVotesByProposalResponseSDKType>;
|
||||||
|
votesByVoter(params: QueryVotesByVoterRequest): Promise<QueryVotesByVoterResponseSDKType>;
|
||||||
|
groupsByMember(params: QueryGroupsByMemberRequest): Promise<QueryGroupsByMemberResponseSDKType>;
|
||||||
|
tallyResult(params: QueryTallyResultRequest): Promise<QueryTallyResultResponseSDKType>;
|
||||||
|
}
|
64
packages/codegen/dist/cosmos/group/v1/query.rpc.Query.d.ts
vendored
Normal file
64
packages/codegen/dist/cosmos/group/v1/query.rpc.Query.d.ts
vendored
Normal file
@ -0,0 +1,64 @@
|
|||||||
|
import { Rpc } from "../../../helpers";
|
||||||
|
import { QueryClient } from "@cosmjs/stargate";
|
||||||
|
import { QueryGroupInfoRequest, QueryGroupInfoResponse, QueryGroupPolicyInfoRequest, QueryGroupPolicyInfoResponse, QueryGroupMembersRequest, QueryGroupMembersResponse, QueryGroupsByAdminRequest, QueryGroupsByAdminResponse, QueryGroupPoliciesByGroupRequest, QueryGroupPoliciesByGroupResponse, QueryGroupPoliciesByAdminRequest, QueryGroupPoliciesByAdminResponse, QueryProposalRequest, QueryProposalResponse, QueryProposalsByGroupPolicyRequest, QueryProposalsByGroupPolicyResponse, QueryVoteByProposalVoterRequest, QueryVoteByProposalVoterResponse, QueryVotesByProposalRequest, QueryVotesByProposalResponse, QueryVotesByVoterRequest, QueryVotesByVoterResponse, QueryGroupsByMemberRequest, QueryGroupsByMemberResponse, QueryTallyResultRequest, QueryTallyResultResponse } from "./query";
|
||||||
|
/** Query is the cosmos.group.v1 Query service. */
|
||||||
|
export interface Query {
|
||||||
|
/** GroupInfo queries group info based on group id. */
|
||||||
|
groupInfo(request: QueryGroupInfoRequest): Promise<QueryGroupInfoResponse>;
|
||||||
|
/** GroupPolicyInfo queries group policy info based on account address of group policy. */
|
||||||
|
groupPolicyInfo(request: QueryGroupPolicyInfoRequest): Promise<QueryGroupPolicyInfoResponse>;
|
||||||
|
/** GroupMembers queries members of a group */
|
||||||
|
groupMembers(request: QueryGroupMembersRequest): Promise<QueryGroupMembersResponse>;
|
||||||
|
/** GroupsByAdmin queries groups by admin address. */
|
||||||
|
groupsByAdmin(request: QueryGroupsByAdminRequest): Promise<QueryGroupsByAdminResponse>;
|
||||||
|
/** GroupPoliciesByGroup queries group policies by group id. */
|
||||||
|
groupPoliciesByGroup(request: QueryGroupPoliciesByGroupRequest): Promise<QueryGroupPoliciesByGroupResponse>;
|
||||||
|
/** GroupsByAdmin queries group policies by admin address. */
|
||||||
|
groupPoliciesByAdmin(request: QueryGroupPoliciesByAdminRequest): Promise<QueryGroupPoliciesByAdminResponse>;
|
||||||
|
/** Proposal queries a proposal based on proposal id. */
|
||||||
|
proposal(request: QueryProposalRequest): Promise<QueryProposalResponse>;
|
||||||
|
/** ProposalsByGroupPolicy queries proposals based on account address of group policy. */
|
||||||
|
proposalsByGroupPolicy(request: QueryProposalsByGroupPolicyRequest): Promise<QueryProposalsByGroupPolicyResponse>;
|
||||||
|
/** VoteByProposalVoter queries a vote by proposal id and voter. */
|
||||||
|
voteByProposalVoter(request: QueryVoteByProposalVoterRequest): Promise<QueryVoteByProposalVoterResponse>;
|
||||||
|
/** VotesByProposal queries a vote by proposal. */
|
||||||
|
votesByProposal(request: QueryVotesByProposalRequest): Promise<QueryVotesByProposalResponse>;
|
||||||
|
/** VotesByVoter queries a vote by voter. */
|
||||||
|
votesByVoter(request: QueryVotesByVoterRequest): Promise<QueryVotesByVoterResponse>;
|
||||||
|
/** GroupsByMember queries groups by member address. */
|
||||||
|
groupsByMember(request: QueryGroupsByMemberRequest): Promise<QueryGroupsByMemberResponse>;
|
||||||
|
/** TallyResult queries the tally of a proposal votes. */
|
||||||
|
tallyResult(request: QueryTallyResultRequest): Promise<QueryTallyResultResponse>;
|
||||||
|
}
|
||||||
|
export declare class QueryClientImpl implements Query {
|
||||||
|
private readonly rpc;
|
||||||
|
constructor(rpc: Rpc);
|
||||||
|
groupInfo(request: QueryGroupInfoRequest): Promise<QueryGroupInfoResponse>;
|
||||||
|
groupPolicyInfo(request: QueryGroupPolicyInfoRequest): Promise<QueryGroupPolicyInfoResponse>;
|
||||||
|
groupMembers(request: QueryGroupMembersRequest): Promise<QueryGroupMembersResponse>;
|
||||||
|
groupsByAdmin(request: QueryGroupsByAdminRequest): Promise<QueryGroupsByAdminResponse>;
|
||||||
|
groupPoliciesByGroup(request: QueryGroupPoliciesByGroupRequest): Promise<QueryGroupPoliciesByGroupResponse>;
|
||||||
|
groupPoliciesByAdmin(request: QueryGroupPoliciesByAdminRequest): Promise<QueryGroupPoliciesByAdminResponse>;
|
||||||
|
proposal(request: QueryProposalRequest): Promise<QueryProposalResponse>;
|
||||||
|
proposalsByGroupPolicy(request: QueryProposalsByGroupPolicyRequest): Promise<QueryProposalsByGroupPolicyResponse>;
|
||||||
|
voteByProposalVoter(request: QueryVoteByProposalVoterRequest): Promise<QueryVoteByProposalVoterResponse>;
|
||||||
|
votesByProposal(request: QueryVotesByProposalRequest): Promise<QueryVotesByProposalResponse>;
|
||||||
|
votesByVoter(request: QueryVotesByVoterRequest): Promise<QueryVotesByVoterResponse>;
|
||||||
|
groupsByMember(request: QueryGroupsByMemberRequest): Promise<QueryGroupsByMemberResponse>;
|
||||||
|
tallyResult(request: QueryTallyResultRequest): Promise<QueryTallyResultResponse>;
|
||||||
|
}
|
||||||
|
export declare const createRpcQueryExtension: (base: QueryClient) => {
|
||||||
|
groupInfo(request: QueryGroupInfoRequest): Promise<QueryGroupInfoResponse>;
|
||||||
|
groupPolicyInfo(request: QueryGroupPolicyInfoRequest): Promise<QueryGroupPolicyInfoResponse>;
|
||||||
|
groupMembers(request: QueryGroupMembersRequest): Promise<QueryGroupMembersResponse>;
|
||||||
|
groupsByAdmin(request: QueryGroupsByAdminRequest): Promise<QueryGroupsByAdminResponse>;
|
||||||
|
groupPoliciesByGroup(request: QueryGroupPoliciesByGroupRequest): Promise<QueryGroupPoliciesByGroupResponse>;
|
||||||
|
groupPoliciesByAdmin(request: QueryGroupPoliciesByAdminRequest): Promise<QueryGroupPoliciesByAdminResponse>;
|
||||||
|
proposal(request: QueryProposalRequest): Promise<QueryProposalResponse>;
|
||||||
|
proposalsByGroupPolicy(request: QueryProposalsByGroupPolicyRequest): Promise<QueryProposalsByGroupPolicyResponse>;
|
||||||
|
voteByProposalVoter(request: QueryVoteByProposalVoterRequest): Promise<QueryVoteByProposalVoterResponse>;
|
||||||
|
votesByProposal(request: QueryVotesByProposalRequest): Promise<QueryVotesByProposalResponse>;
|
||||||
|
votesByVoter(request: QueryVotesByVoterRequest): Promise<QueryVotesByVoterResponse>;
|
||||||
|
groupsByMember(request: QueryGroupsByMemberRequest): Promise<QueryGroupsByMemberResponse>;
|
||||||
|
tallyResult(request: QueryTallyResultRequest): Promise<QueryTallyResultResponse>;
|
||||||
|
};
|
501
packages/codegen/dist/cosmos/group/v1/tx.d.ts
vendored
Normal file
501
packages/codegen/dist/cosmos/group/v1/tx.d.ts
vendored
Normal file
@ -0,0 +1,501 @@
|
|||||||
|
/// <reference types="long" />
|
||||||
|
import { Member, MemberSDKType, VoteOption } from "./types";
|
||||||
|
import { Any, AnySDKType } from "../../../google/protobuf/any";
|
||||||
|
import * as _m0 from "protobufjs/minimal";
|
||||||
|
import { DeepPartial, Long } from "../../../helpers";
|
||||||
|
/** Exec defines modes of execution of a proposal on creation or on new vote. */
|
||||||
|
export declare enum Exec {
|
||||||
|
/**
|
||||||
|
* EXEC_UNSPECIFIED - An empty value means that there should be a separate
|
||||||
|
* MsgExec request for the proposal to execute.
|
||||||
|
*/
|
||||||
|
EXEC_UNSPECIFIED = 0,
|
||||||
|
/**
|
||||||
|
* EXEC_TRY - Try to execute the proposal immediately.
|
||||||
|
* If the proposal is not allowed per the DecisionPolicy,
|
||||||
|
* the proposal will still be open and could
|
||||||
|
* be executed at a later point.
|
||||||
|
*/
|
||||||
|
EXEC_TRY = 1,
|
||||||
|
UNRECOGNIZED = -1
|
||||||
|
}
|
||||||
|
export declare const ExecSDKType: typeof Exec;
|
||||||
|
export declare function execFromJSON(object: any): Exec;
|
||||||
|
export declare function execToJSON(object: Exec): string;
|
||||||
|
/** MsgCreateGroup is the Msg/CreateGroup request type. */
|
||||||
|
export interface MsgCreateGroup {
|
||||||
|
/** admin is the account address of the group admin. */
|
||||||
|
admin: string;
|
||||||
|
/** members defines the group members. */
|
||||||
|
members: Member[];
|
||||||
|
/** metadata is any arbitrary metadata to attached to the group. */
|
||||||
|
metadata: string;
|
||||||
|
}
|
||||||
|
/** MsgCreateGroup is the Msg/CreateGroup request type. */
|
||||||
|
export interface MsgCreateGroupSDKType {
|
||||||
|
admin: string;
|
||||||
|
members: MemberSDKType[];
|
||||||
|
metadata: string;
|
||||||
|
}
|
||||||
|
/** MsgCreateGroupResponse is the Msg/CreateGroup response type. */
|
||||||
|
export interface MsgCreateGroupResponse {
|
||||||
|
/** group_id is the unique ID of the newly created group. */
|
||||||
|
groupId: Long;
|
||||||
|
}
|
||||||
|
/** MsgCreateGroupResponse is the Msg/CreateGroup response type. */
|
||||||
|
export interface MsgCreateGroupResponseSDKType {
|
||||||
|
group_id: Long;
|
||||||
|
}
|
||||||
|
/** MsgUpdateGroupMembers is the Msg/UpdateGroupMembers request type. */
|
||||||
|
export interface MsgUpdateGroupMembers {
|
||||||
|
/** admin is the account address of the group admin. */
|
||||||
|
admin: string;
|
||||||
|
/** group_id is the unique ID of the group. */
|
||||||
|
groupId: Long;
|
||||||
|
/**
|
||||||
|
* member_updates is the list of members to update,
|
||||||
|
* set weight to 0 to remove a member.
|
||||||
|
*/
|
||||||
|
memberUpdates: Member[];
|
||||||
|
}
|
||||||
|
/** MsgUpdateGroupMembers is the Msg/UpdateGroupMembers request type. */
|
||||||
|
export interface MsgUpdateGroupMembersSDKType {
|
||||||
|
admin: string;
|
||||||
|
group_id: Long;
|
||||||
|
member_updates: MemberSDKType[];
|
||||||
|
}
|
||||||
|
/** MsgUpdateGroupMembersResponse is the Msg/UpdateGroupMembers response type. */
|
||||||
|
export interface MsgUpdateGroupMembersResponse {
|
||||||
|
}
|
||||||
|
/** MsgUpdateGroupMembersResponse is the Msg/UpdateGroupMembers response type. */
|
||||||
|
export interface MsgUpdateGroupMembersResponseSDKType {
|
||||||
|
}
|
||||||
|
/** MsgUpdateGroupAdmin is the Msg/UpdateGroupAdmin request type. */
|
||||||
|
export interface MsgUpdateGroupAdmin {
|
||||||
|
/** admin is the current account address of the group admin. */
|
||||||
|
admin: string;
|
||||||
|
/** group_id is the unique ID of the group. */
|
||||||
|
groupId: Long;
|
||||||
|
/** new_admin is the group new admin account address. */
|
||||||
|
newAdmin: string;
|
||||||
|
}
|
||||||
|
/** MsgUpdateGroupAdmin is the Msg/UpdateGroupAdmin request type. */
|
||||||
|
export interface MsgUpdateGroupAdminSDKType {
|
||||||
|
admin: string;
|
||||||
|
group_id: Long;
|
||||||
|
new_admin: string;
|
||||||
|
}
|
||||||
|
/** MsgUpdateGroupAdminResponse is the Msg/UpdateGroupAdmin response type. */
|
||||||
|
export interface MsgUpdateGroupAdminResponse {
|
||||||
|
}
|
||||||
|
/** MsgUpdateGroupAdminResponse is the Msg/UpdateGroupAdmin response type. */
|
||||||
|
export interface MsgUpdateGroupAdminResponseSDKType {
|
||||||
|
}
|
||||||
|
/** MsgUpdateGroupMetadata is the Msg/UpdateGroupMetadata request type. */
|
||||||
|
export interface MsgUpdateGroupMetadata {
|
||||||
|
/** admin is the account address of the group admin. */
|
||||||
|
admin: string;
|
||||||
|
/** group_id is the unique ID of the group. */
|
||||||
|
groupId: Long;
|
||||||
|
/** metadata is the updated group's metadata. */
|
||||||
|
metadata: string;
|
||||||
|
}
|
||||||
|
/** MsgUpdateGroupMetadata is the Msg/UpdateGroupMetadata request type. */
|
||||||
|
export interface MsgUpdateGroupMetadataSDKType {
|
||||||
|
admin: string;
|
||||||
|
group_id: Long;
|
||||||
|
metadata: string;
|
||||||
|
}
|
||||||
|
/** MsgUpdateGroupMetadataResponse is the Msg/UpdateGroupMetadata response type. */
|
||||||
|
export interface MsgUpdateGroupMetadataResponse {
|
||||||
|
}
|
||||||
|
/** MsgUpdateGroupMetadataResponse is the Msg/UpdateGroupMetadata response type. */
|
||||||
|
export interface MsgUpdateGroupMetadataResponseSDKType {
|
||||||
|
}
|
||||||
|
/** MsgCreateGroupPolicy is the Msg/CreateGroupPolicy request type. */
|
||||||
|
export interface MsgCreateGroupPolicy {
|
||||||
|
/** admin is the account address of the group admin. */
|
||||||
|
admin: string;
|
||||||
|
/** group_id is the unique ID of the group. */
|
||||||
|
groupId: Long;
|
||||||
|
/** metadata is any arbitrary metadata attached to the group policy. */
|
||||||
|
metadata: string;
|
||||||
|
/** decision_policy specifies the group policy's decision policy. */
|
||||||
|
decisionPolicy?: Any;
|
||||||
|
}
|
||||||
|
/** MsgCreateGroupPolicy is the Msg/CreateGroupPolicy request type. */
|
||||||
|
export interface MsgCreateGroupPolicySDKType {
|
||||||
|
admin: string;
|
||||||
|
group_id: Long;
|
||||||
|
metadata: string;
|
||||||
|
decision_policy?: AnySDKType;
|
||||||
|
}
|
||||||
|
/** MsgCreateGroupPolicyResponse is the Msg/CreateGroupPolicy response type. */
|
||||||
|
export interface MsgCreateGroupPolicyResponse {
|
||||||
|
/** address is the account address of the newly created group policy. */
|
||||||
|
address: string;
|
||||||
|
}
|
||||||
|
/** MsgCreateGroupPolicyResponse is the Msg/CreateGroupPolicy response type. */
|
||||||
|
export interface MsgCreateGroupPolicyResponseSDKType {
|
||||||
|
address: string;
|
||||||
|
}
|
||||||
|
/** MsgUpdateGroupPolicyAdmin is the Msg/UpdateGroupPolicyAdmin request type. */
|
||||||
|
export interface MsgUpdateGroupPolicyAdmin {
|
||||||
|
/** admin is the account address of the group admin. */
|
||||||
|
admin: string;
|
||||||
|
/** address is the account address of the group policy. */
|
||||||
|
address: string;
|
||||||
|
/** new_admin is the new group policy admin. */
|
||||||
|
newAdmin: string;
|
||||||
|
}
|
||||||
|
/** MsgUpdateGroupPolicyAdmin is the Msg/UpdateGroupPolicyAdmin request type. */
|
||||||
|
export interface MsgUpdateGroupPolicyAdminSDKType {
|
||||||
|
admin: string;
|
||||||
|
address: string;
|
||||||
|
new_admin: string;
|
||||||
|
}
|
||||||
|
/** MsgCreateGroupWithPolicy is the Msg/CreateGroupWithPolicy request type. */
|
||||||
|
export interface MsgCreateGroupWithPolicy {
|
||||||
|
/** admin is the account address of the group and group policy admin. */
|
||||||
|
admin: string;
|
||||||
|
/** members defines the group members. */
|
||||||
|
members: Member[];
|
||||||
|
/** group_metadata is any arbitrary metadata attached to the group. */
|
||||||
|
groupMetadata: string;
|
||||||
|
/** group_policy_metadata is any arbitrary metadata attached to the group policy. */
|
||||||
|
groupPolicyMetadata: string;
|
||||||
|
/** group_policy_as_admin is a boolean field, if set to true, the group policy account address will be used as group and group policy admin. */
|
||||||
|
groupPolicyAsAdmin: boolean;
|
||||||
|
/** decision_policy specifies the group policy's decision policy. */
|
||||||
|
decisionPolicy?: Any;
|
||||||
|
}
|
||||||
|
/** MsgCreateGroupWithPolicy is the Msg/CreateGroupWithPolicy request type. */
|
||||||
|
export interface MsgCreateGroupWithPolicySDKType {
|
||||||
|
admin: string;
|
||||||
|
members: MemberSDKType[];
|
||||||
|
group_metadata: string;
|
||||||
|
group_policy_metadata: string;
|
||||||
|
group_policy_as_admin: boolean;
|
||||||
|
decision_policy?: AnySDKType;
|
||||||
|
}
|
||||||
|
/** MsgCreateGroupWithPolicyResponse is the Msg/CreateGroupWithPolicy response type. */
|
||||||
|
export interface MsgCreateGroupWithPolicyResponse {
|
||||||
|
/** group_id is the unique ID of the newly created group with policy. */
|
||||||
|
groupId: Long;
|
||||||
|
/** group_policy_address is the account address of the newly created group policy. */
|
||||||
|
groupPolicyAddress: string;
|
||||||
|
}
|
||||||
|
/** MsgCreateGroupWithPolicyResponse is the Msg/CreateGroupWithPolicy response type. */
|
||||||
|
export interface MsgCreateGroupWithPolicyResponseSDKType {
|
||||||
|
group_id: Long;
|
||||||
|
group_policy_address: string;
|
||||||
|
}
|
||||||
|
/** MsgUpdateGroupPolicyAdminResponse is the Msg/UpdateGroupPolicyAdmin response type. */
|
||||||
|
export interface MsgUpdateGroupPolicyAdminResponse {
|
||||||
|
}
|
||||||
|
/** MsgUpdateGroupPolicyAdminResponse is the Msg/UpdateGroupPolicyAdmin response type. */
|
||||||
|
export interface MsgUpdateGroupPolicyAdminResponseSDKType {
|
||||||
|
}
|
||||||
|
/** MsgUpdateGroupPolicyDecisionPolicy is the Msg/UpdateGroupPolicyDecisionPolicy request type. */
|
||||||
|
export interface MsgUpdateGroupPolicyDecisionPolicy {
|
||||||
|
/** admin is the account address of the group admin. */
|
||||||
|
admin: string;
|
||||||
|
/** address is the account address of group policy. */
|
||||||
|
address: string;
|
||||||
|
/** decision_policy is the updated group policy's decision policy. */
|
||||||
|
decisionPolicy?: Any;
|
||||||
|
}
|
||||||
|
/** MsgUpdateGroupPolicyDecisionPolicy is the Msg/UpdateGroupPolicyDecisionPolicy request type. */
|
||||||
|
export interface MsgUpdateGroupPolicyDecisionPolicySDKType {
|
||||||
|
admin: string;
|
||||||
|
address: string;
|
||||||
|
decision_policy?: AnySDKType;
|
||||||
|
}
|
||||||
|
/** MsgUpdateGroupPolicyDecisionPolicyResponse is the Msg/UpdateGroupPolicyDecisionPolicy response type. */
|
||||||
|
export interface MsgUpdateGroupPolicyDecisionPolicyResponse {
|
||||||
|
}
|
||||||
|
/** MsgUpdateGroupPolicyDecisionPolicyResponse is the Msg/UpdateGroupPolicyDecisionPolicy response type. */
|
||||||
|
export interface MsgUpdateGroupPolicyDecisionPolicyResponseSDKType {
|
||||||
|
}
|
||||||
|
/** MsgUpdateGroupPolicyMetadata is the Msg/UpdateGroupPolicyMetadata request type. */
|
||||||
|
export interface MsgUpdateGroupPolicyMetadata {
|
||||||
|
/** admin is the account address of the group admin. */
|
||||||
|
admin: string;
|
||||||
|
/** address is the account address of group policy. */
|
||||||
|
address: string;
|
||||||
|
/** metadata is the updated group policy metadata. */
|
||||||
|
metadata: string;
|
||||||
|
}
|
||||||
|
/** MsgUpdateGroupPolicyMetadata is the Msg/UpdateGroupPolicyMetadata request type. */
|
||||||
|
export interface MsgUpdateGroupPolicyMetadataSDKType {
|
||||||
|
admin: string;
|
||||||
|
address: string;
|
||||||
|
metadata: string;
|
||||||
|
}
|
||||||
|
/** MsgUpdateGroupPolicyMetadataResponse is the Msg/UpdateGroupPolicyMetadata response type. */
|
||||||
|
export interface MsgUpdateGroupPolicyMetadataResponse {
|
||||||
|
}
|
||||||
|
/** MsgUpdateGroupPolicyMetadataResponse is the Msg/UpdateGroupPolicyMetadata response type. */
|
||||||
|
export interface MsgUpdateGroupPolicyMetadataResponseSDKType {
|
||||||
|
}
|
||||||
|
/** MsgSubmitProposal is the Msg/SubmitProposal request type. */
|
||||||
|
export interface MsgSubmitProposal {
|
||||||
|
/** address is the account address of group policy. */
|
||||||
|
address: string;
|
||||||
|
/**
|
||||||
|
* proposers are the account addresses of the proposers.
|
||||||
|
* Proposers signatures will be counted as yes votes.
|
||||||
|
*/
|
||||||
|
proposers: string[];
|
||||||
|
/** metadata is any arbitrary metadata to attached to the proposal. */
|
||||||
|
metadata: string;
|
||||||
|
/** messages is a list of `sdk.Msg`s that will be executed if the proposal passes. */
|
||||||
|
messages: Any[];
|
||||||
|
/**
|
||||||
|
* exec defines the mode of execution of the proposal,
|
||||||
|
* whether it should be executed immediately on creation or not.
|
||||||
|
* If so, proposers signatures are considered as Yes votes.
|
||||||
|
*/
|
||||||
|
exec: Exec;
|
||||||
|
}
|
||||||
|
/** MsgSubmitProposal is the Msg/SubmitProposal request type. */
|
||||||
|
export interface MsgSubmitProposalSDKType {
|
||||||
|
address: string;
|
||||||
|
proposers: string[];
|
||||||
|
metadata: string;
|
||||||
|
messages: AnySDKType[];
|
||||||
|
exec: Exec;
|
||||||
|
}
|
||||||
|
/** MsgSubmitProposalResponse is the Msg/SubmitProposal response type. */
|
||||||
|
export interface MsgSubmitProposalResponse {
|
||||||
|
/** proposal is the unique ID of the proposal. */
|
||||||
|
proposalId: Long;
|
||||||
|
}
|
||||||
|
/** MsgSubmitProposalResponse is the Msg/SubmitProposal response type. */
|
||||||
|
export interface MsgSubmitProposalResponseSDKType {
|
||||||
|
proposal_id: Long;
|
||||||
|
}
|
||||||
|
/** MsgWithdrawProposal is the Msg/WithdrawProposal request type. */
|
||||||
|
export interface MsgWithdrawProposal {
|
||||||
|
/** proposal is the unique ID of the proposal. */
|
||||||
|
proposalId: Long;
|
||||||
|
/** address is the admin of the group policy or one of the proposer of the proposal. */
|
||||||
|
address: string;
|
||||||
|
}
|
||||||
|
/** MsgWithdrawProposal is the Msg/WithdrawProposal request type. */
|
||||||
|
export interface MsgWithdrawProposalSDKType {
|
||||||
|
proposal_id: Long;
|
||||||
|
address: string;
|
||||||
|
}
|
||||||
|
/** MsgWithdrawProposalResponse is the Msg/WithdrawProposal response type. */
|
||||||
|
export interface MsgWithdrawProposalResponse {
|
||||||
|
}
|
||||||
|
/** MsgWithdrawProposalResponse is the Msg/WithdrawProposal response type. */
|
||||||
|
export interface MsgWithdrawProposalResponseSDKType {
|
||||||
|
}
|
||||||
|
/** MsgVote is the Msg/Vote request type. */
|
||||||
|
export interface MsgVote {
|
||||||
|
/** proposal is the unique ID of the proposal. */
|
||||||
|
proposalId: Long;
|
||||||
|
/** voter is the voter account address. */
|
||||||
|
voter: string;
|
||||||
|
/** option is the voter's choice on the proposal. */
|
||||||
|
option: VoteOption;
|
||||||
|
/** metadata is any arbitrary metadata to attached to the vote. */
|
||||||
|
metadata: string;
|
||||||
|
/**
|
||||||
|
* exec defines whether the proposal should be executed
|
||||||
|
* immediately after voting or not.
|
||||||
|
*/
|
||||||
|
exec: Exec;
|
||||||
|
}
|
||||||
|
/** MsgVote is the Msg/Vote request type. */
|
||||||
|
export interface MsgVoteSDKType {
|
||||||
|
proposal_id: Long;
|
||||||
|
voter: string;
|
||||||
|
option: VoteOption;
|
||||||
|
metadata: string;
|
||||||
|
exec: Exec;
|
||||||
|
}
|
||||||
|
/** MsgVoteResponse is the Msg/Vote response type. */
|
||||||
|
export interface MsgVoteResponse {
|
||||||
|
}
|
||||||
|
/** MsgVoteResponse is the Msg/Vote response type. */
|
||||||
|
export interface MsgVoteResponseSDKType {
|
||||||
|
}
|
||||||
|
/** MsgExec is the Msg/Exec request type. */
|
||||||
|
export interface MsgExec {
|
||||||
|
/** proposal is the unique ID of the proposal. */
|
||||||
|
proposalId: Long;
|
||||||
|
/** signer is the account address used to execute the proposal. */
|
||||||
|
signer: string;
|
||||||
|
}
|
||||||
|
/** MsgExec is the Msg/Exec request type. */
|
||||||
|
export interface MsgExecSDKType {
|
||||||
|
proposal_id: Long;
|
||||||
|
signer: string;
|
||||||
|
}
|
||||||
|
/** MsgExecResponse is the Msg/Exec request type. */
|
||||||
|
export interface MsgExecResponse {
|
||||||
|
}
|
||||||
|
/** MsgExecResponse is the Msg/Exec request type. */
|
||||||
|
export interface MsgExecResponseSDKType {
|
||||||
|
}
|
||||||
|
/** MsgLeaveGroup is the Msg/LeaveGroup request type. */
|
||||||
|
export interface MsgLeaveGroup {
|
||||||
|
/** address is the account address of the group member. */
|
||||||
|
address: string;
|
||||||
|
/** group_id is the unique ID of the group. */
|
||||||
|
groupId: Long;
|
||||||
|
}
|
||||||
|
/** MsgLeaveGroup is the Msg/LeaveGroup request type. */
|
||||||
|
export interface MsgLeaveGroupSDKType {
|
||||||
|
address: string;
|
||||||
|
group_id: Long;
|
||||||
|
}
|
||||||
|
/** MsgLeaveGroupResponse is the Msg/LeaveGroup response type. */
|
||||||
|
export interface MsgLeaveGroupResponse {
|
||||||
|
}
|
||||||
|
/** MsgLeaveGroupResponse is the Msg/LeaveGroup response type. */
|
||||||
|
export interface MsgLeaveGroupResponseSDKType {
|
||||||
|
}
|
||||||
|
export declare const MsgCreateGroup: {
|
||||||
|
encode(message: MsgCreateGroup, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreateGroup;
|
||||||
|
fromPartial(object: DeepPartial<MsgCreateGroup>): MsgCreateGroup;
|
||||||
|
};
|
||||||
|
export declare const MsgCreateGroupResponse: {
|
||||||
|
encode(message: MsgCreateGroupResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreateGroupResponse;
|
||||||
|
fromPartial(object: DeepPartial<MsgCreateGroupResponse>): MsgCreateGroupResponse;
|
||||||
|
};
|
||||||
|
export declare const MsgUpdateGroupMembers: {
|
||||||
|
encode(message: MsgUpdateGroupMembers, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateGroupMembers;
|
||||||
|
fromPartial(object: DeepPartial<MsgUpdateGroupMembers>): MsgUpdateGroupMembers;
|
||||||
|
};
|
||||||
|
export declare const MsgUpdateGroupMembersResponse: {
|
||||||
|
encode(_: MsgUpdateGroupMembersResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateGroupMembersResponse;
|
||||||
|
fromPartial(_: DeepPartial<MsgUpdateGroupMembersResponse>): MsgUpdateGroupMembersResponse;
|
||||||
|
};
|
||||||
|
export declare const MsgUpdateGroupAdmin: {
|
||||||
|
encode(message: MsgUpdateGroupAdmin, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateGroupAdmin;
|
||||||
|
fromPartial(object: DeepPartial<MsgUpdateGroupAdmin>): MsgUpdateGroupAdmin;
|
||||||
|
};
|
||||||
|
export declare const MsgUpdateGroupAdminResponse: {
|
||||||
|
encode(_: MsgUpdateGroupAdminResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateGroupAdminResponse;
|
||||||
|
fromPartial(_: DeepPartial<MsgUpdateGroupAdminResponse>): MsgUpdateGroupAdminResponse;
|
||||||
|
};
|
||||||
|
export declare const MsgUpdateGroupMetadata: {
|
||||||
|
encode(message: MsgUpdateGroupMetadata, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateGroupMetadata;
|
||||||
|
fromPartial(object: DeepPartial<MsgUpdateGroupMetadata>): MsgUpdateGroupMetadata;
|
||||||
|
};
|
||||||
|
export declare const MsgUpdateGroupMetadataResponse: {
|
||||||
|
encode(_: MsgUpdateGroupMetadataResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateGroupMetadataResponse;
|
||||||
|
fromPartial(_: DeepPartial<MsgUpdateGroupMetadataResponse>): MsgUpdateGroupMetadataResponse;
|
||||||
|
};
|
||||||
|
export declare const MsgCreateGroupPolicy: {
|
||||||
|
encode(message: MsgCreateGroupPolicy, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreateGroupPolicy;
|
||||||
|
fromPartial(object: DeepPartial<MsgCreateGroupPolicy>): MsgCreateGroupPolicy;
|
||||||
|
};
|
||||||
|
export declare const MsgCreateGroupPolicyResponse: {
|
||||||
|
encode(message: MsgCreateGroupPolicyResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreateGroupPolicyResponse;
|
||||||
|
fromPartial(object: DeepPartial<MsgCreateGroupPolicyResponse>): MsgCreateGroupPolicyResponse;
|
||||||
|
};
|
||||||
|
export declare const MsgUpdateGroupPolicyAdmin: {
|
||||||
|
encode(message: MsgUpdateGroupPolicyAdmin, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateGroupPolicyAdmin;
|
||||||
|
fromPartial(object: DeepPartial<MsgUpdateGroupPolicyAdmin>): MsgUpdateGroupPolicyAdmin;
|
||||||
|
};
|
||||||
|
export declare const MsgCreateGroupWithPolicy: {
|
||||||
|
encode(message: MsgCreateGroupWithPolicy, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreateGroupWithPolicy;
|
||||||
|
fromPartial(object: DeepPartial<MsgCreateGroupWithPolicy>): MsgCreateGroupWithPolicy;
|
||||||
|
};
|
||||||
|
export declare const MsgCreateGroupWithPolicyResponse: {
|
||||||
|
encode(message: MsgCreateGroupWithPolicyResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreateGroupWithPolicyResponse;
|
||||||
|
fromPartial(object: DeepPartial<MsgCreateGroupWithPolicyResponse>): MsgCreateGroupWithPolicyResponse;
|
||||||
|
};
|
||||||
|
export declare const MsgUpdateGroupPolicyAdminResponse: {
|
||||||
|
encode(_: MsgUpdateGroupPolicyAdminResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateGroupPolicyAdminResponse;
|
||||||
|
fromPartial(_: DeepPartial<MsgUpdateGroupPolicyAdminResponse>): MsgUpdateGroupPolicyAdminResponse;
|
||||||
|
};
|
||||||
|
export declare const MsgUpdateGroupPolicyDecisionPolicy: {
|
||||||
|
encode(message: MsgUpdateGroupPolicyDecisionPolicy, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateGroupPolicyDecisionPolicy;
|
||||||
|
fromPartial(object: DeepPartial<MsgUpdateGroupPolicyDecisionPolicy>): MsgUpdateGroupPolicyDecisionPolicy;
|
||||||
|
};
|
||||||
|
export declare const MsgUpdateGroupPolicyDecisionPolicyResponse: {
|
||||||
|
encode(_: MsgUpdateGroupPolicyDecisionPolicyResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateGroupPolicyDecisionPolicyResponse;
|
||||||
|
fromPartial(_: DeepPartial<MsgUpdateGroupPolicyDecisionPolicyResponse>): MsgUpdateGroupPolicyDecisionPolicyResponse;
|
||||||
|
};
|
||||||
|
export declare const MsgUpdateGroupPolicyMetadata: {
|
||||||
|
encode(message: MsgUpdateGroupPolicyMetadata, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateGroupPolicyMetadata;
|
||||||
|
fromPartial(object: DeepPartial<MsgUpdateGroupPolicyMetadata>): MsgUpdateGroupPolicyMetadata;
|
||||||
|
};
|
||||||
|
export declare const MsgUpdateGroupPolicyMetadataResponse: {
|
||||||
|
encode(_: MsgUpdateGroupPolicyMetadataResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateGroupPolicyMetadataResponse;
|
||||||
|
fromPartial(_: DeepPartial<MsgUpdateGroupPolicyMetadataResponse>): MsgUpdateGroupPolicyMetadataResponse;
|
||||||
|
};
|
||||||
|
export declare const MsgSubmitProposal: {
|
||||||
|
encode(message: MsgSubmitProposal, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): MsgSubmitProposal;
|
||||||
|
fromPartial(object: DeepPartial<MsgSubmitProposal>): MsgSubmitProposal;
|
||||||
|
};
|
||||||
|
export declare const MsgSubmitProposalResponse: {
|
||||||
|
encode(message: MsgSubmitProposalResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): MsgSubmitProposalResponse;
|
||||||
|
fromPartial(object: DeepPartial<MsgSubmitProposalResponse>): MsgSubmitProposalResponse;
|
||||||
|
};
|
||||||
|
export declare const MsgWithdrawProposal: {
|
||||||
|
encode(message: MsgWithdrawProposal, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): MsgWithdrawProposal;
|
||||||
|
fromPartial(object: DeepPartial<MsgWithdrawProposal>): MsgWithdrawProposal;
|
||||||
|
};
|
||||||
|
export declare const MsgWithdrawProposalResponse: {
|
||||||
|
encode(_: MsgWithdrawProposalResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): MsgWithdrawProposalResponse;
|
||||||
|
fromPartial(_: DeepPartial<MsgWithdrawProposalResponse>): MsgWithdrawProposalResponse;
|
||||||
|
};
|
||||||
|
export declare const MsgVote: {
|
||||||
|
encode(message: MsgVote, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): MsgVote;
|
||||||
|
fromPartial(object: DeepPartial<MsgVote>): MsgVote;
|
||||||
|
};
|
||||||
|
export declare const MsgVoteResponse: {
|
||||||
|
encode(_: MsgVoteResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): MsgVoteResponse;
|
||||||
|
fromPartial(_: DeepPartial<MsgVoteResponse>): MsgVoteResponse;
|
||||||
|
};
|
||||||
|
export declare const MsgExec: {
|
||||||
|
encode(message: MsgExec, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): MsgExec;
|
||||||
|
fromPartial(object: DeepPartial<MsgExec>): MsgExec;
|
||||||
|
};
|
||||||
|
export declare const MsgExecResponse: {
|
||||||
|
encode(_: MsgExecResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): MsgExecResponse;
|
||||||
|
fromPartial(_: DeepPartial<MsgExecResponse>): MsgExecResponse;
|
||||||
|
};
|
||||||
|
export declare const MsgLeaveGroup: {
|
||||||
|
encode(message: MsgLeaveGroup, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): MsgLeaveGroup;
|
||||||
|
fromPartial(object: DeepPartial<MsgLeaveGroup>): MsgLeaveGroup;
|
||||||
|
};
|
||||||
|
export declare const MsgLeaveGroupResponse: {
|
||||||
|
encode(_: MsgLeaveGroupResponse, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): MsgLeaveGroupResponse;
|
||||||
|
fromPartial(_: DeepPartial<MsgLeaveGroupResponse>): MsgLeaveGroupResponse;
|
||||||
|
};
|
51
packages/codegen/dist/cosmos/group/v1/tx.rpc.msg.d.ts
vendored
Normal file
51
packages/codegen/dist/cosmos/group/v1/tx.rpc.msg.d.ts
vendored
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
import { Rpc } from "../../../helpers";
|
||||||
|
import { MsgCreateGroup, MsgCreateGroupResponse, MsgUpdateGroupMembers, MsgUpdateGroupMembersResponse, MsgUpdateGroupAdmin, MsgUpdateGroupAdminResponse, MsgUpdateGroupMetadata, MsgUpdateGroupMetadataResponse, MsgCreateGroupPolicy, MsgCreateGroupPolicyResponse, MsgCreateGroupWithPolicy, MsgCreateGroupWithPolicyResponse, MsgUpdateGroupPolicyAdmin, MsgUpdateGroupPolicyAdminResponse, MsgUpdateGroupPolicyDecisionPolicy, MsgUpdateGroupPolicyDecisionPolicyResponse, MsgUpdateGroupPolicyMetadata, MsgUpdateGroupPolicyMetadataResponse, MsgSubmitProposal, MsgSubmitProposalResponse, MsgWithdrawProposal, MsgWithdrawProposalResponse, MsgVote, MsgVoteResponse, MsgExec, MsgExecResponse, MsgLeaveGroup, MsgLeaveGroupResponse } from "./tx";
|
||||||
|
/** Msg is the cosmos.group.v1 Msg service. */
|
||||||
|
export interface Msg {
|
||||||
|
/** CreateGroup creates a new group with an admin account address, a list of members and some optional metadata. */
|
||||||
|
createGroup(request: MsgCreateGroup): Promise<MsgCreateGroupResponse>;
|
||||||
|
/** UpdateGroupMembers updates the group members with given group id and admin address. */
|
||||||
|
updateGroupMembers(request: MsgUpdateGroupMembers): Promise<MsgUpdateGroupMembersResponse>;
|
||||||
|
/** UpdateGroupAdmin updates the group admin with given group id and previous admin address. */
|
||||||
|
updateGroupAdmin(request: MsgUpdateGroupAdmin): Promise<MsgUpdateGroupAdminResponse>;
|
||||||
|
/** UpdateGroupMetadata updates the group metadata with given group id and admin address. */
|
||||||
|
updateGroupMetadata(request: MsgUpdateGroupMetadata): Promise<MsgUpdateGroupMetadataResponse>;
|
||||||
|
/** CreateGroupPolicy creates a new group policy using given DecisionPolicy. */
|
||||||
|
createGroupPolicy(request: MsgCreateGroupPolicy): Promise<MsgCreateGroupPolicyResponse>;
|
||||||
|
/** CreateGroupWithPolicy creates a new group with policy. */
|
||||||
|
createGroupWithPolicy(request: MsgCreateGroupWithPolicy): Promise<MsgCreateGroupWithPolicyResponse>;
|
||||||
|
/** UpdateGroupPolicyAdmin updates a group policy admin. */
|
||||||
|
updateGroupPolicyAdmin(request: MsgUpdateGroupPolicyAdmin): Promise<MsgUpdateGroupPolicyAdminResponse>;
|
||||||
|
/** UpdateGroupPolicyDecisionPolicy allows a group policy's decision policy to be updated. */
|
||||||
|
updateGroupPolicyDecisionPolicy(request: MsgUpdateGroupPolicyDecisionPolicy): Promise<MsgUpdateGroupPolicyDecisionPolicyResponse>;
|
||||||
|
/** UpdateGroupPolicyMetadata updates a group policy metadata. */
|
||||||
|
updateGroupPolicyMetadata(request: MsgUpdateGroupPolicyMetadata): Promise<MsgUpdateGroupPolicyMetadataResponse>;
|
||||||
|
/** SubmitProposal submits a new proposal. */
|
||||||
|
submitProposal(request: MsgSubmitProposal): Promise<MsgSubmitProposalResponse>;
|
||||||
|
/** WithdrawProposal aborts a proposal. */
|
||||||
|
withdrawProposal(request: MsgWithdrawProposal): Promise<MsgWithdrawProposalResponse>;
|
||||||
|
/** Vote allows a voter to vote on a proposal. */
|
||||||
|
vote(request: MsgVote): Promise<MsgVoteResponse>;
|
||||||
|
/** Exec executes a proposal. */
|
||||||
|
exec(request: MsgExec): Promise<MsgExecResponse>;
|
||||||
|
/** LeaveGroup allows a group member to leave the group. */
|
||||||
|
leaveGroup(request: MsgLeaveGroup): Promise<MsgLeaveGroupResponse>;
|
||||||
|
}
|
||||||
|
export declare class MsgClientImpl implements Msg {
|
||||||
|
private readonly rpc;
|
||||||
|
constructor(rpc: Rpc);
|
||||||
|
createGroup(request: MsgCreateGroup): Promise<MsgCreateGroupResponse>;
|
||||||
|
updateGroupMembers(request: MsgUpdateGroupMembers): Promise<MsgUpdateGroupMembersResponse>;
|
||||||
|
updateGroupAdmin(request: MsgUpdateGroupAdmin): Promise<MsgUpdateGroupAdminResponse>;
|
||||||
|
updateGroupMetadata(request: MsgUpdateGroupMetadata): Promise<MsgUpdateGroupMetadataResponse>;
|
||||||
|
createGroupPolicy(request: MsgCreateGroupPolicy): Promise<MsgCreateGroupPolicyResponse>;
|
||||||
|
createGroupWithPolicy(request: MsgCreateGroupWithPolicy): Promise<MsgCreateGroupWithPolicyResponse>;
|
||||||
|
updateGroupPolicyAdmin(request: MsgUpdateGroupPolicyAdmin): Promise<MsgUpdateGroupPolicyAdminResponse>;
|
||||||
|
updateGroupPolicyDecisionPolicy(request: MsgUpdateGroupPolicyDecisionPolicy): Promise<MsgUpdateGroupPolicyDecisionPolicyResponse>;
|
||||||
|
updateGroupPolicyMetadata(request: MsgUpdateGroupPolicyMetadata): Promise<MsgUpdateGroupPolicyMetadataResponse>;
|
||||||
|
submitProposal(request: MsgSubmitProposal): Promise<MsgSubmitProposalResponse>;
|
||||||
|
withdrawProposal(request: MsgWithdrawProposal): Promise<MsgWithdrawProposalResponse>;
|
||||||
|
vote(request: MsgVote): Promise<MsgVoteResponse>;
|
||||||
|
exec(request: MsgExec): Promise<MsgExecResponse>;
|
||||||
|
leaveGroup(request: MsgLeaveGroup): Promise<MsgLeaveGroupResponse>;
|
||||||
|
}
|
396
packages/codegen/dist/cosmos/group/v1/types.d.ts
vendored
Normal file
396
packages/codegen/dist/cosmos/group/v1/types.d.ts
vendored
Normal file
@ -0,0 +1,396 @@
|
|||||||
|
/// <reference types="long" />
|
||||||
|
import { Duration, DurationSDKType } from "../../../google/protobuf/duration";
|
||||||
|
import { Any, AnySDKType } from "../../../google/protobuf/any";
|
||||||
|
import * as _m0 from "protobufjs/minimal";
|
||||||
|
import { DeepPartial, Long } from "../../../helpers";
|
||||||
|
/** VoteOption enumerates the valid vote options for a given proposal. */
|
||||||
|
export declare enum VoteOption {
|
||||||
|
/** VOTE_OPTION_UNSPECIFIED - VOTE_OPTION_UNSPECIFIED defines a no-op vote option. */
|
||||||
|
VOTE_OPTION_UNSPECIFIED = 0,
|
||||||
|
/** VOTE_OPTION_YES - VOTE_OPTION_YES defines a yes vote option. */
|
||||||
|
VOTE_OPTION_YES = 1,
|
||||||
|
/** VOTE_OPTION_ABSTAIN - VOTE_OPTION_ABSTAIN defines an abstain vote option. */
|
||||||
|
VOTE_OPTION_ABSTAIN = 2,
|
||||||
|
/** VOTE_OPTION_NO - VOTE_OPTION_NO defines a no vote option. */
|
||||||
|
VOTE_OPTION_NO = 3,
|
||||||
|
/** VOTE_OPTION_NO_WITH_VETO - VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. */
|
||||||
|
VOTE_OPTION_NO_WITH_VETO = 4,
|
||||||
|
UNRECOGNIZED = -1
|
||||||
|
}
|
||||||
|
export declare const VoteOptionSDKType: typeof VoteOption;
|
||||||
|
export declare function voteOptionFromJSON(object: any): VoteOption;
|
||||||
|
export declare function voteOptionToJSON(object: VoteOption): string;
|
||||||
|
/** ProposalStatus defines proposal statuses. */
|
||||||
|
export declare enum ProposalStatus {
|
||||||
|
/** PROPOSAL_STATUS_UNSPECIFIED - An empty value is invalid and not allowed. */
|
||||||
|
PROPOSAL_STATUS_UNSPECIFIED = 0,
|
||||||
|
/** PROPOSAL_STATUS_SUBMITTED - Initial status of a proposal when persisted. */
|
||||||
|
PROPOSAL_STATUS_SUBMITTED = 1,
|
||||||
|
/** PROPOSAL_STATUS_CLOSED - Final status of a proposal when the final tally was executed. */
|
||||||
|
PROPOSAL_STATUS_CLOSED = 2,
|
||||||
|
/** PROPOSAL_STATUS_ABORTED - Final status of a proposal when the group was modified before the final tally. */
|
||||||
|
PROPOSAL_STATUS_ABORTED = 3,
|
||||||
|
/**
|
||||||
|
* PROPOSAL_STATUS_WITHDRAWN - A proposal can be deleted before the voting start time by the owner. When this happens the final status
|
||||||
|
* is Withdrawn.
|
||||||
|
*/
|
||||||
|
PROPOSAL_STATUS_WITHDRAWN = 4,
|
||||||
|
UNRECOGNIZED = -1
|
||||||
|
}
|
||||||
|
export declare const ProposalStatusSDKType: typeof ProposalStatus;
|
||||||
|
export declare function proposalStatusFromJSON(object: any): ProposalStatus;
|
||||||
|
export declare function proposalStatusToJSON(object: ProposalStatus): string;
|
||||||
|
/** ProposalResult defines types of proposal results. */
|
||||||
|
export declare enum ProposalResult {
|
||||||
|
/** PROPOSAL_RESULT_UNSPECIFIED - An empty value is invalid and not allowed */
|
||||||
|
PROPOSAL_RESULT_UNSPECIFIED = 0,
|
||||||
|
/** PROPOSAL_RESULT_UNFINALIZED - Until a final tally has happened the status is unfinalized */
|
||||||
|
PROPOSAL_RESULT_UNFINALIZED = 1,
|
||||||
|
/** PROPOSAL_RESULT_ACCEPTED - Final result of the tally */
|
||||||
|
PROPOSAL_RESULT_ACCEPTED = 2,
|
||||||
|
/** PROPOSAL_RESULT_REJECTED - Final result of the tally */
|
||||||
|
PROPOSAL_RESULT_REJECTED = 3,
|
||||||
|
UNRECOGNIZED = -1
|
||||||
|
}
|
||||||
|
export declare const ProposalResultSDKType: typeof ProposalResult;
|
||||||
|
export declare function proposalResultFromJSON(object: any): ProposalResult;
|
||||||
|
export declare function proposalResultToJSON(object: ProposalResult): string;
|
||||||
|
/** ProposalExecutorResult defines types of proposal executor results. */
|
||||||
|
export declare enum ProposalExecutorResult {
|
||||||
|
/** PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED - An empty value is not allowed. */
|
||||||
|
PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED = 0,
|
||||||
|
/** PROPOSAL_EXECUTOR_RESULT_NOT_RUN - We have not yet run the executor. */
|
||||||
|
PROPOSAL_EXECUTOR_RESULT_NOT_RUN = 1,
|
||||||
|
/** PROPOSAL_EXECUTOR_RESULT_SUCCESS - The executor was successful and proposed action updated state. */
|
||||||
|
PROPOSAL_EXECUTOR_RESULT_SUCCESS = 2,
|
||||||
|
/** PROPOSAL_EXECUTOR_RESULT_FAILURE - The executor returned an error and proposed action didn't update state. */
|
||||||
|
PROPOSAL_EXECUTOR_RESULT_FAILURE = 3,
|
||||||
|
UNRECOGNIZED = -1
|
||||||
|
}
|
||||||
|
export declare const ProposalExecutorResultSDKType: typeof ProposalExecutorResult;
|
||||||
|
export declare function proposalExecutorResultFromJSON(object: any): ProposalExecutorResult;
|
||||||
|
export declare function proposalExecutorResultToJSON(object: ProposalExecutorResult): string;
|
||||||
|
/**
|
||||||
|
* Member represents a group member with an account address,
|
||||||
|
* non-zero weight and metadata.
|
||||||
|
*/
|
||||||
|
export interface Member {
|
||||||
|
/** address is the member's account address. */
|
||||||
|
address: string;
|
||||||
|
/** weight is the member's voting weight that should be greater than 0. */
|
||||||
|
weight: string;
|
||||||
|
/** metadata is any arbitrary metadata to attached to the member. */
|
||||||
|
metadata: string;
|
||||||
|
/** added_at is a timestamp specifying when a member was added. */
|
||||||
|
addedAt?: Date;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Member represents a group member with an account address,
|
||||||
|
* non-zero weight and metadata.
|
||||||
|
*/
|
||||||
|
export interface MemberSDKType {
|
||||||
|
address: string;
|
||||||
|
weight: string;
|
||||||
|
metadata: string;
|
||||||
|
added_at?: Date;
|
||||||
|
}
|
||||||
|
/** Members defines a repeated slice of Member objects. */
|
||||||
|
export interface Members {
|
||||||
|
/** members is the list of members. */
|
||||||
|
members: Member[];
|
||||||
|
}
|
||||||
|
/** Members defines a repeated slice of Member objects. */
|
||||||
|
export interface MembersSDKType {
|
||||||
|
members: MemberSDKType[];
|
||||||
|
}
|
||||||
|
/** ThresholdDecisionPolicy implements the DecisionPolicy interface */
|
||||||
|
export interface ThresholdDecisionPolicy {
|
||||||
|
/** threshold is the minimum weighted sum of yes votes that must be met or exceeded for a proposal to succeed. */
|
||||||
|
threshold: string;
|
||||||
|
/** windows defines the different windows for voting and execution. */
|
||||||
|
windows?: DecisionPolicyWindows;
|
||||||
|
}
|
||||||
|
/** ThresholdDecisionPolicy implements the DecisionPolicy interface */
|
||||||
|
export interface ThresholdDecisionPolicySDKType {
|
||||||
|
threshold: string;
|
||||||
|
windows?: DecisionPolicyWindowsSDKType;
|
||||||
|
}
|
||||||
|
/** PercentageDecisionPolicy implements the DecisionPolicy interface */
|
||||||
|
export interface PercentageDecisionPolicy {
|
||||||
|
/** percentage is the minimum percentage the weighted sum of yes votes must meet for a proposal to succeed. */
|
||||||
|
percentage: string;
|
||||||
|
/** windows defines the different windows for voting and execution. */
|
||||||
|
windows?: DecisionPolicyWindows;
|
||||||
|
}
|
||||||
|
/** PercentageDecisionPolicy implements the DecisionPolicy interface */
|
||||||
|
export interface PercentageDecisionPolicySDKType {
|
||||||
|
percentage: string;
|
||||||
|
windows?: DecisionPolicyWindowsSDKType;
|
||||||
|
}
|
||||||
|
/** DecisionPolicyWindows defines the different windows for voting and execution. */
|
||||||
|
export interface DecisionPolicyWindows {
|
||||||
|
/**
|
||||||
|
* voting_period is the duration from submission of a proposal to the end of voting period
|
||||||
|
* Within this times votes can be submitted with MsgVote.
|
||||||
|
*/
|
||||||
|
votingPeriod?: Duration;
|
||||||
|
/**
|
||||||
|
* min_execution_period is the minimum duration after the proposal submission
|
||||||
|
* where members can start sending MsgExec. This means that the window for
|
||||||
|
* sending a MsgExec transaction is:
|
||||||
|
* `[ submission + min_execution_period ; submission + voting_period + max_execution_period]`
|
||||||
|
* where max_execution_period is a app-specific config, defined in the keeper.
|
||||||
|
* If not set, min_execution_period will default to 0.
|
||||||
|
*
|
||||||
|
* Please make sure to set a `min_execution_period` that is smaller than
|
||||||
|
* `voting_period + max_execution_period`, or else the above execution window
|
||||||
|
* is empty, meaning that all proposals created with this decision policy
|
||||||
|
* won't be able to be executed.
|
||||||
|
*/
|
||||||
|
minExecutionPeriod?: Duration;
|
||||||
|
}
|
||||||
|
/** DecisionPolicyWindows defines the different windows for voting and execution. */
|
||||||
|
export interface DecisionPolicyWindowsSDKType {
|
||||||
|
voting_period?: DurationSDKType;
|
||||||
|
min_execution_period?: DurationSDKType;
|
||||||
|
}
|
||||||
|
/** GroupInfo represents the high-level on-chain information for a group. */
|
||||||
|
export interface GroupInfo {
|
||||||
|
/** id is the unique ID of the group. */
|
||||||
|
id: Long;
|
||||||
|
/** admin is the account address of the group's admin. */
|
||||||
|
admin: string;
|
||||||
|
/** metadata is any arbitrary metadata to attached to the group. */
|
||||||
|
metadata: string;
|
||||||
|
/**
|
||||||
|
* version is used to track changes to a group's membership structure that
|
||||||
|
* would break existing proposals. Whenever any members weight is changed,
|
||||||
|
* or any member is added or removed this version is incremented and will
|
||||||
|
* cause proposals based on older versions of this group to fail
|
||||||
|
*/
|
||||||
|
version: Long;
|
||||||
|
/** total_weight is the sum of the group members' weights. */
|
||||||
|
totalWeight: string;
|
||||||
|
/** created_at is a timestamp specifying when a group was created. */
|
||||||
|
createdAt?: Date;
|
||||||
|
}
|
||||||
|
/** GroupInfo represents the high-level on-chain information for a group. */
|
||||||
|
export interface GroupInfoSDKType {
|
||||||
|
id: Long;
|
||||||
|
admin: string;
|
||||||
|
metadata: string;
|
||||||
|
version: Long;
|
||||||
|
total_weight: string;
|
||||||
|
created_at?: Date;
|
||||||
|
}
|
||||||
|
/** GroupMember represents the relationship between a group and a member. */
|
||||||
|
export interface GroupMember {
|
||||||
|
/** group_id is the unique ID of the group. */
|
||||||
|
groupId: Long;
|
||||||
|
/** member is the member data. */
|
||||||
|
member?: Member;
|
||||||
|
}
|
||||||
|
/** GroupMember represents the relationship between a group and a member. */
|
||||||
|
export interface GroupMemberSDKType {
|
||||||
|
group_id: Long;
|
||||||
|
member?: MemberSDKType;
|
||||||
|
}
|
||||||
|
/** GroupPolicyInfo represents the high-level on-chain information for a group policy. */
|
||||||
|
export interface GroupPolicyInfo {
|
||||||
|
/** address is the account address of group policy. */
|
||||||
|
address: string;
|
||||||
|
/** group_id is the unique ID of the group. */
|
||||||
|
groupId: Long;
|
||||||
|
/** admin is the account address of the group admin. */
|
||||||
|
admin: string;
|
||||||
|
/** metadata is any arbitrary metadata to attached to the group policy. */
|
||||||
|
metadata: string;
|
||||||
|
/**
|
||||||
|
* version is used to track changes to a group's GroupPolicyInfo structure that
|
||||||
|
* would create a different result on a running proposal.
|
||||||
|
*/
|
||||||
|
version: Long;
|
||||||
|
/** decision_policy specifies the group policy's decision policy. */
|
||||||
|
decisionPolicy?: Any;
|
||||||
|
/** created_at is a timestamp specifying when a group policy was created. */
|
||||||
|
createdAt?: Date;
|
||||||
|
}
|
||||||
|
/** GroupPolicyInfo represents the high-level on-chain information for a group policy. */
|
||||||
|
export interface GroupPolicyInfoSDKType {
|
||||||
|
address: string;
|
||||||
|
group_id: Long;
|
||||||
|
admin: string;
|
||||||
|
metadata: string;
|
||||||
|
version: Long;
|
||||||
|
decision_policy?: AnySDKType;
|
||||||
|
created_at?: Date;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Proposal defines a group proposal. Any member of a group can submit a proposal
|
||||||
|
* for a group policy to decide upon.
|
||||||
|
* A proposal consists of a set of `sdk.Msg`s that will be executed if the proposal
|
||||||
|
* passes as well as some optional metadata associated with the proposal.
|
||||||
|
*/
|
||||||
|
export interface Proposal {
|
||||||
|
/** id is the unique id of the proposal. */
|
||||||
|
id: Long;
|
||||||
|
/** address is the account address of group policy. */
|
||||||
|
address: string;
|
||||||
|
/** metadata is any arbitrary metadata to attached to the proposal. */
|
||||||
|
metadata: string;
|
||||||
|
/** proposers are the account addresses of the proposers. */
|
||||||
|
proposers: string[];
|
||||||
|
/** submit_time is a timestamp specifying when a proposal was submitted. */
|
||||||
|
submitTime?: Date;
|
||||||
|
/**
|
||||||
|
* group_version tracks the version of the group that this proposal corresponds to.
|
||||||
|
* When group membership is changed, existing proposals from previous group versions will become invalid.
|
||||||
|
*/
|
||||||
|
groupVersion: Long;
|
||||||
|
/**
|
||||||
|
* group_policy_version tracks the version of the group policy that this proposal corresponds to.
|
||||||
|
* When a decision policy is changed, existing proposals from previous policy versions will become invalid.
|
||||||
|
*/
|
||||||
|
groupPolicyVersion: Long;
|
||||||
|
/** status represents the high level position in the life cycle of the proposal. Initial value is Submitted. */
|
||||||
|
status: ProposalStatus;
|
||||||
|
/**
|
||||||
|
* result is the final result based on the votes and election rule. Initial value is unfinalized.
|
||||||
|
* The result is persisted so that clients can always rely on this state and not have to replicate the logic.
|
||||||
|
*/
|
||||||
|
result: ProposalResult;
|
||||||
|
/**
|
||||||
|
* final_tally_result contains the sums of all weighted votes for this
|
||||||
|
* proposal for each vote option, after tallying. When querying a proposal
|
||||||
|
* via gRPC, this field is not populated until the proposal's voting period
|
||||||
|
* has ended.
|
||||||
|
*/
|
||||||
|
finalTallyResult?: TallyResult;
|
||||||
|
/**
|
||||||
|
* voting_period_end is the timestamp before which voting must be done.
|
||||||
|
* Unless a successfull MsgExec is called before (to execute a proposal whose
|
||||||
|
* tally is successful before the voting period ends), tallying will be done
|
||||||
|
* at this point, and the `final_tally_result`, as well
|
||||||
|
* as `status` and `result` fields will be accordingly updated.
|
||||||
|
*/
|
||||||
|
votingPeriodEnd?: Date;
|
||||||
|
/** executor_result is the final result based on the votes and election rule. Initial value is NotRun. */
|
||||||
|
executorResult: ProposalExecutorResult;
|
||||||
|
/** messages is a list of Msgs that will be executed if the proposal passes. */
|
||||||
|
messages: Any[];
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Proposal defines a group proposal. Any member of a group can submit a proposal
|
||||||
|
* for a group policy to decide upon.
|
||||||
|
* A proposal consists of a set of `sdk.Msg`s that will be executed if the proposal
|
||||||
|
* passes as well as some optional metadata associated with the proposal.
|
||||||
|
*/
|
||||||
|
export interface ProposalSDKType {
|
||||||
|
id: Long;
|
||||||
|
address: string;
|
||||||
|
metadata: string;
|
||||||
|
proposers: string[];
|
||||||
|
submit_time?: Date;
|
||||||
|
group_version: Long;
|
||||||
|
group_policy_version: Long;
|
||||||
|
status: ProposalStatus;
|
||||||
|
result: ProposalResult;
|
||||||
|
final_tally_result?: TallyResultSDKType;
|
||||||
|
voting_period_end?: Date;
|
||||||
|
executor_result: ProposalExecutorResult;
|
||||||
|
messages: AnySDKType[];
|
||||||
|
}
|
||||||
|
/** TallyResult represents the sum of weighted votes for each vote option. */
|
||||||
|
export interface TallyResult {
|
||||||
|
/** yes_count is the weighted sum of yes votes. */
|
||||||
|
yesCount: string;
|
||||||
|
/** abstain_count is the weighted sum of abstainers. */
|
||||||
|
abstainCount: string;
|
||||||
|
/** no is the weighted sum of no votes. */
|
||||||
|
noCount: string;
|
||||||
|
/** no_with_veto_count is the weighted sum of veto. */
|
||||||
|
noWithVetoCount: string;
|
||||||
|
}
|
||||||
|
/** TallyResult represents the sum of weighted votes for each vote option. */
|
||||||
|
export interface TallyResultSDKType {
|
||||||
|
yes_count: string;
|
||||||
|
abstain_count: string;
|
||||||
|
no_count: string;
|
||||||
|
no_with_veto_count: string;
|
||||||
|
}
|
||||||
|
/** Vote represents a vote for a proposal. */
|
||||||
|
export interface Vote {
|
||||||
|
/** proposal is the unique ID of the proposal. */
|
||||||
|
proposalId: Long;
|
||||||
|
/** voter is the account address of the voter. */
|
||||||
|
voter: string;
|
||||||
|
/** option is the voter's choice on the proposal. */
|
||||||
|
option: VoteOption;
|
||||||
|
/** metadata is any arbitrary metadata to attached to the vote. */
|
||||||
|
metadata: string;
|
||||||
|
/** submit_time is the timestamp when the vote was submitted. */
|
||||||
|
submitTime?: Date;
|
||||||
|
}
|
||||||
|
/** Vote represents a vote for a proposal. */
|
||||||
|
export interface VoteSDKType {
|
||||||
|
proposal_id: Long;
|
||||||
|
voter: string;
|
||||||
|
option: VoteOption;
|
||||||
|
metadata: string;
|
||||||
|
submit_time?: Date;
|
||||||
|
}
|
||||||
|
export declare const Member: {
|
||||||
|
encode(message: Member, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): Member;
|
||||||
|
fromPartial(object: DeepPartial<Member>): Member;
|
||||||
|
};
|
||||||
|
export declare const Members: {
|
||||||
|
encode(message: Members, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): Members;
|
||||||
|
fromPartial(object: DeepPartial<Members>): Members;
|
||||||
|
};
|
||||||
|
export declare const ThresholdDecisionPolicy: {
|
||||||
|
encode(message: ThresholdDecisionPolicy, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): ThresholdDecisionPolicy;
|
||||||
|
fromPartial(object: DeepPartial<ThresholdDecisionPolicy>): ThresholdDecisionPolicy;
|
||||||
|
};
|
||||||
|
export declare const PercentageDecisionPolicy: {
|
||||||
|
encode(message: PercentageDecisionPolicy, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): PercentageDecisionPolicy;
|
||||||
|
fromPartial(object: DeepPartial<PercentageDecisionPolicy>): PercentageDecisionPolicy;
|
||||||
|
};
|
||||||
|
export declare const DecisionPolicyWindows: {
|
||||||
|
encode(message: DecisionPolicyWindows, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): DecisionPolicyWindows;
|
||||||
|
fromPartial(object: DeepPartial<DecisionPolicyWindows>): DecisionPolicyWindows;
|
||||||
|
};
|
||||||
|
export declare const GroupInfo: {
|
||||||
|
encode(message: GroupInfo, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): GroupInfo;
|
||||||
|
fromPartial(object: DeepPartial<GroupInfo>): GroupInfo;
|
||||||
|
};
|
||||||
|
export declare const GroupMember: {
|
||||||
|
encode(message: GroupMember, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): GroupMember;
|
||||||
|
fromPartial(object: DeepPartial<GroupMember>): GroupMember;
|
||||||
|
};
|
||||||
|
export declare const GroupPolicyInfo: {
|
||||||
|
encode(message: GroupPolicyInfo, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): GroupPolicyInfo;
|
||||||
|
fromPartial(object: DeepPartial<GroupPolicyInfo>): GroupPolicyInfo;
|
||||||
|
};
|
||||||
|
export declare const Proposal: {
|
||||||
|
encode(message: Proposal, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): Proposal;
|
||||||
|
fromPartial(object: DeepPartial<Proposal>): Proposal;
|
||||||
|
};
|
||||||
|
export declare const TallyResult: {
|
||||||
|
encode(message: TallyResult, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): TallyResult;
|
||||||
|
fromPartial(object: DeepPartial<TallyResult>): TallyResult;
|
||||||
|
};
|
||||||
|
export declare const Vote: {
|
||||||
|
encode(message: Vote, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): Vote;
|
||||||
|
fromPartial(object: DeepPartial<Vote>): Vote;
|
||||||
|
};
|
57
packages/codegen/dist/cosmos/lcd.d.ts
vendored
Normal file
57
packages/codegen/dist/cosmos/lcd.d.ts
vendored
Normal file
@ -0,0 +1,57 @@
|
|||||||
|
export declare const createLCDClient: ({ restEndpoint }: {
|
||||||
|
restEndpoint: string;
|
||||||
|
}) => Promise<{
|
||||||
|
cosmos: {
|
||||||
|
auth: {
|
||||||
|
v1beta1: import("./auth/v1beta1/query.lcd").LCDQueryClient;
|
||||||
|
};
|
||||||
|
authz: {
|
||||||
|
v1beta1: import("./authz/v1beta1/query.lcd").LCDQueryClient;
|
||||||
|
};
|
||||||
|
bank: {
|
||||||
|
v1beta1: import("./bank/v1beta1/query.lcd").LCDQueryClient;
|
||||||
|
};
|
||||||
|
base: {
|
||||||
|
tendermint: {
|
||||||
|
v1beta1: import("./base/tendermint/v1beta1/query.lcd").LCDQueryClient;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
distribution: {
|
||||||
|
v1beta1: import("./distribution/v1beta1/query.lcd").LCDQueryClient;
|
||||||
|
};
|
||||||
|
evidence: {
|
||||||
|
v1beta1: import("./evidence/v1beta1/query.lcd").LCDQueryClient;
|
||||||
|
};
|
||||||
|
feegrant: {
|
||||||
|
v1beta1: import("./feegrant/v1beta1/query.lcd").LCDQueryClient;
|
||||||
|
};
|
||||||
|
gov: {
|
||||||
|
v1: import("./gov/v1/query.lcd").LCDQueryClient;
|
||||||
|
v1beta1: import("./gov/v1beta1/query.lcd").LCDQueryClient;
|
||||||
|
};
|
||||||
|
group: {
|
||||||
|
v1: import("./group/v1/query.lcd").LCDQueryClient;
|
||||||
|
};
|
||||||
|
mint: {
|
||||||
|
v1beta1: import("./mint/v1beta1/query.lcd").LCDQueryClient;
|
||||||
|
};
|
||||||
|
nft: {
|
||||||
|
v1beta1: import("./nft/v1beta1/query.lcd").LCDQueryClient;
|
||||||
|
};
|
||||||
|
params: {
|
||||||
|
v1beta1: import("./params/v1beta1/query.lcd").LCDQueryClient;
|
||||||
|
};
|
||||||
|
slashing: {
|
||||||
|
v1beta1: import("./slashing/v1beta1/query.lcd").LCDQueryClient;
|
||||||
|
};
|
||||||
|
staking: {
|
||||||
|
v1beta1: import("./staking/v1beta1/query.lcd").LCDQueryClient;
|
||||||
|
};
|
||||||
|
tx: {
|
||||||
|
v1beta1: import("./tx/v1beta1/service.lcd").LCDQueryClient;
|
||||||
|
};
|
||||||
|
upgrade: {
|
||||||
|
v1beta1: import("./upgrade/v1beta1/query.lcd").LCDQueryClient;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}>;
|
20
packages/codegen/dist/cosmos/mint/v1beta1/genesis.d.ts
vendored
Normal file
20
packages/codegen/dist/cosmos/mint/v1beta1/genesis.d.ts
vendored
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
import { Minter, MinterSDKType, Params, ParamsSDKType } from "./mint";
|
||||||
|
import * as _m0 from "protobufjs/minimal";
|
||||||
|
import { DeepPartial } from "../../../helpers";
|
||||||
|
/** GenesisState defines the mint module's genesis state. */
|
||||||
|
export interface GenesisState {
|
||||||
|
/** minter is a space for holding current inflation information. */
|
||||||
|
minter?: Minter;
|
||||||
|
/** params defines all the paramaters of the module. */
|
||||||
|
params?: Params;
|
||||||
|
}
|
||||||
|
/** GenesisState defines the mint module's genesis state. */
|
||||||
|
export interface GenesisStateSDKType {
|
||||||
|
minter?: MinterSDKType;
|
||||||
|
params?: ParamsSDKType;
|
||||||
|
}
|
||||||
|
export declare const GenesisState: {
|
||||||
|
encode(message: GenesisState, writer?: _m0.Writer): _m0.Writer;
|
||||||
|
decode(input: _m0.Reader | Uint8Array, length?: number): GenesisState;
|
||||||
|
fromPartial(object: DeepPartial<GenesisState>): GenesisState;
|
||||||
|
};
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user