NativeFiatTokenV2_2

Arc ERC-20 Token 浏览链

0xc6ad664ac6679f4ce74e10e91449c93ec1ae3ca6

Solidity v0.6.12+commit.27d51765

Fungible token following the ERC-20 standard.

🤖
通过你的 AI 查询此合约
引用: 0xc6ad664ac6679f4ce74e10e91449c93ec1ae3ca6
示例提示词: "Tell me the current state of arc/0xc6ad664ac6679f4ce74e10e91449c93ec1ae3ca6"
还没有接入 AI?→ mcp.smarts.md · 浏览链

管理与风险

谁能修改规则?

Block #32,892,427

Detected mintable, pausable, blacklistable, and ownable controls from the verified ABI.

Mintable Pausable Blacklistable Ownable

当前控制

Paused
false
Owner
0x0000000000000000000000000000000000000000 (无)
Master minter
0x0000000000000000000000000000000000000000 (无)
Pauser
0x0000000000000000000000000000000000000000 (无)
Blacklister
0x0000000000000000000000000000000000000000 (无)
Rescuer
0x0000000000000000000000000000000000000000 (无)

概览

读取函数
27
写入函数
31
事件
17

读取函数

Block #32,892,427 · just now
CANCEL_AUTHORIZATION_TYPEHASH() view → 0x158b0a9edf7a828aad02f63cd515c68ef2f50ba807396f6d12842833a1597429

Return the EIP-712 type hash used to cancel authorizations.✨ AI

返回值

名称 类型 描述
— bytes32 The bytes32 EIP-712 type hash for the 'CancelAuthorization' struct used in signature verification.✨ AI
DECIMALS_SCALING_FACTOR() view → 1,000,000,000,000

Returns the scaling factor used to convert token amounts according to the token's decimals.✨ AI

返回值

名称 类型 描述
— uint256 The scaling factor as a uint256 used to scale token amounts by the token decimals.✨ AI
DOMAIN_SEPARATOR() view → 0xe58c76ff0a6a9bb5cbd1715ee99556cffa2f54fbb00049d288f6c6f9a3794fd6

Get the EIP712 Domain Separator.

返回值

名称 类型 描述
— bytes32 The bytes32 EIP712 domain separator.
NATIVE_COIN_AUTHORITY() view → 0x1800000000000000000000000000000000000000

Returns the address authorized to manage native-coin operations for this token.✨ AI

返回值

名称 类型 描述
— address Address that holds authority over native-coin related functions and permissions.✨ AI
NATIVE_COIN_CONTROL() view → 0x1800000000000000000000000000000000000001

Return the address that controls native coin behavior for this token.✨ AI

返回值

名称 类型 描述
— address The controller address responsible for managing native-coin-related operations for this token.✨ AI
PERMIT_TYPEHASH() view → 0x6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9

Return the EIP-2612 permit typehash used for off-chain signature verification.✨ AI

返回值

名称 类型 描述
— bytes32 bytes32 permit typehash used in EIP-2612 permit signature hashing.✨ AI
RECEIVE_WITH_AUTHORIZATION_TYPEHASH() view → 0xd099cc98ef71107a616c4f0f941f04c322d8e254fe26b3c6668db87aae413de8

Returns the EIP-712 type hash used to authorize token receives via off-chain signatures.✨ AI

返回值

名称 类型 描述
— bytes32 EIP-712 type hash (bytes32) for RECEIVE_WITH_AUTHORIZATION messages used to verify off-chain authorizations.✨ AI
TRANSFER_WITH_AUTHORIZATION_TYPEHASH() view → 0x7c7c6cdb67a18743f49ec6fa9b35f50d52ed05cbed4cc592e13b44501c1a2267

Returns the EIP-712 type hash used by transferWithAuthorization.✨ AI

返回值

名称 类型 描述
— bytes32 The bytes32 EIP-712 type hash for the TransferWithAuthorization struct used in signatures.✨ AI
allowance(owner: address, spender: address) view

Returns the remaining number of tokens that spender is allowed to transfer from owner.✨ AI

开发者: Returns the remaining number of tokens that `spender` will be allowed to spend on behalf of `owner` through {transferFrom}. This is zero by default. This value changes when {approve} or {transferFrom} are called.

参数

名称 类型 描述
owner address Address of the token holder.✨ AI
spender address Address authorized to spend tokens on behalf of the owner.✨ AI

返回值

名称 类型 描述
— uint256 Remaining allowance as a uint256 (token smallest units) that spender may transfer from owner.✨ AI
authorizationState(authorizer: address, nonce: bytes32) view

Returns the state of an authorization

开发者: Nonces are randomly generated 32-byte data unique to the authorizer's address

参数

名称 类型 描述
authorizer address Authorizer's address
nonce bytes32 Nonce of the authorization

