GnosisSafeProxyFactory
World Chain0xa6b71e26c5e0845f74c812102ca7114b6a896ab2
Solidity v0.7.6+commit.7338295f
🤖
通过你的 AI 查询此合约
引用:
0xa6b71e26c5e0845f74c812102ca7114b6a896ab2
示例提示词:
"Tell me the current state of world/0xa6b71e26c5e0845f74c812102ca7114b6a896ab2"
还没有接入 AI?→
mcp.smarts.md
World Chain 在 Smarts 上是仅文档链:源代码和 ABI 已索引,但当前不提供实时链上数据(状态、最新事件、管理员画像)。AI 代理仍可通过 MCP 调用 get_contract_info 和 get_contract_source。
概览
读取函数
2
写入函数
4
事件
1
读取函数
proxyCreationCode()
pure
Returns the raw proxy creation bytecode used to deploy Gnosis Safe proxies.✨ AI
开发者: Allows to retrieve the creation code used for the Proxy deployment. With this it is easily possible to calculate predicted address.
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bytes | Raw creation bytecode for the proxy contract, returned as bytes.✨ AI |
proxyRuntimeCode()
pure
Returns the proxy contract's runtime bytecode.✨ AI
开发者: Allows to retrieve the runtime code of a deployed Proxy. This can be used to check that the expected Proxy was deployed.
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bytes | The proxy contract runtime bytecode as bytes.✨ AI |
写入函数
calculateCreateProxyWithNonceAddress(_singleton: address, initializer: bytes, saltNonce: uint256)
nonpayable
Computes the address where a Gnosis Safe proxy will be deployed using CREATE2 with the given initializer and salt.✨ AI
开发者: Allows to get the address for a new proxy contact created via `createProxyWithNonce` This method is only meant for address calculation purpose when you use an initializer that would revert, therefore the response is returned with a revert. When calling this method set `from` to the address of the proxy factory.
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _singleton | address | Address of singleton contract. |
| initializer | bytes | Payload for message call sent to new proxy contract. |
| saltNonce | uint256 | Nonce that will be used to generate the salt to calculate the address of the new proxy contract. |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| proxy | address | The deterministic address at which the proxy would be deployed.✨ AI |
createProxy(singleton: address, data: bytes)
nonpayable
Deploys a new proxy that delegates calls to the given singleton and returns the proxy address.✨ AI
开发者: Allows to create new proxy contact and execute a message call to the new proxy within one transaction.
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| singleton | address | Address of singleton contract. |
| data | bytes | Payload for message call sent to new proxy contract. |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| proxy | address | Address of the newly created proxy contract.✨ AI |
createProxyWithCallback(_singleton: address, initializer: bytes, saltNonce: uint256, callback: address)
nonpayable
Deploys a new proxy for the given singleton, runs the initializer, and notifies the callback.✨ AI
开发者: Allows to create new proxy contact, execute a message call to the new proxy and call a specified callback within one transaction
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _singleton | address | Address of singleton contract. |
| initializer | bytes | Payload for message call sent to new proxy contract. |
| saltNonce | uint256 | Nonce that will be used to generate the salt to calculate the address of the new proxy contract. |
| callback | address | Callback that will be invoced after the new proxy contract has been successfully deployed and initialized. |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| proxy | address | proxy: Address of the newly created proxy contract.✨ AI |
createProxyWithNonce(_singleton: address, initializer: bytes, saltNonce: uint256)
nonpayable
Creates a new Gnosis Safe proxy using the given singleton, initializer, and salt to deterministically compute its address.✨ AI
开发者: Allows to create new proxy contact and execute a message call to the new proxy within one transaction.
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _singleton | address | Address of singleton contract. |
| initializer | bytes | Payload for message call sent to new proxy contract. |
| saltNonce | uint256 | Nonce that will be used to generate the salt to calculate the address of the new proxy contract. |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| proxy | address | proxy: Address of the newly deployed proxy contract.✨ AI |
事件
ProxyCreation(proxy: address, singleton: address)
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| proxy | address | ||
| singleton | address |