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

Prototyping canonical SolanaTBTC token with Anchor #650

Merged
merged 28 commits into from
Aug 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
1a8535c
Anchor prototype of solana tbtc
eth-r Jul 11, 2023
7347a93
Improve tests and add events
eth-r Jul 14, 2023
b86a039
Update config and improve tests
eth-r Jul 18, 2023
d891662
Test more errors
eth-r Jul 18, 2023
360ee5b
Replace creator with authority
eth-r Jul 19, 2023
af4483d
Update file structure
eth-r Jul 19, 2023
9e8224b
Isolate yarn changes to cross-chain/solana
eth-r Jul 19, 2023
283fc5d
Remove traces of yarn in repo root
eth-r Jul 19, 2023
336d2b3
Restore old yarn.lock
eth-r Jul 19, 2023
e96d926
Fix file ending in yarn.lock
eth-r Jul 19, 2023
642e60a
Restructure solana files
eth-r Jul 31, 2023
c4e9bc8
solana: reformat; pin solana to 1.14
a5-pickle Jul 31, 2023
1892686
Add current state of wormhole gateway
eth-r Jul 31, 2023
136d04e
Remove second signers from adding minter and guardian
eth-r Jul 31, 2023
5c18024
Remove autocompleted typo from wormhole_gateway
eth-r Jul 31, 2023
89f4a0b
solana: refactor tbtc program
a5-pickle Jul 31, 2023
f58a45d
checkpoint: wormhole gateway still broken
a5-pickle Jul 31, 2023
5d7877d
Add iteration for guardians
eth-r Aug 1, 2023
73964de
Add iteration of minters
eth-r Aug 1, 2023
5c00165
Two-stage authority change
eth-r Aug 1, 2023
7a6df17
Revert "Add iteration of minters"
eth-r Aug 1, 2023
23bfffc
Revert "Add iteration for guardians"
eth-r Aug 1, 2023
9fbab8a
solana: clean up tbtc directory
a5-pickle Aug 1, 2023
3a45a46
solana: add token bridge cpi
a5-pickle Aug 1, 2023
17ae475
solana: remove yarn.lock; add package-lock.json; add wormhole sdk
a5-pickle Aug 1, 2023
290a22a
solana: wormhole-gatway tests in progress
a5-pickle Aug 2, 2023
518a888
Merge branch 'main' into solana-anchor
eth-r Aug 2, 2023
145d4f2
Merge branch 'main' into solana-anchor
pdyraga Aug 2, 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
9 changes: 9 additions & 0 deletions cross-chain/solana/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

.anchor
.DS_Store
target
**/*.rs.bk
node_modules
test-ledger
artifacts-mainnet
artifacts-testnet
8 changes: 8 additions & 0 deletions cross-chain/solana/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

.anchor
.DS_Store
target
node_modules
dist
build
test-ledger
82 changes: 82 additions & 0 deletions cross-chain/solana/Anchor.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
[features]
seeds = false
skip-lint = false

[workspace]
members = [
"programs/tbtc",
"programs/wormhole-gateway",
]


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

[registry]
url = "https://api.apr.dev"

[provider]
cluster = "Localnet"
wallet = "~/.config/solana/id.json"

[scripts]
test = "npx ts-mocha -p ./tsconfig.json -t 1000000 tests/**/*.ts"

[test]
startup_wait = 10000

[test.validator]
url = "https://api.mainnet-beta.solana.com"

### MPL Token Metadata
[[test.validator.clone]]
address = "metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s"

### Wormhole Core Bridge
[[test.validator.clone]]
address = "worm2ZoG2kUd4vFXhvjh93UUH596ayRfgQ2MgjNMTth"

### Wormhole Token Bridge
[[test.validator.clone]]
address = "wormDTUJ6AWPNvk59vGQbDvGJmqbDTdgWgAqcLBCgUb"

### Token Bridge -- Wrapped tBTC Mint
[[test.validator.account]]
address = "25rXTx9zDZcHyTav5sRqM6YBvTGu9pPH9yv83uAEqbgG"
filename = "tests/accounts/wrapped_tbtc_mint.json"

### Token Bridge -- Wrapped tBTC Asset
[[test.validator.account]]
address = "5LEUZpBxUQmoxoNGqmYmFEGAPDuhWbAY5CGt519UixLo"
filename = "tests/accounts/wrapped_tbtc_asset.json"

### Token Bridge -- Ethereum Foreign Endpoint
[[test.validator.account]]
address = "DujfLgMKW71CT2W8pxknf42FT86VbcK5PjQ6LsutjWKC"
filename = "tests/accounts/ethereum_token_bridge.json"

### Token Bridge -- Config
[[test.validator.account]]
address = "DapiQYH3BGonhN8cngWcXQ6SrqSm3cwysoznoHr6Sbsx"
filename = "tests/accounts/token_bridge_config.json"

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

### Core Bridge -- Emitter Sequence (Token Bridge's)
[[test.validator.account]]
address = "GF2ghkjwsR9CHkGk1RvuZrApPZGBZynxMm817VNi51Nf"
filename = "tests/accounts/core_emitter_sequence.json"

### Core Bridge -- Fee Collector
[[test.validator.account]]
address = "9bFNrXNb2WTx8fMHXCheaZqkLZ3YCCaiqTftHxeintHy"
filename = "tests/accounts/core_fee_collector.json"

### Core Bridge -- Guardian Set (index == 3)
[[test.validator.account]]
address = "6d3w8mGjJauf6gCAg7WfLezbaPmUHYGuoNutnfYF1RYM"
filename = "tests/accounts/core_guardian_set.json"
Loading