decentralcardgame-cardchain-client-ts 0.0.35 → 0.0.37
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/amino_adapter.d.ts +9 -0
- package/amino_adapter.js +22 -0
- package/cardchain.cardchain/module.js +53 -52
- package/cardchain.featureflag/module.js +3 -2
- package/client.js +2 -2
- package/cosmos.auth.v1beta1/module.js +2 -1
- package/cosmos.authz.v1beta1/module.js +4 -3
- package/cosmos.bank.v1beta1/module.js +5 -4
- package/cosmos.bank.v1beta1/rest.d.ts +20 -20
- package/cosmos.bank.v1beta1/rest.js +16 -16
- package/cosmos.circuit.v1/module.js +4 -3
- package/cosmos.consensus.v1/module.js +2 -1
- package/cosmos.crisis.v1beta1/module.js +3 -2
- package/cosmos.distribution.v1beta1/module.js +8 -7
- package/cosmos.evidence.v1beta1/module.js +2 -1
- package/cosmos.feegrant.v1beta1/module.js +4 -3
- package/cosmos.gov.v1/module.js +8 -7
- package/cosmos.gov.v1beta1/module.js +5 -4
- package/cosmos.group.v1/module.js +17 -14
- package/cosmos.group.v1/types.d.ts +2 -1
- package/cosmos.group.v1/types.js +2 -1
- package/cosmos.mint.v1beta1/module.js +2 -1
- package/cosmos.nft.v1beta1/module.js +2 -1
- package/cosmos.slashing.v1beta1/module.js +3 -2
- package/cosmos.staking.v1beta1/module.js +8 -7
- package/cosmos.tx.v1beta1/rest.d.ts +8 -0
- package/cosmos.upgrade.v1beta1/module.js +3 -2
- package/cosmos.vesting.v1beta1/module.js +4 -3
- package/ibc.applications.fee.v1/module.js +5 -4
- package/ibc.applications.interchain_accounts.controller.v1/module.js +4 -3
- package/ibc.applications.interchain_accounts.host.v1/module.js +3 -2
- package/ibc.applications.transfer.v1/module.js +3 -2
- package/ibc.core.channel.v1/module.js +20 -19
- package/ibc.core.client.v1/module.js +8 -7
- package/ibc.core.connection.v1/module.js +6 -5
- package/index.d.ts +68 -68
- package/index.js +19 -19
- package/package.json +2 -1
- package/types/cosmos/app/runtime/v1alpha1/module.d.ts +13 -1
- package/types/cosmos/app/runtime/v1alpha1/module.js +36 -0
- package/types/cosmos/app/v1alpha1/query.d.ts +6 -2
- package/types/cosmos/auth/module/v1/module.d.ts +6 -0
- package/types/cosmos/auth/module/v1/module.js +18 -1
- package/types/cosmos/auth/v1beta1/query.d.ts +21 -107
- package/types/cosmos/auth/v1beta1/tx.d.ts +1 -9
- package/types/cosmos/authz/v1beta1/authz.d.ts +0 -1
- package/types/cosmos/authz/v1beta1/event.d.ts +0 -1
- package/types/cosmos/authz/v1beta1/genesis.d.ts +0 -1
- package/types/cosmos/authz/v1beta1/query.d.ts +2 -11
- package/types/cosmos/authz/v1beta1/tx.d.ts +0 -1
- package/types/cosmos/autocli/v1/options.d.ts +21 -1
- package/types/cosmos/autocli/v1/options.js +65 -2
- package/types/cosmos/bank/v1beta1/authz.d.ts +0 -4
- package/types/cosmos/bank/v1beta1/bank.d.ts +2 -14
- package/types/cosmos/bank/v1beta1/genesis.d.ts +1 -5
- package/types/cosmos/bank/v1beta1/query.d.ts +12 -62
- package/types/cosmos/bank/v1beta1/query.js +6 -6
- package/types/cosmos/bank/v1beta1/tx.d.ts +2 -18
- package/types/cosmos/base/abci/v1beta1/abci.d.ts +2 -12
- package/types/cosmos/base/reflection/v2alpha1/reflection.d.ts +0 -1
- package/types/cosmos/base/tendermint/v1beta1/query.d.ts +0 -5
- package/types/cosmos/benchmark/module/v1/module.d.ts +52 -0
- package/types/cosmos/benchmark/module/v1/module.js +289 -0
- package/types/cosmos/benchmark/v1/benchmark.d.ts +32 -0
- package/types/cosmos/benchmark/v1/benchmark.js +164 -0
- package/types/cosmos/benchmark/v1/tx.d.ts +51 -0
- package/types/cosmos/benchmark/v1/tx.js +196 -0
- package/types/cosmos/consensus/v1/query.d.ts +0 -1
- package/types/cosmos/consensus/v1/tx.d.ts +0 -4
- package/types/cosmos/{orm/module/v1alpha1 → counter/module/v1}/module.d.ts +4 -6
- package/types/cosmos/counter/module/v1/module.js +62 -0
- package/types/cosmos/counter/v1/query.d.ts +47 -0
- package/types/cosmos/counter/v1/query.js +122 -0
- package/types/cosmos/counter/v1/tx.d.ts +52 -0
- package/types/cosmos/counter/v1/tx.js +153 -0
- package/types/cosmos/crisis/v1beta1/tx.d.ts +1 -9
- package/types/cosmos/crypto/hd/v1/hd.d.ts +0 -1
- package/types/cosmos/crypto/keyring/v1/record.d.ts +0 -1
- package/types/cosmos/crypto/secp256r1/keys.d.ts +0 -1
- package/types/cosmos/distribution/v1beta1/query.d.ts +5 -1
- package/types/cosmos/distribution/v1beta1/tx.d.ts +4 -22
- package/types/cosmos/epochs/module/v1/module.d.ts +25 -0
- package/types/cosmos/{orm/module/v1alpha1 → epochs/module/v1}/module.js +2 -2
- package/types/cosmos/epochs/v1beta1/events.d.ts +32 -0
- package/types/cosmos/epochs/v1beta1/events.js +140 -0
- package/types/cosmos/epochs/v1beta1/genesis.d.ts +86 -0
- package/types/cosmos/epochs/v1beta1/genesis.js +256 -0
- package/types/cosmos/epochs/v1beta1/query.d.ts +73 -0
- package/types/cosmos/epochs/v1beta1/query.js +233 -0
- package/types/cosmos/evidence/v1beta1/query.d.ts +1 -5
- package/types/cosmos/feegrant/v1beta1/feegrant.d.ts +0 -1
- package/types/cosmos/feegrant/v1beta1/genesis.d.ts +0 -1
- package/types/cosmos/feegrant/v1beta1/query.d.ts +3 -16
- package/types/cosmos/feegrant/v1beta1/tx.d.ts +3 -16
- package/types/cosmos/gov/v1/genesis.d.ts +1 -8
- package/types/cosmos/gov/v1/gov.d.ts +9 -50
- package/types/cosmos/gov/v1/gov.js +0 -1
- package/types/cosmos/gov/v1/query.d.ts +1 -6
- package/types/cosmos/gov/v1/tx.d.ts +6 -37
- package/types/cosmos/gov/v1beta1/gov.d.ts +2 -10
- package/types/cosmos/gov/v1beta1/tx.d.ts +3 -15
- package/types/cosmos/group/v1/events.d.ts +8 -1
- package/types/cosmos/group/v1/events.js +68 -0
- package/types/cosmos/group/v1/genesis.d.ts +0 -1
- package/types/cosmos/group/v1/query.d.ts +3 -16
- package/types/cosmos/group/v1/tx.d.ts +2 -11
- package/types/cosmos/group/v1/tx.js +0 -1
- package/types/cosmos/group/v1/types.d.ts +2 -11
- package/types/cosmos/group/v1/types.js +0 -1
- package/types/cosmos/mint/v1beta1/tx.d.ts +1 -9
- package/types/cosmos/params/v1beta1/query.d.ts +1 -11
- package/types/cosmos/protocolpool/module/v1/module.d.ts +27 -0
- package/types/cosmos/protocolpool/module/v1/module.js +62 -0
- package/types/cosmos/protocolpool/v1/genesis.d.ts +33 -0
- package/types/cosmos/protocolpool/v1/genesis.js +84 -0
- package/types/cosmos/protocolpool/v1/query.d.ts +108 -0
- package/types/cosmos/protocolpool/v1/query.js +420 -0
- package/types/cosmos/protocolpool/v1/tx.d.ts +159 -0
- package/types/cosmos/protocolpool/v1/tx.js +700 -0
- package/types/cosmos/protocolpool/v1/types.d.ts +45 -0
- package/types/cosmos/protocolpool/v1/types.js +196 -0
- package/types/cosmos/slashing/v1beta1/tx.d.ts +1 -9
- package/types/cosmos/staking/v1beta1/authz.d.ts +2 -10
- package/types/cosmos/staking/v1beta1/authz.js +1 -5
- package/types/cosmos/staking/v1beta1/staking.d.ts +1 -5
- package/types/cosmos/staking/v1beta1/tx.d.ts +4 -25
- package/types/cosmos/store/snapshots/v1/snapshot.d.ts +5 -25
- package/types/cosmos/store/v1beta1/listening.d.ts +0 -2
- package/types/cosmos/tx/v1beta1/service.d.ts +6 -52
- package/types/cosmos/tx/v1beta1/tx.d.ts +37 -17
- package/types/cosmos/tx/v1beta1/tx.js +61 -1
- package/types/cosmos/upgrade/v1beta1/query.d.ts +4 -25
- package/types/cosmos/upgrade/v1beta1/tx.d.ts +5 -28
- package/types/cosmos/vesting/v1beta1/tx.d.ts +1 -15
- package/types/cosmos/vesting/v1beta1/vesting.d.ts +0 -2
- package/types/cosmos/orm/query/v1alpha1/query.d.ts +0 -148
- package/types/cosmos/orm/query/v1alpha1/query.js +0 -705
- package/types/cosmos/orm/v1/orm.d.ts +0 -115
- package/types/cosmos/orm/v1/orm.js +0 -300
- package/types/cosmos/orm/v1alpha1/schema.d.ts +0 -77
- package/types/cosmos/orm/v1alpha1/schema.js +0 -243
|
@@ -3,20 +3,12 @@ import { Any } from "../../../google/protobuf/any";
|
|
|
3
3
|
import { PageRequest, PageResponse } from "../../base/query/v1beta1/pagination";
|
|
4
4
|
import { BaseAccount, Params } from "./auth";
|
|
5
5
|
export declare const protobufPackage = "cosmos.auth.v1beta1";
|
|
6
|
-
/**
|
|
7
|
-
* QueryAccountsRequest is the request type for the Query/Accounts RPC method.
|
|
8
|
-
*
|
|
9
|
-
* Since: cosmos-sdk 0.43
|
|
10
|
-
*/
|
|
6
|
+
/** QueryAccountsRequest is the request type for the Query/Accounts RPC method. */
|
|
11
7
|
export interface QueryAccountsRequest {
|
|
12
8
|
/** pagination defines an optional pagination for the request. */
|
|
13
9
|
pagination: PageRequest | undefined;
|
|
14
10
|
}
|
|
15
|
-
/**
|
|
16
|
-
* QueryAccountsResponse is the response type for the Query/Accounts RPC method.
|
|
17
|
-
*
|
|
18
|
-
* Since: cosmos-sdk 0.43
|
|
19
|
-
*/
|
|
11
|
+
/** QueryAccountsResponse is the response type for the Query/Accounts RPC method. */
|
|
20
12
|
export interface QueryAccountsResponse {
|
|
21
13
|
/** accounts are the existing accounts */
|
|
22
14
|
accounts: Any[];
|
|
@@ -41,18 +33,10 @@ export interface QueryParamsResponse {
|
|
|
41
33
|
/** params defines the parameters of the module. */
|
|
42
34
|
params: Params | undefined;
|
|
43
35
|
}
|
|
44
|
-
/**
|
|
45
|
-
* QueryModuleAccountsRequest is the request type for the Query/ModuleAccounts RPC method.
|
|
46
|
-
*
|
|
47
|
-
* Since: cosmos-sdk 0.46
|
|
48
|
-
*/
|
|
36
|
+
/** QueryModuleAccountsRequest is the request type for the Query/ModuleAccounts RPC method. */
|
|
49
37
|
export interface QueryModuleAccountsRequest {
|
|
50
38
|
}
|
|
51
|
-
/**
|
|
52
|
-
* QueryModuleAccountsResponse is the response type for the Query/ModuleAccounts RPC method.
|
|
53
|
-
*
|
|
54
|
-
* Since: cosmos-sdk 0.46
|
|
55
|
-
*/
|
|
39
|
+
/** QueryModuleAccountsResponse is the response type for the Query/ModuleAccounts RPC method. */
|
|
56
40
|
export interface QueryModuleAccountsResponse {
|
|
57
41
|
accounts: Any[];
|
|
58
42
|
}
|
|
@@ -64,58 +48,30 @@ export interface QueryModuleAccountByNameRequest {
|
|
|
64
48
|
export interface QueryModuleAccountByNameResponse {
|
|
65
49
|
account: Any | undefined;
|
|
66
50
|
}
|
|
67
|
-
/**
|
|
68
|
-
* Bech32PrefixRequest is the request type for Bech32Prefix rpc method.
|
|
69
|
-
*
|
|
70
|
-
* Since: cosmos-sdk 0.46
|
|
71
|
-
*/
|
|
51
|
+
/** Bech32PrefixRequest is the request type for Bech32Prefix rpc method. */
|
|
72
52
|
export interface Bech32PrefixRequest {
|
|
73
53
|
}
|
|
74
|
-
/**
|
|
75
|
-
* Bech32PrefixResponse is the response type for Bech32Prefix rpc method.
|
|
76
|
-
*
|
|
77
|
-
* Since: cosmos-sdk 0.46
|
|
78
|
-
*/
|
|
54
|
+
/** Bech32PrefixResponse is the response type for Bech32Prefix rpc method. */
|
|
79
55
|
export interface Bech32PrefixResponse {
|
|
80
56
|
bech32Prefix: string;
|
|
81
57
|
}
|
|
82
|
-
/**
|
|
83
|
-
* AddressBytesToStringRequest is the request type for AddressString rpc method.
|
|
84
|
-
*
|
|
85
|
-
* Since: cosmos-sdk 0.46
|
|
86
|
-
*/
|
|
58
|
+
/** AddressBytesToStringRequest is the request type for AddressString rpc method. */
|
|
87
59
|
export interface AddressBytesToStringRequest {
|
|
88
60
|
addressBytes: Uint8Array;
|
|
89
61
|
}
|
|
90
|
-
/**
|
|
91
|
-
* AddressBytesToStringResponse is the response type for AddressString rpc method.
|
|
92
|
-
*
|
|
93
|
-
* Since: cosmos-sdk 0.46
|
|
94
|
-
*/
|
|
62
|
+
/** AddressBytesToStringResponse is the response type for AddressString rpc method. */
|
|
95
63
|
export interface AddressBytesToStringResponse {
|
|
96
64
|
addressString: string;
|
|
97
65
|
}
|
|
98
|
-
/**
|
|
99
|
-
* AddressStringToBytesRequest is the request type for AccountBytes rpc method.
|
|
100
|
-
*
|
|
101
|
-
* Since: cosmos-sdk 0.46
|
|
102
|
-
*/
|
|
66
|
+
/** AddressStringToBytesRequest is the request type for AccountBytes rpc method. */
|
|
103
67
|
export interface AddressStringToBytesRequest {
|
|
104
68
|
addressString: string;
|
|
105
69
|
}
|
|
106
|
-
/**
|
|
107
|
-
* AddressStringToBytesResponse is the response type for AddressBytes rpc method.
|
|
108
|
-
*
|
|
109
|
-
* Since: cosmos-sdk 0.46
|
|
110
|
-
*/
|
|
70
|
+
/** AddressStringToBytesResponse is the response type for AddressBytes rpc method. */
|
|
111
71
|
export interface AddressStringToBytesResponse {
|
|
112
72
|
addressBytes: Uint8Array;
|
|
113
73
|
}
|
|
114
|
-
/**
|
|
115
|
-
* QueryAccountAddressByIDRequest is the request type for AccountAddressByID rpc method
|
|
116
|
-
*
|
|
117
|
-
* Since: cosmos-sdk 0.46.2
|
|
118
|
-
*/
|
|
74
|
+
/** QueryAccountAddressByIDRequest is the request type for AccountAddressByID rpc method */
|
|
119
75
|
export interface QueryAccountAddressByIDRequest {
|
|
120
76
|
/**
|
|
121
77
|
* Deprecated, use account_id instead
|
|
@@ -127,35 +83,19 @@ export interface QueryAccountAddressByIDRequest {
|
|
|
127
83
|
* @deprecated
|
|
128
84
|
*/
|
|
129
85
|
id: number;
|
|
130
|
-
/**
|
|
131
|
-
* account_id is the account number of the address to be queried.
|
|
132
|
-
*
|
|
133
|
-
* Since: cosmos-sdk 0.47
|
|
134
|
-
*/
|
|
86
|
+
/** account_id is the account number of the address to be queried. */
|
|
135
87
|
accountId: number;
|
|
136
88
|
}
|
|
137
|
-
/**
|
|
138
|
-
* QueryAccountAddressByIDResponse is the response type for AccountAddressByID rpc method
|
|
139
|
-
*
|
|
140
|
-
* Since: cosmos-sdk 0.46.2
|
|
141
|
-
*/
|
|
89
|
+
/** QueryAccountAddressByIDResponse is the response type for AccountAddressByID rpc method */
|
|
142
90
|
export interface QueryAccountAddressByIDResponse {
|
|
143
91
|
accountAddress: string;
|
|
144
92
|
}
|
|
145
|
-
/**
|
|
146
|
-
* QueryAccountInfoRequest is the Query/AccountInfo request type.
|
|
147
|
-
*
|
|
148
|
-
* Since: cosmos-sdk 0.47
|
|
149
|
-
*/
|
|
93
|
+
/** QueryAccountInfoRequest is the Query/AccountInfo request type. */
|
|
150
94
|
export interface QueryAccountInfoRequest {
|
|
151
95
|
/** address is the account address string. */
|
|
152
96
|
address: string;
|
|
153
97
|
}
|
|
154
|
-
/**
|
|
155
|
-
* QueryAccountInfoResponse is the Query/AccountInfo response type.
|
|
156
|
-
*
|
|
157
|
-
* Since: cosmos-sdk 0.47
|
|
158
|
-
*/
|
|
98
|
+
/** QueryAccountInfoResponse is the Query/AccountInfo response type. */
|
|
159
99
|
export interface QueryAccountInfoResponse {
|
|
160
100
|
/** info is the account info which is represented by BaseAccount. */
|
|
161
101
|
info: BaseAccount | undefined;
|
|
@@ -187,51 +127,25 @@ export interface Query {
|
|
|
187
127
|
*
|
|
188
128
|
* When called from another module, this query might consume a high amount of
|
|
189
129
|
* gas if the pagination field is incorrectly set.
|
|
190
|
-
*
|
|
191
|
-
* Since: cosmos-sdk 0.43
|
|
192
130
|
*/
|
|
193
131
|
Accounts(request: QueryAccountsRequest): Promise<QueryAccountsResponse>;
|
|
194
132
|
/** Account returns account details based on address. */
|
|
195
133
|
Account(request: QueryAccountRequest): Promise<QueryAccountResponse>;
|
|
196
|
-
/**
|
|
197
|
-
* AccountAddressByID returns account address based on account number.
|
|
198
|
-
*
|
|
199
|
-
* Since: cosmos-sdk 0.46.2
|
|
200
|
-
*/
|
|
134
|
+
/** AccountAddressByID returns account address based on account number. */
|
|
201
135
|
AccountAddressByID(request: QueryAccountAddressByIDRequest): Promise<QueryAccountAddressByIDResponse>;
|
|
202
136
|
/** Params queries all parameters. */
|
|
203
137
|
Params(request: QueryParamsRequest): Promise<QueryParamsResponse>;
|
|
204
|
-
/**
|
|
205
|
-
* ModuleAccounts returns all the existing module accounts.
|
|
206
|
-
*
|
|
207
|
-
* Since: cosmos-sdk 0.46
|
|
208
|
-
*/
|
|
138
|
+
/** ModuleAccounts returns all the existing module accounts. */
|
|
209
139
|
ModuleAccounts(request: QueryModuleAccountsRequest): Promise<QueryModuleAccountsResponse>;
|
|
210
140
|
/** ModuleAccountByName returns the module account info by module name */
|
|
211
141
|
ModuleAccountByName(request: QueryModuleAccountByNameRequest): Promise<QueryModuleAccountByNameResponse>;
|
|
212
|
-
/**
|
|
213
|
-
* Bech32Prefix queries bech32Prefix
|
|
214
|
-
*
|
|
215
|
-
* Since: cosmos-sdk 0.46
|
|
216
|
-
*/
|
|
142
|
+
/** Bech32Prefix queries bech32Prefix */
|
|
217
143
|
Bech32Prefix(request: Bech32PrefixRequest): Promise<Bech32PrefixResponse>;
|
|
218
|
-
/**
|
|
219
|
-
* AddressBytesToString converts Account Address bytes to string
|
|
220
|
-
*
|
|
221
|
-
* Since: cosmos-sdk 0.46
|
|
222
|
-
*/
|
|
144
|
+
/** AddressBytesToString converts Account Address bytes to string */
|
|
223
145
|
AddressBytesToString(request: AddressBytesToStringRequest): Promise<AddressBytesToStringResponse>;
|
|
224
|
-
/**
|
|
225
|
-
* AddressStringToBytes converts Address string to bytes
|
|
226
|
-
*
|
|
227
|
-
* Since: cosmos-sdk 0.46
|
|
228
|
-
*/
|
|
146
|
+
/** AddressStringToBytes converts Address string to bytes */
|
|
229
147
|
AddressStringToBytes(request: AddressStringToBytesRequest): Promise<AddressStringToBytesResponse>;
|
|
230
|
-
/**
|
|
231
|
-
* AccountInfo queries account info which is common to all account types.
|
|
232
|
-
*
|
|
233
|
-
* Since: cosmos-sdk 0.47
|
|
234
|
-
*/
|
|
148
|
+
/** AccountInfo queries account info which is common to all account types. */
|
|
235
149
|
AccountInfo(request: QueryAccountInfoRequest): Promise<QueryAccountInfoResponse>;
|
|
236
150
|
}
|
|
237
151
|
export declare const QueryServiceName = "cosmos.auth.v1beta1.Query";
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
2
|
import { Params } from "./auth";
|
|
3
3
|
export declare const protobufPackage = "cosmos.auth.v1beta1";
|
|
4
|
-
/**
|
|
5
|
-
* MsgUpdateParams is the Msg/UpdateParams request type.
|
|
6
|
-
*
|
|
7
|
-
* Since: cosmos-sdk 0.47
|
|
8
|
-
*/
|
|
4
|
+
/** MsgUpdateParams is the Msg/UpdateParams request type. */
|
|
9
5
|
export interface MsgUpdateParams {
|
|
10
6
|
/** authority is the address that controls the module (defaults to x/gov unless overwritten). */
|
|
11
7
|
authority: string;
|
|
@@ -19,8 +15,6 @@ export interface MsgUpdateParams {
|
|
|
19
15
|
/**
|
|
20
16
|
* MsgUpdateParamsResponse defines the response structure for executing a
|
|
21
17
|
* MsgUpdateParams message.
|
|
22
|
-
*
|
|
23
|
-
* Since: cosmos-sdk 0.47
|
|
24
18
|
*/
|
|
25
19
|
export interface MsgUpdateParamsResponse {
|
|
26
20
|
}
|
|
@@ -31,8 +25,6 @@ export interface Msg {
|
|
|
31
25
|
/**
|
|
32
26
|
* UpdateParams defines a (governance) operation for updating the x/auth module
|
|
33
27
|
* parameters. The authority defaults to the x/gov module account.
|
|
34
|
-
*
|
|
35
|
-
* Since: cosmos-sdk 0.47
|
|
36
28
|
*/
|
|
37
29
|
UpdateParams(request: MsgUpdateParams): Promise<MsgUpdateParamsResponse>;
|
|
38
30
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
2
|
import { Any } from "../../../google/protobuf/any";
|
|
3
3
|
export declare const protobufPackage = "cosmos.authz.v1beta1";
|
|
4
|
-
/** Since: cosmos-sdk 0.43 */
|
|
5
4
|
/**
|
|
6
5
|
* GenericAuthorization gives the grantee unrestricted permissions to execute
|
|
7
6
|
* the provided method on behalf of the granter's account.
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
2
|
export declare const protobufPackage = "cosmos.authz.v1beta1";
|
|
3
|
-
/** Since: cosmos-sdk 0.43 */
|
|
4
3
|
/** EventGrant is emitted on Msg/Grant */
|
|
5
4
|
export interface EventGrant {
|
|
6
5
|
/** Msg type URL for which an autorization is granted */
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
2
|
import { GrantAuthorization } from "./authz";
|
|
3
3
|
export declare const protobufPackage = "cosmos.authz.v1beta1";
|
|
4
|
-
/** Since: cosmos-sdk 0.43 */
|
|
5
4
|
/** GenesisState defines the authz module's genesis state. */
|
|
6
5
|
export interface GenesisState {
|
|
7
6
|
authorization: GrantAuthorization[];
|
|
@@ -2,7 +2,6 @@ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
|
2
2
|
import { PageRequest, PageResponse } from "../../base/query/v1beta1/pagination";
|
|
3
3
|
import { Grant, GrantAuthorization } from "./authz";
|
|
4
4
|
export declare const protobufPackage = "cosmos.authz.v1beta1";
|
|
5
|
-
/** Since: cosmos-sdk 0.43 */
|
|
6
5
|
/** QueryGrantsRequest is the request type for the Query/Grants RPC method. */
|
|
7
6
|
export interface QueryGrantsRequest {
|
|
8
7
|
granter: string;
|
|
@@ -55,17 +54,9 @@ export declare const QueryGranteeGrantsResponse: MessageFns<QueryGranteeGrantsRe
|
|
|
55
54
|
export interface Query {
|
|
56
55
|
/** Returns list of `Authorization`, granted to the grantee by the granter. */
|
|
57
56
|
Grants(request: QueryGrantsRequest): Promise<QueryGrantsResponse>;
|
|
58
|
-
/**
|
|
59
|
-
* GranterGrants returns list of `GrantAuthorization`, granted by granter.
|
|
60
|
-
*
|
|
61
|
-
* Since: cosmos-sdk 0.46
|
|
62
|
-
*/
|
|
57
|
+
/** GranterGrants returns list of `GrantAuthorization`, granted by granter. */
|
|
63
58
|
GranterGrants(request: QueryGranterGrantsRequest): Promise<QueryGranterGrantsResponse>;
|
|
64
|
-
/**
|
|
65
|
-
* GranteeGrants returns a list of `GrantAuthorization` by grantee.
|
|
66
|
-
*
|
|
67
|
-
* Since: cosmos-sdk 0.46
|
|
68
|
-
*/
|
|
59
|
+
/** GranteeGrants returns a list of `GrantAuthorization` by grantee. */
|
|
69
60
|
GranteeGrants(request: QueryGranteeGrantsRequest): Promise<QueryGranteeGrantsResponse>;
|
|
70
61
|
}
|
|
71
62
|
export declare const QueryServiceName = "cosmos.authz.v1beta1.Query";
|
|
@@ -2,7 +2,6 @@ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
|
2
2
|
import { Any } from "../../../google/protobuf/any";
|
|
3
3
|
import { Grant } from "./authz";
|
|
4
4
|
export declare const protobufPackage = "cosmos.authz.v1beta1";
|
|
5
|
-
/** Since: cosmos-sdk 0.43 */
|
|
6
5
|
/**
|
|
7
6
|
* MsgGrant is a request type for Grant method. It declares authorization to the grantee
|
|
8
7
|
* on behalf of the granter with the provided expiration time.
|
|
@@ -29,6 +29,14 @@ export interface ServiceCommandDescriptor {
|
|
|
29
29
|
subCommands: {
|
|
30
30
|
[key: string]: ServiceCommandDescriptor;
|
|
31
31
|
};
|
|
32
|
+
/**
|
|
33
|
+
* enhance_custom_commands specifies whether to skip the service when generating commands, if a custom command already
|
|
34
|
+
* exists, or enhance the existing command. If set to true, the custom command will be enhanced with the services from
|
|
35
|
+
* gRPC. otherwise when a custom command exists, no commands will be generated for the service.
|
|
36
|
+
*/
|
|
37
|
+
enhanceCustomCommand: boolean;
|
|
38
|
+
/** short is an optional parameter used to override the short description of the auto generated command. */
|
|
39
|
+
short: string;
|
|
32
40
|
}
|
|
33
41
|
export interface ServiceCommandDescriptor_SubCommandsEntry {
|
|
34
42
|
key: string;
|
|
@@ -86,6 +94,13 @@ export interface RpcCommandOptions {
|
|
|
86
94
|
positionalArgs: PositionalArgDescriptor[];
|
|
87
95
|
/** skip specifies whether to skip this rpc method when generating commands. */
|
|
88
96
|
skip: boolean;
|
|
97
|
+
/**
|
|
98
|
+
* gov_proposal specifies whether autocli should generate a gov proposal transaction for this rpc method.
|
|
99
|
+
* Normally autocli generates a transaction containing the message and broadcast it.
|
|
100
|
+
* However, when true, autocli generates a proposal transaction containing the message and broadcast it.
|
|
101
|
+
* This option is ineffective for query commands.
|
|
102
|
+
*/
|
|
103
|
+
govProposal: boolean;
|
|
89
104
|
}
|
|
90
105
|
export interface RpcCommandOptions_FlagOptionsEntry {
|
|
91
106
|
key: string;
|
|
@@ -123,9 +138,14 @@ export interface PositionalArgDescriptor {
|
|
|
123
138
|
/**
|
|
124
139
|
* varargs makes a positional parameter a varargs parameter. This can only be
|
|
125
140
|
* applied to last positional parameter and the proto_field must a repeated
|
|
126
|
-
* field.
|
|
141
|
+
* field. Note: It is mutually exclusive with optional.
|
|
127
142
|
*/
|
|
128
143
|
varargs: boolean;
|
|
144
|
+
/**
|
|
145
|
+
* optional makes the last positional parameter optional.
|
|
146
|
+
* Note: It is mutually exclusive with varargs.
|
|
147
|
+
*/
|
|
148
|
+
optional: boolean;
|
|
129
149
|
}
|
|
130
150
|
export declare const ModuleOptions: MessageFns<ModuleOptions>;
|
|
131
151
|
export declare const ServiceCommandDescriptor: MessageFns<ServiceCommandDescriptor>;
|
|
@@ -79,7 +79,7 @@ export const ModuleOptions = {
|
|
|
79
79
|
},
|
|
80
80
|
};
|
|
81
81
|
function createBaseServiceCommandDescriptor() {
|
|
82
|
-
return { service: "", rpcCommandOptions: [], subCommands: {} };
|
|
82
|
+
return { service: "", rpcCommandOptions: [], subCommands: {}, enhanceCustomCommand: false, short: "" };
|
|
83
83
|
}
|
|
84
84
|
export const ServiceCommandDescriptor = {
|
|
85
85
|
encode(message, writer = new BinaryWriter()) {
|
|
@@ -92,6 +92,12 @@ export const ServiceCommandDescriptor = {
|
|
|
92
92
|
Object.entries(message.subCommands).forEach(([key, value]) => {
|
|
93
93
|
ServiceCommandDescriptor_SubCommandsEntry.encode({ key: key, value }, writer.uint32(26).fork()).join();
|
|
94
94
|
});
|
|
95
|
+
if (message.enhanceCustomCommand !== false) {
|
|
96
|
+
writer.uint32(32).bool(message.enhanceCustomCommand);
|
|
97
|
+
}
|
|
98
|
+
if (message.short !== "") {
|
|
99
|
+
writer.uint32(42).string(message.short);
|
|
100
|
+
}
|
|
95
101
|
return writer;
|
|
96
102
|
},
|
|
97
103
|
decode(input, length) {
|
|
@@ -125,6 +131,20 @@ export const ServiceCommandDescriptor = {
|
|
|
125
131
|
}
|
|
126
132
|
continue;
|
|
127
133
|
}
|
|
134
|
+
case 4: {
|
|
135
|
+
if (tag !== 32) {
|
|
136
|
+
break;
|
|
137
|
+
}
|
|
138
|
+
message.enhanceCustomCommand = reader.bool();
|
|
139
|
+
continue;
|
|
140
|
+
}
|
|
141
|
+
case 5: {
|
|
142
|
+
if (tag !== 42) {
|
|
143
|
+
break;
|
|
144
|
+
}
|
|
145
|
+
message.short = reader.string();
|
|
146
|
+
continue;
|
|
147
|
+
}
|
|
128
148
|
}
|
|
129
149
|
if ((tag & 7) === 4 || tag === 0) {
|
|
130
150
|
break;
|
|
@@ -145,6 +165,10 @@ export const ServiceCommandDescriptor = {
|
|
|
145
165
|
return acc;
|
|
146
166
|
}, {})
|
|
147
167
|
: {},
|
|
168
|
+
enhanceCustomCommand: isSet(object.enhanceCustomCommand)
|
|
169
|
+
? globalThis.Boolean(object.enhanceCustomCommand)
|
|
170
|
+
: false,
|
|
171
|
+
short: isSet(object.short) ? globalThis.String(object.short) : "",
|
|
148
172
|
};
|
|
149
173
|
},
|
|
150
174
|
toJSON(message) {
|
|
@@ -164,6 +188,12 @@ export const ServiceCommandDescriptor = {
|
|
|
164
188
|
});
|
|
165
189
|
}
|
|
166
190
|
}
|
|
191
|
+
if (message.enhanceCustomCommand !== false) {
|
|
192
|
+
obj.enhanceCustomCommand = message.enhanceCustomCommand;
|
|
193
|
+
}
|
|
194
|
+
if (message.short !== "") {
|
|
195
|
+
obj.short = message.short;
|
|
196
|
+
}
|
|
167
197
|
return obj;
|
|
168
198
|
},
|
|
169
199
|
create(base) {
|
|
@@ -179,6 +209,8 @@ export const ServiceCommandDescriptor = {
|
|
|
179
209
|
}
|
|
180
210
|
return acc;
|
|
181
211
|
}, {});
|
|
212
|
+
message.enhanceCustomCommand = object.enhanceCustomCommand ?? false;
|
|
213
|
+
message.short = object.short ?? "";
|
|
182
214
|
return message;
|
|
183
215
|
},
|
|
184
216
|
};
|
|
@@ -266,6 +298,7 @@ function createBaseRpcCommandOptions() {
|
|
|
266
298
|
flagOptions: {},
|
|
267
299
|
positionalArgs: [],
|
|
268
300
|
skip: false,
|
|
301
|
+
govProposal: false,
|
|
269
302
|
};
|
|
270
303
|
}
|
|
271
304
|
export const RpcCommandOptions = {
|
|
@@ -306,6 +339,9 @@ export const RpcCommandOptions = {
|
|
|
306
339
|
if (message.skip !== false) {
|
|
307
340
|
writer.uint32(96).bool(message.skip);
|
|
308
341
|
}
|
|
342
|
+
if (message.govProposal !== false) {
|
|
343
|
+
writer.uint32(104).bool(message.govProposal);
|
|
344
|
+
}
|
|
309
345
|
return writer;
|
|
310
346
|
},
|
|
311
347
|
decode(input, length) {
|
|
@@ -402,6 +438,13 @@ export const RpcCommandOptions = {
|
|
|
402
438
|
message.skip = reader.bool();
|
|
403
439
|
continue;
|
|
404
440
|
}
|
|
441
|
+
case 13: {
|
|
442
|
+
if (tag !== 104) {
|
|
443
|
+
break;
|
|
444
|
+
}
|
|
445
|
+
message.govProposal = reader.bool();
|
|
446
|
+
continue;
|
|
447
|
+
}
|
|
405
448
|
}
|
|
406
449
|
if ((tag & 7) === 4 || tag === 0) {
|
|
407
450
|
break;
|
|
@@ -433,6 +476,7 @@ export const RpcCommandOptions = {
|
|
|
433
476
|
? object.positionalArgs.map((e) => PositionalArgDescriptor.fromJSON(e))
|
|
434
477
|
: [],
|
|
435
478
|
skip: isSet(object.skip) ? globalThis.Boolean(object.skip) : false,
|
|
479
|
+
govProposal: isSet(object.govProposal) ? globalThis.Boolean(object.govProposal) : false,
|
|
436
480
|
};
|
|
437
481
|
},
|
|
438
482
|
toJSON(message) {
|
|
@@ -479,6 +523,9 @@ export const RpcCommandOptions = {
|
|
|
479
523
|
if (message.skip !== false) {
|
|
480
524
|
obj.skip = message.skip;
|
|
481
525
|
}
|
|
526
|
+
if (message.govProposal !== false) {
|
|
527
|
+
obj.govProposal = message.govProposal;
|
|
528
|
+
}
|
|
482
529
|
return obj;
|
|
483
530
|
},
|
|
484
531
|
create(base) {
|
|
@@ -503,6 +550,7 @@ export const RpcCommandOptions = {
|
|
|
503
550
|
}, {});
|
|
504
551
|
message.positionalArgs = object.positionalArgs?.map((e) => PositionalArgDescriptor.fromPartial(e)) || [];
|
|
505
552
|
message.skip = object.skip ?? false;
|
|
553
|
+
message.govProposal = object.govProposal ?? false;
|
|
506
554
|
return message;
|
|
507
555
|
},
|
|
508
556
|
};
|
|
@@ -728,7 +776,7 @@ export const FlagOptions = {
|
|
|
728
776
|
},
|
|
729
777
|
};
|
|
730
778
|
function createBasePositionalArgDescriptor() {
|
|
731
|
-
return { protoField: "", varargs: false };
|
|
779
|
+
return { protoField: "", varargs: false, optional: false };
|
|
732
780
|
}
|
|
733
781
|
export const PositionalArgDescriptor = {
|
|
734
782
|
encode(message, writer = new BinaryWriter()) {
|
|
@@ -738,6 +786,9 @@ export const PositionalArgDescriptor = {
|
|
|
738
786
|
if (message.varargs !== false) {
|
|
739
787
|
writer.uint32(16).bool(message.varargs);
|
|
740
788
|
}
|
|
789
|
+
if (message.optional !== false) {
|
|
790
|
+
writer.uint32(24).bool(message.optional);
|
|
791
|
+
}
|
|
741
792
|
return writer;
|
|
742
793
|
},
|
|
743
794
|
decode(input, length) {
|
|
@@ -761,6 +812,13 @@ export const PositionalArgDescriptor = {
|
|
|
761
812
|
message.varargs = reader.bool();
|
|
762
813
|
continue;
|
|
763
814
|
}
|
|
815
|
+
case 3: {
|
|
816
|
+
if (tag !== 24) {
|
|
817
|
+
break;
|
|
818
|
+
}
|
|
819
|
+
message.optional = reader.bool();
|
|
820
|
+
continue;
|
|
821
|
+
}
|
|
764
822
|
}
|
|
765
823
|
if ((tag & 7) === 4 || tag === 0) {
|
|
766
824
|
break;
|
|
@@ -773,6 +831,7 @@ export const PositionalArgDescriptor = {
|
|
|
773
831
|
return {
|
|
774
832
|
protoField: isSet(object.protoField) ? globalThis.String(object.protoField) : "",
|
|
775
833
|
varargs: isSet(object.varargs) ? globalThis.Boolean(object.varargs) : false,
|
|
834
|
+
optional: isSet(object.optional) ? globalThis.Boolean(object.optional) : false,
|
|
776
835
|
};
|
|
777
836
|
},
|
|
778
837
|
toJSON(message) {
|
|
@@ -783,6 +842,9 @@ export const PositionalArgDescriptor = {
|
|
|
783
842
|
if (message.varargs !== false) {
|
|
784
843
|
obj.varargs = message.varargs;
|
|
785
844
|
}
|
|
845
|
+
if (message.optional !== false) {
|
|
846
|
+
obj.optional = message.optional;
|
|
847
|
+
}
|
|
786
848
|
return obj;
|
|
787
849
|
},
|
|
788
850
|
create(base) {
|
|
@@ -792,6 +854,7 @@ export const PositionalArgDescriptor = {
|
|
|
792
854
|
const message = createBasePositionalArgDescriptor();
|
|
793
855
|
message.protoField = object.protoField ?? "";
|
|
794
856
|
message.varargs = object.varargs ?? false;
|
|
857
|
+
message.optional = object.optional ?? false;
|
|
795
858
|
return message;
|
|
796
859
|
},
|
|
797
860
|
};
|
|
@@ -4,16 +4,12 @@ export declare const protobufPackage = "cosmos.bank.v1beta1";
|
|
|
4
4
|
/**
|
|
5
5
|
* SendAuthorization allows the grantee to spend up to spend_limit coins from
|
|
6
6
|
* the granter's account.
|
|
7
|
-
*
|
|
8
|
-
* Since: cosmos-sdk 0.43
|
|
9
7
|
*/
|
|
10
8
|
export interface SendAuthorization {
|
|
11
9
|
spendLimit: Coin[];
|
|
12
10
|
/**
|
|
13
11
|
* allow_list specifies an optional list of addresses to whom the grantee can send tokens on behalf of the
|
|
14
12
|
* granter. If omitted, any recipient is allowed.
|
|
15
|
-
*
|
|
16
|
-
* Since: cosmos-sdk 0.47
|
|
17
13
|
*/
|
|
18
14
|
allowList: string[];
|
|
19
15
|
}
|
|
@@ -76,30 +76,18 @@ export interface Metadata {
|
|
|
76
76
|
* displayed in clients.
|
|
77
77
|
*/
|
|
78
78
|
display: string;
|
|
79
|
-
/**
|
|
80
|
-
* name defines the name of the token (eg: Cosmos Atom)
|
|
81
|
-
*
|
|
82
|
-
* Since: cosmos-sdk 0.43
|
|
83
|
-
*/
|
|
79
|
+
/** name defines the name of the token (eg: Cosmos Atom) */
|
|
84
80
|
name: string;
|
|
85
81
|
/**
|
|
86
82
|
* symbol is the token symbol usually shown on exchanges (eg: ATOM). This can
|
|
87
83
|
* be the same as the display.
|
|
88
|
-
*
|
|
89
|
-
* Since: cosmos-sdk 0.43
|
|
90
84
|
*/
|
|
91
85
|
symbol: string;
|
|
92
|
-
/**
|
|
93
|
-
* URI to a document (on or off-chain) that contains additional information. Optional.
|
|
94
|
-
*
|
|
95
|
-
* Since: cosmos-sdk 0.46
|
|
96
|
-
*/
|
|
86
|
+
/** URI to a document (on or off-chain) that contains additional information. Optional. */
|
|
97
87
|
uri: string;
|
|
98
88
|
/**
|
|
99
89
|
* URIHash is a sha256 hash of a document pointed by URI. It's used to verify that
|
|
100
90
|
* the document didn't change. Optional.
|
|
101
|
-
*
|
|
102
|
-
* Since: cosmos-sdk 0.46
|
|
103
91
|
*/
|
|
104
92
|
uriHash: string;
|
|
105
93
|
}
|
|
@@ -15,11 +15,7 @@ export interface GenesisState {
|
|
|
15
15
|
supply: Coin[];
|
|
16
16
|
/** denom_metadata defines the metadata of the different coins. */
|
|
17
17
|
denomMetadata: Metadata[];
|
|
18
|
-
/**
|
|
19
|
-
* send_enabled defines the denoms where send is enabled or disabled.
|
|
20
|
-
*
|
|
21
|
-
* Since: cosmos-sdk 0.47
|
|
22
|
-
*/
|
|
18
|
+
/** send_enabled defines the denoms where send is enabled or disabled. */
|
|
23
19
|
sendEnabled: SendEnabled[];
|
|
24
20
|
}
|
|
25
21
|
/**
|