HomeBridgeErcToNative

Gnosis

0x7301cfa0e1756b71869e93d4e4dca5c7d0eb0aa6

Proxy 實作合約: 0xe6998b0c03d3cb9ee8c04f266e573c7fa8782846

Solidity v0.4.24+commit.e67f0147

🤖
透過你的 AI 查詢此合約
參考: 0x7301cfa0e1756b71869e93d4e4dca5c7d0eb0aa6
範例提示詞: "Tell me the current state of gnosis/0x7301cfa0e1756b71869e93d4e4dca5c7d0eb0aa6"
還沒有接入 AI?→ mcp.smarts.md
Gnosis 在 Smarts 上是僅文件鏈:原始碼和 ABI 已索引,但目前不提供即時鏈上資料(狀態、最新事件、管理員概覽)。AI 代理仍可透過 MCP 呼叫 get_contract_info 和 get_contract_source。

概覽

讀取函式
42
寫入函式
23
事件
15

讀取函式

numMessagesSigned(_message: bytes32) view

Returns the number of validator signatures collected for a specific message hash.✨ AI

參數

名稱 類型 描述
_message bytes32 Message hash to query the recorded signature count for.✨ AI

回傳值

名稱 類型 描述
uint256 Number of validator signatures recorded for the given message hash as a uint256.✨ AI
totalBurntCoins() view

Returns the total amount of ERC tokens permanently burned through this bridge.✨ AI

回傳值

名稱 類型 描述
uint256 Total number of tokens permanently burned by the bridge, expressed in the token's smallest units (uint256).✨ AI
signature(_hash: bytes32, _index: uint256) view

Return the signature bytes for the specified message hash and signer index.✨ AI

參數

名稱 類型 描述
_hash bytes32 Message hash used to fetch the signature.✨ AI
_index uint256 Signer or validator index identifying which signature to return.✨ AI

回傳值

名稱 類型 描述
bytes Signature byte array corresponding to the given hash and index.✨ AI
HASHI_IS_MANDATORY() view

Reports whether HASHI authorization is required.✨ AI

回傳值

名稱 類型 描述
bool True if HASHI authorization is mandatory for relevant operations; false if it is optional or disabled.✨ AI
totalSpentPerDay(_day: uint256) view

Return the total amount spent on a given day.✨ AI

參數

名稱 類型 描述
_day uint256 Day index (uint256) representing the day bucket to query.✨ AI

回傳值

名稱 類型 描述
uint256 Total amount (uint256) spent during the specified day.✨ AI
isInitialized() view

Checks whether the contract has been initialized.✨ AI

回傳值

名稱 類型 描述
bool True if the contract has been initialized, otherwise false.✨ AI
getCurrentDay() view

Returns the current day index used by the contract for day-based accounting.✨ AI

回傳值

名稱 類型 描述
uint256 Current day index as a uint256, used by the contract for day-based accounting.✨ AI
requiredBlockConfirmations() view

Returns the number of block confirmations required before a deposit is considered final.✨ AI

回傳值

名稱 類型 描述
uint256 Number of block confirmations required (uint256) before processing or finalizing a deposit.✨ AI
getBridgeMode() pure

Return the 4-byte identifier that encodes the contract's bridge mode.✨ AI

回傳值

名稱 類型 描述
_data bytes4 _data: bytes4 - 4-byte value encoding the bridge mode selector used by the contract.✨ AI
executionDailyLimit() view

Returns the bridge's daily execution limit for native-token transfers.✨ AI

回傳值

名稱 類型 描述
uint256 Maximum native-token amount allowed to be executed per day (in wei).✨ AI
message(_hash: bytes32) view

Return the encoded bridge message payload stored for the given hash.✨ AI

參數

名稱 類型 描述
_hash bytes32 Hash identifier of the bridged message to retrieve.✨ AI

回傳值

名稱 類型 描述
bytes Raw message bytes as stored on-chain (encoded payload); empty bytes if no message exists for the hash.✨ AI
totalExecutedPerDay(_day: uint256) view

Return the total executed amount recorded for the specified day.✨ AI

參數

名稱 類型 描述
_day uint256 Index of the day to query (e.g., epoch day number).✨ AI

回傳值

名稱 類型 描述
uint256 Total executed amount for the given day, expressed in the contract's smallest token/native unit.✨ AI
blockRewardContract() view

Return the address of the contract that receives block rewards.✨ AI

回傳值

名稱 類型 描述
address Address of the block reward recipient contract.✨ AI
dailyLimit() view

Returns the current daily limit for ERC-to-native bridging operations.✨ AI

回傳值

名稱 類型 描述
uint256 The maximum total amount allowed for bridging in a 24-hour period, as a uint256.✨ AI
numAffirmationsSigned(_withdrawal: bytes32) view

