Skip to content

Instantly share code, notes, and snippets.

@ilyakmet
ilyakmet / Pool.ts
Last active November 15, 2019 21:06
import { PoolContract, PoolInstance} from "../types/truffle-contracts/index";
// tslint:disable-next-line:no-var-requires
const { BN, constants, expectEvent, shouldFail } = require("@openzeppelin/test-helpers");
// tslint:disable-next-line:no-var-requires
const should = require("chai").should();
const Pool = artifacts.require("Pool");
contract("Pool", async ([_, owner, wallet1, wallet2, wallet3, wallet4, wallet5]) => {
let pool: PoolInstance;
@ilyakmet
ilyakmet / wasmRustNodeExample.md
Last active December 19, 2020 17:38
WASM Rust to Node Example

WASM Rust to Node Example

Use only > 8.x.x NodeJS version

Install Rust before using this tutorial: curl https://sh.rustup.rs -sSf | sh

Create dirs:

mkdir wasmRustNodeExample

cd wasmRustNodeExample