@somnia-chain/contracts-sdk 0.3.9 → 0.3.14

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 (90) hide show
  1. package/dist/gen/abi/prophecy-oracle/OracleCore.js +6 -0
  2. package/dist/gen/abi/prophecy-oracle/OracleEntryPoint.d.ts +2 -2
  3. package/dist/gen/abi/prophecy-oracle/OracleEntryPoint.js +8 -2
  4. package/dist/gen/abi/prophecy-oracle/PriceFeedScheduler.js +6 -0
  5. package/dist/gen/abi/prophecy-oracle/QuestionModerationRegistry.js +6 -0
  6. package/dist/gen/abi/prophecy-oracle/QuestionNameRegistry.js +6 -0
  7. package/dist/gen/abi/somnia-agents/agentRegistry.js +7 -0
  8. package/dist/gen/abi/somnia-dex-protocol/dream-vault.implementation.d.ts +2 -2
  9. package/dist/gen/abi/somnia-dex-protocol/dream-vault.implementation.js +7 -2
  10. package/dist/gen/abi/somnia-dex-protocol/perp-liquidation-swapper.implementation.d.ts +2 -2
  11. package/dist/gen/abi/somnia-dex-protocol/perp-liquidation-swapper.implementation.js +2 -6
  12. package/dist/gen/abi/somnia-dex-protocol/perps-protocol.LIT-PERP_baseToken.d.ts +2 -0
  13. package/dist/gen/abi/somnia-dex-protocol/perps-protocol.LIT-PERP_baseToken.js +3 -0
  14. package/dist/gen/abi/somnia-dex-protocol/perps-protocol.WTI-PERP_baseToken.d.ts +2 -0
  15. package/dist/gen/abi/somnia-dex-protocol/perps-protocol.WTI-PERP_baseToken.js +3 -0
  16. package/dist/gen/abi/somnia-dex-protocol/perps-protocol.ZEC-PERP_baseToken.d.ts +2 -0
  17. package/dist/gen/abi/somnia-dex-protocol/perps-protocol.ZEC-PERP_baseToken.js +3 -0
  18. package/dist/gen/abi/somnia-dex-protocol/perps-protocol.perpsKeeperLens.d.ts +2 -0
  19. package/dist/gen/abi/somnia-dex-protocol/perps-protocol.perpsKeeperLens.js +3 -0
  20. package/dist/gen/abi/somnia-dex-protocol/perps.perpStopOrderRegistries.COIN.d.ts +2 -0
  21. package/dist/gen/abi/somnia-dex-protocol/perps.perpStopOrderRegistries.COIN.js +3 -0
  22. package/dist/gen/abi/somnia-dex-protocol/perps.perpStopOrderRegistries.GOOGL.d.ts +2 -0
  23. package/dist/gen/abi/somnia-dex-protocol/perps.perpStopOrderRegistries.GOOGL.js +3 -0
  24. package/dist/gen/abi/somnia-dex-protocol/perps.perpStopOrderRegistries.HOOD.d.ts +2 -0
  25. package/dist/gen/abi/somnia-dex-protocol/perps.perpStopOrderRegistries.HOOD.js +3 -0
  26. package/dist/gen/abi/somnia-dex-protocol/perps.perpStopOrderRegistries.HYNX.d.ts +2 -0
  27. package/dist/gen/abi/somnia-dex-protocol/perps.perpStopOrderRegistries.HYNX.js +3 -0
  28. package/dist/gen/abi/somnia-dex-protocol/perps.perpStopOrderRegistries.INTC.d.ts +2 -0
  29. package/dist/gen/abi/somnia-dex-protocol/perps.perpStopOrderRegistries.INTC.js +3 -0
  30. package/dist/gen/abi/somnia-dex-protocol/perps.perpStopOrderRegistries.LITE.d.ts +2 -0
  31. package/dist/gen/abi/somnia-dex-protocol/perps.perpStopOrderRegistries.LITE.js +3 -0
  32. package/dist/gen/abi/somnia-dex-protocol/perps.perpStopOrderRegistries.MRVL.d.ts +2 -0
  33. package/dist/gen/abi/somnia-dex-protocol/perps.perpStopOrderRegistries.MRVL.js +3 -0
  34. package/dist/gen/abi/somnia-dex-protocol/perps.perpStopOrderRegistries.MSTR.d.ts +2 -0
  35. package/dist/gen/abi/somnia-dex-protocol/perps.perpStopOrderRegistries.MSTR.js +3 -0
  36. package/dist/gen/abi/somnia-dex-protocol/perps.perpStopOrderRegistries.TSLA.d.ts +2 -0
  37. package/dist/gen/abi/somnia-dex-protocol/perps.perpStopOrderRegistries.TSLA.js +3 -0
  38. package/dist/gen/abi/somnia-dex-protocol/perps.perpStopOrderRegistries.WTI.d.ts +2 -0
  39. package/dist/gen/abi/somnia-dex-protocol/perps.perpStopOrderRegistries.WTI.js +3 -0
  40. package/dist/gen/abi/somnia-dex-protocol/perps.perpStopOrderRegistries.XAG.d.ts +2 -0
  41. package/dist/gen/abi/somnia-dex-protocol/perps.perpStopOrderRegistries.XAG.js +3 -0
  42. package/dist/gen/abi/somnia-dex-protocol/perps.perpStopOrderRegistries.XAU.d.ts +2 -0
  43. package/dist/gen/abi/somnia-dex-protocol/perps.perpStopOrderRegistries.XAU.js +3 -0
  44. package/dist/gen/abi/somnia-dex-protocol/spot-pool.SpotPool_Implementation.js +4 -0
  45. package/dist/gen/abi/somnia-dex-protocol/stop-order-registries.spotStopOrderRegistryImplementation.d.ts +2 -2
  46. package/dist/gen/abi/somnia-dex-protocol/stop-order-registries.spotStopOrderRegistryImplementation.js +2 -6
  47. package/dist/gen/abi/somnia-dex-protocol/stop-order-registries.stopOrderRegistries.USDT_USDso.d.ts +2 -0
  48. package/dist/gen/abi/somnia-dex-protocol/stop-order-registries.stopOrderRegistries.USDT_USDso.js +3 -0
  49. package/dist/gen/abi/somnia-dex-protocol/stop-order-registries.stopOrderRegistries.bWBTC_USDso.d.ts +2 -0
  50. package/dist/gen/abi/somnia-dex-protocol/stop-order-registries.stopOrderRegistries.bWBTC_USDso.js +3 -0
  51. package/dist/gen/abi/somnia-dex-protocol/stop-order-registries.stopOrderRegistries.bWETH_USDso.d.ts +2 -0
  52. package/dist/gen/abi/somnia-dex-protocol/stop-order-registries.stopOrderRegistries.bWETH_USDso.js +3 -0
  53. package/dist/gen/abi/somnia-markets/FeedMarketCreatorFactory.d.ts +2 -0
  54. package/dist/gen/abi/somnia-markets/FeedMarketCreatorFactory.js +3 -0
  55. package/dist/gen/abi/somnia-markets/SomiLock.d.ts +2 -2
  56. package/dist/gen/abi/somnia-markets/SomiLock.js +2 -2
  57. package/dist/gen/abi/somnia-markets/UserVaultFactory.d.ts +2 -0
  58. package/dist/gen/abi/somnia-markets/UserVaultFactory.js +3 -0
  59. package/dist/gen/abi/somnia-markets/UserVaultImpl.d.ts +2 -0
  60. package/dist/gen/abi/somnia-markets/UserVaultImpl.js +3 -0
  61. package/dist/gen/abi/somnia-markets/venue-1.marketCreator.js +1 -0
  62. package/dist/gen/abis/1d0ea05bc53d.d.ts +231 -0
  63. package/dist/gen/abis/1d0ea05bc53d.js +301 -0
  64. package/dist/gen/abis/32cc7a5169e1.d.ts +1704 -0
  65. package/dist/gen/abis/32cc7a5169e1.js +2200 -0
  66. package/dist/gen/abis/49ad550ed87e.d.ts +692 -0
  67. package/dist/gen/abis/49ad550ed87e.js +897 -0
  68. package/dist/gen/abis/4a5210d62566.d.ts +2197 -0
  69. package/dist/gen/abis/4a5210d62566.js +2834 -0
  70. package/dist/gen/abis/{1a2db3035880.d.ts → 59f72604787a.d.ts} +419 -497
  71. package/dist/gen/abis/{1a2db3035880.js → 59f72604787a.js} +482 -576
  72. package/dist/gen/abis/{9818d0265866.d.ts → 5a4a0858050e.d.ts} +486 -472
  73. package/dist/gen/abis/{9818d0265866.js → 5a4a0858050e.js} +563 -531
  74. package/dist/gen/abis/914f4b7b21d6.d.ts +853 -0
  75. package/dist/gen/abis/914f4b7b21d6.js +1118 -0
  76. package/dist/gen/abis/{afc6a4821e4a.d.ts → ac9568ce34c8.d.ts} +260 -3
  77. package/dist/gen/abis/{afc6a4821e4a.js → ac9568ce34c8.js} +332 -3
  78. package/dist/gen/abis/d0e583337129.d.ts +575 -0
  79. package/dist/gen/abis/d0e583337129.js +741 -0
  80. package/dist/gen/abis/d4649fdaaab6.d.ts +713 -0
  81. package/dist/gen/abis/d4649fdaaab6.js +925 -0
  82. package/dist/gen/abis/ee870f549cb8.d.ts +888 -0
  83. package/dist/gen/abis/ee870f549cb8.js +1147 -0
  84. package/dist/gen/abis-index.d.ts +134 -46682
  85. package/dist/gen/abis-index.js +22 -6
  86. package/dist/gen/meta.d.ts +2 -2
  87. package/dist/gen/meta.js +2 -2
  88. package/dist/gen/registry.d.ts +1928 -33
  89. package/dist/gen/registry.js +1930 -33
  90. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  // Generated by `registry sdk` from dist-public/ — do not edit.
