decentralcardgame-cardchain-client-ts 0.0.36 → 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 +22 -22
- package/index.js +7 -7
- package/package.json +1 -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
|
@@ -0,0 +1,420 @@
|
|
|
1
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
|
+
// versions:
|
|
3
|
+
// protoc-gen-ts_proto v2.6.1
|
|
4
|
+
// protoc unknown
|
|
5
|
+
// source: cosmos/protocolpool/v1/query.proto
|
|
6
|
+
/* eslint-disable */
|
|
7
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
8
|
+
import { Coin } from "../../base/v1beta1/coin";
|
|
9
|
+
import { ContinuousFund, Params } from "./types";
|
|
10
|
+
export const protobufPackage = "cosmos.protocolpool.v1";
|
|
11
|
+
function createBaseQueryCommunityPoolRequest() {
|
|
12
|
+
return {};
|
|
13
|
+
}
|
|
14
|
+
export const QueryCommunityPoolRequest = {
|
|
15
|
+
encode(_, writer = new BinaryWriter()) {
|
|
16
|
+
return writer;
|
|
17
|
+
},
|
|
18
|
+
decode(input, length) {
|
|
19
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
20
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
21
|
+
const message = createBaseQueryCommunityPoolRequest();
|
|
22
|
+
while (reader.pos < end) {
|
|
23
|
+
const tag = reader.uint32();
|
|
24
|
+
switch (tag >>> 3) {
|
|
25
|
+
}
|
|
26
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
27
|
+
break;
|
|
28
|
+
}
|
|
29
|
+
reader.skip(tag & 7);
|
|
30
|
+
}
|
|
31
|
+
return message;
|
|
32
|
+
},
|
|
33
|
+
fromJSON(_) {
|
|
34
|
+
return {};
|
|
35
|
+
},
|
|
36
|
+
toJSON(_) {
|
|
37
|
+
const obj = {};
|
|
38
|
+
return obj;
|
|
39
|
+
},
|
|
40
|
+
create(base) {
|
|
41
|
+
return QueryCommunityPoolRequest.fromPartial(base ?? {});
|
|
42
|
+
},
|
|
43
|
+
fromPartial(_) {
|
|
44
|
+
const message = createBaseQueryCommunityPoolRequest();
|
|
45
|
+
return message;
|
|
46
|
+
},
|
|
47
|
+
};
|
|
48
|
+
function createBaseQueryCommunityPoolResponse() {
|
|
49
|
+
return { pool: [] };
|
|
50
|
+
}
|
|
51
|
+
export const QueryCommunityPoolResponse = {
|
|
52
|
+
encode(message, writer = new BinaryWriter()) {
|
|
53
|
+
for (const v of message.pool) {
|
|
54
|
+
Coin.encode(v, writer.uint32(10).fork()).join();
|
|
55
|
+
}
|
|
56
|
+
return writer;
|
|
57
|
+
},
|
|
58
|
+
decode(input, length) {
|
|
59
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
60
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
61
|
+
const message = createBaseQueryCommunityPoolResponse();
|
|
62
|
+
while (reader.pos < end) {
|
|
63
|
+
const tag = reader.uint32();
|
|
64
|
+
switch (tag >>> 3) {
|
|
65
|
+
case 1: {
|
|
66
|
+
if (tag !== 10) {
|
|
67
|
+
break;
|
|
68
|
+
}
|
|
69
|
+
message.pool.push(Coin.decode(reader, reader.uint32()));
|
|
70
|
+
continue;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
74
|
+
break;
|
|
75
|
+
}
|
|
76
|
+
reader.skip(tag & 7);
|
|
77
|
+
}
|
|
78
|
+
return message;
|
|
79
|
+
},
|
|
80
|
+
fromJSON(object) {
|
|
81
|
+
return { pool: globalThis.Array.isArray(object?.pool) ? object.pool.map((e) => Coin.fromJSON(e)) : [] };
|
|
82
|
+
},
|
|
83
|
+
toJSON(message) {
|
|
84
|
+
const obj = {};
|
|
85
|
+
if (message.pool?.length) {
|
|
86
|
+
obj.pool = message.pool.map((e) => Coin.toJSON(e));
|
|
87
|
+
}
|
|
88
|
+
return obj;
|
|
89
|
+
},
|
|
90
|
+
create(base) {
|
|
91
|
+
return QueryCommunityPoolResponse.fromPartial(base ?? {});
|
|
92
|
+
},
|
|
93
|
+
fromPartial(object) {
|
|
94
|
+
const message = createBaseQueryCommunityPoolResponse();
|
|
95
|
+
message.pool = object.pool?.map((e) => Coin.fromPartial(e)) || [];
|
|
96
|
+
return message;
|
|
97
|
+
},
|
|
98
|
+
};
|
|
99
|
+
function createBaseQueryContinuousFundRequest() {
|
|
100
|
+
return { recipient: "" };
|
|
101
|
+
}
|
|
102
|
+
export const QueryContinuousFundRequest = {
|
|
103
|
+
encode(message, writer = new BinaryWriter()) {
|
|
104
|
+
if (message.recipient !== "") {
|
|
105
|
+
writer.uint32(10).string(message.recipient);
|
|
106
|
+
}
|
|
107
|
+
return writer;
|
|
108
|
+
},
|
|
109
|
+
decode(input, length) {
|
|
110
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
111
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
112
|
+
const message = createBaseQueryContinuousFundRequest();
|
|
113
|
+
while (reader.pos < end) {
|
|
114
|
+
const tag = reader.uint32();
|
|
115
|
+
switch (tag >>> 3) {
|
|
116
|
+
case 1: {
|
|
117
|
+
if (tag !== 10) {
|
|
118
|
+
break;
|
|
119
|
+
}
|
|
120
|
+
message.recipient = reader.string();
|
|
121
|
+
continue;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
125
|
+
break;
|
|
126
|
+
}
|
|
127
|
+
reader.skip(tag & 7);
|
|
128
|
+
}
|
|
129
|
+
return message;
|
|
130
|
+
},
|
|
131
|
+
fromJSON(object) {
|
|
132
|
+
return { recipient: isSet(object.recipient) ? globalThis.String(object.recipient) : "" };
|
|
133
|
+
},
|
|
134
|
+
toJSON(message) {
|
|
135
|
+
const obj = {};
|
|
136
|
+
if (message.recipient !== "") {
|
|
137
|
+
obj.recipient = message.recipient;
|
|
138
|
+
}
|
|
139
|
+
return obj;
|
|
140
|
+
},
|
|
141
|
+
create(base) {
|
|
142
|
+
return QueryContinuousFundRequest.fromPartial(base ?? {});
|
|
143
|
+
},
|
|
144
|
+
fromPartial(object) {
|
|
145
|
+
const message = createBaseQueryContinuousFundRequest();
|
|
146
|
+
message.recipient = object.recipient ?? "";
|
|
147
|
+
return message;
|
|
148
|
+
},
|
|
149
|
+
};
|
|
150
|
+
function createBaseQueryContinuousFundResponse() {
|
|
151
|
+
return { continuousFund: undefined };
|
|
152
|
+
}
|
|
153
|
+
export const QueryContinuousFundResponse = {
|
|
154
|
+
encode(message, writer = new BinaryWriter()) {
|
|
155
|
+
if (message.continuousFund !== undefined) {
|
|
156
|
+
ContinuousFund.encode(message.continuousFund, writer.uint32(10).fork()).join();
|
|
157
|
+
}
|
|
158
|
+
return writer;
|
|
159
|
+
},
|
|
160
|
+
decode(input, length) {
|
|
161
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
162
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
163
|
+
const message = createBaseQueryContinuousFundResponse();
|
|
164
|
+
while (reader.pos < end) {
|
|
165
|
+
const tag = reader.uint32();
|
|
166
|
+
switch (tag >>> 3) {
|
|
167
|
+
case 1: {
|
|
168
|
+
if (tag !== 10) {
|
|
169
|
+
break;
|
|
170
|
+
}
|
|
171
|
+
message.continuousFund = ContinuousFund.decode(reader, reader.uint32());
|
|
172
|
+
continue;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
176
|
+
break;
|
|
177
|
+
}
|
|
178
|
+
reader.skip(tag & 7);
|
|
179
|
+
}
|
|
180
|
+
return message;
|
|
181
|
+
},
|
|
182
|
+
fromJSON(object) {
|
|
183
|
+
return {
|
|
184
|
+
continuousFund: isSet(object.continuousFund) ? ContinuousFund.fromJSON(object.continuousFund) : undefined,
|
|
185
|
+
};
|
|
186
|
+
},
|
|
187
|
+
toJSON(message) {
|
|
188
|
+
const obj = {};
|
|
189
|
+
if (message.continuousFund !== undefined) {
|
|
190
|
+
obj.continuousFund = ContinuousFund.toJSON(message.continuousFund);
|
|
191
|
+
}
|
|
192
|
+
return obj;
|
|
193
|
+
},
|
|
194
|
+
create(base) {
|
|
195
|
+
return QueryContinuousFundResponse.fromPartial(base ?? {});
|
|
196
|
+
},
|
|
197
|
+
fromPartial(object) {
|
|
198
|
+
const message = createBaseQueryContinuousFundResponse();
|
|
199
|
+
message.continuousFund = (object.continuousFund !== undefined && object.continuousFund !== null)
|
|
200
|
+
? ContinuousFund.fromPartial(object.continuousFund)
|
|
201
|
+
: undefined;
|
|
202
|
+
return message;
|
|
203
|
+
},
|
|
204
|
+
};
|
|
205
|
+
function createBaseQueryContinuousFundsRequest() {
|
|
206
|
+
return {};
|
|
207
|
+
}
|
|
208
|
+
export const QueryContinuousFundsRequest = {
|
|
209
|
+
encode(_, writer = new BinaryWriter()) {
|
|
210
|
+
return writer;
|
|
211
|
+
},
|
|
212
|
+
decode(input, length) {
|
|
213
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
214
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
215
|
+
const message = createBaseQueryContinuousFundsRequest();
|
|
216
|
+
while (reader.pos < end) {
|
|
217
|
+
const tag = reader.uint32();
|
|
218
|
+
switch (tag >>> 3) {
|
|
219
|
+
}
|
|
220
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
221
|
+
break;
|
|
222
|
+
}
|
|
223
|
+
reader.skip(tag & 7);
|
|
224
|
+
}
|
|
225
|
+
return message;
|
|
226
|
+
},
|
|
227
|
+
fromJSON(_) {
|
|
228
|
+
return {};
|
|
229
|
+
},
|
|
230
|
+
toJSON(_) {
|
|
231
|
+
const obj = {};
|
|
232
|
+
return obj;
|
|
233
|
+
},
|
|
234
|
+
create(base) {
|
|
235
|
+
return QueryContinuousFundsRequest.fromPartial(base ?? {});
|
|
236
|
+
},
|
|
237
|
+
fromPartial(_) {
|
|
238
|
+
const message = createBaseQueryContinuousFundsRequest();
|
|
239
|
+
return message;
|
|
240
|
+
},
|
|
241
|
+
};
|
|
242
|
+
function createBaseQueryContinuousFundsResponse() {
|
|
243
|
+
return { continuousFunds: [] };
|
|
244
|
+
}
|
|
245
|
+
export const QueryContinuousFundsResponse = {
|
|
246
|
+
encode(message, writer = new BinaryWriter()) {
|
|
247
|
+
for (const v of message.continuousFunds) {
|
|
248
|
+
ContinuousFund.encode(v, writer.uint32(10).fork()).join();
|
|
249
|
+
}
|
|
250
|
+
return writer;
|
|
251
|
+
},
|
|
252
|
+
decode(input, length) {
|
|
253
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
254
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
255
|
+
const message = createBaseQueryContinuousFundsResponse();
|
|
256
|
+
while (reader.pos < end) {
|
|
257
|
+
const tag = reader.uint32();
|
|
258
|
+
switch (tag >>> 3) {
|
|
259
|
+
case 1: {
|
|
260
|
+
if (tag !== 10) {
|
|
261
|
+
break;
|
|
262
|
+
}
|
|
263
|
+
message.continuousFunds.push(ContinuousFund.decode(reader, reader.uint32()));
|
|
264
|
+
continue;
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
268
|
+
break;
|
|
269
|
+
}
|
|
270
|
+
reader.skip(tag & 7);
|
|
271
|
+
}
|
|
272
|
+
return message;
|
|
273
|
+
},
|
|
274
|
+
fromJSON(object) {
|
|
275
|
+
return {
|
|
276
|
+
continuousFunds: globalThis.Array.isArray(object?.continuousFunds)
|
|
277
|
+
? object.continuousFunds.map((e) => ContinuousFund.fromJSON(e))
|
|
278
|
+
: [],
|
|
279
|
+
};
|
|
280
|
+
},
|
|
281
|
+
toJSON(message) {
|
|
282
|
+
const obj = {};
|
|
283
|
+
if (message.continuousFunds?.length) {
|
|
284
|
+
obj.continuousFunds = message.continuousFunds.map((e) => ContinuousFund.toJSON(e));
|
|
285
|
+
}
|
|
286
|
+
return obj;
|
|
287
|
+
},
|
|
288
|
+
create(base) {
|
|
289
|
+
return QueryContinuousFundsResponse.fromPartial(base ?? {});
|
|
290
|
+
},
|
|
291
|
+
fromPartial(object) {
|
|
292
|
+
const message = createBaseQueryContinuousFundsResponse();
|
|
293
|
+
message.continuousFunds = object.continuousFunds?.map((e) => ContinuousFund.fromPartial(e)) || [];
|
|
294
|
+
return message;
|
|
295
|
+
},
|
|
296
|
+
};
|
|
297
|
+
function createBaseQueryParamsRequest() {
|
|
298
|
+
return {};
|
|
299
|
+
}
|
|
300
|
+
export const QueryParamsRequest = {
|
|
301
|
+
encode(_, writer = new BinaryWriter()) {
|
|
302
|
+
return writer;
|
|
303
|
+
},
|
|
304
|
+
decode(input, length) {
|
|
305
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
306
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
307
|
+
const message = createBaseQueryParamsRequest();
|
|
308
|
+
while (reader.pos < end) {
|
|
309
|
+
const tag = reader.uint32();
|
|
310
|
+
switch (tag >>> 3) {
|
|
311
|
+
}
|
|
312
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
313
|
+
break;
|
|
314
|
+
}
|
|
315
|
+
reader.skip(tag & 7);
|
|
316
|
+
}
|
|
317
|
+
return message;
|
|
318
|
+
},
|
|
319
|
+
fromJSON(_) {
|
|
320
|
+
return {};
|
|
321
|
+
},
|
|
322
|
+
toJSON(_) {
|
|
323
|
+
const obj = {};
|
|
324
|
+
return obj;
|
|
325
|
+
},
|
|
326
|
+
create(base) {
|
|
327
|
+
return QueryParamsRequest.fromPartial(base ?? {});
|
|
328
|
+
},
|
|
329
|
+
fromPartial(_) {
|
|
330
|
+
const message = createBaseQueryParamsRequest();
|
|
331
|
+
return message;
|
|
332
|
+
},
|
|
333
|
+
};
|
|
334
|
+
function createBaseQueryParamsResponse() {
|
|
335
|
+
return { params: undefined };
|
|
336
|
+
}
|
|
337
|
+
export const QueryParamsResponse = {
|
|
338
|
+
encode(message, writer = new BinaryWriter()) {
|
|
339
|
+
if (message.params !== undefined) {
|
|
340
|
+
Params.encode(message.params, writer.uint32(10).fork()).join();
|
|
341
|
+
}
|
|
342
|
+
return writer;
|
|
343
|
+
},
|
|
344
|
+
decode(input, length) {
|
|
345
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
346
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
347
|
+
const message = createBaseQueryParamsResponse();
|
|
348
|
+
while (reader.pos < end) {
|
|
349
|
+
const tag = reader.uint32();
|
|
350
|
+
switch (tag >>> 3) {
|
|
351
|
+
case 1: {
|
|
352
|
+
if (tag !== 10) {
|
|
353
|
+
break;
|
|
354
|
+
}
|
|
355
|
+
message.params = Params.decode(reader, reader.uint32());
|
|
356
|
+
continue;
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
360
|
+
break;
|
|
361
|
+
}
|
|
362
|
+
reader.skip(tag & 7);
|
|
363
|
+
}
|
|
364
|
+
return message;
|
|
365
|
+
},
|
|
366
|
+
fromJSON(object) {
|
|
367
|
+
return { params: isSet(object.params) ? Params.fromJSON(object.params) : undefined };
|
|
368
|
+
},
|
|
369
|
+
toJSON(message) {
|
|
370
|
+
const obj = {};
|
|
371
|
+
if (message.params !== undefined) {
|
|
372
|
+
obj.params = Params.toJSON(message.params);
|
|
373
|
+
}
|
|
374
|
+
return obj;
|
|
375
|
+
},
|
|
376
|
+
create(base) {
|
|
377
|
+
return QueryParamsResponse.fromPartial(base ?? {});
|
|
378
|
+
},
|
|
379
|
+
fromPartial(object) {
|
|
380
|
+
const message = createBaseQueryParamsResponse();
|
|
381
|
+
message.params = (object.params !== undefined && object.params !== null)
|
|
382
|
+
? Params.fromPartial(object.params)
|
|
383
|
+
: undefined;
|
|
384
|
+
return message;
|
|
385
|
+
},
|
|
386
|
+
};
|
|
387
|
+
export const QueryServiceName = "cosmos.protocolpool.v1.Query";
|
|
388
|
+
export class QueryClientImpl {
|
|
389
|
+
constructor(rpc, opts) {
|
|
390
|
+
this.service = opts?.service || QueryServiceName;
|
|
391
|
+
this.rpc = rpc;
|
|
392
|
+
this.CommunityPool = this.CommunityPool.bind(this);
|
|
393
|
+
this.ContinuousFund = this.ContinuousFund.bind(this);
|
|
394
|
+
this.ContinuousFunds = this.ContinuousFunds.bind(this);
|
|
395
|
+
this.Params = this.Params.bind(this);
|
|
396
|
+
}
|
|
397
|
+
CommunityPool(request) {
|
|
398
|
+
const data = QueryCommunityPoolRequest.encode(request).finish();
|
|
399
|
+
const promise = this.rpc.request(this.service, "CommunityPool", data);
|
|
400
|
+
return promise.then((data) => QueryCommunityPoolResponse.decode(new BinaryReader(data)));
|
|
401
|
+
}
|
|
402
|
+
ContinuousFund(request) {
|
|
403
|
+
const data = QueryContinuousFundRequest.encode(request).finish();
|
|
404
|
+
const promise = this.rpc.request(this.service, "ContinuousFund", data);
|
|
405
|
+
return promise.then((data) => QueryContinuousFundResponse.decode(new BinaryReader(data)));
|
|
406
|
+
}
|
|
407
|
+
ContinuousFunds(request) {
|
|
408
|
+
const data = QueryContinuousFundsRequest.encode(request).finish();
|
|
409
|
+
const promise = this.rpc.request(this.service, "ContinuousFunds", data);
|
|
410
|
+
return promise.then((data) => QueryContinuousFundsResponse.decode(new BinaryReader(data)));
|
|
411
|
+
}
|
|
412
|
+
Params(request) {
|
|
413
|
+
const data = QueryParamsRequest.encode(request).finish();
|
|
414
|
+
const promise = this.rpc.request(this.service, "Params", data);
|
|
415
|
+
return promise.then((data) => QueryParamsResponse.decode(new BinaryReader(data)));
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
function isSet(value) {
|
|
419
|
+
return value !== null && value !== undefined;
|
|
420
|
+
}
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
+
import { Coin } from "../../base/v1beta1/coin";
|
|
3
|
+
import { Params } from "./types";
|
|
4
|
+
export declare const protobufPackage = "cosmos.protocolpool.v1";
|
|
5
|
+
/**
|
|
6
|
+
* MsgFundCommunityPool allows an account to directly
|
|
7
|
+
* fund the community pool.
|
|
8
|
+
*/
|
|
9
|
+
export interface MsgFundCommunityPool {
|
|
10
|
+
depositor: string;
|
|
11
|
+
amount: Coin[];
|
|
12
|
+
}
|
|
13
|
+
/** MsgFundCommunityPoolResponse defines the Msg/FundCommunityPool response type. */
|
|
14
|
+
export interface MsgFundCommunityPoolResponse {
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* MsgCommunityPoolSpend defines a message for sending tokens from the community
|
|
18
|
+
* pool to another account. This message is typically executed via a governance
|
|
19
|
+
* proposal with the governance module being the executing authority.
|
|
20
|
+
*/
|
|
21
|
+
export interface MsgCommunityPoolSpend {
|
|
22
|
+
/** Authority is the address that controls the module (defaults to x/gov unless overwritten). */
|
|
23
|
+
authority: string;
|
|
24
|
+
recipient: string;
|
|
25
|
+
amount: Coin[];
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* MsgCommunityPoolSpendResponse defines the response to executing a
|
|
29
|
+
* MsgCommunityPoolSpend message.
|
|
30
|
+
*/
|
|
31
|
+
export interface MsgCommunityPoolSpendResponse {
|
|
32
|
+
}
|
|
33
|
+
/** MsgCreateContinuousFund defines a message for adding continuous funds. */
|
|
34
|
+
export interface MsgCreateContinuousFund {
|
|
35
|
+
/** Authority is the address that controls the module (defaults to x/gov unless overwritten). */
|
|
36
|
+
authority: string;
|
|
37
|
+
/** Recipient address of the account receiving funds. */
|
|
38
|
+
recipient: string;
|
|
39
|
+
/** Percentage is the percentage of funds to be allocated from Community pool. */
|
|
40
|
+
percentage: string;
|
|
41
|
+
/** Optional, if expiry is set, removes the state object when expired. */
|
|
42
|
+
expiry: Date | undefined;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* MsgCreateContinuousFundResponse defines the response to executing a
|
|
46
|
+
* MsgCreateContinuousFund message.
|
|
47
|
+
*/
|
|
48
|
+
export interface MsgCreateContinuousFundResponse {
|
|
49
|
+
}
|
|
50
|
+
/** MsgCancelContinuousFund defines a message to cancel continuous funds for a specific recipient. */
|
|
51
|
+
export interface MsgCancelContinuousFund {
|
|
52
|
+
/** Authority is the account address of authority. */
|
|
53
|
+
authority: string;
|
|
54
|
+
/** Recipient is the account address string of the recipient whose funds are to be cancelled. */
|
|
55
|
+
recipient: string;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* MsgCancelContinuousFundResponse defines the response to executing a
|
|
59
|
+
* MsgCancelContinuousFund message.
|
|
60
|
+
*/
|
|
61
|
+
export interface MsgCancelContinuousFundResponse {
|
|
62
|
+
/** CanceledTime is the canceled time. */
|
|
63
|
+
canceledTime: Date | undefined;
|
|
64
|
+
/** CanceledHeight defines the canceled block height. */
|
|
65
|
+
canceledHeight: number;
|
|
66
|
+
/** Recipient is the account address string of the recipient whose funds are cancelled. */
|
|
67
|
+
recipient: string;
|
|
68
|
+
}
|
|
69
|
+
/** MsgUpdateParams is the Msg/UpdateParams request type. */
|
|
70
|
+
export interface MsgUpdateParams {
|
|
71
|
+
/** authority is the address that controls the module (defaults to x/gov unless overwritten). */
|
|
72
|
+
authority: string;
|
|
73
|
+
/**
|
|
74
|
+
* params defines the x/protocolpool parameters to update.
|
|
75
|
+
*
|
|
76
|
+
* NOTE: All parameters must be supplied.
|
|
77
|
+
*/
|
|
78
|
+
params: Params | undefined;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* MsgUpdateParamsResponse defines the response structure for executing a
|
|
82
|
+
* MsgUpdateParams message.
|
|
83
|
+
*/
|
|
84
|
+
export interface MsgUpdateParamsResponse {
|
|
85
|
+
}
|
|
86
|
+
export declare const MsgFundCommunityPool: MessageFns<MsgFundCommunityPool>;
|
|
87
|
+
export declare const MsgFundCommunityPoolResponse: MessageFns<MsgFundCommunityPoolResponse>;
|
|
88
|
+
export declare const MsgCommunityPoolSpend: MessageFns<MsgCommunityPoolSpend>;
|
|
89
|
+
export declare const MsgCommunityPoolSpendResponse: MessageFns<MsgCommunityPoolSpendResponse>;
|
|
90
|
+
export declare const MsgCreateContinuousFund: MessageFns<MsgCreateContinuousFund>;
|
|
91
|
+
export declare const MsgCreateContinuousFundResponse: MessageFns<MsgCreateContinuousFundResponse>;
|
|
92
|
+
export declare const MsgCancelContinuousFund: MessageFns<MsgCancelContinuousFund>;
|
|
93
|
+
export declare const MsgCancelContinuousFundResponse: MessageFns<MsgCancelContinuousFundResponse>;
|
|
94
|
+
export declare const MsgUpdateParams: MessageFns<MsgUpdateParams>;
|
|
95
|
+
export declare const MsgUpdateParamsResponse: MessageFns<MsgUpdateParamsResponse>;
|
|
96
|
+
/** Msg defines the pool Msg service. */
|
|
97
|
+
export interface Msg {
|
|
98
|
+
/**
|
|
99
|
+
* FundCommunityPool defines a method to allow an account to directly
|
|
100
|
+
* fund the community pool.
|
|
101
|
+
*/
|
|
102
|
+
FundCommunityPool(request: MsgFundCommunityPool): Promise<MsgFundCommunityPoolResponse>;
|
|
103
|
+
/**
|
|
104
|
+
* CommunityPoolSpend defines a governance operation for sending tokens from
|
|
105
|
+
* the community pool in the x/protocolpool module to another account, which
|
|
106
|
+
* could be the governance module itself. The authority is defined in the
|
|
107
|
+
* keeper.
|
|
108
|
+
*/
|
|
109
|
+
CommunityPoolSpend(request: MsgCommunityPoolSpend): Promise<MsgCommunityPoolSpendResponse>;
|
|
110
|
+
/**
|
|
111
|
+
* CreateContinuousFund defines a method to distribute a percentage of funds to an address continuously.
|
|
112
|
+
* This ContinuousFund can be indefinite or run until a given expiry time.
|
|
113
|
+
* Funds come from validator block rewards from x/distribution, but may also come from
|
|
114
|
+
* any user who funds the ProtocolPoolEscrow module account directly through x/bank.
|
|
115
|
+
*/
|
|
116
|
+
CreateContinuousFund(request: MsgCreateContinuousFund): Promise<MsgCreateContinuousFundResponse>;
|
|
117
|
+
/** CancelContinuousFund defines a method for cancelling continuous fund. */
|
|
118
|
+
CancelContinuousFund(request: MsgCancelContinuousFund): Promise<MsgCancelContinuousFundResponse>;
|
|
119
|
+
/**
|
|
120
|
+
* UpdateParams defines a governance operation for updating the x/protocolpool module parameters.
|
|
121
|
+
* The authority is defined in the keeper.
|
|
122
|
+
*/
|
|
123
|
+
UpdateParams(request: MsgUpdateParams): Promise<MsgUpdateParamsResponse>;
|
|
124
|
+
}
|
|
125
|
+
export declare const MsgServiceName = "cosmos.protocolpool.v1.Msg";
|
|
126
|
+
export declare class MsgClientImpl implements Msg {
|
|
127
|
+
private readonly rpc;
|
|
128
|
+
private readonly service;
|
|
129
|
+
constructor(rpc: Rpc, opts?: {
|
|
130
|
+
service?: string;
|
|
131
|
+
});
|
|
132
|
+
FundCommunityPool(request: MsgFundCommunityPool): Promise<MsgFundCommunityPoolResponse>;
|
|
133
|
+
CommunityPoolSpend(request: MsgCommunityPoolSpend): Promise<MsgCommunityPoolSpendResponse>;
|
|
134
|
+
CreateContinuousFund(request: MsgCreateContinuousFund): Promise<MsgCreateContinuousFundResponse>;
|
|
135
|
+
CancelContinuousFund(request: MsgCancelContinuousFund): Promise<MsgCancelContinuousFundResponse>;
|
|
136
|
+
UpdateParams(request: MsgUpdateParams): Promise<MsgUpdateParamsResponse>;
|
|
137
|
+
}
|
|
138
|
+
interface Rpc {
|
|
139
|
+
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
|
|
140
|
+
}
|
|
141
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
142
|
+
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 {} ? {
|
|
143
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
144
|
+
} : Partial<T>;
|
|
145
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
146
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
147
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
148
|
+
} & {
|
|
149
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
150
|
+
};
|
|
151
|
+
export interface MessageFns<T> {
|
|
152
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
153
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
154
|
+
fromJSON(object: any): T;
|
|
155
|
+
toJSON(message: T): unknown;
|
|
156
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
157
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
158
|
+
}
|
|
159
|
+
export {};
|