PYUSD

Ethereum ERC-20 Token 瀏覽鏈

0x6c3ea9036406852006290770bedfcaba0e23a0e8

Proxy 實作合約: 0x8c35caa5fd5bdc64b6b11344ad57594a3676256a

Solidity v0.8.28+commit.7893614a

Fungible token following the ERC-20 standard.

🤖
透過你的 AI 查詢此合約
參考: pyusd-eth 0x6c3ea9036406852006290770bedfcaba0e23a0e8
範例提示詞: "Tell me the current state of pyusd-eth"
還沒有接入 AI?→ mcp.smarts.md · 瀏覽鏈

管理與風險

誰能修改規則?

Block #25,493,681

Detected upgradeable, mintable, pausable, freezable, ownable, and role based controls from the verified ABI.

Upgradeable Mintable Pausable Freezable Ownable Role Based

當前控制

Implementation
0x8c35caa5fd5bdc64b6b11344ad57594a3676256a ↗ Etherscan → smarts proxy
Paused
false
Owner
0x3af3e85f4f97de7ad0f000b724fb77fe5ffc024b ↗ Etherscan → smarts

概覽

讀取函式
36
寫入函式
41
事件
23

讀取函式

Block #25,493,681 · just now
ASSET_PROTECTION_ROLE() view → 0xe3e4f9d7569515307c0cdec302af069a93c9e33f325269bac70e6e22465a9796

Returns the asset protection role identifier used by the contract for access control.✨ AI

回傳值

名稱 類型 描述
bytes32 The bytes32 role identifier constant for the asset protection role, used in access checks and grants.✨ AI
CANCEL_AUTHORIZATION_TYPEHASH() view → 0x158b0a9edf7a828aad02f63cd515c68ef2f50ba807396f6d12842833a1597429

Return the EIP-712 typehash constant used for cancelAuthorization signatures.✨ AI

回傳值

名稱 類型 描述
bytes32 bytes32 EIP-712 typehash for the cancelAuthorization struct used in signature verification.✨ AI
DEFAULT_ADMIN_ROLE() view → 0x0000000000000000000000000000000000000000000000000000000000000000

Returns the identifier for the contract's default admin role.✨ AI

回傳值

名稱 類型 描述
bytes32 The bytes32 identifier of the DEFAULT_ADMIN_ROLE used for role-based access control.✨ AI
DOMAIN_SEPARATOR() view → 0xf0d0fba61e325ddcdbcc77a9b5287a77e018a2406a520bc665afa678188592de

EIP712 Domain Separator

開發者: Returns domain separator, always recomputed to handle chain forks

回傳值

名稱 類型 描述
bytes32 The domain separator for EIP-712 signatures
EIP712_DOMAIN_HASH_DEPRECATED() view → 0x0000000000000000000000000000000000000000000000000000000000000000

Returns the deprecated EIP-712 domain hash used by the contract.✨ AI

回傳值

名稱 類型 描述
bytes32 The deprecated EIP-712 domain separator hash as a bytes32 value.✨ AI
EIP712_VERSION_PREFIX() view → 0x1901

Returns the 2-byte EIP-712 version prefix used for domain separation.✨ AI

回傳值

名稱 類型 描述
bytes2 bytes2 value containing the EIP-712 version prefix used by the contract.✨ AI
MAX_NONCE_INCREMENT() view → 100

Returns the maximum allowed increment of a user's nonce.✨ AI

回傳值

名稱 類型 描述
uint256 Maximum nonce increment value as a uint256, used to limit how much a nonce can advance between actions.✨ AI
PAUSE_ROLE() view → 0x139c2898040ef16910dc9f44dc697df79363da767d8bc92f2e310312b816e46d

Get the bytes32 role identifier used to grant or check the contract's pause permission.✨ AI

回傳值

名稱 類型 描述
bytes32 The bytes32 role identifier that represents the contract's pause permission for access control checks.✨ AI
PERMIT_TYPEHASH() view → 0x6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9

Returns the EIP-2612 permit typehash used by the token to validate off-chain approvals.✨ AI

回傳值

