Contract 0x48856571cf9e625251542266e147c36d08645a65

 

Contract Overview

Balance:
0 MATIC

MATIC Value:
$0.00

Token:
 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xcefc379c0769cb48e2d0b6d6567f23503d7da100a292991682764950b244fc17Resolve Match Wi...338521722022-10-02 21:15:413 hrs 23 mins ago0xb24ca282a7bc039bcb987448b9109a26a593ed72 IN  0x48856571cf9e625251542266e147c36d08645a650 MATIC0.006907392743 31.522038357
0x1552d77de5a2ab5258f1cc258238ca6faeb065b543e24689ecbd17e818508d23Initialize Match...338521562022-10-02 21:15:053 hrs 23 mins ago0xb24ca282a7bc039bcb987448b9109a26a593ed72 IN  0x48856571cf9e625251542266e147c36d08645a650 MATIC0.021839311253 30.062979045
0x42bbda806666f3e4b2ab96ae7edc65fd1a9cd80afbb9974ef423b9dd599f439dCreate Match And...338521382022-10-02 21:14:293 hrs 24 mins ago0xb24ca282a7bc039bcb987448b9109a26a593ed72 IN  0x48856571cf9e625251542266e147c36d08645a650 MATIC0.026871150733 31.522038362
0x28342c7d1584f5f0c48a1b8a5cf75fc96acbf6a810085f3a51d035be04deb057Resolve Match338521282022-10-02 21:14:093 hrs 24 mins ago0xb24ca282a7bc039bcb987448b9109a26a593ed72 IN  0x48856571cf9e625251542266e147c36d08645a650 MATIC0.005711394821 30.062979045
0x73ecaa12a97589928f5ed610eb3037473566a94eef8c241b883f995ed7607922Initialize Match...338521172022-10-02 21:13:473 hrs 25 mins ago0xb24ca282a7bc039bcb987448b9109a26a593ed72 IN  0x48856571cf9e625251542266e147c36d08645a650 MATIC0.02251834376 30.062979045
0x881a7c05b9919c5606c1e5fc639886bc473d20bcc0725d634d7ee7d360304d66Create Match And...338520962022-10-02 21:13:053 hrs 25 mins ago0xb24ca282a7bc039bcb987448b9109a26a593ed72 IN  0x48856571cf9e625251542266e147c36d08645a650 MATIC0.027578915055 31.522038355
0x778e3db316fb4573d19f7f1600688a9d4be3c62325cad02cc18adf5b13c8bf41Resolve Match338520872022-10-02 21:12:433 hrs 26 mins ago0xb24ca282a7bc039bcb987448b9109a26a593ed72 IN  0x48856571cf9e625251542266e147c36d08645a650 MATIC0.006406871779 30.062979045
0x7d96f61d7e64cba4fbfbc58feec8609820e305e45cc6f05e698828d50ece8adeInitialize Match...338520732022-10-02 21:12:153 hrs 26 mins ago0xb24ca282a7bc039bcb987448b9109a26a593ed72 IN  0x48856571cf9e625251542266e147c36d08645a650 MATIC0.023842607094 31.522037358
0x7377a23e8fef99bcd047095c3fd7a7e05457a7f972756838d67619d26cb2254dCreate Match And...338520532022-10-02 21:11:353 hrs 27 mins ago0xb24ca282a7bc039bcb987448b9109a26a593ed72 IN  0x48856571cf9e625251542266e147c36d08645a650 MATIC0.029002387207 30.062979045
0x13eb9ddb8a16e66ddd71b428ab28c444665ae6379e58e8ab447cceaea64494f3Resolve Match338520382022-10-02 21:11:053 hrs 27 mins ago0xb24ca282a7bc039bcb987448b9109a26a593ed72 IN  0x48856571cf9e625251542266e147c36d08645a650 MATIC0.008142046803 30.062979045
0xfd6fb4fc36484192d9d2ef0ea3cba140073f3974f50041ef0668b7d91969f813Initialize Match...338520282022-10-02 21:10:413 hrs 28 mins ago0xb24ca282a7bc039bcb987448b9109a26a593ed72 IN  0x48856571cf9e625251542266e147c36d08645a650 MATIC0.024853639099 31.67981571
0xd45cb5bd279efbfb132bca03b787bfc9840880c5558b4057ccc39b32bd3ee88cCreate Match And...338520102022-10-02 21:10:053 hrs 28 mins ago0xb24ca282a7bc039bcb987448b9109a26a593ed72 IN  0x48856571cf9e625251542266e147c36d08645a650 MATIC0.032377407549 30.062979045
0xb9e677a50b841f744b5a7e5f688e9d6be087c6e8e0fdeea7378fb1f151146d20Resolve Match338520002022-10-02 21:09:453 hrs 29 mins ago0xb24ca282a7bc039bcb987448b9109a26a593ed72 IN  0x48856571cf9e625251542266e147c36d08645a650 MATIC0.008559569135 31.679814708
0x369c8cab4f49d3f7dd5a57aac253877ffb79cd1ac6655570942d450c1ed96491Initialize Match...338519892022-10-02 21:09:233 hrs 29 mins ago0xb24ca282a7bc039bcb987448b9109a26a593ed72 IN  0x48856571cf9e625251542266e147c36d08645a650 MATIC0.025756671431 31.679814708
0x69e612f775d6290b85f150c9c150d94f55558b3812774d9ef3739592c8d82cb5Create Match And...338519722022-10-02 21:08:493 hrs 30 mins ago0xb24ca282a7bc039bcb987448b9109a26a593ed72 IN  0x48856571cf9e625251542266e147c36d08645a650 MATIC0.035752427892 30.062979045
0x446095c0620a8ae8af4f18bd35375c8fe668e59d1a67a286634f29549336f39bResolve Match338519612022-10-02 21:08:233 hrs 30 mins ago0xb24ca282a7bc039bcb987448b9109a26a593ed72 IN  0x48856571cf9e625251542266e147c36d08645a650 MATIC0.00906014213 31.57350004
0x7a9d0344076c6fd2f00f27355f10756f7fc35325f9f08d6b1962df8687b2f532Initialize Match...338519522022-10-02 21:08:053 hrs 30 mins ago0xb24ca282a7bc039bcb987448b9109a26a593ed72 IN  0x48856571cf9e625251542266e147c36d08645a650 MATIC0.026234957934 31.573500042
0xff839f906db115d9967163ab3f1023374661fba0cbfe1b6026817903f0aa48b1Create Match And...338519332022-10-02 21:07:273 hrs 31 mins ago0xb24ca282a7bc039bcb987448b9109a26a593ed72 IN  0x48856571cf9e625251542266e147c36d08645a650 MATIC0.037777440097 30.062979045
0x204a1a4caf9177e173ab5d13585b4948802fa7e212c1261b8b2c0972398f8217Resolve Match338519102022-10-02 21:06:413 hrs 32 mins ago0xb24ca282a7bc039bcb987448b9109a26a593ed72 IN  0x48856571cf9e625251542266e147c36d08645a650 MATIC0.008973107796 30.062979045
0x851159bce10f5aa4b62448d371ef73fb42c102a35ba41b2556b27cdfd01033baInitialize Match...338518912022-10-02 21:05:593 hrs 32 mins ago0xb24ca282a7bc039bcb987448b9109a26a593ed72 IN  0x48856571cf9e625251542266e147c36d08645a650 MATIC0.025834560916 30.062979045
0xc0e9e6b500dbb6b642d39211e1e82eba3486a26ce4c2a4bca7a84d53e59fc826Create Match And...338518722022-10-02 21:05:213 hrs 33 mins ago0xb24ca282a7bc039bcb987448b9109a26a593ed72 IN  0x48856571cf9e625251542266e147c36d08645a650 MATIC0.040346996001 31.000000001
0x23ab971edd6da78dd1864671bdd91b4eedce133223a3325c049b3ee4a64eb3a7Resolve Match338518472022-10-02 21:04:313 hrs 34 mins ago0xb24ca282a7bc039bcb987448b9109a26a593ed72 IN  0x48856571cf9e625251542266e147c36d08645a650 MATIC0.010192281848 30.062979045
0x2efc4fe4c7948ec1037d818f723cfe315d917c7902ec3b70e605c9725fafa395Initialize Match...338518262022-10-02 21:03:453 hrs 35 mins ago0xb24ca282a7bc039bcb987448b9109a26a593ed72 IN  0x48856571cf9e625251542266e147c36d08645a650 MATIC0.026177238433 30.642062756
0x740cd3de0f2de1af9be81bd87ee98ce9e2ebb0537f458db2fad8d21921842dd1Create Match And...338517992022-10-02 21:02:513 hrs 36 mins ago0xb24ca282a7bc039bcb987448b9109a26a593ed72 IN  0x48856571cf9e625251542266e147c36d08645a650 MATIC0.040477456371 30.062979045
0x36a062868e1d34d89351e9627816126c34298de5ace3f243a68ea77fbb7c3726Resolve Match338517892022-10-02 21:02:313 hrs 36 mins ago0xb24ca282a7bc039bcb987448b9109a26a593ed72 IN  0x48856571cf9e625251542266e147c36d08645a650 MATIC0.009664856944 30.062979045
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
NineWorldsMinigame

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at polygonscan.com on 2022-09-12
*/

// File: @chainlink/contracts/src/v0.8/interfaces/LinkTokenInterface.sol

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

interface LinkTokenInterface {
    function allowance(address owner, address spender)
        external
        view
        returns (uint256 remaining);

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

    function balanceOf(address owner) external view returns (uint256 balance);

    function decimals() external view returns (uint8 decimalPlaces);

    function decreaseApproval(address spender, uint256 addedValue)
        external
        returns (bool success);

    function increaseApproval(address spender, uint256 subtractedValue)
        external;

    function name() external view returns (string memory tokenName);

    function symbol() external view returns (string memory tokenSymbol);

    function totalSupply() external view returns (uint256 totalTokensIssued);

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

    function transferAndCall(
        address to,
        uint256 value,
        bytes calldata data
    ) external returns (bool success);

    function transferFrom(
        address from,
        address to,
        uint256 value
    ) external returns (bool success);
}

// File: @chainlink/contracts/src/v0.8/VRFRequestIDBase.sol

pragma solidity ^0.8.0;

contract VRFRequestIDBase {
    /**
     * @notice returns the seed which is actually input to the VRF coordinator
     *
     * @dev To prevent repetition of VRF output due to repetition of the
     * @dev user-supplied seed, that seed is combined in a hash with the
     * @dev user-specific nonce, and the address of the consuming contract. The
     * @dev risk of repetition is mostly mitigated by inclusion of a blockhash in
     * @dev the final seed, but the nonce does protect against repetition in
     * @dev requests which are included in a single block.
     *
     * @param _userSeed VRF seed input provided by user
     * @param _requester Address of the requesting contract
     * @param _nonce User-specific nonce at the time of the request
     */
    function makeVRFInputSeed(
        bytes32 _keyHash,
        uint256 _userSeed,
        address _requester,
        uint256 _nonce
    ) internal pure returns (uint256) {
        return
            uint256(
                keccak256(abi.encode(_keyHash, _userSeed, _requester, _nonce))
            );
    }

    /**
     * @notice Returns the id for this request
     * @param _keyHash The serviceAgreement ID to be used for this request
     * @param _vRFInputSeed The seed to be passed directly to the VRF
     * @return The id for this request
     *
     * @dev Note that _vRFInputSeed is not the seed passed by the consuming
     * @dev contract, but the one generated by makeVRFInputSeed
     */
    function makeRequestId(bytes32 _keyHash, uint256 _vRFInputSeed)
        internal
        pure
        returns (bytes32)
    {
        return keccak256(abi.encodePacked(_keyHash, _vRFInputSeed));
    }
}

// File: @chainlink/contracts/src/v0.8/VRFConsumerBase.sol

pragma solidity ^0.8.0;

