You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To initialize the validator, you need to call the `createAndInitializeValidatorIfNecessary` function with the public key and signature from the previous step. The value should be set to minimum 32 OG tokens as the minimum initial delegation.
335
+
336
+
```solidity
337
+
// SPDX-License-Identifier: MIT
338
+
pragma solidity ^0.8.0;
339
+
340
+
interface IStaking {
341
+
struct Description {
342
+
string moniker;
343
+
string identity;
344
+
string website;
345
+
string securityContact;
346
+
string details;
347
+
}
348
+
349
+
function createAndInitializeValidatorIfNecessary(
350
+
Description calldata description,
351
+
uint32 commissionRate,
352
+
uint96 withdrawalFeeInGwei,
353
+
bytes calldata pubkey,
354
+
bytes calldata signature
355
+
) external payable returns (address);
356
+
357
+
function getValidator(bytes memory pubkey) external view returns (address);
358
+
359
+
function computeValidatorAddress(bytes calldata pubkey) external view returns (address);
360
+
}
361
+
362
+
```
363
+
364
+
-`description`: The validator's description struct
365
+
-`commissionRate`: The validator's commission rate
366
+
-`withdrawalFeeInGwei`: The validator's withdrawal fee
0 commit comments