GoldToken
Celo ERC-20 Token0x471ece3750da237f93b8e339c536989b8978a438
Proxy 實作合約: 0xfea1b35f1d5f2a58532a70e7a32e6f2d3bc4f7b1
Solidity v0.5.13+commit.5b0b510c
Fungible token following the ERC-20 standard.
概覽
讀取函式
Returns the total number of tokens that have been allocated.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 | The total amount of allocated CELO. |
Gets the amount of owner's CELO allowed to be spent by spender.
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _owner | address | The owner of the CELO. |
| spender | address | The spender of the CELO. |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 | The amount of CELO owner is allowing spender to spend. |
Gets the balance of the specified address.
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _owner | address | The address to query the balance of. |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 | The balance of the specified address. |
Returns the number of decimal places used by the token for display and calculations.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint8 | The number of decimal places to which CELO is divisible. |
Gets the amount of CELO that has been burned.
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 | The total amount of CELO that has been sent to the burn address. |
Returns the storage, major, minor, and patch version of the contract.
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 | Storage version of the contract. |
| — | uint256 | Major version of the contract. |
| — | uint256 | Minor version of the contract. |
| — | uint256 | Patch version of the contract. |
Indicates whether the token contract has been initialized.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | True when the contract has been initialized; false otherwise.✨ AI |
Return true when the caller is the contract owner.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | True if the caller is the contract owner, false otherwise.✨ AI |
Returns the token name shown to users.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | string | The name of the CELO token. |
Returns the address of the contract owner.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address | The address of the account that owns the contract.✨ AI |
Returns the address of the registry contract associated with this token.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address | Address of the registry contract used by the token for external lookups.✨ AI |
Return the token's short symbol shown in wallets and exchanges.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | string | The symbol of the CELO token. |
Returns the total number of GoldToken tokens in existence.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 | The total amount of CELO in existence, including what the burn address holds. |
寫入函式
Approve a user to transfer CELO on behalf of another user.
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| spender | address | The address which is being approved to spend CELO. |
| value | uint256 | The amount of CELO approved to the spender. |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | True if the transaction succeeds. |
This function allows a user to burn a specific amount of tokens. Burning is implemented by sending tokens to the burn address.
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| value | uint256 | : The amount of CELO to burn. |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | True if burn was successful. |
Decreases the allowance of another user.
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| spender | address | The address which is being approved to spend CELO. |
| value | uint256 | The decrement of the amount of CELO approved to the spender. |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | True if the transaction succeeds. |
Increases the allowance of another user.
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| spender | address | The address which is being approved to spend CELO. |
| value | uint256 | The increment of the amount of CELO approved to the spender. |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | True if the transaction succeeds. |
Used in place of the constructor to allow the contract to be upgradable via proxy.
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| registryAddress | address | Address of the Registry contract. |
Permanently renounce contract ownership, leaving no owner and disabling owner-only functions.✨ AI
Updates the address pointing to a Registry contract.
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| registryAddress | address | The address of a registry contract for routing to other contracts. |
Transfer tokens from the caller to the specified address.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| to | address | Recipient address of the tokens.✨ AI |
| value | uint256 | Amount of tokens to transfer, in the token's smallest unit.✨ AI |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | True if the transfer succeeds.✨ AI |
Transfers CELO from one address to another on behalf of a user.
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| from | address | The address to transfer CELO from. |
| to | address | The address to transfer CELO to. |
| value | uint256 | The amount of CELO to transfer. |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | True if the transaction succeeds. |
Transfer ownership of the token contract to a new owner address.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| newOwner | address | Address that will become the new owner of the contract.✨ AI |
Transfers CELO from one address to another with a comment.
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| to | address | The address to transfer CELO to. |
| value | uint256 | The amount of CELO to transfer. |
| comment | string | The transfer comment |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | True if the transaction succeeds. |
事件
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| owner | address | ✓ | |
| spender | address | ✓ | |
| value | uint256 |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| previousOwner | address | ✓ | |
| newOwner | address | ✓ |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| registryAddress | address | ✓ |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| from | address | ✓ | |
| to | address | ✓ | |
| value | uint256 |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| comment | string |