PayloadsController

Ethereum 瀏覽鏈

0x7222182cb9c5320587b5148bf03eee107ad64578

Solidity v0.8.19+commit.7dd6d404

🤖
透過你的 AI 查詢此合約
參考: 0x7222182cb9c5320587b5148bf03eee107ad64578
範例提示詞: "Tell me the current state of eth/0x7222182cb9c5320587b5148bf03eee107ad64578"
還沒有接入 AI?→ mcp.smarts.md · 瀏覽鏈

管理與風險

誰能修改規則?

Block #25,491,744

Detected ownable controls from the verified ABI.

Ownable

當前控制

Owner
0xeaf6183bab3efd3bf856ac5c058431c8592394d6 ↗ Etherscan → smarts

概覽

讀取函式
15
寫入函式
11
事件
11

讀取函式

Block #25,491,744 · 15s ago
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 → 0

get the total count of payloads created

回傳值

名稱 類型 描述
uint40 number of payloads
guardian() view → 0xeaf6183bab3efd3bf856ac5c058431c8592394d6

Returns the current guardian address.✨ AI

開發者: get guardian address;

回傳值

名稱 類型 描述
address The guardian address (an Ethereum account) with administrative or guardian privileges.✨ AI
owner() view → 0xeaf6183bab3efd3bf856ac5c058431c8592394d6

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 → 0xeaf6183bab3efd3bf856ac5c058431c8592394d6

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