返回值

名称 类型 描述
— bool True if the nonce is used
balanceOf(account: address) view

Returns the token balance of the specified account.✨ AI

开发者: Returns the amount of tokens owned by `account`.

参数

名称 类型 描述
account address Address whose token balance will be returned.✨ AI

返回值

名称 类型 描述
— uint256 The account's token balance as a uint256 in the token's smallest unit.✨ AI
blacklister() view → 0x0000000000000000000000000000000000000000

Returns the address assigned as the contract's blacklister.✨ AI

返回值

名称 类型 描述
— address The address that has the permission to blacklist accounts.✨ AI
currency() view →

Return the token's fiat currency identifier.✨ AI

返回值

名称 类型 描述
— string The token's currency identifier string, typically an ISO 4217 code such as "USD" or a custom label.✨ AI
decimals() view → 0

Return the number of decimal places the token uses for UIs and calculations.✨ AI

返回值

名称 类型 描述
— uint8 The token's decimals as a uint8: the number of decimal places used for balances and amounts.✨ AI
isBlacklisted(_account: address) view

Checks if account is blacklisted.

参数

名称 类型 描述
_account address The address to check.

返回值

名称 类型 描述
— bool True if the account is blacklisted, false if the account is not blacklisted.
isMinter(account: address) view

Checks if an account is a minter.

参数

名称 类型 描述
account address The address to check.

返回值

名称 类型 描述
— bool True if the account is a minter, false if the account is not a minter.
masterMinter() view → 0x0000000000000000000000000000000000000000

Get the address of the current master minter.✨ AI

返回值

名称 类型 描述
— address The address of the master minter authorized to add or remove minter roles.✨ AI
minterAllowance(minter: address) view

Gets the minter allowance for an account.

参数

名称 类型 描述
minter address The address to check.

返回值

名称 类型 描述
— uint256 The remaining minter allowance for the account.
name() view →

Return the token's user-facing name.✨ AI

返回值

名称 类型 描述
— string The ERC-20 token name string, suitable for display in user interfaces.✨ AI
nonces(owner: address) view

Nonces for permit

参数

名称 类型 描述
owner address Token owner's address (Authorizer)

返回值

名称 类型 描述
— uint256 Next nonce
owner() view → 0x0000000000000000000000000000000000000000

Returns the current contract owner's address.✨ AI

开发者: Tells the address of the owner

返回值

名称 类型 描述
— address the address of the owner
paused() view → false

Return true when the token contract is paused, disabling transfers and other mutative actions.✨ AI

返回值

名称 类型 描述
— bool True if the contract is paused and transfers or other state-changing operations are disabled.✨ AI
pauser() view → 0x0000000000000000000000000000000000000000

Returns the address currently authorized to pause and unpause the token contract.✨ AI

返回值

名称 类型 描述
— address Address with the pauser role that can call the contract's pause and unpause functions.✨ AI
rescuer() view → 0x0000000000000000000000000000000000000000

Returns current rescuer

返回值

名称 类型 描述
— address Rescuer's address
symbol() view →

Returns the token's symbol for display in wallets and user interfaces.✨ AI

返回值

名称 类型 描述
— string The token symbol as a string (for example "ETH"), used by wallets and UIs.✨ AI
totalSupply() view → 1,531,857,100,688,804

Return the total number of tokens in circulation.✨ AI

开发者: Returns the amount of tokens in existence.

返回值

名称 类型 描述
— uint256 Total token supply as a uint256 representing all tokens in existence.✨ AI
version() pure → 2

Version string for the EIP712 domain separator

返回值

名称 类型 描述
— string Version string

写入函数

approve(spender: address, value: uint256) nonpayable

Set the allowance for spender to spend tokens from the caller's balance.✨ AI

开发者: Sets `amount` as the allowance of `spender` over the caller's tokens. Returns a boolean value indicating whether the operation succeeded. IMPORTANT: Beware that changing an allowance with this method brings the risk that someone may use both the old and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this race condition is to first reduce the spender's allowance to 0 and set the desired value afterwards: https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 Emits an {Approval} event.

参数

名称 类型 描述
spender address Address allowed to transfer tokens on behalf of the caller.✨ AI
value uint256 Maximum token amount the spender is allowed to transfer.✨ AI

返回值

名称 类型 描述
— bool true if the approval was successful.✨ AI
blacklist(_account: address) nonpayable

Adds account to blacklist.

参数

名称 类型 描述
_account address The address to blacklist.
burn(_amount: uint256) nonpayable

Allows a minter to burn some of its own tokens.

开发者: The caller must be a minter, must not be blacklisted, and the amount to burn should be less than or equal to the account's balance.

参数

名称 类型 描述
_amount uint256 the amount of tokens to be burned.
cancelAuthorization(authorizer: address, nonce: bytes32, v: uint8, r: bytes32, s: bytes32) nonpayable

