Commit Graph

95 Commits

Author SHA1 Message Date
Kevin Peters e2383e257b cloud_functions: Fixed ambiguous packages, CoinGeckoID not required for transfers
The CoinGeckoID is overridden in the allowlist.
2022-10-26 15:56:10 -04:00
Christine Eun 84507c0a04 cloud_functions: Added Aptos and Xpla support 2022-10-26 15:56:10 -04:00
kev1n-peters 35b46ae205
cloud_functions: Performance enhancements to handle increased message volume (#1688)
TVL functions no longer scan the table for PythNet messages
Added a light-weight transaction-totals function
2022-10-07 09:33:10 -05:00
ckeun 69962f96f5
cloud_functions: near support (#1614)
* cloud_functions: near support

* cloud_functions: moonbeam support

* cloud_functions: fix lint issue

* Added algorand & near wormhole addresses for their tokens

* Added near tokens to tokenAddressExceptions

* Use wormhole go sdk

Co-authored-by: Kevin Peters <kpeters@jumptrading.com>
2022-09-27 16:38:43 -05:00
ckeun 9ba75ddb97
Updated allow list to include native & stables (#1436) 2022-08-16 10:30:08 -05:00
Kevin Peters 5c1a2fe182 cloud_functions: Use CoinGecko API IDs from allowlist in TVL calculations
Specify the CoinGecko API ID for tokens in the allowlist.
It's useful to manually specify the API ID to in certain cases.
2022-08-03 11:58:18 -04:00
Kevin Peters eacb7c3f06 cloud_functions: Added LOAD_CACHE env variable
Can be set to false to effectively rebuild cache files.
2022-07-20 16:09:11 -04:00
Kevin Peters c5a7d3e517 cloud_functions: use daily token prices to compute cumulative TVL
Use daily token prices to compute TVL instead of the prices fetched
at token transfer time, if available.

Added inactive tokenlist to exclude tokens that have essentially been
deactivated by CoinGecko (market data no longer available).
2022-07-19 16:45:21 -04:00
kev1n-peters cbc92a9571
cloud_functions: terra2 support (#1349) 2022-07-14 12:27:12 -05:00
claudijd 8221708ef0 Move from ADD to COPY on Dockerfiles 2022-07-13 09:27:15 -04:00
kev1n-peters c97a8f6f45
cloud_functions: tokenAllowlist implementation (#1339) 2022-07-11 12:56:30 -05:00
kev1n-peters 6b20aab8ab
cloud_functions: Added new chains (#1333) 2022-07-05 18:56:43 +02:00
kev1n-peters 260b0c7c0b
cloud_functions: Override terra-classic LUNA CoinGeckoId (#1319) 2022-06-30 15:50:22 -05:00
kev1n-peters 6c8ae81fe4
cloud_functions: notional-tvl response includes token decimals (#1274) 2022-06-15 15:12:35 -05:00
kev1n-peters a5c7898de9
cloud_functions: Added fake Dai Stablecoin on BSC (#1211) 2022-05-20 08:03:14 -05:00
ckeun c0a26dcf74
Added fake btc on terra to tokensToSkip list (#1194) 2022-05-16 15:09:14 -05:00
Kevin Peters bc4ce9cb86 cloud_functions: don't add today's totals to warm cache
Don't add today's totals to the warm cache, otherwise incomplete totals may
exist for today's date in the cache tomorrow. Only adding the totals to the
warm cache for yesterday or older fixes this.
2022-05-13 19:53:18 -04:00
kev1n-peters 2a863a7ca3
cloud_functions: Added tokens to skip (#1152) 2022-05-04 22:11:33 +00:00
kev1n-peters 3ebd347181
cloud_functions: Added lightweight notional-transferred-from function (#1125) 2022-05-03 16:29:33 -05:00
kev1n-peters 3023b4a375
cloud_functions: totals cache should be overwritten for skipDates (#1147) 2022-05-03 15:40:56 -05:00
kev1n-peters fb0bf2cd70
cloud_functions: Skip tokens in notional-transferred-to function (#1146) 2022-05-03 08:56:28 -05:00
kev1n-peters 76ade1b305
cloud_functions: notional-tvl-cumulative optimizations (#1118)
Added two entry points: ComputeTvlCumulative and TvlCumulative.
The first computes the result and writes it to the results cache -
intended to be invoked periodically by a scheduled task.
The second reads from the results cache and returns it as the response.
2022-04-29 10:02:51 -05:00
justinschuldt 19fb468ceb handle CG 401s and remove noisy logs 2022-04-28 08:34:54 -05:00
justinschuldt c5c30ab076 blacklist fake sushi from TVL calc 2022-04-28 08:34:04 -05:00
Kevin Peters 2c76aabf6e cloud_functions: Split notional-tvl into read and write (to cache) entry points 2022-04-25 17:33:18 -05:00
ceun a4854f9368 Added fake voxel to tokensToSkip list 2022-04-25 10:02:02 -05:00
ckeun a3886e3c20
Added fake testWETH on poly to tokensToSkip list (#1103) 2022-04-22 09:12:54 -05:00
kev1n-peters e631e32116
cloud_functions: notional-transferred skipTokens support (#1088) 2022-04-18 17:48:14 -04:00
justinschuldt 8667a6894a cloud functions - bump wormhole/node dep 2022-04-14 08:52:50 -05:00
justinschuldt 890f1a6469 cloud functions - add aurora 2022-04-14 08:52:50 -05:00
Kevin Peters 0eb4fb9aae cloud_functions: Added totalsOnly param to notional-tvl-cumulitive
Consumers may only care about the totals which results in a drastically
smaller response payload size.
2022-04-13 21:09:29 -05:00
justinschuldt 6e58ae511d cloud functions - tvl blacklist case insensitive 2022-04-13 17:24:17 -05:00
justinschuldt 52072706a1 cloud functions - blacklist token from TVL calc 2022-04-13 16:55:53 -05:00
ceun 33e9f4d57a Added fake WFTM to tokensToSkip list 2022-03-29 10:06:10 -05:00
ceun a080f6d2bd Added fake WFTM to tokensToSkip list 2022-03-29 10:06:10 -05:00
Justin Schuldt 42284a25e3 remote devnet config - GCP VM 2022-03-18 10:49:34 -05:00
justinschuldt 6b6d172262 cloud functions - quicker initialize 2022-03-17 18:25:48 -05:00
justinschuldt b2d1ea3e72 cloud functions - 60 second context deadline 2022-03-17 18:25:48 -05:00
justinschuldt d95e82b00b cloud functions - docs update 2022-03-17 18:25:48 -05:00
justinschuldt 69c41d901e cloud functions - local dev launch config 2022-03-17 18:25:48 -05:00
justinschuldt fe12f78cdf cloud functions - daily TVL smaller response 2022-03-17 18:25:48 -05:00
justinschuldt c478bdd552 cloud functions - rm noisy logs 2022-03-17 18:25:48 -05:00
justinschuldt bd62e1fba1 cloud functions - rm unsed deps (go mod tidy) 2022-03-17 18:25:48 -05:00
justinschuldt 57c06dea11 cloud functions - handle 2 digit chainIDs 2022-03-17 18:25:48 -05:00
Kevin Peters d96afca105 cloud_functions: use lowercase emitter addresses 2022-03-10 16:32:28 -06:00
justinschuldt 062b339365 add fantom addresses to cloud function 2022-03-10 14:26:41 -06:00
justinschuldt cff49549db cloud function housekeeping 2022-03-10 14:26:41 -06:00
Evan Gray a3272dce4a remove pyth2wormhole 2022-03-07 10:23:34 -05:00
justinschuldt 1ac00415e9 add functions-framework dep
commit-id:f71b8422
2022-03-02 13:18:16 -06:00
justinschuldt a89350745e Explorer functions - use GSC for cache documents
commit-id:08e1c0c3
2022-03-02 13:18:16 -06:00