@drizzle-utils/contract-state-stream

0.2.1 • Public • Published

@drizzle-utils/contract-state-stream

A tool for streaming/listening to contract state.

Usage

You'll need to pass in the newBlock$ that you can get from the @drizzle-utils/new-block-stream package.

import createContractState$ from "@drizzle-utils/contract-state-stream";

const state$ = createContractState$({
  newBlock$,  // from @drizzle-utils/new-block-stream package
  artifact,   // Truffle JSON artifact w/ AST
  provider,   // any valid Ethereum provider
});

Readme

Keywords

none

Package Sidebar

Install

npm i @drizzle-utils/contract-state-stream

Weekly Downloads

1

Version

0.2.1

License

MIT

Unpacked Size

661 kB

Total Files

29

Last publish

Collaborators

  • adrianmcli
  • cds-amal
  • discriskandbisque
  • honestbonsai