Reisen
c116b3c813
solana/token_bridge: fix incorrect byte iterator
...
Change-Id: I4bcb3217c34fda24463886aa35de691238f8bdc4
2021-09-13 12:31:11 +00:00
Reisen
2beaada181
solana/token_bridge: allow invalid utf-8 metadata
...
Change-Id: Ifcc45d3a654cd7aa386089728c1f354352c5ebe2
2021-09-13 11:52:41 +00:00
Reisen
3a9264f6e4
solana/nft_bridge: allow invalid utf-8 metadata
...
Change-Id: If2fba5d394b8afab34ed0f12714851d0121a2924
2021-09-13 11:52:41 +00:00
Reisen
ca509f2d73
solana/bridge: re-organize account data
...
Change-Id: Ia215c584e5d00145d8ad0250c303ca9503d8432a
2021-09-13 10:29:29 +00:00
Reisen
3714624fb0
solana/token-bridge: add original_decimal tracking
...
Change-Id: I0989e2f75e7f4d2b0cf2c2e9fb35c26d288a902b
2021-09-13 08:23:50 +00:00
Evan Gray
9ea0369ab0
nft_bridge fixes
...
Change-Id: I9420863384e752725cfc75c8b5a21f64be2792b1
2021-09-10 20:32:46 -04:00
Hendrik Hofstadt
a2b3d111f4
add nft bridge skeleton
...
Change-Id: I69449e95415cd94b7de4528fe4002b241e1e6b95
2021-09-10 17:12:42 +00:00
David Paryente
8d15138d57
Revert "Allow Sollet asset migration"
...
This reverts commit 59e0e586ef
.
Reason for revert: not supporting external mints
Change-Id: Ia3ca9ccc24e1ab20c7f8097aff0868d94e4bb7af
2021-09-10 13:24:17 +00:00
David Paryente
7a504108cd
Revert "solana/token_bridge: sollet mints renamed to generic external"
...
This reverts commit 496d2385f5
.
Reason for revert: not supporting external mints
Change-Id: I996f4fcbfb71a6539094f2d4a6adbff481fefb7d
2021-09-10 13:08:23 +00:00
David Paryente
e6a6c39620
Revert "solana/token_bridge: test wrapped asset transfers"
...
Revert submission 1325
Reason for revert: not supporting external mints
Reverted Changes:
I2bf59ecd3:solana/token_bridge: calculate diff from original ...
I598373740:solana/token_bridge: check balance and truncation
I67c7a1c7a:solana/token_bridge: test wrapped asset transfers
Change-Id: I00d3c23c16fbb985457d841139fea25c5697dab1
2021-09-10 13:08:06 +00:00
David Paryente
08fcb1e9ec
Revert "solana/token_bridge: check balance and truncation"
...
Revert submission 1325
Reason for revert: not supporting external mints
Reverted Changes:
I2bf59ecd3:solana/token_bridge: calculate diff from original ...
I598373740:solana/token_bridge: check balance and truncation
I67c7a1c7a:solana/token_bridge: test wrapped asset transfers
Change-Id: I05a950e3142e0386351a67fc7d051000f3481c8b
2021-09-10 13:08:06 +00:00
David Paryente
698091b2b1
Revert "solana/token_bridge: calculate diff from original mint"
...
Revert submission 1325
Reason for revert: not supporting external mints
Reverted Changes:
I2bf59ecd3:solana/token_bridge: calculate diff from original ...
I598373740:solana/token_bridge: check balance and truncation
I67c7a1c7a:solana/token_bridge: test wrapped asset transfers
Change-Id: I655694508774e40a489b810d7b4f9c17824ab5a3
2021-09-10 13:08:06 +00:00
Reisen
8fb9caf606
solana/token_bridge: calculate diff from original mint
...
Change-Id: I2bf59ecd353e27de4dc3a947b87c738bdff320ea
2021-09-09 10:30:08 +00:00
Reisen
4865275d95
solana/token_bridge: check balance and truncation
...
Change-Id: I59837374067350885b70f4b090ac4ba7a1e37d3e
2021-09-09 10:30:08 +00:00
Reisen
c1c1bb26bf
solana/token_bridge: test wrapped asset transfers
...
Change-Id: I67c7a1c7a300972c5e8a1fd415d6a965f7bba607
2021-09-09 10:30:08 +00:00
Reisen
496d2385f5
solana/token_bridge: sollet mints renamed to generic external
...
Change-Id: Ib9269991d95982dc5cae03844906e1f826a95d6c
2021-09-07 13:59:45 +00:00
Jordan Sexton
59e0e586ef
Allow Sollet asset migration
...
Change-Id: Id3fde0ef232fa2e8ed1435be34fe2b885ecd2ef7
2021-09-07 14:34:34 +02:00
Hendrik Hofstadt
94695ee125
More checks on amount and fees
...
Change-Id: If5a7f43faa0ea39e99138c0856756bad19a4b410
2021-09-07 12:18:06 +02:00
Hendrik Hofstadt
0702ee300f
Require meta in complete transfer wrapped
...
Change-Id: Ie5a5af23c39db7e0d29f7311ea1df385f20decef
2021-09-07 09:30:07 +00:00
Hendrik Hofstadt
855e1d6dfa
Resolve compiler warnings
...
Change-Id: I73c560b90ce4318d3aeb37f3dc336141dfef0e94
2021-09-01 17:56:47 +00:00
Hendrik Hofstadt
086cd0d706
Request full finalization for token bridge messages
...
Change-Id: Ic4631e6d36c108cc01d49c9c99a86162b6129bc4
2021-09-01 17:56:47 +00:00
Hendrik Hofstadt
af67e71bfb
update wrapped asset naming on Solana
...
Change-Id: I0dc2eb3e64d27ee50808dd549a292505bdb8e721
2021-09-01 15:32:00 +02:00
Reisen
bb7a67d4c7
token_bridge/client: add emitter derivation helper
...
Change-Id: I403e421ebf46b76561c59c6cdd2aac0442a3c8d6
2021-08-26 14:40:10 +00:00
Hendrik Hofstadt
4469df136e
Correctly pad Solana asset meta
...
Change-Id: Id2630bbd546695be7901927331e220406647b6da
2021-08-26 14:19:19 +00:00
Hendrik Hofstadt
56d8aa5e39
Create token meta for Solana devnet tokens
...
Change-Id: Ic7e2bd4a808640e10b646ee85abf963f9c6c586d
2021-08-26 14:19:19 +00:00
Hendrik Hofstadt
50afa0fe9e
Prefix wormhole token names
...
Change-Id: Ieea61ea2833f66c29a2fa0f52ae1a914a3956146
2021-08-26 14:19:19 +00:00
Hendrik Hofstadt
d95e38da47
Don't verify core bridge config in token bridge
...
This is checked when we do CPI calls and did not work since derive is using ctx.this as context address
Change-Id: Ie8fefedb40c3c5eb4966bb0b85f207a40e0fe3be
2021-08-23 18:02:12 +00:00
Reisen
254f1c8674
Use bridge config to decide fee payer.
...
Change-Id: I5eb7601737eb5cbc687dee07567a6fab4e5ca4c5
2021-08-23 13:54:03 +00:00
Hendrik Hofstadt
2437a76ad7
Implement fees in the solana token bridge
...
Change-Id: I0bc29ced7e14c37294d0bde7ada173a90b5fcae4
2021-08-23 08:35:59 +00:00
Hendrik Hofstadt
a05017c043
Update rust dependencies
...
Change-Id: Ib587cf608255afc46dcb435a4168e0f8f8cfb8a8
2021-08-23 09:39:36 +02:00
Hendrik Hofstadt
8e0560274e
Fix decimal truncation on Solana
...
Change-Id: I4b8a90852f03ac03ecbd1e981aa8924a9d26c31f
2021-08-12 19:09:51 +02:00
Hendrik Hofstadt
f3ef29c8fd
Introduce MaybeMut
...
This fixes issues in places where an account is passed in multiple times both readable and writable
Change-Id: I9e75c6c273b894bf113c8d652a7dd7dcfa32b863
2021-08-12 18:41:36 +02:00
Hendrik Hofstadt
0f2d3b9f45
Fix decimal truncation on solana
...
Change-Id: I8bebdb13be96b03bbac22dc85281f2b96bbe0aff
2021-08-12 12:26:06 +02:00
Hendrik Hofstadt
e59a36663a
Initialize spl token metadata for new wrapped assets
...
Change-Id: Ic42f00a1e07db3a5b073f36c4453bef953a15fe8
2021-08-11 16:10:47 +02:00
Hendrik Hofstadt
f5b6facec5
Fix message account derivation in token bridge wasm
...
Change-Id: I75b1729c130b325e61eac4b69e5f4aa003b033cc
2021-08-11 10:09:11 +00:00
Reisen
c6764faddd
Fix derivation program id for attest
...
Change-Id: I4975bb40248406334c1d368cdbb61c1ec644f303
2021-08-11 09:03:02 +00:00
Hendrik Hofstadt
fae219e427
Make message a signer in CPI, improve attest ix signature
...
Change-Id: I5136a62d5b0b7617b4dc3e3e2a17614a68908f3f
2021-08-09 17:11:20 +00:00
Reisen
f8a0184a1d
Derive SplTokenMeta addresses
...
Change-Id: I4a988b0778c741c1405d096ea0d7aa67a2a31190
2021-08-09 16:43:07 +00:00
Hendrik Hofstadt
add04e8755
Create different accounts for message posting and VAA posting
...
Change-Id: I88a3f74301aeecc16bb51ba693ea9523dc16b612
2021-08-09 13:51:25 +02:00
Hendrik Hofstadt
597aae7cd7
Automatically register eth and solana token bridges
...
Change-Id: I35efef8d53f999f85ca2e8c4f58cc6cbf8193b2d
2021-08-06 15:21:27 +00:00
Hendrik Hofstadt
bedc96d887
Add token bridge client for eth and solana
...
Change-Id: I0f9af0ffc606aed58579f167fadf80d1964360c8
2021-08-06 15:21:27 +00:00
Reisen
05aece1f7c
Add Metadata to token bridge attestations
...
Change-Id: Ic1a10978c25fbd916a16bd08eab0b6937c67cd59
2021-08-06 08:24:37 +00:00
Hendrik Hofstadt
8f1e980b4c
Add more wasm helpers to the token bridge
...
Change-Id: I484361ef4b0eb2cd52913e695cf83ddccb5bfe7e
2021-08-03 15:10:01 +00:00
Hendrik Hofstadt
361adf9920
Add token bridge CLI
...
This also automatically initializes the token bridge in the devnet
Change-Id: I473a97da1ff55e7c9a104983087951268eb7a27d
2021-08-03 15:10:01 +00:00
Hendrik Hofstadt
8ab3b669d9
Address review comments
...
Change-Id: I4036e71f3df1dc419419930cfdffba302166e28d
2021-07-30 18:21:38 +00:00
Reisen
0a669111dd
Derive Wrapped Mint/Tokens
...
Change-Id: Ic530013e1932daef382cd89b9f14d1069c4006b0
2021-07-30 13:09:44 +00:00
Reisen
108a4a2ff9
Remove InstructionContext::verify. Verify in handlers
...
Change-Id: I661308951de261bff572398b6834523563906907
2021-07-30 13:09:44 +00:00
Hendrik Hofstadt
dfdf31dcce
Implement WASM client for token bridge
...
Change-Id: I592cc0ece0553d55c50d87010783fefb7f9b5f2f
2021-07-29 17:27:54 +02:00
Hendrik Hofstadt
f9eb8a2c0a
Implement wasm client for the bridge core
...
Change-Id: I7931eef27d8b10eaeec00833ab3dc28a57257cdf
2021-07-29 17:27:45 +02:00
Hendrik Hofstadt
d33738e179
Make the token bridge work
...
Change-Id: Ic34f87c09dfaa91d7bf5793e83da9f06abd2fa3f
2021-07-29 17:21:17 +02:00