Skip to content

Frankencoin-ZCHF/ponder

Repository files navigation

Frankencoin Ponder

Deployment of service

  • Main branch should auto. deploy to: ponder.frankencoin.com
  • test Deployment deploy to: ponder.test.frankencoin.com

Ponder needs .env.local

check out ".env.local" file to adjust environment. For SQLite, REMOVE THE DATABASE_URL LINE.

# Select Profile/Chain
PONDER_PROFILE=polygon

# Mainnet RPC URL used for fetching blockchain data. Alchemy is recommended.
PONDER_RPC_URL_MAINNET=https://eth-mainnet.g.alchemy.com/v2/...
PONDER_RPC_URL_POLYGON=... # For testing purposes only

# (Optional) Postgres database URL. If not provided, SQLite will be used.
DATABASE_URL=

Ponder config

You can adjust the default chain and chain specific parameters in "ponder.config.ts".

// (add custom chain in ./ponder.address.ts)
// mainnet (default), ethereum3, polygon
const chain =
	(process.env.PONDER_PROFILE as string) == 'polygon'
		? polygon
		: (process.env.PONDER_PROFILE as string) == 'ethereum3'
		? ethereum3
		: mainnet;

const CONFIG = {
	[mainnet.id]: {
		rpc: process.env.RPC_URL_MAINNET ?? mainnet.rpcUrls.default.http[0],
		startBlockA: 18451518,
		startBlockB: 18451536,
		blockrange: undefined,
		maxRequestsPerSecond: undefined,
		pollingInterval: undefined,
	},

Add / Adjust custom chain(s)

Edit and add your custom chain: "ponder.chains.ts"

Example:

export const ethereum3 = {
	id: 1337,
	name: 'Ethereum3',
	nativeCurrency: { name: 'Ethereum3', symbol: 'ETH3', decimals: 18 },
	rpcUrls: {
		default: { http: ['https://ethereum3.3dotshub.com'] },
	},
	blockExplorers: {
		default: { name: 'Blockscout', url: 'https://blockscout3.3dotshub.com' },
	},
} as const satisfies Chain;

About

Frankencoin Smart contract indexing service

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published