package
0.7.1-alpha
Repository: https://github.com/vulcanize/ipld-eth-indexer.git
Documentation: pkg.go.dev

# Functions

FetchIPLD is used to retrieve an ipld from Postgres blockstore with the provided tx and cid string.
FetchIPLDByMhKey is used to retrieve an ipld from Postgres blockstore with the provided tx and mhkey string.
GenerateDataTypeFromString.
GetEthNodeAndClient returns eth node info and client from path url.
HandleZeroAddr will return an empty string for a 0 value address.
HandleZeroAddrPointer will return an emtpy string for a nil address pointer.
ListContainsString used to check if a list of strings contains a particular string.
MultihashKeyFromCID converts a cid into a blockstore-prefixed multihash db key string.
MultihashKeyFromCIDString converts a cid string into a blockstore-prefixed multihash db key string.
MultihashKeyFromKeccak256 converts keccak256 hash bytes into a blockstore-prefixed multihash db key string.
No description provided by the author
PublishDirect diretly writes a previously derived mhkey => value pair to the ipld database.
PublishIPLD is used to insert an ipld into Postgres blockstore with the provided tx.
PublishMockIPLD writes a mhkey-data pair to the public.blocks table so that test data can FK reference the mhkey.
PublishRaw derives a cid from raw bytes and provided codec and multihash type, and writes it to the db tx.
Rollback sql transaction and log any error.
SetupDB is use to setup a db for watcher tests.
No description provided by the author
No description provided by the author
TestCID creates a basic CID for testing purposes.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
Env variables.
Env variables.
Env variables.
Env variables.
Env variables.
Env variables.
Env variables.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Env variables.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Type aliases

ChainType enum for specifying blockchain.
DataType is an enum to loosely represent type of chain data.