Skip to content

Commit

Permalink
Not working
Browse files Browse the repository at this point in the history
  • Loading branch information
feli-xlabs committed Oct 14, 2024
1 parent 97834cc commit 79753f1
Show file tree
Hide file tree
Showing 25 changed files with 632 additions and 438 deletions.
97 changes: 64 additions & 33 deletions .pnp.cjs

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

2 changes: 2 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,7 @@
},
"prettier.prettierPath": ".yarn/sdks/prettier/index.cjs",
"typescript.tsdk": ".yarn/sdks/typescript/lib",
"rust-analyzer.cargo.features": ["idl-build"],
"rust-analyzer.check.features": ["idl-build"],
"typescript.enablePromptUseWorkspaceTsdk": true
}
6 changes: 3 additions & 3 deletions Anchor.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ skip-lint = true
[test]
upgradeable = true

[[test.genesis]]
address = "ATqjh2vkjogyVUUNmXQssQZNSFGgSA7Tm6P1UzEUg85s"
program = "target/sbf-solana-solana/release/solana_price_oracle.so"
#[[test.genesis]]
#address = "CefQJaxQTV28gCf4MMd1PgDHgCcRmuEHZgXZwjJReUY3"
#program = "../relayer-infra-contracts/src/solana/target/sbf-solana-solana/release/solana_price_oracle.so"

# [[test.genesis]]
# address = "worm2ZoG2kUd4vFXhvjh93UUH596ayRfgQ2MgjNMTth" # Mainnet in lib.rs
Expand Down
12 changes: 11 additions & 1 deletion Cargo.lock

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

10 changes: 5 additions & 5 deletions sdk/solana/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@
"dependencies": {
"@coral-xyz/anchor": "^0.30.1",
"@solana/web3.js": "^1.95.3",
"@wormhole-foundation/sdk-base": "^0.10.9",
"@wormhole-foundation/sdk-definitions": "^0.10.9",
"@wormhole-foundation/sdk-solana": "^0.10.9",
"@wormhole-foundation/sdk-solana-tokenbridge": "^0.10.9",
"@xlabs/solana-price-oracle-sdk": "^0.0.7",
"@wormhole-foundation/sdk-base": "^0.11",
"@wormhole-foundation/sdk-definitions": "^0.11",
"@wormhole-foundation/sdk-solana": "^0.11",
"@wormhole-foundation/sdk-solana-tokenbridge": "^0.11",
"@xlabs/solana-price-oracle-sdk": "link:./lib/../../relayer-infra-contracts/src/solana/",
"borsh": "^2.0.0"
},
"devDependencies": {
Expand Down
8 changes: 1 addition & 7 deletions sdk/solana/tbrv3/bpf-loader-upgradeable.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
import anchor from '@coral-xyz/anchor';
import {
Cluster,
clusterApiUrl,
Connection,
PublicKey,
TransactionInstruction,
} from '@solana/web3.js';
import { Connection, PublicKey, TransactionInstruction } from '@solana/web3.js';
import { CustomConversion, Layout, layout, Network } from '@wormhole-foundation/sdk-base';
//import { programDataLayout } from '@wormhole-foundation/sdk-solana/utils/utils/';
import { throwError } from 'common-arbitrary-token-transfer';
Expand Down
Loading

0 comments on commit 79753f1

Please sign in to comment.