@ssv-labs/ssv-sdk 0.1.3 → 1.0.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/README.html +4 -7
- package/README.md +56 -29
- package/dist/{KeyShares-B_4l2THg.js → KeyShares-Bk9uzOlK.js} +194 -51
- package/dist/{KeyShares-ClzHwMUy.mjs → KeyShares-Dlp4Pa3b.mjs} +198 -55
- package/dist/abi/mainnet/v4/getter.d.ts +699 -74
- package/dist/abi/mainnet/v4/setter.d.ts +939 -59
- package/dist/api/subgraph/index.d.ts +50 -48
- package/dist/config/create.d.ts +2 -2
- package/dist/config/globals.d.ts +3 -0
- package/dist/{globals-CDOcDUnk.mjs → config-BdEJjnYA.mjs} +107 -79
- package/dist/{globals-DsaKgq3v.js → config-ClGS9Tic.js} +73 -45
- package/dist/contract-interactions/create.d.ts +1 -1
- package/dist/contract-interactions/types.d.ts +9 -3
- package/dist/graphql/graphql.d.ts +4799 -921
- package/dist/keys.js +1 -1
- package/dist/keys.mjs +5 -5
- package/dist/libs/api/index.d.ts +1 -0
- package/dist/libs/cluster/index.d.ts +3 -1
- package/dist/libs/cluster/methods/deposit.d.ts +150 -4
- package/dist/libs/cluster/methods/exit-validators.d.ts +149 -0
- package/dist/libs/cluster/methods/index.d.ts +3 -1
- package/dist/libs/cluster/methods/liquidate-cluster.d.ts +149 -0
- package/dist/libs/cluster/methods/liquidate-ssv.d.ts +430 -0
- package/dist/libs/cluster/methods/migrate-cluster-to-eth.d.ts +431 -0
- package/dist/libs/cluster/methods/reactivate-cluster.d.ts +149 -0
- package/dist/libs/cluster/methods/register-validators.d.ts +2222 -309
- package/dist/libs/cluster/methods/remove-validators.d.ts +149 -0
- package/dist/libs/cluster/methods/set-fee-recipient.d.ts +149 -0
- package/dist/libs/cluster/methods/withdraw.d.ts +149 -0
- package/dist/libs/dao/index.d.ts +8 -0
- package/dist/libs/dao/methods/commit-root.d.ts +432 -0
- package/dist/libs/dao/methods/index.d.ts +3 -0
- package/dist/libs/dao/methods/update-network-fee-ssv.d.ts +430 -0
- package/dist/libs/dao/methods/withdraw-network-ssv-earnings.d.ts +430 -0
- package/dist/libs/operator/index.d.ts +1525 -32
- package/dist/libs/operator/methods.d.ts +1732 -3
- package/dist/libs/ssv-keys/Encryption/__test__/RsaKeys.d.ts +1 -1
- package/dist/libs/ssv-keys/KeyShares/KeySharesItem.d.ts +1 -1
- package/dist/libs/ssv-keys/SSVKeys.d.ts +1 -1
- package/dist/libs/ssv-keys/exceptions/index.d.ts +1 -1
- package/dist/libs/ssv-keys/index.d.ts +1 -1
- package/dist/libs/ssv-keys/interfaces/index.d.ts +2 -2
- package/dist/libs/utils/index.d.ts +8 -4
- package/dist/libs/utils/methods/calc-deposit-from-runway.d.ts +11 -0
- package/dist/libs/utils/methods/get-cluster-balance.d.ts +4 -1
- package/dist/libs/utils/methods/index.d.ts +1 -0
- package/dist/libs/utils/methods/keyshares.d.ts +4 -2
- package/dist/libs/utils/methods/keystores.d.ts +4 -4
- package/dist/libs/utils/methods/write-keyshares-file.d.ts +16 -0
- package/dist/main.d.ts +1 -0
- package/dist/main.js +2970 -733
- package/dist/main.mjs +2961 -746
- package/dist/sdk.d.ts +8 -4
- package/dist/types/contract-interactions.d.ts +11 -0
- package/dist/types/methods.d.ts +4 -3
- package/dist/utils/cluster.d.ts +3 -3
- package/dist/utils/funding.d.ts +29 -0
- package/dist/utils/zod/config.d.ts +1 -1
- package/dist/utils.js +38 -38
- package/dist/utils.mjs +34 -34
- package/package.json +18 -6
|
@@ -41,6 +41,21 @@ export declare const removeValidators: (config: ConfigReturnType, { args: { id,
|
|
|
41
41
|
args: {
|
|
42
42
|
implementation: `0x${string}`;
|
|
43
43
|
};
|
|
44
|
+
} | {
|
|
45
|
+
eventName: "ClusterBalanceUpdated";
|
|
46
|
+
args: {
|
|
47
|
+
owner: `0x${string}`;
|
|
48
|
+
operatorIds: readonly bigint[];
|
|
49
|
+
blockNum: bigint;
|
|
50
|
+
effectiveBalance: number;
|
|
51
|
+
cluster: {
|
|
52
|
+
validatorCount: number;
|
|
53
|
+
networkFeeIndex: bigint;
|
|
54
|
+
index: bigint;
|
|
55
|
+
active: boolean;
|
|
56
|
+
balance: bigint;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
44
59
|
} | {
|
|
45
60
|
eventName: "ClusterDeposited";
|
|
46
61
|
args: {
|
|
@@ -68,6 +83,22 @@ export declare const removeValidators: (config: ConfigReturnType, { args: { id,
|
|
|
68
83
|
balance: bigint;
|
|
69
84
|
};
|
|
70
85
|
};
|
|
86
|
+
} | {
|
|
87
|
+
eventName: "ClusterMigratedToETH";
|
|
88
|
+
args: {
|
|
89
|
+
owner: `0x${string}`;
|
|
90
|
+
operatorIds: readonly bigint[];
|
|
91
|
+
ethDeposited: bigint;
|
|
92
|
+
ssvRefunded: bigint;
|
|
93
|
+
effectiveBalance: number;
|
|
94
|
+
cluster: {
|
|
95
|
+
validatorCount: number;
|
|
96
|
+
networkFeeIndex: bigint;
|
|
97
|
+
index: bigint;
|
|
98
|
+
active: boolean;
|
|
99
|
+
balance: bigint;
|
|
100
|
+
};
|
|
101
|
+
};
|
|
71
102
|
} | {
|
|
72
103
|
eventName: "ClusterReactivated";
|
|
73
104
|
args: {
|
|
@@ -95,11 +126,23 @@ export declare const removeValidators: (config: ConfigReturnType, { args: { id,
|
|
|
95
126
|
balance: bigint;
|
|
96
127
|
};
|
|
97
128
|
};
|
|
129
|
+
} | {
|
|
130
|
+
eventName: "CooldownDurationUpdated";
|
|
131
|
+
args: {
|
|
132
|
+
newCooldownDuration: bigint;
|
|
133
|
+
};
|
|
98
134
|
} | {
|
|
99
135
|
eventName: "DeclareOperatorFeePeriodUpdated";
|
|
100
136
|
args: {
|
|
101
137
|
value: bigint;
|
|
102
138
|
};
|
|
139
|
+
} | {
|
|
140
|
+
eventName: "ERC20Rescued";
|
|
141
|
+
args: {
|
|
142
|
+
token: `0x${string}`;
|
|
143
|
+
to: `0x${string}`;
|
|
144
|
+
amount: bigint;
|
|
145
|
+
};
|
|
103
146
|
} | {
|
|
104
147
|
eventName: "ExecuteOperatorFeePeriodUpdated";
|
|
105
148
|
args: {
|
|
@@ -111,16 +154,42 @@ export declare const removeValidators: (config: ConfigReturnType, { args: { id,
|
|
|
111
154
|
owner: `0x${string}`;
|
|
112
155
|
recipientAddress: `0x${string}`;
|
|
113
156
|
};
|
|
157
|
+
} | {
|
|
158
|
+
eventName: "FeesSynced";
|
|
159
|
+
args: {
|
|
160
|
+
newFeesWei: bigint;
|
|
161
|
+
accEthPerShare: bigint;
|
|
162
|
+
};
|
|
163
|
+
} | {
|
|
164
|
+
eventName: "LiquidationThresholdPeriodSSVUpdated";
|
|
165
|
+
args: {
|
|
166
|
+
value: bigint;
|
|
167
|
+
};
|
|
114
168
|
} | {
|
|
115
169
|
eventName: "LiquidationThresholdPeriodUpdated";
|
|
116
170
|
args: {
|
|
117
171
|
value: bigint;
|
|
118
172
|
};
|
|
173
|
+
} | {
|
|
174
|
+
eventName: "MinBlocksBetweenUpdatesUpdated";
|
|
175
|
+
args: {
|
|
176
|
+
newMinBlocksBetweenUpdates: number;
|
|
177
|
+
};
|
|
178
|
+
} | {
|
|
179
|
+
eventName: "MinimumLiquidationCollateralSSVUpdated";
|
|
180
|
+
args: {
|
|
181
|
+
value: bigint;
|
|
182
|
+
};
|
|
119
183
|
} | {
|
|
120
184
|
eventName: "MinimumLiquidationCollateralUpdated";
|
|
121
185
|
args: {
|
|
122
186
|
value: bigint;
|
|
123
187
|
};
|
|
188
|
+
} | {
|
|
189
|
+
eventName: "MinimumOperatorEthFeeUpdated";
|
|
190
|
+
args: {
|
|
191
|
+
minFee: bigint;
|
|
192
|
+
};
|
|
124
193
|
} | {
|
|
125
194
|
eventName: "ModuleUpgraded";
|
|
126
195
|
args: {
|
|
@@ -139,6 +208,12 @@ export declare const removeValidators: (config: ConfigReturnType, { args: { id,
|
|
|
139
208
|
oldFee: bigint;
|
|
140
209
|
newFee: bigint;
|
|
141
210
|
};
|
|
211
|
+
} | {
|
|
212
|
+
eventName: "NetworkFeeUpdatedSSV";
|
|
213
|
+
args: {
|
|
214
|
+
oldFee: bigint;
|
|
215
|
+
newFee: bigint;
|
|
216
|
+
};
|
|
142
217
|
} | {
|
|
143
218
|
eventName: "OperatorAdded";
|
|
144
219
|
args: {
|
|
@@ -221,6 +296,70 @@ export declare const removeValidators: (config: ConfigReturnType, { args: { id,
|
|
|
221
296
|
operatorId: bigint;
|
|
222
297
|
value: bigint;
|
|
223
298
|
};
|
|
299
|
+
} | {
|
|
300
|
+
eventName: "OperatorWithdrawnSSV";
|
|
301
|
+
args: {
|
|
302
|
+
owner: `0x${string}`;
|
|
303
|
+
operatorId: bigint;
|
|
304
|
+
value: bigint;
|
|
305
|
+
};
|
|
306
|
+
} | {
|
|
307
|
+
eventName: "OracleReplaced";
|
|
308
|
+
args: {
|
|
309
|
+
oracleId: number;
|
|
310
|
+
oldOracle: `0x${string}`;
|
|
311
|
+
newOracle: `0x${string}`;
|
|
312
|
+
};
|
|
313
|
+
} | {
|
|
314
|
+
eventName: "QuorumUpdated";
|
|
315
|
+
args: {
|
|
316
|
+
newQuorum: number;
|
|
317
|
+
};
|
|
318
|
+
} | {
|
|
319
|
+
eventName: "RewardsClaimed";
|
|
320
|
+
args: {
|
|
321
|
+
user: `0x${string}`;
|
|
322
|
+
amount: bigint;
|
|
323
|
+
};
|
|
324
|
+
} | {
|
|
325
|
+
eventName: "RewardsSettled";
|
|
326
|
+
args: {
|
|
327
|
+
user: `0x${string}`;
|
|
328
|
+
pending: bigint;
|
|
329
|
+
accrued: bigint;
|
|
330
|
+
userIndex: bigint;
|
|
331
|
+
};
|
|
332
|
+
} | {
|
|
333
|
+
eventName: "RootCommitted";
|
|
334
|
+
args: {
|
|
335
|
+
merkleRoot: `0x${string}`;
|
|
336
|
+
blockNum: bigint;
|
|
337
|
+
};
|
|
338
|
+
} | {
|
|
339
|
+
eventName: "SSVNetworkUpgradeBlock";
|
|
340
|
+
args: {
|
|
341
|
+
version: string;
|
|
342
|
+
blockNumber: bigint;
|
|
343
|
+
};
|
|
344
|
+
} | {
|
|
345
|
+
eventName: "Staked";
|
|
346
|
+
args: {
|
|
347
|
+
user: `0x${string}`;
|
|
348
|
+
amount: bigint;
|
|
349
|
+
};
|
|
350
|
+
} | {
|
|
351
|
+
eventName: "UnstakeRequested";
|
|
352
|
+
args: {
|
|
353
|
+
user: `0x${string}`;
|
|
354
|
+
amount: bigint;
|
|
355
|
+
unlockTime: bigint;
|
|
356
|
+
};
|
|
357
|
+
} | {
|
|
358
|
+
eventName: "UnstakedWithdrawn";
|
|
359
|
+
args: {
|
|
360
|
+
user: `0x${string}`;
|
|
361
|
+
amount: bigint;
|
|
362
|
+
};
|
|
224
363
|
} | {
|
|
225
364
|
eventName: "ValidatorAdded";
|
|
226
365
|
args: {
|
|
@@ -257,6 +396,16 @@ export declare const removeValidators: (config: ConfigReturnType, { args: { id,
|
|
|
257
396
|
balance: bigint;
|
|
258
397
|
};
|
|
259
398
|
};
|
|
399
|
+
} | {
|
|
400
|
+
eventName: "WeightedRootProposed";
|
|
401
|
+
args: {
|
|
402
|
+
merkleRoot: `0x${string}`;
|
|
403
|
+
blockNum: bigint;
|
|
404
|
+
accumulatedWeight: bigint;
|
|
405
|
+
quorum: bigint;
|
|
406
|
+
oracleId: number;
|
|
407
|
+
oracle: `0x${string}`;
|
|
408
|
+
};
|
|
260
409
|
} | {
|
|
261
410
|
eventName: "OwnershipTransferred";
|
|
262
411
|
args: {
|
|
@@ -40,6 +40,21 @@ export declare const setFeeRecipient: (config: ConfigReturnType, { args: { recip
|
|
|
40
40
|
args: {
|
|
41
41
|
implementation: `0x${string}`;
|
|
42
42
|
};
|
|
43
|
+
} | {
|
|
44
|
+
eventName: "ClusterBalanceUpdated";
|
|
45
|
+
args: {
|
|
46
|
+
owner: `0x${string}`;
|
|
47
|
+
operatorIds: readonly bigint[];
|
|
48
|
+
blockNum: bigint;
|
|
49
|
+
effectiveBalance: number;
|
|
50
|
+
cluster: {
|
|
51
|
+
validatorCount: number;
|
|
52
|
+
networkFeeIndex: bigint;
|
|
53
|
+
index: bigint;
|
|
54
|
+
active: boolean;
|
|
55
|
+
balance: bigint;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
43
58
|
} | {
|
|
44
59
|
eventName: "ClusterDeposited";
|
|
45
60
|
args: {
|
|
@@ -67,6 +82,22 @@ export declare const setFeeRecipient: (config: ConfigReturnType, { args: { recip
|
|
|
67
82
|
balance: bigint;
|
|
68
83
|
};
|
|
69
84
|
};
|
|
85
|
+
} | {
|
|
86
|
+
eventName: "ClusterMigratedToETH";
|
|
87
|
+
args: {
|
|
88
|
+
owner: `0x${string}`;
|
|
89
|
+
operatorIds: readonly bigint[];
|
|
90
|
+
ethDeposited: bigint;
|
|
91
|
+
ssvRefunded: bigint;
|
|
92
|
+
effectiveBalance: number;
|
|
93
|
+
cluster: {
|
|
94
|
+
validatorCount: number;
|
|
95
|
+
networkFeeIndex: bigint;
|
|
96
|
+
index: bigint;
|
|
97
|
+
active: boolean;
|
|
98
|
+
balance: bigint;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
70
101
|
} | {
|
|
71
102
|
eventName: "ClusterReactivated";
|
|
72
103
|
args: {
|
|
@@ -94,11 +125,23 @@ export declare const setFeeRecipient: (config: ConfigReturnType, { args: { recip
|
|
|
94
125
|
balance: bigint;
|
|
95
126
|
};
|
|
96
127
|
};
|
|
128
|
+
} | {
|
|
129
|
+
eventName: "CooldownDurationUpdated";
|
|
130
|
+
args: {
|
|
131
|
+
newCooldownDuration: bigint;
|
|
132
|
+
};
|
|
97
133
|
} | {
|
|
98
134
|
eventName: "DeclareOperatorFeePeriodUpdated";
|
|
99
135
|
args: {
|
|
100
136
|
value: bigint;
|
|
101
137
|
};
|
|
138
|
+
} | {
|
|
139
|
+
eventName: "ERC20Rescued";
|
|
140
|
+
args: {
|
|
141
|
+
token: `0x${string}`;
|
|
142
|
+
to: `0x${string}`;
|
|
143
|
+
amount: bigint;
|
|
144
|
+
};
|
|
102
145
|
} | {
|
|
103
146
|
eventName: "ExecuteOperatorFeePeriodUpdated";
|
|
104
147
|
args: {
|
|
@@ -110,16 +153,42 @@ export declare const setFeeRecipient: (config: ConfigReturnType, { args: { recip
|
|
|
110
153
|
owner: `0x${string}`;
|
|
111
154
|
recipientAddress: `0x${string}`;
|
|
112
155
|
};
|
|
156
|
+
} | {
|
|
157
|
+
eventName: "FeesSynced";
|
|
158
|
+
args: {
|
|
159
|
+
newFeesWei: bigint;
|
|
160
|
+
accEthPerShare: bigint;
|
|
161
|
+
};
|
|
162
|
+
} | {
|
|
163
|
+
eventName: "LiquidationThresholdPeriodSSVUpdated";
|
|
164
|
+
args: {
|
|
165
|
+
value: bigint;
|
|
166
|
+
};
|
|
113
167
|
} | {
|
|
114
168
|
eventName: "LiquidationThresholdPeriodUpdated";
|
|
115
169
|
args: {
|
|
116
170
|
value: bigint;
|
|
117
171
|
};
|
|
172
|
+
} | {
|
|
173
|
+
eventName: "MinBlocksBetweenUpdatesUpdated";
|
|
174
|
+
args: {
|
|
175
|
+
newMinBlocksBetweenUpdates: number;
|
|
176
|
+
};
|
|
177
|
+
} | {
|
|
178
|
+
eventName: "MinimumLiquidationCollateralSSVUpdated";
|
|
179
|
+
args: {
|
|
180
|
+
value: bigint;
|
|
181
|
+
};
|
|
118
182
|
} | {
|
|
119
183
|
eventName: "MinimumLiquidationCollateralUpdated";
|
|
120
184
|
args: {
|
|
121
185
|
value: bigint;
|
|
122
186
|
};
|
|
187
|
+
} | {
|
|
188
|
+
eventName: "MinimumOperatorEthFeeUpdated";
|
|
189
|
+
args: {
|
|
190
|
+
minFee: bigint;
|
|
191
|
+
};
|
|
123
192
|
} | {
|
|
124
193
|
eventName: "ModuleUpgraded";
|
|
125
194
|
args: {
|
|
@@ -138,6 +207,12 @@ export declare const setFeeRecipient: (config: ConfigReturnType, { args: { recip
|
|
|
138
207
|
oldFee: bigint;
|
|
139
208
|
newFee: bigint;
|
|
140
209
|
};
|
|
210
|
+
} | {
|
|
211
|
+
eventName: "NetworkFeeUpdatedSSV";
|
|
212
|
+
args: {
|
|
213
|
+
oldFee: bigint;
|
|
214
|
+
newFee: bigint;
|
|
215
|
+
};
|
|
141
216
|
} | {
|
|
142
217
|
eventName: "OperatorAdded";
|
|
143
218
|
args: {
|
|
@@ -220,6 +295,70 @@ export declare const setFeeRecipient: (config: ConfigReturnType, { args: { recip
|
|
|
220
295
|
operatorId: bigint;
|
|
221
296
|
value: bigint;
|
|
222
297
|
};
|
|
298
|
+
} | {
|
|
299
|
+
eventName: "OperatorWithdrawnSSV";
|
|
300
|
+
args: {
|
|
301
|
+
owner: `0x${string}`;
|
|
302
|
+
operatorId: bigint;
|
|
303
|
+
value: bigint;
|
|
304
|
+
};
|
|
305
|
+
} | {
|
|
306
|
+
eventName: "OracleReplaced";
|
|
307
|
+
args: {
|
|
308
|
+
oracleId: number;
|
|
309
|
+
oldOracle: `0x${string}`;
|
|
310
|
+
newOracle: `0x${string}`;
|
|
311
|
+
};
|
|
312
|
+
} | {
|
|
313
|
+
eventName: "QuorumUpdated";
|
|
314
|
+
args: {
|
|
315
|
+
newQuorum: number;
|
|
316
|
+
};
|
|
317
|
+
} | {
|
|
318
|
+
eventName: "RewardsClaimed";
|
|
319
|
+
args: {
|
|
320
|
+
user: `0x${string}`;
|
|
321
|
+
amount: bigint;
|
|
322
|
+
};
|
|
323
|
+
} | {
|
|
324
|
+
eventName: "RewardsSettled";
|
|
325
|
+
args: {
|
|
326
|
+
user: `0x${string}`;
|
|
327
|
+
pending: bigint;
|
|
328
|
+
accrued: bigint;
|
|
329
|
+
userIndex: bigint;
|
|
330
|
+
};
|
|
331
|
+
} | {
|
|
332
|
+
eventName: "RootCommitted";
|
|
333
|
+
args: {
|
|
334
|
+
merkleRoot: `0x${string}`;
|
|
335
|
+
blockNum: bigint;
|
|
336
|
+
};
|
|
337
|
+
} | {
|
|
338
|
+
eventName: "SSVNetworkUpgradeBlock";
|
|
339
|
+
args: {
|
|
340
|
+
version: string;
|
|
341
|
+
blockNumber: bigint;
|
|
342
|
+
};
|
|
343
|
+
} | {
|
|
344
|
+
eventName: "Staked";
|
|
345
|
+
args: {
|
|
346
|
+
user: `0x${string}`;
|
|
347
|
+
amount: bigint;
|
|
348
|
+
};
|
|
349
|
+
} | {
|
|
350
|
+
eventName: "UnstakeRequested";
|
|
351
|
+
args: {
|
|
352
|
+
user: `0x${string}`;
|
|
353
|
+
amount: bigint;
|
|
354
|
+
unlockTime: bigint;
|
|
355
|
+
};
|
|
356
|
+
} | {
|
|
357
|
+
eventName: "UnstakedWithdrawn";
|
|
358
|
+
args: {
|
|
359
|
+
user: `0x${string}`;
|
|
360
|
+
amount: bigint;
|
|
361
|
+
};
|
|
223
362
|
} | {
|
|
224
363
|
eventName: "ValidatorAdded";
|
|
225
364
|
args: {
|
|
@@ -256,6 +395,16 @@ export declare const setFeeRecipient: (config: ConfigReturnType, { args: { recip
|
|
|
256
395
|
balance: bigint;
|
|
257
396
|
};
|
|
258
397
|
};
|
|
398
|
+
} | {
|
|
399
|
+
eventName: "WeightedRootProposed";
|
|
400
|
+
args: {
|
|
401
|
+
merkleRoot: `0x${string}`;
|
|
402
|
+
blockNum: bigint;
|
|
403
|
+
accumulatedWeight: bigint;
|
|
404
|
+
quorum: bigint;
|
|
405
|
+
oracleId: number;
|
|
406
|
+
oracle: `0x${string}`;
|
|
407
|
+
};
|
|
259
408
|
} | {
|
|
260
409
|
eventName: "OwnershipTransferred";
|
|
261
410
|
args: {
|
|
@@ -40,6 +40,21 @@ export declare const withdraw: (config: ConfigReturnType, { args: { id, amount }
|
|
|
40
40
|
args: {
|
|
41
41
|
implementation: `0x${string}`;
|
|
42
42
|
};
|
|
43
|
+
} | {
|
|
44
|
+
eventName: "ClusterBalanceUpdated";
|
|
45
|
+
args: {
|
|
46
|
+
owner: `0x${string}`;
|
|
47
|
+
operatorIds: readonly bigint[];
|
|
48
|
+
blockNum: bigint;
|
|
49
|
+
effectiveBalance: number;
|
|
50
|
+
cluster: {
|
|
51
|
+
validatorCount: number;
|
|
52
|
+
networkFeeIndex: bigint;
|
|
53
|
+
index: bigint;
|
|
54
|
+
active: boolean;
|
|
55
|
+
balance: bigint;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
43
58
|
} | {
|
|
44
59
|
eventName: "ClusterDeposited";
|
|
45
60
|
args: {
|
|
@@ -67,6 +82,22 @@ export declare const withdraw: (config: ConfigReturnType, { args: { id, amount }
|
|
|
67
82
|
balance: bigint;
|
|
68
83
|
};
|
|
69
84
|
};
|
|
85
|
+
} | {
|
|
86
|
+
eventName: "ClusterMigratedToETH";
|
|
87
|
+
args: {
|
|
88
|
+
owner: `0x${string}`;
|
|
89
|
+
operatorIds: readonly bigint[];
|
|
90
|
+
ethDeposited: bigint;
|
|
91
|
+
ssvRefunded: bigint;
|
|
92
|
+
effectiveBalance: number;
|
|
93
|
+
cluster: {
|
|
94
|
+
validatorCount: number;
|
|
95
|
+
networkFeeIndex: bigint;
|
|
96
|
+
index: bigint;
|
|
97
|
+
active: boolean;
|
|
98
|
+
balance: bigint;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
70
101
|
} | {
|
|
71
102
|
eventName: "ClusterReactivated";
|
|
72
103
|
args: {
|
|
@@ -94,11 +125,23 @@ export declare const withdraw: (config: ConfigReturnType, { args: { id, amount }
|
|
|
94
125
|
balance: bigint;
|
|
95
126
|
};
|
|
96
127
|
};
|
|
128
|
+
} | {
|
|
129
|
+
eventName: "CooldownDurationUpdated";
|
|
130
|
+
args: {
|
|
131
|
+
newCooldownDuration: bigint;
|
|
132
|
+
};
|
|
97
133
|
} | {
|
|
98
134
|
eventName: "DeclareOperatorFeePeriodUpdated";
|
|
99
135
|
args: {
|
|
100
136
|
value: bigint;
|
|
101
137
|
};
|
|
138
|
+
} | {
|
|
139
|
+
eventName: "ERC20Rescued";
|
|
140
|
+
args: {
|
|
141
|
+
token: `0x${string}`;
|
|
142
|
+
to: `0x${string}`;
|
|
143
|
+
amount: bigint;
|
|
144
|
+
};
|
|
102
145
|
} | {
|
|
103
146
|
eventName: "ExecuteOperatorFeePeriodUpdated";
|
|
104
147
|
args: {
|
|
@@ -110,16 +153,42 @@ export declare const withdraw: (config: ConfigReturnType, { args: { id, amount }
|
|
|
110
153
|
owner: `0x${string}`;
|
|
111
154
|
recipientAddress: `0x${string}`;
|
|
112
155
|
};
|
|
156
|
+
} | {
|
|
157
|
+
eventName: "FeesSynced";
|
|
158
|
+
args: {
|
|
159
|
+
newFeesWei: bigint;
|
|
160
|
+
accEthPerShare: bigint;
|
|
161
|
+
};
|
|
162
|
+
} | {
|
|
163
|
+
eventName: "LiquidationThresholdPeriodSSVUpdated";
|
|
164
|
+
args: {
|
|
165
|
+
value: bigint;
|
|
166
|
+
};
|
|
113
167
|
} | {
|
|
114
168
|
eventName: "LiquidationThresholdPeriodUpdated";
|
|
115
169
|
args: {
|
|
116
170
|
value: bigint;
|
|
117
171
|
};
|
|
172
|
+
} | {
|
|
173
|
+
eventName: "MinBlocksBetweenUpdatesUpdated";
|
|
174
|
+
args: {
|
|
175
|
+
newMinBlocksBetweenUpdates: number;
|
|
176
|
+
};
|
|
177
|
+
} | {
|
|
178
|
+
eventName: "MinimumLiquidationCollateralSSVUpdated";
|
|
179
|
+
args: {
|
|
180
|
+
value: bigint;
|
|
181
|
+
};
|
|
118
182
|
} | {
|
|
119
183
|
eventName: "MinimumLiquidationCollateralUpdated";
|
|
120
184
|
args: {
|
|
121
185
|
value: bigint;
|
|
122
186
|
};
|
|
187
|
+
} | {
|
|
188
|
+
eventName: "MinimumOperatorEthFeeUpdated";
|
|
189
|
+
args: {
|
|
190
|
+
minFee: bigint;
|
|
191
|
+
};
|
|
123
192
|
} | {
|
|
124
193
|
eventName: "ModuleUpgraded";
|
|
125
194
|
args: {
|
|
@@ -138,6 +207,12 @@ export declare const withdraw: (config: ConfigReturnType, { args: { id, amount }
|
|
|
138
207
|
oldFee: bigint;
|
|
139
208
|
newFee: bigint;
|
|
140
209
|
};
|
|
210
|
+
} | {
|
|
211
|
+
eventName: "NetworkFeeUpdatedSSV";
|
|
212
|
+
args: {
|
|
213
|
+
oldFee: bigint;
|
|
214
|
+
newFee: bigint;
|
|
215
|
+
};
|
|
141
216
|
} | {
|
|
142
217
|
eventName: "OperatorAdded";
|
|
143
218
|
args: {
|
|
@@ -220,6 +295,70 @@ export declare const withdraw: (config: ConfigReturnType, { args: { id, amount }
|
|
|
220
295
|
operatorId: bigint;
|
|
221
296
|
value: bigint;
|
|
222
297
|
};
|
|
298
|
+
} | {
|
|
299
|
+
eventName: "OperatorWithdrawnSSV";
|
|
300
|
+
args: {
|
|
301
|
+
owner: `0x${string}`;
|
|
302
|
+
operatorId: bigint;
|
|
303
|
+
value: bigint;
|
|
304
|
+
};
|
|
305
|
+
} | {
|
|
306
|
+
eventName: "OracleReplaced";
|
|
307
|
+
args: {
|
|
308
|
+
oracleId: number;
|
|
309
|
+
oldOracle: `0x${string}`;
|
|
310
|
+
newOracle: `0x${string}`;
|
|
311
|
+
};
|
|
312
|
+
} | {
|
|
313
|
+
eventName: "QuorumUpdated";
|
|
314
|
+
args: {
|
|
315
|
+
newQuorum: number;
|
|
316
|
+
};
|
|
317
|
+
} | {
|
|
318
|
+
eventName: "RewardsClaimed";
|
|
319
|
+
args: {
|
|
320
|
+
user: `0x${string}`;
|
|
321
|
+
amount: bigint;
|
|
322
|
+
};
|
|
323
|
+
} | {
|
|
324
|
+
eventName: "RewardsSettled";
|
|
325
|
+
args: {
|
|
326
|
+
user: `0x${string}`;
|
|
327
|
+
pending: bigint;
|
|
328
|
+
accrued: bigint;
|
|
329
|
+
userIndex: bigint;
|
|
330
|
+
};
|
|
331
|
+
} | {
|
|
332
|
+
eventName: "RootCommitted";
|
|
333
|
+
args: {
|
|
334
|
+
merkleRoot: `0x${string}`;
|
|
335
|
+
blockNum: bigint;
|
|
336
|
+
};
|
|
337
|
+
} | {
|
|
338
|
+
eventName: "SSVNetworkUpgradeBlock";
|
|
339
|
+
args: {
|
|
340
|
+
version: string;
|
|
341
|
+
blockNumber: bigint;
|
|
342
|
+
};
|
|
343
|
+
} | {
|
|
344
|
+
eventName: "Staked";
|
|
345
|
+
args: {
|
|
346
|
+
user: `0x${string}`;
|
|
347
|
+
amount: bigint;
|
|
348
|
+
};
|
|
349
|
+
} | {
|
|
350
|
+
eventName: "UnstakeRequested";
|
|
351
|
+
args: {
|
|
352
|
+
user: `0x${string}`;
|
|
353
|
+
amount: bigint;
|
|
354
|
+
unlockTime: bigint;
|
|
355
|
+
};
|
|
356
|
+
} | {
|
|
357
|
+
eventName: "UnstakedWithdrawn";
|
|
358
|
+
args: {
|
|
359
|
+
user: `0x${string}`;
|
|
360
|
+
amount: bigint;
|
|
361
|
+
};
|
|
223
362
|
} | {
|
|
224
363
|
eventName: "ValidatorAdded";
|
|
225
364
|
args: {
|
|
@@ -256,6 +395,16 @@ export declare const withdraw: (config: ConfigReturnType, { args: { id, amount }
|
|
|
256
395
|
balance: bigint;
|
|
257
396
|
};
|
|
258
397
|
};
|
|
398
|
+
} | {
|
|
399
|
+
eventName: "WeightedRootProposed";
|
|
400
|
+
args: {
|
|
401
|
+
merkleRoot: `0x${string}`;
|
|
402
|
+
blockNum: bigint;
|
|
403
|
+
accumulatedWeight: bigint;
|
|
404
|
+
quorum: bigint;
|
|
405
|
+
oracleId: number;
|
|
406
|
+
oracle: `0x${string}`;
|
|
407
|
+
};
|
|
259
408
|
} | {
|
|
260
409
|
eventName: "OwnershipTransferred";
|
|
261
410
|
args: {
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ConfigReturnType } from '../../config/create';
|
|
2
|
+
import { commitRoot, updateNetworkFeeSSV, withdrawNetworkSSVEarnings } from './methods';
|
|
3
|
+
import { RemoveConfigArg } from '../../types/methods';
|
|
4
|
+
export declare const createDaoManager: (config: ConfigReturnType) => {
|
|
5
|
+
commitRoot: RemoveConfigArg<typeof commitRoot>;
|
|
6
|
+
updateNetworkFeeSSV: RemoveConfigArg<typeof updateNetworkFeeSSV>;
|
|
7
|
+
withdrawNetworkSSVEarnings: RemoveConfigArg<typeof withdrawNetworkSSVEarnings>;
|
|
8
|
+
};
|