@orbs-network/spot 2.12.0 → 2.13.0
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/config.json +11 -23
- package/out/CosignatureLib.t.sol/CosignatureLibTest.abi.json +14 -0
- package/out/Cosigner.t.sol/CosignerTest.abi.json +14 -0
- package/out/Cosigner.t.sol/RevertingCommitteeSync.abi.json +26 -0
- package/out/DynamicP2DexAdapter.t.sol/DynamicP2DexAdapterTest.abi.json +28 -0
- package/out/DynamicP2DexAdapter.t.sol/HookToken.abi.json +512 -0
- package/out/DynamicP2DexAdapter.t.sol/MsgSenderPermit2Router.abi.json +35 -0
- package/out/DynamicP2DexAdapter.t.sol/Permit2Target.abi.json +171 -0
- package/out/MockPermit2.sol/MockPermit2.abi.json +83 -0
- package/out/OrderReactor.E2E.t.sol/OrderReactorE2ETest.abi.json +14 -0
- package/out/OrderReactor.E2E.t.sol/ReentrantAdapter.abi.json +386 -0
- package/out/P2DexAdapter.t.sol/P2DexAdapterTest.abi.json +7 -0
- package/out/Settler.t.sol/SettlerTest.abi.json +14 -0
- package/package.json +1 -1
- package/out/P2DexAdapter.t.sol/VmContractHelper144.abi.json +0 -233
- package/out/ParaswapDexAdapter.t.sol/VmContractHelper145.abi.json +0 -233
- package/out/Settler.t.sol/VmContractHelper154.abi.json +0 -233
- /package/out/ApprovalDexAdapter.t.sol/{VmContractHelper122.abi.json → VmContractHelper111.abi.json} +0 -0
- /package/out/{BaseTest.sol/VmContractHelper117.abi.json → DefaultDexAdapter.t.sol/VmContractHelper119.abi.json} +0 -0
- /package/out/{CosignerIntegration.t.sol/VmContractHelper127.abi.json → DynamicP2DexAdapter.t.sol/VmContractHelper124.abi.json} +0 -0
- /package/out/{DefaultDexAdapter.t.sol → Executor.t.sol}/VmContractHelper129.abi.json +0 -0
- /package/out/{DynamicP2DexAdapter.t.sol/VmContractHelper131.abi.json → OrderReactorPause.t.sol/VmContractHelper134.abi.json} +0 -0
- /package/out/{Executor.t.sol/VmContractHelper136.abi.json → P2DexAdapter.t.sol/VmContractHelper138.abi.json} +0 -0
- /package/out/{OrderReactor.E2E.t.sol → ParaswapDexAdapter.t.sol}/VmContractHelper139.abi.json +0 -0
- /package/out/{OrderReactorPause.t.sol/VmContractHelper140.abi.json → Refinery.t.sol/VmContractHelper142.abi.json} +0 -0
- /package/out/{Refinery.t.sol → Settler.t.sol}/VmContractHelper148.abi.json +0 -0
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"type": "function",
|
|
4
|
+
"name": "swapWithPermit2",
|
|
5
|
+
"inputs": [
|
|
6
|
+
{
|
|
7
|
+
"name": "permit2",
|
|
8
|
+
"type": "address",
|
|
9
|
+
"internalType": "contract MockPermit2"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"name": "tokenIn",
|
|
13
|
+
"type": "address",
|
|
14
|
+
"internalType": "address"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"name": "amountIn",
|
|
18
|
+
"type": "uint160",
|
|
19
|
+
"internalType": "uint160"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"name": "tokenOut",
|
|
23
|
+
"type": "address",
|
|
24
|
+
"internalType": "contract ERC20Mock"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "amountOut",
|
|
28
|
+
"type": "uint256",
|
|
29
|
+
"internalType": "uint256"
|
|
30
|
+
}
|
|
31
|
+
],
|
|
32
|
+
"outputs": [],
|
|
33
|
+
"stateMutability": "nonpayable"
|
|
34
|
+
}
|
|
35
|
+
]
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"type": "function",
|
|
4
|
+
"name": "doPartialSwap",
|
|
5
|
+
"inputs": [
|
|
6
|
+
{
|
|
7
|
+
"name": "tokenIn",
|
|
8
|
+
"type": "address",
|
|
9
|
+
"internalType": "address"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"name": "spentAmountIn",
|
|
13
|
+
"type": "uint256",
|
|
14
|
+
"internalType": "uint256"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"name": "tokenOut",
|
|
18
|
+
"type": "address",
|
|
19
|
+
"internalType": "address"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"name": "amountOut",
|
|
23
|
+
"type": "uint256",
|
|
24
|
+
"internalType": "uint256"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "to",
|
|
28
|
+
"type": "address",
|
|
29
|
+
"internalType": "address"
|
|
30
|
+
}
|
|
31
|
+
],
|
|
32
|
+
"outputs": [],
|
|
33
|
+
"stateMutability": "nonpayable"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"type": "function",
|
|
37
|
+
"name": "doSwap",
|
|
38
|
+
"inputs": [
|
|
39
|
+
{
|
|
40
|
+
"name": "tokenIn",
|
|
41
|
+
"type": "address",
|
|
42
|
+
"internalType": "address"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "amountIn",
|
|
46
|
+
"type": "uint256",
|
|
47
|
+
"internalType": "uint256"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"name": "tokenOut",
|
|
51
|
+
"type": "address",
|
|
52
|
+
"internalType": "address"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"name": "amountOut",
|
|
56
|
+
"type": "uint256",
|
|
57
|
+
"internalType": "uint256"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"name": "to",
|
|
61
|
+
"type": "address",
|
|
62
|
+
"internalType": "address"
|
|
63
|
+
}
|
|
64
|
+
],
|
|
65
|
+
"outputs": [],
|
|
66
|
+
"stateMutability": "nonpayable"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"type": "function",
|
|
70
|
+
"name": "pull",
|
|
71
|
+
"inputs": [
|
|
72
|
+
{
|
|
73
|
+
"name": "permit2",
|
|
74
|
+
"type": "address",
|
|
75
|
+
"internalType": "contract MockPermit2"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"name": "token",
|
|
79
|
+
"type": "address",
|
|
80
|
+
"internalType": "address"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"name": "from",
|
|
84
|
+
"type": "address",
|
|
85
|
+
"internalType": "address"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"name": "amount",
|
|
89
|
+
"type": "uint160",
|
|
90
|
+
"internalType": "uint160"
|
|
91
|
+
}
|
|
92
|
+
],
|
|
93
|
+
"outputs": [],
|
|
94
|
+
"stateMutability": "nonpayable"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"type": "function",
|
|
98
|
+
"name": "setShouldFail",
|
|
99
|
+
"inputs": [
|
|
100
|
+
{
|
|
101
|
+
"name": "_shouldFail",
|
|
102
|
+
"type": "bool",
|
|
103
|
+
"internalType": "bool"
|
|
104
|
+
}
|
|
105
|
+
],
|
|
106
|
+
"outputs": [],
|
|
107
|
+
"stateMutability": "nonpayable"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"type": "function",
|
|
111
|
+
"name": "shouldFail",
|
|
112
|
+
"inputs": [],
|
|
113
|
+
"outputs": [
|
|
114
|
+
{
|
|
115
|
+
"name": "",
|
|
116
|
+
"type": "bool",
|
|
117
|
+
"internalType": "bool"
|
|
118
|
+
}
|
|
119
|
+
],
|
|
120
|
+
"stateMutability": "view"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"type": "function",
|
|
124
|
+
"name": "swapThroughPreviousTarget",
|
|
125
|
+
"inputs": [
|
|
126
|
+
{
|
|
127
|
+
"name": "previousTarget",
|
|
128
|
+
"type": "address",
|
|
129
|
+
"internalType": "contract Permit2Target"
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"name": "permit2",
|
|
133
|
+
"type": "address",
|
|
134
|
+
"internalType": "contract MockPermit2"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"name": "tokenIn",
|
|
138
|
+
"type": "address",
|
|
139
|
+
"internalType": "address"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"name": "amount",
|
|
143
|
+
"type": "uint160",
|
|
144
|
+
"internalType": "uint160"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"name": "stolenAmount",
|
|
148
|
+
"type": "uint160",
|
|
149
|
+
"internalType": "uint160"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"name": "tokenOut",
|
|
153
|
+
"type": "address",
|
|
154
|
+
"internalType": "contract ERC20Mock"
|
|
155
|
+
}
|
|
156
|
+
],
|
|
157
|
+
"outputs": [],
|
|
158
|
+
"stateMutability": "nonpayable"
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"type": "error",
|
|
162
|
+
"name": "SafeERC20FailedOperation",
|
|
163
|
+
"inputs": [
|
|
164
|
+
{
|
|
165
|
+
"name": "token",
|
|
166
|
+
"type": "address",
|
|
167
|
+
"internalType": "address"
|
|
168
|
+
}
|
|
169
|
+
]
|
|
170
|
+
}
|
|
171
|
+
]
|
|
@@ -1,4 +1,48 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"type": "function",
|
|
4
|
+
"name": "allowance",
|
|
5
|
+
"inputs": [
|
|
6
|
+
{
|
|
7
|
+
"name": "owner",
|
|
8
|
+
"type": "address",
|
|
9
|
+
"internalType": "address"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"name": "token",
|
|
13
|
+
"type": "address",
|
|
14
|
+
"internalType": "address"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"name": "spender",
|
|
18
|
+
"type": "address",
|
|
19
|
+
"internalType": "address"
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"outputs": [
|
|
23
|
+
{
|
|
24
|
+
"name": "token",
|
|
25
|
+
"type": "address",
|
|
26
|
+
"internalType": "address"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "spender",
|
|
30
|
+
"type": "address",
|
|
31
|
+
"internalType": "address"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"name": "amount",
|
|
35
|
+
"type": "uint160",
|
|
36
|
+
"internalType": "uint160"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "expiration",
|
|
40
|
+
"type": "uint48",
|
|
41
|
+
"internalType": "uint48"
|
|
42
|
+
}
|
|
43
|
+
],
|
|
44
|
+
"stateMutability": "view"
|
|
45
|
+
},
|
|
2
46
|
{
|
|
3
47
|
"type": "function",
|
|
4
48
|
"name": "approve",
|
|
@@ -67,5 +111,44 @@
|
|
|
67
111
|
}
|
|
68
112
|
],
|
|
69
113
|
"stateMutability": "view"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"type": "function",
|
|
117
|
+
"name": "transferFrom",
|
|
118
|
+
"inputs": [
|
|
119
|
+
{
|
|
120
|
+
"name": "from",
|
|
121
|
+
"type": "address",
|
|
122
|
+
"internalType": "address"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"name": "to",
|
|
126
|
+
"type": "address",
|
|
127
|
+
"internalType": "address"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"name": "amount",
|
|
131
|
+
"type": "uint160",
|
|
132
|
+
"internalType": "uint160"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"name": "token",
|
|
136
|
+
"type": "address",
|
|
137
|
+
"internalType": "address"
|
|
138
|
+
}
|
|
139
|
+
],
|
|
140
|
+
"outputs": [],
|
|
141
|
+
"stateMutability": "nonpayable"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"type": "error",
|
|
145
|
+
"name": "SafeERC20FailedOperation",
|
|
146
|
+
"inputs": [
|
|
147
|
+
{
|
|
148
|
+
"name": "token",
|
|
149
|
+
"type": "address",
|
|
150
|
+
"internalType": "address"
|
|
151
|
+
}
|
|
152
|
+
]
|
|
70
153
|
}
|
|
71
154
|
]
|
|
@@ -552,6 +552,13 @@
|
|
|
552
552
|
"outputs": [],
|
|
553
553
|
"stateMutability": "nonpayable"
|
|
554
554
|
},
|
|
555
|
+
{
|
|
556
|
+
"type": "function",
|
|
557
|
+
"name": "test_e2e_reentrancy_into_reactor_reverts",
|
|
558
|
+
"inputs": [],
|
|
559
|
+
"outputs": [],
|
|
560
|
+
"stateMutability": "nonpayable"
|
|
561
|
+
},
|
|
555
562
|
{
|
|
556
563
|
"type": "function",
|
|
557
564
|
"name": "test_e2e_referral_surplus_distribution",
|
|
@@ -566,6 +573,13 @@
|
|
|
566
573
|
"outputs": [],
|
|
567
574
|
"stateMutability": "nonpayable"
|
|
568
575
|
},
|
|
576
|
+
{
|
|
577
|
+
"type": "function",
|
|
578
|
+
"name": "test_e2e_single_fill_order_cannot_replay_even_with_remaining_permit_allowance",
|
|
579
|
+
"inputs": [],
|
|
580
|
+
"outputs": [],
|
|
581
|
+
"stateMutability": "nonpayable"
|
|
582
|
+
},
|
|
569
583
|
{
|
|
570
584
|
"type": "function",
|
|
571
585
|
"name": "test_e2e_stop_loss_respects_max_output_trigger",
|