Skip to content

Commit

Permalink
remove connect-sdk dep, restore typescript version
Browse files Browse the repository at this point in the history
  • Loading branch information
barnjamin committed Oct 23, 2023
1 parent 9f23d57 commit 1af2668
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 144 deletions.
146 changes: 8 additions & 138 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
},
"devDependencies": {
"prettier": "^2.8.1",
"typescript": "^5.2.2"
"typescript": "^4.9.4"
}
}
1 change: 0 additions & 1 deletion watcher/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
"@google-cloud/pubsub": "^3.4.1",
"@mysten/sui.js": "^0.33.0",
"@solana/web3.js": "^1.73.0",
"@wormhole-foundation/connect-sdk": "^0.1.6-beta.1",
"@wormhole-foundation/wormhole-monitor-common": "^0.0.1",
"algosdk": "^2.4.0",
"aptos": "^1.4.0",
Expand Down
4 changes: 1 addition & 3 deletions watcher/scripts/checkSolana.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@ import * as dotenv from 'dotenv';
dotenv.config();

import { SolanaWatcher } from '../src/watchers/SolanaWatcher';
import { CONFIG } from '@wormhole-foundation/connect-sdk';

// Temporary script to test SolanaWatcher for lookup addresses
(async () => {
const conf = CONFIG.Testnet.chains.Solana!;
const sw = new SolanaWatcher(conf.rpc, conf.contracts.coreBridge);
const sw = new SolanaWatcher();
const msgs = await sw.getMessagesForBlocks(245230133, 245230333);
console.log(msgs);
})();
3 changes: 2 additions & 1 deletion watcher/src/watchers/SolanaWatcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,8 @@ export class SolanaWatcher extends Watcher {
}
if (!res || !res.blockTime) {
throw new Error(
`solana: failed to fetch tx for signature ${res?.transaction.signatures[0] || 'unknown'
`solana: failed to fetch tx for signature ${
res?.transaction.signatures[0] || 'unknown'
}`
);
}
Expand Down

0 comments on commit 1af2668

Please sign in to comment.