@zoguxprotocol/proto 0.1.3 → 0.1.4
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zoguxprotocol/proto",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"access": "public",
|
|
5
5
|
"description": "Protos for Zogux protocol",
|
|
6
6
|
"author": "Zogux Trading Inc.",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"url": "https://github.com/zoguxprotocol/zogux-chain/issues"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@cosmjs/stargate": "^0.
|
|
38
|
+
"@cosmjs/stargate": "^0.33.1",
|
|
39
39
|
"@dydxprotocol/node-service-base-dev": "^0.3.2",
|
|
40
40
|
"@osmonauts/lcd": "^0.6.0",
|
|
41
41
|
"@osmonauts/telescope": "0.86.0",
|
|
@@ -184,9 +184,9 @@ import * as _344 from "./slashing/v1beta1/tx.rpc.msg";
|
|
|
184
184
|
import * as _345 from "./staking/v1beta1/tx.rpc.msg";
|
|
185
185
|
import * as _346 from "./upgrade/v1beta1/tx.rpc.msg";
|
|
186
186
|
import * as _347 from "./vesting/v1beta1/tx.rpc.msg";
|
|
187
|
-
import * as
|
|
188
|
-
import * as
|
|
189
|
-
import * as
|
|
187
|
+
import * as _413 from "./lcd";
|
|
188
|
+
import * as _414 from "./rpc.query";
|
|
189
|
+
import * as _415 from "./rpc.tx";
|
|
190
190
|
export namespace cosmos {
|
|
191
191
|
export namespace app {
|
|
192
192
|
export namespace runtime {
|
|
@@ -571,8 +571,8 @@ export namespace cosmos {
|
|
|
571
571
|
..._347
|
|
572
572
|
};
|
|
573
573
|
}
|
|
574
|
-
export const ClientFactory = { ...
|
|
575
|
-
...
|
|
576
|
-
...
|
|
574
|
+
export const ClientFactory = { ..._413,
|
|
575
|
+
..._414,
|
|
576
|
+
..._415
|
|
577
577
|
};
|
|
578
578
|
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Rpc } from "../../helpers";
|
|
2
|
+
import * as _m0 from "protobufjs/minimal";
|
|
3
|
+
import { MsgCreateAsset, MsgCreateAssetResponse } from "./tx";
|
|
4
|
+
/** Msg defines the Msg service. */
|
|
5
|
+
|
|
6
|
+
export interface Msg {
|
|
7
|
+
/** CreateAsset allows the authority to create a new asset. */
|
|
8
|
+
createAsset(request: MsgCreateAsset): Promise<MsgCreateAssetResponse>;
|
|
9
|
+
}
|
|
10
|
+
export class MsgClientImpl implements Msg {
|
|
11
|
+
private readonly rpc: Rpc;
|
|
12
|
+
|
|
13
|
+
constructor(rpc: Rpc) {
|
|
14
|
+
this.rpc = rpc;
|
|
15
|
+
this.createAsset = this.createAsset.bind(this);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
createAsset(request: MsgCreateAsset): Promise<MsgCreateAssetResponse> {
|
|
19
|
+
const data = MsgCreateAsset.encode(request).finish();
|
|
20
|
+
const promise = this.rpc.request("zogux.assets.Msg", "CreateAsset", data);
|
|
21
|
+
return promise.then(data => MsgCreateAssetResponse.decode(new _m0.Reader(data)));
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
}
|
|
@@ -1 +1,113 @@
|
|
|
1
|
-
|
|
1
|
+
import { Asset, AssetSDKType } from "./asset";
|
|
2
|
+
import * as _m0 from "protobufjs/minimal";
|
|
3
|
+
import { DeepPartial } from "../../helpers";
|
|
4
|
+
/** MsgCreateAsset defines a message for creating a new asset. */
|
|
5
|
+
|
|
6
|
+
export interface MsgCreateAsset {
|
|
7
|
+
/** The authority to create the asset (e.g. governance module). */
|
|
8
|
+
authority: string;
|
|
9
|
+
/** The asset to create. */
|
|
10
|
+
|
|
11
|
+
asset?: Asset;
|
|
12
|
+
}
|
|
13
|
+
/** MsgCreateAsset defines a message for creating a new asset. */
|
|
14
|
+
|
|
15
|
+
export interface MsgCreateAssetSDKType {
|
|
16
|
+
authority: string;
|
|
17
|
+
asset?: AssetSDKType;
|
|
18
|
+
}
|
|
19
|
+
/** MsgCreateAssetResponse defines the Msg/CreateAsset response type. */
|
|
20
|
+
|
|
21
|
+
export interface MsgCreateAssetResponse {}
|
|
22
|
+
/** MsgCreateAssetResponse defines the Msg/CreateAsset response type. */
|
|
23
|
+
|
|
24
|
+
export interface MsgCreateAssetResponseSDKType {}
|
|
25
|
+
|
|
26
|
+
function createBaseMsgCreateAsset(): MsgCreateAsset {
|
|
27
|
+
return {
|
|
28
|
+
authority: "",
|
|
29
|
+
asset: undefined
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export const MsgCreateAsset = {
|
|
34
|
+
encode(message: MsgCreateAsset, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
35
|
+
if (message.authority !== "") {
|
|
36
|
+
writer.uint32(10).string(message.authority);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
if (message.asset !== undefined) {
|
|
40
|
+
Asset.encode(message.asset, writer.uint32(18).fork()).ldelim();
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
return writer;
|
|
44
|
+
},
|
|
45
|
+
|
|
46
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreateAsset {
|
|
47
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
48
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
49
|
+
const message = createBaseMsgCreateAsset();
|
|
50
|
+
|
|
51
|
+
while (reader.pos < end) {
|
|
52
|
+
const tag = reader.uint32();
|
|
53
|
+
|
|
54
|
+
switch (tag >>> 3) {
|
|
55
|
+
case 1:
|
|
56
|
+
message.authority = reader.string();
|
|
57
|
+
break;
|
|
58
|
+
|
|
59
|
+
case 2:
|
|
60
|
+
message.asset = Asset.decode(reader, reader.uint32());
|
|
61
|
+
break;
|
|
62
|
+
|
|
63
|
+
default:
|
|
64
|
+
reader.skipType(tag & 7);
|
|
65
|
+
break;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return message;
|
|
70
|
+
},
|
|
71
|
+
|
|
72
|
+
fromPartial(object: DeepPartial<MsgCreateAsset>): MsgCreateAsset {
|
|
73
|
+
const message = createBaseMsgCreateAsset();
|
|
74
|
+
message.authority = object.authority ?? "";
|
|
75
|
+
message.asset = object.asset !== undefined && object.asset !== null ? Asset.fromPartial(object.asset) : undefined;
|
|
76
|
+
return message;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
function createBaseMsgCreateAssetResponse(): MsgCreateAssetResponse {
|
|
82
|
+
return {};
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export const MsgCreateAssetResponse = {
|
|
86
|
+
encode(_: MsgCreateAssetResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
87
|
+
return writer;
|
|
88
|
+
},
|
|
89
|
+
|
|
90
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreateAssetResponse {
|
|
91
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
92
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
93
|
+
const message = createBaseMsgCreateAssetResponse();
|
|
94
|
+
|
|
95
|
+
while (reader.pos < end) {
|
|
96
|
+
const tag = reader.uint32();
|
|
97
|
+
|
|
98
|
+
switch (tag >>> 3) {
|
|
99
|
+
default:
|
|
100
|
+
reader.skipType(tag & 7);
|
|
101
|
+
break;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
return message;
|
|
106
|
+
},
|
|
107
|
+
|
|
108
|
+
fromPartial(_: DeepPartial<MsgCreateAssetResponse>): MsgCreateAssetResponse {
|
|
109
|
+
const message = createBaseMsgCreateAssetResponse();
|
|
110
|
+
return message;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
};
|
|
@@ -186,27 +186,28 @@ import * as _390 from "./vault/query.rpc.Query";
|
|
|
186
186
|
import * as _391 from "./vest/query.rpc.Query";
|
|
187
187
|
import * as _392 from "./accountplus/tx.rpc.msg";
|
|
188
188
|
import * as _393 from "./affiliates/tx.rpc.msg";
|
|
189
|
-
import * as _394 from "./
|
|
190
|
-
import * as _395 from "./
|
|
191
|
-
import * as _396 from "./
|
|
192
|
-
import * as _397 from "./
|
|
193
|
-
import * as _398 from "./
|
|
194
|
-
import * as _399 from "./
|
|
195
|
-
import * as _400 from "./
|
|
196
|
-
import * as _401 from "./
|
|
197
|
-
import * as _402 from "./
|
|
198
|
-
import * as _403 from "./
|
|
199
|
-
import * as _404 from "./
|
|
200
|
-
import * as _405 from "./
|
|
201
|
-
import * as _406 from "./
|
|
202
|
-
import * as _407 from "./
|
|
203
|
-
import * as _408 from "./
|
|
204
|
-
import * as _409 from "./
|
|
205
|
-
import * as _410 from "./
|
|
206
|
-
import * as _411 from "./
|
|
207
|
-
import * as
|
|
208
|
-
import * as _416 from "./
|
|
209
|
-
import * as _417 from "./rpc.
|
|
189
|
+
import * as _394 from "./assets/tx.rpc.msg";
|
|
190
|
+
import * as _395 from "./blocktime/tx.rpc.msg";
|
|
191
|
+
import * as _396 from "./bridge/tx.rpc.msg";
|
|
192
|
+
import * as _397 from "./clob/tx.rpc.msg";
|
|
193
|
+
import * as _398 from "./delaymsg/tx.rpc.msg";
|
|
194
|
+
import * as _399 from "./feetiers/tx.rpc.msg";
|
|
195
|
+
import * as _400 from "./govplus/tx.rpc.msg";
|
|
196
|
+
import * as _401 from "./listing/tx.rpc.msg";
|
|
197
|
+
import * as _402 from "./perpetuals/tx.rpc.msg";
|
|
198
|
+
import * as _403 from "./prices/tx.rpc.msg";
|
|
199
|
+
import * as _404 from "./ratelimit/tx.rpc.msg";
|
|
200
|
+
import * as _405 from "./revshare/tx.rpc.msg";
|
|
201
|
+
import * as _406 from "./rewards/tx.rpc.msg";
|
|
202
|
+
import * as _407 from "./sending/tx.rpc.msg";
|
|
203
|
+
import * as _408 from "./spots/tx.rpc.msg";
|
|
204
|
+
import * as _409 from "./stats/tx.rpc.msg";
|
|
205
|
+
import * as _410 from "./token/tx.rpc.msg";
|
|
206
|
+
import * as _411 from "./vault/tx.rpc.msg";
|
|
207
|
+
import * as _412 from "./vest/tx.rpc.msg";
|
|
208
|
+
import * as _416 from "./lcd";
|
|
209
|
+
import * as _417 from "./rpc.query";
|
|
210
|
+
import * as _418 from "./rpc.tx";
|
|
210
211
|
export namespace zogux {
|
|
211
212
|
export const accountplus = { ..._146,
|
|
212
213
|
..._147,
|
|
@@ -231,7 +232,8 @@ export namespace zogux {
|
|
|
231
232
|
..._158,
|
|
232
233
|
..._159,
|
|
233
234
|
..._350,
|
|
234
|
-
..._371
|
|
235
|
+
..._371,
|
|
236
|
+
..._394
|
|
235
237
|
};
|
|
236
238
|
export const blocktime = { ..._160,
|
|
237
239
|
..._161,
|
|
@@ -240,7 +242,7 @@ export namespace zogux {
|
|
|
240
242
|
..._164,
|
|
241
243
|
..._351,
|
|
242
244
|
..._372,
|
|
243
|
-
...
|
|
245
|
+
..._395
|
|
244
246
|
};
|
|
245
247
|
export const bridge = { ..._165,
|
|
246
248
|
..._166,
|
|
@@ -254,7 +256,7 @@ export namespace zogux {
|
|
|
254
256
|
..._174,
|
|
255
257
|
..._352,
|
|
256
258
|
..._373,
|
|
257
|
-
...
|
|
259
|
+
..._396
|
|
258
260
|
};
|
|
259
261
|
export const clob = { ..._175,
|
|
260
262
|
..._176,
|
|
@@ -274,7 +276,7 @@ export namespace zogux {
|
|
|
274
276
|
..._190,
|
|
275
277
|
..._353,
|
|
276
278
|
..._374,
|
|
277
|
-
...
|
|
279
|
+
..._397
|
|
278
280
|
};
|
|
279
281
|
export namespace daemons {
|
|
280
282
|
export const bridge = { ..._191
|
|
@@ -291,7 +293,7 @@ export namespace zogux {
|
|
|
291
293
|
..._198,
|
|
292
294
|
..._354,
|
|
293
295
|
..._375,
|
|
294
|
-
...
|
|
296
|
+
..._398
|
|
295
297
|
};
|
|
296
298
|
export const epochs = { ..._199,
|
|
297
299
|
..._200,
|
|
@@ -307,13 +309,13 @@ export namespace zogux {
|
|
|
307
309
|
..._207,
|
|
308
310
|
..._356,
|
|
309
311
|
..._377,
|
|
310
|
-
...
|
|
312
|
+
..._399
|
|
311
313
|
};
|
|
312
314
|
export const govplus = { ..._208,
|
|
313
315
|
..._209,
|
|
314
316
|
..._210,
|
|
315
317
|
..._378,
|
|
316
|
-
...
|
|
318
|
+
..._400
|
|
317
319
|
};
|
|
318
320
|
export namespace indexer {
|
|
319
321
|
export const events = { ..._211
|
|
@@ -342,7 +344,7 @@ export namespace zogux {
|
|
|
342
344
|
..._224,
|
|
343
345
|
..._357,
|
|
344
346
|
..._379,
|
|
345
|
-
...
|
|
347
|
+
..._401
|
|
346
348
|
};
|
|
347
349
|
export const perpetuals = { ..._225,
|
|
348
350
|
..._226,
|
|
@@ -351,7 +353,7 @@ export namespace zogux {
|
|
|
351
353
|
..._229,
|
|
352
354
|
..._358,
|
|
353
355
|
..._380,
|
|
354
|
-
...
|
|
356
|
+
..._402
|
|
355
357
|
};
|
|
356
358
|
export const prices = { ..._230,
|
|
357
359
|
..._231,
|
|
@@ -361,7 +363,7 @@ export namespace zogux {
|
|
|
361
363
|
..._235,
|
|
362
364
|
..._359,
|
|
363
365
|
..._381,
|
|
364
|
-
...
|
|
366
|
+
..._403
|
|
365
367
|
};
|
|
366
368
|
export const ratelimit = { ..._236,
|
|
367
369
|
..._237,
|
|
@@ -371,7 +373,7 @@ export namespace zogux {
|
|
|
371
373
|
..._241,
|
|
372
374
|
..._360,
|
|
373
375
|
..._382,
|
|
374
|
-
...
|
|
376
|
+
..._404
|
|
375
377
|
};
|
|
376
378
|
export const revshare = { ..._242,
|
|
377
379
|
..._243,
|
|
@@ -380,7 +382,7 @@ export namespace zogux {
|
|
|
380
382
|
..._246,
|
|
381
383
|
..._361,
|
|
382
384
|
..._383,
|
|
383
|
-
...
|
|
385
|
+
..._405
|
|
384
386
|
};
|
|
385
387
|
export const rewards = { ..._247,
|
|
386
388
|
..._248,
|
|
@@ -389,14 +391,14 @@ export namespace zogux {
|
|
|
389
391
|
..._251,
|
|
390
392
|
..._362,
|
|
391
393
|
..._384,
|
|
392
|
-
...
|
|
394
|
+
..._406
|
|
393
395
|
};
|
|
394
396
|
export const sending = { ..._252,
|
|
395
397
|
..._253,
|
|
396
398
|
..._254,
|
|
397
399
|
..._255,
|
|
398
400
|
..._385,
|
|
399
|
-
...
|
|
401
|
+
..._407
|
|
400
402
|
};
|
|
401
403
|
export const spots = { ..._256,
|
|
402
404
|
..._257,
|
|
@@ -406,7 +408,7 @@ export namespace zogux {
|
|
|
406
408
|
..._261,
|
|
407
409
|
..._363,
|
|
408
410
|
..._386,
|
|
409
|
-
...
|
|
411
|
+
..._408
|
|
410
412
|
};
|
|
411
413
|
export const stats = { ..._262,
|
|
412
414
|
..._263,
|
|
@@ -415,7 +417,7 @@ export namespace zogux {
|
|
|
415
417
|
..._266,
|
|
416
418
|
..._364,
|
|
417
419
|
..._387,
|
|
418
|
-
...
|
|
420
|
+
..._409
|
|
419
421
|
};
|
|
420
422
|
export const subaccounts = { ..._267,
|
|
421
423
|
..._268,
|
|
@@ -433,7 +435,7 @@ export namespace zogux {
|
|
|
433
435
|
..._277,
|
|
434
436
|
..._366,
|
|
435
437
|
..._389,
|
|
436
|
-
...
|
|
438
|
+
..._410
|
|
437
439
|
};
|
|
438
440
|
export const vault = { ..._278,
|
|
439
441
|
..._279,
|
|
@@ -443,7 +445,7 @@ export namespace zogux {
|
|
|
443
445
|
..._283,
|
|
444
446
|
..._367,
|
|
445
447
|
..._390,
|
|
446
|
-
...
|
|
448
|
+
..._411
|
|
447
449
|
};
|
|
448
450
|
export const vest = { ..._284,
|
|
449
451
|
..._285,
|
|
@@ -451,10 +453,10 @@ export namespace zogux {
|
|
|
451
453
|
..._287,
|
|
452
454
|
..._368,
|
|
453
455
|
..._391,
|
|
454
|
-
...
|
|
456
|
+
..._412
|
|
455
457
|
};
|
|
456
|
-
export const ClientFactory = { ...
|
|
457
|
-
...
|
|
458
|
-
...
|
|
458
|
+
export const ClientFactory = { ..._416,
|
|
459
|
+
..._417,
|
|
460
|
+
..._418
|
|
459
461
|
};
|
|
460
462
|
}
|
|
@@ -61,6 +61,7 @@ export const createRPCMsgClient = async ({
|
|
|
61
61
|
zogux: {
|
|
62
62
|
accountplus: new (await import("./accountplus/tx.rpc.msg")).MsgClientImpl(rpc),
|
|
63
63
|
affiliates: new (await import("./affiliates/tx.rpc.msg")).MsgClientImpl(rpc),
|
|
64
|
+
assets: new (await import("./assets/tx.rpc.msg")).MsgClientImpl(rpc),
|
|
64
65
|
blocktime: new (await import("./blocktime/tx.rpc.msg")).MsgClientImpl(rpc),
|
|
65
66
|
bridge: new (await import("./bridge/tx.rpc.msg")).MsgClientImpl(rpc),
|
|
66
67
|
clob: new (await import("./clob/tx.rpc.msg")).MsgClientImpl(rpc),
|