PermittableToken
Gnosis ERC-20 Token0x9c58bacc331c9aa871afd802db6379a98e80cedb
Proxy 實作合約: 0xf8d1677c8a0c961938bf2f9adc3f3cfda759a9d9
Solidity v0.4.24+commit.e67f0147
Fungible token following the ERC-20 standard.
概覽
讀取函式
Returns true if minting has been permanently finished and no further minting is allowed.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | true if minting is permanently finished; false if minting can still occur.✨ AI |
Returns the token's name.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | string | The token's name as a human-readable string.✨ AI |
Returns the total number of tokens in circulation.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 | Total number of tokens existing (uint256), i.e., the token supply.✨ AI |
Returns the EIP-2612 permit typehash used to construct permit signatures.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bytes32 | The EIP-712 type hash (bytes32) for the permit struct used in signature verification.✨ AI |
Returns the number of decimal places used by the token.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint8 | uint8: the number of decimal places for token amounts, used to format values for display and UI✨ AI |
Return the EIP-712 domain separator used to validate permit signatures.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bytes32 | The EIP-712 domain separator (bytes32) used to build and verify permit signatures.✨ AI |
Returns the token contract's semantic version string.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | string | The contract version string, typically a semantic version identifier (e.g., "1.2.3").✨ AI |
Returns the token balance of the specified account address.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _owner | address | The address to query the the balance of. |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 | An uint256 representing the amount owned by the passed address. |
Checks whether the given address is registered as a bridge for the token.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _address | address | Address to check for bridge registration.✨ AI |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | True if the address is a registered bridge, otherwise false.✨ AI |
Return the current permit nonce for an account to support off-chain signature replay protection.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 | The current uint256 nonce associated with the address; increments after each successful permit.✨ AI |
Return the token interfaces semantic version as major, minor, and patch numbers.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| major | uint64 | major: The semantic version major number, incremented for incompatible API changes.✨ AI |
| minor | uint64 | minor: The semantic version minor number, incremented for backward-compatible additions.✨ AI |
| patch | uint64 | patch: The semantic version patch number, incremented for backward-compatible bug fixes.✨ AI |
Returns the address of the account that currently owns the contract.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address | The owner's address (account with administrative privileges over the contract).✨ AI |
Returns the token's symbol as a short identifier string.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | string | The token's symbol as a string, e.g., "DAI" or "USDC".✨ AI |
Returns the legacy EIP-712 type hash used by the contract's permit function.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bytes32 | bytes32 legacy type hash for permit signatures (EIP-712 type hash for legacy permit format).✨ AI |
Return the address of the bridge contract used for token bridging.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address | The address of the bridge contract authorized to perform cross-chain token transfers.✨ AI |
Returns the remaining number of tokens that _spender is allowed to spend on behalf of _owner.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _owner | address | address The address which owns the funds. |
| _spender | address | address The address which will spend the funds. |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 | A uint256 specifying the amount of tokens still available for the spender. |
Returns the permit expiration timestamp for a given owner and spender.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address | |
| — | address |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 | Expiration timestamp as a uint256 Unix time (seconds); 0 if no expiration is set.✨ AI |
寫入函式
Allow a specified address to spend up to a given amount of your tokens.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _to | address | Address granted permission to spend tokens.✨ AI |
| _value | uint256 | The amount of tokens to be spent. |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| result | bool | true if the allowance was successfully set.✨ AI |
Sets the bridge contract address that the token contract will recognize for bridge operations.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _bridgeContract | address | Address to assign as the bridge contract which receives bridge-specific permissions.✨ AI |
Transfer tokens from _sender to _recipient using an approved allowance.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _sender | address | Account to debit tokens from.✨ AI |
| _recipient | address | Account to credit tokens to.✨ AI |
| _amount | uint256 | Number of tokens to transfer.✨ AI |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | True if the transfer succeeded.✨ AI |
Increase the caller's allowance for a spender by a specified amount.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _to | address | The address which will spend the funds. |
| _addedValue | uint256 | The amount of tokens to increase the allowance by. |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| result | bool | True if the allowance was successfully increased.✨ AI |
Transfer tokens to a recipient and then invoke the recipient contract with the provided data.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _to | address | Recipient address that will receive tokens and the subsequent callback call.✨ AI |
| _value | uint256 | Amount of tokens to transfer to the recipient, in token smallest units.✨ AI |
| _data | bytes | Arbitrary calldata forwarded to the recipient contract after the transfer.✨ AI |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | True if the token transfer and the subsequent contract call both succeeded, otherwise false.✨ AI |
Mints new tokens and assigns them to the specified address, increasing the contract's total supply.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _to | address | The address that will receive the minted tokens. |
| _amount | uint256 | The amount of tokens to mint. |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | A boolean that indicates if the operation was successful. |
Burns a specified amount of tokens from the caller's balance, reducing the total supply.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _value | uint256 | The amount of token to be burned. |
Decrease the caller's token allowance for a specified spender by a given amount.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _spender | address | The address which will spend the funds. |
| _subtractedValue | uint256 | The amount of tokens to decrease the allowance by. |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | True if the call succeeds and the allowance is updated, false otherwise.✨ AI |
Recover ERC-20 tokens accidentally sent to this contract by transferring them to the specified recipient.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _token | address | address of the claimed token or address(0) for native coins. |
| _to | address | address of the tokens/coins receiver. |
Renouncing to ownership will leave the contract without an owner. It will not be possible to call the functions with the `onlyOwner` modifier anymore.
Permanently disable further token minting when called by an authorized account.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | True if the operation was successful. |
Set a spender's allowance using an off-chain signature; supports expiry and nonce replay protection.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _holder | address | The holder's address. |
| _spender | address | The spender's address. |
| _nonce | uint256 | The nonce taken from `nonces(_holder)` public getter. |
| _expiry | uint256 | The allowance expiration date (unix timestamp in UTC). Can be zero for no expiration. Forced to zero if `_allowed` is `false`. Note that timestamps are not precise, malicious miner/validator can manipulate them to some extend. Assume that there can be a 900 seconds time delta between the desired timestamp and the actual expiration. |
| _allowed | bool | True to enable unlimited allowance for the spender by the holder. False to disable. |
| _v | uint8 | A final byte of signature (ECDSA component). |
| _r | bytes32 | The first 32 bytes of signature (ECDSA component). |
| _s | bytes32 | The second 32 bytes of signature (ECDSA component). |
Decreases the caller's allowance for a spender by a specified amount and emits an Approval event.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| spender | address | Address authorized to spend the caller's tokens.✨ AI |
| subtractedValue | uint256 | Amount to subtract from the spender's current allowance.✨ AI |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | True if the allowance was decreased successfully.✨ AI |
Transfer tokens from the caller to the specified recipient address.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _to | address | The address to transfer to. |
| _value | uint256 | The amount to be transferred. |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | True if the transfer succeeded.✨ AI |
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _to | address | The address of the recipient. |
| _amount | uint256 | The value to transfer. |
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _from | address | The address of the sender. |
| _to | address | The address of the recipient. |
| _amount | uint256 | The value to transfer. |
Set a spender's allowance using an off-chain signature; supports expiry and nonce replay protection.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _holder | address | The holder's address. |
| _spender | address | The spender's address. |
| _value | uint256 | |
| _deadline | uint256 | |
| _v | uint8 | A final byte of signature (ECDSA component). |
| _r | bytes32 | The first 32 bytes of signature (ECDSA component). |
| _s | bytes32 | The second 32 bytes of signature (ECDSA component). |
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _spender | address | The address which will spend the funds. |
| _addedValue | uint256 | The amount of tokens to increase the allowance by. |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool |
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _from | address | The address of the holder. |
| _amount | uint256 | The value to transfer. |
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _newOwner | address | The address to transfer ownership to. |
事件
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| to | address | ✓ | |
| amount | uint256 |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| previousOwner | address | ✓ |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| previousOwner | address | ✓ | |
| newOwner | address | ✓ |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| burner | address | ✓ | |
| value | uint256 |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| from | address | ✓ | |
| to | address | ✓ | |
| value | uint256 | ||
| data | bytes |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| owner | address | ✓ | |
| spender | address | ✓ | |
| value | uint256 |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| from | address | ✓ | |
| to | address | ✓ | |
| value | uint256 |