名稱 類型 描述
bytes32 The keccak256 typehash (bytes32) used by permit signatures per EIP-2612.✨ AI
RECEIVE_WITH_AUTHORIZATION_TYPEHASH() view → 0xd099cc98ef71107a616c4f0f941f04c322d8e254fe26b3c6668db87aae413de8

Returns the EIP-712 typehash used to validate receiveWithAuthorization signatures.✨ AI

回傳值

名稱 類型 描述
bytes32 The bytes32 EIP-712 typehash for the receiveWithAuthorization authorization struct.✨ AI
TRANSFER_WITH_AUTHORIZATION_TYPEHASH() view → 0x7c7c6cdb67a18743f49ec6fa9b35f50d52ed05cbed4cc592e13b44501c1a2267

Returns the EIP-712 typehash used to sign transferWithAuthorization authorizations.✨ AI

回傳值

名稱 類型 描述
bytes32 bytes32 EIP-712 typehash for the transferWithAuthorization struct used in off-chain approvals.✨ AI
allowance(owner: address, spender: address) view

Return the remaining number of tokens that spender is allowed to spend from owner.✨ AI

開發者: Get the amount of token allowance that an owner allowed to a spender

參數

名稱 類型 描述
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
assetProtectionRoleDeprecated() view → 0x0644bd0248d5f89e4f6e845a91d15c23591e5d33

Returns the address that currently holds the deprecated asset protection role.✨ AI

回傳值

名稱 類型 描述
address Address of the deprecated asset protection role (preserved for backwards compatibility).✨ 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(addr: address) view

Gets the balance of the specified address

參數

名稱 類型 描述
addr address The address to query the the balance of

回傳值

名稱 類型 描述
uint256 An uint256 representing the amount owned by the passed address
betaDelegateWhitelisterDeprecated() view → 0x0000000000000000000000000000000000000000

Returns the address that currently holds the deprecated beta delegate whitelister role.✨ AI

開發者: Deprecated: retained for backward compatibility; may return the zero address if unset.✨ AI

回傳值

名稱 類型 描述
address Address of the deprecated beta delegate whitelister; zero address if none is set.✨ AI
decimals() view → 6

Returns the number of decimal places used by the token.✨ AI

回傳值

名稱 類型 描述
uint8 The token's decimal precision as an unsigned 8-bit integer (uint8).✨ AI
defaultAdmin() view → 0x3af3e85f4f97de7ad0f000b724fb77fe5ffc024b

Returns the address of the contract's default administrator.✨ AI

開發者: Returns the address of the current `DEFAULT_ADMIN_ROLE` holder.

回傳值

名稱 類型 描述
address The address currently assigned as the contract's default administrator.✨ AI
defaultAdminDelay() view → 10,800

Returns the configured delay (timelock) that must elapse before an administrative action executes.✨ AI

開發者: Returns the delay required to schedule the acceptance of a {defaultAdmin} transfer started. This delay will be added to the current timestamp when calling {beginDefaultAdminTransfer} to set the acceptance schedule. NOTE: If a delay change has been scheduled, it will take effect as soon as the schedule passes, making this function returns the new delay. See {changeDefaultAdminDelay}.

回傳值

名稱 類型 描述
uint48 The admin delay in seconds, returned as a uint48.✨ AI
defaultAdminDelayIncreaseWait() view → 432,000

Returns the waiting period required before a scheduled increase to the default admin delay takes effect.✨ AI

開發者: Maximum time in seconds for an increase to {defaultAdminDelay} (that is scheduled using {changeDefaultAdminDelay}) to take effect. Default to 5 days. When the {defaultAdminDelay} is scheduled to be increased, it goes into effect after the new delay has passed with the purpose of giving enough time for reverting any accidental change (i.e. using milliseconds instead of seconds) that may lock the contract. However, to avoid excessive schedules, the wait is capped by this function and it can be overrode for a custom {defaultAdminDelay} increase scheduling. IMPORTANT: Make sure to add a reasonable amount of time while overriding this value, otherwise, there's a risk of setting a high new delay that goes into effect almost immediately without the possibility of human intervention in the case of an input error (eg. set milliseconds instead of seconds).

回傳值

