Skip to content

Commit

Permalink
Solana programs -- feature complete (#684)
Browse files Browse the repository at this point in the history
  • Loading branch information
pdyraga authored Aug 7, 2023
2 parents a81fd81 + 79885a1 commit b01aca1
Show file tree
Hide file tree
Showing 49 changed files with 4,809 additions and 1,053 deletions.
1 change: 1 addition & 0 deletions cross-chain/solana/.gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@

.anchor
.prettierrc.json
.DS_Store
target
**/*.rs.bk
Expand Down
8 changes: 4 additions & 4 deletions cross-chain/solana/Anchor.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ members = [

[programs.localnet]
tbtc = "HksEtDgsXJV1BqcuhzbLRTmXp5gHgHJktieJCtQd3pG"
wormhole-gateway = "8H9F5JGbEMyERycwaGuzLS5MQnV7dn2wm2h6egJ3Leiu"
wormhole_gateway = "8H9F5JGbEMyERycwaGuzLS5MQnV7dn2wm2h6egJ3Leiu"

[registry]
url = "https://api.apr.dev"
Expand Down Expand Up @@ -61,10 +61,10 @@ filename = "tests/accounts/ethereum_token_bridge.json"
address = "DapiQYH3BGonhN8cngWcXQ6SrqSm3cwysoznoHr6Sbsx"
filename = "tests/accounts/token_bridge_config.json"

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

### Core Bridge -- Emitter Sequence (Token Bridge's)
[[test.validator.account]]
Expand Down
169 changes: 153 additions & 16 deletions cross-chain/solana/Cargo.lock

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

9 changes: 7 additions & 2 deletions cross-chain/solana/Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@

out_solana-devnet=artifacts-testnet
out_mainnet=artifacts-mainnet

.PHONY: all clean build test
.PHONY: all clean build test lint

all: test

Expand All @@ -24,3 +23,9 @@ endif

test: node_modules
anchor test --arch sbf

lint:
cargo fmt --check
cargo check --features "mainnet" --no-default-features
cargo check --features "solana-devnet" --no-default-features
cargo clippy --no-deps --all-targets -- -D warnings
Loading

0 comments on commit b01aca1

Please sign in to comment.