/** ****************************************************************************
 * @notice Interface for contracts using VRF randomness
 * *****************************************************************************
 * @dev PURPOSE
 *
 * @dev Reggie the Random Oracle (not his real job) wants to provide randomness
 * @dev to Vera the verifier in such a way that Vera can be sure he's not
 * @dev making his output up to suit himself. Reggie provides Vera a public key
 * @dev to which he knows the secret key. Each time Vera provides a seed to
 * @dev Reggie, he gives back a value which is computed completely
 * @dev deterministically from the seed and the secret key.
 *
 * @dev Reggie provides a proof by which Vera can verify that the output was
 * @dev correctly computed once Reggie tells it to her, but without that proof,
 * @dev the output is indistinguishable to her from a uniform random sample
 * @dev from the output space.
 *
 * @dev The purpose of this contract is to make it easy for unrelated contracts
 * @dev to talk to Vera the verifier about the work Reggie is doing, to provide
 * @dev simple access to a verifiable source of randomness.
 * *****************************************************************************
 * @dev USAGE
 *
 * @dev Calling contracts must inherit from VRFConsumerBase, and can
 * @dev initialize VRFConsumerBase's attributes in their constructor as
 * @dev shown:
 *
 * @dev   contract VRFConsumer {
 * @dev     constuctor(<other arguments>, address _vrfCoordinator, address _link)
 * @dev       VRFConsumerBase(_vrfCoordinator, _link) public {
 * @dev         <initialization with other arguments goes here>
 * @dev       }
 * @dev   }
 *
 * @dev The oracle will have given you an ID for the VRF keypair they have
 * @dev committed to (let's call it keyHash), and have told you the minimum LINK
 * @dev price for VRF service. Make sure your contract has sufficient LINK, and
 * @dev call requestRandomness(keyHash, fee, seed), where seed is the input you
 * @dev want to generate randomness from.
 *
 * @dev Once the VRFCoordinator has received and validated the oracle's response
 * @dev to your request, it will call your contract's fulfillRandomness method.
 *
 * @dev The randomness argument to fulfillRandomness is the actual random value
 * @dev generated from your seed.
 *
 * @dev The requestId argument is generated from the keyHash and the seed by
 * @dev makeRequestId(keyHash, seed). If your contract could have concurrent
 * @dev requests open, you can use the requestId to track which seed is
 * @dev associated with which randomness. See VRFRequestIDBase.sol for more
 * @dev details. (See "SECURITY CONSIDERATIONS" for principles to keep in mind,
 * @dev if your contract could have multiple requests in flight simultaneously.)
 *
 * @dev Colliding `requestId`s are cryptographically impossible as long as seeds
 * @dev differ. (Which is critical to making unpredictable randomness! See the
 * @dev next section.)
 *
 * *****************************************************************************
 * @dev SECURITY CONSIDERATIONS
 *
 * @dev A method with the ability to call your fulfillRandomness method directly
 * @dev could spoof a VRF response with any random value, so it's critical that
 * @dev it cannot be directly called by anything other than this base contract
 * @dev (specifically, by the VRFConsumerBase.rawFulfillRandomness method).
 *
 * @dev For your users to trust that your contract's random behavior is free
 * @dev from malicious interference, it's best if you can write it so that all
 * @dev behaviors implied by a VRF response are executed *during* your
 * @dev fulfillRandomness method. If your contract must store the response (or
 * @dev anything derived from it) and use it later, you must ensure that any
 * @dev user-significant behavior which depends on that stored value cannot be
 * @dev manipulated by a subsequent VRF request.
 *
 * @dev Similarly, both miners and the VRF oracle itself have some influence
 * @dev over the order in which VRF responses appear on the blockchain, so if
 * @dev your contract could have multiple VRF requests in flight simultaneously,
 * @dev you must ensure that the order in which the VRF responses arrive cannot
 * @dev be used to manipulate your contract's user-significant behavior.
 *
 * @dev Since the ultimate input to the VRF is mixed with the block hash of the
 * @dev block in which the request is made, user-provided seeds have no impact
 * @dev on its economic security properties. They are only included for API
 * @dev compatability with previous versions of this contract.
 *
 * @dev Since the block hash of the block which contains the requestRandomness
 * @dev call is mixed into the input to the VRF *last*, a sufficiently powerful
 * @dev miner could, in principle, fork the blockchain to evict the block
 * @dev containing the request, forcing the request to be included in a
 * @dev different block with a different hash, and therefore a different input
 * @dev to the VRF. However, such an attack would incur a substantial economic
 * @dev cost. This cost scales with the number of blocks the VRF oracle waits
 * @dev until it calls responds to a request.
 */
abstract contract VRFConsumerBase is VRFRequestIDBase {
    /**
     * @notice fulfillRandomness handles the VRF response. Your contract must
     * @notice implement it. See "SECURITY CONSIDERATIONS" above for important
     * @notice principles to keep in mind when implementing your fulfillRandomness
     * @notice method.
     *
     * @dev VRFConsumerBase expects its subcontracts to have a method with this
     * @dev signature, and will call it once it has verified the proof
     * @dev associated with the randomness. (It is triggered via a call to
     * @dev rawFulfillRandomness, below.)
     *
     * @param requestId The Id initially returned by requestRandomness
     * @param randomness the VRF output
     */
    function fulfillRandomness(bytes32 requestId, uint256 randomness)
        internal
        virtual;

    /**
     * @dev In order to keep backwards compatibility we have kept the user
     * seed field around. We remove the use of it because given that the blockhash
     * enters later, it overrides whatever randomness the used seed provides.
     * Given that it adds no security, and can easily lead to misunderstandings,
     * we have removed it from usage and can now provide a simpler API.
     */
    uint256 private constant USER_SEED_PLACEHOLDER = 0;

    /**
     * @notice requestRandomness initiates a request for VRF output given _seed
     *
     * @dev The fulfillRandomness method receives the output, once it's provided
     * @dev by the Oracle, and verified by the vrfCoordinator.
     *
     * @dev The _keyHash must already be registered with the VRFCoordinator, and
     * @dev the _fee must exceed the fee specified during registration of the
     * @dev _keyHash.
     *
     * @dev The _seed parameter is vestigial, and is kept only for API
     * @dev compatibility with older versions. It can't *hurt* to mix in some of
     * @dev your own randomness, here, but it's not necessary because the VRF
     * @dev oracle will mix the hash of the block containing your request into the
     * @dev VRF seed it ultimately uses.
     *
     * @param _keyHash ID of public key against which randomness is generated
     * @param _fee The amount of LINK to send with the request
     *
     * @return requestId unique ID for this request
     *
     * @dev The returned requestId can be used to distinguish responses to
     * @dev concurrent requests. It is passed as the first argument to
     * @dev fulfillRandomness.
     */
    function requestRandomness(bytes32 _keyHash, uint256 _fee)
        internal
        returns (bytes32 requestId)
    {
        LINK.transferAndCall(
            vrfCoordinator,
            _fee,
            abi.encode(_keyHash, USER_SEED_PLACEHOLDER)
        );
        // This is the seed passed to VRFCoordinator. The oracle will mix this with
        // the hash of the block containing this request to obtain the seed/input
        // which is finally passed to the VRF cryptographic machinery.
        uint256 vRFSeed = makeVRFInputSeed(
            _keyHash,
            USER_SEED_PLACEHOLDER,
            address(this),
            nonces[_keyHash]
        );
        // nonces[_keyHash] must stay in sync with
        // VRFCoordinator.nonces[_keyHash][this], which was incremented by the above
        // successful LINK.transferAndCall (in VRFCoordinator.randomnessRequest).
        // This provides protection against the user repeating their input seed,
        // which would result in a predictable/duplicate output, if multiple such
        // requests appeared in the same block.
        nonces[_keyHash] = nonces[_keyHash] + 1;
        return makeRequestId(_keyHash, vRFSeed);
    }

    LinkTokenInterface internal immutable LINK;
    address private immutable vrfCoordinator;

    // Nonces for each VRF key from which randomness has been requested.
    //
    // Must stay in sync with VRFCoordinator[_keyHash][this]
    mapping(bytes32 => uint256) /* keyHash */ /* nonce */
        private nonces;

    /**
     * @param _vrfCoordinator address of VRFCoordinator contract
     * @param _link address of LINK token contract
     *
     * @dev https://docs.chain.link/docs/link-token-contracts
     */
    constructor(address _vrfCoordinator, address _link) {
        vrfCoordinator = _vrfCoordinator;
        LINK = LinkTokenInterface(_link);
    }

    // rawFulfillRandomness is called by VRFCoordinator when it receives a valid VRF
    // proof. rawFulfillRandomness then calls fulfillRandomness, after validating
    // the origin of the call
    function rawFulfillRandomness(bytes32 requestId, uint256 randomness)
        external
    {
        require(
            msg.sender == vrfCoordinator,
            "Only VRFCoordinator can fulfill"
        );
        fulfillRandomness(requestId, randomness);
    }
}

// File: @openzeppelin/contracts/utils/Context.sol

// 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: @openzeppelin/contracts/access/Ownable.sol

// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(
        address indexed previousOwner,
        address indexed newOwner
    );

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(
            newOwner != address(0),
            "Ownable: new owner is the zero address"
        );
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

// File: @openzeppelin/contracts/utils/Counters.sol

// 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: contracts/interfaces/IVikings.sol

pragma solidity 0.8.7;

interface IVikings {
    function ownerOf(uint256 tokenId) external view returns (address owner);

    function isVikingLocked(uint256 vikingId)
        external
        view
        returns (bool vikingStatus);

    function mintByType(address _owner, uint256 _type) external;

    function lockToken(uint256 tokenId, bool status) external;

    function tokenStrength(uint256 tokenId)
        external
        view
        returns (uint256 strength);

    function balanceOf(address owner) external view returns (uint256 balance);

    function tokenOfOwnerByIndex(address owner, uint256 index)
        external
        view
        returns (uint256);

    function walletOfOwner(address _owner)
        external
        view
        returns (uint256[] memory);
}

// File: contracts/NineWorldsMinigame.sol

pragma solidity ^0.8.7;

