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
| /** | |
| *Submitted for verification at BscScan.com on 2020-09-03 | |
| */ | |
| /** | |
| *Submitted for verification at Bscscan.com on 2020-09-03 | |
| */ | |
| pragma solidity ^0.5.16; |
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
| const HDWalletProvider = require('@truffle/hdwallet-provider'); | |
| const infuraKey = ""; | |
| const etherApiKey = ""; | |
| // | |
| const fs = require('fs'); | |
| const mnemonic = fs.readFileSync(".secret").toString().trim(); | |
| module.exports = { | |
| /** | |
| * Networks define how you connect to your ethereum client and let you set the |
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; | |
| abstract contract Context { | |
| function _msgSender() internal view virtual returns (address payable) { | |
| return msg.sender; | |
| } | |
| function _msgData() internal view virtual returns (bytes memory) { | |
| this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 | |
| return msg.data; |
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 DAI is ERC20 { | |
| constructor () public ERC20("Mocked DAI Token", "DAI-T") { | |
| _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
| // File: contracts/EternalStorage.sol | |
| // Initial code from Roman Storm Multi Sender | |
| // To Use this Dapp: https://bulktokensending.github.io/bulktokensending | |
| pragma solidity ^0.6.6; | |
| import 'VonderToken.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
| const ethers = require(`ethers`) | |
| const { ChainId, Token, TokenAmount, Fetcher, Pair, Route, Trade, TradeType, Percent } = | |
| require(`@pancakeswap-libs/sdk`); | |
| const Web3 = require(`web3`); | |
| const { JsonRpcProvider } = require("@ethersproject/providers"); | |
| require(“dotenv”).config() | |
| const provider = new JsonRpcProvider(`https://bsc-dataseed1.binance.org/`); | |
| const web3 = new Web3(`wss://apis.ankr.com/wss/c40792ffe3514537be9fb4109b32d257/946dd909d324e5a6caa2b72ba75c5799/binance/full/main`); |
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 ethers from 'ethers'; | |
| import express from 'express'; | |
| import chalk from 'chalk'; | |
| const app = express(); | |
| // TUK-KKUB LP on Vonder: 0xFB74CAc28EE2635F08C22800CCFD5200cDe52DDF | |
| const WETH = 'KKUB'; | |
| const ERC20 = 'TUK'; | |
| const data = { |
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
| export default function useWrapCallback( | |
| inputCurrency: Currency | undefined, | |
| outputCurrency: Currency | undefined, | |
| typedValue: string | undefined | |
| ): { wrapType: WrapType; execute?: undefined | (() => Promise<void>); inputError?: string } { | |
| const { chainId, account } = useActiveWeb3React() | |
| const wethContract = useWETHContract() | |
| const balance = useCurrencyBalance(account ?? undefined, inputCurrency) | |
| // we can always parse the amount typed as the input currency, since wrapping is 1:1 | |
| const inputAmount = useMemo(() => tryParseAmount(typedValue, inputCurrency), [inputCurrency, typedValue]) |
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
| export enum ChainId { | |
| Mainnet = 1, | |
| Ropsten = 3, | |
| Rinkeby = 4, | |
| Goerli = 5, | |
| Kovan = 42, | |
| BSC = 56, | |
| xDai = 100, | |
| Polygon = 137, | |
| Mumbai = 80001, |
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.6.0; | |
| /** | |
| * @dev Wrappers over Solidity's arithmetic operations with added overflow | |
| * checks. | |
| * | |
| * Arithmetic operations in Solidity wrap on overflow. This can easily result |