Attempt to cancel an authorization

开发者: Works only if the authorization is not yet used.

参数

名称 类型 描述
authorizer address Authorizer's address
nonce bytes32 Nonce of the authorization
v uint8 v of the signature
r bytes32 r of the signature
s bytes32 s of the signature
cancelAuthorization(authorizer: address, nonce: bytes32, signature: bytes) nonpayable

Attempt to cancel an authorization

开发者: Works only if the authorization is not yet used.

参数

名称 类型 描述
authorizer address Authorizer's address
nonce bytes32 Nonce of the authorization
signature bytes
configureMinter(minter: address, minterAllowedAmount: uint256) nonpayable

Adds or updates a new minter with a mint allowance.

参数

名称 类型 描述
minter address The address of the minter.
minterAllowedAmount uint256 The minting amount allowed for the minter.

返回值

名称 类型 描述
— bool True if the operation was successful.
decreaseAllowance(spender: address, decrement: uint256) nonpayable

Decrease the allowance by a given decrement

参数

名称 类型 描述
spender address Spender's address
decrement uint256 Amount of decrease in allowance

返回值

名称 类型 描述
— bool True if successful
increaseAllowance(spender: address, increment: uint256) nonpayable

Increase the allowance by a given increment

参数

名称 类型 描述
spender address Spender's address
increment uint256 Amount of increase in allowance

返回值

名称 类型 描述
— bool True if successful
initialize(tokenName: string, tokenSymbol: string, tokenCurrency: string, tokenDecimals: uint8, newMasterMinter: address, newPauser: address, newBlacklister: address, newOwner: address) nonpayable

Initializes the fiat token contract.

参数

名称 类型 描述
tokenName string The name of the fiat token.
tokenSymbol string The symbol of the fiat token.
tokenCurrency string The fiat currency that the token represents.
tokenDecimals uint8 The number of decimals that the token uses.
newMasterMinter address The masterMinter address for the fiat token.
newPauser address The pauser address for the fiat token.
newBlacklister address The blacklister address for the fiat token.
newOwner address The owner of the fiat token.
initializeV2(newName: string) nonpayable

Initialize v2

参数

名称 类型 描述
newName string New token name
initializeV2_1(lostAndFound: address) nonpayable

Initialize v2.1

参数

名称 类型 描述
lostAndFound address The address to which the locked funds are sent
initializeV2_2(accountsToBlacklist: address[], newSymbol: string) nonpayable

Initialize v2.2

参数

名称 类型 描述
accountsToBlacklist address[] A list of accounts to migrate from the old blacklist
newSymbol string New token symbol data structure to the new blacklist data structure.
mint(_to: address, _amount: uint256) nonpayable

Mints fiat tokens to an address.

参数

名称 类型 描述
_to address The address that will receive the minted tokens.
_amount uint256 The amount of tokens to mint. Must be less than or equal to the minterAllowance of the caller.

返回值

名称 类型 描述
— bool True if the operation was successful.
pause() nonpayable

Pauses the token contract, disabling transfers and other functions that require the contract to be unpaused.✨ AI

开发者: called by the owner to pause, triggers stopped state
permit(owner: address, spender: address, value: uint256, deadline: uint256, signature: bytes) nonpayable

Update allowance with a signed permit

参数

名称 类型 描述
owner address Token owner's address (Authorizer)
spender address Spender's address
value uint256 Amount of allowance
deadline uint256 The time at which the signature expires (unix time), or max uint256 value to signal no expiration
signature bytes
permit(owner: address, spender: address, value: uint256, deadline: uint256, v: uint8, r: bytes32, s: bytes32) nonpayable

Update allowance with a signed permit

参数

名称 类型 描述
owner address Token owner's address (Authorizer)
spender address Spender's address
value uint256 Amount of allowance
deadline uint256 The time at which the signature expires (unix time), or max uint256 value to signal no expiration
v uint8 v of the signature
r bytes32 r of the signature
s bytes32 s of the signature
receiveWithAuthorization(from: address, to: address, value: uint256, validAfter: uint256, validBefore: uint256, nonce: bytes32, signature: bytes) nonpayable

Receive a transfer with a signed authorization from the payer

开发者: This has an additional check to ensure that the payee's address matches the caller of this function to prevent front-running attacks.

参数

名称 类型 描述
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
receiveWithAuthorization(from: address, to: address, value: uint256, validAfter: uint256, validBefore: uint256, nonce: bytes32, v: uint8, r: bytes32, s: bytes32) nonpayable

Receive a transfer with a signed authorization from the payer

开发者: This has an additional check to ensure that the payee's address matches the caller of this function to prevent front-running attacks.

参数

名称 类型 描述
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
removeMinter(minter: address) nonpayable

