Moonbase Alpha Testnet

Contract

0x01B8dE8d1cC3f8ba05aF6d3E08f4383D4509A467

Overview

DEV Balance

Moonbase Alpha LogoMoonbase Alpha LogoMoonbase Alpha Logo0 DEV

Token Holdings

Multichain Info

N/A
Transaction Hash
Method
Block
From
To
Value
Set Approval For...44284072023-05-27 12:39:06306 days ago1685191146IN
0x01B8dE8d...D4509A467
0 DEV0.000029521.125
Set Approval For...44284072023-05-27 12:39:06306 days ago1685191146IN
0x01B8dE8d...D4509A467
0 DEV0.000029521.125
Safe Transfer Fr...44283512023-05-27 12:26:36306 days ago1685190396IN
0x01B8dE8d...D4509A467
0 DEV0.000056651.125
Safe Transfer Fr...44283172023-05-27 12:19:06306 days ago1685189946IN
0x01B8dE8d...D4509A467
0 DEV0.000177231.125
Safe Transfer Fr...44283152023-05-27 12:18:42306 days ago1685189922IN
0x01B8dE8d...D4509A467
0 DEV0.000190981.125
Set Approval For...44281962023-05-27 11:52:00306 days ago1685188320IN
0x01B8dE8d...D4509A467
0 DEV0.000051921.125
Set Approval For...44280252023-05-27 11:12:18306 days ago1685185938IN
0x01B8dE8d...D4509A467
0 DEV0.000074991.625
Set Approval For...44270882023-05-27 7:39:18306 days ago1685173158IN
0x01B8dE8d...D4509A467
0 DEV0.000074991.625
Set Approval For...44162972023-05-25 13:31:00308 days ago1685021460IN
0x01B8dE8d...D4509A467
0 DEV0.000115292.49871864
Initialize44085022023-05-24 7:37:36309 days ago1684913856IN
0x01B8dE8d...D4509A467
0 DEV0.000422583.50007223
0x6001600844081972023-05-24 6:23:24309 days ago1684909404IN
 Contract Creation
0 DEV0.014039963.50547667

Latest 25 internal transactions (View All)

Parent Txn Hash Block From To Value
44285252023-05-27 13:06:54306 days ago1685192814
0x01B8dE8d...D4509A467
0 DEV
44285252023-05-27 13:06:54306 days ago1685192814
0x01B8dE8d...D4509A467
0 DEV
44285252023-05-27 13:06:54306 days ago1685192814
0x01B8dE8d...D4509A467
0 DEV
44285252023-05-27 13:06:54306 days ago1685192814
0x01B8dE8d...D4509A467
0 DEV
44285252023-05-27 13:06:54306 days ago1685192814
0x01B8dE8d...D4509A467
0 DEV
44285252023-05-27 13:06:54306 days ago1685192814
0x01B8dE8d...D4509A467
0 DEV
44285252023-05-27 13:06:54306 days ago1685192814
0x01B8dE8d...D4509A467
0 DEV
44285192023-05-27 13:05:30306 days ago1685192730
0x01B8dE8d...D4509A467
0 DEV
44285192023-05-27 13:05:30306 days ago1685192730
0x01B8dE8d...D4509A467
0 DEV
44284842023-05-27 12:56:24306 days ago1685192184
0x01B8dE8d...D4509A467
0 DEV
44284772023-05-27 12:55:00306 days ago1685192100
0x01B8dE8d...D4509A467
0 DEV
44284732023-05-27 12:54:12306 days ago1685192052
0x01B8dE8d...D4509A467
0 DEV
44284632023-05-27 12:52:00306 days ago1685191920
0x01B8dE8d...D4509A467
0 DEV
44284632023-05-27 12:52:00306 days ago1685191920
0x01B8dE8d...D4509A467
0 DEV
44284632023-05-27 12:52:00306 days ago1685191920
0x01B8dE8d...D4509A467
0 DEV
44284632023-05-27 12:52:00306 days ago1685191920
0x01B8dE8d...D4509A467
0 DEV
44284632023-05-27 12:52:00306 days ago1685191920
0x01B8dE8d...D4509A467
0 DEV
44284632023-05-27 12:52:00306 days ago1685191920
0x01B8dE8d...D4509A467
0 DEV
44284632023-05-27 12:52:00306 days ago1685191920
0x01B8dE8d...D4509A467
0 DEV
44284632023-05-27 12:52:00306 days ago1685191920
0x01B8dE8d...D4509A467
0 DEV
44284632023-05-27 12:52:00306 days ago1685191920
0x01B8dE8d...D4509A467
0 DEV
44284632023-05-27 12:52:00306 days ago1685191920
0x01B8dE8d...D4509A467
0x01B8dE8d...D4509A467
0 DEV
44284632023-05-27 12:52:00306 days ago1685191920
0x01B8dE8d...D4509A467
0 DEV
44284632023-05-27 12:52:00306 days ago1685191920
0x01B8dE8d...D4509A467
0 DEV
44284632023-05-27 12:52:00306 days ago1685191920
0x01B8dE8d...D4509A467
0 DEV
View All Internal Transactions
Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0xA535E7EC...632Dca0d7
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
TreasuryCoreContract

Compiler Version
v0.8.12+commit.f00d7308

Optimization Enabled:
Yes with 438000 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 23 : TreasuryCoreContract.sol
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol";
import "@openzeppelin/contracts/token/ERC1155/IERC1155Receiver.sol";
import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Supply.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
import "../interface/IRecords.sol";
import "../interface/IERC20.sol";
import "../ERC1155/SnapshotERC1155.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "../voting/VotingHubContract.sol";

