@myx-trade/sdk 0.1.238 → 0.1.239-beta.10

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/index.js CHANGED
@@ -1461,7 +1461,9 @@ var ARB_TEST_SEPOLIA = {
1461
1461
  MARKET_MANAGER: "0x6EAf47D796c48e613eb7B8b2A78Ac036c0C00732",
1462
1462
  DATA_PROVIDER: "0xb1862F949D68d0cF8D331e0EFC4D767a03990970",
1463
1463
  ORACLE_RESERVE: "0xbf07DB18302667152A9021F7C7621c5e5BEA4b0F",
1464
- FORWARDER: "0xe3922d6657BEcFDCF3Dc018ea00B68C347A37f83"
1464
+ FORWARDER: "0xe3922d6657BEcFDCF3Dc018ea00B68C347A37f83",
1465
+ DISPUTE_COURT: "0x190dEfC5836867602D5147502CB38E05c549f8e2",
1466
+ REIMBURSEMENT: "0x34290ffa20C73377FE42cBf7AbD40f9207a14baE"
1465
1467
  };
1466
1468
 
1467
1469
  // src/config/address/LINEA_SEPOLIA.ts
@@ -1483,7 +1485,9 @@ var LINEA_SEPOLIA = {
1483
1485
  MARKET_MANAGER: "0x49F6C1049EF96Be80D3299288cF33B1156fa4a66",
1484
1486
  DATA_PROVIDER: "0x4D9130Cb956A1C27dCaB15eAdc7Db3a5ceDe2cA0",
1485
1487
  ORACLE_RESERVE: "0xf77148ec8e9391b59c395eFe566EE829748DbebC",
1486
- FORWARDER: "0x935D3158a82f205fd353260E8d328Ec454939e9C"
1488
+ FORWARDER: "0x935D3158a82f205fd353260E8d328Ec454939e9C",
1489
+ DISPUTE_COURT: "0x140793016f1D6754dF64b8FF3d649Ba71A9b6449",
1490
+ REIMBURSEMENT: "0x9B41526A5C5848Da00C82e48A96A85692D7581FE"
1487
1491
  };
1488
1492
 
1489
1493
  // src/config/address/BSC_TEST_NET.ts
@@ -1505,7 +1509,9 @@ var BSC_TEST_NET = {
1505
1509
  MARKET_MANAGER: "0x1D2cb62dC52782D0a8A3832cB2Ba118b703eAAB4",
1506
1510
  DATA_PROVIDER: "0x827c4D63eCafE28bC7f1aFF460f9A14b4938d76e",
1507
1511
  ORACLE_RESERVE: "0xCF72C9fB77cF051F079151d5955753A5b93F4E92",
1508
- FORWARDER: "0x2912Ae76E175776B44E3a0f67E60F2624AEeED03"
1512
+ FORWARDER: "0x2912Ae76E175776B44E3a0f67E60F2624AEeED03",
1513
+ DISPUTE_COURT: "",
1514
+ REIMBURSEMENT: ""
1509
1515
  };
1510
1516
 
1511
1517
  // src/config/address.ts
@@ -1554,9 +1560,6 @@ var formatHex = (hex, mask = true) => {
1554
1560
  return hex.toLowerCase();
1555
1561
  };
1556
1562
 
1557
- // src/assets/icons/chain/logo/linea.png
1558
- var linea_default = "./linea-ZTA3FOH3.png";
1559
-
1560
1563
  // src/config/fee.ts
1561
1564
  var GAS_FEE_RESERVED_RATIO = 10;
1562
1565
 
@@ -1571,7 +1574,7 @@ var LINEA_SEPOLIA_default = {
1571
1574
  "https://linea-sepolia.infura.io/v3/9aa3d95b3bc440fa88ea12eaa4456161"
1572
1575
  ],
1573
1576
  label: "Linea Sepolia",
1574
- logoUrl: linea_default,
1577
+ logoUrl: "",
1575
1578
  faucetUrl: "",
1576
1579
  chainSymbol: "Linea",
1577
1580
  gasPriceRatio: 1.3,
@@ -1586,9 +1589,6 @@ var LINEA_SEPOLIA_default = {
1586
1589
  }
1587
1590
  };
1588
1591
 
1589
- // src/assets/icons/chain/logo/arbitrum.png
1590
- var arbitrum_default = "./arbitrum-MLVIRDTQ.png";
1591
-
1592
1592
  // src/config/chains/ARB_SEPOLIA.ts
