$ npx hardhat run scripts/deploy.ts --network mvm
No need to generate any newer typings.
Deploying...
Ens registry deployed at 0x157682fa262E96BFC62a0541466B9Db21ABba94D
Ens resolver deployed for subdomain dao at 0x65997E3FF2649bA9A407d9863B250C3903641dfF
Ens resolver deployed for subdomain plugin at 0x50BD1516c6E7b377003Bf334F34Be371520d4011
Warning: Potentially unsafe deployment of @aragon/osx/core/dao/DAO.sol:DAO
You are using the `unsafeAllow.constructor` flag.
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 sys | |
import json | |
import math | |
import time | |
import uuid | |
import base64 | |
import hashlib | |
import asyncio | |
import requests | |
import datetime |
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
alias updateMixin="proxychains curl -L -o mixin_desktop.deb $(curl -s https://api.github.com/repos/MixinNetwork/flutter-app/releases/latest | grep "browser_download_url.*mixin_desktop_linux_amd64.deb" | cut -d : -f 2,3 | tr -d \") && sudo dpkg -i mixin_desktop.deb && rm mixin_desktop.deb" |
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
// $1.23 | |
export const formatUSMoney = (x: string | number) => { | |
return new Intl.NumberFormat('en-US', { style: 'currency', currency: 'USD' }).format(Number(x)) | |
} | |
// $123.23M | |
export const formatCompactUSD = (x: number) => { | |
return new Intl.NumberFormat('en-US', { style: 'currency', currency: 'USD', maximumSignificantDigits: 2, notation: "compact" , compactDisplay: "short" }).format(x) | |
} |
https://askubuntu.com/questions/1035209/how-to-turn-off-screen-rotation-in-ubuntu-18-04-lts
$ sudo systemctl stop iio-sensor-proxy.service
$ sudo systemctl disable iio-sensor-proxy.service
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
# @version 0.2.4 | |
# (c) Curve.Fi, 2020 | |
# Pool for DAI/USDC/USDT | |
from vyper.interfaces import ERC20 | |
interface CurveToken: | |
def totalSupply() -> uint256: view | |
def mint(_to: address, _value: uint256) -> bool: nonpayable | |
def burnFrom(_to: address, _value: uint256) -> bool: nonpayable |
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
# @version 0.3.1 | |
# (c) Curve.Fi, 2021 | |
# Pool for USDT/BTC/ETH or similar | |
interface ERC20: # Custom ERC20 which works for USDT, WETH and WBTC | |
def transfer(_to: address, _amount: uint256): nonpayable | |
def transferFrom(_from: address, _to: address, _amount: uint256): nonpayable | |
def balanceOf(_user: address) -> uint256: view | |
interface CurveToken: |
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 axios from 'axios'; | |
import { ethers } from 'ethers'; | |
//import ERC721ABI from '../assets/erc721.json'; | |
export async function getNFTsFromExplorer(userAddr, provider){ | |
if (!userAddr) throw new Error('UserAddr is required'); | |
if (!provider) throw new Error('Provider is required'); | |
const fetchTokens = await getTokensFromExplorer(userAddr); | |
const filteredTokens = filterTokens(fetchTokens); | |
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
git filter-branch --index-filter \ | |
'git rm -rf --cached --ignore-unmatch path_to_file' HEAD |