@optimex-xyz/market-maker-sdk 0.5.0-dev-23ba754 → 0.5.1
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 +246 -48
- package/dist/index.d.ts +246 -48
- package/dist/index.js +187 -29
- package/dist/index.mjs +187 -29
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -74,7 +74,7 @@ var environments = {
|
|
|
74
74
|
dev: {
|
|
75
75
|
backendUrl: "https://api-stg.bitdex.xyz",
|
|
76
76
|
rpcUrl: "https://rpc-bitfi-p00c4t1rul.t.conduit.xyz",
|
|
77
|
-
routerAddress: "
|
|
77
|
+
routerAddress: "0xb3063A29cBb4363390687CCb9008f266657DF0fF",
|
|
78
78
|
paymentAddressMap: {
|
|
79
79
|
ethereum_sepolia: "0x7387DcCfE2f1D5F80b4ECDF91eF58541517e90D2"
|
|
80
80
|
}
|
|
@@ -1990,7 +1990,7 @@ var _abi3 = [
|
|
|
1990
1990
|
{
|
|
1991
1991
|
indexed: true,
|
|
1992
1992
|
internalType: "address",
|
|
1993
|
-
name: "
|
|
1993
|
+
name: "handler",
|
|
1994
1994
|
type: "address"
|
|
1995
1995
|
},
|
|
1996
1996
|
{
|
|
@@ -2168,6 +2168,40 @@ var _abi3 = [
|
|
|
2168
2168
|
stateMutability: "view",
|
|
2169
2169
|
type: "function"
|
|
2170
2170
|
},
|
|
2171
|
+
{
|
|
2172
|
+
inputs: [
|
|
2173
|
+
{
|
|
2174
|
+
internalType: "bytes",
|
|
2175
|
+
name: "fromChain",
|
|
2176
|
+
type: "bytes"
|
|
2177
|
+
},
|
|
2178
|
+
{
|
|
2179
|
+
internalType: "bytes",
|
|
2180
|
+
name: "toChain",
|
|
2181
|
+
type: "bytes"
|
|
2182
|
+
}
|
|
2183
|
+
],
|
|
2184
|
+
name: "getCurrentEpoch",
|
|
2185
|
+
outputs: [
|
|
2186
|
+
{
|
|
2187
|
+
internalType: "uint64",
|
|
2188
|
+
name: "",
|
|
2189
|
+
type: "uint64"
|
|
2190
|
+
},
|
|
2191
|
+
{
|
|
2192
|
+
internalType: "uint64",
|
|
2193
|
+
name: "",
|
|
2194
|
+
type: "uint64"
|
|
2195
|
+
},
|
|
2196
|
+
{
|
|
2197
|
+
internalType: "uint64",
|
|
2198
|
+
name: "",
|
|
2199
|
+
type: "uint64"
|
|
2200
|
+
}
|
|
2201
|
+
],
|
|
2202
|
+
stateMutability: "view",
|
|
2203
|
+
type: "function"
|
|
2204
|
+
},
|
|
2171
2205
|
{
|
|
2172
2206
|
inputs: [
|
|
2173
2207
|
{
|
|
@@ -2560,6 +2594,87 @@ var _abi3 = [
|
|
|
2560
2594
|
stateMutability: "view",
|
|
2561
2595
|
type: "function"
|
|
2562
2596
|
},
|
|
2597
|
+
{
|
|
2598
|
+
inputs: [
|
|
2599
|
+
{
|
|
2600
|
+
internalType: "uint256",
|
|
2601
|
+
name: "epochNo",
|
|
2602
|
+
type: "uint256"
|
|
2603
|
+
},
|
|
2604
|
+
{
|
|
2605
|
+
internalType: "uint256",
|
|
2606
|
+
name: "fromIdx",
|
|
2607
|
+
type: "uint256"
|
|
2608
|
+
},
|
|
2609
|
+
{
|
|
2610
|
+
internalType: "uint256",
|
|
2611
|
+
name: "toIdx",
|
|
2612
|
+
type: "uint256"
|
|
2613
|
+
},
|
|
2614
|
+
{
|
|
2615
|
+
internalType: "bytes",
|
|
2616
|
+
name: "fromChain",
|
|
2617
|
+
type: "bytes"
|
|
2618
|
+
},
|
|
2619
|
+
{
|
|
2620
|
+
internalType: "bytes",
|
|
2621
|
+
name: "toChain",
|
|
2622
|
+
type: "bytes"
|
|
2623
|
+
}
|
|
2624
|
+
],
|
|
2625
|
+
name: "getPendingTrades",
|
|
2626
|
+
outputs: [
|
|
2627
|
+
{
|
|
2628
|
+
internalType: "bytes32[]",
|
|
2629
|
+
name: "",
|
|
2630
|
+
type: "bytes32[]"
|
|
2631
|
+
}
|
|
2632
|
+
],
|
|
2633
|
+
stateMutability: "view",
|
|
2634
|
+
type: "function"
|
|
2635
|
+
},
|
|
2636
|
+
{
|
|
2637
|
+
inputs: [
|
|
2638
|
+
{
|
|
2639
|
+
internalType: "uint256",
|
|
2640
|
+
name: "epochNo",
|
|
2641
|
+
type: "uint256"
|
|
2642
|
+
},
|
|
2643
|
+
{
|
|
2644
|
+
internalType: "bytes",
|
|
2645
|
+
name: "fromChain",
|
|
2646
|
+
type: "bytes"
|
|
2647
|
+
},
|
|
2648
|
+
{
|
|
2649
|
+
internalType: "bytes",
|
|
2650
|
+
name: "toChain",
|
|
2651
|
+
type: "bytes"
|
|
2652
|
+
}
|
|
2653
|
+
],
|
|
2654
|
+
name: "getPendingTradesCount",
|
|
2655
|
+
outputs: [
|
|
2656
|
+
{
|
|
2657
|
+
internalType: "uint256",
|
|
2658
|
+
name: "",
|
|
2659
|
+
type: "uint256"
|
|
2660
|
+
}
|
|
2661
|
+
],
|
|
2662
|
+
stateMutability: "view",
|
|
2663
|
+
type: "function"
|
|
2664
|
+
},
|
|
2665
|
+
{
|
|
2666
|
+
inputs: [],
|
|
2667
|
+
name: "getProtocolState",
|
|
2668
|
+
outputs: [
|
|
2669
|
+
{
|
|
2670
|
+
internalType: "uint256",
|
|
2671
|
+
name: "",
|
|
2672
|
+
type: "uint256"
|
|
2673
|
+
}
|
|
2674
|
+
],
|
|
2675
|
+
stateMutability: "view",
|
|
2676
|
+
type: "function"
|
|
2677
|
+
},
|
|
2563
2678
|
{
|
|
2564
2679
|
inputs: [
|
|
2565
2680
|
{
|
|
@@ -2568,18 +2683,13 @@ var _abi3 = [
|
|
|
2568
2683
|
type: "bytes32"
|
|
2569
2684
|
}
|
|
2570
2685
|
],
|
|
2571
|
-
name: "
|
|
2686
|
+
name: "getRefundPresigns",
|
|
2572
2687
|
outputs: [
|
|
2573
2688
|
{
|
|
2574
2689
|
components: [
|
|
2575
|
-
{
|
|
2576
|
-
internalType: "bytes32",
|
|
2577
|
-
name: "pmmId",
|
|
2578
|
-
type: "bytes32"
|
|
2579
|
-
},
|
|
2580
2690
|
{
|
|
2581
2691
|
internalType: "bytes",
|
|
2582
|
-
name: "
|
|
2692
|
+
name: "refundAddress",
|
|
2583
2693
|
type: "bytes"
|
|
2584
2694
|
},
|
|
2585
2695
|
{
|
|
@@ -2588,22 +2698,9 @@ var _abi3 = [
|
|
|
2588
2698
|
type: "bytes[]"
|
|
2589
2699
|
}
|
|
2590
2700
|
],
|
|
2591
|
-
internalType: "struct ITypes.
|
|
2701
|
+
internalType: "struct ITypes.RefundPresign",
|
|
2592
2702
|
name: "",
|
|
2593
|
-
type: "tuple
|
|
2594
|
-
}
|
|
2595
|
-
],
|
|
2596
|
-
stateMutability: "view",
|
|
2597
|
-
type: "function"
|
|
2598
|
-
},
|
|
2599
|
-
{
|
|
2600
|
-
inputs: [],
|
|
2601
|
-
name: "getProtocolState",
|
|
2602
|
-
outputs: [
|
|
2603
|
-
{
|
|
2604
|
-
internalType: "uint256",
|
|
2605
|
-
name: "",
|
|
2606
|
-
type: "uint256"
|
|
2703
|
+
type: "tuple"
|
|
2607
2704
|
}
|
|
2608
2705
|
],
|
|
2609
2706
|
stateMutability: "view",
|
|
@@ -2626,6 +2723,11 @@ var _abi3 = [
|
|
|
2626
2723
|
name: "bundlerHash",
|
|
2627
2724
|
type: "bytes32"
|
|
2628
2725
|
},
|
|
2726
|
+
{
|
|
2727
|
+
internalType: "uint256",
|
|
2728
|
+
name: "index",
|
|
2729
|
+
type: "uint256"
|
|
2730
|
+
},
|
|
2629
2731
|
{
|
|
2630
2732
|
internalType: "bytes",
|
|
2631
2733
|
name: "paymentTxId",
|
|
@@ -2650,6 +2752,42 @@ var _abi3 = [
|
|
|
2650
2752
|
stateMutability: "view",
|
|
2651
2753
|
type: "function"
|
|
2652
2754
|
},
|
|
2755
|
+
{
|
|
2756
|
+
inputs: [
|
|
2757
|
+
{
|
|
2758
|
+
internalType: "bytes32",
|
|
2759
|
+
name: "tradeId",
|
|
2760
|
+
type: "bytes32"
|
|
2761
|
+
}
|
|
2762
|
+
],
|
|
2763
|
+
name: "getSettlementPresigns",
|
|
2764
|
+
outputs: [
|
|
2765
|
+
{
|
|
2766
|
+
components: [
|
|
2767
|
+
{
|
|
2768
|
+
internalType: "bytes32",
|
|
2769
|
+
name: "pmmId",
|
|
2770
|
+
type: "bytes32"
|
|
2771
|
+
},
|
|
2772
|
+
{
|
|
2773
|
+
internalType: "bytes",
|
|
2774
|
+
name: "pmmRecvAddress",
|
|
2775
|
+
type: "bytes"
|
|
2776
|
+
},
|
|
2777
|
+
{
|
|
2778
|
+
internalType: "bytes[]",
|
|
2779
|
+
name: "presigns",
|
|
2780
|
+
type: "bytes[]"
|
|
2781
|
+
}
|
|
2782
|
+
],
|
|
2783
|
+
internalType: "struct ITypes.SettlementPresign[]",
|
|
2784
|
+
name: "",
|
|
2785
|
+
type: "tuple[]"
|
|
2786
|
+
}
|
|
2787
|
+
],
|
|
2788
|
+
stateMutability: "view",
|
|
2789
|
+
type: "function"
|
|
2790
|
+
},
|
|
2653
2791
|
{
|
|
2654
2792
|
inputs: [
|
|
2655
2793
|
{
|
|
@@ -3054,7 +3192,7 @@ var _abi3 = [
|
|
|
3054
3192
|
inputs: [
|
|
3055
3193
|
{
|
|
3056
3194
|
internalType: "address",
|
|
3057
|
-
name: "
|
|
3195
|
+
name: "handler",
|
|
3058
3196
|
type: "address"
|
|
3059
3197
|
},
|
|
3060
3198
|
{
|
|
@@ -3176,9 +3314,26 @@ var _abi3 = [
|
|
|
3176
3314
|
type: "bytes[]"
|
|
3177
3315
|
}
|
|
3178
3316
|
],
|
|
3179
|
-
internalType: "struct ITypes.
|
|
3180
|
-
name: "
|
|
3317
|
+
internalType: "struct ITypes.SettlementPresign[]",
|
|
3318
|
+
name: "settlementPresigns",
|
|
3181
3319
|
type: "tuple[]"
|
|
3320
|
+
},
|
|
3321
|
+
{
|
|
3322
|
+
components: [
|
|
3323
|
+
{
|
|
3324
|
+
internalType: "bytes",
|
|
3325
|
+
name: "refundAddress",
|
|
3326
|
+
type: "bytes"
|
|
3327
|
+
},
|
|
3328
|
+
{
|
|
3329
|
+
internalType: "bytes[]",
|
|
3330
|
+
name: "presigns",
|
|
3331
|
+
type: "bytes[]"
|
|
3332
|
+
}
|
|
3333
|
+
],
|
|
3334
|
+
internalType: "struct ITypes.RefundPresign",
|
|
3335
|
+
name: "refundPresign",
|
|
3336
|
+
type: "tuple"
|
|
3182
3337
|
}
|
|
3183
3338
|
],
|
|
3184
3339
|
name: "submitTrade",
|
|
@@ -3533,8 +3688,11 @@ var RouterService = class {
|
|
|
3533
3688
|
async getPMMSelection(tradeId) {
|
|
3534
3689
|
return await this.contract.getPMMSelection(tradeId);
|
|
3535
3690
|
}
|
|
3536
|
-
async
|
|
3537
|
-
return await this.contract.
|
|
3691
|
+
async getSettlementPresigns(tradeId) {
|
|
3692
|
+
return await this.contract.getSettlementPresigns(tradeId);
|
|
3693
|
+
}
|
|
3694
|
+
async getRefundPresigns(tradeId) {
|
|
3695
|
+
return await this.contract.getRefundPresigns(tradeId);
|
|
3538
3696
|
}
|
|
3539
3697
|
async getProtocolState() {
|
|
3540
3698
|
return await this.contract.getProtocolState();
|
package/dist/index.mjs
CHANGED
|
@@ -9,7 +9,7 @@ var environments = {
|
|
|
9
9
|
dev: {
|
|
10
10
|
backendUrl: "https://api-stg.bitdex.xyz",
|
|
11
11
|
rpcUrl: "https://rpc-bitfi-p00c4t1rul.t.conduit.xyz",
|
|
12
|
-
routerAddress: "
|
|
12
|
+
routerAddress: "0xb3063A29cBb4363390687CCb9008f266657DF0fF",
|
|
13
13
|
paymentAddressMap: {
|
|
14
14
|
ethereum_sepolia: "0x7387DcCfE2f1D5F80b4ECDF91eF58541517e90D2"
|
|
15
15
|
}
|
|
@@ -1925,7 +1925,7 @@ var _abi3 = [
|
|
|
1925
1925
|
{
|
|
1926
1926
|
indexed: true,
|
|
1927
1927
|
internalType: "address",
|
|
1928
|
-
name: "
|
|
1928
|
+
name: "handler",
|
|
1929
1929
|
type: "address"
|
|
1930
1930
|
},
|
|
1931
1931
|
{
|
|
@@ -2103,6 +2103,40 @@ var _abi3 = [
|
|
|
2103
2103
|
stateMutability: "view",
|
|
2104
2104
|
type: "function"
|
|
2105
2105
|
},
|
|
2106
|
+
{
|
|
2107
|
+
inputs: [
|
|
2108
|
+
{
|
|
2109
|
+
internalType: "bytes",
|
|
2110
|
+
name: "fromChain",
|
|
2111
|
+
type: "bytes"
|
|
2112
|
+
},
|
|
2113
|
+
{
|
|
2114
|
+
internalType: "bytes",
|
|
2115
|
+
name: "toChain",
|
|
2116
|
+
type: "bytes"
|
|
2117
|
+
}
|
|
2118
|
+
],
|
|
2119
|
+
name: "getCurrentEpoch",
|
|
2120
|
+
outputs: [
|
|
2121
|
+
{
|
|
2122
|
+
internalType: "uint64",
|
|
2123
|
+
name: "",
|
|
2124
|
+
type: "uint64"
|
|
2125
|
+
},
|
|
2126
|
+
{
|
|
2127
|
+
internalType: "uint64",
|
|
2128
|
+
name: "",
|
|
2129
|
+
type: "uint64"
|
|
2130
|
+
},
|
|
2131
|
+
{
|
|
2132
|
+
internalType: "uint64",
|
|
2133
|
+
name: "",
|
|
2134
|
+
type: "uint64"
|
|
2135
|
+
}
|
|
2136
|
+
],
|
|
2137
|
+
stateMutability: "view",
|
|
2138
|
+
type: "function"
|
|
2139
|
+
},
|
|
2106
2140
|
{
|
|
2107
2141
|
inputs: [
|
|
2108
2142
|
{
|
|
@@ -2495,6 +2529,87 @@ var _abi3 = [
|
|
|
2495
2529
|
stateMutability: "view",
|
|
2496
2530
|
type: "function"
|
|
2497
2531
|
},
|
|
2532
|
+
{
|
|
2533
|
+
inputs: [
|
|
2534
|
+
{
|
|
2535
|
+
internalType: "uint256",
|
|
2536
|
+
name: "epochNo",
|
|
2537
|
+
type: "uint256"
|
|
2538
|
+
},
|
|
2539
|
+
{
|
|
2540
|
+
internalType: "uint256",
|
|
2541
|
+
name: "fromIdx",
|
|
2542
|
+
type: "uint256"
|
|
2543
|
+
},
|
|
2544
|
+
{
|
|
2545
|
+
internalType: "uint256",
|
|
2546
|
+
name: "toIdx",
|
|
2547
|
+
type: "uint256"
|
|
2548
|
+
},
|
|
2549
|
+
{
|
|
2550
|
+
internalType: "bytes",
|
|
2551
|
+
name: "fromChain",
|
|
2552
|
+
type: "bytes"
|
|
2553
|
+
},
|
|
2554
|
+
{
|
|
2555
|
+
internalType: "bytes",
|
|
2556
|
+
name: "toChain",
|
|
2557
|
+
type: "bytes"
|
|
2558
|
+
}
|
|
2559
|
+
],
|
|
2560
|
+
name: "getPendingTrades",
|
|
2561
|
+
outputs: [
|
|
2562
|
+
{
|
|
2563
|
+
internalType: "bytes32[]",
|
|
2564
|
+
name: "",
|
|
2565
|
+
type: "bytes32[]"
|
|
2566
|
+
}
|
|
2567
|
+
],
|
|
2568
|
+
stateMutability: "view",
|
|
2569
|
+
type: "function"
|
|
2570
|
+
},
|
|
2571
|
+
{
|
|
2572
|
+
inputs: [
|
|
2573
|
+
{
|
|
2574
|
+
internalType: "uint256",
|
|
2575
|
+
name: "epochNo",
|
|
2576
|
+
type: "uint256"
|
|
2577
|
+
},
|
|
2578
|
+
{
|
|
2579
|
+
internalType: "bytes",
|
|
2580
|
+
name: "fromChain",
|
|
2581
|
+
type: "bytes"
|
|
2582
|
+
},
|
|
2583
|
+
{
|
|
2584
|
+
internalType: "bytes",
|
|
2585
|
+
name: "toChain",
|
|
2586
|
+
type: "bytes"
|
|
2587
|
+
}
|
|
2588
|
+
],
|
|
2589
|
+
name: "getPendingTradesCount",
|
|
2590
|
+
outputs: [
|
|
2591
|
+
{
|
|
2592
|
+
internalType: "uint256",
|
|
2593
|
+
name: "",
|
|
2594
|
+
type: "uint256"
|
|
2595
|
+
}
|
|
2596
|
+
],
|
|
2597
|
+
stateMutability: "view",
|
|
2598
|
+
type: "function"
|
|
2599
|
+
},
|
|
2600
|
+
{
|
|
2601
|
+
inputs: [],
|
|
2602
|
+
name: "getProtocolState",
|
|
2603
|
+
outputs: [
|
|
2604
|
+
{
|
|
2605
|
+
internalType: "uint256",
|
|
2606
|
+
name: "",
|
|
2607
|
+
type: "uint256"
|
|
2608
|
+
}
|
|
2609
|
+
],
|
|
2610
|
+
stateMutability: "view",
|
|
2611
|
+
type: "function"
|
|
2612
|
+
},
|
|
2498
2613
|
{
|
|
2499
2614
|
inputs: [
|
|
2500
2615
|
{
|
|
@@ -2503,18 +2618,13 @@ var _abi3 = [
|
|
|
2503
2618
|
type: "bytes32"
|
|
2504
2619
|
}
|
|
2505
2620
|
],
|
|
2506
|
-
name: "
|
|
2621
|
+
name: "getRefundPresigns",
|
|
2507
2622
|
outputs: [
|
|
2508
2623
|
{
|
|
2509
2624
|
components: [
|
|
2510
|
-
{
|
|
2511
|
-
internalType: "bytes32",
|
|
2512
|
-
name: "pmmId",
|
|
2513
|
-
type: "bytes32"
|
|
2514
|
-
},
|
|
2515
2625
|
{
|
|
2516
2626
|
internalType: "bytes",
|
|
2517
|
-
name: "
|
|
2627
|
+
name: "refundAddress",
|
|
2518
2628
|
type: "bytes"
|
|
2519
2629
|
},
|
|
2520
2630
|
{
|
|
@@ -2523,22 +2633,9 @@ var _abi3 = [
|
|
|
2523
2633
|
type: "bytes[]"
|
|
2524
2634
|
}
|
|
2525
2635
|
],
|
|
2526
|
-
internalType: "struct ITypes.
|
|
2636
|
+
internalType: "struct ITypes.RefundPresign",
|
|
2527
2637
|
name: "",
|
|
2528
|
-
type: "tuple
|
|
2529
|
-
}
|
|
2530
|
-
],
|
|
2531
|
-
stateMutability: "view",
|
|
2532
|
-
type: "function"
|
|
2533
|
-
},
|
|
2534
|
-
{
|
|
2535
|
-
inputs: [],
|
|
2536
|
-
name: "getProtocolState",
|
|
2537
|
-
outputs: [
|
|
2538
|
-
{
|
|
2539
|
-
internalType: "uint256",
|
|
2540
|
-
name: "",
|
|
2541
|
-
type: "uint256"
|
|
2638
|
+
type: "tuple"
|
|
2542
2639
|
}
|
|
2543
2640
|
],
|
|
2544
2641
|
stateMutability: "view",
|
|
@@ -2561,6 +2658,11 @@ var _abi3 = [
|
|
|
2561
2658
|
name: "bundlerHash",
|
|
2562
2659
|
type: "bytes32"
|
|
2563
2660
|
},
|
|
2661
|
+
{
|
|
2662
|
+
internalType: "uint256",
|
|
2663
|
+
name: "index",
|
|
2664
|
+
type: "uint256"
|
|
2665
|
+
},
|
|
2564
2666
|
{
|
|
2565
2667
|
internalType: "bytes",
|
|
2566
2668
|
name: "paymentTxId",
|
|
@@ -2585,6 +2687,42 @@ var _abi3 = [
|
|
|
2585
2687
|
stateMutability: "view",
|
|
2586
2688
|
type: "function"
|
|
2587
2689
|
},
|
|
2690
|
+
{
|
|
2691
|
+
inputs: [
|
|
2692
|
+
{
|
|
2693
|
+
internalType: "bytes32",
|
|
2694
|
+
name: "tradeId",
|
|
2695
|
+
type: "bytes32"
|
|
2696
|
+
}
|
|
2697
|
+
],
|
|
2698
|
+
name: "getSettlementPresigns",
|
|
2699
|
+
outputs: [
|
|
2700
|
+
{
|
|
2701
|
+
components: [
|
|
2702
|
+
{
|
|
2703
|
+
internalType: "bytes32",
|
|
2704
|
+
name: "pmmId",
|
|
2705
|
+
type: "bytes32"
|
|
2706
|
+
},
|
|
2707
|
+
{
|
|
2708
|
+
internalType: "bytes",
|
|
2709
|
+
name: "pmmRecvAddress",
|
|
2710
|
+
type: "bytes"
|
|
2711
|
+
},
|
|
2712
|
+
{
|
|
2713
|
+
internalType: "bytes[]",
|
|
2714
|
+
name: "presigns",
|
|
2715
|
+
type: "bytes[]"
|
|
2716
|
+
}
|
|
2717
|
+
],
|
|
2718
|
+
internalType: "struct ITypes.SettlementPresign[]",
|
|
2719
|
+
name: "",
|
|
2720
|
+
type: "tuple[]"
|
|
2721
|
+
}
|
|
2722
|
+
],
|
|
2723
|
+
stateMutability: "view",
|
|
2724
|
+
type: "function"
|
|
2725
|
+
},
|
|
2588
2726
|
{
|
|
2589
2727
|
inputs: [
|
|
2590
2728
|
{
|
|
@@ -2989,7 +3127,7 @@ var _abi3 = [
|
|
|
2989
3127
|
inputs: [
|
|
2990
3128
|
{
|
|
2991
3129
|
internalType: "address",
|
|
2992
|
-
name: "
|
|
3130
|
+
name: "handler",
|
|
2993
3131
|
type: "address"
|
|
2994
3132
|
},
|
|
2995
3133
|
{
|
|
@@ -3111,9 +3249,26 @@ var _abi3 = [
|
|
|
3111
3249
|
type: "bytes[]"
|
|
3112
3250
|
}
|
|
3113
3251
|
],
|
|
3114
|
-
internalType: "struct ITypes.
|
|
3115
|
-
name: "
|
|
3252
|
+
internalType: "struct ITypes.SettlementPresign[]",
|
|
3253
|
+
name: "settlementPresigns",
|
|
3116
3254
|
type: "tuple[]"
|
|
3255
|
+
},
|
|
3256
|
+
{
|
|
3257
|
+
components: [
|
|
3258
|
+
{
|
|
3259
|
+
internalType: "bytes",
|
|
3260
|
+
name: "refundAddress",
|
|
3261
|
+
type: "bytes"
|
|
3262
|
+
},
|
|
3263
|
+
{
|
|
3264
|
+
internalType: "bytes[]",
|
|
3265
|
+
name: "presigns",
|
|
3266
|
+
type: "bytes[]"
|
|
3267
|
+
}
|
|
3268
|
+
],
|
|
3269
|
+
internalType: "struct ITypes.RefundPresign",
|
|
3270
|
+
name: "refundPresign",
|
|
3271
|
+
type: "tuple"
|
|
3117
3272
|
}
|
|
3118
3273
|
],
|
|
3119
3274
|
name: "submitTrade",
|
|
@@ -3468,8 +3623,11 @@ var RouterService = class {
|
|
|
3468
3623
|
async getPMMSelection(tradeId) {
|
|
3469
3624
|
return await this.contract.getPMMSelection(tradeId);
|
|
3470
3625
|
}
|
|
3471
|
-
async
|
|
3472
|
-
return await this.contract.
|
|
3626
|
+
async getSettlementPresigns(tradeId) {
|
|
3627
|
+
return await this.contract.getSettlementPresigns(tradeId);
|
|
3628
|
+
}
|
|
3629
|
+
async getRefundPresigns(tradeId) {
|
|
3630
|
+
return await this.contract.getRefundPresigns(tradeId);
|
|
3473
3631
|
}
|
|
3474
3632
|
async getProtocolState() {
|
|
3475
3633
|
return await this.contract.getProtocolState();
|