@n1xyz/nord-ts 0.1.7 → 0.1.9
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/actions.js +39 -82
- package/dist/bundle.js +79181 -0
- package/dist/client/Nord.d.ts +13 -2
- package/dist/client/Nord.js +68 -78
- package/dist/client/NordAdmin.d.ts +2 -2
- package/dist/client/NordAdmin.js +57 -89
- package/dist/client/NordUser.js +118 -147
- package/dist/const.js +5 -8
- package/dist/error.js +7 -5
- package/dist/gen/nord_pb.js +88 -92
- package/dist/gen/openapi.d.ts +83 -6
- package/dist/gen/openapi.js +1 -2
- package/dist/index.js +10 -49
- package/dist/types.d.ts +3 -0
- package/dist/types.js +21 -60
- package/dist/utils.js +38 -86
- package/dist/websocket/NordWebSocketClient.js +12 -17
- package/dist/websocket/Subscriber.js +6 -7
- package/dist/websocket/events.js +1 -2
- package/dist/websocket/index.js +10 -15
- package/package.json +3 -4
- package/dist/api/client.d.ts +0 -14
- package/dist/api/client.js +0 -45
- package/dist/bridge/client.d.ts +0 -151
- package/dist/bridge/client.js +0 -434
- package/dist/bridge/const.d.ts +0 -23
- package/dist/bridge/const.js +0 -47
- package/dist/bridge/index.d.ts +0 -4
- package/dist/bridge/index.js +0 -23
- package/dist/bridge/types.d.ts +0 -120
- package/dist/bridge/types.js +0 -18
- package/dist/bridge/utils.d.ts +0 -64
- package/dist/bridge/utils.js +0 -131
- package/dist/gen/common.d.ts +0 -68
- package/dist/gen/common.js +0 -215
- package/dist/gen/nord.d.ts +0 -882
- package/dist/gen/nord.js +0 -6520
- package/dist/idl/bridge.d.ts +0 -569
- package/dist/idl/bridge.js +0 -8
- package/dist/idl/bridge.json +0 -1506
- package/dist/idl/index.d.ts +0 -607
- package/dist/idl/index.js +0 -8
- package/dist/nord/api/actions.d.ts +0 -126
- package/dist/nord/api/actions.js +0 -397
- package/dist/nord/api/core.d.ts +0 -16
- package/dist/nord/api/core.js +0 -81
- package/dist/nord/api/market.d.ts +0 -36
- package/dist/nord/api/market.js +0 -96
- package/dist/nord/api/metrics.d.ts +0 -67
- package/dist/nord/api/metrics.js +0 -229
- package/dist/nord/api/queries.d.ts +0 -46
- package/dist/nord/api/queries.js +0 -109
- package/dist/nord/api/triggers.d.ts +0 -7
- package/dist/nord/api/triggers.js +0 -38
- package/dist/nord/client/Nord.d.ts +0 -396
- package/dist/nord/client/Nord.js +0 -747
- package/dist/nord/client/NordAdmin.d.ts +0 -259
- package/dist/nord/client/NordAdmin.js +0 -395
- package/dist/nord/client/NordClient.d.ts +0 -33
- package/dist/nord/client/NordClient.js +0 -45
- package/dist/nord/client/NordUser.d.ts +0 -362
- package/dist/nord/client/NordUser.js +0 -781
- package/dist/nord/index.d.ts +0 -11
- package/dist/nord/index.js +0 -36
- package/dist/nord/models/Subscriber.d.ts +0 -37
- package/dist/nord/models/Subscriber.js +0 -25
- package/dist/nord/utils/NordError.d.ts +0 -35
- package/dist/nord/utils/NordError.js +0 -49
- package/src/actions.ts +0 -333
- package/src/client/Nord.ts +0 -934
- package/src/client/NordAdmin.ts +0 -484
- package/src/client/NordUser.ts +0 -1122
- package/src/const.ts +0 -34
- package/src/error.ts +0 -76
- package/src/gen/.gitkeep +0 -0
- package/src/gen/nord_pb.ts +0 -5053
- package/src/gen/openapi.ts +0 -2904
- package/src/index.ts +0 -11
- package/src/types.ts +0 -327
- package/src/utils.ts +0 -266
- package/src/websocket/NordWebSocketClient.ts +0 -316
- package/src/websocket/Subscriber.ts +0 -56
- package/src/websocket/events.ts +0 -31
- package/src/websocket/index.ts +0 -105
package/src/gen/nord_pb.ts
DELETED
|
@@ -1,5053 +0,0 @@
|
|
|
1
|
-
// TODO: add buf to control incompatible changes
|
|
2
|
-
// Only the `Action` and `Receipt` messages are length-delimited,
|
|
3
|
-
// i.e. prefixed with a varint encoding the length of the protobuf message.
|
|
4
|
-
// All other message types are encoded normally, i.e. with no prefix.
|
|
5
|
-
|
|
6
|
-
// @generated by protoc-gen-es v2.6.3 with parameter "target=ts,json_types=true"
|
|
7
|
-
// @generated from file nord.proto (package nord, syntax proto3)
|
|
8
|
-
/* eslint-disable */
|
|
9
|
-
|
|
10
|
-
import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
|
|
11
|
-
import { enumDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
|
|
12
|
-
import type { Message } from "@bufbuild/protobuf";
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* Describes the file nord.proto.
|
|
16
|
-
*/
|
|
17
|
-
export const file_nord: GenFile = /*@__PURE__*/
|
|
18
|
-
fileDesc("Cgpub3JkLnByb3RvEgRub3JkIj0KDUZlZVRpZXJDb25maWcSFQoNbWFrZXJfZmVlX2JwcxgBIAEoDRIVCg10YWtlcl9mZWVfYnBzGAIgASgNItABCgZNYXJrZXQSEQoJbWFya2V0X2lkGAEgASgNEhYKDnByaWNlX2RlY2ltYWxzGAIgASgNEhUKDXNpemVfZGVjaW1hbHMYAyABKA0SFQoNYmFzZV90b2tlbl9pZBgEIAEoDRIlCgttYXJrZXRfdHlwZRgFIAEoDjIQLm5vcmQuTWFya2V0VHlwZRIPCgdpbWZfYnBzGAYgASgNEg8KB2NtZl9icHMYByABKA0SDwoHbW1mX2JwcxgIIAEoDRITCgt2aWV3X3N5bWJvbBgKIAEoCSJaCgVUb2tlbhIQCgh0b2tlbl9pZBgBIAEoDRIWCg50b2tlbl9kZWNpbWFscxgCIAEoDRISCgp3ZWlnaHRfYnBzGAQgASgNEhMKC3ZpZXdfc3ltYm9sGAUgASgJIigKCVF1b3RlU2l6ZRIMCgRzaXplGAEgASgEEg0KBXByaWNlGAIgASgEIk4KCk9yZGVyTGltaXQSDQoFcHJpY2UYBiABKAQSDAoEc2l6ZRgHIAEoBBIjCgpxdW90ZV9zaXplGAggASgLMg8ubm9yZC5RdW90ZVNpemUiYAoJT3JkZXJUeXBlEhgKBHNpZGUYAyABKA4yCi5ub3JkLlNpZGUSIQoJZ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lCiBPUkRFUl9TSVpFX0VYQ0VFRFNfUE9TSVRJT05fU0laRRD5ARIoCiNBVE9NSUNTX1RSQURFU19DQU5OT1RfRk9MTE9XX1BMQUNFUxCAAhIwCitBVE9NSUNTX0NBTkNFTFNfQ0FOTk9UX0ZPTExPV19UUkFERVNfUExBQ0VTEIECEiYKIUFDVElPTl9QT1NJVElPTl9TSE9VTERfQkVfQ09WRVJFRBCRAhIZChRBQ1RJT05fSU5WQUxJRF9OT05DRRCSAhIpCiRBQ1RJT05fUFJPUE9TRURfUFJJQ0VfTVVTVF9CRV9ISUdIRVIQkwISHAoXQURNSU5fUk9MRV9JTlNVRkZJQ0lFTlQQlAISFAoPQURNSU5fTk9UX0ZPVU5EEJUCEikKJFVOSVFVRV9TVVBFUl9BRE1JTl9DQU5OT1RfQkVfUkVNT1ZFRBCWAhIfChpTVVBFUl9BRE1JTl9BTFJFQURZX0VYSVNUUxCXAhIUCg9OT1RfSU1QTEVNRU5URUQQ9AMSDAoHRHJvcHBlZBDnByoeCg5TcGVjaWFsQWNjb3VudBIMCghGZWVWYXVsdBAAYgZwcm90bzM");
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* @generated from message nord.FeeTierConfig
|
|
22
|
-
*/
|
|
23
|
-
export type FeeTierConfig = Message<"nord.FeeTierConfig"> & {
|
|
24
|
-
/**
|
|
25
|
-
* @generated from field: uint32 maker_fee_bps = 1;
|
|
26
|
-
*/
|
|
27
|
-
makerFeeBps: number;
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* @generated from field: uint32 taker_fee_bps = 2;
|
|
31
|
-
*/
|
|
32
|
-
takerFeeBps: number;
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* @generated from message nord.FeeTierConfig
|
|
37
|
-
*/
|
|
38
|
-
export type FeeTierConfigJson = {
|
|
39
|
-
/**
|
|
40
|
-
* @generated from field: uint32 maker_fee_bps = 1;
|
|
41
|
-
*/
|
|
42
|
-
makerFeeBps?: number;
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* @generated from field: uint32 taker_fee_bps = 2;
|
|
46
|
-
*/
|
|
47
|
-
takerFeeBps?: number;
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* Describes the message nord.FeeTierConfig.
|
|
52
|
-
* Use `create(FeeTierConfigSchema)` to create a new message.
|
|
53
|
-
*/
|
|
54
|
-
export const FeeTierConfigSchema: GenMessage<FeeTierConfig, {jsonType: FeeTierConfigJson}> = /*@__PURE__*/
|
|
55
|
-
messageDesc(file_nord, 0);
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* @generated from message nord.Market
|
|
59
|
-
*/
|
|
60
|
-
export type Market = Message<"nord.Market"> & {
|
|
61
|
-
/**
|
|
62
|
-
* @generated from field: uint32 market_id = 1;
|
|
63
|
-
*/
|
|
64
|
-
marketId: number;
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* @generated from field: uint32 price_decimals = 2;
|
|
68
|
-
*/
|
|
69
|
-
priceDecimals: number;
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* @generated from field: uint32 size_decimals = 3;
|
|
73
|
-
*/
|
|
74
|
-
sizeDecimals: number;
|
|
75
|
-
|
|
76
|
-
/**
|
|
77
|
-
* @generated from field: uint32 base_token_id = 4;
|
|
78
|
-
*/
|
|
79
|
-
baseTokenId: number;
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* @generated from field: nord.MarketType market_type = 5;
|
|
83
|
-
*/
|
|
84
|
-
marketType: MarketType;
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
* @generated from field: uint32 imf_bps = 6;
|
|
88
|
-
*/
|
|
89
|
-
imfBps: number;
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* @generated from field: uint32 cmf_bps = 7;
|
|
93
|
-
*/
|
|
94
|
-
cmfBps: number;
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* @generated from field: uint32 mmf_bps = 8;
|
|
98
|
-
*/
|
|
99
|
-
mmfBps: number;
|
|
100
|
-
|
|
101
|
-
/**
|
|
102
|
-
* @generated from field: string view_symbol = 10;
|
|
103
|
-
*/
|
|
104
|
-
viewSymbol: string;
|
|
105
|
-
};
|
|
106
|
-
|
|
107
|
-
/**
|
|
108
|
-
* @generated from message nord.Market
|
|
109
|
-
*/
|
|
110
|
-
export type MarketJson = {
|
|
111
|
-
/**
|
|
112
|
-
* @generated from field: uint32 market_id = 1;
|
|
113
|
-
*/
|
|
114
|
-
marketId?: number;
|
|
115
|
-
|
|
116
|
-
/**
|
|
117
|
-
* @generated from field: uint32 price_decimals = 2;
|
|
118
|
-
*/
|
|
119
|
-
priceDecimals?: number;
|
|
120
|
-
|
|
121
|
-
/**
|
|
122
|
-
* @generated from field: uint32 size_decimals = 3;
|
|
123
|
-
*/
|
|
124
|
-
sizeDecimals?: number;
|
|
125
|
-
|
|
126
|
-
/**
|
|
127
|
-
* @generated from field: uint32 base_token_id = 4;
|
|
128
|
-
*/
|
|
129
|
-
baseTokenId?: number;
|
|
130
|
-
|
|
131
|
-
/**
|
|
132
|
-
* @generated from field: nord.MarketType market_type = 5;
|
|
133
|
-
*/
|
|
134
|
-
marketType?: MarketTypeJson;
|
|
135
|
-
|
|
136
|
-
/**
|
|
137
|
-
* @generated from field: uint32 imf_bps = 6;
|
|
138
|
-
*/
|
|
139
|
-
imfBps?: number;
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
* @generated from field: uint32 cmf_bps = 7;
|
|
143
|
-
*/
|
|
144
|
-
cmfBps?: number;
|
|
145
|
-
|
|
146
|
-
/**
|
|
147
|
-
* @generated from field: uint32 mmf_bps = 8;
|
|
148
|
-
*/
|
|
149
|
-
mmfBps?: number;
|
|
150
|
-
|
|
151
|
-
/**
|
|
152
|
-
* @generated from field: string view_symbol = 10;
|
|
153
|
-
*/
|
|
154
|
-
viewSymbol?: string;
|
|
155
|
-
};
|
|
156
|
-
|
|
157
|
-
/**
|
|
158
|
-
* Describes the message nord.Market.
|
|
159
|
-
* Use `create(MarketSchema)` to create a new message.
|
|
160
|
-
*/
|
|
161
|
-
export const MarketSchema: GenMessage<Market, {jsonType: MarketJson}> = /*@__PURE__*/
|
|
162
|
-
messageDesc(file_nord, 1);
|
|
163
|
-
|
|
164
|
-
/**
|
|
165
|
-
* @generated from message nord.Token
|
|
166
|
-
*/
|
|
167
|
-
export type Token = Message<"nord.Token"> & {
|
|
168
|
-
/**
|
|
169
|
-
* @generated from field: uint32 token_id = 1;
|
|
170
|
-
*/
|
|
171
|
-
tokenId: number;
|
|
172
|
-
|
|
173
|
-
/**
|
|
174
|
-
* / See CreateToken for details.
|
|
175
|
-
*
|
|
176
|
-
* @generated from field: uint32 token_decimals = 2;
|
|
177
|
-
*/
|
|
178
|
-
tokenDecimals: number;
|
|
179
|
-
|
|
180
|
-
/**
|
|
181
|
-
* @generated from field: uint32 weight_bps = 4;
|
|
182
|
-
*/
|
|
183
|
-
weightBps: number;
|
|
184
|
-
|
|
185
|
-
/**
|
|
186
|
-
* @generated from field: string view_symbol = 5;
|
|
187
|
-
*/
|
|
188
|
-
viewSymbol: string;
|
|
189
|
-
};
|
|
190
|
-
|
|
191
|
-
/**
|
|
192
|
-
* @generated from message nord.Token
|
|
193
|
-
*/
|
|
194
|
-
export type TokenJson = {
|
|
195
|
-
/**
|
|
196
|
-
* @generated from field: uint32 token_id = 1;
|
|
197
|
-
*/
|
|
198
|
-
tokenId?: number;
|
|
199
|
-
|
|
200
|
-
/**
|
|
201
|
-
* / See CreateToken for details.
|
|
202
|
-
*
|
|
203
|
-
* @generated from field: uint32 token_decimals = 2;
|
|
204
|
-
*/
|
|
205
|
-
tokenDecimals?: number;
|
|
206
|
-
|
|
207
|
-
/**
|
|
208
|
-
* @generated from field: uint32 weight_bps = 4;
|
|
209
|
-
*/
|
|
210
|
-
weightBps?: number;
|
|
211
|
-
|
|
212
|
-
/**
|
|
213
|
-
* @generated from field: string view_symbol = 5;
|
|
214
|
-
*/
|
|
215
|
-
viewSymbol?: string;
|
|
216
|
-
};
|
|
217
|
-
|
|
218
|
-
/**
|
|
219
|
-
* Describes the message nord.Token.
|
|
220
|
-
* Use `create(TokenSchema)` to create a new message.
|
|
221
|
-
*/
|
|
222
|
-
export const TokenSchema: GenMessage<Token, {jsonType: TokenJson}> = /*@__PURE__*/
|
|
223
|
-
messageDesc(file_nord, 2);
|
|
224
|
-
|
|
225
|
-
/**
|
|
226
|
-
* quote_size = size * price, in decimals for specific market
|
|
227
|
-
* Use current market if you want realistic tick step exisitng on market.
|
|
228
|
-
* Use smaller prices for more granular quote size control,
|
|
229
|
-
* but beware it will be neared to possible value in engine.
|
|
230
|
-
*
|
|
231
|
-
* @generated from message nord.QuoteSize
|
|
232
|
-
*/
|
|
233
|
-
export type QuoteSize = Message<"nord.QuoteSize"> & {
|
|
234
|
-
/**
|
|
235
|
-
* In `Market.size_decimals` decimals. 63 bit positive integer.
|
|
236
|
-
*
|
|
237
|
-
* @generated from field: uint64 size = 1;
|
|
238
|
-
*/
|
|
239
|
-
size: bigint;
|
|
240
|
-
|
|
241
|
-
/**
|
|
242
|
-
* In `Market.price_decimals` decimals. 64 bit positive integer.
|
|
243
|
-
*
|
|
244
|
-
* @generated from field: uint64 price = 2;
|
|
245
|
-
*/
|
|
246
|
-
price: bigint;
|
|
247
|
-
};
|
|
248
|
-
|
|
249
|
-
/**
|
|
250
|
-
* quote_size = size * price, in decimals for specific market
|
|
251
|
-
* Use current market if you want realistic tick step exisitng on market.
|
|
252
|
-
* Use smaller prices for more granular quote size control,
|
|
253
|
-
* but beware it will be neared to possible value in engine.
|
|
254
|
-
*
|
|
255
|
-
* @generated from message nord.QuoteSize
|
|
256
|
-
*/
|
|
257
|
-
export type QuoteSizeJson = {
|
|
258
|
-
/**
|
|
259
|
-
* In `Market.size_decimals` decimals. 63 bit positive integer.
|
|
260
|
-
*
|
|
261
|
-
* @generated from field: uint64 size = 1;
|
|
262
|
-
*/
|
|
263
|
-
size?: string;
|
|
264
|
-
|
|
265
|
-
/**
|
|
266
|
-
* In `Market.price_decimals` decimals. 64 bit positive integer.
|
|
267
|
-
*
|
|
268
|
-
* @generated from field: uint64 price = 2;
|
|
269
|
-
*/
|
|
270
|
-
price?: string;
|
|
271
|
-
};
|
|
272
|
-
|
|
273
|
-
/**
|
|
274
|
-
* Describes the message nord.QuoteSize.
|
|
275
|
-
* Use `create(QuoteSizeSchema)` to create a new message.
|
|
276
|
-
*/
|
|
277
|
-
export const QuoteSizeSchema: GenMessage<QuoteSize, {jsonType: QuoteSizeJson}> = /*@__PURE__*/
|
|
278
|
-
messageDesc(file_nord, 3);
|
|
279
|
-
|
|
280
|
-
/**
|
|
281
|
-
* @generated from message nord.OrderLimit
|
|
282
|
-
*/
|
|
283
|
-
export type OrderLimit = Message<"nord.OrderLimit"> & {
|
|
284
|
-
/**
|
|
285
|
-
* @generated from field: uint64 price = 6;
|
|
286
|
-
*/
|
|
287
|
-
price: bigint;
|
|
288
|
-
|
|
289
|
-
/**
|
|
290
|
-
* @generated from field: uint64 size = 7;
|
|
291
|
-
*/
|
|
292
|
-
size: bigint;
|
|
293
|
-
|
|
294
|
-
/**
|
|
295
|
-
* Optional.
|
|
296
|
-
*
|
|
297
|
-
* @generated from field: nord.QuoteSize quote_size = 8;
|
|
298
|
-
*/
|
|
299
|
-
quoteSize?: QuoteSize;
|
|
300
|
-
};
|
|
301
|
-
|
|
302
|
-
/**
|
|
303
|
-
* @generated from message nord.OrderLimit
|
|
304
|
-
*/
|
|
305
|
-
export type OrderLimitJson = {
|
|
306
|
-
/**
|
|
307
|
-
* @generated from field: uint64 price = 6;
|
|
308
|
-
*/
|
|
309
|
-
price?: string;
|
|
310
|
-
|
|
311
|
-
/**
|
|
312
|
-
* @generated from field: uint64 size = 7;
|
|
313
|
-
*/
|
|
314
|
-
size?: string;
|
|
315
|
-
|
|
316
|
-
/**
|
|
317
|
-
* Optional.
|
|
318
|
-
*
|
|
319
|
-
* @generated from field: nord.QuoteSize quote_size = 8;
|
|
320
|
-
*/
|
|
321
|
-
quoteSize?: QuoteSizeJson;
|
|
322
|
-
};
|
|
323
|
-
|
|
324
|
-
/**
|
|
325
|
-
* Describes the message nord.OrderLimit.
|
|
326
|
-
* Use `create(OrderLimitSchema)` to create a new message.
|
|
327
|
-
*/
|
|
328
|
-
export const OrderLimitSchema: GenMessage<OrderLimit, {jsonType: OrderLimitJson}> = /*@__PURE__*/
|
|
329
|
-
messageDesc(file_nord, 4);
|
|
330
|
-
|
|
331
|
-
/**
|
|
332
|
-
* @generated from message nord.OrderType
|
|
333
|
-
*/
|
|
334
|
-
export type OrderType = Message<"nord.OrderType"> & {
|
|
335
|
-
/**
|
|
336
|
-
* @generated from field: nord.Side side = 3;
|
|
337
|
-
*/
|
|
338
|
-
side: Side;
|
|
339
|
-
|
|
340
|
-
/**
|
|
341
|
-
* @generated from field: nord.FillMode fill_mode = 4;
|
|
342
|
-
*/
|
|
343
|
-
fillMode: FillMode;
|
|
344
|
-
|
|
345
|
-
/**
|
|
346
|
-
* @generated from field: bool is_reduce_only = 5;
|
|
347
|
-
*/
|
|
348
|
-
isReduceOnly: boolean;
|
|
349
|
-
};
|
|
350
|
-
|
|
351
|
-
/**
|
|
352
|
-
* @generated from message nord.OrderType
|
|
353
|
-
*/
|
|
354
|
-
export type OrderTypeJson = {
|
|
355
|
-
/**
|
|
356
|
-
* @generated from field: nord.Side side = 3;
|
|
357
|
-
*/
|
|
358
|
-
side?: SideJson;
|
|
359
|
-
|
|
360
|
-
/**
|
|
361
|
-
* @generated from field: nord.FillMode fill_mode = 4;
|
|
362
|
-
*/
|
|
363
|
-
fillMode?: FillModeJson;
|
|
364
|
-
|
|
365
|
-
/**
|
|
366
|
-
* @generated from field: bool is_reduce_only = 5;
|
|
367
|
-
*/
|
|
368
|
-
isReduceOnly?: boolean;
|
|
369
|
-
};
|
|
370
|
-
|
|
371
|
-
/**
|
|
372
|
-
* Describes the message nord.OrderType.
|
|
373
|
-
* Use `create(OrderTypeSchema)` to create a new message.
|
|
374
|
-
*/
|
|
375
|
-
export const OrderTypeSchema: GenMessage<OrderType, {jsonType: OrderTypeJson}> = /*@__PURE__*/
|
|
376
|
-
messageDesc(file_nord, 5);
|
|
377
|
-
|
|
378
|
-
/**
|
|
379
|
-
* @generated from message nord.TradeOrPlace
|
|
380
|
-
*/
|
|
381
|
-
export type TradeOrPlace = Message<"nord.TradeOrPlace"> & {
|
|
382
|
-
/**
|
|
383
|
-
* @generated from field: uint32 market_id = 2;
|
|
384
|
-
*/
|
|
385
|
-
marketId: number;
|
|
386
|
-
|
|
387
|
-
/**
|
|
388
|
-
* @generated from field: nord.OrderType order_type = 3;
|
|
389
|
-
*/
|
|
390
|
-
orderType?: OrderType;
|
|
391
|
-
|
|
392
|
-
/**
|
|
393
|
-
* @generated from field: nord.OrderLimit limit = 6;
|
|
394
|
-
*/
|
|
395
|
-
limit?: OrderLimit;
|
|
396
|
-
|
|
397
|
-
/**
|
|
398
|
-
* @generated from field: optional uint64 client_order_id = 33;
|
|
399
|
-
*/
|
|
400
|
-
clientOrderId?: bigint;
|
|
401
|
-
};
|
|
402
|
-
|
|
403
|
-
/**
|
|
404
|
-
* @generated from message nord.TradeOrPlace
|
|
405
|
-
*/
|
|
406
|
-
export type TradeOrPlaceJson = {
|
|
407
|
-
/**
|
|
408
|
-
* @generated from field: uint32 market_id = 2;
|
|
409
|
-
*/
|
|
410
|
-
marketId?: number;
|
|
411
|
-
|
|
412
|
-
/**
|
|
413
|
-
* @generated from field: nord.OrderType order_type = 3;
|
|
414
|
-
*/
|
|
415
|
-
orderType?: OrderTypeJson;
|
|
416
|
-
|
|
417
|
-
/**
|
|
418
|
-
* @generated from field: nord.OrderLimit limit = 6;
|
|
419
|
-
*/
|
|
420
|
-
limit?: OrderLimitJson;
|
|
421
|
-
|
|
422
|
-
/**
|
|
423
|
-
* @generated from field: optional uint64 client_order_id = 33;
|
|
424
|
-
*/
|
|
425
|
-
clientOrderId?: string;
|
|
426
|
-
};
|
|
427
|
-
|
|
428
|
-
/**
|
|
429
|
-
* Describes the message nord.TradeOrPlace.
|
|
430
|
-
* Use `create(TradeOrPlaceSchema)` to create a new message.
|
|
431
|
-
*/
|
|
432
|
-
export const TradeOrPlaceSchema: GenMessage<TradeOrPlace, {jsonType: TradeOrPlaceJson}> = /*@__PURE__*/
|
|
433
|
-
messageDesc(file_nord, 6);
|
|
434
|
-
|
|
435
|
-
/**
|
|
436
|
-
* @generated from message nord.CancelOrder
|
|
437
|
-
*/
|
|
438
|
-
export type CancelOrder = Message<"nord.CancelOrder"> & {
|
|
439
|
-
/**
|
|
440
|
-
* @generated from field: uint64 order_id = 2;
|
|
441
|
-
*/
|
|
442
|
-
orderId: bigint;
|
|
443
|
-
};
|
|
444
|
-
|
|
445
|
-
/**
|
|
446
|
-
* @generated from message nord.CancelOrder
|
|
447
|
-
*/
|
|
448
|
-
export type CancelOrderJson = {
|
|
449
|
-
/**
|
|
450
|
-
* @generated from field: uint64 order_id = 2;
|
|
451
|
-
*/
|
|
452
|
-
orderId?: string;
|
|
453
|
-
};
|
|
454
|
-
|
|
455
|
-
/**
|
|
456
|
-
* Describes the message nord.CancelOrder.
|
|
457
|
-
* Use `create(CancelOrderSchema)` to create a new message.
|
|
458
|
-
*/
|
|
459
|
-
export const CancelOrderSchema: GenMessage<CancelOrder, {jsonType: CancelOrderJson}> = /*@__PURE__*/
|
|
460
|
-
messageDesc(file_nord, 7);
|
|
461
|
-
|
|
462
|
-
/**
|
|
463
|
-
* @generated from message nord.TriggerKey
|
|
464
|
-
*/
|
|
465
|
-
export type TriggerKey = Message<"nord.TriggerKey"> & {
|
|
466
|
-
/**
|
|
467
|
-
* @generated from field: nord.TriggerKind kind = 3;
|
|
468
|
-
*/
|
|
469
|
-
kind: TriggerKind;
|
|
470
|
-
|
|
471
|
-
/**
|
|
472
|
-
* @generated from field: nord.Side side = 4;
|
|
473
|
-
*/
|
|
474
|
-
side: Side;
|
|
475
|
-
};
|
|
476
|
-
|
|
477
|
-
/**
|
|
478
|
-
* @generated from message nord.TriggerKey
|
|
479
|
-
*/
|
|
480
|
-
export type TriggerKeyJson = {
|
|
481
|
-
/**
|
|
482
|
-
* @generated from field: nord.TriggerKind kind = 3;
|
|
483
|
-
*/
|
|
484
|
-
kind?: TriggerKindJson;
|
|
485
|
-
|
|
486
|
-
/**
|
|
487
|
-
* @generated from field: nord.Side side = 4;
|
|
488
|
-
*/
|
|
489
|
-
side?: SideJson;
|
|
490
|
-
};
|
|
491
|
-
|
|
492
|
-
/**
|
|
493
|
-
* Describes the message nord.TriggerKey.
|
|
494
|
-
* Use `create(TriggerKeySchema)` to create a new message.
|
|
495
|
-
*/
|
|
496
|
-
export const TriggerKeySchema: GenMessage<TriggerKey, {jsonType: TriggerKeyJson}> = /*@__PURE__*/
|
|
497
|
-
messageDesc(file_nord, 8);
|
|
498
|
-
|
|
499
|
-
/**
|
|
500
|
-
* @generated from message nord.Action
|
|
501
|
-
*/
|
|
502
|
-
export type Action = Message<"nord.Action"> & {
|
|
503
|
-
/**
|
|
504
|
-
* Must be within 60s of the engine's current logical time, which
|
|
505
|
-
* should be within a few seconds of real time.
|
|
506
|
-
*
|
|
507
|
-
* Ignored for the `PythPriceFeedUpdate` action as that action updates
|
|
508
|
-
* the timestamp. Should be set to 0 in that case to omit it.
|
|
509
|
-
*
|
|
510
|
-
* @generated from field: int64 current_timestamp = 1;
|
|
511
|
-
*/
|
|
512
|
-
currentTimestamp: bigint;
|
|
513
|
-
|
|
514
|
-
/**
|
|
515
|
-
* Optional nonce to handle if user wants several identical transactions to be
|
|
516
|
-
* executed with `current_timestamp`. Sending exactly same transaction twice
|
|
517
|
-
* is rejected. In order to change signature of transaction(execute it once
|
|
518
|
-
* more time), nonce should be changed(incremented).
|
|
519
|
-
*
|
|
520
|
-
* @generated from field: uint32 nonce = 2;
|
|
521
|
-
*/
|
|
522
|
-
nonce: number;
|
|
523
|
-
|
|
524
|
-
/**
|
|
525
|
-
* @generated from oneof nord.Action.kind
|
|
526
|
-
*/
|
|
527
|
-
kind: {
|
|
528
|
-
/**
|
|
529
|
-
* @generated from field: nord.Action.CreateSession create_session = 4;
|
|
530
|
-
*/
|
|
531
|
-
value: Action_CreateSession;
|
|
532
|
-
case: "createSession";
|
|
533
|
-
} | {
|
|
534
|
-
/**
|
|
535
|
-
* @generated from field: nord.Action.CreateToken create_token = 5;
|
|
536
|
-
*/
|
|
537
|
-
value: Action_CreateToken;
|
|
538
|
-
case: "createToken";
|
|
539
|
-
} | {
|
|
540
|
-
/**
|
|
541
|
-
* @generated from field: nord.Action.CreateMarket create_market = 6;
|
|
542
|
-
*/
|
|
543
|
-
value: Action_CreateMarket;
|
|
544
|
-
case: "createMarket";
|
|
545
|
-
} | {
|
|
546
|
-
/**
|
|
547
|
-
* @generated from field: nord.Action.PlaceOrder place_order = 7;
|
|
548
|
-
*/
|
|
549
|
-
value: Action_PlaceOrder;
|
|
550
|
-
case: "placeOrder";
|
|
551
|
-
} | {
|
|
552
|
-
/**
|
|
553
|
-
* @generated from field: nord.Action.CancelOrderById cancel_order_by_id = 8;
|
|
554
|
-
*/
|
|
555
|
-
value: Action_CancelOrderById;
|
|
556
|
-
case: "cancelOrderById";
|
|
557
|
-
} | {
|
|
558
|
-
/**
|
|
559
|
-
* @generated from field: nord.Action.Deposit deposit = 9;
|
|
560
|
-
*/
|
|
561
|
-
value: Action_Deposit;
|
|
562
|
-
case: "deposit";
|
|
563
|
-
} | {
|
|
564
|
-
/**
|
|
565
|
-
* @generated from field: nord.Action.Withdraw withdraw = 10;
|
|
566
|
-
*/
|
|
567
|
-
value: Action_Withdraw;
|
|
568
|
-
case: "withdraw";
|
|
569
|
-
} | {
|
|
570
|
-
/**
|
|
571
|
-
* @generated from field: nord.Action.PythSetWormholeGuardians pyth_set_wormhole_guardians = 11;
|
|
572
|
-
*/
|
|
573
|
-
value: Action_PythSetWormholeGuardians;
|
|
574
|
-
case: "pythSetWormholeGuardians";
|
|
575
|
-
} | {
|
|
576
|
-
/**
|
|
577
|
-
* @generated from field: nord.Action.PythSetSymbolFeed pyth_set_symbol_feed = 12;
|
|
578
|
-
*/
|
|
579
|
-
value: Action_PythSetSymbolFeed;
|
|
580
|
-
case: "pythSetSymbolFeed";
|
|
581
|
-
} | {
|
|
582
|
-
/**
|
|
583
|
-
* @generated from field: nord.Action.PythPriceFeedUpdate pyth_price_feed_update = 13;
|
|
584
|
-
*/
|
|
585
|
-
value: Action_PythPriceFeedUpdate;
|
|
586
|
-
case: "pythPriceFeedUpdate";
|
|
587
|
-
} | {
|
|
588
|
-
/**
|
|
589
|
-
* @generated from field: nord.Action.Liquidate liquidate = 14;
|
|
590
|
-
*/
|
|
591
|
-
value: Action_Liquidate;
|
|
592
|
-
case: "liquidate";
|
|
593
|
-
} | {
|
|
594
|
-
/**
|
|
595
|
-
* @generated from field: nord.Action.RevokeSession revoke_session = 15;
|
|
596
|
-
*/
|
|
597
|
-
value: Action_RevokeSession;
|
|
598
|
-
case: "revokeSession";
|
|
599
|
-
} | {
|
|
600
|
-
/**
|
|
601
|
-
* @generated from field: nord.Action.Pause pause = 16;
|
|
602
|
-
*/
|
|
603
|
-
value: Action_Pause;
|
|
604
|
-
case: "pause";
|
|
605
|
-
} | {
|
|
606
|
-
/**
|
|
607
|
-
* @generated from field: nord.Action.Unpause unpause = 17;
|
|
608
|
-
*/
|
|
609
|
-
value: Action_Unpause;
|
|
610
|
-
case: "unpause";
|
|
611
|
-
} | {
|
|
612
|
-
/**
|
|
613
|
-
* @generated from field: nord.Action.Transfer transfer = 18;
|
|
614
|
-
*/
|
|
615
|
-
value: Action_Transfer;
|
|
616
|
-
case: "transfer";
|
|
617
|
-
} | {
|
|
618
|
-
/**
|
|
619
|
-
* @generated from field: nord.Action.AddTrigger add_trigger = 32;
|
|
620
|
-
*/
|
|
621
|
-
value: Action_AddTrigger;
|
|
622
|
-
case: "addTrigger";
|
|
623
|
-
} | {
|
|
624
|
-
/**
|
|
625
|
-
* @generated from field: nord.Action.RemoveTrigger remove_trigger = 33;
|
|
626
|
-
*/
|
|
627
|
-
value: Action_RemoveTrigger;
|
|
628
|
-
case: "removeTrigger";
|
|
629
|
-
} | {
|
|
630
|
-
/**
|
|
631
|
-
* @generated from field: nord.Action.TakePosition take_position = 34;
|
|
632
|
-
*/
|
|
633
|
-
value: Action_TakePosition;
|
|
634
|
-
case: "takePosition";
|
|
635
|
-
} | {
|
|
636
|
-
/**
|
|
637
|
-
* @generated from field: nord.Atomic atomic = 35;
|
|
638
|
-
*/
|
|
639
|
-
value: Atomic;
|
|
640
|
-
case: "atomic";
|
|
641
|
-
} | {
|
|
642
|
-
/**
|
|
643
|
-
* @generated from field: nord.Action.FreezeMarket freeze_market = 36;
|
|
644
|
-
*/
|
|
645
|
-
value: Action_FreezeMarket;
|
|
646
|
-
case: "freezeMarket";
|
|
647
|
-
} | {
|
|
648
|
-
/**
|
|
649
|
-
* @generated from field: nord.Action.UnfreezeMarket unfreeze_market = 37;
|
|
650
|
-
*/
|
|
651
|
-
value: Action_UnfreezeMarket;
|
|
652
|
-
case: "unfreezeMarket";
|
|
653
|
-
} | {
|
|
654
|
-
/**
|
|
655
|
-
* @generated from field: nord.Action.AddFeeTier add_fee_tier = 38;
|
|
656
|
-
*/
|
|
657
|
-
value: Action_AddFeeTier;
|
|
658
|
-
case: "addFeeTier";
|
|
659
|
-
} | {
|
|
660
|
-
/**
|
|
661
|
-
* @generated from field: nord.Action.UpdateFeeTier update_fee_tier = 39;
|
|
662
|
-
*/
|
|
663
|
-
value: Action_UpdateFeeTier;
|
|
664
|
-
case: "updateFeeTier";
|
|
665
|
-
} | {
|
|
666
|
-
/**
|
|
667
|
-
* @generated from field: nord.Action.UpdateAccountsTier update_accounts_tier = 40;
|
|
668
|
-
*/
|
|
669
|
-
value: Action_UpdateAccountsTier;
|
|
670
|
-
case: "updateAccountsTier";
|
|
671
|
-
} | {
|
|
672
|
-
/**
|
|
673
|
-
* @generated from field: nord.Action.UpdateAcl update_acl = 41;
|
|
674
|
-
*/
|
|
675
|
-
value: Action_UpdateAcl;
|
|
676
|
-
case: "updateAcl";
|
|
677
|
-
} | { case: undefined; value?: undefined };
|
|
678
|
-
};
|
|
679
|
-
|
|
680
|
-
/**
|
|
681
|
-
* @generated from message nord.Action
|
|
682
|
-
*/
|
|
683
|
-
export type ActionJson = {
|
|
684
|
-
/**
|
|
685
|
-
* Must be within 60s of the engine's current logical time, which
|
|
686
|
-
* should be within a few seconds of real time.
|
|
687
|
-
*
|
|
688
|
-
* Ignored for the `PythPriceFeedUpdate` action as that action updates
|
|
689
|
-
* the timestamp. Should be set to 0 in that case to omit it.
|
|
690
|
-
*
|
|
691
|
-
* @generated from field: int64 current_timestamp = 1;
|
|
692
|
-
*/
|
|
693
|
-
currentTimestamp?: string;
|
|
694
|
-
|
|
695
|
-
/**
|
|
696
|
-
* Optional nonce to handle if user wants several identical transactions to be
|
|
697
|
-
* executed with `current_timestamp`. Sending exactly same transaction twice
|
|
698
|
-
* is rejected. In order to change signature of transaction(execute it once
|
|
699
|
-
* more time), nonce should be changed(incremented).
|
|
700
|
-
*
|
|
701
|
-
* @generated from field: uint32 nonce = 2;
|
|
702
|
-
*/
|
|
703
|
-
nonce?: number;
|
|
704
|
-
|
|
705
|
-
/**
|
|
706
|
-
* @generated from field: nord.Action.CreateSession create_session = 4;
|
|
707
|
-
*/
|
|
708
|
-
createSession?: Action_CreateSessionJson;
|
|
709
|
-
|
|
710
|
-
/**
|
|
711
|
-
* @generated from field: nord.Action.CreateToken create_token = 5;
|
|
712
|
-
*/
|
|
713
|
-
createToken?: Action_CreateTokenJson;
|
|
714
|
-
|
|
715
|
-
/**
|
|
716
|
-
* @generated from field: nord.Action.CreateMarket create_market = 6;
|
|
717
|
-
*/
|
|
718
|
-
createMarket?: Action_CreateMarketJson;
|
|
719
|
-
|
|
720
|
-
/**
|
|
721
|
-
* @generated from field: nord.Action.PlaceOrder place_order = 7;
|
|
722
|
-
*/
|
|
723
|
-
placeOrder?: Action_PlaceOrderJson;
|
|
724
|
-
|
|
725
|
-
/**
|
|
726
|
-
* @generated from field: nord.Action.CancelOrderById cancel_order_by_id = 8;
|
|
727
|
-
*/
|
|
728
|
-
cancelOrderById?: Action_CancelOrderByIdJson;
|
|
729
|
-
|
|
730
|
-
/**
|
|
731
|
-
* @generated from field: nord.Action.Deposit deposit = 9;
|
|
732
|
-
*/
|
|
733
|
-
deposit?: Action_DepositJson;
|
|
734
|
-
|
|
735
|
-
/**
|
|
736
|
-
* @generated from field: nord.Action.Withdraw withdraw = 10;
|
|
737
|
-
*/
|
|
738
|
-
withdraw?: Action_WithdrawJson;
|
|
739
|
-
|
|
740
|
-
/**
|
|
741
|
-
* @generated from field: nord.Action.PythSetWormholeGuardians pyth_set_wormhole_guardians = 11;
|
|
742
|
-
*/
|
|
743
|
-
pythSetWormholeGuardians?: Action_PythSetWormholeGuardiansJson;
|
|
744
|
-
|
|
745
|
-
/**
|
|
746
|
-
* @generated from field: nord.Action.PythSetSymbolFeed pyth_set_symbol_feed = 12;
|
|
747
|
-
*/
|
|
748
|
-
pythSetSymbolFeed?: Action_PythSetSymbolFeedJson;
|
|
749
|
-
|
|
750
|
-
/**
|
|
751
|
-
* @generated from field: nord.Action.PythPriceFeedUpdate pyth_price_feed_update = 13;
|
|
752
|
-
*/
|
|
753
|
-
pythPriceFeedUpdate?: Action_PythPriceFeedUpdateJson;
|
|
754
|
-
|
|
755
|
-
/**
|
|
756
|
-
* @generated from field: nord.Action.Liquidate liquidate = 14;
|
|
757
|
-
*/
|
|
758
|
-
liquidate?: Action_LiquidateJson;
|
|
759
|
-
|
|
760
|
-
/**
|
|
761
|
-
* @generated from field: nord.Action.RevokeSession revoke_session = 15;
|
|
762
|
-
*/
|
|
763
|
-
revokeSession?: Action_RevokeSessionJson;
|
|
764
|
-
|
|
765
|
-
/**
|
|
766
|
-
* @generated from field: nord.Action.Pause pause = 16;
|
|
767
|
-
*/
|
|
768
|
-
pause?: Action_PauseJson;
|
|
769
|
-
|
|
770
|
-
/**
|
|
771
|
-
* @generated from field: nord.Action.Unpause unpause = 17;
|
|
772
|
-
*/
|
|
773
|
-
unpause?: Action_UnpauseJson;
|
|
774
|
-
|
|
775
|
-
/**
|
|
776
|
-
* @generated from field: nord.Action.Transfer transfer = 18;
|
|
777
|
-
*/
|
|
778
|
-
transfer?: Action_TransferJson;
|
|
779
|
-
|
|
780
|
-
/**
|
|
781
|
-
* @generated from field: nord.Action.AddTrigger add_trigger = 32;
|
|
782
|
-
*/
|
|
783
|
-
addTrigger?: Action_AddTriggerJson;
|
|
784
|
-
|
|
785
|
-
/**
|
|
786
|
-
* @generated from field: nord.Action.RemoveTrigger remove_trigger = 33;
|
|
787
|
-
*/
|
|
788
|
-
removeTrigger?: Action_RemoveTriggerJson;
|
|
789
|
-
|
|
790
|
-
/**
|
|
791
|
-
* @generated from field: nord.Action.TakePosition take_position = 34;
|
|
792
|
-
*/
|
|
793
|
-
takePosition?: Action_TakePositionJson;
|
|
794
|
-
|
|
795
|
-
/**
|
|
796
|
-
* @generated from field: nord.Atomic atomic = 35;
|
|
797
|
-
*/
|
|
798
|
-
atomic?: AtomicJson;
|
|
799
|
-
|
|
800
|
-
/**
|
|
801
|
-
* @generated from field: nord.Action.FreezeMarket freeze_market = 36;
|
|
802
|
-
*/
|
|
803
|
-
freezeMarket?: Action_FreezeMarketJson;
|
|
804
|
-
|
|
805
|
-
/**
|
|
806
|
-
* @generated from field: nord.Action.UnfreezeMarket unfreeze_market = 37;
|
|
807
|
-
*/
|
|
808
|
-
unfreezeMarket?: Action_UnfreezeMarketJson;
|
|
809
|
-
|
|
810
|
-
/**
|
|
811
|
-
* @generated from field: nord.Action.AddFeeTier add_fee_tier = 38;
|
|
812
|
-
*/
|
|
813
|
-
addFeeTier?: Action_AddFeeTierJson;
|
|
814
|
-
|
|
815
|
-
/**
|
|
816
|
-
* @generated from field: nord.Action.UpdateFeeTier update_fee_tier = 39;
|
|
817
|
-
*/
|
|
818
|
-
updateFeeTier?: Action_UpdateFeeTierJson;
|
|
819
|
-
|
|
820
|
-
/**
|
|
821
|
-
* @generated from field: nord.Action.UpdateAccountsTier update_accounts_tier = 40;
|
|
822
|
-
*/
|
|
823
|
-
updateAccountsTier?: Action_UpdateAccountsTierJson;
|
|
824
|
-
|
|
825
|
-
/**
|
|
826
|
-
* @generated from field: nord.Action.UpdateAcl update_acl = 41;
|
|
827
|
-
*/
|
|
828
|
-
updateAcl?: Action_UpdateAclJson;
|
|
829
|
-
};
|
|
830
|
-
|
|
831
|
-
/**
|
|
832
|
-
* Describes the message nord.Action.
|
|
833
|
-
* Use `create(ActionSchema)` to create a new message.
|
|
834
|
-
*/
|
|
835
|
-
export const ActionSchema: GenMessage<Action, {jsonType: ActionJson}> = /*@__PURE__*/
|
|
836
|
-
messageDesc(file_nord, 9);
|
|
837
|
-
|
|
838
|
-
/**
|
|
839
|
-
* @generated from message nord.Action.CreateSession
|
|
840
|
-
*/
|
|
841
|
-
export type Action_CreateSession = Message<"nord.Action.CreateSession"> & {
|
|
842
|
-
/**
|
|
843
|
-
* User's SECP256K1 registration public key, 33 bytes long;
|
|
844
|
-
* user must be previously registered with that key
|
|
845
|
-
*
|
|
846
|
-
* @generated from field: bytes user_pubkey = 1;
|
|
847
|
-
*/
|
|
848
|
-
userPubkey: Uint8Array;
|
|
849
|
-
|
|
850
|
-
/**
|
|
851
|
-
* MUST be 32 bytes.
|
|
852
|
-
*
|
|
853
|
-
* @generated from field: bytes blst_pubkey = 2;
|
|
854
|
-
*/
|
|
855
|
-
blstPubkey: Uint8Array;
|
|
856
|
-
|
|
857
|
-
/**
|
|
858
|
-
* @generated from field: int64 expiry_timestamp = 3;
|
|
859
|
-
*/
|
|
860
|
-
expiryTimestamp: bigint;
|
|
861
|
-
};
|
|
862
|
-
|
|
863
|
-
/**
|
|
864
|
-
* @generated from message nord.Action.CreateSession
|
|
865
|
-
*/
|
|
866
|
-
export type Action_CreateSessionJson = {
|
|
867
|
-
/**
|
|
868
|
-
* User's SECP256K1 registration public key, 33 bytes long;
|
|
869
|
-
* user must be previously registered with that key
|
|
870
|
-
*
|
|
871
|
-
* @generated from field: bytes user_pubkey = 1;
|
|
872
|
-
*/
|
|
873
|
-
userPubkey?: string;
|
|
874
|
-
|
|
875
|
-
/**
|
|
876
|
-
* MUST be 32 bytes.
|
|
877
|
-
*
|
|
878
|
-
* @generated from field: bytes blst_pubkey = 2;
|
|
879
|
-
*/
|
|
880
|
-
blstPubkey?: string;
|
|
881
|
-
|
|
882
|
-
/**
|
|
883
|
-
* @generated from field: int64 expiry_timestamp = 3;
|
|
884
|
-
*/
|
|
885
|
-
expiryTimestamp?: string;
|
|
886
|
-
};
|
|
887
|
-
|
|
888
|
-
/**
|
|
889
|
-
* Describes the message nord.Action.CreateSession.
|
|
890
|
-
* Use `create(Action_CreateSessionSchema)` to create a new message.
|
|
891
|
-
*/
|
|
892
|
-
export const Action_CreateSessionSchema: GenMessage<Action_CreateSession, {jsonType: Action_CreateSessionJson}> = /*@__PURE__*/
|
|
893
|
-
messageDesc(file_nord, 9, 0);
|
|
894
|
-
|
|
895
|
-
/**
|
|
896
|
-
* @generated from message nord.Action.CreateToken
|
|
897
|
-
*/
|
|
898
|
-
export type Action_CreateToken = Message<"nord.Action.CreateToken"> & {
|
|
899
|
-
/**
|
|
900
|
-
* / Example:
|
|
901
|
-
* / Settlement 1 ETH is 10**18 value.
|
|
902
|
-
* / With `token_decimals` of `10`, engine balance will have 1 ETH = 10**10
|
|
903
|
-
* / value. Rollup sends to engine and expects from engine 10**10 as 1 ETH
|
|
904
|
-
* / value. So if user has on balance 10**9 of ETH, it means he has 0.1 ETH
|
|
905
|
-
* / on engine balance and in settlement, but in settlement it will be
|
|
906
|
-
* / represented as 10**17 value. As consequence, if oracle gives index_price
|
|
907
|
-
* / of 1 ETH as it is in Ethereum, we must divide balance by
|
|
908
|
-
* / `10**token_decimals` and multiply by price to get USD value (do not
|
|
909
|
-
* / forget allow for rounding sub USD values). As for market price, to trade
|
|
910
|
-
* / 0.1 ETH,
|
|
911
|
-
* need to 1/10 / 10**token_decimals * 10**Market.size_decimals
|
|
912
|
-
*
|
|
913
|
-
* @generated from field: uint32 token_decimals = 1;
|
|
914
|
-
*/
|
|
915
|
-
tokenDecimals: number;
|
|
916
|
-
|
|
917
|
-
/**
|
|
918
|
-
* @generated from field: uint32 weight_bps = 3;
|
|
919
|
-
*/
|
|
920
|
-
weightBps: number;
|
|
921
|
-
|
|
922
|
-
/**
|
|
923
|
-
* @generated from field: string view_symbol = 4;
|
|
924
|
-
*/
|
|
925
|
-
viewSymbol: string;
|
|
926
|
-
|
|
927
|
-
/**
|
|
928
|
-
* / Used to bind to relevant oracle feed
|
|
929
|
-
*
|
|
930
|
-
* @generated from field: string oracle_symbol = 5;
|
|
931
|
-
*/
|
|
932
|
-
oracleSymbol: string;
|
|
933
|
-
|
|
934
|
-
/**
|
|
935
|
-
* On chain id for the wrapped asset on the rollup
|
|
936
|
-
*
|
|
937
|
-
* @generated from field: bytes sol_addr = 6;
|
|
938
|
-
*/
|
|
939
|
-
solAddr: Uint8Array;
|
|
940
|
-
|
|
941
|
-
/**
|
|
942
|
-
* @generated from field: bytes acl_pubkey = 7;
|
|
943
|
-
*/
|
|
944
|
-
aclPubkey: Uint8Array;
|
|
945
|
-
};
|
|
946
|
-
|
|
947
|
-
/**
|
|
948
|
-
* @generated from message nord.Action.CreateToken
|
|
949
|
-
*/
|
|
950
|
-
export type Action_CreateTokenJson = {
|
|
951
|
-
/**
|
|
952
|
-
* / Example:
|
|
953
|
-
* / Settlement 1 ETH is 10**18 value.
|
|
954
|
-
* / With `token_decimals` of `10`, engine balance will have 1 ETH = 10**10
|
|
955
|
-
* / value. Rollup sends to engine and expects from engine 10**10 as 1 ETH
|
|
956
|
-
* / value. So if user has on balance 10**9 of ETH, it means he has 0.1 ETH
|
|
957
|
-
* / on engine balance and in settlement, but in settlement it will be
|
|
958
|
-
* / represented as 10**17 value. As consequence, if oracle gives index_price
|
|
959
|
-
* / of 1 ETH as it is in Ethereum, we must divide balance by
|
|
960
|
-
* / `10**token_decimals` and multiply by price to get USD value (do not
|
|
961
|
-
* / forget allow for rounding sub USD values). As for market price, to trade
|
|
962
|
-
* / 0.1 ETH,
|
|
963
|
-
* need to 1/10 / 10**token_decimals * 10**Market.size_decimals
|
|
964
|
-
*
|
|
965
|
-
* @generated from field: uint32 token_decimals = 1;
|
|
966
|
-
*/
|
|
967
|
-
tokenDecimals?: number;
|
|
968
|
-
|
|
969
|
-
/**
|
|
970
|
-
* @generated from field: uint32 weight_bps = 3;
|
|
971
|
-
*/
|
|
972
|
-
weightBps?: number;
|
|
973
|
-
|
|
974
|
-
/**
|
|
975
|
-
* @generated from field: string view_symbol = 4;
|
|
976
|
-
*/
|
|
977
|
-
viewSymbol?: string;
|
|
978
|
-
|
|
979
|
-
/**
|
|
980
|
-
* / Used to bind to relevant oracle feed
|
|
981
|
-
*
|
|
982
|
-
* @generated from field: string oracle_symbol = 5;
|
|
983
|
-
*/
|
|
984
|
-
oracleSymbol?: string;
|
|
985
|
-
|
|
986
|
-
/**
|
|
987
|
-
* On chain id for the wrapped asset on the rollup
|
|
988
|
-
*
|
|
989
|
-
* @generated from field: bytes sol_addr = 6;
|
|
990
|
-
*/
|
|
991
|
-
solAddr?: string;
|
|
992
|
-
|
|
993
|
-
/**
|
|
994
|
-
* @generated from field: bytes acl_pubkey = 7;
|
|
995
|
-
*/
|
|
996
|
-
aclPubkey?: string;
|
|
997
|
-
};
|
|
998
|
-
|
|
999
|
-
/**
|
|
1000
|
-
* Describes the message nord.Action.CreateToken.
|
|
1001
|
-
* Use `create(Action_CreateTokenSchema)` to create a new message.
|
|
1002
|
-
*/
|
|
1003
|
-
export const Action_CreateTokenSchema: GenMessage<Action_CreateToken, {jsonType: Action_CreateTokenJson}> = /*@__PURE__*/
|
|
1004
|
-
messageDesc(file_nord, 9, 1);
|
|
1005
|
-
|
|
1006
|
-
/**
|
|
1007
|
-
* @generated from message nord.Action.CreateMarket
|
|
1008
|
-
*/
|
|
1009
|
-
export type Action_CreateMarket = Message<"nord.Action.CreateMarket"> & {
|
|
1010
|
-
/**
|
|
1011
|
-
* @generated from field: uint32 size_decimals = 1;
|
|
1012
|
-
*/
|
|
1013
|
-
sizeDecimals: number;
|
|
1014
|
-
|
|
1015
|
-
/**
|
|
1016
|
-
* @generated from field: uint32 price_decimals = 2;
|
|
1017
|
-
*/
|
|
1018
|
-
priceDecimals: number;
|
|
1019
|
-
|
|
1020
|
-
/**
|
|
1021
|
-
* @generated from field: uint32 imf_bps = 3;
|
|
1022
|
-
*/
|
|
1023
|
-
imfBps: number;
|
|
1024
|
-
|
|
1025
|
-
/**
|
|
1026
|
-
* @generated from field: uint32 cmf_bps = 4;
|
|
1027
|
-
*/
|
|
1028
|
-
cmfBps: number;
|
|
1029
|
-
|
|
1030
|
-
/**
|
|
1031
|
-
* @generated from field: uint32 mmf_bps = 5;
|
|
1032
|
-
*/
|
|
1033
|
-
mmfBps: number;
|
|
1034
|
-
|
|
1035
|
-
/**
|
|
1036
|
-
* @generated from field: nord.MarketType market_type = 6;
|
|
1037
|
-
*/
|
|
1038
|
-
marketType: MarketType;
|
|
1039
|
-
|
|
1040
|
-
/**
|
|
1041
|
-
* Arbitrary human-readable market symbol, not to be confused with token's
|
|
1042
|
-
* symbol
|
|
1043
|
-
*
|
|
1044
|
-
* @generated from field: string view_symbol = 7;
|
|
1045
|
-
*/
|
|
1046
|
-
viewSymbol: string;
|
|
1047
|
-
|
|
1048
|
-
/**
|
|
1049
|
-
* Oracle symbol which references specific price feed. Must be
|
|
1050
|
-
* `oracle_symbol` of registered price feed
|
|
1051
|
-
*
|
|
1052
|
-
* @generated from field: string oracle_symbol = 8;
|
|
1053
|
-
*/
|
|
1054
|
-
oracleSymbol: string;
|
|
1055
|
-
|
|
1056
|
-
/**
|
|
1057
|
-
* One of registered `token_id`'s.
|
|
1058
|
-
*
|
|
1059
|
-
* Base token for `MarketType::Spot`.
|
|
1060
|
-
*
|
|
1061
|
-
* Same as quote token id for `MarketType::Perpetual`. `oracle_symbol`
|
|
1062
|
-
* identifies relevant price feed.
|
|
1063
|
-
*
|
|
1064
|
-
* @generated from field: uint32 base_token_id = 9;
|
|
1065
|
-
*/
|
|
1066
|
-
baseTokenId: number;
|
|
1067
|
-
|
|
1068
|
-
/**
|
|
1069
|
-
* @generated from field: bytes acl_pubkey = 10;
|
|
1070
|
-
*/
|
|
1071
|
-
aclPubkey: Uint8Array;
|
|
1072
|
-
};
|
|
1073
|
-
|
|
1074
|
-
/**
|
|
1075
|
-
* @generated from message nord.Action.CreateMarket
|
|
1076
|
-
*/
|
|
1077
|
-
export type Action_CreateMarketJson = {
|
|
1078
|
-
/**
|
|
1079
|
-
* @generated from field: uint32 size_decimals = 1;
|
|
1080
|
-
*/
|
|
1081
|
-
sizeDecimals?: number;
|
|
1082
|
-
|
|
1083
|
-
/**
|
|
1084
|
-
* @generated from field: uint32 price_decimals = 2;
|
|
1085
|
-
*/
|
|
1086
|
-
priceDecimals?: number;
|
|
1087
|
-
|
|
1088
|
-
/**
|
|
1089
|
-
* @generated from field: uint32 imf_bps = 3;
|
|
1090
|
-
*/
|
|
1091
|
-
imfBps?: number;
|
|
1092
|
-
|
|
1093
|
-
/**
|
|
1094
|
-
* @generated from field: uint32 cmf_bps = 4;
|
|
1095
|
-
*/
|
|
1096
|
-
cmfBps?: number;
|
|
1097
|
-
|
|
1098
|
-
/**
|
|
1099
|
-
* @generated from field: uint32 mmf_bps = 5;
|
|
1100
|
-
*/
|
|
1101
|
-
mmfBps?: number;
|
|
1102
|
-
|
|
1103
|
-
/**
|
|
1104
|
-
* @generated from field: nord.MarketType market_type = 6;
|
|
1105
|
-
*/
|
|
1106
|
-
marketType?: MarketTypeJson;
|
|
1107
|
-
|
|
1108
|
-
/**
|
|
1109
|
-
* Arbitrary human-readable market symbol, not to be confused with token's
|
|
1110
|
-
* symbol
|
|
1111
|
-
*
|
|
1112
|
-
* @generated from field: string view_symbol = 7;
|
|
1113
|
-
*/
|
|
1114
|
-
viewSymbol?: string;
|
|
1115
|
-
|
|
1116
|
-
/**
|
|
1117
|
-
* Oracle symbol which references specific price feed. Must be
|
|
1118
|
-
* `oracle_symbol` of registered price feed
|
|
1119
|
-
*
|
|
1120
|
-
* @generated from field: string oracle_symbol = 8;
|
|
1121
|
-
*/
|
|
1122
|
-
oracleSymbol?: string;
|
|
1123
|
-
|
|
1124
|
-
/**
|
|
1125
|
-
* One of registered `token_id`'s.
|
|
1126
|
-
*
|
|
1127
|
-
* Base token for `MarketType::Spot`.
|
|
1128
|
-
*
|
|
1129
|
-
* Same as quote token id for `MarketType::Perpetual`. `oracle_symbol`
|
|
1130
|
-
* identifies relevant price feed.
|
|
1131
|
-
*
|
|
1132
|
-
* @generated from field: uint32 base_token_id = 9;
|
|
1133
|
-
*/
|
|
1134
|
-
baseTokenId?: number;
|
|
1135
|
-
|
|
1136
|
-
/**
|
|
1137
|
-
* @generated from field: bytes acl_pubkey = 10;
|
|
1138
|
-
*/
|
|
1139
|
-
aclPubkey?: string;
|
|
1140
|
-
};
|
|
1141
|
-
|
|
1142
|
-
/**
|
|
1143
|
-
* Describes the message nord.Action.CreateMarket.
|
|
1144
|
-
* Use `create(Action_CreateMarketSchema)` to create a new message.
|
|
1145
|
-
*/
|
|
1146
|
-
export const Action_CreateMarketSchema: GenMessage<Action_CreateMarket, {jsonType: Action_CreateMarketJson}> = /*@__PURE__*/
|
|
1147
|
-
messageDesc(file_nord, 9, 2);
|
|
1148
|
-
|
|
1149
|
-
/**
|
|
1150
|
-
* Note on order size.
|
|
1151
|
-
* Any order being placed has absolute maximum size, which is 2^48-1.
|
|
1152
|
-
* Although, this limit is applied not to initial order being placed
|
|
1153
|
-
* but to final order being added to market's orderbook.
|
|
1154
|
-
* This behavior exists because order can be limited by quote size,
|
|
1155
|
-
* which converts to order size in a non-linear manner.
|
|
1156
|
-
*
|
|
1157
|
-
* Some orders can be executed immediately, in this no order will be added to
|
|
1158
|
-
* orderbook, no order id created. Consider using `client_order_id` to track
|
|
1159
|
-
* execution of such orders.
|
|
1160
|
-
*
|
|
1161
|
-
* Example: User posts order with size 2^48+100_000. Order fills counter
|
|
1162
|
-
* orders and its size is reduced to 2^48-1_000_000 in process. This order
|
|
1163
|
-
* will be added to orderbook successfully despite its initial size is above
|
|
1164
|
-
* limit.
|
|
1165
|
-
*
|
|
1166
|
-
* @generated from message nord.Action.PlaceOrder
|
|
1167
|
-
*/
|
|
1168
|
-
export type Action_PlaceOrder = Message<"nord.Action.PlaceOrder"> & {
|
|
1169
|
-
/**
|
|
1170
|
-
* @generated from field: uint64 session_id = 1;
|
|
1171
|
-
*/
|
|
1172
|
-
sessionId: bigint;
|
|
1173
|
-
|
|
1174
|
-
/**
|
|
1175
|
-
* @generated from field: uint32 market_id = 2;
|
|
1176
|
-
*/
|
|
1177
|
-
marketId: number;
|
|
1178
|
-
|
|
1179
|
-
/**
|
|
1180
|
-
* @generated from field: nord.Side side = 3;
|
|
1181
|
-
*/
|
|
1182
|
-
side: Side;
|
|
1183
|
-
|
|
1184
|
-
/**
|
|
1185
|
-
* @generated from field: nord.FillMode fill_mode = 4;
|
|
1186
|
-
*/
|
|
1187
|
-
fillMode: FillMode;
|
|
1188
|
-
|
|
1189
|
-
/**
|
|
1190
|
-
* A reduce-only order only reduces your current position, as opposed to
|
|
1191
|
-
* increasing it. It means you can only use it to close a position. In
|
|
1192
|
-
* contrast, non-reduce-only orders can reduce or increase your position.
|
|
1193
|
-
* Reduce is handled by dynamically reducing or adjusting limit order's
|
|
1194
|
-
* contract quantity
|
|
1195
|
-
* / to match the contract size of the open position.
|
|
1196
|
-
*
|
|
1197
|
-
* @generated from field: bool is_reduce_only = 5;
|
|
1198
|
-
*/
|
|
1199
|
-
isReduceOnly: boolean;
|
|
1200
|
-
|
|
1201
|
-
/**
|
|
1202
|
-
* Raw integral value of order limit price.
|
|
1203
|
-
* `1` here equals to market's `10^-price_decimals`
|
|
1204
|
-
* When used in token balances and reward computations, shifted by market's
|
|
1205
|
-
* `price_decimals`. Optional, treated as not set if 0.
|
|
1206
|
-
*
|
|
1207
|
-
* @generated from field: uint64 price = 6;
|
|
1208
|
-
*/
|
|
1209
|
-
price: bigint;
|
|
1210
|
-
|
|
1211
|
-
/**
|
|
1212
|
-
* Raw integral value of order size limit.
|
|
1213
|
-
* For spot markers measured in base size,
|
|
1214
|
-
* for perpetuals in contract token.
|
|
1215
|
-
* So using base as default naming in codebase.
|
|
1216
|
-
* `1` here equals to market's `10^-size_decimals`
|
|
1217
|
-
* When used in token balances and reward computations, shifted by market's
|
|
1218
|
-
* `size_decimals`. Optional, treated as not set if 0.
|
|
1219
|
-
*
|
|
1220
|
-
* @generated from field: uint64 size = 7;
|
|
1221
|
-
*/
|
|
1222
|
-
size: bigint;
|
|
1223
|
-
|
|
1224
|
-
/**
|
|
1225
|
-
* Quote size limit.
|
|
1226
|
-
* Optional.
|
|
1227
|
-
*
|
|
1228
|
-
* @generated from field: nord.QuoteSize quote_size = 8;
|
|
1229
|
-
*/
|
|
1230
|
-
quoteSize?: QuoteSize;
|
|
1231
|
-
|
|
1232
|
-
/**
|
|
1233
|
-
* Optional account on behalf of whom the order should be placed.
|
|
1234
|
-
* Executed only if sender has delegated authority to do so,
|
|
1235
|
-
* like admin user or liquidator bot.
|
|
1236
|
-
* # Delegation allowed if:
|
|
1237
|
-
* - trigger
|
|
1238
|
-
* - reduce bad position
|
|
1239
|
-
* - sell at good price to reduce if cannot cover bad position
|
|
1240
|
-
*
|
|
1241
|
-
* @generated from field: optional uint32 delegator_account_id = 32;
|
|
1242
|
-
*/
|
|
1243
|
-
delegatorAccountId?: number;
|
|
1244
|
-
|
|
1245
|
-
/**
|
|
1246
|
-
* Caller provided opaque order identifier up to 8 bytes.
|
|
1247
|
-
* Not used by engine, but can be used by client to track orders.
|
|
1248
|
-
*
|
|
1249
|
-
* @generated from field: optional uint64 client_order_id = 33;
|
|
1250
|
-
*/
|
|
1251
|
-
clientOrderId?: bigint;
|
|
1252
|
-
|
|
1253
|
-
/**
|
|
1254
|
-
* Account id which performs operation;
|
|
1255
|
-
* if not specified, first account of session's owner user is picked
|
|
1256
|
-
*
|
|
1257
|
-
* @generated from field: optional uint32 sender_account_id = 34;
|
|
1258
|
-
*/
|
|
1259
|
-
senderAccountId?: number;
|
|
1260
|
-
|
|
1261
|
-
/**
|
|
1262
|
-
* Opaque identifier chosen by the sender to be able to correlate this
|
|
1263
|
-
* place order requests with the corresponding fill and place order events.
|
|
1264
|
-
*
|
|
1265
|
-
* @generated from field: optional uint64 sender_tracking_id = 35;
|
|
1266
|
-
*/
|
|
1267
|
-
senderTrackingId?: bigint;
|
|
1268
|
-
};
|
|
1269
|
-
|
|
1270
|
-
/**
|
|
1271
|
-
* Note on order size.
|
|
1272
|
-
* Any order being placed has absolute maximum size, which is 2^48-1.
|
|
1273
|
-
* Although, this limit is applied not to initial order being placed
|
|
1274
|
-
* but to final order being added to market's orderbook.
|
|
1275
|
-
* This behavior exists because order can be limited by quote size,
|
|
1276
|
-
* which converts to order size in a non-linear manner.
|
|
1277
|
-
*
|
|
1278
|
-
* Some orders can be executed immediately, in this no order will be added to
|
|
1279
|
-
* orderbook, no order id created. Consider using `client_order_id` to track
|
|
1280
|
-
* execution of such orders.
|
|
1281
|
-
*
|
|
1282
|
-
* Example: User posts order with size 2^48+100_000. Order fills counter
|
|
1283
|
-
* orders and its size is reduced to 2^48-1_000_000 in process. This order
|
|
1284
|
-
* will be added to orderbook successfully despite its initial size is above
|
|
1285
|
-
* limit.
|
|
1286
|
-
*
|
|
1287
|
-
* @generated from message nord.Action.PlaceOrder
|
|
1288
|
-
*/
|
|
1289
|
-
export type Action_PlaceOrderJson = {
|
|
1290
|
-
/**
|
|
1291
|
-
* @generated from field: uint64 session_id = 1;
|
|
1292
|
-
*/
|
|
1293
|
-
sessionId?: string;
|
|
1294
|
-
|
|
1295
|
-
/**
|
|
1296
|
-
* @generated from field: uint32 market_id = 2;
|
|
1297
|
-
*/
|
|
1298
|
-
marketId?: number;
|
|
1299
|
-
|
|
1300
|
-
/**
|
|
1301
|
-
* @generated from field: nord.Side side = 3;
|
|
1302
|
-
*/
|
|
1303
|
-
side?: SideJson;
|
|
1304
|
-
|
|
1305
|
-
/**
|
|
1306
|
-
* @generated from field: nord.FillMode fill_mode = 4;
|
|
1307
|
-
*/
|
|
1308
|
-
fillMode?: FillModeJson;
|
|
1309
|
-
|
|
1310
|
-
/**
|
|
1311
|
-
* A reduce-only order only reduces your current position, as opposed to
|
|
1312
|
-
* increasing it. It means you can only use it to close a position. In
|
|
1313
|
-
* contrast, non-reduce-only orders can reduce or increase your position.
|
|
1314
|
-
* Reduce is handled by dynamically reducing or adjusting limit order's
|
|
1315
|
-
* contract quantity
|
|
1316
|
-
* / to match the contract size of the open position.
|
|
1317
|
-
*
|
|
1318
|
-
* @generated from field: bool is_reduce_only = 5;
|
|
1319
|
-
*/
|
|
1320
|
-
isReduceOnly?: boolean;
|
|
1321
|
-
|
|
1322
|
-
/**
|
|
1323
|
-
* Raw integral value of order limit price.
|
|
1324
|
-
* `1` here equals to market's `10^-price_decimals`
|
|
1325
|
-
* When used in token balances and reward computations, shifted by market's
|
|
1326
|
-
* `price_decimals`. Optional, treated as not set if 0.
|
|
1327
|
-
*
|
|
1328
|
-
* @generated from field: uint64 price = 6;
|
|
1329
|
-
*/
|
|
1330
|
-
price?: string;
|
|
1331
|
-
|
|
1332
|
-
/**
|
|
1333
|
-
* Raw integral value of order size limit.
|
|
1334
|
-
* For spot markers measured in base size,
|
|
1335
|
-
* for perpetuals in contract token.
|
|
1336
|
-
* So using base as default naming in codebase.
|
|
1337
|
-
* `1` here equals to market's `10^-size_decimals`
|
|
1338
|
-
* When used in token balances and reward computations, shifted by market's
|
|
1339
|
-
* `size_decimals`. Optional, treated as not set if 0.
|
|
1340
|
-
*
|
|
1341
|
-
* @generated from field: uint64 size = 7;
|
|
1342
|
-
*/
|
|
1343
|
-
size?: string;
|
|
1344
|
-
|
|
1345
|
-
/**
|
|
1346
|
-
* Quote size limit.
|
|
1347
|
-
* Optional.
|
|
1348
|
-
*
|
|
1349
|
-
* @generated from field: nord.QuoteSize quote_size = 8;
|
|
1350
|
-
*/
|
|
1351
|
-
quoteSize?: QuoteSizeJson;
|
|
1352
|
-
|
|
1353
|
-
/**
|
|
1354
|
-
* Optional account on behalf of whom the order should be placed.
|
|
1355
|
-
* Executed only if sender has delegated authority to do so,
|
|
1356
|
-
* like admin user or liquidator bot.
|
|
1357
|
-
* # Delegation allowed if:
|
|
1358
|
-
* - trigger
|
|
1359
|
-
* - reduce bad position
|
|
1360
|
-
* - sell at good price to reduce if cannot cover bad position
|
|
1361
|
-
*
|
|
1362
|
-
* @generated from field: optional uint32 delegator_account_id = 32;
|
|
1363
|
-
*/
|
|
1364
|
-
delegatorAccountId?: number;
|
|
1365
|
-
|
|
1366
|
-
/**
|
|
1367
|
-
* Caller provided opaque order identifier up to 8 bytes.
|
|
1368
|
-
* Not used by engine, but can be used by client to track orders.
|
|
1369
|
-
*
|
|
1370
|
-
* @generated from field: optional uint64 client_order_id = 33;
|
|
1371
|
-
*/
|
|
1372
|
-
clientOrderId?: string;
|
|
1373
|
-
|
|
1374
|
-
/**
|
|
1375
|
-
* Account id which performs operation;
|
|
1376
|
-
* if not specified, first account of session's owner user is picked
|
|
1377
|
-
*
|
|
1378
|
-
* @generated from field: optional uint32 sender_account_id = 34;
|
|
1379
|
-
*/
|
|
1380
|
-
senderAccountId?: number;
|
|
1381
|
-
|
|
1382
|
-
/**
|
|
1383
|
-
* Opaque identifier chosen by the sender to be able to correlate this
|
|
1384
|
-
* place order requests with the corresponding fill and place order events.
|
|
1385
|
-
*
|
|
1386
|
-
* @generated from field: optional uint64 sender_tracking_id = 35;
|
|
1387
|
-
*/
|
|
1388
|
-
senderTrackingId?: string;
|
|
1389
|
-
};
|
|
1390
|
-
|
|
1391
|
-
/**
|
|
1392
|
-
* Describes the message nord.Action.PlaceOrder.
|
|
1393
|
-
* Use `create(Action_PlaceOrderSchema)` to create a new message.
|
|
1394
|
-
*/
|
|
1395
|
-
export const Action_PlaceOrderSchema: GenMessage<Action_PlaceOrder, {jsonType: Action_PlaceOrderJson}> = /*@__PURE__*/
|
|
1396
|
-
messageDesc(file_nord, 9, 3);
|
|
1397
|
-
|
|
1398
|
-
/**
|
|
1399
|
-
* @generated from message nord.Action.CancelOrderById
|
|
1400
|
-
*/
|
|
1401
|
-
export type Action_CancelOrderById = Message<"nord.Action.CancelOrderById"> & {
|
|
1402
|
-
/**
|
|
1403
|
-
* @generated from field: uint64 session_id = 1;
|
|
1404
|
-
*/
|
|
1405
|
-
sessionId: bigint;
|
|
1406
|
-
|
|
1407
|
-
/**
|
|
1408
|
-
* @generated from field: uint64 order_id = 2;
|
|
1409
|
-
*/
|
|
1410
|
-
orderId: bigint;
|
|
1411
|
-
|
|
1412
|
-
/**
|
|
1413
|
-
* @generated from field: optional uint32 delegator_account_id = 32;
|
|
1414
|
-
*/
|
|
1415
|
-
delegatorAccountId?: number;
|
|
1416
|
-
|
|
1417
|
-
/**
|
|
1418
|
-
* @generated from field: optional uint32 sender_account_id = 33;
|
|
1419
|
-
*/
|
|
1420
|
-
senderAccountId?: number;
|
|
1421
|
-
};
|
|
1422
|
-
|
|
1423
|
-
/**
|
|
1424
|
-
* @generated from message nord.Action.CancelOrderById
|
|
1425
|
-
*/
|
|
1426
|
-
export type Action_CancelOrderByIdJson = {
|
|
1427
|
-
/**
|
|
1428
|
-
* @generated from field: uint64 session_id = 1;
|
|
1429
|
-
*/
|
|
1430
|
-
sessionId?: string;
|
|
1431
|
-
|
|
1432
|
-
/**
|
|
1433
|
-
* @generated from field: uint64 order_id = 2;
|
|
1434
|
-
*/
|
|
1435
|
-
orderId?: string;
|
|
1436
|
-
|
|
1437
|
-
/**
|
|
1438
|
-
* @generated from field: optional uint32 delegator_account_id = 32;
|
|
1439
|
-
*/
|
|
1440
|
-
delegatorAccountId?: number;
|
|
1441
|
-
|
|
1442
|
-
/**
|
|
1443
|
-
* @generated from field: optional uint32 sender_account_id = 33;
|
|
1444
|
-
*/
|
|
1445
|
-
senderAccountId?: number;
|
|
1446
|
-
};
|
|
1447
|
-
|
|
1448
|
-
/**
|
|
1449
|
-
* Describes the message nord.Action.CancelOrderById.
|
|
1450
|
-
* Use `create(Action_CancelOrderByIdSchema)` to create a new message.
|
|
1451
|
-
*/
|
|
1452
|
-
export const Action_CancelOrderByIdSchema: GenMessage<Action_CancelOrderById, {jsonType: Action_CancelOrderByIdJson}> = /*@__PURE__*/
|
|
1453
|
-
messageDesc(file_nord, 9, 4);
|
|
1454
|
-
|
|
1455
|
-
/**
|
|
1456
|
-
* @generated from message nord.Action.Deposit
|
|
1457
|
-
*/
|
|
1458
|
-
export type Action_Deposit = Message<"nord.Action.Deposit"> & {
|
|
1459
|
-
/**
|
|
1460
|
-
* used for integration of rollup with nord app
|
|
1461
|
-
*
|
|
1462
|
-
* @generated from field: uint64 action_nonce = 1;
|
|
1463
|
-
*/
|
|
1464
|
-
actionNonce: bigint;
|
|
1465
|
-
|
|
1466
|
-
/**
|
|
1467
|
-
* @generated from field: bytes token_addr = 2;
|
|
1468
|
-
*/
|
|
1469
|
-
tokenAddr: Uint8Array;
|
|
1470
|
-
|
|
1471
|
-
/**
|
|
1472
|
-
* Shifted by the token's decimals.
|
|
1473
|
-
*
|
|
1474
|
-
* @generated from field: uint64 amount = 3;
|
|
1475
|
-
*/
|
|
1476
|
-
amount: bigint;
|
|
1477
|
-
|
|
1478
|
-
/**
|
|
1479
|
-
* Recipient's ed25519 registration public key, 32 bytes long
|
|
1480
|
-
*
|
|
1481
|
-
* @generated from field: bytes user_pubkey = 4;
|
|
1482
|
-
*/
|
|
1483
|
-
userPubkey: Uint8Array;
|
|
1484
|
-
|
|
1485
|
-
/**
|
|
1486
|
-
* Sender's ed25519 public key. Unused in nord, but must be forwarded
|
|
1487
|
-
* through the system.
|
|
1488
|
-
*
|
|
1489
|
-
* @generated from field: bytes sender_pubkey = 5;
|
|
1490
|
-
*/
|
|
1491
|
-
senderPubkey: Uint8Array;
|
|
1492
|
-
};
|
|
1493
|
-
|
|
1494
|
-
/**
|
|
1495
|
-
* @generated from message nord.Action.Deposit
|
|
1496
|
-
*/
|
|
1497
|
-
export type Action_DepositJson = {
|
|
1498
|
-
/**
|
|
1499
|
-
* used for integration of rollup with nord app
|
|
1500
|
-
*
|
|
1501
|
-
* @generated from field: uint64 action_nonce = 1;
|
|
1502
|
-
*/
|
|
1503
|
-
actionNonce?: string;
|
|
1504
|
-
|
|
1505
|
-
/**
|
|
1506
|
-
* @generated from field: bytes token_addr = 2;
|
|
1507
|
-
*/
|
|
1508
|
-
tokenAddr?: string;
|
|
1509
|
-
|
|
1510
|
-
/**
|
|
1511
|
-
* Shifted by the token's decimals.
|
|
1512
|
-
*
|
|
1513
|
-
* @generated from field: uint64 amount = 3;
|
|
1514
|
-
*/
|
|
1515
|
-
amount?: string;
|
|
1516
|
-
|
|
1517
|
-
/**
|
|
1518
|
-
* Recipient's ed25519 registration public key, 32 bytes long
|
|
1519
|
-
*
|
|
1520
|
-
* @generated from field: bytes user_pubkey = 4;
|
|
1521
|
-
*/
|
|
1522
|
-
userPubkey?: string;
|
|
1523
|
-
|
|
1524
|
-
/**
|
|
1525
|
-
* Sender's ed25519 public key. Unused in nord, but must be forwarded
|
|
1526
|
-
* through the system.
|
|
1527
|
-
*
|
|
1528
|
-
* @generated from field: bytes sender_pubkey = 5;
|
|
1529
|
-
*/
|
|
1530
|
-
senderPubkey?: string;
|
|
1531
|
-
};
|
|
1532
|
-
|
|
1533
|
-
/**
|
|
1534
|
-
* Describes the message nord.Action.Deposit.
|
|
1535
|
-
* Use `create(Action_DepositSchema)` to create a new message.
|
|
1536
|
-
*/
|
|
1537
|
-
export const Action_DepositSchema: GenMessage<Action_Deposit, {jsonType: Action_DepositJson}> = /*@__PURE__*/
|
|
1538
|
-
messageDesc(file_nord, 9, 5);
|
|
1539
|
-
|
|
1540
|
-
/**
|
|
1541
|
-
* todo(n1): when gate will be here, remove or replace internals with message
|
|
1542
|
-
*
|
|
1543
|
-
* @generated from message nord.Action.Withdraw
|
|
1544
|
-
*/
|
|
1545
|
-
export type Action_Withdraw = Message<"nord.Action.Withdraw"> & {
|
|
1546
|
-
/**
|
|
1547
|
-
* @generated from field: uint32 token_id = 1;
|
|
1548
|
-
*/
|
|
1549
|
-
tokenId: number;
|
|
1550
|
-
|
|
1551
|
-
/**
|
|
1552
|
-
* @generated from field: uint64 session_id = 2;
|
|
1553
|
-
*/
|
|
1554
|
-
sessionId: bigint;
|
|
1555
|
-
|
|
1556
|
-
/**
|
|
1557
|
-
* Shifted by the token's decimals.
|
|
1558
|
-
*
|
|
1559
|
-
* @generated from field: uint64 amount = 3;
|
|
1560
|
-
*/
|
|
1561
|
-
amount: bigint;
|
|
1562
|
-
};
|
|
1563
|
-
|
|
1564
|
-
/**
|
|
1565
|
-
* todo(n1): when gate will be here, remove or replace internals with message
|
|
1566
|
-
*
|
|
1567
|
-
* @generated from message nord.Action.Withdraw
|
|
1568
|
-
*/
|
|
1569
|
-
export type Action_WithdrawJson = {
|
|
1570
|
-
/**
|
|
1571
|
-
* @generated from field: uint32 token_id = 1;
|
|
1572
|
-
*/
|
|
1573
|
-
tokenId?: number;
|
|
1574
|
-
|
|
1575
|
-
/**
|
|
1576
|
-
* @generated from field: uint64 session_id = 2;
|
|
1577
|
-
*/
|
|
1578
|
-
sessionId?: string;
|
|
1579
|
-
|
|
1580
|
-
/**
|
|
1581
|
-
* Shifted by the token's decimals.
|
|
1582
|
-
*
|
|
1583
|
-
* @generated from field: uint64 amount = 3;
|
|
1584
|
-
*/
|
|
1585
|
-
amount?: string;
|
|
1586
|
-
};
|
|
1587
|
-
|
|
1588
|
-
/**
|
|
1589
|
-
* Describes the message nord.Action.Withdraw.
|
|
1590
|
-
* Use `create(Action_WithdrawSchema)` to create a new message.
|
|
1591
|
-
*/
|
|
1592
|
-
export const Action_WithdrawSchema: GenMessage<Action_Withdraw, {jsonType: Action_WithdrawJson}> = /*@__PURE__*/
|
|
1593
|
-
messageDesc(file_nord, 9, 6);
|
|
1594
|
-
|
|
1595
|
-
/**
|
|
1596
|
-
* @generated from message nord.Action.PythSetWormholeGuardians
|
|
1597
|
-
*/
|
|
1598
|
-
export type Action_PythSetWormholeGuardians = Message<"nord.Action.PythSetWormholeGuardians"> & {
|
|
1599
|
-
/**
|
|
1600
|
-
* See
|
|
1601
|
-
* https://docs.wormholescan.io/#/Guardian/guardian-set
|
|
1602
|
-
*
|
|
1603
|
-
* @generated from field: uint32 guardian_set_index = 1;
|
|
1604
|
-
*/
|
|
1605
|
-
guardianSetIndex: number;
|
|
1606
|
-
|
|
1607
|
-
/**
|
|
1608
|
-
* Each address is 20 bytes, consisting of the last 20 bytes
|
|
1609
|
-
* of the keccak256 hash of the public key of the guardian.
|
|
1610
|
-
*
|
|
1611
|
-
* @generated from field: repeated bytes addresses = 2;
|
|
1612
|
-
*/
|
|
1613
|
-
addresses: Uint8Array[];
|
|
1614
|
-
|
|
1615
|
-
/**
|
|
1616
|
-
* @generated from field: bytes acl_pubkey = 3;
|
|
1617
|
-
*/
|
|
1618
|
-
aclPubkey: Uint8Array;
|
|
1619
|
-
};
|
|
1620
|
-
|
|
1621
|
-
/**
|
|
1622
|
-
* @generated from message nord.Action.PythSetWormholeGuardians
|
|
1623
|
-
*/
|
|
1624
|
-
export type Action_PythSetWormholeGuardiansJson = {
|
|
1625
|
-
/**
|
|
1626
|
-
* See
|
|
1627
|
-
* https://docs.wormholescan.io/#/Guardian/guardian-set
|
|
1628
|
-
*
|
|
1629
|
-
* @generated from field: uint32 guardian_set_index = 1;
|
|
1630
|
-
*/
|
|
1631
|
-
guardianSetIndex?: number;
|
|
1632
|
-
|
|
1633
|
-
/**
|
|
1634
|
-
* Each address is 20 bytes, consisting of the last 20 bytes
|
|
1635
|
-
* of the keccak256 hash of the public key of the guardian.
|
|
1636
|
-
*
|
|
1637
|
-
* @generated from field: repeated bytes addresses = 2;
|
|
1638
|
-
*/
|
|
1639
|
-
addresses?: string[];
|
|
1640
|
-
|
|
1641
|
-
/**
|
|
1642
|
-
* @generated from field: bytes acl_pubkey = 3;
|
|
1643
|
-
*/
|
|
1644
|
-
aclPubkey?: string;
|
|
1645
|
-
};
|
|
1646
|
-
|
|
1647
|
-
/**
|
|
1648
|
-
* Describes the message nord.Action.PythSetWormholeGuardians.
|
|
1649
|
-
* Use `create(Action_PythSetWormholeGuardiansSchema)` to create a new message.
|
|
1650
|
-
*/
|
|
1651
|
-
export const Action_PythSetWormholeGuardiansSchema: GenMessage<Action_PythSetWormholeGuardians, {jsonType: Action_PythSetWormholeGuardiansJson}> = /*@__PURE__*/
|
|
1652
|
-
messageDesc(file_nord, 9, 7);
|
|
1653
|
-
|
|
1654
|
-
/**
|
|
1655
|
-
* Associate a oracle symbol to a Pyth Feed ID.
|
|
1656
|
-
*
|
|
1657
|
-
* @generated from message nord.Action.PythSetSymbolFeed
|
|
1658
|
-
*/
|
|
1659
|
-
export type Action_PythSetSymbolFeed = Message<"nord.Action.PythSetSymbolFeed"> & {
|
|
1660
|
-
/**
|
|
1661
|
-
* @generated from field: string oracle_symbol = 1;
|
|
1662
|
-
*/
|
|
1663
|
-
oracleSymbol: string;
|
|
1664
|
-
|
|
1665
|
-
/**
|
|
1666
|
-
* MUST be 32 bytes.
|
|
1667
|
-
*
|
|
1668
|
-
* @generated from field: bytes price_feed_id = 2;
|
|
1669
|
-
*/
|
|
1670
|
-
priceFeedId: Uint8Array;
|
|
1671
|
-
|
|
1672
|
-
/**
|
|
1673
|
-
* @generated from field: bytes acl_pubkey = 3;
|
|
1674
|
-
*/
|
|
1675
|
-
aclPubkey: Uint8Array;
|
|
1676
|
-
};
|
|
1677
|
-
|
|
1678
|
-
/**
|
|
1679
|
-
* Associate a oracle symbol to a Pyth Feed ID.
|
|
1680
|
-
*
|
|
1681
|
-
* @generated from message nord.Action.PythSetSymbolFeed
|
|
1682
|
-
*/
|
|
1683
|
-
export type Action_PythSetSymbolFeedJson = {
|
|
1684
|
-
/**
|
|
1685
|
-
* @generated from field: string oracle_symbol = 1;
|
|
1686
|
-
*/
|
|
1687
|
-
oracleSymbol?: string;
|
|
1688
|
-
|
|
1689
|
-
/**
|
|
1690
|
-
* MUST be 32 bytes.
|
|
1691
|
-
*
|
|
1692
|
-
* @generated from field: bytes price_feed_id = 2;
|
|
1693
|
-
*/
|
|
1694
|
-
priceFeedId?: string;
|
|
1695
|
-
|
|
1696
|
-
/**
|
|
1697
|
-
* @generated from field: bytes acl_pubkey = 3;
|
|
1698
|
-
*/
|
|
1699
|
-
aclPubkey?: string;
|
|
1700
|
-
};
|
|
1701
|
-
|
|
1702
|
-
/**
|
|
1703
|
-
* Describes the message nord.Action.PythSetSymbolFeed.
|
|
1704
|
-
* Use `create(Action_PythSetSymbolFeedSchema)` to create a new message.
|
|
1705
|
-
*/
|
|
1706
|
-
export const Action_PythSetSymbolFeedSchema: GenMessage<Action_PythSetSymbolFeed, {jsonType: Action_PythSetSymbolFeedJson}> = /*@__PURE__*/
|
|
1707
|
-
messageDesc(file_nord, 9, 8);
|
|
1708
|
-
|
|
1709
|
-
/**
|
|
1710
|
-
* @generated from message nord.Action.PythPriceFeedUpdate
|
|
1711
|
-
*/
|
|
1712
|
-
export type Action_PythPriceFeedUpdate = Message<"nord.Action.PythPriceFeedUpdate"> & {
|
|
1713
|
-
/**
|
|
1714
|
-
* See https://hermes.pyth.network/docs/#/rest/latest_price_updates
|
|
1715
|
-
*
|
|
1716
|
-
* @generated from field: bytes raw_pythnet_data = 1;
|
|
1717
|
-
*/
|
|
1718
|
-
rawPythnetData: Uint8Array;
|
|
1719
|
-
};
|
|
1720
|
-
|
|
1721
|
-
/**
|
|
1722
|
-
* @generated from message nord.Action.PythPriceFeedUpdate
|
|
1723
|
-
*/
|
|
1724
|
-
export type Action_PythPriceFeedUpdateJson = {
|
|
1725
|
-
/**
|
|
1726
|
-
* See https://hermes.pyth.network/docs/#/rest/latest_price_updates
|
|
1727
|
-
*
|
|
1728
|
-
* @generated from field: bytes raw_pythnet_data = 1;
|
|
1729
|
-
*/
|
|
1730
|
-
rawPythnetData?: string;
|
|
1731
|
-
};
|
|
1732
|
-
|
|
1733
|
-
/**
|
|
1734
|
-
* Describes the message nord.Action.PythPriceFeedUpdate.
|
|
1735
|
-
* Use `create(Action_PythPriceFeedUpdateSchema)` to create a new message.
|
|
1736
|
-
*/
|
|
1737
|
-
export const Action_PythPriceFeedUpdateSchema: GenMessage<Action_PythPriceFeedUpdate, {jsonType: Action_PythPriceFeedUpdateJson}> = /*@__PURE__*/
|
|
1738
|
-
messageDesc(file_nord, 9, 9);
|
|
1739
|
-
|
|
1740
|
-
/**
|
|
1741
|
-
* Perform final account liquidation procedure.
|
|
1742
|
-
* Can be executed only accounts with AV < 0 (bankrupt).
|
|
1743
|
-
* After execution, `liquidatee_account_id` is removed from state.
|
|
1744
|
-
* See MARKETS.md `Bankruptcy` for details.
|
|
1745
|
-
*
|
|
1746
|
-
* @generated from message nord.Action.Liquidate
|
|
1747
|
-
*/
|
|
1748
|
-
export type Action_Liquidate = Message<"nord.Action.Liquidate"> & {
|
|
1749
|
-
/**
|
|
1750
|
-
* @generated from field: uint64 liquidator_session_id = 1;
|
|
1751
|
-
*/
|
|
1752
|
-
liquidatorSessionId: bigint;
|
|
1753
|
-
|
|
1754
|
-
/**
|
|
1755
|
-
* @generated from field: uint32 liquidatee_account_id = 2;
|
|
1756
|
-
*/
|
|
1757
|
-
liquidateeAccountId: number;
|
|
1758
|
-
|
|
1759
|
-
/**
|
|
1760
|
-
* @generated from field: optional uint32 liquidator_account_id = 3;
|
|
1761
|
-
*/
|
|
1762
|
-
liquidatorAccountId?: number;
|
|
1763
|
-
};
|
|
1764
|
-
|
|
1765
|
-
/**
|
|
1766
|
-
* Perform final account liquidation procedure.
|
|
1767
|
-
* Can be executed only accounts with AV < 0 (bankrupt).
|
|
1768
|
-
* After execution, `liquidatee_account_id` is removed from state.
|
|
1769
|
-
* See MARKETS.md `Bankruptcy` for details.
|
|
1770
|
-
*
|
|
1771
|
-
* @generated from message nord.Action.Liquidate
|
|
1772
|
-
*/
|
|
1773
|
-
export type Action_LiquidateJson = {
|
|
1774
|
-
/**
|
|
1775
|
-
* @generated from field: uint64 liquidator_session_id = 1;
|
|
1776
|
-
*/
|
|
1777
|
-
liquidatorSessionId?: string;
|
|
1778
|
-
|
|
1779
|
-
/**
|
|
1780
|
-
* @generated from field: uint32 liquidatee_account_id = 2;
|
|
1781
|
-
*/
|
|
1782
|
-
liquidateeAccountId?: number;
|
|
1783
|
-
|
|
1784
|
-
/**
|
|
1785
|
-
* @generated from field: optional uint32 liquidator_account_id = 3;
|
|
1786
|
-
*/
|
|
1787
|
-
liquidatorAccountId?: number;
|
|
1788
|
-
};
|
|
1789
|
-
|
|
1790
|
-
/**
|
|
1791
|
-
* Describes the message nord.Action.Liquidate.
|
|
1792
|
-
* Use `create(Action_LiquidateSchema)` to create a new message.
|
|
1793
|
-
*/
|
|
1794
|
-
export const Action_LiquidateSchema: GenMessage<Action_Liquidate, {jsonType: Action_LiquidateJson}> = /*@__PURE__*/
|
|
1795
|
-
messageDesc(file_nord, 9, 10);
|
|
1796
|
-
|
|
1797
|
-
/**
|
|
1798
|
-
* @generated from message nord.Action.RevokeSession
|
|
1799
|
-
*/
|
|
1800
|
-
export type Action_RevokeSession = Message<"nord.Action.RevokeSession"> & {
|
|
1801
|
-
/**
|
|
1802
|
-
* @generated from field: uint64 session_id = 1;
|
|
1803
|
-
*/
|
|
1804
|
-
sessionId: bigint;
|
|
1805
|
-
};
|
|
1806
|
-
|
|
1807
|
-
/**
|
|
1808
|
-
* @generated from message nord.Action.RevokeSession
|
|
1809
|
-
*/
|
|
1810
|
-
export type Action_RevokeSessionJson = {
|
|
1811
|
-
/**
|
|
1812
|
-
* @generated from field: uint64 session_id = 1;
|
|
1813
|
-
*/
|
|
1814
|
-
sessionId?: string;
|
|
1815
|
-
};
|
|
1816
|
-
|
|
1817
|
-
/**
|
|
1818
|
-
* Describes the message nord.Action.RevokeSession.
|
|
1819
|
-
* Use `create(Action_RevokeSessionSchema)` to create a new message.
|
|
1820
|
-
*/
|
|
1821
|
-
export const Action_RevokeSessionSchema: GenMessage<Action_RevokeSession, {jsonType: Action_RevokeSessionJson}> = /*@__PURE__*/
|
|
1822
|
-
messageDesc(file_nord, 9, 11);
|
|
1823
|
-
|
|
1824
|
-
/**
|
|
1825
|
-
* The engine fails with a maintenance error while paused.
|
|
1826
|
-
*
|
|
1827
|
-
* @generated from message nord.Action.Pause
|
|
1828
|
-
*/
|
|
1829
|
-
export type Action_Pause = Message<"nord.Action.Pause"> & {
|
|
1830
|
-
/**
|
|
1831
|
-
* @generated from field: bytes acl_pubkey = 1;
|
|
1832
|
-
*/
|
|
1833
|
-
aclPubkey: Uint8Array;
|
|
1834
|
-
};
|
|
1835
|
-
|
|
1836
|
-
/**
|
|
1837
|
-
* The engine fails with a maintenance error while paused.
|
|
1838
|
-
*
|
|
1839
|
-
* @generated from message nord.Action.Pause
|
|
1840
|
-
*/
|
|
1841
|
-
export type Action_PauseJson = {
|
|
1842
|
-
/**
|
|
1843
|
-
* @generated from field: bytes acl_pubkey = 1;
|
|
1844
|
-
*/
|
|
1845
|
-
aclPubkey?: string;
|
|
1846
|
-
};
|
|
1847
|
-
|
|
1848
|
-
/**
|
|
1849
|
-
* Describes the message nord.Action.Pause.
|
|
1850
|
-
* Use `create(Action_PauseSchema)` to create a new message.
|
|
1851
|
-
*/
|
|
1852
|
-
export const Action_PauseSchema: GenMessage<Action_Pause, {jsonType: Action_PauseJson}> = /*@__PURE__*/
|
|
1853
|
-
messageDesc(file_nord, 9, 12);
|
|
1854
|
-
|
|
1855
|
-
/**
|
|
1856
|
-
* @generated from message nord.Action.Unpause
|
|
1857
|
-
*/
|
|
1858
|
-
export type Action_Unpause = Message<"nord.Action.Unpause"> & {
|
|
1859
|
-
/**
|
|
1860
|
-
* @generated from field: bytes acl_pubkey = 1;
|
|
1861
|
-
*/
|
|
1862
|
-
aclPubkey: Uint8Array;
|
|
1863
|
-
};
|
|
1864
|
-
|
|
1865
|
-
/**
|
|
1866
|
-
* @generated from message nord.Action.Unpause
|
|
1867
|
-
*/
|
|
1868
|
-
export type Action_UnpauseJson = {
|
|
1869
|
-
/**
|
|
1870
|
-
* @generated from field: bytes acl_pubkey = 1;
|
|
1871
|
-
*/
|
|
1872
|
-
aclPubkey?: string;
|
|
1873
|
-
};
|
|
1874
|
-
|
|
1875
|
-
/**
|
|
1876
|
-
* Describes the message nord.Action.Unpause.
|
|
1877
|
-
* Use `create(Action_UnpauseSchema)` to create a new message.
|
|
1878
|
-
*/
|
|
1879
|
-
export const Action_UnpauseSchema: GenMessage<Action_Unpause, {jsonType: Action_UnpauseJson}> = /*@__PURE__*/
|
|
1880
|
-
messageDesc(file_nord, 9, 13);
|
|
1881
|
-
|
|
1882
|
-
/**
|
|
1883
|
-
* Transfers tokens to specified account.
|
|
1884
|
-
*
|
|
1885
|
-
* @generated from message nord.Action.Transfer
|
|
1886
|
-
*/
|
|
1887
|
-
export type Action_Transfer = Message<"nord.Action.Transfer"> & {
|
|
1888
|
-
/**
|
|
1889
|
-
* @generated from field: uint64 session_id = 1;
|
|
1890
|
-
*/
|
|
1891
|
-
sessionId: bigint;
|
|
1892
|
-
|
|
1893
|
-
/**
|
|
1894
|
-
* @generated from field: uint32 from_account_id = 2;
|
|
1895
|
-
*/
|
|
1896
|
-
fromAccountId: number;
|
|
1897
|
-
|
|
1898
|
-
/**
|
|
1899
|
-
* @generated from field: uint32 token_id = 3;
|
|
1900
|
-
*/
|
|
1901
|
-
tokenId: number;
|
|
1902
|
-
|
|
1903
|
-
/**
|
|
1904
|
-
* @generated from field: uint64 amount = 4;
|
|
1905
|
-
*/
|
|
1906
|
-
amount: bigint;
|
|
1907
|
-
|
|
1908
|
-
/**
|
|
1909
|
-
* If target account id isn't specified, new account is created.
|
|
1910
|
-
*
|
|
1911
|
-
* @generated from field: optional uint32 to_account_id = 8;
|
|
1912
|
-
*/
|
|
1913
|
-
toAccountId?: number;
|
|
1914
|
-
|
|
1915
|
-
/**
|
|
1916
|
-
* If specified, than `to_account_id` must be none.
|
|
1917
|
-
* Transfer funds to accounts, for example to cover bankruptcies.
|
|
1918
|
-
*
|
|
1919
|
-
* @generated from field: optional nord.SpecialAccount special_account = 9;
|
|
1920
|
-
*/
|
|
1921
|
-
specialAccount?: SpecialAccount;
|
|
1922
|
-
};
|
|
1923
|
-
|
|
1924
|
-
/**
|
|
1925
|
-
* Transfers tokens to specified account.
|
|
1926
|
-
*
|
|
1927
|
-
* @generated from message nord.Action.Transfer
|
|
1928
|
-
*/
|
|
1929
|
-
export type Action_TransferJson = {
|
|
1930
|
-
/**
|
|
1931
|
-
* @generated from field: uint64 session_id = 1;
|
|
1932
|
-
*/
|
|
1933
|
-
sessionId?: string;
|
|
1934
|
-
|
|
1935
|
-
/**
|
|
1936
|
-
* @generated from field: uint32 from_account_id = 2;
|
|
1937
|
-
*/
|
|
1938
|
-
fromAccountId?: number;
|
|
1939
|
-
|
|
1940
|
-
/**
|
|
1941
|
-
* @generated from field: uint32 token_id = 3;
|
|
1942
|
-
*/
|
|
1943
|
-
tokenId?: number;
|
|
1944
|
-
|
|
1945
|
-
/**
|
|
1946
|
-
* @generated from field: uint64 amount = 4;
|
|
1947
|
-
*/
|
|
1948
|
-
amount?: string;
|
|
1949
|
-
|
|
1950
|
-
/**
|
|
1951
|
-
* If target account id isn't specified, new account is created.
|
|
1952
|
-
*
|
|
1953
|
-
* @generated from field: optional uint32 to_account_id = 8;
|
|
1954
|
-
*/
|
|
1955
|
-
toAccountId?: number;
|
|
1956
|
-
|
|
1957
|
-
/**
|
|
1958
|
-
* If specified, than `to_account_id` must be none.
|
|
1959
|
-
* Transfer funds to accounts, for example to cover bankruptcies.
|
|
1960
|
-
*
|
|
1961
|
-
* @generated from field: optional nord.SpecialAccount special_account = 9;
|
|
1962
|
-
*/
|
|
1963
|
-
specialAccount?: SpecialAccountJson;
|
|
1964
|
-
};
|
|
1965
|
-
|
|
1966
|
-
/**
|
|
1967
|
-
* Describes the message nord.Action.Transfer.
|
|
1968
|
-
* Use `create(Action_TransferSchema)` to create a new message.
|
|
1969
|
-
*/
|
|
1970
|
-
export const Action_TransferSchema: GenMessage<Action_Transfer, {jsonType: Action_TransferJson}> = /*@__PURE__*/
|
|
1971
|
-
messageDesc(file_nord, 9, 14);
|
|
1972
|
-
|
|
1973
|
-
/**
|
|
1974
|
-
* @generated from message nord.Action.TriggerPrices
|
|
1975
|
-
*/
|
|
1976
|
-
export type Action_TriggerPrices = Message<"nord.Action.TriggerPrices"> & {
|
|
1977
|
-
/**
|
|
1978
|
-
* @generated from field: uint64 trigger_price = 5;
|
|
1979
|
-
*/
|
|
1980
|
-
triggerPrice: bigint;
|
|
1981
|
-
|
|
1982
|
-
/**
|
|
1983
|
-
* @generated from field: optional uint64 limit_price = 6;
|
|
1984
|
-
*/
|
|
1985
|
-
limitPrice?: bigint;
|
|
1986
|
-
};
|
|
1987
|
-
|
|
1988
|
-
/**
|
|
1989
|
-
* @generated from message nord.Action.TriggerPrices
|
|
1990
|
-
*/
|
|
1991
|
-
export type Action_TriggerPricesJson = {
|
|
1992
|
-
/**
|
|
1993
|
-
* @generated from field: uint64 trigger_price = 5;
|
|
1994
|
-
*/
|
|
1995
|
-
triggerPrice?: string;
|
|
1996
|
-
|
|
1997
|
-
/**
|
|
1998
|
-
* @generated from field: optional uint64 limit_price = 6;
|
|
1999
|
-
*/
|
|
2000
|
-
limitPrice?: string;
|
|
2001
|
-
};
|
|
2002
|
-
|
|
2003
|
-
/**
|
|
2004
|
-
* Describes the message nord.Action.TriggerPrices.
|
|
2005
|
-
* Use `create(Action_TriggerPricesSchema)` to create a new message.
|
|
2006
|
-
*/
|
|
2007
|
-
export const Action_TriggerPricesSchema: GenMessage<Action_TriggerPrices, {jsonType: Action_TriggerPricesJson}> = /*@__PURE__*/
|
|
2008
|
-
messageDesc(file_nord, 9, 15);
|
|
2009
|
-
|
|
2010
|
-
/**
|
|
2011
|
-
* @generated from message nord.Action.AddTrigger
|
|
2012
|
-
*/
|
|
2013
|
-
export type Action_AddTrigger = Message<"nord.Action.AddTrigger"> & {
|
|
2014
|
-
/**
|
|
2015
|
-
* @generated from field: uint64 session_id = 1;
|
|
2016
|
-
*/
|
|
2017
|
-
sessionId: bigint;
|
|
2018
|
-
|
|
2019
|
-
/**
|
|
2020
|
-
* @generated from field: uint32 market_id = 2;
|
|
2021
|
-
*/
|
|
2022
|
-
marketId: number;
|
|
2023
|
-
|
|
2024
|
-
/**
|
|
2025
|
-
* @generated from field: nord.TriggerKey key = 3;
|
|
2026
|
-
*/
|
|
2027
|
-
key?: TriggerKey;
|
|
2028
|
-
|
|
2029
|
-
/**
|
|
2030
|
-
* @generated from field: nord.Action.TriggerPrices prices = 4;
|
|
2031
|
-
*/
|
|
2032
|
-
prices?: Action_TriggerPrices;
|
|
2033
|
-
|
|
2034
|
-
/**
|
|
2035
|
-
* @generated from field: optional uint32 account_id = 10;
|
|
2036
|
-
*/
|
|
2037
|
-
accountId?: number;
|
|
2038
|
-
};
|
|
2039
|
-
|
|
2040
|
-
/**
|
|
2041
|
-
* @generated from message nord.Action.AddTrigger
|
|
2042
|
-
*/
|
|
2043
|
-
export type Action_AddTriggerJson = {
|
|
2044
|
-
/**
|
|
2045
|
-
* @generated from field: uint64 session_id = 1;
|
|
2046
|
-
*/
|
|
2047
|
-
sessionId?: string;
|
|
2048
|
-
|
|
2049
|
-
/**
|
|
2050
|
-
* @generated from field: uint32 market_id = 2;
|
|
2051
|
-
*/
|
|
2052
|
-
marketId?: number;
|
|
2053
|
-
|
|
2054
|
-
/**
|
|
2055
|
-
* @generated from field: nord.TriggerKey key = 3;
|
|
2056
|
-
*/
|
|
2057
|
-
key?: TriggerKeyJson;
|
|
2058
|
-
|
|
2059
|
-
/**
|
|
2060
|
-
* @generated from field: nord.Action.TriggerPrices prices = 4;
|
|
2061
|
-
*/
|
|
2062
|
-
prices?: Action_TriggerPricesJson;
|
|
2063
|
-
|
|
2064
|
-
/**
|
|
2065
|
-
* @generated from field: optional uint32 account_id = 10;
|
|
2066
|
-
*/
|
|
2067
|
-
accountId?: number;
|
|
2068
|
-
};
|
|
2069
|
-
|
|
2070
|
-
/**
|
|
2071
|
-
* Describes the message nord.Action.AddTrigger.
|
|
2072
|
-
* Use `create(Action_AddTriggerSchema)` to create a new message.
|
|
2073
|
-
*/
|
|
2074
|
-
export const Action_AddTriggerSchema: GenMessage<Action_AddTrigger, {jsonType: Action_AddTriggerJson}> = /*@__PURE__*/
|
|
2075
|
-
messageDesc(file_nord, 9, 16);
|
|
2076
|
-
|
|
2077
|
-
/**
|
|
2078
|
-
* @generated from message nord.Action.RemoveTrigger
|
|
2079
|
-
*/
|
|
2080
|
-
export type Action_RemoveTrigger = Message<"nord.Action.RemoveTrigger"> & {
|
|
2081
|
-
/**
|
|
2082
|
-
* @generated from field: uint64 session_id = 1;
|
|
2083
|
-
*/
|
|
2084
|
-
sessionId: bigint;
|
|
2085
|
-
|
|
2086
|
-
/**
|
|
2087
|
-
* @generated from field: uint32 market_id = 2;
|
|
2088
|
-
*/
|
|
2089
|
-
marketId: number;
|
|
2090
|
-
|
|
2091
|
-
/**
|
|
2092
|
-
* @generated from field: nord.TriggerKey key = 3;
|
|
2093
|
-
*/
|
|
2094
|
-
key?: TriggerKey;
|
|
2095
|
-
|
|
2096
|
-
/**
|
|
2097
|
-
* @generated from field: optional uint32 account_id = 10;
|
|
2098
|
-
*/
|
|
2099
|
-
accountId?: number;
|
|
2100
|
-
};
|
|
2101
|
-
|
|
2102
|
-
/**
|
|
2103
|
-
* @generated from message nord.Action.RemoveTrigger
|
|
2104
|
-
*/
|
|
2105
|
-
export type Action_RemoveTriggerJson = {
|
|
2106
|
-
/**
|
|
2107
|
-
* @generated from field: uint64 session_id = 1;
|
|
2108
|
-
*/
|
|
2109
|
-
sessionId?: string;
|
|
2110
|
-
|
|
2111
|
-
/**
|
|
2112
|
-
* @generated from field: uint32 market_id = 2;
|
|
2113
|
-
*/
|
|
2114
|
-
marketId?: number;
|
|
2115
|
-
|
|
2116
|
-
/**
|
|
2117
|
-
* @generated from field: nord.TriggerKey key = 3;
|
|
2118
|
-
*/
|
|
2119
|
-
key?: TriggerKeyJson;
|
|
2120
|
-
|
|
2121
|
-
/**
|
|
2122
|
-
* @generated from field: optional uint32 account_id = 10;
|
|
2123
|
-
*/
|
|
2124
|
-
accountId?: number;
|
|
2125
|
-
};
|
|
2126
|
-
|
|
2127
|
-
/**
|
|
2128
|
-
* Describes the message nord.Action.RemoveTrigger.
|
|
2129
|
-
* Use `create(Action_RemoveTriggerSchema)` to create a new message.
|
|
2130
|
-
*/
|
|
2131
|
-
export const Action_RemoveTriggerSchema: GenMessage<Action_RemoveTrigger, {jsonType: Action_RemoveTriggerJson}> = /*@__PURE__*/
|
|
2132
|
-
messageDesc(file_nord, 9, 17);
|
|
2133
|
-
|
|
2134
|
-
/**
|
|
2135
|
-
* @generated from message nord.Action.AddFeeTier
|
|
2136
|
-
*/
|
|
2137
|
-
export type Action_AddFeeTier = Message<"nord.Action.AddFeeTier"> & {
|
|
2138
|
-
/**
|
|
2139
|
-
* @generated from field: bytes acl_pubkey = 1;
|
|
2140
|
-
*/
|
|
2141
|
-
aclPubkey: Uint8Array;
|
|
2142
|
-
|
|
2143
|
-
/**
|
|
2144
|
-
* @generated from field: nord.FeeTierConfig config = 2;
|
|
2145
|
-
*/
|
|
2146
|
-
config?: FeeTierConfig;
|
|
2147
|
-
};
|
|
2148
|
-
|
|
2149
|
-
/**
|
|
2150
|
-
* @generated from message nord.Action.AddFeeTier
|
|
2151
|
-
*/
|
|
2152
|
-
export type Action_AddFeeTierJson = {
|
|
2153
|
-
/**
|
|
2154
|
-
* @generated from field: bytes acl_pubkey = 1;
|
|
2155
|
-
*/
|
|
2156
|
-
aclPubkey?: string;
|
|
2157
|
-
|
|
2158
|
-
/**
|
|
2159
|
-
* @generated from field: nord.FeeTierConfig config = 2;
|
|
2160
|
-
*/
|
|
2161
|
-
config?: FeeTierConfigJson;
|
|
2162
|
-
};
|
|
2163
|
-
|
|
2164
|
-
/**
|
|
2165
|
-
* Describes the message nord.Action.AddFeeTier.
|
|
2166
|
-
* Use `create(Action_AddFeeTierSchema)` to create a new message.
|
|
2167
|
-
*/
|
|
2168
|
-
export const Action_AddFeeTierSchema: GenMessage<Action_AddFeeTier, {jsonType: Action_AddFeeTierJson}> = /*@__PURE__*/
|
|
2169
|
-
messageDesc(file_nord, 9, 18);
|
|
2170
|
-
|
|
2171
|
-
/**
|
|
2172
|
-
* @generated from message nord.Action.UpdateFeeTier
|
|
2173
|
-
*/
|
|
2174
|
-
export type Action_UpdateFeeTier = Message<"nord.Action.UpdateFeeTier"> & {
|
|
2175
|
-
/**
|
|
2176
|
-
* @generated from field: uint32 id = 1;
|
|
2177
|
-
*/
|
|
2178
|
-
id: number;
|
|
2179
|
-
|
|
2180
|
-
/**
|
|
2181
|
-
* @generated from field: nord.FeeTierConfig config = 2;
|
|
2182
|
-
*/
|
|
2183
|
-
config?: FeeTierConfig;
|
|
2184
|
-
|
|
2185
|
-
/**
|
|
2186
|
-
* @generated from field: bytes acl_pubkey = 3;
|
|
2187
|
-
*/
|
|
2188
|
-
aclPubkey: Uint8Array;
|
|
2189
|
-
};
|
|
2190
|
-
|
|
2191
|
-
/**
|
|
2192
|
-
* @generated from message nord.Action.UpdateFeeTier
|
|
2193
|
-
*/
|
|
2194
|
-
export type Action_UpdateFeeTierJson = {
|
|
2195
|
-
/**
|
|
2196
|
-
* @generated from field: uint32 id = 1;
|
|
2197
|
-
*/
|
|
2198
|
-
id?: number;
|
|
2199
|
-
|
|
2200
|
-
/**
|
|
2201
|
-
* @generated from field: nord.FeeTierConfig config = 2;
|
|
2202
|
-
*/
|
|
2203
|
-
config?: FeeTierConfigJson;
|
|
2204
|
-
|
|
2205
|
-
/**
|
|
2206
|
-
* @generated from field: bytes acl_pubkey = 3;
|
|
2207
|
-
*/
|
|
2208
|
-
aclPubkey?: string;
|
|
2209
|
-
};
|
|
2210
|
-
|
|
2211
|
-
/**
|
|
2212
|
-
* Describes the message nord.Action.UpdateFeeTier.
|
|
2213
|
-
* Use `create(Action_UpdateFeeTierSchema)` to create a new message.
|
|
2214
|
-
*/
|
|
2215
|
-
export const Action_UpdateFeeTierSchema: GenMessage<Action_UpdateFeeTier, {jsonType: Action_UpdateFeeTierJson}> = /*@__PURE__*/
|
|
2216
|
-
messageDesc(file_nord, 9, 19);
|
|
2217
|
-
|
|
2218
|
-
/**
|
|
2219
|
-
* @generated from message nord.Action.UpdateAccountsTier
|
|
2220
|
-
*/
|
|
2221
|
-
export type Action_UpdateAccountsTier = Message<"nord.Action.UpdateAccountsTier"> & {
|
|
2222
|
-
/**
|
|
2223
|
-
* @generated from field: uint32 tier_id = 1;
|
|
2224
|
-
*/
|
|
2225
|
-
tierId: number;
|
|
2226
|
-
|
|
2227
|
-
/**
|
|
2228
|
-
* @generated from field: repeated uint32 accounts = 2;
|
|
2229
|
-
*/
|
|
2230
|
-
accounts: number[];
|
|
2231
|
-
|
|
2232
|
-
/**
|
|
2233
|
-
* @generated from field: bytes acl_pubkey = 3;
|
|
2234
|
-
*/
|
|
2235
|
-
aclPubkey: Uint8Array;
|
|
2236
|
-
};
|
|
2237
|
-
|
|
2238
|
-
/**
|
|
2239
|
-
* @generated from message nord.Action.UpdateAccountsTier
|
|
2240
|
-
*/
|
|
2241
|
-
export type Action_UpdateAccountsTierJson = {
|
|
2242
|
-
/**
|
|
2243
|
-
* @generated from field: uint32 tier_id = 1;
|
|
2244
|
-
*/
|
|
2245
|
-
tierId?: number;
|
|
2246
|
-
|
|
2247
|
-
/**
|
|
2248
|
-
* @generated from field: repeated uint32 accounts = 2;
|
|
2249
|
-
*/
|
|
2250
|
-
accounts?: number[];
|
|
2251
|
-
|
|
2252
|
-
/**
|
|
2253
|
-
* @generated from field: bytes acl_pubkey = 3;
|
|
2254
|
-
*/
|
|
2255
|
-
aclPubkey?: string;
|
|
2256
|
-
};
|
|
2257
|
-
|
|
2258
|
-
/**
|
|
2259
|
-
* Describes the message nord.Action.UpdateAccountsTier.
|
|
2260
|
-
* Use `create(Action_UpdateAccountsTierSchema)` to create a new message.
|
|
2261
|
-
*/
|
|
2262
|
-
export const Action_UpdateAccountsTierSchema: GenMessage<Action_UpdateAccountsTier, {jsonType: Action_UpdateAccountsTierJson}> = /*@__PURE__*/
|
|
2263
|
-
messageDesc(file_nord, 9, 20);
|
|
2264
|
-
|
|
2265
|
-
/**
|
|
2266
|
-
* @generated from message nord.Action.UpdateAcl
|
|
2267
|
-
*/
|
|
2268
|
-
export type Action_UpdateAcl = Message<"nord.Action.UpdateAcl"> & {
|
|
2269
|
-
/**
|
|
2270
|
-
* @generated from field: bytes acl_pubkey = 1;
|
|
2271
|
-
*/
|
|
2272
|
-
aclPubkey: Uint8Array;
|
|
2273
|
-
|
|
2274
|
-
/**
|
|
2275
|
-
* @generated from field: bytes target_pubkey = 2;
|
|
2276
|
-
*/
|
|
2277
|
-
targetPubkey: Uint8Array;
|
|
2278
|
-
|
|
2279
|
-
/**
|
|
2280
|
-
* @generated from field: uint32 roles_mask = 3;
|
|
2281
|
-
*/
|
|
2282
|
-
rolesMask: number;
|
|
2283
|
-
|
|
2284
|
-
/**
|
|
2285
|
-
* @generated from field: uint32 roles_value = 4;
|
|
2286
|
-
*/
|
|
2287
|
-
rolesValue: number;
|
|
2288
|
-
};
|
|
2289
|
-
|
|
2290
|
-
/**
|
|
2291
|
-
* @generated from message nord.Action.UpdateAcl
|
|
2292
|
-
*/
|
|
2293
|
-
export type Action_UpdateAclJson = {
|
|
2294
|
-
/**
|
|
2295
|
-
* @generated from field: bytes acl_pubkey = 1;
|
|
2296
|
-
*/
|
|
2297
|
-
aclPubkey?: string;
|
|
2298
|
-
|
|
2299
|
-
/**
|
|
2300
|
-
* @generated from field: bytes target_pubkey = 2;
|
|
2301
|
-
*/
|
|
2302
|
-
targetPubkey?: string;
|
|
2303
|
-
|
|
2304
|
-
/**
|
|
2305
|
-
* @generated from field: uint32 roles_mask = 3;
|
|
2306
|
-
*/
|
|
2307
|
-
rolesMask?: number;
|
|
2308
|
-
|
|
2309
|
-
/**
|
|
2310
|
-
* @generated from field: uint32 roles_value = 4;
|
|
2311
|
-
*/
|
|
2312
|
-
rolesValue?: number;
|
|
2313
|
-
};
|
|
2314
|
-
|
|
2315
|
-
/**
|
|
2316
|
-
* Describes the message nord.Action.UpdateAcl.
|
|
2317
|
-
* Use `create(Action_UpdateAclSchema)` to create a new message.
|
|
2318
|
-
*/
|
|
2319
|
-
export const Action_UpdateAclSchema: GenMessage<Action_UpdateAcl, {jsonType: Action_UpdateAclJson}> = /*@__PURE__*/
|
|
2320
|
-
messageDesc(file_nord, 9, 21);
|
|
2321
|
-
|
|
2322
|
-
/**
|
|
2323
|
-
* @generated from message nord.Action.FreezeMarket
|
|
2324
|
-
*/
|
|
2325
|
-
export type Action_FreezeMarket = Message<"nord.Action.FreezeMarket"> & {
|
|
2326
|
-
/**
|
|
2327
|
-
* @generated from field: bytes acl_pubkey = 1;
|
|
2328
|
-
*/
|
|
2329
|
-
aclPubkey: Uint8Array;
|
|
2330
|
-
|
|
2331
|
-
/**
|
|
2332
|
-
* @generated from field: uint32 market_id = 2;
|
|
2333
|
-
*/
|
|
2334
|
-
marketId: number;
|
|
2335
|
-
};
|
|
2336
|
-
|
|
2337
|
-
/**
|
|
2338
|
-
* @generated from message nord.Action.FreezeMarket
|
|
2339
|
-
*/
|
|
2340
|
-
export type Action_FreezeMarketJson = {
|
|
2341
|
-
/**
|
|
2342
|
-
* @generated from field: bytes acl_pubkey = 1;
|
|
2343
|
-
*/
|
|
2344
|
-
aclPubkey?: string;
|
|
2345
|
-
|
|
2346
|
-
/**
|
|
2347
|
-
* @generated from field: uint32 market_id = 2;
|
|
2348
|
-
*/
|
|
2349
|
-
marketId?: number;
|
|
2350
|
-
};
|
|
2351
|
-
|
|
2352
|
-
/**
|
|
2353
|
-
* Describes the message nord.Action.FreezeMarket.
|
|
2354
|
-
* Use `create(Action_FreezeMarketSchema)` to create a new message.
|
|
2355
|
-
*/
|
|
2356
|
-
export const Action_FreezeMarketSchema: GenMessage<Action_FreezeMarket, {jsonType: Action_FreezeMarketJson}> = /*@__PURE__*/
|
|
2357
|
-
messageDesc(file_nord, 9, 22);
|
|
2358
|
-
|
|
2359
|
-
/**
|
|
2360
|
-
* @generated from message nord.Action.UnfreezeMarket
|
|
2361
|
-
*/
|
|
2362
|
-
export type Action_UnfreezeMarket = Message<"nord.Action.UnfreezeMarket"> & {
|
|
2363
|
-
/**
|
|
2364
|
-
* @generated from field: bytes acl_pubkey = 1;
|
|
2365
|
-
*/
|
|
2366
|
-
aclPubkey: Uint8Array;
|
|
2367
|
-
|
|
2368
|
-
/**
|
|
2369
|
-
* @generated from field: uint32 market_id = 2;
|
|
2370
|
-
*/
|
|
2371
|
-
marketId: number;
|
|
2372
|
-
};
|
|
2373
|
-
|
|
2374
|
-
/**
|
|
2375
|
-
* @generated from message nord.Action.UnfreezeMarket
|
|
2376
|
-
*/
|
|
2377
|
-
export type Action_UnfreezeMarketJson = {
|
|
2378
|
-
/**
|
|
2379
|
-
* @generated from field: bytes acl_pubkey = 1;
|
|
2380
|
-
*/
|
|
2381
|
-
aclPubkey?: string;
|
|
2382
|
-
|
|
2383
|
-
/**
|
|
2384
|
-
* @generated from field: uint32 market_id = 2;
|
|
2385
|
-
*/
|
|
2386
|
-
marketId?: number;
|
|
2387
|
-
};
|
|
2388
|
-
|
|
2389
|
-
/**
|
|
2390
|
-
* Describes the message nord.Action.UnfreezeMarket.
|
|
2391
|
-
* Use `create(Action_UnfreezeMarketSchema)` to create a new message.
|
|
2392
|
-
*/
|
|
2393
|
-
export const Action_UnfreezeMarketSchema: GenMessage<Action_UnfreezeMarket, {jsonType: Action_UnfreezeMarketJson}> = /*@__PURE__*/
|
|
2394
|
-
messageDesc(file_nord, 9, 23);
|
|
2395
|
-
|
|
2396
|
-
/**
|
|
2397
|
-
* @generated from message nord.Action.TakePosition
|
|
2398
|
-
*/
|
|
2399
|
-
export type Action_TakePosition = Message<"nord.Action.TakePosition"> & {
|
|
2400
|
-
/**
|
|
2401
|
-
* @generated from field: uint64 session_id = 1;
|
|
2402
|
-
*/
|
|
2403
|
-
sessionId: bigint;
|
|
2404
|
-
|
|
2405
|
-
/**
|
|
2406
|
-
* @generated from field: uint32 market_id = 2;
|
|
2407
|
-
*/
|
|
2408
|
-
marketId: number;
|
|
2409
|
-
|
|
2410
|
-
/**
|
|
2411
|
-
* Amount to take.
|
|
2412
|
-
*
|
|
2413
|
-
* @generated from field: int64 size = 3;
|
|
2414
|
-
*/
|
|
2415
|
-
size: bigint;
|
|
2416
|
-
|
|
2417
|
-
/**
|
|
2418
|
-
* Account id which performs operation;
|
|
2419
|
-
* if not specified, first account of session's owner user is picked
|
|
2420
|
-
*
|
|
2421
|
-
* @generated from field: optional uint32 sender_account_id = 4;
|
|
2422
|
-
*/
|
|
2423
|
-
senderAccountId?: number;
|
|
2424
|
-
|
|
2425
|
-
/**
|
|
2426
|
-
* If set, then it is take action.
|
|
2427
|
-
* If price not so good as in field, take will fail.
|
|
2428
|
-
*
|
|
2429
|
-
*
|
|
2430
|
-
* If not set,
|
|
2431
|
-
* will do fill-or-kill order as per liquidation trade rule.
|
|
2432
|
-
*
|
|
2433
|
-
* @generated from field: optional uint64 price = 5;
|
|
2434
|
-
*/
|
|
2435
|
-
price?: bigint;
|
|
2436
|
-
};
|
|
2437
|
-
|
|
2438
|
-
/**
|
|
2439
|
-
* @generated from message nord.Action.TakePosition
|
|
2440
|
-
*/
|
|
2441
|
-
export type Action_TakePositionJson = {
|
|
2442
|
-
/**
|
|
2443
|
-
* @generated from field: uint64 session_id = 1;
|
|
2444
|
-
*/
|
|
2445
|
-
sessionId?: string;
|
|
2446
|
-
|
|
2447
|
-
/**
|
|
2448
|
-
* @generated from field: uint32 market_id = 2;
|
|
2449
|
-
*/
|
|
2450
|
-
marketId?: number;
|
|
2451
|
-
|
|
2452
|
-
/**
|
|
2453
|
-
* Amount to take.
|
|
2454
|
-
*
|
|
2455
|
-
* @generated from field: int64 size = 3;
|
|
2456
|
-
*/
|
|
2457
|
-
size?: string;
|
|
2458
|
-
|
|
2459
|
-
/**
|
|
2460
|
-
* Account id which performs operation;
|
|
2461
|
-
* if not specified, first account of session's owner user is picked
|
|
2462
|
-
*
|
|
2463
|
-
* @generated from field: optional uint32 sender_account_id = 4;
|
|
2464
|
-
*/
|
|
2465
|
-
senderAccountId?: number;
|
|
2466
|
-
|
|
2467
|
-
/**
|
|
2468
|
-
* If set, then it is take action.
|
|
2469
|
-
* If price not so good as in field, take will fail.
|
|
2470
|
-
*
|
|
2471
|
-
*
|
|
2472
|
-
* If not set,
|
|
2473
|
-
* will do fill-or-kill order as per liquidation trade rule.
|
|
2474
|
-
*
|
|
2475
|
-
* @generated from field: optional uint64 price = 5;
|
|
2476
|
-
*/
|
|
2477
|
-
price?: string;
|
|
2478
|
-
};
|
|
2479
|
-
|
|
2480
|
-
/**
|
|
2481
|
-
* Describes the message nord.Action.TakePosition.
|
|
2482
|
-
* Use `create(Action_TakePositionSchema)` to create a new message.
|
|
2483
|
-
*/
|
|
2484
|
-
export const Action_TakePositionSchema: GenMessage<Action_TakePosition, {jsonType: Action_TakePositionJson}> = /*@__PURE__*/
|
|
2485
|
-
messageDesc(file_nord, 9, 24);
|
|
2486
|
-
|
|
2487
|
-
/**
|
|
2488
|
-
* @generated from message nord.AtomicSubactionKind
|
|
2489
|
-
*/
|
|
2490
|
-
export type AtomicSubactionKind = Message<"nord.AtomicSubactionKind"> & {
|
|
2491
|
-
/**
|
|
2492
|
-
* @generated from oneof nord.AtomicSubactionKind.inner
|
|
2493
|
-
*/
|
|
2494
|
-
inner: {
|
|
2495
|
-
/**
|
|
2496
|
-
* @generated from field: nord.TradeOrPlace trade_or_place = 6;
|
|
2497
|
-
*/
|
|
2498
|
-
value: TradeOrPlace;
|
|
2499
|
-
case: "tradeOrPlace";
|
|
2500
|
-
} | {
|
|
2501
|
-
/**
|
|
2502
|
-
* @generated from field: nord.CancelOrder cancel_order = 7;
|
|
2503
|
-
*/
|
|
2504
|
-
value: CancelOrder;
|
|
2505
|
-
case: "cancelOrder";
|
|
2506
|
-
} | { case: undefined; value?: undefined };
|
|
2507
|
-
};
|
|
2508
|
-
|
|
2509
|
-
/**
|
|
2510
|
-
* @generated from message nord.AtomicSubactionKind
|
|
2511
|
-
*/
|
|
2512
|
-
export type AtomicSubactionKindJson = {
|
|
2513
|
-
/**
|
|
2514
|
-
* @generated from field: nord.TradeOrPlace trade_or_place = 6;
|
|
2515
|
-
*/
|
|
2516
|
-
tradeOrPlace?: TradeOrPlaceJson;
|
|
2517
|
-
|
|
2518
|
-
/**
|
|
2519
|
-
* @generated from field: nord.CancelOrder cancel_order = 7;
|
|
2520
|
-
*/
|
|
2521
|
-
cancelOrder?: CancelOrderJson;
|
|
2522
|
-
};
|
|
2523
|
-
|
|
2524
|
-
/**
|
|
2525
|
-
* Describes the message nord.AtomicSubactionKind.
|
|
2526
|
-
* Use `create(AtomicSubactionKindSchema)` to create a new message.
|
|
2527
|
-
*/
|
|
2528
|
-
export const AtomicSubactionKindSchema: GenMessage<AtomicSubactionKind, {jsonType: AtomicSubactionKindJson}> = /*@__PURE__*/
|
|
2529
|
-
messageDesc(file_nord, 10);
|
|
2530
|
-
|
|
2531
|
-
/**
|
|
2532
|
-
* @generated from message nord.Atomic
|
|
2533
|
-
*/
|
|
2534
|
-
export type Atomic = Message<"nord.Atomic"> & {
|
|
2535
|
-
/**
|
|
2536
|
-
* @generated from field: uint64 session_id = 1;
|
|
2537
|
-
*/
|
|
2538
|
-
sessionId: bigint;
|
|
2539
|
-
|
|
2540
|
-
/**
|
|
2541
|
-
* @generated from field: optional uint32 account_id = 2;
|
|
2542
|
-
*/
|
|
2543
|
-
accountId?: number;
|
|
2544
|
-
|
|
2545
|
-
/**
|
|
2546
|
-
* @generated from field: repeated nord.AtomicSubactionKind actions = 6;
|
|
2547
|
-
*/
|
|
2548
|
-
actions: AtomicSubactionKind[];
|
|
2549
|
-
};
|
|
2550
|
-
|
|
2551
|
-
/**
|
|
2552
|
-
* @generated from message nord.Atomic
|
|
2553
|
-
*/
|
|
2554
|
-
export type AtomicJson = {
|
|
2555
|
-
/**
|
|
2556
|
-
* @generated from field: uint64 session_id = 1;
|
|
2557
|
-
*/
|
|
2558
|
-
sessionId?: string;
|
|
2559
|
-
|
|
2560
|
-
/**
|
|
2561
|
-
* @generated from field: optional uint32 account_id = 2;
|
|
2562
|
-
*/
|
|
2563
|
-
accountId?: number;
|
|
2564
|
-
|
|
2565
|
-
/**
|
|
2566
|
-
* @generated from field: repeated nord.AtomicSubactionKind actions = 6;
|
|
2567
|
-
*/
|
|
2568
|
-
actions?: AtomicSubactionKindJson[];
|
|
2569
|
-
};
|
|
2570
|
-
|
|
2571
|
-
/**
|
|
2572
|
-
* Describes the message nord.Atomic.
|
|
2573
|
-
* Use `create(AtomicSchema)` to create a new message.
|
|
2574
|
-
*/
|
|
2575
|
-
export const AtomicSchema: GenMessage<Atomic, {jsonType: AtomicJson}> = /*@__PURE__*/
|
|
2576
|
-
messageDesc(file_nord, 11);
|
|
2577
|
-
|
|
2578
|
-
/**
|
|
2579
|
-
* @generated from message nord.Receipt
|
|
2580
|
-
*/
|
|
2581
|
-
export type Receipt = Message<"nord.Receipt"> & {
|
|
2582
|
-
/**
|
|
2583
|
-
* Action id which was run to produce this receipt.
|
|
2584
|
-
* In case of error it was next action id which did not incremented because of
|
|
2585
|
-
* error.
|
|
2586
|
-
*
|
|
2587
|
-
* @generated from field: uint64 action_id = 1;
|
|
2588
|
-
*/
|
|
2589
|
-
actionId: bigint;
|
|
2590
|
-
|
|
2591
|
-
/**
|
|
2592
|
-
* @generated from oneof nord.Receipt.kind
|
|
2593
|
-
*/
|
|
2594
|
-
kind: {
|
|
2595
|
-
/**
|
|
2596
|
-
* @generated from field: nord.Error err = 32;
|
|
2597
|
-
*/
|
|
2598
|
-
value: Error;
|
|
2599
|
-
case: "err";
|
|
2600
|
-
} | {
|
|
2601
|
-
/**
|
|
2602
|
-
* @generated from field: nord.Receipt.CreateSessionResult create_session_result = 33;
|
|
2603
|
-
*/
|
|
2604
|
-
value: Receipt_CreateSessionResult;
|
|
2605
|
-
case: "createSessionResult";
|
|
2606
|
-
} | {
|
|
2607
|
-
/**
|
|
2608
|
-
* @generated from field: nord.Receipt.PlaceOrderResult place_order_result = 34;
|
|
2609
|
-
*/
|
|
2610
|
-
value: Receipt_PlaceOrderResult;
|
|
2611
|
-
case: "placeOrderResult";
|
|
2612
|
-
} | {
|
|
2613
|
-
/**
|
|
2614
|
-
* @generated from field: nord.Receipt.CancelOrderResult cancel_order_result = 35;
|
|
2615
|
-
*/
|
|
2616
|
-
value: Receipt_CancelOrderResult;
|
|
2617
|
-
case: "cancelOrderResult";
|
|
2618
|
-
} | {
|
|
2619
|
-
/**
|
|
2620
|
-
* @generated from field: nord.Receipt.DepositResult deposit_result = 36;
|
|
2621
|
-
*/
|
|
2622
|
-
value: Receipt_DepositResult;
|
|
2623
|
-
case: "depositResult";
|
|
2624
|
-
} | {
|
|
2625
|
-
/**
|
|
2626
|
-
* @generated from field: nord.Receipt.InsertTokenResult insert_token_result = 37;
|
|
2627
|
-
*/
|
|
2628
|
-
value: Receipt_InsertTokenResult;
|
|
2629
|
-
case: "insertTokenResult";
|
|
2630
|
-
} | {
|
|
2631
|
-
/**
|
|
2632
|
-
* @generated from field: nord.Receipt.InsertMarketResult insert_market_result = 38;
|
|
2633
|
-
*/
|
|
2634
|
-
value: Receipt_InsertMarketResult;
|
|
2635
|
-
case: "insertMarketResult";
|
|
2636
|
-
} | {
|
|
2637
|
-
/**
|
|
2638
|
-
* @generated from field: nord.Receipt.WithdrawResult withdraw_result = 39;
|
|
2639
|
-
*/
|
|
2640
|
-
value: Receipt_WithdrawResult;
|
|
2641
|
-
case: "withdrawResult";
|
|
2642
|
-
} | {
|
|
2643
|
-
/**
|
|
2644
|
-
* @generated from field: nord.Receipt.OracleSymbolFeedResult oracle_symbol_feed_result = 40;
|
|
2645
|
-
*/
|
|
2646
|
-
value: Receipt_OracleSymbolFeedResult;
|
|
2647
|
-
case: "oracleSymbolFeedResult";
|
|
2648
|
-
} | {
|
|
2649
|
-
/**
|
|
2650
|
-
* @generated from field: nord.Receipt.OracleUpdateResult oracle_update_result = 41;
|
|
2651
|
-
*/
|
|
2652
|
-
value: Receipt_OracleUpdateResult;
|
|
2653
|
-
case: "oracleUpdateResult";
|
|
2654
|
-
} | {
|
|
2655
|
-
/**
|
|
2656
|
-
* @generated from field: nord.Receipt.UpdateGuardianSetResult update_guardian_set_result = 42;
|
|
2657
|
-
*/
|
|
2658
|
-
value: Receipt_UpdateGuardianSetResult;
|
|
2659
|
-
case: "updateGuardianSetResult";
|
|
2660
|
-
} | {
|
|
2661
|
-
/**
|
|
2662
|
-
* @generated from field: nord.Receipt.AccountLiquidated liquidated = 43;
|
|
2663
|
-
*/
|
|
2664
|
-
value: Receipt_AccountLiquidated;
|
|
2665
|
-
case: "liquidated";
|
|
2666
|
-
} | {
|
|
2667
|
-
/**
|
|
2668
|
-
* @generated from field: nord.Receipt.SessionRevoked session_revoked = 44;
|
|
2669
|
-
*/
|
|
2670
|
-
value: Receipt_SessionRevoked;
|
|
2671
|
-
case: "sessionRevoked";
|
|
2672
|
-
} | {
|
|
2673
|
-
/**
|
|
2674
|
-
* @generated from field: nord.Receipt.Paused paused = 45;
|
|
2675
|
-
*/
|
|
2676
|
-
value: Receipt_Paused;
|
|
2677
|
-
case: "paused";
|
|
2678
|
-
} | {
|
|
2679
|
-
/**
|
|
2680
|
-
* @generated from field: nord.Receipt.Unpaused unpaused = 46;
|
|
2681
|
-
*/
|
|
2682
|
-
value: Receipt_Unpaused;
|
|
2683
|
-
case: "unpaused";
|
|
2684
|
-
} | {
|
|
2685
|
-
/**
|
|
2686
|
-
* @generated from field: nord.Receipt.Transferred transferred = 47;
|
|
2687
|
-
*/
|
|
2688
|
-
value: Receipt_Transferred;
|
|
2689
|
-
case: "transferred";
|
|
2690
|
-
} | {
|
|
2691
|
-
/**
|
|
2692
|
-
* @generated from field: nord.Receipt.TriggerAdded trigger_added = 64;
|
|
2693
|
-
*/
|
|
2694
|
-
value: Receipt_TriggerAdded;
|
|
2695
|
-
case: "triggerAdded";
|
|
2696
|
-
} | {
|
|
2697
|
-
/**
|
|
2698
|
-
* @generated from field: nord.Receipt.TriggerRemoved trigger_removed = 65;
|
|
2699
|
-
*/
|
|
2700
|
-
value: Receipt_TriggerRemoved;
|
|
2701
|
-
case: "triggerRemoved";
|
|
2702
|
-
} | {
|
|
2703
|
-
/**
|
|
2704
|
-
* @generated from field: nord.Receipt.PositionTakenOrTradedResult position_taken_or_traded = 66;
|
|
2705
|
-
*/
|
|
2706
|
-
value: Receipt_PositionTakenOrTradedResult;
|
|
2707
|
-
case: "positionTakenOrTraded";
|
|
2708
|
-
} | {
|
|
2709
|
-
/**
|
|
2710
|
-
* @generated from field: nord.Receipt.AtomicResult atomic = 67;
|
|
2711
|
-
*/
|
|
2712
|
-
value: Receipt_AtomicResult;
|
|
2713
|
-
case: "atomic";
|
|
2714
|
-
} | {
|
|
2715
|
-
/**
|
|
2716
|
-
* @generated from field: nord.Receipt.MarketFreezeUpdated market_freeze_updated = 68;
|
|
2717
|
-
*/
|
|
2718
|
-
value: Receipt_MarketFreezeUpdated;
|
|
2719
|
-
case: "marketFreezeUpdated";
|
|
2720
|
-
} | {
|
|
2721
|
-
/**
|
|
2722
|
-
* @generated from field: nord.Receipt.FeeTierAdded fee_tier_added = 69;
|
|
2723
|
-
*/
|
|
2724
|
-
value: Receipt_FeeTierAdded;
|
|
2725
|
-
case: "feeTierAdded";
|
|
2726
|
-
} | {
|
|
2727
|
-
/**
|
|
2728
|
-
* @generated from field: nord.Receipt.FeeTierUpdated fee_tier_updated = 70;
|
|
2729
|
-
*/
|
|
2730
|
-
value: Receipt_FeeTierUpdated;
|
|
2731
|
-
case: "feeTierUpdated";
|
|
2732
|
-
} | {
|
|
2733
|
-
/**
|
|
2734
|
-
* @generated from field: nord.Receipt.AccountsTierUpdated accounts_tier_updated = 71;
|
|
2735
|
-
*/
|
|
2736
|
-
value: Receipt_AccountsTierUpdated;
|
|
2737
|
-
case: "accountsTierUpdated";
|
|
2738
|
-
} | {
|
|
2739
|
-
/**
|
|
2740
|
-
* @generated from field: nord.Receipt.AclUpdated acl_updated = 72;
|
|
2741
|
-
*/
|
|
2742
|
-
value: Receipt_AclUpdated;
|
|
2743
|
-
case: "aclUpdated";
|
|
2744
|
-
} | { case: undefined; value?: undefined };
|
|
2745
|
-
};
|
|
2746
|
-
|
|
2747
|
-
/**
|
|
2748
|
-
* @generated from message nord.Receipt
|
|
2749
|
-
*/
|
|
2750
|
-
export type ReceiptJson = {
|
|
2751
|
-
/**
|
|
2752
|
-
* Action id which was run to produce this receipt.
|
|
2753
|
-
* In case of error it was next action id which did not incremented because of
|
|
2754
|
-
* error.
|
|
2755
|
-
*
|
|
2756
|
-
* @generated from field: uint64 action_id = 1;
|
|
2757
|
-
*/
|
|
2758
|
-
actionId?: string;
|
|
2759
|
-
|
|
2760
|
-
/**
|
|
2761
|
-
* @generated from field: nord.Error err = 32;
|
|
2762
|
-
*/
|
|
2763
|
-
err?: ErrorJson;
|
|
2764
|
-
|
|
2765
|
-
/**
|
|
2766
|
-
* @generated from field: nord.Receipt.CreateSessionResult create_session_result = 33;
|
|
2767
|
-
*/
|
|
2768
|
-
createSessionResult?: Receipt_CreateSessionResultJson;
|
|
2769
|
-
|
|
2770
|
-
/**
|
|
2771
|
-
* @generated from field: nord.Receipt.PlaceOrderResult place_order_result = 34;
|
|
2772
|
-
*/
|
|
2773
|
-
placeOrderResult?: Receipt_PlaceOrderResultJson;
|
|
2774
|
-
|
|
2775
|
-
/**
|
|
2776
|
-
* @generated from field: nord.Receipt.CancelOrderResult cancel_order_result = 35;
|
|
2777
|
-
*/
|
|
2778
|
-
cancelOrderResult?: Receipt_CancelOrderResultJson;
|
|
2779
|
-
|
|
2780
|
-
/**
|
|
2781
|
-
* @generated from field: nord.Receipt.DepositResult deposit_result = 36;
|
|
2782
|
-
*/
|
|
2783
|
-
depositResult?: Receipt_DepositResultJson;
|
|
2784
|
-
|
|
2785
|
-
/**
|
|
2786
|
-
* @generated from field: nord.Receipt.InsertTokenResult insert_token_result = 37;
|
|
2787
|
-
*/
|
|
2788
|
-
insertTokenResult?: Receipt_InsertTokenResultJson;
|
|
2789
|
-
|
|
2790
|
-
/**
|
|
2791
|
-
* @generated from field: nord.Receipt.InsertMarketResult insert_market_result = 38;
|
|
2792
|
-
*/
|
|
2793
|
-
insertMarketResult?: Receipt_InsertMarketResultJson;
|
|
2794
|
-
|
|
2795
|
-
/**
|
|
2796
|
-
* @generated from field: nord.Receipt.WithdrawResult withdraw_result = 39;
|
|
2797
|
-
*/
|
|
2798
|
-
withdrawResult?: Receipt_WithdrawResultJson;
|
|
2799
|
-
|
|
2800
|
-
/**
|
|
2801
|
-
* @generated from field: nord.Receipt.OracleSymbolFeedResult oracle_symbol_feed_result = 40;
|
|
2802
|
-
*/
|
|
2803
|
-
oracleSymbolFeedResult?: Receipt_OracleSymbolFeedResultJson;
|
|
2804
|
-
|
|
2805
|
-
/**
|
|
2806
|
-
* @generated from field: nord.Receipt.OracleUpdateResult oracle_update_result = 41;
|
|
2807
|
-
*/
|
|
2808
|
-
oracleUpdateResult?: Receipt_OracleUpdateResultJson;
|
|
2809
|
-
|
|
2810
|
-
/**
|
|
2811
|
-
* @generated from field: nord.Receipt.UpdateGuardianSetResult update_guardian_set_result = 42;
|
|
2812
|
-
*/
|
|
2813
|
-
updateGuardianSetResult?: Receipt_UpdateGuardianSetResultJson;
|
|
2814
|
-
|
|
2815
|
-
/**
|
|
2816
|
-
* @generated from field: nord.Receipt.AccountLiquidated liquidated = 43;
|
|
2817
|
-
*/
|
|
2818
|
-
liquidated?: Receipt_AccountLiquidatedJson;
|
|
2819
|
-
|
|
2820
|
-
/**
|
|
2821
|
-
* @generated from field: nord.Receipt.SessionRevoked session_revoked = 44;
|
|
2822
|
-
*/
|
|
2823
|
-
sessionRevoked?: Receipt_SessionRevokedJson;
|
|
2824
|
-
|
|
2825
|
-
/**
|
|
2826
|
-
* @generated from field: nord.Receipt.Paused paused = 45;
|
|
2827
|
-
*/
|
|
2828
|
-
paused?: Receipt_PausedJson;
|
|
2829
|
-
|
|
2830
|
-
/**
|
|
2831
|
-
* @generated from field: nord.Receipt.Unpaused unpaused = 46;
|
|
2832
|
-
*/
|
|
2833
|
-
unpaused?: Receipt_UnpausedJson;
|
|
2834
|
-
|
|
2835
|
-
/**
|
|
2836
|
-
* @generated from field: nord.Receipt.Transferred transferred = 47;
|
|
2837
|
-
*/
|
|
2838
|
-
transferred?: Receipt_TransferredJson;
|
|
2839
|
-
|
|
2840
|
-
/**
|
|
2841
|
-
* @generated from field: nord.Receipt.TriggerAdded trigger_added = 64;
|
|
2842
|
-
*/
|
|
2843
|
-
triggerAdded?: Receipt_TriggerAddedJson;
|
|
2844
|
-
|
|
2845
|
-
/**
|
|
2846
|
-
* @generated from field: nord.Receipt.TriggerRemoved trigger_removed = 65;
|
|
2847
|
-
*/
|
|
2848
|
-
triggerRemoved?: Receipt_TriggerRemovedJson;
|
|
2849
|
-
|
|
2850
|
-
/**
|
|
2851
|
-
* @generated from field: nord.Receipt.PositionTakenOrTradedResult position_taken_or_traded = 66;
|
|
2852
|
-
*/
|
|
2853
|
-
positionTakenOrTraded?: Receipt_PositionTakenOrTradedResultJson;
|
|
2854
|
-
|
|
2855
|
-
/**
|
|
2856
|
-
* @generated from field: nord.Receipt.AtomicResult atomic = 67;
|
|
2857
|
-
*/
|
|
2858
|
-
atomic?: Receipt_AtomicResultJson;
|
|
2859
|
-
|
|
2860
|
-
/**
|
|
2861
|
-
* @generated from field: nord.Receipt.MarketFreezeUpdated market_freeze_updated = 68;
|
|
2862
|
-
*/
|
|
2863
|
-
marketFreezeUpdated?: Receipt_MarketFreezeUpdatedJson;
|
|
2864
|
-
|
|
2865
|
-
/**
|
|
2866
|
-
* @generated from field: nord.Receipt.FeeTierAdded fee_tier_added = 69;
|
|
2867
|
-
*/
|
|
2868
|
-
feeTierAdded?: Receipt_FeeTierAddedJson;
|
|
2869
|
-
|
|
2870
|
-
/**
|
|
2871
|
-
* @generated from field: nord.Receipt.FeeTierUpdated fee_tier_updated = 70;
|
|
2872
|
-
*/
|
|
2873
|
-
feeTierUpdated?: Receipt_FeeTierUpdatedJson;
|
|
2874
|
-
|
|
2875
|
-
/**
|
|
2876
|
-
* @generated from field: nord.Receipt.AccountsTierUpdated accounts_tier_updated = 71;
|
|
2877
|
-
*/
|
|
2878
|
-
accountsTierUpdated?: Receipt_AccountsTierUpdatedJson;
|
|
2879
|
-
|
|
2880
|
-
/**
|
|
2881
|
-
* @generated from field: nord.Receipt.AclUpdated acl_updated = 72;
|
|
2882
|
-
*/
|
|
2883
|
-
aclUpdated?: Receipt_AclUpdatedJson;
|
|
2884
|
-
};
|
|
2885
|
-
|
|
2886
|
-
/**
|
|
2887
|
-
* Describes the message nord.Receipt.
|
|
2888
|
-
* Use `create(ReceiptSchema)` to create a new message.
|
|
2889
|
-
*/
|
|
2890
|
-
export const ReceiptSchema: GenMessage<Receipt, {jsonType: ReceiptJson}> = /*@__PURE__*/
|
|
2891
|
-
messageDesc(file_nord, 12);
|
|
2892
|
-
|
|
2893
|
-
/**
|
|
2894
|
-
* @generated from message nord.Receipt.Posted
|
|
2895
|
-
*/
|
|
2896
|
-
export type Receipt_Posted = Message<"nord.Receipt.Posted"> & {
|
|
2897
|
-
/**
|
|
2898
|
-
* @generated from field: nord.Side side = 1;
|
|
2899
|
-
*/
|
|
2900
|
-
side: Side;
|
|
2901
|
-
|
|
2902
|
-
/**
|
|
2903
|
-
* @generated from field: uint32 market_id = 2;
|
|
2904
|
-
*/
|
|
2905
|
-
marketId: number;
|
|
2906
|
-
|
|
2907
|
-
/**
|
|
2908
|
-
* @generated from field: uint64 price = 3;
|
|
2909
|
-
*/
|
|
2910
|
-
price: bigint;
|
|
2911
|
-
|
|
2912
|
-
/**
|
|
2913
|
-
* @generated from field: uint64 size = 4;
|
|
2914
|
-
*/
|
|
2915
|
-
size: bigint;
|
|
2916
|
-
|
|
2917
|
-
/**
|
|
2918
|
-
* @generated from field: uint64 order_id = 5;
|
|
2919
|
-
*/
|
|
2920
|
-
orderId: bigint;
|
|
2921
|
-
|
|
2922
|
-
/**
|
|
2923
|
-
* @generated from field: uint32 account_id = 6;
|
|
2924
|
-
*/
|
|
2925
|
-
accountId: number;
|
|
2926
|
-
};
|
|
2927
|
-
|
|
2928
|
-
/**
|
|
2929
|
-
* @generated from message nord.Receipt.Posted
|
|
2930
|
-
*/
|
|
2931
|
-
export type Receipt_PostedJson = {
|
|
2932
|
-
/**
|
|
2933
|
-
* @generated from field: nord.Side side = 1;
|
|
2934
|
-
*/
|
|
2935
|
-
side?: SideJson;
|
|
2936
|
-
|
|
2937
|
-
/**
|
|
2938
|
-
* @generated from field: uint32 market_id = 2;
|
|
2939
|
-
*/
|
|
2940
|
-
marketId?: number;
|
|
2941
|
-
|
|
2942
|
-
/**
|
|
2943
|
-
* @generated from field: uint64 price = 3;
|
|
2944
|
-
*/
|
|
2945
|
-
price?: string;
|
|
2946
|
-
|
|
2947
|
-
/**
|
|
2948
|
-
* @generated from field: uint64 size = 4;
|
|
2949
|
-
*/
|
|
2950
|
-
size?: string;
|
|
2951
|
-
|
|
2952
|
-
/**
|
|
2953
|
-
* @generated from field: uint64 order_id = 5;
|
|
2954
|
-
*/
|
|
2955
|
-
orderId?: string;
|
|
2956
|
-
|
|
2957
|
-
/**
|
|
2958
|
-
* @generated from field: uint32 account_id = 6;
|
|
2959
|
-
*/
|
|
2960
|
-
accountId?: number;
|
|
2961
|
-
};
|
|
2962
|
-
|
|
2963
|
-
/**
|
|
2964
|
-
* Describes the message nord.Receipt.Posted.
|
|
2965
|
-
* Use `create(Receipt_PostedSchema)` to create a new message.
|
|
2966
|
-
*/
|
|
2967
|
-
export const Receipt_PostedSchema: GenMessage<Receipt_Posted, {jsonType: Receipt_PostedJson}> = /*@__PURE__*/
|
|
2968
|
-
messageDesc(file_nord, 12, 0);
|
|
2969
|
-
|
|
2970
|
-
/**
|
|
2971
|
-
* @generated from message nord.Receipt.Trade
|
|
2972
|
-
*/
|
|
2973
|
-
export type Receipt_Trade = Message<"nord.Receipt.Trade"> & {
|
|
2974
|
-
/**
|
|
2975
|
-
* @generated from field: uint64 order_id = 2;
|
|
2976
|
-
*/
|
|
2977
|
-
orderId: bigint;
|
|
2978
|
-
|
|
2979
|
-
/**
|
|
2980
|
-
* non zero
|
|
2981
|
-
*
|
|
2982
|
-
* @generated from field: uint64 price = 4;
|
|
2983
|
-
*/
|
|
2984
|
-
price: bigint;
|
|
2985
|
-
|
|
2986
|
-
/**
|
|
2987
|
-
* @generated from field: uint64 size = 5;
|
|
2988
|
-
*/
|
|
2989
|
-
size: bigint;
|
|
2990
|
-
|
|
2991
|
-
/**
|
|
2992
|
-
* @generated from field: uint32 account_id = 6;
|
|
2993
|
-
*/
|
|
2994
|
-
accountId: number;
|
|
2995
|
-
};
|
|
2996
|
-
|
|
2997
|
-
/**
|
|
2998
|
-
* @generated from message nord.Receipt.Trade
|
|
2999
|
-
*/
|
|
3000
|
-
export type Receipt_TradeJson = {
|
|
3001
|
-
/**
|
|
3002
|
-
* @generated from field: uint64 order_id = 2;
|
|
3003
|
-
*/
|
|
3004
|
-
orderId?: string;
|
|
3005
|
-
|
|
3006
|
-
/**
|
|
3007
|
-
* non zero
|
|
3008
|
-
*
|
|
3009
|
-
* @generated from field: uint64 price = 4;
|
|
3010
|
-
*/
|
|
3011
|
-
price?: string;
|
|
3012
|
-
|
|
3013
|
-
/**
|
|
3014
|
-
* @generated from field: uint64 size = 5;
|
|
3015
|
-
*/
|
|
3016
|
-
size?: string;
|
|
3017
|
-
|
|
3018
|
-
/**
|
|
3019
|
-
* @generated from field: uint32 account_id = 6;
|
|
3020
|
-
*/
|
|
3021
|
-
accountId?: number;
|
|
3022
|
-
};
|
|
3023
|
-
|
|
3024
|
-
/**
|
|
3025
|
-
* Describes the message nord.Receipt.Trade.
|
|
3026
|
-
* Use `create(Receipt_TradeSchema)` to create a new message.
|
|
3027
|
-
*/
|
|
3028
|
-
export const Receipt_TradeSchema: GenMessage<Receipt_Trade, {jsonType: Receipt_TradeJson}> = /*@__PURE__*/
|
|
3029
|
-
messageDesc(file_nord, 12, 1);
|
|
3030
|
-
|
|
3031
|
-
/**
|
|
3032
|
-
* @generated from message nord.Receipt.CreateSessionResult
|
|
3033
|
-
*/
|
|
3034
|
-
export type Receipt_CreateSessionResult = Message<"nord.Receipt.CreateSessionResult"> & {
|
|
3035
|
-
/**
|
|
3036
|
-
* @generated from field: uint64 session_id = 1;
|
|
3037
|
-
*/
|
|
3038
|
-
sessionId: bigint;
|
|
3039
|
-
};
|
|
3040
|
-
|
|
3041
|
-
/**
|
|
3042
|
-
* @generated from message nord.Receipt.CreateSessionResult
|
|
3043
|
-
*/
|
|
3044
|
-
export type Receipt_CreateSessionResultJson = {
|
|
3045
|
-
/**
|
|
3046
|
-
* @generated from field: uint64 session_id = 1;
|
|
3047
|
-
*/
|
|
3048
|
-
sessionId?: string;
|
|
3049
|
-
};
|
|
3050
|
-
|
|
3051
|
-
/**
|
|
3052
|
-
* Describes the message nord.Receipt.CreateSessionResult.
|
|
3053
|
-
* Use `create(Receipt_CreateSessionResultSchema)` to create a new message.
|
|
3054
|
-
*/
|
|
3055
|
-
export const Receipt_CreateSessionResultSchema: GenMessage<Receipt_CreateSessionResult, {jsonType: Receipt_CreateSessionResultJson}> = /*@__PURE__*/
|
|
3056
|
-
messageDesc(file_nord, 12, 2);
|
|
3057
|
-
|
|
3058
|
-
/**
|
|
3059
|
-
* @generated from message nord.Receipt.Triggered
|
|
3060
|
-
*/
|
|
3061
|
-
export type Receipt_Triggered = Message<"nord.Receipt.Triggered"> & {
|
|
3062
|
-
/**
|
|
3063
|
-
* @generated from field: nord.TriggerKind kind = 3;
|
|
3064
|
-
*/
|
|
3065
|
-
kind: TriggerKind;
|
|
3066
|
-
|
|
3067
|
-
/**
|
|
3068
|
-
* @generated from field: uint64 trigger_price = 4;
|
|
3069
|
-
*/
|
|
3070
|
-
triggerPrice: bigint;
|
|
3071
|
-
};
|
|
3072
|
-
|
|
3073
|
-
/**
|
|
3074
|
-
* @generated from message nord.Receipt.Triggered
|
|
3075
|
-
*/
|
|
3076
|
-
export type Receipt_TriggeredJson = {
|
|
3077
|
-
/**
|
|
3078
|
-
* @generated from field: nord.TriggerKind kind = 3;
|
|
3079
|
-
*/
|
|
3080
|
-
kind?: TriggerKindJson;
|
|
3081
|
-
|
|
3082
|
-
/**
|
|
3083
|
-
* @generated from field: uint64 trigger_price = 4;
|
|
3084
|
-
*/
|
|
3085
|
-
triggerPrice?: string;
|
|
3086
|
-
};
|
|
3087
|
-
|
|
3088
|
-
/**
|
|
3089
|
-
* Describes the message nord.Receipt.Triggered.
|
|
3090
|
-
* Use `create(Receipt_TriggeredSchema)` to create a new message.
|
|
3091
|
-
*/
|
|
3092
|
-
export const Receipt_TriggeredSchema: GenMessage<Receipt_Triggered, {jsonType: Receipt_TriggeredJson}> = /*@__PURE__*/
|
|
3093
|
-
messageDesc(file_nord, 12, 3);
|
|
3094
|
-
|
|
3095
|
-
/**
|
|
3096
|
-
* @generated from message nord.Receipt.PlaceOrderResult
|
|
3097
|
-
*/
|
|
3098
|
-
export type Receipt_PlaceOrderResult = Message<"nord.Receipt.PlaceOrderResult"> & {
|
|
3099
|
-
/**
|
|
3100
|
-
* @generated from field: optional nord.Receipt.Posted posted = 1;
|
|
3101
|
-
*/
|
|
3102
|
-
posted?: Receipt_Posted;
|
|
3103
|
-
|
|
3104
|
-
/**
|
|
3105
|
-
* @generated from field: repeated nord.Receipt.Trade fills = 2;
|
|
3106
|
-
*/
|
|
3107
|
-
fills: Receipt_Trade[];
|
|
3108
|
-
|
|
3109
|
-
/**
|
|
3110
|
-
* @generated from field: optional uint64 client_order_id = 3;
|
|
3111
|
-
*/
|
|
3112
|
-
clientOrderId?: bigint;
|
|
3113
|
-
|
|
3114
|
-
/**
|
|
3115
|
-
* @generated from field: optional uint64 sender_tracking_id = 4;
|
|
3116
|
-
*/
|
|
3117
|
-
senderTrackingId?: bigint;
|
|
3118
|
-
|
|
3119
|
-
/**
|
|
3120
|
-
* @generated from field: optional nord.Receipt.Triggered triggered = 5;
|
|
3121
|
-
*/
|
|
3122
|
-
triggered?: Receipt_Triggered;
|
|
3123
|
-
};
|
|
3124
|
-
|
|
3125
|
-
/**
|
|
3126
|
-
* @generated from message nord.Receipt.PlaceOrderResult
|
|
3127
|
-
*/
|
|
3128
|
-
export type Receipt_PlaceOrderResultJson = {
|
|
3129
|
-
/**
|
|
3130
|
-
* @generated from field: optional nord.Receipt.Posted posted = 1;
|
|
3131
|
-
*/
|
|
3132
|
-
posted?: Receipt_PostedJson;
|
|
3133
|
-
|
|
3134
|
-
/**
|
|
3135
|
-
* @generated from field: repeated nord.Receipt.Trade fills = 2;
|
|
3136
|
-
*/
|
|
3137
|
-
fills?: Receipt_TradeJson[];
|
|
3138
|
-
|
|
3139
|
-
/**
|
|
3140
|
-
* @generated from field: optional uint64 client_order_id = 3;
|
|
3141
|
-
*/
|
|
3142
|
-
clientOrderId?: string;
|
|
3143
|
-
|
|
3144
|
-
/**
|
|
3145
|
-
* @generated from field: optional uint64 sender_tracking_id = 4;
|
|
3146
|
-
*/
|
|
3147
|
-
senderTrackingId?: string;
|
|
3148
|
-
|
|
3149
|
-
/**
|
|
3150
|
-
* @generated from field: optional nord.Receipt.Triggered triggered = 5;
|
|
3151
|
-
*/
|
|
3152
|
-
triggered?: Receipt_TriggeredJson;
|
|
3153
|
-
};
|
|
3154
|
-
|
|
3155
|
-
/**
|
|
3156
|
-
* Describes the message nord.Receipt.PlaceOrderResult.
|
|
3157
|
-
* Use `create(Receipt_PlaceOrderResultSchema)` to create a new message.
|
|
3158
|
-
*/
|
|
3159
|
-
export const Receipt_PlaceOrderResultSchema: GenMessage<Receipt_PlaceOrderResult, {jsonType: Receipt_PlaceOrderResultJson}> = /*@__PURE__*/
|
|
3160
|
-
messageDesc(file_nord, 12, 4);
|
|
3161
|
-
|
|
3162
|
-
/**
|
|
3163
|
-
* @generated from message nord.Receipt.TakenResult
|
|
3164
|
-
*/
|
|
3165
|
-
export type Receipt_TakenResult = Message<"nord.Receipt.TakenResult"> & {
|
|
3166
|
-
/**
|
|
3167
|
-
* @generated from field: int64 pnl = 1;
|
|
3168
|
-
*/
|
|
3169
|
-
pnl: bigint;
|
|
3170
|
-
|
|
3171
|
-
/**
|
|
3172
|
-
* @generated from field: int64 size = 2;
|
|
3173
|
-
*/
|
|
3174
|
-
size: bigint;
|
|
3175
|
-
|
|
3176
|
-
/**
|
|
3177
|
-
* @generated from field: uint32 taker_account_id = 3;
|
|
3178
|
-
*/
|
|
3179
|
-
takerAccountId: number;
|
|
3180
|
-
};
|
|
3181
|
-
|
|
3182
|
-
/**
|
|
3183
|
-
* @generated from message nord.Receipt.TakenResult
|
|
3184
|
-
*/
|
|
3185
|
-
export type Receipt_TakenResultJson = {
|
|
3186
|
-
/**
|
|
3187
|
-
* @generated from field: int64 pnl = 1;
|
|
3188
|
-
*/
|
|
3189
|
-
pnl?: string;
|
|
3190
|
-
|
|
3191
|
-
/**
|
|
3192
|
-
* @generated from field: int64 size = 2;
|
|
3193
|
-
*/
|
|
3194
|
-
size?: string;
|
|
3195
|
-
|
|
3196
|
-
/**
|
|
3197
|
-
* @generated from field: uint32 taker_account_id = 3;
|
|
3198
|
-
*/
|
|
3199
|
-
takerAccountId?: number;
|
|
3200
|
-
};
|
|
3201
|
-
|
|
3202
|
-
/**
|
|
3203
|
-
* Describes the message nord.Receipt.TakenResult.
|
|
3204
|
-
* Use `create(Receipt_TakenResultSchema)` to create a new message.
|
|
3205
|
-
*/
|
|
3206
|
-
export const Receipt_TakenResultSchema: GenMessage<Receipt_TakenResult, {jsonType: Receipt_TakenResultJson}> = /*@__PURE__*/
|
|
3207
|
-
messageDesc(file_nord, 12, 5);
|
|
3208
|
-
|
|
3209
|
-
/**
|
|
3210
|
-
* @generated from message nord.Receipt.PositionTakenOrTradedResult
|
|
3211
|
-
*/
|
|
3212
|
-
export type Receipt_PositionTakenOrTradedResult = Message<"nord.Receipt.PositionTakenOrTradedResult"> & {
|
|
3213
|
-
/**
|
|
3214
|
-
* @generated from field: uint32 market_id = 1;
|
|
3215
|
-
*/
|
|
3216
|
-
marketId: number;
|
|
3217
|
-
|
|
3218
|
-
/**
|
|
3219
|
-
* @generated from oneof nord.Receipt.PositionTakenOrTradedResult.PositionTakenOrTradedKind
|
|
3220
|
-
*/
|
|
3221
|
-
PositionTakenOrTradedKind: {
|
|
3222
|
-
/**
|
|
3223
|
-
* @generated from field: nord.Receipt.TakenResult taken = 2;
|
|
3224
|
-
*/
|
|
3225
|
-
value: Receipt_TakenResult;
|
|
3226
|
-
case: "taken";
|
|
3227
|
-
} | {
|
|
3228
|
-
/**
|
|
3229
|
-
* non empty if trade immediately
|
|
3230
|
-
*
|
|
3231
|
-
* @generated from field: nord.Receipt.PlaceOrderResult traded = 3;
|
|
3232
|
-
*/
|
|
3233
|
-
value: Receipt_PlaceOrderResult;
|
|
3234
|
-
case: "traded";
|
|
3235
|
-
} | { case: undefined; value?: undefined };
|
|
3236
|
-
};
|
|
3237
|
-
|
|
3238
|
-
/**
|
|
3239
|
-
* @generated from message nord.Receipt.PositionTakenOrTradedResult
|
|
3240
|
-
*/
|
|
3241
|
-
export type Receipt_PositionTakenOrTradedResultJson = {
|
|
3242
|
-
/**
|
|
3243
|
-
* @generated from field: uint32 market_id = 1;
|
|
3244
|
-
*/
|
|
3245
|
-
marketId?: number;
|
|
3246
|
-
|
|
3247
|
-
/**
|
|
3248
|
-
* @generated from field: nord.Receipt.TakenResult taken = 2;
|
|
3249
|
-
*/
|
|
3250
|
-
taken?: Receipt_TakenResultJson;
|
|
3251
|
-
|
|
3252
|
-
/**
|
|
3253
|
-
* non empty if trade immediately
|
|
3254
|
-
*
|
|
3255
|
-
* @generated from field: nord.Receipt.PlaceOrderResult traded = 3;
|
|
3256
|
-
*/
|
|
3257
|
-
traded?: Receipt_PlaceOrderResultJson;
|
|
3258
|
-
};
|
|
3259
|
-
|
|
3260
|
-
/**
|
|
3261
|
-
* Describes the message nord.Receipt.PositionTakenOrTradedResult.
|
|
3262
|
-
* Use `create(Receipt_PositionTakenOrTradedResultSchema)` to create a new message.
|
|
3263
|
-
*/
|
|
3264
|
-
export const Receipt_PositionTakenOrTradedResultSchema: GenMessage<Receipt_PositionTakenOrTradedResult, {jsonType: Receipt_PositionTakenOrTradedResultJson}> = /*@__PURE__*/
|
|
3265
|
-
messageDesc(file_nord, 12, 6);
|
|
3266
|
-
|
|
3267
|
-
/**
|
|
3268
|
-
* @generated from message nord.Receipt.CancelOrderResult
|
|
3269
|
-
*/
|
|
3270
|
-
export type Receipt_CancelOrderResult = Message<"nord.Receipt.CancelOrderResult"> & {
|
|
3271
|
-
/**
|
|
3272
|
-
* @generated from field: uint64 order_id = 1;
|
|
3273
|
-
*/
|
|
3274
|
-
orderId: bigint;
|
|
3275
|
-
|
|
3276
|
-
/**
|
|
3277
|
-
* Account from which order was cancelled
|
|
3278
|
-
*
|
|
3279
|
-
* @generated from field: uint32 account_id = 2;
|
|
3280
|
-
*/
|
|
3281
|
-
accountId: number;
|
|
3282
|
-
};
|
|
3283
|
-
|
|
3284
|
-
/**
|
|
3285
|
-
* @generated from message nord.Receipt.CancelOrderResult
|
|
3286
|
-
*/
|
|
3287
|
-
export type Receipt_CancelOrderResultJson = {
|
|
3288
|
-
/**
|
|
3289
|
-
* @generated from field: uint64 order_id = 1;
|
|
3290
|
-
*/
|
|
3291
|
-
orderId?: string;
|
|
3292
|
-
|
|
3293
|
-
/**
|
|
3294
|
-
* Account from which order was cancelled
|
|
3295
|
-
*
|
|
3296
|
-
* @generated from field: uint32 account_id = 2;
|
|
3297
|
-
*/
|
|
3298
|
-
accountId?: number;
|
|
3299
|
-
};
|
|
3300
|
-
|
|
3301
|
-
/**
|
|
3302
|
-
* Describes the message nord.Receipt.CancelOrderResult.
|
|
3303
|
-
* Use `create(Receipt_CancelOrderResultSchema)` to create a new message.
|
|
3304
|
-
*/
|
|
3305
|
-
export const Receipt_CancelOrderResultSchema: GenMessage<Receipt_CancelOrderResult, {jsonType: Receipt_CancelOrderResultJson}> = /*@__PURE__*/
|
|
3306
|
-
messageDesc(file_nord, 12, 7);
|
|
3307
|
-
|
|
3308
|
-
/**
|
|
3309
|
-
* @generated from message nord.Receipt.DepositResult
|
|
3310
|
-
*/
|
|
3311
|
-
export type Receipt_DepositResult = Message<"nord.Receipt.DepositResult"> & {
|
|
3312
|
-
/**
|
|
3313
|
-
* @generated from field: uint32 token_id = 1;
|
|
3314
|
-
*/
|
|
3315
|
-
tokenId: number;
|
|
3316
|
-
|
|
3317
|
-
/**
|
|
3318
|
-
* @generated from field: uint64 amount = 2;
|
|
3319
|
-
*/
|
|
3320
|
-
amount: bigint;
|
|
3321
|
-
|
|
3322
|
-
/**
|
|
3323
|
-
* Default account of newly created or existing user
|
|
3324
|
-
*
|
|
3325
|
-
* @generated from field: uint32 account_id = 3;
|
|
3326
|
-
*/
|
|
3327
|
-
accountId: number;
|
|
3328
|
-
|
|
3329
|
-
/**
|
|
3330
|
-
* @generated from field: bool user_created = 4;
|
|
3331
|
-
*/
|
|
3332
|
-
userCreated: boolean;
|
|
3333
|
-
|
|
3334
|
-
/**
|
|
3335
|
-
* @generated from field: bytes user_pubkey = 5;
|
|
3336
|
-
*/
|
|
3337
|
-
userPubkey: Uint8Array;
|
|
3338
|
-
};
|
|
3339
|
-
|
|
3340
|
-
/**
|
|
3341
|
-
* @generated from message nord.Receipt.DepositResult
|
|
3342
|
-
*/
|
|
3343
|
-
export type Receipt_DepositResultJson = {
|
|
3344
|
-
/**
|
|
3345
|
-
* @generated from field: uint32 token_id = 1;
|
|
3346
|
-
*/
|
|
3347
|
-
tokenId?: number;
|
|
3348
|
-
|
|
3349
|
-
/**
|
|
3350
|
-
* @generated from field: uint64 amount = 2;
|
|
3351
|
-
*/
|
|
3352
|
-
amount?: string;
|
|
3353
|
-
|
|
3354
|
-
/**
|
|
3355
|
-
* Default account of newly created or existing user
|
|
3356
|
-
*
|
|
3357
|
-
* @generated from field: uint32 account_id = 3;
|
|
3358
|
-
*/
|
|
3359
|
-
accountId?: number;
|
|
3360
|
-
|
|
3361
|
-
/**
|
|
3362
|
-
* @generated from field: bool user_created = 4;
|
|
3363
|
-
*/
|
|
3364
|
-
userCreated?: boolean;
|
|
3365
|
-
|
|
3366
|
-
/**
|
|
3367
|
-
* @generated from field: bytes user_pubkey = 5;
|
|
3368
|
-
*/
|
|
3369
|
-
userPubkey?: string;
|
|
3370
|
-
};
|
|
3371
|
-
|
|
3372
|
-
/**
|
|
3373
|
-
* Describes the message nord.Receipt.DepositResult.
|
|
3374
|
-
* Use `create(Receipt_DepositResultSchema)` to create a new message.
|
|
3375
|
-
*/
|
|
3376
|
-
export const Receipt_DepositResultSchema: GenMessage<Receipt_DepositResult, {jsonType: Receipt_DepositResultJson}> = /*@__PURE__*/
|
|
3377
|
-
messageDesc(file_nord, 12, 8);
|
|
3378
|
-
|
|
3379
|
-
/**
|
|
3380
|
-
* @generated from message nord.Receipt.InsertTokenResult
|
|
3381
|
-
*/
|
|
3382
|
-
export type Receipt_InsertTokenResult = Message<"nord.Receipt.InsertTokenResult"> & {
|
|
3383
|
-
/**
|
|
3384
|
-
* @generated from field: bytes chain_addr = 1;
|
|
3385
|
-
*/
|
|
3386
|
-
chainAddr: Uint8Array;
|
|
3387
|
-
|
|
3388
|
-
/**
|
|
3389
|
-
* @generated from field: nord.Token token = 2;
|
|
3390
|
-
*/
|
|
3391
|
-
token?: Token;
|
|
3392
|
-
};
|
|
3393
|
-
|
|
3394
|
-
/**
|
|
3395
|
-
* @generated from message nord.Receipt.InsertTokenResult
|
|
3396
|
-
*/
|
|
3397
|
-
export type Receipt_InsertTokenResultJson = {
|
|
3398
|
-
/**
|
|
3399
|
-
* @generated from field: bytes chain_addr = 1;
|
|
3400
|
-
*/
|
|
3401
|
-
chainAddr?: string;
|
|
3402
|
-
|
|
3403
|
-
/**
|
|
3404
|
-
* @generated from field: nord.Token token = 2;
|
|
3405
|
-
*/
|
|
3406
|
-
token?: TokenJson;
|
|
3407
|
-
};
|
|
3408
|
-
|
|
3409
|
-
/**
|
|
3410
|
-
* Describes the message nord.Receipt.InsertTokenResult.
|
|
3411
|
-
* Use `create(Receipt_InsertTokenResultSchema)` to create a new message.
|
|
3412
|
-
*/
|
|
3413
|
-
export const Receipt_InsertTokenResultSchema: GenMessage<Receipt_InsertTokenResult, {jsonType: Receipt_InsertTokenResultJson}> = /*@__PURE__*/
|
|
3414
|
-
messageDesc(file_nord, 12, 9);
|
|
3415
|
-
|
|
3416
|
-
/**
|
|
3417
|
-
* @generated from message nord.Receipt.InsertMarketResult
|
|
3418
|
-
*/
|
|
3419
|
-
export type Receipt_InsertMarketResult = Message<"nord.Receipt.InsertMarketResult"> & {
|
|
3420
|
-
/**
|
|
3421
|
-
* @generated from field: nord.Market market = 1;
|
|
3422
|
-
*/
|
|
3423
|
-
market?: Market;
|
|
3424
|
-
};
|
|
3425
|
-
|
|
3426
|
-
/**
|
|
3427
|
-
* @generated from message nord.Receipt.InsertMarketResult
|
|
3428
|
-
*/
|
|
3429
|
-
export type Receipt_InsertMarketResultJson = {
|
|
3430
|
-
/**
|
|
3431
|
-
* @generated from field: nord.Market market = 1;
|
|
3432
|
-
*/
|
|
3433
|
-
market?: MarketJson;
|
|
3434
|
-
};
|
|
3435
|
-
|
|
3436
|
-
/**
|
|
3437
|
-
* Describes the message nord.Receipt.InsertMarketResult.
|
|
3438
|
-
* Use `create(Receipt_InsertMarketResultSchema)` to create a new message.
|
|
3439
|
-
*/
|
|
3440
|
-
export const Receipt_InsertMarketResultSchema: GenMessage<Receipt_InsertMarketResult, {jsonType: Receipt_InsertMarketResultJson}> = /*@__PURE__*/
|
|
3441
|
-
messageDesc(file_nord, 12, 10);
|
|
3442
|
-
|
|
3443
|
-
/**
|
|
3444
|
-
* @generated from message nord.Receipt.WithdrawResult
|
|
3445
|
-
*/
|
|
3446
|
-
export type Receipt_WithdrawResult = Message<"nord.Receipt.WithdrawResult"> & {
|
|
3447
|
-
/**
|
|
3448
|
-
* @generated from field: uint32 token_id = 1;
|
|
3449
|
-
*/
|
|
3450
|
-
tokenId: number;
|
|
3451
|
-
|
|
3452
|
-
/**
|
|
3453
|
-
* @generated from field: uint64 amount = 2;
|
|
3454
|
-
*/
|
|
3455
|
-
amount: bigint;
|
|
3456
|
-
|
|
3457
|
-
/**
|
|
3458
|
-
* @generated from field: uint64 balance = 3;
|
|
3459
|
-
*/
|
|
3460
|
-
balance: bigint;
|
|
3461
|
-
|
|
3462
|
-
/**
|
|
3463
|
-
* @generated from field: uint32 account_id = 4;
|
|
3464
|
-
*/
|
|
3465
|
-
accountId: number;
|
|
3466
|
-
|
|
3467
|
-
/**
|
|
3468
|
-
* @generated from field: uint64 fee = 5;
|
|
3469
|
-
*/
|
|
3470
|
-
fee: bigint;
|
|
3471
|
-
|
|
3472
|
-
/**
|
|
3473
|
-
* @generated from field: bytes user_pubkey = 6;
|
|
3474
|
-
*/
|
|
3475
|
-
userPubkey: Uint8Array;
|
|
3476
|
-
};
|
|
3477
|
-
|
|
3478
|
-
/**
|
|
3479
|
-
* @generated from message nord.Receipt.WithdrawResult
|
|
3480
|
-
*/
|
|
3481
|
-
export type Receipt_WithdrawResultJson = {
|
|
3482
|
-
/**
|
|
3483
|
-
* @generated from field: uint32 token_id = 1;
|
|
3484
|
-
*/
|
|
3485
|
-
tokenId?: number;
|
|
3486
|
-
|
|
3487
|
-
/**
|
|
3488
|
-
* @generated from field: uint64 amount = 2;
|
|
3489
|
-
*/
|
|
3490
|
-
amount?: string;
|
|
3491
|
-
|
|
3492
|
-
/**
|
|
3493
|
-
* @generated from field: uint64 balance = 3;
|
|
3494
|
-
*/
|
|
3495
|
-
balance?: string;
|
|
3496
|
-
|
|
3497
|
-
/**
|
|
3498
|
-
* @generated from field: uint32 account_id = 4;
|
|
3499
|
-
*/
|
|
3500
|
-
accountId?: number;
|
|
3501
|
-
|
|
3502
|
-
/**
|
|
3503
|
-
* @generated from field: uint64 fee = 5;
|
|
3504
|
-
*/
|
|
3505
|
-
fee?: string;
|
|
3506
|
-
|
|
3507
|
-
/**
|
|
3508
|
-
* @generated from field: bytes user_pubkey = 6;
|
|
3509
|
-
*/
|
|
3510
|
-
userPubkey?: string;
|
|
3511
|
-
};
|
|
3512
|
-
|
|
3513
|
-
/**
|
|
3514
|
-
* Describes the message nord.Receipt.WithdrawResult.
|
|
3515
|
-
* Use `create(Receipt_WithdrawResultSchema)` to create a new message.
|
|
3516
|
-
*/
|
|
3517
|
-
export const Receipt_WithdrawResultSchema: GenMessage<Receipt_WithdrawResult, {jsonType: Receipt_WithdrawResultJson}> = /*@__PURE__*/
|
|
3518
|
-
messageDesc(file_nord, 12, 11);
|
|
3519
|
-
|
|
3520
|
-
/**
|
|
3521
|
-
* pyth receipts are not user facing, so they can be terse and optional
|
|
3522
|
-
*
|
|
3523
|
-
* @generated from message nord.Receipt.OracleSymbolFeedResult
|
|
3524
|
-
*/
|
|
3525
|
-
export type Receipt_OracleSymbolFeedResult = Message<"nord.Receipt.OracleSymbolFeedResult"> & {
|
|
3526
|
-
/**
|
|
3527
|
-
* @generated from field: string oracle_symbol = 1;
|
|
3528
|
-
*/
|
|
3529
|
-
oracleSymbol: string;
|
|
3530
|
-
|
|
3531
|
-
/**
|
|
3532
|
-
* @generated from field: bytes feed_id = 2;
|
|
3533
|
-
*/
|
|
3534
|
-
feedId: Uint8Array;
|
|
3535
|
-
};
|
|
3536
|
-
|
|
3537
|
-
/**
|
|
3538
|
-
* pyth receipts are not user facing, so they can be terse and optional
|
|
3539
|
-
*
|
|
3540
|
-
* @generated from message nord.Receipt.OracleSymbolFeedResult
|
|
3541
|
-
*/
|
|
3542
|
-
export type Receipt_OracleSymbolFeedResultJson = {
|
|
3543
|
-
/**
|
|
3544
|
-
* @generated from field: string oracle_symbol = 1;
|
|
3545
|
-
*/
|
|
3546
|
-
oracleSymbol?: string;
|
|
3547
|
-
|
|
3548
|
-
/**
|
|
3549
|
-
* @generated from field: bytes feed_id = 2;
|
|
3550
|
-
*/
|
|
3551
|
-
feedId?: string;
|
|
3552
|
-
};
|
|
3553
|
-
|
|
3554
|
-
/**
|
|
3555
|
-
* Describes the message nord.Receipt.OracleSymbolFeedResult.
|
|
3556
|
-
* Use `create(Receipt_OracleSymbolFeedResultSchema)` to create a new message.
|
|
3557
|
-
*/
|
|
3558
|
-
export const Receipt_OracleSymbolFeedResultSchema: GenMessage<Receipt_OracleSymbolFeedResult, {jsonType: Receipt_OracleSymbolFeedResultJson}> = /*@__PURE__*/
|
|
3559
|
-
messageDesc(file_nord, 12, 12);
|
|
3560
|
-
|
|
3561
|
-
/**
|
|
3562
|
-
* @generated from message nord.Receipt.OracleUpdateResult
|
|
3563
|
-
*/
|
|
3564
|
-
export type Receipt_OracleUpdateResult = Message<"nord.Receipt.OracleUpdateResult"> & {
|
|
3565
|
-
/**
|
|
3566
|
-
* @generated from field: int64 timestamp = 1;
|
|
3567
|
-
*/
|
|
3568
|
-
timestamp: bigint;
|
|
3569
|
-
};
|
|
3570
|
-
|
|
3571
|
-
/**
|
|
3572
|
-
* @generated from message nord.Receipt.OracleUpdateResult
|
|
3573
|
-
*/
|
|
3574
|
-
export type Receipt_OracleUpdateResultJson = {
|
|
3575
|
-
/**
|
|
3576
|
-
* @generated from field: int64 timestamp = 1;
|
|
3577
|
-
*/
|
|
3578
|
-
timestamp?: string;
|
|
3579
|
-
};
|
|
3580
|
-
|
|
3581
|
-
/**
|
|
3582
|
-
* Describes the message nord.Receipt.OracleUpdateResult.
|
|
3583
|
-
* Use `create(Receipt_OracleUpdateResultSchema)` to create a new message.
|
|
3584
|
-
*/
|
|
3585
|
-
export const Receipt_OracleUpdateResultSchema: GenMessage<Receipt_OracleUpdateResult, {jsonType: Receipt_OracleUpdateResultJson}> = /*@__PURE__*/
|
|
3586
|
-
messageDesc(file_nord, 12, 13);
|
|
3587
|
-
|
|
3588
|
-
/**
|
|
3589
|
-
* @generated from message nord.Receipt.UpdateGuardianSetResult
|
|
3590
|
-
*/
|
|
3591
|
-
export type Receipt_UpdateGuardianSetResult = Message<"nord.Receipt.UpdateGuardianSetResult"> & {
|
|
3592
|
-
/**
|
|
3593
|
-
* @generated from field: uint32 guardian_set_index = 1;
|
|
3594
|
-
*/
|
|
3595
|
-
guardianSetIndex: number;
|
|
3596
|
-
|
|
3597
|
-
/**
|
|
3598
|
-
* @generated from field: repeated bytes addresses = 2;
|
|
3599
|
-
*/
|
|
3600
|
-
addresses: Uint8Array[];
|
|
3601
|
-
};
|
|
3602
|
-
|
|
3603
|
-
/**
|
|
3604
|
-
* @generated from message nord.Receipt.UpdateGuardianSetResult
|
|
3605
|
-
*/
|
|
3606
|
-
export type Receipt_UpdateGuardianSetResultJson = {
|
|
3607
|
-
/**
|
|
3608
|
-
* @generated from field: uint32 guardian_set_index = 1;
|
|
3609
|
-
*/
|
|
3610
|
-
guardianSetIndex?: number;
|
|
3611
|
-
|
|
3612
|
-
/**
|
|
3613
|
-
* @generated from field: repeated bytes addresses = 2;
|
|
3614
|
-
*/
|
|
3615
|
-
addresses?: string[];
|
|
3616
|
-
};
|
|
3617
|
-
|
|
3618
|
-
/**
|
|
3619
|
-
* Describes the message nord.Receipt.UpdateGuardianSetResult.
|
|
3620
|
-
* Use `create(Receipt_UpdateGuardianSetResultSchema)` to create a new message.
|
|
3621
|
-
*/
|
|
3622
|
-
export const Receipt_UpdateGuardianSetResultSchema: GenMessage<Receipt_UpdateGuardianSetResult, {jsonType: Receipt_UpdateGuardianSetResultJson}> = /*@__PURE__*/
|
|
3623
|
-
messageDesc(file_nord, 12, 14);
|
|
3624
|
-
|
|
3625
|
-
/**
|
|
3626
|
-
* @generated from message nord.Receipt.PerpPosition
|
|
3627
|
-
*/
|
|
3628
|
-
export type Receipt_PerpPosition = Message<"nord.Receipt.PerpPosition"> & {
|
|
3629
|
-
/**
|
|
3630
|
-
* @generated from field: uint32 market_id = 1;
|
|
3631
|
-
*/
|
|
3632
|
-
marketId: number;
|
|
3633
|
-
|
|
3634
|
-
/**
|
|
3635
|
-
* @generated from field: int64 base_size = 2;
|
|
3636
|
-
*/
|
|
3637
|
-
baseSize: bigint;
|
|
3638
|
-
|
|
3639
|
-
/**
|
|
3640
|
-
* @generated from field: uint64 price = 3;
|
|
3641
|
-
*/
|
|
3642
|
-
price: bigint;
|
|
3643
|
-
};
|
|
3644
|
-
|
|
3645
|
-
/**
|
|
3646
|
-
* @generated from message nord.Receipt.PerpPosition
|
|
3647
|
-
*/
|
|
3648
|
-
export type Receipt_PerpPositionJson = {
|
|
3649
|
-
/**
|
|
3650
|
-
* @generated from field: uint32 market_id = 1;
|
|
3651
|
-
*/
|
|
3652
|
-
marketId?: number;
|
|
3653
|
-
|
|
3654
|
-
/**
|
|
3655
|
-
* @generated from field: int64 base_size = 2;
|
|
3656
|
-
*/
|
|
3657
|
-
baseSize?: string;
|
|
3658
|
-
|
|
3659
|
-
/**
|
|
3660
|
-
* @generated from field: uint64 price = 3;
|
|
3661
|
-
*/
|
|
3662
|
-
price?: string;
|
|
3663
|
-
};
|
|
3664
|
-
|
|
3665
|
-
/**
|
|
3666
|
-
* Describes the message nord.Receipt.PerpPosition.
|
|
3667
|
-
* Use `create(Receipt_PerpPositionSchema)` to create a new message.
|
|
3668
|
-
*/
|
|
3669
|
-
export const Receipt_PerpPositionSchema: GenMessage<Receipt_PerpPosition, {jsonType: Receipt_PerpPositionJson}> = /*@__PURE__*/
|
|
3670
|
-
messageDesc(file_nord, 12, 15);
|
|
3671
|
-
|
|
3672
|
-
/**
|
|
3673
|
-
* / Result of bankruptcy liquidation.
|
|
3674
|
-
*
|
|
3675
|
-
* @generated from message nord.Receipt.AccountLiquidated
|
|
3676
|
-
*/
|
|
3677
|
-
export type Receipt_AccountLiquidated = Message<"nord.Receipt.AccountLiquidated"> & {
|
|
3678
|
-
/**
|
|
3679
|
-
* @generated from field: uint32 liquidator_account_id = 1;
|
|
3680
|
-
*/
|
|
3681
|
-
liquidatorAccountId: number;
|
|
3682
|
-
|
|
3683
|
-
/**
|
|
3684
|
-
* @generated from field: uint32 liquidatee_account_id = 2;
|
|
3685
|
-
*/
|
|
3686
|
-
liquidateeAccountId: number;
|
|
3687
|
-
|
|
3688
|
-
/**
|
|
3689
|
-
* @generated from field: repeated uint64 cancelled_orders = 3;
|
|
3690
|
-
*/
|
|
3691
|
-
cancelledOrders: bigint[];
|
|
3692
|
-
|
|
3693
|
-
/**
|
|
3694
|
-
* @generated from field: repeated nord.Receipt.PerpPosition removed_perps = 4;
|
|
3695
|
-
*/
|
|
3696
|
-
removedPerps: Receipt_PerpPosition[];
|
|
3697
|
-
};
|
|
3698
|
-
|
|
3699
|
-
/**
|
|
3700
|
-
* / Result of bankruptcy liquidation.
|
|
3701
|
-
*
|
|
3702
|
-
* @generated from message nord.Receipt.AccountLiquidated
|
|
3703
|
-
*/
|
|
3704
|
-
export type Receipt_AccountLiquidatedJson = {
|
|
3705
|
-
/**
|
|
3706
|
-
* @generated from field: uint32 liquidator_account_id = 1;
|
|
3707
|
-
*/
|
|
3708
|
-
liquidatorAccountId?: number;
|
|
3709
|
-
|
|
3710
|
-
/**
|
|
3711
|
-
* @generated from field: uint32 liquidatee_account_id = 2;
|
|
3712
|
-
*/
|
|
3713
|
-
liquidateeAccountId?: number;
|
|
3714
|
-
|
|
3715
|
-
/**
|
|
3716
|
-
* @generated from field: repeated uint64 cancelled_orders = 3;
|
|
3717
|
-
*/
|
|
3718
|
-
cancelledOrders?: string[];
|
|
3719
|
-
|
|
3720
|
-
/**
|
|
3721
|
-
* @generated from field: repeated nord.Receipt.PerpPosition removed_perps = 4;
|
|
3722
|
-
*/
|
|
3723
|
-
removedPerps?: Receipt_PerpPositionJson[];
|
|
3724
|
-
};
|
|
3725
|
-
|
|
3726
|
-
/**
|
|
3727
|
-
* Describes the message nord.Receipt.AccountLiquidated.
|
|
3728
|
-
* Use `create(Receipt_AccountLiquidatedSchema)` to create a new message.
|
|
3729
|
-
*/
|
|
3730
|
-
export const Receipt_AccountLiquidatedSchema: GenMessage<Receipt_AccountLiquidated, {jsonType: Receipt_AccountLiquidatedJson}> = /*@__PURE__*/
|
|
3731
|
-
messageDesc(file_nord, 12, 16);
|
|
3732
|
-
|
|
3733
|
-
/**
|
|
3734
|
-
* @generated from message nord.Receipt.SessionRevoked
|
|
3735
|
-
*/
|
|
3736
|
-
export type Receipt_SessionRevoked = Message<"nord.Receipt.SessionRevoked"> & {
|
|
3737
|
-
};
|
|
3738
|
-
|
|
3739
|
-
/**
|
|
3740
|
-
* @generated from message nord.Receipt.SessionRevoked
|
|
3741
|
-
*/
|
|
3742
|
-
export type Receipt_SessionRevokedJson = {
|
|
3743
|
-
};
|
|
3744
|
-
|
|
3745
|
-
/**
|
|
3746
|
-
* Describes the message nord.Receipt.SessionRevoked.
|
|
3747
|
-
* Use `create(Receipt_SessionRevokedSchema)` to create a new message.
|
|
3748
|
-
*/
|
|
3749
|
-
export const Receipt_SessionRevokedSchema: GenMessage<Receipt_SessionRevoked, {jsonType: Receipt_SessionRevokedJson}> = /*@__PURE__*/
|
|
3750
|
-
messageDesc(file_nord, 12, 17);
|
|
3751
|
-
|
|
3752
|
-
/**
|
|
3753
|
-
* @generated from message nord.Receipt.Paused
|
|
3754
|
-
*/
|
|
3755
|
-
export type Receipt_Paused = Message<"nord.Receipt.Paused"> & {
|
|
3756
|
-
};
|
|
3757
|
-
|
|
3758
|
-
/**
|
|
3759
|
-
* @generated from message nord.Receipt.Paused
|
|
3760
|
-
*/
|
|
3761
|
-
export type Receipt_PausedJson = {
|
|
3762
|
-
};
|
|
3763
|
-
|
|
3764
|
-
/**
|
|
3765
|
-
* Describes the message nord.Receipt.Paused.
|
|
3766
|
-
* Use `create(Receipt_PausedSchema)` to create a new message.
|
|
3767
|
-
*/
|
|
3768
|
-
export const Receipt_PausedSchema: GenMessage<Receipt_Paused, {jsonType: Receipt_PausedJson}> = /*@__PURE__*/
|
|
3769
|
-
messageDesc(file_nord, 12, 18);
|
|
3770
|
-
|
|
3771
|
-
/**
|
|
3772
|
-
* @generated from message nord.Receipt.Unpaused
|
|
3773
|
-
*/
|
|
3774
|
-
export type Receipt_Unpaused = Message<"nord.Receipt.Unpaused"> & {
|
|
3775
|
-
};
|
|
3776
|
-
|
|
3777
|
-
/**
|
|
3778
|
-
* @generated from message nord.Receipt.Unpaused
|
|
3779
|
-
*/
|
|
3780
|
-
export type Receipt_UnpausedJson = {
|
|
3781
|
-
};
|
|
3782
|
-
|
|
3783
|
-
/**
|
|
3784
|
-
* Describes the message nord.Receipt.Unpaused.
|
|
3785
|
-
* Use `create(Receipt_UnpausedSchema)` to create a new message.
|
|
3786
|
-
*/
|
|
3787
|
-
export const Receipt_UnpausedSchema: GenMessage<Receipt_Unpaused, {jsonType: Receipt_UnpausedJson}> = /*@__PURE__*/
|
|
3788
|
-
messageDesc(file_nord, 12, 19);
|
|
3789
|
-
|
|
3790
|
-
/**
|
|
3791
|
-
* @generated from message nord.Receipt.Transferred
|
|
3792
|
-
*/
|
|
3793
|
-
export type Receipt_Transferred = Message<"nord.Receipt.Transferred"> & {
|
|
3794
|
-
/**
|
|
3795
|
-
* @generated from field: uint32 from_account_id = 1;
|
|
3796
|
-
*/
|
|
3797
|
-
fromAccountId: number;
|
|
3798
|
-
|
|
3799
|
-
/**
|
|
3800
|
-
* @generated from field: optional uint32 to_user_account = 2;
|
|
3801
|
-
*/
|
|
3802
|
-
toUserAccount?: number;
|
|
3803
|
-
|
|
3804
|
-
/**
|
|
3805
|
-
* @generated from field: uint32 token_id = 3;
|
|
3806
|
-
*/
|
|
3807
|
-
tokenId: number;
|
|
3808
|
-
|
|
3809
|
-
/**
|
|
3810
|
-
* @generated from field: uint64 amount = 4;
|
|
3811
|
-
*/
|
|
3812
|
-
amount: bigint;
|
|
3813
|
-
|
|
3814
|
-
/**
|
|
3815
|
-
* @generated from field: bool account_created = 5;
|
|
3816
|
-
*/
|
|
3817
|
-
accountCreated: boolean;
|
|
3818
|
-
|
|
3819
|
-
/**
|
|
3820
|
-
* @generated from field: optional nord.SpecialAccount to_special_account = 6;
|
|
3821
|
-
*/
|
|
3822
|
-
toSpecialAccount?: SpecialAccount;
|
|
3823
|
-
};
|
|
3824
|
-
|
|
3825
|
-
/**
|
|
3826
|
-
* @generated from message nord.Receipt.Transferred
|
|
3827
|
-
*/
|
|
3828
|
-
export type Receipt_TransferredJson = {
|
|
3829
|
-
/**
|
|
3830
|
-
* @generated from field: uint32 from_account_id = 1;
|
|
3831
|
-
*/
|
|
3832
|
-
fromAccountId?: number;
|
|
3833
|
-
|
|
3834
|
-
/**
|
|
3835
|
-
* @generated from field: optional uint32 to_user_account = 2;
|
|
3836
|
-
*/
|
|
3837
|
-
toUserAccount?: number;
|
|
3838
|
-
|
|
3839
|
-
/**
|
|
3840
|
-
* @generated from field: uint32 token_id = 3;
|
|
3841
|
-
*/
|
|
3842
|
-
tokenId?: number;
|
|
3843
|
-
|
|
3844
|
-
/**
|
|
3845
|
-
* @generated from field: uint64 amount = 4;
|
|
3846
|
-
*/
|
|
3847
|
-
amount?: string;
|
|
3848
|
-
|
|
3849
|
-
/**
|
|
3850
|
-
* @generated from field: bool account_created = 5;
|
|
3851
|
-
*/
|
|
3852
|
-
accountCreated?: boolean;
|
|
3853
|
-
|
|
3854
|
-
/**
|
|
3855
|
-
* @generated from field: optional nord.SpecialAccount to_special_account = 6;
|
|
3856
|
-
*/
|
|
3857
|
-
toSpecialAccount?: SpecialAccountJson;
|
|
3858
|
-
};
|
|
3859
|
-
|
|
3860
|
-
/**
|
|
3861
|
-
* Describes the message nord.Receipt.Transferred.
|
|
3862
|
-
* Use `create(Receipt_TransferredSchema)` to create a new message.
|
|
3863
|
-
*/
|
|
3864
|
-
export const Receipt_TransferredSchema: GenMessage<Receipt_Transferred, {jsonType: Receipt_TransferredJson}> = /*@__PURE__*/
|
|
3865
|
-
messageDesc(file_nord, 12, 20);
|
|
3866
|
-
|
|
3867
|
-
/**
|
|
3868
|
-
* @generated from message nord.Receipt.TriggerAdded
|
|
3869
|
-
*/
|
|
3870
|
-
export type Receipt_TriggerAdded = Message<"nord.Receipt.TriggerAdded"> & {
|
|
3871
|
-
};
|
|
3872
|
-
|
|
3873
|
-
/**
|
|
3874
|
-
* @generated from message nord.Receipt.TriggerAdded
|
|
3875
|
-
*/
|
|
3876
|
-
export type Receipt_TriggerAddedJson = {
|
|
3877
|
-
};
|
|
3878
|
-
|
|
3879
|
-
/**
|
|
3880
|
-
* Describes the message nord.Receipt.TriggerAdded.
|
|
3881
|
-
* Use `create(Receipt_TriggerAddedSchema)` to create a new message.
|
|
3882
|
-
*/
|
|
3883
|
-
export const Receipt_TriggerAddedSchema: GenMessage<Receipt_TriggerAdded, {jsonType: Receipt_TriggerAddedJson}> = /*@__PURE__*/
|
|
3884
|
-
messageDesc(file_nord, 12, 21);
|
|
3885
|
-
|
|
3886
|
-
/**
|
|
3887
|
-
* @generated from message nord.Receipt.TriggerRemoved
|
|
3888
|
-
*/
|
|
3889
|
-
export type Receipt_TriggerRemoved = Message<"nord.Receipt.TriggerRemoved"> & {
|
|
3890
|
-
};
|
|
3891
|
-
|
|
3892
|
-
/**
|
|
3893
|
-
* @generated from message nord.Receipt.TriggerRemoved
|
|
3894
|
-
*/
|
|
3895
|
-
export type Receipt_TriggerRemovedJson = {
|
|
3896
|
-
};
|
|
3897
|
-
|
|
3898
|
-
/**
|
|
3899
|
-
* Describes the message nord.Receipt.TriggerRemoved.
|
|
3900
|
-
* Use `create(Receipt_TriggerRemovedSchema)` to create a new message.
|
|
3901
|
-
*/
|
|
3902
|
-
export const Receipt_TriggerRemovedSchema: GenMessage<Receipt_TriggerRemoved, {jsonType: Receipt_TriggerRemovedJson}> = /*@__PURE__*/
|
|
3903
|
-
messageDesc(file_nord, 12, 22);
|
|
3904
|
-
|
|
3905
|
-
/**
|
|
3906
|
-
* @generated from message nord.Receipt.MarketFreezeUpdated
|
|
3907
|
-
*/
|
|
3908
|
-
export type Receipt_MarketFreezeUpdated = Message<"nord.Receipt.MarketFreezeUpdated"> & {
|
|
3909
|
-
/**
|
|
3910
|
-
* @generated from field: uint32 market_id = 1;
|
|
3911
|
-
*/
|
|
3912
|
-
marketId: number;
|
|
3913
|
-
|
|
3914
|
-
/**
|
|
3915
|
-
* @generated from field: bool frozen = 2;
|
|
3916
|
-
*/
|
|
3917
|
-
frozen: boolean;
|
|
3918
|
-
};
|
|
3919
|
-
|
|
3920
|
-
/**
|
|
3921
|
-
* @generated from message nord.Receipt.MarketFreezeUpdated
|
|
3922
|
-
*/
|
|
3923
|
-
export type Receipt_MarketFreezeUpdatedJson = {
|
|
3924
|
-
/**
|
|
3925
|
-
* @generated from field: uint32 market_id = 1;
|
|
3926
|
-
*/
|
|
3927
|
-
marketId?: number;
|
|
3928
|
-
|
|
3929
|
-
/**
|
|
3930
|
-
* @generated from field: bool frozen = 2;
|
|
3931
|
-
*/
|
|
3932
|
-
frozen?: boolean;
|
|
3933
|
-
};
|
|
3934
|
-
|
|
3935
|
-
/**
|
|
3936
|
-
* Describes the message nord.Receipt.MarketFreezeUpdated.
|
|
3937
|
-
* Use `create(Receipt_MarketFreezeUpdatedSchema)` to create a new message.
|
|
3938
|
-
*/
|
|
3939
|
-
export const Receipt_MarketFreezeUpdatedSchema: GenMessage<Receipt_MarketFreezeUpdated, {jsonType: Receipt_MarketFreezeUpdatedJson}> = /*@__PURE__*/
|
|
3940
|
-
messageDesc(file_nord, 12, 23);
|
|
3941
|
-
|
|
3942
|
-
/**
|
|
3943
|
-
* @generated from message nord.Receipt.FeeTierAdded
|
|
3944
|
-
*/
|
|
3945
|
-
export type Receipt_FeeTierAdded = Message<"nord.Receipt.FeeTierAdded"> & {
|
|
3946
|
-
/**
|
|
3947
|
-
* @generated from field: nord.FeeTierConfig config = 1;
|
|
3948
|
-
*/
|
|
3949
|
-
config?: FeeTierConfig;
|
|
3950
|
-
};
|
|
3951
|
-
|
|
3952
|
-
/**
|
|
3953
|
-
* @generated from message nord.Receipt.FeeTierAdded
|
|
3954
|
-
*/
|
|
3955
|
-
export type Receipt_FeeTierAddedJson = {
|
|
3956
|
-
/**
|
|
3957
|
-
* @generated from field: nord.FeeTierConfig config = 1;
|
|
3958
|
-
*/
|
|
3959
|
-
config?: FeeTierConfigJson;
|
|
3960
|
-
};
|
|
3961
|
-
|
|
3962
|
-
/**
|
|
3963
|
-
* Describes the message nord.Receipt.FeeTierAdded.
|
|
3964
|
-
* Use `create(Receipt_FeeTierAddedSchema)` to create a new message.
|
|
3965
|
-
*/
|
|
3966
|
-
export const Receipt_FeeTierAddedSchema: GenMessage<Receipt_FeeTierAdded, {jsonType: Receipt_FeeTierAddedJson}> = /*@__PURE__*/
|
|
3967
|
-
messageDesc(file_nord, 12, 24);
|
|
3968
|
-
|
|
3969
|
-
/**
|
|
3970
|
-
* @generated from message nord.Receipt.FeeTierUpdated
|
|
3971
|
-
*/
|
|
3972
|
-
export type Receipt_FeeTierUpdated = Message<"nord.Receipt.FeeTierUpdated"> & {
|
|
3973
|
-
/**
|
|
3974
|
-
* @generated from field: uint32 id = 1;
|
|
3975
|
-
*/
|
|
3976
|
-
id: number;
|
|
3977
|
-
|
|
3978
|
-
/**
|
|
3979
|
-
* @generated from field: nord.FeeTierConfig config = 2;
|
|
3980
|
-
*/
|
|
3981
|
-
config?: FeeTierConfig;
|
|
3982
|
-
};
|
|
3983
|
-
|
|
3984
|
-
/**
|
|
3985
|
-
* @generated from message nord.Receipt.FeeTierUpdated
|
|
3986
|
-
*/
|
|
3987
|
-
export type Receipt_FeeTierUpdatedJson = {
|
|
3988
|
-
/**
|
|
3989
|
-
* @generated from field: uint32 id = 1;
|
|
3990
|
-
*/
|
|
3991
|
-
id?: number;
|
|
3992
|
-
|
|
3993
|
-
/**
|
|
3994
|
-
* @generated from field: nord.FeeTierConfig config = 2;
|
|
3995
|
-
*/
|
|
3996
|
-
config?: FeeTierConfigJson;
|
|
3997
|
-
};
|
|
3998
|
-
|
|
3999
|
-
/**
|
|
4000
|
-
* Describes the message nord.Receipt.FeeTierUpdated.
|
|
4001
|
-
* Use `create(Receipt_FeeTierUpdatedSchema)` to create a new message.
|
|
4002
|
-
*/
|
|
4003
|
-
export const Receipt_FeeTierUpdatedSchema: GenMessage<Receipt_FeeTierUpdated, {jsonType: Receipt_FeeTierUpdatedJson}> = /*@__PURE__*/
|
|
4004
|
-
messageDesc(file_nord, 12, 25);
|
|
4005
|
-
|
|
4006
|
-
/**
|
|
4007
|
-
* @generated from message nord.Receipt.AccountsTierUpdated
|
|
4008
|
-
*/
|
|
4009
|
-
export type Receipt_AccountsTierUpdated = Message<"nord.Receipt.AccountsTierUpdated"> & {
|
|
4010
|
-
/**
|
|
4011
|
-
* @generated from field: uint32 tier_id = 1;
|
|
4012
|
-
*/
|
|
4013
|
-
tierId: number;
|
|
4014
|
-
|
|
4015
|
-
/**
|
|
4016
|
-
* @generated from field: repeated uint32 accounts = 2;
|
|
4017
|
-
*/
|
|
4018
|
-
accounts: number[];
|
|
4019
|
-
};
|
|
4020
|
-
|
|
4021
|
-
/**
|
|
4022
|
-
* @generated from message nord.Receipt.AccountsTierUpdated
|
|
4023
|
-
*/
|
|
4024
|
-
export type Receipt_AccountsTierUpdatedJson = {
|
|
4025
|
-
/**
|
|
4026
|
-
* @generated from field: uint32 tier_id = 1;
|
|
4027
|
-
*/
|
|
4028
|
-
tierId?: number;
|
|
4029
|
-
|
|
4030
|
-
/**
|
|
4031
|
-
* @generated from field: repeated uint32 accounts = 2;
|
|
4032
|
-
*/
|
|
4033
|
-
accounts?: number[];
|
|
4034
|
-
};
|
|
4035
|
-
|
|
4036
|
-
/**
|
|
4037
|
-
* Describes the message nord.Receipt.AccountsTierUpdated.
|
|
4038
|
-
* Use `create(Receipt_AccountsTierUpdatedSchema)` to create a new message.
|
|
4039
|
-
*/
|
|
4040
|
-
export const Receipt_AccountsTierUpdatedSchema: GenMessage<Receipt_AccountsTierUpdated, {jsonType: Receipt_AccountsTierUpdatedJson}> = /*@__PURE__*/
|
|
4041
|
-
messageDesc(file_nord, 12, 26);
|
|
4042
|
-
|
|
4043
|
-
/**
|
|
4044
|
-
* @generated from message nord.Receipt.AclUpdated
|
|
4045
|
-
*/
|
|
4046
|
-
export type Receipt_AclUpdated = Message<"nord.Receipt.AclUpdated"> & {
|
|
4047
|
-
/**
|
|
4048
|
-
* @generated from field: bytes acl_pubkey = 1;
|
|
4049
|
-
*/
|
|
4050
|
-
aclPubkey: Uint8Array;
|
|
4051
|
-
|
|
4052
|
-
/**
|
|
4053
|
-
* @generated from field: uint64 roles_mask = 2;
|
|
4054
|
-
*/
|
|
4055
|
-
rolesMask: bigint;
|
|
4056
|
-
|
|
4057
|
-
/**
|
|
4058
|
-
* @generated from field: bytes target_pubkey = 3;
|
|
4059
|
-
*/
|
|
4060
|
-
targetPubkey: Uint8Array;
|
|
4061
|
-
|
|
4062
|
-
/**
|
|
4063
|
-
* @generated from field: uint64 roles_value = 4;
|
|
4064
|
-
*/
|
|
4065
|
-
rolesValue: bigint;
|
|
4066
|
-
};
|
|
4067
|
-
|
|
4068
|
-
/**
|
|
4069
|
-
* @generated from message nord.Receipt.AclUpdated
|
|
4070
|
-
*/
|
|
4071
|
-
export type Receipt_AclUpdatedJson = {
|
|
4072
|
-
/**
|
|
4073
|
-
* @generated from field: bytes acl_pubkey = 1;
|
|
4074
|
-
*/
|
|
4075
|
-
aclPubkey?: string;
|
|
4076
|
-
|
|
4077
|
-
/**
|
|
4078
|
-
* @generated from field: uint64 roles_mask = 2;
|
|
4079
|
-
*/
|
|
4080
|
-
rolesMask?: string;
|
|
4081
|
-
|
|
4082
|
-
/**
|
|
4083
|
-
* @generated from field: bytes target_pubkey = 3;
|
|
4084
|
-
*/
|
|
4085
|
-
targetPubkey?: string;
|
|
4086
|
-
|
|
4087
|
-
/**
|
|
4088
|
-
* @generated from field: uint64 roles_value = 4;
|
|
4089
|
-
*/
|
|
4090
|
-
rolesValue?: string;
|
|
4091
|
-
};
|
|
4092
|
-
|
|
4093
|
-
/**
|
|
4094
|
-
* Describes the message nord.Receipt.AclUpdated.
|
|
4095
|
-
* Use `create(Receipt_AclUpdatedSchema)` to create a new message.
|
|
4096
|
-
*/
|
|
4097
|
-
export const Receipt_AclUpdatedSchema: GenMessage<Receipt_AclUpdated, {jsonType: Receipt_AclUpdatedJson}> = /*@__PURE__*/
|
|
4098
|
-
messageDesc(file_nord, 12, 27);
|
|
4099
|
-
|
|
4100
|
-
/**
|
|
4101
|
-
* @generated from message nord.Receipt.AtomicSubactionResultKind
|
|
4102
|
-
*/
|
|
4103
|
-
export type Receipt_AtomicSubactionResultKind = Message<"nord.Receipt.AtomicSubactionResultKind"> & {
|
|
4104
|
-
/**
|
|
4105
|
-
* @generated from oneof nord.Receipt.AtomicSubactionResultKind.inner
|
|
4106
|
-
*/
|
|
4107
|
-
inner: {
|
|
4108
|
-
/**
|
|
4109
|
-
* reusing existing messages -> way less code to change in nord, with some
|
|
4110
|
-
* duplication of data unlike input, which is required to be very specific
|
|
4111
|
-
* to be correct, receipts can be same to easy ingested into view and hist
|
|
4112
|
-
*
|
|
4113
|
-
* @generated from field: nord.Receipt.PlaceOrderResult place_order_result = 1;
|
|
4114
|
-
*/
|
|
4115
|
-
value: Receipt_PlaceOrderResult;
|
|
4116
|
-
case: "placeOrderResult";
|
|
4117
|
-
} | {
|
|
4118
|
-
/**
|
|
4119
|
-
* @generated from field: nord.Receipt.CancelOrderResult cancel_order = 2;
|
|
4120
|
-
*/
|
|
4121
|
-
value: Receipt_CancelOrderResult;
|
|
4122
|
-
case: "cancelOrder";
|
|
4123
|
-
} | { case: undefined; value?: undefined };
|
|
4124
|
-
};
|
|
4125
|
-
|
|
4126
|
-
/**
|
|
4127
|
-
* @generated from message nord.Receipt.AtomicSubactionResultKind
|
|
4128
|
-
*/
|
|
4129
|
-
export type Receipt_AtomicSubactionResultKindJson = {
|
|
4130
|
-
/**
|
|
4131
|
-
* reusing existing messages -> way less code to change in nord, with some
|
|
4132
|
-
* duplication of data unlike input, which is required to be very specific
|
|
4133
|
-
* to be correct, receipts can be same to easy ingested into view and hist
|
|
4134
|
-
*
|
|
4135
|
-
* @generated from field: nord.Receipt.PlaceOrderResult place_order_result = 1;
|
|
4136
|
-
*/
|
|
4137
|
-
placeOrderResult?: Receipt_PlaceOrderResultJson;
|
|
4138
|
-
|
|
4139
|
-
/**
|
|
4140
|
-
* @generated from field: nord.Receipt.CancelOrderResult cancel_order = 2;
|
|
4141
|
-
*/
|
|
4142
|
-
cancelOrder?: Receipt_CancelOrderResultJson;
|
|
4143
|
-
};
|
|
4144
|
-
|
|
4145
|
-
/**
|
|
4146
|
-
* Describes the message nord.Receipt.AtomicSubactionResultKind.
|
|
4147
|
-
* Use `create(Receipt_AtomicSubactionResultKindSchema)` to create a new message.
|
|
4148
|
-
*/
|
|
4149
|
-
export const Receipt_AtomicSubactionResultKindSchema: GenMessage<Receipt_AtomicSubactionResultKind, {jsonType: Receipt_AtomicSubactionResultKindJson}> = /*@__PURE__*/
|
|
4150
|
-
messageDesc(file_nord, 12, 28);
|
|
4151
|
-
|
|
4152
|
-
/**
|
|
4153
|
-
* @generated from message nord.Receipt.AtomicResult
|
|
4154
|
-
*/
|
|
4155
|
-
export type Receipt_AtomicResult = Message<"nord.Receipt.AtomicResult"> & {
|
|
4156
|
-
/**
|
|
4157
|
-
* @generated from field: repeated nord.Receipt.AtomicSubactionResultKind results = 1;
|
|
4158
|
-
*/
|
|
4159
|
-
results: Receipt_AtomicSubactionResultKind[];
|
|
4160
|
-
};
|
|
4161
|
-
|
|
4162
|
-
/**
|
|
4163
|
-
* @generated from message nord.Receipt.AtomicResult
|
|
4164
|
-
*/
|
|
4165
|
-
export type Receipt_AtomicResultJson = {
|
|
4166
|
-
/**
|
|
4167
|
-
* @generated from field: repeated nord.Receipt.AtomicSubactionResultKind results = 1;
|
|
4168
|
-
*/
|
|
4169
|
-
results?: Receipt_AtomicSubactionResultKindJson[];
|
|
4170
|
-
};
|
|
4171
|
-
|
|
4172
|
-
/**
|
|
4173
|
-
* Describes the message nord.Receipt.AtomicResult.
|
|
4174
|
-
* Use `create(Receipt_AtomicResultSchema)` to create a new message.
|
|
4175
|
-
*/
|
|
4176
|
-
export const Receipt_AtomicResultSchema: GenMessage<Receipt_AtomicResult, {jsonType: Receipt_AtomicResultJson}> = /*@__PURE__*/
|
|
4177
|
-
messageDesc(file_nord, 12, 29);
|
|
4178
|
-
|
|
4179
|
-
/**
|
|
4180
|
-
* @generated from enum nord.Side
|
|
4181
|
-
*/
|
|
4182
|
-
export enum Side {
|
|
4183
|
-
/**
|
|
4184
|
-
* @generated from enum value: ASK = 0;
|
|
4185
|
-
*/
|
|
4186
|
-
ASK = 0,
|
|
4187
|
-
|
|
4188
|
-
/**
|
|
4189
|
-
* @generated from enum value: BID = 1;
|
|
4190
|
-
*/
|
|
4191
|
-
BID = 1,
|
|
4192
|
-
}
|
|
4193
|
-
|
|
4194
|
-
/**
|
|
4195
|
-
* @generated from enum nord.Side
|
|
4196
|
-
*/
|
|
4197
|
-
export type SideJson = "ASK" | "BID";
|
|
4198
|
-
|
|
4199
|
-
/**
|
|
4200
|
-
* Describes the enum nord.Side.
|
|
4201
|
-
*/
|
|
4202
|
-
export const SideSchema: GenEnum<Side, SideJson> = /*@__PURE__*/
|
|
4203
|
-
enumDesc(file_nord, 0);
|
|
4204
|
-
|
|
4205
|
-
/**
|
|
4206
|
-
* @generated from enum nord.TriggerKind
|
|
4207
|
-
*/
|
|
4208
|
-
export enum TriggerKind {
|
|
4209
|
-
/**
|
|
4210
|
-
* @generated from enum value: STOP_LOSS = 0;
|
|
4211
|
-
*/
|
|
4212
|
-
STOP_LOSS = 0,
|
|
4213
|
-
|
|
4214
|
-
/**
|
|
4215
|
-
* @generated from enum value: TAKE_PROFIT = 1;
|
|
4216
|
-
*/
|
|
4217
|
-
TAKE_PROFIT = 1,
|
|
4218
|
-
}
|
|
4219
|
-
|
|
4220
|
-
/**
|
|
4221
|
-
* @generated from enum nord.TriggerKind
|
|
4222
|
-
*/
|
|
4223
|
-
export type TriggerKindJson = "STOP_LOSS" | "TAKE_PROFIT";
|
|
4224
|
-
|
|
4225
|
-
/**
|
|
4226
|
-
* Describes the enum nord.TriggerKind.
|
|
4227
|
-
*/
|
|
4228
|
-
export const TriggerKindSchema: GenEnum<TriggerKind, TriggerKindJson> = /*@__PURE__*/
|
|
4229
|
-
enumDesc(file_nord, 1);
|
|
4230
|
-
|
|
4231
|
-
/**
|
|
4232
|
-
* @generated from enum nord.FillMode
|
|
4233
|
-
*/
|
|
4234
|
-
export enum FillMode {
|
|
4235
|
-
/**
|
|
4236
|
-
* @generated from enum value: LIMIT = 0;
|
|
4237
|
-
*/
|
|
4238
|
-
LIMIT = 0,
|
|
4239
|
-
|
|
4240
|
-
/**
|
|
4241
|
-
* @generated from enum value: POST_ONLY = 1;
|
|
4242
|
-
*/
|
|
4243
|
-
POST_ONLY = 1,
|
|
4244
|
-
|
|
4245
|
-
/**
|
|
4246
|
-
* @generated from enum value: IMMEDIATE_OR_CANCEL = 2;
|
|
4247
|
-
*/
|
|
4248
|
-
IMMEDIATE_OR_CANCEL = 2,
|
|
4249
|
-
|
|
4250
|
-
/**
|
|
4251
|
-
* @generated from enum value: FILL_OR_KILL = 3;
|
|
4252
|
-
*/
|
|
4253
|
-
FILL_OR_KILL = 3,
|
|
4254
|
-
}
|
|
4255
|
-
|
|
4256
|
-
/**
|
|
4257
|
-
* @generated from enum nord.FillMode
|
|
4258
|
-
*/
|
|
4259
|
-
export type FillModeJson = "LIMIT" | "POST_ONLY" | "IMMEDIATE_OR_CANCEL" | "FILL_OR_KILL";
|
|
4260
|
-
|
|
4261
|
-
/**
|
|
4262
|
-
* Describes the enum nord.FillMode.
|
|
4263
|
-
*/
|
|
4264
|
-
export const FillModeSchema: GenEnum<FillMode, FillModeJson> = /*@__PURE__*/
|
|
4265
|
-
enumDesc(file_nord, 2);
|
|
4266
|
-
|
|
4267
|
-
/**
|
|
4268
|
-
* @generated from enum nord.MarketType
|
|
4269
|
-
*/
|
|
4270
|
-
export enum MarketType {
|
|
4271
|
-
/**
|
|
4272
|
-
* @generated from enum value: SPOT = 0;
|
|
4273
|
-
*/
|
|
4274
|
-
SPOT = 0,
|
|
4275
|
-
|
|
4276
|
-
/**
|
|
4277
|
-
* @generated from enum value: PERPETUALS = 1;
|
|
4278
|
-
*/
|
|
4279
|
-
PERPETUALS = 1,
|
|
4280
|
-
}
|
|
4281
|
-
|
|
4282
|
-
/**
|
|
4283
|
-
* @generated from enum nord.MarketType
|
|
4284
|
-
*/
|
|
4285
|
-
export type MarketTypeJson = "SPOT" | "PERPETUALS";
|
|
4286
|
-
|
|
4287
|
-
/**
|
|
4288
|
-
* Describes the enum nord.MarketType.
|
|
4289
|
-
*/
|
|
4290
|
-
export const MarketTypeSchema: GenEnum<MarketType, MarketTypeJson> = /*@__PURE__*/
|
|
4291
|
-
enumDesc(file_nord, 3);
|
|
4292
|
-
|
|
4293
|
-
/**
|
|
4294
|
-
* Error codes returned by the engine.
|
|
4295
|
-
* Some errors has 5bit prefix about error source and 3 bit suffix specifier.
|
|
4296
|
-
* Error source prefix indicates were too look into to fix error.
|
|
4297
|
-
* For example if order has bad input, it would be order relevant prefix.
|
|
4298
|
-
* But if order cannot apply results to balance, it would be balance relevant
|
|
4299
|
-
* prefix.
|
|
4300
|
-
*
|
|
4301
|
-
* @generated from enum nord.Error
|
|
4302
|
-
*/
|
|
4303
|
-
export enum Error {
|
|
4304
|
-
/**
|
|
4305
|
-
* @generated from enum value: DUPLICATE = 0;
|
|
4306
|
-
*/
|
|
4307
|
-
DUPLICATE = 0,
|
|
4308
|
-
|
|
4309
|
-
/**
|
|
4310
|
-
* @generated from enum value: DECODE_FAILURE = 2;
|
|
4311
|
-
*/
|
|
4312
|
-
DECODE_FAILURE = 2,
|
|
4313
|
-
|
|
4314
|
-
/**
|
|
4315
|
-
* @generated from enum value: INVALID_SIGNATURE = 3;
|
|
4316
|
-
*/
|
|
4317
|
-
INVALID_SIGNATURE = 3,
|
|
4318
|
-
|
|
4319
|
-
/**
|
|
4320
|
-
* @generated from enum value: MARKET_NOT_FOUND = 4;
|
|
4321
|
-
*/
|
|
4322
|
-
MARKET_NOT_FOUND = 4,
|
|
4323
|
-
|
|
4324
|
-
/**
|
|
4325
|
-
* @generated from enum value: TOKEN_NOT_FOUND = 5;
|
|
4326
|
-
*/
|
|
4327
|
-
TOKEN_NOT_FOUND = 5,
|
|
4328
|
-
|
|
4329
|
-
/**
|
|
4330
|
-
* @generated from enum value: USER_NOT_FOUND = 6;
|
|
4331
|
-
*/
|
|
4332
|
-
USER_NOT_FOUND = 6,
|
|
4333
|
-
|
|
4334
|
-
/**
|
|
4335
|
-
* @generated from enum value: SESSION_NOT_FOUND = 7;
|
|
4336
|
-
*/
|
|
4337
|
-
SESSION_NOT_FOUND = 7,
|
|
4338
|
-
|
|
4339
|
-
/**
|
|
4340
|
-
* @generated from enum value: ORDER_NOT_FOUND = 8;
|
|
4341
|
-
*/
|
|
4342
|
-
ORDER_NOT_FOUND = 8,
|
|
4343
|
-
|
|
4344
|
-
/**
|
|
4345
|
-
* @generated from enum value: ORDER_SIZE_ZERO = 9;
|
|
4346
|
-
*/
|
|
4347
|
-
ORDER_SIZE_ZERO = 9,
|
|
4348
|
-
|
|
4349
|
-
/**
|
|
4350
|
-
* 0000_1011
|
|
4351
|
-
*
|
|
4352
|
-
* @generated from enum value: ARITHMETIC = 11;
|
|
4353
|
-
*/
|
|
4354
|
-
ARITHMETIC = 11,
|
|
4355
|
-
|
|
4356
|
-
/**
|
|
4357
|
-
* 0000_1100
|
|
4358
|
-
*
|
|
4359
|
-
* @generated from enum value: ARITHMETIC_OVERFLOW = 12;
|
|
4360
|
-
*/
|
|
4361
|
-
ARITHMETIC_OVERFLOW = 12,
|
|
4362
|
-
|
|
4363
|
-
/**
|
|
4364
|
-
* 0000_1101
|
|
4365
|
-
*
|
|
4366
|
-
* @generated from enum value: ARITHMETIC_UNDERFLOW = 13;
|
|
4367
|
-
*/
|
|
4368
|
-
ARITHMETIC_UNDERFLOW = 13,
|
|
4369
|
-
|
|
4370
|
-
/**
|
|
4371
|
-
* 0000_1110
|
|
4372
|
-
*
|
|
4373
|
-
* @generated from enum value: ARITHMETIC_DIVISION_BY_ZERO = 14;
|
|
4374
|
-
*/
|
|
4375
|
-
ARITHMETIC_DIVISION_BY_ZERO = 14,
|
|
4376
|
-
|
|
4377
|
-
/**
|
|
4378
|
-
* @generated from enum value: KEY_ALREADY_REGISTERED = 15;
|
|
4379
|
-
*/
|
|
4380
|
-
KEY_ALREADY_REGISTERED = 15,
|
|
4381
|
-
|
|
4382
|
-
/**
|
|
4383
|
-
* @generated from enum value: EXPIRY_TIMESTAMP_IN_PAST = 16;
|
|
4384
|
-
*/
|
|
4385
|
-
EXPIRY_TIMESTAMP_IN_PAST = 16,
|
|
4386
|
-
|
|
4387
|
-
/**
|
|
4388
|
-
* @generated from enum value: UPDATE_TIMESTAMP_IN_PAST = 17;
|
|
4389
|
-
*/
|
|
4390
|
-
UPDATE_TIMESTAMP_IN_PAST = 17,
|
|
4391
|
-
|
|
4392
|
-
/**
|
|
4393
|
-
* @generated from enum value: TOO_MANY_OPEN_ORDERS = 18;
|
|
4394
|
-
*/
|
|
4395
|
-
TOO_MANY_OPEN_ORDERS = 18,
|
|
4396
|
-
|
|
4397
|
-
/**
|
|
4398
|
-
* @generated from enum value: WITHDRAW_AMOUNT_TOO_SMALL = 21;
|
|
4399
|
-
*/
|
|
4400
|
-
WITHDRAW_AMOUNT_TOO_SMALL = 21,
|
|
4401
|
-
|
|
4402
|
-
/**
|
|
4403
|
-
* @generated from enum value: INVALID_ORDER_OWNER = 22;
|
|
4404
|
-
*/
|
|
4405
|
-
INVALID_ORDER_OWNER = 22,
|
|
4406
|
-
|
|
4407
|
-
/**
|
|
4408
|
-
* @generated from enum value: DECODE_FAILURE_LENGTH_PREFIX = 33;
|
|
4409
|
-
*/
|
|
4410
|
-
DECODE_FAILURE_LENGTH_PREFIX = 33,
|
|
4411
|
-
|
|
4412
|
-
/**
|
|
4413
|
-
* Raw generated serde error
|
|
4414
|
-
*
|
|
4415
|
-
* @generated from enum value: DECODE_FAILURE_RAW = 34;
|
|
4416
|
-
*/
|
|
4417
|
-
DECODE_FAILURE_RAW = 34,
|
|
4418
|
-
|
|
4419
|
-
/**
|
|
4420
|
-
* Limitation of serde to specify types
|
|
4421
|
-
*
|
|
4422
|
-
* @generated from enum value: DECODE_FAILURE_DOMAIN = 35;
|
|
4423
|
-
*/
|
|
4424
|
-
DECODE_FAILURE_DOMAIN = 35,
|
|
4425
|
-
|
|
4426
|
-
/**
|
|
4427
|
-
* @generated from enum value: UPDATE_PUBLISH_TIME_IN_PAST = 36;
|
|
4428
|
-
*/
|
|
4429
|
-
UPDATE_PUBLISH_TIME_IN_PAST = 36,
|
|
4430
|
-
|
|
4431
|
-
/**
|
|
4432
|
-
* @generated from enum value: PYTH_FEED_NOT_ADDED = 93;
|
|
4433
|
-
*/
|
|
4434
|
-
PYTH_FEED_NOT_ADDED = 93,
|
|
4435
|
-
|
|
4436
|
-
/**
|
|
4437
|
-
* @generated from enum value: PYTH_FEED_MISSING = 94;
|
|
4438
|
-
*/
|
|
4439
|
-
PYTH_FEED_MISSING = 94,
|
|
4440
|
-
|
|
4441
|
-
/**
|
|
4442
|
-
* @generated from enum value: PYTH_FEED_ALREADY_ADDED = 95;
|
|
4443
|
-
*/
|
|
4444
|
-
PYTH_FEED_ALREADY_ADDED = 95,
|
|
4445
|
-
|
|
4446
|
-
/**
|
|
4447
|
-
* @generated from enum value: PYTH_GUARDIAN_SET_UNINITIALIZED = 96;
|
|
4448
|
-
*/
|
|
4449
|
-
PYTH_GUARDIAN_SET_UNINITIALIZED = 96,
|
|
4450
|
-
|
|
4451
|
-
/**
|
|
4452
|
-
* @generated from enum value: PYTH_GUARDIAN_SET_INVALID = 97;
|
|
4453
|
-
*/
|
|
4454
|
-
PYTH_GUARDIAN_SET_INVALID = 97,
|
|
4455
|
-
|
|
4456
|
-
/**
|
|
4457
|
-
* @generated from enum value: PYTH_FEED_DECIMALS_OUT_OF_RANGE = 98;
|
|
4458
|
-
*/
|
|
4459
|
-
PYTH_FEED_DECIMALS_OUT_OF_RANGE = 98,
|
|
4460
|
-
|
|
4461
|
-
/**
|
|
4462
|
-
* @generated from enum value: PYTH_FEED_PRICE_OUT_OF_RANGE = 99;
|
|
4463
|
-
*/
|
|
4464
|
-
PYTH_FEED_PRICE_OUT_OF_RANGE = 99,
|
|
4465
|
-
|
|
4466
|
-
/**
|
|
4467
|
-
* @generated from enum value: PYTH_FEED_VARIANCE_OUT_OF_RANGE = 100;
|
|
4468
|
-
*/
|
|
4469
|
-
PYTH_FEED_VARIANCE_OUT_OF_RANGE = 100,
|
|
4470
|
-
|
|
4471
|
-
/**
|
|
4472
|
-
* @generated from enum value: PYTH_GUARDIAN_SET_AND_PYTH_SIGNATURE_DO_NOT_MATCH = 101;
|
|
4473
|
-
*/
|
|
4474
|
-
PYTH_GUARDIAN_SET_AND_PYTH_SIGNATURE_DO_NOT_MATCH = 101,
|
|
4475
|
-
|
|
4476
|
-
/**
|
|
4477
|
-
* @generated from enum value: INVALID_TOKEN_PARAMETERS = 102;
|
|
4478
|
-
*/
|
|
4479
|
-
INVALID_TOKEN_PARAMETERS = 102,
|
|
4480
|
-
|
|
4481
|
-
/**
|
|
4482
|
-
* @generated from enum value: INDEX_PRICE_OUT_OF_RANGE = 103;
|
|
4483
|
-
*/
|
|
4484
|
-
INDEX_PRICE_OUT_OF_RANGE = 103,
|
|
4485
|
-
|
|
4486
|
-
/**
|
|
4487
|
-
* @generated from enum value: INDEX_DECIMALS_OUT_OF_RANGE = 104;
|
|
4488
|
-
*/
|
|
4489
|
-
INDEX_DECIMALS_OUT_OF_RANGE = 104,
|
|
4490
|
-
|
|
4491
|
-
/**
|
|
4492
|
-
* @generated from enum value: INVALID_STATE_VERSION = 105;
|
|
4493
|
-
*/
|
|
4494
|
-
INVALID_STATE_VERSION = 105,
|
|
4495
|
-
|
|
4496
|
-
/**
|
|
4497
|
-
* @generated from enum value: TIER_FEE_OUT_OF_RANGE = 106;
|
|
4498
|
-
*/
|
|
4499
|
-
TIER_FEE_OUT_OF_RANGE = 106,
|
|
4500
|
-
|
|
4501
|
-
/**
|
|
4502
|
-
* @generated from enum value: TIER_ID_OUT_OF_RANGE = 107;
|
|
4503
|
-
*/
|
|
4504
|
-
TIER_ID_OUT_OF_RANGE = 107,
|
|
4505
|
-
|
|
4506
|
-
/**
|
|
4507
|
-
* @generated from enum value: INVALID_MARGINS = 108;
|
|
4508
|
-
*/
|
|
4509
|
-
INVALID_MARGINS = 108,
|
|
4510
|
-
|
|
4511
|
-
/**
|
|
4512
|
-
* Market's decimal parameters exceed either "quote limit" or "base limit"
|
|
4513
|
-
* Two mentioned limits were deduced empirically and ensure
|
|
4514
|
-
* that certain overflow errors don't happen when value rescaling is performed
|
|
4515
|
-
* during order placement.
|
|
4516
|
-
*
|
|
4517
|
-
* For both perpetuals and spot markets,
|
|
4518
|
-
* `quote_token.decimals - market.size_decimals - market.price_decimals` must
|
|
4519
|
-
* be within range `[-19; 4]` For spot market, `base_token.decimals -
|
|
4520
|
-
* market.size_decimals` must be within range `[-19; 23]`
|
|
4521
|
-
*
|
|
4522
|
-
* @generated from enum value: MARKET_DECIMALS_EXCEED_LIMITS = 109;
|
|
4523
|
-
*/
|
|
4524
|
-
MARKET_DECIMALS_EXCEED_LIMITS = 109,
|
|
4525
|
-
|
|
4526
|
-
/**
|
|
4527
|
-
* @generated from enum value: TOO_MANY_TOKENS = 110;
|
|
4528
|
-
*/
|
|
4529
|
-
TOO_MANY_TOKENS = 110,
|
|
4530
|
-
|
|
4531
|
-
/**
|
|
4532
|
-
* @generated from enum value: FUNDING_OVERFLOW = 123;
|
|
4533
|
-
*/
|
|
4534
|
-
FUNDING_OVERFLOW = 123,
|
|
4535
|
-
|
|
4536
|
-
/**
|
|
4537
|
-
* If there is order to cancel for position, it should be canceled first
|
|
4538
|
-
* before reducing position
|
|
4539
|
-
*
|
|
4540
|
-
* @generated from enum value: CAN_REDUCE_POSITION_ONLY_IF_ALL_ORDERS_ARE_CANCELED = 124;
|
|
4541
|
-
*/
|
|
4542
|
-
CAN_REDUCE_POSITION_ONLY_IF_ALL_ORDERS_ARE_CANCELED = 124,
|
|
4543
|
-
|
|
4544
|
-
/**
|
|
4545
|
-
* Token was found, but not expected to be used in action context
|
|
4546
|
-
*
|
|
4547
|
-
* @generated from enum value: UNEXPECTED_TOKEN_ID = 127;
|
|
4548
|
-
*/
|
|
4549
|
-
UNEXPECTED_TOKEN_ID = 127,
|
|
4550
|
-
|
|
4551
|
-
/**
|
|
4552
|
-
* happens in some situation when token misses some relevant information
|
|
4553
|
-
* needed for operation, for example index price
|
|
4554
|
-
*
|
|
4555
|
-
* @generated from enum value: TOKEN_NOT_READY = 130;
|
|
4556
|
-
*/
|
|
4557
|
-
TOKEN_NOT_READY = 130,
|
|
4558
|
-
|
|
4559
|
-
/**
|
|
4560
|
-
* Token with specified blockchain address already registered
|
|
4561
|
-
*
|
|
4562
|
-
* @generated from enum value: TOKEN_ALREADY_REGISTERED = 112;
|
|
4563
|
-
*/
|
|
4564
|
-
TOKEN_ALREADY_REGISTERED = 112,
|
|
4565
|
-
|
|
4566
|
-
/**
|
|
4567
|
-
* @generated from enum value: IMMEDIATE_ORDER_GOT_NO_FILLS = 133;
|
|
4568
|
-
*/
|
|
4569
|
-
IMMEDIATE_ORDER_GOT_NO_FILLS = 133,
|
|
4570
|
-
|
|
4571
|
-
/**
|
|
4572
|
-
* In case there's no price, error if failed to fill at least one of limits
|
|
4573
|
-
*
|
|
4574
|
-
* @generated from enum value: FAILED_TO_FILL_LIMIT = 134;
|
|
4575
|
-
*/
|
|
4576
|
-
FAILED_TO_FILL_LIMIT = 134,
|
|
4577
|
-
|
|
4578
|
-
/**
|
|
4579
|
-
* @generated from enum value: POST_ONLY_MUST_NOT_FILL_ANY_OPPOSITE_ORDERS = 135;
|
|
4580
|
-
*/
|
|
4581
|
-
POST_ONLY_MUST_NOT_FILL_ANY_OPPOSITE_ORDERS = 135,
|
|
4582
|
-
|
|
4583
|
-
/**
|
|
4584
|
-
* @generated from enum value: INVALID = 136;
|
|
4585
|
-
*/
|
|
4586
|
-
INVALID = 136,
|
|
4587
|
-
|
|
4588
|
-
/**
|
|
4589
|
-
* Any action stopped by admin for maintenance or other reason.
|
|
4590
|
-
*
|
|
4591
|
-
* @generated from enum value: MAINTENANCE = 137;
|
|
4592
|
-
*/
|
|
4593
|
-
MAINTENANCE = 137,
|
|
4594
|
-
|
|
4595
|
-
/**
|
|
4596
|
-
* @generated from enum value: MINIMUM_SIZE_DECIMALS = 138;
|
|
4597
|
-
*/
|
|
4598
|
-
MINIMUM_SIZE_DECIMALS = 138,
|
|
4599
|
-
|
|
4600
|
-
/**
|
|
4601
|
-
* @generated from enum value: PARAMETERS_WILL_CREATE_NON_OPERATIONAL_MARKET = 139;
|
|
4602
|
-
*/
|
|
4603
|
-
PARAMETERS_WILL_CREATE_NON_OPERATIONAL_MARKET = 139,
|
|
4604
|
-
|
|
4605
|
-
/**
|
|
4606
|
-
* @generated from enum value: ONLY_IMMEDIATE_ORDERS_ALLOWED = 140;
|
|
4607
|
-
*/
|
|
4608
|
-
ONLY_IMMEDIATE_ORDERS_ALLOWED = 140,
|
|
4609
|
-
|
|
4610
|
-
/**
|
|
4611
|
-
* @generated from enum value: TOO_MANY_USER_ACCOUNTS = 141;
|
|
4612
|
-
*/
|
|
4613
|
-
TOO_MANY_USER_ACCOUNTS = 141,
|
|
4614
|
-
|
|
4615
|
-
/**
|
|
4616
|
-
* There's no such account with specified id,
|
|
4617
|
-
*
|
|
4618
|
-
* @generated from enum value: ACCOUNT_NOT_FOUND = 142;
|
|
4619
|
-
*/
|
|
4620
|
-
ACCOUNT_NOT_FOUND = 142,
|
|
4621
|
-
|
|
4622
|
-
/**
|
|
4623
|
-
* Account doesn't belong to user designated by public key or session id
|
|
4624
|
-
*
|
|
4625
|
-
* @generated from enum value: ACCOUNT_INVALID_OWNER = 143;
|
|
4626
|
-
*/
|
|
4627
|
-
ACCOUNT_INVALID_OWNER = 143,
|
|
4628
|
-
|
|
4629
|
-
/**
|
|
4630
|
-
* Operation cannot be made on account because to small amount will be
|
|
4631
|
-
* retained on account
|
|
4632
|
-
*
|
|
4633
|
-
* @generated from enum value: DUST_ACCOUNT = 145;
|
|
4634
|
-
*/
|
|
4635
|
-
DUST_ACCOUNT = 145,
|
|
4636
|
-
|
|
4637
|
-
/**
|
|
4638
|
-
* 10100_000
|
|
4639
|
-
*
|
|
4640
|
-
* @generated from enum value: BALANCE = 160;
|
|
4641
|
-
*/
|
|
4642
|
-
BALANCE = 160,
|
|
4643
|
-
|
|
4644
|
-
/**
|
|
4645
|
-
* 10100_001
|
|
4646
|
-
*
|
|
4647
|
-
* @generated from enum value: BALANCE_DEPOSIT_OVERFLOW = 161;
|
|
4648
|
-
*/
|
|
4649
|
-
BALANCE_DEPOSIT_OVERFLOW = 161,
|
|
4650
|
-
|
|
4651
|
-
/**
|
|
4652
|
-
* 10100_010
|
|
4653
|
-
*
|
|
4654
|
-
* @generated from enum value: BALANCE_CHANGE_OVERFLOW = 162;
|
|
4655
|
-
*/
|
|
4656
|
-
BALANCE_CHANGE_OVERFLOW = 162,
|
|
4657
|
-
|
|
4658
|
-
/**
|
|
4659
|
-
* 10100_011
|
|
4660
|
-
*
|
|
4661
|
-
* @generated from enum value: BALANCE_CHANGE_LIMIT_EXCEEDED = 163;
|
|
4662
|
-
*/
|
|
4663
|
-
BALANCE_CHANGE_LIMIT_EXCEEDED = 163,
|
|
4664
|
-
|
|
4665
|
-
/**
|
|
4666
|
-
* Happens when account balances has no sufficient token amount to perform
|
|
4667
|
-
* action.
|
|
4668
|
-
* 10100_100
|
|
4669
|
-
*
|
|
4670
|
-
* @generated from enum value: BALANCE_INSUFFICIENT = 164;
|
|
4671
|
-
*/
|
|
4672
|
-
BALANCE_INSUFFICIENT = 164,
|
|
4673
|
-
|
|
4674
|
-
/**
|
|
4675
|
-
* Happens when an action is meant to come from the settlement contract,
|
|
4676
|
-
* but is not authenticated, instead coming from the user channels.
|
|
4677
|
-
*
|
|
4678
|
-
* @generated from enum value: UNAUTHENTICATED_L1_ACTION = 165;
|
|
4679
|
-
*/
|
|
4680
|
-
UNAUTHENTICATED_L1_ACTION = 165,
|
|
4681
|
-
|
|
4682
|
-
/**
|
|
4683
|
-
* Happens when an encoded action is too large. This is to mitigate dos
|
|
4684
|
-
* attacks due to excessive padding.
|
|
4685
|
-
*
|
|
4686
|
-
* @generated from enum value: ENCODED_ACTION_TOO_LARGE = 166;
|
|
4687
|
-
*/
|
|
4688
|
-
ENCODED_ACTION_TOO_LARGE = 166,
|
|
4689
|
-
|
|
4690
|
-
/**
|
|
4691
|
-
* 10101_000
|
|
4692
|
-
*
|
|
4693
|
-
* @generated from enum value: TRIGGER = 168;
|
|
4694
|
-
*/
|
|
4695
|
-
TRIGGER = 168,
|
|
4696
|
-
|
|
4697
|
-
/**
|
|
4698
|
-
* Happens when:
|
|
4699
|
-
* * Trigger price is "less or equal" to its corresponding pair trigger price
|
|
4700
|
-
* * Trigger rice is "less" than market's current index price
|
|
4701
|
-
*
|
|
4702
|
-
* Binary pattern: 10101_001
|
|
4703
|
-
*
|
|
4704
|
-
* @generated from enum value: TRIGGER_INVALID_PRICE = 169;
|
|
4705
|
-
*/
|
|
4706
|
-
TRIGGER_INVALID_PRICE = 169,
|
|
4707
|
-
|
|
4708
|
-
/**
|
|
4709
|
-
* @generated from enum value: TRIGGER_NOT_FOUND = 170;
|
|
4710
|
-
*/
|
|
4711
|
-
TRIGGER_NOT_FOUND = 170,
|
|
4712
|
-
|
|
4713
|
-
/**
|
|
4714
|
-
* 10110_000
|
|
4715
|
-
*
|
|
4716
|
-
* @generated from enum value: TIMESTAMP = 176;
|
|
4717
|
-
*/
|
|
4718
|
-
TIMESTAMP = 176,
|
|
4719
|
-
|
|
4720
|
-
/**
|
|
4721
|
-
* 10110_001
|
|
4722
|
-
*
|
|
4723
|
-
* @generated from enum value: TIMESTAMP_OUT_OF_THRESHOLD = 177;
|
|
4724
|
-
*/
|
|
4725
|
-
TIMESTAMP_OUT_OF_THRESHOLD = 177,
|
|
4726
|
-
|
|
4727
|
-
/**
|
|
4728
|
-
* @generated from enum value: TIMESTAMP_STALE = 178;
|
|
4729
|
-
*/
|
|
4730
|
-
TIMESTAMP_STALE = 178,
|
|
4731
|
-
|
|
4732
|
-
/**
|
|
4733
|
-
* 10111_000
|
|
4734
|
-
* BANKRUPTCY = 184;
|
|
4735
|
-
* 10111_001
|
|
4736
|
-
*
|
|
4737
|
-
* @generated from enum value: BANKRUPTCY_INSUFFICIENT_COVERAGE = 185;
|
|
4738
|
-
*/
|
|
4739
|
-
BANKRUPTCY_INSUFFICIENT_COVERAGE = 185,
|
|
4740
|
-
|
|
4741
|
-
/**
|
|
4742
|
-
* 10111_010
|
|
4743
|
-
* Account is not in bankruptcy state.
|
|
4744
|
-
*
|
|
4745
|
-
* @generated from enum value: BANKRUPTCY_NOT_FOUND = 186;
|
|
4746
|
-
*/
|
|
4747
|
-
BANKRUPTCY_NOT_FOUND = 186,
|
|
4748
|
-
|
|
4749
|
-
/**
|
|
4750
|
-
* Cannot executed this action in case of bankruptcy.
|
|
4751
|
-
* Source of error is BANKRUPTCY, which leads to NOT_ALLOWED.
|
|
4752
|
-
* Not ideal to read by human, but follows the pattern.
|
|
4753
|
-
* Seek for methods which need BANKRUPTCY and give BANKRUPTCY_NOT_FOUND if not
|
|
4754
|
-
* a case.
|
|
4755
|
-
*
|
|
4756
|
-
* @generated from enum value: BANKRUPTCY_NOT_ALLOWED = 187;
|
|
4757
|
-
*/
|
|
4758
|
-
BANKRUPTCY_NOT_ALLOWED = 187,
|
|
4759
|
-
|
|
4760
|
-
/**
|
|
4761
|
-
* 11000_000
|
|
4762
|
-
* Happens when market is not read to handle orders
|
|
4763
|
-
*
|
|
4764
|
-
* @generated from enum value: MARKET_NOT_READY = 192;
|
|
4765
|
-
*/
|
|
4766
|
-
MARKET_NOT_READY = 192,
|
|
4767
|
-
|
|
4768
|
-
/**
|
|
4769
|
-
* @generated from enum value: MARKET_FROZEN = 193;
|
|
4770
|
-
*/
|
|
4771
|
-
MARKET_FROZEN = 193,
|
|
4772
|
-
|
|
4773
|
-
/**
|
|
4774
|
-
* Happens when there is no liquidity on the market at the moment of trigger
|
|
4775
|
-
* execution
|
|
4776
|
-
*
|
|
4777
|
-
* @generated from enum value: MARKET_EMPTY = 194;
|
|
4778
|
-
*/
|
|
4779
|
-
MARKET_EMPTY = 194,
|
|
4780
|
-
|
|
4781
|
-
/**
|
|
4782
|
-
* 11001_000
|
|
4783
|
-
*
|
|
4784
|
-
* @generated from enum value: POSITION = 200;
|
|
4785
|
-
*/
|
|
4786
|
-
POSITION = 200,
|
|
4787
|
-
|
|
4788
|
-
/**
|
|
4789
|
-
* Position not found for specific entity in specific market
|
|
4790
|
-
*
|
|
4791
|
-
* @generated from enum value: POSITION_NOT_FOUND = 201;
|
|
4792
|
-
*/
|
|
4793
|
-
POSITION_NOT_FOUND = 201,
|
|
4794
|
-
|
|
4795
|
-
/**
|
|
4796
|
-
* @generated from enum value: POSITION_STATE_ORDER = 202;
|
|
4797
|
-
*/
|
|
4798
|
-
POSITION_STATE_ORDER = 202,
|
|
4799
|
-
|
|
4800
|
-
/**
|
|
4801
|
-
* @generated from enum value: POSITION_STATE_ORDER_PRICE = 203;
|
|
4802
|
-
*/
|
|
4803
|
-
POSITION_STATE_ORDER_PRICE = 203,
|
|
4804
|
-
|
|
4805
|
-
/**
|
|
4806
|
-
* position size size is smaller of counter orders (reduce counter orders
|
|
4807
|
-
* cannot be bigger of position). or order is small, but its price is bad of
|
|
4808
|
-
* all other reduce orders and it cannot be added
|
|
4809
|
-
*
|
|
4810
|
-
* @generated from enum value: POSITION_STATE_ORDER_SIZE = 204;
|
|
4811
|
-
*/
|
|
4812
|
-
POSITION_STATE_ORDER_SIZE = 204,
|
|
4813
|
-
|
|
4814
|
-
/**
|
|
4815
|
-
* @generated from enum value: POSITION_STATE_ORDER_SIDE = 205;
|
|
4816
|
-
*/
|
|
4817
|
-
POSITION_STATE_ORDER_SIDE = 205,
|
|
4818
|
-
|
|
4819
|
-
/**
|
|
4820
|
-
* 1100_1110
|
|
4821
|
-
*
|
|
4822
|
-
* @generated from enum value: POSITION_SIZE_LIMIT = 206;
|
|
4823
|
-
*/
|
|
4824
|
-
POSITION_SIZE_LIMIT = 206,
|
|
4825
|
-
|
|
4826
|
-
/**
|
|
4827
|
-
* 1100_1111
|
|
4828
|
-
*
|
|
4829
|
-
* @generated from enum value: POSITION_STATE_PERP = 207;
|
|
4830
|
-
*/
|
|
4831
|
-
POSITION_STATE_PERP = 207,
|
|
4832
|
-
|
|
4833
|
-
/**
|
|
4834
|
-
* @generated from enum value: POSITION_STATE_ORDER_DELEGATION = 208;
|
|
4835
|
-
*/
|
|
4836
|
-
POSITION_STATE_ORDER_DELEGATION = 208,
|
|
4837
|
-
|
|
4838
|
-
/**
|
|
4839
|
-
* @generated from enum value: PRICE = 209;
|
|
4840
|
-
*/
|
|
4841
|
-
PRICE = 209,
|
|
4842
|
-
|
|
4843
|
-
/**
|
|
4844
|
-
* @generated from enum value: SIGNATURE_VERIFICATION = 217;
|
|
4845
|
-
*/
|
|
4846
|
-
SIGNATURE_VERIFICATION = 217,
|
|
4847
|
-
|
|
4848
|
-
/**
|
|
4849
|
-
* @generated from enum value: SIGNATURE_VERIFICATION_MALFORMED_PUBLIC_KEY = 218;
|
|
4850
|
-
*/
|
|
4851
|
-
SIGNATURE_VERIFICATION_MALFORMED_PUBLIC_KEY = 218,
|
|
4852
|
-
|
|
4853
|
-
/**
|
|
4854
|
-
* @generated from enum value: SIGNATURE_VERIFICATION_INVALID_LENGTH = 219;
|
|
4855
|
-
*/
|
|
4856
|
-
SIGNATURE_VERIFICATION_INVALID_LENGTH = 219,
|
|
4857
|
-
|
|
4858
|
-
/**
|
|
4859
|
-
* 11011_000
|
|
4860
|
-
*
|
|
4861
|
-
* @generated from enum value: RISK = 224;
|
|
4862
|
-
*/
|
|
4863
|
-
RISK = 224,
|
|
4864
|
-
|
|
4865
|
-
/**
|
|
4866
|
-
* @generated from enum value: RISK_DELEGATION_MF_TO_BE_LESS_THAN_OR_EQUAL_MMF = 225;
|
|
4867
|
-
*/
|
|
4868
|
-
RISK_DELEGATION_MF_TO_BE_LESS_THAN_OR_EQUAL_MMF = 225,
|
|
4869
|
-
|
|
4870
|
-
/**
|
|
4871
|
-
* @generated from enum value: RISK_OMF_LESS_THAN_OR_EQUAL_IMF = 226;
|
|
4872
|
-
*/
|
|
4873
|
-
RISK_OMF_LESS_THAN_OR_EQUAL_IMF = 226,
|
|
4874
|
-
|
|
4875
|
-
/**
|
|
4876
|
-
* @generated from enum value: RISK_OMF_LESS_THAN_OR_EQUAL_CMF = 227;
|
|
4877
|
-
*/
|
|
4878
|
-
RISK_OMF_LESS_THAN_OR_EQUAL_CMF = 227,
|
|
4879
|
-
|
|
4880
|
-
/**
|
|
4881
|
-
* @generated from enum value: RISK_TRADE_OMF_LESS_THAN_OR_EQUAL_CMF = 229;
|
|
4882
|
-
*/
|
|
4883
|
-
RISK_TRADE_OMF_LESS_THAN_OR_EQUAL_CMF = 229,
|
|
4884
|
-
|
|
4885
|
-
/**
|
|
4886
|
-
* @generated from enum value: RISK_UNHEALTHY_MF_AND_PON_AFTER_BETTER_OF_BEFORE = 228;
|
|
4887
|
-
*/
|
|
4888
|
-
RISK_UNHEALTHY_MF_AND_PON_AFTER_BETTER_OF_BEFORE = 228,
|
|
4889
|
-
|
|
4890
|
-
/**
|
|
4891
|
-
* 1111_0000 = 240 -- 4 bit suffix
|
|
4892
|
-
*
|
|
4893
|
-
* @generated from enum value: ORDER_EXECUTION = 240;
|
|
4894
|
-
*/
|
|
4895
|
-
ORDER_EXECUTION = 240,
|
|
4896
|
-
|
|
4897
|
-
/**
|
|
4898
|
-
* @generated from enum value: ORDER_EXECUTION_EMPTY = 241;
|
|
4899
|
-
*/
|
|
4900
|
-
ORDER_EXECUTION_EMPTY = 241,
|
|
4901
|
-
|
|
4902
|
-
/**
|
|
4903
|
-
* @generated from enum value: ORDER_EXECUTION_FILL_OR_KILL = 242;
|
|
4904
|
-
*/
|
|
4905
|
-
ORDER_EXECUTION_FILL_OR_KILL = 242,
|
|
4906
|
-
|
|
4907
|
-
/**
|
|
4908
|
-
* Order requires some of its limits specified according to fill mode
|
|
4909
|
-
*
|
|
4910
|
-
* @generated from enum value: ORDER_EXECUTION_MISSING_LIMITS = 243;
|
|
4911
|
-
*/
|
|
4912
|
-
ORDER_EXECUTION_MISSING_LIMITS = 243,
|
|
4913
|
-
|
|
4914
|
-
/**
|
|
4915
|
-
* @generated from enum value: ORDER_EXECUTION_MISSING_PRICE = 244;
|
|
4916
|
-
*/
|
|
4917
|
-
ORDER_EXECUTION_MISSING_PRICE = 244,
|
|
4918
|
-
|
|
4919
|
-
/**
|
|
4920
|
-
* @generated from enum value: ORDER_EXECUTION_SIZE_LIMIT = 245;
|
|
4921
|
-
*/
|
|
4922
|
-
ORDER_EXECUTION_SIZE_LIMIT = 245,
|
|
4923
|
-
|
|
4924
|
-
/**
|
|
4925
|
-
* 111_0110
|
|
4926
|
-
* Price in order limit should be within acceptable range
|
|
4927
|
-
*
|
|
4928
|
-
* @generated from enum value: ORDER_EXECUTION_LIMIT_PRICE = 246;
|
|
4929
|
-
*/
|
|
4930
|
-
ORDER_EXECUTION_LIMIT_PRICE = 246,
|
|
4931
|
-
|
|
4932
|
-
/**
|
|
4933
|
-
* Reduce orders can only be post only.
|
|
4934
|
-
* 01111_0111 = 247
|
|
4935
|
-
*
|
|
4936
|
-
* @generated from enum value: ORDER_REDUCE_IS_POST_ONLY = 247;
|
|
4937
|
-
*/
|
|
4938
|
-
ORDER_REDUCE_IS_POST_ONLY = 247,
|
|
4939
|
-
|
|
4940
|
-
/**
|
|
4941
|
-
* Order was rejected, because it planned under proposed price
|
|
4942
|
-
* 01111_1000 = 248
|
|
4943
|
-
*
|
|
4944
|
-
* @generated from enum value: ORDER_EXECUTION_SELL_PRICE = 248;
|
|
4945
|
-
*/
|
|
4946
|
-
ORDER_EXECUTION_SELL_PRICE = 248,
|
|
4947
|
-
|
|
4948
|
-
/**
|
|
4949
|
-
* @generated from enum value: ORDER_SIZE_EXCEEDS_POSITION_SIZE = 249;
|
|
4950
|
-
*/
|
|
4951
|
-
ORDER_SIZE_EXCEEDS_POSITION_SIZE = 249,
|
|
4952
|
-
|
|
4953
|
-
/**
|
|
4954
|
-
* 10000_0000
|
|
4955
|
-
*
|
|
4956
|
-
* @generated from enum value: ATOMICS_TRADES_CANNOT_FOLLOW_PLACES = 256;
|
|
4957
|
-
*/
|
|
4958
|
-
ATOMICS_TRADES_CANNOT_FOLLOW_PLACES = 256,
|
|
4959
|
-
|
|
4960
|
-
/**
|
|
4961
|
-
* 10000_0001
|
|
4962
|
-
*
|
|
4963
|
-
* @generated from enum value: ATOMICS_CANCELS_CANNOT_FOLLOW_TRADES_PLACES = 257;
|
|
4964
|
-
*/
|
|
4965
|
-
ATOMICS_CANCELS_CANNOT_FOLLOW_TRADES_PLACES = 257,
|
|
4966
|
-
|
|
4967
|
-
/**
|
|
4968
|
-
* 10001_0001
|
|
4969
|
-
*
|
|
4970
|
-
* @generated from enum value: ACTION_POSITION_SHOULD_BE_COVERED = 273;
|
|
4971
|
-
*/
|
|
4972
|
-
ACTION_POSITION_SHOULD_BE_COVERED = 273,
|
|
4973
|
-
|
|
4974
|
-
/**
|
|
4975
|
-
* @generated from enum value: ACTION_INVALID_NONCE = 274;
|
|
4976
|
-
*/
|
|
4977
|
-
ACTION_INVALID_NONCE = 274,
|
|
4978
|
-
|
|
4979
|
-
/**
|
|
4980
|
-
* @generated from enum value: ACTION_PROPOSED_PRICE_MUST_BE_HIGHER = 275;
|
|
4981
|
-
*/
|
|
4982
|
-
ACTION_PROPOSED_PRICE_MUST_BE_HIGHER = 275,
|
|
4983
|
-
|
|
4984
|
-
/**
|
|
4985
|
-
* @generated from enum value: ADMIN_ROLE_INSUFFICIENT = 276;
|
|
4986
|
-
*/
|
|
4987
|
-
ADMIN_ROLE_INSUFFICIENT = 276,
|
|
4988
|
-
|
|
4989
|
-
/**
|
|
4990
|
-
* @generated from enum value: ADMIN_NOT_FOUND = 277;
|
|
4991
|
-
*/
|
|
4992
|
-
ADMIN_NOT_FOUND = 277,
|
|
4993
|
-
|
|
4994
|
-
/**
|
|
4995
|
-
* @generated from enum value: UNIQUE_SUPER_ADMIN_CANNOT_BE_REMOVED = 278;
|
|
4996
|
-
*/
|
|
4997
|
-
UNIQUE_SUPER_ADMIN_CANNOT_BE_REMOVED = 278,
|
|
4998
|
-
|
|
4999
|
-
/**
|
|
5000
|
-
* @generated from enum value: SUPER_ADMIN_ALREADY_EXISTS = 279;
|
|
5001
|
-
*/
|
|
5002
|
-
SUPER_ADMIN_ALREADY_EXISTS = 279,
|
|
5003
|
-
|
|
5004
|
-
/**
|
|
5005
|
-
* @generated from enum value: NOT_IMPLEMENTED = 500;
|
|
5006
|
-
*/
|
|
5007
|
-
NOT_IMPLEMENTED = 500,
|
|
5008
|
-
|
|
5009
|
-
/**
|
|
5010
|
-
* @generated from enum value: Dropped = 999;
|
|
5011
|
-
*/
|
|
5012
|
-
Dropped = 999,
|
|
5013
|
-
}
|
|
5014
|
-
|
|
5015
|
-
/**
|
|
5016
|
-
* Error codes returned by the engine.
|
|
5017
|
-
* Some errors has 5bit prefix about error source and 3 bit suffix specifier.
|
|
5018
|
-
* Error source prefix indicates were too look into to fix error.
|
|
5019
|
-
* For example if order has bad input, it would be order relevant prefix.
|
|
5020
|
-
* But if order cannot apply results to balance, it would be balance relevant
|
|
5021
|
-
* prefix.
|
|
5022
|
-
*
|
|
5023
|
-
* @generated from enum nord.Error
|
|
5024
|
-
*/
|
|
5025
|
-
export type ErrorJson = "DUPLICATE" | "DECODE_FAILURE" | "INVALID_SIGNATURE" | "MARKET_NOT_FOUND" | "TOKEN_NOT_FOUND" | "USER_NOT_FOUND" | "SESSION_NOT_FOUND" | "ORDER_NOT_FOUND" | "ORDER_SIZE_ZERO" | "ARITHMETIC" | "ARITHMETIC_OVERFLOW" | "ARITHMETIC_UNDERFLOW" | "ARITHMETIC_DIVISION_BY_ZERO" | "KEY_ALREADY_REGISTERED" | "EXPIRY_TIMESTAMP_IN_PAST" | "UPDATE_TIMESTAMP_IN_PAST" | "TOO_MANY_OPEN_ORDERS" | "WITHDRAW_AMOUNT_TOO_SMALL" | "INVALID_ORDER_OWNER" | "DECODE_FAILURE_LENGTH_PREFIX" | "DECODE_FAILURE_RAW" | "DECODE_FAILURE_DOMAIN" | "UPDATE_PUBLISH_TIME_IN_PAST" | "PYTH_FEED_NOT_ADDED" | "PYTH_FEED_MISSING" | "PYTH_FEED_ALREADY_ADDED" | "PYTH_GUARDIAN_SET_UNINITIALIZED" | "PYTH_GUARDIAN_SET_INVALID" | "PYTH_FEED_DECIMALS_OUT_OF_RANGE" | "PYTH_FEED_PRICE_OUT_OF_RANGE" | "PYTH_FEED_VARIANCE_OUT_OF_RANGE" | "PYTH_GUARDIAN_SET_AND_PYTH_SIGNATURE_DO_NOT_MATCH" | "INVALID_TOKEN_PARAMETERS" | "INDEX_PRICE_OUT_OF_RANGE" | "INDEX_DECIMALS_OUT_OF_RANGE" | "INVALID_STATE_VERSION" | "TIER_FEE_OUT_OF_RANGE" | "TIER_ID_OUT_OF_RANGE" | "INVALID_MARGINS" | "MARKET_DECIMALS_EXCEED_LIMITS" | "TOO_MANY_TOKENS" | "FUNDING_OVERFLOW" | "CAN_REDUCE_POSITION_ONLY_IF_ALL_ORDERS_ARE_CANCELED" | "UNEXPECTED_TOKEN_ID" | "TOKEN_NOT_READY" | "TOKEN_ALREADY_REGISTERED" | "IMMEDIATE_ORDER_GOT_NO_FILLS" | "FAILED_TO_FILL_LIMIT" | "POST_ONLY_MUST_NOT_FILL_ANY_OPPOSITE_ORDERS" | "INVALID" | "MAINTENANCE" | "MINIMUM_SIZE_DECIMALS" | "PARAMETERS_WILL_CREATE_NON_OPERATIONAL_MARKET" | "ONLY_IMMEDIATE_ORDERS_ALLOWED" | "TOO_MANY_USER_ACCOUNTS" | "ACCOUNT_NOT_FOUND" | "ACCOUNT_INVALID_OWNER" | "DUST_ACCOUNT" | "BALANCE" | "BALANCE_DEPOSIT_OVERFLOW" | "BALANCE_CHANGE_OVERFLOW" | "BALANCE_CHANGE_LIMIT_EXCEEDED" | "BALANCE_INSUFFICIENT" | "UNAUTHENTICATED_L1_ACTION" | "ENCODED_ACTION_TOO_LARGE" | "TRIGGER" | "TRIGGER_INVALID_PRICE" | "TRIGGER_NOT_FOUND" | "TIMESTAMP" | "TIMESTAMP_OUT_OF_THRESHOLD" | "TIMESTAMP_STALE" | "BANKRUPTCY_INSUFFICIENT_COVERAGE" | "BANKRUPTCY_NOT_FOUND" | "BANKRUPTCY_NOT_ALLOWED" | "MARKET_NOT_READY" | "MARKET_FROZEN" | "MARKET_EMPTY" | "POSITION" | "POSITION_NOT_FOUND" | "POSITION_STATE_ORDER" | "POSITION_STATE_ORDER_PRICE" | "POSITION_STATE_ORDER_SIZE" | "POSITION_STATE_ORDER_SIDE" | "POSITION_SIZE_LIMIT" | "POSITION_STATE_PERP" | "POSITION_STATE_ORDER_DELEGATION" | "PRICE" | "SIGNATURE_VERIFICATION" | "SIGNATURE_VERIFICATION_MALFORMED_PUBLIC_KEY" | "SIGNATURE_VERIFICATION_INVALID_LENGTH" | "RISK" | "RISK_DELEGATION_MF_TO_BE_LESS_THAN_OR_EQUAL_MMF" | "RISK_OMF_LESS_THAN_OR_EQUAL_IMF" | "RISK_OMF_LESS_THAN_OR_EQUAL_CMF" | "RISK_TRADE_OMF_LESS_THAN_OR_EQUAL_CMF" | "RISK_UNHEALTHY_MF_AND_PON_AFTER_BETTER_OF_BEFORE" | "ORDER_EXECUTION" | "ORDER_EXECUTION_EMPTY" | "ORDER_EXECUTION_FILL_OR_KILL" | "ORDER_EXECUTION_MISSING_LIMITS" | "ORDER_EXECUTION_MISSING_PRICE" | "ORDER_EXECUTION_SIZE_LIMIT" | "ORDER_EXECUTION_LIMIT_PRICE" | "ORDER_REDUCE_IS_POST_ONLY" | "ORDER_EXECUTION_SELL_PRICE" | "ORDER_SIZE_EXCEEDS_POSITION_SIZE" | "ATOMICS_TRADES_CANNOT_FOLLOW_PLACES" | "ATOMICS_CANCELS_CANNOT_FOLLOW_TRADES_PLACES" | "ACTION_POSITION_SHOULD_BE_COVERED" | "ACTION_INVALID_NONCE" | "ACTION_PROPOSED_PRICE_MUST_BE_HIGHER" | "ADMIN_ROLE_INSUFFICIENT" | "ADMIN_NOT_FOUND" | "UNIQUE_SUPER_ADMIN_CANNOT_BE_REMOVED" | "SUPER_ADMIN_ALREADY_EXISTS" | "NOT_IMPLEMENTED" | "Dropped";
|
|
5026
|
-
|
|
5027
|
-
/**
|
|
5028
|
-
* Describes the enum nord.Error.
|
|
5029
|
-
*/
|
|
5030
|
-
export const ErrorSchema: GenEnum<Error, ErrorJson> = /*@__PURE__*/
|
|
5031
|
-
enumDesc(file_nord, 4);
|
|
5032
|
-
|
|
5033
|
-
/**
|
|
5034
|
-
* @generated from enum nord.SpecialAccount
|
|
5035
|
-
*/
|
|
5036
|
-
export enum SpecialAccount {
|
|
5037
|
-
/**
|
|
5038
|
-
* @generated from enum value: FeeVault = 0;
|
|
5039
|
-
*/
|
|
5040
|
-
FeeVault = 0,
|
|
5041
|
-
}
|
|
5042
|
-
|
|
5043
|
-
/**
|
|
5044
|
-
* @generated from enum nord.SpecialAccount
|
|
5045
|
-
*/
|
|
5046
|
-
export type SpecialAccountJson = "FeeVault";
|
|
5047
|
-
|
|
5048
|
-
/**
|
|
5049
|
-
* Describes the enum nord.SpecialAccount.
|
|
5050
|
-
*/
|
|
5051
|
-
export const SpecialAccountSchema: GenEnum<SpecialAccount, SpecialAccountJson> = /*@__PURE__*/
|
|
5052
|
-
enumDesc(file_nord, 5);
|
|
5053
|
-
|