2
- export const abi_afc6a4821e4a = [
2
+ export const abi_ac9568ce34c8 = [
3
3
  {
4
4
  "inputs": [],
5
5
  "stateMutability": "nonpayable",
@@ -31,6 +31,19 @@ export const abi_afc6a4821e4a = [
31
31
  "stateMutability": "view",
32
32
  "type": "function"
33
33
  },
34
+ {
35
+ "inputs": [],
36
+ "name": "MAX_LOCK_TERM",
37
+ "outputs": [
38
+ {
39
+ "internalType": "uint256",
40
+ "name": "",
41
+ "type": "uint256"
42
+ }
43
+ ],
44
+ "stateMutability": "view",
45
+ "type": "function"
46
+ },
34
47
  {
35
48
  "inputs": [],
36
49
  "name": "UPGRADE_INTERFACE_VERSION",
@@ -51,6 +64,29 @@ export const abi_afc6a4821e4a = [
51
64
  "stateMutability": "nonpayable",
52
65
  "type": "function"
53
66
  },
67
+ {
68
+ "inputs": [
69
+ {
70
+ "internalType": "address",
71
+ "name": "locker",
72
+ "type": "address"
73
+ },
74
+ {
75
+ "internalType": "uint256",
76
+ "name": "amount",
77
+ "type": "uint256"
78
+ },
79
+ {
80
+ "internalType": "uint256",
81
+ "name": "until",
82
+ "type": "uint256"
83
+ }
84
+ ],
85
+ "name": "approveLocker",
86
+ "outputs": [],
87
+ "stateMutability": "nonpayable",
88
+ "type": "function"
89
+ },
54
90
  {
55
91
  "inputs": [],
56
92
  "name": "cancelWithdrawal",
@@ -139,12 +175,75 @@ export const abi_afc6a4821e4a = [
139
175
  "stateMutability": "view",
140
176
  "type": "function"
141
177
  },
178
+ {
179
+ "inputs": [
180
+ {
181
+ "internalType": "address",
182
+ "name": "account",
183
+ "type": "address"
184
+ },
185
+ {
186
+ "internalType": "address",
187
+ "name": "locker",
188
+ "type": "address"
189
+ }
190
+ ],
191
+ "name": "getLockerApproval",
192
+ "outputs": [
193
+ {
194
+ "internalType": "uint256",
195
+ "name": "amount",
196
+ "type": "uint256"
197
+ },
198
+ {
199
+ "internalType": "uint256",
200
+ "name": "until",
201
+ "type": "uint256"
202
+ },
203
+ {
204
+ "internalType": "uint256",
205
+ "name": "locked",
206
+ "type": "uint256"
207
+ }
208
+ ],
209
+ "stateMutability": "view",
210
+ "type": "function"
211
+ },
212
+ {
213
+ "inputs": [
214
+ {
215
+ "internalType": "address",
216
+ "name": "account",
217
+ "type": "address"
218
+ },
219
+ {
220
+ "internalType": "address",
221
+ "name": "locker",
222
+ "type": "address"
223
+ }
224
+ ],
225
+ "name": "heldBy",
226
+ "outputs": [
227
+ {
228
+ "internalType": "uint256",
229
+ "name": "",
230
+ "type": "uint256"
231
+ }
232
+ ],
233
+ "stateMutability": "view",
234
+ "type": "function"
235
+ },
142
236
  {
143
237
  "inputs": [
144
238
  {
145
239
  "internalType": "address",
146
240
  "name": "owner_",
147
241
  "type": "address"
242
+ },
243
+ {
244
+ "internalType": "uint256",
245
+ "name": "maxLockTerm_",
246
+ "type": "uint256"
148
247
  }
149
248
  ],
150
249
  "name": "initialize",
@@ -152,6 +251,56 @@ export const abi_afc6a4821e4a = [
152
251
  "stateMutability": "nonpayable",
153
252
  "type": "function"
154
253
  },
254
+ {
255
+ "inputs": [
256
+ {
257
+ "internalType": "address",
258
+ "name": "account",
259
+ "type": "address"
260
+ },
261
+ {
262
+ "internalType": "uint256",
263
+ "name": "amount",
264
+ "type": "uint256"
265
+ }
266
+ ],
267
+ "name": "lockFor",
268
+ "outputs": [],
269
+ "stateMutability": "nonpayable",
270
+ "type": "function"
271
+ },
272
+ {
273
+ "inputs": [
274
+ {
275
+ "internalType": "address",
276
+ "name": "account",
277
+ "type": "address"
278
+ }
279
+ ],
280
+ "name": "lockedByLockers",
281
+ "outputs": [
282
+ {
283
+ "internalType": "uint256",
284
+ "name": "",
285
+ "type": "uint256"
286
+ }
287
+ ],
288
+ "stateMutability": "view",
289
+ "type": "function"
290
+ },
291
+ {
292
+ "inputs": [],
293
+ "name": "maxLockTerm",
294
+ "outputs": [
295
+ {
296
+ "internalType": "uint256",
297
+ "name": "",
298
+ "type": "uint256"
299
+ }
300
+ ],
301
+ "stateMutability": "view",
302
+ "type": "function"
303
+ },
155
304
  {
156
305
  "inputs": [],
157
306
  "name": "owner",
@@ -224,6 +373,19 @@ export const abi_afc6a4821e4a = [
224
373
  "stateMutability": "nonpayable",
225
374
  "type": "function"
226
375
  },
376
+ {
377
+ "inputs": [
378
+ {
379
+ "internalType": "uint256",
380
+ "name": "newMax",
381
+ "type": "uint256"
382
+ }
383
+ ],
384
+ "name": "setMaxLockTerm",
385
+ "outputs": [],
386
+ "stateMutability": "nonpayable",
387
+ "type": "function"
388
+ },
227
389
  {
228
390
  "inputs": [],
229
391
  "name": "totalLocked",
@@ -250,6 +412,24 @@ export const abi_afc6a4821e4a = [
250
412
  "stateMutability": "nonpayable",
251
413
  "type": "function"
252
414
  },
415
+ {
416
+ "inputs": [
417
+ {
418
+ "internalType": "address",
419
+ "name": "account",
420
+ "type": "address"
421
+ },
422
+ {
423
+ "internalType": "uint256",
424
+ "name": "amount",
425
+ "type": "uint256"
426
+ }
427
+ ],
428
+ "name": "unlockFor",
429
+ "outputs": [],
430
+ "stateMutability": "nonpayable",
431
+ "type": "function"
432
+ },
253
433
  {
254
434
  "inputs": [
255
435
  {
@@ -351,6 +531,93 @@ export const abi_afc6a4821e4a = [
351
531
  "name": "Initialized",
352
532
  "type": "event"
353
533
  },
534
+ {
535
+ "anonymous": false,
536
+ "inputs": [
537
+ {
538
+ "indexed": true,
539
+ "internalType": "address",
540
+ "name": "account",
541
+ "type": "address"
542
+ },
543
+ {
544
+ "indexed": true,
545
+ "internalType": "address",
546
+ "name": "locker",
547
+ "type": "address"
548
+ },
549
+ {
550
+ "indexed": false,
551
+ "internalType": "uint256",
552
+ "name": "amount",
553
+ "type": "uint256"
554
+ },
555
+ {
556
+ "indexed": false,
557
+ "internalType": "uint256",
558
+ "name": "locked",
559
+ "type": "uint256"
560
+ }
561
+ ],
562
+ "name": "LockedFor",
563
+ "type": "event"
564
+ },
565
+ {
566
+ "anonymous": false,
567
+ "inputs": [
568
+ {
569
+ "indexed": true,
570
+ "internalType": "address",
571
+ "name": "account",
572
+ "type": "address"
573
+ },
574
+ {
575
+ "indexed": true,
576
+ "internalType": "address",
577
+ "name": "locker",
578
+ "type": "address"
579
+ },
580
+ {
581
+ "indexed": false,
582
+ "internalType": "uint256",
583
+ "name": "amount",
584
+ "type": "uint256"
585
+ },
586
+ {
587
+ "indexed": false,
588
+ "internalType": "uint256",
589
+ "name": "until",
590
+ "type": "uint256"
591
+ },
592
+ {
593
+ "indexed": false,
594
+ "internalType": "uint256",
595
+ "name": "locked",
596
+ "type": "uint256"
597
+ }
598
+ ],
599
+ "name": "LockerApproved",
600
+ "type": "event"
601
+ },
602
+ {
603
+ "anonymous": false,
604
+ "inputs": [
605
+ {
606
+ "indexed": false,
607
+ "internalType": "uint256",
608
+ "name": "oldMax",
609
+ "type": "uint256"
610
+ },
611
+ {
612
+ "indexed": false,
613
+ "internalType": "uint256",
614
+ "name": "newMax",
615
+ "type": "uint256"
616
+ }
617
+ ],
618
+ "name": "MaxLockTermSet",
619
+ "type": "event"
620
+ },
354
621
  {
355
622
  "anonymous": false,
356
623
  "inputs": [
@@ -389,6 +656,37 @@ export const abi_afc6a4821e4a = [
389
656
  "name": "OwnershipTransferred",
390
657
  "type": "event"
391
658
  },
659
+ {
660
+ "anonymous": false,
661
+ "inputs": [
662
+ {
663
+ "indexed": true,
664
+ "internalType": "address",
665
+ "name": "account",
666
+ "type": "address"
667
+ },
668
+ {
669
+ "indexed": true,
670
+ "internalType": "address",
671
+ "name": "locker",
672
+ "type": "address"
673
+ },
674
+ {
675
+ "indexed": false,
676
+ "internalType": "uint256",
677
+ "name": "amount",
678
+ "type": "uint256"
679
+ },
680
+ {
681
+ "indexed": false,
682
+ "internalType": "uint256",
683
+ "name": "locked",
684
+ "type": "uint256"
685
+ }
686
+ ],
687
+ "name": "UnlockedFor",
688
+ "type": "event"
689
+ },
392
690
  {
393
691
  "anonymous": false,
394
692
  "inputs": [
@@ -545,18 +843,44 @@ export const abi_afc6a4821e4a = [
545
843
  },
546
844
  {
547
845
  "internalType": "uint256",
548
- "name": "locked",
846
+ "name": "available",
549
847
  "type": "uint256"
550
848
  }
551
849
  ],
552
850
  "name": "InsufficientLocked",
553
851
  "type": "error"
554
852
  },
853
+ {
854
+ "inputs": [],
855
+ "name": "InvalidApproval",
856
+ "type": "error"
857
+ },
555
858
  {
556
859
  "inputs": [],
557
860
  "name": "InvalidInitialization",
558
861
  "type": "error"
559
862
  },
863
+ {
864
+ "inputs": [],
865
+ "name": "InvalidLock",
866
+ "type": "error"
867
+ },
868
+ {
869
+ "inputs": [
870
+ {
871
+ "internalType": "uint256",
872
+ "name": "maxLockTerm",
873
+ "type": "uint256"
874
+ },
875
+ {
876
+ "internalType": "uint256",
877
+ "name": "max",
878
+ "type": "uint256"
879
+ }
880
+ ],
881
+ "name": "LockTermTooLong",
882
+ "type": "error"
883
+ },
560
884
  {
561
885
  "inputs": [],
562
886
  "name": "MaturedRequestPending",
@@ -572,6 +896,11 @@ export const abi_afc6a4821e4a = [
572
896
  "name": "NotInitializing",
573
897
  "type": "error"
574
898
  },
899
+ {
900
+ "inputs": [],
901
+ "name": "NotLocker",
902
+ "type": "error"
903
+ },
575
904
  {
576
905
  "inputs": [
577
906
  {
@@ -641,4 +970,4 @@ export const abi_afc6a4821e4a = [
641
970
  "type": "error"
642
971
  }
643
972
  ];
644
- export const digest = "sha256:afc6a4821e4a977ef346cc9fac5639ead89fa12633c557a536bee73f18a0fdd5";
973
+ export const digest = "sha256:ac9568ce34c872d869c1b54cdd23c9f274dcd1494dccc8d46e420e4508deac4d";