Project website: mpv.io
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.0; | |
| contract Token { | |
| address public owner; | |
| uint256 public totalSupply; | |
| mapping (address => uint256) public balanceOf; | |
| mapping (address => mapping (address => uint256)) public allowance; | |
| string public symbol = "TOKEN"; | |
| uint256 public decimals = 18; |
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
| // open https://faucet.matic.network/ | |
| // enter public address | |
| // got to devtools and run script | |
| setInterval (async ()=> { | |
| await document.getElementsByClassName("button is-link")[0].click(); | |
| await new Promise(resolve => setTimeout(resolve, 4000)); | |
| await document.getElementsByClassName("button is-success")[0].click(); | |
| }, 70000); |
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
| use borsh::{BorshDeserialize, BorshSerialize}; | |
| use std::collections::HashMap; | |
| use std::convert::TryInto; | |
| use solana_program::{ | |
| account_info::{next_account_info, AccountInfo}, | |
| entrypoint, | |
| entrypoint::ProgramResult, | |
| msg, | |
| program_error::ProgramError, |
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 Web3 from "web3"; | |
| import HDWalletProvider from "@truffle/hdwallet-provider"; | |
| import { Biconomy } from "@biconomy/mexa"; | |
| const infura = "https://goerli.infura.io/v3/f0493a02561f4419be93dde46cc584c6"; | |
| const pkey = ""; | |
| const main = async () => { | |
| console.log("start"); | |
| let provider = new HDWalletProvider(pkey, infura); |
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 React, { useState, useEffect } from "react"; | |
| import "../App.css"; | |
| import Button from "@material-ui/core/Button"; | |
| import { | |
| NotificationContainer, | |
| NotificationManager | |
| } from "react-notifications"; | |
| import "react-notifications/lib/notifications.css"; | |
| import Backdrop from '@material-ui/core/Backdrop'; | |
| import CircularProgress from '@material-ui/core/CircularProgress'; |
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 | |
| // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) | |
| pragma solidity ^0.8.0; | |
| /** | |
| * @dev Interface of the ERC20 standard as defined in the EIP. | |
| */ | |
| interface IERC20 { | |
| /** |
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
| // File: @openzeppelin/contracts/utils/Counters.sol | |
| // OpenZeppelin Contracts v4.4.1 (utils/Counters.sol) | |
| pragma solidity ^0.8.0; | |
| /** | |
| * @title Counters |
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
| NYa2X7mKidSwSTPtEN3RJVm5GXpdoLf9HN |