@myx-trade/sdk 0.1.245-beta.9 → 0.1.246
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.d.mts +192 -446
- package/dist/index.d.ts +192 -446
- package/dist/index.js +676 -2775
- package/dist/index.mjs +676 -2765
- package/package.json +21 -18
package/dist/index.js
CHANGED
|
@@ -37,13 +37,6 @@ var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "
|
|
|
37
37
|
// src/index.ts
|
|
38
38
|
var index_exports = {};
|
|
39
39
|
__export(index_exports, {
|
|
40
|
-
AppealCaseTypeEnum: () => AppealCaseTypeEnum,
|
|
41
|
-
AppealClaimStatusEnum: () => AppealClaimStatusEnum,
|
|
42
|
-
AppealNodeStateEnum: () => AppealNodeStateEnum,
|
|
43
|
-
AppealNodeVotedStateEnum: () => AppealNodeVotedStateEnum,
|
|
44
|
-
AppealReconsiderationType: () => AppealReconsiderationType,
|
|
45
|
-
AppealStage: () => AppealStage,
|
|
46
|
-
AppealType: () => AppealType,
|
|
47
40
|
COMMON_LP_AMOUNT_DECIMALS: () => COMMON_LP_AMOUNT_DECIMALS,
|
|
48
41
|
COMMON_PRICE_DECIMALS: () => COMMON_PRICE_DECIMALS,
|
|
49
42
|
ChainId: () => ChainId,
|
|
@@ -54,13 +47,11 @@ __export(index_exports, {
|
|
|
54
47
|
ExecTypeEnum: () => ExecTypeEnum,
|
|
55
48
|
ForwarderGetStatus: () => ForwarderGetStatus,
|
|
56
49
|
HttpKlineIntervalEnum: () => HttpKlineIntervalEnum,
|
|
57
|
-
IsVoteNodeEnum: () => IsVoteNodeEnum,
|
|
58
50
|
MarketCapType: () => MarketCapType,
|
|
59
51
|
MarketPoolState: () => MarketPoolState,
|
|
60
52
|
MarketType: () => MarketType,
|
|
61
53
|
MxSDK: () => MxSDK,
|
|
62
54
|
MyxClient: () => MyxClient,
|
|
63
|
-
NodeTypeEnum: () => NodeTypeEnum,
|
|
64
55
|
OperationEnum: () => OperationEnum,
|
|
65
56
|
OperationType: () => OperationType,
|
|
66
57
|
OracleType: () => OracleType,
|
|
@@ -75,7 +66,6 @@ __export(index_exports, {
|
|
|
75
66
|
TradeFlowTypeEnum: () => TradeFlowTypeEnum,
|
|
76
67
|
TriggerType: () => TriggerType2,
|
|
77
68
|
TriggerTypeEnum: () => TriggerTypeEnum,
|
|
78
|
-
VoteTypeEnum: () => VoteTypeEnum,
|
|
79
69
|
approve: () => approve,
|
|
80
70
|
base: () => base_exports,
|
|
81
71
|
bigintAmountSlipperCalculator: () => bigintAmountSlipperCalculator,
|
|
@@ -1472,9 +1462,7 @@ var ARB_TEST_SEPOLIA = {
|
|
|
1472
1462
|
DATA_PROVIDER: "0x1E1487d92f6FDbeEa8C2b48610CDCfbCC9c40fa3",
|
|
1473
1463
|
ORACLE_RESERVE: "0xb5f9C48815ab45BdC080523cF82Aaa2F7892b578",
|
|
1474
1464
|
FORWARDER: "0xc5A9f5786Ec4EBf5eeaD5C9263dD6105189C05F9",
|
|
1475
|
-
TRADING_ROUTER: "0x9B9359C2a5C1B103cC5bf66bDB0B78370dc4E706"
|
|
1476
|
-
REIMBURSEMENT: "0x4583A223299b94B95d6937bEF6753afee2b8f81A",
|
|
1477
|
-
DISPUTE_COURT: "0xc6b8b22F0b06caae5C823926205a38276C65718f"
|
|
1465
|
+
TRADING_ROUTER: "0x9B9359C2a5C1B103cC5bf66bDB0B78370dc4E706"
|
|
1478
1466
|
};
|
|
1479
1467
|
|
|
1480
1468
|
// src/config/address/LINEA_SEPOLIA.ts
|
|
@@ -1497,9 +1485,7 @@ var LINEA_SEPOLIA = {
|
|
|
1497
1485
|
DATA_PROVIDER: "0x0A64788b7FB6499fd2eFbb26A5D05e7C6B919db3",
|
|
1498
1486
|
ORACLE_RESERVE: "0xA4da3417Ae7697A4fa494Bec49b37F0Fb08E86e9",
|
|
1499
1487
|
FORWARDER: "0x702c06d4bb20Ee82Cf3DE8f5611FE3a86067e937",
|
|
1500
|
-
TRADING_ROUTER: "0x97656464d608A7d1Ac5B6C42655C6806A16aF5C4"
|
|
1501
|
-
REIMBURSEMENT: "0x427E0C7E84D8D75f971c62D0688009B421598cCb",
|
|
1502
|
-
DISPUTE_COURT: "0x2f2dec0Cf321a9dA64BEf7dB0b84d998E37dBB11"
|
|
1488
|
+
TRADING_ROUTER: "0x97656464d608A7d1Ac5B6C42655C6806A16aF5C4"
|
|
1503
1489
|
};
|
|
1504
1490
|
|
|
1505
1491
|
// src/config/address/BSC_TEST_NET.ts
|
|
@@ -1522,9 +1508,7 @@ var BSC_TEST_NET = {
|
|
|
1522
1508
|
DATA_PROVIDER: "0x827c4D63eCafE28bC7f1aFF460f9A14b4938d76e",
|
|
1523
1509
|
ORACLE_RESERVE: "0xCF72C9fB77cF051F079151d5955753A5b93F4E92",
|
|
1524
1510
|
FORWARDER: "0x2912Ae76E175776B44E3a0f67E60F2624AEeED03",
|
|
1525
|
-
TRADING_ROUTER: "0x0000000000000000000000000000000000000000"
|
|
1526
|
-
REIMBURSEMENT: "0x0000000000000000000000000000000000000000",
|
|
1527
|
-
DISPUTE_COURT: "0x0000000000000000000000000000000000000000"
|
|
1511
|
+
TRADING_ROUTER: "0x0000000000000000000000000000000000000000"
|
|
1528
1512
|
};
|
|
1529
1513
|
|
|
1530
1514
|
// src/config/address.ts
|
|
@@ -1533,6 +1517,18 @@ var address_default = {
|
|
|
1533
1517
|
[59141 /* LINEA_SEPOLIA */]: LINEA_SEPOLIA,
|
|
1534
1518
|
[97 /* BSC_TESTNET */]: BSC_TEST_NET
|
|
1535
1519
|
};
|
|
1520
|
+
var executeAddressByChainId = (chainId) => {
|
|
1521
|
+
if (chainId === 421614 /* ARB_TESTNET */) {
|
|
1522
|
+
return "0x7e248ec1721639413a280d9e82e2862cae2e6e28";
|
|
1523
|
+
}
|
|
1524
|
+
if (chainId === 59141 /* LINEA_SEPOLIA */) {
|
|
1525
|
+
return "";
|
|
1526
|
+
}
|
|
1527
|
+
if (chainId === 97 /* BSC_TESTNET */) {
|
|
1528
|
+
return "";
|
|
1529
|
+
}
|
|
1530
|
+
return "";
|
|
1531
|
+
};
|
|
1536
1532
|
|
|
1537
1533
|
// src/web3/index.ts
|
|
1538
1534
|
var import_ethers2 = require("ethers");
|
|
@@ -1855,7 +1851,7 @@ var RotationProvider = class extends import_providers.BaseProvider {
|
|
|
1855
1851
|
// package.json
|
|
1856
1852
|
var package_default = {
|
|
1857
1853
|
name: "@myx-trade/sdk",
|
|
1858
|
-
version: "0.1.
|
|
1854
|
+
version: "0.1.246",
|
|
1859
1855
|
private: false,
|
|
1860
1856
|
publishConfig: {
|
|
1861
1857
|
access: "public"
|
|
@@ -10362,1931 +10358,14 @@ var Forwarder_default = [
|
|
|
10362
10358
|
}
|
|
10363
10359
|
];
|
|
10364
10360
|
|
|
10365
|
-
// src/abi/Reimbursement.json
|
|
10366
|
-
var Reimbursement_default = [
|
|
10367
|
-
{
|
|
10368
|
-
type: "error",
|
|
10369
|
-
name: "AddressEmptyCode",
|
|
10370
|
-
inputs: [
|
|
10371
|
-
{
|
|
10372
|
-
type: "address",
|
|
10373
|
-
name: "target"
|
|
10374
|
-
}
|
|
10375
|
-
]
|
|
10376
|
-
},
|
|
10377
|
-
{
|
|
10378
|
-
type: "error",
|
|
10379
|
-
name: "AlreadyClaimed",
|
|
10380
|
-
inputs: [
|
|
10381
|
-
{
|
|
10382
|
-
type: "uint256",
|
|
10383
|
-
name: "caseId"
|
|
10384
|
-
},
|
|
10385
|
-
{
|
|
10386
|
-
type: "address",
|
|
10387
|
-
name: "user"
|
|
10388
|
-
}
|
|
10389
|
-
]
|
|
10390
|
-
},
|
|
10391
|
-
{
|
|
10392
|
-
type: "error",
|
|
10393
|
-
name: "ERC1967InvalidImplementation",
|
|
10394
|
-
inputs: [
|
|
10395
|
-
{
|
|
10396
|
-
type: "address",
|
|
10397
|
-
name: "implementation"
|
|
10398
|
-
}
|
|
10399
|
-
]
|
|
10400
|
-
},
|
|
10401
|
-
{
|
|
10402
|
-
type: "error",
|
|
10403
|
-
name: "ERC1967NonPayable",
|
|
10404
|
-
inputs: []
|
|
10405
|
-
},
|
|
10406
|
-
{
|
|
10407
|
-
type: "error",
|
|
10408
|
-
name: "FailedCall",
|
|
10409
|
-
inputs: []
|
|
10410
|
-
},
|
|
10411
|
-
{
|
|
10412
|
-
type: "error",
|
|
10413
|
-
name: "InvalidAmount",
|
|
10414
|
-
inputs: [
|
|
10415
|
-
{
|
|
10416
|
-
type: "uint256",
|
|
10417
|
-
name: "caseId"
|
|
10418
|
-
},
|
|
10419
|
-
{
|
|
10420
|
-
type: "address",
|
|
10421
|
-
name: "user"
|
|
10422
|
-
}
|
|
10423
|
-
]
|
|
10424
|
-
},
|
|
10425
|
-
{
|
|
10426
|
-
type: "error",
|
|
10427
|
-
name: "InvalidInitialization",
|
|
10428
|
-
inputs: []
|
|
10429
|
-
},
|
|
10430
|
-
{
|
|
10431
|
-
type: "error",
|
|
10432
|
-
name: "MerkleTreeVerificationFailed",
|
|
10433
|
-
inputs: [
|
|
10434
|
-
{
|
|
10435
|
-
type: "uint256",
|
|
10436
|
-
name: "caseId"
|
|
10437
|
-
},
|
|
10438
|
-
{
|
|
10439
|
-
type: "address",
|
|
10440
|
-
name: "user"
|
|
10441
|
-
}
|
|
10442
|
-
]
|
|
10443
|
-
},
|
|
10444
|
-
{
|
|
10445
|
-
type: "error",
|
|
10446
|
-
name: "NotAddressManager",
|
|
10447
|
-
inputs: []
|
|
10448
|
-
},
|
|
10449
|
-
{
|
|
10450
|
-
type: "error",
|
|
10451
|
-
name: "NotDependencyManager",
|
|
10452
|
-
inputs: []
|
|
10453
|
-
},
|
|
10454
|
-
{
|
|
10455
|
-
type: "error",
|
|
10456
|
-
name: "NotInitializing",
|
|
10457
|
-
inputs: []
|
|
10458
|
-
},
|
|
10459
|
-
{
|
|
10460
|
-
type: "error",
|
|
10461
|
-
name: "NotProxyAdmin",
|
|
10462
|
-
inputs: []
|
|
10463
|
-
},
|
|
10464
|
-
{
|
|
10465
|
-
type: "error",
|
|
10466
|
-
name: "PermissionDenied",
|
|
10467
|
-
inputs: [
|
|
10468
|
-
{
|
|
10469
|
-
type: "address",
|
|
10470
|
-
name: "caller"
|
|
10471
|
-
},
|
|
10472
|
-
{
|
|
10473
|
-
type: "address",
|
|
10474
|
-
name: "target"
|
|
10475
|
-
}
|
|
10476
|
-
]
|
|
10477
|
-
},
|
|
10478
|
-
{
|
|
10479
|
-
type: "error",
|
|
10480
|
-
name: "ReimbursementValidity",
|
|
10481
|
-
inputs: [
|
|
10482
|
-
{
|
|
10483
|
-
type: "uint256",
|
|
10484
|
-
name: "caseId"
|
|
10485
|
-
}
|
|
10486
|
-
]
|
|
10487
|
-
},
|
|
10488
|
-
{
|
|
10489
|
-
type: "error",
|
|
10490
|
-
name: "SafeERC20FailedOperation",
|
|
10491
|
-
inputs: [
|
|
10492
|
-
{
|
|
10493
|
-
type: "address",
|
|
10494
|
-
name: "token"
|
|
10495
|
-
}
|
|
10496
|
-
]
|
|
10497
|
-
},
|
|
10498
|
-
{
|
|
10499
|
-
type: "error",
|
|
10500
|
-
name: "UUPSUnauthorizedCallContext",
|
|
10501
|
-
inputs: []
|
|
10502
|
-
},
|
|
10503
|
-
{
|
|
10504
|
-
type: "error",
|
|
10505
|
-
name: "UUPSUnsupportedProxiableUUID",
|
|
10506
|
-
inputs: [
|
|
10507
|
-
{
|
|
10508
|
-
type: "bytes32",
|
|
10509
|
-
name: "slot"
|
|
10510
|
-
}
|
|
10511
|
-
]
|
|
10512
|
-
},
|
|
10513
|
-
{
|
|
10514
|
-
type: "event",
|
|
10515
|
-
anonymous: false,
|
|
10516
|
-
name: "Initialized",
|
|
10517
|
-
inputs: [
|
|
10518
|
-
{
|
|
10519
|
-
type: "uint64",
|
|
10520
|
-
name: "version",
|
|
10521
|
-
indexed: false
|
|
10522
|
-
}
|
|
10523
|
-
]
|
|
10524
|
-
},
|
|
10525
|
-
{
|
|
10526
|
-
type: "event",
|
|
10527
|
-
anonymous: false,
|
|
10528
|
-
name: "ReimbursementClaimed",
|
|
10529
|
-
inputs: [
|
|
10530
|
-
{
|
|
10531
|
-
type: "uint256",
|
|
10532
|
-
name: "caseId",
|
|
10533
|
-
indexed: false
|
|
10534
|
-
},
|
|
10535
|
-
{
|
|
10536
|
-
type: "address",
|
|
10537
|
-
name: "user",
|
|
10538
|
-
indexed: false
|
|
10539
|
-
},
|
|
10540
|
-
{
|
|
10541
|
-
type: "uint256",
|
|
10542
|
-
name: "baseAmount",
|
|
10543
|
-
indexed: false
|
|
10544
|
-
},
|
|
10545
|
-
{
|
|
10546
|
-
type: "uint256",
|
|
10547
|
-
name: "quoteAmount",
|
|
10548
|
-
indexed: false
|
|
10549
|
-
}
|
|
10550
|
-
]
|
|
10551
|
-
},
|
|
10552
|
-
{
|
|
10553
|
-
type: "event",
|
|
10554
|
-
anonymous: false,
|
|
10555
|
-
name: "ReimbursementInfoSet",
|
|
10556
|
-
inputs: [
|
|
10557
|
-
{
|
|
10558
|
-
type: "uint256",
|
|
10559
|
-
name: "caseId",
|
|
10560
|
-
indexed: false
|
|
10561
|
-
},
|
|
10562
|
-
{
|
|
10563
|
-
type: "bytes32",
|
|
10564
|
-
name: "merkleRoot",
|
|
10565
|
-
indexed: false
|
|
10566
|
-
},
|
|
10567
|
-
{
|
|
10568
|
-
type: "address",
|
|
10569
|
-
name: "baseToken",
|
|
10570
|
-
indexed: false
|
|
10571
|
-
},
|
|
10572
|
-
{
|
|
10573
|
-
type: "address",
|
|
10574
|
-
name: "quoteToken",
|
|
10575
|
-
indexed: false
|
|
10576
|
-
},
|
|
10577
|
-
{
|
|
10578
|
-
type: "uint256",
|
|
10579
|
-
name: "totalBaseAmount",
|
|
10580
|
-
indexed: false
|
|
10581
|
-
},
|
|
10582
|
-
{
|
|
10583
|
-
type: "uint256",
|
|
10584
|
-
name: "totalQuoteAmount",
|
|
10585
|
-
indexed: false
|
|
10586
|
-
},
|
|
10587
|
-
{
|
|
10588
|
-
type: "uint256",
|
|
10589
|
-
name: "claimedBaseAmount",
|
|
10590
|
-
indexed: false
|
|
10591
|
-
},
|
|
10592
|
-
{
|
|
10593
|
-
type: "uint256",
|
|
10594
|
-
name: "claimedQuoteAmount",
|
|
10595
|
-
indexed: false
|
|
10596
|
-
},
|
|
10597
|
-
{
|
|
10598
|
-
type: "uint256",
|
|
10599
|
-
name: "expireTime",
|
|
10600
|
-
indexed: false
|
|
10601
|
-
}
|
|
10602
|
-
]
|
|
10603
|
-
},
|
|
10604
|
-
{
|
|
10605
|
-
type: "event",
|
|
10606
|
-
anonymous: false,
|
|
10607
|
-
name: "Upgraded",
|
|
10608
|
-
inputs: [
|
|
10609
|
-
{
|
|
10610
|
-
type: "address",
|
|
10611
|
-
name: "implementation",
|
|
10612
|
-
indexed: true
|
|
10613
|
-
}
|
|
10614
|
-
]
|
|
10615
|
-
},
|
|
10616
|
-
{
|
|
10617
|
-
type: "function",
|
|
10618
|
-
name: "UPGRADE_INTERFACE_VERSION",
|
|
10619
|
-
constant: true,
|
|
10620
|
-
stateMutability: "view",
|
|
10621
|
-
payable: false,
|
|
10622
|
-
inputs: [],
|
|
10623
|
-
outputs: [
|
|
10624
|
-
{
|
|
10625
|
-
type: "string"
|
|
10626
|
-
}
|
|
10627
|
-
]
|
|
10628
|
-
},
|
|
10629
|
-
{
|
|
10630
|
-
type: "function",
|
|
10631
|
-
name: "claimReimbursement",
|
|
10632
|
-
constant: false,
|
|
10633
|
-
payable: false,
|
|
10634
|
-
inputs: [
|
|
10635
|
-
{
|
|
10636
|
-
type: "uint256",
|
|
10637
|
-
name: "caseId"
|
|
10638
|
-
},
|
|
10639
|
-
{
|
|
10640
|
-
type: "uint256",
|
|
10641
|
-
name: "baseAmount"
|
|
10642
|
-
},
|
|
10643
|
-
{
|
|
10644
|
-
type: "uint256",
|
|
10645
|
-
name: "quoteAmount"
|
|
10646
|
-
},
|
|
10647
|
-
{
|
|
10648
|
-
type: "bytes32[]",
|
|
10649
|
-
name: "merkleProof"
|
|
10650
|
-
}
|
|
10651
|
-
],
|
|
10652
|
-
outputs: []
|
|
10653
|
-
},
|
|
10654
|
-
{
|
|
10655
|
-
type: "function",
|
|
10656
|
-
name: "getAddressManager",
|
|
10657
|
-
constant: true,
|
|
10658
|
-
stateMutability: "view",
|
|
10659
|
-
payable: false,
|
|
10660
|
-
inputs: [],
|
|
10661
|
-
outputs: [
|
|
10662
|
-
{
|
|
10663
|
-
type: "address"
|
|
10664
|
-
}
|
|
10665
|
-
]
|
|
10666
|
-
},
|
|
10667
|
-
{
|
|
10668
|
-
type: "function",
|
|
10669
|
-
name: "getDependencyAddress",
|
|
10670
|
-
constant: true,
|
|
10671
|
-
stateMutability: "view",
|
|
10672
|
-
payable: false,
|
|
10673
|
-
inputs: [
|
|
10674
|
-
{
|
|
10675
|
-
type: "bytes32",
|
|
10676
|
-
name: "identifier"
|
|
10677
|
-
}
|
|
10678
|
-
],
|
|
10679
|
-
outputs: [
|
|
10680
|
-
{
|
|
10681
|
-
type: "address"
|
|
10682
|
-
}
|
|
10683
|
-
]
|
|
10684
|
-
},
|
|
10685
|
-
{
|
|
10686
|
-
type: "function",
|
|
10687
|
-
name: "getImplementation",
|
|
10688
|
-
constant: true,
|
|
10689
|
-
stateMutability: "view",
|
|
10690
|
-
payable: false,
|
|
10691
|
-
inputs: [],
|
|
10692
|
-
outputs: [
|
|
10693
|
-
{
|
|
10694
|
-
type: "address"
|
|
10695
|
-
}
|
|
10696
|
-
]
|
|
10697
|
-
},
|
|
10698
|
-
{
|
|
10699
|
-
type: "function",
|
|
10700
|
-
name: "getReimbursementInfo",
|
|
10701
|
-
constant: true,
|
|
10702
|
-
stateMutability: "view",
|
|
10703
|
-
payable: false,
|
|
10704
|
-
inputs: [
|
|
10705
|
-
{
|
|
10706
|
-
type: "uint256",
|
|
10707
|
-
name: "caseId"
|
|
10708
|
-
}
|
|
10709
|
-
],
|
|
10710
|
-
outputs: [
|
|
10711
|
-
{
|
|
10712
|
-
type: "tuple",
|
|
10713
|
-
components: [
|
|
10714
|
-
{
|
|
10715
|
-
type: "bytes32",
|
|
10716
|
-
name: "merkleRoot"
|
|
10717
|
-
},
|
|
10718
|
-
{
|
|
10719
|
-
type: "address",
|
|
10720
|
-
name: "baseToken"
|
|
10721
|
-
},
|
|
10722
|
-
{
|
|
10723
|
-
type: "address",
|
|
10724
|
-
name: "quoteToken"
|
|
10725
|
-
},
|
|
10726
|
-
{
|
|
10727
|
-
type: "uint256",
|
|
10728
|
-
name: "totalBaseAmount"
|
|
10729
|
-
},
|
|
10730
|
-
{
|
|
10731
|
-
type: "uint256",
|
|
10732
|
-
name: "totalQuoteAmount"
|
|
10733
|
-
},
|
|
10734
|
-
{
|
|
10735
|
-
type: "uint256",
|
|
10736
|
-
name: "claimedBaseAmount"
|
|
10737
|
-
},
|
|
10738
|
-
{
|
|
10739
|
-
type: "uint256",
|
|
10740
|
-
name: "claimedQuoteAmount"
|
|
10741
|
-
},
|
|
10742
|
-
{
|
|
10743
|
-
type: "uint256",
|
|
10744
|
-
name: "expireTime"
|
|
10745
|
-
}
|
|
10746
|
-
]
|
|
10747
|
-
}
|
|
10748
|
-
]
|
|
10749
|
-
},
|
|
10750
|
-
{
|
|
10751
|
-
type: "function",
|
|
10752
|
-
name: "initialize",
|
|
10753
|
-
constant: false,
|
|
10754
|
-
payable: false,
|
|
10755
|
-
inputs: [
|
|
10756
|
-
{
|
|
10757
|
-
type: "address",
|
|
10758
|
-
name: "addressManager"
|
|
10759
|
-
}
|
|
10760
|
-
],
|
|
10761
|
-
outputs: []
|
|
10762
|
-
},
|
|
10763
|
-
{
|
|
10764
|
-
type: "function",
|
|
10765
|
-
name: "proxiableUUID",
|
|
10766
|
-
constant: true,
|
|
10767
|
-
stateMutability: "view",
|
|
10768
|
-
payable: false,
|
|
10769
|
-
inputs: [],
|
|
10770
|
-
outputs: [
|
|
10771
|
-
{
|
|
10772
|
-
type: "bytes32"
|
|
10773
|
-
}
|
|
10774
|
-
]
|
|
10775
|
-
},
|
|
10776
|
-
{
|
|
10777
|
-
type: "function",
|
|
10778
|
-
name: "setReimbursementInfo",
|
|
10779
|
-
constant: false,
|
|
10780
|
-
payable: false,
|
|
10781
|
-
inputs: [
|
|
10782
|
-
{
|
|
10783
|
-
type: "uint256",
|
|
10784
|
-
name: "caseId"
|
|
10785
|
-
},
|
|
10786
|
-
{
|
|
10787
|
-
type: "tuple",
|
|
10788
|
-
name: "reimbursementInfo",
|
|
10789
|
-
components: [
|
|
10790
|
-
{
|
|
10791
|
-
type: "bytes32",
|
|
10792
|
-
name: "merkleRoot"
|
|
10793
|
-
},
|
|
10794
|
-
{
|
|
10795
|
-
type: "address",
|
|
10796
|
-
name: "baseToken"
|
|
10797
|
-
},
|
|
10798
|
-
{
|
|
10799
|
-
type: "address",
|
|
10800
|
-
name: "quoteToken"
|
|
10801
|
-
},
|
|
10802
|
-
{
|
|
10803
|
-
type: "uint256",
|
|
10804
|
-
name: "totalBaseAmount"
|
|
10805
|
-
},
|
|
10806
|
-
{
|
|
10807
|
-
type: "uint256",
|
|
10808
|
-
name: "totalQuoteAmount"
|
|
10809
|
-
},
|
|
10810
|
-
{
|
|
10811
|
-
type: "uint256",
|
|
10812
|
-
name: "claimedBaseAmount"
|
|
10813
|
-
},
|
|
10814
|
-
{
|
|
10815
|
-
type: "uint256",
|
|
10816
|
-
name: "claimedQuoteAmount"
|
|
10817
|
-
},
|
|
10818
|
-
{
|
|
10819
|
-
type: "uint256",
|
|
10820
|
-
name: "expireTime"
|
|
10821
|
-
}
|
|
10822
|
-
]
|
|
10823
|
-
}
|
|
10824
|
-
],
|
|
10825
|
-
outputs: []
|
|
10826
|
-
},
|
|
10827
|
-
{
|
|
10828
|
-
type: "function",
|
|
10829
|
-
name: "upgradeTo",
|
|
10830
|
-
constant: false,
|
|
10831
|
-
stateMutability: "payable",
|
|
10832
|
-
payable: true,
|
|
10833
|
-
inputs: [
|
|
10834
|
-
{
|
|
10835
|
-
type: "address",
|
|
10836
|
-
name: "newImplementation"
|
|
10837
|
-
},
|
|
10838
|
-
{
|
|
10839
|
-
type: "bytes",
|
|
10840
|
-
name: "data"
|
|
10841
|
-
}
|
|
10842
|
-
],
|
|
10843
|
-
outputs: []
|
|
10844
|
-
},
|
|
10845
|
-
{
|
|
10846
|
-
type: "function",
|
|
10847
|
-
name: "upgradeToAndCall",
|
|
10848
|
-
constant: false,
|
|
10849
|
-
stateMutability: "payable",
|
|
10850
|
-
payable: true,
|
|
10851
|
-
inputs: [
|
|
10852
|
-
{
|
|
10853
|
-
type: "address",
|
|
10854
|
-
name: "newImplementation"
|
|
10855
|
-
},
|
|
10856
|
-
{
|
|
10857
|
-
type: "bytes",
|
|
10858
|
-
name: "data"
|
|
10859
|
-
}
|
|
10860
|
-
],
|
|
10861
|
-
outputs: []
|
|
10862
|
-
}
|
|
10863
|
-
];
|
|
10864
|
-
|
|
10865
|
-
// src/abi/DisputeCourt.json
|
|
10866
|
-
var DisputeCourt_default = [
|
|
10867
|
-
{
|
|
10868
|
-
type: "constructor",
|
|
10869
|
-
payable: false,
|
|
10870
|
-
inputs: []
|
|
10871
|
-
},
|
|
10872
|
-
{
|
|
10873
|
-
type: "error",
|
|
10874
|
-
name: "AddressEmptyCode",
|
|
10875
|
-
inputs: [
|
|
10876
|
-
{
|
|
10877
|
-
type: "address",
|
|
10878
|
-
name: "target"
|
|
10879
|
-
}
|
|
10880
|
-
]
|
|
10881
|
-
},
|
|
10882
|
-
{
|
|
10883
|
-
type: "error",
|
|
10884
|
-
name: "AlreadyVoted",
|
|
10885
|
-
inputs: []
|
|
10886
|
-
},
|
|
10887
|
-
{
|
|
10888
|
-
type: "error",
|
|
10889
|
-
name: "BondNotReleased",
|
|
10890
|
-
inputs: []
|
|
10891
|
-
},
|
|
10892
|
-
{
|
|
10893
|
-
type: "error",
|
|
10894
|
-
name: "CaseAppealNotFinished",
|
|
10895
|
-
inputs: []
|
|
10896
|
-
},
|
|
10897
|
-
{
|
|
10898
|
-
type: "error",
|
|
10899
|
-
name: "CaseDeadlineNotReached",
|
|
10900
|
-
inputs: []
|
|
10901
|
-
},
|
|
10902
|
-
{
|
|
10903
|
-
type: "error",
|
|
10904
|
-
name: "CaseDeadlineReached",
|
|
10905
|
-
inputs: []
|
|
10906
|
-
},
|
|
10907
|
-
{
|
|
10908
|
-
type: "error",
|
|
10909
|
-
name: "CaseNotAccepted",
|
|
10910
|
-
inputs: []
|
|
10911
|
-
},
|
|
10912
|
-
{
|
|
10913
|
-
type: "error",
|
|
10914
|
-
name: "CaseNotExist",
|
|
10915
|
-
inputs: [
|
|
10916
|
-
{
|
|
10917
|
-
type: "uint256",
|
|
10918
|
-
name: "caseId"
|
|
10919
|
-
}
|
|
10920
|
-
]
|
|
10921
|
-
},
|
|
10922
|
-
{
|
|
10923
|
-
type: "error",
|
|
10924
|
-
name: "CaseRespondentAppealed",
|
|
10925
|
-
inputs: [
|
|
10926
|
-
{
|
|
10927
|
-
type: "uint256",
|
|
10928
|
-
name: "caseId"
|
|
10929
|
-
},
|
|
10930
|
-
{
|
|
10931
|
-
type: "address",
|
|
10932
|
-
name: "respondent"
|
|
10933
|
-
}
|
|
10934
|
-
]
|
|
10935
|
-
},
|
|
10936
|
-
{
|
|
10937
|
-
type: "error",
|
|
10938
|
-
name: "ChainIdMismatch",
|
|
10939
|
-
inputs: []
|
|
10940
|
-
},
|
|
10941
|
-
{
|
|
10942
|
-
type: "error",
|
|
10943
|
-
name: "DisputeNotAllowed",
|
|
10944
|
-
inputs: []
|
|
10945
|
-
},
|
|
10946
|
-
{
|
|
10947
|
-
type: "error",
|
|
10948
|
-
name: "ERC1967InvalidImplementation",
|
|
10949
|
-
inputs: [
|
|
10950
|
-
{
|
|
10951
|
-
type: "address",
|
|
10952
|
-
name: "implementation"
|
|
10953
|
-
}
|
|
10954
|
-
]
|
|
10955
|
-
},
|
|
10956
|
-
{
|
|
10957
|
-
type: "error",
|
|
10958
|
-
name: "ERC1967NonPayable",
|
|
10959
|
-
inputs: []
|
|
10960
|
-
},
|
|
10961
|
-
{
|
|
10962
|
-
type: "error",
|
|
10963
|
-
name: "FailedCall",
|
|
10964
|
-
inputs: []
|
|
10965
|
-
},
|
|
10966
|
-
{
|
|
10967
|
-
type: "error",
|
|
10968
|
-
name: "InvalidAccountNonce",
|
|
10969
|
-
inputs: [
|
|
10970
|
-
{
|
|
10971
|
-
type: "address",
|
|
10972
|
-
name: "account"
|
|
10973
|
-
},
|
|
10974
|
-
{
|
|
10975
|
-
type: "uint256",
|
|
10976
|
-
name: "currentNonce"
|
|
10977
|
-
}
|
|
10978
|
-
]
|
|
10979
|
-
},
|
|
10980
|
-
{
|
|
10981
|
-
type: "error",
|
|
10982
|
-
name: "InvalidContractAddress",
|
|
10983
|
-
inputs: []
|
|
10984
|
-
},
|
|
10985
|
-
{
|
|
10986
|
-
type: "error",
|
|
10987
|
-
name: "InvalidFunctionSignature",
|
|
10988
|
-
inputs: []
|
|
10989
|
-
},
|
|
10990
|
-
{
|
|
10991
|
-
type: "error",
|
|
10992
|
-
name: "InvalidInitialization",
|
|
10993
|
-
inputs: []
|
|
10994
|
-
},
|
|
10995
|
-
{
|
|
10996
|
-
type: "error",
|
|
10997
|
-
name: "InvalidParameter",
|
|
10998
|
-
inputs: []
|
|
10999
|
-
},
|
|
11000
|
-
{
|
|
11001
|
-
type: "error",
|
|
11002
|
-
name: "InvalidPayloadLength",
|
|
11003
|
-
inputs: [
|
|
11004
|
-
{
|
|
11005
|
-
type: "uint256",
|
|
11006
|
-
name: "received"
|
|
11007
|
-
},
|
|
11008
|
-
{
|
|
11009
|
-
type: "uint256",
|
|
11010
|
-
name: "expected"
|
|
11011
|
-
}
|
|
11012
|
-
]
|
|
11013
|
-
},
|
|
11014
|
-
{
|
|
11015
|
-
type: "error",
|
|
11016
|
-
name: "InvalidPoolToken",
|
|
11017
|
-
inputs: []
|
|
11018
|
-
},
|
|
11019
|
-
{
|
|
11020
|
-
type: "error",
|
|
11021
|
-
name: "InvalidProfitAmount",
|
|
11022
|
-
inputs: []
|
|
11023
|
-
},
|
|
11024
|
-
{
|
|
11025
|
-
type: "error",
|
|
11026
|
-
name: "InvalidResponseVersion",
|
|
11027
|
-
inputs: []
|
|
11028
|
-
},
|
|
11029
|
-
{
|
|
11030
|
-
type: "error",
|
|
11031
|
-
name: "InvalidSourceChain",
|
|
11032
|
-
inputs: []
|
|
11033
|
-
},
|
|
11034
|
-
{
|
|
11035
|
-
type: "error",
|
|
11036
|
-
name: "NoChainResponse",
|
|
11037
|
-
inputs: []
|
|
11038
|
-
},
|
|
11039
|
-
{
|
|
11040
|
-
type: "error",
|
|
11041
|
-
name: "NotAddressManager",
|
|
11042
|
-
inputs: []
|
|
11043
|
-
},
|
|
11044
|
-
{
|
|
11045
|
-
type: "error",
|
|
11046
|
-
name: "NotCaseRespondent",
|
|
11047
|
-
inputs: [
|
|
11048
|
-
{
|
|
11049
|
-
type: "uint256",
|
|
11050
|
-
name: "caseId"
|
|
11051
|
-
},
|
|
11052
|
-
{
|
|
11053
|
-
type: "address",
|
|
11054
|
-
name: "respondent"
|
|
11055
|
-
}
|
|
11056
|
-
]
|
|
11057
|
-
},
|
|
11058
|
-
{
|
|
11059
|
-
type: "error",
|
|
11060
|
-
name: "NotDependencyManager",
|
|
11061
|
-
inputs: []
|
|
11062
|
-
},
|
|
11063
|
-
{
|
|
11064
|
-
type: "error",
|
|
11065
|
-
name: "NotInitializing",
|
|
11066
|
-
inputs: []
|
|
11067
|
-
},
|
|
11068
|
-
{
|
|
11069
|
-
type: "error",
|
|
11070
|
-
name: "NotProxyAdmin",
|
|
11071
|
-
inputs: []
|
|
11072
|
-
},
|
|
11073
|
-
{
|
|
11074
|
-
type: "error",
|
|
11075
|
-
name: "NumberOfResponsesMismatch",
|
|
11076
|
-
inputs: []
|
|
11077
|
-
},
|
|
11078
|
-
{
|
|
11079
|
-
type: "error",
|
|
11080
|
-
name: "OnlyRelayer",
|
|
11081
|
-
inputs: []
|
|
11082
|
-
},
|
|
11083
|
-
{
|
|
11084
|
-
type: "error",
|
|
11085
|
-
name: "PermissionDenied",
|
|
11086
|
-
inputs: [
|
|
11087
|
-
{
|
|
11088
|
-
type: "address",
|
|
11089
|
-
name: "caller"
|
|
11090
|
-
},
|
|
11091
|
-
{
|
|
11092
|
-
type: "address",
|
|
11093
|
-
name: "target"
|
|
11094
|
-
}
|
|
11095
|
-
]
|
|
11096
|
-
},
|
|
11097
|
-
{
|
|
11098
|
-
type: "error",
|
|
11099
|
-
name: "RequestTypeMismatch",
|
|
11100
|
-
inputs: []
|
|
11101
|
-
},
|
|
11102
|
-
{
|
|
11103
|
-
type: "error",
|
|
11104
|
-
name: "RiskCloseNotCompleted",
|
|
11105
|
-
inputs: []
|
|
11106
|
-
},
|
|
11107
|
-
{
|
|
11108
|
-
type: "error",
|
|
11109
|
-
name: "SafeERC20FailedOperation",
|
|
11110
|
-
inputs: [
|
|
11111
|
-
{
|
|
11112
|
-
type: "address",
|
|
11113
|
-
name: "token"
|
|
11114
|
-
}
|
|
11115
|
-
]
|
|
11116
|
-
},
|
|
11117
|
-
{
|
|
11118
|
-
type: "error",
|
|
11119
|
-
name: "SignatureExpired",
|
|
11120
|
-
inputs: []
|
|
11121
|
-
},
|
|
11122
|
-
{
|
|
11123
|
-
type: "error",
|
|
11124
|
-
name: "UUPSUnauthorizedCallContext",
|
|
11125
|
-
inputs: []
|
|
11126
|
-
},
|
|
11127
|
-
{
|
|
11128
|
-
type: "error",
|
|
11129
|
-
name: "UUPSUnsupportedProxiableUUID",
|
|
11130
|
-
inputs: [
|
|
11131
|
-
{
|
|
11132
|
-
type: "bytes32",
|
|
11133
|
-
name: "slot"
|
|
11134
|
-
}
|
|
11135
|
-
]
|
|
11136
|
-
},
|
|
11137
|
-
{
|
|
11138
|
-
type: "error",
|
|
11139
|
-
name: "UnexpectedCaseState",
|
|
11140
|
-
inputs: []
|
|
11141
|
-
},
|
|
11142
|
-
{
|
|
11143
|
-
type: "error",
|
|
11144
|
-
name: "UnexpectedCaseType",
|
|
11145
|
-
inputs: []
|
|
11146
|
-
},
|
|
11147
|
-
{
|
|
11148
|
-
type: "error",
|
|
11149
|
-
name: "UnexpectedNumberOfResults",
|
|
11150
|
-
inputs: []
|
|
11151
|
-
},
|
|
11152
|
-
{
|
|
11153
|
-
type: "error",
|
|
11154
|
-
name: "UnsupportedQueryType",
|
|
11155
|
-
inputs: [
|
|
11156
|
-
{
|
|
11157
|
-
type: "uint8",
|
|
11158
|
-
name: "received"
|
|
11159
|
-
}
|
|
11160
|
-
]
|
|
11161
|
-
},
|
|
11162
|
-
{
|
|
11163
|
-
type: "error",
|
|
11164
|
-
name: "UntrustfulVoting",
|
|
11165
|
-
inputs: []
|
|
11166
|
-
},
|
|
11167
|
-
{
|
|
11168
|
-
type: "error",
|
|
11169
|
-
name: "VerificationFailed",
|
|
11170
|
-
inputs: []
|
|
11171
|
-
},
|
|
11172
|
-
{
|
|
11173
|
-
type: "error",
|
|
11174
|
-
name: "VersionMismatch",
|
|
11175
|
-
inputs: []
|
|
11176
|
-
},
|
|
11177
|
-
{
|
|
11178
|
-
type: "error",
|
|
11179
|
-
name: "WrongQueryType",
|
|
11180
|
-
inputs: [
|
|
11181
|
-
{
|
|
11182
|
-
type: "uint8",
|
|
11183
|
-
name: "received"
|
|
11184
|
-
},
|
|
11185
|
-
{
|
|
11186
|
-
type: "uint8",
|
|
11187
|
-
name: "expected"
|
|
11188
|
-
}
|
|
11189
|
-
]
|
|
11190
|
-
},
|
|
11191
|
-
{
|
|
11192
|
-
type: "error",
|
|
11193
|
-
name: "ZeroQueries",
|
|
11194
|
-
inputs: []
|
|
11195
|
-
},
|
|
11196
|
-
{
|
|
11197
|
-
type: "event",
|
|
11198
|
-
anonymous: false,
|
|
11199
|
-
name: "AppealCanceled",
|
|
11200
|
-
inputs: [
|
|
11201
|
-
{
|
|
11202
|
-
type: "uint256",
|
|
11203
|
-
name: "caseId",
|
|
11204
|
-
indexed: false
|
|
11205
|
-
},
|
|
11206
|
-
{
|
|
11207
|
-
type: "uint256",
|
|
11208
|
-
name: "appealCaseId",
|
|
11209
|
-
indexed: false
|
|
11210
|
-
},
|
|
11211
|
-
{
|
|
11212
|
-
type: "address",
|
|
11213
|
-
name: "complainant",
|
|
11214
|
-
indexed: false
|
|
11215
|
-
},
|
|
11216
|
-
{
|
|
11217
|
-
type: "bool",
|
|
11218
|
-
name: "isMalicious",
|
|
11219
|
-
indexed: false
|
|
11220
|
-
}
|
|
11221
|
-
]
|
|
11222
|
-
},
|
|
11223
|
-
{
|
|
11224
|
-
type: "event",
|
|
11225
|
-
anonymous: false,
|
|
11226
|
-
name: "AppealFiled",
|
|
11227
|
-
inputs: [
|
|
11228
|
-
{
|
|
11229
|
-
type: "uint256",
|
|
11230
|
-
name: "caseId",
|
|
11231
|
-
indexed: false
|
|
11232
|
-
},
|
|
11233
|
-
{
|
|
11234
|
-
type: "uint256",
|
|
11235
|
-
name: "appealCaseId",
|
|
11236
|
-
indexed: false
|
|
11237
|
-
},
|
|
11238
|
-
{
|
|
11239
|
-
type: "address",
|
|
11240
|
-
name: "respondent",
|
|
11241
|
-
indexed: false
|
|
11242
|
-
},
|
|
11243
|
-
{
|
|
11244
|
-
type: "address",
|
|
11245
|
-
name: "appealToken",
|
|
11246
|
-
indexed: false
|
|
11247
|
-
},
|
|
11248
|
-
{
|
|
11249
|
-
type: "uint256",
|
|
11250
|
-
name: "appealBond",
|
|
11251
|
-
indexed: false
|
|
11252
|
-
},
|
|
11253
|
-
{
|
|
11254
|
-
type: "uint64",
|
|
11255
|
-
name: "appealDeadline",
|
|
11256
|
-
indexed: false
|
|
11257
|
-
}
|
|
11258
|
-
]
|
|
11259
|
-
},
|
|
11260
|
-
{
|
|
11261
|
-
type: "event",
|
|
11262
|
-
anonymous: false,
|
|
11263
|
-
name: "AppealResolved",
|
|
11264
|
-
inputs: [
|
|
11265
|
-
{
|
|
11266
|
-
type: "uint256",
|
|
11267
|
-
name: "caseId",
|
|
11268
|
-
indexed: false
|
|
11269
|
-
},
|
|
11270
|
-
{
|
|
11271
|
-
type: "uint256",
|
|
11272
|
-
name: "appealCaseId",
|
|
11273
|
-
indexed: false
|
|
11274
|
-
},
|
|
11275
|
-
{
|
|
11276
|
-
type: "uint8",
|
|
11277
|
-
name: "resolution",
|
|
11278
|
-
indexed: false
|
|
11279
|
-
},
|
|
11280
|
-
{
|
|
11281
|
-
type: "address",
|
|
11282
|
-
name: "complainant",
|
|
11283
|
-
indexed: false
|
|
11284
|
-
}
|
|
11285
|
-
]
|
|
11286
|
-
},
|
|
11287
|
-
{
|
|
11288
|
-
type: "event",
|
|
11289
|
-
anonymous: false,
|
|
11290
|
-
name: "BondClaimed",
|
|
11291
|
-
inputs: [
|
|
11292
|
-
{
|
|
11293
|
-
type: "uint256",
|
|
11294
|
-
name: "caseId",
|
|
11295
|
-
indexed: false
|
|
11296
|
-
},
|
|
11297
|
-
{
|
|
11298
|
-
type: "address",
|
|
11299
|
-
name: "user",
|
|
11300
|
-
indexed: false
|
|
11301
|
-
},
|
|
11302
|
-
{
|
|
11303
|
-
type: "address",
|
|
11304
|
-
name: "token",
|
|
11305
|
-
indexed: false
|
|
11306
|
-
},
|
|
11307
|
-
{
|
|
11308
|
-
type: "uint256",
|
|
11309
|
-
name: "amount",
|
|
11310
|
-
indexed: false
|
|
11311
|
-
}
|
|
11312
|
-
]
|
|
11313
|
-
},
|
|
11314
|
-
{
|
|
11315
|
-
type: "event",
|
|
11316
|
-
anonymous: false,
|
|
11317
|
-
name: "CaseAppealsResolved",
|
|
11318
|
-
inputs: [
|
|
11319
|
-
{
|
|
11320
|
-
type: "uint256",
|
|
11321
|
-
name: "caseId",
|
|
11322
|
-
indexed: false
|
|
11323
|
-
}
|
|
11324
|
-
]
|
|
11325
|
-
},
|
|
11326
|
-
{
|
|
11327
|
-
type: "event",
|
|
11328
|
-
anonymous: false,
|
|
11329
|
-
name: "CaseRiskClosed",
|
|
11330
|
-
inputs: [
|
|
11331
|
-
{
|
|
11332
|
-
type: "uint256",
|
|
11333
|
-
name: "caseId",
|
|
11334
|
-
indexed: false
|
|
11335
|
-
}
|
|
11336
|
-
]
|
|
11337
|
-
},
|
|
11338
|
-
{
|
|
11339
|
-
type: "event",
|
|
11340
|
-
anonymous: false,
|
|
11341
|
-
name: "DisputeCanceled",
|
|
11342
|
-
inputs: [
|
|
11343
|
-
{
|
|
11344
|
-
type: "uint256",
|
|
11345
|
-
name: "caseId",
|
|
11346
|
-
indexed: false
|
|
11347
|
-
},
|
|
11348
|
-
{
|
|
11349
|
-
type: "address",
|
|
11350
|
-
name: "complainant",
|
|
11351
|
-
indexed: false
|
|
11352
|
-
},
|
|
11353
|
-
{
|
|
11354
|
-
type: "bool",
|
|
11355
|
-
name: "isMalicious",
|
|
11356
|
-
indexed: false
|
|
11357
|
-
}
|
|
11358
|
-
]
|
|
11359
|
-
},
|
|
11360
|
-
{
|
|
11361
|
-
type: "event",
|
|
11362
|
-
anonymous: false,
|
|
11363
|
-
name: "DisputeConfigurationUpdated",
|
|
11364
|
-
inputs: [
|
|
11365
|
-
{
|
|
11366
|
-
type: "tuple",
|
|
11367
|
-
name: "newDisputeConfigration",
|
|
11368
|
-
indexed: false,
|
|
11369
|
-
components: [
|
|
11370
|
-
{
|
|
11371
|
-
type: "address",
|
|
11372
|
-
name: "appealToken"
|
|
11373
|
-
},
|
|
11374
|
-
{
|
|
11375
|
-
type: "uint64",
|
|
11376
|
-
name: "disputeBondUsd"
|
|
11377
|
-
},
|
|
11378
|
-
{
|
|
11379
|
-
type: "uint64",
|
|
11380
|
-
name: "appealBondUsd"
|
|
11381
|
-
},
|
|
11382
|
-
{
|
|
11383
|
-
type: "uint64",
|
|
11384
|
-
name: "disputeThresholdUsd"
|
|
11385
|
-
},
|
|
11386
|
-
{
|
|
11387
|
-
type: "uint64",
|
|
11388
|
-
name: "caseDuration"
|
|
11389
|
-
},
|
|
11390
|
-
{
|
|
11391
|
-
type: "uint64",
|
|
11392
|
-
name: "voteDuration"
|
|
11393
|
-
},
|
|
11394
|
-
{
|
|
11395
|
-
type: "uint64",
|
|
11396
|
-
name: "resolveDuration"
|
|
11397
|
-
},
|
|
11398
|
-
{
|
|
11399
|
-
type: "uint32",
|
|
11400
|
-
name: "voteCountRate"
|
|
11401
|
-
},
|
|
11402
|
-
{
|
|
11403
|
-
type: "uint32",
|
|
11404
|
-
name: "effectiveVoteRate"
|
|
11405
|
-
}
|
|
11406
|
-
]
|
|
11407
|
-
}
|
|
11408
|
-
]
|
|
11409
|
-
},
|
|
11410
|
-
{
|
|
11411
|
-
type: "event",
|
|
11412
|
-
anonymous: false,
|
|
11413
|
-
name: "DisputeFiled",
|
|
11414
|
-
inputs: [
|
|
11415
|
-
{
|
|
11416
|
-
type: "uint256",
|
|
11417
|
-
name: "caseId",
|
|
11418
|
-
indexed: false
|
|
11419
|
-
},
|
|
11420
|
-
{
|
|
11421
|
-
type: "bytes32",
|
|
11422
|
-
name: "poolId",
|
|
11423
|
-
indexed: false
|
|
11424
|
-
},
|
|
11425
|
-
{
|
|
11426
|
-
type: "address",
|
|
11427
|
-
name: "complainant",
|
|
11428
|
-
indexed: false
|
|
11429
|
-
},
|
|
11430
|
-
{
|
|
11431
|
-
type: "address",
|
|
11432
|
-
name: "poolToken",
|
|
11433
|
-
indexed: false
|
|
11434
|
-
},
|
|
11435
|
-
{
|
|
11436
|
-
type: "uint256",
|
|
11437
|
-
name: "disputeBond",
|
|
11438
|
-
indexed: false
|
|
11439
|
-
},
|
|
11440
|
-
{
|
|
11441
|
-
type: "uint64",
|
|
11442
|
-
name: "caseDeadline",
|
|
11443
|
-
indexed: false
|
|
11444
|
-
}
|
|
11445
|
-
]
|
|
11446
|
-
},
|
|
11447
|
-
{
|
|
11448
|
-
type: "event",
|
|
11449
|
-
anonymous: false,
|
|
11450
|
-
name: "DisputeResolved",
|
|
11451
|
-
inputs: [
|
|
11452
|
-
{
|
|
11453
|
-
type: "uint256",
|
|
11454
|
-
name: "caseId",
|
|
11455
|
-
indexed: false
|
|
11456
|
-
},
|
|
11457
|
-
{
|
|
11458
|
-
type: "uint8",
|
|
11459
|
-
name: "resolution",
|
|
11460
|
-
indexed: false
|
|
11461
|
-
},
|
|
11462
|
-
{
|
|
11463
|
-
type: "uint64",
|
|
11464
|
-
name: "appealDeadline",
|
|
11465
|
-
indexed: false
|
|
11466
|
-
}
|
|
11467
|
-
]
|
|
11468
|
-
},
|
|
11469
|
-
{
|
|
11470
|
-
type: "event",
|
|
11471
|
-
anonymous: false,
|
|
11472
|
-
name: "ForfeitBondsClaimed",
|
|
11473
|
-
inputs: [
|
|
11474
|
-
{
|
|
11475
|
-
type: "address",
|
|
11476
|
-
name: "receiver",
|
|
11477
|
-
indexed: false
|
|
11478
|
-
},
|
|
11479
|
-
{
|
|
11480
|
-
type: "address",
|
|
11481
|
-
name: "token",
|
|
11482
|
-
indexed: false
|
|
11483
|
-
},
|
|
11484
|
-
{
|
|
11485
|
-
type: "uint256",
|
|
11486
|
-
name: "amount",
|
|
11487
|
-
indexed: false
|
|
11488
|
-
}
|
|
11489
|
-
]
|
|
11490
|
-
},
|
|
11491
|
-
{
|
|
11492
|
-
type: "event",
|
|
11493
|
-
anonymous: false,
|
|
11494
|
-
name: "Initialized",
|
|
11495
|
-
inputs: [
|
|
11496
|
-
{
|
|
11497
|
-
type: "uint64",
|
|
11498
|
-
name: "version",
|
|
11499
|
-
indexed: false
|
|
11500
|
-
}
|
|
11501
|
-
]
|
|
11502
|
-
},
|
|
11503
|
-
{
|
|
11504
|
-
type: "event",
|
|
11505
|
-
anonymous: false,
|
|
11506
|
-
name: "ReimbursementProcessed",
|
|
11507
|
-
inputs: [
|
|
11508
|
-
{
|
|
11509
|
-
type: "uint256",
|
|
11510
|
-
name: "caseId",
|
|
11511
|
-
indexed: false
|
|
11512
|
-
},
|
|
11513
|
-
{
|
|
11514
|
-
type: "tuple",
|
|
11515
|
-
name: "reimbursementInfo",
|
|
11516
|
-
indexed: false,
|
|
11517
|
-
components: [
|
|
11518
|
-
{
|
|
11519
|
-
type: "bytes32",
|
|
11520
|
-
name: "merkleRoot"
|
|
11521
|
-
},
|
|
11522
|
-
{
|
|
11523
|
-
type: "address",
|
|
11524
|
-
name: "baseToken"
|
|
11525
|
-
},
|
|
11526
|
-
{
|
|
11527
|
-
type: "address",
|
|
11528
|
-
name: "quoteToken"
|
|
11529
|
-
},
|
|
11530
|
-
{
|
|
11531
|
-
type: "uint256",
|
|
11532
|
-
name: "totalBaseAmount"
|
|
11533
|
-
},
|
|
11534
|
-
{
|
|
11535
|
-
type: "uint256",
|
|
11536
|
-
name: "totalQuoteAmount"
|
|
11537
|
-
},
|
|
11538
|
-
{
|
|
11539
|
-
type: "uint256",
|
|
11540
|
-
name: "claimedBaseAmount"
|
|
11541
|
-
},
|
|
11542
|
-
{
|
|
11543
|
-
type: "uint256",
|
|
11544
|
-
name: "claimedQuoteAmount"
|
|
11545
|
-
},
|
|
11546
|
-
{
|
|
11547
|
-
type: "uint256",
|
|
11548
|
-
name: "expireTime"
|
|
11549
|
-
}
|
|
11550
|
-
]
|
|
11551
|
-
}
|
|
11552
|
-
]
|
|
11553
|
-
},
|
|
11554
|
-
{
|
|
11555
|
-
type: "event",
|
|
11556
|
-
anonymous: false,
|
|
11557
|
-
name: "Upgraded",
|
|
11558
|
-
inputs: [
|
|
11559
|
-
{
|
|
11560
|
-
type: "address",
|
|
11561
|
-
name: "implementation",
|
|
11562
|
-
indexed: true
|
|
11563
|
-
}
|
|
11564
|
-
]
|
|
11565
|
-
},
|
|
11566
|
-
{
|
|
11567
|
-
type: "event",
|
|
11568
|
-
anonymous: false,
|
|
11569
|
-
name: "Voted",
|
|
11570
|
-
inputs: [
|
|
11571
|
-
{
|
|
11572
|
-
type: "uint256",
|
|
11573
|
-
name: "caseId",
|
|
11574
|
-
indexed: false
|
|
11575
|
-
},
|
|
11576
|
-
{
|
|
11577
|
-
type: "address",
|
|
11578
|
-
name: "voter",
|
|
11579
|
-
indexed: false
|
|
11580
|
-
},
|
|
11581
|
-
{
|
|
11582
|
-
type: "uint8",
|
|
11583
|
-
name: "voteOption",
|
|
11584
|
-
indexed: false
|
|
11585
|
-
}
|
|
11586
|
-
]
|
|
11587
|
-
},
|
|
11588
|
-
{
|
|
11589
|
-
type: "event",
|
|
11590
|
-
anonymous: false,
|
|
11591
|
-
name: "VotingOpened",
|
|
11592
|
-
inputs: [
|
|
11593
|
-
{
|
|
11594
|
-
type: "uint256",
|
|
11595
|
-
name: "caseId",
|
|
11596
|
-
indexed: false
|
|
11597
|
-
},
|
|
11598
|
-
{
|
|
11599
|
-
type: "uint256",
|
|
11600
|
-
name: "evidenceId",
|
|
11601
|
-
indexed: false
|
|
11602
|
-
},
|
|
11603
|
-
{
|
|
11604
|
-
type: "uint64",
|
|
11605
|
-
name: "voteDeadline",
|
|
11606
|
-
indexed: false
|
|
11607
|
-
},
|
|
11608
|
-
{
|
|
11609
|
-
type: "address[]",
|
|
11610
|
-
name: "respondents",
|
|
11611
|
-
indexed: false
|
|
11612
|
-
}
|
|
11613
|
-
]
|
|
11614
|
-
},
|
|
11615
|
-
{
|
|
11616
|
-
type: "event",
|
|
11617
|
-
anonymous: false,
|
|
11618
|
-
name: "WormholeConfigurationUpdated",
|
|
11619
|
-
inputs: [
|
|
11620
|
-
{
|
|
11621
|
-
type: "tuple",
|
|
11622
|
-
name: "newWormholeConfiguration",
|
|
11623
|
-
indexed: false,
|
|
11624
|
-
components: [
|
|
11625
|
-
{
|
|
11626
|
-
type: "address",
|
|
11627
|
-
name: "wormhole"
|
|
11628
|
-
},
|
|
11629
|
-
{
|
|
11630
|
-
type: "address",
|
|
11631
|
-
name: "staker"
|
|
11632
|
-
},
|
|
11633
|
-
{
|
|
11634
|
-
type: "bytes4",
|
|
11635
|
-
name: "selector"
|
|
11636
|
-
}
|
|
11637
|
-
]
|
|
11638
|
-
}
|
|
11639
|
-
]
|
|
11640
|
-
},
|
|
11641
|
-
{
|
|
11642
|
-
type: "function",
|
|
11643
|
-
name: "UPGRADE_INTERFACE_VERSION",
|
|
11644
|
-
constant: true,
|
|
11645
|
-
stateMutability: "view",
|
|
11646
|
-
payable: false,
|
|
11647
|
-
inputs: [],
|
|
11648
|
-
outputs: [
|
|
11649
|
-
{
|
|
11650
|
-
type: "string"
|
|
11651
|
-
}
|
|
11652
|
-
]
|
|
11653
|
-
},
|
|
11654
|
-
{
|
|
11655
|
-
type: "function",
|
|
11656
|
-
name: "appeal",
|
|
11657
|
-
constant: false,
|
|
11658
|
-
payable: false,
|
|
11659
|
-
inputs: [
|
|
11660
|
-
{
|
|
11661
|
-
type: "uint256",
|
|
11662
|
-
name: "caseId"
|
|
11663
|
-
}
|
|
11664
|
-
],
|
|
11665
|
-
outputs: []
|
|
11666
|
-
},
|
|
11667
|
-
{
|
|
11668
|
-
type: "function",
|
|
11669
|
-
name: "canRiskControlClose",
|
|
11670
|
-
constant: true,
|
|
11671
|
-
stateMutability: "view",
|
|
11672
|
-
payable: false,
|
|
11673
|
-
inputs: [
|
|
11674
|
-
{
|
|
11675
|
-
type: "uint256",
|
|
11676
|
-
name: "caseId"
|
|
11677
|
-
}
|
|
11678
|
-
],
|
|
11679
|
-
outputs: [
|
|
11680
|
-
{
|
|
11681
|
-
type: "bool"
|
|
11682
|
-
}
|
|
11683
|
-
]
|
|
11684
|
-
},
|
|
11685
|
-
{
|
|
11686
|
-
type: "function",
|
|
11687
|
-
name: "cancelAppeal",
|
|
11688
|
-
constant: false,
|
|
11689
|
-
payable: false,
|
|
11690
|
-
inputs: [
|
|
11691
|
-
{
|
|
11692
|
-
type: "uint256",
|
|
11693
|
-
name: "caseId"
|
|
11694
|
-
},
|
|
11695
|
-
{
|
|
11696
|
-
type: "uint256",
|
|
11697
|
-
name: "appealCaseId"
|
|
11698
|
-
},
|
|
11699
|
-
{
|
|
11700
|
-
type: "bool",
|
|
11701
|
-
name: "isMalicious"
|
|
11702
|
-
}
|
|
11703
|
-
],
|
|
11704
|
-
outputs: []
|
|
11705
|
-
},
|
|
11706
|
-
{
|
|
11707
|
-
type: "function",
|
|
11708
|
-
name: "cancelDispute",
|
|
11709
|
-
constant: false,
|
|
11710
|
-
payable: false,
|
|
11711
|
-
inputs: [
|
|
11712
|
-
{
|
|
11713
|
-
type: "uint256",
|
|
11714
|
-
name: "caseId"
|
|
11715
|
-
},
|
|
11716
|
-
{
|
|
11717
|
-
type: "bool",
|
|
11718
|
-
name: "isMalicious"
|
|
11719
|
-
}
|
|
11720
|
-
],
|
|
11721
|
-
outputs: []
|
|
11722
|
-
},
|
|
11723
|
-
{
|
|
11724
|
-
type: "function",
|
|
11725
|
-
name: "caseIdSequencer",
|
|
11726
|
-
constant: true,
|
|
11727
|
-
stateMutability: "view",
|
|
11728
|
-
payable: false,
|
|
11729
|
-
inputs: [],
|
|
11730
|
-
outputs: [
|
|
11731
|
-
{
|
|
11732
|
-
type: "uint256"
|
|
11733
|
-
}
|
|
11734
|
-
]
|
|
11735
|
-
},
|
|
11736
|
-
{
|
|
11737
|
-
type: "function",
|
|
11738
|
-
name: "claimBond",
|
|
11739
|
-
constant: false,
|
|
11740
|
-
payable: false,
|
|
11741
|
-
inputs: [
|
|
11742
|
-
{
|
|
11743
|
-
type: "uint256",
|
|
11744
|
-
name: "caseId"
|
|
11745
|
-
}
|
|
11746
|
-
],
|
|
11747
|
-
outputs: []
|
|
11748
|
-
},
|
|
11749
|
-
{
|
|
11750
|
-
type: "function",
|
|
11751
|
-
name: "claimForfeitBonds",
|
|
11752
|
-
constant: false,
|
|
11753
|
-
payable: false,
|
|
11754
|
-
inputs: [
|
|
11755
|
-
{
|
|
11756
|
-
type: "address",
|
|
11757
|
-
name: "receiver"
|
|
11758
|
-
}
|
|
11759
|
-
],
|
|
11760
|
-
outputs: []
|
|
11761
|
-
},
|
|
11762
|
-
{
|
|
11763
|
-
type: "function",
|
|
11764
|
-
name: "fileDispute",
|
|
11765
|
-
constant: false,
|
|
11766
|
-
stateMutability: "payable",
|
|
11767
|
-
payable: true,
|
|
11768
|
-
inputs: [
|
|
11769
|
-
{
|
|
11770
|
-
type: "tuple[]",
|
|
11771
|
-
name: "prices",
|
|
11772
|
-
components: [
|
|
11773
|
-
{
|
|
11774
|
-
type: "bytes32",
|
|
11775
|
-
name: "poolId"
|
|
11776
|
-
},
|
|
11777
|
-
{
|
|
11778
|
-
type: "uint8",
|
|
11779
|
-
name: "oracleType"
|
|
11780
|
-
},
|
|
11781
|
-
{
|
|
11782
|
-
type: "uint256",
|
|
11783
|
-
name: "referencePrice"
|
|
11784
|
-
},
|
|
11785
|
-
{
|
|
11786
|
-
type: "bytes",
|
|
11787
|
-
name: "oracleUpdateData"
|
|
11788
|
-
},
|
|
11789
|
-
{
|
|
11790
|
-
type: "uint64",
|
|
11791
|
-
name: "publishTime"
|
|
11792
|
-
}
|
|
11793
|
-
]
|
|
11794
|
-
},
|
|
11795
|
-
{
|
|
11796
|
-
type: "bytes32",
|
|
11797
|
-
name: "poolId"
|
|
11798
|
-
},
|
|
11799
|
-
{
|
|
11800
|
-
type: "address",
|
|
11801
|
-
name: "poolToken"
|
|
11802
|
-
}
|
|
11803
|
-
],
|
|
11804
|
-
outputs: []
|
|
11805
|
-
},
|
|
11806
|
-
{
|
|
11807
|
-
type: "function",
|
|
11808
|
-
name: "getAddressManager",
|
|
11809
|
-
constant: true,
|
|
11810
|
-
stateMutability: "view",
|
|
11811
|
-
payable: false,
|
|
11812
|
-
inputs: [],
|
|
11813
|
-
outputs: [
|
|
11814
|
-
{
|
|
11815
|
-
type: "address"
|
|
11816
|
-
}
|
|
11817
|
-
]
|
|
11818
|
-
},
|
|
11819
|
-
{
|
|
11820
|
-
type: "function",
|
|
11821
|
-
name: "getDependencyAddress",
|
|
11822
|
-
constant: true,
|
|
11823
|
-
stateMutability: "view",
|
|
11824
|
-
payable: false,
|
|
11825
|
-
inputs: [
|
|
11826
|
-
{
|
|
11827
|
-
type: "bytes32",
|
|
11828
|
-
name: "identifier"
|
|
11829
|
-
}
|
|
11830
|
-
],
|
|
11831
|
-
outputs: [
|
|
11832
|
-
{
|
|
11833
|
-
type: "address"
|
|
11834
|
-
}
|
|
11835
|
-
]
|
|
11836
|
-
},
|
|
11837
|
-
{
|
|
11838
|
-
type: "function",
|
|
11839
|
-
name: "getDisputeConfiguration",
|
|
11840
|
-
constant: true,
|
|
11841
|
-
stateMutability: "view",
|
|
11842
|
-
payable: false,
|
|
11843
|
-
inputs: [],
|
|
11844
|
-
outputs: [
|
|
11845
|
-
{
|
|
11846
|
-
type: "tuple",
|
|
11847
|
-
components: [
|
|
11848
|
-
{
|
|
11849
|
-
type: "address",
|
|
11850
|
-
name: "appealToken"
|
|
11851
|
-
},
|
|
11852
|
-
{
|
|
11853
|
-
type: "uint64",
|
|
11854
|
-
name: "disputeBondUsd"
|
|
11855
|
-
},
|
|
11856
|
-
{
|
|
11857
|
-
type: "uint64",
|
|
11858
|
-
name: "appealBondUsd"
|
|
11859
|
-
},
|
|
11860
|
-
{
|
|
11861
|
-
type: "uint64",
|
|
11862
|
-
name: "disputeThresholdUsd"
|
|
11863
|
-
},
|
|
11864
|
-
{
|
|
11865
|
-
type: "uint64",
|
|
11866
|
-
name: "caseDuration"
|
|
11867
|
-
},
|
|
11868
|
-
{
|
|
11869
|
-
type: "uint64",
|
|
11870
|
-
name: "voteDuration"
|
|
11871
|
-
},
|
|
11872
|
-
{
|
|
11873
|
-
type: "uint64",
|
|
11874
|
-
name: "resolveDuration"
|
|
11875
|
-
},
|
|
11876
|
-
{
|
|
11877
|
-
type: "uint32",
|
|
11878
|
-
name: "voteCountRate"
|
|
11879
|
-
},
|
|
11880
|
-
{
|
|
11881
|
-
type: "uint32",
|
|
11882
|
-
name: "effectiveVoteRate"
|
|
11883
|
-
}
|
|
11884
|
-
]
|
|
11885
|
-
}
|
|
11886
|
-
]
|
|
11887
|
-
},
|
|
11888
|
-
{
|
|
11889
|
-
type: "function",
|
|
11890
|
-
name: "getImplementation",
|
|
11891
|
-
constant: true,
|
|
11892
|
-
stateMutability: "view",
|
|
11893
|
-
payable: false,
|
|
11894
|
-
inputs: [],
|
|
11895
|
-
outputs: [
|
|
11896
|
-
{
|
|
11897
|
-
type: "address"
|
|
11898
|
-
}
|
|
11899
|
-
]
|
|
11900
|
-
},
|
|
11901
|
-
{
|
|
11902
|
-
type: "function",
|
|
11903
|
-
name: "initialize",
|
|
11904
|
-
constant: false,
|
|
11905
|
-
payable: false,
|
|
11906
|
-
inputs: [
|
|
11907
|
-
{
|
|
11908
|
-
type: "address",
|
|
11909
|
-
name: "addressManager"
|
|
11910
|
-
}
|
|
11911
|
-
],
|
|
11912
|
-
outputs: []
|
|
11913
|
-
},
|
|
11914
|
-
{
|
|
11915
|
-
type: "function",
|
|
11916
|
-
name: "isCaseRespondents",
|
|
11917
|
-
constant: true,
|
|
11918
|
-
stateMutability: "view",
|
|
11919
|
-
payable: false,
|
|
11920
|
-
inputs: [
|
|
11921
|
-
{
|
|
11922
|
-
type: "uint256",
|
|
11923
|
-
name: "caseId"
|
|
11924
|
-
},
|
|
11925
|
-
{
|
|
11926
|
-
type: "address",
|
|
11927
|
-
name: "account"
|
|
11928
|
-
}
|
|
11929
|
-
],
|
|
11930
|
-
outputs: [
|
|
11931
|
-
{
|
|
11932
|
-
type: "bool"
|
|
11933
|
-
}
|
|
11934
|
-
]
|
|
11935
|
-
},
|
|
11936
|
-
{
|
|
11937
|
-
type: "function",
|
|
11938
|
-
name: "nonces",
|
|
11939
|
-
constant: true,
|
|
11940
|
-
stateMutability: "view",
|
|
11941
|
-
payable: false,
|
|
11942
|
-
inputs: [
|
|
11943
|
-
{
|
|
11944
|
-
type: "address",
|
|
11945
|
-
name: "owner"
|
|
11946
|
-
}
|
|
11947
|
-
],
|
|
11948
|
-
outputs: [
|
|
11949
|
-
{
|
|
11950
|
-
type: "uint256"
|
|
11951
|
-
}
|
|
11952
|
-
]
|
|
11953
|
-
},
|
|
11954
|
-
{
|
|
11955
|
-
type: "function",
|
|
11956
|
-
name: "openVoting",
|
|
11957
|
-
constant: false,
|
|
11958
|
-
payable: false,
|
|
11959
|
-
inputs: [
|
|
11960
|
-
{
|
|
11961
|
-
type: "uint256",
|
|
11962
|
-
name: "caseId"
|
|
11963
|
-
},
|
|
11964
|
-
{
|
|
11965
|
-
type: "uint256",
|
|
11966
|
-
name: "evidenceId"
|
|
11967
|
-
},
|
|
11968
|
-
{
|
|
11969
|
-
type: "address[]",
|
|
11970
|
-
name: "respondents"
|
|
11971
|
-
}
|
|
11972
|
-
],
|
|
11973
|
-
outputs: []
|
|
11974
|
-
},
|
|
11975
|
-
{
|
|
11976
|
-
type: "function",
|
|
11977
|
-
name: "processReimbursement",
|
|
11978
|
-
constant: false,
|
|
11979
|
-
payable: false,
|
|
11980
|
-
inputs: [
|
|
11981
|
-
{
|
|
11982
|
-
type: "uint256",
|
|
11983
|
-
name: "caseId"
|
|
11984
|
-
},
|
|
11985
|
-
{
|
|
11986
|
-
type: "tuple",
|
|
11987
|
-
name: "reimbursementInfo",
|
|
11988
|
-
components: [
|
|
11989
|
-
{
|
|
11990
|
-
type: "bytes32",
|
|
11991
|
-
name: "merkleRoot"
|
|
11992
|
-
},
|
|
11993
|
-
{
|
|
11994
|
-
type: "address",
|
|
11995
|
-
name: "baseToken"
|
|
11996
|
-
},
|
|
11997
|
-
{
|
|
11998
|
-
type: "address",
|
|
11999
|
-
name: "quoteToken"
|
|
12000
|
-
},
|
|
12001
|
-
{
|
|
12002
|
-
type: "uint256",
|
|
12003
|
-
name: "totalBaseAmount"
|
|
12004
|
-
},
|
|
12005
|
-
{
|
|
12006
|
-
type: "uint256",
|
|
12007
|
-
name: "totalQuoteAmount"
|
|
12008
|
-
},
|
|
12009
|
-
{
|
|
12010
|
-
type: "uint256",
|
|
12011
|
-
name: "claimedBaseAmount"
|
|
12012
|
-
},
|
|
12013
|
-
{
|
|
12014
|
-
type: "uint256",
|
|
12015
|
-
name: "claimedQuoteAmount"
|
|
12016
|
-
},
|
|
12017
|
-
{
|
|
12018
|
-
type: "uint256",
|
|
12019
|
-
name: "expireTime"
|
|
12020
|
-
}
|
|
12021
|
-
]
|
|
12022
|
-
},
|
|
12023
|
-
{
|
|
12024
|
-
type: "bytes32[]",
|
|
12025
|
-
name: "zeroMerkleProof"
|
|
12026
|
-
}
|
|
12027
|
-
],
|
|
12028
|
-
outputs: []
|
|
12029
|
-
},
|
|
12030
|
-
{
|
|
12031
|
-
type: "function",
|
|
12032
|
-
name: "proxiableUUID",
|
|
12033
|
-
constant: true,
|
|
12034
|
-
stateMutability: "view",
|
|
12035
|
-
payable: false,
|
|
12036
|
-
inputs: [],
|
|
12037
|
-
outputs: [
|
|
12038
|
-
{
|
|
12039
|
-
type: "bytes32"
|
|
12040
|
-
}
|
|
12041
|
-
]
|
|
12042
|
-
},
|
|
12043
|
-
{
|
|
12044
|
-
type: "function",
|
|
12045
|
-
name: "resolveCaseAppeals",
|
|
12046
|
-
constant: false,
|
|
12047
|
-
payable: false,
|
|
12048
|
-
inputs: [
|
|
12049
|
-
{
|
|
12050
|
-
type: "uint256",
|
|
12051
|
-
name: "caseId"
|
|
12052
|
-
},
|
|
12053
|
-
{
|
|
12054
|
-
type: "bytes",
|
|
12055
|
-
name: "response"
|
|
12056
|
-
},
|
|
12057
|
-
{
|
|
12058
|
-
type: "tuple[]",
|
|
12059
|
-
name: "guardianSignatures",
|
|
12060
|
-
components: [
|
|
12061
|
-
{
|
|
12062
|
-
type: "bytes32",
|
|
12063
|
-
name: "r"
|
|
12064
|
-
},
|
|
12065
|
-
{
|
|
12066
|
-
type: "bytes32",
|
|
12067
|
-
name: "s"
|
|
12068
|
-
},
|
|
12069
|
-
{
|
|
12070
|
-
type: "uint8",
|
|
12071
|
-
name: "v"
|
|
12072
|
-
},
|
|
12073
|
-
{
|
|
12074
|
-
type: "uint8",
|
|
12075
|
-
name: "guardianIndex"
|
|
12076
|
-
}
|
|
12077
|
-
]
|
|
12078
|
-
}
|
|
12079
|
-
],
|
|
12080
|
-
outputs: []
|
|
12081
|
-
},
|
|
12082
|
-
{
|
|
12083
|
-
type: "function",
|
|
12084
|
-
name: "resolveDispute",
|
|
12085
|
-
constant: false,
|
|
12086
|
-
payable: false,
|
|
12087
|
-
inputs: [
|
|
12088
|
-
{
|
|
12089
|
-
type: "uint256",
|
|
12090
|
-
name: "caseId"
|
|
12091
|
-
},
|
|
12092
|
-
{
|
|
12093
|
-
type: "bytes",
|
|
12094
|
-
name: "response"
|
|
12095
|
-
},
|
|
12096
|
-
{
|
|
12097
|
-
type: "tuple[]",
|
|
12098
|
-
name: "guardianSignatures",
|
|
12099
|
-
components: [
|
|
12100
|
-
{
|
|
12101
|
-
type: "bytes32",
|
|
12102
|
-
name: "r"
|
|
12103
|
-
},
|
|
12104
|
-
{
|
|
12105
|
-
type: "bytes32",
|
|
12106
|
-
name: "s"
|
|
12107
|
-
},
|
|
12108
|
-
{
|
|
12109
|
-
type: "uint8",
|
|
12110
|
-
name: "v"
|
|
12111
|
-
},
|
|
12112
|
-
{
|
|
12113
|
-
type: "uint8",
|
|
12114
|
-
name: "guardianIndex"
|
|
12115
|
-
}
|
|
12116
|
-
]
|
|
12117
|
-
}
|
|
12118
|
-
],
|
|
12119
|
-
outputs: []
|
|
12120
|
-
},
|
|
12121
|
-
{
|
|
12122
|
-
type: "function",
|
|
12123
|
-
name: "updateDisputeConfiguration",
|
|
12124
|
-
constant: false,
|
|
12125
|
-
payable: false,
|
|
12126
|
-
inputs: [
|
|
12127
|
-
{
|
|
12128
|
-
type: "tuple",
|
|
12129
|
-
name: "disputeConfiguration",
|
|
12130
|
-
components: [
|
|
12131
|
-
{
|
|
12132
|
-
type: "address",
|
|
12133
|
-
name: "appealToken"
|
|
12134
|
-
},
|
|
12135
|
-
{
|
|
12136
|
-
type: "uint64",
|
|
12137
|
-
name: "disputeBondUsd"
|
|
12138
|
-
},
|
|
12139
|
-
{
|
|
12140
|
-
type: "uint64",
|
|
12141
|
-
name: "appealBondUsd"
|
|
12142
|
-
},
|
|
12143
|
-
{
|
|
12144
|
-
type: "uint64",
|
|
12145
|
-
name: "disputeThresholdUsd"
|
|
12146
|
-
},
|
|
12147
|
-
{
|
|
12148
|
-
type: "uint64",
|
|
12149
|
-
name: "caseDuration"
|
|
12150
|
-
},
|
|
12151
|
-
{
|
|
12152
|
-
type: "uint64",
|
|
12153
|
-
name: "voteDuration"
|
|
12154
|
-
},
|
|
12155
|
-
{
|
|
12156
|
-
type: "uint64",
|
|
12157
|
-
name: "resolveDuration"
|
|
12158
|
-
},
|
|
12159
|
-
{
|
|
12160
|
-
type: "uint32",
|
|
12161
|
-
name: "voteCountRate"
|
|
12162
|
-
},
|
|
12163
|
-
{
|
|
12164
|
-
type: "uint32",
|
|
12165
|
-
name: "effectiveVoteRate"
|
|
12166
|
-
}
|
|
12167
|
-
]
|
|
12168
|
-
}
|
|
12169
|
-
],
|
|
12170
|
-
outputs: []
|
|
12171
|
-
},
|
|
12172
|
-
{
|
|
12173
|
-
type: "function",
|
|
12174
|
-
name: "updateWormholeConfiguration",
|
|
12175
|
-
constant: false,
|
|
12176
|
-
payable: false,
|
|
12177
|
-
inputs: [
|
|
12178
|
-
{
|
|
12179
|
-
type: "tuple",
|
|
12180
|
-
name: "wormholeConfiguration",
|
|
12181
|
-
components: [
|
|
12182
|
-
{
|
|
12183
|
-
type: "address",
|
|
12184
|
-
name: "wormhole"
|
|
12185
|
-
},
|
|
12186
|
-
{
|
|
12187
|
-
type: "address",
|
|
12188
|
-
name: "staker"
|
|
12189
|
-
},
|
|
12190
|
-
{
|
|
12191
|
-
type: "bytes4",
|
|
12192
|
-
name: "selector"
|
|
12193
|
-
}
|
|
12194
|
-
]
|
|
12195
|
-
}
|
|
12196
|
-
],
|
|
12197
|
-
outputs: []
|
|
12198
|
-
},
|
|
12199
|
-
{
|
|
12200
|
-
type: "function",
|
|
12201
|
-
name: "upgradeTo",
|
|
12202
|
-
constant: false,
|
|
12203
|
-
stateMutability: "payable",
|
|
12204
|
-
payable: true,
|
|
12205
|
-
inputs: [
|
|
12206
|
-
{
|
|
12207
|
-
type: "address",
|
|
12208
|
-
name: "newImplementation"
|
|
12209
|
-
},
|
|
12210
|
-
{
|
|
12211
|
-
type: "bytes",
|
|
12212
|
-
name: "data"
|
|
12213
|
-
}
|
|
12214
|
-
],
|
|
12215
|
-
outputs: []
|
|
12216
|
-
},
|
|
12217
|
-
{
|
|
12218
|
-
type: "function",
|
|
12219
|
-
name: "upgradeToAndCall",
|
|
12220
|
-
constant: false,
|
|
12221
|
-
stateMutability: "payable",
|
|
12222
|
-
payable: true,
|
|
12223
|
-
inputs: [
|
|
12224
|
-
{
|
|
12225
|
-
type: "address",
|
|
12226
|
-
name: "newImplementation"
|
|
12227
|
-
},
|
|
12228
|
-
{
|
|
12229
|
-
type: "bytes",
|
|
12230
|
-
name: "data"
|
|
12231
|
-
}
|
|
12232
|
-
],
|
|
12233
|
-
outputs: []
|
|
12234
|
-
},
|
|
12235
|
-
{
|
|
12236
|
-
type: "function",
|
|
12237
|
-
name: "vote",
|
|
12238
|
-
constant: false,
|
|
12239
|
-
payable: false,
|
|
12240
|
-
inputs: [
|
|
12241
|
-
{
|
|
12242
|
-
type: "uint256",
|
|
12243
|
-
name: "caseId"
|
|
12244
|
-
},
|
|
12245
|
-
{
|
|
12246
|
-
type: "address",
|
|
12247
|
-
name: "validator"
|
|
12248
|
-
},
|
|
12249
|
-
{
|
|
12250
|
-
type: "uint8",
|
|
12251
|
-
name: "voteOption"
|
|
12252
|
-
},
|
|
12253
|
-
{
|
|
12254
|
-
type: "uint256",
|
|
12255
|
-
name: "deadline"
|
|
12256
|
-
},
|
|
12257
|
-
{
|
|
12258
|
-
type: "uint8",
|
|
12259
|
-
name: "v"
|
|
12260
|
-
},
|
|
12261
|
-
{
|
|
12262
|
-
type: "bytes32",
|
|
12263
|
-
name: "r"
|
|
12264
|
-
},
|
|
12265
|
-
{
|
|
12266
|
-
type: "bytes32",
|
|
12267
|
-
name: "s"
|
|
12268
|
-
}
|
|
12269
|
-
],
|
|
12270
|
-
outputs: []
|
|
12271
|
-
}
|
|
12272
|
-
];
|
|
12273
|
-
|
|
12274
10361
|
// src/web3/providers.ts
|
|
12275
10362
|
var getTokenContract = async (chainId, tokenAddress) => {
|
|
12276
10363
|
const provider = getJSONProvider(chainId);
|
|
12277
|
-
return getContract(
|
|
12278
|
-
tokenAddress,
|
|
12279
|
-
IERC20Metadata_default,
|
|
12280
|
-
provider
|
|
12281
|
-
);
|
|
10364
|
+
return getContract(tokenAddress, IERC20Metadata_default, provider);
|
|
12282
10365
|
};
|
|
12283
10366
|
var getERC20Contract = async (chainId, tokenAddress) => {
|
|
12284
10367
|
const provider = await getSignerProvider(chainId);
|
|
12285
|
-
return getContract(
|
|
12286
|
-
tokenAddress,
|
|
12287
|
-
IERC20Metadata_default,
|
|
12288
|
-
provider
|
|
12289
|
-
);
|
|
10368
|
+
return getContract(tokenAddress, IERC20Metadata_default, provider);
|
|
12290
10369
|
};
|
|
12291
10370
|
var getAccount = async (chainId) => {
|
|
12292
10371
|
const provider = await getSignerProvider(chainId);
|
|
@@ -12297,21 +10376,13 @@ var getLiquidityRouterContract = async (chainId) => {
|
|
|
12297
10376
|
const addresses = address_default[chainId];
|
|
12298
10377
|
const address = addresses.LIQUIDITY_ROUTER;
|
|
12299
10378
|
const provider = await getSignerProvider(chainId);
|
|
12300
|
-
return getContract(
|
|
12301
|
-
address,
|
|
12302
|
-
LiquidityRouter_default,
|
|
12303
|
-
provider
|
|
12304
|
-
);
|
|
10379
|
+
return getContract(address, LiquidityRouter_default, provider);
|
|
12305
10380
|
};
|
|
12306
10381
|
var getPoolManagerContract = async (chainId, type = 1 /* Signer */) => {
|
|
12307
10382
|
const addresses = address_default[chainId];
|
|
12308
10383
|
const address = addresses.POOL_MANAGER;
|
|
12309
10384
|
const provider = type === 0 /* JSON */ ? getJSONProvider(chainId) : await getSignerProvider(chainId);
|
|
12310
|
-
return getContract(
|
|
12311
|
-
address,
|
|
12312
|
-
PoolManager_default,
|
|
12313
|
-
provider
|
|
12314
|
-
);
|
|
10385
|
+
return getContract(address, PoolManager_default, provider);
|
|
12315
10386
|
};
|
|
12316
10387
|
var getQuotePoolContract = async (chainId, type = 0 /* JSON */) => {
|
|
12317
10388
|
const addresses = address_default[chainId];
|
|
@@ -12348,21 +10419,13 @@ var getMarketManageContract = async (chainId, type = 0 /* JSON */) => {
|
|
|
12348
10419
|
const address = addresses.MARKET_MANAGER;
|
|
12349
10420
|
console.log(addresses.MARKET_MANAGER);
|
|
12350
10421
|
const provider = type === 0 /* JSON */ ? getJSONProvider(chainId) : await getSignerProvider(chainId);
|
|
12351
|
-
return getContract(
|
|
12352
|
-
address,
|
|
12353
|
-
MarketManager_default,
|
|
12354
|
-
provider
|
|
12355
|
-
);
|
|
10422
|
+
return getContract(address, MarketManager_default, provider);
|
|
12356
10423
|
};
|
|
12357
10424
|
var getDataProviderContract = async (chainId, type = 0 /* JSON */) => {
|
|
12358
10425
|
const addresses = address_default[chainId];
|
|
12359
10426
|
const address = addresses.DATA_PROVIDER;
|
|
12360
10427
|
const provider = type === 0 /* JSON */ ? getJSONProvider(chainId) : await getSignerProvider(chainId);
|
|
12361
|
-
return getContract(
|
|
12362
|
-
address,
|
|
12363
|
-
DataProvider_default,
|
|
12364
|
-
provider
|
|
12365
|
-
);
|
|
10428
|
+
return getContract(address, DataProvider_default, provider);
|
|
12366
10429
|
};
|
|
12367
10430
|
var getForwarderContract = async (chainId, type = 0 /* JSON */) => {
|
|
12368
10431
|
const addresses = address_default[chainId];
|
|
@@ -12370,26 +10433,6 @@ var getForwarderContract = async (chainId, type = 0 /* JSON */) => {
|
|
|
12370
10433
|
const provider = type === 0 /* JSON */ ? getJSONProvider(chainId) : await getSignerProvider(chainId);
|
|
12371
10434
|
return getContract(address, Forwarder_default, provider);
|
|
12372
10435
|
};
|
|
12373
|
-
var getReimbursementContract = async (chainId, type = 0 /* JSON */) => {
|
|
12374
|
-
const addresses = address_default[chainId];
|
|
12375
|
-
const address = addresses.REIMBURSEMENT;
|
|
12376
|
-
const provider = type === 0 /* JSON */ ? getJSONProvider(chainId) : await getSignerProvider(chainId);
|
|
12377
|
-
return getContract(
|
|
12378
|
-
address,
|
|
12379
|
-
Reimbursement_default,
|
|
12380
|
-
provider
|
|
12381
|
-
);
|
|
12382
|
-
};
|
|
12383
|
-
var getDisputeCourtContract = async (chainId, type = 0 /* JSON */) => {
|
|
12384
|
-
const addresses = address_default[chainId];
|
|
12385
|
-
const address = addresses.DISPUTE_COURT;
|
|
12386
|
-
const provider = type === 0 /* JSON */ ? getJSONProvider(chainId) : await getSignerProvider(chainId);
|
|
12387
|
-
return getContract(
|
|
12388
|
-
address,
|
|
12389
|
-
DisputeCourt_default,
|
|
12390
|
-
provider
|
|
12391
|
-
);
|
|
12392
|
-
};
|
|
12393
10436
|
|
|
12394
10437
|
// src/config/error.ts
|
|
12395
10438
|
var import_ethers_decode_error = require("ethers-decode-error");
|
|
@@ -14993,9 +13036,7 @@ var ARB_BETA_SEPOLIA = {
|
|
|
14993
13036
|
DATA_PROVIDER: "0x19dD80bF40Af2d891F270085D9B1C49730a5a6B0",
|
|
14994
13037
|
ORACLE_RESERVE: "0x3e0d8fAd0a5245D0b2C9d893fE155397a307577C",
|
|
14995
13038
|
FORWARDER: "0xf58CAEDf8A76331848ef51108ea102D920Dcf785",
|
|
14996
|
-
TRADING_ROUTER: "0x0000000000000000000000000000000000000000"
|
|
14997
|
-
REIMBURSEMENT: "0x0000000000000000000000000000000000000000",
|
|
14998
|
-
DISPUTE_COURT: "0x0000000000000000000000000000000000000000"
|
|
13039
|
+
TRADING_ROUTER: "0x0000000000000000000000000000000000000000"
|
|
14999
13040
|
};
|
|
15000
13041
|
|
|
15001
13042
|
// src/config/address/LINEA_BETA_SEPOLIA.ts
|
|
@@ -15018,9 +13059,7 @@ var LINEA_BETA_SEPOLIA = {
|
|
|
15018
13059
|
ORACLE_RESERVE: "0xB3D5a67223905FE73a0749e7A03525838063C54C",
|
|
15019
13060
|
USDC: "0xD984fd34f91F92DA0586e1bE82E262fF27DC431b",
|
|
15020
13061
|
FORWARDER: "0x6C40462A4d45BA4119af59Fb9e41b8eaC9293962",
|
|
15021
|
-
TRADING_ROUTER: "0x0000000000000000000000000000000000000000"
|
|
15022
|
-
REIMBURSEMENT: "0x0000000000000000000000000000000000000000",
|
|
15023
|
-
DISPUTE_COURT: "0x0000000000000000000000000000000000000000"
|
|
13062
|
+
TRADING_ROUTER: "0x0000000000000000000000000000000000000000"
|
|
15024
13063
|
};
|
|
15025
13064
|
|
|
15026
13065
|
// src/config/address/BSC_BETA_NET.ts
|
|
@@ -15126,10 +13165,10 @@ var Position = class {
|
|
|
15126
13165
|
}
|
|
15127
13166
|
const updateParams = {
|
|
15128
13167
|
poolId,
|
|
13168
|
+
oracleType: poolOracleType,
|
|
15129
13169
|
referencePrice: import_ethers23.ethers.parseUnits(priceData?.price ?? "0", 30),
|
|
15130
13170
|
oracleUpdateData: priceData?.vaa ?? "0",
|
|
15131
|
-
publishTime: priceData.publishTime
|
|
15132
|
-
oracleType: poolOracleType
|
|
13171
|
+
publishTime: priceData.publishTime
|
|
15133
13172
|
};
|
|
15134
13173
|
let needsApproval = false;
|
|
15135
13174
|
if (Number(adjustAmount) > 0) {
|
|
@@ -20923,7 +18962,7 @@ var Utils = class {
|
|
|
20923
18962
|
}
|
|
20924
18963
|
return null;
|
|
20925
18964
|
}
|
|
20926
|
-
async getApproveQuoteAmount(
|
|
18965
|
+
async getApproveQuoteAmount(address, chainId, quoteAddress, spenderAddress) {
|
|
20927
18966
|
try {
|
|
20928
18967
|
const erc20Abi = [
|
|
20929
18968
|
"function allowance(address owner, address spender) external view returns (uint256)"
|
|
@@ -20931,11 +18970,11 @@ var Utils = class {
|
|
|
20931
18970
|
const spender = spenderAddress ?? getContractAddressByChainId(chainId).Account;
|
|
20932
18971
|
const provider = await getJSONProvider(chainId);
|
|
20933
18972
|
const tokenContract = new import_ethers25.ethers.Contract(
|
|
20934
|
-
|
|
18973
|
+
quoteAddress,
|
|
20935
18974
|
erc20Abi,
|
|
20936
18975
|
provider
|
|
20937
18976
|
);
|
|
20938
|
-
const allowance = await tokenContract.allowance(
|
|
18977
|
+
const allowance = await tokenContract.allowance(address, spender);
|
|
20939
18978
|
return {
|
|
20940
18979
|
code: 0,
|
|
20941
18980
|
data: allowance.toString()
|
|
@@ -20945,12 +18984,12 @@ var Utils = class {
|
|
|
20945
18984
|
throw typeof error === "string" ? error : await getErrorTextFormError(error);
|
|
20946
18985
|
}
|
|
20947
18986
|
}
|
|
20948
|
-
async needsApproval(
|
|
18987
|
+
async needsApproval(address, chainId, quoteAddress, requiredAmount, spenderAddress) {
|
|
20949
18988
|
try {
|
|
20950
18989
|
const currentAllowanceRes = await this.getApproveQuoteAmount(
|
|
20951
|
-
|
|
18990
|
+
address,
|
|
20952
18991
|
chainId,
|
|
20953
|
-
|
|
18992
|
+
quoteAddress,
|
|
20954
18993
|
spenderAddress
|
|
20955
18994
|
);
|
|
20956
18995
|
const currentAllowance = currentAllowanceRes.data;
|
|
@@ -21042,7 +19081,9 @@ var Utils = class {
|
|
|
21042
19081
|
provider
|
|
21043
19082
|
);
|
|
21044
19083
|
try {
|
|
21045
|
-
const networkFee = await marketManagerContract.getExecutionFee(
|
|
19084
|
+
const networkFee = await marketManagerContract.getExecutionFee(
|
|
19085
|
+
marketId
|
|
19086
|
+
);
|
|
21046
19087
|
return networkFee.toString();
|
|
21047
19088
|
} catch (error) {
|
|
21048
19089
|
this.logger.error("Error getting network fee:", error);
|
|
@@ -21056,24 +19097,15 @@ var Utils = class {
|
|
|
21056
19097
|
return priceData;
|
|
21057
19098
|
} catch (error) {
|
|
21058
19099
|
this.logger.error("Error getting oracle price:", error);
|
|
21059
|
-
|
|
19100
|
+
return {
|
|
19101
|
+
price: "0",
|
|
19102
|
+
vaa: "",
|
|
19103
|
+
publishTime: 0,
|
|
19104
|
+
poolId: "",
|
|
19105
|
+
value: 0
|
|
19106
|
+
};
|
|
21060
19107
|
}
|
|
21061
19108
|
}
|
|
21062
|
-
async buildUpdatePriceParams(poolId, chainId) {
|
|
21063
|
-
const priceData = await this.getOraclePrice(poolId, chainId);
|
|
21064
|
-
if (!priceData) throw new Error("Failed to get price data");
|
|
21065
|
-
return [
|
|
21066
|
-
{
|
|
21067
|
-
poolId,
|
|
21068
|
-
referencePrice: import_ethers25.ethers.parseUnits(priceData.price, 30),
|
|
21069
|
-
oracleUpdateData: priceData.vaa,
|
|
21070
|
-
publishTime: priceData.publishTime,
|
|
21071
|
-
oracleType: priceData.oracleType,
|
|
21072
|
-
value: priceData.value,
|
|
21073
|
-
price: priceData.price
|
|
21074
|
-
}
|
|
21075
|
-
];
|
|
21076
|
-
}
|
|
21077
19109
|
transferKlineResolutionToInterval(resolution) {
|
|
21078
19110
|
switch (resolution) {
|
|
21079
19111
|
case "1m":
|
|
@@ -21194,17 +19226,11 @@ var Utils = class {
|
|
|
21194
19226
|
}
|
|
21195
19227
|
return JSON.stringify(error);
|
|
21196
19228
|
}
|
|
21197
|
-
async getGasPriceByRatio() {
|
|
21198
|
-
const chainId = this.configManager.getConfig().chainId;
|
|
19229
|
+
async getGasPriceByRatio(chainId) {
|
|
21199
19230
|
return (await bigintTradingGasPriceWithRatio(chainId)).gasPrice;
|
|
21200
19231
|
}
|
|
21201
|
-
async getGasLimitByRatio(gasLimit) {
|
|
21202
|
-
|
|
21203
|
-
const chainInfo = CHAIN_INFO[chainId];
|
|
21204
|
-
return bigintTradingGasToRatioCalculator(
|
|
21205
|
-
gasLimit,
|
|
21206
|
-
chainInfo?.gasLimitRatio ?? 1.3
|
|
21207
|
-
);
|
|
19232
|
+
async getGasLimitByRatio(chainId, gasLimit) {
|
|
19233
|
+
return bigintTradingGasToRatioCalculator(gasLimit, chainId);
|
|
21208
19234
|
}
|
|
21209
19235
|
};
|
|
21210
19236
|
|
|
@@ -21998,29 +20024,6 @@ var Account = class {
|
|
|
21998
20024
|
}
|
|
21999
20025
|
async getAvailableMarginBalance({ poolId, chainId, address }) {
|
|
22000
20026
|
try {
|
|
22001
|
-
const poolListRes = await this.client.api.getPoolList();
|
|
22002
|
-
if (poolListRes.code !== 9200) {
|
|
22003
|
-
throw new MyxSDKError(
|
|
22004
|
-
"REQUEST_FAILED" /* RequestFailed */,
|
|
22005
|
-
"Failed to get pool list"
|
|
22006
|
-
);
|
|
22007
|
-
}
|
|
22008
|
-
const poolList = poolListRes.data;
|
|
22009
|
-
const pool = poolList?.find((pool2) => pool2.poolId === poolId);
|
|
22010
|
-
const orderRes = await this.client.order.getOrders(address);
|
|
22011
|
-
if (orderRes.code !== 0) {
|
|
22012
|
-
throw new MyxSDKError(
|
|
22013
|
-
"REQUEST_FAILED" /* RequestFailed */,
|
|
22014
|
-
"Failed to get orders"
|
|
22015
|
-
);
|
|
22016
|
-
}
|
|
22017
|
-
const orders = orderRes.data;
|
|
22018
|
-
const openOrders = orders?.filter((order) => order.poolId === poolId);
|
|
22019
|
-
const used = openOrders?.reduce((acc, order) => {
|
|
22020
|
-
const prev = BigInt(import_ethers26.ethers.parseUnits(acc, pool?.quoteDecimals ?? 6));
|
|
22021
|
-
const curr = BigInt(import_ethers26.ethers.parseUnits(order.collateralAmount ?? "0", pool?.quoteDecimals ?? 6)) + prev;
|
|
22022
|
-
return curr.toString();
|
|
22023
|
-
}, "0");
|
|
22024
20027
|
const marginAccountBalanceRes = await this.getAccountInfo(chainId, address, poolId);
|
|
22025
20028
|
if (marginAccountBalanceRes.code !== 0) {
|
|
22026
20029
|
throw new MyxSDKError(
|
|
@@ -22029,15 +20032,10 @@ var Account = class {
|
|
|
22029
20032
|
);
|
|
22030
20033
|
}
|
|
22031
20034
|
const marginAccountBalance = marginAccountBalanceRes.data;
|
|
22032
|
-
const usedMargin = BigInt(used ?? "0");
|
|
22033
20035
|
const quoteProfit = BigInt(marginAccountBalance.quoteProfit ?? 0);
|
|
22034
20036
|
const freeAmount = BigInt(marginAccountBalance?.freeMargin ?? 0);
|
|
22035
20037
|
const accountMargin = freeAmount + quoteProfit;
|
|
22036
|
-
|
|
22037
|
-
return BigInt(0);
|
|
22038
|
-
}
|
|
22039
|
-
const availableAccountMarginBalance = accountMargin - usedMargin;
|
|
22040
|
-
return availableAccountMarginBalance;
|
|
20038
|
+
return accountMargin;
|
|
22041
20039
|
} catch (error) {
|
|
22042
20040
|
throw new MyxSDKError(
|
|
22043
20041
|
"REQUEST_FAILED" /* RequestFailed */,
|
|
@@ -22199,8 +20197,6 @@ var Account = class {
|
|
|
22199
20197
|
};
|
|
22200
20198
|
}
|
|
22201
20199
|
}
|
|
22202
|
-
async getCurrentEpoch() {
|
|
22203
|
-
}
|
|
22204
20200
|
async getAccountVipInfo(chainId, address) {
|
|
22205
20201
|
const config = this.configManager.getConfig();
|
|
22206
20202
|
const provider = await getJSONProvider(chainId);
|
|
@@ -22355,13 +20351,11 @@ function addQueryParams(rawQuery) {
|
|
|
22355
20351
|
return queryString ? `?${queryString}` : "";
|
|
22356
20352
|
}
|
|
22357
20353
|
|
|
22358
|
-
// src/manager/api/
|
|
22359
|
-
var
|
|
22360
|
-
|
|
22361
|
-
constructor(configManager) {
|
|
22362
|
-
this._preSigner = null;
|
|
22363
|
-
this._preUserAddress = null;
|
|
20354
|
+
// src/manager/api/index.ts
|
|
20355
|
+
var Api = class {
|
|
20356
|
+
constructor(configManager, logger) {
|
|
22364
20357
|
this.configManager = configManager;
|
|
20358
|
+
this.logger = logger;
|
|
22365
20359
|
}
|
|
22366
20360
|
getHost() {
|
|
22367
20361
|
const { isTestnet, isBetaMode } = this.configManager.getConfig();
|
|
@@ -22373,78 +20367,148 @@ var Request = class {
|
|
|
22373
20367
|
return "https://api.myx.finance";
|
|
22374
20368
|
}
|
|
22375
20369
|
}
|
|
22376
|
-
async
|
|
22377
|
-
|
|
22378
|
-
|
|
22379
|
-
|
|
22380
|
-
|
|
22381
|
-
|
|
22382
|
-
|
|
22383
|
-
|
|
22384
|
-
|
|
22385
|
-
|
|
22386
|
-
|
|
22387
|
-
|
|
22388
|
-
|
|
22389
|
-
return {
|
|
22390
|
-
headers: {
|
|
22391
|
-
myx_openapi_access_token: accessToken,
|
|
22392
|
-
myx_openapi_account: userAddress
|
|
20370
|
+
async getTradeFlow({
|
|
20371
|
+
accessToken,
|
|
20372
|
+
address,
|
|
20373
|
+
...params
|
|
20374
|
+
}) {
|
|
20375
|
+
return http.get(
|
|
20376
|
+
`${this.getHost()}/openapi/gateway/scan/trade/flow`,
|
|
20377
|
+
params,
|
|
20378
|
+
{
|
|
20379
|
+
headers: {
|
|
20380
|
+
myx_openapi_access_token: accessToken,
|
|
20381
|
+
myx_openapi_account: address
|
|
20382
|
+
}
|
|
22393
20383
|
}
|
|
22394
|
-
|
|
20384
|
+
);
|
|
22395
20385
|
}
|
|
22396
|
-
|
|
22397
|
-
|
|
22398
|
-
|
|
22399
|
-
|
|
22400
|
-
|
|
20386
|
+
async getPoolSymbolAll() {
|
|
20387
|
+
return http.get(
|
|
20388
|
+
`${this.getHost()}/openapi/gateway/scan/pools`
|
|
20389
|
+
);
|
|
20390
|
+
}
|
|
20391
|
+
async fetchForwarderGetApi(params) {
|
|
20392
|
+
const rs = await http.get(
|
|
20393
|
+
`${this.getHost()}/v2/agent/forwarder/get${addQueryParams(params)}`
|
|
20394
|
+
);
|
|
20395
|
+
return rs;
|
|
22401
20396
|
}
|
|
22402
|
-
async
|
|
22403
|
-
const authOptions = auth ? await this.buildAuthParams() : {};
|
|
20397
|
+
async getPoolList() {
|
|
22404
20398
|
return http.get(
|
|
22405
|
-
this.
|
|
22406
|
-
params,
|
|
22407
|
-
(0, import_lodash_es3.merge)(authOptions, options)
|
|
20399
|
+
`${this.getHost()}/openapi/gateway/scan/market/list`
|
|
22408
20400
|
);
|
|
22409
20401
|
}
|
|
22410
|
-
async
|
|
22411
|
-
const authOptions = auth ? await this.buildAuthParams() : {};
|
|
20402
|
+
async forwarderTxApi(params, chainId) {
|
|
22412
20403
|
return http.post(
|
|
22413
|
-
this.
|
|
22414
|
-
|
|
22415
|
-
|
|
20404
|
+
`${this.getHost()}/v2/agent/forwarder/tx-v2`,
|
|
20405
|
+
params,
|
|
20406
|
+
{
|
|
20407
|
+
headers: {
|
|
20408
|
+
"myx-chain-id": chainId.toString()
|
|
20409
|
+
}
|
|
20410
|
+
}
|
|
22416
20411
|
);
|
|
22417
20412
|
}
|
|
22418
|
-
async
|
|
22419
|
-
|
|
22420
|
-
|
|
22421
|
-
|
|
22422
|
-
|
|
22423
|
-
|
|
20413
|
+
async getOraclePrice(chainId, poolIds = []) {
|
|
20414
|
+
if (!!poolIds.length) {
|
|
20415
|
+
return http.get(
|
|
20416
|
+
`${this.getHost()}/openapi/gateway/quote/price/oracles`,
|
|
20417
|
+
{
|
|
20418
|
+
chainId,
|
|
20419
|
+
poolIds: poolIds.join(",")
|
|
20420
|
+
}
|
|
20421
|
+
);
|
|
20422
|
+
}
|
|
20423
|
+
throw new Error("Invalid pool id");
|
|
20424
|
+
}
|
|
20425
|
+
async getPoolDetail(chainId, poolId) {
|
|
20426
|
+
return await http.get(
|
|
20427
|
+
`${this.getHost()}/openapi/gateway/scan/market/info?chainId=${chainId}&poolId=${poolId}`
|
|
22424
20428
|
);
|
|
22425
20429
|
}
|
|
22426
|
-
async
|
|
22427
|
-
|
|
22428
|
-
|
|
22429
|
-
|
|
22430
|
-
|
|
20430
|
+
async getPoolLevelConfig({
|
|
20431
|
+
poolId,
|
|
20432
|
+
chainId
|
|
20433
|
+
}) {
|
|
20434
|
+
return http.get(
|
|
20435
|
+
`${this.getHost()}/openapi/gateway/risk/market_pool/level_config${addQueryParams({
|
|
20436
|
+
poolId,
|
|
20437
|
+
chainId
|
|
20438
|
+
})}`
|
|
22431
20439
|
);
|
|
22432
20440
|
}
|
|
22433
|
-
|
|
22434
|
-
|
|
22435
|
-
|
|
22436
|
-
|
|
22437
|
-
|
|
22438
|
-
|
|
22439
|
-
|
|
20441
|
+
async getPositions(accessToken, address) {
|
|
20442
|
+
return await http.get(
|
|
20443
|
+
`${this.getHost()}/openapi/gateway/scan/position/open`,
|
|
20444
|
+
void 0,
|
|
20445
|
+
{
|
|
20446
|
+
headers: {
|
|
20447
|
+
myx_openapi_access_token: accessToken,
|
|
20448
|
+
myx_openapi_account: address
|
|
20449
|
+
}
|
|
20450
|
+
}
|
|
20451
|
+
);
|
|
22440
20452
|
}
|
|
22441
|
-
async
|
|
22442
|
-
|
|
22443
|
-
|
|
22444
|
-
|
|
22445
|
-
|
|
20453
|
+
async getOrders(accessToken, address) {
|
|
20454
|
+
return await http.get(
|
|
20455
|
+
`${this.getHost()}/openapi/gateway/scan/order/open`,
|
|
20456
|
+
void 0,
|
|
20457
|
+
{
|
|
20458
|
+
headers: {
|
|
20459
|
+
myx_openapi_access_token: accessToken,
|
|
20460
|
+
myx_openapi_account: address
|
|
20461
|
+
}
|
|
20462
|
+
}
|
|
20463
|
+
);
|
|
20464
|
+
}
|
|
20465
|
+
async getPoolOpenOrders(accessToken, address, chainId) {
|
|
20466
|
+
return await http.get(
|
|
20467
|
+
`${this.getHost()}/openapi/gateway/scan/market/pool-order/open?chainId=${chainId}`,
|
|
20468
|
+
void 0,
|
|
20469
|
+
{
|
|
20470
|
+
headers: {
|
|
20471
|
+
myx_openapi_access_token: accessToken,
|
|
20472
|
+
myx_openapi_account: address
|
|
20473
|
+
}
|
|
20474
|
+
}
|
|
20475
|
+
);
|
|
20476
|
+
}
|
|
20477
|
+
async getKlineData({ chainId, poolId, endTime, limit, interval }) {
|
|
22446
20478
|
return http.get(
|
|
22447
|
-
`${this.getHost()}/openapi/gateway/
|
|
20479
|
+
`${this.getHost()}/openapi/gateway/quote/candles`,
|
|
20480
|
+
{
|
|
20481
|
+
chainId,
|
|
20482
|
+
poolId,
|
|
20483
|
+
endTime,
|
|
20484
|
+
limit,
|
|
20485
|
+
interval
|
|
20486
|
+
}
|
|
20487
|
+
);
|
|
20488
|
+
}
|
|
20489
|
+
async getKlineLatestBar(params) {
|
|
20490
|
+
return http.get(
|
|
20491
|
+
`${this.getHost()}/openapi/gateway/quote/candle/latest`,
|
|
20492
|
+
params
|
|
20493
|
+
);
|
|
20494
|
+
}
|
|
20495
|
+
async getTickerData({ chainId, poolIds }) {
|
|
20496
|
+
return http.get(
|
|
20497
|
+
`${this.getHost()}/openapi/gateway/quote/candle/tickers`,
|
|
20498
|
+
{
|
|
20499
|
+
chainId,
|
|
20500
|
+
poolIds: poolIds.join(",")
|
|
20501
|
+
}
|
|
20502
|
+
);
|
|
20503
|
+
}
|
|
20504
|
+
async getAllTickers() {
|
|
20505
|
+
return http.get(
|
|
20506
|
+
`${this.getHost()}/v2/mx-gateway/quote/candle/all_tickers`
|
|
20507
|
+
);
|
|
20508
|
+
}
|
|
20509
|
+
async searchMarketAuth({ accessToken, address, ...params }) {
|
|
20510
|
+
return http.get(
|
|
20511
|
+
`${this.getHost()}/openapi/gateway/scan/market/ac-search`,
|
|
22448
20512
|
params,
|
|
22449
20513
|
{
|
|
22450
20514
|
headers: {
|
|
@@ -22454,416 +20518,550 @@ var Api = class extends Request {
|
|
|
22454
20518
|
}
|
|
22455
20519
|
);
|
|
22456
20520
|
}
|
|
22457
|
-
async
|
|
20521
|
+
async searchMarket({ ...params }) {
|
|
22458
20522
|
return http.get(
|
|
22459
|
-
`${this.getHost()}/openapi/gateway/scan/
|
|
20523
|
+
`${this.getHost()}/openapi/gateway/scan/market/search`,
|
|
20524
|
+
params
|
|
22460
20525
|
);
|
|
22461
20526
|
}
|
|
22462
|
-
async
|
|
22463
|
-
|
|
22464
|
-
`${this.getHost()}/
|
|
20527
|
+
async addFavorite({ accessToken, address, ...params }) {
|
|
20528
|
+
return http.get(
|
|
20529
|
+
`${this.getHost()}/openapi/gateway/scan/market/add-favorites`,
|
|
20530
|
+
params,
|
|
20531
|
+
{
|
|
20532
|
+
headers: {
|
|
20533
|
+
myx_openapi_access_token: accessToken,
|
|
20534
|
+
myx_openapi_account: address
|
|
20535
|
+
}
|
|
20536
|
+
}
|
|
22465
20537
|
);
|
|
22466
|
-
return rs;
|
|
22467
20538
|
}
|
|
22468
|
-
async
|
|
20539
|
+
async removeFavorite({ accessToken, address, ...params }) {
|
|
20540
|
+
return http.get(
|
|
20541
|
+
`${this.getHost()}/openapi/gateway/scan/market/cancel-favorites`,
|
|
20542
|
+
params,
|
|
20543
|
+
{
|
|
20544
|
+
headers: {
|
|
20545
|
+
myx_openapi_access_token: accessToken,
|
|
20546
|
+
myx_openapi_account: address
|
|
20547
|
+
}
|
|
20548
|
+
}
|
|
20549
|
+
);
|
|
20550
|
+
}
|
|
20551
|
+
async getFavoritesList({ accessToken, address, ...params }) {
|
|
20552
|
+
return http.get(
|
|
20553
|
+
`${this.getHost()}/openapi/gateway/scan/market/favorites`,
|
|
20554
|
+
params,
|
|
20555
|
+
{
|
|
20556
|
+
headers: {
|
|
20557
|
+
myx_openapi_access_token: accessToken,
|
|
20558
|
+
myx_openapi_account: address
|
|
20559
|
+
}
|
|
20560
|
+
}
|
|
20561
|
+
);
|
|
20562
|
+
}
|
|
20563
|
+
async getBaseDetail({ ...params }) {
|
|
20564
|
+
return http.get(
|
|
20565
|
+
`${this.getHost()}/openapi/gateway/scan/market/base-details`,
|
|
20566
|
+
params
|
|
20567
|
+
);
|
|
20568
|
+
}
|
|
20569
|
+
async getMarketDetail({ ...params }) {
|
|
20570
|
+
return http.get(
|
|
20571
|
+
`${this.getHost()}/openapi/gateway/scan/market/detail`,
|
|
20572
|
+
params
|
|
20573
|
+
);
|
|
20574
|
+
}
|
|
20575
|
+
async getHistoryOrders({
|
|
20576
|
+
accessToken,
|
|
20577
|
+
address,
|
|
20578
|
+
...params
|
|
20579
|
+
}) {
|
|
22469
20580
|
return http.get(
|
|
22470
|
-
`${this.getHost()}/openapi/gateway/scan/
|
|
22471
|
-
);
|
|
22472
|
-
}
|
|
22473
|
-
async forwarderTxApi(params, chainId) {
|
|
22474
|
-
return http.post(
|
|
22475
|
-
`${this.getHost()}/v2/agent/forwarder/tx-v2`,
|
|
20581
|
+
`${this.getHost()}/openapi/gateway/scan/order/closed`,
|
|
22476
20582
|
params,
|
|
22477
20583
|
{
|
|
22478
20584
|
headers: {
|
|
22479
|
-
|
|
20585
|
+
myx_openapi_account: address,
|
|
20586
|
+
myx_openapi_access_token: accessToken
|
|
22480
20587
|
}
|
|
22481
20588
|
}
|
|
22482
20589
|
);
|
|
22483
20590
|
}
|
|
22484
|
-
async
|
|
22485
|
-
|
|
22486
|
-
|
|
22487
|
-
|
|
22488
|
-
|
|
22489
|
-
});
|
|
22490
|
-
}
|
|
22491
|
-
throw new Error("Invalid pool id");
|
|
22492
|
-
}
|
|
22493
|
-
async getPoolDetail(chainId, poolId) {
|
|
22494
|
-
return await http.get(
|
|
22495
|
-
`${this.getHost()}/openapi/gateway/scan/market/info?chainId=${chainId}&poolId=${poolId}`
|
|
22496
|
-
);
|
|
22497
|
-
}
|
|
22498
|
-
async getPoolLevelConfig({ poolId, chainId }) {
|
|
20591
|
+
async getPositionHistory({
|
|
20592
|
+
accessToken,
|
|
20593
|
+
address,
|
|
20594
|
+
...params
|
|
20595
|
+
}) {
|
|
22499
20596
|
return http.get(
|
|
22500
|
-
`${this.getHost()}/openapi/gateway/
|
|
22501
|
-
|
|
22502
|
-
poolId,
|
|
22503
|
-
chainId
|
|
22504
|
-
}
|
|
22505
|
-
)}`
|
|
22506
|
-
);
|
|
22507
|
-
}
|
|
22508
|
-
async getPositions(accessToken, address) {
|
|
22509
|
-
return await http.get(
|
|
22510
|
-
`${this.getHost()}/openapi/gateway/scan/position/open`,
|
|
22511
|
-
void 0,
|
|
20597
|
+
`${this.getHost()}/openapi/gateway/scan/position/closed`,
|
|
20598
|
+
params,
|
|
22512
20599
|
{
|
|
22513
20600
|
headers: {
|
|
22514
|
-
|
|
22515
|
-
|
|
20601
|
+
myx_openapi_account: address,
|
|
20602
|
+
myx_openapi_access_token: accessToken
|
|
22516
20603
|
}
|
|
22517
20604
|
}
|
|
22518
20605
|
);
|
|
22519
20606
|
}
|
|
22520
|
-
async
|
|
22521
|
-
return
|
|
22522
|
-
`${this.getHost()}/openapi/gateway/scan/
|
|
22523
|
-
|
|
20607
|
+
async getMarketList() {
|
|
20608
|
+
return http.get(
|
|
20609
|
+
`${this.getHost()}/openapi/gateway/scan/market`
|
|
20610
|
+
);
|
|
20611
|
+
}
|
|
20612
|
+
async getAccountVipInfo({ address, accessToken, chainId, deadline, nonce }) {
|
|
20613
|
+
return http.get(
|
|
20614
|
+
`${this.getHost()}/openapi/gateway/vip/trade_config`,
|
|
20615
|
+
{ chainId, deadline, nonce },
|
|
22524
20616
|
{
|
|
22525
20617
|
headers: {
|
|
22526
|
-
|
|
22527
|
-
|
|
20618
|
+
myx_openapi_account: address,
|
|
20619
|
+
myx_openapi_access_token: accessToken
|
|
22528
20620
|
}
|
|
22529
20621
|
}
|
|
22530
20622
|
);
|
|
22531
20623
|
}
|
|
22532
|
-
async
|
|
22533
|
-
return
|
|
22534
|
-
`${this.getHost()}/openapi/gateway/scan/
|
|
22535
|
-
|
|
20624
|
+
async getCurrentEpoch({ address, accessToken, broker }) {
|
|
20625
|
+
return http.get(
|
|
20626
|
+
`${this.getHost()}/openapi/gateway/scan/get-current-epoch`,
|
|
20627
|
+
{ broker },
|
|
22536
20628
|
{
|
|
22537
20629
|
headers: {
|
|
22538
|
-
|
|
22539
|
-
|
|
20630
|
+
myx_openapi_account: address,
|
|
20631
|
+
myx_openapi_access_token: accessToken
|
|
22540
20632
|
}
|
|
22541
20633
|
}
|
|
22542
20634
|
);
|
|
22543
20635
|
}
|
|
22544
|
-
|
|
22545
|
-
|
|
22546
|
-
|
|
22547
|
-
|
|
22548
|
-
|
|
22549
|
-
|
|
22550
|
-
|
|
22551
|
-
|
|
22552
|
-
|
|
20636
|
+
};
|
|
20637
|
+
|
|
20638
|
+
// src/manager/seamless/index.ts
|
|
20639
|
+
var import_crypto_js = __toESM(require("crypto-js"));
|
|
20640
|
+
var import_ethers27 = require("ethers");
|
|
20641
|
+
var import_dayjs4 = __toESM(require("dayjs"));
|
|
20642
|
+
|
|
20643
|
+
// src/utils/index.ts
|
|
20644
|
+
var getEIP712Domain = async (contract) => {
|
|
20645
|
+
try {
|
|
20646
|
+
const eip712Domain = await contract.eip712Domain();
|
|
20647
|
+
console.log("eip712Domain-->", eip712Domain.name);
|
|
20648
|
+
console.log("eip712Domain.version-->", eip712Domain.version);
|
|
20649
|
+
return {
|
|
20650
|
+
name: eip712Domain.name,
|
|
20651
|
+
version: eip712Domain.version,
|
|
20652
|
+
chainId: BigInt(eip712Domain.chainId),
|
|
20653
|
+
// 确保 chainId 是ForwarderGetStatus bigint 类型
|
|
20654
|
+
verifyingContract: eip712Domain.verifyingContract
|
|
20655
|
+
};
|
|
20656
|
+
} catch (error) {
|
|
20657
|
+
throw new Error(`Error fetching EIP712 domain: ${error}`);
|
|
20658
|
+
}
|
|
20659
|
+
};
|
|
20660
|
+
|
|
20661
|
+
// src/manager/seamless/index.ts
|
|
20662
|
+
var import_bytes = require("@ethersproject/bytes");
|
|
20663
|
+
|
|
20664
|
+
// src/abi/TradingRouter.json
|
|
20665
|
+
var TradingRouter_default = [
|
|
20666
|
+
{
|
|
20667
|
+
type: "error",
|
|
20668
|
+
name: "AddressEmptyCode",
|
|
20669
|
+
inputs: [
|
|
20670
|
+
{
|
|
20671
|
+
type: "address",
|
|
20672
|
+
name: "target"
|
|
20673
|
+
}
|
|
20674
|
+
]
|
|
20675
|
+
},
|
|
20676
|
+
{
|
|
20677
|
+
type: "error",
|
|
20678
|
+
name: "DesignatedTokenMismatch",
|
|
20679
|
+
inputs: [
|
|
20680
|
+
{
|
|
20681
|
+
type: "address",
|
|
20682
|
+
name: "collectToken"
|
|
20683
|
+
},
|
|
20684
|
+
{
|
|
20685
|
+
type: "address",
|
|
20686
|
+
name: "designatedToken"
|
|
20687
|
+
}
|
|
20688
|
+
]
|
|
20689
|
+
},
|
|
20690
|
+
{
|
|
20691
|
+
type: "error",
|
|
20692
|
+
name: "ERC1967InvalidImplementation",
|
|
20693
|
+
inputs: [
|
|
20694
|
+
{
|
|
20695
|
+
type: "address",
|
|
20696
|
+
name: "implementation"
|
|
20697
|
+
}
|
|
20698
|
+
]
|
|
20699
|
+
},
|
|
20700
|
+
{
|
|
20701
|
+
type: "error",
|
|
20702
|
+
name: "ERC1967NonPayable",
|
|
20703
|
+
inputs: []
|
|
20704
|
+
},
|
|
20705
|
+
{
|
|
20706
|
+
type: "error",
|
|
20707
|
+
name: "FailedCall",
|
|
20708
|
+
inputs: []
|
|
20709
|
+
},
|
|
20710
|
+
{
|
|
20711
|
+
type: "error",
|
|
20712
|
+
name: "InvalidInitialization",
|
|
20713
|
+
inputs: []
|
|
20714
|
+
},
|
|
20715
|
+
{
|
|
20716
|
+
type: "error",
|
|
20717
|
+
name: "NotActiveBroker",
|
|
20718
|
+
inputs: [
|
|
20719
|
+
{
|
|
20720
|
+
type: "address",
|
|
20721
|
+
name: "broker"
|
|
20722
|
+
}
|
|
20723
|
+
]
|
|
20724
|
+
},
|
|
20725
|
+
{
|
|
20726
|
+
type: "error",
|
|
20727
|
+
name: "NotAddressManager",
|
|
20728
|
+
inputs: []
|
|
20729
|
+
},
|
|
20730
|
+
{
|
|
20731
|
+
type: "error",
|
|
20732
|
+
name: "NotDependencyManager",
|
|
20733
|
+
inputs: []
|
|
20734
|
+
},
|
|
20735
|
+
{
|
|
20736
|
+
type: "error",
|
|
20737
|
+
name: "NotForwardAllowedTarget",
|
|
20738
|
+
inputs: [
|
|
20739
|
+
{
|
|
20740
|
+
type: "address",
|
|
20741
|
+
name: "from"
|
|
20742
|
+
}
|
|
20743
|
+
]
|
|
20744
|
+
},
|
|
20745
|
+
{
|
|
20746
|
+
type: "error",
|
|
20747
|
+
name: "NotInitializing",
|
|
20748
|
+
inputs: []
|
|
20749
|
+
},
|
|
20750
|
+
{
|
|
20751
|
+
type: "error",
|
|
20752
|
+
name: "NotProxyAdmin",
|
|
20753
|
+
inputs: []
|
|
20754
|
+
},
|
|
20755
|
+
{
|
|
20756
|
+
type: "error",
|
|
20757
|
+
name: "PermissionDenied",
|
|
20758
|
+
inputs: [
|
|
20759
|
+
{
|
|
20760
|
+
type: "address",
|
|
20761
|
+
name: "caller"
|
|
20762
|
+
},
|
|
20763
|
+
{
|
|
20764
|
+
type: "address",
|
|
20765
|
+
name: "target"
|
|
20766
|
+
}
|
|
20767
|
+
]
|
|
20768
|
+
},
|
|
20769
|
+
{
|
|
20770
|
+
type: "error",
|
|
20771
|
+
name: "ReentrancyGuardReentrantCall",
|
|
20772
|
+
inputs: []
|
|
20773
|
+
},
|
|
20774
|
+
{
|
|
20775
|
+
type: "error",
|
|
20776
|
+
name: "SafeERC20FailedOperation",
|
|
20777
|
+
inputs: [
|
|
20778
|
+
{
|
|
20779
|
+
type: "address",
|
|
20780
|
+
name: "token"
|
|
20781
|
+
}
|
|
20782
|
+
]
|
|
20783
|
+
},
|
|
20784
|
+
{
|
|
20785
|
+
type: "error",
|
|
20786
|
+
name: "UUPSUnauthorizedCallContext",
|
|
20787
|
+
inputs: []
|
|
20788
|
+
},
|
|
20789
|
+
{
|
|
20790
|
+
type: "error",
|
|
20791
|
+
name: "UUPSUnsupportedProxiableUUID",
|
|
20792
|
+
inputs: [
|
|
20793
|
+
{
|
|
20794
|
+
type: "bytes32",
|
|
20795
|
+
name: "slot"
|
|
20796
|
+
}
|
|
20797
|
+
]
|
|
20798
|
+
},
|
|
20799
|
+
{
|
|
20800
|
+
type: "event",
|
|
20801
|
+
anonymous: false,
|
|
20802
|
+
name: "Initialized",
|
|
20803
|
+
inputs: [
|
|
20804
|
+
{
|
|
20805
|
+
type: "uint64",
|
|
20806
|
+
name: "version",
|
|
20807
|
+
indexed: false
|
|
20808
|
+
}
|
|
20809
|
+
]
|
|
20810
|
+
},
|
|
20811
|
+
{
|
|
20812
|
+
type: "event",
|
|
20813
|
+
anonymous: false,
|
|
20814
|
+
name: "Upgraded",
|
|
20815
|
+
inputs: [
|
|
20816
|
+
{
|
|
20817
|
+
type: "address",
|
|
20818
|
+
name: "implementation",
|
|
20819
|
+
indexed: true
|
|
20820
|
+
}
|
|
20821
|
+
]
|
|
20822
|
+
},
|
|
20823
|
+
{
|
|
20824
|
+
type: "function",
|
|
20825
|
+
name: "UPGRADE_INTERFACE_VERSION",
|
|
20826
|
+
constant: true,
|
|
20827
|
+
stateMutability: "view",
|
|
20828
|
+
payable: false,
|
|
20829
|
+
inputs: [],
|
|
20830
|
+
outputs: [
|
|
22553
20831
|
{
|
|
22554
|
-
|
|
22555
|
-
poolId,
|
|
22556
|
-
endTime,
|
|
22557
|
-
limit,
|
|
22558
|
-
interval
|
|
20832
|
+
type: "string"
|
|
22559
20833
|
}
|
|
22560
|
-
|
|
22561
|
-
}
|
|
22562
|
-
|
|
22563
|
-
|
|
22564
|
-
|
|
22565
|
-
|
|
22566
|
-
|
|
22567
|
-
|
|
22568
|
-
async getTickerData({ chainId, poolIds }) {
|
|
22569
|
-
return http.get(
|
|
22570
|
-
`${this.getHost()}/openapi/gateway/quote/candle/tickers`,
|
|
20834
|
+
]
|
|
20835
|
+
},
|
|
20836
|
+
{
|
|
20837
|
+
type: "function",
|
|
20838
|
+
name: "__ERC2771ContextUpgradeable_init",
|
|
20839
|
+
constant: false,
|
|
20840
|
+
payable: false,
|
|
20841
|
+
inputs: [
|
|
22571
20842
|
{
|
|
22572
|
-
|
|
22573
|
-
|
|
20843
|
+
type: "address",
|
|
20844
|
+
name: "trustedForwarder_"
|
|
22574
20845
|
}
|
|
22575
|
-
|
|
22576
|
-
|
|
22577
|
-
|
|
22578
|
-
|
|
22579
|
-
|
|
22580
|
-
|
|
22581
|
-
|
|
22582
|
-
|
|
22583
|
-
|
|
22584
|
-
address,
|
|
22585
|
-
...params
|
|
22586
|
-
}) {
|
|
22587
|
-
return http.get(
|
|
22588
|
-
`${this.getHost()}/openapi/gateway/scan/market/ac-search`,
|
|
22589
|
-
params,
|
|
20846
|
+
],
|
|
20847
|
+
outputs: []
|
|
20848
|
+
},
|
|
20849
|
+
{
|
|
20850
|
+
type: "function",
|
|
20851
|
+
name: "collectExecutionFee",
|
|
20852
|
+
constant: false,
|
|
20853
|
+
payable: false,
|
|
20854
|
+
inputs: [
|
|
22590
20855
|
{
|
|
22591
|
-
|
|
22592
|
-
|
|
22593
|
-
|
|
22594
|
-
|
|
20856
|
+
type: "uint8",
|
|
20857
|
+
name: "source"
|
|
20858
|
+
},
|
|
20859
|
+
{
|
|
20860
|
+
type: "bytes",
|
|
20861
|
+
name: "data"
|
|
22595
20862
|
}
|
|
22596
|
-
|
|
22597
|
-
|
|
22598
|
-
|
|
22599
|
-
|
|
22600
|
-
|
|
22601
|
-
|
|
22602
|
-
|
|
22603
|
-
|
|
22604
|
-
|
|
22605
|
-
accessToken,
|
|
22606
|
-
address,
|
|
22607
|
-
...params
|
|
22608
|
-
}) {
|
|
22609
|
-
return http.get(
|
|
22610
|
-
`${this.getHost()}/openapi/gateway/scan/market/add-favorites`,
|
|
22611
|
-
params,
|
|
20863
|
+
],
|
|
20864
|
+
outputs: []
|
|
20865
|
+
},
|
|
20866
|
+
{
|
|
20867
|
+
type: "function",
|
|
20868
|
+
name: "collectForwardFeeIfNecessary",
|
|
20869
|
+
constant: false,
|
|
20870
|
+
payable: false,
|
|
20871
|
+
inputs: [
|
|
22612
20872
|
{
|
|
22613
|
-
|
|
22614
|
-
|
|
22615
|
-
|
|
22616
|
-
|
|
20873
|
+
type: "uint8",
|
|
20874
|
+
name: "source"
|
|
20875
|
+
},
|
|
20876
|
+
{
|
|
20877
|
+
type: "bytes",
|
|
20878
|
+
name: "data"
|
|
22617
20879
|
}
|
|
22618
|
-
|
|
22619
|
-
|
|
22620
|
-
|
|
22621
|
-
|
|
22622
|
-
|
|
22623
|
-
|
|
22624
|
-
|
|
22625
|
-
|
|
22626
|
-
|
|
22627
|
-
params,
|
|
20880
|
+
],
|
|
20881
|
+
outputs: []
|
|
20882
|
+
},
|
|
20883
|
+
{
|
|
20884
|
+
type: "function",
|
|
20885
|
+
name: "depositFor",
|
|
20886
|
+
constant: false,
|
|
20887
|
+
payable: false,
|
|
20888
|
+
inputs: [
|
|
22628
20889
|
{
|
|
22629
|
-
|
|
22630
|
-
|
|
22631
|
-
|
|
22632
|
-
|
|
20890
|
+
type: "address",
|
|
20891
|
+
name: "user"
|
|
20892
|
+
},
|
|
20893
|
+
{
|
|
20894
|
+
type: "address",
|
|
20895
|
+
name: "token"
|
|
20896
|
+
},
|
|
20897
|
+
{
|
|
20898
|
+
type: "uint256",
|
|
20899
|
+
name: "amount"
|
|
22633
20900
|
}
|
|
22634
|
-
|
|
22635
|
-
|
|
22636
|
-
|
|
22637
|
-
|
|
22638
|
-
|
|
22639
|
-
|
|
22640
|
-
|
|
22641
|
-
|
|
22642
|
-
|
|
22643
|
-
params,
|
|
20901
|
+
],
|
|
20902
|
+
outputs: []
|
|
20903
|
+
},
|
|
20904
|
+
{
|
|
20905
|
+
type: "function",
|
|
20906
|
+
name: "depositToAccount",
|
|
20907
|
+
constant: false,
|
|
20908
|
+
payable: false,
|
|
20909
|
+
inputs: [
|
|
22644
20910
|
{
|
|
22645
|
-
|
|
22646
|
-
|
|
22647
|
-
|
|
22648
|
-
|
|
20911
|
+
type: "address",
|
|
20912
|
+
name: "recipient"
|
|
20913
|
+
},
|
|
20914
|
+
{
|
|
20915
|
+
type: "address",
|
|
20916
|
+
name: "token"
|
|
20917
|
+
},
|
|
20918
|
+
{
|
|
20919
|
+
type: "uint256",
|
|
20920
|
+
name: "amount"
|
|
22649
20921
|
}
|
|
22650
|
-
|
|
22651
|
-
|
|
22652
|
-
|
|
22653
|
-
|
|
22654
|
-
|
|
22655
|
-
|
|
22656
|
-
|
|
22657
|
-
|
|
22658
|
-
|
|
22659
|
-
|
|
22660
|
-
|
|
22661
|
-
params
|
|
22662
|
-
);
|
|
22663
|
-
}
|
|
22664
|
-
async getHistoryOrders({
|
|
22665
|
-
accessToken,
|
|
22666
|
-
address,
|
|
22667
|
-
...params
|
|
22668
|
-
}) {
|
|
22669
|
-
return http.get(
|
|
22670
|
-
`${this.getHost()}/openapi/gateway/scan/order/closed`,
|
|
22671
|
-
params,
|
|
20922
|
+
],
|
|
20923
|
+
outputs: []
|
|
20924
|
+
},
|
|
20925
|
+
{
|
|
20926
|
+
type: "function",
|
|
20927
|
+
name: "getAddressManager",
|
|
20928
|
+
constant: true,
|
|
20929
|
+
stateMutability: "view",
|
|
20930
|
+
payable: false,
|
|
20931
|
+
inputs: [],
|
|
20932
|
+
outputs: [
|
|
22672
20933
|
{
|
|
22673
|
-
|
|
22674
|
-
myx_openapi_account: address,
|
|
22675
|
-
myx_openapi_access_token: accessToken
|
|
22676
|
-
}
|
|
20934
|
+
type: "address"
|
|
22677
20935
|
}
|
|
22678
|
-
|
|
22679
|
-
}
|
|
22680
|
-
|
|
22681
|
-
|
|
22682
|
-
|
|
22683
|
-
|
|
22684
|
-
|
|
22685
|
-
|
|
22686
|
-
|
|
22687
|
-
params,
|
|
20936
|
+
]
|
|
20937
|
+
},
|
|
20938
|
+
{
|
|
20939
|
+
type: "function",
|
|
20940
|
+
name: "getDependencyAddress",
|
|
20941
|
+
constant: true,
|
|
20942
|
+
stateMutability: "view",
|
|
20943
|
+
payable: false,
|
|
20944
|
+
inputs: [
|
|
22688
20945
|
{
|
|
22689
|
-
|
|
22690
|
-
|
|
22691
|
-
myx_openapi_access_token: accessToken
|
|
22692
|
-
}
|
|
20946
|
+
type: "bytes32",
|
|
20947
|
+
name: "identifier"
|
|
22693
20948
|
}
|
|
22694
|
-
|
|
22695
|
-
|
|
22696
|
-
async getMarketList() {
|
|
22697
|
-
return http.get(
|
|
22698
|
-
`${this.getHost()}/openapi/gateway/scan/market`
|
|
22699
|
-
);
|
|
22700
|
-
}
|
|
22701
|
-
async getAccountVipInfo({
|
|
22702
|
-
address,
|
|
22703
|
-
accessToken,
|
|
22704
|
-
chainId,
|
|
22705
|
-
deadline,
|
|
22706
|
-
nonce
|
|
22707
|
-
}) {
|
|
22708
|
-
return http.get(
|
|
22709
|
-
`${this.getHost()}/openapi/gateway/vip/trade_config`,
|
|
22710
|
-
{ chainId, deadline, nonce },
|
|
20949
|
+
],
|
|
20950
|
+
outputs: [
|
|
22711
20951
|
{
|
|
22712
|
-
|
|
22713
|
-
myx_openapi_account: address,
|
|
22714
|
-
myx_openapi_access_token: accessToken
|
|
22715
|
-
}
|
|
20952
|
+
type: "address"
|
|
22716
20953
|
}
|
|
22717
|
-
|
|
22718
|
-
}
|
|
22719
|
-
|
|
22720
|
-
|
|
22721
|
-
|
|
22722
|
-
|
|
22723
|
-
|
|
22724
|
-
|
|
22725
|
-
|
|
20954
|
+
]
|
|
20955
|
+
},
|
|
20956
|
+
{
|
|
20957
|
+
type: "function",
|
|
20958
|
+
name: "getImplementation",
|
|
20959
|
+
constant: true,
|
|
20960
|
+
stateMutability: "view",
|
|
20961
|
+
payable: false,
|
|
20962
|
+
inputs: [],
|
|
20963
|
+
outputs: [
|
|
22726
20964
|
{
|
|
22727
|
-
|
|
20965
|
+
type: "address"
|
|
22728
20966
|
}
|
|
22729
|
-
|
|
22730
|
-
}
|
|
22731
|
-
|
|
22732
|
-
|
|
22733
|
-
|
|
22734
|
-
|
|
20967
|
+
]
|
|
20968
|
+
},
|
|
20969
|
+
{
|
|
20970
|
+
type: "function",
|
|
20971
|
+
name: "initialize",
|
|
20972
|
+
constant: false,
|
|
20973
|
+
payable: false,
|
|
20974
|
+
inputs: [
|
|
22735
20975
|
{
|
|
22736
|
-
|
|
20976
|
+
type: "address",
|
|
20977
|
+
name: "addressManager"
|
|
22737
20978
|
}
|
|
22738
|
-
|
|
22739
|
-
|
|
22740
|
-
|
|
22741
|
-
|
|
22742
|
-
|
|
22743
|
-
|
|
20979
|
+
],
|
|
20980
|
+
outputs: []
|
|
20981
|
+
},
|
|
20982
|
+
{
|
|
20983
|
+
type: "function",
|
|
20984
|
+
name: "isTrustedForwarder",
|
|
20985
|
+
constant: true,
|
|
20986
|
+
stateMutability: "view",
|
|
20987
|
+
payable: false,
|
|
20988
|
+
inputs: [
|
|
22744
20989
|
{
|
|
22745
|
-
|
|
20990
|
+
type: "address",
|
|
20991
|
+
name: "forwarder"
|
|
22746
20992
|
}
|
|
22747
|
-
|
|
22748
|
-
|
|
22749
|
-
async getAppealReconsiderationList(params) {
|
|
22750
|
-
return this.get(
|
|
22751
|
-
"/openapi/gateway/scan/dispute/appeal/list",
|
|
22752
|
-
params,
|
|
20993
|
+
],
|
|
20994
|
+
outputs: [
|
|
22753
20995
|
{
|
|
22754
|
-
|
|
20996
|
+
type: "bool"
|
|
22755
20997
|
}
|
|
22756
|
-
|
|
22757
|
-
}
|
|
22758
|
-
|
|
22759
|
-
|
|
22760
|
-
|
|
22761
|
-
|
|
20998
|
+
]
|
|
20999
|
+
},
|
|
21000
|
+
{
|
|
21001
|
+
type: "function",
|
|
21002
|
+
name: "proxiableUUID",
|
|
21003
|
+
constant: true,
|
|
21004
|
+
stateMutability: "view",
|
|
21005
|
+
payable: false,
|
|
21006
|
+
inputs: [],
|
|
21007
|
+
outputs: [
|
|
22762
21008
|
{
|
|
22763
|
-
|
|
21009
|
+
type: "bytes32"
|
|
22764
21010
|
}
|
|
22765
|
-
|
|
22766
|
-
}
|
|
22767
|
-
|
|
22768
|
-
|
|
22769
|
-
|
|
22770
|
-
|
|
21011
|
+
]
|
|
21012
|
+
},
|
|
21013
|
+
{
|
|
21014
|
+
type: "function",
|
|
21015
|
+
name: "trustedForwarder",
|
|
21016
|
+
constant: true,
|
|
21017
|
+
stateMutability: "view",
|
|
21018
|
+
payable: false,
|
|
21019
|
+
inputs: [],
|
|
21020
|
+
outputs: [
|
|
22771
21021
|
{
|
|
22772
|
-
|
|
21022
|
+
type: "address"
|
|
22773
21023
|
}
|
|
22774
|
-
|
|
22775
|
-
}
|
|
22776
|
-
|
|
22777
|
-
|
|
22778
|
-
|
|
22779
|
-
|
|
22780
|
-
|
|
22781
|
-
|
|
22782
|
-
|
|
22783
|
-
return this.get(
|
|
22784
|
-
"/openapi/gateway/scan/node/vote-details",
|
|
22785
|
-
params
|
|
22786
|
-
);
|
|
22787
|
-
}
|
|
22788
|
-
async getIsVoteNode(params) {
|
|
22789
|
-
return this.get(
|
|
22790
|
-
"/openapi/gateway/scan/node/vote-node-check",
|
|
22791
|
-
params
|
|
22792
|
-
);
|
|
22793
|
-
}
|
|
22794
|
-
async postVoteSignature(params) {
|
|
22795
|
-
return this.get(
|
|
22796
|
-
`/openapi/gateway/scan/node/vote`,
|
|
22797
|
-
params,
|
|
21024
|
+
]
|
|
21025
|
+
},
|
|
21026
|
+
{
|
|
21027
|
+
type: "function",
|
|
21028
|
+
name: "upgradeTo",
|
|
21029
|
+
constant: false,
|
|
21030
|
+
stateMutability: "payable",
|
|
21031
|
+
payable: true,
|
|
21032
|
+
inputs: [
|
|
22798
21033
|
{
|
|
22799
|
-
|
|
22800
|
-
|
|
22801
|
-
|
|
22802
|
-
}
|
|
22803
|
-
async getPedingVoteCount() {
|
|
22804
|
-
return this.get(
|
|
22805
|
-
"/openapi/gateway/scan/node/pending-vote-total",
|
|
22806
|
-
{},
|
|
21034
|
+
type: "address",
|
|
21035
|
+
name: "newImplementation"
|
|
21036
|
+
},
|
|
22807
21037
|
{
|
|
22808
|
-
|
|
21038
|
+
type: "bytes",
|
|
21039
|
+
name: "data"
|
|
22809
21040
|
}
|
|
22810
|
-
|
|
22811
|
-
|
|
22812
|
-
|
|
22813
|
-
|
|
22814
|
-
|
|
22815
|
-
|
|
21041
|
+
],
|
|
21042
|
+
outputs: []
|
|
21043
|
+
},
|
|
21044
|
+
{
|
|
21045
|
+
type: "function",
|
|
21046
|
+
name: "upgradeToAndCall",
|
|
21047
|
+
constant: false,
|
|
21048
|
+
stateMutability: "payable",
|
|
21049
|
+
payable: true,
|
|
21050
|
+
inputs: [
|
|
22816
21051
|
{
|
|
22817
|
-
|
|
22818
|
-
|
|
22819
|
-
|
|
22820
|
-
}
|
|
22821
|
-
/**
|
|
22822
|
-
* appeal module end ------>
|
|
22823
|
-
*/
|
|
22824
|
-
async getCurrentEpoch({
|
|
22825
|
-
address,
|
|
22826
|
-
accessToken,
|
|
22827
|
-
broker
|
|
22828
|
-
}) {
|
|
22829
|
-
return http.get(
|
|
22830
|
-
`${this.getHost()}/openapi/gateway/scan/get-current-epoch`,
|
|
22831
|
-
{ broker },
|
|
21052
|
+
type: "address",
|
|
21053
|
+
name: "newImplementation"
|
|
21054
|
+
},
|
|
22832
21055
|
{
|
|
22833
|
-
|
|
22834
|
-
|
|
22835
|
-
myx_openapi_access_token: accessToken
|
|
22836
|
-
}
|
|
21056
|
+
type: "bytes",
|
|
21057
|
+
name: "data"
|
|
22837
21058
|
}
|
|
22838
|
-
|
|
22839
|
-
|
|
22840
|
-
};
|
|
22841
|
-
|
|
22842
|
-
// src/manager/seamless/index.ts
|
|
22843
|
-
var import_crypto_js = __toESM(require("crypto-js"));
|
|
22844
|
-
var import_ethers27 = require("ethers");
|
|
22845
|
-
var import_dayjs4 = __toESM(require("dayjs"));
|
|
22846
|
-
|
|
22847
|
-
// src/utils/index.ts
|
|
22848
|
-
var getEIP712Domain = async (contract) => {
|
|
22849
|
-
try {
|
|
22850
|
-
const eip712Domain = await contract.eip712Domain();
|
|
22851
|
-
console.log("eip712Domain-->", eip712Domain.name);
|
|
22852
|
-
console.log("eip712Domain.version-->", eip712Domain.version);
|
|
22853
|
-
return {
|
|
22854
|
-
name: eip712Domain.name,
|
|
22855
|
-
version: eip712Domain.version,
|
|
22856
|
-
chainId: BigInt(eip712Domain.chainId),
|
|
22857
|
-
// 确保 chainId 是ForwarderGetStatus bigint 类型
|
|
22858
|
-
verifyingContract: eip712Domain.verifyingContract
|
|
22859
|
-
};
|
|
22860
|
-
} catch (error) {
|
|
22861
|
-
throw new Error(`Error fetching EIP712 domain: ${error}`);
|
|
21059
|
+
],
|
|
21060
|
+
outputs: []
|
|
22862
21061
|
}
|
|
22863
|
-
|
|
21062
|
+
];
|
|
22864
21063
|
|
|
22865
21064
|
// src/manager/seamless/index.ts
|
|
22866
|
-
var import_bytes = require("@ethersproject/bytes");
|
|
22867
21065
|
var contractTypes = {
|
|
22868
21066
|
ForwardRequest: [
|
|
22869
21067
|
{ name: "from", type: "address" },
|
|
@@ -22951,8 +21149,11 @@ var Seamless = class {
|
|
|
22951
21149
|
}
|
|
22952
21150
|
const contractAddress = getContractAddressByChainId(chainId);
|
|
22953
21151
|
const masterAddress = await config.signer.getAddress();
|
|
22954
|
-
const
|
|
22955
|
-
|
|
21152
|
+
const tradingRouterContract = new import_ethers27.ethers.Contract(
|
|
21153
|
+
contractAddress.TRADING_ROUTER,
|
|
21154
|
+
TradingRouter_default,
|
|
21155
|
+
config.signer
|
|
21156
|
+
);
|
|
22956
21157
|
const erc20Contract = new import_ethers27.ethers.Contract(
|
|
22957
21158
|
contractAddress.ERC20,
|
|
22958
21159
|
ERC20Token_default,
|
|
@@ -22960,49 +21161,27 @@ var Seamless = class {
|
|
|
22960
21161
|
);
|
|
22961
21162
|
try {
|
|
22962
21163
|
const nonces = await erc20Contract.nonces(masterAddress);
|
|
22963
|
-
const
|
|
21164
|
+
const tradingRouterSignPermit = await signPermit(
|
|
22964
21165
|
config.signer,
|
|
22965
|
-
|
|
22966
|
-
erc20Contract,
|
|
21166
|
+
tradingRouterContract,
|
|
22967
21167
|
masterAddress,
|
|
22968
|
-
|
|
21168
|
+
contractAddress.TRADING_ROUTER,
|
|
22969
21169
|
import_ethers27.ethers.MaxUint256.toString(),
|
|
22970
21170
|
nonces.toString(),
|
|
22971
21171
|
deadline.toString()
|
|
22972
21172
|
);
|
|
22973
|
-
const
|
|
22974
|
-
|
|
22975
|
-
// 使用 signer 而不是 provider
|
|
22976
|
-
erc20Contract,
|
|
22977
|
-
masterAddress,
|
|
22978
|
-
contractAddress.Account,
|
|
22979
|
-
import_ethers27.ethers.MaxUint256.toString(),
|
|
22980
|
-
(nonces + BigInt(1)).toString(),
|
|
22981
|
-
deadline.toString()
|
|
22982
|
-
);
|
|
22983
|
-
const forwarderPermitParams = {
|
|
22984
|
-
token: erc20Contract.target,
|
|
22985
|
-
owner: masterAddress,
|
|
22986
|
-
spender: forwarderAddress,
|
|
22987
|
-
value: import_ethers27.ethers.MaxUint256,
|
|
22988
|
-
deadline,
|
|
22989
|
-
v: forwarderSignPermit.v,
|
|
22990
|
-
r: forwarderSignPermit.r,
|
|
22991
|
-
s: forwarderSignPermit.s
|
|
22992
|
-
};
|
|
22993
|
-
const accountPermitParams = {
|
|
22994
|
-
token: erc20Contract.target,
|
|
21173
|
+
const tradingRouterPermitParams = {
|
|
21174
|
+
token: contractAddress.ERC20,
|
|
22995
21175
|
owner: masterAddress,
|
|
22996
|
-
spender: contractAddress.
|
|
22997
|
-
value: import_ethers27.ethers.MaxUint256,
|
|
22998
|
-
deadline,
|
|
22999
|
-
v:
|
|
23000
|
-
r:
|
|
23001
|
-
s:
|
|
21176
|
+
spender: contractAddress.TRADING_ROUTER,
|
|
21177
|
+
value: import_ethers27.ethers.MaxUint256.toString(),
|
|
21178
|
+
deadline: deadline.toString(),
|
|
21179
|
+
v: tradingRouterSignPermit.v,
|
|
21180
|
+
r: tradingRouterSignPermit.r,
|
|
21181
|
+
s: tradingRouterSignPermit.s
|
|
23002
21182
|
};
|
|
23003
|
-
return [
|
|
21183
|
+
return [tradingRouterPermitParams];
|
|
23004
21184
|
} catch (error) {
|
|
23005
|
-
this.logger.error("error-->", error);
|
|
23006
21185
|
throw new MyxSDKError("INVALID_PRIVATE_KEY" /* InvalidPrivateKey */, "Invalid private key generated");
|
|
23007
21186
|
}
|
|
23008
21187
|
}
|
|
@@ -23033,7 +21212,8 @@ var Seamless = class {
|
|
|
23033
21212
|
deadline,
|
|
23034
21213
|
data
|
|
23035
21214
|
});
|
|
23036
|
-
const
|
|
21215
|
+
const forwardFeeToken = executeAddressByChainId(chainId);
|
|
21216
|
+
const txRs = await this.api.forwarderTxApi({ from, to, value, gas, nonce, data, deadline, signature, forwardFeeToken }, chainId);
|
|
23037
21217
|
return txRs;
|
|
23038
21218
|
}
|
|
23039
21219
|
async authorizeSeamlessAccount({ approve: approve2, seamlessAddress, chainId }) {
|
|
@@ -23269,212 +21449,6 @@ var BaseMyxClient = class {
|
|
|
23269
21449
|
}
|
|
23270
21450
|
};
|
|
23271
21451
|
|
|
23272
|
-
// src/manager/appeal/index.ts
|
|
23273
|
-
var Appeal = class extends BaseMyxClient {
|
|
23274
|
-
constructor(client2) {
|
|
23275
|
-
super(client2);
|
|
23276
|
-
}
|
|
23277
|
-
async getDisputeCourtContract() {
|
|
23278
|
-
const contract = await getDisputeCourtContract(this.config.chainId);
|
|
23279
|
-
return this.connectContract(contract);
|
|
23280
|
-
}
|
|
23281
|
-
async getReimbursementContract() {
|
|
23282
|
-
const contract = await getReimbursementContract(this.config.chainId);
|
|
23283
|
-
return this.connectContract(contract);
|
|
23284
|
-
}
|
|
23285
|
-
/**
|
|
23286
|
-
* submit appeal
|
|
23287
|
-
* @param poolId - the pool id
|
|
23288
|
-
* @param poolToken - the pool token
|
|
23289
|
-
* @returns the transaction receipt
|
|
23290
|
-
*/
|
|
23291
|
-
async submitAppeal(poolId, lpToken, lpAmount) {
|
|
23292
|
-
const account = await this.config.signer?.getAddress() ?? "";
|
|
23293
|
-
const needApprove = await this.client.utils.needsApproval(
|
|
23294
|
-
account,
|
|
23295
|
-
this.config.chainId,
|
|
23296
|
-
lpToken,
|
|
23297
|
-
lpAmount,
|
|
23298
|
-
this.getAddressConfig().DISPUTE_COURT
|
|
23299
|
-
);
|
|
23300
|
-
this.client.logger.debug("need-approve", needApprove);
|
|
23301
|
-
if (needApprove) {
|
|
23302
|
-
await this.client.utils.approveAuthorization({
|
|
23303
|
-
chainId: this.config.chainId,
|
|
23304
|
-
quoteAddress: lpToken,
|
|
23305
|
-
spenderAddress: this.getAddressConfig().DISPUTE_COURT
|
|
23306
|
-
});
|
|
23307
|
-
}
|
|
23308
|
-
const contract = await this.getDisputeCourtContract();
|
|
23309
|
-
const prices = await this.client.utils.buildUpdatePriceParams(
|
|
23310
|
-
poolId,
|
|
23311
|
-
this.config.chainId
|
|
23312
|
-
);
|
|
23313
|
-
const value = BigInt(prices[0].value.toString() || "1");
|
|
23314
|
-
const _gasLimit = await contract.fileDispute.estimateGas(
|
|
23315
|
-
prices,
|
|
23316
|
-
poolId,
|
|
23317
|
-
lpToken,
|
|
23318
|
-
{
|
|
23319
|
-
value
|
|
23320
|
-
}
|
|
23321
|
-
);
|
|
23322
|
-
this.client.logger.debug("_gasLimit", _gasLimit);
|
|
23323
|
-
const gasLimit = await this.client.utils.getGasLimitByRatio(_gasLimit);
|
|
23324
|
-
const gasPrice = await this.client.utils.getGasPriceByRatio();
|
|
23325
|
-
this.client.logger.debug("txParams", {
|
|
23326
|
-
gasLimit,
|
|
23327
|
-
gasPrice,
|
|
23328
|
-
value
|
|
23329
|
-
});
|
|
23330
|
-
const tx = await contract.fileDispute(prices, poolId, lpToken, {
|
|
23331
|
-
value,
|
|
23332
|
-
gasLimit,
|
|
23333
|
-
gasPrice
|
|
23334
|
-
});
|
|
23335
|
-
const receipt = await tx.wait();
|
|
23336
|
-
return receipt;
|
|
23337
|
-
}
|
|
23338
|
-
/**
|
|
23339
|
-
* vote for appeal
|
|
23340
|
-
* @param caseId - the case id
|
|
23341
|
-
* @param isFor - true if for the appeal, false if against the appeal
|
|
23342
|
-
* @returns the transaction receipt
|
|
23343
|
-
*/
|
|
23344
|
-
async voteForAppeal({
|
|
23345
|
-
caseId,
|
|
23346
|
-
validator,
|
|
23347
|
-
isFor,
|
|
23348
|
-
deadline,
|
|
23349
|
-
v,
|
|
23350
|
-
r,
|
|
23351
|
-
s
|
|
23352
|
-
}) {
|
|
23353
|
-
const contract = await this.getDisputeCourtContract();
|
|
23354
|
-
const _gasLimit = await contract.vote.estimateGas(
|
|
23355
|
-
caseId,
|
|
23356
|
-
validator,
|
|
23357
|
-
isFor ? 1 : 0,
|
|
23358
|
-
deadline,
|
|
23359
|
-
v,
|
|
23360
|
-
r,
|
|
23361
|
-
s
|
|
23362
|
-
);
|
|
23363
|
-
const gasLimit = await this.client.utils.getGasLimitByRatio(_gasLimit);
|
|
23364
|
-
const gasPrice = await this.client.utils.getGasPriceByRatio();
|
|
23365
|
-
const tx = await contract.vote(
|
|
23366
|
-
caseId,
|
|
23367
|
-
validator,
|
|
23368
|
-
isFor ? 1 : 0,
|
|
23369
|
-
deadline,
|
|
23370
|
-
v,
|
|
23371
|
-
r,
|
|
23372
|
-
s,
|
|
23373
|
-
{
|
|
23374
|
-
gasLimit,
|
|
23375
|
-
gasPrice
|
|
23376
|
-
}
|
|
23377
|
-
);
|
|
23378
|
-
const receipt = await tx.wait();
|
|
23379
|
-
return receipt;
|
|
23380
|
-
}
|
|
23381
|
-
/**
|
|
23382
|
-
* claim appeal margin
|
|
23383
|
-
* @param caseId - the case id
|
|
23384
|
-
* @returns the transaction receipt
|
|
23385
|
-
*/
|
|
23386
|
-
async claimAppealMargin(caseId) {
|
|
23387
|
-
const contract = await this.getDisputeCourtContract();
|
|
23388
|
-
const _gasLimit = await contract.claimBond.estimateGas(caseId);
|
|
23389
|
-
const gasLimit = await this.client.utils.getGasLimitByRatio(_gasLimit);
|
|
23390
|
-
const gasPrice = await this.client.utils.getGasPriceByRatio();
|
|
23391
|
-
const tx = await contract.claimBond(caseId, {
|
|
23392
|
-
gasLimit,
|
|
23393
|
-
gasPrice
|
|
23394
|
-
});
|
|
23395
|
-
const receipt = await tx.wait();
|
|
23396
|
-
return receipt;
|
|
23397
|
-
}
|
|
23398
|
-
/**
|
|
23399
|
-
* claim reimbursement
|
|
23400
|
-
* @param caseId - the case id
|
|
23401
|
-
* @param baseAmount - the base amount
|
|
23402
|
-
* @param quoteAmount - the quote amount
|
|
23403
|
-
* @param merkleProof - the merkle proof
|
|
23404
|
-
* @returns the transaction receipt
|
|
23405
|
-
*/
|
|
23406
|
-
async claimReimbursement(caseId, baseAmount, quoteAmount, merkleProof) {
|
|
23407
|
-
const contract = await this.getReimbursementContract();
|
|
23408
|
-
const _gasLimit = await contract.claimReimbursement.estimateGas(
|
|
23409
|
-
caseId,
|
|
23410
|
-
baseAmount,
|
|
23411
|
-
quoteAmount,
|
|
23412
|
-
merkleProof
|
|
23413
|
-
);
|
|
23414
|
-
const gasLimit = await this.client.utils.getGasLimitByRatio(_gasLimit);
|
|
23415
|
-
const gasPrice = await this.client.utils.getGasPriceByRatio();
|
|
23416
|
-
const tx = await contract.claimReimbursement(
|
|
23417
|
-
caseId,
|
|
23418
|
-
baseAmount,
|
|
23419
|
-
quoteAmount,
|
|
23420
|
-
merkleProof,
|
|
23421
|
-
{
|
|
23422
|
-
gasLimit,
|
|
23423
|
-
gasPrice
|
|
23424
|
-
}
|
|
23425
|
-
);
|
|
23426
|
-
const receipt = await tx.wait();
|
|
23427
|
-
return receipt;
|
|
23428
|
-
}
|
|
23429
|
-
/**
|
|
23430
|
-
* get dispute configuration
|
|
23431
|
-
*/
|
|
23432
|
-
async getDisputeConfiguration() {
|
|
23433
|
-
const contract = await this.getDisputeCourtContract();
|
|
23434
|
-
const configuration = await contract.getDisputeConfiguration();
|
|
23435
|
-
return configuration;
|
|
23436
|
-
}
|
|
23437
|
-
/**
|
|
23438
|
-
* http api
|
|
23439
|
-
*/
|
|
23440
|
-
async getAppealList(params) {
|
|
23441
|
-
return this.client.api.getAppealList(params);
|
|
23442
|
-
}
|
|
23443
|
-
async getAppealDetail(params) {
|
|
23444
|
-
return this.client.api.getAppealDetail(params);
|
|
23445
|
-
}
|
|
23446
|
-
async uploadAppealEvidence(params) {
|
|
23447
|
-
return this.client.api.uploadAppealEvidence(params);
|
|
23448
|
-
}
|
|
23449
|
-
async getAppealReconsiderationList(params) {
|
|
23450
|
-
return this.client.api.getAppealReconsiderationList(params);
|
|
23451
|
-
}
|
|
23452
|
-
async getAppealReconsiderationDetail(params) {
|
|
23453
|
-
return this.client.api.getAppealReconsiderationDetail(params);
|
|
23454
|
-
}
|
|
23455
|
-
async getAppealReimbursementList(params) {
|
|
23456
|
-
return this.client.api.getAppealReimbursementList(params);
|
|
23457
|
-
}
|
|
23458
|
-
async getAppealNodeVoteList(params) {
|
|
23459
|
-
return this.client.api.getAppealNodeVoteList(params);
|
|
23460
|
-
}
|
|
23461
|
-
async getAppealNodeVoteDetail(params) {
|
|
23462
|
-
return this.client.api.getAppealNodeVoteDetails(params);
|
|
23463
|
-
}
|
|
23464
|
-
async getIsVoteNode(params) {
|
|
23465
|
-
return this.client.api.getIsVoteNode(params);
|
|
23466
|
-
}
|
|
23467
|
-
async postVoteSignature(params) {
|
|
23468
|
-
return this.client.api.postVoteSignature(params);
|
|
23469
|
-
}
|
|
23470
|
-
async getPedingVoteCount() {
|
|
23471
|
-
return this.client.api.getPedingVoteCount();
|
|
23472
|
-
}
|
|
23473
|
-
async getMyAppealCount() {
|
|
23474
|
-
return this.client.api.getMyAppealCount();
|
|
23475
|
-
}
|
|
23476
|
-
};
|
|
23477
|
-
|
|
23478
21452
|
// src/manager/referrals/index.tsx
|
|
23479
21453
|
var Referrals = class extends BaseMyxClient {
|
|
23480
21454
|
constructor(client2) {
|
|
@@ -23487,8 +21461,13 @@ var Referrals = class extends BaseMyxClient {
|
|
|
23487
21461
|
const _gasLimit = await brokerContract.claimRebate.estimateGas(
|
|
23488
21462
|
tokenAddress
|
|
23489
21463
|
);
|
|
23490
|
-
const gasLimit = await this.client.utils.getGasLimitByRatio(
|
|
23491
|
-
|
|
21464
|
+
const gasLimit = await this.client.utils.getGasLimitByRatio(
|
|
21465
|
+
this.config.chainId,
|
|
21466
|
+
_gasLimit
|
|
21467
|
+
);
|
|
21468
|
+
const gasPrice = await this.client.utils.getGasPriceByRatio(
|
|
21469
|
+
this.config.chainId
|
|
21470
|
+
);
|
|
23492
21471
|
const tx = await brokerContract.claimRebate(tokenAddress, {
|
|
23493
21472
|
gasPrice,
|
|
23494
21473
|
gasLimit
|
|
@@ -23498,73 +21477,6 @@ var Referrals = class extends BaseMyxClient {
|
|
|
23498
21477
|
}
|
|
23499
21478
|
};
|
|
23500
21479
|
|
|
23501
|
-
// src/manager/api/appeal-type.ts
|
|
23502
|
-
var AppealType = /* @__PURE__ */ ((AppealType2) => {
|
|
23503
|
-
AppealType2[AppealType2["UnderReview"] = 1] = "UnderReview";
|
|
23504
|
-
AppealType2[AppealType2["InitialVote"] = 2] = "InitialVote";
|
|
23505
|
-
AppealType2[AppealType2["PublicNotice"] = 3] = "PublicNotice";
|
|
23506
|
-
AppealType2[AppealType2["UnderReconsideration"] = 4] = "UnderReconsideration";
|
|
23507
|
-
AppealType2[AppealType2["Won"] = 5] = "Won";
|
|
23508
|
-
AppealType2[AppealType2["Failed"] = 6] = "Failed";
|
|
23509
|
-
AppealType2[AppealType2["PlatformRuling"] = 7] = "PlatformRuling";
|
|
23510
|
-
AppealType2[AppealType2["PlatformRevoked"] = 8] = "PlatformRevoked";
|
|
23511
|
-
return AppealType2;
|
|
23512
|
-
})(AppealType || {});
|
|
23513
|
-
var AppealReconsiderationType = /* @__PURE__ */ ((AppealReconsiderationType2) => {
|
|
23514
|
-
AppealReconsiderationType2[AppealReconsiderationType2["InitialVoting"] = 1] = "InitialVoting";
|
|
23515
|
-
AppealReconsiderationType2[AppealReconsiderationType2["PublicNotice"] = 2] = "PublicNotice";
|
|
23516
|
-
AppealReconsiderationType2[AppealReconsiderationType2["UnderReconsideration"] = 3] = "UnderReconsideration";
|
|
23517
|
-
AppealReconsiderationType2[AppealReconsiderationType2["Won"] = 4] = "Won";
|
|
23518
|
-
AppealReconsiderationType2[AppealReconsiderationType2["Failed"] = 5] = "Failed";
|
|
23519
|
-
AppealReconsiderationType2[AppealReconsiderationType2["PlatformRuling"] = 6] = "PlatformRuling";
|
|
23520
|
-
AppealReconsiderationType2[AppealReconsiderationType2["PlatformRevoked"] = 7] = "PlatformRevoked";
|
|
23521
|
-
AppealReconsiderationType2[AppealReconsiderationType2["ReconsiderationVoting"] = 8] = "ReconsiderationVoting";
|
|
23522
|
-
return AppealReconsiderationType2;
|
|
23523
|
-
})(AppealReconsiderationType || {});
|
|
23524
|
-
var AppealStage = /* @__PURE__ */ ((AppealStage2) => {
|
|
23525
|
-
AppealStage2[AppealStage2["UnderReview"] = 1] = "UnderReview";
|
|
23526
|
-
AppealStage2[AppealStage2["PublicNotice"] = 2] = "PublicNotice";
|
|
23527
|
-
AppealStage2[AppealStage2["UnderReconsideration"] = 3] = "UnderReconsideration";
|
|
23528
|
-
AppealStage2[AppealStage2["Completed"] = 4] = "Completed";
|
|
23529
|
-
return AppealStage2;
|
|
23530
|
-
})(AppealStage || {});
|
|
23531
|
-
var NodeTypeEnum = /* @__PURE__ */ ((NodeTypeEnum2) => {
|
|
23532
|
-
NodeTypeEnum2[NodeTypeEnum2["ElectionNode"] = 0] = "ElectionNode";
|
|
23533
|
-
NodeTypeEnum2[NodeTypeEnum2["OfficialNode"] = 1] = "OfficialNode";
|
|
23534
|
-
return NodeTypeEnum2;
|
|
23535
|
-
})(NodeTypeEnum || {});
|
|
23536
|
-
var VoteTypeEnum = /* @__PURE__ */ ((VoteTypeEnum2) => {
|
|
23537
|
-
VoteTypeEnum2[VoteTypeEnum2["Reject"] = 0] = "Reject";
|
|
23538
|
-
VoteTypeEnum2[VoteTypeEnum2["Support"] = 1] = "Support";
|
|
23539
|
-
return VoteTypeEnum2;
|
|
23540
|
-
})(VoteTypeEnum || {});
|
|
23541
|
-
var AppealClaimStatusEnum = /* @__PURE__ */ ((AppealClaimStatusEnum2) => {
|
|
23542
|
-
AppealClaimStatusEnum2[AppealClaimStatusEnum2["UnClaimed"] = 0] = "UnClaimed";
|
|
23543
|
-
AppealClaimStatusEnum2[AppealClaimStatusEnum2["Claimed"] = 1] = "Claimed";
|
|
23544
|
-
return AppealClaimStatusEnum2;
|
|
23545
|
-
})(AppealClaimStatusEnum || {});
|
|
23546
|
-
var AppealNodeVotedStateEnum = /* @__PURE__ */ ((AppealNodeVotedStateEnum2) => {
|
|
23547
|
-
AppealNodeVotedStateEnum2[AppealNodeVotedStateEnum2["NotVoted"] = 0] = "NotVoted";
|
|
23548
|
-
AppealNodeVotedStateEnum2[AppealNodeVotedStateEnum2["Voted"] = 1] = "Voted";
|
|
23549
|
-
return AppealNodeVotedStateEnum2;
|
|
23550
|
-
})(AppealNodeVotedStateEnum || {});
|
|
23551
|
-
var AppealCaseTypeEnum = /* @__PURE__ */ ((AppealCaseTypeEnum2) => {
|
|
23552
|
-
AppealCaseTypeEnum2[AppealCaseTypeEnum2["Appeal"] = 1] = "Appeal";
|
|
23553
|
-
AppealCaseTypeEnum2[AppealCaseTypeEnum2["Reconsideration"] = 2] = "Reconsideration";
|
|
23554
|
-
return AppealCaseTypeEnum2;
|
|
23555
|
-
})(AppealCaseTypeEnum || {});
|
|
23556
|
-
var AppealNodeStateEnum = /* @__PURE__ */ ((AppealNodeStateEnum2) => {
|
|
23557
|
-
AppealNodeStateEnum2[AppealNodeStateEnum2["NoVote"] = 0] = "NoVote";
|
|
23558
|
-
AppealNodeStateEnum2[AppealNodeStateEnum2["Supported"] = 1] = "Supported";
|
|
23559
|
-
AppealNodeStateEnum2[AppealNodeStateEnum2["Rejected"] = 2] = "Rejected";
|
|
23560
|
-
return AppealNodeStateEnum2;
|
|
23561
|
-
})(AppealNodeStateEnum || {});
|
|
23562
|
-
var IsVoteNodeEnum = /* @__PURE__ */ ((IsVoteNodeEnum2) => {
|
|
23563
|
-
IsVoteNodeEnum2[IsVoteNodeEnum2["Yes"] = 1] = "Yes";
|
|
23564
|
-
IsVoteNodeEnum2[IsVoteNodeEnum2["No"] = 0] = "No";
|
|
23565
|
-
return IsVoteNodeEnum2;
|
|
23566
|
-
})(IsVoteNodeEnum || {});
|
|
23567
|
-
|
|
23568
21480
|
// src/manager/index.ts
|
|
23569
21481
|
var MyxClient = class {
|
|
23570
21482
|
/**
|
|
@@ -23614,7 +21526,6 @@ var MyxClient = class {
|
|
|
23614
21526
|
this.api
|
|
23615
21527
|
);
|
|
23616
21528
|
this.subscription = new SubScription(this.configManager, this.logger);
|
|
23617
|
-
this.appeal = new Appeal(this);
|
|
23618
21529
|
this.referrals = new Referrals(this);
|
|
23619
21530
|
}
|
|
23620
21531
|
/**
|
|
@@ -23642,13 +21553,6 @@ var MyxClient = class {
|
|
|
23642
21553
|
};
|
|
23643
21554
|
// Annotate the CommonJS export names for ESM import in node:
|
|
23644
21555
|
0 && (module.exports = {
|
|
23645
|
-
AppealCaseTypeEnum,
|
|
23646
|
-
AppealClaimStatusEnum,
|
|
23647
|
-
AppealNodeStateEnum,
|
|
23648
|
-
AppealNodeVotedStateEnum,
|
|
23649
|
-
AppealReconsiderationType,
|
|
23650
|
-
AppealStage,
|
|
23651
|
-
AppealType,
|
|
23652
21556
|
COMMON_LP_AMOUNT_DECIMALS,
|
|
23653
21557
|
COMMON_PRICE_DECIMALS,
|
|
23654
21558
|
ChainId,
|
|
@@ -23659,13 +21563,11 @@ var MyxClient = class {
|
|
|
23659
21563
|
ExecTypeEnum,
|
|
23660
21564
|
ForwarderGetStatus,
|
|
23661
21565
|
HttpKlineIntervalEnum,
|
|
23662
|
-
IsVoteNodeEnum,
|
|
23663
21566
|
MarketCapType,
|
|
23664
21567
|
MarketPoolState,
|
|
23665
21568
|
MarketType,
|
|
23666
21569
|
MxSDK,
|
|
23667
21570
|
MyxClient,
|
|
23668
|
-
NodeTypeEnum,
|
|
23669
21571
|
OperationEnum,
|
|
23670
21572
|
OperationType,
|
|
23671
21573
|
OracleType,
|
|
@@ -23680,7 +21582,6 @@ var MyxClient = class {
|
|
|
23680
21582
|
TradeFlowTypeEnum,
|
|
23681
21583
|
TriggerType,
|
|
23682
21584
|
TriggerTypeEnum,
|
|
23683
|
-
VoteTypeEnum,
|
|
23684
21585
|
approve,
|
|
23685
21586
|
base,
|
|
23686
21587
|
bigintAmountSlipperCalculator,
|