@somnia-chain/contracts-sdk 0.3.0 → 0.3.6

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 (76) hide show
  1. package/dist/gen/abi/prophecy-oracle/OracleCore.d.ts +2 -0
  2. package/dist/gen/abi/prophecy-oracle/OracleCore.js +3 -0
  3. package/dist/gen/abi/prophecy-oracle/OracleEntryPoint.d.ts +2 -0
  4. package/dist/gen/abi/prophecy-oracle/OracleEntryPoint.js +3 -0
  5. package/dist/gen/abi/prophecy-oracle/PriceFeedScheduler.d.ts +2 -0
  6. package/dist/gen/abi/prophecy-oracle/PriceFeedScheduler.js +3 -0
  7. package/dist/gen/abi/prophecy-oracle/QuestionModerationRegistry.d.ts +2 -0
  8. package/dist/gen/abi/prophecy-oracle/QuestionModerationRegistry.js +3 -0
  9. package/dist/gen/abi/prophecy-oracle/QuestionNameRegistry.d.ts +2 -0
  10. package/dist/gen/abi/prophecy-oracle/QuestionNameRegistry.js +3 -0
  11. package/dist/gen/abi/somnia-accounts/SafeProxyFactory.d.ts +2 -0
  12. package/dist/gen/abi/somnia-accounts/SafeProxyFactory.js +3 -0
  13. package/dist/gen/abi/somnia-dex-protocol/dream-vault.implementation.d.ts +2 -2
  14. package/dist/gen/abi/somnia-dex-protocol/dream-vault.implementation.js +2 -2
  15. package/dist/gen/abi/somnia-markets/BinaryMarketsModule.d.ts +2 -2
  16. package/dist/gen/abi/somnia-markets/BinaryMarketsModule.js +2 -2
  17. package/dist/gen/abi/somnia-markets/FeedMarketCreator.d.ts +2 -0
  18. package/dist/gen/abi/somnia-markets/FeedMarketCreator.js +3 -0
  19. package/dist/gen/abi/somnia-markets/FeedMarketCreator.legacy1.d.ts +2 -0
  20. package/dist/gen/abi/somnia-markets/FeedMarketCreator.legacy1.js +3 -0
  21. package/dist/gen/abi/somnia-markets/FeedMarketCreator.legacy2.d.ts +2 -0
  22. package/dist/gen/abi/somnia-markets/FeedMarketCreator.legacy2.js +3 -0
  23. package/dist/gen/abi/somnia-markets/FeedMarketCreator.legacy3.d.ts +2 -0
  24. package/dist/gen/abi/somnia-markets/FeedMarketCreator.legacy3.js +3 -0
  25. package/dist/gen/abi/somnia-markets/FeedMarketCreator.legacy4.d.ts +2 -0
  26. package/dist/gen/abi/somnia-markets/FeedMarketCreator.legacy4.js +3 -0
  27. package/dist/gen/abi/somnia-markets/FeedMarketCreator.legacy5.d.ts +2 -0
  28. package/dist/gen/abi/somnia-markets/FeedMarketCreator.legacy5.js +3 -0
  29. package/dist/gen/abi/somnia-markets/PriceFeedOracleAdapter.d.ts +2 -0
  30. package/dist/gen/abi/somnia-markets/PriceFeedOracleAdapter.js +3 -0
  31. package/dist/gen/abi/somnia-markets/PriceFeedOracleAdapter.legacy1.d.ts +2 -0
  32. package/dist/gen/abi/somnia-markets/PriceFeedOracleAdapter.legacy1.js +3 -0
  33. package/dist/gen/abi/somnia-markets/PriceFeedOracleAdapter.legacy2.d.ts +2 -0
  34. package/dist/gen/abi/somnia-markets/PriceFeedOracleAdapter.legacy2.js +3 -0
  35. package/dist/gen/abi/somnia-markets/venue-2.marketCreator.js +4 -0
  36. package/dist/gen/abi/somnia-markets/venue-4.marketCreator.d.ts +2 -0
  37. package/dist/gen/abi/somnia-markets/venue-4.marketCreator.js +3 -0
  38. package/dist/gen/abi/somnia-markets/venue-4.marketCreatorPolicy.d.ts +2 -0
  39. package/dist/gen/abi/somnia-markets/venue-4.marketCreatorPolicy.js +3 -0
  40. package/dist/gen/abi/somnia-markets/venue-5.marketCreator.d.ts +2 -2
  41. package/dist/gen/abi/somnia-markets/venue-5.marketCreator.js +2 -2
  42. package/dist/gen/abi/somnia-protocol/NodeCommittee.d.ts +2 -0
  43. package/dist/gen/abi/somnia-protocol/NodeCommittee.js +3 -0
  44. package/dist/gen/abi/somnia-protocol/SomniaStaking.d.ts +2 -0
  45. package/dist/gen/abi/somnia-protocol/SomniaStaking.js +3 -0
  46. package/dist/gen/abis/144aab570e42.d.ts +1699 -0
  47. package/dist/gen/abis/144aab570e42.js +2203 -0
  48. package/dist/gen/abis/204da3d7cfae.d.ts +1620 -0
  49. package/dist/gen/abis/204da3d7cfae.js +2092 -0
  50. package/dist/gen/abis/{9611b42c6d5f.d.ts → 2fd67c1745ef.d.ts} +35 -2
  51. package/dist/gen/abis/{9611b42c6d5f.js → 2fd67c1745ef.js} +44 -2
  52. package/dist/gen/abis/44d37d7ba560.d.ts +180 -0
  53. package/dist/gen/abis/44d37d7ba560.js +233 -0
  54. package/dist/gen/abis/45531a4f5189.d.ts +878 -0
  55. package/dist/gen/abis/45531a4f5189.js +1134 -0
  56. package/dist/gen/abis/{49cb4deac436.d.ts → 88eb6f69cc13.d.ts} +145 -57
  57. package/dist/gen/abis/{49cb4deac436.js → 88eb6f69cc13.js} +183 -70
  58. package/dist/gen/abis/89e2309cce3a.d.ts +1010 -0
  59. package/dist/gen/abis/89e2309cce3a.js +1301 -0
  60. package/dist/gen/abis/a032a21f83aa.d.ts +1048 -0
  61. package/dist/gen/abis/a032a21f83aa.js +1371 -0
  62. package/dist/gen/abis/ad93a5b134df.d.ts +843 -0
  63. package/dist/gen/abis/ad93a5b134df.js +1105 -0
  64. package/dist/gen/abis/b13bfa909c7d.d.ts +1097 -0
  65. package/dist/gen/abis/b13bfa909c7d.js +1416 -0
  66. package/dist/gen/abis/d2b663e6aced.d.ts +2187 -0
  67. package/dist/gen/abis/d2b663e6aced.js +2821 -0
  68. package/dist/gen/abis/e7d8c1e8fd68.d.ts +878 -0
  69. package/dist/gen/abis/e7d8c1e8fd68.js +1134 -0
  70. package/dist/gen/abis-index.d.ts +27784 -16233
  71. package/dist/gen/abis-index.js +24 -4
  72. package/dist/gen/meta.d.ts +2 -2
  73. package/dist/gen/meta.js +2 -2
  74. package/dist/gen/registry.d.ts +420 -43
  75. package/dist/gen/registry.js +420 -43
  76. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- export declare const abi_49cb4deac436: readonly [{
1
+ export declare const abi_88eb6f69cc13: readonly [{
2
2
  readonly inputs: readonly [];
3
3
  readonly stateMutability: "nonpayable";
4
4
  readonly type: "constructor";
@@ -393,6 +393,89 @@ export declare const abi_49cb4deac436: readonly [{
393
393
  }];
394
394
  readonly stateMutability: "view";
395
395
  readonly type: "function";
396
+ }, {
397
+ readonly inputs: readonly [{
398
+ readonly internalType: "bytes32";
399
+ readonly name: "marketId";
400
+ readonly type: "bytes32";
401
+ }];
402
+ readonly name: "marketRecord";
403
+ readonly outputs: readonly [{
404
+ readonly components: readonly [{
405
+ readonly internalType: "uint256";
406
+ readonly name: "oracleQuestionId";
407
+ readonly type: "uint256";
408
+ }, {
409
+ readonly internalType: "uint8";
410
+ readonly name: "outcomeSlotCount";
411
+ readonly type: "uint8";
412
+ }, {
413
+ readonly internalType: "enum VoidPolicy";
414
+ readonly name: "voidPolicy";
415
+ readonly type: "uint8";
416
+ }, {
417
+ readonly internalType: "contract IERC20";
418
+ readonly name: "collateral";
419
+ readonly type: "address";
420
+ }, {
421
+ readonly internalType: "uint32";
422
+ readonly name: "originOperatorId";
423
+ readonly type: "uint32";
424
+ }, {
425
+ readonly internalType: "bytes32";
426
+ readonly name: "originVenueId";
427
+ readonly type: "bytes32";
428
+ }, {
429
+ readonly internalType: "contract IOracleAdapter";
430
+ readonly name: "oracleAdapter";
431
+ readonly type: "address";
432
+ }, {
433
+ readonly internalType: "address";
434
+ readonly name: "creator";
435
+ readonly type: "address";
436
+ }, {
437
+ readonly internalType: "address";
438
+ readonly name: "market";
439
+ readonly type: "address";
440
+ }, {
441
+ readonly internalType: "address";
442
+ readonly name: "pool";
443
+ readonly type: "address";
444
+ }, {
445
+ readonly internalType: "uint256";
446
+ readonly name: "yesId";
447
+ readonly type: "uint256";
448
+ }, {
449
+ readonly internalType: "uint256";
450
+ readonly name: "noId";
451
+ readonly type: "uint256";
452
+ }, {
453
+ readonly internalType: "uint64";
454
+ readonly name: "nonce";
455
+ readonly type: "uint64";
456
+ }, {
457
+ readonly internalType: "uint64";
458
+ readonly name: "tradingStart";
459
+ readonly type: "uint64";
460
+ }, {
461
+ readonly internalType: "uint64";
462
+ readonly name: "expiry";
463
+ readonly type: "uint64";
464
+ }, {
465
+ readonly internalType: "uint256";
466
+ readonly name: "referenceQuestionId";
467
+ readonly type: "uint256";
468
+ }, {
469
+ readonly internalType: "bytes";
470
+ readonly name: "context";
471
+ readonly type: "bytes";
472
+ }];
473
+ readonly internalType: "struct BinaryMarketsModule.MarketRecord";
474
+ readonly name: "rec";
475
+ readonly type: "tuple";
476
+ }];
477
+ readonly stateMutability: "view";
478
+ readonly type: "function";
396
479
  }, {
397
480
  readonly inputs: readonly [{
398
481
  readonly internalType: "bytes32";
@@ -451,61 +534,66 @@ export declare const abi_49cb4deac436: readonly [{
451
534
  }];
452
535
  readonly name: "markets";
453
536
  readonly outputs: readonly [{
454
- readonly internalType: "uint256";
455
- readonly name: "oracleQuestionId";
456
- readonly type: "uint256";
457
- }, {
458
- readonly internalType: "uint8";
459
- readonly name: "outcomeSlotCount";
460
- readonly type: "uint8";
461
- }, {
462
- readonly internalType: "enum VoidPolicy";
463
- readonly name: "voidPolicy";
464
- readonly type: "uint8";
465
- }, {
466
- readonly internalType: "contract IERC20";
467
- readonly name: "collateral";
468
- readonly type: "address";
469
- }, {
470
- readonly internalType: "uint32";
471
- readonly name: "originOperatorId";
472
- readonly type: "uint32";
473
- }, {
474
- readonly internalType: "bytes32";
475
- readonly name: "originVenueId";
476
- readonly type: "bytes32";
477
- }, {
478
- readonly internalType: "contract IOracleAdapter";
479
- readonly name: "oracleAdapter";
480
- readonly type: "address";
481
- }, {
482
- readonly internalType: "address";
483
- readonly name: "creator";
484
- readonly type: "address";
485
- }, {
486
- readonly internalType: "address";
487
- readonly name: "market";
488
- readonly type: "address";
489
- }, {
490
- readonly internalType: "address";
491
- readonly name: "pool";
492
- readonly type: "address";
493
- }, {
494
- readonly internalType: "uint256";
495
- readonly name: "yesId";
496
- readonly type: "uint256";
497
- }, {
498
- readonly internalType: "uint256";
499
- readonly name: "noId";
500
- readonly type: "uint256";
501
- }, {
502
- readonly internalType: "uint64";
503
- readonly name: "tradingStart";
504
- readonly type: "uint64";
505
- }, {
506
- readonly internalType: "uint64";
507
- readonly name: "expiry";
508
- readonly type: "uint64";
537
+ readonly components: readonly [{
538
+ readonly internalType: "uint256";
539
+ readonly name: "oracleQuestionId";
540
+ readonly type: "uint256";
541
+ }, {
542
+ readonly internalType: "uint8";
543
+ readonly name: "outcomeSlotCount";
544
+ readonly type: "uint8";
545
+ }, {
546
+ readonly internalType: "enum VoidPolicy";
547
+ readonly name: "voidPolicy";
548
+ readonly type: "uint8";
549
+ }, {
550
+ readonly internalType: "contract IERC20";
551
+ readonly name: "collateral";
552
+ readonly type: "address";
553
+ }, {
554
+ readonly internalType: "uint32";
555
+ readonly name: "originOperatorId";
556
+ readonly type: "uint32";
557
+ }, {
558
+ readonly internalType: "bytes32";
559
+ readonly name: "originVenueId";
560
+ readonly type: "bytes32";
561
+ }, {
562
+ readonly internalType: "contract IOracleAdapter";
563
+ readonly name: "oracleAdapter";
564
+ readonly type: "address";
565
+ }, {
566
+ readonly internalType: "address";
567
+ readonly name: "creator";
568
+ readonly type: "address";
569
+ }, {
570
+ readonly internalType: "address";
571
+ readonly name: "market";
572
+ readonly type: "address";
573
+ }, {
574
+ readonly internalType: "address";
575
+ readonly name: "pool";
576
+ readonly type: "address";
577
+ }, {
578
+ readonly internalType: "uint256";
579
+ readonly name: "yesId";
580
+ readonly type: "uint256";
581
+ }, {
582
+ readonly internalType: "uint256";
583
+ readonly name: "noId";
584
+ readonly type: "uint256";
585
+ }, {
586
+ readonly internalType: "uint64";
587
+ readonly name: "tradingStart";
588
+ readonly type: "uint64";
589
+ }, {
590
+ readonly internalType: "uint64";
591
+ readonly name: "expiry";
592
+ readonly type: "uint64";
593
+ }];
594
+ readonly internalType: "struct BinaryMarketsModule.MarketView";
595
+ readonly name: "v";
596
+ readonly type: "tuple";
509
597
  }];
510
598
  readonly stateMutability: "view";
511
599
  readonly type: "function";
@@ -2038,4 +2126,4 @@ export declare const abi_49cb4deac436: readonly [{
2038
2126
  readonly name: "ZeroAmount";
2039
2127
  readonly type: "error";
2040
2128
  }];
2041
- export declare const digest = "sha256:49cb4deac4368abbc0201f10d4b3243e6b1afd4203030b038b8eefcda9381fe0";
2129
+ export declare const digest = "sha256:88eb6f69cc133fbfe2018ac3d4117fd00acbac9f546b2abdff8ea4c592fcb2b9";
@@ -1,5 +1,5 @@
1
1
  // Generated by `registry sdk` from dist-public/ — do not edit.
2
- export const abi_49cb4deac436 = [
2
+ export const abi_88eb6f69cc13 = [
3
3
  {
4
4
  "inputs": [],
5
5
  "stateMutability": "nonpayable",
@@ -515,6 +515,112 @@ export const abi_49cb4deac436 = [
515
515
  "stateMutability": "view",
516
516
  "type": "function"
517
517
  },
518
+ {
519
+ "inputs": [
520
+ {
521
+ "internalType": "bytes32",
522
+ "name": "marketId",
523
+ "type": "bytes32"
524
+ }
525
+ ],
526
+ "name": "marketRecord",
527
+ "outputs": [
528
+ {
529
+ "components": [
530
+ {
531
+ "internalType": "uint256",
532
+ "name": "oracleQuestionId",
533
+ "type": "uint256"
534
+ },
535
+ {
536
+ "internalType": "uint8",
537
+ "name": "outcomeSlotCount",
538
+ "type": "uint8"
539
+ },
540
+ {
541
+ "internalType": "enum VoidPolicy",
542
+ "name": "voidPolicy",
543
+ "type": "uint8"
544
+ },
545
+ {
546
+ "internalType": "contract IERC20",
547
+ "name": "collateral",
548
+ "type": "address"
549
+ },
550
+ {
551
+ "internalType": "uint32",
552
+ "name": "originOperatorId",
553
+ "type": "uint32"
554
+ },
555
+ {
556
+ "internalType": "bytes32",
557
+ "name": "originVenueId",
558
+ "type": "bytes32"
559
+ },
560
+ {
561
+ "internalType": "contract IOracleAdapter",
562
+ "name": "oracleAdapter",
563
+ "type": "address"
564
+ },
565
+ {
566
+ "internalType": "address",
567
+ "name": "creator",
568
+ "type": "address"
569
+ },
570
+ {
571
+ "internalType": "address",
572
+ "name": "market",
573
+ "type": "address"
574
+ },
575
+ {
576
+ "internalType": "address",
577
+ "name": "pool",
578
+ "type": "address"
579
+ },
580
+ {
581
+ "internalType": "uint256",
582
+ "name": "yesId",
583
+ "type": "uint256"
584
+ },
585
+ {
586
+ "internalType": "uint256",
587
+ "name": "noId",
588
+ "type": "uint256"
589
+ },
590
+ {
591
+ "internalType": "uint64",
592
+ "name": "nonce",
593
+ "type": "uint64"
594
+ },
595
+ {
596
+ "internalType": "uint64",
597
+ "name": "tradingStart",
598
+ "type": "uint64"
599
+ },
600
+ {
601
+ "internalType": "uint64",
602
+ "name": "expiry",
603
+ "type": "uint64"
604
+ },
605
+ {
606
+ "internalType": "uint256",
607
+ "name": "referenceQuestionId",
608
+ "type": "uint256"
609
+ },
610
+ {
611
+ "internalType": "bytes",
612
+ "name": "context",
613
+ "type": "bytes"
614
+ }
615
+ ],
616
+ "internalType": "struct BinaryMarketsModule.MarketRecord",
617
+ "name": "rec",
618
+ "type": "tuple"
619
+ }
620
+ ],
621
+ "stateMutability": "view",
622
+ "type": "function"
623
+ },
518
624
  {
519
625
  "inputs": [
520
626
  {
@@ -592,74 +698,81 @@ export const abi_49cb4deac436 = [
592
698
  "name": "markets",
593
699
  "outputs": [
594
700
  {
595
- "internalType": "uint256",
596
- "name": "oracleQuestionId",
597
- "type": "uint256"
598
- },
599
- {
600
- "internalType": "uint8",
601
- "name": "outcomeSlotCount",
602
- "type": "uint8"
603
- },
604
- {
605
- "internalType": "enum VoidPolicy",
606
- "name": "voidPolicy",
607
- "type": "uint8"
608
- },
609
- {
610
- "internalType": "contract IERC20",
611
- "name": "collateral",
612
- "type": "address"
613
- },
614
- {
615
- "internalType": "uint32",
616
- "name": "originOperatorId",
617
- "type": "uint32"
618
- },
619
- {
620
- "internalType": "bytes32",
621
- "name": "originVenueId",
622
- "type": "bytes32"
623
- },
624
- {
625
- "internalType": "contract IOracleAdapter",
626
- "name": "oracleAdapter",
627
- "type": "address"
628
- },
629
- {
630
- "internalType": "address",
631
- "name": "creator",
632
- "type": "address"
633
- },
634
- {
635
- "internalType": "address",
636
- "name": "market",
637
- "type": "address"
638
- },
639
- {
640
- "internalType": "address",
641
- "name": "pool",
642
- "type": "address"
643
- },
644
- {
645
- "internalType": "uint256",
646
- "name": "yesId",
647
- "type": "uint256"
648
- },
649
- {
650
- "internalType": "uint256",
651
- "name": "noId",
652
- "type": "uint256"
653
- },
654
- {
655
- "internalType": "uint64",
656
- "name": "tradingStart",
657
- "type": "uint64"
658
- },
659
- {
660
- "internalType": "uint64",
661
- "name": "expiry",
662
- "type": "uint64"
701
+ "components": [
702
+ {
703
+ "internalType": "uint256",
704
+ "name": "oracleQuestionId",
705
+ "type": "uint256"
706
+ },
707
+ {
708
+ "internalType": "uint8",
709
+ "name": "outcomeSlotCount",
710
+ "type": "uint8"
711
+ },
712
+ {
713
+ "internalType": "enum VoidPolicy",
714
+ "name": "voidPolicy",
715
+ "type": "uint8"
716
+ },
717
+ {
718
+ "internalType": "contract IERC20",
719
+ "name": "collateral",
720
+ "type": "address"
721
+ },
722
+ {
723
+ "internalType": "uint32",
724
+ "name": "originOperatorId",
725
+ "type": "uint32"
726
+ },
727
+ {
728
+ "internalType": "bytes32",
729
+ "name": "originVenueId",
730
+ "type": "bytes32"
731
+ },
732
+ {
733
+ "internalType": "contract IOracleAdapter",
734
+ "name": "oracleAdapter",
735
+ "type": "address"
736
+ },
737
+ {
738
+ "internalType": "address",
739
+ "name": "creator",
740
+ "type": "address"
741
+ },
742
+ {
743
+ "internalType": "address",
744
+ "name": "market",
745
+ "type": "address"
746
+ },
747
+ {
748
+ "internalType": "address",
749
+ "name": "pool",
750
+ "type": "address"
751
+ },
752
+ {
753
+ "internalType": "uint256",
754
+ "name": "yesId",
755
+ "type": "uint256"
756
+ },
757
+ {
758
+ "internalType": "uint256",
759
+ "name": "noId",
760
+ "type": "uint256"
761
+ },
762
+ {
763
+ "internalType": "uint64",
764
+ "name": "tradingStart",
765
+ "type": "uint64"
766
+ },
767
+ {
768
+ "internalType": "uint64",
769
+ "name": "expiry",
770
+ "type": "uint64"
771
+ }
772
+ ],
773
+ "internalType": "struct BinaryMarketsModule.MarketView",
774
+ "name": "v",
775
+ "type": "tuple"
663
776
  }
664
777
  ],
665
778
  "stateMutability": "view",
@@ -2615,4 +2728,4 @@ export const abi_49cb4deac436 = [
2615
2728
  "type": "error"
2616
2729
  }
2617
2730
  ];
2618
- export const digest = "sha256:49cb4deac4368abbc0201f10d4b3243e6b1afd4203030b038b8eefcda9381fe0";
2731
+ export const digest = "sha256:88eb6f69cc133fbfe2018ac3d4117fd00acbac9f546b2abdff8ea4c592fcb2b9";