名稱 類型 描述
uint48 uint48 wait time (in seconds) required before a scheduled default admin delay increase becomes effective.✨ AI
getRoleAdmin(role: bytes32) view

Return the admin role that controls the specified role.✨ AI

開發者: Returns the admin role that controls `role`. See {grantRole} and {revokeRole}. To change a role's admin, use {_setRoleAdmin}.

參數

名稱 類型 描述
role bytes32 Role identifier (bytes32).✨ AI

回傳值

名稱 類型 描述
bytes32 Admin role identifier (bytes32) that can grant or revoke the specified role.✨ AI
hasRole(role: bytes32, account: address) view

Return true if an account has the specified role.✨ AI

開發者: Returns `true` if `account` has been granted `role`.

參數

名稱 類型 描述
role bytes32 Role identifier encoded as a bytes32 value.✨ AI
account address Address to check for the specified role.✨ AI

回傳值

名稱 類型 描述
bool True if the account holds the role, false otherwise.✨ AI
isFrozen(addr: address) view

Return the freeze status of an address.

開發者: Check if whether the address is currently frozen.

參數

名稱 類型 描述
addr address The address to check if frozen.

回傳值

名稱 類型 描述
bool A bool representing whether the given address is frozen.
name() view → PayPal USD

Returns the token's name as a human-readable string.✨ AI

回傳值

名稱 類型 描述
string The token's name as a human-readable string (e.g., "PYUSD").✨ AI
nonces(owner: address) view

Nonces for permit

參數

名稱 類型 描述
owner address Token owner's address

回傳值

名稱 類型 描述
uint256 Next nonce
owner() view → 0x3af3e85f4f97de7ad0f000b724fb77fe5ffc024b

Returns the address of the contract owner.✨ AI

開發者: See {IERC5313-owner}.

回傳值

名稱 類型 描述
address The address that currently has owner privileges for the contract.✨ AI
ownerDeprecated() view → 0x0644bd0248d5f89e4f6e845a91d15c23591e5d33

Returns the deprecated owner address for backward compatibility.✨ AI

回傳值

名稱 類型 描述
address The address previously recognized as owner under the deprecated ownership scheme.✨ AI
paused() view → false

Indicates whether the contract is currently paused.✨ AI

回傳值

名稱 類型 描述
bool True if contract functions are paused and restricted; otherwise false.✨ AI
pendingDefaultAdmin() view → 0x0000000000000000000000000000000000000000, 0

Return the address scheduled to become the contract's default admin and the scheduled activation timestamp.✨ AI

開發者: Returns a tuple of a `newAdmin` and an accept schedule. After the `schedule` passes, the `newAdmin` will be able to accept the {defaultAdmin} role by calling {acceptDefaultAdminTransfer}, completing the role transfer. A zero value only in `acceptSchedule` indicates no pending admin transfer. NOTE: A zero address `newAdmin` means that {defaultAdmin} is being renounced.

回傳值

名稱 類型 描述
newAdmin address newAdmin: address that will become the default admin when the schedule activates.✨ AI
schedule uint48 schedule: uint48 activation timestamp (seconds since Unix epoch); zero if no pending admin.✨ AI
pendingDefaultAdminDelay() view → 0, 0

Return the pending default admin delay and the scheduled time when it will take effect.✨ AI

開發者: Returns a tuple of `newDelay` and an effect schedule. After the `schedule` passes, the `newDelay` will get into effect immediately for every new {defaultAdmin} transfer started with {beginDefaultAdminTransfer}. A zero value only in `effectSchedule` indicates no pending delay change. NOTE: A zero value only for `newDelay` means that the next {defaultAdminDelay} will be zero after the effect schedule.

回傳值

名稱 類型 描述
newDelay uint48 newDelay: Pending default admin delay (uint48), typically expressed as a number of seconds.✨ AI
schedule uint48 schedule: Scheduled effective time for the new delay (uint48), represented as a Unix timestamp.✨ AI
proposedOwnerDeprecated() view → 0x0000000000000000000000000000000000000000

Returns the address proposed to become the contract owner under the deprecated ownership flow.✨ AI

回傳值