Returns the number of validator affirmations recorded for the specified withdrawal ID.✨ AI

參數

名稱 類型 描述
_withdrawal bytes32 Withdrawal identifier (bytes32) to query.✨ AI

回傳值

名稱 類型 描述
uint256 Number of validator affirmations collected for the given withdrawal ID as a uint256.✨ AI
affirmationsSigned(_withdrawal: bytes32) view

Checks whether the given withdrawal hash has been signed (affirmed) on this bridge.✨ AI

參數

名稱 類型 描述
_withdrawal bytes32 Withdrawal hash to query for an affirmation.✨ AI

回傳值

名稱 類型 描述
bool true if the withdrawal hash has been affirmed (a signature recorded); otherwise false.✨ AI
hashiManager() view

Returns the current hashi manager address.✨ AI

回傳值

名稱 類型 描述
address Address of the configured hashi manager contract.✨ AI
withinExecutionLimit(_amount: uint256) view

Checks whether the provided amount is within the contract's current execution limit.✨ AI

參數

名稱 類型 描述
_amount uint256 Amount to check against the remaining execution limit.✨ AI

回傳值

名稱 類型 描述
bool True if executing _amount would not exceed the current execution limit; otherwise false.✨ AI
executionMaxPerTx() view

Reads the configured maximum amount allowed per execution transaction.✨ AI

回傳值

名稱 類型 描述
uint256 Maximum amount allowed for a single execution transaction, expressed in the contract's smallest token/native unit.✨ AI
HASHI_IS_ENABLED() view

Returns whether the HASHI feature is currently enabled.✨ AI

回傳值

名稱 類型 描述
bool Boolean indicating if HASHI is enabled (true) or disabled (false).✨ AI
requiredSignatures() view

Returns the number of signatures required to authorize a bridge transfer.✨ AI

回傳值

名稱 類型 描述
uint256 uint256 representing the required number of validator signatures (threshold) to approve a transfer.✨ AI
owner() view

Returns the address that currently owns and administrates the contract.✨ AI

開發者: Tells the address of the owner

回傳值

名稱 類型 描述
address the address of the owner
isApprovedByHashi(hashMsg: bytes32) view

Checks whether the provided message hash has been approved by the Hashi signer.✨ AI

參數

名稱 類型 描述
hashMsg bytes32 Message hash to check for prior approval by Hashi.✨ AI

回傳值

名稱 類型 描述
bool True if the given hash is marked as approved by Hashi; false otherwise.✨ AI
messagesSigned(_message: bytes32) view

Checks if the bridge has recorded the given message hash as signed.✨ AI

參數

名稱 類型 描述
_message bytes32 Message hash to check for a recorded signature.✨ AI

回傳值

名稱 類型 描述
bool true if the provided message hash is recorded as signed; false otherwise.✨ AI
getAmountToBurn(_value: uint256) view

Calculate the token amount that must be burned when bridging the given ERC token value to native.✨ AI

參數

名稱 類型 描述
_value uint256 ERC token amount provided for bridging to native, expressed in token smallest units.✨ AI

回傳值

名稱 類型 描述
amount uint256 Calculated amount of ERC tokens that will be burned from the provided value, in token smallest units.✨ AI
getHomeFee() view

Returns the current fee charged by the home bridge for processing transfers.✨ AI

回傳值

名稱 類型 描述
uint256 The current home bridge fee in wei as a uint256.✨ AI
maxAvailablePerTx() view

Returns the maximum amount allowed to bridge in a single transaction.✨ AI

開發者: Retrieves maximum available bridge amount per one transaction taking into account maxPerTx() and dailyLimit() parameters.

回傳值

名稱 類型 描述
uint256 minimum of maxPerTx parameter and remaining daily quota.
validatorContract() view

Returns the address of the current validator contract used by the bridge.✨ AI

回傳值

名稱 類型 描述
address The validator contract address that the bridge uses to verify signatures and validations.✨ AI
deployedAtBlock() view

Returns the block number at which this contract was deployed.✨ AI

回傳值

名稱 類型 描述
uint256 Deployment block number (uint256).✨ AI
getBridgeInterfacesVersion() pure

Returns the bridge interfaces semantic version as major, minor, and patch numbers.✨ AI

回傳值

名稱 類型 描述
major uint64 major: uint64 - Major version number indicating incompatible API changes.✨ AI
minor uint64 minor: uint64 - Minor version number for backward-compatible feature additions.✨ AI
patch uint64 patch: uint64 - Patch version number for backward-compatible bug fixes.✨ AI
outOfLimitAmount() view
開發者: Total amount coins/tokens that were bridged from the other side and are out of execution limits.

回傳值

名稱 類型 描述
uint256 total amount of all bridge operations above limits.
nonce() view

回傳值

名稱 類型 描述
uint256
usdsDepositContract() view