contract NineWorldsMinigame is Ownable, VRFConsumerBase {
    using Counters for Counters.Counter;

    enum NftType {
        Sword,
        Axe,
        Shield
    }

    enum MatchResult {
        Empty,
        Tie,
        ComputerWin,
        PlayerWin
    }

    struct NftStatus {
        NftType nftType;
        uint256 totalPower;
        uint8 dailyMatchCounter;
        uint8 reRollCounter;
        uint256 dailyExpirationTimestamp; // Check exp
        uint256 points;
        uint256 currentMatchId;
    }

    struct Match {
        uint256 matchId;
        uint256 nftMatchCount;
        bool isRerrollEnabled;
        uint256[] validNftsForMatch;
        uint256 matchRandomSeed;
        uint256[] playerNfts;
        uint256[] computerNfts;
        mapping(uint256 => bool) repeatedPlayerRandomNumbers;
        mapping(uint256 => bool) repeatedComputerRandomNumbers;
        bool isMatchFinished;
        MatchResult matchResult;
    }

    uint256 public constant ONE_DAY_IN_SECONDS = 86400;

    uint256 public nftPointForPlayerWinner;
    uint256 public nftPointForComputerWinner;
    uint256 public totalNfts;
    uint256 public maxMatchesPerDay;
    uint256 public maxNftMatchCount;
    uint256 public nftPointForPlayerTie;
    uint256 public nftPointForComputerTie;
    uint256 public maxValidId;

    mapping(uint256 => Match) public matchesById; // Historical Matches
    mapping(uint256 => NftStatus) public nftStatusById;
    mapping(uint256 => Match) public nftMatchesByNftId;
    mapping(address => uint256) public usersLastMatchId;

    mapping(bytes32 => uint256) public matchesByRequestId;

    Counters.Counter private lastMatchId;

    IVikings public vikingsContract;

    bytes32 internal keyHash =
        0xf86195cf7690c55907b2b611ebb7343a6f649bff128701cc542f0569e2c549da;
    uint256 internal feeLink = 1e14; // 0.0001 LINK POLYGON MATIC

    event RequestValues(bytes32 requestId);
    event RandomnessEvent(bytes32 requestId, uint256 matchId);
    event MatchCreated(uint256 matchId, address user);
    event MatchInitialized(uint256 matchId, address initializerUser);
    event MatchResolved(uint256 matchId);

    constructor(
        IVikings _vikingsContract,
        uint256 _maxMatchesPerDay,
        uint256 _maxNftMatchCount,
        uint256 _nftPointForPlayerWinner,
        uint256 _nftPointForComputerWinner,
        uint256 _nftPointForPlayerTie,
        uint256 _nftPointForComputerTie,
        uint256 _maxValidId
    )
        VRFConsumerBase(
            0x3d2341ADb2D31f1c5530cDC622016af293177AE0,
            0xb0897686c545045aFc77CF20eC7A532E3120E0F1
        )
    {
        vikingsContract = _vikingsContract;
        maxMatchesPerDay = _maxMatchesPerDay;
        maxNftMatchCount = _maxNftMatchCount;
        nftPointForPlayerWinner = _nftPointForPlayerWinner;
        nftPointForComputerWinner = _nftPointForComputerWinner;
        nftPointForPlayerTie = _nftPointForPlayerTie;
        nftPointForComputerTie = _nftPointForComputerTie;
        maxValidId = _maxValidId;
    }

    function setNftTypeAndPower(
        uint256[] memory _nftIds,
        NftType[] memory _nftTypes,
        uint256[] memory _powers
    ) external onlyOwner {
        require(
            _nftIds.length == _nftTypes.length,
            "NineWorldsMinigame. NftIds length missmatch"
        );
        require(
            _nftTypes.length == _powers.length,
            "NineWorldsMinigame. Powers length missmatch"
        );
        for (uint8 i = 0; i < _nftIds.length; i++) {
            NftStatus storage _nftStatus = nftStatusById[_nftIds[i]];
            _nftStatus.nftType = _nftTypes[i];
            _nftStatus.totalPower = _powers[i];
            _nftStatus.dailyExpirationTimestamp = block.timestamp;
            totalNfts++;
        }
    }

    function createMatchAndRequestRandom(uint256 _nftMatchCount) external {
        uint256[] memory userNfts = vikingsContract.walletOfOwner(_msgSender());
        require(
            usersLastMatchId[_msgSender()] == 0,
            "NineWorldsMinigame: Pending match"
        );
        require(
            _nftMatchCount <= maxNftMatchCount,
            "NineWorldsMinigame: Match nft amount exceed max"
        );
        require(
            userNfts.length >= _nftMatchCount,
            "NineWorldsMinigame: Match nft amount exceed user nft amount"
        );

        lastMatchId.increment();
        uint256 matchId = lastMatchId.current();

        matchesById[matchId].matchId = matchId;
        matchesById[matchId].nftMatchCount = _nftMatchCount;
        for (uint8 i = 0; i < userNfts.length; i++) {
            uint256 nftId = userNfts[i];
            if (nftId > maxValidId) {
                continue;
            }
            if (nftStatusById[nftId].currentMatchId != 0) {
                continue;
            }
            if (
                nftStatusById[nftId].dailyExpirationTimestamp +
                    ONE_DAY_IN_SECONDS <
                block.timestamp
            ) {
                nftStatusById[nftId].dailyExpirationTimestamp = block.timestamp;
                nftStatusById[nftId].dailyMatchCounter = 0;
            }
            if (nftStatusById[nftId].dailyMatchCounter < maxMatchesPerDay) {
                matchesById[matchId].validNftsForMatch.push(nftId);
            }
        }

        require(
            matchesById[matchId].validNftsForMatch.length >= _nftMatchCount,
            "NineWorldsMinigame: Match nft amount exceed user valid nfts to play"
        );

        usersLastMatchId[_msgSender()] = matchId;
        emit MatchCreated(matchId, _msgSender());
        requestRandomValue(matchId);
    }

    function initializeMatchFor(address user) public {
        uint256 matchId = usersLastMatchId[user];
        if (!_isOwnerOf(user, matchesById[matchId].validNftsForMatch)) {
            matchesById[matchId].isMatchFinished = true;
            usersLastMatchId[user] = 0;
            return;
        }
        require(
            matchId != 0,
            "NineWorldsMinigame: No pending match to initialize"
        );
        require(
            matchesById[matchId].playerNfts.length == 0,
            "NineWorldsMinigame: Match is already initialized"
        );
        require(
            matchesById[matchId].matchRandomSeed > 0,
            "NineWorldsMinigame: RandomNumber not available yet"
        );
        uint256 randomness = matchesById[matchId].matchRandomSeed;
        uint256 nftMatchCount = matchesById[matchId].nftMatchCount;

        uint256[] memory expandedValues = _expandRandomAux(
            randomness,
            nftMatchCount * 2
        );

        uint256[] memory validPlayerNft = matchesById[matchId]
            .validNftsForMatch;
        for (uint8 i = 0; i < nftMatchCount; i++) {
            uint256 randomPlayerNftIndex = _generateNonRepeatedRandomIndex(
                0,
                validPlayerNft.length,
                expandedValues[i],
                matchesById[matchId].repeatedPlayerRandomNumbers
            );
            uint256 randomPlayerNft = validPlayerNft[randomPlayerNftIndex];
            matchesById[matchId].playerNfts.push(randomPlayerNft);
            nftStatusById[randomPlayerNft].dailyMatchCounter++;
            nftStatusById[randomPlayerNft].currentMatchId = matchId;

            uint256 randomComputerNftIndex = _generateNonRepeatedRandomIndex(
                1,
                totalNfts,
                expandedValues[i + nftMatchCount],
                matchesById[matchId].repeatedComputerRandomNumbers
            );
            matchesById[matchId].computerNfts.push(randomComputerNftIndex);
        }
        emit MatchInitialized(matchId, _msgSender());
    }

    function resolveMatch() public {
        uint256 matchId = usersLastMatchId[_msgSender()];
        if (_isOwnerOf(_msgSender(), matchesById[matchId].validNftsForMatch)) {
            require(
                matchesById[matchId].playerNfts.length > 0,
                "NineWorldsMinigame: Match is not created or initialized"
            );
            require(
                !matchesById[matchId].isMatchFinished,
                "NineWorldsMinigame: Match is finished"
            );
            uint256[] memory playerNfts = matchesById[matchId].playerNfts;
            uint256[] memory computerNfts = matchesById[matchId].computerNfts;
            uint256 playerPoints;
            uint256 computerPoints;
            for (uint8 i = 0; i < matchesById[matchId].nftMatchCount; i++) {
                NftType playerType = nftStatusById[playerNfts[i]].nftType;
                NftType computerType = nftStatusById[computerNfts[i]].nftType;

                if (
                    playerType == NftType.Axe && computerType == NftType.Sword
                ) {
                    computerPoints++;
                    //AIWinner;
                } else if (
                    playerType == NftType.Shield &&
                    computerType == NftType.Sword
                ) {
                    playerPoints++;
                    //PlayerWinner;
                } else if (
                    playerType == NftType.Shield && computerType == NftType.Axe
                ) {
                    computerPoints++;
                    //AIWinner;
                } else if (
                    playerType == NftType.Sword && computerType == NftType.Axe
                ) {
                    playerPoints++;
                    //PlayerWinner;
                } else if (
                    playerType == NftType.Sword &&
                    computerType == NftType.Shield
                ) {
                    computerPoints++;
                    //AIWinner;
                } else if (
                    playerType == NftType.Axe && computerType == NftType.Shield
                ) {
                    playerPoints++;
                    //PlayerWinner;
                } else {
                    //Tie;
                }
                nftStatusById[playerNfts[i]].currentMatchId = 0;
            }

            if (playerPoints > computerPoints) {
                for (uint8 i = 0; i < playerNfts.length; i++) {
                    nftStatusById[playerNfts[i]]
                        .points += nftPointForPlayerWinner;
                }
                matchesById[matchId].matchResult = MatchResult.PlayerWin; // Player win
            } else if (computerPoints > playerPoints) {
                for (uint8 i = 0; i < computerNfts.length; i++) {
                    nftStatusById[computerNfts[i]]
                        .points += nftPointForComputerWinner;
                }
                matchesById[matchId].matchResult = MatchResult.ComputerWin; // Computer Win
            } else {
                for (uint8 i = 0; i < playerNfts.length; i++) {
                    nftStatusById[playerNfts[i]].points += nftPointForPlayerTie;
                    nftStatusById[computerNfts[i]]
                        .points += nftPointForComputerTie;
                }
                matchesById[matchId].matchResult = MatchResult.Tie; // Tie
            }
            matchesById[matchId].isMatchFinished = true;
        }
        matchesById[matchId].isMatchFinished = true;
        usersLastMatchId[_msgSender()] = 0;
        emit MatchResolved(matchId);
    }

    function resolveMatchWithReorder(uint256 _indexA, uint256 _indexB)
        external
    {
        uint256 matchId = usersLastMatchId[_msgSender()];
        uint256 nftMatchCount = matchesById[matchId].nftMatchCount;
        require(
            _indexA < nftMatchCount &&
                _indexB < nftMatchCount &&
                _indexA != _indexB,
            "NineWorldsMinigame: Invalid indexes, either both equal or gte matchCount"
        );
        uint256 playerPower;
        uint256 computerPower;
        (playerPower, computerPower) = _getPlayerAndComputerPower(matchId);
        require(
            playerPower > computerPower,
            "NineWorldsMinigame: Reorder not available: player power is less than computer power"
        );
        uint256[] storage playerNfts = matchesById[matchId].playerNfts;
        uint256 nftAux = playerNfts[_indexB];
        playerNfts[_indexB] = playerNfts[_indexA];
        playerNfts[_indexA] = nftAux;

        resolveMatch();
    }

    function getValidNft(uint256 _matchId, uint8 _index)
        external
        view
        returns (uint256)
    {
        return matchesById[_matchId].validNftsForMatch[_index];
    }

    function getValidPlayerNft(uint256 _matchId, uint8 _index)
        external
        view
        returns (uint256)
    {
        return matchesById[_matchId].playerNfts[_index];
    }

    function getValidComputerNft(uint256 _matchId, uint8 _index)
        external
        view
        returns (uint256)
    {
        return matchesById[_matchId].computerNfts[_index];
    }

    function pointBalanceOf(address user) external view returns (uint256) {
        uint256[] memory userNfts = vikingsContract.walletOfOwner(user);
        uint256 totalPoints;
        for (uint8 i = 0; i < userNfts.length; i++) {
            totalPoints += nftStatusById[userNfts[i]].points;
        }
        return totalPoints;
    }

    function setNftPointForPlayerWinner(uint256 _points) external onlyOwner {
        nftPointForPlayerWinner = _points;
    }

    function setNftPointForComputerWinner(uint256 _points) external onlyOwner {
        nftPointForComputerWinner = _points;
    }

    function setMaxMatchesPerDay(uint256 _maxMatches) external onlyOwner {
        maxMatchesPerDay = _maxMatches;
    }

    function setMaxNftMatchCount(uint256 _maxNftMatchCount) external onlyOwner {
        maxNftMatchCount = _maxNftMatchCount;
    }

    function setNftPointForPlayerTie(uint256 _nftPointForPlayerTie)
        external
        onlyOwner
    {
        nftPointForPlayerTie = _nftPointForPlayerTie;
    }

    function setNftPointForComputerTie(uint256 _nftPointForComputerTie)
        external
        onlyOwner
    {
        nftPointForComputerTie = _nftPointForComputerTie;
    }

    function setMaxValidId(uint256 _maxValidId) external onlyOwner {
        maxValidId = _maxValidId;
    }

    function _getPlayerAndComputerPower(uint256 _matchId)
        internal
        view
        returns (uint256, uint256)
    {
        Match storage actualMatch = matchesById[_matchId];
        uint256 playerPower = 0;
        uint256 computerPower = 0;
        for (uint256 i = 0; i < actualMatch.nftMatchCount; i++) {
            playerPower += nftStatusById[actualMatch.playerNfts[i]].totalPower;
            computerPower += nftStatusById[actualMatch.computerNfts[i]]
                .totalPower;
        }
        return (playerPower, computerPower);
    }

    function _isOwnerOf(address _owner, uint256[] memory _ids)
        internal
        view
        returns (bool)
    {
        for (uint8 i = 0; i < _ids.length; i++) {
            if (vikingsContract.ownerOf(_ids[i]) != _owner) {
                return false;
            }
        }
        return true;
    }

    function _expandRandomAux(uint256 randomValue, uint256 n)
        internal
        pure
        returns (uint256[] memory expandedValues)
    {
        expandedValues = new uint256[](n);
        for (uint256 i = 0; i < n; i++) {
            expandedValues[i] = uint256(keccak256(abi.encode(randomValue, i)));
        }
    }

    function requestRandomValue(uint256 _matchId)
        internal
        returns (bytes32 requestId)
    {
        require(
            LINK.balanceOf(address(this)) >= feeLink,
            "NineWorldsMinigame: Not enough LINK, fill contract with LINK"
        );
        requestId = requestRandomness(keyHash, feeLink);
        matchesByRequestId[requestId] = _matchId;
        emit RequestValues(requestId);
    }

    function _generateNonRepeatedRandomIndex(
        uint256 _minNumber,
        uint256 _maxNumber,
        uint256 _randomness,
        mapping(uint256 => bool) storage _repeatedNumbers
    ) internal returns (uint256) {
        uint256 randomIndex = (_randomness % _maxNumber) + _minNumber;
        while (_repeatedNumbers[randomIndex] == true) {
            randomIndex = (randomIndex + 1) % _maxNumber;
        }
        _repeatedNumbers[randomIndex] = true;

        return randomIndex;
    }

    function fulfillRandomness(bytes32 requestId, uint256 randomness)
        internal
        override
    {
        uint256 matchId = matchesByRequestId[requestId];
        matchesById[matchId].matchRandomSeed = randomness;

        emit RandomnessEvent(requestId, matchId);
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract IVikings","name":"_vikingsContract","type":"address"},{"internalType":"uint256","name":"_maxMatchesPerDay","type":"uint256"},{"internalType":"uint256","name":"_maxNftMatchCount","type":"uint256"},{"internalType":"uint256","name":"_nftPointForPlayerWinner","type":"uint256"},{"internalType":"uint256","name":"_nftPointForComputerWinner","type":"uint256"},{"internalType":"uint256","name":"_nftPointForPlayerTie","type":"uint256"},{"internalType":"uint256","name":"_nftPointForComputerTie","type":"uint256"},{"internalType":"uint256","name":"_maxValidId","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"matchId","type":"uint256"},{"indexed":false,"internalType":"address","name":"user","type":"address"}],"name":"MatchCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"matchId","type":"uint256"},{"indexed":false,"internalType":"address","name":"initializerUser","type":"address"}],"name":"MatchInitialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"matchId","type":"uint256"}],"name":"MatchResolved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"requestId","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"matchId","type":"uint256"}],"name":"RandomnessEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"requestId","type":"bytes32"}],"name":"RequestValues","type":"event"},{"inputs":[],"name":"ONE_DAY_IN_SECONDS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_nftMatchCount","type":"uint256"}],"name":"createMatchAndRequestRandom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_matchId","type":"uint256"},{"internalType":"uint8","name":"_index","type":"uint8"}],"name":"getValidComputerNft","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_matchId","type":"uint256"},{"internalType":"uint8","name":"_index","type":"uint8"}],"name":"getValidNft","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_matchId","type":"uint256"},{"internalType":"uint8","name":"_index","type":"uint8"}],"name":"getValidPlayerNft","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"initializeMatchFor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"matchesById","outputs":[{"internalType":"uint256","name":"matchId","type":"uint256"},{"internalType":"uint256","name":"nftMatchCount","type":"uint256"},{"internalType":"bool","name":"isRerrollEnabled","type":"bool"},{"internalType":"uint256","name":"matchRandomSeed","type":"uint256"},{"internalType":"bool","name":"isMatchFinished","type":"bool"},{"internalType":"enum NineWorldsMinigame.MatchResult","name":"matchResult","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"matchesByRequestId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMatchesPerDay","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxNftMatchCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxValidId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"nftMatchesByNftId","outputs":[{"internalType":"uint256","name":"matchId","type":"uint256"},{"internalType":"uint256","name":"nftMatchCount","type":"uint256"},{"internalType":"bool","name":"isRerrollEnabled","type":"bool"},{"internalType":"uint256","name":"matchRandomSeed","type":"uint256"},{"internalType":"bool","name":"isMatchFinished","type":"bool"},{"internalType":"enum NineWorldsMinigame.MatchResult","name":"matchResult","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nftPointForComputerTie","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nftPointForComputerWinner","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nftPointForPlayerTie","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nftPointForPlayerWinner","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"nftStatusById","outputs":[{"internalType":"enum NineWorldsMinigame.NftType","name":"nftType","type":"uint8"},{"internalType":"uint256","name":"totalPower","type":"uint256"},{"internalType":"uint8","name":"dailyMatchCounter","type":"uint8"},{"internalType":"uint8","name":"reRollCounter","type":"uint8"},{"internalType":"uint256","name":"dailyExpirationTimestamp","type":"uint256"},{"internalType":"uint256","name":"points","type":"uint256"},{"internalType":"uint256","name":"currentMatchId","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"pointBalanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"requestId","type":"bytes32"},{"internalType":"uint256","name":"randomness","type":"uint256"}],"name":"rawFulfillRandomness","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"resolveMatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_indexA","type":"uint256"},{"internalType":"uint256","name":"_indexB","type":"uint256"}],"name":"resolveMatchWithReorder","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxMatches","type":"uint256"}],"name":"setMaxMatchesPerDay","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxNftMatchCount","type":"uint256"}],"name":"setMaxNftMatchCount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxValidId","type":"uint256"}],"name":"setMaxValidId","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_nftPointForComputerTie","type":"uint256"}],"name":"setNftPointForComputerTie","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_points","type":"uint256"}],"name":"setNftPointForComputerWinner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_nftPointForPlayerTie","type":"uint256"}],"name":"setNftPointForPlayerTie","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_points","type":"uint256"}],"name":"setNftPointForPlayerWinner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_nftIds","type":"uint256[]"},{"internalType":"enum NineWorldsMinigame.NftType[]","name":"_nftTypes","type":"uint8[]"},{"internalType":"uint256[]","name":"_powers","type":"uint256[]"}],"name":"setNftTypeAndPower","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalNfts","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"usersLastMatchId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vikingsContract","outputs":[{"internalType":"contract IVikings","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

60c06040527ff86195cf7690c55907b2b611ebb7343a6f649bff128701cc542f0569e2c549da601155655af3107a40006012553480156200003f57600080fd5b50604051620029ee380380620029ee833981016040819052620000629162000146565b733d2341adb2d31f1c5530cdc622016af293177ae073b0897686c545045afc77cf20ec7a532e3120e0f16200009733620000f6565b606091821b6001600160601b031990811660a052911b16608052601080546001600160a01b0319166001600160a01b039990991698909817909755600595909555600693909355600291909155600355600755600855600955620001be565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600080600080600080600080610100898b0312156200016457600080fd5b88516001600160a01b03811681146200017c57600080fd5b809850506020890151965060408901519550606089015194506080890151935060a0890151925060c0890151915060e089015190509295985092959890939650565b60805160601c60a05160601c6127f6620001f86000396000818161121f015261212a015260008181611c2201526120fb01526127f66000f3fe608060405234801561001057600080fd5b50600436106102115760003560e01c80638a5cc32011610125578063c1dee175116100ad578063ce5dd2391161007c578063ce5dd239146104b9578063d835c11e146104d9578063f16f792814610524578063f2fde38b1461052d578063f8017f5f1461054057600080fd5b8063c1dee1751461042d578063c33cc5e814610440578063c722693b1461049d578063cdb7f1c6146104a657600080fd5b8063990eb8cd116100f4578063990eb8cd146103e35780639f8436f0146103f6578063a93cbfb614610409578063b354eee01461041c578063bc03d6471461042557600080fd5b80638a5cc3201461038e5780638da5cb5b14610398578063938f1b3d146103bd57806394985ddd146103d057600080fd5b806342081e7d116101a857806361001fa41161017757806361001fa414610341578063631126221461034a5780636a8492461461036a5780636ed329c014610373578063715018a61461038657600080fd5b806342081e7d146102b9578063430a569b1461031c5780635046cf9714610325578063597686a71461032e57600080fd5b80631b6816cd116101e45780631b6816cd1461026d5780631daa13f0146102805780631fed670b14610293578063276650b1146102a657600080fd5b806303d35660146102165780630d4f9ddb1461023c57806314c701281461024557806314f9518814610258575b600080fd5b61022961022436600461253a565b610553565b6040519081526020015b60405180910390f35b61022960045481565b61022961025336600461253a565b61058d565b61026b6102663660046124e6565b6105b3565b005b61026b61027b3660046124e6565b6105c0565b61022961028e36600461253a565b6109be565b61026b6102a13660046123d4565b6109e4565b61026b6102b43660046124e6565b610b8d565b6103096102c73660046124e6565b600b6020526000908152604090208054600182015460028301546003840154600485015460059095015460ff9485169593948381169461010090940416929087565b60405161023397969594939291906125dc565b61022960055481565b61022960075481565b61026b61033c3660046124e6565b610b9a565b61022960025481565b6102296103583660046122fb565b600d6020526000908152604090205481565b61022960065481565b61026b6103813660046124ff565b610ba7565b61026b610dab565b6102296201518081565b6000546001600160a01b03165b6040516001600160a01b039091168152602001610233565b61026b6103cb3660046122fb565b610dbf565b61026b6103de3660046124ff565b611214565b6102296103f13660046122fb565b61129a565b61026b6104043660046124e6565b61138a565b61026b6104173660046124e6565b611397565b61022960095481565b61026b6113a4565b61026b61043b3660046124e6565b611b11565b61048b61044e3660046124e6565b600a60205260009081526040902080546001820154600283015460048401546009909401549293919260ff91821692918181169161010090041686565b60405161023396959493929190612624565b61022960085481565b6010546103a5906001600160a01b031681565b6102296104c73660046124e6565b600e6020526000908152604090205481565b61048b6104e73660046124e6565b600c60205260009081526040902080546001820154600283015460048401546009909401549293919260ff91821692918181169161010090041686565b61022960035481565b61026b61053b3660046122fb565b611b1e565b61026b61054e3660046124e6565b611b97565b6000828152600a60205260408120600501805460ff84169081106105795761057961277f565b906000526020600020015490505b92915050565b6000828152600a60205260408120600601805460ff84169081106105795761057961277f565b6105bb611ba4565b600955565b6010546000906001600160a01b031663438b6300336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160006040518083038186803b15801561061457600080fd5b505afa158015610628573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610650919081019061233c565b336000908152600d6020526040902054909150156106bf5760405162461bcd60e51b815260206004820152602160248201527f4e696e65576f726c64734d696e6967616d653a2050656e64696e67206d6174636044820152600d60fb1b60648201526084015b60405180910390fd5b6006548211156107295760405162461bcd60e51b815260206004820152602f60248201527f4e696e65576f726c64734d696e6967616d653a204d61746368206e667420616d60448201526e0deeadce840caf0c6cacac840dac2f608b1b60648201526084016106b6565b81815110156107a05760405162461bcd60e51b815260206004820152603b60248201527f4e696e65576f726c64734d696e6967616d653a204d61746368206e667420616d60448201527f6f756e74206578636565642075736572206e667420616d6f756e74000000000060648201526084016106b6565b6107ae600f80546001019055565b60006107b9600f5490565b6000818152600a602052604081208281556001018590559091505b82518160ff1610156108cd576000838260ff16815181106107f7576107f761277f565b6020026020010151905060095481111561081157506108bb565b6000818152600b60205260409020600501541561082e57506108bb565b6000818152600b602052604090206003015442906108509062015180906126bf565b1015610876576000818152600b60205260409020426003820155600201805460ff191690555b6005546000828152600b602052604090206002015460ff1610156108b9576000838152600a60209081526040822060030180546001810182559083529120018190555b505b806108c581612711565b9150506107d4565b506000818152600a60205260409020600301548311156109615760405162461bcd60e51b815260206004820152604360248201527f4e696e65576f726c64734d696e6967616d653a204d61746368206e667420616d60448201527f6f756e742065786365656420757365722076616c6964206e66747320746f20706064820152626c617960e81b608482015260a4016106b6565b336000818152600d602090815260409182902084905581518481529081019290925280517f18a47d8df22f178f89e665cc0fccf4ee175e91434c7b749c4a7607ffa4d33a679281900390910190a16109b881611bfe565b50505050565b6000828152600a60205260408120600301805460ff84169081106105795761057961277f565b6109ec611ba4565b8151835114610a515760405162461bcd60e51b815260206004820152602b60248201527f4e696e65576f726c64734d696e6967616d652e204e6674496473206c656e677460448201526a0d040dad2e6e6dac2e8c6d60ab1b60648201526084016106b6565b8051825114610ab65760405162461bcd60e51b815260206004820152602b60248201527f4e696e65576f726c64734d696e6967616d652e20506f77657273206c656e677460448201526a0d040dad2e6e6dac2e8c6d60ab1b60648201526084016106b6565b60005b83518160ff1610156109b8576000600b6000868460ff1681518110610ae057610ae061277f565b602002602001015181526020019081526020016000209050838260ff1681518110610b0d57610b0d61277f565b60209081029190910101518154829060ff19166001836002811115610b3457610b34612769565b0217905550828260ff1681518110610b4e57610b4e61277f565b6020908102919091010151600182015542600382015560048054906000610b74836126f6565b9190505550508080610b8590612711565b915050610ab9565b610b95611ba4565b600255565b610ba2611ba4565b600655565b336000908152600d6020908152604080832054808452600a909252909120600101548084108015610bd757508083105b8015610be35750828414155b610c665760405162461bcd60e51b815260206004820152604860248201527f4e696e65576f726c64734d696e6967616d653a20496e76616c696420696e646560448201527f7865732c2065697468657220626f746820657175616c206f7220677465206d616064820152671d18da10dbdd5b9d60c21b608482015260a4016106b6565b600080610c7284611d71565b9092509050808211610d085760405162461bcd60e51b815260206004820152605360248201527f4e696e65576f726c64734d696e6967616d653a2052656f72646572206e6f742060448201527f617661696c61626c653a20706c6179657220706f776572206973206c657373206064820152723a3430b71031b7b6b83aba32b9103837bbb2b960691b608482015260a4016106b6565b6000848152600a602052604081206005018054909190829088908110610d3057610d3061277f565b90600052602060002001549050818881548110610d4f57610d4f61277f565b9060005260206000200154828881548110610d6c57610d6c61277f565b906000526020600020018190555080828981548110610d8d57610d8d61277f565b600091825260209091200155610da16113a4565b5050505050505050565b610db3611ba4565b610dbd6000611e35565b565b6001600160a01b0381166000908152600d6020908152604080832054808452600a8352928190206003018054825181850281018501909352808352610e3c938693929190830182828015610e3257602002820191906000526020600020905b815481526020019060010190808311610e1e575b5050505050611e85565b610e76576000908152600a60209081526040808320600901805460ff191660011790556001600160a01b039093168252600d905290812055565b80610ede5760405162461bcd60e51b815260206004820152603260248201527f4e696e65576f726c64734d696e6967616d653a204e6f2070656e64696e67206d6044820152716174636820746f20696e697469616c697a6560701b60648201526084016106b6565b6000818152600a602052604090206005015415610f565760405162461bcd60e51b815260206004820152603060248201527f4e696e65576f726c64734d696e6967616d653a204d6174636820697320616c7260448201526f1958591e481a5b9a5d1a585b1a5e995960821b60648201526084016106b6565b6000818152600a6020526040902060040154610fcf5760405162461bcd60e51b815260206004820152603260248201527f4e696e65576f726c64734d696e6967616d653a2052616e646f6d4e756d626572604482015271081b9bdd08185d985a5b18589b19481e595d60721b60648201526084016106b6565b6000818152600a6020526040812060048101546001909101549091610ffe83610ff98460026126d7565b611f6d565b6000858152600a602090815260408083206003018054825181850281018501909352808352949550929390929183018282801561105a57602002820191906000526020600020905b815481526020019060010190808311611046575b5050505050905060005b838160ff1610156111d15760006110b060008451868560ff168151811061108d5761108d61277f565b6020026020010151600a60008c8152602001908152602001600020600701612022565b905060008382815181106110c6576110c661277f565b60209081029190910181015160008a8152600a83526040808220600501805460018101825590835284832001839055828252600b909352918220600201805491935060ff9091169161111783612711565b91906101000a81548160ff021916908360ff1602179055505087600b60008381526020019081526020016000206005018190555060006111986001600454888a8860ff1661116591906126bf565b815181106111755761117561277f565b6020026020010151600a60008e8152602001908152602001600020600801612022565b60008a8152600a602090815260408220600601805460018101825590835291200155508291506111c9905081612711565b915050611064565b506040805186815233602082015281517f8cba4a205afb7272fa5a836c0d3e7978054660d671454952190e26652186d9c7929181900390910190a1505050505050565b336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461128c5760405162461bcd60e51b815260206004820152601f60248201527f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c0060448201526064016106b6565b6112968282612099565b5050565b60105460405162438b6360e81b81526001600160a01b038381166004830152600092839291169063438b63009060240160006040518083038186803b1580156112e257600080fd5b505afa1580156112f6573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261131e919081019061233c565b90506000805b82518160ff16101561138257600b6000848360ff16815181106113495761134961277f565b60200260200101518152602001908152602001600020600401548261136e91906126bf565b91508061137a81612711565b915050611324565b509392505050565b611392611ba4565b600355565b61139f611ba4565b600755565b336000818152600d6020908152604080832054808452600a83529281902060030180548251818502810185019093528083529394611415949093830182828015610e325760200282019190600052602060002090815481526020019060010190808311610e1e575050505050611e85565b15611a8b576000818152600a602052604090206005015461149e5760405162461bcd60e51b815260206004820152603760248201527f4e696e65576f726c64734d696e6967616d653a204d61746368206973206e6f7460448201527f2063726561746564206f7220696e697469616c697a656400000000000000000060648201526084016106b6565b6000818152600a602052604090206009015460ff161561150e5760405162461bcd60e51b815260206004820152602560248201527f4e696e65576f726c64734d696e6967616d653a204d617463682069732066696e6044820152641a5cda195960da1b60648201526084016106b6565b6000818152600a602090815260408083206005018054825181850281018501909352808352919290919083018282801561156757602002820191906000526020600020905b815481526020019060010190808311611553575b505050505090506000600a60008481526020019081526020016000206006018054806020026020016040519081016040528092919081815260200182805480156115d057602002820191906000526020600020905b8154815260200190600101908083116115bc575b5050505050905060008060005b6000868152600a602052604090206001015460ff8216101561185b576000600b6000878460ff16815181106116145761161461277f565b6020026020010151815260200190815260200160002060000160009054906101000a900460ff1690506000600b6000878560ff16815181106116585761165861277f565b60209081029190910181015182528101919091526040016000205460ff169050600182600281111561168c5761168c612769565b1480156116aa575060008160028111156116a8576116a8612769565b145b156116c157836116b9816126f6565b94505061180e565b60028260028111156116d5576116d5612769565b1480156116f3575060008160028111156116f1576116f1612769565b145b1561170a5784611702816126f6565b95505061180e565b600282600281111561171e5761171e612769565b14801561173c5750600181600281111561173a5761173a612769565b145b1561174b57836116b9816126f6565b600082600281111561175f5761175f612769565b14801561177d5750600181600281111561177b5761177b612769565b145b1561178c5784611702816126f6565b60008260028111156117a0576117a0612769565b1480156117be575060028160028111156117bc576117bc612769565b145b156117cd57836116b9816126f6565b60018260028111156117e1576117e1612769565b1480156117ff575060028160028111156117fd576117fd612769565b145b1561180e5784611702816126f6565b6000600b6000898660ff16815181106118295761182961277f565b60200260200101518152602001908152602001600020600501819055505050808061185390612711565b9150506115dd565b50808211156118fb5760005b84518160ff1610156118cf57600254600b6000878460ff168151811061188f5761188f61277f565b6020026020010151815260200190815260200160002060040160008282546118b791906126bf565b909155508190506118c781612711565b915050611867565b506000858152600a6020526040902060090180546003919061ff001916610100835b0217905550611a6a565b818111156119945760005b83518160ff16101561196e57600354600b6000868460ff168151811061192e5761192e61277f565b60200260200101518152602001908152602001600020600401600082825461195691906126bf565b9091555081905061196681612711565b915050611906565b506000858152600a6020526040902060090180546002919061ff001916610100836118f1565b60005b84518160ff161015611a4a57600754600b6000878460ff16815181106119bf576119bf61277f565b6020026020010151815260200190815260200160002060040160008282546119e791906126bf565b92505081905550600854600b6000868460ff1681518110611a0a57611a0a61277f565b602002602001015181526020019081526020016000206004016000828254611a3291906126bf565b90915550819050611a4281612711565b915050611997565b506000858152600a60205260409020600901805461ff0019166101001790555b5050506000828152600a60205260409020600901805460ff19166001179055505b6000818152600a60205260408120600901805460ff19166001179055600d81611ab13390565b6001600160a01b03166001600160a01b03168152602001908152602001600020819055507f55bc6a5922bfcfe0237d912afc8e4e6c0b02e439b8a41c4d87fb02431679bfc281604051611b0691815260200190565b60405180910390a150565b611b19611ba4565b600555565b611b26611ba4565b6001600160a01b038116611b8b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016106b6565b611b9481611e35565b50565b611b9f611ba4565b600855565b6000546001600160a01b03163314610dbd5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106b6565b6012546040516370a0823160e01b8152306004820152600091906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a082319060240160206040518083038186803b158015611c6457600080fd5b505afa158015611c78573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c9c9190612521565b1015611d105760405162461bcd60e51b815260206004820152603c60248201527f4e696e65576f726c64734d696e6967616d653a204e6f7420656e6f756768204c60448201527f494e4b2c2066696c6c20636f6e74726163742077697468204c494e4b0000000060648201526084016106b6565b611d1e6011546012546120f7565b6000818152600e602052604090819020849055519091507f10541e8d0bc0db72b191b4d94a69686fc5aeba718e3176a67149f98a4cef0b7f90611d649083815260200190565b60405180910390a1919050565b6000818152600a6020526040812081908180805b8360010154811015611e2957600b6000856005018381548110611daa57611daa61277f565b906000526020600020015481526020019081526020016000206001015483611dd291906126bf565b9250600b6000856006018381548110611ded57611ded61277f565b906000526020600020015481526020019081526020016000206001015482611e1591906126bf565b915080611e21816126f6565b915050611d85565b50909590945092505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000805b82518160ff161015611f635760105483516001600160a01b03808716921690636352211e90869060ff8616908110611ec357611ec361277f565b60200260200101516040518263ffffffff1660e01b8152600401611ee991815260200190565b60206040518083038186803b158015611f0157600080fd5b505afa158015611f15573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f39919061231f565b6001600160a01b031614611f51576000915050610587565b80611f5b81612711565b915050611e89565b5060019392505050565b60608167ffffffffffffffff811115611f8857611f88612795565b604051908082528060200260200182016040528015611fb1578160200160208202803683370190505b50905060005b8281101561201b5760408051602081018690529081018290526060016040516020818303038152906040528051906020012060001c828281518110611ffe57611ffe61277f565b602090810291909101015280612013816126f6565b915050611fb7565b5092915050565b600080856120308686612731565b61203a91906126bf565b90505b60008181526020849052604090205460ff1615156001141561207657846120658260016126bf565b61206f9190612731565b905061203d565b6000818152602084905260409020805460ff191660011790559050949350505050565b6000828152600e6020908152604080832054808452600a83529281902060040184905580518581529182018390527f90d3171ac70f54255a64c000c97bebe5afcb5eab5faae8b49bd184806a8c48c2910160405180910390a1505050565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316634000aea07f000000000000000000000000000000000000000000000000000000000000000084866000604051602001612167929190918252602082015260400190565b6040516020818303038152906040526040518463ffffffff1660e01b815260040161219493929190612570565b602060405180830381600087803b1580156121ae57600080fd5b505af11580156121c2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121e691906124c4565b50600083815260016020818152604080842054815180840189905280830186905230606082015260808082018390528351808303909101815260a09091019092528151918301919091209387905290829052612241916126bf565b6000858152600160205260409020556122818482604080516020808201949094528082019290925280518083038201815260609092019052805191012090565b949350505050565b600082601f83011261229a57600080fd5b813560206122af6122aa8361269b565b61266a565b80838252828201915082860187848660051b89010111156122cf57600080fd5b60005b858110156122ee578135845292840192908401906001016122d2565b5090979650505050505050565b60006020828403121561230d57600080fd5b8135612318816127ab565b9392505050565b60006020828403121561233157600080fd5b8151612318816127ab565b6000602080838503121561234f57600080fd5b825167ffffffffffffffff81111561236657600080fd5b8301601f8101851361237757600080fd5b80516123856122aa8261269b565b80828252848201915084840188868560051b87010111156123a557600080fd5b600094505b838510156123c85780518352600194909401939185019185016123aa565b50979650505050505050565b6000806000606084860312156123e957600080fd5b833567ffffffffffffffff8082111561240157600080fd5b61240d87838801612289565b945060209150818601358181111561242457600080fd5b8601601f8101881361243557600080fd5b80356124436122aa8261269b565b8082825285820191508584018b878560051b870101111561246357600080fd5b600094505b838510156124935780356003811061247f57600080fd5b835260019490940193918601918601612468565b50965050505060408601359150808211156124ad57600080fd5b506124ba86828701612289565b9150509250925092565b6000602082840312156124d657600080fd5b8151801515811461231857600080fd5b6000602082840312156124f857600080fd5b5035919050565b6000806040838503121561251257600080fd5b50508035926020909101359150565b60006020828403121561253357600080fd5b5051919050565b6000806040838503121561254d57600080fd5b82359150602083013560ff8116811461256557600080fd5b809150509250929050565b60018060a01b038416815260006020848184015260606040840152835180606085015260005b818110156125b257858101830151858201608001528201612596565b818111156125c4576000608083870101525b50601f01601f19169290920160800195945050505050565b60e08101600389106125f0576125f0612769565b978152602081019690965260ff9485166040870152929093166060850152608084015260a083019190915260c09091015290565b86815260208101869052841515604082015260608101849052821515608082015260c081016004831061265957612659612769565b8260a0830152979650505050505050565b604051601f8201601f1916810167ffffffffffffffff8111828210171561269357612693612795565b604052919050565b600067ffffffffffffffff8211156126b5576126b5612795565b5060051b60200190565b600082198211156126d2576126d2612753565b500190565b60008160001904831182151516156126f1576126f1612753565b500290565b600060001982141561270a5761270a612753565b5060010190565b600060ff821660ff81141561272857612728612753565b60010192915050565b60008261274e57634e487b7160e01b600052601260045260246000fd5b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114611b9457600080fdfea2646970667358221220fcc740bd0c1e3f61769e74761376dc99511b2b4ff0c1d4fbd6d11754aabcf07064736f6c63430008070033000000000000000000000000158b808cb4c585017b6276e9d2753350e67363ec000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000050000000000000000000000000000000000000000000000000000000000000064000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000003e7

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

000000000000000000000000158b808cb4c585017b6276e9d2753350e67363ec000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000050000000000000000000000000000000000000000000000000000000000000064000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000003e7

-----Decoded View---------------
Arg [0] : _vikingsContract (address): 0x158b808cb4c585017b6276e9d2753350e67363ec
Arg [1] : _maxMatchesPerDay (uint256): 3
Arg [2] : _maxNftMatchCount (uint256): 5
Arg [3] : _nftPointForPlayerWinner (uint256): 100
Arg [4] : _nftPointForComputerWinner (uint256): 10
Arg [5] : _nftPointForPlayerTie (uint256): 10
Arg [6] : _nftPointForComputerTie (uint256): 1
Arg [7] : _maxValidId (uint256): 999

-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 000000000000000000000000158b808cb4c585017b6276e9d2753350e67363ec
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000064
Arg [4] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [5] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [7] : 00000000000000000000000000000000000000000000000000000000000003e7


Deployed ByteCode Sourcemap

19599:17082:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32439:189;;;;;;:::i;:::-;;:::i;:::-;;;6653:25:1;;;6641:2;6626:18;32439:189:0;;;;;;;;20750:24;;;;;;32636:193;;;;;;:::i;:::-;;:::i;34079:106::-;;;;;;:::i;:::-;;:::i;:::-;;23522:1905;;;;;;:::i;:::-;;:::i;32241:190::-;;;;;;:::i;:::-;;:::i;22742:772::-;;;;;;:::i;:::-;;:::i;33185:124::-;;;;;;:::i;:::-;;:::i;21050:50::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;20781:31::-;;;;;;20857:35;;;;;;33579:130;;;;;;:::i;:::-;;:::i;20658:38::-;;;;;;21164:51;;;;;;:::i;:::-;;;;;;;;;;;;;;20819:31;;;;;;31220:1013;;;;;;:::i;:::-;;:::i;16341:103::-;;;:::i;20599:50::-;;20644:5;20599:50;;15693:87;15739:7;15766:6;-1:-1:-1;;;;;15766:6:0;15693:87;;;-1:-1:-1;;;;;5692:32:1;;;5674:51;;5662:2;5647:18;15693:87:0;5528:203:1;25435:2102:0;;;;;;:::i;:::-;;:::i;13268:271::-;;;;;;:::i;:::-;;:::i;32837:340::-;;;;;;:::i;:::-;;:::i;33317:128::-;;;;;;:::i;:::-;;:::i;33717:169::-;;;;;;:::i;:::-;;:::i;20943:25::-;;;;;;27545:3667;;;:::i;33453:118::-;;;;;;:::i;:::-;;:::i;20977:44::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;20899:37::-;;;;;;21331:31;;;;;-1:-1:-1;;;;;21331:31:0;;;21224:53;;;;;;:::i;:::-;;;;;;;;;;;;;;21107:50;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20703:40;;;;;;16599:238;;;;;;:::i;:::-;;:::i;33894:177::-;;;;;;:::i;:::-;;:::i;32439:189::-;32548:7;32580:21;;;:11;:21;;;;;:32;;:40;;;;;;;;;;;;:::i;:::-;;;;;;;;;32573:47;;32439:189;;;;;:::o;32636:193::-;32747:7;32779:21;;;:11;:21;;;;;:34;;:42;;;;;;;;;;;;:::i;34079:106::-;15579:13;:11;:13::i;:::-;34153:10:::1;:24:::0;34079:106::o;23522:1905::-;23631:15;;23603:25;;-1:-1:-1;;;;;23631:15:0;:29;14303:10;23631:43;;-1:-1:-1;;;;;;23631:43:0;;;;;;;-1:-1:-1;;;;;5692:32:1;;;23631:43:0;;;5674:51:1;5647:18;;23631:43:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;23631:43:0;;;;;;;;;;;;:::i;:::-;14303:10;23707:30;;;;:16;:30;;;;;;23603:71;;-1:-1:-1;23707:35:0;23685:118;;;;-1:-1:-1;;;23685:118:0;;15240:2:1;23685:118:0;;;15222:21:1;15279:2;15259:18;;;15252:30;15318:34;15298:18;;;15291:62;-1:-1:-1;;;15369:18:1;;;15362:31;15410:19;;23685:118:0;;;;;;;;;23854:16;;23836:14;:34;;23814:131;;;;-1:-1:-1;;;23814:131:0;;12735:2:1;23814:131:0;;;12717:21:1;12774:2;12754:18;;;12747:30;12813:34;12793:18;;;12786:62;-1:-1:-1;;;12864:18:1;;;12857:45;12919:19;;23814:131:0;12533:411:1;23814:131:0;23997:14;23978:8;:15;:33;;23956:142;;;;-1:-1:-1;;;23956:142:0;;11046:2:1;23956:142:0;;;11028:21:1;11085:2;11065:18;;;11058:30;11124:34;11104:18;;;11097:62;11195:29;11175:18;;;11168:57;11242:19;;23956:142:0;10844:423:1;23956:142:0;24111:23;:11;18276:19;;18294:1;18276:19;;;18187:127;24111:23;24145:15;24163:21;:11;18157:14;;18065:114;24163:21;24197:20;;;;:11;:20;;;;;:38;;;24246:34;;:51;;;24145:39;;-1:-1:-1;24308:777:0;24330:8;:15;24326:1;:19;;;24308:777;;;24367:13;24383:8;24392:1;24383:11;;;;;;;;;;:::i;:::-;;;;;;;24367:27;;24421:10;;24413:5;:18;24409:67;;;24452:8;;;24409:67;24494:20;;;;:13;:20;;;;;:35;;;:40;24490:89;;24555:8;;;24490:89;24615:20;;;;:13;:20;;;;;:45;;;24722:15;;24615:87;;20644:5;;24615:87;:::i;:::-;:122;24593:319;;;24772:20;;;;:13;:20;;;;;24820:15;24772:45;;;:63;24854:38;;:42;;-1:-1:-1;;24854:42:0;;;24593:319;24971:16;;24930:20;;;;:13;:20;;;;;:38;;;;;:57;24926:148;;;25008:20;;;;:11;:20;;;;;;;:38;;:50;;;;;;;;;;;;;;;;24926:148;24352:733;24308:777;24347:3;;;;:::i;:::-;;;;24308:777;;;-1:-1:-1;25119:20:0;;;;:11;:20;;;;;:38;;:45;:63;-1:-1:-1;25119:63:0;25097:180;;;;-1:-1:-1;;;25097:180:0;;8898:2:1;25097:180:0;;;8880:21:1;8937:2;8917:18;;;8910:30;8976:34;8956:18;;;8949:62;9047:34;9027:18;;;9020:62;-1:-1:-1;;;9098:19:1;;;9091:34;9142:19;;25097:180:0;8696:471:1;25097:180:0;14303:10;25290:30;;;;:16;:30;;;;;;;;;:40;;;25346:35;;15796:25:1;;;15837:18;;;15830:60;;;;25346:35:0;;;;;;;;;;;;25392:27;25411:7;25392:18;:27::i;:::-;;23592:1835;;23522:1905;:::o;32241:190::-;32344:7;32376:21;;;:11;:21;;;;;:39;;:47;;;;;;;;;;;;:::i;22742:772::-;15579:13;:11;:13::i;:::-;22954:9:::1;:16;22936:7;:14;:34;22914:127;;;::::0;-1:-1:-1;;;22914:127:0;;14828:2:1;22914:127:0::1;::::0;::::1;14810:21:1::0;14867:2;14847:18;;;14840:30;14906:34;14886:18;;;14879:62;-1:-1:-1;;;14957:18:1;;;14950:41;15008:19;;22914:127:0::1;14626:407:1::0;22914:127:0::1;23094:7;:14;23074:9;:16;:34;23052:127;;;::::0;-1:-1:-1;;;23052:127:0;;10634:2:1;23052:127:0::1;::::0;::::1;10616:21:1::0;10673:2;10653:18;;;10646:30;10712:34;10692:18;;;10685:62;-1:-1:-1;;;10763:18:1;;;10756:41;10814:19;;23052:127:0::1;10432:407:1::0;23052:127:0::1;23195:7;23190:317;23212:7;:14;23208:1;:18;;;23190:317;;;23248:28;23279:13;:25;23293:7;23301:1;23293:10;;;;;;;;;;:::i;:::-;;;;;;;23279:25;;;;;;;;;;;23248:56;;23340:9;23350:1;23340:12;;;;;;;;;;:::i;:::-;;::::0;;::::1;::::0;;;;;;23319:33;;:10;;-1:-1:-1;;23319:33:0::1;::::0;23340:12;23319:33:::1;::::0;::::1;;;;;;:::i;:::-;;;;;;23391:7;23399:1;23391:10;;;;;;;;;;:::i;:::-;;::::0;;::::1;::::0;;;;;;23367:21:::1;::::0;::::1;:34:::0;23454:15:::1;23416:35;::::0;::::1;:53:::0;23484:9:::1;:11:::0;;;-1:-1:-1;23484:11:0::1;::::0;::::1;:::i;:::-;;;;;;23233:274;23228:3;;;;;:::i;:::-;;;;23190:317;;33185:124:::0;15579:13;:11;:13::i;:::-;33268:23:::1;:33:::0;33185:124::o;33579:130::-;15579:13;:11;:13::i;:::-;33665:16:::1;:36:::0;33579:130::o;31220:1013::-;14303:10;31321:15;31339:30;;;:16;:30;;;;;;;;;31404:20;;;:11;:20;;;;;;:34;;;31471:23;;;:67;;;;;31525:13;31515:7;:23;31471:67;:106;;;;;31570:7;31559;:18;;31471:106;31449:228;;;;-1:-1:-1;;;31449:228:0;;11893:2:1;31449:228:0;;;11875:21:1;11932:2;11912:18;;;11905:30;11971:34;11951:18;;;11944:62;12042:34;12022:18;;;12015:62;-1:-1:-1;;;12093:19:1;;;12086:39;12142:19;;31449:228:0;11691:476:1;31449:228:0;31688:19;31718:21;31781:35;31808:7;31781:26;:35::i;:::-;31750:66;;-1:-1:-1;31750:66:0;-1:-1:-1;31849:27:0;;;31827:160;;;;-1:-1:-1;;;31827:160:0;;13151:2:1;31827:160:0;;;13133:21:1;13190:2;13170:18;;;13163:30;13229:34;13209:18;;;13202:62;13300:34;13280:18;;;13273:62;-1:-1:-1;;;13351:19:1;;;13344:50;13411:19;;31827:160:0;12949:487:1;31827:160:0;31998:28;32029:20;;;:11;:20;;;;;:31;;32088:19;;32029:31;;31998:28;32029:31;;32099:7;;32088:19;;;;;;:::i;:::-;;;;;;;;;32071:36;;32140:10;32151:7;32140:19;;;;;;;;:::i;:::-;;;;;;;;;32118:10;32129:7;32118:19;;;;;;;;:::i;:::-;;;;;;;;:41;;;;32192:6;32170:10;32181:7;32170:19;;;;;;;;:::i;:::-;;;;;;;;;;:28;32211:14;:12;:14::i;:::-;31310:923;;;;;;31220:1013;;:::o;16341:103::-;15579:13;:11;:13::i;:::-;16406:30:::1;16433:1;16406:18;:30::i;:::-;16341:103::o:0;25435:2102::-;-1:-1:-1;;;;;25513:22:0;;25495:15;25513:22;;;:16;:22;;;;;;;;;25568:20;;;:11;:20;;;;;;:38;;25551:56;;;;;;;;;;;;;;;;;;;25530:4;;25551:56;25568:38;25551:56;;;25568:38;25551:56;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:10;:56::i;:::-;25546:195;;25624:20;;;;:11;:20;;;;;;;;:36;;:43;;-1:-1:-1;;25624:43:0;25663:4;25624:43;;;-1:-1:-1;;;;;25682:22:0;;;;;:16;:22;;;;;:26;25435:2102::o;25546:195::-;25773:12;25751:112;;;;-1:-1:-1;;;25751:112:0;;14003:2:1;25751:112:0;;;13985:21:1;14042:2;14022:18;;;14015:30;14081:34;14061:18;;;14054:62;-1:-1:-1;;;14132:18:1;;;14125:48;14190:19;;25751:112:0;13801:414:1;25751:112:0;25896:20;;;;:11;:20;;;;;:31;;:38;:43;25874:141;;;;-1:-1:-1;;;25874:141:0;;8481:2:1;25874:141:0;;;8463:21:1;8520:2;8500:18;;;8493:30;8559:34;8539:18;;;8532:62;-1:-1:-1;;;8610:18:1;;;8603:46;8666:19;;25874:141:0;8279:412:1;25874:141:0;26087:1;26048:20;;;:11;:20;;;;;:36;;;26026:140;;;;-1:-1:-1;;;26026:140:0;;11474:2:1;26026:140:0;;;11456:21:1;11513:2;11493:18;;;11486:30;11552:34;11532:18;;;11525:62;-1:-1:-1;;;11603:18:1;;;11596:48;11661:19;;26026:140:0;11272:414:1;26026:140:0;26177:18;26198:20;;;:11;:20;;;;;:36;;;;26269:34;;;;;26198:36;;26350:84;26198:36;26406:17;26269:34;26422:1;26406:17;:::i;:::-;26350:16;:84::i;:::-;26447:31;26481:20;;;:11;:20;;;;;;;;:52;;26447:86;;;;;;;;;;;;;;;;;26316:118;;-1:-1:-1;26447:31:0;;:86;;26481:52;26447:86;;26481:52;26447:86;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26549:7;26544:931;26566:13;26562:1;:17;;;26544:931;;;26601:28;26632:209;26682:1;26702:14;:21;26742:14;26757:1;26742:17;;;;;;;;;;:::i;:::-;;;;;;;26778:11;:20;26790:7;26778:20;;;;;;;;;;;:48;;26632:31;:209::i;:::-;26601:240;;26856:23;26882:14;26897:20;26882:36;;;;;;;;:::i;:::-;;;;;;;;;;;;26933:20;;;;:11;:20;;;;;;:31;;:53;;;;;;;;;;;;;;;;;27001:30;;;:13;:30;;;;;;:48;;:50;;26882:36;;-1:-1:-1;27001:50:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;27114:7;27066:13;:30;27080:15;27066:30;;;;;;;;;;;:45;;:55;;;;27138:30;27171:215;27221:1;27241:9;;27269:14;27288:13;27284:1;:17;;;;;;:::i;:::-;27269:33;;;;;;;;:::i;:::-;;;;;;;27321:11;:20;27333:7;27321:20;;;;;;;;;;;:50;;27171:31;:215::i;:::-;27401:20;;;;:11;:20;;;;;;;:33;;:62;;;;;;;;;;;;;;-1:-1:-1;26581:3:0;;-1:-1:-1;26581:3:0;;-1:-1:-1;26581:3:0;;:::i;:::-;;;;26544:931;;;-1:-1:-1;27490:39:0;;;15796:25:1;;;14303:10:0;15852:2:1;15837:18;;15830:60;27490:39:0;;;;;;;;;;;;;25484:2053;;;;;25435:2102;:::o;13268:271::-;13393:10;-1:-1:-1;;;;;13407:14:0;13393:28;;13371:109;;;;-1:-1:-1;;;13371:109:0;;13643:2:1;13371:109:0;;;13625:21:1;13682:2;13662:18;;;13655:30;13721:33;13701:18;;;13694:61;13772:18;;13371:109:0;13441:355:1;13371:109:0;13491:40;13509:9;13520:10;13491:17;:40::i;:::-;13268:271;;:::o;32837:340::-;32946:15;;:35;;-1:-1:-1;;;32946:35:0;;-1:-1:-1;;;;;5692:32:1;;;32946:35:0;;;5674:51:1;32898:7:0;;;;32946:15;;;:29;;5647:18:1;;32946:35:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;32946:35:0;;;;;;;;;;;;:::i;:::-;32918:63;-1:-1:-1;32992:19:0;;33022:119;33044:8;:15;33040:1;:19;;;33022:119;;;33096:13;:26;33110:8;33119:1;33110:11;;;;;;;;;;:::i;:::-;;;;;;;33096:26;;;;;;;;;;;:33;;;33081:48;;;;;:::i;:::-;;-1:-1:-1;33061:3:0;;;;:::i;:::-;;;;33022:119;;;-1:-1:-1;33158:11:0;32837:340;-1:-1:-1;;;32837:340:0:o;33317:128::-;15579:13;:11;:13::i;:::-;33402:25:::1;:35:::0;33317:128::o;33717:169::-;15579:13;:11;:13::i;:::-;33834:20:::1;:44:::0;33717:169::o;27545:3667::-;14303:10;27587:15;27605:30;;;:16;:30;;;;;;;;;27675:20;;;:11;:20;;;;;;:38;;27650:64;;;;;;;;;;;;;;;;;27605:30;;27650:64;;14303:10;;27650:64;;27675:38;27650:64;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:10;:64::i;:::-;27646:3422;;;27798:1;27757:20;;;:11;:20;;;;;:31;;:38;27731:159;;;;-1:-1:-1;;;27731:159:0;;9781:2:1;27731:159:0;;;9763:21:1;9820:2;9800:18;;;9793:30;9859:34;9839:18;;;9832:62;9930:25;9910:18;;;9903:53;9973:19;;27731:159:0;9579:419:1;27731:159:0;27932:20;;;;:11;:20;;;;;:36;;;;;27931:37;27905:136;;;;-1:-1:-1;;;27905:136:0;;14422:2:1;27905:136:0;;;14404:21:1;14461:2;14441:18;;;14434:30;14500:34;14480:18;;;14473:62;-1:-1:-1;;;14551:18:1;;;14544:35;14596:19;;27905:136:0;14220:401:1;27905:136:0;28056:27;28086:20;;;:11;:20;;;;;;;;:31;;28056:61;;;;;;;;;;;;;;;;;;;28086:31;;28056:61;;;28086:31;28056:61;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28132:29;28164:11;:20;28176:7;28164:20;;;;;;;;;;;:33;;28132:65;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28212:20;28247:22;28289:7;28284:1637;28306:20;;;;:11;:20;;;;;:34;;;28302:38;;;;28284:1637;;;28366:18;28387:13;:28;28401:10;28412:1;28401:13;;;;;;;;;;:::i;:::-;;;;;;;28387:28;;;;;;;;;;;:36;;;;;;;;;;;;28366:57;;28442:20;28465:13;:30;28479:12;28492:1;28479:15;;;;;;;;;;:::i;:::-;;;;;;;;;;;;28465:30;;;;;;;;;;-1:-1:-1;28465:30:0;:38;;;;-1:-1:-1;28465:38:0;28550:10;:25;;;;;;;;:::i;:::-;;:58;;;;-1:-1:-1;28595:13:0;28579:12;:29;;;;;;;;:::i;:::-;;28550:58;28524:1316;;;28651:16;;;;:::i;:::-;;;;28524:1316;;;28766:14;28752:10;:28;;;;;;;;:::i;:::-;;:82;;;;-1:-1:-1;28821:13:0;28805:12;:29;;;;;;;;:::i;:::-;;28752:82;28726:1114;;;28877:14;;;;:::i;:::-;;;;28726:1114;;;28994:14;28980:10;:28;;;;;;;;:::i;:::-;;:59;;;;-1:-1:-1;29028:11:0;29012:12;:27;;;;;;;;:::i;:::-;;28980:59;28954:886;;;29082:16;;;;:::i;28954:886::-;29197:13;29183:10;:27;;;;;;;;:::i;:::-;;:58;;;;-1:-1:-1;29230:11:0;29214:12;:27;;;;;;;;:::i;:::-;;29183:58;29157:683;;;29284:14;;;;:::i;29157:683::-;29401:13;29387:10;:27;;;;;;;;:::i;:::-;;:82;;;;-1:-1:-1;29455:14:0;29439:12;:30;;;;;;;;:::i;:::-;;29387:82;29361:479;;;29512:16;;;;:::i;29361:479::-;29627:11;29613:10;:25;;;;;;;;:::i;:::-;;:59;;;;-1:-1:-1;29658:14:0;29642:12;:30;;;;;;;;:::i;:::-;;29613:59;29587:253;;;29715:14;;;;:::i;29587:253::-;29904:1;29858:13;:28;29872:10;29883:1;29872:13;;;;;;;;;;:::i;:::-;;;;;;;29858:28;;;;;;;;;;;:43;;:47;;;;28347:1574;;28342:3;;;;;:::i;:::-;;;;28284:1637;;;;29956:14;29941:12;:29;29937:1062;;;29996:7;29991:177;30013:10;:17;30009:1;:21;;;29991:177;;;30125:23;;30060:13;:28;30074:10;30085:1;30074:13;;;;;;;;;;:::i;:::-;;;;;;;30060:28;;;;;;;;;;;:61;;;:88;;;;;;;:::i;:::-;;;;-1:-1:-1;30032:3:0;;-1:-1:-1;30032:3:0;;;:::i;:::-;;;;29991:177;;;-1:-1:-1;30186:20:0;;;;:11;:20;;;;;:32;;:56;;30221:21;;30186:32;-1:-1:-1;;30186:56:0;;30221:21;30186:56;;;;;;29937:1062;;;30299:12;30282:14;:29;30278:721;;;30337:7;30332:183;30354:12;:19;30350:1;:23;;;30332:183;;;30470:25;;30403:13;:30;30417:12;30430:1;30417:15;;;;;;;;;;:::i;:::-;;;;;;;30403:30;;;;;;;;;;;:63;;;:92;;;;;;;:::i;:::-;;;;-1:-1:-1;30375:3:0;;-1:-1:-1;30375:3:0;;;:::i;:::-;;;;30332:183;;;-1:-1:-1;30533:20:0;;;;:11;:20;;;;;:32;;:58;;30568:23;;30533:32;-1:-1:-1;;30533:58:0;;30568:23;30533:58;;30278:721;30653:7;30648:260;30670:10;:17;30666:1;:21;;;30648:260;;;30756:20;;30717:13;:28;30731:10;30742:1;30731:13;;;;;;;;;;:::i;:::-;;;;;;;30717:28;;;;;;;;;;;:35;;;:59;;;;;;;:::i;:::-;;;;;;;;30866:22;;30799:13;:30;30813:12;30826:1;30813:15;;;;;;;;;;:::i;:::-;;;;;;;30799:30;;;;;;;;;;;:63;;;:89;;;;;;;:::i;:::-;;;;-1:-1:-1;30689:3:0;;-1:-1:-1;30689:3:0;;;:::i;:::-;;;;30648:260;;;-1:-1:-1;30926:20:0;;;;:11;:20;;;;;:32;;:50;;-1:-1:-1;;30926:50:0;;;;;30278:721;-1:-1:-1;;;31013:20:0;;;;:11;:20;;;;;:36;;:43;;-1:-1:-1;;31013:43:0;31052:4;31013:43;;;-1:-1:-1;27646:3422:0;31078:20;;;;:11;:20;;;;;:36;;:43;;-1:-1:-1;;31078:43:0;31117:4;31078:43;;;31132:16;31078:20;31149:12;14303:10;;14223:98;31149:12;-1:-1:-1;;;;;31132:30:0;-1:-1:-1;;;;;31132:30:0;;;;;;;;;;;;:34;;;;31182:22;31196:7;31182:22;;;;6653:25:1;;6641:2;6626:18;;6507:177;31182:22:0;;;;;;;;27576:3636;27545:3667::o;33453:118::-;15579:13;:11;:13::i;:::-;33533:16:::1;:30:::0;33453:118::o;16599:238::-;15579:13;:11;:13::i;:::-;-1:-1:-1;;;;;16702:22:0;::::1;16680:110;;;::::0;-1:-1:-1;;;16680:110:0;;9374:2:1;16680:110:0::1;::::0;::::1;9356:21:1::0;9413:2;9393:18;;;9386:30;9452:34;9432:18;;;9425:62;-1:-1:-1;;;9503:18:1;;;9496:36;9549:19;;16680:110:0::1;9172:402:1::0;16680:110:0::1;16801:28;16820:8;16801:18;:28::i;:::-;16599:238:::0;:::o;33894:177::-;15579:13;:11;:13::i;:::-;34015:22:::1;:48:::0;33894:177::o;15858:132::-;15739:7;15766:6;-1:-1:-1;;;;;15766:6:0;14303:10;15922:23;15914:68;;;;-1:-1:-1;;;15914:68:0;;12374:2:1;15914:68:0;;;12356:21:1;;;12393:18;;;12386:30;12452:34;12432:18;;;12425:62;12504:18;;15914:68:0;12172:356:1;35444:424:0;35616:7;;35583:29;;-1:-1:-1;;;35583:29:0;;35606:4;35583:29;;;5674:51:1;35526:17:0;;35616:7;-1:-1:-1;;;;;35583:4:0;:14;;;;5647:18:1;;35583:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:40;;35561:150;;;;-1:-1:-1;;;35561:150:0;;10205:2:1;35561:150:0;;;10187:21:1;10244:2;10224:18;;;10217:30;10283:34;10263:18;;;10256:62;10354:30;10334:18;;;10327:58;10402:19;;35561:150:0;10003:424:1;35561:150:0;35734:35;35752:7;;35761;;35734:17;:35::i;:::-;35780:29;;;;:18;:29;;;;;;;:40;;;35836:24;35722:47;;-1:-1:-1;35836:24:0;;;;35722:47;6653:25:1;;6641:2;6626:18;;6507:177;35836:24:0;;;;;;;;35444:424;;;:::o;34193:573::-;34297:7;34359:21;;;:11;:21;;;;;34297:7;;;;;34461:252;34485:11;:25;;;34481:1;:29;34461:252;;;34547:13;:40;34561:11;:22;;34584:1;34561:25;;;;;;;;:::i;:::-;;;;;;;;;34547:40;;;;;;;;;;;:51;;;34532:66;;;;;:::i;:::-;;;34630:13;:42;34644:11;:24;;34669:1;34644:27;;;;;;;;:::i;:::-;;;;;;;;;34630:42;;;;;;;;;;;:71;;;34613:88;;;;;:::i;:::-;;-1:-1:-1;34512:3:0;;;;:::i;:::-;;;;34461:252;;;-1:-1:-1;34731:11:0;;34744:13;;-1:-1:-1;34193:573:0;-1:-1:-1;;;34193:573:0:o;16997:191::-;17071:16;17090:6;;-1:-1:-1;;;;;17107:17:0;;;-1:-1:-1;;;;;;17107:17:0;;;;;;17140:40;;17090:6;;;;;;;17140:40;;17071:16;17140:40;17060:128;16997:191;:::o;34774:321::-;34883:4;;34905:161;34927:4;:11;34923:1;:15;;;34905:161;;;34964:15;;34988:7;;-1:-1:-1;;;;;34964:42:0;;;;:15;;:23;;34988:4;;:7;;;;;;;;;;:::i;:::-;;;;;;;34964:32;;;;;;;;;;;;;6653:25:1;;6641:2;6626:18;;6507:177;34964:32:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;34964:42:0;;34960:95;;35034:5;35027:12;;;;;34960:95;34940:3;;;;:::i;:::-;;;;34905:161;;;-1:-1:-1;35083:4:0;;34774:321;-1:-1:-1;;;34774:321:0:o;35103:333::-;35211:31;35291:1;35277:16;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;35277:16:0;;35260:33;;35309:9;35304:125;35328:1;35324;:5;35304:125;;;35389:26;;;;;;6863:25:1;;;6904:18;;;6897:34;;;6836:18;;35389:26:0;;;;;;;;;;;;35379:37;;;;;;35371:46;;35351:14;35366:1;35351:17;;;;;;;;:::i;:::-;;;;;;;;;;:66;35331:3;;;;:::i;:::-;;;;35304:125;;;;35103:333;;;;:::o;35876:508::-;36090:7;;36161:10;36133:24;36147:10;36133:11;:24;:::i;:::-;36132:39;;;;:::i;:::-;36110:61;;36182:117;36189:29;;;;;;;;;;;;;;:37;;:29;:37;36182:117;;;36277:10;36258:15;:11;36272:1;36258:15;:::i;:::-;36257:30;;;;:::i;:::-;36243:44;;36182:117;;;36309:29;;;;;;;;;;;:36;;-1:-1:-1;;36309:36:0;36341:4;36309:36;;;36326:11;-1:-1:-1;35876:508:0;;;;;;:::o;36392:286::-;36510:15;36528:29;;;:18;:29;;;;;;;;;36568:20;;;:11;:20;;;;;;:36;;:49;;;36635:35;;6863:25:1;;;6904:18;;;6897:34;;;36635:35:0;;6836:18:1;36635:35:0;;;;;;;36499:179;36392:286;;:::o;11147:1224::-;11242:17;11277:4;-1:-1:-1;;;;;11277:20:0;;11312:14;11341:4;11371:8;9925:1;11360:43;;;;;;;;6863:25:1;;;6919:2;6904:18;;6897:34;6851:2;6836:18;;6689:248;11360:43:0;;;;;;;;;;;;;11277:137;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;11665:15:0;11801:16;;;:6;:16;;;;;;;;;2506:51;;;;;7173:25:1;;;7214:18;;;7207:34;;;11781:4:0;7257:18:1;;;7250:60;7326:18;;;;7319:34;;;2506:51:0;;;;;;;;;;7145:19:1;;;;2506:51:0;;;2496:62;;;;;;;;;12293:16;;;;;;;;:20;;;:::i;:::-;12274:16;;;;:6;:16;;;;;:39;12331:32;12281:8;12355:7;3148:41;;;;;;;5433:19:1;;;;5468:12;;;5461:28;;;;3148:41:0;;;;;;;;;5505:12:1;;;;3148:41:0;;3138:52;;;;;;2992:206;12331:32;12324:39;11147:1224;-1:-1:-1;;;;11147:1224:0:o;14:678:1:-;68:5;121:3;114:4;106:6;102:17;98:27;88:55;;139:1;136;129:12;88:55;175:6;162:20;201:4;225:65;241:48;286:2;241:48;:::i;:::-;225:65;:::i;:::-;312:3;336:2;331:3;324:15;364:2;359:3;355:12;348:19;;399:2;391:6;387:15;451:3;446:2;440;437:1;433:10;425:6;421:23;417:32;414:41;411:61;;;468:1;465;458:12;411:61;490:1;500:163;514:2;511:1;508:9;500:163;;;571:17;;559:30;;609:12;;;;641;;;;532:1;525:9;500:163;;;-1:-1:-1;681:5:1;;14:678;-1:-1:-1;;;;;;;14:678:1:o;697:247::-;756:6;809:2;797:9;788:7;784:23;780:32;777:52;;;825:1;822;815:12;777:52;864:9;851:23;883:31;908:5;883:31;:::i;:::-;933:5;697:247;-1:-1:-1;;;697:247:1:o;949:251::-;1019:6;1072:2;1060:9;1051:7;1047:23;1043:32;1040:52;;;1088:1;1085;1078:12;1040:52;1120:9;1114:16;1139:31;1164:5;1139:31;:::i;1205:897::-;1300:6;1331:2;1374;1362:9;1353:7;1349:23;1345:32;1342:52;;;1390:1;1387;1380:12;1342:52;1423:9;1417:16;1456:18;1448:6;1445:30;1442:50;;;1488:1;1485;1478:12;1442:50;1511:22;;1564:4;1556:13;;1552:27;-1:-1:-1;1542:55:1;;1593:1;1590;1583:12;1542:55;1622:2;1616:9;1645:65;1661:48;1706:2;1661:48;:::i;1645:65::-;1732:3;1756:2;1751:3;1744:15;1784:2;1779:3;1775:12;1768:19;;1815:2;1811;1807:11;1863:7;1858:2;1852;1849:1;1845:10;1841:2;1837:19;1833:28;1830:41;1827:61;;;1884:1;1881;1874:12;1827:61;1906:1;1897:10;;1916:156;1930:2;1927:1;1924:9;1916:156;;;1987:10;;1975:23;;1948:1;1941:9;;;;;2018:12;;;;2050;;1916:156;;;-1:-1:-1;2091:5:1;1205:897;-1:-1:-1;;;;;;;1205:897:1:o;2107:1475::-;2270:6;2278;2286;2339:2;2327:9;2318:7;2314:23;2310:32;2307:52;;;2355:1;2352;2345:12;2307:52;2395:9;2382:23;2424:18;2465:2;2457:6;2454:14;2451:34;;;2481:1;2478;2471:12;2451:34;2504:61;2557:7;2548:6;2537:9;2533:22;2504:61;:::i;:::-;2494:71;;2584:2;2574:12;;2639:2;2628:9;2624:18;2611:32;2668:2;2658:8;2655:16;2652:36;;;2684:1;2681;2674:12;2652:36;2707:24;;2762:4;2754:13;;2750:27;-1:-1:-1;2740:55:1;;2791:1;2788;2781:12;2740:55;2827:2;2814:16;2850:65;2866:48;2911:2;2866:48;:::i;2850:65::-;2937:3;2961:2;2956:3;2949:15;2989:2;2984:3;2980:12;2973:19;;3020:2;3016;3012:11;3068:7;3063:2;3057;3054:1;3050:10;3046:2;3042:19;3038:28;3035:41;3032:61;;;3089:1;3086;3079:12;3032:61;3111:1;3102:10;;3121:247;3135:2;3132:1;3129:9;3121:247;;;3206:3;3193:17;3243:1;3236:5;3233:12;3223:40;;3259:1;3256;3249:12;3223:40;3276:18;;3153:1;3146:9;;;;;3314:12;;;;3346;;3121:247;;;-1:-1:-1;3387:5:1;-1:-1:-1;;;;3445:2:1;3430:18;;3417:32;;-1:-1:-1;3461:16:1;;;3458:36;;;3490:1;3487;3480:12;3458:36;;3513:63;3568:7;3557:8;3546:9;3542:24;3513:63;:::i;:::-;3503:73;;;2107:1475;;;;;:::o;3587:277::-;3654:6;3707:2;3695:9;3686:7;3682:23;3678:32;3675:52;;;3723:1;3720;3713:12;3675:52;3755:9;3749:16;3808:5;3801:13;3794:21;3787:5;3784:32;3774:60;;3830:1;3827;3820:12;3869:180;3928:6;3981:2;3969:9;3960:7;3956:23;3952:32;3949:52;;;3997:1;3994;3987:12;3949:52;-1:-1:-1;4020:23:1;;3869:180;-1:-1:-1;3869:180:1:o;4054:248::-;4122:6;4130;4183:2;4171:9;4162:7;4158:23;4154:32;4151:52;;;4199:1;4196;4189:12;4151:52;-1:-1:-1;;4222:23:1;;;4292:2;4277:18;;;4264:32;;-1:-1:-1;4054:248:1:o;4492:184::-;4562:6;4615:2;4603:9;4594:7;4590:23;4586:32;4583:52;;;4631:1;4628;4621:12;4583:52;-1:-1:-1;4654:16:1;;4492:184;-1:-1:-1;4492:184:1:o;4934:337::-;5000:6;5008;5061:2;5049:9;5040:7;5036:23;5032:32;5029:52;;;5077:1;5074;5067:12;5029:52;5113:9;5100:23;5090:33;;5173:2;5162:9;5158:18;5145:32;5217:4;5210:5;5206:16;5199:5;5196:27;5186:55;;5237:1;5234;5227:12;5186:55;5260:5;5250:15;;;4934:337;;;;;:::o;5736:766::-;5968:1;5964;5959:3;5955:11;5951:19;5943:6;5939:32;5928:9;5921:51;5902:4;5991:2;6029:6;6024:2;6013:9;6009:18;6002:34;6072:2;6067;6056:9;6052:18;6045:30;6104:6;6098:13;6147:6;6142:2;6131:9;6127:18;6120:34;6172:1;6182:141;6196:6;6193:1;6190:13;6182:141;;;6292:14;;;6288:23;;6282:30;6257:17;;;6276:3;6253:27;6246:67;6211:10;;6182:141;;;6341:6;6338:1;6335:13;6332:92;;;6412:1;6406:3;6397:6;6386:9;6382:22;6378:32;6371:43;6332:92;-1:-1:-1;6485:2:1;6464:15;-1:-1:-1;;6460:29:1;6445:45;;;;6492:3;6441:55;;5736:766;-1:-1:-1;;;;;5736:766:1:o;7588:686::-;7891:3;7876:19;;7925:1;7914:13;;7904:47;;7931:18;;:::i;:::-;7960:25;;;8016:2;8001:18;;7994:34;;;;8076:4;8064:17;;;8059:2;8044:18;;8037:45;8118:17;;;;8113:2;8098:18;;8091:45;8167:3;8152:19;;8145:35;8211:3;8196:19;;8189:35;;;;8255:3;8240:19;;;8233:35;7588:686;:::o;16154:624::-;16442:25;;;16498:2;16483:18;;16476:34;;;16553:14;;16546:22;16541:2;16526:18;;16519:50;16600:2;16585:18;;16578:34;;;16656:14;;16649:22;16643:3;16628:19;;16621:51;16429:3;16414:19;;16702:1;16691:13;;16681:47;;16708:18;;:::i;:::-;16765:6;16759:3;16748:9;16744:19;16737:35;16154:624;;;;;;;;;:::o;16783:275::-;16854:2;16848:9;16919:2;16900:13;;-1:-1:-1;;16896:27:1;16884:40;;16954:18;16939:34;;16975:22;;;16936:62;16933:88;;;17001:18;;:::i;:::-;17037:2;17030:22;16783:275;;-1:-1:-1;16783:275:1:o;17063:188::-;17128:4;17161:18;17153:6;17150:30;17147:56;;;17183:18;;:::i;:::-;-1:-1:-1;17228:1:1;17224:14;17240:4;17220:25;;17063:188::o;17256:128::-;17296:3;17327:1;17323:6;17320:1;17317:13;17314:39;;;17333:18;;:::i;:::-;-1:-1:-1;17369:9:1;;17256:128::o;17389:168::-;17429:7;17495:1;17491;17487:6;17483:14;17480:1;17477:21;17472:1;17465:9;17458:17;17454:45;17451:71;;;17502:18;;:::i;:::-;-1:-1:-1;17542:9:1;;17389:168::o;17562:135::-;17601:3;-1:-1:-1;;17622:17:1;;17619:43;;;17642:18;;:::i;:::-;-1:-1:-1;17689:1:1;17678:13;;17562:135::o;17702:175::-;17739:3;17783:4;17776:5;17772:16;17812:4;17803:7;17800:17;17797:43;;;17820:18;;:::i;:::-;17869:1;17856:15;;17702:175;-1:-1:-1;;17702:175:1:o;17882:209::-;17914:1;17940;17930:132;;17984:10;17979:3;17975:20;17972:1;17965:31;18019:4;18016:1;18009:15;18047:4;18044:1;18037:15;17930:132;-1:-1:-1;18076:9:1;;17882:209::o;18096:127::-;18157:10;18152:3;18148:20;18145:1;18138:31;18188:4;18185:1;18178:15;18212:4;18209:1;18202:15;18228:127;18289:10;18284:3;18280:20;18277:1;18270:31;18320:4;18317:1;18310:15;18344:4;18341:1;18334:15;18360:127;18421:10;18416:3;18412:20;18409:1;18402:31;18452:4;18449:1;18442:15;18476:4;18473:1;18466:15;18492:127;18553:10;18548:3;18544:20;18541:1;18534:31;18584:4;18581:1;18574:15;18608:4;18605:1;18598:15;18624:131;-1:-1:-1;;;;;18699:31:1;;18689:42;;18679:70;;18745:1;18742;18735:12

Swarm Source

ipfs://fcc740bd0c1e3f61769e74761376dc99511b2b4ff0c1d4fbd6d11754aabcf070
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.