This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pragma solidity ^0.6.0; | |
| import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v3.1.0/contracts/token/ERC20/ERC20.sol"; | |
| contract KorrToken is ERC20 { | |
| constructor () public ERC20("KORRIO", "KORR") { | |
| _mint(msg.sender, 1000000 * (10 ** uint256(decimals()))); | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // SPDX-License-Identifier: MIT | |
| pragma solidity ^0.8.7; | |
| import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol"; | |
| import "@openzeppelin/contracts/token/ERC1155/utils/ERC1155Receiver.sol"; | |
| contract NftStaker { | |
| IERC1155 public parentNFT; | |
| struct Stake { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //SPDX-License-Identifier: MIT | |
| pragma solidity 0.8.7; | |
| import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; | |
| import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; | |
| import "@openzeppelin/contracts/security/Pausable.sol"; | |
| import "@openzeppelin/contracts/access/Ownable.sol"; | |
| import "@openzeppelin/contracts/access/AccessControl.sol"; | |
| import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pragma solidity ^0.6.12; | |
| library SafeMath { | |
| /** | |
| * @dev Returns the addition of two unsigned integers, reverting on | |
| * overflow. | |
| * | |
| * Counterpart to Solidity's `+` operator. | |
| * | |
| * Requirements: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pragma solidity 0.6.12; | |
| interface IMyRouterInterface { // UniswapV2Interface | |
| function swapExactTokensForTokens( | |
| uint amountIn, | |
| uint amountOutMin, | |
| address[] calldata path, | |
| address to, | |
| uint deadline | |
| ) external returns (uint[] memory amounts); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pragma solidity 0.6.12; | |
| interface IMyRouterInterface { // UniswapV2Interface | |
| function swapExactTokensForTokens( | |
| uint amountIn, | |
| uint amountOutMin, | |
| address[] calldata path, | |
| address to, | |
| uint deadline | |
| ) external returns (uint[] memory amounts); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function tokenURI(uint256 _tokenId) | |
| public | |
| view | |
| override | |
| returns (string memory) | |
| { | |
| CharacterAttributes memory charAttributes = nftHolderAttributes[ | |
| _tokenId | |
| ]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * @authors: [@ferittuncer, @hbarcelos] | |
| * @reviewers: [] | |
| * @auditors: [] | |
| * @bounties: [] | |
| * @deployments: [] | |
| * SPDX-License-Identifier: MIT | |
| */ | |
| pragma solidity ^0.8.9; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * @authors: [@ferittuncer, @hbarcelos] | |
| * @reviewers: [] | |
| * @auditors: [] | |
| * @bounties: [] | |
| * @deployments: [] | |
| * SPDX-License-Identifier: MIT | |
| */ | |
| pragma solidity ^0.8.9; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { useWeb3React } from "@web3-react/core"; | |
| import { BigNumber, Contract, ethers } from "ethers"; | |
| import { useCallback, useEffect, useMemo, useState } from "react"; | |
| import { useContract } from "./contracts/useContract"; | |
| import { | |
| IVonderBabyBoomer, | |
| VonderCharacter, | |
| VonderElement, | |
| VonderGeneration, | |
| } from "types/Vonder"; |