Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solana programs -- feature complete #684

Merged
merged 2 commits into from
Aug 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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