名稱 類型 描述
address The proposed owner's address for the deprecated ownership mechanism, or the zero address if none is set.✨ AI
supplyControl() view → 0x31d9bdea6f104606c954f8fe6ba614f1bd347ec3

Returns the address that controls the token supply.✨ AI

回傳值

名稱 類型 描述
address The address authorized to adjust the token supply (e.g., minting or burning).✨ AI
supplyControllerDeprecated() view → 0xe25a329d385f77df5d4ed56265babe2b99a5436e

Returns the address of the deprecated supply controller contract.✨ AI

回傳值

名稱 類型 描述
address Address of the deprecated supply controller contract.✨ AI
supportsInterface(interfaceId: bytes4) view

Return whether the contract implements the interface specified by the ERC-165 interfaceId.✨ AI

開發者: See {IERC165-supportsInterface}.

參數

名稱 類型 描述
interfaceId bytes4 ERC-165 interface identifier (first 4 bytes) to check support for.✨ AI

回傳值

名稱 類型 描述
bool True if the contract implements the interface identified by interfaceId, otherwise false.✨ AI
symbol() view → PYUSD

Returns the token symbol used to identify this ERC-20 token.✨ AI

回傳值

名稱 類型 描述
string The token symbol as a string, a short identifier such as "PYUSD".✨ AI
totalSupply() view → 1,881,351,766.40 PYUSD

Returns the total supply of the token.

回傳值

名稱 類型 描述
uint256 An uint256 representing the total supply of the token.

寫入函式

acceptDefaultAdminTransfer() nonpayable
開發者: Completes a {defaultAdmin} transfer previously started with {beginDefaultAdminTransfer}. After calling the function: - `DEFAULT_ADMIN_ROLE` should be granted to the caller. - `DEFAULT_ADMIN_ROLE` should be revoked from the previous holder. - {pendingDefaultAdmin} should be reset to zero values. Requirements: - Only can be called by the {pendingDefaultAdmin}'s `newAdmin`. - The {pendingDefaultAdmin}'s `acceptSchedule` should've passed.
approve(spender: address, value: uint256) nonpayable

Set allowance of spender to spend tokens on behalf of msg.sender

開發者: Approve the passed address to spend the specified amount of tokens on behalf of msg.sender. 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

參數

名稱 類型 描述
spender address The address which will spend the funds
value uint256 The amount of tokens to be spent

回傳值

名稱 類型 描述
bool True if successful
beginDefaultAdminTransfer(newAdmin: address) nonpayable
開發者: Starts a {defaultAdmin} transfer by setting a {pendingDefaultAdmin} scheduled for acceptance after the current timestamp plus a {defaultAdminDelay}. Requirements: - Only can be called by the current {defaultAdmin}. Emits a DefaultAdminRoleChangeStarted event.

參數

名稱 類型 描述
newAdmin address
burn(amount: uint256) nonpayable
開發者: Wrapper around `decreaseSupply` to extend the API

參數

名稱 類型 描述
amount uint256 The number of tokens to remove
cancelAuthorization(authorizer: address, nonce: bytes32, v: uint8, r: bytes32, s: bytes32) nonpayable

Attempt to cancel an authorization

參數

名稱 類型 描述
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

參數

名稱 類型 描述
authorizer address Authorizer's address
nonce bytes32 Nonce of the authorization
signature bytes
cancelDefaultAdminTransfer() nonpayable
開發者: Cancels a {defaultAdmin} transfer previously started with {beginDefaultAdminTransfer}. A {pendingDefaultAdmin} not yet accepted can also be cancelled with this function. Requirements: - Only can be called by the current {defaultAdmin}. May emit a DefaultAdminTransferCanceled event.
cancelPermits(count: uint256) nonpayable

Cancel one or more pending permits

開發者: This function increments the caller's nonce by the specified count, effectively invalidating all permits signed with nonces from the current nonce up to (current + count - 1). Provides a mechanism to cancel pending EIP-2612 permits before expiry.

參數

