Commit Graph

2914 Commits

Author SHA1 Message Date
Dev Kalra 80b4dd96de
add support for priority fee (#1418) 2024-04-04 16:37:31 +05:30
guibescos ecf347909f
chore(solana): use instruction builders (#1415) 2024-04-04 11:11:31 +01:00
Jayant Krishnamurthy 5afb187f0d
whoops (#1416) 2024-04-04 10:09:50 +02:00
Dev Kalra 6295674efa
feat(fortuna-v2): implement a keeper service for entropy v2 (#1366)
* extract code to run api

* save

* some changes

* add exit checks

* retry for sub threads and fetch events

* handle events

* remove unused

* compiling

* add logs to keeper

* add simulation and some fixed

* refactoring keeper

* backlog refactoring works

* extract handle event

* extract watch blocks in a method

* handle events extracted

* remove res block from backlog method

* remove res block from watch_blocks

* remove res block from process events

* load private key from file

* add gas limit to blockchain config

* remove unused imports

* remove a log

* gas param u256

* spell simulate

* rename keeper private keeper file

* wait for only api to exit

* remove exit check from keeper

* remove is valid request method as simulate will cover things

* remove some parameters

* remove exit check from keeper

* use saturating sub

* correct condition

* update logging statement

* combine logs

* use nonce manager to send transaction

* poll instead of stream and add nonce middleware

* remove unused

* fix tests

* add ws support to streaming

* Refactor and improve error handling

* replace simulation with gas estimation

* add polling support for when no wss url

* version update

* test check

* update comment

* update key comment

* rename chain_config to chain_state

* update version

* pad gas estimate

* add comments

---------

Co-authored-by: Amin Moghaddam <amin@pyth.network>
2024-04-04 01:14:20 +05:30
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
Daniel Chew 450a483679
feat(xc-admin): add price feed council signers (#1413)
* add price feed council signers

* update signers.json

* update signers.json

* update signers.json
2024-04-03 15:48:10 +09:00
Aditya Arora c0c03945d0
Update price evm Oracle Example (#1411) 2024-04-02 14:42:46 -04:00
Aditya Arora c2fde0f6dc
chore-add-evm-linea-sepolia (#1410) 2024-04-02 10:51:34 -04: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 a888ba318c
chore: env variables for rpcs (#1407)
* chore: env variables for rpcs

* Remove console log
2024-03-29 17:51:56 +00:00
Aditya Arora 77db9ee53b
feat(target_chains/ethereum/sdk/solidity): add convertToUint method to the sdk (#1390)
* Moving convertToUint to utils

* pre-commit fix

* reversing OracleSwap example

* pre-commit]

* added test

* abi-gen

* Added solc to sdk

* resolved comments
2024-03-28 17:23:41 -04: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
Pavel Strakhov cd543bcd6a refactor(target_chains/ethereum): remove duplicated tests 2024-03-28 14:50:01 +00:00
Pavel Strakhov f134c2d31c chore: bump pyth-sdk-solidity version to 3.0.0 2024-03-28 14:50:01 +00:00
Pavel Strakhov 7352256c63 refactor(target_chains/ethereum): remove price attestations from tests 2024-03-28 14:50:01 +00:00
Pavel Strakhov d23f6c0d11 refactor(target_chains/ethereum): rename tests and vars in GasBenchmark 2024-03-28 14:50:01 +00:00
Pavel Strakhov f4617b484a refactor(target_chains/ethereum): rename attestations to messages in PythTest 2024-03-28 14:50:01 +00:00
Pavel Strakhov 8843d0f875 refactor(target_chains/ethereum): clean up unused batch update code 2024-03-28 14:50:01 +00:00
Pavel Strakhov 06965d38cc refactor(target_chains/ethereum): move unused functions from Pyth to VerificationExperiments tests 2024-03-28 14:50:01 +00:00
Pavel Strakhov a2db288210 refactor(target_chains/ethereum): remove legacy batch updates support from parsePriceFeedUpdates and getUpdateFee 2024-03-28 14:50:01 +00:00
Pavel Strakhov 8a70ca769b refactor(target_chains/ethereum): remove legacy batch updates support from updatePriceFeeds 2024-03-28 14:50:01 +00:00
Pavel Strakhov 01f878cf5a refactor(target_chains/ethereum): remove truffle tests for batch updates 2024-03-28 14:50:01 +00:00
Jayant Krishnamurthy 0f7a9cc334
[contract_manager] Add logic for tracking fee denominations and dollar values (#1394)
* tokens

* progress

* progress

* progress

* infra for storing tokens and using them in fee calculations

* precommit

* cleanup

* cleanup

* fix
2024-03-28 06:26:04 -07:00
Dev Kalra 6fb5ab483d
fix(IEntropy): revealWithCallback comment (#1404)
* fix reveal comment

* update comment
2024-03-28 14:55:31 +05:30
Dev Kalra 02e196e924
feat(entropy_contracts): don't call an address if it is an Eoa in reveal callback (#1395)
* don't call an address if it is an Eoa

* fix comment

* update comment
2024-03-28 14:12:36 +05:30
guibescos 0e6484daca
perf: use solana hash precompile (#1400) 2024-03-27 15:39:43 +00:00
Reisen df585e440e refactor(hermes): watch channel to simplify shutdowns 2024-03-27 15:07:24 +00:00
Ali Behjati f18f1c8e7c
fix(target_chains/ethereum): update some configs to make js tests work (#1399) 2024-03-27 14:56:27 +01:00
Ali Behjati 86c6ed259d
chore(target_chains/ethereum): add new networks (#1397)
Add metadata for the following networks:
- Parallel testnet and mainnet
- Polynomial testnet
2024-03-27 14:26:05 +01: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
Reisen d66c00f84a
chore: update to latest nightly (#1398) 2024-03-27 12:27:24 +01:00
guibescos cf16fa3211
feat: add walletconnect (#1392) 2024-03-27 11:15:56 +00:00
Aditya Arora 6d3b5234f6
Added polygon_blackberry, optimism_celestia_raspberry,arbitrum_blueberry (#1391)
* Added 3 new chains

* pre-commit fix

* alphabetical
2024-03-26 16:36:46 -04:00
Dev Kalra d821e01109
feat(entropy-v2): add provider parameter to entropy callback (#1389)
* add provider parameter to entropy callback

* order

* abis regen

* update version
2024-03-26 18:00:06 +05:30
Ali Behjati 26c3d08f33
refactor(hermes): use broadcast channel for api notifications (#1388)
This change removes the manual broadcast implementation to send
out API notifications to WS subscribers.
2024-03-26 11:24:16 +01: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
Ali Behjati 93598f8dc4
fix(target_chains/sui/cli): update sui js package to make it work (#1386)
Also add build script to the package so we catch the failures on CI.
2024-03-25 11:08:37 +01: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
Amin Moghaddam 0735cdb975
feat(express_relay): Sample protocol and monitor (#1374) 2024-03-22 11:57:38 +01:00
guibescos 7796fbe025
FIx (#1381) 2024-03-21 23:10:09 +01: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
Anirudh Suresh e394f56468
fix: precommit fixes (#1377)
* config pre-commit

* poetry auto install in pre commit

---------

Co-authored-by: ani <ani@Anirudhs-MBP.cable.rcn.com>
2024-03-21 11:42:31 -04: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
Amin Moghaddam 6adfdb1beb
feat(contract_manager): latency script for entropy (#1367)
* feat(contract_manager): latency script for entropy
2024-03-19 09:50:02 +01:00