Source Code
More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 1,872 transactions
| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
| Approve | 30288235 | 5 hrs ago | IN | 0 ETH | 0.00000054 | ||||
| Burn | 30259506 | 21 hrs ago | IN | 0 ETH | 0.00000004 | ||||
| Burn | 30254496 | 24 hrs ago | IN | 0 ETH | 0.00000005 | ||||
| Burn | 30254221 | 24 hrs ago | IN | 0 ETH | 0.00000005 | ||||
| Approve | 30095758 | 4 days ago | IN | 0 ETH | 0.00000271 | ||||
| Approve | 29834482 | 10 days ago | IN | 0 ETH | 0.00000323 | ||||
| Approve | 29834473 | 10 days ago | IN | 0 ETH | 0.00000255 | ||||
| Burn | 29665136 | 14 days ago | IN | 0 ETH | 0.00000075 | ||||
| Burn | 29663646 | 14 days ago | IN | 0 ETH | 0.0000007 | ||||
| Burn | 29620937 | 15 days ago | IN | 0 ETH | 0.00000098 | ||||
| Approve | 29178013 | 25 days ago | IN | 0 ETH | 0.00000006 | ||||
| Approve | 29078631 | 28 days ago | IN | 0 ETH | 0.0000001 | ||||
| Approve | 28776230 | 35 days ago | IN | 0 ETH | 0.00000011 | ||||
| Approve | 28756166 | 35 days ago | IN | 0 ETH | 0.00000008 | ||||
| Mint | 28752972 | 35 days ago | IN | 0 ETH | 0.0000001 | ||||
| Approve | 28726873 | 36 days ago | IN | 0 ETH | 0.00000004 | ||||
| Burn | 28522512 | 41 days ago | IN | 0 ETH | 0.00000008 | ||||
| Burn | 28489929 | 41 days ago | IN | 0 ETH | 0.00000006 | ||||
| Approve | 28473836 | 42 days ago | IN | 0 ETH | 0.00000015 | ||||
| Approve | 28171431 | 49 days ago | IN | 0 ETH | 0.00000004 | ||||
| Approve | 27869031 | 56 days ago | IN | 0 ETH | 0.00000004 | ||||
| Approve | 27744677 | 59 days ago | IN | 0 ETH | 0 | ||||
| Approve | 27620396 | 61 days ago | IN | 0 ETH | 0 | ||||
| Approve | 27566630 | 63 days ago | IN | 0 ETH | 0.00000004 | ||||
| Burn | 27550444 | 63 days ago | IN | 0 ETH | 0 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Cross-Chain Transactions
Loading...
Loading
Contract Name:
DogGoToTheMoon
Compiler Version
v0.8.26+commit.8a97fa7a
Contract Source Code (Solidity)
/**
*Submitted for verification at blastscan.io on 2024-07-01
*/
// File: @openzeppelin/contracts/token/ERC20/IERC20.sol
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.20;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
/**
* @dev Returns the value of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the value of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves a `value` amount of tokens from the caller's account to `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, uint256 value) external returns (bool);
/**
* @dev 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.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets a `value` amount of tokens 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.
*/
function approve(address spender, uint256 value) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from `from` to `to` using the
* allowance mechanism. `value` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(address from, address to, uint256 value) external returns (bool);
}
// File: @openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Metadata.sol)
pragma solidity ^0.8.20;
/**
* @dev Interface for the optional metadata functions from the ERC20 standard.
*/
interface IERC20Metadata is IERC20 {
/**
* @dev Returns the name of the token.
*/
function name() external view returns (string memory);
/**
* @dev Returns the symbol of the token.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the decimals places of the token.
*/
function decimals() external view returns (uint8);
}
// File: @openzeppelin/contracts/utils/Context.sol
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)
pragma solidity ^0.8.20;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
function _contextSuffixLength() internal view virtual returns (uint256) {
return 0;
}
}
// File: @openzeppelin/contracts/interfaces/draft-IERC6093.sol
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC6093.sol)
pragma solidity ^0.8.20;
/**
* @dev Standard ERC20 Errors
* Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC20 tokens.
*/
interface IERC20Errors {
/**
* @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
* @param balance Current balance for the interacting account.
* @param needed Minimum amount required to perform a transfer.
*/
error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed);
/**
* @dev Indicates a failure with the token `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
*/
error ERC20InvalidSender(address sender);
/**
* @dev Indicates a failure with the token `receiver`. Used in transfers.
* @param receiver Address to which tokens are being transferred.
*/
error ERC20InvalidReceiver(address receiver);
/**
* @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers.
* @param spender Address that may be allowed to operate on tokens without being their owner.
* @param allowance Amount of tokens a `spender` is allowed to operate with.
* @param needed Minimum amount required to perform a transfer.
*/
error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed);
/**
* @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
* @param approver Address initiating an approval operation.
*/
error ERC20InvalidApprover(address approver);
/**
* @dev Indicates a failure with the `spender` to be approved. Used in approvals.
* @param spender Address that may be allowed to operate on tokens without being their owner.
*/
error ERC20InvalidSpender(address spender);
}
/**
* @dev Standard ERC721 Errors
* Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC721 tokens.
*/
interface IERC721Errors {
/**
* @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in EIP-20.
* Used in balance queries.
* @param owner Address of the current owner of a token.
*/
error ERC721InvalidOwner(address owner);
/**
* @dev Indicates a `tokenId` whose `owner` is the zero address.
* @param tokenId Identifier number of a token.
*/
error ERC721NonexistentToken(uint256 tokenId);
/**
* @dev Indicates an error related to the ownership over a particular token. Used in transfers.
* @param sender Address whose tokens are being transferred.
* @param tokenId Identifier number of a token.
* @param owner Address of the current owner of a token.
*/
error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner);
/**
* @dev Indicates a failure with the token `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
*/
error ERC721InvalidSender(address sender);
/**
* @dev Indicates a failure with the token `receiver`. Used in transfers.
* @param receiver Address to which tokens are being transferred.
*/
error ERC721InvalidReceiver(address receiver);
/**
* @dev Indicates a failure with the `operator`’s approval. Used in transfers.
* @param operator Address that may be allowed to operate on tokens without being their owner.
* @param tokenId Identifier number of a token.
*/
error ERC721InsufficientApproval(address operator, uint256 tokenId);
/**
* @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
* @param approver Address initiating an approval operation.
*/
error ERC721InvalidApprover(address approver);
/**
* @dev Indicates a failure with the `operator` to be approved. Used in approvals.
* @param operator Address that may be allowed to operate on tokens without being their owner.
*/
error ERC721InvalidOperator(address operator);
}
/**
* @dev Standard ERC1155 Errors
* Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC1155 tokens.
*/
interface IERC1155Errors {
/**
* @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
* @param balance Current balance for the interacting account.
* @param needed Minimum amount required to perform a transfer.
* @param tokenId Identifier number of a token.
*/
error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId);
/**
* @dev Indicates a failure with the token `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
*/
error ERC1155InvalidSender(address sender);
/**
* @dev Indicates a failure with the token `receiver`. Used in transfers.
* @param receiver Address to which tokens are being transferred.
*/
error ERC1155InvalidReceiver(address receiver);
/**
* @dev Indicates a failure with the `operator`’s approval. Used in transfers.
* @param operator Address that may be allowed to operate on tokens without being their owner.
* @param owner Address of the current owner of a token.
*/
error ERC1155MissingApprovalForAll(address operator, address owner);
/**
* @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
* @param approver Address initiating an approval operation.
*/
error ERC1155InvalidApprover(address approver);
/**
* @dev Indicates a failure with the `operator` to be approved. Used in approvals.
* @param operator Address that may be allowed to operate on tokens without being their owner.
*/
error ERC1155InvalidOperator(address operator);
/**
* @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation.
* Used in batch transfers.
* @param idsLength Length of the array of token identifiers
* @param valuesLength Length of the array of token amounts
*/
error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength);
}
// File: @openzeppelin/contracts/token/ERC20/ERC20.sol
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/ERC20.sol)
pragma solidity ^0.8.20;
/**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
*
* TIP: For a detailed writeup see our guide
* https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
* to implement supply mechanisms].
*
* The default value of {decimals} is 18. To change this, you should override
* this function so it returns a different value.
*
* We have followed general OpenZeppelin Contracts guidelines: functions revert
* instead returning `false` on failure. This behavior is nonetheless
* conventional and does not conflict with the expectations of ERC20
* applications.
*
* Additionally, an {Approval} event is emitted on calls to {transferFrom}.
* This allows applications to reconstruct the allowance for all accounts just
* by listening to said events. Other implementations of the EIP may not emit
* these events, as it isn't required by the specification.
*/
abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors {
mapping(address account => uint256) private _balances;
mapping(address account => mapping(address spender => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {name} and {symbol}.
*
* All two of these values are immutable: they can only be set once during
* construction.
*/
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
/**
* @dev Returns the name of the token.
*/
function name() public view virtual returns (string memory) {
return _name;
}
/**
* @dev Returns the symbol of the token, usually a shorter version of the
* name.
*/
function symbol() public view virtual returns (string memory) {
return _symbol;
}
/**
* @dev Returns the number of decimals used to get its user representation.
* For example, if `decimals` equals `2`, a balance of `505` tokens should
* be displayed to a user as `5.05` (`505 / 10 ** 2`).
*
* Tokens usually opt for a value of 18, imitating the relationship between
* Ether and Wei. This is the default value returned by this function, unless
* it's overridden.
*
* NOTE: This information is only used for _display_ purposes: it in
* no way affects any of the arithmetic of the contract, including
* {IERC20-balanceOf} and {IERC20-transfer}.
*/
function decimals() public view virtual returns (uint8) {
return 18;
}
/**
* @dev See {IERC20-totalSupply}.
*/
function totalSupply() public view virtual returns (uint256) {
return _totalSupply;
}
/**
* @dev See {IERC20-balanceOf}.
*/
function balanceOf(address account) public view virtual returns (uint256) {
return _balances[account];
}
/**
* @dev See {IERC20-transfer}.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - the caller must have a balance of at least `value`.
*/
function transfer(address to, uint256 value) public virtual returns (bool) {
address owner = _msgSender();
_transfer(owner, to, value);
return true;
}
/**
* @dev See {IERC20-allowance}.
*/
function allowance(address owner, address spender) public view virtual returns (uint256) {
return _allowances[owner][spender];
}
/**
* @dev See {IERC20-approve}.
*
* NOTE: If `value` is the maximum `uint256`, the allowance is not updated on
* `transferFrom`. This is semantically equivalent to an infinite approval.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function approve(address spender, uint256 value) public virtual returns (bool) {
address owner = _msgSender();
_approve(owner, spender, value);
return true;
}
/**
* @dev See {IERC20-transferFrom}.
*
* Emits an {Approval} event indicating the updated allowance. This is not
* required by the EIP. See the note at the beginning of {ERC20}.
*
* NOTE: Does not update the allowance if the current allowance
* is the maximum `uint256`.
*
* Requirements:
*
* - `from` and `to` cannot be the zero address.
* - `from` must have a balance of at least `value`.
* - the caller must have allowance for ``from``'s tokens of at least
* `value`.
*/
function transferFrom(address from, address to, uint256 value) public virtual returns (bool) {
address spender = _msgSender();
_spendAllowance(from, spender, value);
_transfer(from, to, value);
return true;
}
/**
* @dev Moves a `value` amount of tokens from `from` to `to`.
*
* This internal function is equivalent to {transfer}, and can be used to
* e.g. implement automatic token fees, slashing mechanisms, etc.
*
* Emits a {Transfer} event.
*
* NOTE: This function is not virtual, {_update} should be overridden instead.
*/
function _transfer(address from, address to, uint256 value) internal {
if (from == address(0)) {
revert ERC20InvalidSender(address(0));
}
if (to == address(0)) {
revert ERC20InvalidReceiver(address(0));
}
_update(from, to, value);
}
/**
* @dev Transfers a `value` amount of tokens from `from` to `to`, or alternatively mints (or burns) if `from`
* (or `to`) is the zero address. All customizations to transfers, mints, and burns should be done by overriding
* this function.
*
* Emits a {Transfer} event.
*/
function _update(address from, address to, uint256 value) internal virtual {
if (from == address(0)) {
// Overflow check required: The rest of the code assumes that totalSupply never overflows
_totalSupply += value;
} else {
uint256 fromBalance = _balances[from];
if (fromBalance < value) {
revert ERC20InsufficientBalance(from, fromBalance, value);
}
unchecked {
// Overflow not possible: value <= fromBalance <= totalSupply.
_balances[from] = fromBalance - value;
}
}
if (to == address(0)) {
unchecked {
// Overflow not possible: value <= totalSupply or value <= fromBalance <= totalSupply.
_totalSupply -= value;
}
} else {
unchecked {
// Overflow not possible: balance + value is at most totalSupply, which we know fits into a uint256.
_balances[to] += value;
}
}
emit Transfer(from, to, value);
}
/**
* @dev Creates a `value` amount of tokens and assigns them to `account`, by transferring it from address(0).
* Relies on the `_update` mechanism
*
* Emits a {Transfer} event with `from` set to the zero address.
*
* NOTE: This function is not virtual, {_update} should be overridden instead.
*/
function _mint(address account, uint256 value) internal {
if (account == address(0)) {
revert ERC20InvalidReceiver(address(0));
}
_update(address(0), account, value);
}
/**
* @dev Destroys a `value` amount of tokens from `account`, lowering the total supply.
* Relies on the `_update` mechanism.
*
* Emits a {Transfer} event with `to` set to the zero address.
*
* NOTE: This function is not virtual, {_update} should be overridden instead
*/
function _burn(address account, uint256 value) internal {
if (account == address(0)) {
revert ERC20InvalidSender(address(0));
}
_update(account, address(0), value);
}
/**
* @dev Sets `value` as the allowance of `spender` over the `owner` s tokens.
*
* This internal function is equivalent to `approve`, and can be used to
* e.g. set automatic allowances for certain subsystems, etc.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `owner` cannot be the zero address.
* - `spender` cannot be the zero address.
*
* Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument.
*/
function _approve(address owner, address spender, uint256 value) internal {
_approve(owner, spender, value, true);
}
/**
* @dev Variant of {_approve} with an optional flag to enable or disable the {Approval} event.
*
* By default (when calling {_approve}) the flag is set to true. On the other hand, approval changes made by
* `_spendAllowance` during the `transferFrom` operation set the flag to false. This saves gas by not emitting any
* `Approval` event during `transferFrom` operations.
*
* Anyone who wishes to continue emitting `Approval` events on the`transferFrom` operation can force the flag to
* true using the following override:
* ```
* function _approve(address owner, address spender, uint256 value, bool) internal virtual override {
* super._approve(owner, spender, value, true);
* }
* ```
*
* Requirements are the same as {_approve}.
*/
function _approve(address owner, address spender, uint256 value, bool emitEvent) internal virtual {
if (owner == address(0)) {
revert ERC20InvalidApprover(address(0));
}
if (spender == address(0)) {
revert ERC20InvalidSpender(address(0));
}
_allowances[owner][spender] = value;
if (emitEvent) {
emit Approval(owner, spender, value);
}
}
/**
* @dev Updates `owner` s allowance for `spender` based on spent `value`.
*
* Does not update the allowance value in case of infinite allowance.
* Revert if not enough allowance is available.
*
* Does not emit an {Approval} event.
*/
function _spendAllowance(address owner, address spender, uint256 value) internal virtual {
uint256 currentAllowance = allowance(owner, spender);
if (currentAllowance != type(uint256).max) {
if (currentAllowance < value) {
revert ERC20InsufficientAllowance(spender, currentAllowance, value);
}
unchecked {
_approve(owner, spender, currentAllowance - value, false);
}
}
}
}
// File: @openzeppelin/contracts/access/IAccessControl.sol
// OpenZeppelin Contracts (last updated v5.0.0) (access/IAccessControl.sol)
pragma solidity ^0.8.20;
/**
* @dev External interface of AccessControl declared to support ERC165 detection.
*/
interface IAccessControl {
/**
* @dev The `account` is missing a role.
*/
error AccessControlUnauthorizedAccount(address account, bytes32 neededRole);
/**
* @dev The caller of a function is not the expected one.
*
* NOTE: Don't confuse with {AccessControlUnauthorizedAccount}.
*/
error AccessControlBadConfirmation();
/**
* @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
*
* `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
* {RoleAdminChanged} not being emitted signaling this.
*/
event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);
/**
* @dev Emitted when `account` is granted `role`.
*
* `sender` is the account that originated the contract call, an admin role
* bearer except when using {AccessControl-_setupRole}.
*/
event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);
/**
* @dev Emitted when `account` is revoked `role`.
*
* `sender` is the account that originated the contract call:
* - if using `revokeRole`, it is the admin role bearer
* - if using `renounceRole`, it is the role bearer (i.e. `account`)
*/
event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);
/**
* @dev Returns `true` if `account` has been granted `role`.
*/
function hasRole(bytes32 role, address account) external view returns (bool);
/**
* @dev Returns the admin role that controls `role`. See {grantRole} and
* {revokeRole}.
*
* To change a role's admin, use {AccessControl-_setRoleAdmin}.
*/
function getRoleAdmin(bytes32 role) external view returns (bytes32);
/**
* @dev Grants `role` to `account`.
*
* If `account` had not been already granted `role`, emits a {RoleGranted}
* event.
*
* Requirements:
*
* - the caller must have ``role``'s admin role.
*/
function grantRole(bytes32 role, address account) external;
/**
* @dev Revokes `role` from `account`.
*
* If `account` had been granted `role`, emits a {RoleRevoked} event.
*
* Requirements:
*
* - the caller must have ``role``'s admin role.
*/
function revokeRole(bytes32 role, address account) external;
/**
* @dev Revokes `role` from the calling account.
*
* Roles are often managed via {grantRole} and {revokeRole}: this function's
* purpose is to provide a mechanism for accounts to lose their privileges
* if they are compromised (such as when a trusted device is misplaced).
*
* If the calling account had been granted `role`, emits a {RoleRevoked}
* event.
*
* Requirements:
*
* - the caller must be `callerConfirmation`.
*/
function renounceRole(bytes32 role, address callerConfirmation) external;
}
// File: @openzeppelin/contracts/utils/introspection/IERC165.sol
// OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/IERC165.sol)
pragma solidity ^0.8.20;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/
interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}
// File: @openzeppelin/contracts/utils/introspection/ERC165.sol
// OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/ERC165.sol)
pragma solidity ^0.8.20;
/**
* @dev Implementation of the {IERC165} interface.
*
* Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
* for the additional interface id that will be supported. For example:
*
* ```solidity
* function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
* return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
* }
* ```
*/
abstract contract ERC165 is IERC165 {
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) {
return interfaceId == type(IERC165).interfaceId;
}
}
// File: @openzeppelin/contracts/access/AccessControl.sol
// OpenZeppelin Contracts (last updated v5.0.0) (access/AccessControl.sol)
pragma solidity ^0.8.20;
/**
* @dev Contract module that allows children to implement role-based access
* control mechanisms. This is a lightweight version that doesn't allow enumerating role
* members except through off-chain means by accessing the contract event logs. Some
* applications may benefit from on-chain enumerability, for those cases see
* {AccessControlEnumerable}.
*
* Roles are referred to by their `bytes32` identifier. These should be exposed
* in the external API and be unique. The best way to achieve this is by
* using `public constant` hash digests:
*
* ```solidity
* bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
* ```
*
* Roles can be used to represent a set of permissions. To restrict access to a
* function call, use {hasRole}:
*
* ```solidity
* function foo() public {
* require(hasRole(MY_ROLE, msg.sender));
* ...
* }
* ```
*
* Roles can be granted and revoked dynamically via the {grantRole} and
* {revokeRole} functions. Each role has an associated admin role, and only
* accounts that have a role's admin role can call {grantRole} and {revokeRole}.
*
* By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
* that only accounts with this role will be able to grant or revoke other
* roles. More complex role relationships can be created by using
* {_setRoleAdmin}.
*
* WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
* grant and revoke this role. Extra precautions should be taken to secure
* accounts that have been granted it. We recommend using {AccessControlDefaultAdminRules}
* to enforce additional security measures for this role.
*/
abstract contract AccessControl is Context, IAccessControl, ERC165 {
struct RoleData {
mapping(address account => bool) hasRole;
bytes32 adminRole;
}
mapping(bytes32 role => RoleData) private _roles;
bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;
/**
* @dev Modifier that checks that an account has a specific role. Reverts
* with an {AccessControlUnauthorizedAccount} error including the required role.
*/
modifier onlyRole(bytes32 role) {
_checkRole(role);
_;
}
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId);
}
/**
* @dev Returns `true` if `account` has been granted `role`.
*/
function hasRole(bytes32 role, address account) public view virtual returns (bool) {
return _roles[role].hasRole[account];
}
/**
* @dev Reverts with an {AccessControlUnauthorizedAccount} error if `_msgSender()`
* is missing `role`. Overriding this function changes the behavior of the {onlyRole} modifier.
*/
function _checkRole(bytes32 role) internal view virtual {
_checkRole(role, _msgSender());
}
/**
* @dev Reverts with an {AccessControlUnauthorizedAccount} error if `account`
* is missing `role`.
*/
function _checkRole(bytes32 role, address account) internal view virtual {
if (!hasRole(role, account)) {
revert AccessControlUnauthorizedAccount(account, role);
}
}
/**
* @dev Returns the admin role that controls `role`. See {grantRole} and
* {revokeRole}.
*
* To change a role's admin, use {_setRoleAdmin}.
*/
function getRoleAdmin(bytes32 role) public view virtual returns (bytes32) {
return _roles[role].adminRole;
}
/**
* @dev Grants `role` to `account`.
*
* If `account` had not been already granted `role`, emits a {RoleGranted}
* event.
*
* Requirements:
*
* - the caller must have ``role``'s admin role.
*
* May emit a {RoleGranted} event.
*/
function grantRole(bytes32 role, address account) public virtual onlyRole(getRoleAdmin(role)) {
_grantRole(role, account);
}
/**
* @dev Revokes `role` from `account`.
*
* If `account` had been granted `role`, emits a {RoleRevoked} event.
*
* Requirements:
*
* - the caller must have ``role``'s admin role.
*
* May emit a {RoleRevoked} event.
*/
function revokeRole(bytes32 role, address account) public virtual onlyRole(getRoleAdmin(role)) {
_revokeRole(role, account);
}
/**
* @dev Revokes `role` from the calling account.
*
* Roles are often managed via {grantRole} and {revokeRole}: this function's
* purpose is to provide a mechanism for accounts to lose their privileges
* if they are compromised (such as when a trusted device is misplaced).
*
* If the calling account had been revoked `role`, emits a {RoleRevoked}
* event.
*
* Requirements:
*
* - the caller must be `callerConfirmation`.
*
* May emit a {RoleRevoked} event.
*/
function renounceRole(bytes32 role, address callerConfirmation) public virtual {
if (callerConfirmation != _msgSender()) {
revert AccessControlBadConfirmation();
}
_revokeRole(role, callerConfirmation);
}
/**
* @dev Sets `adminRole` as ``role``'s admin role.
*
* Emits a {RoleAdminChanged} event.
*/
function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
bytes32 previousAdminRole = getRoleAdmin(role);
_roles[role].adminRole = adminRole;
emit RoleAdminChanged(role, previousAdminRole, adminRole);
}
/**
* @dev Attempts to grant `role` to `account` and returns a boolean indicating if `role` was granted.
*
* Internal function without access restriction.
*
* May emit a {RoleGranted} event.
*/
function _grantRole(bytes32 role, address account) internal virtual returns (bool) {
if (!hasRole(role, account)) {
_roles[role].hasRole[account] = true;
emit RoleGranted(role, account, _msgSender());
return true;
} else {
return false;
}
}
/**
* @dev Attempts to revoke `role` to `account` and returns a boolean indicating if `role` was revoked.
*
* Internal function without access restriction.
*
* May emit a {RoleRevoked} event.
*/
function _revokeRole(bytes32 role, address account) internal virtual returns (bool) {
if (hasRole(role, account)) {
_roles[role].hasRole[account] = false;
emit RoleRevoked(role, account, _msgSender());
return true;
} else {
return false;
}
}
}
// File: contract/tokens/DogGoToTheMoon.sol
pragma solidity ^0.8.0;
/**
* name: DOG•GO•TO•THE•MOON
* symbol: DOG
* divisibility: 5
* decimals: 18
*/
contract DogGoToTheMoon is AccessControl, ERC20 {
bytes32 public constant AGENT_ROLE = 0xcab5a0bfe0b79d2c4b1c2e02599fa044d115b7511f9659307cb4276950967709; // keccak256("AGENT_ROLE")
uint8 public tokenDecimals;
constructor(
string memory name,
string memory symbol,
uint8 _tokenDecimals
) ERC20(name, symbol) {
_grantRole(DEFAULT_ADMIN_ROLE, _msgSender());
_grantRole(AGENT_ROLE, _msgSender());
tokenDecimals = _tokenDecimals;
}
function mint(address account, uint256 amount) public onlyRole(AGENT_ROLE) {
_mint(account, amount);
}
function burn(uint256 amount) public {
_burn(msg.sender, amount);
}
function decimals() public view virtual override returns (uint8) {
return tokenDecimals;
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"uint8","name":"_tokenDecimals","type":"uint8"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AccessControlBadConfirmation","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bytes32","name":"neededRole","type":"bytes32"}],"name":"AccessControlUnauthorizedAccount","type":"error"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"allowance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientAllowance","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientBalance","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC20InvalidApprover","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC20InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC20InvalidSender","type":"error"},{"inputs":[{"internalType":"address","name":"spender","type":"address"}],"name":"ERC20InvalidSpender","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"AGENT_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"callerConfirmation","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenDecimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
608060405234801561000f575f80fd5b5060405161119338038061119383398101604081905261002e916101e6565b8282600461003c83826102e7565b50600561004982826102e7565b5061005891505f9050336100a0565b506100837fcab5a0bfe0b79d2c4b1c2e02599fa044d115b7511f9659307cb4276950967709336100a0565b506006805460ff191660ff92909216919091179055506103a19050565b5f828152602081815260408083206001600160a01b038516845290915281205460ff16610140575f838152602081815260408083206001600160a01b03861684529091529020805460ff191660011790556100f83390565b6001600160a01b0316826001600160a01b0316847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a4506001610143565b505f5b92915050565b634e487b7160e01b5f52604160045260245ffd5b5f82601f83011261016c575f80fd5b81516001600160401b0381111561018557610185610149565b604051601f8201601f19908116603f011681016001600160401b03811182821017156101b3576101b3610149565b6040528181528382016020018510156101ca575f80fd5b8160208501602083015e5f918101602001919091529392505050565b5f805f606084860312156101f8575f80fd5b83516001600160401b0381111561020d575f80fd5b6102198682870161015d565b602086015190945090506001600160401b03811115610236575f80fd5b6102428682870161015d565b925050604084015160ff81168114610258575f80fd5b809150509250925092565b600181811c9082168061027757607f821691505b60208210810361029557634e487b7160e01b5f52602260045260245ffd5b50919050565b601f8211156102e257805f5260205f20601f840160051c810160208510156102c05750805b601f840160051c820191505b818110156102df575f81556001016102cc565b50505b505050565b81516001600160401b0381111561030057610300610149565b6103148161030e8454610263565b8461029b565b6020601f821160018114610346575f831561032f5750848201515b5f19600385901b1c1916600184901b1784556102df565b5f84815260208120601f198516915b828110156103755787850151825560209485019460019092019101610355565b508482101561039257868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b610de5806103ae5f395ff3fe608060405234801561000f575f80fd5b5060043610610163575f3560e01c80633b97e856116100c757806395d89b411161007d578063a9059cbb11610063578063a9059cbb14610306578063d547741f14610319578063dd62ed3e1461032c575f80fd5b806395d89b41146102f7578063a217fddf146102ff575f80fd5b806342966c68116100ad57806342966c681461028657806370a082311461029957806391d14854146102c1575f80fd5b80633b97e8561461026657806340c10f1914610273575f80fd5b806323b872dd1161011c5780632f2ff15d116101025780632f2ff15d14610225578063313ce5671461023a57806336568abe14610253575f80fd5b806323b872dd146101f0578063248a9ca314610203575f80fd5b8063095ea7b31161014c578063095ea7b3146101a457806318160ddd146101b757806322459e18146101c9575f80fd5b806301ffc9a71461016757806306fdde031461018f575b5f80fd5b61017a610175366004610b8e565b610364565b60405190151581526020015b60405180910390f35b6101976103fc565b6040516101869190610bd4565b61017a6101b2366004610c42565b61048c565b6003545b604051908152602001610186565b6101bb7fcab5a0bfe0b79d2c4b1c2e02599fa044d115b7511f9659307cb427695096770981565b61017a6101fe366004610c6a565b6104a3565b6101bb610211366004610ca4565b5f9081526020819052604090206001015490565b610238610233366004610cbb565b6104c6565b005b60065460ff165b60405160ff9091168152602001610186565b610238610261366004610cbb565b6104f0565b6006546102419060ff1681565b610238610281366004610c42565b610541565b610238610294366004610ca4565b610575565b6101bb6102a7366004610ce5565b6001600160a01b03165f9081526001602052604090205490565b61017a6102cf366004610cbb565b5f918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b610197610582565b6101bb5f81565b61017a610314366004610c42565b610591565b610238610327366004610cbb565b61059e565b6101bb61033a366004610cfe565b6001600160a01b039182165f90815260026020908152604080832093909416825291909152205490565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b0000000000000000000000000000000000000000000000000000000014806103f657507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b60606004805461040b90610d26565b80601f016020809104026020016040519081016040528092919081815260200182805461043790610d26565b80156104825780601f1061045957610100808354040283529160200191610482565b820191905f5260205f20905b81548152906001019060200180831161046557829003601f168201915b5050505050905090565b5f336104998185856105c2565b5060019392505050565b5f336104b08582856105cf565b6104bb858585610681565b506001949350505050565b5f828152602081905260409020600101546104e081610710565b6104ea838361071a565b50505050565b6001600160a01b0381163314610532576040517f6697b23200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61053c82826107c1565b505050565b7fcab5a0bfe0b79d2c4b1c2e02599fa044d115b7511f9659307cb427695096770961056b81610710565b61053c8383610842565b61057f3382610893565b50565b60606005805461040b90610d26565b5f33610499818585610681565b5f828152602081905260409020600101546105b881610710565b6104ea83836107c1565b61053c83838360016108e0565b6001600160a01b038381165f908152600260209081526040808320938616835292905220547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146104ea5781811015610673576040517ffb8f41b20000000000000000000000000000000000000000000000000000000081526001600160a01b038416600482015260248101829052604481018390526064015b60405180910390fd5b6104ea84848484035f6108e0565b6001600160a01b0383166106c3576040517f96c6fd1e0000000000000000000000000000000000000000000000000000000081525f600482015260240161066a565b6001600160a01b038216610705576040517fec442f050000000000000000000000000000000000000000000000000000000081525f600482015260240161066a565b61053c8383836109e4565b61057f8133610b23565b5f828152602081815260408083206001600160a01b038516845290915281205460ff166107ba575f838152602081815260408083206001600160a01b03861684529091529020805460ff191660011790556107723390565b6001600160a01b0316826001600160a01b0316847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45060016103f6565b505f6103f6565b5f828152602081815260408083206001600160a01b038516845290915281205460ff16156107ba575f838152602081815260408083206001600160a01b0386168085529252808320805460ff1916905551339286917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45060016103f6565b6001600160a01b038216610884576040517fec442f050000000000000000000000000000000000000000000000000000000081525f600482015260240161066a565b61088f5f83836109e4565b5050565b6001600160a01b0382166108d5576040517f96c6fd1e0000000000000000000000000000000000000000000000000000000081525f600482015260240161066a565b61088f825f836109e4565b6001600160a01b038416610922576040517fe602df050000000000000000000000000000000000000000000000000000000081525f600482015260240161066a565b6001600160a01b038316610964576040517f94280d620000000000000000000000000000000000000000000000000000000081525f600482015260240161066a565b6001600160a01b038085165f90815260026020908152604080832093871683529290522082905580156104ea57826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040516109d691815260200190565b60405180910390a350505050565b6001600160a01b038316610a0e578060035f828254610a039190610d77565b90915550610a979050565b6001600160a01b0383165f9081526001602052604090205481811015610a79576040517fe450d38c0000000000000000000000000000000000000000000000000000000081526001600160a01b0385166004820152602481018290526044810183905260640161066a565b6001600160a01b0384165f9081526001602052604090209082900390555b6001600160a01b038216610ab357600380548290039055610ad1565b6001600160a01b0382165f9081526001602052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051610b1691815260200190565b60405180910390a3505050565b5f828152602081815260408083206001600160a01b038516845290915290205460ff1661088f576040517fe2517d3f0000000000000000000000000000000000000000000000000000000081526001600160a01b03821660048201526024810183905260440161066a565b5f60208284031215610b9e575f80fd5b81357fffffffff0000000000000000000000000000000000000000000000000000000081168114610bcd575f80fd5b9392505050565b602081525f82518060208401528060208501604085015e5f6040828501015260407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f83011684010191505092915050565b80356001600160a01b0381168114610c3d575f80fd5b919050565b5f8060408385031215610c53575f80fd5b610c5c83610c27565b946020939093013593505050565b5f805f60608486031215610c7c575f80fd5b610c8584610c27565b9250610c9360208501610c27565b929592945050506040919091013590565b5f60208284031215610cb4575f80fd5b5035919050565b5f8060408385031215610ccc575f80fd5b82359150610cdc60208401610c27565b90509250929050565b5f60208284031215610cf5575f80fd5b610bcd82610c27565b5f8060408385031215610d0f575f80fd5b610d1883610c27565b9150610cdc60208401610c27565b600181811c90821680610d3a57607f821691505b602082108103610d71577f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b50919050565b808201808211156103f6577f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffdfea264697066735822122081874712055ec27e3059abeb3bdfd5d480708c5f659cd1d0ea9757ac1e07f0c764736f6c634300081a0033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000001a444f47e280a2474fe280a2544fe280a2544845e280a24d4f4f4e0000000000000000000000000000000000000000000000000000000000000000000000000003444f470000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561000f575f80fd5b5060043610610163575f3560e01c80633b97e856116100c757806395d89b411161007d578063a9059cbb11610063578063a9059cbb14610306578063d547741f14610319578063dd62ed3e1461032c575f80fd5b806395d89b41146102f7578063a217fddf146102ff575f80fd5b806342966c68116100ad57806342966c681461028657806370a082311461029957806391d14854146102c1575f80fd5b80633b97e8561461026657806340c10f1914610273575f80fd5b806323b872dd1161011c5780632f2ff15d116101025780632f2ff15d14610225578063313ce5671461023a57806336568abe14610253575f80fd5b806323b872dd146101f0578063248a9ca314610203575f80fd5b8063095ea7b31161014c578063095ea7b3146101a457806318160ddd146101b757806322459e18146101c9575f80fd5b806301ffc9a71461016757806306fdde031461018f575b5f80fd5b61017a610175366004610b8e565b610364565b60405190151581526020015b60405180910390f35b6101976103fc565b6040516101869190610bd4565b61017a6101b2366004610c42565b61048c565b6003545b604051908152602001610186565b6101bb7fcab5a0bfe0b79d2c4b1c2e02599fa044d115b7511f9659307cb427695096770981565b61017a6101fe366004610c6a565b6104a3565b6101bb610211366004610ca4565b5f9081526020819052604090206001015490565b610238610233366004610cbb565b6104c6565b005b60065460ff165b60405160ff9091168152602001610186565b610238610261366004610cbb565b6104f0565b6006546102419060ff1681565b610238610281366004610c42565b610541565b610238610294366004610ca4565b610575565b6101bb6102a7366004610ce5565b6001600160a01b03165f9081526001602052604090205490565b61017a6102cf366004610cbb565b5f918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b610197610582565b6101bb5f81565b61017a610314366004610c42565b610591565b610238610327366004610cbb565b61059e565b6101bb61033a366004610cfe565b6001600160a01b039182165f90815260026020908152604080832093909416825291909152205490565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b0000000000000000000000000000000000000000000000000000000014806103f657507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b60606004805461040b90610d26565b80601f016020809104026020016040519081016040528092919081815260200182805461043790610d26565b80156104825780601f1061045957610100808354040283529160200191610482565b820191905f5260205f20905b81548152906001019060200180831161046557829003601f168201915b5050505050905090565b5f336104998185856105c2565b5060019392505050565b5f336104b08582856105cf565b6104bb858585610681565b506001949350505050565b5f828152602081905260409020600101546104e081610710565b6104ea838361071a565b50505050565b6001600160a01b0381163314610532576040517f6697b23200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61053c82826107c1565b505050565b7fcab5a0bfe0b79d2c4b1c2e02599fa044d115b7511f9659307cb427695096770961056b81610710565b61053c8383610842565b61057f3382610893565b50565b60606005805461040b90610d26565b5f33610499818585610681565b5f828152602081905260409020600101546105b881610710565b6104ea83836107c1565b61053c83838360016108e0565b6001600160a01b038381165f908152600260209081526040808320938616835292905220547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146104ea5781811015610673576040517ffb8f41b20000000000000000000000000000000000000000000000000000000081526001600160a01b038416600482015260248101829052604481018390526064015b60405180910390fd5b6104ea84848484035f6108e0565b6001600160a01b0383166106c3576040517f96c6fd1e0000000000000000000000000000000000000000000000000000000081525f600482015260240161066a565b6001600160a01b038216610705576040517fec442f050000000000000000000000000000000000000000000000000000000081525f600482015260240161066a565b61053c8383836109e4565b61057f8133610b23565b5f828152602081815260408083206001600160a01b038516845290915281205460ff166107ba575f838152602081815260408083206001600160a01b03861684529091529020805460ff191660011790556107723390565b6001600160a01b0316826001600160a01b0316847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45060016103f6565b505f6103f6565b5f828152602081815260408083206001600160a01b038516845290915281205460ff16156107ba575f838152602081815260408083206001600160a01b0386168085529252808320805460ff1916905551339286917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45060016103f6565b6001600160a01b038216610884576040517fec442f050000000000000000000000000000000000000000000000000000000081525f600482015260240161066a565b61088f5f83836109e4565b5050565b6001600160a01b0382166108d5576040517f96c6fd1e0000000000000000000000000000000000000000000000000000000081525f600482015260240161066a565b61088f825f836109e4565b6001600160a01b038416610922576040517fe602df050000000000000000000000000000000000000000000000000000000081525f600482015260240161066a565b6001600160a01b038316610964576040517f94280d620000000000000000000000000000000000000000000000000000000081525f600482015260240161066a565b6001600160a01b038085165f90815260026020908152604080832093871683529290522082905580156104ea57826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040516109d691815260200190565b60405180910390a350505050565b6001600160a01b038316610a0e578060035f828254610a039190610d77565b90915550610a979050565b6001600160a01b0383165f9081526001602052604090205481811015610a79576040517fe450d38c0000000000000000000000000000000000000000000000000000000081526001600160a01b0385166004820152602481018290526044810183905260640161066a565b6001600160a01b0384165f9081526001602052604090209082900390555b6001600160a01b038216610ab357600380548290039055610ad1565b6001600160a01b0382165f9081526001602052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051610b1691815260200190565b60405180910390a3505050565b5f828152602081815260408083206001600160a01b038516845290915290205460ff1661088f576040517fe2517d3f0000000000000000000000000000000000000000000000000000000081526001600160a01b03821660048201526024810183905260440161066a565b5f60208284031215610b9e575f80fd5b81357fffffffff0000000000000000000000000000000000000000000000000000000081168114610bcd575f80fd5b9392505050565b602081525f82518060208401528060208501604085015e5f6040828501015260407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f83011684010191505092915050565b80356001600160a01b0381168114610c3d575f80fd5b919050565b5f8060408385031215610c53575f80fd5b610c5c83610c27565b946020939093013593505050565b5f805f60608486031215610c7c575f80fd5b610c8584610c27565b9250610c9360208501610c27565b929592945050506040919091013590565b5f60208284031215610cb4575f80fd5b5035919050565b5f8060408385031215610ccc575f80fd5b82359150610cdc60208401610c27565b90509250929050565b5f60208284031215610cf5575f80fd5b610bcd82610c27565b5f8060408385031215610d0f575f80fd5b610d1883610c27565b9150610cdc60208401610c27565b600181811c90821680610d3a57607f821691505b602082108103610d71577f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b50919050565b808201808211156103f6577f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffdfea264697066735822122081874712055ec27e3059abeb3bdfd5d480708c5f659cd1d0ea9757ac1e07f0c764736f6c634300081a0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000001a444f47e280a2474fe280a2544fe280a2544845e280a24d4f4f4e0000000000000000000000000000000000000000000000000000000000000000000000000003444f470000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : name (string): DOG•GO•TO•THE•MOON
Arg [1] : symbol (string): DOG
Arg [2] : _tokenDecimals (uint8): 18
-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000012
Arg [3] : 000000000000000000000000000000000000000000000000000000000000001a
Arg [4] : 444f47e280a2474fe280a2544fe280a2544845e280a24d4f4f4e000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [6] : 444f470000000000000000000000000000000000000000000000000000000000
Deployed Bytecode Sourcemap
35201:838:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30395:204;;;;;;:::i;:::-;;:::i;:::-;;;516:14:1;;509:22;491:41;;479:2;464:18;30395:204:0;;;;;;;;13297:91;;;:::i;:::-;;;;;;;:::i;15590:190::-;;;;;;:::i;:::-;;:::i;14399:99::-;14478:12;;14399:99;;;1677:25:1;;;1665:2;1650:18;14399:99:0;1531:177:1;35256:103:0;;35293:66;35256:103;;16358:249;;;;;;:::i;:::-;;:::i;31675:122::-;;;;;;:::i;:::-;31740:7;31767:12;;;;;;;;;;:22;;;;31675:122;32107:138;;;;;;:::i;:::-;;:::i;:::-;;35932:104;36015:13;;;;35932:104;;;2982:4:1;2970:17;;;2952:36;;2940:2;2925:18;35932:104:0;2810:184:1;33244:251:0;;;;;;:::i;:::-;;:::i;35395:26::-;;;;;;;;;35719:116;;;;;;:::i;:::-;;:::i;35843:81::-;;;;;;:::i;:::-;;:::i;14561:118::-;;;;;;:::i;:::-;-1:-1:-1;;;;;14653:18:0;14626:7;14653:18;;;:9;:18;;;;;;;14561:118;30691:138;;;;;;:::i;:::-;30768:4;30792:12;;;;;;;;;;;-1:-1:-1;;;;;30792:29:0;;;;;;;;;;;;;;;30691:138;13507:95;;;:::i;30003:49::-;;30048:4;30003:49;;14884:182;;;;;;:::i;:::-;;:::i;32538:140::-;;;;;;:::i;:::-;;:::i;15129:142::-;;;;;;:::i;:::-;-1:-1:-1;;;;;15236:18:0;;;15209:7;15236:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;15129:142;30395:204;30480:4;30504:47;;;30519:32;30504:47;;:87;;-1:-1:-1;27846:25:0;27831:40;;;;30555:36;30497:94;30395:204;-1:-1:-1;;30395:204:0:o;13297:91::-;13342:13;13375:5;13368:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13297:91;:::o;15590:190::-;15663:4;4382:10;15719:31;4382:10;15735:7;15744:5;15719:8;:31::i;:::-;-1:-1:-1;15768:4:0;;15590:190;-1:-1:-1;;;15590:190:0:o;16358:249::-;16445:4;4382:10;16503:37;16519:4;4382:10;16534:5;16503:15;:37::i;:::-;16551:26;16561:4;16567:2;16571:5;16551:9;:26::i;:::-;-1:-1:-1;16595:4:0;;16358:249;-1:-1:-1;;;;16358:249:0:o;32107:138::-;31740:7;31767:12;;;;;;;;;;:22;;;30287:16;30298:4;30287:10;:16::i;:::-;32212:25:::1;32223:4;32229:7;32212:10;:25::i;:::-;;32107:138:::0;;;:::o;33244:251::-;-1:-1:-1;;;;;33338:34:0;;4382:10;33338:34;33334:104;;33396:30;;;;;;;;;;;;;;33334:104;33450:37;33462:4;33468:18;33450:11;:37::i;:::-;;33244:251;;:::o;35719:116::-;35293:66;30287:16;35293:66;30287:10;:16::i;:::-;35805:22:::1;35811:7;35820:6;35805:5;:22::i;35843:81::-:0;35891:25;35897:10;35909:6;35891:5;:25::i;:::-;35843:81;:::o;13507:95::-;13554:13;13587:7;13580:14;;;;;:::i;14884:182::-;14953:4;4382:10;15009:27;4382:10;15026:2;15030:5;15009:9;:27::i;32538:140::-;31740:7;31767:12;;;;;;;;;;:22;;;30287:16;30298:4;30287:10;:16::i;:::-;32644:26:::1;32656:4;32662:7;32644:11;:26::i;20417:130::-:0;20502:37;20511:5;20518:7;20527:5;20534:4;20502:8;:37::i;22133:487::-;-1:-1:-1;;;;;15236:18:0;;;22233:24;15236:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;22320:17;22300:37;;22296:317;;22377:5;22358:16;:24;22354:132;;;22410:60;;;;;-1:-1:-1;;;;;4348:55:1;;22410:60:0;;;4330:74:1;4420:18;;;4413:34;;;4463:18;;;4456:34;;;4303:18;;22410:60:0;;;;;;;;22354:132;22529:57;22538:5;22545:7;22573:5;22554:16;:24;22580:5;22529:8;:57::i;16992:308::-;-1:-1:-1;;;;;17076:18:0;;17072:88;;17118:30;;;;;17145:1;17118:30;;;4647:74:1;4620:18;;17118:30:0;4501:226:1;17072:88:0;-1:-1:-1;;;;;17174:16:0;;17170:88;;17214:32;;;;;17243:1;17214:32;;;4647:74:1;4620:18;;17214:32:0;4501:226:1;17170:88:0;17268:24;17276:4;17282:2;17286:5;17268:7;:24::i;31044:105::-;31111:30;31122:4;4382:10;31111;:30::i;34121:324::-;34198:4;30792:12;;;;;;;;;;;-1:-1:-1;;;;;30792:29:0;;;;;;;;;;;;34215:223;;34259:6;:12;;;;;;;;;;;-1:-1:-1;;;;;34259:29:0;;;;;;;;;:36;;-1:-1:-1;;34259:36:0;34291:4;34259:36;;;34342:12;4382:10;;4302:98;34342:12;-1:-1:-1;;;;;34315:40:0;34333:7;-1:-1:-1;;;;;34315:40:0;34327:4;34315:40;;;;;;;;;;-1:-1:-1;34377:4:0;34370:11;;34215:223;-1:-1:-1;34421:5:0;34414:12;;34689:325;34767:4;30792:12;;;;;;;;;;;-1:-1:-1;;;;;30792:29:0;;;;;;;;;;;;34784:223;;;34859:5;34827:12;;;;;;;;;;;-1:-1:-1;;;;;34827:29:0;;;;;;;;;;:37;;-1:-1:-1;;34827:37:0;;;34884:40;4382:10;;34827:12;;34884:40;;34859:5;34884:40;-1:-1:-1;34946:4:0;34939:11;;19112:213;-1:-1:-1;;;;;19183:21:0;;19179:93;;19228:32;;;;;19257:1;19228:32;;;4647:74:1;4620:18;;19228:32:0;4501:226:1;19179:93:0;19282:35;19298:1;19302:7;19311:5;19282:7;:35::i;:::-;19112:213;;:::o;19653:211::-;-1:-1:-1;;;;;19724:21:0;;19720:91;;19769:30;;;;;19796:1;19769:30;;;4647:74:1;4620:18;;19769:30:0;4501:226:1;19720:91:0;19821:35;19829:7;19846:1;19850:5;19821:7;:35::i;21398:443::-;-1:-1:-1;;;;;21511:19:0;;21507:91;;21554:32;;;;;21583:1;21554:32;;;4647:74:1;4620:18;;21554:32:0;4501:226:1;21507:91:0;-1:-1:-1;;;;;21612:21:0;;21608:92;;21657:31;;;;;21685:1;21657:31;;;4647:74:1;4620:18;;21657:31:0;4501:226:1;21608:92:0;-1:-1:-1;;;;;21710:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;:35;;;21756:78;;;;21807:7;-1:-1:-1;;;;;21791:31:0;21800:5;-1:-1:-1;;;;;21791:31:0;;21816:5;21791:31;;;;1677:25:1;;1665:2;1650:18;;1531:177;21791:31:0;;;;;;;;21398:443;;;;:::o;17624:1135::-;-1:-1:-1;;;;;17714:18:0;;17710:552;;17868:5;17852:12;;:21;;;;;;;:::i;:::-;;;;-1:-1:-1;17710:552:0;;-1:-1:-1;17710:552:0;;-1:-1:-1;;;;;17928:15:0;;17906:19;17928:15;;;:9;:15;;;;;;17962:19;;;17958:117;;;18009:50;;;;;-1:-1:-1;;;;;4348:55:1;;18009:50:0;;;4330:74:1;4420:18;;;4413:34;;;4463:18;;;4456:34;;;4303:18;;18009:50:0;4128:368:1;17958:117:0;-1:-1:-1;;;;;18198:15:0;;;;;;:9;:15;;;;;18216:19;;;;18198:37;;17710:552;-1:-1:-1;;;;;18278:16:0;;18274:435;;18444:12;:21;;;;;;;18274:435;;;-1:-1:-1;;;;;18660:13:0;;;;;;:9;:13;;;;;:22;;;;;;18274:435;18741:2;-1:-1:-1;;;;;18726:25:0;18735:4;-1:-1:-1;;;;;18726:25:0;;18745:5;18726:25;;;;1677::1;;1665:2;1650:18;;1531:177;18726:25:0;;;;;;;;17624:1135;;;:::o;31285:201::-;30768:4;30792:12;;;;;;;;;;;-1:-1:-1;;;;;30792:29:0;;;;;;;;;;;;31369:110;;31420:47;;;;;-1:-1:-1;;;;;5208:55:1;;31420:47:0;;;5190:74:1;5280:18;;;5273:34;;;5163:18;;31420:47:0;5016:297:1;14:332;72:6;125:2;113:9;104:7;100:23;96:32;93:52;;;141:1;138;131:12;93:52;180:9;167:23;230:66;223:5;219:78;212:5;209:89;199:117;;312:1;309;302:12;199:117;335:5;14:332;-1:-1:-1;;;14:332:1:o;543:477::-;692:2;681:9;674:21;655:4;724:6;718:13;767:6;762:2;751:9;747:18;740:34;826:6;821:2;813:6;809:15;804:2;793:9;789:18;783:50;882:1;877:2;868:6;857:9;853:22;849:31;842:42;1011:2;941:66;936:2;928:6;924:15;920:88;909:9;905:104;901:113;893:121;;;543:477;;;;:::o;1025:196::-;1093:20;;-1:-1:-1;;;;;1142:54:1;;1132:65;;1122:93;;1211:1;1208;1201:12;1122:93;1025:196;;;:::o;1226:300::-;1294:6;1302;1355:2;1343:9;1334:7;1330:23;1326:32;1323:52;;;1371:1;1368;1361:12;1323:52;1394:29;1413:9;1394:29;:::i;:::-;1384:39;1492:2;1477:18;;;;1464:32;;-1:-1:-1;;;1226:300:1:o;1895:374::-;1972:6;1980;1988;2041:2;2029:9;2020:7;2016:23;2012:32;2009:52;;;2057:1;2054;2047:12;2009:52;2080:29;2099:9;2080:29;:::i;:::-;2070:39;;2128:38;2162:2;2151:9;2147:18;2128:38;:::i;:::-;1895:374;;2118:48;;-1:-1:-1;;;2235:2:1;2220:18;;;;2207:32;;1895:374::o;2274:226::-;2333:6;2386:2;2374:9;2365:7;2361:23;2357:32;2354:52;;;2402:1;2399;2392:12;2354:52;-1:-1:-1;2447:23:1;;2274:226;-1:-1:-1;2274:226:1:o;2505:300::-;2573:6;2581;2634:2;2622:9;2613:7;2609:23;2605:32;2602:52;;;2650:1;2647;2640:12;2602:52;2695:23;;;-1:-1:-1;2761:38:1;2795:2;2780:18;;2761:38;:::i;:::-;2751:48;;2505:300;;;;;:::o;3230:186::-;3289:6;3342:2;3330:9;3321:7;3317:23;3313:32;3310:52;;;3358:1;3355;3348:12;3310:52;3381:29;3400:9;3381:29;:::i;3421:260::-;3489:6;3497;3550:2;3538:9;3529:7;3525:23;3521:32;3518:52;;;3566:1;3563;3556:12;3518:52;3589:29;3608:9;3589:29;:::i;:::-;3579:39;;3637:38;3671:2;3660:9;3656:18;3637:38;:::i;3686:437::-;3765:1;3761:12;;;;3808;;;3829:61;;3883:4;3875:6;3871:17;3861:27;;3829:61;3936:2;3928:6;3925:14;3905:18;3902:38;3899:218;;3973:77;3970:1;3963:88;4074:4;4071:1;4064:15;4102:4;4099:1;4092:15;3899:218;;3686:437;;;:::o;4732:279::-;4797:9;;;4818:10;;;4815:190;;;4861:77;4858:1;4851:88;4962:4;4959:1;4952:15;4990:4;4987:1;4980:15
Swarm Source
ipfs://81874712055ec27e3059abeb3bdfd5d480708c5f659cd1d0ea9757ac1e07f0c7
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$17.43
Net Worth in ETH
0.006087
Token Allocations
BNB
100.00%
Multichain Portfolio | 35 Chains
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.