Skip to content

Commit 214e071

Browse files
kev1n-petersevan-gray
authored andcommitted
cloud-functions: rm getSuiEvents (build issues)
1 parent 24e9ffb commit 214e071

File tree

5 files changed

+1
-465
lines changed

5 files changed

+1
-465
lines changed

cloud_functions/package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"scripts": {
88
"build": "tsc",
99
"dev": "ts-node src/index.ts",
10-
"start": "npx functions-framework --target=getSuiEvents [--signature-type=http]",
10+
"start": "npx functions-framework --target=getSolanaEvents [--signature-type=http]",
1111
"deploy": "bash scripts/deploy.sh",
1212
"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"
1313
},
@@ -18,7 +18,6 @@
1818
"@google-cloud/functions-framework": "^3.1.3",
1919
"@google-cloud/pubsub": "^3.4.1",
2020
"@google-cloud/storage": "^6.8.0",
21-
"@mysten/sui.js": "^0.45.0",
2221
"@solana/web3.js": "^1.87.3",
2322
"axios": "^1.5.0",
2423
"borsh": "^1.0.0",

cloud_functions/scripts/deploy.sh

-1
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,6 @@ gcloud functions --project "$GCP_PROJECT" deploy refresh-todays-token-prices --e
226226
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
227227
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
228228
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
229-
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
230229

231230
if [ "$NETWORK" == "MAINNET" ]; then
232231
echo "Finished deploying MAINNET functions"

cloud_functions/src/getSuiEvents.ts

-279
This file was deleted.

cloud_functions/src/index.ts

-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ export const { getReobserveVaas } = require('./getReobserveVaas');
2525
export const { wormchainMonitor } = require('./wormchainMonitor');
2626
export const { getLatestTokenData } = require('./getLatestTokenData');
2727
export const { getSolanaEvents } = require('./getSolanaEvents');
28-
export const { getSuiEvents } = require('./getSuiEvents');
2928

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

0 commit comments

Comments
 (0)