名稱 類型 描述
count uint256 Number of permits to cancel (must be > 0 and <= MAX_NONCE_INCREMENT) Example: - Current nonce: 5 - Call cancelPermits(3) - New nonce: 8 - Canceled permits: those signed with nonces 5, 6, and 7
changeDefaultAdminDelay(newDelay: uint48) nonpayable
開發者: Initiates a {defaultAdminDelay} update by setting a {pendingDefaultAdminDelay} scheduled for getting into effect after the current timestamp plus a {defaultAdminDelay}. This function guarantees that any call to {beginDefaultAdminTransfer} done between the timestamp this method is called and the {pendingDefaultAdminDelay} effect schedule will use the current {defaultAdminDelay} set before calling. The {pendingDefaultAdminDelay}'s effect schedule is defined in a way that waiting until the schedule and then calling {beginDefaultAdminTransfer} with the new delay will take at least the same as another {defaultAdmin} complete transfer (including acceptance). The schedule is designed for two scenarios: - When the delay is changed for a larger one the schedule is `block.timestamp + newDelay` capped by {defaultAdminDelayIncreaseWait}. - When the delay is changed for a shorter one, the schedule is `block.timestamp + (current delay - new delay)`. A {pendingDefaultAdminDelay} that never got into effect will be canceled in favor of a new scheduled change. Requirements: - Only can be called by the current {defaultAdmin}. Emits a DefaultAdminDelayChangeScheduled event and may emit a DefaultAdminDelayChangeCanceled event.

參數

名稱 類型 描述
newDelay uint48
decreaseApproval(spender: address, subtractedValue: uint256) nonpayable

Decrease the allowance of spender to spend tokens on behalf of msg.sender

開發者: Decrease the amount of tokens that an owner allowed to a spender. To decrement allowed value is better to use this function to avoid 2 calls (and wait until the first transaction is mined) instead of approve.

參數

名稱 類型 描述
spender address The address which will spend the funds
subtractedValue uint256 The amount of tokens to decrease the allowance by

回傳值

名稱 類型 描述
bool True if successful
decreaseSupply(value: uint256) nonpayable
開發者: Wrapper around 'decreaseSupplyFromAddress' to extend the API

參數

名稱 類型 描述
value uint256 The number of tokens to remove.

回傳值

名稱 類型 描述
success bool success A boolean that indicates if the operation was successful
decreaseSupplyFromAddress(value: uint256, burnFromAddress: address) nonpayable

Decreases the total supply by burning the specified number of tokens. Can only be called by a supply controller. Function is marked virtual to aid in testing, but is never overridden on the actual token.

參數

名稱 類型 描述
value uint256 The number of tokens to remove
burnFromAddress address Address to burn tokens from.

回傳值

名稱 類型 描述
success bool success A boolean that indicates if the operation was successful
freeze(addr: address) nonpayable
開發者: Freezes an address balance from being transferred.

參數

名稱 類型 描述
addr address The address to freeze.
freezeBatch(addresses: address[]) nonpayable
開發者: Freezes all addresses balance from being transferred.

參數

名稱 類型 描述
addresses address[] The addresses to freeze.
grantRole(role: bytes32, account: address) nonpayable
開發者: See {AccessControl-grantRole}. Reverts for `DEFAULT_ADMIN_ROLE`.

參數

名稱 類型 描述
role bytes32
account address
increaseApproval(spender: address, addedValue: uint256) nonpayable

Increase the allowance of spender to spend tokens on behalf of msg.sender

開發者: Increase the amount of tokens that an owner allowed to a spender. To increment allowed value is better to use this function to avoid 2 calls (and wait until the first transaction is mined) instead of approve.

參數

名稱 類型 描述
spender address The address which will spend the funds
addedValue uint256 The amount of tokens to increase the allowance by

回傳值

名稱 類型 描述
bool True if successful
increaseSupply(value: uint256) nonpayable
開發者: Wrapper around 'increaseSupplyToAddress' to extend the API

參數

名稱 類型 描述
value uint256 The number of tokens to add.

回傳值

名稱 類型 描述
success bool success A boolean that indicates if the operation was successful
increaseSupplyToAddress(value: uint256, mintToAddress: address) nonpayable

Increases the total supply by minting the specified number of tokens to the supply controller account. Function is marked virtual to aid in testing, but is never overridden on the actual token.

