Commit Graph

676 Commits

Author SHA1 Message Date
Reisen d0fc326718 Run through rustfmt to clean up syntax.
Change-Id: I3e79bb32554d02985857b5fa7100675c9041b14c
2021-04-29 10:20:34 +00:00
Reisen 35efbbe87f Use ProgramState and stubs to enforce account owners.
Change-Id: I7c653af6abd771ceb9ceb60460dbf742fe9fe9ec
2021-04-29 10:19:59 +00:00
Leo 030697693b design: add generic message passing proposal
Change-Id: Ic4c4543b5c120b4588c6c8653ab6000f6824949a
2021-04-28 16:01:51 +00:00
Stan Drozd 9dd36c6275 Port over the Solana part of secp instruction checks
Change-Id: Ic205837a3a9a9010070596cbbab2590e15332527
2021-04-26 16:02:18 +02:00
Reisen 09d2ecaaa1 Create data with AccountInfo's needed for processing signatures.
Change-Id: I19edfb56197143500fc7c932dec09d884c682a94
2021-04-23 13:50:38 +00:00
Reisen fa84f69f12 Add barebones anchor generated skeleton.
Change-Id: Ia8e77942ea31521f09fbb1586349d02a21508444
2021-04-23 10:23:32 +00:00
Leo 31a94eeb79 solana/bridge: review comments
Change-Id: Icd58a43cf14588cf4c39f5557bd2d027ef5364ef
2021-04-20 09:52:07 +00:00
Leo 33f39d30fa solana/cli: strip down to deploy_bridge
Delete all non-Wormhole commands. Users should use the official
spl_token CLI to interact with tokens.

Removes the --owner argument and defaults to the fee payer.

Change-Id: I728766131cd697feff5f16ae5aa991c3d87e40cb
2021-04-20 09:51:38 +00:00
Hendrik Hofstadt c405ec9f98 Ethereum refactor
This splits the Ethereum contract into a generic Wormhole and a
purpose-specific token transfer module that uses the main contract
for verification.

This acts as a draft for this structure.

Change-Id: I59e133dd7558d5e046045e464e4740241c696d5f
2021-04-20 09:51:07 +00:00
Hendrik Hofstadt c7c94441a5 implement new Solana account parsing
Change-Id: I2f59dae3950b2f95e8c0578c4f56c460f7166d2e
2021-04-20 09:48:23 +00:00
Leo 3aee599ada CONTRIBUTING.md: fix typo
Change-Id: I32292c61d66fa974cab9a5c43719d7d8ed7dd9a3
(cherry picked from commit f1de6086f1)
2021-04-19 19:49:02 +00:00
Leo f1de6086f1 CONTRIBUTING.md: fix typo
Change-Id: I32292c61d66fa974cab9a5c43719d7d8ed7dd9a3
2021-04-19 19:48:51 +00:00
Hendrik Hofstadt 844bd3d817 update VAA parsing and structure
Change-Id: Ifd712050645b1b3fad0f8bf5b2227c0fdf89df84
2021-04-19 14:27:06 +02:00
Hendrik Hofstadt 14c8606a8e remove non-solana VAA submission
Change-Id: I42bb4d6f85a73f15f627d6b9279eccfeb1624664
2021-04-19 14:27:06 +02:00
Hendrik Hofstadt 9f514e2786 rename ChainLock to MessagePublication
Change-Id: If74e74c00957c202c7de1cc61204b6cc12ad3a8a
2021-04-19 14:27:06 +02:00
Hendrik Hofstadt fad00804e0 minor adjustments in the solana module
Change-Id: I5bafc475fb798fe11c67fd5511b8fe36c314ea36
2021-04-19 14:27:06 +02:00
Hendrik Hofstadt 1f30398e30 refactor new ix processing, remove old processors
Change-Id: I682573bf8544c5a19b2b57c6660e9e86e9b12cf9
2021-04-19 14:27:04 +02:00
Hendrik Hofstadt dfa746476f refactor message posting ix, remove old ixs
Change-Id: Idfa487a189ec2fb3ed2029ddce10fc02aef1255b
2021-04-19 14:25:28 +02:00
Hendrik Hofstadt aad19ff8f8 remove transfer specific methods
Change-Id: I017c9946aaf0f23a56cfc27b7871dbf22f19957b
2021-04-19 14:25:26 +02:00
Hendrik Hofstadt 6a6ba06c0c remove transfer state accounts, introduce posted message persistence
Change-Id: I34a8006dae5cb1a315dc0af297d9025d1e500fcb
2021-04-19 10:30:37 +00:00
Hendrik Hofstadt d09eb150e7 move governance messages to new file
Change-Id: I4b4b76974bb55b5f570c25072d5ffec59215a72c
2021-04-19 06:41:32 +00:00
Leo a0633645cb bridge: delete vaa-test commands
These no longer compile, and using a manual process to generate test
fixtures is not ideal anyway.

Change-Id: Ic1f378f330699909a403ba429a527c825fd0fba9
2021-04-17 14:59:24 +00:00
Leo ffe5c6275c design: fix typos in template
Change-Id: I3e452dd23ce1044502e5f9ecaac972b14f23272d
2021-04-16 16:02:56 +02:00
Leo 9fce2e9ded take an axe to the docs
Delete outdated documentation and generic-ify the remainder.

Change-Id: I4e11e59e6da00d49f9ea4fd5d1155769debda55e
2021-04-16 15:49:26 +02:00
Leopold Schabel d1a24f745d Merge changes Ie2827893,I8304d257 into dev.v2
* changes:
  reformat errors, remove transfer specific errors
  solana/bridge: change VAA structure
