GoldToken

Celo ERC-20 Token

0x471ece3750da237f93b8e339c536989b8978a438

Proxy 实现合约: 0xfea1b35f1d5f2a58532a70e7a32e6f2d3bc4f7b1

Solidity v0.5.13+commit.5b0b510c

Fungible token following the ERC-20 standard.

🤖
通过你的 AI 查询此合约
引用: 0x471ece3750da237f93b8e339c536989b8978a438
示例提示词: "Tell me the current state of celo/0x471ece3750da237f93b8e339c536989b8978a438"
还没有接入 AI?→ mcp.smarts.md
Celo 在 Smarts 上是仅文档链:源代码和 ABI 已索引,但当前不提供实时链上数据(状态、最新事件、管理员画像)。AI 代理仍可通过 MCP 调用 get_contract_info 和 get_contract_source。

概览

读取函数
13
写入函数
11
事件
5

读取函数

allocatedSupply() view

Returns the total number of tokens that have been allocated.✨ AI

返回值

名称 类型 描述
uint256 The total amount of allocated CELO.
allowance(_owner: address, spender: address) view

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.
balanceOf(_owner: address) view

Gets the balance of the specified address.

参数

名称 类型 描述
_owner address The address to query the balance of.

返回值

名称 类型 描述
uint256 The balance of the specified address.
decimals() view

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.
getBurnedAmount() view

Gets the amount of CELO that has been burned.

返回值

名称 类型 描述
uint256 The total amount of CELO that has been sent to the burn address.
getVersionNumber() pure

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.
initialized() view

Indicates whether the token contract has been initialized.✨ AI

返回值

名称 类型 描述
bool True when the contract has been initialized; false otherwise.✨ AI
isOwner() view

Return true when the caller is the contract owner.✨ AI

开发者: Returns true if the caller is the current owner.

返回值

名称 类型 描述
bool True if the caller is the contract owner, false otherwise.✨ AI
name() view

Returns the token name shown to users.✨ AI

返回值

名称 类型 描述
string The name of the CELO token.
owner() view

Returns the address of the contract owner.✨ AI

开发者: Returns the address of the current owner.

返回值

名称 类型 描述
address The address of the account that owns the contract.✨ AI
registry() view

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
symbol() view

Return the token's short symbol shown in wallets and exchanges.✨ AI

返回值

名称 类型 描述
string The symbol of the CELO token.
totalSupply() view

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(spender: address, value: uint256) nonpayable

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.
burn(value: uint256) nonpayable

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.
decreaseAllowance(spender: address, value: uint256) nonpayable

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.
increaseAllowance(spender: address, value: uint256) nonpayable

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.
initialize(registryAddress: address) nonpayable

Used in place of the constructor to allow the contract to be upgradable via proxy.

参数

名称 类型 描述
registryAddress address Address of the Registry contract.
renounceOwnership() nonpayable

Permanently renounce contract ownership, leaving no owner and disabling owner-only functions.✨ AI

开发者: Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner.
setRegistry(registryAddress: address) nonpayable

Updates the address pointing to a Registry contract.

参数

名称 类型 描述
registryAddress address The address of a registry contract for routing to other contracts.
transfer(to: address, value: uint256) nonpayable

Transfer tokens from the caller to the specified address.✨ AI

开发者: Moves `amount` tokens from the caller's account to `recipient`. Returns a boolean value indicating whether the operation succeeded. Emits a {Transfer} event.

参数

名称 类型 描述
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
transferFrom(from: address, to: address, value: uint256) nonpayable

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.
transferOwnership(newOwner: address) nonpayable

Transfer ownership of the token contract to a new owner address.✨ AI

开发者: Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner.

参数

名称 类型 描述
newOwner address Address that will become the new owner of the contract.✨ AI
transferWithComment(to: address, value: uint256, comment: string) nonpayable

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.

事件

Approval(owner: address, spender: address, value: uint256)
名称 类型 已索引 描述
owner address
spender address
value uint256
OwnershipTransferred(previousOwner: address, newOwner: address)
名称 类型 已索引 描述
previousOwner address
newOwner address
RegistrySet(registryAddress: address)
名称 类型 已索引 描述
registryAddress address
Transfer(from: address, to: address, value: uint256)
名称 类型 已索引 描述
from address
to address
value uint256
TransferComment(comment: string)
名称 类型 已索引 描述
comment string