Skip to content

Instantly share code, notes, and snippets.

View cmeisl's full-sized avatar

Chris Meisl cmeisl

View GitHub Profile
### Keybase proof
I hereby claim:
* I am cmeisl on github.
* I am bnchris (https://keybase.io/bnchris) on keybase.
* I have a public key ASCVaJ17wpTxEun0jsQKf4yGbs0749TD90mnJeqy_-qZLgo
To claim this, I am signing this object:
@cmeisl
cmeisl / blocknative_config.js
Last active April 25, 2019 22:51
Example file consolidating Assist calls
import bnc from 'bnc-assist'calls
let initializedAssist
// Assist methods
export const initializeAssist = web3 => getAssist(web3) // Call this function as soon as web3 is initialized
export const onboardUser = () => getAssist().onboard()
export const decorateContract = contract => getAssist().Contract(contract)
export const decorateTransaction = txObject => getAssist().Transaction(txObject)
export const getUserState = () => getAssist().getState()
@cmeisl
cmeisl / README.md
Last active June 20, 2019 18:14
Blocknative Assist Documentation

Assist.js

Takes care of onboarding your users, keeping them informed about transaction status and comprehensive usage analytics with minimal setup. Supports web3.js versions 0.20 and 1.0.

note: web3.js 1.0.0 beta versions 38, 39, 40, 41, 42, 43, 44, 45 have bugs when interacting with MetaMask, we recommend you avoid these versions of web3.js

Preview