Reisen
edfbfc93db
Add account initialization for message, no seeds
...
Change-Id: I8fef4dd497457fc3ddbf2556e39fb57377cbb55f
2021-05-04 05:02:50 +00:00
Reisen
249fc68107
Add an unknown default for Chain type
...
Change-Id: I1c175c906311063dd10db4ea3ed693098592585d
2021-05-04 05:01:53 +00:00
Reisen
8effae6cb5
Add a fixed size message type, hacky for now
...
Change-Id: I62f3bbe6bb760c7dd3c21f6bd98de54dfb0bb00b
2021-05-04 04:13:18 +00:00
Reisen
aab8efec63
Add constant time fee calculation function
...
Change-Id: Ifc6dcfce4066d6767bf03f79133920daea112697
2021-05-04 02:15:04 +00:00
Reisen
b0e7e363c5
Get into the habit of sysvar/system accounts at the bottom
...
Change-Id: I124fdfc22404f6afa12180e6a7ce0afe6bc26f8d
2021-05-04 02:05:14 +00:00
Reisen
edc8a91ecd
Use associated account for guardian set.
...
Change-Id: Ic535115be997d3173c6bb891d980cb8c3e09d5d4
2021-05-04 01:57:16 +00:00
Reisen
c4286b9df5
Move accounts back to lib.rs as associated breaks otherwise.
...
Change-Id: Ic4e7cddaaac414cbc9afb5eee4e8a9c81b2f8548
2021-05-03 23:59:02 +00:00
Reisen
569ecab2eb
Add Instruction id check to signature verification
...
Change-Id: Ia54d5932d4d1be81b3752bac96ed2a2b555ef322
2021-05-01 01:50:15 +00:00
Reisen
a63af890b6
Add Anchor error and Result wrapper.
...
Change-Id: I6374dc81737ea711ead1fedd9e29007dbb625500
2021-04-30 11:33:02 +00:00
Reisen
d169caa0fe
Apply rustfmt changes to current files.
...
Change-Id: I9182dd8b287e5008e417d1b7fefc64cb68b9f813
2021-04-30 11:32:19 +00:00
Reisen
08ac56a6bb
Add some potentially sane rustfmt options.
...
Change-Id: I76debba2f2caee5848f115064fd58e1d72b94308
2021-04-30 11:24:32 +00:00
Reisen
679fa92a56
Move account related verification out of API handler
...
Change-Id: Ice70ab8bfcf4018693f90cb5e47bea6cb9e46309
2021-04-30 11:24:32 +00:00
Reisen
aab930bfab
Restore index as the guardian set naming convention
...
Change-Id: I531413d961a3fb0068bc278f72073497746f5eee
2021-04-30 11:24:27 +00:00
Reisen
c1c778d65a
Add anchor accounts for PostMessage instruction.
...
Change-Id: I26d054479b95d9e33c8da4f8b6fca630240ffb3f
2021-04-30 02:49:47 +00:00
Reisen
ab20f15904
Add message publishing skeleton
...
Change-Id: I18e55f4221575ba782f518d33e1b1f3abcc5d683
2021-04-29 11:33:48 +00:00
Reisen
a5f285f1bd
Verify Signatures should take bridge as state, and split arguments.
...
Bridge state is represented by the #[state] struct in the main file, and so
processor functions no longer receive it as part of context. Instead it's
passed as an arg.
Change-Id: I0492290a597e0778d5c52162447fa09f68a91a9b
2021-04-29 11:10:52 +00:00
Reisen
bcf7be93d6
Implement Initialize using correct anchor decorators.
...
Change-Id: I5d7120f927cc0e4a9dc2882b245058fde0a65637
2021-04-29 10:57:38 +00:00
Reisen
1c9facbb75
Use Anchor state for Initialize
...
Change-Id: I4f61c3e74e037e873f669f240ebbc8fe26567103
2021-04-29 10:57:38 +00:00
Reisen
17bda088f1
Add bridge state to Anchor
...
Change-Id: I3ce0591d6810daf5fe8bd33f5bfd8d5297c0c9b5
2021-04-29 10:57:38 +00:00
Reisen
21de7a58af
Split arguments to handlers for cleaner API
...
Change-Id: If8995bbb61775040d8e666e6af3cccae39f57919
2021-04-29 10:57:38 +00:00
Reisen
482666b3fa
Replace deprecated merge_imports with imports_granularity
...
Change-Id: I749788a369738a5e97e7bc9009f0c28a12b2b3b9
2021-04-29 10:57:38 +00:00
Reisen
a05091897f
Move minimum amount of types to skeleton initialize
...
Change-Id: Ibfc5767de20802035a9403cd937005bdb7ab96cc
2021-04-29 10:57:38 +00:00
Reisen
888c461d73
Add Chain enum for identifying message sources
...
Change-Id: Iefb96f32ef929a6073b523d511b9c4033e33522f
2021-04-29 10:57:36 +00:00
Reisen
ed98d9d346
Extract as much non-Anchor specifics into modules
...
Change-Id: I380560c6a8c240c95ee6eda93e27c7248b2cd361
2021-04-29 10:20:34 +00:00
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