Commit Graph

136 Commits

Author SHA1 Message Date
Ali Behjati ef922220ee
chore(contract_manager): Rename package to @pythnetwork/contract-manager (#1507)
This change renames the contract manager package name to @pythnetwork/contract-manager to be consistent with our package names.
2024-04-29 15:25:05 +02:00
Dev Kalra d31cefb446
feat(contract_manager): separate store for wormhole (#1493)
* rename wormhole contract as per other names

* store for wormhole

* fix var name

* rename var

* rename contract based on other namings

* add yaml for aptos and cosmwasm
2024-04-24 16:32:16 +05:30
Ali Behjati e1f9783062
chore(target_chains/ethereum): add Blast and Mode gas claim patches (#1440)
This change adds the change in our implementation that allowed support
for enabling gas claims on Blast and Mode as a reference.
2024-04-10 19:32:11 +02: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
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
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
Ali Behjati f18f1c8e7c
fix(target_chains/ethereum): update some configs to make js tests work (#1399) 2024-03-27 14:56:27 +01: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
Dev Kalra e7bf47a18e
feat(entropy-v2): request with callback (#1342)
* request with callback

* address comments

* pre-commit

* compilation successful

* pre-commit

* add tests

* generate-abis

* pre-commit

* correct version

* address comments

* pre-commit

* remove unused

* add comments

* pre-commit

* gen abi

* naming consistency

* remove gas limit comment

* requestWithCallback comment

* remove unnecessary asserts

* pre commit

* update request with callback coment

* abis regen

* refactor as per feedback

* abi gen

* rename

* implement ientropyconsumer

* gen abi

* comment entropy consumer

* test fix

* add comment

* reintroduce blockhash

* add error for invalid reveal call

* use getEntropy in entropy consumer

* add test for requestAndRevealWithCallback

* pass through for entropy consumer

* pre commit fix

* abi gen

* address comments

* address feedback

* gen abis

* pre commit run
2024-03-12 01:58:57 +05:30
omahs fc916c6496
fix: typos (#1347)
* fix typo

* fix typos

* fix typo

* fix typos
2024-03-11 15:50:28 +00:00
Ali Behjati cc7b57145b
chore(xc_admin/frontend): set pythnet max publishers to 64 (#1305)
* chore(xc_admin/frontend): set pythnet max publishers to 64

* chore: fix ci
2024-02-21 13:46:06 +01:00
Dev Kalra 11c1fa7101
[executor/contract] add get methods and tests (#1260)
* add methods and tests

* add sequence check
2024-01-30 17:27:35 +05:30
Ali Behjati 9c6bdfdcf9
feat(contract_manager): script for EVM feeds contract deployment (#1254)
* feat(contract_manager): script for EVM feeds contract deployment

This change adds a script to replace truffle deployment scripts. This
gives us more control and flexibility over the deployment process.

* chore: address comments

---------

Co-authored-by: Dev Kalra <kalradev@outlook.com>
2024-01-30 12:11:19 +01:00
Amin Moghaddam 16b60d426e
Add entropy error signatures for easier access and debugging (#1259)
* Add entropy error signatures for easier access and debugging

* Add signatures for ExecutorErrors
2024-01-30 11:32:48 +01:00
Dev Kalra 82cd11cc77
[Executor] minor fix (#1246) 2024-01-25 17:41:39 +05:30
Amin Moghaddam eef8468a22
Entropy support in contract manager (#1242)
* Rename contracts to PriceFeedContracts

* Initial version of EvmEntropyContract
2024-01-24 14:36:10 +01:00
Dev Kalra 70c6db0020
[evm contracts] add version to entropy and executor (#1240)
* add version to entropy and executor

* resolve
2024-01-24 18:05:34 +05:30
Ali Behjati 7529b053e3 chore(ethereum): add new networks
This change adds RPC configuration for Filecoin and Hedera and adds the
contract addresses for Filecoin.
2024-01-22 19:36:38 +01:00
Dev Kalra 658d7ca032
[entropy] set provider fee and uri (#1230)
* set provider fee and uri

* update comment

* pre commit

* abis gen

* update tests
2024-01-18 13:55:48 +05:30
Ali Behjati b6c39ce7bb chore(ethereum): deploy to new networks 2024-01-11 18:48:19 +01:00
Amin Moghaddam cee5da93d8
Movement move (#1211)
* [contract manager] Implement WormholeAptosContract and integrate aptos cli with the manager

* Add getChainId for wormhole contracts

* Add movement contracts

* Simplify aptos cli
2024-01-11 12:35:52 +01:00
Amin Moghaddam d0ceb076d8
[evm] Persist price updates if more recent (#1208)
* Persist price info if it is more recent in parse functions

* Refactor setLatestPrice to include checks and event in a single place

* Add test cases
2024-01-09 10:30:20 +01:00
Dev Kalra 2d5e030149
[executor] call contract with value (#1206)
* call contract with value

* address feedback
2024-01-08 17:29:32 +05:30
Dev Kalra 220e06a62d
test owner upgradable (#1207) 2024-01-07 17:31:34 +05:30
Dev Kalra 1816838c8a
[executor] implement upgradability (#1198)
* get all test to work

* executor upgradable

* update comments

* address feedback

* fix tests
2024-01-04 15:59:29 +05:30
Amin Moghaddam e1606a42b5
Add Base sepolia + some minor improvements (#1202)
* Add base sepolia

* Fix broken rpc urls

* Small fix
2024-01-03 11:30:17 +01:00
Dev Kalra 6463f1a98f
fix check an active request (#1200) 2023-12-21 15:50:47 +05:30
Amin Moghaddam 51d23a2f52
chore(eth) Add zksync-sepolia (#1190) 2023-12-18 10:29:59 +01:00
Dev Kalra 5d951ee755
[entropy] audit 4. users can influence the Entropy revealed result (#1179)
* add a check for blockhash

* add comment

* update test name

* comment update

* change block number

* change order for assertions

* pre commit run

* names and comments
2023-12-14 17:57:45 +05:30
Dev Kalra 654c1eae89
add zero value check (#1181) 2023-12-14 17:54:43 +05:30
Dev Kalra f0c67c5996
[entropy] audit: 3. two step transfer (#1178)
* two step owner transfer

* admin two step transfer

* remove redundant test
2023-12-13 16:45:07 +05:30
Dev Kalra 941ee777f0
[entropy] audit - 2. lack of contract existence check (#1177)
* contract existence check

* better comment
2023-12-13 16:42:21 +05:30
Amin Moghaddam 8adac4344f
chore(eth) Add bttc (#1172)
* chore(eth) Add bttc
2023-12-08 22:56:16 +08:00
Ali Behjati bbd3d1add3 chore(target_chains/eth): revert solidity version
This change reverts the solidity version to 0.8.4 as the current version
troubles the Pyth price feeds contract deployment. Some tests are
changed to use the methods available in the older version.

Also, the Pyth contract version is updated. This is because we made a
change to the Governance structs (to add Stacks) that results in a new
bytecode.
2023-12-06 17:42:42 +03:30
Jayant Krishnamurthy c592fd36ca
[fortuna] Add confirmation delay before responding (#1161)
* Update abi

* fix tests

* update contract

* fix fortuna

* test confirmation delay

* cleanup

* fix

* split the fields

* saturating sub

* rename
2023-12-04 10:25:00 +01:00
Jayant Krishnamurthy 21a4ec8277
[entropy] Update readmes and docs (#1163)
* add some docs

* more doc edits
2023-12-03 09:14:46 -08:00
Jayant Krishnamurthy 0a2378e94c
[entropy] more executor tests (#1162) 2023-12-03 09:14:35 -08:00
Amin Moghaddam 8a98279fb2
chore(eth) deploy to mode (#1159) 2023-12-03 13:20:38 +03:30
Jayant Krishnamurthy 97bbc8cef9
add authorization for reveal method (#1156) 2023-11-30 13:28:00 -08:00
Jayant Krishnamurthy 99be611684
[stacks] Add constants for Stacks (#1158)
* add constants for stacks

* di
2023-11-30 11:57:15 -08:00