contract TreasuryCoreContract is
    IERC1155Receiver,
    SnapshotERC1155,
    Initializable
{
    uint256 public constant CRD = 1;
    uint256 private LastTokenId = 1;
    address public VOTING_HUB_ADDRESS;
    address public TREASURY_CONTRACT_ADDRESS;
    address public CONTROLLER_CONTRACT_ADDRESS;
    address public OWNER;
    string private PREFIX_GOVERNANCE = "CRDG_";
    string private PREFIX_COMMUNITY = "CRD_";
    uint8 private TOKEN_TYPE_COMMUNITY = 0;
    uint8 private TOKEN_TYPE_GOVERNANCE = 1;
    IERC20 private crdTokenContract;

    /// @dev This structure will store information of tokens for each records
    /// @param recordId This is the id of record to which a token belongs
    /// @param symbol This is the symbol of a token
    /// @param image This is the token image
    /// @param creationDate This is the block number of creation date
    /// @param isPresent This is to check if a token struct exists or not
    /// @param tokenId This is the id of the token that is created
    struct Token {
        uint256 recordId;
        string symbol;
        string image;
        uint256 creationDate;
        bool isPresent;
        uint256 tokenId;
    }

    /// @dev This structure will store information of the contribution
    /// @param recordId This is the id of the record to which contribution belongs to
    /// @param totalSupply Total supply of token
    /// @param userBalance The amount of tokens that goes into creators wallet
    /// @param symbol This is the symbol of the token
    /// @param image This is the link of the image / icon of the token
    struct NewTokenData {
        uint256 recordId;
        uint256 totalSupply;
        uint256 userBalance;
        string symbol;
        string image;
    }

    /// @dev this is event which is created when a token transfer takes place
    /// @param from This is the address of sender
    /// @param to This is the address of receiver
    /// @param transferDate This is the date of the transfer
    /// @param tokenId This is the id of the token that is being transferred
    /// @param amount This is the amount of token transferred
    /// @param symbol This is the symbol of the token that were transferred
    event TokenTransfer(
        address from,
        address to,
        uint256 transferDate,
        uint256 tokenId,
        uint256 amount,
        string symbol
    );

    /// @dev this is event which is created when new governance token is created (NEW CREATION Not MINTING)
    /// @param recordId This is the record Id to which this token belongs to
    /// @param symbol This is the symbol of the governance token
    /// @param image This is the image of the token
    /// @param creationDate This is the creation date of the token
    /// @param tokenAmount This is the amount of token that are created
    /// @param tokenId This is the id of token that is newly created tokens
    /// @param tokenType This is the type of the token that is created => For governance 1 and for copyright 0
    event NewTokenCreated(
        uint256 recordId,
        string symbol,
        string image,
        uint256 creationDate,
        uint256 tokenAmount,
        uint256 tokenId,
        uint8 tokenType
    );

    /// @dev this is event which is created when new governance token is minted after the voting is done
    /// @param recordId This is the record Id to which this token belongs to
    /// @param creationDate This is the creation date of the token
    /// @param tokenAmount This is the amount of token that are created
    /// @param tokenId This is the id of token that is newly created tokens
    event TokenMinted(
        uint256 recordId,
        uint256 tokenId,
        uint256 creationDate,
        uint256 tokenAmount
    );

    /// @dev this is event which is generated when a contribution voting has came to an
    /// end and the contribution is accepted
    /// @param to This the address of the winner or the owner of the contribution
    /// @param recordId This is the id of the record to which this contribution relates to
    /// @param contributionId This is the id of the contribution to which the record is related to
    /// @param rewardGovernance The reward amount for governance tokens
    /// @param rewardCommunity The reward amount for community tokens
    event ContributionRewardTransferred(
        address to,
        uint256 recordId,
        uint256 contributionId,
        uint256 rewardGovernance,
        uint256 rewardCommunity
    );

    mapping(uint256 => Token) public govTokenMapping;
    mapping(uint256 => Token) public commTokenMapping;

    // TokenSymbol => boolean, it denotes if a token name is taken or not,
    // if it is true it means that the token name is already taken
    mapping(string => bool) public govTokenSym;
    mapping(string => bool) public commTokenSym;

    // By default URI to crowdrecords domain
    // 18 decimal points supported
    constructor(address owner) ERC1155("https://crowdrecords.com/{id}") {
        OWNER = owner;
    }

    /// @dev Modifier to check that the person who accesses a specific function is the owner of contract himself.
    modifier ownerOnly() {
        require(msg.sender == OWNER, "UNAUTHORIZED: CANNOT_PERFORM_ACTION");
        _;
    }

    /// @dev Modifier to check that the caller is the treasury contract
    modifier onlyTreasuryContract() {
        require(
            msg.sender == TREASURY_CONTRACT_ADDRESS,
            "UNAUTHORIZED: CANNOT_PERFORM_ACTION"
        );
        _;
    }

    /// @dev Modifier to check that the caller is the treasury contract or controller contract
    modifier onlyTreasuryAndControllerContract() {
        require(
            msg.sender == TREASURY_CONTRACT_ADDRESS ||
                msg.sender == CONTROLLER_CONTRACT_ADDRESS,
            "UNAUTHORIZED: CANNOT_PERFORM_ACTION"
        );
        _;
    }

    /// @dev This is to set the address of the contracts
    /// @param newVotingHubContract This is the address of new voting hub contract
    /// @param newTreasuryAddress This is the address of new voting hub contract
    /// @param crdTokenAddress This is the address of CRD token contract
    /// @param controllerContractAddress This is the address of Controller contract
    function initialize(
        address newVotingHubContract,
        address newTreasuryAddress,
        address crdTokenAddress,
        address controllerContractAddress
    ) public initializer ownerOnly {
        VOTING_HUB_ADDRESS = newVotingHubContract;
        TREASURY_CONTRACT_ADDRESS = newTreasuryAddress;
        CONTROLLER_CONTRACT_ADDRESS = controllerContractAddress;
        crdTokenContract = IERC20(crdTokenAddress);
    }

    /// @dev This function creates new governance tokens for specified record
    /// @param newTokenData This contains all the parameters needed to create a new governance token that are
    /// @param userAddress - This is the address of the user who is the creator of the token
    function createNewGovernanceToken(
        NewTokenData memory newTokenData,
        address userAddress
    ) external onlyTreasuryAndControllerContract returns (uint256) {
        {
            govTokenSym[newTokenData.symbol] = true;
            bytes memory preString = abi.encodePacked(PREFIX_GOVERNANCE);
            newTokenData.symbol = string(
                abi.encodePacked(preString, newTokenData.symbol)
            );
        }

        LastTokenId++;
        uint256 newTokenId = LastTokenId;

        //Map the recordId with the
        govTokenMapping[newTokenData.recordId] = createToken(
            newTokenData,
            newTokenId,
            TOKEN_TYPE_GOVERNANCE,
            userAddress
        );

        return newTokenId;
    }

    /// @dev This function creates new community tokens for specified record
    /// @param newTokenData This contains all the parameters needed to create a new community token that are
    /// @param userAddress - This is the address of the user who is the creator of the token
    function createNewCommunityToken(
        NewTokenData memory newTokenData,
        address userAddress
    ) external onlyTreasuryAndControllerContract returns (uint256) {
        {
            commTokenSym[newTokenData.symbol] = true;
            bytes memory preString = abi.encodePacked(PREFIX_COMMUNITY);
            newTokenData.symbol = string(
                abi.encodePacked(preString, newTokenData.symbol)
            );
        }

        LastTokenId++;
        uint256 newTokenId = LastTokenId;

        //Map the recordId with the
        commTokenMapping[newTokenData.recordId] = createToken(
            newTokenData,
            newTokenId,
            TOKEN_TYPE_COMMUNITY,
            userAddress
        );

        return newTokenId;
    }

    /// @dev This function is an internal use only function whoes role is to create a new token of specified type
    /// @param newTokenData This contains all the parameters needed to create a new community token that are
    /// @param newTokenId - This is the Id of the token to create
    /// @param tokenType - This is the type of token that is to be created such as community or governance
    /// @param userAddress - This is the address of the user who is the creator of the token
    function createToken(
        NewTokenData memory newTokenData,
        uint256 newTokenId,
        uint8 tokenType,
        address userAddress
    ) private returns (Token memory) {
        uint256 treasuryAmount = (newTokenData.totalSupply -
            newTokenData.userBalance);
        uint256 userAmount = newTokenData.userBalance;

        // Here minting of new tokens is done. And those are sent directly into the treasury
        _mint(address(this), newTokenId, treasuryAmount, "");

        // The user requested amount of tokens is generated and send to his account
        _mint(userAddress, newTokenId, userAmount, "");

        Token memory token = Token({
            recordId: newTokenData.recordId,
            symbol: newTokenData.symbol,
            image: newTokenData.image,
            creationDate: block.timestamp,
            isPresent: true,
            tokenId: newTokenId
        });

        emit NewTokenCreated({
            recordId: newTokenData.recordId,
            symbol: newTokenData.symbol,
            image: newTokenData.image,
            creationDate: token.creationDate,
            tokenAmount: newTokenData.totalSupply,
            tokenId: newTokenId,
            tokenType: tokenType
        });

        return token;
    }

    /// @dev This function creats new community tokens for specified record
    /// @param recordId This is the id of the record to which the token belongs to
    /// @param tokenId This is the id of the which is to be minted
    /// @param tokenAmount This is the amount that is to be minted
    function mintTokens(
        uint256 recordId,
        uint256 tokenId,
        uint256 tokenAmount
    ) external onlyTreasuryContract {
        require(
            commTokenMapping[recordId].isPresent == true ||
                govTokenMapping[recordId].isPresent == true,
            "INVALID: WRONG_RECORD_ID"
        );

        require(
            commTokenMapping[recordId].tokenId == tokenId ||
                govTokenMapping[recordId].tokenId == tokenId,
            "INVALID: WRONG_TOKEN_ID"
        );

        // Here minting of new tokens is done. And those are sent directly into the treasury
        _mint(
            address(this),
            tokenId,
            tokenAmount,
            "Token minted through voting process"
        );

        emit TokenMinted({
            recordId: recordId,
            tokenId: tokenId,
            creationDate: block.timestamp,
            tokenAmount: tokenAmount
        });
    }

    /// @dev This function is called only by the voting contract once the voting ends
    /// @param to This is the receivers address
    /// @param recordId This is the recordId to which the contribution belongs to
    /// @param contributionId this is the contribution id to which the user has won
    /// @param rewardGovernance this is the amount of Governance token that needs to be transferred
    /// @param rewardCommunity this is the amount of community token that needs to be transferred
    function transferRewardAmount(
        address to,
        uint256 recordId,
        uint256 contributionId,
        uint256 rewardGovernance,
        uint256 rewardCommunity
    ) external onlyTreasuryContract {
        _setApprovalForAll(address(this), msg.sender, true);
        if (rewardGovernance > 0) {
            safeTransferFrom(
                address(this),
                to,
                govTokenMapping[recordId].tokenId,
                rewardGovernance,
                ""
            );
        }

        if (rewardCommunity > 0) {
            safeTransferFrom(
                address(this),
                to,
                commTokenMapping[recordId].tokenId,
                rewardCommunity,
                ""
            );
        }

        emit ContributionRewardTransferred({
            to: to,
            recordId: recordId,
            contributionId: contributionId,
            rewardGovernance: rewardGovernance,
            rewardCommunity: rewardCommunity
        });
    }

    // Update balance and/or total supply snapshots before the values are modified. This is implemented
    // in the _beforeTokenTransfer hook, which is executed for _mint, _burn, and _transfer operations.
    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal override {
        //Below condition is needed as the _mint is called in the constructor
        //and at that particular point in time the below address is not initialized thus leading to a revert
        if (VOTING_HUB_ADDRESS != address(0)) {
            VotingHubContract votingHubContract = VotingHubContract(
                VOTING_HUB_ADDRESS
            );
            for (uint256 i = 0; i < ids.length; i++) {
                votingHubContract.handleUserTokenTransfers(
                    from,
                    to,
                    amounts[i],
                    ids[i]
                );
            }
        }

        super._beforeTokenTransfer(operator, from, to, ids, amounts, data);
    }

    /// @dev This function sets the symbol name as used, this function is called from records
    // contract to reserve symbol for new version creation
    /// @param governanceSymbol Symbol for governance token
    /// @param communitySymbol Symbol for community token
    function setSymbolsAsUsed(
        string memory governanceSymbol,
        string memory communitySymbol
    ) external onlyTreasuryContract {
        commTokenSym[communitySymbol] = true;
        govTokenSym[governanceSymbol] = true;
    }

    /// @dev This function sets the symbol name as available, this function is called from records
    // contract to reserve symbol for new version creation
    /// @param governanceSymbol Symbol for governance token
    /// @param communitySymbol Symbol for community token
    function setSymbolsAsAvailable(
        string memory governanceSymbol,
        string memory communitySymbol
    ) external onlyTreasuryContract {
        commTokenSym[communitySymbol] = false;
        govTokenSym[governanceSymbol] = false;
    }

    /// @dev This function checks if symbol are available or not
    /// @param governanceSymbol Symbol for governance token
    /// @param communitySymbol Symbol for community token
    function isSymbolAvailable(
        string memory governanceSymbol,
        string memory communitySymbol
    ) external onlyTreasuryContract {
        require(!commTokenSym[communitySymbol], "SYMBOL_C_TAKEN");
        require(!govTokenSym[governanceSymbol], "SYMBOL_G_TAKEN");
    }

    /// @dev this function is responsible for minting of new tokens for records
    /// @param tokenId Id this is the tokenId that is to minted
    /// @param amount the amount that is to be minted
    /// @param receiver Id this is the tokenId that is to minted
    function transferRewardTokens(
        uint256 tokenId,
        uint256 amount,
        address receiver
    ) public onlyTreasuryContract {
        _setApprovalForAll(address(this), msg.sender, true);
        safeTransferFrom(
            address(this),
            receiver,
            tokenId,
            amount,
            "RECORD_TOKEN_TRANSFER"
        );
    }

    /// @dev The safeTransferFrom method has been overriden so that whenever we
    /// need to transfer the CRD token from one address to another that can be done
    /// within the same function
    /// @param from this is the address of the user from whose account the token is to be deducted
    /// @param to this is the account of user where the token will be deposited
    /// @param id this is the id of the token that is to be transferred
    /// @param amount the amount of token to be transferred
    /// @param data extra information for the transaction
    function _safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual override {
        if (id == CRD) {
            crdTokenContract.safeTransferFrom(from, to, amount);
        } else {
            super._safeTransferFrom(from, to, id, amount, data);
        }
    }

    /// @dev this function is responsible to return the balance of a token
    /// Here it has been overridden so that any request for CRD token will be
    /// redirected to the ERC20 contract of CRD token
    /// @param account this is the address of the user whose balance you want to check
    /// @param id this is the id of the token that is to be transferred
    /// @return balance This is the balance of the user
    function balanceOf(
        address account,
        uint256 id
    ) public view virtual override returns (uint256) {
        if (id == CRD) return crdTokenContract.balanceOf(account);
        else return super.balanceOf(account, id);
    }

    function snapshot()
        external
        onlyTreasuryContract
        returns (uint256 snapshotId)
    {
        return _snapshot();
    }

    function mint(
        uint256 tokenId,
        uint256 amount
    ) external onlyTreasuryContract {
        _mint(address(this), tokenId, amount, "New tokens minted");
    }

    function onERC1155Received(
        address operator,
        address from,
        uint256 id,
        uint256 value,
        bytes calldata data
    ) external virtual override returns (bytes4) {
        return
            bytes4(
                keccak256(
                    "onERC1155Received(address,address,uint256,uint256,bytes)"
                )
            );
    }

    function onERC1155BatchReceived(
        address operator,
        address from,
        uint256[] calldata ids,
        uint256[] calldata values,
        bytes calldata data
    ) external virtual override returns (bytes4) {
        return
            bytes4(
                keccak256(
                    "onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"
                )
            );
    }
}

File 2 of 23 : VotingHubContract.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "../interface/ITreasuryCore.sol";
import "../interface/IBaseVoting.sol";

