Commit Graph

54 Commits

Author SHA1 Message Date
Jayant Krishnamurthy 1564364420 docs 2023-09-13 11:29:30 +02:00
Mohammad Amin Khashkhashi Moghaddam ac0519b57a
[price-pusher] Bugfix in handling account sequence mismatch (#1028)
account sequence mismatch error could happen in the simulation but the
try catch did not cover that part
Verified the fix by manually incrementing the sequence number twice after
each transaction so a refetch was necessary
2023-08-24 10:57:30 +01:00
Ali Behjati 37ff02f1f9 fix(price_pusher): wait on tx to succeed 2023-08-11 13:14:39 +03:30
Mohammad Amin Khashkhashi Moghaddam caca2da9e2
[price-pusher] Fix fee calculation on injective price pusher (#1007)
* Fix fee calculation on injective price pusher

We used an optimization to calculate the update fee based on the number of VAAs. This used to be true before the accumulator messages but now since both formats can be used, it is not obvious what the final fee would be. We can again try to optimize this code and reduce rpc calls by replicating the fee calculation logic from the smart contract, but for now we have rolled back to the unoptimized version.
2023-08-09 14:43:06 +02:00
Mohammad Amin Khashkhashi Moghaddam ce66a36415
Revert aptos address change (#998) 2023-08-01 16:47:36 +01:00
Mohammad Amin Khashkhashi Moghaddam 1d5a96c35a
[aptos] New address for aptos deployments and some small improvements (#996)
* Add abi diff command and small documentation fix

* Redeploy aptos package and update the address
2023-08-01 07:36:52 +01:00
Jayant Krishnamurthy 0e5d7d0470
[price_pusher] Refresh sui object versions (#966) 2023-07-19 12:18:44 -07:00
Jayant Krishnamurthy aa76c15d1c
Log sui errors (#951)
* log sui errors

* fix precommit
2023-07-13 15:41:29 -07:00
Daniel Chew 8752291aa2
fix broken links (#945)
* fix broken links

* undo import order changes

* Fix more links

* Fix more broken links

* Fix more broken links

* Fix more broken links

* Fix precommit

---------

Co-authored-by: Thomaz Leite <thomaz@pyth.network>
Co-authored-by: Guillermo Bescos <g.bescos@yahoo.com>
2023-07-11 11:41:43 +01:00
Ali Behjati bef4073b54
[price-service/client] Crash by default on WsError (#934)
* [price-service/client] Crash by default on WsError

* Update docker-compose files

* Update package versions again
2023-07-07 11:43:04 +03:30
Jayant Krishnamurthy 52ae0b853a
Update aptos pusher to support high TPS (#937) 2023-07-04 19:33:47 -07:00
Jayant Krishnamurthy c4c4a6384a
[price_pusher] Create gas pool for Sui (#923)
* [sui][price_pusher]Implement gas pool

* Add the option to specify gas budget to avoid dry run

* Avoid for loop in constructing transaction block

* Improve error handling

* Implement coin consolidation

* minor tweaks

* k

* cleanup

* fix

---------

Co-authored-by: Chris Li <chris@mystenlabs.com>
2023-06-27 09:05:30 -07:00
Jayant Krishnamurthy e4d494db9f
[price_pusher] fix bug from last PR (#916) 2023-06-23 10:33:30 -07:00
Jayant Krishnamurthy 742c37ed88
Sui pusher updates (#914)
* split into ptbs

* update sui logic

* fix stuff

* revert

* use Map
2023-06-23 09:20:01 -07:00
Jayant Krishnamurthy 339b2f6ce0
Update price feeds early if part of a batch (#905) 2023-06-21 14:07:35 -07:00
Dev Kalra 8f7b6ee4ba
[price_pusher] fix account sequence mismatch bug (#902)
* fix

* bump version
2023-06-20 22:56:37 +05:30
Dev Kalra 3721dd2c57
[price_pusher] Injective: cache sequence number (#874)
* Empty-Commit

* support for sequence number

* cleanup

* bump version
2023-06-13 02:00:30 +05:30
Ali Behjati 183081cc20
Expose pythnet message buffer idls (#865) 2023-06-09 14:10:28 +02:00
Daniel Chew f99f23c416
update price service sdk (#849)
* update price service sdk

* bump version

* fix test

* include slot

* bump price-service-client version

* bump all that uses price-service-client

* bump all that uses price-service-client
2023-05-29 20:18:29 +09:00
Dev Kalra e802593e76
[arbitrum] fix: max fee per gas less than block base fee (#829)
* fix

* bump version

* log error
2023-05-22 22:24:09 +05:30
Dev Kalra 1c529dd486
[price-pusher] sui (#825)
* sui pusher

* cache mapping

* typo

* remove comment

* add mainnet config

* update readme

* bump version
2023-05-20 00:05:34 +05:30
Ali Behjati e283b15d20
[price-service] Improve vaa validation (#814)
* [price-service/server] Improve Vaa Validation

* [price-service/server] Improve performance

* Update wormhole guardian version
2023-05-17 20:20:17 +02:00
Dev Kalra 3fc996d6f9
[price-pusher] support for aptos (#815)
* aptos price listener

* price pusher aptos

* add comment

* update package lock

* remove eslint disable comments

* bump version

* npm i at root

* update readme

* address feedback

* update readme

* json fix
2023-05-15 21:14:28 +05:30
Dev Kalra 079828f8ac
Wormhole stub (#789)
* add

* add sei to wormhole chains

* add wormhole code to the repo

* add lib to gitignore

* cosmwasm bug fix

* add tmp to gitignore

* no need for simulation

* add wormhole deployment stuff

* better comments

* resolve build errors

* trying a fix

* fix

* rename compiled code

* address feedback

* remove gitignore

* sei deployment

* complete sentences

* address comments
2023-05-03 20:48:00 +05:30
Dev Kalra e248be526f
fix (#793) 2023-05-02 20:27:57 +05:30
guibescos 3e5600508b
Fix axios bug by downgrading, bump all dependents (#786) 2023-04-28 10:19:40 -05:00
guibescos d16594ca6b
[xc-pusher] Fix docker compose (testnet) (#781)
* Fix docker compose

* Fix typo

* Fix typo
2023-04-26 13:36:21 -05:00
guibescos 350f8fa089
Fix comment (#780) 2023-04-25 12:57:54 -05:00
guibescos d42b48972d
Improve README (#774) 2023-04-20 08:36:24 +02:00
Jayant Krishnamurthy 94f38fdd74
Fix JS workflow (#727) 2023-03-29 09:36:25 -07:00
Dev Kalra 1d9e48991b
update build process (#718) 2023-03-29 16:07:05 +05:30
Ali Behjati 05649245fe
[price-pusher] Fix docker problem (#720) 2023-03-24 09:19:45 -05:00
Ali Behjati 575cd7075e
[price-pusher] Update Dockerfile (#719)
The package name was changed in a recent change and broke the dockerfile. This PR fixes it.
2023-03-24 08:54:30 -05:00
Jayant Krishnamurthy e995a2b89e
Add CI workflow to publish javascript packages (#707)
* workflows

* try private

* private

* more private

* update files

* fix workflow

* hm

* hm

* bump version

* bump version

* another bump

* text

* update readme

* update package lock
2023-03-21 12:25:30 -07:00
Jayant Krishnamurthy 9fef120b1f
[sdk] Move Solidity sdk into this repo (#674)
* fix dependencies

* wtf

* remove redundant pre-commit

* some sort of lerna issue

* fix dockerfile
2023-03-20 12:25:28 -07:00
Dev Kalra 94032fa521
[price-pusher] Injective error handling (#696)
* add few errors check in injective

* update injective sdk version to fix error

* bump version
2023-03-15 19:43:24 +05:30
Dev Kalra e81bfdf428
[price-pusher] Simulate injective tx (#689)
* simulate tx to calculate gas

* update package version

* injective class: flexible
2023-03-15 14:33:25 +05:30
Dev Kalra a5ddf84eb7
option correct name (#688) 2023-03-14 23:14:57 +05:30
Ali Behjati 3d8215edc2
[price-pusher] Add nonce for evm + refactor (#679)
* [price-pusher] Add nonce for evm + refactor

* Rename cooldown-duration to pushing-frequency

* Update readme
2023-03-09 16:38:30 +01:00
Dev Kalra 22c1fedd3d
[price-pusher] add workflow to push docker image (#667)
* add workflow

* update readme

* correct docker build
2023-03-08 01:26:52 +05:30
Dev Kalra 53c965481a
[price-pusher] update docker files (#654)
* update docker files

* update package .json

* remove nc

* updated price pusher package name
2023-03-03 13:53:43 +05:30
Ali Behjati 35a2fb61b0
[price-pusher] Bug fix on revert and crash (#652) 2023-03-02 17:05:30 +01:00
Dev Kalra 945910778b
[price-pusher]cleanup (#650)
* remove dependency pyth-common-js

* PriceConfig -> PriceItem in pyth price listener

* consistently name contract address variable

* release a version after this pr

* remove comment

* improve logging

* rename chain price pusher
2023-03-02 20:29:19 +05:30
Dev Kalra f5620ecbd2
[price-pusher] refactor (#648)
* add a dev command for ease

* implement a new command structure

* remove comments

* move files

* add config

* update readme

* testnet compose files update

* update mainnet compose file
2023-03-02 02:35:39 +05:30
Maurechi b3c697e5f5
added customGasStation (#644) 2023-02-28 12:58:48 -08:00
Dev Kalra 89139850b4
remove dependency from price config (#638) 2023-02-28 15:44:57 +05:30
Dev Kalra 6bd4e2d3b8
[price-pusher] refactor index page (#636)
* refactor index page

* remove pythcontractaddr

* address comments

* bug fix
2023-02-28 15:07:38 +05:30
Jayant Krishnamurthy b9430aee81
[sdk] Add new SDK packages to lerna (#630) 2023-02-28 09:14:52 +01:00
Ali Behjati bf49774fab
Update docker compose images (#635) 2023-02-27 19:45:32 +01:00
Dev Kalra 40cf49ec05
[price-pusher] refactor price listener (#634)
* update pyth-evm-js dependency to pyth-common-js

* refactor price listener
2023-02-27 20:28:07 +05:30