Honey
Berachain ERC-20 Token0xfcbd14dc51f0a4d49d5e53c2e0950e0bc26d0dce
Proxy 实现合约: 0x96b1a552a97da5503343d0f9ff2766c616e62905
Solidity v0.8.26+commit.8a97fa7a
Fungible token following the ERC-20 standard.
概览
读取函数
Return the EIP-712 type hash used for canceling authorizations.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bytes32 | The bytes32 EIP-712 type hash for the CancelAuthorization struct used to verify cancel signatures.✨ AI |
Returns the role identifier used for the contract's default admin role.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bytes32 | A bytes32 identifier that represents the DEFAULT_ADMIN_ROLE constant.✨ AI |
Returns the contract's EIP-712 domain separator used to build typed-data signatures.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| result | bytes32 | EIP-712 domain separator (bytes32) used when encoding or verifying permit and other typed-data signatures.✨ AI |
Returns the EIP-712 type hash used for permit signatures.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bytes32 | EIP-712 PERMIT type hash (bytes32) used to construct the permit signature digest.✨ AI |
Return the EIP-712 type hash used for ReceiveWithAuthorization messages.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bytes32 | The bytes32 EIP-712 type hash for the ReceiveWithAuthorization struct.✨ AI |
Returns the EIP-712 type hash used for authorized token transfers.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bytes32 | The keccak256 EIP-712 type hash for transferWithAuthorization messages (bytes32).✨ AI |
Return the contract's upgrade interface version string.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | string | A string identifying the upgrade interface version supported by this contract.✨ AI |
Returns the remaining number of tokens that spender is allowed to transfer from owner.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| owner | address | Address of the token owner.✨ AI |
| spender | address | Address authorized to spend the owner's tokens.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| result | uint256 | Remaining allowance as a uint256 representing token units.✨ AI |
Returns the state of an authorization
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| authorizer | address | Authorizer's address |
| nonce | bytes32 | Nonce of the authorization |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool | True if the nonce is used |
Returns the token balance of the specified account.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| owner | address | Address whose token balance will be returned.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| result | uint256 | The token balance of the specified address as a uint256 amount.✨ AI |
Returns the number of decimals used by the token.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint8 | The number of decimal places the token uses (uint8).✨ AI |
Returns the address of the factory contract that deployed or manages this token.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address | The factory contract address associated with this token.✨ AI |
Returns the admin role that controls the specified role.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| role | bytes32 | Role identifier (bytes32) to query.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bytes32 | Admin role identifier (bytes32) that controls the given role.✨ AI |
Check whether an account holds a specific role in the contract.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| role | bytes32 | Role identifier as a bytes32 value (commonly keccak256("ROLE_NAME")).✨ AI |
| account | address | Address to check for the role.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool | True if the account has the specified role; otherwise false.✨ AI |
Checks whether the given wallet address is marked as blacklisted in the token contract.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| wallet | address | Address to check for blacklist status.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| blacklisted | bool | True if the wallet is blacklisted and subject to restrictions; otherwise false.✨ AI |
Returns the token's name as a human-readable string.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | string | A human-readable name for the token as a string.✨ AI |
Returns the current nonce for the given owner address.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| owner | address | Address of the account whose nonce is being queried.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| result | uint256 | The current nonce (uint256) for the owner, used to validate and prevent replay of permits.✨ AI |
Indicates whether token transfers are currently paused.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool | True if the contract is paused (token transfers disabled), otherwise false.✨ AI |
Return the contract's proxiable UUID used to identify the implementation storage slot.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bytes32 | Bytes32 UUID that identifies the storage slot used for the contract implementation (per UUPS/EIP-1822/EIP-1967).✨ AI |
Check whether the contract implements the interface with the given interfaceId.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| interfaceId | bytes4 | Interface identifier (bytes4), typically the first 4 bytes of keccak256 of the interface's signatures.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool | True if the contract implements the interface specified by interfaceId (ERC-165 semantics), otherwise false.✨ AI |
Returns the token symbol for the Honey ERC-20 token.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | string | The token's short symbol (e.g., HNY).✨ AI |
Returns the total number of Honey tokens in existence.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| result | uint256 | Total supply as a uint256, expressed in the token's smallest base unit.✨ AI |
Version string for the EIP712 domain separator
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | string | Version string |
写入函数
Approve a spender to transfer up to a specified amount of tokens on the caller's behalf.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| spender | address | Address authorized to spend the tokens.✨ AI |
| amount | uint256 | Maximum token amount the spender is allowed to transfer.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool | True if the approval operation succeeded, otherwise false.✨ AI |
Burn Honey from an account.
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| from | address | The account to burn Honey from. |
| amount | uint256 | The amount of Honey to burn. |
Cancel an authorization previously issued by an address.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| authorizer | address | Address that issued the original authorization.✨ AI |
| nonce | bytes32 | Unique nonce identifying the specific authorization to cancel.✨ AI |
| v | uint8 | |
| r | bytes32 | |
| s | bytes32 |
Cancel an authorization previously issued by an address.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| authorizer | address | Address that issued the original authorization.✨ AI |
| nonce | bytes32 | Unique nonce identifying the specific authorization to cancel.✨ AI |
| signature | bytes | Signature bytes proving the authorizer authorized this cancellation.✨ AI |
Grants a specific role to an account, updating the contract's access control state.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| role | bytes32 | Role identifier as a bytes32 value (typically a keccak256 hash or declared constant).✨ AI |
| account | address | Address that will receive the specified role.✨ AI |
Initialize the token's governance and factory addresses and configure the contract's initial state.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _governance | address | Address assigned as governance that receives administrative permissions.✨ AI |
| _factory | address | Address of the factory contract authorized to interact with or mint tokens.✨ AI |
Initialize the V1 upgrade to migrate contract state and enable the updated token behavior.✨ AI
Mint Honey to the receiver.
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| to | address | The receiver address. |
| amount | uint256 | The amount of Honey to mint. |
Allow a spender to use the owner's tokens via an off-chain signature (EIP-2612 permit) before the deadline.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| owner | address | Token owner who produced and signed the permit.✨ AI |
| spender | address | Address granted permission to spend the owner's tokens.✨ AI |
| value | uint256 | Amount of tokens the spender is allowed to use (in the token's smallest unit).✨ AI |
| deadline | uint256 | Unix timestamp after which the permit is no longer valid.✨ AI |
| signature | bytes |
Allow a spender to use the owner's tokens via an off-chain signature (EIP-2612 permit) before the deadline.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| owner | address | Token owner who produced and signed the permit.✨ AI |
| spender | address | Address granted permission to spend the owner's tokens.✨ AI |
| value | uint256 | Amount of tokens the spender is allowed to use (in the token's smallest unit).✨ AI |
| deadline | uint256 | Unix timestamp after which the permit is no longer valid.✨ AI |
| v | uint8 | Recovery byte of the owner's ECDSA signature.✨ AI |
| r | bytes32 | First 32 bytes of the owner's ECDSA signature.✨ AI |
| s | bytes32 | Second 32 bytes of the owner's ECDSA signature.✨ AI |
Receive a transfer with a signed authorization from the payer
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| from | address | Payer's address (Authorizer) |
| to | address | Payee's address |
| value | uint256 | Amount to be transferred |
| validAfter | uint256 | The time after which this is valid (unix time) |
| validBefore | uint256 | The time before which this is valid (unix time) |
| nonce | bytes32 | Unique nonce |
| signature | bytes |
Receive a transfer with a signed authorization from the payer
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| from | address | Payer's address (Authorizer) |
| to | address | Payee's address |
| value | uint256 | Amount to be transferred |
| validAfter | uint256 | The time after which this is valid (unix time) |
| validBefore | uint256 | The time before which this is valid (unix time) |
| nonce | bytes32 | Unique nonce |
| v | uint8 | v of the signature |
| r | bytes32 | r of the signature |
| s | bytes32 | s of the signature |
Renounce a role you hold by confirming with your account address.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| role | bytes32 | The role identifier to renounce, provided as a bytes32 value.✨ AI |
| callerConfirmation | address | Your address used to confirm the renunciation; must be equal to msg.sender.✨ AI |
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| role | bytes32 | |
| account | address |
Allows to pause transfer of Honey for a specific wallet
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| wallet | address | |
| status | bool |
Allows to pause transfer of Honey
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| pause | bool |
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| to | address | |
| amount | uint256 |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool |
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| from | address | |
| to | address | |
| amount | uint256 |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool |
Execute a transfer with a signed authorization
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| from | address | Payer's address (Authorizer) |
| to | address | Payee's address |
| value | uint256 | Amount to be transferred |
| validAfter | uint256 | The time after which this is valid (unix time) |
| validBefore | uint256 | The time before which this is valid (unix time) |
| nonce | bytes32 | Unique nonce |
| signature | bytes |
Execute a transfer with a signed authorization
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| from | address | Payer's address (Authorizer) |
| to | address | Payee's address |
| value | uint256 | Amount to be transferred |
| validAfter | uint256 | The time after which this is valid (unix time) |
| validBefore | uint256 | The time before which this is valid (unix time) |
| nonce | bytes32 | Unique nonce |
| v | uint8 | v of the signature |
| r | bytes32 | r of the signature |
| s | bytes32 | s of the signature |
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| newImplementation | address | |
| data | bytes |
事件
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| owner | address | ✓ | |
| spender | address | ✓ | |
| amount | uint256 |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| authorizer | address | ✓ | |
| nonce | bytes32 | ✓ |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| authorizer | address | ✓ | |
| nonce | bytes32 | ✓ |
Emitted when the fee receiver address is set.
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| wallet | address | ||
| status | bool |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| version | uint64 |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| account | address |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| role | bytes32 | ✓ | |
| previousAdminRole | bytes32 | ✓ | |
| newAdminRole | bytes32 | ✓ |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| role | bytes32 | ✓ | |
| account | address | ✓ | |
| sender | address | ✓ |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| role | bytes32 | ✓ | |
| account | address | ✓ | |
| sender | address | ✓ |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| from | address | ✓ | |
| to | address | ✓ | |
| amount | uint256 |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| account | address |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| implementation | address | ✓ |