Commit Graph

38 Commits

Author SHA1 Message Date
Ali Behjati fe070baa48 feat(price-pusher): add gas multiplier cap for evm 2023-10-10 14:40:11 +02:00
Amin Moghaddam 9324c74569
[price-pusher] Sui pusher forward compatibility (#1072)
* Make sui pusher forward compatible

* Bump pusher version
2023-09-29 14:19:08 +02:00
Amin Moghaddam 2ec0f0a094
Handle locked gas coins case on sui price pusher (#1060)
* Handle locked gas coins case on sui price pusher
2023-09-22 09:43:12 +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
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
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
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
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
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
Jayant Krishnamurthy 94f38fdd74
Fix JS workflow (#727) 2023-03-29 09:36:25 -07: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
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 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
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
Dev Kalra 20e8e15cef
[pice-pusher] add injective pusher (#633)
* add injective pusher

* remove cwPriceServiceConnection
2023-02-27 17:05:12 +05:30
Dev Kalra fd0257d7d9
[price-pusher] add injective price listener (#627)
* add injective price listener

* minor change

* description fix

* add fixme comments
2023-02-25 01:51:07 +05:30
Dev Kalra ae88640422
move changes from pyth-js (#624) 2023-02-24 17:31:02 +05:30
Jayant Krishnamurthy bbe10ba553
[sdk] Move JS sdks into this repo (#611)
* move files to subdir and js sdk here

* update pointer

* fix move

* delete lib

* fix this

* gitignore

* aptos sdk

* gitignore

* terra js

* gitignore

* move price pusher

* add lib to gitignore

* move examples

* fix workflow

* gr

* contracts

* hm

* fix

* gr

* grrr

* fix dockerfile

* wtf

* fix
2023-02-22 13:44:42 -08:00