revert: migrate to api v2

This commit is contained in:
g1nt0ki
2024-06-10 20:16:16 +02:00
parent 12078a0aed
commit 445f915194

View File

@@ -89,94 +89,94 @@ functions:
- http:
path: /{params+}
method: any
# stablecoinChart:
# handler: src/getStablecoinChart.default
# timeout: 60
stablecoinChart:
handler: src/getStablecoinChart.default
timeout: 60
memorySize: 3000
events:
- http:
path: stablecoincharts/{chain}
method: get
stablecoinDominance:
handler: src/getChainDominance.default
timeout: 60
memorySize: 3000
events:
- http:
path: stablecoindominance/{chain}
method: get
stablecoins:
handler: src/getStablecoins.default
timeout: 120
memorySize: 3000
events:
- http:
path: stablecoins
method: get
config:
handler: src/config.default
timeout: 120
memorySize: 2000
events:
- http:
path: config
method: get
stablecoin:
handler: src/getStablecoin.default
timeout: 120
memorySize: 2000
events:
- http:
path: stablecoin/{stablecoin}
method: get
stablecoinchains:
handler: src/getStablecoinChains.default
timeout: 60
memorySize: 2000
events:
- http:
path: stablecoinchains
method: get
stablecoinprices:
handler: src/getStablecoinPrices.default
timeout: 60
memorySize: 2000
events:
- http:
path: stablecoinprices
method: get
storeRates:
handler: src/storeRates.default
timeout: 60
memorySize: 3000
events:
- schedule: cron(30 0 * * ? *)
checkRecentEntries:
handler: src/checkRecentDbEntries.default
timeout: 60
memorySize: 3000
events:
- schedule: cron(30 */6 * * ? *)
rates:
handler: src/getRates.default
timeout: 60
memorySize: 2000
events:
- http:
path: rates
method: get
# storePeggedAssets:
# handler: src/storePeggedAssets.default
# timeout: 900
# memorySize: 3000
# events:
# - http:
# path: stablecoincharts/{chain}
# method: get
# stablecoinDominance:
# handler: src/getChainDominance.default
# timeout: 60
# memorySize: 3000
# events:
# - http:
# path: stablecoindominance/{chain}
# method: get
# stablecoins:
# handler: src/getStablecoins.default
# timeout: 120
# memorySize: 3000
# events:
# - http:
# path: stablecoins
# method: get
# config:
# handler: src/config.default
# timeout: 120
# environment:
# OUTDATED_WEBHOOK: ${env:OUTDATED_WEBHOOK}
# triggerStorePegged:
# handler: src/triggerStorePegged.default
# timeout: 900
# memorySize: 2000
# events:
# - http:
# path: config
# method: get
# stablecoin:
# handler: src/getStablecoin.default
# timeout: 120
# memorySize: 2000
# events:
# - http:
# path: stablecoin/{stablecoin}
# method: get
# stablecoinchains:
# handler: src/getStablecoinChains.default
# timeout: 60
# memorySize: 2000
# events:
# - http:
# path: stablecoinchains
# method: get
# stablecoinprices:
# handler: src/getStablecoinPrices.default
# timeout: 60
# memorySize: 2000
# events:
# - http:
# path: stablecoinprices
# method: get
# storeRates:
# handler: src/storeRates.default
# timeout: 60
# memorySize: 3000
# events:
# - schedule: cron(30 0 * * ? *)
# checkRecentEntries:
# handler: src/checkRecentDbEntries.default
# timeout: 60
# memorySize: 3000
# events:
# - schedule: cron(30 */6 * * ? *)
# rates:
# handler: src/getRates.default
# timeout: 60
# memorySize: 2000
# events:
# - http:
# path: rates
# method: get
# # storePeggedAssets:
# # handler: src/storePeggedAssets.default
# # timeout: 900
# # memorySize: 3000
# # environment:
# # OUTDATED_WEBHOOK: ${env:OUTDATED_WEBHOOK}
# # triggerStorePegged:
# # handler: src/triggerStorePegged.default
# # timeout: 900
# # memorySize: 2000
# # events:
# # - schedule: cron(40 * * * ? *)
# - schedule: cron(40 * * * ? *)
# alertOutdated:
# handler: src/alertOutdated.default
# timeout: 60