All packages
polymarket-wallet-factory

polymarket-wallet-factory

colindickson
v1.2.0/13 downloads/Repository

Package ref

polymarket-wallet-factory@v1.2.0

Run package

Start block
latest 200 blocks

README

Polymarket Wallet Factory Substreams Package

Substreams package for extracting events from the Polymarket DepositWalletFactory contract on Polygon.

Contract Information

  • Address: 0x00000000000Fb5C9ADea0298D729A0CB3823Cc07
  • Network: Polygon
  • Initial Block: 84902000
  • Explorer: View on Polygonscan

Available Modules

ModuleDescriptionOutput Type
map_factory_eventsExtracts wallet-factory eventsproto:polymarket.wallet_factory.v1.FactoryEvents

Quick Start

Build the WASM binary:

make build-wallet-factory
# or
cd polymarket-wallet-factory && substreams build

Create the Substreams package:

cd polymarket-wallet-factory && substreams pack

Run the Substreams:

substreams run substreams.yaml map_factory_events \
  --network polygon \
  --start-block 84902000 \
  --stop-block +10000

Event Types

The package extracts the following events:

Factory Events

  • WalletDeployed - A deposit wallet was deployed (wallet, owner, id, implementation)
  • ImplementationAuthorized - A wallet implementation was authorized

Dependencies

  • substreams: ^0.8
  • substreams-ethereum: ^0.12
  • buffa: 0.9

Binary Output

Build artifacts: target/wasm32-unknown-unknown/release/polymarket_wallet_factory.wasm

Modules

Execution graph

3 modules
Show 2 dependencies
map

eth_common:all_events

`all_events` gives you all the events in a block (from successful transactions), with basic block hash/number/timestamp and transaction hash

Output

sf.substreams.ethereum.v1.Events

blockIndex

eth_common:index_events

`index_events` sets the following keys on the block: * Event signatures evt_sig:0x0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef (signature in hex, prefixed by 0x) * Event address evt_addr:0x0123456789abcdef0123456789abcdef01234567 (address in hex, prefixed by 0x)

Output

sf.substreams.index.v1.Keys