This file contains 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
from web3 import Web3 | |
import json | |
from threading import Thread | |
from queue import Queue | |
# Connect to an Ethereum node | |
infura_url = "https://mainnet.infura.io/v3/5708c51bf624479984fd7b28fc4c5f7c" | |
web3 = Web3(Web3.HTTPProvider(infura_url)) | |
# Ensure connection is established |
This file contains 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
#!/usr/bin/env sh | |
repos='bridge bridge-react chat cli coreth dao docs exchange explorer faucet finance gsn indexer lattice lpm luxjs marketplace multiparty netrunner netrunner-sdk node oraclevm plugins-core safe safe-ios sites standard subnet-evm town ui vault vmsdk wallet zchain' | |
for r in $repos; | |
do git clone https://github.com/luxdefi/$r | |
done |
This file contains 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.12; | |
import { UniswapV2Pair } from "./uniswapv2/UniswapV2Pair.sol"; | |
import { IUniswapV2Factory } from "./uniswapv2/interfaces/IUniswapV2Factory.sol"; | |
import { IUniswapV2Router01 } from "./uniswapv2/interfaces/IUniswapV2Router01.sol"; | |
import { TransferHelper } from "./uniswapv2/libraries/TransferHelper.sol"; | |
import { IERC20 } from "./uniswapv2/interfaces/IERC20.sol"; | |
import { SafeMath } from "./uniswapv2/libraries/SafeMath.sol"; |
This file contains 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
{ | |
"____comment": "This file was generated with eosio-abigen. DO NOT EDIT Thu Jan 31 12:11:35 2019", | |
"version": "eosio::abi/1.1", | |
"structs": [ | |
{ | |
"name": "close", | |
"base": "", | |
"fields": [ | |
{ | |
"name": "owner", |
This file contains 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 | |
def complete(argv, parser): | |
"""Return completions for commandline.""" | |
if not argv[1:]: | |
return | |
if not argv[1] == 'complete': | |
return |
This file contains 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
from tabulate import tabulate | |
from collections import Iterable | |
def attr(obj, a): | |
""" | |
Returns value of attribute on an object, calling attribute if necessary. | |
""" | |
v = getattr(obj, a, None) | |
if callable(v): |
This file contains 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
license: mit |
This file contains 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
# Install homebrew | |
ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go)" | |
export PATH=/usr/local/bin:$PATH | |
# Use homebrew to install a few necessities | |
brew install libevent | |
brew link libevent | |
brew install \ | |
ack \ |
This file contains 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
package gochimp3 | |
import ( | |
"encoding/json" | |
"strings" | |
"time" | |
) | |
func (address *Address) MarshalJSON() ([]byte, error) { | |
tmp := struct { |
NewerOlder