@optimex-xyz/market-maker-sdk 0.5.3 → 0.5.5
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/README.md +6 -6
- package/dist/index.d.mts +48 -246
- package/dist/index.d.ts +48 -246
- package/dist/index.js +34 -189
- package/dist/index.mjs +34 -189
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -81,18 +81,18 @@ var environments = {
|
|
|
81
81
|
},
|
|
82
82
|
prelive: {
|
|
83
83
|
backendUrl: "https://pre-api.optimex.xyz",
|
|
84
|
-
rpcUrl: "https://bitfi-
|
|
84
|
+
rpcUrl: "https://rpc-bitfi-p00c4t1rul.t.conduit.xyz",
|
|
85
85
|
routerAddress: "0x272599CE3602A49B580A5C4a4d3C1067E30248D2",
|
|
86
86
|
paymentAddressMap: {
|
|
87
|
-
ethereum: "
|
|
87
|
+
ethereum: "0x0A497AC4261E37FA4062762C23Cf3cB642C839b8"
|
|
88
88
|
}
|
|
89
89
|
},
|
|
90
90
|
production: {
|
|
91
91
|
backendUrl: "https://api.optimex.xyz",
|
|
92
|
-
rpcUrl: "https://bitfi-
|
|
92
|
+
rpcUrl: "https://rpc-bitfi-p00c4t1rul.t.conduit.xyz",
|
|
93
93
|
routerAddress: "0x272599CE3602A49B580A5C4a4d3C1067E30248D2",
|
|
94
94
|
paymentAddressMap: {
|
|
95
|
-
ethereum: "
|
|
95
|
+
ethereum: "0x0A497AC4261E37FA4062762C23Cf3cB642C839b8"
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
};
|
|
@@ -1998,7 +1998,7 @@ var _abi3 = [
|
|
|
1998
1998
|
{
|
|
1999
1999
|
indexed: true,
|
|
2000
2000
|
internalType: "address",
|
|
2001
|
-
name: "
|
|
2001
|
+
name: "core",
|
|
2002
2002
|
type: "address"
|
|
2003
2003
|
},
|
|
2004
2004
|
{
|
|
@@ -2176,40 +2176,6 @@ var _abi3 = [
|
|
|
2176
2176
|
stateMutability: "view",
|
|
2177
2177
|
type: "function"
|
|
2178
2178
|
},
|
|
2179
|
-
{
|
|
2180
|
-
inputs: [
|
|
2181
|
-
{
|
|
2182
|
-
internalType: "bytes",
|
|
2183
|
-
name: "fromChain",
|
|
2184
|
-
type: "bytes"
|
|
2185
|
-
},
|
|
2186
|
-
{
|
|
2187
|
-
internalType: "bytes",
|
|
2188
|
-
name: "toChain",
|
|
2189
|
-
type: "bytes"
|
|
2190
|
-
}
|
|
2191
|
-
],
|
|
2192
|
-
name: "getCurrentEpoch",
|
|
2193
|
-
outputs: [
|
|
2194
|
-
{
|
|
2195
|
-
internalType: "uint64",
|
|
2196
|
-
name: "",
|
|
2197
|
-
type: "uint64"
|
|
2198
|
-
},
|
|
2199
|
-
{
|
|
2200
|
-
internalType: "uint64",
|
|
2201
|
-
name: "",
|
|
2202
|
-
type: "uint64"
|
|
2203
|
-
},
|
|
2204
|
-
{
|
|
2205
|
-
internalType: "uint64",
|
|
2206
|
-
name: "",
|
|
2207
|
-
type: "uint64"
|
|
2208
|
-
}
|
|
2209
|
-
],
|
|
2210
|
-
stateMutability: "view",
|
|
2211
|
-
type: "function"
|
|
2212
|
-
},
|
|
2213
2179
|
{
|
|
2214
2180
|
inputs: [
|
|
2215
2181
|
{
|
|
@@ -2602,87 +2568,6 @@ var _abi3 = [
|
|
|
2602
2568
|
stateMutability: "view",
|
|
2603
2569
|
type: "function"
|
|
2604
2570
|
},
|
|
2605
|
-
{
|
|
2606
|
-
inputs: [
|
|
2607
|
-
{
|
|
2608
|
-
internalType: "uint256",
|
|
2609
|
-
name: "epochNo",
|
|
2610
|
-
type: "uint256"
|
|
2611
|
-
},
|
|
2612
|
-
{
|
|
2613
|
-
internalType: "uint256",
|
|
2614
|
-
name: "fromIdx",
|
|
2615
|
-
type: "uint256"
|
|
2616
|
-
},
|
|
2617
|
-
{
|
|
2618
|
-
internalType: "uint256",
|
|
2619
|
-
name: "toIdx",
|
|
2620
|
-
type: "uint256"
|
|
2621
|
-
},
|
|
2622
|
-
{
|
|
2623
|
-
internalType: "bytes",
|
|
2624
|
-
name: "fromChain",
|
|
2625
|
-
type: "bytes"
|
|
2626
|
-
},
|
|
2627
|
-
{
|
|
2628
|
-
internalType: "bytes",
|
|
2629
|
-
name: "toChain",
|
|
2630
|
-
type: "bytes"
|
|
2631
|
-
}
|
|
2632
|
-
],
|
|
2633
|
-
name: "getPendingTrades",
|
|
2634
|
-
outputs: [
|
|
2635
|
-
{
|
|
2636
|
-
internalType: "bytes32[]",
|
|
2637
|
-
name: "",
|
|
2638
|
-
type: "bytes32[]"
|
|
2639
|
-
}
|
|
2640
|
-
],
|
|
2641
|
-
stateMutability: "view",
|
|
2642
|
-
type: "function"
|
|
2643
|
-
},
|
|
2644
|
-
{
|
|
2645
|
-
inputs: [
|
|
2646
|
-
{
|
|
2647
|
-
internalType: "uint256",
|
|
2648
|
-
name: "epochNo",
|
|
2649
|
-
type: "uint256"
|
|
2650
|
-
},
|
|
2651
|
-
{
|
|
2652
|
-
internalType: "bytes",
|
|
2653
|
-
name: "fromChain",
|
|
2654
|
-
type: "bytes"
|
|
2655
|
-
},
|
|
2656
|
-
{
|
|
2657
|
-
internalType: "bytes",
|
|
2658
|
-
name: "toChain",
|
|
2659
|
-
type: "bytes"
|
|
2660
|
-
}
|
|
2661
|
-
],
|
|
2662
|
-
name: "getPendingTradesCount",
|
|
2663
|
-
outputs: [
|
|
2664
|
-
{
|
|
2665
|
-
internalType: "uint256",
|
|
2666
|
-
name: "",
|
|
2667
|
-
type: "uint256"
|
|
2668
|
-
}
|
|
2669
|
-
],
|
|
2670
|
-
stateMutability: "view",
|
|
2671
|
-
type: "function"
|
|
2672
|
-
},
|
|
2673
|
-
{
|
|
2674
|
-
inputs: [],
|
|
2675
|
-
name: "getProtocolState",
|
|
2676
|
-
outputs: [
|
|
2677
|
-
{
|
|
2678
|
-
internalType: "uint256",
|
|
2679
|
-
name: "",
|
|
2680
|
-
type: "uint256"
|
|
2681
|
-
}
|
|
2682
|
-
],
|
|
2683
|
-
stateMutability: "view",
|
|
2684
|
-
type: "function"
|
|
2685
|
-
},
|
|
2686
2571
|
{
|
|
2687
2572
|
inputs: [
|
|
2688
2573
|
{
|
|
@@ -2691,13 +2576,18 @@ var _abi3 = [
|
|
|
2691
2576
|
type: "bytes32"
|
|
2692
2577
|
}
|
|
2693
2578
|
],
|
|
2694
|
-
name: "
|
|
2579
|
+
name: "getPresigns",
|
|
2695
2580
|
outputs: [
|
|
2696
2581
|
{
|
|
2697
2582
|
components: [
|
|
2583
|
+
{
|
|
2584
|
+
internalType: "bytes32",
|
|
2585
|
+
name: "pmmId",
|
|
2586
|
+
type: "bytes32"
|
|
2587
|
+
},
|
|
2698
2588
|
{
|
|
2699
2589
|
internalType: "bytes",
|
|
2700
|
-
name: "
|
|
2590
|
+
name: "pmmRecvAddress",
|
|
2701
2591
|
type: "bytes"
|
|
2702
2592
|
},
|
|
2703
2593
|
{
|
|
@@ -2706,9 +2596,22 @@ var _abi3 = [
|
|
|
2706
2596
|
type: "bytes[]"
|
|
2707
2597
|
}
|
|
2708
2598
|
],
|
|
2709
|
-
internalType: "struct ITypes.
|
|
2599
|
+
internalType: "struct ITypes.Presign[]",
|
|
2710
2600
|
name: "",
|
|
2711
|
-
type: "tuple"
|
|
2601
|
+
type: "tuple[]"
|
|
2602
|
+
}
|
|
2603
|
+
],
|
|
2604
|
+
stateMutability: "view",
|
|
2605
|
+
type: "function"
|
|
2606
|
+
},
|
|
2607
|
+
{
|
|
2608
|
+
inputs: [],
|
|
2609
|
+
name: "getProtocolState",
|
|
2610
|
+
outputs: [
|
|
2611
|
+
{
|
|
2612
|
+
internalType: "uint256",
|
|
2613
|
+
name: "",
|
|
2614
|
+
type: "uint256"
|
|
2712
2615
|
}
|
|
2713
2616
|
],
|
|
2714
2617
|
stateMutability: "view",
|
|
@@ -2731,11 +2634,6 @@ var _abi3 = [
|
|
|
2731
2634
|
name: "bundlerHash",
|
|
2732
2635
|
type: "bytes32"
|
|
2733
2636
|
},
|
|
2734
|
-
{
|
|
2735
|
-
internalType: "uint256",
|
|
2736
|
-
name: "index",
|
|
2737
|
-
type: "uint256"
|
|
2738
|
-
},
|
|
2739
2637
|
{
|
|
2740
2638
|
internalType: "bytes",
|
|
2741
2639
|
name: "paymentTxId",
|
|
@@ -2760,42 +2658,6 @@ var _abi3 = [
|
|
|
2760
2658
|
stateMutability: "view",
|
|
2761
2659
|
type: "function"
|
|
2762
2660
|
},
|
|
2763
|
-
{
|
|
2764
|
-
inputs: [
|
|
2765
|
-
{
|
|
2766
|
-
internalType: "bytes32",
|
|
2767
|
-
name: "tradeId",
|
|
2768
|
-
type: "bytes32"
|
|
2769
|
-
}
|
|
2770
|
-
],
|
|
2771
|
-
name: "getSettlementPresigns",
|
|
2772
|
-
outputs: [
|
|
2773
|
-
{
|
|
2774
|
-
components: [
|
|
2775
|
-
{
|
|
2776
|
-
internalType: "bytes32",
|
|
2777
|
-
name: "pmmId",
|
|
2778
|
-
type: "bytes32"
|
|
2779
|
-
},
|
|
2780
|
-
{
|
|
2781
|
-
internalType: "bytes",
|
|
2782
|
-
name: "pmmRecvAddress",
|
|
2783
|
-
type: "bytes"
|
|
2784
|
-
},
|
|
2785
|
-
{
|
|
2786
|
-
internalType: "bytes[]",
|
|
2787
|
-
name: "presigns",
|
|
2788
|
-
type: "bytes[]"
|
|
2789
|
-
}
|
|
2790
|
-
],
|
|
2791
|
-
internalType: "struct ITypes.SettlementPresign[]",
|
|
2792
|
-
name: "",
|
|
2793
|
-
type: "tuple[]"
|
|
2794
|
-
}
|
|
2795
|
-
],
|
|
2796
|
-
stateMutability: "view",
|
|
2797
|
-
type: "function"
|
|
2798
|
-
},
|
|
2799
2661
|
{
|
|
2800
2662
|
inputs: [
|
|
2801
2663
|
{
|
|
@@ -3200,7 +3062,7 @@ var _abi3 = [
|
|
|
3200
3062
|
inputs: [
|
|
3201
3063
|
{
|
|
3202
3064
|
internalType: "address",
|
|
3203
|
-
name: "
|
|
3065
|
+
name: "core",
|
|
3204
3066
|
type: "address"
|
|
3205
3067
|
},
|
|
3206
3068
|
{
|
|
@@ -3322,26 +3184,9 @@ var _abi3 = [
|
|
|
3322
3184
|
type: "bytes[]"
|
|
3323
3185
|
}
|
|
3324
3186
|
],
|
|
3325
|
-
internalType: "struct ITypes.
|
|
3326
|
-
name: "
|
|
3187
|
+
internalType: "struct ITypes.Presign[]",
|
|
3188
|
+
name: "presignList",
|
|
3327
3189
|
type: "tuple[]"
|
|
3328
|
-
},
|
|
3329
|
-
{
|
|
3330
|
-
components: [
|
|
3331
|
-
{
|
|
3332
|
-
internalType: "bytes",
|
|
3333
|
-
name: "refundAddress",
|
|
3334
|
-
type: "bytes"
|
|
3335
|
-
},
|
|
3336
|
-
{
|
|
3337
|
-
internalType: "bytes[]",
|
|
3338
|
-
name: "presigns",
|
|
3339
|
-
type: "bytes[]"
|
|
3340
|
-
}
|
|
3341
|
-
],
|
|
3342
|
-
internalType: "struct ITypes.RefundPresign",
|
|
3343
|
-
name: "refundPresign",
|
|
3344
|
-
type: "tuple"
|
|
3345
3190
|
}
|
|
3346
3191
|
],
|
|
3347
3192
|
name: "submitTrade",
|
|
@@ -3697,11 +3542,11 @@ var RouterService = class {
|
|
|
3697
3542
|
return await this.contract.getPMMSelection(tradeId);
|
|
3698
3543
|
}
|
|
3699
3544
|
async getSettlementPresigns(tradeId) {
|
|
3700
|
-
return await this.contract.
|
|
3701
|
-
}
|
|
3702
|
-
async getRefundPresigns(tradeId) {
|
|
3703
|
-
return await this.contract.getRefundPresigns(tradeId);
|
|
3545
|
+
return await this.contract.getPresigns(tradeId);
|
|
3704
3546
|
}
|
|
3547
|
+
// async getRefundPresigns(tradeId: BytesLike): Promise<ITypes.RefundPresignStructOutput> {
|
|
3548
|
+
// return await this.contract.getRefundPresigns(tradeId)
|
|
3549
|
+
// }
|
|
3705
3550
|
async getProtocolState() {
|
|
3706
3551
|
return await this.contract.getProtocolState();
|
|
3707
3552
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -16,18 +16,18 @@ var environments = {
|
|
|
16
16
|
},
|
|
17
17
|
prelive: {
|
|
18
18
|
backendUrl: "https://pre-api.optimex.xyz",
|
|
19
|
-
rpcUrl: "https://bitfi-
|
|
19
|
+
rpcUrl: "https://rpc-bitfi-p00c4t1rul.t.conduit.xyz",
|
|
20
20
|
routerAddress: "0x272599CE3602A49B580A5C4a4d3C1067E30248D2",
|
|
21
21
|
paymentAddressMap: {
|
|
22
|
-
ethereum: "
|
|
22
|
+
ethereum: "0x0A497AC4261E37FA4062762C23Cf3cB642C839b8"
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
production: {
|
|
26
26
|
backendUrl: "https://api.optimex.xyz",
|
|
27
|
-
rpcUrl: "https://bitfi-
|
|
27
|
+
rpcUrl: "https://rpc-bitfi-p00c4t1rul.t.conduit.xyz",
|
|
28
28
|
routerAddress: "0x272599CE3602A49B580A5C4a4d3C1067E30248D2",
|
|
29
29
|
paymentAddressMap: {
|
|
30
|
-
ethereum: "
|
|
30
|
+
ethereum: "0x0A497AC4261E37FA4062762C23Cf3cB642C839b8"
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
};
|
|
@@ -1933,7 +1933,7 @@ var _abi3 = [
|
|
|
1933
1933
|
{
|
|
1934
1934
|
indexed: true,
|
|
1935
1935
|
internalType: "address",
|
|
1936
|
-
name: "
|
|
1936
|
+
name: "core",
|
|
1937
1937
|
type: "address"
|
|
1938
1938
|
},
|
|
1939
1939
|
{
|
|
@@ -2111,40 +2111,6 @@ var _abi3 = [
|
|
|
2111
2111
|
stateMutability: "view",
|
|
2112
2112
|
type: "function"
|
|
2113
2113
|
},
|
|
2114
|
-
{
|
|
2115
|
-
inputs: [
|
|
2116
|
-
{
|
|
2117
|
-
internalType: "bytes",
|
|
2118
|
-
name: "fromChain",
|
|
2119
|
-
type: "bytes"
|
|
2120
|
-
},
|
|
2121
|
-
{
|
|
2122
|
-
internalType: "bytes",
|
|
2123
|
-
name: "toChain",
|
|
2124
|
-
type: "bytes"
|
|
2125
|
-
}
|
|
2126
|
-
],
|
|
2127
|
-
name: "getCurrentEpoch",
|
|
2128
|
-
outputs: [
|
|
2129
|
-
{
|
|
2130
|
-
internalType: "uint64",
|
|
2131
|
-
name: "",
|
|
2132
|
-
type: "uint64"
|
|
2133
|
-
},
|
|
2134
|
-
{
|
|
2135
|
-
internalType: "uint64",
|
|
2136
|
-
name: "",
|
|
2137
|
-
type: "uint64"
|
|
2138
|
-
},
|
|
2139
|
-
{
|
|
2140
|
-
internalType: "uint64",
|
|
2141
|
-
name: "",
|
|
2142
|
-
type: "uint64"
|
|
2143
|
-
}
|
|
2144
|
-
],
|
|
2145
|
-
stateMutability: "view",
|
|
2146
|
-
type: "function"
|
|
2147
|
-
},
|
|
2148
2114
|
{
|
|
2149
2115
|
inputs: [
|
|
2150
2116
|
{
|
|
@@ -2537,87 +2503,6 @@ var _abi3 = [
|
|
|
2537
2503
|
stateMutability: "view",
|
|
2538
2504
|
type: "function"
|
|
2539
2505
|
},
|
|
2540
|
-
{
|
|
2541
|
-
inputs: [
|
|
2542
|
-
{
|
|
2543
|
-
internalType: "uint256",
|
|
2544
|
-
name: "epochNo",
|
|
2545
|
-
type: "uint256"
|
|
2546
|
-
},
|
|
2547
|
-
{
|
|
2548
|
-
internalType: "uint256",
|
|
2549
|
-
name: "fromIdx",
|
|
2550
|
-
type: "uint256"
|
|
2551
|
-
},
|
|
2552
|
-
{
|
|
2553
|
-
internalType: "uint256",
|
|
2554
|
-
name: "toIdx",
|
|
2555
|
-
type: "uint256"
|
|
2556
|
-
},
|
|
2557
|
-
{
|
|
2558
|
-
internalType: "bytes",
|
|
2559
|
-
name: "fromChain",
|
|
2560
|
-
type: "bytes"
|
|
2561
|
-
},
|
|
2562
|
-
{
|
|
2563
|
-
internalType: "bytes",
|
|
2564
|
-
name: "toChain",
|
|
2565
|
-
type: "bytes"
|
|
2566
|
-
}
|
|
2567
|
-
],
|
|
2568
|
-
name: "getPendingTrades",
|
|
2569
|
-
outputs: [
|
|
2570
|
-
{
|
|
2571
|
-
internalType: "bytes32[]",
|
|
2572
|
-
name: "",
|
|
2573
|
-
type: "bytes32[]"
|
|
2574
|
-
}
|
|
2575
|
-
],
|
|
2576
|
-
stateMutability: "view",
|
|
2577
|
-
type: "function"
|
|
2578
|
-
},
|
|
2579
|
-
{
|
|
2580
|
-
inputs: [
|
|
2581
|
-
{
|
|
2582
|
-
internalType: "uint256",
|
|
2583
|
-
name: "epochNo",
|
|
2584
|
-
type: "uint256"
|
|
2585
|
-
},
|
|
2586
|
-
{
|
|
2587
|
-
internalType: "bytes",
|
|
2588
|
-
name: "fromChain",
|
|
2589
|
-
type: "bytes"
|
|
2590
|
-
},
|
|
2591
|
-
{
|
|
2592
|
-
internalType: "bytes",
|
|
2593
|
-
name: "toChain",
|
|
2594
|
-
type: "bytes"
|
|
2595
|
-
}
|
|
2596
|
-
],
|
|
2597
|
-
name: "getPendingTradesCount",
|
|
2598
|
-
outputs: [
|
|
2599
|
-
{
|
|
2600
|
-
internalType: "uint256",
|
|
2601
|
-
name: "",
|
|
2602
|
-
type: "uint256"
|
|
2603
|
-
}
|
|
2604
|
-
],
|
|
2605
|
-
stateMutability: "view",
|
|
2606
|
-
type: "function"
|
|
2607
|
-
},
|
|
2608
|
-
{
|
|
2609
|
-
inputs: [],
|
|
2610
|
-
name: "getProtocolState",
|
|
2611
|
-
outputs: [
|
|
2612
|
-
{
|
|
2613
|
-
internalType: "uint256",
|
|
2614
|
-
name: "",
|
|
2615
|
-
type: "uint256"
|
|
2616
|
-
}
|
|
2617
|
-
],
|
|
2618
|
-
stateMutability: "view",
|
|
2619
|
-
type: "function"
|
|
2620
|
-
},
|
|
2621
2506
|
{
|
|
2622
2507
|
inputs: [
|
|
2623
2508
|
{
|
|
@@ -2626,13 +2511,18 @@ var _abi3 = [
|
|
|
2626
2511
|
type: "bytes32"
|
|
2627
2512
|
}
|
|
2628
2513
|
],
|
|
2629
|
-
name: "
|
|
2514
|
+
name: "getPresigns",
|
|
2630
2515
|
outputs: [
|
|
2631
2516
|
{
|
|
2632
2517
|
components: [
|
|
2518
|
+
{
|
|
2519
|
+
internalType: "bytes32",
|
|
2520
|
+
name: "pmmId",
|
|
2521
|
+
type: "bytes32"
|
|
2522
|
+
},
|
|
2633
2523
|
{
|
|
2634
2524
|
internalType: "bytes",
|
|
2635
|
-
name: "
|
|
2525
|
+
name: "pmmRecvAddress",
|
|
2636
2526
|
type: "bytes"
|
|
2637
2527
|
},
|
|
2638
2528
|
{
|
|
@@ -2641,9 +2531,22 @@ var _abi3 = [
|
|
|
2641
2531
|
type: "bytes[]"
|
|
2642
2532
|
}
|
|
2643
2533
|
],
|
|
2644
|
-
internalType: "struct ITypes.
|
|
2534
|
+
internalType: "struct ITypes.Presign[]",
|
|
2645
2535
|
name: "",
|
|
2646
|
-
type: "tuple"
|
|
2536
|
+
type: "tuple[]"
|
|
2537
|
+
}
|
|
2538
|
+
],
|
|
2539
|
+
stateMutability: "view",
|
|
2540
|
+
type: "function"
|
|
2541
|
+
},
|
|
2542
|
+
{
|
|
2543
|
+
inputs: [],
|
|
2544
|
+
name: "getProtocolState",
|
|
2545
|
+
outputs: [
|
|
2546
|
+
{
|
|
2547
|
+
internalType: "uint256",
|
|
2548
|
+
name: "",
|
|
2549
|
+
type: "uint256"
|
|
2647
2550
|
}
|
|
2648
2551
|
],
|
|
2649
2552
|
stateMutability: "view",
|
|
@@ -2666,11 +2569,6 @@ var _abi3 = [
|
|
|
2666
2569
|
name: "bundlerHash",
|
|
2667
2570
|
type: "bytes32"
|
|
2668
2571
|
},
|
|
2669
|
-
{
|
|
2670
|
-
internalType: "uint256",
|
|
2671
|
-
name: "index",
|
|
2672
|
-
type: "uint256"
|
|
2673
|
-
},
|
|
2674
2572
|
{
|
|
2675
2573
|
internalType: "bytes",
|
|
2676
2574
|
name: "paymentTxId",
|
|
@@ -2695,42 +2593,6 @@ var _abi3 = [
|
|
|
2695
2593
|
stateMutability: "view",
|
|
2696
2594
|
type: "function"
|
|
2697
2595
|
},
|
|
2698
|
-
{
|
|
2699
|
-
inputs: [
|
|
2700
|
-
{
|
|
2701
|
-
internalType: "bytes32",
|
|
2702
|
-
name: "tradeId",
|
|
2703
|
-
type: "bytes32"
|
|
2704
|
-
}
|
|
2705
|
-
],
|
|
2706
|
-
name: "getSettlementPresigns",
|
|
2707
|
-
outputs: [
|
|
2708
|
-
{
|
|
2709
|
-
components: [
|
|
2710
|
-
{
|
|
2711
|
-
internalType: "bytes32",
|
|
2712
|
-
name: "pmmId",
|
|
2713
|
-
type: "bytes32"
|
|
2714
|
-
},
|
|
2715
|
-
{
|
|
2716
|
-
internalType: "bytes",
|
|
2717
|
-
name: "pmmRecvAddress",
|
|
2718
|
-
type: "bytes"
|
|
2719
|
-
},
|
|
2720
|
-
{
|
|
2721
|
-
internalType: "bytes[]",
|
|
2722
|
-
name: "presigns",
|
|
2723
|
-
type: "bytes[]"
|
|
2724
|
-
}
|
|
2725
|
-
],
|
|
2726
|
-
internalType: "struct ITypes.SettlementPresign[]",
|
|
2727
|
-
name: "",
|
|
2728
|
-
type: "tuple[]"
|
|
2729
|
-
}
|
|
2730
|
-
],
|
|
2731
|
-
stateMutability: "view",
|
|
2732
|
-
type: "function"
|
|
2733
|
-
},
|
|
2734
2596
|
{
|
|
2735
2597
|
inputs: [
|
|
2736
2598
|
{
|
|
@@ -3135,7 +2997,7 @@ var _abi3 = [
|
|
|
3135
2997
|
inputs: [
|
|
3136
2998
|
{
|
|
3137
2999
|
internalType: "address",
|
|
3138
|
-
name: "
|
|
3000
|
+
name: "core",
|
|
3139
3001
|
type: "address"
|
|
3140
3002
|
},
|
|
3141
3003
|
{
|
|
@@ -3257,26 +3119,9 @@ var _abi3 = [
|
|
|
3257
3119
|
type: "bytes[]"
|
|
3258
3120
|
}
|
|
3259
3121
|
],
|
|
3260
|
-
internalType: "struct ITypes.
|
|
3261
|
-
name: "
|
|
3122
|
+
internalType: "struct ITypes.Presign[]",
|
|
3123
|
+
name: "presignList",
|
|
3262
3124
|
type: "tuple[]"
|
|
3263
|
-
},
|
|
3264
|
-
{
|
|
3265
|
-
components: [
|
|
3266
|
-
{
|
|
3267
|
-
internalType: "bytes",
|
|
3268
|
-
name: "refundAddress",
|
|
3269
|
-
type: "bytes"
|
|
3270
|
-
},
|
|
3271
|
-
{
|
|
3272
|
-
internalType: "bytes[]",
|
|
3273
|
-
name: "presigns",
|
|
3274
|
-
type: "bytes[]"
|
|
3275
|
-
}
|
|
3276
|
-
],
|
|
3277
|
-
internalType: "struct ITypes.RefundPresign",
|
|
3278
|
-
name: "refundPresign",
|
|
3279
|
-
type: "tuple"
|
|
3280
3125
|
}
|
|
3281
3126
|
],
|
|
3282
3127
|
name: "submitTrade",
|
|
@@ -3632,11 +3477,11 @@ var RouterService = class {
|
|
|
3632
3477
|
return await this.contract.getPMMSelection(tradeId);
|
|
3633
3478
|
}
|
|
3634
3479
|
async getSettlementPresigns(tradeId) {
|
|
3635
|
-
return await this.contract.
|
|
3636
|
-
}
|
|
3637
|
-
async getRefundPresigns(tradeId) {
|
|
3638
|
-
return await this.contract.getRefundPresigns(tradeId);
|
|
3480
|
+
return await this.contract.getPresigns(tradeId);
|
|
3639
3481
|
}
|
|
3482
|
+
// async getRefundPresigns(tradeId: BytesLike): Promise<ITypes.RefundPresignStructOutput> {
|
|
3483
|
+
// return await this.contract.getRefundPresigns(tradeId)
|
|
3484
|
+
// }
|
|
3640
3485
|
async getProtocolState() {
|
|
3641
3486
|
return await this.contract.getProtocolState();
|
|
3642
3487
|
}
|