Commit Graph

94 Commits

Author SHA1 Message Date
Jayant Krishnamurthy 925f606550
Fix oracle swap example and add docs (#856) 2023-06-03 07:39:00 -07:00
guibescos 11cb14ca76
Deploy neon (#854)
* Push

* Add config

* Sync up optimization for hardhat and truffle
2023-06-02 11:29:35 +01:00
Jayant Krishnamurthy 64bce66383
Choose unique VAA for query time if it exists (#853)
* hmm this way works but is complicated

* choose unique vaa

* update tests

* lint

* bump versions
2023-06-01 07:32:10 -07: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
Ali Behjati 4072520006
[eth] Update accumulator deserialization (#838) 2023-05-24 16:05:17 +02:00
Jayant Krishnamurthy 01b54d2c58
Add PythErrors abi (#827)
* add error abis

* add to script too
2023-05-23 07:13:01 -07:00
Ali Behjati 1dbc592836
[eth] Fix oracle-swap example frontend bugs (#813)
* [eth] Fix oracle-swap example frontend bugs

* [eth] Fix build warnings

* remove test

* add passWithNoTests to amm example

---------

Co-authored-by: Daniel Chew <cctdaniel@outlook.com>
2023-05-11 12:53:50 +02:00
guibescos 71bab7a9fd
[evm] Make comment match the function below (#804)
* Make comment match the function below

* Fix precommit
2023-05-05 12:49:14 -05:00
Ali Behjati 1d59e9052b
[tilt] Fix issues (#801) 2023-05-05 15:31:57 +02:00
Ali Behjati f94dceb1bc
[eth] Add Pyth Accumulator (#776)
This PR adds the support WormholeMerkle accumulator message to the ethereum contract while still supporting the old message format. The code is not optimized yet and with more optimizations we can achieve a better gas usage. Currently based on the gas benchmark below it has a 18% improvement with a single price feed. Although the cost of updating 5 feeds in the same batch is higher than the current approach but in reality the chances that all 5 feeds be in the same batch is very low.
2023-05-03 16:08:53 +02:00
guibescos 71632fa848
[docs] improve oracle amm (#791)
* Add address to Polygon clontract and cleanup

* Add url

* Typo

* Typo

* Improve writing

* Add comma

* Fix precommit

* Revert package-lock.json
2023-05-02 09:41:50 -05:00
guibescos 3e5600508b
Fix axios bug by downgrading, bump all dependents (#786) 2023-04-28 10:19:40 -05:00
Jayant Krishnamurthy c2484b1514
Gas usage experiments (#756)
* add gas usage experiments

* add proof verification

* extend existing contract

* update struct

* cleanup

* add threshold comparison

* ok this mostly works

* fix

* comment

* rename

* use rand utils
2023-04-11 07:07:45 -07:00
Ali Behjati 85b9c80e2a
[eth] Add Canto mainnet (#751)
* [eth] Add Canto mainnet

This deployment also enables contract rewards on canto. Since the
changed code is only specific to the Canto network and is used only
in initialization, only the diff is added as a file.

* Remove ds store

* Add some doc to deploying.md
2023-04-07 17:49:01 +02:00
Ali Behjati 71da520647
[eth] Deploy to Conflux eSpace (#748) 2023-04-07 16:23:20 +02:00
Ali Behjati 2db5a26752
[eth] Deploy to testnet Mantle (#742) 2023-04-04 13:34:32 +02:00
Ali Behjati 343091d788
[eth] Update ethereum js sdk readme (#738) 2023-04-04 10:04:12 +02:00
Ali Behjati 111b0fa09f
[eth] Deploy to meter (#731)
* [eth] Deploy to meter testnet

* Add mainnet
2023-03-31 18:51:18 +02:00
Cinque McFarlane-Blake 38a8c2831a
[evm] Deploy on Canto Testnet (#725)
* [evm] Deploy on Canto Testnet

* Redeploy

* Address feedbacks

---------

Co-authored-by: Ali Behjati <bahjatia@gmail.com>
2023-03-29 19:15:08 +02:00
Jayant Krishnamurthy 94f38fdd74
Fix JS workflow (#727) 2023-03-29 09:36:25 -07:00
Ali Behjati 272f11aac2
[eth] Redeploy shimmer testnet (#724) 2023-03-28 10:11:56 +02:00
Jayant Krishnamurthy 7dad38ea89
[evm] Deploy on Polygon ZkEVM mainnet (#723)
* [evm] Deploy on Polygon ZkEVM mainnet

* Trigger CI

* clippy

---------

Co-authored-by: Ali Behjati <bahjatia@gmail.com>
2023-03-27 08:18:09 -07:00
Jayant Krishnamurthy c45664c951
[evm] Polygon ZKEVM deployment (#711)
* gr

* doc

* add zkevm deployment

* gr

* zkevm deployment

* add zkevm testnet
2023-03-22 13:04:47 -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
guibescos d06c10502d
[evm] Verifying shimmer_testnet and neon_devnet with hardhat (#703)
* Add shimmer testnet and neon_devnet

* zksync comment

* Add verify
2023-03-17 09:47:59 -05:00
Ali Behjati fc0de28b86
[eth] Update zksync goerli after network reset (#697) 2023-03-16 09:36:13 +01:00
guibescos 156fb23f24
[evm] deploy neon devnet (#693)
* add evmos_testnet deployment files

* fix precommit

* Deploy to neon

* Precommit

* Add to evm-js

* Fix precommit

---------

Co-authored-by: Daniel Chew <cctdaniel@outlook.com>
2023-03-14 22:48:46 -05:00
Daniel Chew de0096efd4
[eth] add evmos mainnet (#686)
* add evmos mainnet

* add evmos to sdk
2023-03-14 18:12:49 +09:00
Daniel Chew 533181cc80
[eth] add evmos testnet (#683)
* add evmos_testnet deployment files

* fix precommit

* fix precommit

* bump
2023-03-14 14:11:23 +09:00
Ali Behjati 085f08055a
[eth] Add zksync mainnet (#682)
* [eth] Add zksync mainnet

Also adds verify url for shimmer testnet

* Bump client version

* Update dummy value
2023-03-13 09:12:46 +01:00
Ali Behjati 1771a8a98a
[eth] Add new testnets (#669)
- Add chiado (gnosis testnet) and shimmer testnet
- Add chiado and shimmer_testnet and base_goerli addr to js sdk
2023-03-08 10:01:05 +01:00
Ali Behjati 70c006176b
Add base goerli config (#668) 2023-03-08 09:48:24 +01:00
Jayant Krishnamurthy bab6cccbad
add getPrice call to example (#666) 2023-03-07 06:36:42 -08:00
Jayant Krishnamurthy deb804617b
add an example for benchmarks (#647) 2023-03-01 12:34:32 -08:00
Jayant Krishnamurthy b9430aee81
[sdk] Add new SDK packages to lerna (#630) 2023-02-28 09:14:52 +01:00
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
Ali Behjati 58505a21c8
[ethereum] Update truffle config (#552)
* [ethereum] Update truffle config

hdwallet package was updated in the PR bringing lerna to this repo.
In the new package the constructor arguments have changed. This PR updates that and adds a helper function to make the config more clear.

* Update truffle-config.js
2023-02-02 09:55:43 +01:00
Jayant Krishnamurthy 3b44d02828
[oracle-swap] Improve oracle-swap frontend (#544)
* stuff

* make this look better

* improving ux

* basic functionality works

* clean up appearance

* 3 seconds

* clean up code a bit

* blah

* change website title and favicon and fix useEffect warning

* actually change website title and fix useEffect warning

* update metadata

* trigger deployment

---------

Co-authored-by: Daniel Chew <cctdaniel@outlook.com>
2023-01-31 11:00:09 -08:00
Ali Behjati 4c5d0d5e1b
[refactor] Add global lerna (#546)
* Move lerna to the top

* Set version to independent

Packages are versioned independently

* Update packages and the lock

* Add build cache and better reference

* Add lerna docker base

* Add wormhole_attester sdk and some minor impr

* Update tsconfig to fix outDir impact by composite

* Update eth package

* Update p2w to use solidity-sdk

* Change xc-admin CI to lerna CI action

* Add more packages to the list + bugfixes

* Update dockerfiles to have tilt working

* Format the code

* Fix some issues

* Fix the change of usePyth.ts

* lerna build fix

* Fix foundry
2023-01-31 17:09:31 +01:00
Daniel Chew 6fea30bdeb
fix evm example broken links (#543) 2023-01-29 21:54:10 +08:00
Ali Behjati fac47b5bef
[refactor] Move eth example to the target_chains (#535)
This happened because the PR was older than the restructure
2023-01-25 18:32:15 +01:00
Ali Behjati 70fd0a6c15
[wormhole-attester] Move p2w-sdk inside wormhole_attester directory (#534)
* Move p2w-sdk to wormhole_attester

* Update references to the sdk
2023-01-25 18:14:02 +01:00
Ali Behjati 084acdb57e
[refactor] Convert hyphen to underscore in the directory tree (#524)
* Move price-service to price_service

* Update references to price-service

* Rename target-chains to target_chains

* Update references to target-chains

* Rename tilt-devnet to tilt_devnet

* Update references to tilt-devnet

* Rename wormhole-attester to wormhole_attester

* Update references to wormhole-attester

* Rename multisig-wh-message-builder

* Update references to wh-msg-bldr

* Fix dockerfile issue

* Rename remove-executor to remote_executor

* Update references to remote-executor

* Rename xc-governance-sdk-js

* Update references to the governance sdk

* Move docker-images to docker_images

* Update references to docker-images
2023-01-24 19:06:22 +01:00