Skip to content

Latest commit

 

History

History
30 lines (24 loc) · 1.49 KB

README.md

File metadata and controls

30 lines (24 loc) · 1.49 KB

district0x ClojureScript libraries demos

Fetches the events from ENS contract using district.server.web3-events. ENS contract: https://etherscan.io/address/0x00000000000c2e074ec69a0dfb2997ba6c7d2e1e#code

Contract data under data/ENS.* are from enscontracts node module

Use:

  1. npx shadow-cljs watch script
  2. node out/d0x-library-demo.js

Output:

library-demo.server-events-demo: starting demo
shadow-cljs - #3 ready!
INFO [district.server.web3-events:29] - web3-events checkpoint file disabled
DEBUG [district.server.smart-contracts:264] - Processing chunk of blocks {:contract :ens, :event :NewOwner, :from 900, :to 900}
DEBUG [district.server.smart-contracts:264] - Processing chunk of blocks {:contract :ens, :event :NewOwner, :from 901, :to 901}
DEBUG [district.server.smart-contracts:264] - Processing chunk of blocks {:contract :ens, :event :NewOwner, :from 902, :to 902}
DEBUG [district.server.smart-contracts:264] - Processing chunk of blocks {:contract :ens, :event :NewOwner, :from 903, :to 903}
<...rest of output omitted...>