ault-sdk-ts 0.0.2-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +932 -0
- package/dist/agent/create-agent-client.d.ts +3 -0
- package/dist/agent/sign-and-broadcast.d.ts +38 -0
- package/dist/agent/tx/clob.d.ts +7 -0
- package/dist/agent/tx-executor.d.ts +17 -0
- package/dist/client.d.ts +61 -0
- package/dist/core/address.d.ts +14 -0
- package/dist/core/base64.d.ts +2 -0
- package/dist/core/clob-msgs.d.ts +33 -0
- package/dist/core/errors.d.ts +17 -0
- package/dist/core/http.d.ts +14 -0
- package/dist/core/network.d.ts +59 -0
- package/dist/core/pagination.d.ts +14 -0
- package/dist/core/query.d.ts +5 -0
- package/dist/core/with-status-fallback.d.ts +5 -0
- package/dist/eip712/builder.d.ts +45 -0
- package/dist/eip712/field-order.d.ts +2 -0
- package/dist/eip712/msg-encoders.generated.d.ts +1 -0
- package/dist/eip712/msg.generated.d.ts +109 -0
- package/dist/eip712/registry.d.ts +36 -0
- package/dist/eip712/registry.generated.d.ts +2 -0
- package/dist/eip712/sign-and-broadcast.d.ts +55 -0
- package/dist/eip712/signers.d.ts +83 -0
- package/dist/eip712/types.d.ts +58 -0
- package/dist/high-level/address-utils.d.ts +2 -0
- package/dist/high-level/create-client.d.ts +26 -0
- package/dist/high-level/query-helpers.d.ts +3 -0
- package/dist/high-level/signer.d.ts +6 -0
- package/dist/high-level/tx/agent.d.ts +3 -0
- package/dist/high-level/tx/authority.d.ts +3 -0
- package/dist/high-level/tx/clob.d.ts +3 -0
- package/dist/high-level/tx/context.d.ts +5 -0
- package/dist/high-level/tx/license.d.ts +3 -0
- package/dist/high-level/tx/market.d.ts +3 -0
- package/dist/high-level/tx/miner.d.ts +3 -0
- package/dist/high-level/tx/ratelimit.d.ts +3 -0
- package/dist/high-level/tx/reward.d.ts +3 -0
- package/dist/high-level/tx/staking.d.ts +3 -0
- package/dist/high-level/tx/tokenregistry.d.ts +3 -0
- package/dist/high-level/tx-executor.d.ts +18 -0
- package/dist/high-level/types.d.ts +477 -0
- package/dist/high-level-client.d.ts +2 -0
- package/dist/index.cjs +18434 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +38 -0
- package/dist/index.js +18162 -0
- package/dist/index.js.map +1 -0
- package/dist/proto/duration-json.d.ts +6 -0
- package/dist/proto/gen/amino/amino.d.ts +1 -0
- package/dist/proto/gen/ault/agent/v1/agent.d.ts +63 -0
- package/dist/proto/gen/ault/agent/v1/genesis.d.ts +44 -0
- package/dist/proto/gen/ault/agent/v1/params.d.ts +42 -0
- package/dist/proto/gen/ault/agent/v1/query.d.ts +73 -0
- package/dist/proto/gen/ault/agent/v1/tx.d.ts +91 -0
- package/dist/proto/gen/ault/authority/v1/authority.d.ts +15 -0
- package/dist/proto/gen/ault/authority/v1/genesis.d.ts +36 -0
- package/dist/proto/gen/ault/authority/v1/query.d.ts +53 -0
- package/dist/proto/gen/ault/authority/v1/tx.d.ts +50 -0
- package/dist/proto/gen/ault/clob/v1/fee.d.ts +37 -0
- package/dist/proto/gen/ault/clob/v1/genesis.d.ts +56 -0
- package/dist/proto/gen/ault/clob/v1/order_book.d.ts +32 -0
- package/dist/proto/gen/ault/clob/v1/params.d.ts +29 -0
- package/dist/proto/gen/ault/clob/v1/query.d.ts +56 -0
- package/dist/proto/gen/ault/clob/v1/tx.d.ts +116 -0
- package/dist/proto/gen/ault/license/v1/genesis.d.ts +140 -0
- package/dist/proto/gen/ault/license/v1/license.d.ts +151 -0
- package/dist/proto/gen/ault/license/v1/query.d.ts +273 -0
- package/dist/proto/gen/ault/license/v1/tx.d.ts +227 -0
- package/dist/proto/gen/ault/market/v1/genesis.d.ts +28 -0
- package/dist/proto/gen/ault/market/v1/market.d.ts +66 -0
- package/dist/proto/gen/ault/market/v1/params.d.ts +34 -0
- package/dist/proto/gen/ault/market/v1/query.d.ts +48 -0
- package/dist/proto/gen/ault/market/v1/tx.d.ts +87 -0
- package/dist/proto/gen/ault/miner/v1/genesis.d.ts +166 -0
- package/dist/proto/gen/ault/miner/v1/miner.d.ts +232 -0
- package/dist/proto/gen/ault/miner/v1/query.d.ts +254 -0
- package/dist/proto/gen/ault/miner/v1/tx.d.ts +207 -0
- package/dist/proto/gen/ault/ratelimit/v1/genesis.d.ts +27 -0
- package/dist/proto/gen/ault/ratelimit/v1/params.d.ts +35 -0
- package/dist/proto/gen/ault/ratelimit/v1/query.d.ts +42 -0
- package/dist/proto/gen/ault/ratelimit/v1/tx.d.ts +32 -0
- package/dist/proto/gen/ault/reward/v1/genesis.d.ts +67 -0
- package/dist/proto/gen/ault/reward/v1/query.d.ts +93 -0
- package/dist/proto/gen/ault/reward/v1/reward.d.ts +53 -0
- package/dist/proto/gen/ault/reward/v1/tx.d.ts +120 -0
- package/dist/proto/gen/ault/spot/v1/genesis.d.ts +26 -0
- package/dist/proto/gen/ault/spot/v1/order.d.ts +66 -0
- package/dist/proto/gen/ault/tokenregistry/v1/genesis.d.ts +34 -0
- package/dist/proto/gen/ault/tokenregistry/v1/query.d.ts +77 -0
- package/dist/proto/gen/ault/tokenregistry/v1/tokenregistry.d.ts +118 -0
- package/dist/proto/gen/ault/tokenregistry/v1/tx.d.ts +132 -0
- package/dist/proto/gen/cosmos/base/query/v1beta1/pagination.d.ts +82 -0
- package/dist/proto/gen/cosmos/base/v1beta1/coin.d.ts +59 -0
- package/dist/proto/gen/cosmos/distribution/v1beta1/distribution.d.ts +162 -0
- package/dist/proto/gen/cosmos/distribution/v1beta1/tx.d.ts +140 -0
- package/dist/proto/gen/cosmos/msg/v1/msg.d.ts +1 -0
- package/dist/proto/gen/cosmos/staking/v1beta1/staking.d.ts +310 -0
- package/dist/proto/gen/cosmos/staking/v1beta1/tx.d.ts +144 -0
- package/dist/proto/gen/cosmos_proto/cosmos.d.ts +80 -0
- package/dist/proto/gen/gogoproto/gogo.d.ts +1 -0
- package/dist/proto/gen/google/api/annotations.d.ts +1 -0
- package/dist/proto/gen/google/api/http.d.ts +379 -0
- package/dist/proto/gen/google/protobuf/any.d.ts +144 -0
- package/dist/proto/gen/google/protobuf/descriptor.d.ts +1285 -0
- package/dist/proto/gen/google/protobuf/duration.d.ts +99 -0
- package/dist/proto/gen/google/protobuf/timestamp.d.ts +128 -0
- package/dist/proto/gen/tendermint/abci/types.d.ts +507 -0
- package/dist/proto/gen/tendermint/crypto/keys.d.ts +27 -0
- package/dist/proto/gen/tendermint/crypto/proof.d.ts +57 -0
- package/dist/proto/gen/tendermint/types/params.d.ts +112 -0
- package/dist/proto/gen/tendermint/types/types.d.ts +197 -0
- package/dist/proto/gen/tendermint/types/validator.d.ts +54 -0
- package/dist/proto/gen/tendermint/version/types.d.ts +41 -0
- package/dist/proto/tx-encode.d.ts +78 -0
- package/dist/rest/agent.d.ts +12 -0
- package/dist/rest/authority.d.ts +12 -0
- package/dist/rest/clob.d.ts +11 -0
- package/dist/rest/context.d.ts +22 -0
- package/dist/rest/dex-fetcher.d.ts +10 -0
- package/dist/rest/dex-types.generated.d.ts +780 -0
- package/dist/rest/dex.d.ts +34 -0
- package/dist/rest/dex.generated.d.ts +1381 -0
- package/dist/rest/license.d.ts +79 -0
- package/dist/rest/market.d.ts +11 -0
- package/dist/rest/miner.d.ts +59 -0
- package/dist/rest/ratelimit.d.ts +7 -0
- package/dist/rest/reward.d.ts +25 -0
- package/dist/rest/staking.d.ts +38 -0
- package/dist/rest/tokenregistry.d.ts +11 -0
- package/dist/rest/types.d.ts +871 -0
- package/dist/utils/address.d.ts +6 -0
- package/dist/utils/chain-id.d.ts +1 -0
- package/dist/utils/cosmos-dec.d.ts +2 -0
- package/dist/ws/client.d.ts +37 -0
- package/dist/ws/index.d.ts +5 -0
- package/dist/ws/types.d.ts +66 -0
- package/package.json +103 -0
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
+
import { TransferLimitConfig } from "./tokenregistry";
|
|
3
|
+
export declare const protobufPackage = "ault.tokenregistry.v1";
|
|
4
|
+
/** MsgEnableTransfers defines a message to enable module-wide conversions. */
|
|
5
|
+
export interface MsgEnableTransfers {
|
|
6
|
+
/** sender is the signer address. */
|
|
7
|
+
sender: string;
|
|
8
|
+
}
|
|
9
|
+
/** MsgEnableTransfersResponse is the response for MsgEnableTransfers. */
|
|
10
|
+
export interface MsgEnableTransfersResponse {
|
|
11
|
+
}
|
|
12
|
+
/** MsgDisableTransfers defines a message to disable module-wide conversions. */
|
|
13
|
+
export interface MsgDisableTransfers {
|
|
14
|
+
/** sender is the signer address. */
|
|
15
|
+
sender: string;
|
|
16
|
+
}
|
|
17
|
+
/** MsgDisableTransfersResponse is the response for MsgDisableTransfers. */
|
|
18
|
+
export interface MsgDisableTransfersResponse {
|
|
19
|
+
}
|
|
20
|
+
/** MsgRegisterTokenPair defines a message to register a token pair. */
|
|
21
|
+
export interface MsgRegisterTokenPair {
|
|
22
|
+
/** sender is the signer address. */
|
|
23
|
+
sender: string;
|
|
24
|
+
/** erc20_address is the ERC20 contract address (0x...). */
|
|
25
|
+
erc20Address: string;
|
|
26
|
+
/** enabled sets the initial pair enabled state. */
|
|
27
|
+
enabled: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* transfer_limit optionally sets the initial transfer rate limit config.
|
|
30
|
+
* zero value means no limit.
|
|
31
|
+
*/
|
|
32
|
+
transferLimit: TransferLimitConfig | undefined;
|
|
33
|
+
}
|
|
34
|
+
/** MsgRegisterTokenPairResponse is the response for MsgRegisterTokenPair. */
|
|
35
|
+
export interface MsgRegisterTokenPairResponse {
|
|
36
|
+
}
|
|
37
|
+
/** MsgEnableTokenPair defines a message to enable a token pair. */
|
|
38
|
+
export interface MsgEnableTokenPair {
|
|
39
|
+
/** sender is the signer address. */
|
|
40
|
+
sender: string;
|
|
41
|
+
/** erc20_address is the ERC20 contract address (0x...). */
|
|
42
|
+
erc20Address: string;
|
|
43
|
+
}
|
|
44
|
+
/** MsgEnableTokenPairResponse is the response for MsgEnableTokenPair. */
|
|
45
|
+
export interface MsgEnableTokenPairResponse {
|
|
46
|
+
}
|
|
47
|
+
/** MsgDisableTokenPair defines a message to disable a token pair. */
|
|
48
|
+
export interface MsgDisableTokenPair {
|
|
49
|
+
/** sender is the signer address. */
|
|
50
|
+
sender: string;
|
|
51
|
+
/** erc20_address is the ERC20 contract address (0x...). */
|
|
52
|
+
erc20Address: string;
|
|
53
|
+
}
|
|
54
|
+
/** MsgDisableTokenPairResponse is the response for MsgDisableTokenPair. */
|
|
55
|
+
export interface MsgDisableTokenPairResponse {
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* MsgCleanupTokenPair defines a message to remove a token pair whose ERC20
|
|
59
|
+
* contract no longer exists (e.g. self-destructed).
|
|
60
|
+
*/
|
|
61
|
+
export interface MsgCleanupTokenPair {
|
|
62
|
+
/** sender is the signer address. */
|
|
63
|
+
sender: string;
|
|
64
|
+
/** erc20_address is the ERC20 contract address (0x...). */
|
|
65
|
+
erc20Address: string;
|
|
66
|
+
}
|
|
67
|
+
/** MsgCleanupTokenPairResponse is the response for MsgCleanupTokenPair. */
|
|
68
|
+
export interface MsgCleanupTokenPairResponse {
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* MsgSetTransferLimit defines a message to set transfer rate limit for a token
|
|
72
|
+
* pair.
|
|
73
|
+
*/
|
|
74
|
+
export interface MsgSetTransferLimit {
|
|
75
|
+
/** sender is the signer address. */
|
|
76
|
+
sender: string;
|
|
77
|
+
/** erc20_address is the ERC20 contract address (0x...). */
|
|
78
|
+
erc20Address: string;
|
|
79
|
+
/** transfer_limit defines the hourly and daily rate limit config. */
|
|
80
|
+
transferLimit: TransferLimitConfig | undefined;
|
|
81
|
+
}
|
|
82
|
+
/** MsgSetTransferLimitResponse is the response for MsgSetTransferLimit. */
|
|
83
|
+
export interface MsgSetTransferLimitResponse {
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* MsgRemoveTransferLimit defines a message to remove transfer rate limit for a
|
|
87
|
+
* token pair.
|
|
88
|
+
*/
|
|
89
|
+
export interface MsgRemoveTransferLimit {
|
|
90
|
+
/** sender is the signer address. */
|
|
91
|
+
sender: string;
|
|
92
|
+
/** erc20_address is the ERC20 contract address (0x...). */
|
|
93
|
+
erc20Address: string;
|
|
94
|
+
}
|
|
95
|
+
/** MsgRemoveTransferLimitResponse is the response for MsgRemoveTransferLimit. */
|
|
96
|
+
export interface MsgRemoveTransferLimitResponse {
|
|
97
|
+
}
|
|
98
|
+
export declare const MsgEnableTransfers: MessageFns<MsgEnableTransfers>;
|
|
99
|
+
export declare const MsgEnableTransfersResponse: MessageFns<MsgEnableTransfersResponse>;
|
|
100
|
+
export declare const MsgDisableTransfers: MessageFns<MsgDisableTransfers>;
|
|
101
|
+
export declare const MsgDisableTransfersResponse: MessageFns<MsgDisableTransfersResponse>;
|
|
102
|
+
export declare const MsgRegisterTokenPair: MessageFns<MsgRegisterTokenPair>;
|
|
103
|
+
export declare const MsgRegisterTokenPairResponse: MessageFns<MsgRegisterTokenPairResponse>;
|
|
104
|
+
export declare const MsgEnableTokenPair: MessageFns<MsgEnableTokenPair>;
|
|
105
|
+
export declare const MsgEnableTokenPairResponse: MessageFns<MsgEnableTokenPairResponse>;
|
|
106
|
+
export declare const MsgDisableTokenPair: MessageFns<MsgDisableTokenPair>;
|
|
107
|
+
export declare const MsgDisableTokenPairResponse: MessageFns<MsgDisableTokenPairResponse>;
|
|
108
|
+
export declare const MsgCleanupTokenPair: MessageFns<MsgCleanupTokenPair>;
|
|
109
|
+
export declare const MsgCleanupTokenPairResponse: MessageFns<MsgCleanupTokenPairResponse>;
|
|
110
|
+
export declare const MsgSetTransferLimit: MessageFns<MsgSetTransferLimit>;
|
|
111
|
+
export declare const MsgSetTransferLimitResponse: MessageFns<MsgSetTransferLimitResponse>;
|
|
112
|
+
export declare const MsgRemoveTransferLimit: MessageFns<MsgRemoveTransferLimit>;
|
|
113
|
+
export declare const MsgRemoveTransferLimitResponse: MessageFns<MsgRemoveTransferLimitResponse>;
|
|
114
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
|
|
115
|
+
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
116
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
117
|
+
} : Partial<T>;
|
|
118
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
119
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
120
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
121
|
+
} & {
|
|
122
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
123
|
+
};
|
|
124
|
+
export interface MessageFns<T> {
|
|
125
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
126
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
127
|
+
fromJSON(object: any): T;
|
|
128
|
+
toJSON(message: T): unknown;
|
|
129
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
130
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
131
|
+
}
|
|
132
|
+
export {};
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
+
export declare const protobufPackage = "cosmos.base.query.v1beta1";
|
|
3
|
+
/**
|
|
4
|
+
* PageRequest is to be embedded in gRPC request messages for efficient
|
|
5
|
+
* pagination. Ex:
|
|
6
|
+
*
|
|
7
|
+
* message SomeRequest {
|
|
8
|
+
* Foo some_parameter = 1;
|
|
9
|
+
* PageRequest pagination = 2;
|
|
10
|
+
* }
|
|
11
|
+
*/
|
|
12
|
+
export interface PageRequest {
|
|
13
|
+
/**
|
|
14
|
+
* key is a value returned in PageResponse.next_key to begin
|
|
15
|
+
* querying the next page most efficiently. Only one of offset or key
|
|
16
|
+
* should be set.
|
|
17
|
+
*/
|
|
18
|
+
key: Uint8Array;
|
|
19
|
+
/**
|
|
20
|
+
* offset is a numeric offset that can be used when key is unavailable.
|
|
21
|
+
* It is less efficient than using key. Only one of offset or key should
|
|
22
|
+
* be set.
|
|
23
|
+
*/
|
|
24
|
+
offset: bigint;
|
|
25
|
+
/**
|
|
26
|
+
* limit is the total number of results to be returned in the result page.
|
|
27
|
+
* If left empty it will default to a value to be set by each app.
|
|
28
|
+
*/
|
|
29
|
+
limit: bigint;
|
|
30
|
+
/**
|
|
31
|
+
* count_total is set to true to indicate that the result set should include
|
|
32
|
+
* a count of the total number of items available for pagination in UIs.
|
|
33
|
+
* count_total is only respected when offset is used. It is ignored when key
|
|
34
|
+
* is set.
|
|
35
|
+
*/
|
|
36
|
+
countTotal: boolean;
|
|
37
|
+
/** reverse is set to true if results are to be returned in the descending order. */
|
|
38
|
+
reverse: boolean;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* PageResponse is to be embedded in gRPC response messages where the
|
|
42
|
+
* corresponding request message has used PageRequest.
|
|
43
|
+
*
|
|
44
|
+
* message SomeResponse {
|
|
45
|
+
* repeated Bar results = 1;
|
|
46
|
+
* PageResponse page = 2;
|
|
47
|
+
* }
|
|
48
|
+
*/
|
|
49
|
+
export interface PageResponse {
|
|
50
|
+
/**
|
|
51
|
+
* next_key is the key to be passed to PageRequest.key to
|
|
52
|
+
* query the next page most efficiently. It will be empty if
|
|
53
|
+
* there are no more results.
|
|
54
|
+
*/
|
|
55
|
+
nextKey: Uint8Array;
|
|
56
|
+
/**
|
|
57
|
+
* total is total number of results available if PageRequest.count_total
|
|
58
|
+
* was set, its value is undefined otherwise
|
|
59
|
+
*/
|
|
60
|
+
total: bigint;
|
|
61
|
+
}
|
|
62
|
+
export declare const PageRequest: MessageFns<PageRequest>;
|
|
63
|
+
export declare const PageResponse: MessageFns<PageResponse>;
|
|
64
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
|
|
65
|
+
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
66
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
67
|
+
} : Partial<T>;
|
|
68
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
69
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
70
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
71
|
+
} & {
|
|
72
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
73
|
+
};
|
|
74
|
+
export interface MessageFns<T> {
|
|
75
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
76
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
77
|
+
fromJSON(object: any): T;
|
|
78
|
+
toJSON(message: T): unknown;
|
|
79
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
80
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
81
|
+
}
|
|
82
|
+
export {};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
+
export declare const protobufPackage = "cosmos.base.v1beta1";
|
|
3
|
+
/**
|
|
4
|
+
* Coin defines a token with a denomination and an amount.
|
|
5
|
+
*
|
|
6
|
+
* NOTE: The amount field is an Int which implements the custom method
|
|
7
|
+
* signatures required by gogoproto.
|
|
8
|
+
*/
|
|
9
|
+
export interface Coin {
|
|
10
|
+
denom: string;
|
|
11
|
+
amount: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* DecCoin defines a token with a denomination and a decimal amount.
|
|
15
|
+
*
|
|
16
|
+
* NOTE: The amount field is an Dec which implements the custom method
|
|
17
|
+
* signatures required by gogoproto.
|
|
18
|
+
*/
|
|
19
|
+
export interface DecCoin {
|
|
20
|
+
denom: string;
|
|
21
|
+
amount: string;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* IntProto defines a Protobuf wrapper around an Int object.
|
|
25
|
+
* Deprecated: Prefer to use math.Int directly. It supports binary Marshal and Unmarshal.
|
|
26
|
+
*/
|
|
27
|
+
export interface IntProto {
|
|
28
|
+
int: string;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* DecProto defines a Protobuf wrapper around a Dec object.
|
|
32
|
+
* Deprecated: Prefer to use math.LegacyDec directly. It supports binary Marshal and Unmarshal.
|
|
33
|
+
*/
|
|
34
|
+
export interface DecProto {
|
|
35
|
+
dec: string;
|
|
36
|
+
}
|
|
37
|
+
export declare const Coin: MessageFns<Coin>;
|
|
38
|
+
export declare const DecCoin: MessageFns<DecCoin>;
|
|
39
|
+
export declare const IntProto: MessageFns<IntProto>;
|
|
40
|
+
export declare const DecProto: MessageFns<DecProto>;
|
|
41
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
|
|
42
|
+
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
43
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
44
|
+
} : Partial<T>;
|
|
45
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
46
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
47
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
48
|
+
} & {
|
|
49
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
50
|
+
};
|
|
51
|
+
export interface MessageFns<T> {
|
|
52
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
53
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
54
|
+
fromJSON(object: any): T;
|
|
55
|
+
toJSON(message: T): unknown;
|
|
56
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
57
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
58
|
+
}
|
|
59
|
+
export {};
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
+
import { Coin, DecCoin } from "../../base/v1beta1/coin";
|
|
3
|
+
export declare const protobufPackage = "cosmos.distribution.v1beta1";
|
|
4
|
+
/** Params defines the set of params for the distribution module. */
|
|
5
|
+
export interface Params {
|
|
6
|
+
communityTax: string;
|
|
7
|
+
/**
|
|
8
|
+
* Deprecated: The base_proposer_reward field is deprecated and is no longer used
|
|
9
|
+
* in the x/distribution module's reward mechanism.
|
|
10
|
+
*
|
|
11
|
+
* @deprecated
|
|
12
|
+
*/
|
|
13
|
+
baseProposerReward: string;
|
|
14
|
+
/**
|
|
15
|
+
* Deprecated: The bonus_proposer_reward field is deprecated and is no longer used
|
|
16
|
+
* in the x/distribution module's reward mechanism.
|
|
17
|
+
*
|
|
18
|
+
* @deprecated
|
|
19
|
+
*/
|
|
20
|
+
bonusProposerReward: string;
|
|
21
|
+
withdrawAddrEnabled: boolean;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* ValidatorHistoricalRewards represents historical rewards for a validator.
|
|
25
|
+
* Height is implicit within the store key.
|
|
26
|
+
* Cumulative reward ratio is the sum from the zeroeth period
|
|
27
|
+
* until this period of rewards / tokens, per the spec.
|
|
28
|
+
* The reference count indicates the number of objects
|
|
29
|
+
* which might need to reference this historical entry at any point.
|
|
30
|
+
* ReferenceCount =
|
|
31
|
+
* number of outstanding delegations which ended the associated period (and
|
|
32
|
+
* might need to read that record)
|
|
33
|
+
* + number of slashes which ended the associated period (and might need to
|
|
34
|
+
* read that record)
|
|
35
|
+
* + one per validator for the zeroeth period, set on initialization
|
|
36
|
+
*/
|
|
37
|
+
export interface ValidatorHistoricalRewards {
|
|
38
|
+
cumulativeRewardRatio: DecCoin[];
|
|
39
|
+
referenceCount: number;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* ValidatorCurrentRewards represents current rewards and current
|
|
43
|
+
* period for a validator kept as a running counter and incremented
|
|
44
|
+
* each block as long as the validator's tokens remain constant.
|
|
45
|
+
*/
|
|
46
|
+
export interface ValidatorCurrentRewards {
|
|
47
|
+
rewards: DecCoin[];
|
|
48
|
+
period: bigint;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* ValidatorAccumulatedCommission represents accumulated commission
|
|
52
|
+
* for a validator kept as a running counter, can be withdrawn at any time.
|
|
53
|
+
*/
|
|
54
|
+
export interface ValidatorAccumulatedCommission {
|
|
55
|
+
commission: DecCoin[];
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* ValidatorOutstandingRewards represents outstanding (un-withdrawn) rewards
|
|
59
|
+
* for a validator inexpensive to track, allows simple sanity checks.
|
|
60
|
+
*/
|
|
61
|
+
export interface ValidatorOutstandingRewards {
|
|
62
|
+
rewards: DecCoin[];
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* ValidatorSlashEvent represents a validator slash event.
|
|
66
|
+
* Height is implicit within the store key.
|
|
67
|
+
* This is needed to calculate appropriate amount of staking tokens
|
|
68
|
+
* for delegations which are withdrawn after a slash has occurred.
|
|
69
|
+
*/
|
|
70
|
+
export interface ValidatorSlashEvent {
|
|
71
|
+
validatorPeriod: bigint;
|
|
72
|
+
fraction: string;
|
|
73
|
+
}
|
|
74
|
+
/** ValidatorSlashEvents is a collection of ValidatorSlashEvent messages. */
|
|
75
|
+
export interface ValidatorSlashEvents {
|
|
76
|
+
validatorSlashEvents: ValidatorSlashEvent[];
|
|
77
|
+
}
|
|
78
|
+
/** FeePool is the global fee pool for distribution. */
|
|
79
|
+
export interface FeePool {
|
|
80
|
+
communityPool: DecCoin[];
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* CommunityPoolSpendProposal details a proposal for use of community funds,
|
|
84
|
+
* together with how many coins are proposed to be spent, and to which
|
|
85
|
+
* recipient account.
|
|
86
|
+
*
|
|
87
|
+
* Deprecated: Do not use. As of the Cosmos SDK release v0.47.x, there is no
|
|
88
|
+
* longer a need for an explicit CommunityPoolSpendProposal. To spend community
|
|
89
|
+
* pool funds, a simple MsgCommunityPoolSpend can be invoked from the x/gov
|
|
90
|
+
* module via a v1 governance proposal.
|
|
91
|
+
*
|
|
92
|
+
* @deprecated
|
|
93
|
+
*/
|
|
94
|
+
export interface CommunityPoolSpendProposal {
|
|
95
|
+
title: string;
|
|
96
|
+
description: string;
|
|
97
|
+
recipient: string;
|
|
98
|
+
amount: Coin[];
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* DelegatorStartingInfo represents the starting info for a delegator reward
|
|
102
|
+
* period. It tracks the previous validator period, the delegation's amount of
|
|
103
|
+
* staking token, and the creation height (to check later on if any slashes have
|
|
104
|
+
* occurred). NOTE: Even though validators are slashed to whole staking tokens,
|
|
105
|
+
* the delegators within the validator may be left with less than a full token,
|
|
106
|
+
* thus sdk.Dec is used.
|
|
107
|
+
*/
|
|
108
|
+
export interface DelegatorStartingInfo {
|
|
109
|
+
previousPeriod: bigint;
|
|
110
|
+
stake: string;
|
|
111
|
+
height: bigint;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* DelegationDelegatorReward represents the properties
|
|
115
|
+
* of a delegator's delegation reward.
|
|
116
|
+
*/
|
|
117
|
+
export interface DelegationDelegatorReward {
|
|
118
|
+
validatorAddress: string;
|
|
119
|
+
reward: DecCoin[];
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* CommunityPoolSpendProposalWithDeposit defines a CommunityPoolSpendProposal
|
|
123
|
+
* with a deposit
|
|
124
|
+
*/
|
|
125
|
+
export interface CommunityPoolSpendProposalWithDeposit {
|
|
126
|
+
title: string;
|
|
127
|
+
description: string;
|
|
128
|
+
recipient: string;
|
|
129
|
+
amount: string;
|
|
130
|
+
deposit: string;
|
|
131
|
+
}
|
|
132
|
+
export declare const Params: MessageFns<Params>;
|
|
133
|
+
export declare const ValidatorHistoricalRewards: MessageFns<ValidatorHistoricalRewards>;
|
|
134
|
+
export declare const ValidatorCurrentRewards: MessageFns<ValidatorCurrentRewards>;
|
|
135
|
+
export declare const ValidatorAccumulatedCommission: MessageFns<ValidatorAccumulatedCommission>;
|
|
136
|
+
export declare const ValidatorOutstandingRewards: MessageFns<ValidatorOutstandingRewards>;
|
|
137
|
+
export declare const ValidatorSlashEvent: MessageFns<ValidatorSlashEvent>;
|
|
138
|
+
export declare const ValidatorSlashEvents: MessageFns<ValidatorSlashEvents>;
|
|
139
|
+
export declare const FeePool: MessageFns<FeePool>;
|
|
140
|
+
export declare const CommunityPoolSpendProposal: MessageFns<CommunityPoolSpendProposal>;
|
|
141
|
+
export declare const DelegatorStartingInfo: MessageFns<DelegatorStartingInfo>;
|
|
142
|
+
export declare const DelegationDelegatorReward: MessageFns<DelegationDelegatorReward>;
|
|
143
|
+
export declare const CommunityPoolSpendProposalWithDeposit: MessageFns<CommunityPoolSpendProposalWithDeposit>;
|
|
144
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
|
|
145
|
+
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
146
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
147
|
+
} : Partial<T>;
|
|
148
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
149
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
150
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
151
|
+
} & {
|
|
152
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
153
|
+
};
|
|
154
|
+
export interface MessageFns<T> {
|
|
155
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
156
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
157
|
+
fromJSON(object: any): T;
|
|
158
|
+
toJSON(message: T): unknown;
|
|
159
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
160
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
161
|
+
}
|
|
162
|
+
export {};
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
+
import { Coin } from "../../base/v1beta1/coin";
|
|
3
|
+
import { Params } from "./distribution";
|
|
4
|
+
export declare const protobufPackage = "cosmos.distribution.v1beta1";
|
|
5
|
+
/**
|
|
6
|
+
* MsgSetWithdrawAddress sets the withdraw address for
|
|
7
|
+
* a delegator (or validator self-delegation).
|
|
8
|
+
*/
|
|
9
|
+
export interface MsgSetWithdrawAddress {
|
|
10
|
+
delegatorAddress: string;
|
|
11
|
+
withdrawAddress: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* MsgSetWithdrawAddressResponse defines the Msg/SetWithdrawAddress response
|
|
15
|
+
* type.
|
|
16
|
+
*/
|
|
17
|
+
export interface MsgSetWithdrawAddressResponse {
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* MsgWithdrawDelegatorReward represents delegation withdrawal to a delegator
|
|
21
|
+
* from a single validator.
|
|
22
|
+
*/
|
|
23
|
+
export interface MsgWithdrawDelegatorReward {
|
|
24
|
+
delegatorAddress: string;
|
|
25
|
+
validatorAddress: string;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* MsgWithdrawDelegatorRewardResponse defines the Msg/WithdrawDelegatorReward
|
|
29
|
+
* response type.
|
|
30
|
+
*/
|
|
31
|
+
export interface MsgWithdrawDelegatorRewardResponse {
|
|
32
|
+
amount: Coin[];
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* MsgWithdrawValidatorCommission withdraws the full commission to the validator
|
|
36
|
+
* address.
|
|
37
|
+
*/
|
|
38
|
+
export interface MsgWithdrawValidatorCommission {
|
|
39
|
+
validatorAddress: string;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* MsgWithdrawValidatorCommissionResponse defines the
|
|
43
|
+
* Msg/WithdrawValidatorCommission response type.
|
|
44
|
+
*/
|
|
45
|
+
export interface MsgWithdrawValidatorCommissionResponse {
|
|
46
|
+
amount: Coin[];
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* MsgFundCommunityPool allows an account to directly
|
|
50
|
+
* fund the community pool.
|
|
51
|
+
*/
|
|
52
|
+
export interface MsgFundCommunityPool {
|
|
53
|
+
amount: Coin[];
|
|
54
|
+
depositor: string;
|
|
55
|
+
}
|
|
56
|
+
/** MsgFundCommunityPoolResponse defines the Msg/FundCommunityPool response type. */
|
|
57
|
+
export interface MsgFundCommunityPoolResponse {
|
|
58
|
+
}
|
|
59
|
+
/** MsgUpdateParams is the Msg/UpdateParams request type. */
|
|
60
|
+
export interface MsgUpdateParams {
|
|
61
|
+
/** authority is the address that controls the module (defaults to x/gov unless overwritten). */
|
|
62
|
+
authority: string;
|
|
63
|
+
/**
|
|
64
|
+
* params defines the x/distribution parameters to update.
|
|
65
|
+
*
|
|
66
|
+
* NOTE: All parameters must be supplied.
|
|
67
|
+
*/
|
|
68
|
+
params: Params | undefined;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* MsgUpdateParamsResponse defines the response structure for executing a
|
|
72
|
+
* MsgUpdateParams message.
|
|
73
|
+
*/
|
|
74
|
+
export interface MsgUpdateParamsResponse {
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* MsgCommunityPoolSpend defines a message for sending tokens from the community
|
|
78
|
+
* pool to another account. This message is typically executed via a governance
|
|
79
|
+
* proposal with the governance module being the executing authority.
|
|
80
|
+
*/
|
|
81
|
+
export interface MsgCommunityPoolSpend {
|
|
82
|
+
/** authority is the address that controls the module (defaults to x/gov unless overwritten). */
|
|
83
|
+
authority: string;
|
|
84
|
+
recipient: string;
|
|
85
|
+
amount: Coin[];
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* MsgCommunityPoolSpendResponse defines the response to executing a
|
|
89
|
+
* MsgCommunityPoolSpend message.
|
|
90
|
+
*/
|
|
91
|
+
export interface MsgCommunityPoolSpendResponse {
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* DepositValidatorRewardsPool defines the request structure to provide
|
|
95
|
+
* additional rewards to delegators from a specific validator.
|
|
96
|
+
*/
|
|
97
|
+
export interface MsgDepositValidatorRewardsPool {
|
|
98
|
+
depositor: string;
|
|
99
|
+
validatorAddress: string;
|
|
100
|
+
amount: Coin[];
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* MsgDepositValidatorRewardsPoolResponse defines the response to executing a
|
|
104
|
+
* MsgDepositValidatorRewardsPool message.
|
|
105
|
+
*/
|
|
106
|
+
export interface MsgDepositValidatorRewardsPoolResponse {
|
|
107
|
+
}
|
|
108
|
+
export declare const MsgSetWithdrawAddress: MessageFns<MsgSetWithdrawAddress>;
|
|
109
|
+
export declare const MsgSetWithdrawAddressResponse: MessageFns<MsgSetWithdrawAddressResponse>;
|
|
110
|
+
export declare const MsgWithdrawDelegatorReward: MessageFns<MsgWithdrawDelegatorReward>;
|
|
111
|
+
export declare const MsgWithdrawDelegatorRewardResponse: MessageFns<MsgWithdrawDelegatorRewardResponse>;
|
|
112
|
+
export declare const MsgWithdrawValidatorCommission: MessageFns<MsgWithdrawValidatorCommission>;
|
|
113
|
+
export declare const MsgWithdrawValidatorCommissionResponse: MessageFns<MsgWithdrawValidatorCommissionResponse>;
|
|
114
|
+
export declare const MsgFundCommunityPool: MessageFns<MsgFundCommunityPool>;
|
|
115
|
+
export declare const MsgFundCommunityPoolResponse: MessageFns<MsgFundCommunityPoolResponse>;
|
|
116
|
+
export declare const MsgUpdateParams: MessageFns<MsgUpdateParams>;
|
|
117
|
+
export declare const MsgUpdateParamsResponse: MessageFns<MsgUpdateParamsResponse>;
|
|
118
|
+
export declare const MsgCommunityPoolSpend: MessageFns<MsgCommunityPoolSpend>;
|
|
119
|
+
export declare const MsgCommunityPoolSpendResponse: MessageFns<MsgCommunityPoolSpendResponse>;
|
|
120
|
+
export declare const MsgDepositValidatorRewardsPool: MessageFns<MsgDepositValidatorRewardsPool>;
|
|
121
|
+
export declare const MsgDepositValidatorRewardsPoolResponse: MessageFns<MsgDepositValidatorRewardsPoolResponse>;
|
|
122
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
|
|
123
|
+
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
124
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
125
|
+
} : Partial<T>;
|
|
126
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
127
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
128
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
129
|
+
} & {
|
|
130
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
131
|
+
};
|
|
132
|
+
export interface MessageFns<T> {
|
|
133
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
134
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
135
|
+
fromJSON(object: any): T;
|
|
136
|
+
toJSON(message: T): unknown;
|
|
137
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
138
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
139
|
+
}
|
|
140
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const protobufPackage = "cosmos.msg.v1";
|