SBCDepositContract
Gnosis0x0b98057ea310f4d31f2a452b414647007d1645d9
Proxy 實作合約: 0x49de1aced385334f1a66d86db363264eb5b6a708
Solidity v0.8.9+commit.e5eed63a
概覽
讀取函式
Query the current deposit count.
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bytes | The deposit count encoded as a little endian 64-bit number. |
Query the current deposit root hash.
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bytes32 | The deposit root hash. |
Reports whether the contract is currently paused.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | True if the contract is paused, false if it is active.✨ AI |
Return the ERC-20 token contract address that users stake in this contract.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address | Address of the ERC-20 token accepted for staking.✨ AI |
Check whether the contract implements the interface specified by interfaceId.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| interfaceId | bytes4 | ERC-165 interface identifier to query.✨ AI |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | true if the contract implements the given interface; false otherwise.✨ AI |
Return the 32-byte validator withdrawal credentials derived from the given input.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bytes |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bytes32 | Bytes32 withdrawal credentials computed from the provided input.✨ AI |
Returns the amount the specified address can currently withdraw from the contract.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 | The withdrawable amount for the address as a uint256 (in the token's smallest unit, e.g., wei).✨ AI |
寫入函式
Submit multiple validator deposits to the contract in a single transaction.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| pubkeys | bytes | Concatenated validator public keys (48 bytes per pubkey).✨ AI |
| withdrawal_credentials | bytes | Concatenated 32-byte withdrawal credentials for each validator.✨ AI |
| signatures | bytes | Concatenated BLS signatures (96 bytes per signature) for each deposit.✨ AI |
| deposit_data_roots | bytes32[] | Array of bytes32 deposit_data_root values, one per deposit.✨ AI |
| amounts | uint256[] |
Submit multiple validator deposits to the contract in a single transaction.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| pubkeys | bytes | Concatenated validator public keys (48 bytes per pubkey).✨ AI |
| withdrawal_credentials | bytes | Concatenated 32-byte withdrawal credentials for each validator.✨ AI |
| signatures | bytes | Concatenated BLS signatures (96 bytes per signature) for each deposit.✨ AI |
| deposit_data_roots | bytes32[] | Array of bytes32 deposit_data_root values, one per deposit.✨ AI |
Transfer any ERC20 tokens held by the contract to a specified recipient.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _token | address | address of the token, if it is not provided (0x00..00), native coins will be transferred. |
| _to | address | address that will receive the locked tokens from this contract. |
Claim a pending withdrawal for the specified address and transfer any available funds to it.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _address | address | Address to transfer withdrawable tokens |
Claim pending withdrawals for the provided addresses, executing any available withdrawal operations for each.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _addresses | address[] | Addresses to transfer withdrawable tokens |
Submit a Phase 0 DepositData object.
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| pubkey | bytes | A BLS12-381 public key. |
| withdrawal_credentials | bytes | Commitment to a public key for withdrawals. |
| signature | bytes | A BLS12-381 signature. |
| deposit_data_root | bytes32 | The SHA-256 hash of the SSZ-encoded DepositData object. Used as a protection against malformed input. |
| stake_amount | uint256 |
Execute multiple system withdrawals in a single transaction.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _amounts | uint64[] | Array of amounts to be withdrawn. |
| _addresses | address[] | Array of addresses that should receive the corresponding amount of tokens. |
Execute multiple system withdrawals in a single transaction.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 | |
| _amounts | uint64[] | Array of amounts to be withdrawn. |
| _addresses | address[] | Array of addresses that should receive the corresponding amount of tokens. |
Handle incoming token transfers, record the stake, and trigger deposit processing.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address | |
| stake_amount | uint256 | Amount of tokens transferred and to be staked.✨ AI |
| data | bytes | Optional additional calldata provided with the transfer.✨ AI |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | True if the transfer and staking were processed successfully; otherwise false.✨ AI |
Pause contract operations, disabling functions protected by pause checks.✨ AI
Unpauses the contract so functions guarded by pause checks can be executed again.✨ AI
Unwraps tokens by calling the unwrapper contract to convert wrapped tokens back to their underlying asset.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _unwrapper | address | address of the mGNO token unwrapper |
| _token | address | Address of the wrapped token to be unwrapped.✨ AI |
事件
A processed deposit event.
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| pubkey | bytes | ||
| withdrawal_credentials | bytes | ||
| amount | bytes | ||
| signature | bytes | ||
| index | bytes |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| account | address |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| account | address |