@reyaxyz/common 0.160.0 → 0.161.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/transactions/abis/MulticallV2.json +376 -0
- package/dist/transactions/contractAddresses.js +3 -0
- package/dist/transactions/contractAddresses.js.map +1 -1
- package/dist/transactions/index.js +3 -1
- package/dist/transactions/index.js.map +1 -1
- package/dist/types/transactions/contractAddresses.d.ts +2 -1
- package/dist/types/transactions/contractAddresses.d.ts.map +1 -1
- package/dist/types/transactions/index.d.ts +1 -0
- package/dist/types/transactions/index.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/transactions/abis/MulticallV2.json +376 -0
- package/src/transactions/contractAddresses.ts +5 -0
- package/src/transactions/index.ts +1 -0
|
@@ -0,0 +1,376 @@
|
|
|
1
|
+
{
|
|
2
|
+
"abi": [
|
|
3
|
+
{
|
|
4
|
+
"inputs": [
|
|
5
|
+
{
|
|
6
|
+
"components": [
|
|
7
|
+
{
|
|
8
|
+
"internalType": "address",
|
|
9
|
+
"name": "target",
|
|
10
|
+
"type": "address"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"internalType": "bytes",
|
|
14
|
+
"name": "callData",
|
|
15
|
+
"type": "bytes"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"internalType": "struct ArbMulticall2.Call[]",
|
|
19
|
+
"name": "calls",
|
|
20
|
+
"type": "tuple[]"
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"name": "aggregate",
|
|
24
|
+
"outputs": [
|
|
25
|
+
{
|
|
26
|
+
"internalType": "uint256",
|
|
27
|
+
"name": "blockNumber",
|
|
28
|
+
"type": "uint256"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"internalType": "bytes[]",
|
|
32
|
+
"name": "returnData",
|
|
33
|
+
"type": "bytes[]"
|
|
34
|
+
}
|
|
35
|
+
],
|
|
36
|
+
"stateMutability": "nonpayable",
|
|
37
|
+
"type": "function"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"inputs": [
|
|
41
|
+
{
|
|
42
|
+
"components": [
|
|
43
|
+
{
|
|
44
|
+
"internalType": "address",
|
|
45
|
+
"name": "target",
|
|
46
|
+
"type": "address"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"internalType": "bytes",
|
|
50
|
+
"name": "callData",
|
|
51
|
+
"type": "bytes"
|
|
52
|
+
}
|
|
53
|
+
],
|
|
54
|
+
"internalType": "struct ArbMulticall2.Call[]",
|
|
55
|
+
"name": "calls",
|
|
56
|
+
"type": "tuple[]"
|
|
57
|
+
}
|
|
58
|
+
],
|
|
59
|
+
"name": "blockAndAggregate",
|
|
60
|
+
"outputs": [
|
|
61
|
+
{
|
|
62
|
+
"internalType": "uint256",
|
|
63
|
+
"name": "blockNumber",
|
|
64
|
+
"type": "uint256"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"internalType": "bytes32",
|
|
68
|
+
"name": "blockHash",
|
|
69
|
+
"type": "bytes32"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"components": [
|
|
73
|
+
{
|
|
74
|
+
"internalType": "bool",
|
|
75
|
+
"name": "success",
|
|
76
|
+
"type": "bool"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"internalType": "bytes",
|
|
80
|
+
"name": "returnData",
|
|
81
|
+
"type": "bytes"
|
|
82
|
+
}
|
|
83
|
+
],
|
|
84
|
+
"internalType": "struct ArbMulticall2.Result[]",
|
|
85
|
+
"name": "returnData",
|
|
86
|
+
"type": "tuple[]"
|
|
87
|
+
}
|
|
88
|
+
],
|
|
89
|
+
"stateMutability": "nonpayable",
|
|
90
|
+
"type": "function"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"inputs": [
|
|
94
|
+
{
|
|
95
|
+
"internalType": "uint256",
|
|
96
|
+
"name": "blockNumber",
|
|
97
|
+
"type": "uint256"
|
|
98
|
+
}
|
|
99
|
+
],
|
|
100
|
+
"name": "getBlockHash",
|
|
101
|
+
"outputs": [
|
|
102
|
+
{
|
|
103
|
+
"internalType": "bytes32",
|
|
104
|
+
"name": "blockHash",
|
|
105
|
+
"type": "bytes32"
|
|
106
|
+
}
|
|
107
|
+
],
|
|
108
|
+
"stateMutability": "view",
|
|
109
|
+
"type": "function"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"inputs": [],
|
|
113
|
+
"name": "getBlockNumber",
|
|
114
|
+
"outputs": [
|
|
115
|
+
{
|
|
116
|
+
"internalType": "uint256",
|
|
117
|
+
"name": "blockNumber",
|
|
118
|
+
"type": "uint256"
|
|
119
|
+
}
|
|
120
|
+
],
|
|
121
|
+
"stateMutability": "view",
|
|
122
|
+
"type": "function"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"inputs": [],
|
|
126
|
+
"name": "getCurrentBlockCoinbase",
|
|
127
|
+
"outputs": [
|
|
128
|
+
{
|
|
129
|
+
"internalType": "address",
|
|
130
|
+
"name": "coinbase",
|
|
131
|
+
"type": "address"
|
|
132
|
+
}
|
|
133
|
+
],
|
|
134
|
+
"stateMutability": "view",
|
|
135
|
+
"type": "function"
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"inputs": [],
|
|
139
|
+
"name": "getCurrentBlockDifficulty",
|
|
140
|
+
"outputs": [
|
|
141
|
+
{
|
|
142
|
+
"internalType": "uint256",
|
|
143
|
+
"name": "difficulty",
|
|
144
|
+
"type": "uint256"
|
|
145
|
+
}
|
|
146
|
+
],
|
|
147
|
+
"stateMutability": "view",
|
|
148
|
+
"type": "function"
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"inputs": [],
|
|
152
|
+
"name": "getCurrentBlockGasLimit",
|
|
153
|
+
"outputs": [
|
|
154
|
+
{
|
|
155
|
+
"internalType": "uint256",
|
|
156
|
+
"name": "gaslimit",
|
|
157
|
+
"type": "uint256"
|
|
158
|
+
}
|
|
159
|
+
],
|
|
160
|
+
"stateMutability": "view",
|
|
161
|
+
"type": "function"
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"inputs": [],
|
|
165
|
+
"name": "getCurrentBlockTimestamp",
|
|
166
|
+
"outputs": [
|
|
167
|
+
{
|
|
168
|
+
"internalType": "uint256",
|
|
169
|
+
"name": "timestamp",
|
|
170
|
+
"type": "uint256"
|
|
171
|
+
}
|
|
172
|
+
],
|
|
173
|
+
"stateMutability": "view",
|
|
174
|
+
"type": "function"
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"inputs": [
|
|
178
|
+
{
|
|
179
|
+
"internalType": "address",
|
|
180
|
+
"name": "addr",
|
|
181
|
+
"type": "address"
|
|
182
|
+
}
|
|
183
|
+
],
|
|
184
|
+
"name": "getEthBalance",
|
|
185
|
+
"outputs": [
|
|
186
|
+
{
|
|
187
|
+
"internalType": "uint256",
|
|
188
|
+
"name": "balance",
|
|
189
|
+
"type": "uint256"
|
|
190
|
+
}
|
|
191
|
+
],
|
|
192
|
+
"stateMutability": "view",
|
|
193
|
+
"type": "function"
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"inputs": [],
|
|
197
|
+
"name": "getL1BlockNumber",
|
|
198
|
+
"outputs": [
|
|
199
|
+
{
|
|
200
|
+
"internalType": "uint256",
|
|
201
|
+
"name": "l1BlockNumber",
|
|
202
|
+
"type": "uint256"
|
|
203
|
+
}
|
|
204
|
+
],
|
|
205
|
+
"stateMutability": "view",
|
|
206
|
+
"type": "function"
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"inputs": [],
|
|
210
|
+
"name": "getLastBlockHash",
|
|
211
|
+
"outputs": [
|
|
212
|
+
{
|
|
213
|
+
"internalType": "bytes32",
|
|
214
|
+
"name": "blockHash",
|
|
215
|
+
"type": "bytes32"
|
|
216
|
+
}
|
|
217
|
+
],
|
|
218
|
+
"stateMutability": "view",
|
|
219
|
+
"type": "function"
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
"inputs": [
|
|
223
|
+
{
|
|
224
|
+
"internalType": "bool",
|
|
225
|
+
"name": "requireSuccess",
|
|
226
|
+
"type": "bool"
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
"components": [
|
|
230
|
+
{
|
|
231
|
+
"internalType": "address",
|
|
232
|
+
"name": "target",
|
|
233
|
+
"type": "address"
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
"internalType": "bytes",
|
|
237
|
+
"name": "callData",
|
|
238
|
+
"type": "bytes"
|
|
239
|
+
}
|
|
240
|
+
],
|
|
241
|
+
"internalType": "struct ArbMulticall2.Call[]",
|
|
242
|
+
"name": "calls",
|
|
243
|
+
"type": "tuple[]"
|
|
244
|
+
}
|
|
245
|
+
],
|
|
246
|
+
"name": "tryAggregate",
|
|
247
|
+
"outputs": [
|
|
248
|
+
{
|
|
249
|
+
"components": [
|
|
250
|
+
{
|
|
251
|
+
"internalType": "bool",
|
|
252
|
+
"name": "success",
|
|
253
|
+
"type": "bool"
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
"internalType": "bytes",
|
|
257
|
+
"name": "returnData",
|
|
258
|
+
"type": "bytes"
|
|
259
|
+
}
|
|
260
|
+
],
|
|
261
|
+
"internalType": "struct ArbMulticall2.Result[]",
|
|
262
|
+
"name": "returnData",
|
|
263
|
+
"type": "tuple[]"
|
|
264
|
+
}
|
|
265
|
+
],
|
|
266
|
+
"stateMutability": "nonpayable",
|
|
267
|
+
"type": "function"
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
"inputs": [
|
|
271
|
+
{
|
|
272
|
+
"internalType": "bool",
|
|
273
|
+
"name": "requireSuccess",
|
|
274
|
+
"type": "bool"
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
"components": [
|
|
278
|
+
{
|
|
279
|
+
"internalType": "address",
|
|
280
|
+
"name": "target",
|
|
281
|
+
"type": "address"
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
"internalType": "bytes",
|
|
285
|
+
"name": "callData",
|
|
286
|
+
"type": "bytes"
|
|
287
|
+
}
|
|
288
|
+
],
|
|
289
|
+
"internalType": "struct ArbMulticall2.Call[]",
|
|
290
|
+
"name": "calls",
|
|
291
|
+
"type": "tuple[]"
|
|
292
|
+
}
|
|
293
|
+
],
|
|
294
|
+
"name": "tryAggregateGasRation",
|
|
295
|
+
"outputs": [
|
|
296
|
+
{
|
|
297
|
+
"components": [
|
|
298
|
+
{
|
|
299
|
+
"internalType": "bool",
|
|
300
|
+
"name": "success",
|
|
301
|
+
"type": "bool"
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
"internalType": "bytes",
|
|
305
|
+
"name": "returnData",
|
|
306
|
+
"type": "bytes"
|
|
307
|
+
}
|
|
308
|
+
],
|
|
309
|
+
"internalType": "struct ArbMulticall2.Result[]",
|
|
310
|
+
"name": "returnData",
|
|
311
|
+
"type": "tuple[]"
|
|
312
|
+
}
|
|
313
|
+
],
|
|
314
|
+
"stateMutability": "nonpayable",
|
|
315
|
+
"type": "function"
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
"inputs": [
|
|
319
|
+
{
|
|
320
|
+
"internalType": "bool",
|
|
321
|
+
"name": "requireSuccess",
|
|
322
|
+
"type": "bool"
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
"components": [
|
|
326
|
+
{
|
|
327
|
+
"internalType": "address",
|
|
328
|
+
"name": "target",
|
|
329
|
+
"type": "address"
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
"internalType": "bytes",
|
|
333
|
+
"name": "callData",
|
|
334
|
+
"type": "bytes"
|
|
335
|
+
}
|
|
336
|
+
],
|
|
337
|
+
"internalType": "struct ArbMulticall2.Call[]",
|
|
338
|
+
"name": "calls",
|
|
339
|
+
"type": "tuple[]"
|
|
340
|
+
}
|
|
341
|
+
],
|
|
342
|
+
"name": "tryBlockAndAggregate",
|
|
343
|
+
"outputs": [
|
|
344
|
+
{
|
|
345
|
+
"internalType": "uint256",
|
|
346
|
+
"name": "blockNumber",
|
|
347
|
+
"type": "uint256"
|
|
348
|
+
},
|
|
349
|
+
{
|
|
350
|
+
"internalType": "bytes32",
|
|
351
|
+
"name": "blockHash",
|
|
352
|
+
"type": "bytes32"
|
|
353
|
+
},
|
|
354
|
+
{
|
|
355
|
+
"components": [
|
|
356
|
+
{
|
|
357
|
+
"internalType": "bool",
|
|
358
|
+
"name": "success",
|
|
359
|
+
"type": "bool"
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
"internalType": "bytes",
|
|
363
|
+
"name": "returnData",
|
|
364
|
+
"type": "bytes"
|
|
365
|
+
}
|
|
366
|
+
],
|
|
367
|
+
"internalType": "struct ArbMulticall2.Result[]",
|
|
368
|
+
"name": "returnData",
|
|
369
|
+
"type": "tuple[]"
|
|
370
|
+
}
|
|
371
|
+
],
|
|
372
|
+
"stateMutability": "nonpayable",
|
|
373
|
+
"type": "function"
|
|
374
|
+
}
|
|
375
|
+
]
|
|
376
|
+
}
|
|
@@ -9,6 +9,7 @@ var ContractType;
|
|
|
9
9
|
ContractType["PASSIVE_POOL_PROXY"] = "passive_pool_proxy";
|
|
10
10
|
ContractType["PERIPHERY_PROXY"] = "periphery_proxy";
|
|
11
11
|
ContractType["CONDITIONAL_ORDERS_PROXY"] = "conditional_orders_proxy";
|
|
12
|
+
ContractType["PASSIVE_PERP_PROXY"] = "passive_perp_proxy";
|
|
12
13
|
})(ContractType || (exports.ContractType = ContractType = {}));
|
|
13
14
|
var addresses = (_a = {},
|
|
14
15
|
_a[types_1.ReyaChainId.reyaCronos] = (_b = {},
|
|
@@ -16,12 +17,14 @@ var addresses = (_a = {},
|
|
|
16
17
|
_b[ContractType.PASSIVE_POOL_PROXY] = '0x9a3a664987b88790a6fdc1632e3b607813fd94ff',
|
|
17
18
|
_b[ContractType.PERIPHERY_PROXY] = '0x94ccae812f1647696754412082dd6684c2366a7f',
|
|
18
19
|
_b[ContractType.CONDITIONAL_ORDERS_PROXY] = '0x5a0ac2f89e0bdeafc5c549e354842210a3e87ca5',
|
|
20
|
+
_b[ContractType.PASSIVE_PERP_PROXY] = '0x9ec177fed042ef2307928be2f5cdbf663b20244b',
|
|
19
21
|
_b),
|
|
20
22
|
_a[types_1.ReyaChainId.reyaNetwork] = (_c = {},
|
|
21
23
|
_c[ContractType.CORE_PROXY] = '0xa763b6a5e09378434406c003dae6487fbbdc1a80',
|
|
22
24
|
_c[ContractType.PASSIVE_POOL_PROXY] = '0xb4b77d6180cc14472a9a7bdff01cc2459368d413',
|
|
23
25
|
_c[ContractType.PERIPHERY_PROXY] = '0xcd2869d1eb1bc8991bc55de9e9b779e912faf736',
|
|
24
26
|
_c[ContractType.CONDITIONAL_ORDERS_PROXY] = '0xfc8c96be87da63cecddbf54abfa7b13ee8044739',
|
|
27
|
+
_c[ContractType.PASSIVE_PERP_PROXY] = '0x27e5cb712334e101b3c232eb0be198baaa595f5f',
|
|
25
28
|
_c),
|
|
26
29
|
_a);
|
|
27
30
|
var getAddress = function (chainId, contractName) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contractAddresses.js","sourceRoot":"/","sources":["transactions/contractAddresses.ts"],"names":[],"mappings":";;;;AAAA,kCAAgD;AAEhD,IAAY,
|
|
1
|
+
{"version":3,"file":"contractAddresses.js","sourceRoot":"/","sources":["transactions/contractAddresses.ts"],"names":[],"mappings":";;;;AAAA,kCAAgD;AAEhD,IAAY,YAMX;AAND,WAAY,YAAY;IACtB,yCAAyB,CAAA;IACzB,yDAAyC,CAAA;IACzC,mDAAmC,CAAA;IACnC,qEAAqD,CAAA;IACrD,yDAAyC,CAAA;AAC3C,CAAC,EANW,YAAY,4BAAZ,YAAY,QAMvB;AAED,IAAM,SAAS;IACb,GAAC,mBAAW,CAAC,UAAU;QACrB,GAAC,YAAY,CAAC,UAAU,IAAG,4CAA4C;QACvE,GAAC,YAAY,CAAC,kBAAkB,IAC9B,4CAA4C;QAC9C,GAAC,YAAY,CAAC,eAAe,IAC3B,4CAA4C;QAC9C,GAAC,YAAY,CAAC,wBAAwB,IACpC,4CAA4C;QAC9C,GAAC,YAAY,CAAC,kBAAkB,IAC9B,4CAA4C;WAC/C;IACD,GAAC,mBAAW,CAAC,WAAW;QACtB,GAAC,YAAY,CAAC,UAAU,IAAG,4CAA4C;QACvE,GAAC,YAAY,CAAC,kBAAkB,IAC9B,4CAA4C;QAC9C,GAAC,YAAY,CAAC,eAAe,IAC3B,4CAA4C;QAC9C,GAAC,YAAY,CAAC,wBAAwB,IACpC,4CAA4C;QAC9C,GAAC,YAAY,CAAC,kBAAkB,IAC9B,4CAA4C;WAC/C;OACF,CAAC;AACK,IAAM,UAAU,GAAG,UACxB,OAAe,EACf,YAA0B;IAE1B,IAAM,UAAU,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC;IAEtC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE,CAAC;QACjD,MAAM,IAAI,KAAK,CAAC,6CAAsC,UAAU,CAAE,CAAC,CAAC;IACtE,CAAC;IAED,IAAM,gBAAgB,GAAG,SAAS,CAAC,OAAsB,CAAC,CAAC;IAC3D,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,QAAQ,CAAC,YAAY,CAAC,EAAE,CAAC;QAC1D,MAAM,IAAI,KAAK,CAAC,kCAA2B,YAAY,cAAW,CAAC,CAAC;IACtE,CAAC;IAED,OAAO,gBAAgB,CAAC,YAAY,CAAC,CAAC;AACxC,CAAC,CAAC;AAhBW,QAAA,UAAU,cAgBrB","sourcesContent":["import { Address, ReyaChainId } from '../types';\n\nexport enum ContractType {\n CORE_PROXY = 'core_proxy',\n PASSIVE_POOL_PROXY = 'passive_pool_proxy',\n PERIPHERY_PROXY = 'periphery_proxy',\n CONDITIONAL_ORDERS_PROXY = 'conditional_orders_proxy',\n PASSIVE_PERP_PROXY = 'passive_perp_proxy',\n}\n\nconst addresses: Record<ReyaChainId, Record<ContractType, Address>> = {\n [ReyaChainId.reyaCronos]: {\n [ContractType.CORE_PROXY]: '0xc6fb022962e1426f4e0ec9d2f8861c57926e9f72',\n [ContractType.PASSIVE_POOL_PROXY]:\n '0x9a3a664987b88790a6fdc1632e3b607813fd94ff',\n [ContractType.PERIPHERY_PROXY]:\n '0x94ccae812f1647696754412082dd6684c2366a7f',\n [ContractType.CONDITIONAL_ORDERS_PROXY]:\n '0x5a0ac2f89e0bdeafc5c549e354842210a3e87ca5',\n [ContractType.PASSIVE_PERP_PROXY]:\n '0x9ec177fed042ef2307928be2f5cdbf663b20244b',\n },\n [ReyaChainId.reyaNetwork]: {\n [ContractType.CORE_PROXY]: '0xa763b6a5e09378434406c003dae6487fbbdc1a80',\n [ContractType.PASSIVE_POOL_PROXY]:\n '0xb4b77d6180cc14472a9a7bdff01cc2459368d413',\n [ContractType.PERIPHERY_PROXY]:\n '0xcd2869d1eb1bc8991bc55de9e9b779e912faf736',\n [ContractType.CONDITIONAL_ORDERS_PROXY]:\n '0xfc8c96be87da63cecddbf54abfa7b13ee8044739',\n [ContractType.PASSIVE_PERP_PROXY]:\n '0x27e5cb712334e101b3c232eb0be198baaa595f5f',\n },\n};\nexport const getAddress = (\n chainId: number,\n contractName: ContractType,\n): Address => {\n const keyChainId = chainId.toString();\n\n if (!Object.keys(addresses).includes(keyChainId)) {\n throw new Error(`Unspecified addresses for chain id ${keyChainId}`);\n }\n\n const networkAddresses = addresses[chainId as ReyaChainId];\n if (!Object.keys(networkAddresses).includes(contractName)) {\n throw new Error(`Unspecified address for ${contractName} contract`);\n }\n\n return networkAddresses[contractName];\n};\n"]}
|
|
@@ -14,10 +14,12 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.Socket_VaultWithPayloadAbi = exports.PeripheryAbi = exports.CoreAbi = void 0;
|
|
17
|
+
exports.Socket_VaultWithPayloadAbi = exports.PeripheryAbi = exports.MulticallAbi = exports.CoreAbi = void 0;
|
|
18
18
|
__exportStar(require("./action"), exports);
|
|
19
19
|
var CoreProxy_json_1 = require("./abis/CoreProxy.json");
|
|
20
20
|
Object.defineProperty(exports, "CoreAbi", { enumerable: true, get: function () { return CoreProxy_json_1.abi; } });
|
|
21
|
+
var MulticallV2_json_1 = require("./abis/MulticallV2.json");
|
|
22
|
+
Object.defineProperty(exports, "MulticallAbi", { enumerable: true, get: function () { return MulticallV2_json_1.abi; } });
|
|
21
23
|
var Periphery_json_1 = require("./abis/Periphery.json");
|
|
22
24
|
Object.defineProperty(exports, "PeripheryAbi", { enumerable: true, get: function () { return Periphery_json_1.abi; } });
|
|
23
25
|
var VaultWithPayload_json_1 = require("./abis/socket/VaultWithPayload.json");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"/","sources":["transactions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,wDAAuD;AAA9C,yGAAA,GAAG,OAAW;AACvB,wDAA4D;AAAnD,8GAAA,GAAG,OAAgB;AAC5B,6EAAwF;AAA/E,mIAAA,GAAG,OAA8B;AAC1C,sDAAoC;AACpC,mDAAiC;AACjC,yCAAuB;AACvB,0CAAwB;AACxB,8CAA4B;AAC5B,2CAAyB;AACzB,uDAAqC;AACrC,gDAA8B","sourcesContent":["export * from './action';\nexport { abi as CoreAbi } from './abis/CoreProxy.json';\nexport { abi as PeripheryAbi } from './abis/Periphery.json';\nexport { abi as Socket_VaultWithPayloadAbi } from './abis/socket/VaultWithPayload.json';\nexport * from './contractAddresses';\nexport * from './routerCommands';\nexport * from './sign';\nexport * from './trade';\nexport * from './txHelpers';\nexport * from './consts';\nexport * from './executeTransaction';\nexport * from './permissions';\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"/","sources":["transactions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,wDAAuD;AAA9C,yGAAA,GAAG,OAAW;AACvB,4DAA8D;AAArD,gHAAA,GAAG,OAAgB;AAC5B,wDAA4D;AAAnD,8GAAA,GAAG,OAAgB;AAC5B,6EAAwF;AAA/E,mIAAA,GAAG,OAA8B;AAC1C,sDAAoC;AACpC,mDAAiC;AACjC,yCAAuB;AACvB,0CAAwB;AACxB,8CAA4B;AAC5B,2CAAyB;AACzB,uDAAqC;AACrC,gDAA8B","sourcesContent":["export * from './action';\nexport { abi as CoreAbi } from './abis/CoreProxy.json';\nexport { abi as MulticallAbi } from './abis/MulticallV2.json';\nexport { abi as PeripheryAbi } from './abis/Periphery.json';\nexport { abi as Socket_VaultWithPayloadAbi } from './abis/socket/VaultWithPayload.json';\nexport * from './contractAddresses';\nexport * from './routerCommands';\nexport * from './sign';\nexport * from './trade';\nexport * from './txHelpers';\nexport * from './consts';\nexport * from './executeTransaction';\nexport * from './permissions';\n"]}
|
|
@@ -3,7 +3,8 @@ export declare enum ContractType {
|
|
|
3
3
|
CORE_PROXY = "core_proxy",
|
|
4
4
|
PASSIVE_POOL_PROXY = "passive_pool_proxy",
|
|
5
5
|
PERIPHERY_PROXY = "periphery_proxy",
|
|
6
|
-
CONDITIONAL_ORDERS_PROXY = "conditional_orders_proxy"
|
|
6
|
+
CONDITIONAL_ORDERS_PROXY = "conditional_orders_proxy",
|
|
7
|
+
PASSIVE_PERP_PROXY = "passive_perp_proxy"
|
|
7
8
|
}
|
|
8
9
|
export declare const getAddress: (chainId: number, contractName: ContractType) => Address;
|
|
9
10
|
//# sourceMappingURL=contractAddresses.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contractAddresses.d.ts","sourceRoot":"/","sources":["transactions/contractAddresses.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAe,MAAM,UAAU,CAAC;AAEhD,oBAAY,YAAY;IACtB,UAAU,eAAe;IACzB,kBAAkB,uBAAuB;IACzC,eAAe,oBAAoB;IACnC,wBAAwB,6BAA6B;
|
|
1
|
+
{"version":3,"file":"contractAddresses.d.ts","sourceRoot":"/","sources":["transactions/contractAddresses.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAe,MAAM,UAAU,CAAC;AAEhD,oBAAY,YAAY;IACtB,UAAU,eAAe;IACzB,kBAAkB,uBAAuB;IACzC,eAAe,oBAAoB;IACnC,wBAAwB,6BAA6B;IACrD,kBAAkB,uBAAuB;CAC1C;AA0BD,eAAO,MAAM,UAAU,YACZ,MAAM,gBACD,YAAY,KACzB,OAaF,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from './action';
|
|
2
2
|
export { abi as CoreAbi } from './abis/CoreProxy.json';
|
|
3
|
+
export { abi as MulticallAbi } from './abis/MulticallV2.json';
|
|
3
4
|
export { abi as PeripheryAbi } from './abis/Periphery.json';
|
|
4
5
|
export { abi as Socket_VaultWithPayloadAbi } from './abis/socket/VaultWithPayload.json';
|
|
5
6
|
export * from './contractAddresses';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"/","sources":["transactions/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,GAAG,IAAI,OAAO,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,GAAG,IAAI,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,GAAG,IAAI,0BAA0B,EAAE,MAAM,qCAAqC,CAAC;AACxF,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"/","sources":["transactions/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,GAAG,IAAI,OAAO,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,GAAG,IAAI,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,GAAG,IAAI,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,GAAG,IAAI,0BAA0B,EAAE,MAAM,qCAAqC,CAAC;AACxF,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reyaxyz/common",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.161.1",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"generate:coverage-badges": "npx istanbul-badges-readme --silent"
|
|
44
44
|
},
|
|
45
45
|
"packageManager": "pnpm@8.3.1",
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "d7b2b4a9a7aa250e2f617fb4070b16d93a8a8c19"
|
|
47
47
|
}
|
|
@@ -0,0 +1,376 @@
|
|
|
1
|
+
{
|
|
2
|
+
"abi": [
|
|
3
|
+
{
|
|
4
|
+
"inputs": [
|
|
5
|
+
{
|
|
6
|
+
"components": [
|
|
7
|
+
{
|
|
8
|
+
"internalType": "address",
|
|
9
|
+
"name": "target",
|
|
10
|
+
"type": "address"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"internalType": "bytes",
|
|
14
|
+
"name": "callData",
|
|
15
|
+
"type": "bytes"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"internalType": "struct ArbMulticall2.Call[]",
|
|
19
|
+
"name": "calls",
|
|
20
|
+
"type": "tuple[]"
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"name": "aggregate",
|
|
24
|
+
"outputs": [
|
|
25
|
+
{
|
|
26
|
+
"internalType": "uint256",
|
|
27
|
+
"name": "blockNumber",
|
|
28
|
+
"type": "uint256"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"internalType": "bytes[]",
|
|
32
|
+
"name": "returnData",
|
|
33
|
+
"type": "bytes[]"
|
|
34
|
+
}
|
|
35
|
+
],
|
|
36
|
+
"stateMutability": "nonpayable",
|
|
37
|
+
"type": "function"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"inputs": [
|
|
41
|
+
{
|
|
42
|
+
"components": [
|
|
43
|
+
{
|
|
44
|
+
"internalType": "address",
|
|
45
|
+
"name": "target",
|
|
46
|
+
"type": "address"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"internalType": "bytes",
|
|
50
|
+
"name": "callData",
|
|
51
|
+
"type": "bytes"
|
|
52
|
+
}
|
|
53
|
+
],
|
|
54
|
+
"internalType": "struct ArbMulticall2.Call[]",
|
|
55
|
+
"name": "calls",
|
|
56
|
+
"type": "tuple[]"
|
|
57
|
+
}
|
|
58
|
+
],
|
|
59
|
+
"name": "blockAndAggregate",
|
|
60
|
+
"outputs": [
|
|
61
|
+
{
|
|
62
|
+
"internalType": "uint256",
|
|
63
|
+
"name": "blockNumber",
|
|
64
|
+
"type": "uint256"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"internalType": "bytes32",
|
|
68
|
+
"name": "blockHash",
|
|
69
|
+
"type": "bytes32"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"components": [
|
|
73
|
+
{
|
|
74
|
+
"internalType": "bool",
|
|
75
|
+
"name": "success",
|
|
76
|
+
"type": "bool"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"internalType": "bytes",
|
|
80
|
+
"name": "returnData",
|
|
81
|
+
"type": "bytes"
|
|
82
|
+
}
|
|
83
|
+
],
|
|
84
|
+
"internalType": "struct ArbMulticall2.Result[]",
|
|
85
|
+
"name": "returnData",
|
|
86
|
+
"type": "tuple[]"
|
|
87
|
+
}
|
|
88
|
+
],
|
|
89
|
+
"stateMutability": "nonpayable",
|
|
90
|
+
"type": "function"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"inputs": [
|
|
94
|
+
{
|
|
95
|
+
"internalType": "uint256",
|
|
96
|
+
"name": "blockNumber",
|
|
97
|
+
"type": "uint256"
|
|
98
|
+
}
|
|
99
|
+
],
|
|
100
|
+
"name": "getBlockHash",
|
|
101
|
+
"outputs": [
|
|
102
|
+
{
|
|
103
|
+
"internalType": "bytes32",
|
|
104
|
+
"name": "blockHash",
|
|
105
|
+
"type": "bytes32"
|
|
106
|
+
}
|
|
107
|
+
],
|
|
108
|
+
"stateMutability": "view",
|
|
109
|
+
"type": "function"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"inputs": [],
|
|
113
|
+
"name": "getBlockNumber",
|
|
114
|
+
"outputs": [
|
|
115
|
+
{
|
|
116
|
+
"internalType": "uint256",
|
|
117
|
+
"name": "blockNumber",
|
|
118
|
+
"type": "uint256"
|
|
119
|
+
}
|
|
120
|
+
],
|
|
121
|
+
"stateMutability": "view",
|
|
122
|
+
"type": "function"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"inputs": [],
|
|
126
|
+
"name": "getCurrentBlockCoinbase",
|
|
127
|
+
"outputs": [
|
|
128
|
+
{
|
|
129
|
+
"internalType": "address",
|
|
130
|
+
"name": "coinbase",
|
|
131
|
+
"type": "address"
|
|
132
|
+
}
|
|
133
|
+
],
|
|
134
|
+
"stateMutability": "view",
|
|
135
|
+
"type": "function"
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"inputs": [],
|
|
139
|
+
"name": "getCurrentBlockDifficulty",
|
|
140
|
+
"outputs": [
|
|
141
|
+
{
|
|
142
|
+
"internalType": "uint256",
|
|
143
|
+
"name": "difficulty",
|
|
144
|
+
"type": "uint256"
|
|
145
|
+
}
|
|
146
|
+
],
|
|
147
|
+
"stateMutability": "view",
|
|
148
|
+
"type": "function"
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"inputs": [],
|
|
152
|
+
"name": "getCurrentBlockGasLimit",
|
|
153
|
+
"outputs": [
|
|
154
|
+
{
|
|
155
|
+
"internalType": "uint256",
|
|
156
|
+
"name": "gaslimit",
|
|
157
|
+
"type": "uint256"
|
|
158
|
+
}
|
|
159
|
+
],
|
|
160
|
+
"stateMutability": "view",
|
|
161
|
+
"type": "function"
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"inputs": [],
|
|
165
|
+
"name": "getCurrentBlockTimestamp",
|
|
166
|
+
"outputs": [
|
|
167
|
+
{
|
|
168
|
+
"internalType": "uint256",
|
|
169
|
+
"name": "timestamp",
|
|
170
|
+
"type": "uint256"
|
|
171
|
+
}
|
|
172
|
+
],
|
|
173
|
+
"stateMutability": "view",
|
|
174
|
+
"type": "function"
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"inputs": [
|
|
178
|
+
{
|
|
179
|
+
"internalType": "address",
|
|
180
|
+
"name": "addr",
|
|
181
|
+
"type": "address"
|
|
182
|
+
}
|
|
183
|
+
],
|
|
184
|
+
"name": "getEthBalance",
|
|
185
|
+
"outputs": [
|
|
186
|
+
{
|
|
187
|
+
"internalType": "uint256",
|
|
188
|
+
"name": "balance",
|
|
189
|
+
"type": "uint256"
|
|
190
|
+
}
|
|
191
|
+
],
|
|
192
|
+
"stateMutability": "view",
|
|
193
|
+
"type": "function"
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"inputs": [],
|
|
197
|
+
"name": "getL1BlockNumber",
|
|
198
|
+
"outputs": [
|
|
199
|
+
{
|
|
200
|
+
"internalType": "uint256",
|
|
201
|
+
"name": "l1BlockNumber",
|
|
202
|
+
"type": "uint256"
|
|
203
|
+
}
|
|
204
|
+
],
|
|
205
|
+
"stateMutability": "view",
|
|
206
|
+
"type": "function"
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"inputs": [],
|
|
210
|
+
"name": "getLastBlockHash",
|
|
211
|
+
"outputs": [
|
|
212
|
+
{
|
|
213
|
+
"internalType": "bytes32",
|
|
214
|
+
"name": "blockHash",
|
|
215
|
+
"type": "bytes32"
|
|
216
|
+
}
|
|
217
|
+
],
|
|
218
|
+
"stateMutability": "view",
|
|
219
|
+
"type": "function"
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
"inputs": [
|
|
223
|
+
{
|
|
224
|
+
"internalType": "bool",
|
|
225
|
+
"name": "requireSuccess",
|
|
226
|
+
"type": "bool"
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
"components": [
|
|
230
|
+
{
|
|
231
|
+
"internalType": "address",
|
|
232
|
+
"name": "target",
|
|
233
|
+
"type": "address"
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
"internalType": "bytes",
|
|
237
|
+
"name": "callData",
|
|
238
|
+
"type": "bytes"
|
|
239
|
+
}
|
|
240
|
+
],
|
|
241
|
+
"internalType": "struct ArbMulticall2.Call[]",
|
|
242
|
+
"name": "calls",
|
|
243
|
+
"type": "tuple[]"
|
|
244
|
+
}
|
|
245
|
+
],
|
|
246
|
+
"name": "tryAggregate",
|
|
247
|
+
"outputs": [
|
|
248
|
+
{
|
|
249
|
+
"components": [
|
|
250
|
+
{
|
|
251
|
+
"internalType": "bool",
|
|
252
|
+
"name": "success",
|
|
253
|
+
"type": "bool"
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
"internalType": "bytes",
|
|
257
|
+
"name": "returnData",
|
|
258
|
+
"type": "bytes"
|
|
259
|
+
}
|
|
260
|
+
],
|
|
261
|
+
"internalType": "struct ArbMulticall2.Result[]",
|
|
262
|
+
"name": "returnData",
|
|
263
|
+
"type": "tuple[]"
|
|
264
|
+
}
|
|
265
|
+
],
|
|
266
|
+
"stateMutability": "nonpayable",
|
|
267
|
+
"type": "function"
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
"inputs": [
|
|
271
|
+
{
|
|
272
|
+
"internalType": "bool",
|
|
273
|
+
"name": "requireSuccess",
|
|
274
|
+
"type": "bool"
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
"components": [
|
|
278
|
+
{
|
|
279
|
+
"internalType": "address",
|
|
280
|
+
"name": "target",
|
|
281
|
+
"type": "address"
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
"internalType": "bytes",
|
|
285
|
+
"name": "callData",
|
|
286
|
+
"type": "bytes"
|
|
287
|
+
}
|
|
288
|
+
],
|
|
289
|
+
"internalType": "struct ArbMulticall2.Call[]",
|
|
290
|
+
"name": "calls",
|
|
291
|
+
"type": "tuple[]"
|
|
292
|
+
}
|
|
293
|
+
],
|
|
294
|
+
"name": "tryAggregateGasRation",
|
|
295
|
+
"outputs": [
|
|
296
|
+
{
|
|
297
|
+
"components": [
|
|
298
|
+
{
|
|
299
|
+
"internalType": "bool",
|
|
300
|
+
"name": "success",
|
|
301
|
+
"type": "bool"
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
"internalType": "bytes",
|
|
305
|
+
"name": "returnData",
|
|
306
|
+
"type": "bytes"
|
|
307
|
+
}
|
|
308
|
+
],
|
|
309
|
+
"internalType": "struct ArbMulticall2.Result[]",
|
|
310
|
+
"name": "returnData",
|
|
311
|
+
"type": "tuple[]"
|
|
312
|
+
}
|
|
313
|
+
],
|
|
314
|
+
"stateMutability": "nonpayable",
|
|
315
|
+
"type": "function"
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
"inputs": [
|
|
319
|
+
{
|
|
320
|
+
"internalType": "bool",
|
|
321
|
+
"name": "requireSuccess",
|
|
322
|
+
"type": "bool"
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
"components": [
|
|
326
|
+
{
|
|
327
|
+
"internalType": "address",
|
|
328
|
+
"name": "target",
|
|
329
|
+
"type": "address"
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
"internalType": "bytes",
|
|
333
|
+
"name": "callData",
|
|
334
|
+
"type": "bytes"
|
|
335
|
+
}
|
|
336
|
+
],
|
|
337
|
+
"internalType": "struct ArbMulticall2.Call[]",
|
|
338
|
+
"name": "calls",
|
|
339
|
+
"type": "tuple[]"
|
|
340
|
+
}
|
|
341
|
+
],
|
|
342
|
+
"name": "tryBlockAndAggregate",
|
|
343
|
+
"outputs": [
|
|
344
|
+
{
|
|
345
|
+
"internalType": "uint256",
|
|
346
|
+
"name": "blockNumber",
|
|
347
|
+
"type": "uint256"
|
|
348
|
+
},
|
|
349
|
+
{
|
|
350
|
+
"internalType": "bytes32",
|
|
351
|
+
"name": "blockHash",
|
|
352
|
+
"type": "bytes32"
|
|
353
|
+
},
|
|
354
|
+
{
|
|
355
|
+
"components": [
|
|
356
|
+
{
|
|
357
|
+
"internalType": "bool",
|
|
358
|
+
"name": "success",
|
|
359
|
+
"type": "bool"
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
"internalType": "bytes",
|
|
363
|
+
"name": "returnData",
|
|
364
|
+
"type": "bytes"
|
|
365
|
+
}
|
|
366
|
+
],
|
|
367
|
+
"internalType": "struct ArbMulticall2.Result[]",
|
|
368
|
+
"name": "returnData",
|
|
369
|
+
"type": "tuple[]"
|
|
370
|
+
}
|
|
371
|
+
],
|
|
372
|
+
"stateMutability": "nonpayable",
|
|
373
|
+
"type": "function"
|
|
374
|
+
}
|
|
375
|
+
]
|
|
376
|
+
}
|
|
@@ -5,6 +5,7 @@ export enum ContractType {
|
|
|
5
5
|
PASSIVE_POOL_PROXY = 'passive_pool_proxy',
|
|
6
6
|
PERIPHERY_PROXY = 'periphery_proxy',
|
|
7
7
|
CONDITIONAL_ORDERS_PROXY = 'conditional_orders_proxy',
|
|
8
|
+
PASSIVE_PERP_PROXY = 'passive_perp_proxy',
|
|
8
9
|
}
|
|
9
10
|
|
|
10
11
|
const addresses: Record<ReyaChainId, Record<ContractType, Address>> = {
|
|
@@ -16,6 +17,8 @@ const addresses: Record<ReyaChainId, Record<ContractType, Address>> = {
|
|
|
16
17
|
'0x94ccae812f1647696754412082dd6684c2366a7f',
|
|
17
18
|
[ContractType.CONDITIONAL_ORDERS_PROXY]:
|
|
18
19
|
'0x5a0ac2f89e0bdeafc5c549e354842210a3e87ca5',
|
|
20
|
+
[ContractType.PASSIVE_PERP_PROXY]:
|
|
21
|
+
'0x9ec177fed042ef2307928be2f5cdbf663b20244b',
|
|
19
22
|
},
|
|
20
23
|
[ReyaChainId.reyaNetwork]: {
|
|
21
24
|
[ContractType.CORE_PROXY]: '0xa763b6a5e09378434406c003dae6487fbbdc1a80',
|
|
@@ -25,6 +28,8 @@ const addresses: Record<ReyaChainId, Record<ContractType, Address>> = {
|
|
|
25
28
|
'0xcd2869d1eb1bc8991bc55de9e9b779e912faf736',
|
|
26
29
|
[ContractType.CONDITIONAL_ORDERS_PROXY]:
|
|
27
30
|
'0xfc8c96be87da63cecddbf54abfa7b13ee8044739',
|
|
31
|
+
[ContractType.PASSIVE_PERP_PROXY]:
|
|
32
|
+
'0x27e5cb712334e101b3c232eb0be198baaa595f5f',
|
|
28
33
|
},
|
|
29
34
|
};
|
|
30
35
|
export const getAddress = (
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from './action';
|
|
2
2
|
export { abi as CoreAbi } from './abis/CoreProxy.json';
|
|
3
|
+
export { abi as MulticallAbi } from './abis/MulticallV2.json';
|
|
3
4
|
export { abi as PeripheryAbi } from './abis/Periphery.json';
|
|
4
5
|
export { abi as Socket_VaultWithPayloadAbi } from './abis/socket/VaultWithPayload.json';
|
|
5
6
|
export * from './contractAddresses';
|