Skip to content

Instantly share code, notes, and snippets.

const ethers = require('ethers');
const solc = require('solc');
const fs = require('fs');
const bytecode = fs.readFileSync('path/to/bytecode').toString();
const abi = JSON.parse(fs.readFileSync('path/to/abi'));
const provider = new ethers.providers.JsonRpcProvider('http://localhost:8545'); // Initialize Ethers provider
const signer = new ethers.Wallet('YOUR_PRIVATE_KEY', provider); // Initialize signer
async function deployContract(salt, ...args) {
:sleep 1000ms
aws
:sleep 1000ms
@ccolorado
ccolorado / .vimrc
Created January 4, 2020 06:07
Minimal .vimrc for vim-note and denite conflict
set nocompatible
filetype off
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
Bundle 'gmarik/vundle'
Bundle 'pedrosans/vim-misc'
Bundle 'pedrosans/vim-notes'
@ccolorado
ccolorado / .vimrc
Created January 4, 2020 06:07
Minimal .vimrc for vim-note and denite conflict
set nocompatible
filetype off
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
Bundle 'gmarik/vundle'
Bundle 'pedrosans/vim-misc'
Bundle 'pedrosans/vim-notes'
const pify = require('pify');
const Web3 = require('web3');
const web3 = new Web3(new Web3.providers.HttpProvider("http://localhost:8545"));
const ethAsync = pify(web3.eth);
const ethGetBlock = ethAsync.getBlock;
web3.currentProvider.sendAsync = web3.currentProvider.send;
async function advanceBlock () {
console.log("\tadvancing ");

@Cesar:

  1. task/Add the json_response field to the claiming_attempt_document table.
  • remove claimed_attempt_document.status field

@cesar Configure the deposit amount on a config file Create a function that triggers a deposit event for a given policy X. emit deposit object

@Aduarte