Removes a minter.

参数

名称 类型 描述
minter address The address of the minter to remove.

返回值

名称 类型 描述
— bool True if the operation was successful.
rescueERC20(tokenContract: address, to: address, amount: uint256) nonpayable

Rescue ERC20 tokens locked up in this contract.

参数

名称 类型 描述
tokenContract address ERC20 token contract address
to address Recipient address
amount uint256 Amount to withdraw
transfer(to: address, value: uint256) nonpayable

Transfer tokens from your account to another 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 that will receive the tokens.✨ AI
value uint256 Amount of tokens to transfer, denominated in the token's smallest unit.✨ AI

返回值

名称 类型 描述
— bool True if the transfer succeeded.✨ AI
transferFrom(from: address, to: address, value: uint256) nonpayable

Transfers tokens from one account to another using an approved allowance.✨ AI

开发者: Moves `amount` tokens from `sender` to `recipient` using the allowance mechanism. `amount` is then deducted from the caller's allowance. Returns a boolean value indicating whether the operation succeeded. Emits a {Transfer} event.

参数

名称 类型 描述
from address Account to debit tokens from.✨ AI
to address Account to credit tokens to.✨ AI
value uint256 Amount of tokens to transfer, expressed in the token's smallest unit.✨ AI

返回值

名称 类型 描述
— bool True if the transfer succeeded.✨ AI
transferOwnership(newOwner: address) nonpayable

Transfers contract ownership to a specified new owner address.✨ AI

开发者: Allows the current owner to transfer control of the contract to a newOwner.

参数

名称 类型 描述
newOwner address The address to transfer ownership to.
transferWithAuthorization(from: address, to: address, value: uint256, validAfter: uint256, validBefore: uint256, nonce: bytes32, signature: bytes) nonpayable

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
transferWithAuthorization(from: address, to: address, value: uint256, validAfter: uint256, validBefore: uint256, nonce: bytes32, v: uint8, r: bytes32, s: bytes32) nonpayable

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
unBlacklist(_account: address) nonpayable

Removes account from blacklist.

参数

名称 类型 描述
_account address The address to remove from the blacklist.
unpause() nonpayable

Unpauses the contract to resume token operations that were disabled while paused.✨ AI

开发者: called by the owner to unpause, returns to normal state
updateBlacklister(_newBlacklister: address) nonpayable

Updates the blacklister address.

参数

名称 类型 描述
_newBlacklister address The address of the new blacklister.
updateMasterMinter(_newMasterMinter: address) nonpayable

Updates the master minter address.

参数

名称 类型 描述
_newMasterMinter address The address of the new master minter.
updatePauser(_newPauser: address) nonpayable

Updates the pauser address.

参数

名称 类型 描述
_newPauser address The address of the new pauser.
updateRescuer(newRescuer: address) nonpayable

Updates the rescuer address.

参数

名称 类型 描述
newRescuer address The address of the new rescuer.

事件

Approval(owner: address, spender: address, value: uint256)
名称 类型 已索引 描述
owner address ✓
spender address ✓
value uint256
AuthorizationCanceled(authorizer: address, nonce: bytes32)
名称 类型 已索引 描述
authorizer address ✓
nonce bytes32 ✓
AuthorizationUsed(authorizer: address, nonce: bytes32)
名称 类型 已索引 描述
authorizer address ✓
nonce bytes32 ✓
Blacklisted(_account: address)
名称 类型 已索引 描述
_account address ✓
BlacklisterChanged(newBlacklister: address)
名称 类型 已索引 描述
newBlacklister address ✓
Burn(burner: address, amount: uint256)
名称 类型 已索引 描述
burner address ✓
amount uint256
MasterMinterChanged(newMasterMinter: address)
名称 类型 已索引 描述
newMasterMinter address ✓
Mint(minter: address, to: address, amount: uint256)
名称 类型 已索引 描述
minter address ✓
to address ✓
amount uint256
MinterConfigured(minter: address, minterAllowedAmount: uint256)
名称 类型 已索引 描述
minter address ✓
minterAllowedAmount uint256
MinterRemoved(oldMinter: address)
名称 类型 已索引 描述
oldMinter address ✓
OwnershipTransferred(previousOwner: address, newOwner: address)
名称 类型 已索引 描述
previousOwner address representing the address of the previous owner
newOwner address representing the address of the new owner
Pause()
PauserChanged(newAddress: address)
名称 类型 已索引 描述
newAddress address ✓
RescuerChanged(newRescuer: address)
名称 类型 已索引 描述
newRescuer address ✓
Transfer(from: address, to: address, value: uint256)
名称 类型 已索引 描述
from address ✓
to address ✓
value uint256
UnBlacklisted(_account: address)
名称 类型 已索引 描述
_account address ✓
Unpause()