SafeL2
Arbitrum One0x4dff9b5b0143e642a3f63a5bcf2d1c328e600bf8
Proxy implementation: 0x29fcb43b46531bca003ddc8fcb67ffe91900c762
Solidity v0.7.6+commit.7338295f
Admin & Risk
Who can change the rules?
Detected upgradeable controls from the verified ABI.
Current controls
- Implementation
- 0x29fcb43b46531bca003ddc8fcb67ffe91900c762 ↗ Arbiscan → smarts proxy
Overview
Read Functions
Block #25,170,024 · just nowReturns
| Name | Type | Description |
|---|---|---|
| — | string |
Parameters
| Name | Type | Description |
|---|---|---|
| — | address | |
| — | bytes32 |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Checks whether the signature provided is valid for the provided data and hash. Reverts otherwise.
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 packed ECDSA signature ({bytes32 r}{bytes32 s}{uint8 v}), contract signature (EIP-1271) or approved hash. |
| requiredSignatures | uint256 | Amount of required valid signatures. |
Checks whether the signature provided is valid for the provided data and hash. Reverts otherwise.
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 packed ECDSA signature ({bytes32 r}{bytes32 s}{uint8 v}), contract signature (EIP-1271) or approved hash. |
Returns
| Name | Type | Description |
|---|---|---|
| — | bytes32 | bytes32 The domain separator hash. |
Returns the pre-image of the transaction hash (see getTransactionHash).
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 ID of the chain the contract is currently deployed on.
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 | The ID of the current chain as a uint256. |
Returns an array of modules. If all entries fit into a single page, the next pointer will be 0x1. If another page is present, next will be the last element of the returned array.
Parameters
| Name | Type | Description |
|---|---|---|
| start | address | Start of the page. Has to be a module or start pointer (0x1 address) |
| pageSize | uint256 | Maximum number of modules that should be returned. Has to be > 0 |
Returns
| Name | Type | Description |
|---|---|---|
| array | address[] | array Array of modules. |
| next | address | next Start of the next page. |
Returns a list of Safe owners.
Returns
| Name | Type | Description |
|---|---|---|
| — | address[] | Array of Safe owners. |
Reads `length` bytes of storage in the currents contract
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 number of required confirmations for a Safe transaction aka the threshold.
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 | Threshold number. |
Returns transaction hash to be signed by owners.
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. |
Returns if an module is enabled
Parameters
| Name | Type | Description |
|---|---|---|
| module | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool | True if the module is enabled |
Returns if `owner` is an owner of the Safe.
Parameters
| Name | Type | Description |
|---|---|---|
| owner | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool | Boolean if owner is an owner of the Safe. |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Parameters
| Name | Type | Description |
|---|---|---|
| — | bytes32 |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
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. |
Marks hash `hashToApprove` as approved.
Parameters
| Name | Type | Description |
|---|---|---|
| hashToApprove | bytes32 | The hash to mark 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 | Previous module in the modules 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. |
Executes a `operation` {0: Call, 1: DelegateCall}} transaction to `to` with `value` (Native Currency) and pays `gasPrice` * `gasLimit` in `gasToken` token to `refundReceiver`.
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 | Signature data that should be verified. Can be packed ECDSA signature ({bytes32 r}{bytes32 s}{uint8 v}), contract signature (EIP-1271) or approved hash. |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool | success Boolean indicating transaction's success. |
Execute `operation` (0: Call, 1: DelegateCall) to `to` with `value` (Native Token)
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 | success Boolean flag indicating if the call succeeded. |
Execute `operation` (0: Call, 1: DelegateCall) to `to` with `value` (Native Token) and return data
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 | success Boolean flag indicating if the call succeeded. |
| returnData | bytes | returnData Data returned by the call. |
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. |
Set Fallback Handler to `handler` for the Safe.
Parameters
| Name | Type | Description |
|---|---|---|
| handler | address | contract to handle fallback calls. |
Set Transaction Guard `guard` for the Safe. Make sure you trust the guard.
Parameters
| Name | Type | Description |
|---|---|---|
| guard | address | The address of the guard to be used or the 0 address to disable the guard |
Sets an initial storage of the Safe contract.
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 | Address that should receive the payment (or 0 if tx.origin) |
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 | ✓ |