Contract Overview
Balance:
0 BTT
My Name Tag:
Not Available
TokenTracker:
[ Download CSV Export ]
Latest 1 internal transaction
Parent Txn Hash | Block | From | To | Value | |||
---|---|---|---|---|---|---|---|
0xb732f97414b0dd49e7c5efe56dc6eb560ee50e77d368443c2b82066a5cfee9cb | 14938671 | 74 days 3 hrs ago | 0x4d608b3b8d069896487fe6aa9752a96868677625 | 0xec6e1d1aaa025336742663bd3639398bb1b1c6cc | 0 BTT |
[ Download CSV Export ]
Contract Name:
Loyalty
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { require(!paused(), "Pausable: paused"); } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { require(paused(), "Pausable: not paused"); } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; import "./IERC20.sol"; import "./extensions/IERC20Metadata.sol"; import "../../utils/Context.sol"; /** * @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}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * 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]. * * 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. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * 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 override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override 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 value {ERC20} uses, unless this function is * 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 override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override 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 `amount`. */ function transfer(address to, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `amount` 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 amount) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, spender, amount); 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 `amount`. * - the caller must have allowance for ``from``'s tokens of at least * `amount`. */ function transferFrom( address from, address to, uint256 amount ) public virtual override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, amount); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, allowance(owner, spender) + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { address owner = _msgSender(); uint256 currentAllowance = allowance(owner, spender); require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `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. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. */ function _transfer( address from, address to, uint256 amount ) internal virtual { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(from, to, amount); uint256 fromBalance = _balances[from]; require(fromBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[from] = fromBalance - amount; // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by // decrementing then incrementing. _balances[to] += amount; } emit Transfer(from, to, amount); _afterTokenTransfer(from, to, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; unchecked { // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above. _balances[account] += amount; } emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; // Overflow not possible: amount <= accountBalance <= totalSupply. _totalSupply -= amount; } emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` 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. */ function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Updates `owner` s allowance for `spender` based on spent `amount`. * * Does not update the allowance amount in case of infinite allowance. * Revert if not enough allowance is available. * * Might emit an {Approval} event. */ function _spendAllowance( address owner, address spender, uint256 amount ) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require(currentAllowance >= amount, "ERC20: insufficient allowance"); unchecked { _approve(owner, spender, currentAllowance - amount); } } } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ 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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @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 amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` 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 amount) 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 `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @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; } }
// SPDX-License-Identifier: None pragma solidity ^0.8.0; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; /** @title Loyalty contract (ERC-20) @dev This contract issues Loyalty Points that corresponding to one Membership type Note: - Membership and Loyalty contract are deployed as a pair - Loyalty points are un-transferable/un-tradeable - But they could be swappable/exchangeable with constraints (optional) */ contract Loyalty is ERC20, Pausable, Ownable { uint8 private immutable DECIMALS; // A list of Operators that are granted a privilege to operator special tasks mapping(address => bool) public operators; event UpdatePoint( address indexed member, uint256 indexed oPoint, uint256 indexed nPoint ); modifier onlyOperator() { require(operators[_msgSender()], "Only Operator"); _; } modifier disabled() { _; revert("Loyalty: transfer/approve are disabled"); } constructor( string memory name_, string memory symbol_, uint8 _decimals ) ERC20(name_, symbol_) { DECIMALS = _decimals; } /** @notice Return `decimals` of this Loyalty type @dev Caller can be ANY */ function decimals() public view override returns (uint8) { return DECIMALS; } /** @notice Set the contract to `paused = true` state @dev Caller must be Owner Note: During `paused = true`, loyalty points are unable to be updated */ function pause() external onlyOwner { _pause(); } /** @notice Set the contract to `paused = false` state @dev Caller must be Owner Note: During `paused = false`, operations are back to normal */ function unpause() external onlyOwner { _unpause(); } /** @notice Set/Unset `operator` of the Loyalty contract @dev Caller must be Owner @param _operators A list of addresses will be set/unset a operator role @param _isAdded Boolean flag (Set = True, Unset = False) Note: `operator` is a special role that has authority to update loyalty points */ function setOperator(address[] calldata _operators, bool _isAdded) external onlyOwner { uint256 _len = _operators.length; for (uint256 i; i < _len; i++) operators[_operators[i]] = _isAdded; } /** @notice Update loyalty points of `_account` @dev Caller must be Operator @param _account Account address will be updated loyalty points @param _amount Amount of points will be updated @param _isAdded Boolean flag (Add = True, Deduct = False) */ function updatePoint(address _account, uint256 _amount, bool _isAdded) external onlyOperator { uint256 _oPoint = balanceOf(_account); if (_isAdded) _mint(_account, _amount); else _burn(_account, _amount); uint256 _nPoint = balanceOf(_account); emit UpdatePoint(_account, _oPoint, _nPoint); } /** @notice Disable `transfer()` Note: Loyalty points are un-transferable/un-tradeable */ function transfer(address _to, uint256 _amount) public override disabled returns (bool) {} /** @notice Disable `transferFrom()` Note: Loyalty points are un-transferable/un-tradeable */ function transferFrom( address _from, address _to, uint256 _amount ) public override disabled returns (bool) {} /** @notice Disable `approve()` Note: Loyalty points are un-transferable/un-tradeable, thus approval setting is unnecessary */ function approve(address _spender, uint256 _amount) public override disabled returns (bool) {} /** @notice Disable `increaseAllowance()` Note: Loyalty points are un-transferable/un-tradeable, thus allowance setting is unnecessary */ function increaseAllowance(address _spender, uint256 _addedValue) public override disabled returns (bool) {} /** @notice Disable `decreaseAllowance()` Note: Loyalty points are un-transferable/un-tradeable, thus allowance setting is unnecessary */ function decreaseAllowance(address _spender, uint256 _subtractedValue) public override disabled returns (bool) {} function _beforeTokenTransfer( address _from, address _to, uint256 _amount ) internal override whenNotPaused { super._beforeTokenTransfer(_from, _to, _amount); } }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "metadata": { "useLiteralContent": true }, "libraries": {} }
[{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"uint8","name":"_decimals","type":"uint8"}],"stateMutability":"nonpayable","type":"constructor"},{"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":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"member","type":"address"},{"indexed":true,"internalType":"uint256","name":"oPoint","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"nPoint","type":"uint256"}],"name":"UpdatePoint","type":"event"},{"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":"_amount","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":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_spender","type":"address"},{"internalType":"uint256","name":"_subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_spender","type":"address"},{"internalType":"uint256","name":"_addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"operators","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_operators","type":"address[]"},{"internalType":"bool","name":"_isAdded","type":"bool"}],"name":"setOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"_amount","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":"_amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bool","name":"_isAdded","type":"bool"}],"name":"updatePoint","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60a06040523480156200001157600080fd5b5060405162001f8b38038062001f8b833981810160405281019062000037919062000418565b82828160039080519060200190620000519291906200018d565b5080600490805190602001906200006a9291906200018d565b5050506000600560006101000a81548160ff021916908315150217905550620000a86200009c620000bf60201b60201c565b620000c760201b60201c565b8060ff1660808160ff168152505050505062000517565b600033905090565b6000600560019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600560016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8280546200019b90620004e1565b90600052602060002090601f016020900481019282620001bf57600085556200020b565b82601f10620001da57805160ff19168380011785556200020b565b828001600101855582156200020b579182015b828111156200020a578251825591602001919060010190620001ed565b5b5090506200021a91906200021e565b5090565b5b80821115620002395760008160009055506001016200021f565b5090565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b620002a6826200025b565b810181811067ffffffffffffffff82111715620002c857620002c76200026c565b5b80604052505050565b6000620002dd6200023d565b9050620002eb82826200029b565b919050565b600067ffffffffffffffff8211156200030e576200030d6200026c565b5b62000319826200025b565b9050602081019050919050565b60005b838110156200034657808201518184015260208101905062000329565b8381111562000356576000848401525b50505050565b6000620003736200036d84620002f0565b620002d1565b90508281526020810184848401111562000392576200039162000256565b5b6200039f84828562000326565b509392505050565b600082601f830112620003bf57620003be62000251565b5b8151620003d18482602086016200035c565b91505092915050565b600060ff82169050919050565b620003f281620003da565b8114620003fe57600080fd5b50565b6000815190506200041281620003e7565b92915050565b60008060006060848603121562000434576200043362000247565b5b600084015167ffffffffffffffff8111156200045557620004546200024c565b5b6200046386828701620003a7565b935050602084015167ffffffffffffffff8111156200048757620004866200024c565b5b6200049586828701620003a7565b9250506040620004a88682870162000401565b9150509250925092565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620004fa57607f821691505b60208210811415620005115762000510620004b2565b5b50919050565b608051611a586200053360003960006106dd0152611a586000f3fe608060405234801561001057600080fd5b506004361061012c5760003560e01c80635c975abb116100ad57806395d89b411161007157806395d89b411461030d578063a457c2d71461032b578063a9059cbb1461035b578063dd62ed3e1461038b578063f2fde38b146103bb5761012c565b80635c975abb1461028d57806370a08231146102ab578063715018a6146102db5780638456cb59146102e55780638da5cb5b146102ef5761012c565b806323b872dd116100f457806323b872dd146101e957806328a0136714610219578063313ce5671461023557806339509351146102535780633f4ba83a146102835761012c565b806306fdde0314610131578063095ea7b31461014f57806313e7c9d81461017f57806318160ddd146101af5780631ed6144e146101cd575b600080fd5b6101396103d7565b604051610146919061109b565b60405180910390f35b6101696004803603810190610164919061115b565b610469565b60405161017691906111b6565b60405180910390f35b610199600480360381019061019491906111d1565b6104a6565b6040516101a691906111b6565b60405180910390f35b6101b76104c6565b6040516101c4919061120d565b60405180910390f35b6101e760048036038101906101e291906112b9565b6104d0565b005b61020360048036038101906101fe9190611319565b610583565b60405161021091906111b6565b60405180910390f35b610233600480360381019061022e919061136c565b6105c0565b005b61023d6106d9565b60405161024a91906113db565b60405180910390f35b61026d6004803603810190610268919061115b565b610701565b60405161027a91906111b6565b60405180910390f35b61028b61073e565b005b610295610750565b6040516102a291906111b6565b60405180910390f35b6102c560048036038101906102c091906111d1565b610767565b6040516102d2919061120d565b60405180910390f35b6102e36107af565b005b6102ed6107c3565b005b6102f76107d5565b6040516103049190611405565b60405180910390f35b6103156107ff565b604051610322919061109b565b60405180910390f35b6103456004803603810190610340919061115b565b610891565b60405161035291906111b6565b60405180910390f35b6103756004803603810190610370919061115b565b6108ce565b60405161038291906111b6565b60405180910390f35b6103a560048036038101906103a09190611420565b61090b565b6040516103b2919061120d565b60405180910390f35b6103d560048036038101906103d091906111d1565b610992565b005b6060600380546103e69061148f565b80601f01602080910402602001604051908101604052809291908181526020018280546104129061148f565b801561045f5780601f106104345761010080835404028352916020019161045f565b820191906000526020600020905b81548152906001019060200180831161044257829003601f168201915b5050505050905090565b60006040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161049d90611533565b60405180910390fd5b60066020528060005260406000206000915054906101000a900460ff1681565b6000600254905090565b6104d8610a16565b600083839050905060005b8181101561057c57826006600087878581811061050357610502611553565b5b905060200201602081019061051891906111d1565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508080610574906115b1565b9150506104e3565b5050505050565b60006040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105b790611533565b60405180910390fd5b600660006105cc610a94565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610653576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161064a90611646565b60405180910390fd5b600061065e84610767565b90508115610675576106708484610a9c565b610680565b61067f8484610bf3565b5b600061068b85610767565b905080828673ffffffffffffffffffffffffffffffffffffffff167fa639bdb4dd02b9c406d94b262544d1169a092f7006ae503b07e3e10d3a636ea360405160405180910390a45050505050565b60007f0000000000000000000000000000000000000000000000000000000000000000905090565b60006040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161073590611533565b60405180910390fd5b610746610a16565b61074e610dc1565b565b6000600560009054906101000a900460ff16905090565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6107b7610a16565b6107c16000610e24565b565b6107cb610a16565b6107d3610eea565b565b6000600560019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606004805461080e9061148f565b80601f016020809104026020016040519081016040528092919081815260200182805461083a9061148f565b80156108875780601f1061085c57610100808354040283529160200191610887565b820191906000526020600020905b81548152906001019060200180831161086a57829003601f168201915b5050505050905090565b60006040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108c590611533565b60405180910390fd5b60006040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161090290611533565b60405180910390fd5b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b61099a610a16565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610a0a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a01906116d8565b60405180910390fd5b610a1381610e24565b50565b610a1e610a94565b73ffffffffffffffffffffffffffffffffffffffff16610a3c6107d5565b73ffffffffffffffffffffffffffffffffffffffff1614610a92576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a8990611744565b60405180910390fd5b565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610b0c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b03906117b0565b60405180910390fd5b610b1860008383610f4d565b8060026000828254610b2a91906117d0565b92505081905550806000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051610bdb919061120d565b60405180910390a3610bef60008383610f65565b5050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610c63576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c5a90611898565b60405180910390fd5b610c6f82600083610f4d565b60008060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015610cf5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cec9061192a565b60405180910390fd5b8181036000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555081600260008282540392505081905550600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610da8919061120d565b60405180910390a3610dbc83600084610f65565b505050565b610dc9610f6a565b6000600560006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa610e0d610a94565b604051610e1a9190611405565b60405180910390a1565b6000600560019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600560016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b610ef2610fb3565b6001600560006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610f36610a94565b604051610f439190611405565b60405180910390a1565b610f55610fb3565b610f60838383610ffd565b505050565b505050565b610f72610750565b610fb1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fa890611996565b60405180910390fd5b565b610fbb610750565b15610ffb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ff290611a02565b60405180910390fd5b565b505050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561103c578082015181840152602081019050611021565b8381111561104b576000848401525b50505050565b6000601f19601f8301169050919050565b600061106d82611002565b611077818561100d565b935061108781856020860161101e565b61109081611051565b840191505092915050565b600060208201905081810360008301526110b58184611062565b905092915050565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006110f2826110c7565b9050919050565b611102816110e7565b811461110d57600080fd5b50565b60008135905061111f816110f9565b92915050565b6000819050919050565b61113881611125565b811461114357600080fd5b50565b6000813590506111558161112f565b92915050565b60008060408385031215611172576111716110bd565b5b600061118085828601611110565b925050602061119185828601611146565b9150509250929050565b60008115159050919050565b6111b08161119b565b82525050565b60006020820190506111cb60008301846111a7565b92915050565b6000602082840312156111e7576111e66110bd565b5b60006111f584828501611110565b91505092915050565b61120781611125565b82525050565b600060208201905061122260008301846111fe565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f84011261124d5761124c611228565b5b8235905067ffffffffffffffff81111561126a5761126961122d565b5b60208301915083602082028301111561128657611285611232565b5b9250929050565b6112968161119b565b81146112a157600080fd5b50565b6000813590506112b38161128d565b92915050565b6000806000604084860312156112d2576112d16110bd565b5b600084013567ffffffffffffffff8111156112f0576112ef6110c2565b5b6112fc86828701611237565b9350935050602061130f868287016112a4565b9150509250925092565b600080600060608486031215611332576113316110bd565b5b600061134086828701611110565b935050602061135186828701611110565b925050604061136286828701611146565b9150509250925092565b600080600060608486031215611385576113846110bd565b5b600061139386828701611110565b93505060206113a486828701611146565b92505060406113b5868287016112a4565b9150509250925092565b600060ff82169050919050565b6113d5816113bf565b82525050565b60006020820190506113f060008301846113cc565b92915050565b6113ff816110e7565b82525050565b600060208201905061141a60008301846113f6565b92915050565b60008060408385031215611437576114366110bd565b5b600061144585828601611110565b925050602061145685828601611110565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806114a757607f821691505b602082108114156114bb576114ba611460565b5b50919050565b7f4c6f79616c74793a207472616e736665722f617070726f76652061726520646960008201527f7361626c65640000000000000000000000000000000000000000000000000000602082015250565b600061151d60268361100d565b9150611528826114c1565b604082019050919050565b6000602082019050818103600083015261154c81611510565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006115bc82611125565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156115ef576115ee611582565b5b600182019050919050565b7f4f6e6c79204f70657261746f7200000000000000000000000000000000000000600082015250565b6000611630600d8361100d565b915061163b826115fa565b602082019050919050565b6000602082019050818103600083015261165f81611623565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006116c260268361100d565b91506116cd82611666565b604082019050919050565b600060208201905081810360008301526116f1816116b5565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061172e60208361100d565b9150611739826116f8565b602082019050919050565b6000602082019050818103600083015261175d81611721565b9050919050565b7f45524332303a206d696e7420746f20746865207a65726f206164647265737300600082015250565b600061179a601f8361100d565b91506117a582611764565b602082019050919050565b600060208201905081810360008301526117c98161178d565b9050919050565b60006117db82611125565b91506117e683611125565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561181b5761181a611582565b5b828201905092915050565b7f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b600061188260218361100d565b915061188d82611826565b604082019050919050565b600060208201905081810360008301526118b181611875565b9050919050565b7f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60008201527f6365000000000000000000000000000000000000000000000000000000000000602082015250565b600061191460228361100d565b915061191f826118b8565b604082019050919050565b6000602082019050818103600083015261194381611907565b9050919050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b600061198060148361100d565b915061198b8261194a565b602082019050919050565b600060208201905081810360008301526119af81611973565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b60006119ec60108361100d565b91506119f7826119b6565b602082019050919050565b60006020820190508181036000830152611a1b816119df565b905091905056fea2646970667358221220faf557b35641f3751734578b66d200136cdee92df0f5ba0d370c97ab2e41451d64736f6c63430008090033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e416d617a6f6e204c6f79616c74790000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004414d5a4c00000000000000000000000000000000000000000000000000000000
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e416d617a6f6e204c6f79616c74790000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004414d5a4c00000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : name_ (string): Amazon Loyalty
Arg [1] : symbol_ (string): AMZL
Arg [2] : _decimals (uint8): 0
-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [3] : 000000000000000000000000000000000000000000000000000000000000000e
Arg [4] : 416d617a6f6e204c6f79616c7479000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [6] : 414d5a4c00000000000000000000000000000000000000000000000000000000
Age | Block | Fee Address | BC Fee Address | Voting Power | Jailed | Incoming |
---|