回傳值

名稱 類型 描述
address
decimalShift() view
開發者: Returns the value of foreign-to-home decimal shift.

回傳值

名稱 類型 描述
int256 decimal shift.
feeManagerContract() view
開發者: Retrieves the address of the fee manager contract used.

回傳值

名稱 類型 描述
address address of the fee manager contract.
minPerTx() view

回傳值

名稱 類型 描述
uint256
withinLimit(_amount: uint256) view

參數

名稱 類型 描述
_amount uint256

回傳值

名稱 類型 描述
bool
getFeeManagerMode() view
開發者: Retrieves the mode of the used fee manager.

回傳值

名稱 類型 描述
mode bytes4 manager mode identifier, or zero bytes otherwise.
maxPerTx() view

回傳值

名稱 類型 描述
uint256
gasPrice() view

回傳值

名稱 類型 描述
uint256
isAlreadyProcessed(_number: uint256) pure

參數

名稱 類型 描述
_number uint256

回傳值

名稱 類型 描述
bool
getForeignFee() view

回傳值

名稱 類型 描述
uint256

寫入函式

setBlockRewardContract(_blockReward: address) nonpayable

參數

名稱 類型 描述
_blockReward address
setForeignFee(_fee: uint256) nonpayable
開發者: Updates the fee percentage for foreign->home bridge operations. Only owner is allowed to call this method.

參數

名稱 類型 描述
_fee uint256 new value for fee percentage.
setHomeFee(_fee: uint256) nonpayable
開發者: Updates the fee percentage for home->foreign bridge operations. Only owner is allowed to call this method. If during this operation, home fee is changed, it is highly recommended to stop the bridge operations first. Otherwise, pending signature requests can become a reason for imbalance between two bridge sides.

參數

名稱 類型 描述
_fee uint256 new value for fee percentage.
setExecutionDailyLimit(_dailyLimit: uint256) nonpayable

參數

名稱 類型 描述
_dailyLimit uint256
relayTokens(_receiver: address) payable

參數

名稱 類型 描述
_receiver address
setUSDSDepositContract(_contract: address) nonpayable

參數

名稱 類型 描述
_contract address
setFeeManagerContract(_feeManager: address) nonpayable
開發者: Updates the address of the used fee manager contract. Only contract owner can call this method. If during this operation, home fee is changed, it is highly recommended to stop the bridge operations first. Otherwise, pending signature requests can become a reason for imbalance between two bridge sides.

參數

名稱 類型 描述
_feeManager address address of the new fee manager contract, or zero address to disable fee collection.
submitSignature(signature: bytes, message: bytes) nonpayable

參數

名稱 類型 描述
signature bytes
message bytes
claimTokens(_token: address, _to: address) nonpayable
開發者: Withdraws the erc20 tokens or native coins from this contract.

參數

名稱 類型 描述
_token address address of the claimed token or address(0) for native coins.
_to address address of the tokens/coins receiver.
resendDataWithHashi(data: bytes) nonpayable

參數

名稱 類型 描述
data bytes
initialize(_validatorContract: address, _dailyLimitMaxPerTxMinPerTxArray: uint256[3], _homeGasPrice: uint256, _requiredBlockConfirmations: uint256, _blockReward: address, _foreignDailyLimitForeignMaxPerTxArray: uint256[2], _owner: address, _decimalShift: int256) nonpayable

參數

名稱 類型 描述
_validatorContract address
_dailyLimitMaxPerTxMinPerTxArray uint256[3]
_homeGasPrice uint256
_requiredBlockConfirmations uint256
_blockReward address
_foreignDailyLimitForeignMaxPerTxArray uint256[2]
_owner address
_decimalShift int256

回傳值

名稱 類型 描述
bool
executeAffirmation(recipient: address, value: uint256, nonce: bytes32) nonpayable
開發者: Executes a message affirmation for some Foreign side event. Can be called only by a current bridge validator.

參數

名稱 類型 描述
recipient address tokens/coins of receiver address, where the assets should be unlocked/minted.
value uint256 amount of assets to unlock/mint.
nonce bytes32 reference nonce on the Foreign side of the bridge.
setMinPerTx(_minPerTx: uint256) nonpayable

參數

名稱 類型 描述
_minPerTx uint256
setRequiredBlockConfirmations(_blockConfirmations: uint256) nonpayable

參數

名稱 類型 描述
_blockConfirmations uint256
setDailyLimit(_dailyLimit: uint256) nonpayable

參數

名稱 類型 描述
_dailyLimit uint256
setHashiManager(_hashiManager: address) nonpayable

參數

名稱 類型 描述
_hashiManager address
setGasPrice(_gasPrice: uint256) nonpayable
開發者: Public setter for fallback gas price value. Only bridge owner can call this method.

參數

