@n1xyz/nord-ts 0.0.15 → 0.0.16-29f6652

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.
Files changed (155) hide show
  1. package/dist/bridge/client.js +2 -1
  2. package/dist/bridge/types.d.ts +2 -0
  3. package/dist/gen/common.js +1 -1
  4. package/dist/gen/nord.d.ts +13 -25
  5. package/dist/gen/nord.js +59 -66
  6. package/dist/nord/client/NordUser.d.ts +1 -1
  7. package/dist/nord/client/NordUser.js +15 -9
  8. package/dist/websocket/NordWebSocketClient.js +0 -2
  9. package/docs/assets/hierarchy.js +1 -1
  10. package/docs/assets/search.js +1 -1
  11. package/docs/classes/Nord.html +35 -35
  12. package/docs/classes/NordError.html +6 -6
  13. package/docs/classes/NordUser.html +37 -37
  14. package/docs/classes/NordWebSocketClient.html +6 -6
  15. package/docs/classes/SolanaBridgeClient.html +31 -26
  16. package/docs/classes/Subscriber.html +3 -3
  17. package/docs/enums/FillMode.html +2 -2
  18. package/docs/enums/KeyType.html +2 -2
  19. package/docs/enums/MetricPeriod.html +2 -2
  20. package/docs/enums/PdaSeedType.html +5 -3
  21. package/docs/enums/PeakTpsPeriodUnit.html +2 -2
  22. package/docs/enums/Side.html +2 -2
  23. package/docs/enums/WebSocketMessageType.html +2 -2
  24. package/docs/functions/actionQueryRollman.html +1 -1
  25. package/docs/functions/actionsQueryRollman.html +1 -1
  26. package/docs/functions/aggregateMetrics-1.html +1 -1
  27. package/docs/functions/assert.html +1 -1
  28. package/docs/functions/bigIntToProtoU128.html +1 -1
  29. package/docs/functions/bridgeToBN.html +1 -1
  30. package/docs/functions/bufferToHex.html +1 -1
  31. package/docs/functions/cancelOrder.html +1 -1
  32. package/docs/functions/checkPubKeyLength.html +1 -1
  33. package/docs/functions/checkedFetch.html +1 -1
  34. package/docs/functions/createSession.html +1 -1
  35. package/docs/functions/decodeLengthDelimited.html +1 -1
  36. package/docs/functions/encodeLengthDelimited.html +1 -1
  37. package/docs/functions/fillModeToProtoFillMode.html +1 -1
  38. package/docs/functions/findMarket.html +1 -1
  39. package/docs/functions/findPda.html +1 -1
  40. package/docs/functions/findToken.html +1 -1
  41. package/docs/functions/fromBN.html +1 -1
  42. package/docs/functions/getAccount.html +1 -1
  43. package/docs/functions/getActionNonce.html +1 -1
  44. package/docs/functions/getCurrentTps.html +1 -1
  45. package/docs/functions/getInfo.html +1 -1
  46. package/docs/functions/getLastActionId.html +1 -1
  47. package/docs/functions/getMedianLatency.html +1 -1
  48. package/docs/functions/getOrderbook.html +1 -1
  49. package/docs/functions/getPeakTps.html +1 -1
  50. package/docs/functions/getTimestamp.html +1 -1
  51. package/docs/functions/getTotalTransactions.html +1 -1
  52. package/docs/functions/getTrades.html +1 -1
  53. package/docs/functions/getUserAccountIds.html +1 -1
  54. package/docs/functions/hexToBuffer.html +1 -1
  55. package/docs/functions/initWebSocketClient.html +1 -1
  56. package/docs/functions/keypairFromPrivateKey.html +1 -1
  57. package/docs/functions/makeSigningFunction.html +1 -1
  58. package/docs/functions/makeWalletSignFn.html +1 -1
  59. package/docs/functions/marketsStats.html +1 -1
  60. package/docs/functions/optExpect.html +1 -1
  61. package/docs/functions/optMap.html +1 -1
  62. package/docs/functions/optUnwrap.html +1 -1
  63. package/docs/functions/panic.html +1 -1
  64. package/docs/functions/placeOrder.html +1 -1
  65. package/docs/functions/queryAction.html +1 -1
  66. package/docs/functions/queryPrometheus.html +1 -1
  67. package/docs/functions/queryRecentActions.html +1 -1
  68. package/docs/functions/revokeSession.html +1 -1
  69. package/docs/functions/shortenPublicKey.html +1 -1
  70. package/docs/functions/signAction.html +1 -1
  71. package/docs/functions/toBN.html +1 -1
  72. package/docs/functions/toScaledU128.html +1 -1
  73. package/docs/functions/toScaledU64.html +1 -1
  74. package/docs/functions/transfer.html +1 -1
  75. package/docs/functions/withdraw.html +1 -1
  76. package/docs/hierarchy.html +1 -1
  77. package/docs/interfaces/Account.html +2 -2
  78. package/docs/interfaces/ActionInfo.html +2 -2
  79. package/docs/interfaces/ActionNonceResponse.html +2 -2
  80. package/docs/interfaces/ActionQuery.html +2 -2
  81. package/docs/interfaces/ActionResponse.html +2 -2
  82. package/docs/interfaces/ActionsExtendedInfo.html +2 -2
  83. package/docs/interfaces/ActionsQuery.html +2 -2
  84. package/docs/interfaces/ActionsResponse.html +2 -2
  85. package/docs/interfaces/AggregateMetrics.html +2 -2
  86. package/docs/interfaces/BlockFacts.html +5 -5
  87. package/docs/interfaces/BlockQuery.html +2 -2
  88. package/docs/interfaces/BlockResponse.html +2 -2
  89. package/docs/interfaces/BlockSummary.html +2 -2
  90. package/docs/interfaces/BlockSummaryResponse.html +2 -2
  91. package/docs/interfaces/DeltaEvent.html +2 -2
  92. package/docs/interfaces/DepositSplParams.html +6 -6
  93. package/docs/interfaces/Info.html +2 -2
  94. package/docs/interfaces/Market.html +2 -2
  95. package/docs/interfaces/MarketStats.html +2 -2
  96. package/docs/interfaces/MarketsStatsResponse.html +2 -2
  97. package/docs/interfaces/NordConfig.html +7 -7
  98. package/docs/interfaces/NordWebSocketClientEvents.html +2 -2
  99. package/docs/interfaces/NordWebSocketEvents.html +2 -2
  100. package/docs/interfaces/Order.html +2 -2
  101. package/docs/interfaces/OrderInfo.html +2 -2
  102. package/docs/interfaces/OrderbookEntry.html +2 -2
  103. package/docs/interfaces/OrderbookQuery.html +2 -2
  104. package/docs/interfaces/OrderbookResponse.html +2 -2
  105. package/docs/interfaces/OrderbookSubscription.html +5 -5
  106. package/docs/interfaces/PerpMarketStats.html +2 -2
  107. package/docs/interfaces/RollmanActionExtendedInfo.html +2 -2
  108. package/docs/interfaces/RollmanActionInfo.html +2 -2
  109. package/docs/interfaces/RollmanActionResponse.html +2 -2
  110. package/docs/interfaces/RollmanActionsResponse.html +2 -2
  111. package/docs/interfaces/RollmanBlockResponse.html +2 -2
  112. package/docs/interfaces/SPLTokenInfo.html +5 -5
  113. package/docs/interfaces/SolanaBridgeConfig.html +8 -6
  114. package/docs/interfaces/StateFacts.html +5 -5
  115. package/docs/interfaces/SubscriberConfig.html +2 -2
  116. package/docs/interfaces/TimestampResponse.html +2 -2
  117. package/docs/interfaces/Token.html +2 -2
  118. package/docs/interfaces/TokenInfo.html +2 -2
  119. package/docs/interfaces/Trade.html +2 -2
  120. package/docs/interfaces/TradeSubscription.html +5 -5
  121. package/docs/interfaces/Trades.html +2 -2
  122. package/docs/interfaces/TradesQuery.html +2 -2
  123. package/docs/interfaces/TradesResponse.html +2 -2
  124. package/docs/interfaces/TransferParams.html +4 -4
  125. package/docs/interfaces/UserAccountIdsQuery.html +2 -2
  126. package/docs/interfaces/UserAccountIdsResponse.html +2 -2
  127. package/docs/interfaces/WebSocketAccountUpdate.html +2 -2
  128. package/docs/interfaces/WebSocketDeltaUpdate.html +2 -2
  129. package/docs/interfaces/WebSocketSubscription.html +2 -2
  130. package/docs/interfaces/WebSocketTradeUpdate.html +2 -2
  131. package/docs/interfaces/WithdrawalClaim.html +7 -7
  132. package/docs/interfaces/WithdrawalParams.html +4 -4
  133. package/docs/types/BigIntValue.html +1 -1
  134. package/docs/types/SubscriptionPattern.html +1 -1
  135. package/docs/types/SubscriptionType.html +1 -1
  136. package/docs/types/WebSocketMessage.html +1 -1
  137. package/docs/variables/DEBUG_KEYS.html +1 -1
  138. package/docs/variables/DEFAULT_FUNDING_AMOUNTS.html +1 -1
  139. package/docs/variables/DEV_TOKEN_INFOS.html +1 -1
  140. package/docs/variables/DEV_URL.html +1 -1
  141. package/docs/variables/MAX_BUFFER_LEN.html +1 -1
  142. package/docs/variables/SESSION_TTL.html +1 -1
  143. package/docs/variables/WEBSERVER_DEV_URL.html +1 -1
  144. package/docs/variables/ZERO_DECIMAL.html +1 -1
  145. package/docs/variables/_private.html +1 -1
  146. package/package.json +3 -1
  147. package/src/bridge/client.ts +2 -1
  148. package/src/bridge/types.ts +2 -0
  149. package/src/gen/common.ts +1 -1
  150. package/src/gen/nord.ts +59 -66
  151. package/src/nord/client/NordUser.ts +20 -10
  152. package/src/websocket/NordWebSocketClient.ts +0 -2
  153. package/tsconfig.json +1 -1
  154. package/dist/idl/bridge.d.ts +0 -2
  155. package/dist/idl/bridge.js +0 -930
