Commit Graph

56 Commits

Author SHA1 Message Date
Mohammad Amin Khashkhashi Moghaddam 4660026009
Remove osmosis testnet 4 as it is deprecated and we already have testnet 5 (#974) 2023-07-24 19:37:55 +09:00
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
Mohammad Amin Khashkhashi Moghaddam 66e5f186b2
Initial version of contract manager sdk (#943)
* Initial version of governance sdk

* Add more functionality to Sui contract manager and migrate variable naming to camelCase

* Refactor sui functions

* Add prettier

* Add SuiAuthorizeUpgradeContractInstruction for governance

* Update cosmwasm deploy tools entry point and expose some classes

* Remove console.logs from CosmWasm

* Refactor storage logic and add sui docs

* Use relative path for default path of store

* More documentation and minor fixes

* Rename package

* Add EVM classes

* Implement getters for data sources

* Use Google naming convention for abbreviations

More info here:
https://google.github.io/styleguide/tsguide.html#identifiers-abbreviations

* Change package license

* More comments and documentation

* Store code proxy function in CosmWasm
2023-07-12 15:50:24 +02: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
Sturdy 4f41525a2f
fix: Use generic_err constructor instead of literal (#941)
* fix: Use generic_err constructor instead of literal

* bump version

---------

Co-authored-by: Jayant Krishnamurthy <jayantkrishnamurthy@gmail.com>
2023-07-06 11:02:32 -07:00
Mohammad Amin Khashkhashi Moghaddam e5fd5a9d81
[target_chains] Add deployment information for neutron mainnet (#930)
* Deploy pyth cosmwasm 1.2.0 contract to neutron mainnet
2023-06-30 14:33:25 +02:00
Ryu 5e44fa4c95
[price_service] js client: getPriceFeed() (#922)
* [price_service] js client: getPriceFeed()

* Fix pre-commit

* Bump package versions

---------

Co-authored-by: Ali Behjati <bahjatia@gmail.com>
2023-06-28 18:28:37 +02:00
Mohammad Amin Khashkhashi Moghaddam ee6a744a33
Fix test by increasing major version instead of minor version (#921)
SDK now allows minor version updates, so the test was not failing anymore
as expected
2023-06-26 12:31:06 +02:00
Ali Behjati d07cc9d1ea
[hermes] Add storage tests + refactor (#907)
* [hermes] Add storage tests + refactor

* Bump pythnet_sdk version + update cosmwasm

* Address review feedbacks
2023-06-22 14:38:56 +01:00
Mohammad Amin Khashkhashi Moghaddam ef963cdfc6
Cosmwasm refactor and preparation for parse price feeds (#895)
* Add more tests for update_fee_amount

Restructure code to split parsing and updating logic so that all
messages can be parsed without being applied

* Fix docker build command for cosmwasm contract

* Refactor is_fee_sufficient tests

Extract out the chain specific part into separate function
Merge test_accumulator_is_fee_sufficient back into is_fee_sufficient

* Rename function and simplify process_batch_attestation tests
2023-06-22 09:49:05 +01:00
Jayant Krishnamurthy 25c1ac2c33
[xc-admin] Contract management tool (#885)
* cleanup

* blah

* gr

* stuff

* hm

* hmm

* wtf

* ah fix this

* ok finally it does something

* ok

* hrm

* hrm

* blah

* blah
2023-06-15 07:17:20 -07:00
Mohammad Amin Khashkhashi Moghaddam 211bf02450
Implement accumulator updates for cosmwasm (#880)
* Implement accumulator updates for cosmwasm

* Update fee calculation logic for accumulator messages

The fee for accumulator messages is base fee times the number of messages
but the logic remains the same for the batch method
2023-06-13 12:59:29 +02:00
Ali Behjati 183081cc20
Expose pythnet message buffer idls (#865) 2023-06-09 14:10:28 +02:00
Dev Kalra afecda7881
sei mainnet deployment (#851) 2023-05-30 13:11:03 +05:30
Daniel Chew 6cdcf4dffd
make cosmwasm deploy tools private (#850) 2023-05-29 21:25:42 +09: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 c0956f8157
[cosmwasm] contracts test and updates (#839)
* contracts test and updates

* wormhole deployment

* sei contract details update
2023-05-26 14:24:40 +05:30
Dev Kalra 315fd413a8
[cosmwasm] osmosis mainnet deployment (#833)
* correct lable

* osmosis mainnet deploymnent
2023-05-24 17:39:23 +05:30
Dev Kalra fbcb8a14f6
[cosmwasm] chain ids for pyth mainnet, pyth testnet stable, and pyth testnet edge feeds (#822)
* add chainids

* chain ids

* wormhole, instantiate, and test

* update chain structure

* update test script

* update chain id guidelines

* if brackets

* correct test arguments
2023-05-23 11:16:50 +05:30
Dev Kalra 3b03f9eddc
[cosmwasm] instantiate contracts on multiple chains (#799)
* instantiate contracts on multiple chains

* deploy to neurtron

* function not being used anymore

* rename file dir

* better logs

* wormhole guardian upgrade

* set default wormhole contract

* add all to stages to one file

* add extended chain config

* bug fix

* juno deployment

* removed unused parameter

* resolve bug add comments

* typo

* rename to vaa mainnet

* comment

* remove T

* hardcode checksum

* update download method comment

* update package-lock

* update package-json
2023-05-16 13:13:43 +05:30
Ali Behjati 1d59e9052b
[tilt] Fix issues (#801) 2023-05-05 15:31:57 +02:00
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
guibescos 3e5600508b
Fix axios bug by downgrading, bump all dependents (#786) 2023-04-28 10:19:40 -05:00
Dev Kalra 259f0124f1
[cosmwasm] wormhole stub (#770)
* docker file to build wormhole contracts

* move to wormhole stub

* add comment

* update readme
2023-04-20 16:22:06 +05:30
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 15060d6a5e
[cosmwasm] Osmosis multiple fee token support (#763)
* osmosis txfee supoort

* add get update fee for denom

* query for tx fee support

* add fee checker

* add comment

* implement osmosis code

* correct err response

* fix bugs

* cargo update

* disable rust feature

* return bool instead of result

* add wormhole comment

* tests added

* address feedback

* improve comments

* cargo update
2023-04-14 12:19:57 +05:30
Jayant Krishnamurthy 91dfc36e85
Move cosmwasm sdk into standard tree structure (#761)
* move cosmos sdk into standard tree structure

* fix typo

---------

Co-authored-by: Jayant Krishnamurthy <jkrishnamurthy@jumptrading.com>
2023-04-13 12:27:34 -07:00
Dev Kalra 1371f18e84
add injective mainnet (#754) 2023-04-10 17:08:19 +05:30
Dev Kalra 96c9e83e0f
[cosmwasm] Refactor deployer (#739)
* chain generic code

* pyth wrapper

* factory

* add calc fee and correct raw log

* add documentation

* rename method

* remove update fee  response

* add more documentation

* remove chain specific things

* minor tweak
2023-04-07 18:09:39 +05:30
Dev Kalra ccc2e33dee
update cleanup (#735) 2023-03-31 18:12:28 +05:30
Dev Kalra 299417396b
[cosmwasm] implement a build script (#733)
* implement a build script

* update readme
2023-03-31 12:50:35 +05:30
Dev Kalra 0b9f1f161d
[cosmwasm] implement contract version (#730)
* remove depreceated config

* add a contract version

* check valid instantiation

* up a version and generate schema

* update contract upgrade code
2023-03-30 22:35:53 +05:30
Jayant Krishnamurthy 94f38fdd74
Fix JS workflow (#727) 2023-03-29 09:36:25 -07:00
Ali Behjati 989ac4653a
Update .dockerignore (#722)
* Update .dockerignore

* Update .dockerignore + .gitignore

* Fix docker issue

* Update .dockerignore again

* Fix precommit
2023-03-27 16:44:08 +02:00
Jayant Krishnamurthy 04a8b75f80
add docs (#690)
Co-authored-by: Jayant Krishnamurthy <jkrishnamurthy@jumptrading.com>
2023-03-15 07:25:01 -07:00
Dev Kalra 93ca9c427a
migration logic (#687) 2023-03-14 14:58:57 +05:30
Dev Kalra 3e104b4184
[cosmwasm] address audit (#685)
* remove todos

* add governance source index check

* bumb pyth-sdk-cw version
2023-03-14 00:18:19 +05:30
Dev Kalra 8ff1ada6dc
[cosmwasm] Injective cosmwasm (#680)
* update process_batch_attestation

* add type to Response

* add injective's support

* add cfg feature

* compilation feature flag

* change price status to pyth status

* update README

* update injective's struct
2023-03-13 15:30:48 +05:30
Dev Kalra 16ac58539e
[pyth-cosmwasm] sec review update (#649)
* remove owner

* address sec review feedback

* update storage for pricefeeds

* deprecate owner

* remove owner field
2023-03-03 20:11:15 +05:30
Jayant Krishnamurthy 66783e5ef1
add docs for audit (#645)
Co-authored-by: Jayant Krishnamurthy <jkrishnamurthy@jumptrading.com>
2023-03-01 08:29:12 -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
Stanisław Drozd 8e11caa1ee
Bump wormhole rust crates to v2.14.8, remove rent adjustment (#601)
This change upgrades our wormhole dependency to the current latest
release. It introduces a fix in rent calculation logic, making Solitaire compatible with
PythNet. This lets us get rid of dedicated rent adjustment logic,
which we also remove in this change.
2023-02-20 11:06:57 +01:00
Dev Kalra 40e42a5b21
[cosmwasm] pyth-sdk-cw update version v1.0.0 (#595)
* update version

* update contract version
2023-02-14 20:22:14 +05:30
Dev Kalra d95c9247a2
[cosmwasm] Release setup (#594)
* update comment

* add a workflow

* update contracts readme

* add readme to pyth-sdk-cw
2023-02-14 15:28:31 +05:30
Dev Kalra 6daeb88244
[cosmwasm] Update example contract (#593)
* consume pyth-sdk-cw

* use helper queriers

* expose UnixTimestamp

* add testing examples
2023-02-14 14:55:42 +05:30
Dev Kalra c59c00333a
add query helper functions (#587) 2023-02-13 22:50:38 +05:30
Dev Kalra 66a46dd488
add testing module (#585) 2023-02-13 22:05:58 +05:30
Dev Kalra 62083eb6d6
[cosmwasm] Move data structures to pyth-sdk-cw (#578)
* pyth-sdk-cw add data structures

* consume pyth-sdk-cw data structure

* pre commit hooks
2023-02-11 00:23:24 +05:30