GnosisSafeL2
BNB Smart Chain0xecc90d54b10add1ab746abe7e83abe178b72aa9e
Proxy implementation: 0x3e5c63644e683549055b9be8653de26e0b4cd36e
Solidity v0.7.6+commit.7338295f
Overview
Read Functions
Block #100,299,433 · just nowReturns the current contract version string.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | string | A string containing the contract version identifier, e.g. a semantic version or build tag.✨ AI |
Get the uint256 approval marker for a given owner address and data hash.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| — | address | |
| — | bytes32 |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 | Approval marker (uint256) for the owner and hash; contract-specific meaning (e.g., 0 = not approved, non-zero = approved).✨ AI |
Checks that the provided signatures meet the required number for the given data hash.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| dataHash | bytes32 | Hash of the data (could be either a message hash or transaction hash) |
| data | bytes | That should be signed (this is passed to an external validator contract) |
| signatures | bytes | Signature data that should be verified. Can be ECDSA signature, contract signature (EIP-1271) or approved hash. |
| requiredSignatures | uint256 | Amount of required valid signatures. |
Checks that the provided signatures are valid for the given data hash and payload.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| dataHash | bytes32 | Hash of the data (could be either a message hash or transaction hash) |
| data | bytes | That should be signed (this is passed to an external validator contract) |
| signatures | bytes | Signature data that should be verified. Can be ECDSA signature, contract signature (EIP-1271) or approved hash. |
Returns the EIP-712 domain separator used to compute typed data hashes for signatures.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | bytes32 | The current EIP-712 domain separator as a bytes32 value, used to derive message hashes for off-chain signatures.✨ AI |
Encode Safe transaction fields into a single bytes payload for signing or execution.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| to | address | Destination address. |
| value | uint256 | Ether value. |
| data | bytes | Data payload. |
| operation | uint8 | Operation type. |
| safeTxGas | uint256 | Gas that should be used for the safe transaction. |
| baseGas | uint256 | Gas costs for that are independent of the transaction execution(e.g. base transaction fee, signature check, payment of the refund) |
| gasPrice | uint256 | Maximum gas price that should be used for this transaction. |
| gasToken | address | Token address (or 0 if ETH) that is used for the payment. |
| refundReceiver | address | Address of receiver of gas payment (or 0 if tx.origin). |
| _nonce | uint256 | Transaction nonce. |
Returns
| Name | Type | Description |
|---|---|---|
| — | bytes | Transaction hash bytes. |
Returns the current blockchain chain ID.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 | The numeric chain ID of the blockchain as a uint256.✨ AI |
Return a paginated list of enabled module addresses starting after the given start address.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| start | address | Start of the page. |
| pageSize | uint256 | Maximum number of modules that should be returned. |
Returns
| Name | Type | Description |
|---|---|---|
| array | address[] | array Array of modules. |
| next | address | next Start of the next page. |
Returns the list of owner addresses for this Gnosis Safe.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | address[] | Array of Safe owners. |
Read raw contract storage starting at the specified storage slot offset and return the requested bytes.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| offset | uint256 | - the offset in the current contract's storage in words to start reading from |
| length | uint256 | - the number of words (32 bytes) of data to read |
Returns
| Name | Type | Description |
|---|---|---|
| — | bytes | the bytes that were read. |
Returns the current approval threshold required to execute a transaction.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 | The uint256 number of owner confirmations required to execute a safe transaction.✨ AI |
Compute the deterministic hash of a Safe transaction for signing or on-chain verification.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| to | address | Destination address. |
| value | uint256 | Ether value. |
| data | bytes | Data payload. |
| operation | uint8 | Operation type. |
| safeTxGas | uint256 | Fas that should be used for the safe transaction. |
| baseGas | uint256 | Gas costs for data used to trigger the safe transaction. |
| gasPrice | uint256 | Maximum gas price that should be used for this transaction. |
| gasToken | address | Token address (or 0 if ETH) that is used for the payment. |
| refundReceiver | address | Address of receiver of gas payment (or 0 if tx.origin). |
| _nonce | uint256 | Transaction nonce. |
Returns
| Name | Type | Description |
|---|---|---|
| — | bytes32 | Transaction hash. |
Checks whether a module address is enabled in the Gnosis Safe and returns true if enabled.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| module | address | Address of the module to check.✨ AI |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool | True if the module is enabled |
Returns whether the given address is an owner of the safe.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| owner | address | Address to check for owner status.✨ AI |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool | True if the address is an owner, otherwise false.✨ AI |
Return the current nonce for the safe used to order transactions and prevent replay attacks.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 | The current uint256 nonce of the safe; increments after each executed transaction to prevent replays.✨ AI |
Return the uint256 value stored for a given message hash.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| — | bytes32 |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 | The uint256 value associated with the given message hash.✨ AI |
Write Functions
Adds the owner `owner` to the Safe and updates the threshold to `_threshold`.
Parameters
| Name | Type | Description |
|---|---|---|
| owner | address | New owner address. |
| _threshold | uint256 | New threshold. |
Record approval of a transaction hash by the caller.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| hashToApprove | bytes32 | The hash that should be marked as approved for signatures that are verified by this contract. |
Changes the threshold of the Safe to `_threshold`.
Parameters
| Name | Type | Description |
|---|---|---|
| _threshold | uint256 | New threshold. |
Disables the module `module` for the Safe.
Parameters
| Name | Type | Description |
|---|---|---|
| prevModule | address | Module that pointed to the module to be removed in the linked list |
| module | address | Module to be removed. |
Enables the module `module` for the Safe.
Parameters
| Name | Type | Description |
|---|---|---|
| module | address | Module to be whitelisted. |
Execute a Safe transaction with provided calldata, gas settings, and signatures.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| to | address | Destination address of Safe transaction. |
| value | uint256 | Ether value of Safe transaction. |
| data | bytes | Data payload of Safe transaction. |
| operation | uint8 | Operation type of Safe transaction. |
| safeTxGas | uint256 | Gas that should be used for the Safe transaction. |
| baseGas | uint256 | Gas costs that are independent of the transaction execution(e.g. base transaction fee, signature check, payment of the refund) |
| gasPrice | uint256 | Gas price that should be used for the payment calculation. |
| gasToken | address | Token address (or 0 if ETH) that is used for the payment. |
| refundReceiver | address | Address of receiver of gas payment (or 0 if tx.origin). |
| signatures | bytes | Packed signature data ({bytes32 r}{bytes32 s}{uint8 v}) |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool | True if the transaction was executed successfully, false otherwise.✨ AI |
Executes a transaction initiated by a module, sending value and data to the specified target address.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| to | address | Destination address of module transaction. |
| value | uint256 | Ether value of module transaction. |
| data | bytes | Data payload of module transaction. |
| operation | uint8 | Operation type of module transaction. |
Returns
| Name | Type | Description |
|---|---|---|
| success | bool | True if the executed call succeeded, false otherwise.✨ AI |
Execute a transaction requested by a module and return whether it succeeded and the returned data.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| to | address | Destination address of module transaction. |
| value | uint256 | Ether value of module transaction. |
| data | bytes | Data payload of module transaction. |
| operation | uint8 | Operation type of module transaction. |
Returns
| Name | Type | Description |
|---|---|---|
| success | bool | Whether the executed transaction succeeded (true) or failed (false).✨ AI |
| returnData | bytes | Raw bytes returned by the executed call, e.g. return data or revert reason.✨ AI |
Removes the owner `owner` from the Safe and updates the threshold to `_threshold`.
Parameters
| Name | Type | Description |
|---|---|---|
| prevOwner | address | Owner that pointed to the owner to be removed in the linked list |
| owner | address | Owner address to be removed. |
| _threshold | uint256 | New threshold. |
Deprecated in favor of common/StorageAccessible.sol and will be removed in next version.
Parameters
| Name | Type | Description |
|---|---|---|
| to | address | Destination address of Safe transaction. |
| value | uint256 | Ether value of Safe transaction. |
| data | bytes | Data payload of Safe transaction. |
| operation | uint8 | Operation type of Safe transaction. |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 | Estimate without refunds and overhead fees (base transaction and payload data gas costs). |
Set the fallback handler address that processes calls that do not match any contract function.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| handler | address | contract to handle fallbacks calls. |
Sets the guard address that will be consulted to validate transactions before execution.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| guard | address | The address of the guard to be used or the 0 address to disable the guard |
Set up the Safe by providing owners, the confirmation threshold, and an optional initialization call.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| _owners | address[] | List of Safe owners. |
| _threshold | uint256 | Number of required confirmations for a Safe transaction. |
| to | address | Contract address for optional delegate call. |
| data | bytes | Data payload for optional delegate call. |
| fallbackHandler | address | Handler for fallback calls to this contract |
| paymentToken | address | Token that should be used for the payment (0 is ETH) |
| payment | uint256 | Value that should be paid |
| paymentReceiver | address | Adddress that should receive the payment (or 0 if tx.origin) |
Simulate a call to a target contract using provided calldata and revert to avoid state changes.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| targetContract | address | Address of the contract containing the code to execute. |
| calldataPayload | bytes | Calldata that should be sent to the target contract (encoded method name and arguments). |
Replaces the owner `oldOwner` in the Safe with `newOwner`.
Parameters
| Name | Type | Description |
|---|---|---|
| prevOwner | address | Owner that pointed to the owner to be replaced in the linked list |
| oldOwner | address | Owner address to be replaced. |
| newOwner | address | New owner address. |
Events
| Name | Type | Indexed | Description |
|---|---|---|---|
| owner | address |
| Name | Type | Indexed | Description |
|---|---|---|---|
| approvedHash | bytes32 | ✓ | |
| owner | address | ✓ |
| Name | Type | Indexed | Description |
|---|---|---|---|
| handler | address |
| Name | Type | Indexed | Description |
|---|---|---|---|
| guard | address |
| Name | Type | Indexed | Description |
|---|---|---|---|
| threshold | uint256 |
| Name | Type | Indexed | Description |
|---|---|---|---|
| module | address |
| Name | Type | Indexed | Description |
|---|---|---|---|
| module | address |
| Name | Type | Indexed | Description |
|---|---|---|---|
| txHash | bytes32 | ||
| payment | uint256 |
| Name | Type | Indexed | Description |
|---|---|---|---|
| module | address | ✓ |
| Name | Type | Indexed | Description |
|---|---|---|---|
| module | address | ✓ |
| Name | Type | Indexed | Description |
|---|---|---|---|
| txHash | bytes32 | ||
| payment | uint256 |
| Name | Type | Indexed | Description |
|---|---|---|---|
| owner | address |
| Name | Type | Indexed | Description |
|---|---|---|---|
| module | address | ||
| to | address | ||
| value | uint256 | ||
| data | bytes | ||
| operation | uint8 |
| Name | Type | Indexed | Description |
|---|---|---|---|
| to | address | ||
| value | uint256 | ||
| data | bytes | ||
| operation | uint8 | ||
| safeTxGas | uint256 | ||
| baseGas | uint256 | ||
| gasPrice | uint256 | ||
| gasToken | address | ||
| refundReceiver | address | ||
| signatures | bytes | ||
| additionalInfo | bytes |
| Name | Type | Indexed | Description |
|---|---|---|---|
| sender | address | ✓ | |
| value | uint256 |
| Name | Type | Indexed | Description |
|---|---|---|---|
| initiator | address | ✓ | |
| owners | address[] | ||
| threshold | uint256 | ||
| initializer | address | ||
| fallbackHandler | address |
| Name | Type | Indexed | Description |
|---|---|---|---|
| msgHash | bytes32 | ✓ |