Module enigma_tools_u::web3_utils::w3utils[][src]

Web3 utility functions for general purposes.

Structs

DeployParams

Parameters for deploying a contract

Traits

Keccak256

hash traits, same as ethereum's hash function

Functions

address_to_string_addr

turn an Address to a string address and remove the 0x

connect

connect to ethereum

deploy_contract

deploy any smart contract

deployed_contract

connect to an existing deployed smart contract

filter_blocks

TESTING: filter the network for events

get_accounts

Get list of current accounts from web3 isolated

load_contract_abi_bytecode

Given a path load EnigmaContract.json and extract the ABI and the bytecode

to_keccak256

String into keccak256/sha3 solidity compatible

trunace_bytecode

private:: truncate the bytecode from solidity json this method does 2 things: