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