@nexusmutual/sdk 0.2.32 → 0.3.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/dist/data/abis/Cover.json +13 -0
- package/dist/data/abis/CoverBroker.json +338 -0
- package/dist/data/abis/ERC20.json +58 -19
- package/dist/data/abis/MemberRoles.json +19 -0
- package/dist/data/abis/SwapOperator.json +228 -13
- package/dist/data/addresses.json +2 -1
- package/dist/data/products.json +4 -4
- package/dist/index.d.mts +36182 -40
- package/dist/index.d.ts +36182 -40
- package/dist/index.js +389 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +401 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +12 -2
|
@@ -40,6 +40,221 @@
|
|
|
40
40
|
"stateMutability": "nonpayable",
|
|
41
41
|
"type": "constructor"
|
|
42
42
|
},
|
|
43
|
+
{
|
|
44
|
+
"inputs": [
|
|
45
|
+
{
|
|
46
|
+
"internalType": "uint256",
|
|
47
|
+
"name": "feeInEth",
|
|
48
|
+
"type": "uint256"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"internalType": "uint256",
|
|
52
|
+
"name": "maxFee",
|
|
53
|
+
"type": "uint256"
|
|
54
|
+
}
|
|
55
|
+
],
|
|
56
|
+
"name": "AboveMaxFee",
|
|
57
|
+
"type": "error"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"inputs": [
|
|
61
|
+
{
|
|
62
|
+
"internalType": "uint256",
|
|
63
|
+
"name": "maxValidTo",
|
|
64
|
+
"type": "uint256"
|
|
65
|
+
}
|
|
66
|
+
],
|
|
67
|
+
"name": "AboveMaxValidTo",
|
|
68
|
+
"type": "error"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"inputs": [
|
|
72
|
+
{
|
|
73
|
+
"internalType": "uint256",
|
|
74
|
+
"name": "amountOut",
|
|
75
|
+
"type": "uint256"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"internalType": "uint256",
|
|
79
|
+
"name": "minAmount",
|
|
80
|
+
"type": "uint256"
|
|
81
|
+
}
|
|
82
|
+
],
|
|
83
|
+
"name": "AmountOutTooLow",
|
|
84
|
+
"type": "error"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"inputs": [
|
|
88
|
+
{
|
|
89
|
+
"internalType": "uint256",
|
|
90
|
+
"name": "minValidTo",
|
|
91
|
+
"type": "uint256"
|
|
92
|
+
}
|
|
93
|
+
],
|
|
94
|
+
"name": "BelowMinValidTo",
|
|
95
|
+
"type": "error"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"inputs": [
|
|
99
|
+
{
|
|
100
|
+
"internalType": "uint256",
|
|
101
|
+
"name": "minValidSwapTime",
|
|
102
|
+
"type": "uint256"
|
|
103
|
+
}
|
|
104
|
+
],
|
|
105
|
+
"name": "InsufficientTimeBetweenSwaps",
|
|
106
|
+
"type": "error"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"inputs": [
|
|
110
|
+
{
|
|
111
|
+
"internalType": "uint256",
|
|
112
|
+
"name": "tokenBalance",
|
|
113
|
+
"type": "uint256"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"internalType": "uint256",
|
|
117
|
+
"name": "limit",
|
|
118
|
+
"type": "uint256"
|
|
119
|
+
}
|
|
120
|
+
],
|
|
121
|
+
"name": "InvalidBalance",
|
|
122
|
+
"type": "error"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"inputs": [
|
|
126
|
+
{
|
|
127
|
+
"internalType": "address",
|
|
128
|
+
"name": "invalidAsset",
|
|
129
|
+
"type": "address"
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"internalType": "address",
|
|
133
|
+
"name": "validAsset",
|
|
134
|
+
"type": "address"
|
|
135
|
+
}
|
|
136
|
+
],
|
|
137
|
+
"name": "InvalidDenominationAsset",
|
|
138
|
+
"type": "error"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"inputs": [
|
|
142
|
+
{
|
|
143
|
+
"internalType": "uint256",
|
|
144
|
+
"name": "postSwapBalance",
|
|
145
|
+
"type": "uint256"
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"internalType": "uint256",
|
|
149
|
+
"name": "limit",
|
|
150
|
+
"type": "uint256"
|
|
151
|
+
}
|
|
152
|
+
],
|
|
153
|
+
"name": "InvalidPostSwapBalance",
|
|
154
|
+
"type": "error"
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"inputs": [
|
|
158
|
+
{
|
|
159
|
+
"internalType": "address",
|
|
160
|
+
"name": "validReceiver",
|
|
161
|
+
"type": "address"
|
|
162
|
+
}
|
|
163
|
+
],
|
|
164
|
+
"name": "InvalidReceiver",
|
|
165
|
+
"type": "error"
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"inputs": [
|
|
169
|
+
{
|
|
170
|
+
"internalType": "string",
|
|
171
|
+
"name": "token",
|
|
172
|
+
"type": "string"
|
|
173
|
+
}
|
|
174
|
+
],
|
|
175
|
+
"name": "InvalidTokenAddress",
|
|
176
|
+
"type": "error"
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"inputs": [],
|
|
180
|
+
"name": "NoOrderInPlace",
|
|
181
|
+
"type": "error"
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"inputs": [],
|
|
185
|
+
"name": "OnlyController",
|
|
186
|
+
"type": "error"
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"inputs": [
|
|
190
|
+
{
|
|
191
|
+
"internalType": "bytes",
|
|
192
|
+
"name": "currentOrderUID",
|
|
193
|
+
"type": "bytes"
|
|
194
|
+
}
|
|
195
|
+
],
|
|
196
|
+
"name": "OrderInProgress",
|
|
197
|
+
"type": "error"
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"inputs": [
|
|
201
|
+
{
|
|
202
|
+
"internalType": "bytes",
|
|
203
|
+
"name": "providedOrderUID",
|
|
204
|
+
"type": "bytes"
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"internalType": "bytes",
|
|
208
|
+
"name": "expectedOrderUID",
|
|
209
|
+
"type": "bytes"
|
|
210
|
+
}
|
|
211
|
+
],
|
|
212
|
+
"name": "OrderUidMismatch",
|
|
213
|
+
"type": "error"
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
"inputs": [
|
|
217
|
+
{
|
|
218
|
+
"internalType": "address",
|
|
219
|
+
"name": "token",
|
|
220
|
+
"type": "address"
|
|
221
|
+
}
|
|
222
|
+
],
|
|
223
|
+
"name": "TokenDisabled",
|
|
224
|
+
"type": "error"
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
"inputs": [
|
|
228
|
+
{
|
|
229
|
+
"internalType": "address",
|
|
230
|
+
"name": "to",
|
|
231
|
+
"type": "address"
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
"internalType": "uint256",
|
|
235
|
+
"name": "value",
|
|
236
|
+
"type": "uint256"
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
"internalType": "address",
|
|
240
|
+
"name": "token",
|
|
241
|
+
"type": "address"
|
|
242
|
+
}
|
|
243
|
+
],
|
|
244
|
+
"name": "TransferFailed",
|
|
245
|
+
"type": "error"
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
"inputs": [
|
|
249
|
+
{
|
|
250
|
+
"internalType": "string",
|
|
251
|
+
"name": "kind",
|
|
252
|
+
"type": "string"
|
|
253
|
+
}
|
|
254
|
+
],
|
|
255
|
+
"name": "UnsupportedTokenBalance",
|
|
256
|
+
"type": "error"
|
|
257
|
+
},
|
|
43
258
|
{
|
|
44
259
|
"anonymous": false,
|
|
45
260
|
"inputs": [
|
|
@@ -240,6 +455,19 @@
|
|
|
240
455
|
"stateMutability": "view",
|
|
241
456
|
"type": "function"
|
|
242
457
|
},
|
|
458
|
+
{
|
|
459
|
+
"inputs": [],
|
|
460
|
+
"name": "MAX_FEE",
|
|
461
|
+
"outputs": [
|
|
462
|
+
{
|
|
463
|
+
"internalType": "uint256",
|
|
464
|
+
"name": "",
|
|
465
|
+
"type": "uint256"
|
|
466
|
+
}
|
|
467
|
+
],
|
|
468
|
+
"stateMutability": "view",
|
|
469
|
+
"type": "function"
|
|
470
|
+
},
|
|
243
471
|
{
|
|
244
472
|
"inputs": [],
|
|
245
473
|
"name": "MAX_SLIPPAGE_DENOMINATOR",
|
|
@@ -620,19 +848,6 @@
|
|
|
620
848
|
"stateMutability": "view",
|
|
621
849
|
"type": "function"
|
|
622
850
|
},
|
|
623
|
-
{
|
|
624
|
-
"inputs": [],
|
|
625
|
-
"name": "maxFee",
|
|
626
|
-
"outputs": [
|
|
627
|
-
{
|
|
628
|
-
"internalType": "uint256",
|
|
629
|
-
"name": "",
|
|
630
|
-
"type": "uint256"
|
|
631
|
-
}
|
|
632
|
-
],
|
|
633
|
-
"stateMutability": "view",
|
|
634
|
-
"type": "function"
|
|
635
|
-
},
|
|
636
851
|
{
|
|
637
852
|
"inputs": [],
|
|
638
853
|
"name": "minPoolEth",
|
package/dist/data/addresses.json
CHANGED
|
@@ -34,5 +34,6 @@
|
|
|
34
34
|
"SwapOperator": "0xcafea5C050E74a21C11Af78C927e17853153097D",
|
|
35
35
|
"TokenController": "0x5407381b6c251cFd498ccD4A1d877739CB7960B8",
|
|
36
36
|
"wNXM": "0x0d438F3b5175Bebc262bF23753C1E53d03432bDE",
|
|
37
|
-
"YieldTokenIncidents": "0xcafeac831dC5ca0D7ef467953b7822D2f44C8f83"
|
|
37
|
+
"YieldTokenIncidents": "0xcafeac831dC5ca0D7ef467953b7822D2f44C8f83",
|
|
38
|
+
"CoverBroker": "0x0000cbD7a26f72Ff222bf5f136901D224b08BE4E"
|
|
38
39
|
}
|
package/dist/data/products.json
CHANGED
|
@@ -1360,7 +1360,7 @@
|
|
|
1360
1360
|
"DAI"
|
|
1361
1361
|
],
|
|
1362
1362
|
"isPrivate": true,
|
|
1363
|
-
"timestamp":
|
|
1363
|
+
"timestamp": 1704981731
|
|
1364
1364
|
},
|
|
1365
1365
|
{
|
|
1366
1366
|
"id": 84,
|
|
@@ -1422,7 +1422,7 @@
|
|
|
1422
1422
|
"DAI"
|
|
1423
1423
|
],
|
|
1424
1424
|
"isPrivate": true,
|
|
1425
|
-
"timestamp":
|
|
1425
|
+
"timestamp": 1704981731
|
|
1426
1426
|
},
|
|
1427
1427
|
{
|
|
1428
1428
|
"id": 88,
|
|
@@ -1439,7 +1439,7 @@
|
|
|
1439
1439
|
"DAI"
|
|
1440
1440
|
],
|
|
1441
1441
|
"isPrivate": true,
|
|
1442
|
-
"timestamp":
|
|
1442
|
+
"timestamp": 1684312727
|
|
1443
1443
|
},
|
|
1444
1444
|
{
|
|
1445
1445
|
"id": 89,
|
|
@@ -1683,7 +1683,7 @@
|
|
|
1683
1683
|
"DAI"
|
|
1684
1684
|
],
|
|
1685
1685
|
"isPrivate": true,
|
|
1686
|
-
"timestamp":
|
|
1686
|
+
"timestamp": 1689782903
|
|
1687
1687
|
},
|
|
1688
1688
|
{
|
|
1689
1689
|
"id": 105,
|