Skip to content

karolsudol/vitalik

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VITALIK



Geth example of EMV contract listener that executues upon received real time events:

  1. BQ data insterts from contarcts logs and read funcs
  2. reads from contract to check logs vs contracts state vars
  3. publish messages to GCPs PUB/SUB
  4. receives messages from GCPs PUB/SUB
  5. writes to the contracts given received params

smart-contract abi example is deployed and verified on:

logic

  • smart contract allows users to save for a specific goal, which funds are stored in the contaratcs escrow
  • users can scheule multiple payments subcriptions against these goals
  • built in order to execute off-chain inetgrators as per scheduled plan and provide business analytics

dependencies:

  • PRIVATE_KEY="xxx" in .env
  • GCP_worker.json in global with rights to read/write to PUB/SUB and BQ
  • BQ-TABLES as per schema
  • topic-sub as pub/sub topic
  • gcp-project-id-sub as pub/sub topic

run:

  • logs listener, contract reader ,bq inserter and pubsub publishergo run cmd/sub/main.go -config=POLYGON-USDC-PROD | -config=POLYGON-USDC-TEST
  • pubsub listerner and contaract writergo run cmd/pub/main.go

About

a contract's listener - executor - db and pub-sub writter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published