名稱 類型 描述
_gasPrice uint256 new value for the gas price.
setMaxPerTx(_maxPerTx: uint256) nonpayable

參數

名稱 類型 描述
_maxPerTx uint256
onMessage(uint256, chainId: uint256, sender: address, threshold: uint256, adapters: address[], data: bytes) nonpayable

參數

名稱 類型 描述
uint256
chainId uint256
sender address
threshold uint256
adapters address[]
data bytes

回傳值

名稱 類型 描述
bytes
rewardableInitialize(_validatorContract: address, _dailyLimitMaxPerTxMinPerTxArray: uint256[3], _homeGasPrice: uint256, _requiredBlockConfirmations: uint256, _blockReward: address, _foreignDailyLimitForeignMaxPerTxArray: uint256[2], _owner: address, _feeManager: address, _homeFeeForeignFeeArray: uint256[2], _decimalShift: int256) nonpayable

參數

名稱 類型 描述
_validatorContract address
_dailyLimitMaxPerTxMinPerTxArray uint256[3]
_homeGasPrice uint256
_requiredBlockConfirmations uint256
_blockReward address
_foreignDailyLimitForeignMaxPerTxArray uint256[2]
_owner address
_feeManager address
_homeFeeForeignFeeArray uint256[2]
_decimalShift int256

回傳值

名稱 類型 描述
bool
fixAssetsAboveLimits(hashMsg: bytes32, unlockOnForeign: bool, valueToUnlock: uint256, tokenAddress: address) nonpayable
開發者: Fixes locked tokens, that were out of execution limits during the call to executeAffirmation.

參數

名稱 類型 描述
hashMsg bytes32 reference for bridge operation that was out of execution limits.
unlockOnForeign bool true if fixed tokens should be unlocked to the other side of the bridge.
valueToUnlock uint256 unlocked amount of tokens, should be less than txAboveLimitsValue.
tokenAddress address token address to receive on Ethereum Should be less than maxPerTx(), if tokens need to be unlocked on the other side.
setExecutionMaxPerTx(_maxPerTx: uint256) nonpayable

參數

名稱 類型 描述
_maxPerTx uint256
transferOwnership(newOwner: address) nonpayable
開發者: Allows the current owner to transfer control of the contract to a newOwner.

參數

名稱 類型 描述
newOwner address the address to transfer ownership to.

事件

UserRequestForSignature(recipient: address, value: uint256, nonce: bytes32, token: address)
名稱 類型 已索引 描述
recipient address
value uint256
nonce bytes32
token address
AffirmationCompleted(recipient: address, value: uint256, nonce: bytes32)
名稱 類型 已索引 描述
recipient address
value uint256
nonce bytes32
SignedForUserRequest(signer: address, messageHash: bytes32)
名稱 類型 已索引 描述
signer address
messageHash bytes32
SignedForAffirmation(signer: address, nonce: bytes32)
名稱 類型 已索引 描述
signer address
nonce bytes32
CollectedSignatures(authorityResponsibleForRelay: address, messageHash: bytes32, NumberOfCollectedSignatures: uint256)
名稱 類型 已索引 描述
authorityResponsibleForRelay address
messageHash bytes32
NumberOfCollectedSignatures uint256
DailyLimitChanged(newLimit: uint256)
名稱 類型 已索引 描述
newLimit uint256
ExecutionDailyLimitChanged(newLimit: uint256)
名稱 類型 已索引 描述
newLimit uint256
GasPriceChanged(gasPrice: uint256)
名稱 類型 已索引 描述
gasPrice uint256
RequiredBlockConfirmationChanged(requiredBlockConfirmations: uint256)
名稱 類型 已索引 描述
requiredBlockConfirmations uint256
FeeDistributedFromAffirmation(feeAmount: uint256, transactionHash: bytes32)
名稱 類型 已索引 描述
feeAmount uint256
transactionHash bytes32
FeeDistributedFromSignatures(feeAmount: uint256, transactionHash: bytes32)
名稱 類型 已索引 描述
feeAmount uint256
transactionHash bytes32
OwnershipTransferred(previousOwner: address, newOwner: address)
名稱 類型 已索引 描述
previousOwner address representing the address of the previous owner
newOwner address representing the address of the new owner
MediatorAmountLimitExceeded(recipient: address, value: uint256, messageId: bytes32)
名稱 類型 已索引 描述
recipient address
value uint256
messageId bytes32
AmountLimitExceeded(recipient: address, value: uint256, transactionHash: bytes32, messageId: bytes32)
名稱 類型 已索引 描述
recipient address
value uint256
transactionHash bytes32
messageId bytes32
AssetAboveLimitsFixed(messageId: bytes32, value: uint256, remaining: uint256)
名稱 類型 已索引 描述
messageId bytes32
value uint256
remaining uint256