Commit Graph

33 Commits

Author SHA1 Message Date
guibescos 76ec4e3322
feat: move VAA_SPLIT_INDEX (#1466)
* feat: move VAA_SPLIT_INDEX

* CI
2024-04-17 18:14:11 +01:00
guibescos 56cbace282
feat: encourage using random treasury id (#1465)
* Encourage random treasury id

* GO
2024-04-17 17:47:14 +01:00
guibescos 0e885e3ca7
feature: export merkle price update (#1428)
* export MerklePriceUpdate

* CI

---------

Co-authored-by: Silviu Troscot <silviu.troscot10@gmail.com>
2024-04-08 19:44:02 +01:00
guibescos 866b6a5b4b
feat: pyth pull-based push oracle (#1370)
* feat: implement oracle instance

* Go

* Remove key

* Go

* Add instance id, fix conditional deser

* Go

* Rename

* Revert changes to cli

* Checkpoint

* Cleanup deps

* Refactor tests

* Cleanup deps

* Write test

* Fix comment

* Shard id

* ADd tests

* Extract common test utils

* Fix test

* Better name

* Cleanup

* Instance -> shard

* Update test

* Make shard id a u16
2024-04-01 14:43:47 +01:00
guibescos 0e6484daca
perf: use solana hash precompile (#1400) 2024-03-27 15:39:43 +00:00
guibescos 4ffeb9f265
chore: use published version of wormhole packages (#1375)
* Go

* 0.1.0
2024-03-20 20:18:04 +00:00
guibescos 1e5df8537a
feat: add posted slot (#1372)
* feat(solana): add posted slot

* chore: run pre-commit

* Go

* Fix rebase

* Fix test

* Go
2024-03-20 19:38:33 +00:00
guibescos f79f205895
feat: separate write-authority from payer (#1373)
* feat: separate write-authority from payer

* test: update tests

* fix: typo
2024-03-20 19:04:34 +00:00
guibescos 81ff71c8d8
chore: release solana pull oracle sdks (#1361)
* chore: release rust sdk for solana receiver

* Go

* Publish pythnet sdk
2024-03-15 19:14:20 +00:00
guibescos ddf04637c5
fix: solana audit 3 (#1334)
* Audit 3

* Go

* Move it before sig verification

* Comment
2024-03-01 19:24:49 +00:00
guibescos e0f94ee164
Pay treasury rent (#1333) 2024-03-01 17:59:39 +00:00
guibescos 7bf2782da2
fix: audit feedback 1 (#1331)
* Audit 1

* Pin wh sdk

* Typo

* Typo

* Add constraint to initialize
2024-03-01 17:57:29 +00:00
guibescos f9de5430d1
Move deps to the workspace level (#1332) 2024-03-01 13:24:41 +00:00
guibescos 26a3ebbfd7
refactor(solana): separate anchor state to another crate (#1302)
* Finish refactor

* Move constant
2024-02-20 12:07:57 +00:00
guibescos 8f62566dbb
[solana] Fix idl (#1279)
* Test

* Fix idl

* Cleanup

* Add the script
2024-02-06 11:36:19 +00:00
guibescos 3555b9a976
Rename to singular (#1276) 2024-02-02 14:27:47 +00:00
guibescos b2c90a310d
[Solana] Load balance treasury (#1267)
* Checkpoint

* Checkpoint

* Cleanup

* Checkpoint, debug

* Go

* Checkpoint

* Fix

* Add new error and test

* Cleanup

* Add another test

* Keep adding errors

* Another test

* Add comment

* More

* Do it

* Again

* Nice

* Checkpoint

* Checkpoint

* Nice
2024-02-01 16:27:35 +00:00
guibescos 7e65fd6597
[solana] reclaim rent (#1266)
* Checkpoint

* Checkpoint

* Cleanup

* Checkpoint, debug

* Go

* Checkpoint

* Fix

* Add new error and test

* Cleanup

* Add another test

* Keep adding errors

* Another test

* Add comment

* More

* Do it

* Again

* Nice

* Ship it
2024-02-01 15:51:24 +00:00
guibescos 1871ca1bf3
[Solana] More tests (#1263)
* Checkpoint

* Checkpoint

* Cleanup

* Checkpoint, debug

* Go

* Checkpoint

* Fix

* Add new error and test

* Cleanup

* Add another test

* Keep adding errors

* Another test

* Add comment

* More

* Do it

* Again

* Nice (#1265)

* Test governance

* Fix
2024-01-31 16:53:48 +00:00
guibescos 2ab72d994d
[solana] Add wrong vaa tests (#1262)
* Checkpoint

* Checkpoint

* Cleanup

* Checkpoint, debug

* Go

* Checkpoint

* Fix

* Add new error and test

* Cleanup

* Add another test

* Keep adding errors

* Another test

* Add comment

* Rename

* Rename
2024-01-31 14:16:43 +00:00
guibescos b0c6497fca
[solana] Solana tests 2 (#1255)
* Checkpoint

* Checkpoint

* Cleanup

* Checkpoint, debug

* Go

* update comment

* Add ci

* Update solana workflow

* Rename create_guardians

* Signatures

* Add some randomness

* Add randomness

* More randomness

* Do it

* Fix some clippies

* Change trim signatures
2024-01-30 13:55:23 +00:00
guibescos e1db4aad65
[rust] Remove serde_wormhole patch (#1249)
* Do it

* Do it
2024-01-25 20:05:07 +00:00
guibescos 112db1d69e
[Solana] Elevate wormhole core bridge dependency to workspace, stop using my branch (#1228)
* Do it

* Do it
2024-01-17 15:56:54 +00:00
guibescos d3ed683b91
[Solana] tests (#1226)
* Checkpoint

* Checkpoint

* Checkpoint

* Nice

* Finally works

* Cleanup

* Cleanup

* Cleanup

* Cleanup

* Checkpoint

* Works

* Final cleanup

* Remove async

* Continue
2024-01-17 15:46:31 +00:00
guibescos a94194184b
[solana] Reuse accounts (#1216)
* Reuse accounts

* add comment
2024-01-08 20:08:55 +00:00
guibescos 0ce4c4c8fe
Fix it (#1215) 2024-01-08 20:04:31 +00:00
guibescos e388281dc0
[solana] Fix guardian set owner bug (#1214)
* Fix the owner bug

* Remove seeds in context
2024-01-08 19:58:28 +00:00
guibescos c1cc7127c2
Use official wormhole, introducing VerificationLevel (#1212)
* Do it

* Do it

* Cleanup deps

* Delete this
2024-01-08 19:03:30 +00:00
guibescos 3458dd5b7d
[solana] Post update atomic (#1210)
* Post update atomic

* Checkpoint cli

* Fix bug

* Atomic

* Cleanup

* Cleanup

* Cleanup

* Cleanup

* Comment

* Add wormhole errors

* refactor trim signatures
2024-01-08 14:27:03 +00:00
guibescos a60279a2cc
[solana-receiver] Post price update (#1189)
* Do it

* Remove keypairs

* add check comment

* Works

* Cleanup deps

* Next

* Add better docs
2023-12-18 11:46:45 +07:00
guibescos 4aa60453bd
[solana-receiver] Initialize receiver from CLI (#1191)
* Initialize

* Update address

* cleanup
2023-12-18 11:08:08 +07:00
guibescos 9875bc2ba4
feat(target-chains/solana): Implement governance for the solana pull oracle (#1175)
* Do it

* Go

* Address some feedback

* Update size of config
2023-12-14 19:11:34 +07:00
swimricky 8202181a1b
Solana receiver decode vaa accumulator (#1145)
* feat: impl postAccumulatorUpdateVaa and postUpdates and CLI test changes

* feat: clean up

* refactor: reorganize and fix tests

* refactor: clean up

* chore: add rust-toolchain for solana target contract dir

* refactor: clean up and address feedback

* refactor: make emitter chain & post vaa program configurable

* feat: remove postAccUpdateVaa and use wh post_vaa in cli

* fix: add check for emitter address, hardcode expected emitter chain/addr for now

* chore: cleanup

* chore: clean up

* feat: address feedback, move checks from context into account, use signatureset for postupdates

* feat: use pubkey and require_keys_eq! for emitter addr check

* refactor: address feedback

add documentation and todos, revert programsimulator to use upgradable bpf loader

* feat: remove signature_set account from post_updates, update docs & readme

* test: add lazy static for setting up pyth binary but still has same invalidaccountdata issue

* chore: clean up

* refactor: remove unused errors

* feat: use UncheckedAccount for posted_vaa so owner can be checked dynamically against config
2023-11-30 16:04:41 -05:00