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 gateway tests #683

Closed
wants to merge 39 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
05a01b2
Move tbtc PDA functions to helpers
eth-r Aug 2, 2023
97e13f0
Add wormhole gateway setup test
eth-r Aug 2, 2023
79728bc
Add test for depositing wrapped tokens
eth-r Aug 2, 2023
1887888
Add minor tests
eth-r Aug 2, 2023
a3bf2e9
solana: lint
a5-pickle Aug 2, 2023
cbf3b81
solana: fix wrapped mint pda
a5-pickle Aug 2, 2023
eb5cb5b
solana: add receive_tbtc; add minted_amount
a5-pickle Aug 2, 2023
ae5b9b5
solana: clean up errors
a5-pickle Aug 2, 2023
2506576
solana: add guardians acct for indexing
a5-pickle Aug 2, 2023
ca5b8b3
solana: add minters acct for indexing
a5-pickle Aug 2, 2023
d4683b7
solana: add events
a5-pickle Aug 2, 2023
f2ff015
solana: fix decimals == 8
a5-pickle Aug 3, 2023
4d91dc7
solana: simplify remove logic
a5-pickle Aug 3, 2023
b437347
Merge branch 'solana-programs-finished' into solana-gateway-tests
eth-r Aug 3, 2023
0e0608f
Fix test errors
eth-r Aug 3, 2023
0ac930e
solana: fix program name
a5-pickle Aug 3, 2023
753c7ea
solana: clean up test dir
a5-pickle Aug 3, 2023
c5d0770
solana: add checked math; fix error msgs
a5-pickle Aug 3, 2023
f6e0bc2
solana: fix various program bugs; add tests
a5-pickle Aug 3, 2023
628d4e6
solana: fix test accounts
a5-pickle Aug 4, 2023
fc4d020
fix cpi; remove comments
a5-pickle Aug 4, 2023
25c8c43
solana: add wrapped tbc test
a5-pickle Aug 4, 2023
531c585
solana: fix wormhole-anchor-sdk == 0.1.0-alpha.1
a5-pickle Aug 4, 2023
5a161ee
solana: remove commented out code
a5-pickle Aug 4, 2023
fa10d6d
solana: add minter not intialized test for tbtc deposits
gator-boi Aug 4, 2023
31e245c
solana: add balance checks to gateway tests
gator-boi Aug 4, 2023
64d1dc1
solana: add positive and negative tests for receiving tbtc
gator-boi Aug 4, 2023
8fe2c50
solana: add negative outbound transfer tests
gator-boi Aug 4, 2023
2900c63
solana: fix Makefile
a5-pickle Aug 4, 2023
c59d7c1
solana: add tbtc metadata creation
a5-pickle Aug 4, 2023
67dad30
solana: refactor tbtc tests
a5-pickle Aug 4, 2023
0d71328
solana: add negative outbound wrapped transfer tests
gator-boi Aug 4, 2023
ddad9e9
solana: add invalid outbound gateway test
gator-boi Aug 4, 2023
f5672ce
solana: start gateway test cleanup
gator-boi Aug 4, 2023
fdd0ae3
solana: add change authority to gateway
a5-pickle Aug 4, 2023
8a4a0b0
solana: add gateway authority tests
a5-pickle Aug 4, 2023
242b909
solana: fix consts
a5-pickle Aug 4, 2023
c86b26d
solana: uptick to solana 1.14.22; fix Cargo.lock
a5-pickle Aug 4, 2023
29918c0
solana: refactor gateway tests
gator-boi Aug 4, 2023
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