contract VotingHubContract {
    address[] public VOTING_CONTRACTS_ADDRESS;
    address public TREASURY_CORE_CONTRACT_ADDRESS;
    address public OWNER;
    ITreasuryCore public iTreasury;

    constructor(address owner) {
        OWNER = owner;
    }

    /// @notice
    /// @dev This modifier checks that only owner fo the contracts can call the functions
    modifier _ownerOnly() {
        require(msg.sender == OWNER, "UNAUTHORIZED: LACKS_PERMISSION");
        _;
    }

    /// @notice
    /// @dev This modifier checks that only treasury can call the functions
    modifier _onlyTreasuryCore() {
        require(
            msg.sender == TREASURY_CORE_CONTRACT_ADDRESS,
            "UNAUTHORIZED: ONLY_TREASURY_CORE_CONTRACT"
        );
        _;
    }

    /// @notice This function is to set the owner address
    /// @dev This function takes in the address of new owner and sets it to the contract
    /// @param owner Takes the address of new owner as parameter
    function setOwner(address owner) public _ownerOnly {
        OWNER = owner;
    }

    /// @notice this
    /// @dev This function will be called when either user is transferring the tokens to other account,
    /// or is receiving tokens from other tokens.
    /// @param sender address of the sender
    /// @param receiver address of the receiver
    /// @param amount the amount that is being transferred
    /// @param tokenId the id of the token that is being transferred
    function handleUserTokenTransfers(
        address sender,
        address receiver,
        uint256 amount,
        uint256 tokenId
    ) public _onlyTreasuryCore {
        for (uint256 i = 0; i < VOTING_CONTRACTS_ADDRESS.length; i++) {
            IBaseVoting iBaseVoting = IBaseVoting(VOTING_CONTRACTS_ADDRESS[i]);
            if (sender != address(0)) {
                uint256 bal = iTreasury.balanceOf(sender, tokenId);
                require(
                    bal >= amount,
                    "ERC1155: insufficient balance for transfer"
                );
                iBaseVoting._handleUserTokenTransfers(
                    sender,
                    tokenId,
                    bal,
                    bal - amount
                );
            }
            if (receiver != address(0)) {
                uint256 bal = iTreasury.balanceOf(receiver, tokenId);
                iBaseVoting._handleUserTokenTransfers(
                    receiver,
                    tokenId,
                    bal,
                    bal + amount
                );
            }
        }
    }

    /// @notice
    /// @dev This function sets the treasury Contract address
    function setTreasuryCoreContractAddress(
        address newTreasuryContractAddress
    ) public _ownerOnly {
        TREASURY_CORE_CONTRACT_ADDRESS = newTreasuryContractAddress;
        iTreasury = ITreasuryCore(TREASURY_CORE_CONTRACT_ADDRESS);
    }

    /// @notice
    /// @dev This function is to add a voting contract, the added contract will be notified when a token transfer occurs
    /// @param contractAddress address of the voting contract
    function addVotingContract(address contractAddress) public _ownerOnly {
        VOTING_CONTRACTS_ADDRESS.push(contractAddress);
    }

    /// @notice
    /// @dev This function removes address from voting contract array
    /// @param index index of the contract to remove from the list
    function removeVotingContract(uint256 index) public _ownerOnly {
        require(
            index < VOTING_CONTRACTS_ADDRESS.length,
            "INVALID: INCORRECT_INDEX"
        );
        VOTING_CONTRACTS_ADDRESS[index] = VOTING_CONTRACTS_ADDRESS[
            VOTING_CONTRACTS_ADDRESS.length - 1
        ];
        VOTING_CONTRACTS_ADDRESS.pop();
    }
}

File 3 of 23 : ITreasuryCore.sol
pragma solidity ^0.8.0;

interface ITreasuryCore {
    /// @dev This function return the id of CRD token
    /// @return tokenId it is the ID of CRD token
    function CRD() external view returns (uint256);

    /// @dev this function is for accessing the symbol mapping
    /// @param symbol takes the symbol as string input
    /// @return it return boolean value, true if it is taken and false if it is available
    function govTokenSym(string calldata symbol) external view returns (bool);

    /// @dev this function is for accessing the symbol mapping
    /// @param symbol takes the symbol as string input
    /// @return it return boolean value, true if it is taken and false if it is available
    function commTokenSym(string calldata symbol) external view returns (bool);

    /// @dev This structure will store information of tokens for each records
    /// @param recordId This is the id of record to which a token belongs
    /// @param symbol This is the symbol of a token
    /// @param image This is the token image
    /// @param creationDate This is the block number of creation date
    /// @param isPresent This is to check if a token struct exists or not
    /// @param tokenId This is the id of the token that is created
    struct Token {
        uint256 recordId;
        string symbol;
        string image;
        uint256 creationDate;
        bool isPresent;
        uint256 tokenId;
    }

    /// @dev This structure will store information of the contribution
    /// @param recordId This is the id of the record to which contribution belongs to
    /// @param totalSupply Total supply of token
    /// @param userBalance The amount of tokens that goes into creators wallet
    /// @param symbol This is the symbol of the token
    /// @param image This is the link of the image / icon of the token
    struct NewTokenData {
        uint256 recordId;
        uint256 totalSupply;
        uint256 userBalance;
        string symbol;
        string image;
    }

    /// @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
    /// @param to It is the token receivers address
    /// @param from from is the sender address.
    /// @param id `from` must have a balance of tokens of type `id` of at least `amount`.
    /// @param amount this is the amount to transfer
    /// @param data This is the data or note for transfer
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes calldata data
    ) external;

    function balanceOf(
        address account,
        uint256 tokenId
    ) external view returns (uint256);

    /// @dev Retrieves the balance of `account` at the time `snapshotId` was created.
    function balanceOfAt(
        address account,
        uint256 snapshotId,
        uint256 tokenId
    ) external view returns (uint256);

    /// @dev This function creates new governance tokens for specified record
    /// @param newTokenData This contains all the parameters needed to create a new governance token that are
    /// @param userAddress - This is the address of the user who is the creator of the token
    function createNewGovernanceToken(
        NewTokenData memory newTokenData,
        address userAddress
    ) external returns (uint256);

    /// @dev This function creates new community tokens for specified record
    /// @param newTokenData This contains all the parameters needed to create a new community token that are
    /// @param userAddress - This is the address of the user who is the creator of the token
    function createNewCommunityToken(
        NewTokenData memory newTokenData,
        address userAddress
    ) external returns (uint256);
}

File 4 of 23 : IRecords.sol
pragma solidity ^0.8.0;

interface IRecords {
    /// @dev This struct holds the data for record token
    /// @param name Name of the record
    /// @param image This is the image of the record
    /// @param seedId This is the seed contribution id
    /// @param parentId This is the id of the parent record from which record is created
    /// @param owner Address of the owner
    /// @param recordCategory This is the record category
    /// @param creationDate This is the creation date of the record
    struct RecordStruct {
        string name;
        string image;
        uint256 seedId;
        uint256 parentId;
        address owner;
        string recordCategory;
        uint256 creationDate;
        bool isPresent;
    }

    /// @dev This is the token data for new version of record
    /// @param totalSupply This is the total amount of tokens that will be created
    /// @param oldContributorShare This is the amount of token that will be distributed among the previous record owners
    /// @param userBalance Amount of tokens that user will keep to himself
    /// @param symbol Symbol for the token
    /// @param image Image for the token
    struct NewVersionTokenStruct {
        uint256 totalSupply;
        uint256 oldContributorShare;
        uint256 userBalance;
        string symbol;
        string image;
    }

    struct NewRecordPayload {
        string name;
        string image;
        string recordCategory;
        uint256 seedId;
    }

    /// @dev This function sets the owner address
    /// @param ownerAddress Takes the address of new owner as parameter
    function setOwnerAddress(address ownerAddress) external;

    /// @dev This function sets the contribution Contract address
    /// @param contributionContractAddress Takes the address of new contribution contract as parameter
    function setContributionContractAddress(
        address contributionContractAddress
    ) external;

    /// @dev This function creates new record, this function can be called by anyone
    /// @param payload this is the record payload
    /// @param platformWallet this is the UI providers wallet
    /// @param platformFee this is the incentive amount for the UI maintainer
    function createNewRecord(
        NewRecordPayload memory payload,
        address payable platformWallet,
        uint256 platformFee
    ) external;

    /// @dev This function creates new record
    /// @param payload this is the record payload
    /// @param owner this is the owner of the record
    function controllerCreateNewRecord(
        NewRecordPayload memory payload,
        address owner
    ) external returns (uint256);

    /// @dev This function pushes a contribution into the array of the record
    /// @param recordId This is the recordId to which contribution is to be added
    /// @param contributionId This is the contribution id to push in array
    function pushContributionIdToContributionList(
        uint256 recordId,
        uint256 contributionId
    ) external;

    /// @dev This function return the address of record owner
    /// @param recordId This is the recordId whose owner you want
    function ownerOf(uint256 recordId) external returns (address);

    /// @dev This function return the id of CRD token
    function newVersionRequestMap(
        uint256 index
    )
        external
        view
        returns (
            RecordStruct memory recordData,
            NewVersionTokenStruct memory governanceToken,
            NewVersionTokenStruct memory communityToken,
            address requester,
            uint256 oldVersionId,
            uint256 tokenId,
            uint256 ballotId,
            bool isPresent,
            bool isAccepted
        );
}

File 5 of 23 : IERC20.sol
pragma solidity ^0.8.0;

interface IERC20 {
    function totalSupply() external view returns (uint256);

    function balanceOf(address account) external view returns (uint256);

    function transfer(address to, uint256 amount) external returns (bool);

    function allowance(address owner, address spender)
        external
        view
        returns (uint256);

    function approve(address spender, uint256 amount) external returns (bool);

    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) external returns (bool);

    function safeTransferFrom(
        address from,
        address to,
        uint256 amount
    ) external;
}

File 6 of 23 : IBaseVoting.sol
pragma solidity ^0.8.0;

interface IBaseVoting {
    /// @dev This function will be called when either user is transferring the tokens to other account,
    /// or is receiving tokens from other tokens.
    /// @param user address of the user whose balance is being changed
    /// @param previousBalance this is the old balance of the user
    /// @param newBalance this is the new balance of the user that is after the transfer
    function _handleUserTokenTransfers(
        address user,
        uint256 tokenId,
        uint256 previousBalance,
        uint256 newBalance
    ) external;

    /// @dev This function sets the MIN_TURN_OUT percentage
    /// @param minTurnOut This is the new turnout percentage value
    function setMinTurnOut(uint minTurnOut) external;

    /// @dev This function sets the VOTING_DEPOSIT percentage
    /// @param depositAmount This is the new turnout percentage value
    function setDepositAmount(uint depositAmount) external;

    /// @dev This function sets the VOTING_BLOCK_PERIOD percentage
    /// @param votingPeriod This is the voting period
    function setVotingPeriod(uint votingPeriod) external;
}

File 7 of 23 : SnapshotERC1155.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/token/ERC1155/IERC1155Receiver.sol";
import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Supply.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/utils/Arrays.sol";

