Commit Graph

94 Commits

Author SHA1 Message Date
Pavel Strakhov b30604c5ba doc(target_chains/starknet): add local deployment script 2024-04-23 12:41:59 +01:00
Anirudh Suresh 67132c0572
try python version env spec (#1484)
* try python version env spec

* Test it out on pull request

* test env change

* test env change 2

* test env change 3

* test env change 4

* address circular import

* test

* test

* test

* test

* test

* undoing test

---------

Co-authored-by: Amin Moghaddam <amin@pyth.network>
2024-04-22 12:25:20 -04:00
Pavel Strakhov 5fac32fa40 chore(target_chains/starknet): add workflow 2024-04-19 17:48:31 +01:00
guibescos 508de75839
chore: fix ci (#1475)
* Fix ci

* cleanup

* Go
2024-04-19 17:46:53 +01:00
Anirudh Suresh 3f6a14897d
fix per sdk pypi workflow (#1454)
* python3.12 -> python3.11?

* test poetry build works

* add back the publishing

---------

Co-authored-by: ani <ani@Anirudhs-MacBook-Pro.local>
2024-04-19 10:08:11 -04: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
Reisen ba435bac76 refactor(fortuna): re-organize in monorepo 2024-04-17 15:21:57 +01:00
Reisen 45065e2851 refactor(hermes): re-organize in monorepo 2024-04-15 15:12:13 +01:00
guibescos 9328b73284
chore: publish xc-admin to ghcr (#1406)
* perf: use solana hash precompile

* chore: xc-admin push to ghcr

* Trigger CI

* Check

* Fix

* Fix boolean

* Fix env variable

* Go

* Push new worflow

* Cleanup

* Go:

* Add packages write
2024-03-28 18:24:52 +00:00
Ali Behjati 9416a8b586
chore(hermes): small improvements to add tests in CI and more (#1393)
* fix(hermes): fix a broken test

* refactor(hermes): add clippy to pre-commit

* feat(hermes): add ci for tests

* chore(hermes): remove legacy go footprint

* fix: add protoc action for ci

* chore: rebase on top of main

* fix: use right rust version for the Dockerfile

* fix: fix precommit ci
2024-03-27 13:55:26 +01:00
Anirudh Suresh a40de245b9
fix workflow (#1364)
* fix workflow

* use 'working-directory' tag

* install and build

---------

Co-authored-by: ani <ani@Anirudhs-MBP.cable.rcn.com>
2024-03-15 16:13:40 -04: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
Anirudh Suresh 92566736da
Express relay python searcher (#1319)
* move js searcher sdk

* add the python searcher sdk

* remove pycache

* create class for simple searcher

* add websocket to python searcher sdk

* finish ws, avoid storing liquidation opportunities within client

* python scripts now working w auto type generation

* minor precommit changes

* address comments 1

* add openapi type generations

* fixed precommit issues on generated type files

* reorg

* fixed openapi_client generated precommit

* fix js filepath issue

* added close ws

* renamings and add send_ws_message method

* get rid of duplicate error parsing

* cleanup

* set up pypi workflow

* address comments

* add python precommit

* changes + precommit changes

* test precommit change

* test precommit change

* test precommit change

* test precommit change

* test precommit change

* test precommit change

* test precommit change

* test precommit change

* test precommit change

* correct directory for poetry in pypi wf

* remove isort

* rename package

* add UUID and some cleanup

* new openapi typings

* add pydantic to pyproj

* more changes

* precommit

* remove extraneous files, stick w actual_instance

* added back http as nondefault

* correction

* some cleanup and reorg

* minor changes

* add back api response typing file

* minorer changes

* exclude openapi_client from end of file fixer

* build internal models via pydantic

* chgs

* start to reorg classes

* configure precommit to work

* some cleanup

* reorg a bit

* address comments

* chgs

* fgt

* morechgs

* some more chgs

---------

Co-authored-by: ani <ani@Anirudhs-MacBook-Pro.local>
Co-authored-by: ani <ani@Anirudhs-MBP.cable.rcn.com>
2024-03-15 15:08:48 -04:00
Ali Behjati 45e8951292
chore(target_chains/sui): update sui and wormhole dependency (#1341)
* chore(target_chains/sui): update sui and wormhole dependency

Developers on Sui need to pin the same Sui version as their
dependencies and it enforces everyone to use the same Sui version.

Pyth and Wormhole Sui versions have been old and this change updates
them to the latest testnet version (1.19.1) to make integrations with us
easier. Wormhole has undergone a similar change and thereforce its
version has changed as well.

No contract deployment is needed for this change as it only unblocks
downstream consumers for compiling their contracts.

* fix: update sui version in the ci workflow
2024-03-07 10:46:47 +01:00
Dev Kalra 75769182f7
[fortuna] push fortuna to ghrc (#1295)
* [fortuna] push fortuna to ghrc

* precommit fix

* test file path

* address comment
2024-03-05 16:29:35 +05:30
guibescos 98f83efcbd
fix: typos (#1335)
* Update SECURITY.md

* Update message_buffer.ts

* Update ser.rs

* Let's see

---------

Co-authored-by: Pioua <136521243+dzizazda@users.noreply.github.com>
2024-03-01 23:05:39 +00: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
guibescos 281ef68753
Do it (#1321) 2024-02-26 15:06:18 +00:00
Ali Behjati cc7b57145b
chore(xc_admin/frontend): set pythnet max publishers to 64 (#1305)
* chore(xc_admin/frontend): set pythnet max publishers to 64

* chore: fix ci
2024-02-21 13:46:06 +01:00
Ali Behjati f5b78e5a8c
chore: remove attester and price service (#1272) 2024-02-01 15:53:07 +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 3e762aa985
[Near] Bump wormhole (#1239)
* Try

* Near

* revert

* Try to add CI

* Cleanup

* Cleanup

* Fmt

* cleanup

* Fix CI

* Cleanup

* Cleanup

* Cleanup rust toolchains

* Pin to tag
2024-01-25 11:31:36 +00:00
guibescos 35b5736533
[cosmwasm] Fix release ci (#1243)
* Fix ci

* Do it

* Try if it succeeds

* Another try

* Fix
2024-01-24 15:47:17 +00:00
Jayant Krishnamurthy 7cf7420203
[entropy] add entropy ABIs to solidity sdk (#1219) 2024-01-10 10:57:03 -08:00
Jayant Krishnamurthy 4776bdcdf9
Fortuna CI workflows (#1120)
* CI and docker

* cleanup

* erc

* whoops
2023-10-20 10:49:41 -07:00
Ali Behjati 49d1a579c3 chore: cleanup repo 2023-10-18 18:32:42 +02:00
Ali Behjati 9b825597d0 chore: run ts/js ci only on relevant files 2023-09-29 17:47:39 +02:00
Ali Behjati 5ddef8797e chore: rename sui ci workflow 2023-09-13 11:18:23 +02:00
Jayant Krishnamurthy 0dde47d8e2 one more fix 2023-09-13 11:13:14 +02:00
Jayant Krishnamurthy 5ba6ee819f clean up workflows 2023-09-13 11:13:14 +02:00
Ali Behjati 4e2e04ad44 chore: improve precommit ci 2023-09-13 11:05:52 +02:00
guibescos f7699bb6b0
Update dockerfile (#1041)
* Update dockerfile

* Drive by v4

* Reduce scope

* Revert dockerfile

* Revert dockerfile changes

* Cleanup the other dockerfile

* Remove contracts dir

* Remove old cli
2023-09-04 16:19:39 +01:00
Ali Behjati 9e4242a20e doc(hermes): update readme instructions 2023-07-27 18:31:42 +03:30
Mohammad Amin Khashkhashi Moghaddam c732fcf586
Abolish xc governance sdk (#957)
* Replace xc-governance-sdk with xc_admin_common package

xc_admin_package was not using the CHAIN overrides declared in the governance-sdk so it was moved
to that package as well

* Replace xc-governance-sdk with xc_admin_common in other packages

* Remove the package and all of its references

* Fix tests

* Fix bug in GovernanceDataSourceTransfer encoding

* Rename all references to the old package

* Redeploy neutron_testnet contract with new chain id

* Move SetWormholeAddress to separate file
2023-07-17 15:24:54 +02:00
Jayant Krishnamurthy 78917f6d65
Implement PythGovernanceAction (#906)
* blah

* rename workflow

* grrr

* ok progress

* ok progress

* ok progress

* grrr

* ok

* fix

* fix layout
2023-07-05 08:35:47 -07:00
optke3 a7383a3648
[sui 11/x] - pyth merkle accumulator (#910)
* merkle tree impl

* - take leftmost 20 bytes in hash
- don't assign output of cursor::take_rest to _, instead just drop it

* push PREFIXes (MERKLE_LEAF_PREFIX, MERKLE_NODE_PREFIX) to front instead of back

* delete testXOR

* test construct merkle tree depth exceeded error

* invalid merkle proof test cases

* comments

* rename failure tests

* simplification for initializing a vector

* fix leafHash bug, add tests for hashLeaf and hashNode

* pyth accumulator start, extract_price_info_from_merkle_proof, parse_price_feed_message

* parse_price_feed_message, parse_and_verify_accumulator_updates

* implementation + debugging for merkle pyth accumulator

* edit merkle tree

* testNodehash

* test hash

* delete prints

* test case for parse and verify TEST_ACCUMULATOR_3_MSGS

* hot potato vector -> authenticated price infos

* refactor - move tests from pyth_accumulator to pyth to avoid dependency cycle

* remove _ from deserializing unused vaa

* add sui-contract.yml for github actions

* AuthenticatedPriceInfos -> AuthenticatedVector

* charge base update fee per call to update_single_price_feed

* add back multiple tests, including test_create_and_update_price_feeds_insufficient_fee, update cache, update cache old update

* test multiple price feed creation and update accumulator

* authenticated_price_infos.move -> authenticated_vector.move

* 5 * single_update_fee

* delete some comments, add accumulator test info

* don't make TEST_VAAS test_only in pyth.move

* remove #[test_only]s

* assert price info object contains correct price feed info

* factor out some constants from accumulator test cases to reduce duplicate code

* add sui-contract.yml file for github actions CI

* more refactor and clean-up

* assert price_info_object_1 is correct in test_create_and_update_price_feeds_with_batch_attestation_success

* removed the parse_and_verify_accumulator_message_with_worm_state entirely, and instead added the helper parse_vaa_bytes_from_accumulator_message

* edit comment

* update comment

* edit sui github ci

* fix for sui-contract.yml

* MINIMUM_SUPPORTED_MINOR_VERSION and MAJOR_VERSION

* remove test_get_price_feed_updates_from_accumulator and  parse_vaa_bytes_from_accumulator_message from pyth_accumulator.move

* test_parse_and_verify_accumulator_updates_with_extra_bytes_at_end_of_message

* sui contract yml update

* use rev to cargo install sui in github actions ci

* cargo install --locked for github CI
2023-06-28 10:09:50 -05:00
Mohammad Amin Khashkhashi Moghaddam fb6672fbfb
Aptos accumulators (#904)
* Pin dependency versions

* Implement accumulator support on aptos

* Fix formatting on error.move in aptos

* Add CI workflow for aptos

* Upgrade to aptos cli 1.0.4
2023-06-23 11:27:25 +01:00
Jayant Krishnamurthy 92aa157e85
fix docker build (#898) 2023-06-16 10:39:26 -07:00
Ali Behjati fbd0354b43
Update hermes-image-push.yml (#877) 2023-06-12 15:49:26 +02:00
Ali Behjati 183081cc20
Expose pythnet message buffer idls (#865) 2023-06-09 14:10:28 +02:00
Ali Behjati 404bc6cb81
[ci] Fix pre-commit (#857)
* Update pre-commit

* Update CI rust
2023-06-06 13:15:32 +02:00
Ali Behjati 417fa50f14 Add Dockerfile + CI release action 2023-06-05 15:19:48 +01:00
guibescos 73c2af21a7
[remote-executor] Isolate wormhole-solana crate (#843)
* Point to another wormhole sdk

* Works

* Reset this dir

* Refresh cargo lock

* Bump solana

* Pin git packages

* Allow large errors

* Update to the right wormhole-solana

* Fix cli

* Add cargo lock

* Remove print statement
2023-05-26 14:02:24 -05:00
guibescos 2df32a6108
[remote-executor] Move overflow check (#837)
* Move overflow check

* Modify workflow
2023-05-23 21:06:24 -05:00
Jayant Krishnamurthy f82c87e37d
Fix path to CW sdk (#823)
Co-authored-by: Jayant Krishnamurthy <jkrishnamurthy@jumptrading.com>
2023-05-18 11:27:01 -07:00
guibescos 61a66eecaa
Build packages before publishing (#790) 2023-05-01 13:00:41 -05:00
Dev Kalra ec65d3ca81
[cosmwasm] osmosis release (#767)
* update contract version

* update script to build for osmosis

* update pyth sdk cw version

* update release pipeline

* fix pipeline
2023-04-17 18:25:09 +05:30
Dev Kalra 614d35e3a5
[cosmwasm] contracts release (#734)
* test release

* mv instead of rm

* remove todos

* add comment
2023-03-31 19:13:30 +05:30
Dev Kalra 8da5965d5c
[cosmwasm] Release Contract (#726)
* build contract

* uploading artifacts

* test

* test

* different version for upload artifact

* update artifacts path

* add release code

* test

* update artifact path

* test

* update release names

* remove ls

* rename tag

* rename
2023-03-29 19:38:18 +05:30
Jayant Krishnamurthy 02638fd865
Fix JS publish workflow again (#713) 2023-03-23 14:45:07 -05:00