0xba100000625a3754423978a60c9317c58a424e3d
Solidity v0.6.8+commit.0bbfe453
Fungible token following the ERC-20 standard.
管理与风险
谁能修改规则?
Detected mintable and role based controls from the verified ABI.
概览
读取函数
Block #25,493,682 · 46s agoReturn the bytes32 identifier for the DEFAULT_ADMIN_ROLE.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bytes32 | bytes32 identifier for the default admin role, used with AccessControl checks.✨ AI |
Returns the domain separator used for EIP-712 typed data signing.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bytes32 | The EIP-712 domain separator as a bytes32 value used to scope typed signatures.✨ AI |
Returns the role identifier for the minter role.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bytes32 | bytes32 role identifier for the minter role, used to grant or revoke minting rights via AccessControl✨ AI |
Returns the EIP-712 PERMIT type hash used to construct permit signature digests.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bytes32 | The PERMIT_TYPEHASH constant (bytes32) used in EIP-712 digest construction for permit signatures.✨ AI |
Return the role identifier that authorizes snapshot creation.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bytes32 | The bytes32 role identifier for SNAPSHOT_ROLE used by access control to permit snapshot operations.✨ AI |
Return the remaining token allowance that an owner granted to a spender.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| owner | address | Address of the token holder who granted the allowance.✨ AI |
| spender | address | Address allowed to spend tokens on behalf of the owner.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | Remaining allowance as a uint256 representing how many tokens spender may transfer from owner.✨ AI |
Returns the token balance of the given account.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| account | address | Address whose token balance will be returned.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | The account's token balance in the token's smallest units (uint256).✨ AI |
Returns the token balance of an account at a specific snapshot.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| account | address | Address whose balance is queried.✨ AI |
| snapshotId | uint256 | Snapshot id at which to read the balance.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | The account's token balance at the given snapshot as a uint256.✨ AI |
Returns the number of decimal places used by the token.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint8 | The token's decimals as a uint8, representing how many decimal places to display balances and amounts.✨ AI |
Returns the admin role that controls the specified role.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| role | bytes32 | Role identifier (bytes32) to query the admin for.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bytes32 | Admin role (bytes32) that can grant or revoke the specified role.✨ AI |
Return the address of the account that holds a specific role at the given index.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| role | bytes32 | Role identifier (bytes32) whose member to query.✨ AI |
| index | uint256 | Zero-based index of the member within the role's enumerable set.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address | Address of the role member at the specified index.✨ AI |
Return the number of accounts that currently hold the specified role.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| role | bytes32 | Role identifier (bytes32) used to look up members.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | The number of accounts currently assigned to the role.✨ AI |
Checks whether an account holds a specific role and returns true if it does.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| role | bytes32 | Role identifier as a bytes32 value (usually a keccak256 hash).✨ AI |
| account | address | Address of the account to check for the role.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool | True if the account has the specified role, otherwise false.✨ AI |
Returns the token's name.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | string | The human-readable name of the token.✨ AI |
Returns the current permit nonce for the given address.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | The uint256 nonce used for permits (EIP-2612) for that address, preventing signature replay.✨ AI |
Returns the token's symbol.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | string | The ERC-20 token symbol (short identifier, e.g. "BAL").✨ AI |
Returns the total number of tokens in circulation for the BalancerGovernanceToken.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | The total token supply as a uint256, representing the current number of tokens in existence.✨ AI |
Get the total token supply recorded at a past snapshot.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| snapshotId | uint256 | Identifier of the snapshot (block number when the snapshot was taken).✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | Total token supply at the given snapshot, expressed in the token's smallest unit.✨ AI |
Returns the token contract's version string.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | string | A human-readable string containing the contract version (e.g., "1.0.0").✨ AI |
写入函数
Approve spender to transfer up to amount of your tokens from your account.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| spender | address | Address allowed to spend the tokens.✨ AI |
| amount | uint256 | Maximum number of tokens the spender is allowed to transfer.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool | True if the approval succeeded and the allowance was set, otherwise false.✨ AI |
Burns a specified amount of the caller's tokens, decreasing the caller's balance and the total supply.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| amount | uint256 | Number of tokens to burn from the caller's balance.✨ AI |
Burns tokens from the given account using the caller's allowance and reduces total supply.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| account | address | Address to burn tokens from.✨ AI |
| amount | uint256 | Number of tokens to burn, expressed in the token's smallest unit (wei-like).✨ AI |
Decrease the caller's ERC-20 allowance for spender by subtractedValue.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| spender | address | Address allowed to spend tokens whose allowance will be reduced.✨ AI |
| subtractedValue | uint256 | Amount of tokens to subtract from the spender's current allowance.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool | Boolean indicating whether the allowance was successfully decreased.✨ AI |
Grants a role to an account.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| role | bytes32 | Role identifier as a bytes32 value.✨ AI |
| account | address | Address that will receive the role.✨ AI |
Increase spender's allowance by addedValue and return true.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| spender | address | Address permitted to spend tokens on the caller's behalf.✨ AI |
| addedValue | uint256 | Number of tokens to add to spender's existing allowance.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool | True if the allowance was successfully increased.✨ AI |
Mint new tokens and assign them to a specified address.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| to | address | Address that will receive the newly minted tokens.✨ AI |
| amount | uint256 | Number of tokens to mint, specified in the token's smallest unit.✨ AI |
Permit a spender to use the owner's tokens using an off-chain EIP-2612 signature.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| owner | address | Address granting the allowance.✨ AI |
| spender | address | Address receiving the allowance.✨ AI |
| value | uint256 | Amount of tokens to approve (in smallest unit).✨ AI |
| deadline | uint256 | Unix timestamp after which the signature is invalid.✨ AI |
| v | uint8 | Signature recovery id component.✨ AI |
| r | bytes32 | Signature r component.✨ AI |
| s | bytes32 | Signature s component.✨ AI |
Allows an account to renounce a role it currently holds.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| role | bytes32 | Role identifier as a bytes32 value.✨ AI |
| account | address | Account address that will renounce the role; must be the caller (msg.sender).✨ AI |
Revokes a granted role from the specified account.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| role | bytes32 | The role identifier (bytes32) to revoke.✨ AI |
| account | address | The account address to remove the role from.✨ AI |
Create a new snapshot that records current balances and total supply for governance and historical queries.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| recipient | address | |
| amount | uint256 |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool |
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| sender | address | |
| recipient | address | |
| amount | uint256 |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool |
事件
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| owner | address | ✓ | |
| spender | address | ✓ | |
| value | uint256 |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| role | bytes32 | ✓ | |
| account | address | ✓ | |
| sender | address | ✓ |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| role | bytes32 | ✓ | |
| account | address | ✓ | |
| sender | address | ✓ |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| id | uint256 |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| from | address | ✓ | |
| to | address | ✓ | |
| value | uint256 |