abstract contract SnapshotERC1155 is ERC1155Supply {
    using Arrays for uint256[];
    using Counters for Counters.Counter;

    // Snapshotted values have arrays of ids and the value corresponding to that id. These could be an array of a
    // Snapshot struct, but that would impede usage of functions that work on an array.
    struct Snapshots {
        uint256[] ids;
        uint256[] values;
    }

    mapping(address => mapping(uint256 => Snapshots))
        private _accountBalanceSnapshots;

    mapping(uint256 => Snapshots) private _totalSupplySnapshots;

    // Snapshot ids increase monotonically, with the first value being 1. An id of 0 is invalid.
    Counters.Counter private _currentSnapshotId;

    /**
     * @dev Emitted by {_snapshot} when a snapshot identified by `id` is created.
     */
    event Snapshot(uint256 id);

    /**
     * @dev Creates a new snapshot and returns its snapshot id.
     *
     * Emits a {Snapshot} event that contains the same id.
     *
     * {_snapshot} is `internal` and you have to decide how to expose it externally. Its usage may be restricted to a
     * set of accounts, for example using {AccessControl}, or it may be open to the public.
     *
     * [WARNING]
     * ====
     * While an open way of calling {_snapshot} is required for certain trust minimization mechanisms such as forking,
     * you must consider that it can potentially be used by attackers in two ways.
     *
     * First, it can be used to increase the cost of retrieval of values from snapshots, although it will grow
     * logarithmically thus rendering this attack ineffective in the long term. Second, it can be used to target
     * specific accounts and increase the cost of ERC20 transfers for them, in the ways specified in the Gas Costs
     * section above.
     *
     * We haven't measured the actual numbers; if this is something you're interested in please reach out to us.
     * ====
     */
    function _snapshot() internal virtual returns (uint256) {
        _currentSnapshotId.increment();

        uint256 currentId = _getCurrentSnapshotId();
        emit Snapshot(currentId);
        return currentId;
    }

    // function snap() public returns (uint256) {
    //     return _snapshot();
    // }

    /**
     * @dev Get the current snapshotId
     */
    function _getCurrentSnapshotId() internal view virtual returns (uint256) {
        return _currentSnapshotId.current();
    }

    /**
     * @dev Retrieves the balance of `account` at the time `snapshotId` was created.
     */
    function balanceOfAt(
        address account,
        uint256 snapshotId,
        uint256 tokenId
    ) public view virtual returns (uint256) {
        (bool snapshotted, uint256 value) = _valueAt(
            snapshotId,
            _accountBalanceSnapshots[account][tokenId]
        );

        return snapshotted ? value : balanceOf(account, tokenId);
    }

    /**
     * @dev Retrieves the total supply at the time `snapshotId` was created.
     */
    function totalSupplyAt(uint256 snapshotId, uint256 tokenId)
        public
        view
        virtual
        returns (uint256)
    {
        (bool snapshotted, uint256 value) = _valueAt(
            snapshotId,
            _totalSupplySnapshots[tokenId]
        );

        return snapshotted ? value : totalSupply(tokenId);
    }

    // Update balance and/or total supply snapshots before the values are modified. This is implemented
    // in the _beforeTokenTransfer hook, which is executed for _mint, _burn, and _transfer operations.
    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual override {
        if (from == address(0)) {
            // mint
            _updateAccountSnapshot(to, ids);
            _updateTotalSupplySnapshot(ids);
        } else if (to == address(0)) {
            // burn
            _updateAccountSnapshot(from, ids);
            _updateTotalSupplySnapshot(ids);
        } else {
            // transfer
            _updateAccountSnapshot(from, ids);
            _updateAccountSnapshot(to, ids);
        }
        super._beforeTokenTransfer(operator, from, to, ids, amounts, data);
    }

    function _valueAt(uint256 snapshotId, Snapshots storage snapshots)
        private
        view
        returns (bool, uint256)
    {
        require(snapshotId > 0, "ERC20Snapshot: id is 0");
        require(
            snapshotId <= _getCurrentSnapshotId(),
            "ERC20Snapshot: nonexistent id"
        );

        // When a valid snapshot is queried, there are three possibilities:
        //  a) The queried value was not modified after the snapshot was taken. Therefore, a snapshot entry was never
        //  created for this id, and all stored snapshot ids are smaller than the requested one. The value that corresponds
        //  to this id is the current one.
        //  b) The queried value was modified after the snapshot was taken. Therefore, there will be an entry with the
        //  requested id, and its value is the one to return.
        //  c) More snapshots were created after the requested one, and the queried value was later modified. There will be
        //  no entry for the requested id: the value that corresponds to it is that of the smallest snapshot id that is
        //  larger than the requested one.
        //
        // In summary, we need to find an element in an array, returning the index of the smallest value that is larger if
        // it is not found, unless said value doesn't exist (e.g. when all values are smaller). Arrays.findUpperBound does
        // exactly this.

        uint256 index = snapshots.ids.findUpperBound(snapshotId);

        if (index == snapshots.ids.length) {
            return (false, 0);
        } else {
            return (true, snapshots.values[index]);
        }
    }

    function _updateAccountSnapshot(address account, uint256[] memory tokenId)
        private
    {
        for (uint256 i = 0; i < tokenId.length; i++) {
            _updateSnapshot(
                _accountBalanceSnapshots[account][tokenId[i]],
                balanceOf(account, tokenId[i])
            );
        }
    }

    function _updateTotalSupplySnapshot(uint256[] memory tokenId) private {
        for (uint256 i = 0; i < tokenId.length; i++) {
            _updateSnapshot(
                _totalSupplySnapshots[tokenId[i]],
                totalSupply(tokenId[i])
            );
        }
    }

    function _updateSnapshot(Snapshots storage snapshots, uint256 currentValue)
        private
    {
        uint256 currentId = _getCurrentSnapshotId();
        if (_lastSnapshotId(snapshots.ids) < currentId) {
            snapshots.ids.push(currentId);
            snapshots.values.push(currentValue);
        }
    }

    function _lastSnapshotId(uint256[] storage ids)
        private
        view
        returns (uint256)
    {
        if (ids.length == 0) {
            return 0;
        } else {
            return ids[ids.length - 1];
        }
    }
}

File 8 of 23 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

File 9 of 23 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a >= b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a / b + (a % b == 0 ? 0 : 1);
    }
}

File 10 of 23 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

/**
 * @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 11 of 23 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @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);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

File 12 of 23 : Counters.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)

pragma solidity ^0.8.0;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 */
library Counters {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }

    function reset(Counter storage counter) internal {
        counter._value = 0;
    }
}

File 13 of 23 : Context.sol
// 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;
    }
}

File 14 of 23 : Arrays.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Arrays.sol)

pragma solidity ^0.8.0;

import "./math/Math.sol";

/**
 * @dev Collection of functions related to array types.
 */
library Arrays {
    /**
     * @dev Searches a sorted `array` and returns the first index that contains
     * a value greater or equal to `element`. If no such index exists (i.e. all
     * values in the array are strictly less than `element`), the array length is
     * returned. Time complexity O(log n).
     *
     * `array` is expected to be sorted in ascending order, and to contain no
     * repeated elements.
     */
    function findUpperBound(uint256[] storage array, uint256 element) internal view returns (uint256) {
        if (array.length == 0) {
            return 0;
        }

        uint256 low = 0;
        uint256 high = array.length;

        while (low < high) {
            uint256 mid = Math.average(low, high);

            // Note that mid will always be strictly less than high (i.e. it will be a valid array index)
            // because Math.average rounds down (it does integer division with truncation).
            if (array[mid] > element) {
                high = mid;
            } else {
                low = mid + 1;
            }
        }

        // At this point `low` is the exclusive upper bound. We will return the inclusive upper bound.
        if (low > 0 && array[low - 1] == element) {
            return low - 1;
        } else {
            return low;
        }
    }
}

File 15 of 23 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 16 of 23 : IERC1155MetadataURI.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/IERC1155MetadataURI.sol)

pragma solidity ^0.8.0;

import "../IERC1155.sol";

/**
 * @dev Interface of the optional ERC1155MetadataExtension interface, as defined
 * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155MetadataURI is IERC1155 {
    /**
     * @dev Returns the URI for token type `id`.
     *
     * If the `\{id\}` substring is present in the URI, it must be replaced by
     * clients with the actual token type ID.
     */
    function uri(uint256 id) external view returns (string memory);
}

File 17 of 23 : ERC1155Supply.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/ERC1155Supply.sol)

pragma solidity ^0.8.0;

import "../ERC1155.sol";

/**
 * @dev Extension of ERC1155 that adds tracking of total supply per id.
 *
 * Useful for scenarios where Fungible and Non-fungible tokens have to be
 * clearly identified. Note: While a totalSupply of 1 might mean the
 * corresponding is an NFT, there is no guarantees that no other token with the
 * same id are not going to be minted.
 */
abstract contract ERC1155Supply is ERC1155 {
    mapping(uint256 => uint256) private _totalSupply;

    /**
     * @dev Total amount of tokens in with a given id.
     */
    function totalSupply(uint256 id) public view virtual returns (uint256) {
        return _totalSupply[id];
    }

    /**
     * @dev Indicates whether any token exist with a given id, or not.
     */
    function exists(uint256 id) public view virtual returns (bool) {
        return ERC1155Supply.totalSupply(id) > 0;
    }

    /**
     * @dev See {ERC1155-_beforeTokenTransfer}.
     */
    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual override {
        super._beforeTokenTransfer(operator, from, to, ids, amounts, data);

        if (from == address(0)) {
            for (uint256 i = 0; i < ids.length; ++i) {
                _totalSupply[ids[i]] += amounts[i];
            }
        }

        if (to == address(0)) {
            for (uint256 i = 0; i < ids.length; ++i) {
                _totalSupply[ids[i]] -= amounts[i];
            }
        }
    }
}

File 18 of 23 : IERC1155Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol)

pragma solidity ^0.8.0;

import "../../utils/introspection/IERC165.sol";

/**
 * @dev _Available since v3.1._
 */
interface IERC1155Receiver is IERC165 {
    /**
     * @dev Handles the receipt of a single ERC1155 token type. This function is
     * called at the end of a `safeTransferFrom` after the balance has been updated.
     *
     * NOTE: To accept the transfer, this must return
     * `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))`
     * (i.e. 0xf23a6e61, or its own function selector).
     *
     * @param operator The address which initiated the transfer (i.e. msg.sender)
     * @param from The address which previously owned the token
     * @param id The ID of the token being transferred
     * @param value The amount of tokens being transferred
     * @param data Additional data with no specified format
     * @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed
     */
    function onERC1155Received(
        address operator,
        address from,
        uint256 id,
        uint256 value,
        bytes calldata data
    ) external returns (bytes4);

    /**
     * @dev Handles the receipt of a multiple ERC1155 token types. This function
     * is called at the end of a `safeBatchTransferFrom` after the balances have
     * been updated.
     *
     * NOTE: To accept the transfer(s), this must return
     * `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))`
     * (i.e. 0xbc197c81, or its own function selector).
     *
     * @param operator The address which initiated the batch transfer (i.e. msg.sender)
     * @param from The address which previously owned the token
     * @param ids An array containing ids of each token being transferred (order and length must match values array)
     * @param values An array containing amounts of each token being transferred (order and length must match ids array)
     * @param data Additional data with no specified format
     * @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed
     */
    function onERC1155BatchReceived(
        address operator,
        address from,
        uint256[] calldata ids,
        uint256[] calldata values,
        bytes calldata data
    ) external returns (bytes4);
}

File 19 of 23 : IERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/IERC1155.sol)

