@reyaxyz/common 0.330.1 → 0.330.2
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/PassivePerpProxy.json +295 -0
- package/dist/transactions/index.js +3 -1
- package/dist/transactions/index.js.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/PassivePerpProxy.json +295 -0
- package/src/transactions/index.ts +1 -0
|
@@ -0,0 +1,295 @@
|
|
|
1
|
+
{
|
|
2
|
+
"abi": [
|
|
3
|
+
{
|
|
4
|
+
"type": "function",
|
|
5
|
+
"name": "getPoolMaxExposures",
|
|
6
|
+
"inputs": [
|
|
7
|
+
{
|
|
8
|
+
"name": "marketId",
|
|
9
|
+
"type": "uint128",
|
|
10
|
+
"internalType": "uint128"
|
|
11
|
+
}
|
|
12
|
+
],
|
|
13
|
+
"outputs": [
|
|
14
|
+
{
|
|
15
|
+
"name": "maxShortExposure",
|
|
16
|
+
"type": "uint256",
|
|
17
|
+
"internalType": "UD60x18"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"name": "maxLongExposure",
|
|
21
|
+
"type": "uint256",
|
|
22
|
+
"internalType": "UD60x18"
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
"stateMutability": "view"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"type": "function",
|
|
29
|
+
"name": "getMarketConfiguration",
|
|
30
|
+
"inputs": [
|
|
31
|
+
{
|
|
32
|
+
"name": "marketId",
|
|
33
|
+
"type": "uint128",
|
|
34
|
+
"internalType": "uint128"
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
"outputs": [
|
|
38
|
+
{
|
|
39
|
+
"name": "config",
|
|
40
|
+
"type": "tuple",
|
|
41
|
+
"internalType": "struct MarketConfigurationData",
|
|
42
|
+
"components": [
|
|
43
|
+
{
|
|
44
|
+
"name": "riskMatrixIndex",
|
|
45
|
+
"type": "uint256",
|
|
46
|
+
"internalType": "uint256"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"name": "maxOpenBase",
|
|
50
|
+
"type": "uint256",
|
|
51
|
+
"internalType": "UD60x18"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"name": "velocityMultiplier",
|
|
55
|
+
"type": "uint256",
|
|
56
|
+
"internalType": "UD60x18"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"name": "oracleNodeId",
|
|
60
|
+
"type": "bytes32",
|
|
61
|
+
"internalType": "bytes32"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"name": "mtmWindow",
|
|
65
|
+
"type": "uint256",
|
|
66
|
+
"internalType": "uint256"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"name": "dutchConfig",
|
|
70
|
+
"type": "tuple",
|
|
71
|
+
"internalType": "struct DutchConfiguration",
|
|
72
|
+
"components": [
|
|
73
|
+
{
|
|
74
|
+
"name": "lambda",
|
|
75
|
+
"type": "uint256",
|
|
76
|
+
"internalType": "UD60x18"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"name": "minBase",
|
|
80
|
+
"type": "uint256",
|
|
81
|
+
"internalType": "UD60x18"
|
|
82
|
+
}
|
|
83
|
+
]
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"name": "slippageParams",
|
|
87
|
+
"type": "tuple",
|
|
88
|
+
"internalType": "struct SlippageParams",
|
|
89
|
+
"components": [
|
|
90
|
+
{
|
|
91
|
+
"name": "phi",
|
|
92
|
+
"type": "uint256",
|
|
93
|
+
"internalType": "UD60x18"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"name": "beta",
|
|
97
|
+
"type": "uint256",
|
|
98
|
+
"internalType": "UD60x18"
|
|
99
|
+
}
|
|
100
|
+
]
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"name": "minimumOrderBase",
|
|
104
|
+
"type": "uint256",
|
|
105
|
+
"internalType": "UD60x18"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"name": "baseSpacing",
|
|
109
|
+
"type": "uint256",
|
|
110
|
+
"internalType": "UD60x18"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"name": "priceSpacing",
|
|
114
|
+
"type": "uint256",
|
|
115
|
+
"internalType": "UD60x18"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"name": "depthFactor",
|
|
119
|
+
"type": "uint256",
|
|
120
|
+
"internalType": "UD60x18"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"name": "maxExposureFactor",
|
|
124
|
+
"type": "uint256",
|
|
125
|
+
"internalType": "UD60x18"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"name": "maxPSlippage",
|
|
129
|
+
"type": "uint256",
|
|
130
|
+
"internalType": "UD60x18"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"name": "marketOrderMaxStaleDuration",
|
|
134
|
+
"type": "uint256",
|
|
135
|
+
"internalType": "uint256"
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"name": "priceSpread",
|
|
139
|
+
"type": "uint256",
|
|
140
|
+
"internalType": "UD60x18"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"name": "volatilityIndexMultiplier",
|
|
144
|
+
"type": "uint256",
|
|
145
|
+
"internalType": "UD60x18"
|
|
146
|
+
}
|
|
147
|
+
]
|
|
148
|
+
}
|
|
149
|
+
],
|
|
150
|
+
"stateMutability": "view"
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"type": "function",
|
|
154
|
+
"name": "setMarketConfiguration",
|
|
155
|
+
"inputs": [
|
|
156
|
+
{
|
|
157
|
+
"name": "marketId",
|
|
158
|
+
"type": "uint128",
|
|
159
|
+
"internalType": "uint128"
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"name": "config",
|
|
163
|
+
"type": "tuple",
|
|
164
|
+
"internalType": "struct MarketConfigurationData",
|
|
165
|
+
"components": [
|
|
166
|
+
{
|
|
167
|
+
"name": "riskMatrixIndex",
|
|
168
|
+
"type": "uint256",
|
|
169
|
+
"internalType": "uint256"
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"name": "maxOpenBase",
|
|
173
|
+
"type": "uint256",
|
|
174
|
+
"internalType": "UD60x18"
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"name": "velocityMultiplier",
|
|
178
|
+
"type": "uint256",
|
|
179
|
+
"internalType": "UD60x18"
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"name": "oracleNodeId",
|
|
183
|
+
"type": "bytes32",
|
|
184
|
+
"internalType": "bytes32"
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"name": "mtmWindow",
|
|
188
|
+
"type": "uint256",
|
|
189
|
+
"internalType": "uint256"
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"name": "dutchConfig",
|
|
193
|
+
"type": "tuple",
|
|
194
|
+
"internalType": "struct DutchConfiguration",
|
|
195
|
+
"components": [
|
|
196
|
+
{
|
|
197
|
+
"name": "lambda",
|
|
198
|
+
"type": "uint256",
|
|
199
|
+
"internalType": "UD60x18"
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"name": "minBase",
|
|
203
|
+
"type": "uint256",
|
|
204
|
+
"internalType": "UD60x18"
|
|
205
|
+
}
|
|
206
|
+
]
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"name": "slippageParams",
|
|
210
|
+
"type": "tuple",
|
|
211
|
+
"internalType": "struct SlippageParams",
|
|
212
|
+
"components": [
|
|
213
|
+
{
|
|
214
|
+
"name": "phi",
|
|
215
|
+
"type": "uint256",
|
|
216
|
+
"internalType": "UD60x18"
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"name": "beta",
|
|
220
|
+
"type": "uint256",
|
|
221
|
+
"internalType": "UD60x18"
|
|
222
|
+
}
|
|
223
|
+
]
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
"name": "minimumOrderBase",
|
|
227
|
+
"type": "uint256",
|
|
228
|
+
"internalType": "UD60x18"
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
"name": "baseSpacing",
|
|
232
|
+
"type": "uint256",
|
|
233
|
+
"internalType": "UD60x18"
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
"name": "priceSpacing",
|
|
237
|
+
"type": "uint256",
|
|
238
|
+
"internalType": "UD60x18"
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
"name": "depthFactor",
|
|
242
|
+
"type": "uint256",
|
|
243
|
+
"internalType": "UD60x18"
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
"name": "maxExposureFactor",
|
|
247
|
+
"type": "uint256",
|
|
248
|
+
"internalType": "UD60x18"
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
"name": "maxPSlippage",
|
|
252
|
+
"type": "uint256",
|
|
253
|
+
"internalType": "UD60x18"
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
"name": "marketOrderMaxStaleDuration",
|
|
257
|
+
"type": "uint256",
|
|
258
|
+
"internalType": "uint256"
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
"name": "priceSpread",
|
|
262
|
+
"type": "uint256",
|
|
263
|
+
"internalType": "UD60x18"
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
"name": "volatilityIndexMultiplier",
|
|
267
|
+
"type": "uint256",
|
|
268
|
+
"internalType": "UD60x18"
|
|
269
|
+
}
|
|
270
|
+
]
|
|
271
|
+
}
|
|
272
|
+
],
|
|
273
|
+
"outputs": [],
|
|
274
|
+
"stateMutability": "nonpayable"
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
"type": "function",
|
|
278
|
+
"name": "setMarketConfigurationDepth",
|
|
279
|
+
"inputs": [
|
|
280
|
+
{
|
|
281
|
+
"name": "marketId",
|
|
282
|
+
"type": "uint128",
|
|
283
|
+
"internalType": "uint128"
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
"name": "depthFactor",
|
|
287
|
+
"type": "uint256",
|
|
288
|
+
"internalType": "UD60x18"
|
|
289
|
+
}
|
|
290
|
+
],
|
|
291
|
+
"outputs": [],
|
|
292
|
+
"stateMutability": "nonpayable"
|
|
293
|
+
}
|
|
294
|
+
]
|
|
295
|
+
}
|
|
@@ -14,7 +14,7 @@ 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.OrdersGatewayAbi = exports.Socket_VaultWithPayloadAbi = exports.PeripheryAbi = exports.OracleAdaptersAbi = exports.MulticallAbi = exports.ErrorsAbi = exports.CoreAbi = void 0;
|
|
17
|
+
exports.PassivePerpAbi = exports.OrdersGatewayAbi = exports.Socket_VaultWithPayloadAbi = exports.PeripheryAbi = exports.OracleAdaptersAbi = exports.MulticallAbi = exports.ErrorsAbi = 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; } });
|
|
@@ -30,6 +30,8 @@ var VaultWithPayload_json_1 = require("./abis/socket/VaultWithPayload.json");
|
|
|
30
30
|
Object.defineProperty(exports, "Socket_VaultWithPayloadAbi", { enumerable: true, get: function () { return VaultWithPayload_json_1.abi; } });
|
|
31
31
|
var OrdersGateway_json_1 = require("./abis/OrdersGateway.json");
|
|
32
32
|
Object.defineProperty(exports, "OrdersGatewayAbi", { enumerable: true, get: function () { return OrdersGateway_json_1.abi; } });
|
|
33
|
+
var PassivePerpProxy_json_1 = require("./abis/PassivePerpProxy.json");
|
|
34
|
+
Object.defineProperty(exports, "PassivePerpAbi", { enumerable: true, get: function () { return PassivePerpProxy_json_1.abi; } });
|
|
33
35
|
__exportStar(require("./contractAddresses"), exports);
|
|
34
36
|
__exportStar(require("./routerCommands"), exports);
|
|
35
37
|
__exportStar(require("./sign"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"/","sources":["transactions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,wDAAuD;AAA9C,yGAAA,GAAG,OAAW;AACvB,kDAAsD;AAA7C,wGAAA,GAAG,OAAa;AACzB,sEAAmE;AAA1D,qHAAA,GAAG,OAAgB;AAC5B,4EAA2E;AAAlE,6HAAA,GAAG,OAAqB;AACjC,wDAA4D;AAAnD,8GAAA,GAAG,OAAgB;AAC5B,6EAAwF;AAA/E,mIAAA,GAAG,OAA8B;AAC1C,gEAAoE;AAA3D,sHAAA,GAAG,OAAoB;AAChC,sDAAoC;AACpC,mDAAiC;AACjC,yCAAuB;AACvB,0CAAwB;AACxB,8CAA4B;AAC5B,2CAAyB;AACzB,uDAAqC;AACrC,gDAA8B;AAC9B,qDAAmC;AACnC,wDAAsC","sourcesContent":["export * from './action';\nexport { abi as CoreAbi } from './abis/CoreProxy.json';\nexport { abi as ErrorsAbi } from './abis/Errors.json';\nexport { abi as MulticallAbi } from './abis/CustomMulticall3.json';\nexport { abi as OracleAdaptersAbi } from './abis/OracleAdaptersProxy.json';\nexport { abi as PeripheryAbi } from './abis/Periphery.json';\nexport { abi as Socket_VaultWithPayloadAbi } from './abis/socket/VaultWithPayload.json';\nexport { abi as OrdersGatewayAbi } from './abis/OrdersGateway.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';\nexport * from './buildMulticallTx';\nexport * from './encodeStorkUpdateTx';\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"/","sources":["transactions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,wDAAuD;AAA9C,yGAAA,GAAG,OAAW;AACvB,kDAAsD;AAA7C,wGAAA,GAAG,OAAa;AACzB,sEAAmE;AAA1D,qHAAA,GAAG,OAAgB;AAC5B,4EAA2E;AAAlE,6HAAA,GAAG,OAAqB;AACjC,wDAA4D;AAAnD,8GAAA,GAAG,OAAgB;AAC5B,6EAAwF;AAA/E,mIAAA,GAAG,OAA8B;AAC1C,gEAAoE;AAA3D,sHAAA,GAAG,OAAoB;AAChC,sEAAqE;AAA5D,uHAAA,GAAG,OAAkB;AAC9B,sDAAoC;AACpC,mDAAiC;AACjC,yCAAuB;AACvB,0CAAwB;AACxB,8CAA4B;AAC5B,2CAAyB;AACzB,uDAAqC;AACrC,gDAA8B;AAC9B,qDAAmC;AACnC,wDAAsC","sourcesContent":["export * from './action';\nexport { abi as CoreAbi } from './abis/CoreProxy.json';\nexport { abi as ErrorsAbi } from './abis/Errors.json';\nexport { abi as MulticallAbi } from './abis/CustomMulticall3.json';\nexport { abi as OracleAdaptersAbi } from './abis/OracleAdaptersProxy.json';\nexport { abi as PeripheryAbi } from './abis/Periphery.json';\nexport { abi as Socket_VaultWithPayloadAbi } from './abis/socket/VaultWithPayload.json';\nexport { abi as OrdersGatewayAbi } from './abis/OrdersGateway.json';\nexport { abi as PassivePerpAbi } from './abis/PassivePerpProxy.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';\nexport * from './buildMulticallTx';\nexport * from './encodeStorkUpdateTx';\n"]}
|
|
@@ -6,6 +6,7 @@ export { abi as OracleAdaptersAbi } from './abis/OracleAdaptersProxy.json';
|
|
|
6
6
|
export { abi as PeripheryAbi } from './abis/Periphery.json';
|
|
7
7
|
export { abi as Socket_VaultWithPayloadAbi } from './abis/socket/VaultWithPayload.json';
|
|
8
8
|
export { abi as OrdersGatewayAbi } from './abis/OrdersGateway.json';
|
|
9
|
+
export { abi as PassivePerpAbi } from './abis/PassivePerpProxy.json';
|
|
9
10
|
export * from './contractAddresses';
|
|
10
11
|
export * from './routerCommands';
|
|
11
12
|
export * from './sign';
|
|
@@ -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,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,GAAG,IAAI,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,GAAG,IAAI,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AAC3E,OAAO,EAAE,GAAG,IAAI,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,GAAG,IAAI,0BAA0B,EAAE,MAAM,qCAAqC,CAAC;AACxF,OAAO,EAAE,GAAG,IAAI,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AACpE,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;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,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,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,GAAG,IAAI,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,GAAG,IAAI,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AAC3E,OAAO,EAAE,GAAG,IAAI,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,GAAG,IAAI,0BAA0B,EAAE,MAAM,qCAAqC,CAAC;AACxF,OAAO,EAAE,GAAG,IAAI,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,GAAG,IAAI,cAAc,EAAE,MAAM,8BAA8B,CAAC;AACrE,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;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reyaxyz/common",
|
|
3
|
-
"version": "0.330.
|
|
3
|
+
"version": "0.330.2",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"generate:coverage-badges": "npx istanbul-badges-readme --silent"
|
|
45
45
|
},
|
|
46
46
|
"packageManager": "pnpm@8.3.1",
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "8ed4e282f479d80bb791fca2b28b1699eaefb0ee"
|
|
48
48
|
}
|
|
@@ -0,0 +1,295 @@
|
|
|
1
|
+
{
|
|
2
|
+
"abi": [
|
|
3
|
+
{
|
|
4
|
+
"type": "function",
|
|
5
|
+
"name": "getPoolMaxExposures",
|
|
6
|
+
"inputs": [
|
|
7
|
+
{
|
|
8
|
+
"name": "marketId",
|
|
9
|
+
"type": "uint128",
|
|
10
|
+
"internalType": "uint128"
|
|
11
|
+
}
|
|
12
|
+
],
|
|
13
|
+
"outputs": [
|
|
14
|
+
{
|
|
15
|
+
"name": "maxShortExposure",
|
|
16
|
+
"type": "uint256",
|
|
17
|
+
"internalType": "UD60x18"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"name": "maxLongExposure",
|
|
21
|
+
"type": "uint256",
|
|
22
|
+
"internalType": "UD60x18"
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
"stateMutability": "view"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"type": "function",
|
|
29
|
+
"name": "getMarketConfiguration",
|
|
30
|
+
"inputs": [
|
|
31
|
+
{
|
|
32
|
+
"name": "marketId",
|
|
33
|
+
"type": "uint128",
|
|
34
|
+
"internalType": "uint128"
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
"outputs": [
|
|
38
|
+
{
|
|
39
|
+
"name": "config",
|
|
40
|
+
"type": "tuple",
|
|
41
|
+
"internalType": "struct MarketConfigurationData",
|
|
42
|
+
"components": [
|
|
43
|
+
{
|
|
44
|
+
"name": "riskMatrixIndex",
|
|
45
|
+
"type": "uint256",
|
|
46
|
+
"internalType": "uint256"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"name": "maxOpenBase",
|
|
50
|
+
"type": "uint256",
|
|
51
|
+
"internalType": "UD60x18"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"name": "velocityMultiplier",
|
|
55
|
+
"type": "uint256",
|
|
56
|
+
"internalType": "UD60x18"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"name": "oracleNodeId",
|
|
60
|
+
"type": "bytes32",
|
|
61
|
+
"internalType": "bytes32"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"name": "mtmWindow",
|
|
65
|
+
"type": "uint256",
|
|
66
|
+
"internalType": "uint256"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"name": "dutchConfig",
|
|
70
|
+
"type": "tuple",
|
|
71
|
+
"internalType": "struct DutchConfiguration",
|
|
72
|
+
"components": [
|
|
73
|
+
{
|
|
74
|
+
"name": "lambda",
|
|
75
|
+
"type": "uint256",
|
|
76
|
+
"internalType": "UD60x18"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"name": "minBase",
|
|
80
|
+
"type": "uint256",
|
|
81
|
+
"internalType": "UD60x18"
|
|
82
|
+
}
|
|
83
|
+
]
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"name": "slippageParams",
|
|
87
|
+
"type": "tuple",
|
|
88
|
+
"internalType": "struct SlippageParams",
|
|
89
|
+
"components": [
|
|
90
|
+
{
|
|
91
|
+
"name": "phi",
|
|
92
|
+
"type": "uint256",
|
|
93
|
+
"internalType": "UD60x18"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"name": "beta",
|
|
97
|
+
"type": "uint256",
|
|
98
|
+
"internalType": "UD60x18"
|
|
99
|
+
}
|
|
100
|
+
]
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"name": "minimumOrderBase",
|
|
104
|
+
"type": "uint256",
|
|
105
|
+
"internalType": "UD60x18"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"name": "baseSpacing",
|
|
109
|
+
"type": "uint256",
|
|
110
|
+
"internalType": "UD60x18"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"name": "priceSpacing",
|
|
114
|
+
"type": "uint256",
|
|
115
|
+
"internalType": "UD60x18"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"name": "depthFactor",
|
|
119
|
+
"type": "uint256",
|
|
120
|
+
"internalType": "UD60x18"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"name": "maxExposureFactor",
|
|
124
|
+
"type": "uint256",
|
|
125
|
+
"internalType": "UD60x18"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"name": "maxPSlippage",
|
|
129
|
+
"type": "uint256",
|
|
130
|
+
"internalType": "UD60x18"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"name": "marketOrderMaxStaleDuration",
|
|
134
|
+
"type": "uint256",
|
|
135
|
+
"internalType": "uint256"
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"name": "priceSpread",
|
|
139
|
+
"type": "uint256",
|
|
140
|
+
"internalType": "UD60x18"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"name": "volatilityIndexMultiplier",
|
|
144
|
+
"type": "uint256",
|
|
145
|
+
"internalType": "UD60x18"
|
|
146
|
+
}
|
|
147
|
+
]
|
|
148
|
+
}
|
|
149
|
+
],
|
|
150
|
+
"stateMutability": "view"
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"type": "function",
|
|
154
|
+
"name": "setMarketConfiguration",
|
|
155
|
+
"inputs": [
|
|
156
|
+
{
|
|
157
|
+
"name": "marketId",
|
|
158
|
+
"type": "uint128",
|
|
159
|
+
"internalType": "uint128"
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"name": "config",
|
|
163
|
+
"type": "tuple",
|
|
164
|
+
"internalType": "struct MarketConfigurationData",
|
|
165
|
+
"components": [
|
|
166
|
+
{
|
|
167
|
+
"name": "riskMatrixIndex",
|
|
168
|
+
"type": "uint256",
|
|
169
|
+
"internalType": "uint256"
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"name": "maxOpenBase",
|
|
173
|
+
"type": "uint256",
|
|
174
|
+
"internalType": "UD60x18"
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"name": "velocityMultiplier",
|
|
178
|
+
"type": "uint256",
|
|
179
|
+
"internalType": "UD60x18"
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"name": "oracleNodeId",
|
|
183
|
+
"type": "bytes32",
|
|
184
|
+
"internalType": "bytes32"
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"name": "mtmWindow",
|
|
188
|
+
"type": "uint256",
|
|
189
|
+
"internalType": "uint256"
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"name": "dutchConfig",
|
|
193
|
+
"type": "tuple",
|
|
194
|
+
"internalType": "struct DutchConfiguration",
|
|
195
|
+
"components": [
|
|
196
|
+
{
|
|
197
|
+
"name": "lambda",
|
|
198
|
+
"type": "uint256",
|
|
199
|
+
"internalType": "UD60x18"
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"name": "minBase",
|
|
203
|
+
"type": "uint256",
|
|
204
|
+
"internalType": "UD60x18"
|
|
205
|
+
}
|
|
206
|
+
]
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"name": "slippageParams",
|
|
210
|
+
"type": "tuple",
|
|
211
|
+
"internalType": "struct SlippageParams",
|
|
212
|
+
"components": [
|
|
213
|
+
{
|
|
214
|
+
"name": "phi",
|
|
215
|
+
"type": "uint256",
|
|
216
|
+
"internalType": "UD60x18"
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"name": "beta",
|
|
220
|
+
"type": "uint256",
|
|
221
|
+
"internalType": "UD60x18"
|
|
222
|
+
}
|
|
223
|
+
]
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
"name": "minimumOrderBase",
|
|
227
|
+
"type": "uint256",
|
|
228
|
+
"internalType": "UD60x18"
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
"name": "baseSpacing",
|
|
232
|
+
"type": "uint256",
|
|
233
|
+
"internalType": "UD60x18"
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
"name": "priceSpacing",
|
|
237
|
+
"type": "uint256",
|
|
238
|
+
"internalType": "UD60x18"
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
"name": "depthFactor",
|
|
242
|
+
"type": "uint256",
|
|
243
|
+
"internalType": "UD60x18"
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
"name": "maxExposureFactor",
|
|
247
|
+
"type": "uint256",
|
|
248
|
+
"internalType": "UD60x18"
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
"name": "maxPSlippage",
|
|
252
|
+
"type": "uint256",
|
|
253
|
+
"internalType": "UD60x18"
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
"name": "marketOrderMaxStaleDuration",
|
|
257
|
+
"type": "uint256",
|
|
258
|
+
"internalType": "uint256"
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
"name": "priceSpread",
|
|
262
|
+
"type": "uint256",
|
|
263
|
+
"internalType": "UD60x18"
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
"name": "volatilityIndexMultiplier",
|
|
267
|
+
"type": "uint256",
|
|
268
|
+
"internalType": "UD60x18"
|
|
269
|
+
}
|
|
270
|
+
]
|
|
271
|
+
}
|
|
272
|
+
],
|
|
273
|
+
"outputs": [],
|
|
274
|
+
"stateMutability": "nonpayable"
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
"type": "function",
|
|
278
|
+
"name": "setMarketConfigurationDepth",
|
|
279
|
+
"inputs": [
|
|
280
|
+
{
|
|
281
|
+
"name": "marketId",
|
|
282
|
+
"type": "uint128",
|
|
283
|
+
"internalType": "uint128"
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
"name": "depthFactor",
|
|
287
|
+
"type": "uint256",
|
|
288
|
+
"internalType": "UD60x18"
|
|
289
|
+
}
|
|
290
|
+
],
|
|
291
|
+
"outputs": [],
|
|
292
|
+
"stateMutability": "nonpayable"
|
|
293
|
+
}
|
|
294
|
+
]
|
|
295
|
+
}
|
|
@@ -6,6 +6,7 @@ export { abi as OracleAdaptersAbi } from './abis/OracleAdaptersProxy.json';
|
|
|
6
6
|
export { abi as PeripheryAbi } from './abis/Periphery.json';
|
|
7
7
|
export { abi as Socket_VaultWithPayloadAbi } from './abis/socket/VaultWithPayload.json';
|
|
8
8
|
export { abi as OrdersGatewayAbi } from './abis/OrdersGateway.json';
|
|
9
|
+
export { abi as PassivePerpAbi } from './abis/PassivePerpProxy.json';
|
|
9
10
|
export * from './contractAddresses';
|
|
10
11
|
export * from './routerCommands';
|
|
11
12
|
export * from './sign';
|