Commit Graph

81 Commits

Author SHA1 Message Date
guibescos c7c3527bfe
fix: initialize guardian expiration to the right value (#1485) 2024-04-22 17:14:42 +01:00
guibescos 0d6c35fce8
feat: propagate errors in send transactions (#1469)
* Go

* Go

* Propagate errors

* lint

* Bump version
2024-04-19 16:57:00 +01:00
guibescos 5a676978db
feat: add pyth_push_oracle to dockerfile (#1470)
* Add pusher to dcokerfile

* Update
2024-04-19 15:36:25 +01:00
Keyvan Khademi 76205745c8
feat: add solana target chain example (#1446)
* feat: add send usd example for solana

* fix: rust fmt

* fix: remove unused dependency ahash

* fix: imports

* refactor: use get_price_no_older_than

* fix: package name

* fix: fix naming conventions

* feat: add workspace members in Anchor.toml

* fix: set maximum age to 1 hour

* fix: use public crates for send usd example
2024-04-18 08:11:50 -07:00
Reisen 8be6a9ad1c
refactor(price_pusher): re-organize in monorepo (#1464)
* refactor(price_pusher): re-organize in monorepo

* revert(price_pusher): undo gitignore
2024-04-18 13:34:46 +01:00
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 73798b9bdd
Add 4th guardian set (#1457) 2024-04-17 15:01:32 +01:00
guibescos 8d92ad9931
feat: support closing vaas (#1460)
* feat: support closing vaas

* Go

* Max out

* Cleanup

* Refactor, add comments

* Add max

* Remove script

* bump solana utils

* Revert "Fix: guardian set (#1459)"

This reverts commit d9c85d8f9d.

* Update compute budget

* Go

* Restore

* Bump
2024-04-17 14:49:06 +01:00
Amin Moghaddam ee1d61ac71
Fix js checks (#1462) 2024-04-17 09:45:17 +02:00
guibescos d9c85d8f9d
Fix: guardian set (#1459)
* Decrease compute budget

* Go

* fix
2024-04-16 14:36:24 +01:00
Jayant Krishnamurthy a60733559c
[solana push oracle] Idempotent updates (#1452)
* idempotent updates

* clippy
2024-04-12 14:37:25 -07:00
Jayant Krishnamurthy 443f1455c4
support string (#1447) 2024-04-11 19:35:17 +01:00
guibescos c727195e9c
feat: jito pusher (#1444)
* feat: jito script

* Go

* Go

* Checkpoint

* Checkpoint

* Rename

* Make tip account random

* Go

* Jito pusher

* Go

* lint

* Lint

* Bump
2024-04-11 19:14:10 +01:00
guibescos 0aeae8ca40
feat: send transactions with Jito (#1442)
* feat: jito script

* Go

* Go

* Checkpoint

* Checkpoint

* Rename

* Make tip account random

* Go
2024-04-11 14:30:43 +01:00
guibescos d1c5d93c8e
feat(price_pusher): use retry send transaction logic in pusher (#1438)
* Checkpoint

* Nits

* Nits

* fix: type

* Bump pusher version
2024-04-10 16:24:37 +01:00
guibescos d627a49764
feat: add ending condition to proposer_server (#1430)
* Checkpoint

* Checkpoint

* Continue

* Revert

* Revert

* Revert

* Update proposer

* Clean

* Lint

* nit

* Refactor crank-executor

* Small refactor

* Go

* Go

* Move comment
2024-04-09 19:54:53 +01:00
guibescos 62d189e3b5
feat(solana_utils): support account lookup table (#1424)
* feat: support account lookup table

* remove console log

* Support ALT

* Commas

* feat: support lta

* Go

* Bump
2024-04-09 13:51:29 +01:00
guibescos bb830e1760
docs(solana_sdk): Improve docs (#1414)
* Checkpoint

* Checkpoint

* Checkpoint

* Checkpoint

* fix: pusher

* Checkpoint

* Works

* fix: pass pusher program id

* Add docs

* 0.1.0

* Bump npm package

* Go

* Comment

* Add customizable shard id

* Allow configurable priority fees

* Update readme

* Update text

* readme updates

* Readme

* More text

* More text

* Review

* Text

* readme

* add processed commitment

* fix comment

* whoops

* Set compute units to a more reasonable value

---------

Co-authored-by: Jayant Krishnamurthy <jayantkrishnamurthy@gmail.com>
2024-04-09 13:42:28 +01:00
guibescos 972a9a1e1d
perf: improve tx land rate (#1429)
* Checkpoint

* Checkpoint

* Continue

* Revert

* Revert

* Revert

* Update proposer

* Clean

* Lint
2024-04-09 11:24:45 +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 ecf347909f
chore(solana): use instruction builders (#1415) 2024-04-04 11:11:31 +01:00
guibescos 050b8275f7
feat(price_pusher): solana price pusher (#1408)
* Checkpoint

* Checkpoint

* Checkpoint

* Checkpoint

* fix: pusher

* Checkpoint

* Works

* fix: pass pusher program id

* Add docs

* 0.1.0

* Bump npm package

* Go

* Comment

* Add customizable shard id

* Allow configurable priority fees
2024-04-03 15:42:44 +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 f31ef9e812
docs: update solana readme, add rust sdk readme (#1387)
* docs: update solana readme, add sdk readme

* Clarify

* Created -> posted

* Cleanup

* Readmes

* More comments

* Typo
2024-03-25 12:31:40 +00:00
guibescos a8d88fb1a1
chore: bump js sdk (#1380)
* chore: bump js sdk

* Go
2024-03-22 16:03:16 +00:00
guibescos 6fbe59ad28
chore: no star dependency (#1384) 2024-03-22 14:37:53 +00:00
guibescos 981d2d0fdd
Add description (#1383) 2024-03-22 13:56:42 +00:00
guibescos 5ef1ff097a
Bump toolchain: (#1382) 2024-03-22 12:18:44 +00:00
guibescos 495a2e96b8
chore: add licenses before publishing (#1379) 2024-03-21 19:00:37 +00:00
Ali Behjati f2d5bdc842
chore(target_chains/solana): add verifiable build script (#1378)
This change adds a Dockerfile based on Anchor's default verifiable
build dockerfile and a script to build the program using that
Dockerfile. The script also prints the sha256sum of the program which
can be used to verify on-chain deployments.
2024-03-21 19:07:17 +01: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
Ali Behjati ab7560ad35
feat(governance/xc_admin): add initial support for solana receiver (#1365)
* feat(governance/xc_admin): add initial support for solana receiver

This change adds Solana Receiver IDL to xc-admin to support parsing
them in the xc-admin Frontend. Also adds two CLI commands to request
and accept governance authority transfer.

* chore: address comments

* chore: bump version
2024-03-18 20:00:43 +01:00
guibescos a007a088ed
fix: release price service sdk (#1363)
* Go

* 0.1.0

* Clean

* 0.1.1

* Bump

* Go
2024-03-15 19:24:14 +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 6bea697a78
fix: constrain @pythnetwork/price-service-sdk in @pythnetwork/pyth-solana-receiver (#1362)
* Clean

* 0.0.2

* 0.0.3

* Yes:

* Cleanup
2024-03-15 16:50:08 +00:00
guibescos 854f804d18
chore: release solana pull oracle packages (#1360) 2024-03-15 14:39:37 +00:00
guibescos 8b1c29e81a
feat: transaction builder (#1356)
* Do it

* Remove some duplicate code

* Cleanup

* Cleanup

* Cleanup import

* Correct description

* Fix path

* Cleanup deps

* Unique

* Works

* Continue

* Lint

* Lint config

* Fix ci

* Checkpoint

* Checkpoint

* Gitignore

* Cleanup

* Cleanup

* Continue building the sdk

* build function

* Remove files

* Remove files

* Rename

* Refactor : make transaction builder

* Make commitment

* Move

* Progress

* Checkpoint

* Ephemeral signers 2

* Checkpoint

* Checkpoint

* Fix bug

* Cleanup idls

* Compute units

* Make program addresses configurable

* Handle arrays

* Handle arrays

* Move PythSolanaReceiver

* Cleanup constants

* Contants

* Refactor constants

* Gitignore refactor

* package lock

* Cleanup idl

* Add useful static

* Add useful static

* Add useful static

* Lint

* Add lint config

* Docs

* Comments

* Docs

* Don't touch this

* Readme

* Readme

* Cleanup

* Readme

* Fix

* address readme comments

* from pyth, not pythnet

* Add a couple more comments

* Rename cleanup to close

* Go go go

* Gogogo

* Go

* Fix readme

* Improve readme

* Nit

* Nits

* Refactor withClose

* Update comments

* Cleanup

* First rename

* Rename 2

* Improve error message
2024-03-15 12:11:22 +00:00
guibescos 16cc46e60a
docs: code docs for solana sdk (#1330)
* Do it

* Remove some duplicate code

* Cleanup

* Cleanup

* Cleanup import

* Correct description

* Fix path

* Cleanup deps

* Unique

* Works

* Continue

* Lint

* Lint config

* Fix ci

* Checkpoint

* Checkpoint

* Gitignore

* Cleanup

* Cleanup

* Continue building the sdk

* build function

* Remove files

* Remove files

* Rename

* Refactor : make transaction builder

* Make commitment

* Move

* Progress

* Checkpoint

* Ephemeral signers 2

* Checkpoint

* Checkpoint

* Fix bug

* Cleanup idls

* Compute units

* Make program addresses configurable

* Handle arrays

* Handle arrays

* Move PythSolanaReceiver

* Cleanup constants

* Contants

* Refactor constants

* Gitignore refactor

* package lock

* Cleanup idl

* Add useful static

* Add useful static

* Add useful static

* Lint

* Add lint config

* Docs

* Comments

* Docs

* Don't touch this

* Readme

* Readme

* Cleanup

* Readme

* Fix

* address readme comments

* from pyth, not pythnet

* Add a couple more comments

* Rename cleanup to close

* Go go go
2024-03-13 14:28:17 +00:00
guibescos 7b01f2a1f9
feat(xc_admin_frontend): add priority fees to approval/rejection (#1353)
* Make room for compute ixs

* Continue

* Fix syntax

* Checkpoint

* Cleanup

* Cleanup

* Go
2024-03-12 14:53:29 +00:00
guibescos 926aa55f75
fix: Make room for compute ixs (#1349)
* Make room for compute ixs

* Continue

* Fix syntax

* Fix contract manager

* Go

* Refacotr import
2024-03-11 18:58:11 +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
Amin Moghaddam 47470860bf
fix(solana-receiver-js): Add test script to make prepublishOnly work (#1327) 2024-02-29 09:45:33 +01:00
guibescos e986b69c9a
feat(solana): js sdk (#1307)
* Do it

* Remove some duplicate code

* Cleanup

* Cleanup

* Cleanup import

* Correct description

* Fix path

* Cleanup deps

* Unique

* Works

* Continue

* Lint

* Lint config

* Fix ci

* Checkpoint

* Checkpoint

* Gitignore

* Cleanup

* Cleanup

* Continue building the sdk

* build function

* Remove files

* Remove files

* Rename

* Refactor : make transaction builder

* Make commitment

* Move

* Progress

* Checkpoint

* Ephemeral signers 2

* Checkpoint

* Checkpoint

* Fix bug

* Cleanup idls

* Compute units

* Make program addresses configurable

* Handle arrays

* Handle arrays

* Move PythSolanaReceiver

* Cleanup constants

* Contants

* Refactor constants

* Gitignore refactor

* package lock

* Cleanup idl

* Add useful static

* Add useful static

* Add useful static

* Lint

* Add lint config
2024-02-28 20:45:48 +00:00