Csongor Kiss 7e212fa739 terra/nft_bridge: Implement nft-bridge for terra (#698) hace 3 años
..
.vscode 8931153f7e BigTable: PubSub trigger after decoding payload hace 3 años
cmd 5c8f1eb9a2 BigTable: get solana address from token account hace 3 años
.gcloudignore fa1252ace4 BigTable: flat file cache + cumulative endpoints hace 3 años
.gitignore 6583771813 BigTable: misc code cleanup and log improvements hace 3 años
Dockerfile fc1e162f3b devnet: simplify cloud function setup hace 3 años
README.md 024ced81d9 PubSub infra for bigtable data enrichment hace 3 años
addresses-transferred-to-cumulative.go fa1252ace4 BigTable: flat file cache + cumulative endpoints hace 3 años
addresses-transferred-to.go fa1252ace4 BigTable: flat file cache + cumulative endpoints hace 3 años
bigtable-endpoints.md 71dbe80aae BigTable historical queries hace 4 años
external-data.go 5c8f1eb9a2 BigTable: get solana address from token account hace 3 años
findvalues.go a8226c488b BigTable: new endpoint to query by cell value hace 3 años
go.mod fa1252ace4 BigTable: flat file cache + cumulative endpoints hace 3 años
go.sum fa1252ace4 BigTable: flat file cache + cumulative endpoints hace 3 años
nfts.go 95afe6cdbb BigTable: endpoint for NFT transfer stats hace 3 años
notional-transferred-to-cumulative.go fa1252ace4 BigTable: flat file cache + cumulative endpoints hace 3 años
notional-transferred-to.go fa1252ace4 BigTable: flat file cache + cumulative endpoints hace 3 años
notional-transferred.go 24053368d5 BigTable: consistent keys in notional response hace 3 años
process-transfer.go 6583771813 BigTable: misc code cleanup and log improvements hace 3 años
process-vaa.go 7e212fa739 terra/nft_bridge: Implement nft-bridge for terra (#698) hace 3 años
readrow.go c4bced0e52 BigTable: query optimizations and return payloads hace 3 años
recent.go 64078945c4 remove SignedVAA from /recent response hace 4 años
shared.go 95afe6cdbb BigTable: endpoint for NFT transfer stats hace 3 años
totals.go fa1252ace4 BigTable: flat file cache + cumulative endpoints hace 3 años
transaction.go c4bced0e52 BigTable: query optimizations and return payloads hace 3 años

README.md

Google Cloud function for reading BigTable

This is a reference implementaion for getting data out of BigTable.

deploying

First deploy (creation) must include all the flags to configure the environment:

gcloud functions --project your-project deploy testnet --region europe-west3 --entry-point Entry --runtime go116 --trigger-http --allow-unauthenticated --service-account=your-readonly@your-project.iam.gserviceaccount.com --update-env-vars GCP_PROJECT=your-project,BIGTABLE_INSTANCE=wormhole-testnet

gcloud functions --project your-project deploy processvaa-testnet --region europe-west3 --entry-point ProcessVAA --runtime go116 --trigger-topic new-vaa-testnet --service-account=your-readonly@your-project.iam.gserviceaccount.com --update-env-vars GCP_PROJECT=your-project,BIGTABLE_INSTANCE=wormhole-testnet

Subsequent deploys (updates) only need include flags to indentify the resource for updating: project, region, name.

gcloud functions --project your-project deploy testnet --region europe-west3 --entry-point Entry

gcloud functions --project your-project deploy processvaa-testnet --region europe-west3 --entry-point ProcessVAA

invocation

All routes accept their input(s) as query parameters, or request body. Just two different ways of querying:

GET

curl "https://region-project-id.cloudfunctions.net/testnet/readrow?emitterChain=2&emitterAddress=000000000000000000000000e982e462b094850f12af94d21d470e21be9d0e9c&sequence=0000000000000006"

POST

curl -X POST  https://region-project-id.cloudfunctions.net/testnet/readrow \
-H "Content-Type:application/json" \
-d \
'{"emitterChain":"2", "emitterAddress":"000000000000000000000000e982e462b094850f12af94d21d470e21be9d0e9c", "sequence":"0000000000000006"}'

See ./bigtable-endpoints.md for API patterns