coreum-js 2.18.5 → 2.18.7
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/dist/main/coreum/amino/types.js +22 -4
- package/dist/main/coreum/dex/v1/cosmos/cosmos-proto/proto/cosmos_proto/cosmos.d.ts +80 -0
- package/dist/main/coreum/dex/v1/cosmos/cosmos-proto/proto/cosmos_proto/cosmos.js +215 -0
- package/dist/main/coreum/dex/v1/cosmos/cosmos-sdk/proto/amino/amino.d.ts +1 -0
- package/dist/main/coreum/dex/v1/cosmos/cosmos-sdk/proto/amino/amino.js +10 -0
- package/dist/main/coreum/dex/v1/cosmos/cosmos-sdk/proto/cosmos/base/query/v1beta1/pagination.d.ts +86 -0
- package/dist/main/coreum/dex/v1/cosmos/cosmos-sdk/proto/cosmos/base/query/v1beta1/pagination.js +230 -0
- package/dist/main/coreum/dex/v1/cosmos/cosmos-sdk/proto/cosmos/base/v1beta1/coin.d.ts +53 -0
- package/dist/main/coreum/dex/v1/cosmos/cosmos-sdk/proto/cosmos/base/v1beta1/coin.js +252 -0
- package/dist/main/coreum/dex/v1/cosmos/cosmos-sdk/proto/cosmos/query/v1/query.d.ts +1 -0
- package/dist/main/coreum/dex/v1/cosmos/cosmos-sdk/proto/cosmos/query/v1/query.js +10 -0
- package/dist/main/coreum/dex/v1/cosmos/gogoproto/gogoproto/gogo.d.ts +1 -0
- package/dist/main/coreum/dex/v1/cosmos/gogoproto/gogoproto/gogo.js +10 -0
- package/dist/main/coreum/dex/v1/google/googleapis/google/api/annotations.d.ts +1 -0
- package/dist/main/coreum/dex/v1/google/googleapis/google/api/annotations.js +10 -0
- package/dist/main/coreum/dex/v1/google/googleapis/google/api/http.d.ts +379 -0
- package/dist/main/coreum/dex/v1/google/googleapis/google/api/http.js +355 -0
- package/dist/main/coreum/dex/v1/google/protobuf/descriptor.d.ts +1336 -0
- package/dist/main/coreum/dex/v1/google/protobuf/descriptor.js +5373 -0
- package/dist/main/coreum/dex/v1/google/protobuf/timestamp.d.ts +128 -0
- package/dist/main/coreum/dex/v1/google/protobuf/timestamp.js +92 -0
- package/dist/main/coreum/dex/v1/query.d.ts +23 -0
- package/dist/main/coreum/dex/v1/query.js +194 -3
- package/dist/module/coreum/amino/types.js +22 -4
- package/dist/module/coreum/dex/v1/cosmos/cosmos-proto/proto/cosmos_proto/cosmos.d.ts +80 -0
- package/dist/module/coreum/dex/v1/cosmos/cosmos-proto/proto/cosmos_proto/cosmos.js +210 -0
- package/dist/module/coreum/dex/v1/cosmos/cosmos-sdk/proto/amino/amino.d.ts +1 -0
- package/dist/module/coreum/dex/v1/cosmos/cosmos-sdk/proto/amino/amino.js +7 -0
- package/dist/module/coreum/dex/v1/cosmos/cosmos-sdk/proto/cosmos/base/query/v1beta1/pagination.d.ts +86 -0
- package/dist/module/coreum/dex/v1/cosmos/cosmos-sdk/proto/cosmos/base/query/v1beta1/pagination.js +227 -0
- package/dist/module/coreum/dex/v1/cosmos/cosmos-sdk/proto/cosmos/base/v1beta1/coin.d.ts +53 -0
- package/dist/module/coreum/dex/v1/cosmos/cosmos-sdk/proto/cosmos/base/v1beta1/coin.js +249 -0
- package/dist/module/coreum/dex/v1/cosmos/cosmos-sdk/proto/cosmos/query/v1/query.d.ts +1 -0
- package/dist/module/coreum/dex/v1/cosmos/cosmos-sdk/proto/cosmos/query/v1/query.js +7 -0
- package/dist/module/coreum/dex/v1/cosmos/gogoproto/gogoproto/gogo.d.ts +1 -0
- package/dist/module/coreum/dex/v1/cosmos/gogoproto/gogoproto/gogo.js +7 -0
- package/dist/module/coreum/dex/v1/google/googleapis/google/api/annotations.d.ts +1 -0
- package/dist/module/coreum/dex/v1/google/googleapis/google/api/annotations.js +7 -0
- package/dist/module/coreum/dex/v1/google/googleapis/google/api/http.d.ts +379 -0
- package/dist/module/coreum/dex/v1/google/googleapis/google/api/http.js +352 -0
- package/dist/module/coreum/dex/v1/google/protobuf/descriptor.d.ts +1336 -0
- package/dist/module/coreum/dex/v1/google/protobuf/descriptor.js +5329 -0
- package/dist/module/coreum/dex/v1/google/protobuf/timestamp.d.ts +128 -0
- package/dist/module/coreum/dex/v1/google/protobuf/timestamp.js +89 -0
- package/dist/module/coreum/dex/v1/query.d.ts +23 -0
- package/dist/module/coreum/dex/v1/query.js +193 -2
- package/package.json +1 -1
|
@@ -0,0 +1,355 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
+
// versions:
|
|
4
|
+
// protoc-gen-ts_proto v2.7.0
|
|
5
|
+
// protoc v6.32.0
|
|
6
|
+
// source: google/googleapis/google/api/http.proto
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.CustomHttpPattern = exports.HttpRule = exports.Http = exports.protobufPackage = void 0;
|
|
9
|
+
/* eslint-disable */
|
|
10
|
+
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
11
|
+
exports.protobufPackage = "google.api";
|
|
12
|
+
function createBaseHttp() {
|
|
13
|
+
return { rules: [], fullyDecodeReservedExpansion: false };
|
|
14
|
+
}
|
|
15
|
+
exports.Http = {
|
|
16
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
17
|
+
for (const v of message.rules) {
|
|
18
|
+
exports.HttpRule.encode(v, writer.uint32(10).fork()).join();
|
|
19
|
+
}
|
|
20
|
+
if (message.fullyDecodeReservedExpansion !== false) {
|
|
21
|
+
writer.uint32(16).bool(message.fullyDecodeReservedExpansion);
|
|
22
|
+
}
|
|
23
|
+
return writer;
|
|
24
|
+
},
|
|
25
|
+
decode(input, length) {
|
|
26
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
27
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
28
|
+
const message = createBaseHttp();
|
|
29
|
+
while (reader.pos < end) {
|
|
30
|
+
const tag = reader.uint32();
|
|
31
|
+
switch (tag >>> 3) {
|
|
32
|
+
case 1: {
|
|
33
|
+
if (tag !== 10) {
|
|
34
|
+
break;
|
|
35
|
+
}
|
|
36
|
+
message.rules.push(exports.HttpRule.decode(reader, reader.uint32()));
|
|
37
|
+
continue;
|
|
38
|
+
}
|
|
39
|
+
case 2: {
|
|
40
|
+
if (tag !== 16) {
|
|
41
|
+
break;
|
|
42
|
+
}
|
|
43
|
+
message.fullyDecodeReservedExpansion = reader.bool();
|
|
44
|
+
continue;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
48
|
+
break;
|
|
49
|
+
}
|
|
50
|
+
reader.skip(tag & 7);
|
|
51
|
+
}
|
|
52
|
+
return message;
|
|
53
|
+
},
|
|
54
|
+
fromJSON(object) {
|
|
55
|
+
return {
|
|
56
|
+
rules: globalThis.Array.isArray(object?.rules) ? object.rules.map((e) => exports.HttpRule.fromJSON(e)) : [],
|
|
57
|
+
fullyDecodeReservedExpansion: isSet(object.fullyDecodeReservedExpansion)
|
|
58
|
+
? globalThis.Boolean(object.fullyDecodeReservedExpansion)
|
|
59
|
+
: false,
|
|
60
|
+
};
|
|
61
|
+
},
|
|
62
|
+
toJSON(message) {
|
|
63
|
+
const obj = {};
|
|
64
|
+
if (message.rules?.length) {
|
|
65
|
+
obj.rules = message.rules.map((e) => exports.HttpRule.toJSON(e));
|
|
66
|
+
}
|
|
67
|
+
if (message.fullyDecodeReservedExpansion !== false) {
|
|
68
|
+
obj.fullyDecodeReservedExpansion = message.fullyDecodeReservedExpansion;
|
|
69
|
+
}
|
|
70
|
+
return obj;
|
|
71
|
+
},
|
|
72
|
+
create(base) {
|
|
73
|
+
return exports.Http.fromPartial(base ?? {});
|
|
74
|
+
},
|
|
75
|
+
fromPartial(object) {
|
|
76
|
+
const message = createBaseHttp();
|
|
77
|
+
message.rules = object.rules?.map((e) => exports.HttpRule.fromPartial(e)) || [];
|
|
78
|
+
message.fullyDecodeReservedExpansion = object.fullyDecodeReservedExpansion ?? false;
|
|
79
|
+
return message;
|
|
80
|
+
},
|
|
81
|
+
};
|
|
82
|
+
function createBaseHttpRule() {
|
|
83
|
+
return {
|
|
84
|
+
selector: "",
|
|
85
|
+
get: undefined,
|
|
86
|
+
put: undefined,
|
|
87
|
+
post: undefined,
|
|
88
|
+
delete: undefined,
|
|
89
|
+
patch: undefined,
|
|
90
|
+
custom: undefined,
|
|
91
|
+
body: "",
|
|
92
|
+
responseBody: "",
|
|
93
|
+
additionalBindings: [],
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
exports.HttpRule = {
|
|
97
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
98
|
+
if (message.selector !== "") {
|
|
99
|
+
writer.uint32(10).string(message.selector);
|
|
100
|
+
}
|
|
101
|
+
if (message.get !== undefined) {
|
|
102
|
+
writer.uint32(18).string(message.get);
|
|
103
|
+
}
|
|
104
|
+
if (message.put !== undefined) {
|
|
105
|
+
writer.uint32(26).string(message.put);
|
|
106
|
+
}
|
|
107
|
+
if (message.post !== undefined) {
|
|
108
|
+
writer.uint32(34).string(message.post);
|
|
109
|
+
}
|
|
110
|
+
if (message.delete !== undefined) {
|
|
111
|
+
writer.uint32(42).string(message.delete);
|
|
112
|
+
}
|
|
113
|
+
if (message.patch !== undefined) {
|
|
114
|
+
writer.uint32(50).string(message.patch);
|
|
115
|
+
}
|
|
116
|
+
if (message.custom !== undefined) {
|
|
117
|
+
exports.CustomHttpPattern.encode(message.custom, writer.uint32(66).fork()).join();
|
|
118
|
+
}
|
|
119
|
+
if (message.body !== "") {
|
|
120
|
+
writer.uint32(58).string(message.body);
|
|
121
|
+
}
|
|
122
|
+
if (message.responseBody !== "") {
|
|
123
|
+
writer.uint32(98).string(message.responseBody);
|
|
124
|
+
}
|
|
125
|
+
for (const v of message.additionalBindings) {
|
|
126
|
+
exports.HttpRule.encode(v, writer.uint32(90).fork()).join();
|
|
127
|
+
}
|
|
128
|
+
return writer;
|
|
129
|
+
},
|
|
130
|
+
decode(input, length) {
|
|
131
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
132
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
133
|
+
const message = createBaseHttpRule();
|
|
134
|
+
while (reader.pos < end) {
|
|
135
|
+
const tag = reader.uint32();
|
|
136
|
+
switch (tag >>> 3) {
|
|
137
|
+
case 1: {
|
|
138
|
+
if (tag !== 10) {
|
|
139
|
+
break;
|
|
140
|
+
}
|
|
141
|
+
message.selector = reader.string();
|
|
142
|
+
continue;
|
|
143
|
+
}
|
|
144
|
+
case 2: {
|
|
145
|
+
if (tag !== 18) {
|
|
146
|
+
break;
|
|
147
|
+
}
|
|
148
|
+
message.get = reader.string();
|
|
149
|
+
continue;
|
|
150
|
+
}
|
|
151
|
+
case 3: {
|
|
152
|
+
if (tag !== 26) {
|
|
153
|
+
break;
|
|
154
|
+
}
|
|
155
|
+
message.put = reader.string();
|
|
156
|
+
continue;
|
|
157
|
+
}
|
|
158
|
+
case 4: {
|
|
159
|
+
if (tag !== 34) {
|
|
160
|
+
break;
|
|
161
|
+
}
|
|
162
|
+
message.post = reader.string();
|
|
163
|
+
continue;
|
|
164
|
+
}
|
|
165
|
+
case 5: {
|
|
166
|
+
if (tag !== 42) {
|
|
167
|
+
break;
|
|
168
|
+
}
|
|
169
|
+
message.delete = reader.string();
|
|
170
|
+
continue;
|
|
171
|
+
}
|
|
172
|
+
case 6: {
|
|
173
|
+
if (tag !== 50) {
|
|
174
|
+
break;
|
|
175
|
+
}
|
|
176
|
+
message.patch = reader.string();
|
|
177
|
+
continue;
|
|
178
|
+
}
|
|
179
|
+
case 8: {
|
|
180
|
+
if (tag !== 66) {
|
|
181
|
+
break;
|
|
182
|
+
}
|
|
183
|
+
message.custom = exports.CustomHttpPattern.decode(reader, reader.uint32());
|
|
184
|
+
continue;
|
|
185
|
+
}
|
|
186
|
+
case 7: {
|
|
187
|
+
if (tag !== 58) {
|
|
188
|
+
break;
|
|
189
|
+
}
|
|
190
|
+
message.body = reader.string();
|
|
191
|
+
continue;
|
|
192
|
+
}
|
|
193
|
+
case 12: {
|
|
194
|
+
if (tag !== 98) {
|
|
195
|
+
break;
|
|
196
|
+
}
|
|
197
|
+
message.responseBody = reader.string();
|
|
198
|
+
continue;
|
|
199
|
+
}
|
|
200
|
+
case 11: {
|
|
201
|
+
if (tag !== 90) {
|
|
202
|
+
break;
|
|
203
|
+
}
|
|
204
|
+
message.additionalBindings.push(exports.HttpRule.decode(reader, reader.uint32()));
|
|
205
|
+
continue;
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
209
|
+
break;
|
|
210
|
+
}
|
|
211
|
+
reader.skip(tag & 7);
|
|
212
|
+
}
|
|
213
|
+
return message;
|
|
214
|
+
},
|
|
215
|
+
fromJSON(object) {
|
|
216
|
+
return {
|
|
217
|
+
selector: isSet(object.selector) ? globalThis.String(object.selector) : "",
|
|
218
|
+
get: isSet(object.get) ? globalThis.String(object.get) : undefined,
|
|
219
|
+
put: isSet(object.put) ? globalThis.String(object.put) : undefined,
|
|
220
|
+
post: isSet(object.post) ? globalThis.String(object.post) : undefined,
|
|
221
|
+
delete: isSet(object.delete) ? globalThis.String(object.delete) : undefined,
|
|
222
|
+
patch: isSet(object.patch) ? globalThis.String(object.patch) : undefined,
|
|
223
|
+
custom: isSet(object.custom) ? exports.CustomHttpPattern.fromJSON(object.custom) : undefined,
|
|
224
|
+
body: isSet(object.body) ? globalThis.String(object.body) : "",
|
|
225
|
+
responseBody: isSet(object.responseBody) ? globalThis.String(object.responseBody) : "",
|
|
226
|
+
additionalBindings: globalThis.Array.isArray(object?.additionalBindings)
|
|
227
|
+
? object.additionalBindings.map((e) => exports.HttpRule.fromJSON(e))
|
|
228
|
+
: [],
|
|
229
|
+
};
|
|
230
|
+
},
|
|
231
|
+
toJSON(message) {
|
|
232
|
+
const obj = {};
|
|
233
|
+
if (message.selector !== "") {
|
|
234
|
+
obj.selector = message.selector;
|
|
235
|
+
}
|
|
236
|
+
if (message.get !== undefined) {
|
|
237
|
+
obj.get = message.get;
|
|
238
|
+
}
|
|
239
|
+
if (message.put !== undefined) {
|
|
240
|
+
obj.put = message.put;
|
|
241
|
+
}
|
|
242
|
+
if (message.post !== undefined) {
|
|
243
|
+
obj.post = message.post;
|
|
244
|
+
}
|
|
245
|
+
if (message.delete !== undefined) {
|
|
246
|
+
obj.delete = message.delete;
|
|
247
|
+
}
|
|
248
|
+
if (message.patch !== undefined) {
|
|
249
|
+
obj.patch = message.patch;
|
|
250
|
+
}
|
|
251
|
+
if (message.custom !== undefined) {
|
|
252
|
+
obj.custom = exports.CustomHttpPattern.toJSON(message.custom);
|
|
253
|
+
}
|
|
254
|
+
if (message.body !== "") {
|
|
255
|
+
obj.body = message.body;
|
|
256
|
+
}
|
|
257
|
+
if (message.responseBody !== "") {
|
|
258
|
+
obj.responseBody = message.responseBody;
|
|
259
|
+
}
|
|
260
|
+
if (message.additionalBindings?.length) {
|
|
261
|
+
obj.additionalBindings = message.additionalBindings.map((e) => exports.HttpRule.toJSON(e));
|
|
262
|
+
}
|
|
263
|
+
return obj;
|
|
264
|
+
},
|
|
265
|
+
create(base) {
|
|
266
|
+
return exports.HttpRule.fromPartial(base ?? {});
|
|
267
|
+
},
|
|
268
|
+
fromPartial(object) {
|
|
269
|
+
const message = createBaseHttpRule();
|
|
270
|
+
message.selector = object.selector ?? "";
|
|
271
|
+
message.get = object.get ?? undefined;
|
|
272
|
+
message.put = object.put ?? undefined;
|
|
273
|
+
message.post = object.post ?? undefined;
|
|
274
|
+
message.delete = object.delete ?? undefined;
|
|
275
|
+
message.patch = object.patch ?? undefined;
|
|
276
|
+
message.custom = (object.custom !== undefined && object.custom !== null)
|
|
277
|
+
? exports.CustomHttpPattern.fromPartial(object.custom)
|
|
278
|
+
: undefined;
|
|
279
|
+
message.body = object.body ?? "";
|
|
280
|
+
message.responseBody = object.responseBody ?? "";
|
|
281
|
+
message.additionalBindings = object.additionalBindings?.map((e) => exports.HttpRule.fromPartial(e)) || [];
|
|
282
|
+
return message;
|
|
283
|
+
},
|
|
284
|
+
};
|
|
285
|
+
function createBaseCustomHttpPattern() {
|
|
286
|
+
return { kind: "", path: "" };
|
|
287
|
+
}
|
|
288
|
+
exports.CustomHttpPattern = {
|
|
289
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
290
|
+
if (message.kind !== "") {
|
|
291
|
+
writer.uint32(10).string(message.kind);
|
|
292
|
+
}
|
|
293
|
+
if (message.path !== "") {
|
|
294
|
+
writer.uint32(18).string(message.path);
|
|
295
|
+
}
|
|
296
|
+
return writer;
|
|
297
|
+
},
|
|
298
|
+
decode(input, length) {
|
|
299
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
300
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
301
|
+
const message = createBaseCustomHttpPattern();
|
|
302
|
+
while (reader.pos < end) {
|
|
303
|
+
const tag = reader.uint32();
|
|
304
|
+
switch (tag >>> 3) {
|
|
305
|
+
case 1: {
|
|
306
|
+
if (tag !== 10) {
|
|
307
|
+
break;
|
|
308
|
+
}
|
|
309
|
+
message.kind = reader.string();
|
|
310
|
+
continue;
|
|
311
|
+
}
|
|
312
|
+
case 2: {
|
|
313
|
+
if (tag !== 18) {
|
|
314
|
+
break;
|
|
315
|
+
}
|
|
316
|
+
message.path = reader.string();
|
|
317
|
+
continue;
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
321
|
+
break;
|
|
322
|
+
}
|
|
323
|
+
reader.skip(tag & 7);
|
|
324
|
+
}
|
|
325
|
+
return message;
|
|
326
|
+
},
|
|
327
|
+
fromJSON(object) {
|
|
328
|
+
return {
|
|
329
|
+
kind: isSet(object.kind) ? globalThis.String(object.kind) : "",
|
|
330
|
+
path: isSet(object.path) ? globalThis.String(object.path) : "",
|
|
331
|
+
};
|
|
332
|
+
},
|
|
333
|
+
toJSON(message) {
|
|
334
|
+
const obj = {};
|
|
335
|
+
if (message.kind !== "") {
|
|
336
|
+
obj.kind = message.kind;
|
|
337
|
+
}
|
|
338
|
+
if (message.path !== "") {
|
|
339
|
+
obj.path = message.path;
|
|
340
|
+
}
|
|
341
|
+
return obj;
|
|
342
|
+
},
|
|
343
|
+
create(base) {
|
|
344
|
+
return exports.CustomHttpPattern.fromPartial(base ?? {});
|
|
345
|
+
},
|
|
346
|
+
fromPartial(object) {
|
|
347
|
+
const message = createBaseCustomHttpPattern();
|
|
348
|
+
message.kind = object.kind ?? "";
|
|
349
|
+
message.path = object.path ?? "";
|
|
350
|
+
return message;
|
|
351
|
+
},
|
|
352
|
+
};
|
|
353
|
+
function isSet(value) {
|
|
354
|
+
return value !== null && value !== undefined;
|
|
355
|
+
}
|