pragma solidity ^0.8.0;

import "../../utils/introspection/IERC165.sol";

/**
 * @dev Required interface of an ERC1155 compliant contract, as defined in the
 * https://eips.ethereum.org/EIPS/eip-1155[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155 is IERC165 {
    /**
     * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.
     */
    event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);

    /**
     * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all
     * transfers.
     */
    event TransferBatch(
        address indexed operator,
        address indexed from,
        address indexed to,
        uint256[] ids,
        uint256[] values
    );

    /**
     * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to
     * `approved`.
     */
    event ApprovalForAll(address indexed account, address indexed operator, bool approved);

    /**
     * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.
     *
     * If an {URI} event was emitted for `id`, the standard
     * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value
     * returned by {IERC1155MetadataURI-uri}.
     */
    event URI(string value, uint256 indexed id);

    /**
     * @dev Returns the amount of tokens of token type `id` owned by `account`.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) external view returns (uint256);

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids)
        external
        view
        returns (uint256[] memory);

    /**
     * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,
     *
     * Emits an {ApprovalForAll} event.
     *
     * Requirements:
     *
     * - `operator` cannot be the caller.
     */
    function setApprovalForAll(address operator, bool approved) external;

    /**
     * @dev Returns true if `operator` is approved to transfer ``account``'s tokens.
     *
     * See {setApprovalForAll}.
     */
    function isApprovedForAll(address account, address operator) external view returns (bool);

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes calldata data
    ) external;

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] calldata ids,
        uint256[] calldata amounts,
        bytes calldata data
    ) external;
}

File 20 of 23 : ERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/ERC1155.sol)

pragma solidity ^0.8.0;

import "./IERC1155.sol";
import "./IERC1155Receiver.sol";
import "./extensions/IERC1155MetadataURI.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of the basic standard multi-token.
 * See https://eips.ethereum.org/EIPS/eip-1155
 * Originally based on code by Enjin: https://github.com/enjin/erc-1155
 *
 * _Available since v3.1._
 */
contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI {
    using Address for address;

    // Mapping from token ID to account balances
    mapping(uint256 => mapping(address => uint256)) private _balances;

    // Mapping from account to operator approvals
    mapping(address => mapping(address => bool)) private _operatorApprovals;

    // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json
    string private _uri;

    /**
     * @dev See {_setURI}.
     */
    constructor(string memory uri_) {
        _setURI(uri_);
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
        return
            interfaceId == type(IERC1155).interfaceId ||
            interfaceId == type(IERC1155MetadataURI).interfaceId ||
            super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {IERC1155MetadataURI-uri}.
     *
     * This implementation returns the same URI for *all* token types. It relies
     * on the token type ID substitution mechanism
     * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
     *
     * Clients calling this function must replace the `\{id\}` substring with the
     * actual token type ID.
     */
    function uri(uint256) public view virtual override returns (string memory) {
        return _uri;
    }

    /**
     * @dev See {IERC1155-balanceOf}.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) public view virtual override returns (uint256) {
        require(account != address(0), "ERC1155: balance query for the zero address");
        return _balances[id][account];
    }

    /**
     * @dev See {IERC1155-balanceOfBatch}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] memory accounts, uint256[] memory ids)
        public
        view
        virtual
        override
        returns (uint256[] memory)
    {
        require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch");

        uint256[] memory batchBalances = new uint256[](accounts.length);

        for (uint256 i = 0; i < accounts.length; ++i) {
            batchBalances[i] = balanceOf(accounts[i], ids[i]);
        }

        return batchBalances;
    }

    /**
     * @dev See {IERC1155-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _setApprovalForAll(_msgSender(), operator, approved);
    }

    /**
     * @dev See {IERC1155-isApprovedForAll}.
     */
    function isApprovedForAll(address account, address operator) public view virtual override returns (bool) {
        return _operatorApprovals[account][operator];
    }

    /**
     * @dev See {IERC1155-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) public virtual override {
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: caller is not owner nor approved"
        );
        _safeTransferFrom(from, to, id, amount, data);
    }

    /**
     * @dev See {IERC1155-safeBatchTransferFrom}.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) public virtual override {
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: transfer caller is not owner nor approved"
        );
        _safeBatchTransferFrom(from, to, ids, amounts, data);
    }

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, to, _asSingletonArray(id), _asSingletonArray(amount), data);

        uint256 fromBalance = _balances[id][from];
        require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
        unchecked {
            _balances[id][from] = fromBalance - amount;
        }
        _balances[id][to] += amount;

        emit TransferSingle(operator, from, to, id, amount);

        _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function _safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, to, ids, amounts, data);

        for (uint256 i = 0; i < ids.length; ++i) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

            uint256 fromBalance = _balances[id][from];
            require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
            unchecked {
                _balances[id][from] = fromBalance - amount;
            }
            _balances[id][to] += amount;
        }

        emit TransferBatch(operator, from, to, ids, amounts);

        _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data);
    }

    /**
     * @dev Sets a new URI for all token types, by relying on the token type ID
     * substitution mechanism
     * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
     *
     * By this mechanism, any occurrence of the `\{id\}` substring in either the
     * URI or any of the amounts in the JSON file at said URI will be replaced by
     * clients with the token type ID.
     *
     * For example, the `https://token-cdn-domain/\{id\}.json` URI would be
     * interpreted by clients as
     * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json`
     * for token type ID 0x4cce0.
     *
     * See {uri}.
     *
     * Because these URIs cannot be meaningfully represented by the {URI} event,
     * this function emits no events.
     */
    function _setURI(string memory newuri) internal virtual {
        _uri = newuri;
    }

    /**
     * @dev Creates `amount` tokens of token type `id`, and assigns them to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _mint(
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: mint to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, address(0), to, _asSingletonArray(id), _asSingletonArray(amount), data);

        _balances[id][to] += amount;
        emit TransferSingle(operator, address(0), to, id, amount);

        _doSafeTransferAcceptanceCheck(operator, address(0), to, id, amount, data);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function _mintBatch(
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: mint to the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, address(0), to, ids, amounts, data);

        for (uint256 i = 0; i < ids.length; i++) {
            _balances[ids[i]][to] += amounts[i];
        }

        emit TransferBatch(operator, address(0), to, ids, amounts);

        _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data);
    }

    /**
     * @dev Destroys `amount` tokens of token type `id` from `from`
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `from` must have at least `amount` tokens of token type `id`.
     */
    function _burn(
        address from,
        uint256 id,
        uint256 amount
    ) internal virtual {
        require(from != address(0), "ERC1155: burn from the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, address(0), _asSingletonArray(id), _asSingletonArray(amount), "");

        uint256 fromBalance = _balances[id][from];
        require(fromBalance >= amount, "ERC1155: burn amount exceeds balance");
        unchecked {
            _balances[id][from] = fromBalance - amount;
        }

        emit TransferSingle(operator, from, address(0), id, amount);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     */
    function _burnBatch(
        address from,
        uint256[] memory ids,
        uint256[] memory amounts
    ) internal virtual {
        require(from != address(0), "ERC1155: burn from the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, address(0), ids, amounts, "");

        for (uint256 i = 0; i < ids.length; i++) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

            uint256 fromBalance = _balances[id][from];
            require(fromBalance >= amount, "ERC1155: burn amount exceeds balance");
            unchecked {
                _balances[id][from] = fromBalance - amount;
            }
        }

        emit TransferBatch(operator, from, address(0), ids, amounts);
    }

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits a {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC1155: setting approval status for self");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning, as well as batched variants.
     *
     * The same hook is called on both single and batched variants. For single
     * transfers, the length of the `id` and `amount` arrays will be 1.
     *
     * Calling conditions (for each `id` and `amount` pair):
     *
     * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * of token type `id` will be  transferred to `to`.
     * - When `from` is zero, `amount` tokens of token type `id` will be minted
     * for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens of token type `id`
     * will be burned.
     * - `from` and `to` are never both zero.
     * - `ids` and `amounts` have the same, non-zero length.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {}

    function _doSafeTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) {
                if (response != IERC1155Receiver.onERC1155Received.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non ERC1155Receiver implementer");
            }
        }
    }

    function _doSafeBatchTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns (
                bytes4 response
            ) {
                if (response != IERC1155Receiver.onERC1155BatchReceived.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non ERC1155Receiver implementer");
            }
        }
    }

    function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) {
        uint256[] memory array = new uint256[](1);
        array[0] = element;

        return array;
    }
}

File 21 of 23 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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 Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        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);
    }
}

File 22 of 23 : AddressUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0-rc.1) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library AddressUpgradeable {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

File 23 of 23 : Initializable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0-rc.1) (proxy/utils/Initializable.sol)

pragma solidity ^0.8.2;

import "../../utils/AddressUpgradeable.sol";

/**
 * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
 * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an
 * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
 * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
 *
 * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be
 * reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in
 * case an upgrade adds a module that needs to be initialized.
 *
 * For example:
 *
 * [.hljs-theme-light.nopadding]
 * ```
 * contract MyToken is ERC20Upgradeable {
 *     function initialize() initializer public {
 *         __ERC20_init("MyToken", "MTK");
 *     }
 * }
 * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {
 *     function initializeV2() reinitializer(2) public {
 *         __ERC20Permit_init("MyToken");
 *     }
 * }
 * ```
 *
 * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
 * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
 *
 * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
 * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
 *
 * [CAUTION]
 * ====
 * Avoid leaving a contract uninitialized.
 *
 * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation
 * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke
 * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:
 *
 * [.hljs-theme-light.nopadding]
 * ```
 * /// @custom:oz-upgrades-unsafe-allow constructor
 * constructor() {
 *     _disableInitializers();
 * }
 * ```
 * ====
 */
abstract contract Initializable {
    /**
     * @dev Indicates that the contract has been initialized.
     * @custom:oz-retyped-from bool
     */
    uint8 private _initialized;

    /**
     * @dev Indicates that the contract is in the process of being initialized.
     */
    bool private _initializing;

    /**
     * @dev Triggered when the contract has been initialized or reinitialized.
     */
    event Initialized(uint8 version);

    /**
     * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,
     * `onlyInitializing` functions can be used to initialize parent contracts.
     *
     * Similar to `reinitializer(1)`, except that functions marked with `initializer` can be nested in the context of a
     * constructor.
     *
     * Emits an {Initialized} event.
     */
    modifier initializer() {
        bool isTopLevelCall = !_initializing;
        require(
            (isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1),
            "Initializable: contract is already initialized"
        );
        _initialized = 1;
        if (isTopLevelCall) {
            _initializing = true;
        }
        _;
        if (isTopLevelCall) {
            _initializing = false;
            emit Initialized(1);
        }
    }

    /**
     * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the
     * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be
     * used to initialize parent contracts.
     *
     * A reinitializer may be used after the original initialization step. This is essential to configure modules that
     * are added through upgrades and that require initialization.
     *
     * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`
     * cannot be nested. If one is invoked in the context of another, execution will revert.
     *
     * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in
     * a contract, executing them in the right order is up to the developer or operator.
     *
     * WARNING: setting the version to 255 will prevent any future reinitialization.
     *
     * Emits an {Initialized} event.
     */
    modifier reinitializer(uint8 version) {
        require(!_initializing && _initialized < version, "Initializable: contract is already initialized");
        _initialized = version;
        _initializing = true;
        _;
        _initializing = false;
        emit Initialized(version);
    }

    /**
     * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the
     * {initializer} and {reinitializer} modifiers, directly or indirectly.
     */
    modifier onlyInitializing() {
        require(_initializing, "Initializable: contract is not initializing");
        _;
    }

    /**
     * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.
     * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized
     * to any version. It is recommended to use this to lock implementation contracts that are designed to be called
     * through proxies.
     *
     * Emits an {Initialized} event the first time it is successfully executed.
     */
    function _disableInitializers() internal virtual {
        require(!_initializing, "Initializable: contract is initializing");
        if (_initialized < type(uint8).max) {
            _initialized = type(uint8).max;
            emit Initialized(type(uint8).max);
        }
    }

    /**
     * @dev Internal function that returns the initialized version. Returns `_initialized`
     */
    function _getInitializedVersion() internal view returns (uint8) {
        return _initialized;
    }

    /**
     * @dev Internal function that returns the initialized version. Returns `_initializing`
     */
    function _isInitializing() internal view returns (bool) {
        return _initializing;
    }
}