參數

名稱 類型 描述
value uint256 The number of tokens to add
mintToAddress address Address to mint tokens to.

回傳值

名稱 類型 描述
success bool success A boolean that indicates if the operation was successful
initialize(initialDelay: uint48, initialOwner: address, pauser: address, assetProtector: address) nonpayable

Initialize the contract.

開發者: Wrapper around {_initialize}. This is useful to get the version before it is updated by {reinitializer}.

參數

名稱 類型 描述
initialDelay uint48 Initial delay for changing the owner
initialOwner address Address of the initial owner
pauser address Address of the pauser
assetProtector address Address of the asset protector
mint(account: address, amount: uint256) nonpayable
開發者: Wrapper around `increaseSupplyToAddress` to extend the API

參數

名稱 類型 描述
account address Address to mint tokens to
amount uint256 The number of tokens to add
pause() nonpayable

Pause the contract

開發者: 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 this expires (unix time)
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 this expires (unix time)
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. (See security considerations)

參數

名稱 類型 描述
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. (See security considerations)

參數

名稱 類型 描述
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
reclaimToken() nonpayable

Reclaim all tokens at the contract address

開發者: Transfers the tokens this contract holds, to the owner of smart contract. Note: This is not affected by freeze constraints.
renounceRole(role: bytes32, account: address) nonpayable
開發者: See {AccessControl-renounceRole}. For the `DEFAULT_ADMIN_ROLE`, it only allows renouncing in two steps by first calling {beginDefaultAdminTransfer} to the `address(0)`, so it's required that the {pendingDefaultAdmin} schedule has also passed when calling this function. After its execution, it will not be possible to call `onlyRole(DEFAULT_ADMIN_ROLE)` functions. NOTE: Renouncing `DEFAULT_ADMIN_ROLE` will leave the contract without a {defaultAdmin}, thereby disabling any functionality that is only available for it, and the possibility of reassigning a non-administrated role.

參數

名稱 類型 描述
role bytes32
account address
revokeRole(role: bytes32, account: address) nonpayable
開發者: See {AccessControl-revokeRole}. Reverts for `DEFAULT_ADMIN_ROLE`.

參數

名稱 類型 描述
role bytes32
account address
rollbackDefaultAdminDelay() nonpayable
開發者: Cancels a scheduled {defaultAdminDelay} change. Requirements: - Only can be called by the current {defaultAdmin}. May emit a DefaultAdminDelayChangeCanceled event.
setSupplyControl(supplyControlAddress: address) nonpayable
開發者: Update the supply control contract which controls minting and burning for this token.

參數

名稱 類型 描述
supplyControlAddress address Supply control contract address
transfer(to: address, value: uint256) nonpayable

Execute a transfer

開發者: Transfer token to the specified address from msg.sender

參數

名稱 類型 描述
to address The address to transfer to
value uint256 The amount to be transferred

回傳值

名稱 類型 描述
bool True if successful
transferFrom(from: address, to: address, value: uint256) nonpayable

Transfer tokens from one address to another

參數

名稱 類型 描述
from address address The address which you want to send tokens from
to address address The address which you want to transfer to
value uint256 uint256 the amount of tokens to be transferred

回傳值

名稱 類型 描述
bool True if successful
transferFromBatch(from: address[], to: address[], value: uint256[]) nonpayable

Transfer tokens from one set of addresses to another in a single transaction

參數

名稱 類型 描述
from address[] addres[] The addresses which you want to send tokens from
to address[] address[] The addresses which you want to transfer to
value uint256[] uint256[] The amounts of tokens to be transferred

回傳值

名稱 類型 描述
bool True if successful
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
transferWithAuthorizationBatch(from: address[], to: address[], value: uint256[], validAfter: uint256[], validBefore: uint256[], nonce: bytes32[], signature: bytes[]) nonpayable

Execute multiple transfers with signed authorizations

參數

