Skip to content

Commit

Permalink
cloud-functions: rm getSuiEvents (build issues)
Browse files Browse the repository at this point in the history
  • Loading branch information
kev1n-peters authored and evan-gray committed Mar 20, 2024
1 parent 24e9ffb commit 214e071
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 465 deletions.
3 changes: 1 addition & 2 deletions cloud_functions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"scripts": {
"build": "tsc",
"dev": "ts-node src/index.ts",
"start": "npx functions-framework --target=getSuiEvents [--signature-type=http]",
"start": "npx functions-framework --target=getSolanaEvents [--signature-type=http]",
"deploy": "bash scripts/deploy.sh",
"gcp-build": "npm i ./dist/src/wormhole-foundation-wormhole-monitor-common-0.0.1.tgz ./dist/src/wormhole-foundation-wormhole-monitor-database-0.0.1.tgz"
},
Expand All @@ -18,7 +18,6 @@
"@google-cloud/functions-framework": "^3.1.3",
"@google-cloud/pubsub": "^3.4.1",
"@google-cloud/storage": "^6.8.0",
"@mysten/sui.js": "^0.45.0",
"@solana/web3.js": "^1.87.3",
"axios": "^1.5.0",
"borsh": "^1.0.0",
Expand Down
1 change: 0 additions & 1 deletion cloud_functions/scripts/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,6 @@ gcloud functions --project "$GCP_PROJECT" deploy refresh-todays-token-prices --e
gcloud functions --project "$GCP_PROJECT" deploy update-token-metadata --entry-point updateTokenMetadata --runtime nodejs18 --trigger-http --no-allow-unauthenticated --timeout 300 --memory 256MB --region europe-west3 --set-env-vars PG_USER=$PG_USER,PG_PASSWORD=$PG_PASSWORD,PG_DATABASE=$PG_DATABASE,PG_HOST=$PG_HOST,PG_TOKEN_METADATA_TABLE=$PG_TOKEN_METADATA_TABLE
gcloud functions --project "$GCP_PROJECT" deploy wormchain-monitor --entry-point wormchainMonitor --runtime nodejs18 --trigger-http --no-allow-unauthenticated --timeout 300 --memory 256MB --region europe-west3 --set-env-vars WORMCHAIN_SLACK_CHANNEL_ID=$WORMCHAIN_SLACK_CHANNEL_ID,WORMCHAIN_SLACK_POST_URL=$WORMCHAIN_SLACK_POST_URL,WORMCHAIN_SLACK_BOT_TOKEN=$WORMCHAIN_SLACK_BOT_TOKEN,WORMCHAIN_PAGERDUTY_ROUTING_KEY=$WORMCHAIN_PAGERDUTY_ROUTING_KEY,WORMCHAIN_PAGERDUTY_URL=$WORMCHAIN_PAGERDUTY_URL
gcloud functions --project "$GCP_PROJECT" deploy get-solana-events --entry-point getSolanaEvents --runtime nodejs18 --trigger-http --allow-unauthenticated --timeout 300 --memory 256MB --region europe-west3 --set-env-vars SOLANA_RPC=$SOLANA_RPC
gcloud functions --project "$GCP_PROJECT" deploy get-sui-events --entry-point getSuiEvents --runtime nodejs18 --trigger-http --allow-unauthenticated --timeout 300 --memory 256MB --region europe-west3

if [ "$NETWORK" == "MAINNET" ]; then
echo "Finished deploying MAINNET functions"
Expand Down
279 changes: 0 additions & 279 deletions cloud_functions/src/getSuiEvents.ts

This file was deleted.

2 changes: 0 additions & 2 deletions cloud_functions/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ export const { getReobserveVaas } = require('./getReobserveVaas');
export const { wormchainMonitor } = require('./wormchainMonitor');
export const { getLatestTokenData } = require('./getLatestTokenData');
export const { getSolanaEvents } = require('./getSolanaEvents');
export const { getSuiEvents } = require('./getSuiEvents');

// Register an HTTP function with the Functions Framework that will be executed
// when you make an HTTP request to the deployed function's endpoint.
Expand All @@ -52,4 +51,3 @@ functions.http('getReobserveVaas', getReobserveVaas);
functions.http('wormchainMonitor', wormchainMonitor);
functions.http('latestTokenData', getLatestTokenData);
functions.http('getSolanaEvents', getSolanaEvents);
functions.http('getSuiEvents', getSuiEvents);
Loading

0 comments on commit 214e071

Please sign in to comment.