HomeBridgeErcToNative
Gnosis0x7301cfa0e1756b71869e93d4e4dca5c7d0eb0aa6
Proxy 实现合约: 0xe6998b0c03d3cb9ee8c04f266e573c7fa8782846
Solidity v0.4.24+commit.e67f0147
概览
读取函数
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 |
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 |
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 |
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 |
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 |
Checks whether the contract has been initialized.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool | True if the contract has been initialized, otherwise false.✨ AI |
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 |
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 |
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 |
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 |
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 |
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 |
Return the address of the contract that receives block rewards.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address | Address of the block reward recipient contract.✨ AI |
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 |
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 |
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 |
Returns the current hashi manager address.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address | Address of the configured hashi manager contract.✨ AI |
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 |
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 |
Returns whether the HASHI feature is currently enabled.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool | Boolean indicating if HASHI is enabled (true) or disabled (false).✨ AI |
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 |
Returns the address that currently owns and administrates the contract.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address | the address of the owner |
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 |
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 |
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 |
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 |
Returns the maximum amount allowed to bridge in a single transaction.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | minimum of maxPerTx parameter and remaining daily quota. |
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 |
Returns the block number at which this contract was deployed.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | Deployment block number (uint256).✨ AI |
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 |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | total amount of all bridge operations above limits. |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | int256 | decimal shift. |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address | address of the fee manager contract. |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 |
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _amount | uint256 |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| mode | bytes4 | manager mode identifier, or zero bytes otherwise. |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 |
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _number | uint256 |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 |
写入函数
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _blockReward | address |
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _fee | uint256 | new value for fee percentage. |
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _fee | uint256 | new value for fee percentage. |
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _dailyLimit | uint256 |
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _receiver | address |
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _contract | address |
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _feeManager | address | address of the new fee manager contract, or zero address to disable fee collection. |
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| signature | bytes | |
| message | bytes |
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _token | address | address of the claimed token or address(0) for native coins. |
| _to | address | address of the tokens/coins receiver. |
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| data | bytes |
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _validatorContract | address | |
| _dailyLimitMaxPerTxMinPerTxArray | uint256[3] | |
| _homeGasPrice | uint256 | |
| _requiredBlockConfirmations | uint256 | |
| _blockReward | address | |
| _foreignDailyLimitForeignMaxPerTxArray | uint256[2] | |
| _owner | address | |
| _decimalShift | int256 |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool |
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| 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. |
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _minPerTx | uint256 |
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _blockConfirmations | uint256 |
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _dailyLimit | uint256 |
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _hashiManager | address |
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _gasPrice | uint256 | new value for the gas price. |
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _maxPerTx | uint256 |
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | |
| chainId | uint256 | |
| sender | address | |
| threshold | uint256 | |
| adapters | address[] | |
| data | bytes |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bytes |
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _validatorContract | address | |
| _dailyLimitMaxPerTxMinPerTxArray | uint256[3] | |
| _homeGasPrice | uint256 | |
| _requiredBlockConfirmations | uint256 | |
| _blockReward | address | |
| _foreignDailyLimitForeignMaxPerTxArray | uint256[2] | |
| _owner | address | |
| _feeManager | address | |
| _homeFeeForeignFeeArray | uint256[2] | |
| _decimalShift | int256 |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool |
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| 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. |
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _maxPerTx | uint256 |
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| newOwner | address | the address to transfer ownership to. |
事件
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| recipient | address | ||
| value | uint256 | ||
| nonce | bytes32 | ||
| token | address |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| recipient | address | ||
| value | uint256 | ||
| nonce | bytes32 |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| signer | address | ✓ | |
| messageHash | bytes32 |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| signer | address | ✓ | |
| nonce | bytes32 |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| authorityResponsibleForRelay | address | ||
| messageHash | bytes32 | ||
| NumberOfCollectedSignatures | uint256 |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| newLimit | uint256 |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| newLimit | uint256 |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| gasPrice | uint256 |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| requiredBlockConfirmations | uint256 |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| feeAmount | uint256 | ||
| transactionHash | bytes32 | ✓ |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| feeAmount | uint256 | ||
| transactionHash | bytes32 | ✓ |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| previousOwner | address | representing the address of the previous owner | |
| newOwner | address | representing the address of the new owner |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| recipient | address | ||
| value | uint256 | ||
| messageId | bytes32 | ✓ |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| recipient | address | ||
| value | uint256 | ||
| transactionHash | bytes32 | ✓ | |
| messageId | bytes32 |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| messageId | bytes32 | ✓ | |
| value | uint256 | ||
| remaining | uint256 |