PayloadsController

Ethereum 浏览链

0xdabad81af85554e9ae636395611c58f7ec1aaec5

Proxy 实现合约: 0x7222182cb9c5320587b5148bf03eee107ad64578

Solidity v0.8.19+commit.7dd6d404

🤖
通过你的 AI 查询此合约
引用: 0xdabad81af85554e9ae636395611c58f7ec1aaec5
示例提示词: "Tell me the current state of eth/0xdabad81af85554e9ae636395611c58f7ec1aaec5"
还没有接入 AI?→ mcp.smarts.md · 浏览链

管理与风险

谁能修改规则?

Block #25,494,394

Detected upgradeable and ownable controls from the verified ABI.

Upgradeable Ownable

当前控制

Implementation
0x7222182cb9c5320587b5148bf03eee107ad64578 ↗ Etherscan → smarts proxy
Owner
0x5300a1a15135ea4dc7ad5a167152c01efc9b192a ↗ Etherscan → smarts

概览

读取函数
15
写入函数
11
事件
11

读取函数

Block #25,494,394 · just now
CROSS_CHAIN_CONTROLLER() view → 0xed42a7d8559a463722ca4bed50e0cc05a386b0e1

get contract address from where the messages come

返回值

名称 类型 描述
address address of the message registry
EXPIRATION_DELAY() view → 3,024,000

get the expiration delay of a payload

返回值

名称 类型 描述
uint40 expiration delay in seconds
GRACE_PERIOD() view → 604,800

time in seconds where the proposal can be executed (from executionTime) before it expires

返回值

名称 类型 描述
uint40 grace period in seconds
MAX_EXECUTION_DELAY() view → 864,000

get the maximum time in seconds that a proposal must spend being queued

返回值

名称 类型 描述
uint40 max delay in seconds
MESSAGE_ORIGINATOR() view → 0x9aee0b04504cef83a65ac3f0e838d0593bcb2bc7

get address of the message sender in originator network

返回值

名称 类型 描述
address address of the originator contract
MIN_EXECUTION_DELAY() view → 86,400

get the minimum time in seconds that a proposal must spend being queued

返回值

名称 类型 描述
uint40 min delay in seconds
ORIGIN_CHAIN_ID() view → 1

get chain id of the message originator network

返回值

名称 类型 描述
uint256 chain id of the originator network
decodeMessage(message: bytes) pure

method to decode a message from from governance chain

参数

名称 类型 描述
message bytes encoded message with message type

返回值

名称 类型 描述
uint40 payloadId, accessLevel, proposalVoteActivationTimestamp from the decoded message
uint8
uint40
getExecutorSettingsByAccessControl(accessControl: uint8) view

method to get the executor configuration assigned to the specified level

参数

名称 类型 描述
accessControl uint8 level of which we want to get the executor configuration from

返回值

名称 类型 描述
tuple executor configuration
getPayloadById(payloadId: uint40) view

get a previously created payload object

参数

名称 类型 描述
payloadId uint40 id of the payload to retrieve

返回值

名称 类型 描述
tuple payload information
getPayloadState(payloadId: uint40) view

get the current state of a payload

参数

名称 类型 描述
payloadId uint40 id of the payload to retrieve the state from

返回值

名称 类型 描述
uint8 payload state
getPayloadsCount() view → 455

get the total count of payloads created

返回值

名称 类型 描述
uint40 number of payloads
guardian() view → 0xce52ab41c40575b072a18c9700091ccbe4a06710

Returns the current guardian address.✨ AI

开发者: get guardian address;

返回值

名称 类型 描述
address The guardian address (an Ethereum account) with administrative or guardian privileges.✨ AI
owner() view → 0x5300a1a15135ea4dc7ad5a167152c01efc9b192a

Returns the current owner address of the contract.✨ AI

开发者: Returns the address of the current owner.

返回值

名称 类型 描述
address The address currently set as the contract owner.✨ AI
whoCanRescue() view → 0x5300a1a15135ea4dc7ad5a167152c01efc9b192a

method that defines the address that is allowed to rescue tokens

返回值

名称 类型 描述
address the allowed address

写入函数

cancelPayload(payloadId: uint40) nonpayable

method to cancel a payload

参数

名称 类型 描述
payloadId uint40 id of the payload that needs to be canceled
createPayload(actions: tuple[]) nonpayable

method that will create a Payload object for every action sent

参数

名称 类型 描述
actions tuple[] array of actions which this proposal payload will contain

返回值

名称 类型 描述
uint40 id of the created payload
emergencyEtherTransfer(to: address, amount: uint256) nonpayable