名稱 類型 描述
from address[] Array of Payer's addresses (Authorizers)
to address[] Array of Payee's addresses
value uint256[] Array of amounts to be transferred
validAfter uint256[] Array of times after which this is valid (unix time)
validBefore uint256[] Array of times before which this is valid (unix time)
nonce bytes32[] Array of unique nonces
signature bytes[]
transferWithAuthorizationBatch(from: address[], to: address[], value: uint256[], validAfter: uint256[], validBefore: uint256[], nonce: bytes32[], v: uint8[], r: bytes32[], s: bytes32[]) nonpayable

Execute multiple transfers with signed authorizations

參數

名稱 類型 描述
from address[] Array of Payer's addresses (Authorizers)
to address[] Array of Payee's addresses
value uint256[] Array of amounts to be transferred
validAfter uint256[] Array of times after which this is valid (unix time)
validBefore uint256[] Array of times before which this is valid (unix time)
nonce bytes32[] Array of unique nonces
v uint8[] Array of v values of the signatures
r bytes32[] Array of r values of the signatures
s bytes32[] Array of s values of the signatures
unfreeze(addr: address) nonpayable
開發者: Unfreezes an address balance allowing transfer.

參數

名稱 類型 描述
addr address The new address to unfreeze.
unfreezeBatch(addresses: address[]) nonpayable
開發者: Unfreezes all addresses balance from being transferred.

參數

名稱 類型 描述
addresses address[] The addresses to unfreeze.
unpause() nonpayable

Unpause the contract

開發者: called by the owner to unpause, returns to normal state
wipeFrozenAddress(addr: address) nonpayable

Wipe the token balance of a frozen address

開發者: Wipes the balance of a frozen address, and burns the tokens

參數

名稱 類型 描述
addr address The new frozen address to wipe

事件

Approval(owner: address, spender: address, value: uint256)
名稱 類型 已索引 描述
owner address
spender address
value uint256
AuthorizationAlreadyUsed(authorizer: address, nonce: bytes32)
名稱 類型 已索引 描述
authorizer address
nonce bytes32
AuthorizationCanceled(authorizer: address, nonce: bytes32)
名稱 類型 已索引 描述
authorizer address
nonce bytes32
AuthorizationUsed(authorizer: address, nonce: bytes32)
名稱 類型 已索引 描述
authorizer address
nonce bytes32
DefaultAdminDelayChangeCanceled()
DefaultAdminDelayChangeScheduled(newDelay: uint48, effectSchedule: uint48)
名稱 類型 已索引 描述
newDelay uint48
effectSchedule uint48
DefaultAdminTransferCanceled()
DefaultAdminTransferScheduled(newAdmin: address, acceptSchedule: uint48)
名稱 類型 已索引 描述
newAdmin address
acceptSchedule uint48
FreezeAddress(addr: address)
名稱 類型 已索引 描述
addr address
FrozenAddressWiped(addr: address)
名稱 類型 已索引 描述
addr address
Initialized(version: uint8)
名稱 類型 已索引 描述
version uint8
Pause()
PermitInvalidated(owner: address, newNonce: uint256)
名稱 類型 已索引 描述
owner address The address whose nonces were invalidated
newNonce uint256 The new nonce value after invalidation
RoleAdminChanged(role: bytes32, previousAdminRole: bytes32, newAdminRole: bytes32)
名稱 類型 已索引 描述
role bytes32
previousAdminRole bytes32
newAdminRole bytes32
RoleGranted(role: bytes32, account: address, sender: address)
名稱 類型 已索引 描述
role bytes32
account address
sender address
RoleRevoked(role: bytes32, account: address, sender: address)
名稱 類型 已索引 描述
role bytes32
account address
sender address
SanctionedAddressListUpdate(newSanctionedAddress: address)
名稱 類型 已索引 描述
newSanctionedAddress address
SupplyControlSet(supplyControlAddress: address)
名稱 類型 已索引 描述
supplyControlAddress address
SupplyDecreased(from: address, value: uint256)
名稱 類型 已索引 描述
from address
value uint256
SupplyIncreased(to: address, value: uint256)
名稱 類型 已索引 描述
to address
value uint256
Transfer(from: address, to: address, value: uint256)
名稱 類型 已索引 描述
from address
to address
value uint256
UnfreezeAddress(addr: address)
名稱 類型 已索引 描述
addr address
Unpause()