@@ -1,930 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BRIDGE_IDL = void 0;
4
- exports.BRIDGE_IDL = {
5
- address: "",
6
- metadata: {
7
- name: "bridge",
8
- version: "0.1.0",
9
- spec: "0.1.0",
10
- description: "Created with Anchor",
11
- },
12
- instructions: [
13
- {
14
- name: "deposit_spl",
15
- discriminator: [224, 0, 198, 175, 198, 47, 105, 204],
16
- accounts: [
17
- {
18
- name: "depositor",
19
- writable: true,
20
- signer: true,
21
- },
22
- {
23
- name: "deposit",
24
- writable: true,
25
- },
26
- {
27
- name: "prev_deposit",
28
- optional: true,
29
- pda: {
30
- seeds: [
31
- {
32
- kind: "const",
33
- value: [
34
- 100, 101, 112, 111, 115, 105, 116, 95, 115, 116, 111, 114, 97,
35
- 103, 101,
36
- ],
37
- },
38
- {
39
- kind: "account",
40
- path: "contract_storage.last_deposit_index",
41
- account: "ContractStorage",
42
- },
43
- ],
44
- },
45
- },
46
- {
47
- name: "asset_config",
48
- pda: {
49
- seeds: [
50
- {
51
- kind: "const",
52
- value: [
53
- 97, 115, 115, 101, 116, 95, 99, 111, 110, 102, 105, 103,
54
- ],
55
- },
56
- {
57
- kind: "account",
58
- path: "from_account.mint",
59
- },
60
- ],
61
- },
62
- },
63
- {
64
- name: "contract_storage",
65
- writable: true,
66
- pda: {
67
- seeds: [
68
- {
69
- kind: "const",
70
- value: [
71
- 99, 111, 110, 116, 114, 97, 99, 116, 95, 115, 116, 111, 114,
72
- 97, 103, 101,
73
- ],
74
- },
75
- ],
76
- },
77
- },
78
- {
79
- name: "from_account",
80
- writable: true,
81
- },
82
- {
83
- name: "to_account",
84
- writable: true,
85
- pda: {
86
- seeds: [
87
- {
88
- kind: "const",
89
- value: [
90
- 79, 224, 127, 226, 92, 181, 26, 89, 30, 167, 10, 86, 86, 68,
91
- 128, 20, 156, 34, 76, 69, 18, 76, 98, 233, 62, 41, 163, 58,
92
- 15, 16, 9, 188,
93
- ],
94
- },
95
- {
96
- kind: "account",
97
- path: "token_program",
98
- },
99
- {
100
- kind: "account",
101
- path: "from_account.mint",
102
- },
103
- ],
104
- program: {
105
- kind: "const",
106
- value: [
107
- 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,
108
- 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,
109
- 219, 233, 248, 89,
110
- ],
111
- },
112
- },
113
- },
114
- {
115
- name: "program",
116
- address: "AAqdriZHrKLurrGRecnCEHKqZLKmq6Q2mFmH26i3ff3r",
117
- },
118
- {
119
- name: "token_program",
120
- },
121
- {
122
- name: "system_program",
123
- address: "11111111111111111111111111111111",
124
- },
125
- ],
126
- args: [
127
- {
128
- name: "amount",
129
- type: "u64",
130
- },
131
- ],
132
- },
133
- {
134
- name: "emit_crumb",
135
- discriminator: [96, 96, 18, 122, 83, 60, 102, 37],
136
- accounts: [
137
- {
138
- name: "contract_storage",
139
- docs: [
140
- "Need a PDA to ensure that only this contract is allowed to",
141
- "call this instruction; the contract storage account is",
142
- "chosen since pretty much every other ix uses it, so this",
143
- "avoids having to introduce a new account.",
144
- ],
145
- signer: true,
146
- pda: {
147
- seeds: [
148
- {
149
- kind: "const",
150
- value: [
151
- 99, 111, 110, 116, 114, 97, 99, 116, 95, 115, 116, 111, 114,
152
- 97, 103, 101,
153
- ],
154
- },
155
- ],
156
- },
157
- },
158
- ],
159
- args: [],
160
- },
161
- {
162
- name: "finalize_block",
163
- discriminator: [63, 101, 92, 132, 135, 251, 98, 177],
164
- accounts: [
165
- {
166
- name: "payer",
167
- writable: true,
168
- signer: true,
169
- },
170
- {
171
- name: "block",
172
- writable: true,
173
- pda: {
174
- seeds: [
175
- {
176
- kind: "const",
177
- value: [
178
- 98, 108, 111, 99, 107, 95, 115, 116, 111, 114, 97, 103, 101,
179
- ],
180
- },
181
- {
182
- kind: "arg",
183
- path: "block_id",
184
- },
185
- ],
186
- },
187
- },
188
- {
189
- name: "contract_storage",
190
- writable: true,
191
- pda: {
192
- seeds: [
193
- {
194
- kind: "const",
195
- value: [
196
- 99, 111, 110, 116, 114, 97, 99, 116, 95, 115, 116, 111, 114,
197
- 97, 103, 101,
198
- ],
199
- },
200
- ],
201
- },
202
- },
203
- {
204
- name: "program",
205
- address: "AAqdriZHrKLurrGRecnCEHKqZLKmq6Q2mFmH26i3ff3r",
206
- },
207
- {
208
- name: "system_program",
209
- address: "11111111111111111111111111111111",
210
- },
211
- ],
212
- args: [
213
- {
214
- name: "state_update_id",
215
- type: "u64",
216
- },
217
- ],
218
- },
219
- {
220
- name: "finalize_da_fact",
221
- discriminator: [6, 135, 30, 141, 5, 246, 223, 58],
222
- accounts: [
223
- {
224
- name: "payer",
225
- writable: true,
226
- signer: true,
227
- },
228
- {
229
- name: "contract_storage",
230
- pda: {
231
- seeds: [
232
- {
233
- kind: "const",
234
- value: [
235
- 99, 111, 110, 116, 114, 97, 99, 116, 95, 115, 116, 111, 114,
236
- 97, 103, 101,
237
- ],
238
- },
239
- ],
240
- },
241
- },
242
- {
243
- name: "fact_state_storage",
244
- writable: true,
245
- pda: {
246
- seeds: [
247
- {
248
- kind: "const",
249
- value: [
250
- 100, 97, 95, 102, 97, 99, 116, 95, 115, 116, 111, 114, 97,
251
- 103, 101,
252
- ],
253
- },
254
- {
255
- kind: "arg",
256
- path: "fact",
257
- },
258
- ],
259
- },
260
- },
261
- {
262
- name: "program",
263
- address: "AAqdriZHrKLurrGRecnCEHKqZLKmq6Q2mFmH26i3ff3r",
264
- },
265
- {
266
- name: "system_program",
267
- address: "11111111111111111111111111111111",
268
- },
269
- ],
270
- args: [
271
- {
272
- name: "fact",
273
- type: {
274
- array: ["u8", 32],
275
- },
276
- },
277
- ],
278
- },
279
- {
280
- name: "initialize",
281
- discriminator: [175, 175, 109, 31, 13, 152, 155, 237],
282
- accounts: [
283
- {
284
- name: "payer",
285
- writable: true,
286
- signer: true,
287
- },
288
- {
289
- name: "program",
290
- signer: true,
291
- address: "AAqdriZHrKLurrGRecnCEHKqZLKmq6Q2mFmH26i3ff3r",
292
- },
293
- {
294
- name: "contract_storage",
295
- writable: true,
296
- pda: {
297
- seeds: [
298
- {
299
- kind: "const",
300
- value: [
301
- 99, 111, 110, 116, 114, 97, 99, 116, 95, 115, 116, 111, 114,
302
- 97, 103, 101,
303
- ],
304
- },
305
- ],
306
- },
307
- },
308
- {
309
- name: "system_program",
310
- address: "11111111111111111111111111111111",
311
- },
312
- ],
313
- args: [
314
- {
315
- name: "operator",
316
- type: "pubkey",
317
- },
318
- {
319
- name: "challenge_period_slots",
320
- type: "u64",
321
- },
322
- {
323
- name: "initial_app_state_commitment",
324
- type: {
325
- array: ["u8", 32],
326
- },
327
- },
328
- ],
329
- },
330
- {
331
- name: "propose_block",
332
- discriminator: [147, 21, 105, 53, 152, 116, 128, 187],
333
- accounts: [
334
- {
335
- name: "operator",
336
- writable: true,
337
- signer: true,
338
- },
339
- {
340
- name: "block",
341
- writable: true,
342
- },
343
- {
344
- name: "last_deposit",
345
- optional: true,
346
- pda: {
347
- seeds: [
348
- {
349
- kind: "const",
350
- value: [
351
- 100, 101, 112, 111, 115, 105, 116, 95, 115, 116, 111, 114, 97,
352
- 103, 101,
353
- ],
354
- },
355
- {
356
- kind: "arg",
357
- path: "facts.next_state_facts.last_deposit_index",
358
- },
359
- ],
360
- },
361
- },
362
- {
363
- name: "da_fact_state",
364
- },
365
- {
366
- name: "contract_storage",
367
- writable: true,
368
- pda: {
369
- seeds: [
370
- {
371
- kind: "const",
372
- value: [
373
- 99, 111, 110, 116, 114, 97, 99, 116, 95, 115, 116, 111, 114,
374
- 97, 103, 101,
375
- ],
376
- },
377
- ],
378
- },
379
- },
380
- {
381
- name: "program",
382
- address: "AAqdriZHrKLurrGRecnCEHKqZLKmq6Q2mFmH26i3ff3r",
383
- },
384
- {
385
- name: "system_program",
386
- address: "11111111111111111111111111111111",
387
- },
388
- ],
389
- args: [
390
- {
391
- name: "facts",
392
- type: {
393
- defined: {
394
- name: "BlockFacts",
395
- },
396
- },
397
- },
398
- ],
399
- },
400
- {
401
- name: "set_min_deposit",
402
- discriminator: [15, 182, 74, 248, 251, 148, 186, 171],
403
- accounts: [
404
- {
405
- name: "operator",
406
- signer: true,
407
- },
408
- {
409
- name: "contract_storage",
410
- pda: {
411
- seeds: [
412
- {
413
- kind: "const",
414
- value: [
415
- 99, 111, 110, 116, 114, 97, 99, 116, 95, 115, 116, 111, 114,
416
- 97, 103, 101,
417
- ],
418
- },
419
- ],
420
- },
421
- },
422
- {
423
- name: "asset_config",
424
- writable: true,
425
- pda: {
426
- seeds: [
427
- {
428
- kind: "const",
429
- value: [
430
- 97, 115, 115, 101, 116, 95, 99, 111, 110, 102, 105, 103,
431
- ],
432
- },
433
- {
434
- kind: "arg",
435
- path: "asset",
436
- },
437
- ],
438
- },
439
- },
440
- {
441
- name: "program",
442
- address: "AAqdriZHrKLurrGRecnCEHKqZLKmq6Q2mFmH26i3ff3r",
443
- },
444
- ],
445
- args: [
446
- {
447
- name: "asset",
448
- type: "pubkey",
449
- },
450
- {
451
- name: "min_deposit",
452
- type: "u64",
453
- },
454
- ],
455
- },
456
- {
457
- name: "whitelist_asset",
458
- discriminator: [113, 64, 172, 191, 33, 33, 57, 18],
459
- accounts: [
460
- {
461
- name: "operator",
462
- writable: true,
463
- signer: true,
464
- },
465
- {
466
- name: "contract_storage",
467
- pda: {
468
- seeds: [
469
- {
470
- kind: "const",
471
- value: [
472
- 99, 111, 110, 116, 114, 97, 99, 116, 95, 115, 116, 111, 114,
473
- 97, 103, 101,
474
- ],
475
- },
476
- ],
477
- },
478
- },
479
- {
480
- name: "asset_config",
481
- writable: true,
482
- pda: {
483
- seeds: [
484
- {
485
- kind: "const",
486
- value: [
487
- 97, 115, 115, 101, 116, 95, 99, 111, 110, 102, 105, 103,
488
- ],
489
- },
490
- {
491
- kind: "arg",
492
- path: "asset",
493
- },
494
- ],
495
- },
496
- },
497
- {
498
- name: "program",
499
- address: "AAqdriZHrKLurrGRecnCEHKqZLKmq6Q2mFmH26i3ff3r",
500
- },
501
- {
502
- name: "system_program",
503
- address: "11111111111111111111111111111111",
504
- },
505
- ],
506
- args: [
507
- {
508
- name: "asset",
509
- type: "pubkey",
510
- },
511
- {
512
- name: "min_deposit",
513
- type: "u64",
514
- },
515
- ],
516
- },
517
- {
518
- name: "withdraw",
519
- discriminator: [183, 18, 70, 156, 148, 109, 161, 34],
520
- accounts: [
521
- {
522
- name: "payer",
523
- writable: true,
524
- signer: true,
525
- },
526
- {
527
- name: "state_update",
528
- pda: {
529
- seeds: [
530
- {
531
- kind: "const",
532
- value: [
533
- 98, 108, 111, 99, 107, 95, 115, 116, 111, 114, 97, 103, 101,
534
- ],
535
- },
536
- {
537
- kind: "arg",
538
- path: "claim.block_id",
539
- },
540
- ],
541
- },
542
- },
543
- {
544
- name: "withdrawal_nullifier",
545
- writable: true,
546
- pda: {
547
- seeds: [
548
- {
549
- kind: "const",
550
- value: [
551
- 119, 105, 116, 104, 100, 114, 97, 119, 97, 108, 95, 110, 117,
552
- 108, 108, 105, 102, 105, 101, 114,
553
- ],
554
- },
555
- {
556
- kind: "arg",
557
- path: "claim.block_id",
558
- },
559
- {
560
- kind: "arg",
561
- path: "claim.leaf_index",
562
- },
563
- ],
564
- },
565
- },
566
- {
567
- name: "from_account",
568
- writable: true,
569
- pda: {
570
- seeds: [
571
- {
572
- kind: "const",
573
- value: [
574
- 79, 224, 127, 226, 92, 181, 26, 89, 30, 167, 10, 86, 86, 68,
575
- 128, 20, 156, 34, 76, 69, 18, 76, 98, 233, 62, 41, 163, 58,
576
- 15, 16, 9, 188,
577
- ],
578
- },
579
- {
580
- kind: "account",
581
- path: "token_program",
582
- },
583
- {
584
- kind: "account",
585
- path: "to_account.mint",
586
- },
587
- ],
588
- program: {
589
- kind: "const",
590
- value: [
591
- 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,
592
- 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,
593
- 219, 233, 248, 89,
594
- ],
595
- },
596
- },
597
- },
598
- {
599
- name: "to_account",
600
- writable: true,
601
- },
602
- {
603
- name: "authority",
604
- pda: {
605
- seeds: [
606
- {
607
- kind: "const",
608
- value: [97, 117, 116, 104, 111, 114, 105, 116, 121],
609
- },
610
- ],
611
- },
612
- },
613
- {
614
- name: "contract_storage",
615
- pda: {
616
- seeds: [
617
- {
618
- kind: "const",
619
- value: [
620
- 99, 111, 110, 116, 114, 97, 99, 116, 95, 115, 116, 111, 114,
621
- 97, 103, 101,
622
- ],
623
- },
624
- ],
625
- },
626
- },
627
- {
628
- name: "program",
629
- address: "AAqdriZHrKLurrGRecnCEHKqZLKmq6Q2mFmH26i3ff3r",
630
- },
631
- {
632
- name: "token_program",
633
- },
634
- {
635
- name: "system_program",
636
- address: "11111111111111111111111111111111",
637
- },
638
- ],
639
- args: [
640
- {
641
- name: "claim",
642
- type: {
643
- defined: {
644
- name: "WithdrawalClaim",
645
- },
646
- },
647
- },
648
- ],
649
- },
650
- ],
651
- accounts: [
652
- {
653
- name: "AssetConfig",
654
- discriminator: [57, 112, 247, 166, 247, 64, 140, 23],
655
- },
656
- {
657
- name: "Block",
658
- discriminator: [12, 72, 207, 108, 1, 228, 167, 221],
659
- },
660
- {
661
- name: "ContractStorage",
662
- discriminator: [25, 54, 49, 22, 181, 75, 2, 133],
663
- },
664
- {
665
- name: "Deposit",
666
- discriminator: [148, 146, 121, 66, 207, 173, 21, 227],
667
- },
668
- {
669
- name: "FactStateStorage",
670
- discriminator: [98, 222, 3, 112, 154, 244, 201, 242],
671
- },
672
- {
673
- name: "WithdrawalNullifier",
674
- discriminator: [38, 166, 12, 163, 155, 29, 202, 100],
675
- },
676
- ],
677
- types: [
678
- {
679
- name: "AssetConfig",
680
- type: {
681
- kind: "struct",
682
- fields: [
683
- {
684
- name: "min_deposit",
685
- type: "u64",
686
- },
687
- ],
688
- },
689
- },
690
- {
691
- name: "Block",
692
- type: {
693
- kind: "struct",
694
- fields: [
695
- {
696
- name: "facts",
697
- type: {
698
- defined: {
699
- name: "BlockFacts",
700
- },
701
- },
702
- },
703
- {
704
- name: "finalized",
705
- type: "bool",
706
- },
707
- {
708
- name: "slot_proposed",
709
- type: "u64",
710
- },
711
- ],
712
- },
713
- },
714
- {
715
- name: "BlockFacts",
716
- type: {
717
- kind: "struct",
718
- fields: [
719
- {
720
- name: "prev_state_facts",
721
- type: {
722
- defined: {
723
- name: "StateFacts",
724
- },
725
- },
726
- },
727
- {
728
- name: "next_state_facts",
729
- type: {
730
- defined: {
731
- name: "StateFacts",
732
- },
733
- },
734
- },
735
- {
736
- name: "da_commitment",
737
- type: {
738
- array: ["u8", 32],
739
- },
740
- },
741
- {
742
- name: "withdrawal_root",
743
- type: {
744
- array: ["u8", 32],
745
- },
746
- },
747
- ],
748
- },
749
- },
750
- {
751
- name: "ContractStorage",
752
- type: {
753
- kind: "struct",
754
- fields: [
755
- {
756
- name: "operator",
757
- type: "pubkey",
758
- },
759
- {
760
- name: "challenge_period_slots",
761
- type: "u64",
762
- },
763
- {
764
- name: "last_block_id",
765
- type: "u64",
766
- },
767
- {
768
- name: "last_deposit_index",
769
- type: "u64",
770
- },
771
- {
772
- name: "fina_block_id",
773
- type: "u64",
774
- },
775
- {
776
- name: "fina_state_facts",
777
- type: {
778
- defined: {
779
- name: "StateFacts",
780
- },
781
- },
782
- },
783
- ],
784
- },
785
- },
786
- {
787
- name: "Deposit",
788
- type: {
789
- kind: "struct",
790
- fields: [
791
- {
792
- name: "transfer",
793
- type: {
794
- defined: {
795
- name: "TransferParams",
796
- },
797
- },
798
- },
799
- {
800
- name: "prev_deposit_root",
801
- type: {
802
- array: ["u8", 32],
803
- },
804
- },
805
- ],
806
- },
807
- },
808
- {
809
- name: "FactState",
810
- type: {
811
- kind: "enum",
812
- variants: [
813
- {
814
- name: "Pending",
815
- },
816
- {
817
- name: "Finalized",
818
- },
819
- ],
820
- },
821
- },
822
- {
823
- name: "FactStateStorage",
824
- type: {
825
- kind: "struct",
826
- fields: [
827
- {
828
- name: "state",
829
- type: {
830
- defined: {
831
- name: "FactState",
832
- },
833
- },
834
- },
835
- ],
836
- },
837
- },
838
- {
839
- name: "StateFacts",
840
- type: {
841
- kind: "struct",
842
- fields: [
843
- {
844
- name: "app_state_commitment",
845
- type: {
846
- array: ["u8", 32],
847
- },
848
- },
849
- {
850
- name: "deposit_root",
851
- type: {
852
- array: ["u8", 32],
853
- },
854
- },
855
- {
856
- name: "last_deposit_index",
857
- type: "u64",
858
- },
859
- {
860
- name: "last_action_id",
861
- type: "u64",
862
- },
863
- ],
864
- },
865
- },
866
- {
867
- name: "TransferParams",
868
- type: {
869
- kind: "struct",
870
- fields: [
871
- {
872
- name: "user",
873
- type: "pubkey",
874
- },
875
- {
876
- name: "mint",
877
- type: "pubkey",
878
- },
879
- {
880
- name: "amount",
881
- type: "u64",
882
- },
883
- ],
884
- },
885
- },
886
- {
887
- name: "WithdrawalClaim",
888
- type: {
889
- kind: "struct",
890
- fields: [
891
- {
892
- name: "user",
893
- type: "pubkey",
894
- },
895
- {
896
- name: "amount",
897
- type: "u64",
898
- },
899
- {
900
- name: "block_id",
901
- type: "u64",
902
- },
903
- {
904
- name: "proof",
905
- type: {
906
- vec: {
907
- array: ["u8", 32],
908
- },
909
- },
910
- },
911
- {
912
- name: "leaf_index",
913
- type: "u64",
914
- },
915
- {
916
- name: "leaves_count",
917
- type: "u64",
918
- },
919
- ],
920
- },
921
- },
922
- {
923
- name: "WithdrawalNullifier",
924
- type: {
925
- kind: "struct",
926
- fields: [],
927
- },
928
- },
929
- ],
930
- };