method called to rescue ether sent erroneously to the contract. Only callable by owner

参数

名称 类型 描述
to address address to send the eth
amount uint256 of eth to rescue
emergencyTokenTransfer(erc20Token: address, to: address, amount: uint256) nonpayable

method called to rescue tokens sent erroneously to the contract. Only callable by owner

参数

名称 类型 描述
erc20Token address address of the token to rescue
to address address to send the tokens
amount uint256 of tokens to rescue
executePayload(payloadId: uint40) payable

method to execute a payload

参数

名称 类型 描述
payloadId uint40 id of the payload that needs to be executed
initialize(owner: address, guardian: address, executors: tuple[]) nonpayable

method to initialize the contract with starter params. Only callable by proxy

参数

名称 类型 描述
owner address address of the owner of the contract. with permissions to call certain methods
guardian address address of the guardian. With permissions to call certain methods
executors tuple[] array of executor configurations
receiveCrossChainMessage(originSender: address, originChainId: uint256, message: bytes) nonpayable

method called by CrossChainController when a message has been confirmed

参数

名称 类型 描述
originSender address address of the sender of the bridged message
originChainId uint256 id of the chain where the message originated
message bytes bytes bridged containing the desired information
renounceOwnership() nonpayable

Allows the current owner to permanently renounce ownership, leaving the contract without an owner.✨ AI

开发者: Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner.
transferOwnership(newOwner: address) nonpayable

Transfer ownership of the contract to a new owner address.✨ AI

开发者: Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner.

参数

名称 类型 描述
newOwner address Address that will receive ownership and become the new owner.✨ AI
updateExecutors(executors: tuple[]) nonpayable

method to add executors and its configuration

参数

名称 类型 描述
executors tuple[] array of UpdateExecutorInput objects
updateGuardian(newGuardian: address) nonpayable

Set the contract's guardian to a new address.✨ AI

开发者: method to update the guardian

参数

名称 类型 描述
newGuardian address the new guardian address

事件

ERC20Rescued(caller: address, token: address, to: address, amount: uint256)

emitted when erc20 tokens get rescued

名称 类型 已索引 描述
caller address address that triggers the rescue
token address address of the rescued token
to address address that will receive the rescued tokens
amount uint256 quantity of tokens rescued
ExecutorSet(accessLevel: uint8, executor: address, delay: uint40)

Event emitted when an executor has been set for a determined access level

名称 类型 已索引 描述
accessLevel uint8 level of access that the executor will be set to
executor address address that will be set for the determined access level
delay uint40 time in seconds between queuing and execution
GuardianUpdated(oldGuardian: address, newGuardian: address)
名称 类型 已索引 描述
oldGuardian address address of previous guardian
newGuardian address address of the new guardian
Initialized(version: uint8)
名称 类型 已索引 描述
version uint8
NativeTokensRescued(caller: address, to: address, amount: uint256)

emitted when native tokens get rescued

名称 类型 已索引 描述
caller address address that triggers the rescue
to address address that will receive the rescued tokens
amount uint256 quantity of tokens rescued
OwnershipTransferred(previousOwner: address, newOwner: address)
名称 类型 已索引 描述
previousOwner address
newOwner address
PayloadCancelled(payloadId: uint40)

Event emitted when cancelling a payload

名称 类型 已索引 描述
payloadId uint40 id of the cancelled payload
PayloadCreated(payloadId: uint40, creator: address, actions: tuple[], maximumAccessLevelRequired: uint8)

Event emitted when a payload has been created

名称 类型 已索引 描述
payloadId uint40 id of the payload created
creator address address pertaining to the caller of the method createPayload
actions tuple[] array of the actions conforming the payload
maximumAccessLevelRequired uint8 maximum level of the access control
PayloadExecuted(payloadId: uint40)

Event emitted when a payload has been executed

名称 类型 已索引 描述
payloadId uint40 id of the payload being enqueued
PayloadExecutionMessageReceived(originSender: address, originChainId: uint256, delivered: bool, message: bytes, reason: bytes)

emitted when a cross chain message gets received

名称 类型 已索引 描述
originSender address address that sent the message on the origin chain
originChainId uint256 id of the chain where the message originated
delivered bool flag indicating if message has been delivered
message bytes bytes containing the necessary information to queue the bridged payload id
reason bytes bytes with the revert information
PayloadQueued(payloadId: uint40)

Event emitted when a payload has been queued

名称 类型 已索引 描述
payloadId uint40 id of the payload being enqueued