1593
1593
  var ARB_SEPOLIA_default = {
1594
1594
  chainId: 421614 /* ARB_TESTNET */,
@@ -1603,7 +1603,7 @@ var ARB_SEPOLIA_default = {
1603
1603
  explorer: "https://sepolia.arbiscan.io/",
1604
1604
  explorerOfTX: "https://sepolia.arbiscan.io/tx/",
1605
1605
  faucetUrl: "https://bwarelabs.com/faucets/arbitrum-sepolia",
1606
- logoUrl: arbitrum_default,
1606
+ logoUrl: "",
1607
1607
  gasPriceRatio: 1.5,
1608
1608
  gasLimitRatio: 1.3,
1609
1609
  gasAmountRatio: 2,
@@ -1616,9 +1616,6 @@ var ARB_SEPOLIA_default = {
1616
1616
  }
1617
1617
  };
1618
1618
 
1619
- // src/assets/icons/chain/logo/opbnb.png
1620
- var opbnb_default = "./opbnb-5K2AGQHT.png";
1621
-
1622
1619
  // src/config/chains/BSC_TESTNET.ts
1623
1620
  var BSC_TESTNET_default = {
1624
1621
  chainId: 97 /* BSC_TESTNET */,
@@ -1630,7 +1627,7 @@ var BSC_TESTNET_default = {
1630
1627
  explorer: "https://testnet.bscscan.com/",
1631
1628
  explorerOfTX: "https://testnet.bscscan.com/tx/",
1632
1629
  faucetUrl: "https://docs.bnbchain.org/bnb-smart-chain/developers/faucet/",
1633
- logoUrl: opbnb_default,
1630
+ logoUrl: "",
1634
1631
  gasPriceRatio: 1.5,
1635
1632
  gasLimitRatio: 1.3,
1636
1633
  gasAmountRatio: 2,
@@ -1649,7 +1646,7 @@ var LINEA_MAINNET_default = {
1649
1646
  chainInfo: {
1650
1647
  label: "Linea Mainnet",
1651
1648
  explorer: "https://lineascan.build/",
1652
- logoUrl: linea_default,
1649
+ logoUrl: "",
1653
1650
  explorerOfTX: "https://lineascan.build/tx/",
1654
1651
  publicJsonRPCUrl: [
1655
1652
  "https://rpc.linea.build/",
@@ -1680,7 +1677,7 @@ var ARB_MAINNET_default = {
1680
1677
  chainSymbol: "Arbitrum One",
1681
1678
  explorer: "https://arbiscan.io/",
1682
1679
  explorerOfTX: "https://arbiscan.io/tx/",
1683
- logoUrl: arbitrum_default,
1680
+ logoUrl: "",
1684
1681
  gasPriceRatio: 1.5,
1685
1682
  gasLimitRatio: 1.3,
1686
1683
  gasAmountRatio: 2,
@@ -1704,7 +1701,7 @@ var BSC_MAINNET_default = {
1704
1701
  explorer: "https://bscscan.com/",
1705
1702
  explorerOfTX: "https://bscscan.com/tx/",
1706
1703
  faucetUrl: "https://docs.bnbchain.org/bnb-smart-chain/developers/faucet/",
1707
- logoUrl: opbnb_default,
1704
+ logoUrl: "",
1708
1705
  gasPriceRatio: 1.5,
1709
1706
  gasLimitRatio: 1.3,
1710
1707
  gasAmountRatio: 2,
@@ -1837,7 +1834,7 @@ var RotationProvider = class extends import_providers.BaseProvider {
1837
1834
  // package.json
1838
1835
  var package_default = {
1839
1836
  name: "@myx-trade/sdk",
1840
- version: "0.1.238",
1837
+ version: "0.1.239-beta.10",
1841
1838
  private: false,
1842
1839
  publishConfig: {
1843
1840
  access: "public"
@@ -11377,39 +11374,1959 @@ var Forwarder_default = [
11377
11374
  constant: true,
11378
11375
  stateMutability: "view",
11379
11376
  payable: false,
11380
- inputs: [],
11381
- outputs: [
11377
+ inputs: [],
11378
+ outputs: [
11379
+ {
11380
+ type: "address"
11381
+ }
11382
+ ]
11383
+ },
11384
+ {
11385
+ type: "function",
11386
+ name: "updateMaxRelayFee",
11387
+ constant: false,
11388
+ payable: false,
11389
+ inputs: [
11390
+ {
11391
+ type: "uint256",
11392
+ name: "_maxRelayFee"
11393
+ }
11394
+ ],
11395
+ outputs: []
11396
+ },
11397
+ {
11398
+ type: "function",
11399
+ name: "updateRelayInfo",
11400
+ constant: false,
11401
+ payable: false,
11402
+ inputs: [
11403
+ {
11404
+ type: "uint256",
11405
+ name: "_relayFee"
11406
+ },
11407
+ {
11408
+ type: "uint256",
11409
+ name: "_relayGas"
11410
+ }
11411
+ ],
11412
+ outputs: []
11413
+ },
11414
+ {
11415
+ type: "function",
11416
+ name: "upgradeTo",
11417
+ constant: false,
11418
+ stateMutability: "payable",
11419
+ payable: true,
11420
+ inputs: [
11421
+ {
11422
+ type: "address",
11423
+ name: "newImplementation"
11424
+ },
11425
+ {
11426
+ type: "bytes",
11427
+ name: "data"
11428
+ }
11429
+ ],
11430
+ outputs: []
11431
+ },
11432
+ {
11433
+ type: "function",
11434
+ name: "upgradeToAndCall",
11435
+ constant: false,
11436
+ stateMutability: "payable",
11437
+ payable: true,
11438
+ inputs: [
11439
+ {
11440
+ type: "address",
11441
+ name: "newImplementation"
11442
+ },
11443
+ {
11444
+ type: "bytes",
11445
+ name: "data"
11446
+ }
11447
+ ],
11448
+ outputs: []
11449
+ },
11450
+ {
11451
+ type: "function",
11452
+ name: "verify",
11453
+ constant: true,
11454
+ stateMutability: "view",
11455
+ payable: false,
11456
+ inputs: [
11457
+ {
11458
+ type: "tuple",
11459
+ name: "request",
11460
+ components: [
11461
+ {
11462
+ type: "address",
11463
+ name: "from"
11464
+ },
11465
+ {
11466
+ type: "address",
11467
+ name: "to"
11468
+ },
11469
+ {
11470
+ type: "uint256",
11471
+ name: "value"
11472
+ },
11473
+ {
11474
+ type: "uint256",
11475
+ name: "gas"
11476
+ },
11477
+ {
11478
+ type: "uint48",
11479
+ name: "deadline"
11480
+ },
11481
+ {
11482
+ type: "bytes",
11483
+ name: "data"
11484
+ },
11485
+ {
11486
+ type: "bytes",
11487
+ name: "signature"
11488
+ }
11489
+ ]
11490
+ }
11491
+ ],
11492
+ outputs: [
11493
+ {
11494
+ type: "bool"
11495
+ }
11496
+ ]
11497
+ }
11498
+ ];
11499
+
11500
+ // src/abi/Reimbursement.json
11501
+ var Reimbursement_default = [
11502
+ {
11503
+ type: "error",
11504
+ name: "AddressEmptyCode",
11505
+ inputs: [
11506
+ {
11507
+ type: "address",
11508
+ name: "target"
11509
+ }
11510
+ ]
11511
+ },
11512
+ {
11513
+ type: "error",
11514
+ name: "AlreadyClaimed",
11515
+ inputs: [
11516
+ {
11517
+ type: "uint256",
11518
+ name: "caseId"
11519
+ },
11520
+ {
11521
+ type: "address",
11522
+ name: "user"
11523
+ }
11524
+ ]
11525
+ },
11526
+ {
11527
+ type: "error",
11528
+ name: "ERC1967InvalidImplementation",
11529
+ inputs: [
11530
+ {
11531
+ type: "address",
11532
+ name: "implementation"
11533
+ }
11534
+ ]
11535
+ },
11536
+ {
11537
+ type: "error",
11538
+ name: "ERC1967NonPayable",
11539
+ inputs: []
11540
+ },
11541
+ {
11542
+ type: "error",
11543
+ name: "FailedCall",
11544
+ inputs: []
11545
+ },
11546
+ {
11547
+ type: "error",
11548
+ name: "InvalidAmount",
11549
+ inputs: [
11550
+ {
11551
+ type: "uint256",
11552
+ name: "caseId"
11553
+ },
11554
+ {
11555
+ type: "address",
11556
+ name: "user"
11557
+ }
11558
+ ]
11559
+ },
11560
+ {
11561
+ type: "error",
11562
+ name: "InvalidInitialization",
11563
+ inputs: []
11564
+ },
11565
+ {
11566
+ type: "error",
11567
+ name: "MerkleTreeVerificationFailed",
11568
+ inputs: [
11569
+ {
11570
+ type: "uint256",
11571
+ name: "caseId"
11572
+ },
11573
+ {
11574
+ type: "address",
11575
+ name: "user"
11576
+ }
11577
+ ]
11578
+ },
11579
+ {
11580
+ type: "error",
11581
+ name: "NotAddressManager",
11582
+ inputs: []
11583
+ },
11584
+ {
11585
+ type: "error",
11586
+ name: "NotDependencyManager",
11587
+ inputs: []
11588
+ },
11589
+ {
11590
+ type: "error",
11591
+ name: "NotInitializing",
11592
+ inputs: []
11593
+ },
11594
+ {
11595
+ type: "error",
11596
+ name: "NotProxyAdmin",
11597
+ inputs: []
11598
+ },
11599
+ {
11600
+ type: "error",
11601
+ name: "PermissionDenied",
11602
+ inputs: [
11603
+ {
11604
+ type: "address",
11605
+ name: "caller"
11606
+ },
11607
+ {
11608
+ type: "address",
11609
+ name: "target"
11610
+ }
11611
+ ]
11612
+ },
11613
+ {
11614
+ type: "error",
11615
+ name: "ReimbursementValidity",
11616
+ inputs: [
11617
+ {
11618
+ type: "uint256",
11619
+ name: "caseId"
11620
+ }
11621
+ ]
11622
+ },
11623
+ {
11624
+ type: "error",
11625
+ name: "SafeERC20FailedOperation",
11626
+ inputs: [
11627
+ {
11628
+ type: "address",
11629
+ name: "token"
11630
+ }
11631
+ ]
11632
+ },
11633
+ {
11634
+ type: "error",
11635
+ name: "UUPSUnauthorizedCallContext",
11636
+ inputs: []
11637
+ },
11638
+ {
11639
+ type: "error",
11640
+ name: "UUPSUnsupportedProxiableUUID",
11641
+ inputs: [
11642
+ {
11643
+ type: "bytes32",
11644
+ name: "slot"
11645
+ }
11646
+ ]
11647
+ },
11648
+ {
11649
+ type: "event",
11650
+ anonymous: false,
11651
+ name: "Initialized",
11652
+ inputs: [
11653
+ {
11654
+ type: "uint64",
11655
+ name: "version",
11656
+ indexed: false
11657
+ }
11658
+ ]
11659
+ },
11660
+ {
11661
+ type: "event",
11662
+ anonymous: false,
11663
+ name: "ReimbursementClaimed",
11664
+ inputs: [
11665
+ {
11666
+ type: "uint256",
11667
+ name: "caseId",
11668
+ indexed: false
11669
+ },
11670
+ {
11671
+ type: "address",
11672
+ name: "user",
11673
+ indexed: false
11674
+ },
11675
+ {
11676
+ type: "uint256",
11677
+ name: "baseAmount",
11678
+ indexed: false
11679
+ },
11680
+ {
11681
+ type: "uint256",
11682
+ name: "quoteAmount",
11683
+ indexed: false
11684
+ }
11685
+ ]
11686
+ },
11687
+ {
11688
+ type: "event",
11689
+ anonymous: false,
11690
+ name: "ReimbursementInfoSet",
11691
+ inputs: [
11692
+ {
11693
+ type: "uint256",
11694
+ name: "caseId",
11695
+ indexed: false
11696
+ },
11697
+ {
11698
+ type: "bytes32",
11699
+ name: "merkleRoot",
11700
+ indexed: false
11701
+ },
11702
+ {
11703
+ type: "address",
11704
+ name: "baseToken",
11705
+ indexed: false
11706
+ },
11707
+ {
11708
+ type: "address",
11709
+ name: "quoteToken",
11710
+ indexed: false
11711
+ },
11712
+ {
11713
+ type: "uint256",
11714
+ name: "totalBaseAmount",
11715
+ indexed: false
11716
+ },
11717
+ {
11718
+ type: "uint256",
11719
+ name: "totalQuoteAmount",
11720
+ indexed: false
11721
+ },
11722
+ {
11723
+ type: "uint256",
11724
+ name: "claimedBaseAmount",
11725
+ indexed: false
11726
+ },
11727
+ {
11728
+ type: "uint256",
11729
+ name: "claimedQuoteAmount",
11730
+ indexed: false
11731
+ },
11732
+ {
11733
+ type: "uint256",
11734
+ name: "expireTime",
11735
+ indexed: false
11736
+ }
11737
+ ]
11738
+ },
11739
+ {
11740
+ type: "event",
11741
+ anonymous: false,
11742
+ name: "Upgraded",
11743
+ inputs: [
11744
+ {
11745
+ type: "address",
11746
+ name: "implementation",
11747
+ indexed: true
11748
+ }
11749
+ ]
11750
+ },
11751
+ {
11752
+ type: "function",
11753
+ name: "UPGRADE_INTERFACE_VERSION",
11754
+ constant: true,
11755
+ stateMutability: "view",
11756
+ payable: false,
11757
+ inputs: [],
11758
+ outputs: [
11759
+ {
11760
+ type: "string"
11761
+ }
11762
+ ]
11763
+ },
11764
+ {
11765
+ type: "function",
11766
+ name: "claimReimbursement",
11767
+ constant: false,
11768
+ payable: false,
11769
+ inputs: [
11770
+ {
11771
+ type: "uint256",
11772
+ name: "caseId"
11773
+ },
11774
+ {
11775
+ type: "uint256",
11776
+ name: "baseAmount"
11777
+ },
11778
+ {
11779
+ type: "uint256",
11780
+ name: "quoteAmount"
11781
+ },
11782
+ {
11783
+ type: "bytes32[]",
11784
+ name: "merkleProof"
11785
+ }
11786
+ ],
11787
+ outputs: []
11788
+ },
11789
+ {
11790
+ type: "function",
11791
+ name: "getAddressManager",
11792
+ constant: true,
11793
+ stateMutability: "view",
11794
+ payable: false,
11795
+ inputs: [],
11796
+ outputs: [
11797
+ {
11798
+ type: "address"
11799
+ }
11800
+ ]
11801
+ },
11802
+ {
11803
+ type: "function",
11804
+ name: "getDependencyAddress",
11805
+ constant: true,
11806
+ stateMutability: "view",
11807
+ payable: false,
11808
+ inputs: [
11809
+ {
11810
+ type: "bytes32",
11811
+ name: "identifier"
11812
+ }
11813
+ ],
11814
+ outputs: [
11815
+ {
11816
+ type: "address"
11817
+ }
11818
+ ]
11819
+ },
11820
+ {
11821
+ type: "function",
11822
+ name: "getImplementation",
11823
+ constant: true,
11824
+ stateMutability: "view",
11825
+ payable: false,
11826
+ inputs: [],
11827
+ outputs: [
11828
+ {
11829
+ type: "address"
11830
+ }
11831
+ ]
11832
+ },
11833
+ {
11834
+ type: "function",
11835
+ name: "getReimbursementInfo",
11836
+ constant: true,
11837
+ stateMutability: "view",
11838
+ payable: false,
11839
+ inputs: [
11840
+ {
11841
+ type: "uint256",
11842
+ name: "caseId"
11843
+ }
11844
+ ],
11845
+ outputs: [
11846
+ {
11847
+ type: "tuple",
11848
+ components: [
11849
+ {
11850
+ type: "bytes32",
11851
+ name: "merkleRoot"
11852
+ },
11853
+ {
11854
+ type: "address",
11855
+ name: "baseToken"
11856
+ },
11857
+ {
11858
+ type: "address",
11859
+ name: "quoteToken"
11860
+ },
11861
+ {
11862
+ type: "uint256",
11863
+ name: "totalBaseAmount"
11864
+ },
11865
+ {
11866
+ type: "uint256",
11867
+ name: "totalQuoteAmount"
11868
+ },
11869
+ {
11870
+ type: "uint256",
11871
+ name: "claimedBaseAmount"
11872
+ },
11873
+ {
11874
+ type: "uint256",
11875
+ name: "claimedQuoteAmount"
11876
+ },
11877
+ {
11878
+ type: "uint256",
11879
+ name: "expireTime"
11880
+ }
11881
+ ]
11882
+ }
11883
+ ]
11884
+ },
11885
+ {
11886
+ type: "function",
11887
+ name: "initialize",
11888
+ constant: false,
11889
+ payable: false,
11890
+ inputs: [
11891
+ {
11892
+ type: "address",
11893
+ name: "addressManager"
11894
+ }
11895
+ ],
11896
+ outputs: []
11897
+ },
11898
+ {
11899
+ type: "function",
11900
+ name: "proxiableUUID",
11901
+ constant: true,
11902
+ stateMutability: "view",
11903
+ payable: false,
11904
+ inputs: [],
11905
+ outputs: [
11906
+ {
11907
+ type: "bytes32"
11908
+ }
11909
+ ]
11910
+ },
11911
+ {
11912
+ type: "function",
11913
+ name: "setReimbursementInfo",
11914
+ constant: false,
11915
+ payable: false,
11916
+ inputs: [
11917
+ {
11918
+ type: "uint256",
11919
+ name: "caseId"
11920
+ },
11921
+ {
11922
+ type: "tuple",
11923
+ name: "reimbursementInfo",
11924
+ components: [
11925
+ {
11926
+ type: "bytes32",
11927
+ name: "merkleRoot"
11928
+ },
11929
+ {
11930
+ type: "address",
11931
+ name: "baseToken"
11932
+ },
11933
+ {
11934
+ type: "address",
11935
+ name: "quoteToken"
11936
+ },
11937
+ {
11938
+ type: "uint256",
11939
+ name: "totalBaseAmount"
11940
+ },
11941
+ {
11942
+ type: "uint256",
11943
+ name: "totalQuoteAmount"
11944
+ },
11945
+ {
11946
+ type: "uint256",
11947
+ name: "claimedBaseAmount"
11948
+ },
11949
+ {
11950
+ type: "uint256",
11951
+ name: "claimedQuoteAmount"
11952
+ },
11953
+ {
11954
+ type: "uint256",
11955
+ name: "expireTime"
11956
+ }
11957
+ ]
11958
+ }
11959
+ ],
11960
+ outputs: []
11961
+ },
11962
+ {
11963
+ type: "function",
11964
+ name: "upgradeTo",
11965
+ constant: false,
11966
+ stateMutability: "payable",
11967
+ payable: true,
11968
+ inputs: [
11969
+ {
11970
+ type: "address",
11971
+ name: "newImplementation"
11972
+ },
11973
+ {
11974
+ type: "bytes",
11975
+ name: "data"
11976
+ }
11977
+ ],
11978
+ outputs: []
11979
+ },
11980
+ {
11981
+ type: "function",
11982
+ name: "upgradeToAndCall",
11983
+ constant: false,
11984
+ stateMutability: "payable",
11985
+ payable: true,
11986
+ inputs: [
11987
+ {
11988
+ type: "address",
11989
+ name: "newImplementation"
11990
+ },
11991
+ {
11992
+ type: "bytes",
11993
+ name: "data"
11994
+ }
11995
+ ],
11996
+ outputs: []
11997
+ }
11998
+ ];
11999
+
12000
+ // src/abi/DisputeCourt.json
12001
+ var DisputeCourt_default = [
12002
+ {
12003
+ type: "constructor",
12004
+ payable: false,
12005
+ inputs: []
12006
+ },
12007
+ {
12008
+ type: "error",
12009
+ name: "AddressEmptyCode",
12010
+ inputs: [
12011
+ {
12012
+ type: "address",
12013
+ name: "target"
12014
+ }
12015
+ ]
12016
+ },
12017
+ {
12018
+ type: "error",
12019
+ name: "AlreadyVoted",
12020
+ inputs: []
12021
+ },
12022
+ {
12023
+ type: "error",
12024
+ name: "BondNotReleased",
12025
+ inputs: []
12026
+ },
12027
+ {
12028
+ type: "error",
12029
+ name: "CaseAppealNotFinished",
12030
+ inputs: []
12031
+ },
12032
+ {
12033
+ type: "error",
12034
+ name: "CaseDeadlineNotReached",
12035
+ inputs: []
12036
+ },
12037
+ {
12038
+ type: "error",
12039
+ name: "CaseDeadlineReached",
12040
+ inputs: []
12041
+ },
12042
+ {
12043
+ type: "error",
12044
+ name: "CaseNotAccepted",
12045
+ inputs: []
12046
+ },
12047
+ {
12048
+ type: "error",
12049
+ name: "CaseNotExist",
12050
+ inputs: [
12051
+ {
12052
+ type: "uint256",
12053
+ name: "caseId"
12054
+ }
12055
+ ]
12056
+ },
12057
+ {
12058
+ type: "error",
12059
+ name: "CaseRespondentAppealed",
12060
+ inputs: [
12061
+ {
12062
+ type: "uint256",
12063
+ name: "caseId"
12064
+ },
12065
+ {
12066
+ type: "address",
12067
+ name: "respondent"
12068
+ }
12069
+ ]
12070
+ },
12071
+ {
12072
+ type: "error",
12073
+ name: "ChainIdMismatch",
12074
+ inputs: []
12075
+ },
12076
+ {
12077
+ type: "error",
12078
+ name: "DisputeNotAllowed",
12079
+ inputs: []
12080
+ },
12081
+ {
12082
+ type: "error",
12083
+ name: "ERC1967InvalidImplementation",
12084
+ inputs: [
12085
+ {
12086
+ type: "address",
12087
+ name: "implementation"
12088
+ }
12089
+ ]
12090
+ },
12091
+ {
12092
+ type: "error",
12093
+ name: "ERC1967NonPayable",
12094
+ inputs: []
12095
+ },
12096
+ {
12097
+ type: "error",
12098
+ name: "FailedCall",
12099
+ inputs: []
12100
+ },
12101
+ {
12102
+ type: "error",
12103
+ name: "InvalidAccountNonce",
12104
+ inputs: [
12105
+ {
12106
+ type: "address",
12107
+ name: "account"
12108
+ },
12109
+ {
12110
+ type: "uint256",
12111
+ name: "currentNonce"
12112
+ }
12113
+ ]
12114
+ },
12115
+ {
12116
+ type: "error",
12117
+ name: "InvalidContractAddress",
12118
+ inputs: []
12119
+ },
12120
+ {
12121
+ type: "error",
12122
+ name: "InvalidFunctionSignature",
12123
+ inputs: []
12124
+ },
12125
+ {
12126
+ type: "error",
12127
+ name: "InvalidInitialization",
12128
+ inputs: []
12129
+ },
12130
+ {
12131
+ type: "error",
12132
+ name: "InvalidParameter",
12133
+ inputs: []
12134
+ },
12135
+ {
12136
+ type: "error",
12137
+ name: "InvalidPayloadLength",
12138
+ inputs: [
12139
+ {
12140
+ type: "uint256",
12141
+ name: "received"
12142
+ },
12143
+ {
12144
+ type: "uint256",
12145
+ name: "expected"
12146
+ }
12147
+ ]
12148
+ },
12149
+ {
12150
+ type: "error",
12151
+ name: "InvalidPoolToken",
12152
+ inputs: []
12153
+ },
12154
+ {
12155
+ type: "error",
12156
+ name: "InvalidProfitAmount",
12157
+ inputs: []
12158
+ },
12159
+ {
12160
+ type: "error",
12161
+ name: "InvalidResponseVersion",
12162
+ inputs: []
12163
+ },
12164
+ {
12165
+ type: "error",
12166
+ name: "InvalidSourceChain",
12167
+ inputs: []
12168
+ },
12169
+ {
12170
+ type: "error",
12171
+ name: "NoChainResponse",
12172
+ inputs: []
12173
+ },
12174
+ {
12175
+ type: "error",
12176
+ name: "NotAddressManager",
12177
+ inputs: []
12178
+ },
12179
+ {
12180
+ type: "error",
12181
+ name: "NotCaseRespondent",
12182
+ inputs: [
12183
+ {
12184
+ type: "uint256",
12185
+ name: "caseId"
12186
+ },
12187
+ {
12188
+ type: "address",
12189
+ name: "respondent"
12190
+ }
12191
+ ]
12192
+ },
12193
+ {
12194
+ type: "error",
12195
+ name: "NotDependencyManager",
12196
+ inputs: []
12197
+ },
12198
+ {
12199
+ type: "error",
12200
+ name: "NotInitializing",
12201
+ inputs: []
12202
+ },
12203
+ {
12204
+ type: "error",
12205
+ name: "NotProxyAdmin",
12206
+ inputs: []
12207
+ },
12208
+ {
12209
+ type: "error",
12210
+ name: "NumberOfResponsesMismatch",
12211
+ inputs: []
12212
+ },
12213
+ {
12214
+ type: "error",
12215
+ name: "OnlyRelayer",
12216
+ inputs: []
12217
+ },
12218
+ {
12219
+ type: "error",
12220
+ name: "PermissionDenied",
12221
+ inputs: [
12222
+ {
12223
+ type: "address",
12224
+ name: "caller"
12225
+ },
12226
+ {
12227
+ type: "address",
12228
+ name: "target"
12229
+ }
12230
+ ]
12231
+ },
12232
+ {
12233
+ type: "error",
12234
+ name: "RequestTypeMismatch",
12235
+ inputs: []
12236
+ },
12237
+ {
12238
+ type: "error",
12239
+ name: "RiskCloseNotCompleted",
12240
+ inputs: []
12241
+ },
12242
+ {
12243
+ type: "error",
12244
+ name: "SafeERC20FailedOperation",
12245
+ inputs: [
12246
+ {
12247
+ type: "address",
12248
+ name: "token"
12249
+ }
12250
+ ]
12251
+ },
12252
+ {
12253
+ type: "error",
12254
+ name: "SignatureExpired",
12255
+ inputs: []
12256
+ },
12257
+ {
12258
+ type: "error",
12259
+ name: "UUPSUnauthorizedCallContext",
12260
+ inputs: []
12261
+ },
12262
+ {
12263
+ type: "error",
12264
+ name: "UUPSUnsupportedProxiableUUID",
12265
+ inputs: [
12266
+ {
12267
+ type: "bytes32",
12268
+ name: "slot"
12269
+ }
12270
+ ]
12271
+ },
12272
+ {
12273
+ type: "error",
12274
+ name: "UnexpectedCaseState",
12275
+ inputs: []
12276
+ },
12277
+ {
12278
+ type: "error",
12279
+ name: "UnexpectedCaseType",
12280
+ inputs: []
12281
+ },
12282
+ {
12283
+ type: "error",
12284
+ name: "UnexpectedNumberOfResults",
12285
+ inputs: []
12286
+ },
12287
+ {
12288
+ type: "error",
12289
+ name: "UnsupportedQueryType",
12290
+ inputs: [
12291
+ {
12292
+ type: "uint8",
12293
+ name: "received"
12294
+ }
12295
+ ]
12296
+ },
12297
+ {
12298
+ type: "error",
12299
+ name: "UntrustfulVoting",
12300
+ inputs: []
12301
+ },
12302
+ {
12303
+ type: "error",
12304
+ name: "VerificationFailed",
12305
+ inputs: []
12306
+ },
12307
+ {
12308
+ type: "error",
12309
+ name: "VersionMismatch",
12310
+ inputs: []
12311
+ },
12312
+ {
12313
+ type: "error",
12314
+ name: "WrongQueryType",
12315
+ inputs: [
12316
+ {
12317
+ type: "uint8",
12318
+ name: "received"
12319
+ },
12320
+ {
12321
+ type: "uint8",
12322
+ name: "expected"
12323
+ }
12324
+ ]
12325
+ },
12326
+ {
12327
+ type: "error",
12328
+ name: "ZeroQueries",
12329
+ inputs: []
12330
+ },
12331
+ {
12332
+ type: "event",
12333
+ anonymous: false,
12334
+ name: "AppealCanceled",
12335
+ inputs: [
12336
+ {
12337
+ type: "uint256",
12338
+ name: "caseId",
12339
+ indexed: false
12340
+ },
12341
+ {
12342
+ type: "uint256",
12343
+ name: "appealCaseId",
12344
+ indexed: false
12345
+ },
12346
+ {
12347
+ type: "address",
12348
+ name: "complainant",
12349
+ indexed: false
12350
+ },
12351
+ {
12352
+ type: "bool",
12353
+ name: "isMalicious",
12354
+ indexed: false
12355
+ }
12356
+ ]
12357
+ },
12358
+ {
12359
+ type: "event",
12360
+ anonymous: false,
12361
+ name: "AppealFiled",
12362
+ inputs: [
12363
+ {
12364
+ type: "uint256",
12365
+ name: "caseId",
12366
+ indexed: false
12367
+ },
12368
+ {
12369
+ type: "uint256",
12370
+ name: "appealCaseId",
12371
+ indexed: false
12372
+ },
12373
+ {
12374
+ type: "address",
12375
+ name: "respondent",
12376
+ indexed: false
12377
+ },
12378
+ {
12379
+ type: "address",
12380
+ name: "appealToken",
12381
+ indexed: false
12382
+ },
12383
+ {
12384
+ type: "uint256",
12385
+ name: "appealBond",
12386
+ indexed: false
12387
+ },
12388
+ {
12389
+ type: "uint64",
12390
+ name: "appealDeadline",
12391
+ indexed: false
12392
+ }
12393
+ ]
12394
+ },
12395
+ {
12396
+ type: "event",
12397
+ anonymous: false,
12398
+ name: "AppealResolved",
12399
+ inputs: [
12400
+ {
12401
+ type: "uint256",
12402
+ name: "caseId",
12403
+ indexed: false
12404
+ },
12405
+ {
12406
+ type: "uint256",
12407
+ name: "appealCaseId",
12408
+ indexed: false
12409
+ },
12410
+ {
12411
+ type: "uint8",
12412
+ name: "resolution",
12413
+ indexed: false
12414
+ },
12415
+ {
12416
+ type: "address",
12417
+ name: "complainant",
12418
+ indexed: false
12419
+ }
12420
+ ]
12421
+ },
12422
+ {
12423
+ type: "event",
12424
+ anonymous: false,
12425
+ name: "BondClaimed",
12426
+ inputs: [
12427
+ {
12428
+ type: "uint256",
12429
+ name: "caseId",
12430
+ indexed: false
12431
+ },
12432
+ {
12433
+ type: "address",
12434
+ name: "user",
12435
+ indexed: false
12436
+ },
12437
+ {
12438
+ type: "address",
12439
+ name: "token",
12440
+ indexed: false
12441
+ },
12442
+ {
12443
+ type: "uint256",
12444
+ name: "amount",
12445
+ indexed: false
12446
+ }
12447
+ ]
12448
+ },
12449
+ {
12450
+ type: "event",
12451
+ anonymous: false,
12452
+ name: "CaseAppealsResolved",
12453
+ inputs: [
12454
+ {
12455
+ type: "uint256",
12456
+ name: "caseId",
12457
+ indexed: false
12458
+ }
12459
+ ]
12460
+ },
12461
+ {
12462
+ type: "event",
12463
+ anonymous: false,
12464
+ name: "CaseRiskClosed",
12465
+ inputs: [
12466
+ {
12467
+ type: "uint256",
12468
+ name: "caseId",
12469
+ indexed: false
12470
+ }
12471
+ ]
12472
+ },
12473
+ {
12474
+ type: "event",
12475
+ anonymous: false,
12476
+ name: "DisputeCanceled",
12477
+ inputs: [
12478
+ {
12479
+ type: "uint256",
12480
+ name: "caseId",
12481
+ indexed: false
12482
+ },
12483
+ {
12484
+ type: "address",
12485
+ name: "complainant",
12486
+ indexed: false
12487
+ },
12488
+ {
12489
+ type: "bool",
12490
+ name: "isMalicious",
12491
+ indexed: false
12492
+ }
12493
+ ]
12494
+ },
12495
+ {
12496
+ type: "event",
12497
+ anonymous: false,
12498
+ name: "DisputeConfigurationUpdated",
12499
+ inputs: [
12500
+ {
12501
+ type: "tuple",
12502
+ name: "newDisputeConfigration",
12503
+ indexed: false,
12504
+ components: [
12505
+ {
12506
+ type: "address",
12507
+ name: "appealToken"
12508
+ },
12509
+ {
12510
+ type: "uint64",
12511
+ name: "disputeBondUsd"
12512
+ },
12513
+ {
12514
+ type: "uint64",
12515
+ name: "appealBondUsd"
12516
+ },
12517
+ {
12518
+ type: "uint64",
12519
+ name: "disputeThresholdUsd"
12520
+ },
12521
+ {
12522
+ type: "uint64",
12523
+ name: "caseDuration"
12524
+ },
12525
+ {
12526
+ type: "uint64",
12527
+ name: "voteDuration"
12528
+ },
12529
+ {
12530
+ type: "uint64",
12531
+ name: "resolveDuration"
12532
+ },
12533
+ {
12534
+ type: "uint32",
12535
+ name: "voteCountRate"
12536
+ },
12537
+ {
12538
+ type: "uint32",
12539
+ name: "effectiveVoteRate"
12540
+ }
12541
+ ]
12542
+ }
12543
+ ]
12544
+ },
12545
+ {
12546
+ type: "event",
12547
+ anonymous: false,
12548
+ name: "DisputeFiled",
12549
+ inputs: [
12550
+ {
12551
+ type: "uint256",
12552
+ name: "caseId",
12553
+ indexed: false
12554
+ },
12555
+ {
12556
+ type: "bytes32",
12557
+ name: "poolId",
12558
+ indexed: false
12559
+ },
12560
+ {
12561
+ type: "address",
12562
+ name: "complainant",
12563
+ indexed: false
12564
+ },
12565
+ {
12566
+ type: "address",
12567
+ name: "poolToken",
12568
+ indexed: false
12569
+ },
12570
+ {
12571
+ type: "uint256",
12572
+ name: "disputeBond",
12573
+ indexed: false
12574
+ },
12575
+ {
12576
+ type: "uint64",
12577
+ name: "caseDeadline",
12578
+ indexed: false
12579
+ }
12580
+ ]
12581
+ },
12582
+ {
12583
+ type: "event",
12584
+ anonymous: false,
12585
+ name: "DisputeResolved",
12586
+ inputs: [
12587
+ {
12588
+ type: "uint256",
12589
+ name: "caseId",
12590
+ indexed: false
12591
+ },
12592
+ {
12593
+ type: "uint8",
12594
+ name: "resolution",
12595
+ indexed: false
12596
+ },
12597
+ {
12598
+ type: "uint64",
12599
+ name: "appealDeadline",
12600
+ indexed: false
12601
+ }
12602
+ ]
12603
+ },
12604
+ {
12605
+ type: "event",
12606
+ anonymous: false,
12607
+ name: "ForfeitBondsClaimed",
12608
+ inputs: [
12609
+ {
12610
+ type: "address",
12611
+ name: "receiver",
12612
+ indexed: false
12613
+ },
12614
+ {
12615
+ type: "address",
12616
+ name: "token",
12617
+ indexed: false
12618
+ },
12619
+ {
12620
+ type: "uint256",
12621
+ name: "amount",
12622
+ indexed: false
12623
+ }
12624
+ ]
12625
+ },
12626
+ {
12627
+ type: "event",
12628
+ anonymous: false,
12629
+ name: "Initialized",
12630
+ inputs: [
12631
+ {
12632
+ type: "uint64",
12633
+ name: "version",
12634
+ indexed: false
12635
+ }
12636
+ ]
12637
+ },
12638
+ {
12639
+ type: "event",
12640
+ anonymous: false,
12641
+ name: "ReimbursementProcessed",
12642
+ inputs: [
12643
+ {
12644
+ type: "uint256",
12645
+ name: "caseId",
12646
+ indexed: false
12647
+ },
12648
+ {
12649
+ type: "tuple",
12650
+ name: "reimbursementInfo",
12651
+ indexed: false,
12652
+ components: [
12653
+ {
12654
+ type: "bytes32",
12655
+ name: "merkleRoot"
12656
+ },
12657
+ {
12658
+ type: "address",
12659
+ name: "baseToken"
12660
+ },
12661
+ {
12662
+ type: "address",
12663
+ name: "quoteToken"
12664
+ },
12665
+ {
12666
+ type: "uint256",
12667
+ name: "totalBaseAmount"
12668
+ },
12669
+ {
12670
+ type: "uint256",
12671
+ name: "totalQuoteAmount"
12672
+ },
12673
+ {
12674
+ type: "uint256",
12675
+ name: "claimedBaseAmount"
12676
+ },
12677
+ {
12678
+ type: "uint256",
12679
+ name: "claimedQuoteAmount"
12680
+ },
12681
+ {
12682
+ type: "uint256",
12683
+ name: "expireTime"
12684
+ }
12685
+ ]
12686
+ }
12687
+ ]
12688
+ },
12689
+ {
12690
+ type: "event",
12691
+ anonymous: false,
12692
+ name: "Upgraded",
12693
+ inputs: [
12694
+ {
12695
+ type: "address",
12696
+ name: "implementation",
12697
+ indexed: true
12698
+ }
12699
+ ]
12700
+ },
12701
+ {
12702
+ type: "event",
12703
+ anonymous: false,
12704
+ name: "Voted",
12705
+ inputs: [
12706
+ {
12707
+ type: "uint256",
12708
+ name: "caseId",
12709
+ indexed: false
12710
+ },
12711
+ {
12712
+ type: "address",
12713
+ name: "voter",
12714
+ indexed: false
12715
+ },
12716
+ {
12717
+ type: "uint8",
12718
+ name: "voteOption",
12719
+ indexed: false
12720
+ }
12721
+ ]
12722
+ },
12723
+ {
12724
+ type: "event",
12725
+ anonymous: false,
12726
+ name: "VotingOpened",
12727
+ inputs: [
12728
+ {
12729
+ type: "uint256",
12730
+ name: "caseId",
12731
+ indexed: false
12732
+ },
12733
+ {
12734
+ type: "uint256",
12735
+ name: "evidenceId",
12736
+ indexed: false
12737
+ },
12738
+ {
12739
+ type: "uint64",
12740
+ name: "voteDeadline",
12741
+ indexed: false
12742
+ },
12743
+ {
12744
+ type: "address[]",
12745
+ name: "respondents",
12746
+ indexed: false
12747
+ }
12748
+ ]
12749
+ },
12750
+ {
12751
+ type: "event",
12752
+ anonymous: false,
12753
+ name: "WormholeConfigurationUpdated",
12754
+ inputs: [
12755
+ {
12756
+ type: "tuple",
12757
+ name: "newWormholeConfiguration",
12758
+ indexed: false,
12759
+ components: [
12760
+ {
12761
+ type: "address",
12762
+ name: "wormhole"
12763
+ },
12764
+ {
12765
+ type: "address",
12766
+ name: "staker"
12767
+ },
12768
+ {
12769
+ type: "bytes4",
12770
+ name: "selector"
12771
+ }
12772
+ ]
12773
+ }
12774
+ ]
12775
+ },
12776
+ {
12777
+ type: "function",
12778
+ name: "UPGRADE_INTERFACE_VERSION",
12779
+ constant: true,
12780
+ stateMutability: "view",
12781
+ payable: false,
12782
+ inputs: [],
12783
+ outputs: [
12784
+ {
12785
+ type: "string"
12786
+ }
12787
+ ]
12788
+ },
12789
+ {
12790
+ type: "function",
12791
+ name: "appeal",
12792
+ constant: false,
12793
+ payable: false,
12794
+ inputs: [
12795
+ {
12796
+ type: "uint256",
12797
+ name: "caseId"
12798
+ }
12799
+ ],
12800
+ outputs: []
12801
+ },
12802
+ {
12803
+ type: "function",
12804
+ name: "canRiskControlClose",
12805
+ constant: true,
12806
+ stateMutability: "view",
12807
+ payable: false,
12808
+ inputs: [
12809
+ {
12810
+ type: "uint256",
12811
+ name: "caseId"
12812
+ }
12813
+ ],
12814
+ outputs: [
12815
+ {
12816
+ type: "bool"
12817
+ }
12818
+ ]
12819
+ },
12820
+ {
12821
+ type: "function",
12822
+ name: "cancelAppeal",
12823
+ constant: false,
12824
+ payable: false,
12825
+ inputs: [
12826
+ {
12827
+ type: "uint256",
12828
+ name: "caseId"
12829
+ },
12830
+ {
12831
+ type: "uint256",
12832
+ name: "appealCaseId"
12833
+ },
12834
+ {
12835
+ type: "bool",
12836
+ name: "isMalicious"
12837
+ }
12838
+ ],
12839
+ outputs: []
12840
+ },
12841
+ {
12842
+ type: "function",
12843
+ name: "cancelDispute",
12844
+ constant: false,
12845
+ payable: false,
12846
+ inputs: [
12847
+ {
12848
+ type: "uint256",
12849
+ name: "caseId"
12850
+ },
12851
+ {
12852
+ type: "bool",
12853
+ name: "isMalicious"
12854
+ }
12855
+ ],
12856
+ outputs: []
12857
+ },
12858
+ {
12859
+ type: "function",
12860
+ name: "caseIdSequencer",
12861
+ constant: true,
12862
+ stateMutability: "view",
12863
+ payable: false,
12864
+ inputs: [],
12865
+ outputs: [
12866
+ {
12867
+ type: "uint256"
12868
+ }
12869
+ ]
12870
+ },
12871
+ {
12872
+ type: "function",
12873
+ name: "claimBond",
12874
+ constant: false,
12875
+ payable: false,
12876
+ inputs: [
12877
+ {
12878
+ type: "uint256",
12879
+ name: "caseId"
12880
+ }
12881
+ ],
12882
+ outputs: []
12883
+ },
12884
+ {
12885
+ type: "function",
12886
+ name: "claimForfeitBonds",
12887
+ constant: false,
12888
+ payable: false,
12889
+ inputs: [
12890
+ {
12891
+ type: "address",
12892
+ name: "receiver"
12893
+ }
12894
+ ],
12895
+ outputs: []
12896
+ },
12897
+ {
12898
+ type: "function",
12899
+ name: "fileDispute",
12900
+ constant: false,
12901
+ stateMutability: "payable",
12902
+ payable: true,
12903
+ inputs: [
12904
+ {
12905
+ type: "tuple[]",
12906
+ name: "prices",
12907
+ components: [
12908
+ {
12909
+ type: "bytes32",
12910
+ name: "poolId"
12911
+ },
12912
+ {
12913
+ type: "uint8",
12914
+ name: "oracleType"
12915
+ },
12916
+ {
12917
+ type: "uint256",
12918
+ name: "referencePrice"
12919
+ },
12920
+ {
12921
+ type: "bytes",
12922
+ name: "oracleUpdateData"
12923
+ },
12924
+ {
12925
+ type: "uint64",
12926
+ name: "publishTime"
12927
+ }
12928
+ ]
12929
+ },
12930
+ {
12931
+ type: "bytes32",
12932
+ name: "poolId"
12933
+ },
12934
+ {
12935
+ type: "address",
12936
+ name: "poolToken"
12937
+ }
12938
+ ],
12939
+ outputs: []
12940
+ },
12941
+ {
12942
+ type: "function",
12943
+ name: "getAddressManager",
12944
+ constant: true,
12945
+ stateMutability: "view",
12946
+ payable: false,
12947
+ inputs: [],
12948
+ outputs: [
12949
+ {
12950
+ type: "address"
12951
+ }
12952
+ ]
12953
+ },
12954
+ {
12955
+ type: "function",
12956
+ name: "getDependencyAddress",
12957
+ constant: true,
12958
+ stateMutability: "view",
12959
+ payable: false,
12960
+ inputs: [
12961
+ {
12962
+ type: "bytes32",
12963
+ name: "identifier"
12964
+ }
12965
+ ],
12966
+ outputs: [
12967
+ {
12968
+ type: "address"
12969
+ }
12970
+ ]
12971
+ },
12972
+ {
12973
+ type: "function",
12974
+ name: "getDisputeConfiguration",
12975
+ constant: true,
12976
+ stateMutability: "view",
12977
+ payable: false,
12978
+ inputs: [],
12979
+ outputs: [
12980
+ {
12981
+ type: "tuple",
12982
+ components: [
12983
+ {
12984
+ type: "address",
12985
+ name: "appealToken"
12986
+ },
12987
+ {
12988
+ type: "uint64",
12989
+ name: "disputeBondUsd"
12990
+ },
12991
+ {
12992
+ type: "uint64",
12993
+ name: "appealBondUsd"
12994
+ },
12995
+ {
12996
+ type: "uint64",
12997
+ name: "disputeThresholdUsd"
12998
+ },
12999
+ {
13000
+ type: "uint64",
13001
+ name: "caseDuration"
13002
+ },
13003
+ {
13004
+ type: "uint64",
13005
+ name: "voteDuration"
13006
+ },
13007
+ {
13008
+ type: "uint64",
13009
+ name: "resolveDuration"
13010
+ },
13011
+ {
13012
+ type: "uint32",
13013
+ name: "voteCountRate"
13014
+ },
13015
+ {
13016
+ type: "uint32",
13017
+ name: "effectiveVoteRate"
13018
+ }
13019
+ ]
13020
+ }
13021
+ ]
13022
+ },
13023
+ {
13024
+ type: "function",
13025
+ name: "getImplementation",
13026
+ constant: true,
13027
+ stateMutability: "view",
13028
+ payable: false,
13029
+ inputs: [],
13030
+ outputs: [
13031
+ {
13032
+ type: "address"
13033
+ }
13034
+ ]
13035
+ },
13036
+ {
13037
+ type: "function",
13038
+ name: "initialize",
13039
+ constant: false,
13040
+ payable: false,
13041
+ inputs: [
13042
+ {
13043
+ type: "address",
13044
+ name: "addressManager"
13045
+ }
13046
+ ],
13047
+ outputs: []
13048
+ },
13049
+ {
13050
+ type: "function",
13051
+ name: "isCaseRespondents",
13052
+ constant: true,
13053
+ stateMutability: "view",
13054
+ payable: false,
13055
+ inputs: [
13056
+ {
13057
+ type: "uint256",
13058
+ name: "caseId"
13059
+ },
13060
+ {
13061
+ type: "address",
13062
+ name: "account"
13063
+ }
13064
+ ],
13065
+ outputs: [
13066
+ {
13067
+ type: "bool"
13068
+ }
13069
+ ]
13070
+ },
13071
+ {
13072
+ type: "function",
13073
+ name: "nonces",
13074
+ constant: true,
13075
+ stateMutability: "view",
13076
+ payable: false,
13077
+ inputs: [
13078
+ {
13079
+ type: "address",
13080
+ name: "owner"
13081
+ }
13082
+ ],
13083
+ outputs: [
13084
+ {
13085
+ type: "uint256"
13086
+ }
13087
+ ]
13088
+ },
13089
+ {
13090
+ type: "function",
13091
+ name: "openVoting",
13092
+ constant: false,
13093
+ payable: false,
13094
+ inputs: [
13095
+ {
13096
+ type: "uint256",
13097
+ name: "caseId"
13098
+ },
13099
+ {
13100
+ type: "uint256",
13101
+ name: "evidenceId"
13102
+ },
13103
+ {
13104
+ type: "address[]",
13105
+ name: "respondents"
13106
+ }
13107
+ ],
13108
+ outputs: []
13109
+ },
13110
+ {
13111
+ type: "function",
13112
+ name: "processReimbursement",
13113
+ constant: false,
13114
+ payable: false,
13115
+ inputs: [
13116
+ {
13117
+ type: "uint256",
13118
+ name: "caseId"
13119
+ },
13120
+ {
13121
+ type: "tuple",
13122
+ name: "reimbursementInfo",
13123
+ components: [
13124
+ {
13125
+ type: "bytes32",
13126
+ name: "merkleRoot"
13127
+ },
13128
+ {
13129
+ type: "address",
13130
+ name: "baseToken"
13131
+ },
13132
+ {
13133
+ type: "address",
13134
+ name: "quoteToken"
13135
+ },
13136
+ {
13137
+ type: "uint256",
13138
+ name: "totalBaseAmount"
13139
+ },
13140
+ {
13141
+ type: "uint256",
13142
+ name: "totalQuoteAmount"
13143
+ },
13144
+ {
13145
+ type: "uint256",
13146
+ name: "claimedBaseAmount"
13147
+ },
13148
+ {
13149
+ type: "uint256",
13150
+ name: "claimedQuoteAmount"
13151
+ },
13152
+ {
13153
+ type: "uint256",
13154
+ name: "expireTime"
13155
+ }
13156
+ ]
13157
+ },
13158
+ {
13159
+ type: "bytes32[]",
13160
+ name: "zeroMerkleProof"
13161
+ }
13162
+ ],
13163
+ outputs: []
13164
+ },
13165
+ {
13166
+ type: "function",
13167
+ name: "proxiableUUID",
13168
+ constant: true,
13169
+ stateMutability: "view",
13170
+ payable: false,
13171
+ inputs: [],
13172
+ outputs: [
13173
+ {
13174
+ type: "bytes32"
13175
+ }
13176
+ ]
13177
+ },
13178
+ {
13179
+ type: "function",
13180
+ name: "resolveCaseAppeals",
13181
+ constant: false,
13182
+ payable: false,
13183
+ inputs: [
13184
+ {
13185
+ type: "uint256",
13186
+ name: "caseId"
13187
+ },
13188
+ {
13189
+ type: "bytes",
13190
+ name: "response"
13191
+ },
13192
+ {
13193
+ type: "tuple[]",
13194
+ name: "guardianSignatures",
13195
+ components: [
13196
+ {
13197
+ type: "bytes32",
13198
+ name: "r"
13199
+ },
13200
+ {
13201
+ type: "bytes32",
13202
+ name: "s"
13203
+ },
13204
+ {
13205
+ type: "uint8",
13206
+ name: "v"
13207
+ },
13208
+ {
13209
+ type: "uint8",
13210
+ name: "guardianIndex"
13211
+ }
13212
+ ]
13213
+ }
13214
+ ],
13215
+ outputs: []
13216
+ },
13217
+ {
13218
+ type: "function",
13219
+ name: "resolveDispute",
13220
+ constant: false,
13221
+ payable: false,
13222
+ inputs: [
11382
13223
  {
11383
- type: "address"
13224
+ type: "uint256",
13225
+ name: "caseId"
13226
+ },
13227
+ {
13228
+ type: "bytes",
13229
+ name: "response"
13230
+ },
13231
+ {
13232
+ type: "tuple[]",
13233
+ name: "guardianSignatures",
13234
+ components: [
13235
+ {
13236
+ type: "bytes32",
13237
+ name: "r"
13238
+ },
13239
+ {
13240
+ type: "bytes32",
13241
+ name: "s"
13242
+ },
13243
+ {
13244
+ type: "uint8",
13245
+ name: "v"
13246
+ },
13247
+ {
13248
+ type: "uint8",
13249
+ name: "guardianIndex"
13250
+ }
13251
+ ]
11384
13252
  }
11385
- ]
13253
+ ],
13254
+ outputs: []
11386
13255
  },
11387
13256
  {
11388
13257
  type: "function",
11389
- name: "updateMaxRelayFee",
13258
+ name: "updateDisputeConfiguration",
11390
13259
  constant: false,
11391
13260
  payable: false,
11392
13261
  inputs: [
11393
13262
  {
11394
- type: "uint256",
11395
- name: "_maxRelayFee"
13263
+ type: "tuple",
13264
+ name: "disputeConfiguration",
13265
+ components: [
13266
+ {
13267
+ type: "address",
13268
+ name: "appealToken"
13269
+ },
13270
+ {
13271
+ type: "uint64",
13272
+ name: "disputeBondUsd"
13273
+ },
13274
+ {
13275
+ type: "uint64",
13276
+ name: "appealBondUsd"
13277
+ },
13278
+ {
13279
+ type: "uint64",
13280
+ name: "disputeThresholdUsd"
13281
+ },
13282
+ {
13283
+ type: "uint64",
13284
+ name: "caseDuration"
13285
+ },
13286
+ {
13287
+ type: "uint64",
13288
+ name: "voteDuration"
13289
+ },
13290
+ {
13291
+ type: "uint64",
13292
+ name: "resolveDuration"
13293
+ },
13294
+ {
13295
+ type: "uint32",
13296
+ name: "voteCountRate"
13297
+ },
13298
+ {
13299
+ type: "uint32",
13300
+ name: "effectiveVoteRate"
13301
+ }
13302
+ ]
11396
13303
  }
11397
13304
  ],
11398
13305
  outputs: []
11399
13306
  },
11400
13307
  {
11401
13308
  type: "function",
11402
- name: "updateRelayInfo",
13309
+ name: "updateWormholeConfiguration",
11403
13310
  constant: false,
11404
13311
  payable: false,
11405
13312
  inputs: [
11406
13313
  {
11407
- type: "uint256",
11408
- name: "_relayFee"
11409
- },
11410
- {
11411
- type: "uint256",
11412
- name: "_relayGas"
13314
+ type: "tuple",
13315
+ name: "wormholeConfiguration",
13316
+ components: [
13317
+ {
13318
+ type: "address",
13319
+ name: "wormhole"
13320
+ },
13321
+ {
13322
+ type: "address",
13323
+ name: "staker"
13324
+ },
13325
+ {
13326
+ type: "bytes4",
13327
+ name: "selector"
13328
+ }
13329
+ ]
11413
13330
  }
11414
13331
  ],
11415
13332
  outputs: []
@@ -11452,62 +13369,59 @@ var Forwarder_default = [
11452
13369
  },
11453
13370
  {
11454
13371
  type: "function",
11455
- name: "verify",
11456
- constant: true,
11457
- stateMutability: "view",
13372
+ name: "vote",
13373
+ constant: false,
11458
13374
  payable: false,
11459
13375
  inputs: [
11460
13376
  {
11461
- type: "tuple",
11462
- name: "request",
11463
- components: [
11464
- {
11465
- type: "address",
11466
- name: "from"
11467
- },
11468
- {
11469
- type: "address",
11470
- name: "to"
11471
- },
11472
- {
11473
- type: "uint256",
11474
- name: "value"
11475
- },
11476
- {
11477
- type: "uint256",
11478
- name: "gas"
11479
- },
11480
- {
11481
- type: "uint48",
11482
- name: "deadline"
11483
- },
11484
- {
11485
- type: "bytes",
11486
- name: "data"
11487
- },
11488
- {
11489
- type: "bytes",
11490
- name: "signature"
11491
- }
11492
- ]
11493
- }
11494
- ],
11495
- outputs: [
13377
+ type: "uint256",
13378
+ name: "caseId"
13379
+ },
11496
13380
  {
11497
- type: "bool"
13381
+ type: "address",
13382
+ name: "validator"
13383
+ },
13384
+ {
13385
+ type: "uint8",
13386
+ name: "voteOption"
13387
+ },
13388
+ {
13389
+ type: "uint256",
13390
+ name: "deadline"
13391
+ },
13392
+ {
13393
+ type: "uint8",
13394
+ name: "v"
13395
+ },
13396
+ {
13397
+ type: "bytes32",
13398
+ name: "r"
13399
+ },
13400
+ {
13401
+ type: "bytes32",
13402
+ name: "s"
11498
13403
  }
11499
- ]
13404
+ ],
13405
+ outputs: []
11500
13406
  }
11501
13407
  ];
11502
13408
 
11503
13409
  // src/web3/providers.ts
11504
13410
  var getTokenContract = async (chainId, tokenAddress) => {
11505
13411
  const provider = getJSONProvider(chainId);
11506
- return getContract(tokenAddress, IERC20Metadata_default, provider);
13412
+ return getContract(
13413
+ tokenAddress,
13414
+ IERC20Metadata_default,
13415
+ provider
13416
+ );
11507
13417
  };
11508
13418
  var getERC20Contract = async (chainId, tokenAddress) => {
11509
13419
  const provider = await getSignerProvider(chainId);
11510
- return getContract(tokenAddress, IERC20Metadata_default, provider);
13420
+ return getContract(
13421
+ tokenAddress,
13422
+ IERC20Metadata_default,
13423
+ provider
13424
+ );
11511
13425
  };
11512
13426
  var getAccount = async (chainId) => {
11513
13427
  const provider = await getSignerProvider(chainId);
@@ -11518,13 +13432,21 @@ var getLiquidityRouterContract = async (chainId) => {
11518
13432
  const addresses = address_default[chainId];
11519
13433
  const address = addresses.LIQUIDITY_ROUTER;
11520
13434
  const provider = await getSignerProvider(chainId);
11521
- return getContract(address, LiquidityRouter_default, provider);
13435
+ return getContract(
13436
+ address,
13437
+ LiquidityRouter_default,
13438
+ provider
13439
+ );
11522
13440
  };
11523
13441
  var getPoolManagerContract = async (chainId, type = 1 /* Signer */) => {
11524
13442
  const addresses = address_default[chainId];
11525
13443
  const address = addresses.POOL_MANAGER;
11526
13444
  const provider = type === 0 /* JSON */ ? getJSONProvider(chainId) : await getSignerProvider(chainId);
11527
- return getContract(address, PoolManager_default, provider);
13445
+ return getContract(
13446
+ address,
13447
+ PoolManager_default,
13448
+ provider
13449
+ );
11528
13450
  };
11529
13451
  var getQuotePoolContract = async (chainId, type = 0 /* JSON */) => {
11530
13452
  const addresses = address_default[chainId];
@@ -11567,13 +13489,21 @@ var getMarketManageContract = async (chainId, type = 0 /* JSON */) => {
11567
13489
  const address = addresses.MARKET_MANAGER;
11568
13490
  console.log(addresses.MARKET_MANAGER);
11569
13491
  const provider = type === 0 /* JSON */ ? getJSONProvider(chainId) : await getSignerProvider(chainId);
11570
- return getContract(address, MarketManager_default, provider);
13492
+ return getContract(
13493
+ address,
13494
+ MarketManager_default,
13495
+ provider
13496
+ );
11571
13497
  };
11572
13498
  var getDataProviderContract = async (chainId, type = 0 /* JSON */) => {
11573
13499
  const addresses = address_default[chainId];
11574
13500
  const address = addresses.DATA_PROVIDER;
11575
13501
  const provider = type === 0 /* JSON */ ? getJSONProvider(chainId) : await getSignerProvider(chainId);
11576
- return getContract(address, DataProvider_default, provider);
13502
+ return getContract(
13503
+ address,
13504
+ DataProvider_default,
13505
+ provider
13506
+ );
11577
13507
  };
11578
13508
  var getForwarderContract = async (chainId, type = 0 /* JSON */) => {
11579
13509
  const addresses = address_default[chainId];
@@ -11581,6 +13511,26 @@ var getForwarderContract = async (chainId, type = 0 /* JSON */) => {
11581
13511
  const provider = type === 0 /* JSON */ ? getJSONProvider(chainId) : await getSignerProvider(chainId);
11582
13512
  return getContract(address, Forwarder_default, provider);
11583
13513
  };
13514
+ var getReimbursementContract = async (chainId, type = 0 /* JSON */) => {
13515
+ const addresses = address_default[chainId];
13516
+ const address = addresses.REIMBURSEMENT;
13517
+ const provider = type === 0 /* JSON */ ? getJSONProvider(chainId) : await getSignerProvider(chainId);
13518
+ return getContract(
13519
+ address,
13520
+ Reimbursement_default,
13521
+ provider
13522
+ );
13523
+ };
13524
+ var getDisputeCourtContract = async (chainId, type = 0 /* JSON */) => {
13525
+ const addresses = address_default[chainId];
13526
+ const address = addresses.DISPUTE_COURT;
13527
+ const provider = type === 0 /* JSON */ ? getJSONProvider(chainId) : await getSignerProvider(chainId);
13528
+ return getContract(
13529
+ address,
13530
+ DisputeCourt_default,
13531
+ provider
13532
+ );
13533
+ };
11584
13534
 
11585
13535
  // src/config/error.ts
11586
13536
  var import_ethers_decode_error = require("ethers-decode-error");
@@ -19460,7 +21410,9 @@ var ARB_BETA_SEPOLIA = {
19460
21410
  MARKET_MANAGER: "0x0Da479B4048d896e5B329C66E534C20efcB38270",
19461
21411
  DATA_PROVIDER: "0x19dD80bF40Af2d891F270085D9B1C49730a5a6B0",
19462
21412
  ORACLE_RESERVE: "0x3e0d8fAd0a5245D0b2C9d893fE155397a307577C",
19463
- FORWARDER: "0xf58CAEDf8A76331848ef51108ea102D920Dcf785"
21413
+ FORWARDER: "0xf58CAEDf8A76331848ef51108ea102D920Dcf785",
21414
+ DISPUTE_COURT: "0x0faB14a9e04CC254D4a6909cA6b0b34fEf776DB1",
21415
+ REIMBURSEMENT: "0xd99cfa26dB8b00A96f418BE0dF8a0463b23B623a"
19464
21416
  };
19465
21417
 
19466
21418
  // src/config/address/LINEA_BETA_SEPOLIA.ts
@@ -19482,7 +21434,9 @@ var LINEA_BETA_SEPOLIA = {
19482
21434
  DATA_PROVIDER: "0x5b6Be9839552a49302d552aB3C223b60Adb8BF1D",
19483
21435
  ORACLE_RESERVE: "0xB3D5a67223905FE73a0749e7A03525838063C54C",
19484
21436
  USDC: "0xD984fd34f91F92DA0586e1bE82E262fF27DC431b",
19485
- FORWARDER: "0x6C40462A4d45BA4119af59Fb9e41b8eaC9293962"
21437
+ FORWARDER: "0x6C40462A4d45BA4119af59Fb9e41b8eaC9293962",
21438
+ DISPUTE_COURT: "",
21439
+ REIMBURSEMENT: ""
19486
21440
  };
19487
21441
 
19488
21442
  // src/config/address/BSC_BETA_NET.ts
@@ -20096,7 +22050,7 @@ var Utils = class {
20096
22050
  }
20097
22051
  return null;
20098
22052
  }
20099
- async getApproveQuoteAmount(address, chainId, quoteAddress, spenderAddress) {
22053
+ async getApproveQuoteAmount(account, chainId, tokenAddress, spenderAddress) {
20100
22054
  try {
20101
22055
  const erc20Abi = [
20102
22056
  "function allowance(address owner, address spender) external view returns (uint256)"
@@ -20104,11 +22058,11 @@ var Utils = class {
20104
22058
  const spender = spenderAddress ?? getContractAddressByChainId(chainId).Account;
20105
22059
  const provider = await getJSONProvider(chainId);
20106
22060
  const tokenContract = new import_ethers25.ethers.Contract(
20107
- quoteAddress,
22061
+ tokenAddress,
20108
22062
  erc20Abi,
20109
22063
  provider
20110
22064
  );
20111
- const allowance = await tokenContract.allowance(address, spender);
22065
+ const allowance = await tokenContract.allowance(account, spender);
20112
22066
  return {
20113
22067
  code: 0,
20114
22068
  data: allowance.toString()
@@ -20118,12 +22072,12 @@ var Utils = class {
20118
22072
  throw typeof error === "string" ? error : await getErrorTextFormError(error);
20119
22073
  }
20120
22074
  }
20121
- async needsApproval(address, chainId, quoteAddress, requiredAmount, spenderAddress) {
22075
+ async needsApproval(account, chainId, tokenAddress, requiredAmount, spenderAddress) {
20122
22076
  try {
20123
22077
  const currentAllowanceRes = await this.getApproveQuoteAmount(
20124
- address,
22078
+ account,
20125
22079
  chainId,
20126
- quoteAddress,
22080
+ tokenAddress,
20127
22081
  spenderAddress
20128
22082
  );
20129
22083
  const currentAllowance = currentAllowanceRes.data;
@@ -20207,9 +22161,7 @@ var Utils = class {
20207
22161
  }
20208
22162
  }
20209
22163
  async getNetworkFee(quoteAddress, chainId) {
20210
- const orderManagerAddress = getContractAddressByChainId(
20211
- chainId
20212
- ).ORDER_MANAGER;
22164
+ const orderManagerAddress = getContractAddressByChainId(chainId).ORDER_MANAGER;
20213
22165
  const provider = await getJSONProvider(chainId);
20214
22166
  const orderManagerContract = new import_ethers25.ethers.Contract(
20215
22167
  orderManagerAddress,
@@ -20233,15 +22185,24 @@ var Utils = class {
20233
22185
  return priceData;
20234
22186
  } catch (error) {
20235
22187
  this.logger.error("Error getting oracle price:", error);
20236
- return {
20237
- price: "0",
20238
- vaa: "",
20239
- publishTime: 0,
20240
- poolId: "",
20241
- value: 0
20242
- };
22188
+ throw error;
20243
22189
  }
20244
22190
  }
22191
+ async buildUpdatePriceParams(poolId, chainId) {
22192
+ const priceData = await this.getOraclePrice(poolId, chainId);
22193
+ if (!priceData) throw new Error("Failed to get price data");
22194
+ return [
22195
+ {
22196
+ poolId,
22197
+ referencePrice: import_ethers25.ethers.parseUnits(priceData.price, 30),
22198
+ oracleUpdateData: priceData.vaa,
22199
+ publishTime: priceData.publishTime,
22200
+ oracleType: priceData.oracleType,
22201
+ value: priceData.value,
22202
+ price: priceData.price
22203
+ }
22204
+ ];
22205
+ }
20245
22206
  transferKlineResolutionToInterval(resolution) {
20246
22207
  switch (resolution) {
20247
22208
  case "1m":
@@ -20309,7 +22270,10 @@ var Utils = class {
20309
22270
  }) {
20310
22271
  try {
20311
22272
  const dataProviderContract = await getDataProviderContract(chainId);
20312
- const poolInfo = await dataProviderContract.getPoolInfo(poolId, marketPrice);
22273
+ const poolInfo = await dataProviderContract.getPoolInfo(
22274
+ poolId,
22275
+ marketPrice
22276
+ );
20313
22277
  return {
20314
22278
  code: 0,
20315
22279
  data: poolInfo
@@ -20359,6 +22323,14 @@ var Utils = class {
20359
22323
  }
20360
22324
  return JSON.stringify(error);
20361
22325
  }
22326
+ async getGasPriceByRatio() {
22327
+ const chainId = this.configManager.getConfig().chainId;
22328
+ return (await bigintTradingGasPriceWithRatio(chainId)).gasPrice;
22329
+ }
22330
+ async getGasLimitByRatio(gasLimit) {
22331
+ const chainId = this.configManager.getConfig().chainId;
22332
+ return bigintTradingGasToRatioCalculator(gasLimit, chainId);
22333
+ }
20362
22334
  };
20363
22335
 
20364
22336
  // src/manager/account/index.ts
@@ -22222,6 +24194,175 @@ var BaseMyxClient = class {
22222
24194
  }
22223
24195
  return getBrokerContract(config.chainId, config.brokerAddress);
22224
24196
  }
24197
+ get config() {
24198
+ return this.getConfig();
24199
+ }
24200
+ };
24201
+
24202
+ // src/manager/appeal/index.ts
24203
+ var Appeal = class extends BaseMyxClient {
24204
+ constructor(client2) {
24205
+ super(client2);
24206
+ }
24207
+ async getDisputeCourtContract() {
24208
+ const contract = await getDisputeCourtContract(this.config.chainId);
24209
+ return this.connectContract(contract);
24210
+ }
24211
+ async getReimbursementContract() {
24212
+ const contract = await getReimbursementContract(this.config.chainId);
24213
+ return this.connectContract(contract);
24214
+ }
24215
+ /**
24216
+ * submit appeal
24217
+ * @param poolId - the pool id
24218
+ * @param poolToken - the pool token
24219
+ * @returns the transaction receipt
24220
+ */
24221
+ async submitAppeal(poolId, lpToken, lpAmount) {
24222
+ const account = await this.config.signer?.getAddress() ?? "";
24223
+ const needApprove = await this.client.utils.needsApproval(
24224
+ account,
24225
+ this.config.chainId,
24226
+ lpToken,
24227
+ lpAmount,
24228
+ this.getAddressConfig().DISPUTE_COURT
24229
+ );
24230
+ this.client.logger.debug("need-approve", needApprove);
24231
+ if (needApprove) {
24232
+ await this.client.utils.approveAuthorization({
24233
+ chainId: this.config.chainId,
24234
+ quoteAddress: lpToken,
24235
+ spenderAddress: this.getAddressConfig().DISPUTE_COURT
24236
+ });
24237
+ }
24238
+ const contract = await this.getDisputeCourtContract();
24239
+ const prices = await this.client.utils.buildUpdatePriceParams(
24240
+ poolId,
24241
+ this.config.chainId
24242
+ );
24243
+ const value = BigInt(prices[0].value.toString() || "1");
24244
+ const _gasLimit = await contract.fileDispute.estimateGas(
24245
+ prices,
24246
+ poolId,
24247
+ lpToken,
24248
+ {
24249
+ value
24250
+ }
24251
+ );
24252
+ const gasLimit = await this.client.utils.getGasLimitByRatio(_gasLimit);
24253
+ const gasPrice = await this.client.utils.getGasPriceByRatio();
24254
+ this.client.logger.debug("txParams", {
24255
+ gasLimit,
24256
+ gasPrice,
24257
+ value
24258
+ });
24259
+ const tx = await contract.fileDispute(prices, poolId, lpToken, {
24260
+ value,
24261
+ gasLimit,
24262
+ gasPrice
24263
+ });
24264
+ const receipt = await tx.wait();
24265
+ return receipt;
24266
+ }
24267
+ /**
24268
+ * vote for appeal
24269
+ * @param caseId - the case id
24270
+ * @param isFor - true if for the appeal, false if against the appeal
24271
+ * @returns the transaction receipt
24272
+ */
24273
+ async voteForAppeal({
24274
+ caseId,
24275
+ validator,
24276
+ isFor,
24277
+ deadline,
24278
+ v,
24279
+ r,
24280
+ s
24281
+ }) {
24282
+ const contract = await this.getDisputeCourtContract();
24283
+ const _gasLimit = await contract.vote.estimateGas(
24284
+ caseId,
24285
+ validator,
24286
+ isFor ? 1 : 0,
24287
+ deadline,
24288
+ v,
24289
+ r,
24290
+ s
24291
+ );
24292
+ const gasLimit = await this.client.utils.getGasLimitByRatio(_gasLimit);
24293
+ const gasPrice = await this.client.utils.getGasPriceByRatio();
24294
+ const tx = await contract.vote(
24295
+ caseId,
24296
+ validator,
24297
+ isFor ? 1 : 0,
24298
+ deadline,
24299
+ v,
24300
+ r,
24301
+ s,
24302
+ {
24303
+ gasLimit,
24304
+ gasPrice
24305
+ }
24306
+ );
24307
+ const receipt = await tx.wait();
24308
+ return receipt;
24309
+ }
24310
+ /**
24311
+ * claim appeal margin
24312
+ * @param caseId - the case id
24313
+ * @returns the transaction receipt
24314
+ */
24315
+ async claimAppealMargin(caseId) {
24316
+ const contract = await this.getDisputeCourtContract();
24317
+ const _gasLimit = await contract.claimBond.estimateGas(caseId);
24318
+ const gasLimit = await this.client.utils.getGasLimitByRatio(_gasLimit);
24319
+ const gasPrice = await this.client.utils.getGasPriceByRatio();
24320
+ const tx = await contract.claimBond(caseId, {
24321
+ gasLimit,
24322
+ gasPrice
24323
+ });
24324
+ const receipt = await tx.wait();
24325
+ return receipt;
24326
+ }
24327
+ /**
24328
+ * claim reimbursement
24329
+ * @param caseId - the case id
24330
+ * @param baseAmount - the base amount
24331
+ * @param quoteAmount - the quote amount
24332
+ * @param merkleProof - the merkle proof
24333
+ * @returns the transaction receipt
24334
+ */
24335
+ async claimReimbursement(caseId, baseAmount, quoteAmount, merkleProof) {
24336
+ const contract = await this.getReimbursementContract();
24337
+ const _gasLimit = await contract.claimReimbursement.estimateGas(
24338
+ caseId,
24339
+ baseAmount,
24340
+ quoteAmount,
24341
+ merkleProof
24342
+ );
24343
+ const gasLimit = await this.client.utils.getGasLimitByRatio(_gasLimit);
24344
+ const gasPrice = await this.client.utils.getGasPriceByRatio();
24345
+ const tx = await contract.claimReimbursement(
24346
+ caseId,
24347
+ baseAmount,
24348
+ quoteAmount,
24349
+ merkleProof,
24350
+ {
24351
+ gasLimit,
24352
+ gasPrice
24353
+ }
24354
+ );
24355
+ const receipt = await tx.wait();
24356
+ return receipt;
24357
+ }
24358
+ /**
24359
+ * get dispute configuration
24360
+ */
24361
+ async getDisputeConfiguration() {
24362
+ const contract = await this.getDisputeCourtContract();
24363
+ const configuration = await contract.getDisputeConfiguration();
24364
+ return configuration;
24365
+ }
22225
24366
  };
22226
24367
 
22227
24368
  // src/manager/referrals/index.tsx
@@ -22233,7 +24374,15 @@ var Referrals = class extends BaseMyxClient {
22233
24374
  const brokerContract = await this.connectContract(
22234
24375
  await this.getBrokerContract()
22235
24376
  );
22236
- const tx = await brokerContract.claimRebate(tokenAddress);
24377
+ const _gasLimit = await brokerContract.claimRebate.estimateGas(
24378
+ tokenAddress
24379
+ );
24380
+ const gasLimit = await this.client.utils.getGasLimitByRatio(_gasLimit);
24381
+ const gasPrice = await this.client.utils.getGasPriceByRatio();
24382
+ const tx = await brokerContract.claimRebate(tokenAddress, {
24383
+ gasPrice,
24384
+ gasLimit
24385
+ });
22237
24386
  const receipt = await tx.wait();
22238
24387
  return receipt;
22239
24388
  }
@@ -22288,6 +24437,7 @@ var MyxClient = class {
22288
24437
  this.api
22289
24438
  );
22290
24439
  this.subscription = new SubScription(this.configManager, this.logger);
24440
+ this.appeal = new Appeal(this);
22291
24441
  this.referrals = new Referrals(this);
22292
24442
  }
22293
24443
  /**