2021-04-16 10:33:06 +00:00
Leo a0450bd7c0 CONTRIBUTING.md: fix typo
Change-Id: Id18341b27bb9509e2b0a0c19ebc998878766818c
(cherry picked from commit 48b3c0a3f8)
2021-04-15 21:57:09 +00:00
Leo 48b3c0a3f8 CONTRIBUTING.md: fix typo
Change-Id: Id18341b27bb9509e2b0a0c19ebc998878766818c
2021-04-15 23:55:45 +02:00
Hendrik Hofstadt c0f7f3b8f9 reformat errors, remove transfer specific errors
Change-Id: Ie2827893f0fd8e5f5efbdc8f0b8ed0fa1d91abd4
2021-04-15 19:46:07 +00:00
Hendrik Hofstadt 776d774494 solana/bridge: change VAA structure
Change-Id: I8304d2573aafd2291f2ddfc2eec6e605326d0e2d
2021-04-15 19:39:00 +00:00
Leopold Schabel a584ae56d3 Merge "remove token / bridge related ops commands" into dev.v2 2021-04-15 19:37:42 +00:00
Leo da8182c3cc codereview.cfg: dev.v2 branch
This tells the git-codereview utility to target the right upstream
branch when submitting changes.

Change-Id: I837d2e8fb73afd11a136d552a6aad0572ec480b7
2021-04-15 16:30:11 +02:00
Hendrik Hofstadt 84c47797ed remove token / bridge related ops commands
Change-Id: Id97efe4b5e89a89fbc9d9373af906ecbd9d9f122
2021-04-15 11:36:29 +02:00
Leo dfd01fae98 Add codereview.cfg
Enables usage of git-codereview in this repo, which may be useful to
non-IntelliJ users.

See https://pkg.go.dev/golang.org/x/review/git-codereview#hdr-Configuration

Change-Id: If9ec6eae678c54bad86b126f9b9284b1a9c7ddd9
2021-04-15 00:21:59 +02:00
Leo 3d652fdc20 Add CONTRIBUTING.md
This document adds guidance on the Wormhole development process for new
contributors, and answers the most commonly asked questions.

Change-Id: Id793163721f7d68e24c372020b9b31c4cb222744
2021-04-15 00:21:57 +02:00
Leopold Schabel 610bb93578 Merge "README.md: remove mention of test application" into main 2021-04-14 19:42:09 +00:00
Leo dd1e536a81 README.md: remove mention of test application
Bartosz had added this when he did the Arweave deployment, but it's not
really meant for end users and has been causing a fair bit of confusion.
Remove it and wait for nice wallet integrations.

Change-Id: Ifee0e11d265c07da1158bd19e1e7324281caa882
2021-04-14 15:20:28 +00:00
Leo f9d7308b16 design: import existing design document template
Change-Id: I7cc3735089b58faf3537cd0b59dad45b8ecec101
2021-04-14 16:35:15 +02:00
Stanisław Drozd a330c89d1a
Fix *.so copy in solana-devnet, correct crate feature for cli+agent (#198) 2021-04-08 12:47:35 +02:00
Leopold Schabel cc3482a607
Replace third_party/solana by solana-test-validator (#197)
We no longer need to carry a patch and build Solana, and can use
solana-test-validator (with sleepy PoH!) instead. This significantly reduces
build times and will make downstream testing much easier.

Also remove the remnants of do.sh and the old BPF toolchain.

Test Plan: Ran E2E tests.
2021-04-07 20:16:19 +02:00
Stanisław Drozd 6de425a990
BPF SDK hotfix and devnet startup improvement (#196)
* Tiltfile: Make the guardian k8s_resource depend on solana-devnet

This makes guardian network convergence faster as the guardian pods
don't have to suffer from increasing redeploy back-off delays. This
should impact performance neglibibly as solana-devnet is still the
heaviest build we perform (at the time of this writing saturating a
32-thread Ryzen 9 CPU on my build machine.)

* hotfix bpf-sdk: bump bpf-sdk; use cargo-build-bpf
2021-04-07 15:13:01 +02:00
Stanisław Drozd bfa8a974e5
terra/Cargo.lock: Run `cargo update` (#194) 2021-04-02 00:20:17 +02:00
Stanisław Drozd 954e868436
Updates for newest beta bpf-sdk, small do.sh refactor (#193)
* Updates for newest beta bpf-sdk

* do.sh: sed typo
2021-03-23 16:21:34 +01:00
Yuriy Savchenko 7a97381f18 Terra E2E tests fixed, asset registration refactoring 2021-03-23 16:19:41 +01:00
Yuriy Savchenko f694fbdf0f Removed contract activity killswitch, fee is now hardcoded, test scripts updated 2021-03-23 16:19:41 +01:00
Yuriy Savchenko 06242ffc74 Fee storage type changed to optional 2021-03-23 16:19:41 +01:00
Yuriy Savchenko 097093e1f1 Added configurable fee for locking assets, owner method to transfer fee from the contract, query to get contract state (with fee) 2021-03-23 16:19:41 +01:00
Yuriy Savchenko 10c2fa4eea Added VAA verification query to the Terra smart contract, refactoring 2021-03-23 16:19:41 +01:00
Leopold Schabel f5560eb3ff
Fix guardian set initialization race condition (#191)
Fixes #184
2021-03-23 14:07:47 +01:00
Ryo Onodera 2ba9381066
Add/Clarify comments (#187) 2021-02-26 13:48:44 +01:00
Leo 69b7d3e99e Update to Rust 1.49 2021-02-12 13:48:44 +01:00