Skip to content

Instantly share code, notes, and snippets.

Avatar
🐍
Focusing

Sanchit Balchandani inovizz

🐍
Focusing
View GitHub Profile
View deploy contract using web3js
const fs = require("fs");
const solc = require('solc')
let Web3 = require('web3');
let web3 = new Web3();
web3.setProvider(new web3.providers.HttpProvider('http://localhost:8545'));
var input = {
'strings.sol': fs.readFileSync('strings.sol', 'utf8'),
'StringLib.sol': fs.readFileSync('StringLib.sol', 'utf8'),
View smart contract test case using async await
'use strict';
const DataStore = artifacts.require('../contracts/DataStore.sol');
const Organisation = artifacts.require('../contracts/Organisation.sol');
const sha3 = require('solidity-sha3').default;
contract('Organisation', function(accounts) {
let bookStore, memberStore, org;
@inovizz
inovizz / bobp-python.md
Created Dec 8, 2017 — forked from sloria/bobp-python.md
A "Best of the Best Practices" (BOBP) guide to developing in Python.
View bobp-python.md

The Best of the Best Practices (BOBP) Guide for Python

A "Best of the Best Practices" (BOBP) guide to developing in Python.

In General

Values

  • "Build tools for others that you want to be built for you." - Kenneth Reitz
  • "Simplicity is alway better than functionality." - Pieter Hintjens
View docker-compose.yml
version: '3.8'
services:
redis:
image: redis:latest
networks:
- main
ports:
- "6379:6379"