Settings
{
  "remappings": [],
  "optimizer": {
    "enabled": true,
    "runs": 438000
  },
  "evmVersion": "london",
  "libraries": {},
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract ABI

[{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"recordId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"contributionId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"rewardGovernance","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"rewardCommunity","type":"uint256"}],"name":"ContributionRewardTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"recordId","type":"uint256"},{"indexed":false,"internalType":"string","name":"symbol","type":"string"},{"indexed":false,"internalType":"string","name":"image","type":"string"},{"indexed":false,"internalType":"uint256","name":"creationDate","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tokenAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint8","name":"tokenType","type":"uint8"}],"name":"NewTokenCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"}],"name":"Snapshot","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"recordId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"creationDate","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"name":"TokenMinted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"transferDate","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"string","name":"symbol","type":"string"}],"name":"TokenTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"inputs":[],"name":"CONTROLLER_CONTRACT_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CRD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OWNER","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TREASURY_CONTRACT_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"VOTING_HUB_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"snapshotId","type":"uint256"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"balanceOfAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"commTokenMapping","outputs":[{"internalType":"uint256","name":"recordId","type":"uint256"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"string","name":"image","type":"string"},{"internalType":"uint256","name":"creationDate","type":"uint256"},{"internalType":"bool","name":"isPresent","type":"bool"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"}],"name":"commTokenSym","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"recordId","type":"uint256"},{"internalType":"uint256","name":"totalSupply","type":"uint256"},{"internalType":"uint256","name":"userBalance","type":"uint256"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"string","name":"image","type":"string"}],"internalType":"struct TreasuryCoreContract.NewTokenData","name":"newTokenData","type":"tuple"},{"internalType":"address","name":"userAddress","type":"address"}],"name":"createNewCommunityToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"recordId","type":"uint256"},{"internalType":"uint256","name":"totalSupply","type":"uint256"},{"internalType":"uint256","name":"userBalance","type":"uint256"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"string","name":"image","type":"string"}],"internalType":"struct TreasuryCoreContract.NewTokenData","name":"newTokenData","type":"tuple"},{"internalType":"address","name":"userAddress","type":"address"}],"name":"createNewGovernanceToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"govTokenMapping","outputs":[{"internalType":"uint256","name":"recordId","type":"uint256"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"string","name":"image","type":"string"},{"internalType":"uint256","name":"creationDate","type":"uint256"},{"internalType":"bool","name":"isPresent","type":"bool"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"}],"name":"govTokenSym","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newVotingHubContract","type":"address"},{"internalType":"address","name":"newTreasuryAddress","type":"address"},{"internalType":"address","name":"crdTokenAddress","type":"address"},{"internalType":"address","name":"controllerContractAddress","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"governanceSymbol","type":"string"},{"internalType":"string","name":"communitySymbol","type":"string"}],"name":"isSymbolAvailable","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"recordId","type":"uint256"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"name":"mintTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"onERC1155BatchReceived","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"onERC1155Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"governanceSymbol","type":"string"},{"internalType":"string","name":"communitySymbol","type":"string"}],"name":"setSymbolsAsAvailable","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"governanceSymbol","type":"string"},{"internalType":"string","name":"communitySymbol","type":"string"}],"name":"setSymbolsAsUsed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"snapshot","outputs":[{"internalType":"uint256","name":"snapshotId","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"snapshotId","type":"uint256"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"totalSupplyAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"recordId","type":"uint256"},{"internalType":"uint256","name":"contributionId","type":"uint256"},{"internalType":"uint256","name":"rewardGovernance","type":"uint256"},{"internalType":"uint256","name":"rewardCommunity","type":"uint256"}],"name":"transferRewardAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"}],"name":"transferRewardTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102255760003560e01c80638aa7a8b01161012a578063bd85b039116100bd578063ef890f7c1161008c578063f242432a11610071578063f242432a14610612578063f8c8765e14610625578063ff669dfb1461063857600080fd5b8063ef890f7c146105c6578063f23a6e61146105d957600080fd5b8063bd85b03914610542578063e10fa0b214610562578063e6acd9b814610575578063e985e9c51461057d57600080fd5b8063a22cb465116100f9578063a22cb46514610490578063acb31493146104a3578063af94e4a9146104c3578063bc197c81146104d657600080fd5b80638aa7a8b0146104425780638fbf353f146104555780639711715a146104685780639b6a6f0d1461047057600080fd5b80634e1273f4116101bd578063626da0681161018c5780638388f413116101715780638388f413146103dc578063884c8ffe146103ef5780638958a5de1461041457600080fd5b8063626da068146103b65780636c45f2f6146103c957600080fd5b80634e1273f41461034e5780634f558e791461036e5780635f938ad21461039057806361cbc357146103a357600080fd5b80631644e0ff116101f95780631644e0ff146102d85780631b2ef1ca146103065780632eb2c2d61461031b578063368680491461032e57600080fd5b8062fdd58e1461022a57806301ffc9a7146102505780630e89341c14610273578063117803e314610293575b600080fd5b61023d61023836600461364a565b61064b565b6040519081526020015b60405180910390f35b61026361025e3660046136a5565b610708565b6040519015158152602001610247565b6102866102813660046136c2565b6107eb565b6040516102479190613755565b600c546102b39073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610247565b6102636102e636600461389a565b805160208183018101805160128252928201919093012091525460ff1681565b6103196103143660046138d7565b61087f565b005b61031961032936600461398e565b610970565b6009546102b39073ffffffffffffffffffffffffffffffffffffffff1681565b61036161035c366004613a38565b610a39565b6040516102479190613b3e565b61026361037c3660046136c2565b600090815260036020526040902054151590565b61031961039e366004613b51565b610b91565b6103196103b1366004613b51565b610cdc565b61023d6103c4366004613bab565b610de5565b6103196103d7366004613b51565b610e48565b6103196103ea366004613bde565b611003565b6104026103fd3660046136c2565b611193565b60405161024796959493929190613c20565b61026361042236600461389a565b805160208183018101805160138252928201919093012091525460ff1681565b61023d6104503660046138d7565b6112de565b610319610463366004613c6a565b611323565b61023d61156f565b600b546102b39073ffffffffffffffffffffffffffffffffffffffff1681565b61031961049e366004613c96565b611627565b600a546102b39073ffffffffffffffffffffffffffffffffffffffff1681565b6104026104d13660046136c2565b611632565b6105116104e4366004613d59565b7fbc197c819b3e337a6f9652dd10becd7eef83032af3b9d958d3d42f669414662198975050505050505050565b6040517fffffffff000000000000000000000000000000000000000000000000000000009091168152602001610247565b61023d6105503660046136c2565b60009081526003602052604090205490565b61023d610570366004613e14565b611654565b61023d600181565b61026361058b366004613ed9565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260016020908152604080832093909416825291909152205460ff1690565b6103196105d4366004613f03565b6118b2565b6105116105e7366004613f38565b7ff23a6e612e1ff4830e658fe43f4e3cb4a5f8170bd5d9e69fb5d7a7fa9e4fdf979695505050505050565b610319610620366004613fb0565b6119ac565b610319610633366004614015565b611a6e565b61023d610646366004613e14565b611d2e565b600060018214156106f857600f546040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff858116600483015262010000909204909116906370a0823190602401602060405180830381865afa1580156106cd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106f19190614069565b9050610702565b6106f18383611f17565b92915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167fd9b67a2600000000000000000000000000000000000000000000000000000000148061079b57507fffffffff0000000000000000000000000000000000000000000000000000000082167f0e89341c00000000000000000000000000000000000000000000000000000000145b8061070257507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610702565b6060600280546107fa90614082565b80601f016020809104026020016040519081016040528092919081815260200182805461082690614082565b80156108735780601f1061084857610100808354040283529160200191610873565b820191906000526020600020905b81548152906001019060200180831161085657829003601f168201915b50505050509050919050565b600a5473ffffffffffffffffffffffffffffffffffffffff16331461092b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f554e415554484f52495a45443a2043414e4e4f545f504552464f524d5f41435460448201527f494f4e000000000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b61096c3083836040518060400160405280601181526020017f4e657720746f6b656e73206d696e746564000000000000000000000000000000815250611fef565b5050565b73ffffffffffffffffffffffffffffffffffffffff85163314806109995750610999853361058b565b610a25576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f742060448201527f6f776e6572206e6f7220617070726f76656400000000000000000000000000006064820152608401610922565b610a32858585858561215c565b5050505050565b60608151835114610acc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e67746860448201527f206d69736d6174636800000000000000000000000000000000000000000000006064820152608401610922565b6000835167ffffffffffffffff811115610ae857610ae8613768565b604051908082528060200260200182016040528015610b11578160200160208202803683370190505b50905060005b8451811015610b8957610b5c858281518110610b3557610b356140d6565b6020026020010151858381518110610b4f57610b4f6140d6565b602002602001015161064b565b828281518110610b6e57610b6e6140d6565b6020908102919091010152610b8281614134565b9050610b17565b509392505050565b600a5473ffffffffffffffffffffffffffffffffffffffff163314610c38576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f554e415554484f52495a45443a2043414e4e4f545f504552464f524d5f41435460448201527f494f4e00000000000000000000000000000000000000000000000000000000006064820152608401610922565b6000601382604051610c4a919061416d565b90815260405190819003602001812080549215157fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0090931692909217909155600090601290610c9a90859061416d565b90815260405190819003602001902080549115157fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff009092169190911790555050565b600a5473ffffffffffffffffffffffffffffffffffffffff163314610d83576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f554e415554484f52495a45443a2043414e4e4f545f504552464f524d5f41435460448201527f494f4e00000000000000000000000000000000000000000000000000000000006064820152608401610922565b6001601382604051610d95919061416d565b90815260405190819003602001812080549215157fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0090931692909217909155600190601290610c9a90859061416d565b73ffffffffffffffffffffffffffffffffffffffff83166000908152600460209081526040808320848452909152812081908190610e249086906124a4565b9150915081610e3c57610e37868561064b565b610e3e565b805b9695505050505050565b600a5473ffffffffffffffffffffffffffffffffffffffff163314610eef576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f554e415554484f52495a45443a2043414e4e4f545f504552464f524d5f41435460448201527f494f4e00000000000000000000000000000000000000000000000000000000006064820152608401610922565b601381604051610eff919061416d565b9081526040519081900360200190205460ff1615610f79576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f53594d424f4c5f435f54414b454e0000000000000000000000000000000000006044820152606401610922565b601282604051610f89919061416d565b9081526040519081900360200190205460ff161561096c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f53594d424f4c5f475f54414b454e0000000000000000000000000000000000006044820152606401610922565b600a5473ffffffffffffffffffffffffffffffffffffffff1633146110aa576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f554e415554484f52495a45443a2043414e4e4f545f504552464f524d5f41435460448201527f494f4e00000000000000000000000000000000000000000000000000000000006064820152608401610922565b6110b6303360016125d6565b81156110ee576110ee3086601060008881526020019081526020016000206005015485604051806020016040528060008152506119ac565b8015611126576111263086601160008881526020019081526020016000206005015484604051806020016040528060008152506119ac565b6040805173ffffffffffffffffffffffffffffffffffffffff871681526020810186905290810184905260608101839052608081018290527fe0357d4bc70490bf81b58d93d7d3a12a646c486a071200201fd882cdf74c88d99060a0015b60405180910390a15050505050565b601060205260009081526040902080546001820180549192916111b590614082565b80601f01602080910402602001604051908101604052809291908181526020018280546111e190614082565b801561122e5780601f106112035761010080835404028352916020019161122e565b820191906000526020600020905b81548152906001019060200180831161121157829003601f168201915b50505050509080600201805461124390614082565b80601f016020809104026020016040519081016040528092919081815260200182805461126f90614082565b80156112bc5780601f10611291576101008083540402835291602001916112bc565b820191906000526020600020905b81548152906001019060200180831161129f57829003601f168201915b50505050600383015460048401546005909401549293909260ff909116915086565b6000818152600560205260408120819081906112fb9086906124a4565b91509150816113185760008481526003602052604090205461131a565b805b95945050505050565b600a5473ffffffffffffffffffffffffffffffffffffffff1633146113ca576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f554e415554484f52495a45443a2043414e4e4f545f504552464f524d5f41435460448201527f494f4e00000000000000000000000000000000000000000000000000000000006064820152608401610922565b60008381526011602052604090206004015460ff16151560011480611405575060008381526010602052604090206004015460ff1615156001145b61146b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f494e56414c49443a2057524f4e475f5245434f52445f494400000000000000006044820152606401610922565b60008381526011602052604090206005015482148061149a575060008381526010602052604090206005015482145b611500576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f494e56414c49443a2057524f4e475f544f4b454e5f49440000000000000000006044820152606401610922565b61152430838360405180606001604052806023815260200161450b60239139611fef565b604080518481526020810184905242818301526060810183905290517f81e0b881b9c6ff93955a4a996cc01472b2cdc1a1663af072fa5ca7db7f127de29181900360800190a1505050565b600a5460009073ffffffffffffffffffffffffffffffffffffffff163314611619576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f554e415554484f52495a45443a2043414e4e4f545f504552464f524d5f41435460448201527f494f4e00000000000000000000000000000000000000000000000000000000006064820152608401610922565b61162161272a565b90505b90565b61096c3383836125d6565b601160205260009081526040902080546001820180549192916111b590614082565b600a5460009073ffffffffffffffffffffffffffffffffffffffff163314806116945750600b5473ffffffffffffffffffffffffffffffffffffffff1633145b611720576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f554e415554484f52495a45443a2043414e4e4f545f504552464f524d5f41435460448201527f494f4e00000000000000000000000000000000000000000000000000000000006064820152608401610922565b600160128460600151604051611736919061416d565b9081526040516020918190038201812080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169315159390931790925560009161178491600d9101614189565b60405160208183030381529060405290508084606001516040516020016117ac92919061425c565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152919052606085015250600880549060006117f083614134565b9091555050600854600f546118119085908390610100900460ff1686612784565b845160009081526010602090815260409091208251815582820151805191926118429260018501929091019061358d565b506040820151805161185e91600284019160209091019061358d565b506060820151600382015560808201516004820180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001691151591909117905560a0909101516005909101559392505050565b600a5473ffffffffffffffffffffffffffffffffffffffff163314611959576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f554e415554484f52495a45443a2043414e4e4f545f504552464f524d5f41435460448201527f494f4e00000000000000000000000000000000000000000000000000000000006064820152608401610922565b611965303360016125d6565b6119a7308285856040518060400160405280601581526020017f5245434f52445f544f4b454e5f5452414e5346455200000000000000000000008152506119ac565b505050565b73ffffffffffffffffffffffffffffffffffffffff85163314806119d557506119d5853361058b565b611a61576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201527f20617070726f76656400000000000000000000000000000000000000000000006064820152608401610922565b610a3285858585856128ab565b600754610100900460ff1615808015611a8e5750600754600160ff909116105b80611aa85750303b158015611aa8575060075460ff166001145b611b34576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152608401610922565b600780547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790558015611b9257600780547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff166101001790555b600c5473ffffffffffffffffffffffffffffffffffffffff163314611c39576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f554e415554484f52495a45443a2043414e4e4f545f504552464f524d5f41435460448201527f494f4e00000000000000000000000000000000000000000000000000000000006064820152608401610922565b6009805473ffffffffffffffffffffffffffffffffffffffff8088167fffffffffffffffffffffffff000000000000000000000000000000000000000092831617909255600a8054878416908316179055600b80548584169216919091179055600f805491851662010000027fffffffffffffffffffff0000000000000000000000000000000000000000ffff9092169190911790558015610a3257600780547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb384740249890602001611184565b600a5460009073ffffffffffffffffffffffffffffffffffffffff16331480611d6e5750600b5473ffffffffffffffffffffffffffffffffffffffff1633145b611dfa576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f554e415554484f52495a45443a2043414e4e4f545f504552464f524d5f41435460448201527f494f4e00000000000000000000000000000000000000000000000000000000006064820152608401610922565b600160138460600151604051611e10919061416d565b9081526040516020918190038201812080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001693151593909317909255600091611e5e91600e9101614189565b6040516020818303038152906040529050808460600151604051602001611e8692919061425c565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081840301815291905260608501525060088054906000611eca83614134565b9091555050600854600f54611ee6908590839060ff1686612784565b845160009081526011602090815260409091208251815582820151805191926118429260018501929091019061358d565b600073ffffffffffffffffffffffffffffffffffffffff8316611fbc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201527f65726f20616464726573730000000000000000000000000000000000000000006064820152608401610922565b5060009081526020818152604080832073ffffffffffffffffffffffffffffffffffffffff949094168352929052205490565b73ffffffffffffffffffffffffffffffffffffffff8416612092576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610922565b336120b2816000876120a388612961565b6120ac88612961565b876129ac565b60008481526020818152604080832073ffffffffffffffffffffffffffffffffffffffff89168452909152812080548592906120ef90849061428b565b9091555050604080518581526020810185905273ffffffffffffffffffffffffffffffffffffffff80881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610a3281600087878787612af9565b81518351146121ed576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060448201527f6d69736d617463680000000000000000000000000000000000000000000000006064820152608401610922565b73ffffffffffffffffffffffffffffffffffffffff8416612290576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610922565b3361229f8187878787876129ac565b60005b845181101561240f5760008582815181106122bf576122bf6140d6565b6020026020010151905060008583815181106122dd576122dd6140d6565b6020908102919091018101516000848152808352604080822073ffffffffffffffffffffffffffffffffffffffff8e1683529093529190912054909150818110156123aa576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201527f72207472616e73666572000000000000000000000000000000000000000000006064820152608401610922565b60008381526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8e8116855292528083208585039055908b168252812080548492906123f490849061428b565b925050819055505050508061240890614134565b90506122a2565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516124869291906142a3565b60405180910390a461249c818787878787612d8d565b505050505050565b60008060008411612511576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f4552433230536e617073686f743a2069642069732030000000000000000000006044820152606401610922565b612519612f3a565b841115612582576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f4552433230536e617073686f743a206e6f6e6578697374656e742069640000006044820152606401610922565b600061258e8486612f45565b84549091508114156125a75760008092509250506125cf565b60018460010182815481106125be576125be6140d6565b906000526020600020015492509250505b9250929050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612692576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c2073746174757360448201527f20666f722073656c6600000000000000000000000000000000000000000000006064820152608401610922565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526001602090815260408083209487168084529482529182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b600061273a600680546001019055565b6000612744612f3a565b90507f8030e83b04d87bef53480e26263266d6ca66863aa8506aca6f2559d18aa1cb678160405161277791815260200190565b60405180910390a1919050565b6127bf6040518060c0016040528060008152602001606081526020016060815260200160008152602001600015158152602001600081525090565b6000856040015186602001516127d591906142c8565b90506000866040015190506127fb30878460405180602001604052806000815250611fef565b61281684878360405180602001604052806000815250611fef565b6040805160c081018252885181526060808a0180516020808501919091526080808d018051868801524294860185905260019186019190915260a085018c90528c5192519051918d0151955194957f49debfc18817e7e3ec2948391bcc3a87349b3c716f7d470d223bfbf8928aa65a956128989592939291908e908e906142df565b60405180910390a1979650505050505050565b600183141561295457600f546040517f42842e0e00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff878116600483015286811660248301526044820185905262010000909204909116906342842e0e90606401600060405180830381600087803b15801561293757600080fd5b505af115801561294b573d6000803e3d6000fd5b50505050610a32565b610a328585858585613008565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061299b5761299b6140d6565b602090810291909101015292915050565b60095473ffffffffffffffffffffffffffffffffffffffff1615612aeb5760095473ffffffffffffffffffffffffffffffffffffffff1660005b8451811015612ae8578173ffffffffffffffffffffffffffffffffffffffff16631de841ba8888878581518110612a1f57612a1f6140d6565b6020026020010151898681518110612a3957612a396140d6565b60209081029190910101516040517fffffffff0000000000000000000000000000000000000000000000000000000060e087901b16815273ffffffffffffffffffffffffffffffffffffffff948516600482015293909216602484015260448301526064820152608401600060405180830381600087803b158015612abd57600080fd5b505af1158015612ad1573d6000803e3d6000fd5b505050508080612ae090614134565b9150506129e6565b50505b61249c868686868686613230565b73ffffffffffffffffffffffffffffffffffffffff84163b1561249c576040517ff23a6e6100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85169063f23a6e6190612b709089908990889088908890600401614334565b6020604051808303816000875af1925050508015612bc9575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201909252612bc691810190614384565b60015b612cb357612bd56143a1565b806308c379a01415612c295750612bea6143bc565b80612bf55750612c2b565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109229190613755565b505b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e204552433131353560448201527f526563656976657220696d706c656d656e7465720000000000000000000000006064820152608401610922565b7fffffffff0000000000000000000000000000000000000000000000000000000081167ff23a6e610000000000000000000000000000000000000000000000000000000014612d84576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a6563746560448201527f6420746f6b656e730000000000000000000000000000000000000000000000006064820152608401610922565b50505050505050565b73ffffffffffffffffffffffffffffffffffffffff84163b1561249c576040517fbc197c8100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85169063bc197c8190612e049089908990889088908890600401614464565b6020604051808303816000875af1925050508015612e5d575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201909252612e5a91810190614384565b60015b612e6957612bd56143a1565b7fffffffff0000000000000000000000000000000000000000000000000000000081167fbc197c810000000000000000000000000000000000000000000000000000000014612d84576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a6563746560448201527f6420746f6b656e730000000000000000000000000000000000000000000000006064820152608401610922565b600061162160065490565b8154600090612f5657506000610702565b82546000905b80821015612fb2576000612f7083836132aa565b905084868281548110612f8557612f856140d6565b90600052602060002001541115612f9e57809150612fac565b612fa981600161428b565b92505b50612f5c565b600082118015612fe757508385612fca6001856142c8565b81548110612fda57612fda6140d6565b9060005260206000200154145b1561300057612ff76001836142c8565b92505050610702565b509050610702565b73ffffffffffffffffffffffffffffffffffffffff84166130ab576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610922565b336130bb8187876120a388612961565b60008481526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8a16845290915290205483811015613179576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201527f72207472616e73666572000000000000000000000000000000000000000000006064820152608401610922565b60008581526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8b81168552925280832087850390559088168252812080548692906131c390849061428b565b9091555050604080518681526020810186905273ffffffffffffffffffffffffffffffffffffffff808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4612d84828888888888612af9565b73ffffffffffffffffffffffffffffffffffffffff85166132635761325584846132cc565b61325e83613359565b61329c565b73ffffffffffffffffffffffffffffffffffffffff84166132885761325585846132cc565b61329285846132cc565b61329c84846132cc565b61249c8686868686866133d5565b60006132b960028484186144cf565b6132c59084841661428b565b9392505050565b60005b81518110156119a75773ffffffffffffffffffffffffffffffffffffffff8316600090815260046020526040812083516133479290859085908110613316576133166140d6565b6020026020010151815260200190815260200160002061334285858581518110610b4f57610b4f6140d6565b6134fb565b8061335181614134565b9150506132cf565b60005b815181101561096c576133c36005600084848151811061337e5761337e6140d6565b602002602001015181526020019081526020016000206133428484815181106133a9576133a96140d6565b602002602001015160009081526003602052604090205490565b806133cd81614134565b91505061335c565b73ffffffffffffffffffffffffffffffffffffffff85166134695760005b83518110156134675782818151811061340e5761340e6140d6565b60200260200101516003600086848151811061342c5761342c6140d6565b602002602001015181526020019081526020016000206000828254613451919061428b565b90915550613460905081614134565b90506133f3565b505b73ffffffffffffffffffffffffffffffffffffffff841661249c5760005b8351811015612d84578281815181106134a2576134a26140d6565b6020026020010151600360008684815181106134c0576134c06140d6565b6020026020010151815260200190815260200160002060008282546134e591906142c8565b909155506134f4905081614134565b9050613487565b6000613505612f3a565b90508061351184613545565b10156119a7578254600180820185556000858152602080822090930193909355938401805494850181558252902090910155565b805460009061355657506000919050565b81548290613566906001906142c8565b81548110613576576135766140d6565b90600052602060002001549050919050565b919050565b82805461359990614082565b90600052602060002090601f0160209004810192826135bb5760008555613601565b82601f106135d457805160ff1916838001178555613601565b82800160010185558215613601579182015b828111156136015782518255916020019190600101906135e6565b5061360d929150613611565b5090565b5b8082111561360d5760008155600101613612565b803573ffffffffffffffffffffffffffffffffffffffff8116811461358857600080fd5b6000806040838503121561365d57600080fd5b61366683613626565b946020939093013593505050565b7fffffffff00000000000000000000000000000000000000000000000000000000811681146136a257600080fd5b50565b6000602082840312156136b757600080fd5b81356132c581613674565b6000602082840312156136d457600080fd5b5035919050565b60005b838110156136f65781810151838201526020016136de565b83811115613705576000848401525b50505050565b600081518084526137238160208601602086016136db565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b6020815260006132c5602083018461370b565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60a0810181811067ffffffffffffffff821117156137b7576137b7613768565b60405250565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f830116810181811067ffffffffffffffff8211171561380157613801613768565b6040525050565b600082601f83011261381957600080fd5b813567ffffffffffffffff81111561383357613833613768565b60405161386860207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f85011601826137bd565b81815284602083860101111561387d57600080fd5b816020850160208301376000918101602001919091529392505050565b6000602082840312156138ac57600080fd5b813567ffffffffffffffff8111156138c357600080fd5b6138cf84828501613808565b949350505050565b600080604083850312156138ea57600080fd5b50508035926020909101359150565b600067ffffffffffffffff82111561391357613913613768565b5060051b60200190565b600082601f83011261392e57600080fd5b8135602061393b826138f9565b60405161394882826137bd565b83815260059390931b850182019282810191508684111561396857600080fd5b8286015b84811015613983578035835291830191830161396c565b509695505050505050565b600080600080600060a086880312156139a657600080fd5b6139af86613626565b94506139bd60208701613626565b9350604086013567ffffffffffffffff808211156139da57600080fd5b6139e689838a0161391d565b945060608801359150808211156139fc57600080fd5b613a0889838a0161391d565b93506080880135915080821115613a1e57600080fd5b50613a2b88828901613808565b9150509295509295909350565b60008060408385031215613a4b57600080fd5b823567ffffffffffffffff80821115613a6357600080fd5b818501915085601f830112613a7757600080fd5b81356020613a84826138f9565b604051613a9182826137bd565b83815260059390931b8501820192828101915089841115613ab157600080fd5b948201945b83861015613ad657613ac786613626565b82529482019490820190613ab6565b96505086013592505080821115613aec57600080fd5b50613af98582860161391d565b9150509250929050565b600081518084526020808501945080840160005b83811015613b3357815187529582019590820190600101613b17565b509495945050505050565b6020815260006132c56020830184613b03565b60008060408385031215613b6457600080fd5b823567ffffffffffffffff80821115613b7c57600080fd5b613b8886838701613808565b93506020850135915080821115613b9e57600080fd5b50613af985828601613808565b600080600060608486031215613bc057600080fd5b613bc984613626565b95602085013595506040909401359392505050565b600080600080600060a08688031215613bf657600080fd5b613bff86613626565b97602087013597506040870135966060810135965060800135945092505050565b86815260c060208201526000613c3960c083018861370b565b8281036040840152613c4b818861370b565b60608401969096525050911515608083015260a0909101529392505050565b600080600060608486031215613c7f57600080fd5b505081359360208301359350604090920135919050565b60008060408385031215613ca957600080fd5b613cb283613626565b915060208301358015158114613cc757600080fd5b809150509250929050565b60008083601f840112613ce457600080fd5b50813567ffffffffffffffff811115613cfc57600080fd5b6020830191508360208260051b85010111156125cf57600080fd5b60008083601f840112613d2957600080fd5b50813567ffffffffffffffff811115613d4157600080fd5b6020830191508360208285010111156125cf57600080fd5b60008060008060008060008060a0898b031215613d7557600080fd5b613d7e89613626565b9750613d8c60208a01613626565b9650604089013567ffffffffffffffff80821115613da957600080fd5b613db58c838d01613cd2565b909850965060608b0135915080821115613dce57600080fd5b613dda8c838d01613cd2565b909650945060808b0135915080821115613df357600080fd5b50613e008b828c01613d17565b999c989b5096995094979396929594505050565b60008060408385031215613e2757600080fd5b823567ffffffffffffffff80821115613e3f57600080fd5b9084019060a08287031215613e5357600080fd5b604051613e5f81613797565b823581526020830135602082015260408301356040820152606083013582811115613e8957600080fd5b613e9588828601613808565b606083015250608083013582811115613ead57600080fd5b613eb988828601613808565b6080830152509350613ed091505060208401613626565b90509250929050565b60008060408385031215613eec57600080fd5b613ef583613626565b9150613ed060208401613626565b600080600060608486031215613f1857600080fd5b8335925060208401359150613f2f60408501613626565b90509250925092565b60008060008060008060a08789031215613f5157600080fd5b613f5a87613626565b9550613f6860208801613626565b94506040870135935060608701359250608087013567ffffffffffffffff811115613f9257600080fd5b613f9e89828a01613d17565b979a9699509497509295939492505050565b600080600080600060a08688031215613fc857600080fd5b613fd186613626565b9450613fdf60208701613626565b93506040860135925060608601359150608086013567ffffffffffffffff81111561400957600080fd5b613a2b88828901613808565b6000806000806080858703121561402b57600080fd5b61403485613626565b935061404260208601613626565b925061405060408601613626565b915061405e60608601613626565b905092959194509250565b60006020828403121561407b57600080fd5b5051919050565b600181811c9082168061409657607f821691505b602082108114156140d0577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561416657614166614105565b5060010190565b6000825161417f8184602087016136db565b9190910192915050565b600080835481600182811c9150808316806141a557607f831692505b60208084108214156141de577f4e487b710000000000000000000000000000000000000000000000000000000086526022600452602486fd5b8180156141f257600181146142215761424e565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0086168952848901965061424e565b60008a81526020902060005b868110156142465781548b82015290850190830161422d565b505084890196505b509498975050505050505050565b6000835161426e8184602088016136db565b8351908301906142828183602088016136db565b01949350505050565b6000821982111561429e5761429e614105565b500190565b6040815260006142b66040830185613b03565b828103602084015261131a8185613b03565b6000828210156142da576142da614105565b500390565b87815260e0602082015260006142f860e083018961370b565b828103604084015261430a818961370b565b9150508560608301528460808301528360a083015260ff831660c083015298975050505050505050565b600073ffffffffffffffffffffffffffffffffffffffff808816835280871660208401525084604083015283606083015260a0608083015261437960a083018461370b565b979650505050505050565b60006020828403121561439657600080fd5b81516132c581613674565b600060033d11156116245760046000803e5060005160e01c90565b600060443d10156143ca5790565b6040517ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc803d016004833e81513d67ffffffffffffffff816024840111818411171561441857505050505090565b82850191508151818111156144305750505050505090565b843d870101602082850101111561444a5750505050505090565b614459602082860101876137bd565b509095945050505050565b600073ffffffffffffffffffffffffffffffffffffffff808816835280871660208401525060a0604083015261449d60a0830186613b03565b82810360608401526144af8186613b03565b905082810360808401526144c3818561370b565b98975050505050505050565b600082614505577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b50049056fe546f6b656e206d696e746564207468726f75676820766f74696e672070726f63657373a2646970667358221220744dcae2f1ff9752c0c586592936a3c77f53b7c1deee9be37a4a6cd7699a1ef264736f6c634300080c0033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Txn Hash Block Value Eth2 PubKey Valid
View All Deposits
[ Download: CSV Export  ]
[ 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.