Skip to content

Commit b01aca1

Browse files
authored
Solana programs -- feature complete (keep-network#684)
2 parents a81fd81 + 79885a1 commit b01aca1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+4809
-1053
lines changed

cross-chain/solana/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11

22
.anchor
3+
.prettierrc.json
34
.DS_Store
45
target
56
**/*.rs.bk

cross-chain/solana/Anchor.toml

+4-4
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ members = [
1111

1212
[programs.localnet]
1313
tbtc = "HksEtDgsXJV1BqcuhzbLRTmXp5gHgHJktieJCtQd3pG"
14-
wormhole-gateway = "8H9F5JGbEMyERycwaGuzLS5MQnV7dn2wm2h6egJ3Leiu"
14+
wormhole_gateway = "8H9F5JGbEMyERycwaGuzLS5MQnV7dn2wm2h6egJ3Leiu"
1515

1616
[registry]
1717
url = "https://api.apr.dev"
@@ -61,10 +61,10 @@ filename = "tests/accounts/ethereum_token_bridge.json"
6161
address = "DapiQYH3BGonhN8cngWcXQ6SrqSm3cwysoznoHr6Sbsx"
6262
filename = "tests/accounts/token_bridge_config.json"
6363

64-
### Core Bridge -- Bridge
65-
[[test.validator.clone]]
64+
### Core Bridge -- Bridge Data
65+
[[test.validator.account]]
6666
address = "2yVjuQwpsvdsrywzsJJVs9Ueh4zayyo5DYJbBNc3DDpn"
67-
filename = "tests/accounts/core_bridge.json"
67+
filename = "tests/accounts/core_bridge_data.json"
6868

6969
### Core Bridge -- Emitter Sequence (Token Bridge's)
7070
[[test.validator.account]]

cross-chain/solana/Cargo.lock

+153-16
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cross-chain/solana/Makefile

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
21
out_solana-devnet=artifacts-testnet
32
out_mainnet=artifacts-mainnet
43

5-
.PHONY: all clean build test
4+
.PHONY: all clean build test lint
65

76
all: test
87

@@ -24,3 +23,9 @@ endif
2423

2524
test: node_modules
2625
anchor test --arch sbf
26+
27+
lint:
28+
cargo fmt --check
29+
cargo check --features "mainnet" --no-default-features
30+
cargo check --features "solana-devnet" --no-default-features
31+
cargo clippy --no-deps --all-targets -- -D warnings

0 commit comments

Comments
 (0)