Commit Graph

2691 Commits

Author SHA1 Message Date
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
Ali Behjati 245cc231fd refactor(hermes): improve logging 2023-12-11 18:54:55 +01:00
guibescos f12df1528b
Update wormhole endpoint (#1171) 2023-12-09 00:54:38 +07:00
Amin Moghaddam 8adac4344f
chore(eth) Add bttc (#1172)
* chore(eth) Add bttc
2023-12-08 22:56:16 +08:00
Ali Behjati 93e9c49b60 fix(hermes): handle price feed removal properly 2023-12-07 18:20:31 +00:00
Reisen 214bafa420 near: internal feedback 2023-12-07 17:40:18 +00:00
Reisen 415ca4f9b1 near: add vaa verify to claim, also fixes private 2023-12-07 17:40:18 +00:00
Reisen bd24d4d42c near: address both refund logic issues 2023-12-07 17:40:18 +00:00
Reisen f3dce0e316 near: make codehash safe for repeat upgrades, document 2023-12-07 17:40:18 +00:00
Reisen 177b5af94b near: use Seconds alias to document units, fix calc 2023-12-07 17:40:18 +00:00
Reisen 5b7ada59bd fix(near): sdk compat 2.0 2023-12-07 17:40:18 +00: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
guibescos 003cba26d6
[xc-admin-proposer] Handle RPC errors (#1167)
* Fix server

* Add some comments
2023-12-06 13:27:56 +07:00
Reisen 7b3055460e fix(near): match Price interface from pyth-sdk 2023-12-05 10:12:39 +00:00
guibescos e6d04f9914
Names (#1164) 2023-12-04 19:53:57 +07:00
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
guibescos 5de008fb92
Add staking program and mesh program to xc-admin UI (#1157)
* Do it

* Small bug

* Fix CI

* Address comments
2023-12-04 14:37:34 +07: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
guibescos 57b1367b91
Add staking instructions to xc-admin (#1160)
* Do it

* Add xc-admin-cli command for proposing deactivate-stake instructions

* Cleanup

---------

Co-authored-by: Thomaz Leite <thomaz@pyth.network>
2023-12-02 01:55:51 +00:00
Jayant Krishnamurthy 97bbc8cef9
add authorization for reveal method (#1156) 2023-11-30 13:28:00 -08:00
swimricky 8202181a1b
Solana receiver decode vaa accumulator (#1145)
* feat: impl postAccumulatorUpdateVaa and postUpdates and CLI test changes

* feat: clean up

* refactor: reorganize and fix tests

* refactor: clean up

* chore: add rust-toolchain for solana target contract dir

* refactor: clean up and address feedback

* refactor: make emitter chain & post vaa program configurable

* feat: remove postAccUpdateVaa and use wh post_vaa in cli

* fix: add check for emitter address, hardcode expected emitter chain/addr for now

* chore: cleanup

* chore: clean up

* feat: address feedback, move checks from context into account, use signatureset for postupdates

* feat: use pubkey and require_keys_eq! for emitter addr check

* refactor: address feedback

add documentation and todos, revert programsimulator to use upgradable bpf loader

* feat: remove signature_set account from post_updates, update docs & readme

* test: add lazy static for setting up pyth binary but still has same invalidaccountdata issue

* chore: clean up

* refactor: remove unused errors

* feat: use UncheckedAccount for posted_vaa so owner can be checked dynamically against config
2023-11-30 16:04:41 -05:00
Jayant Krishnamurthy 99be611684
[stacks] Add constants for Stacks (#1158)
* add constants for stacks

* di
2023-11-30 11:57:15 -08:00
Dev Kalra ae7610b0ab
[entropy] governance (#1154)
* governance

* correct comment

* add upgradability

* remove unused lib

* update governance and update logic

* change specifiers

* fix tests

* add tests

* rebase bug fixes

* change error name

* fix tests

* no need of UUPSProxy

* minimise the amount of code

* separate file for authorized tests

* add comment

* correct comment
2023-11-30 16:29:35 +05:30
Jayant Krishnamurthy b2e4d56d36
[entropy] Entropy gas benchmarks and optimizations (#1153)
* add gas benchmark

* fix benchmark

* fix benchmark

* fix benchmark

* optimization 1: remove provider

* move to u128 for fees

* update benchmark

* comment

* reduce commitment storage

* optimize storage more

* fix fee fields in state

* hmm

* ok

* fix

* cleanup

* this got out of hand

* test overflow conditions

* fix bad merge

* doc
2023-11-29 14:37:42 -08:00
guibescos f1bec26581
Do it (#1155) 2023-11-29 17:12:10 +00:00
Jayant Krishnamurthy a5646bf840
[entropy] Add a default provider (#1150)
* making a mess here

* add default provider

* cleanup

* test new abi

* add uri to fortuna

* pr comments
2023-11-27 18:40:36 -08:00
Reisen 7641f7eacf docs(near): improve example 2023-11-27 17:18:19 +00:00
Jayant Krishnamurthy b7a089b51e
[entropy] Change provider interface to simplify supporting many chains (#1149)
* grr

* cleanup

* fix semver
2023-11-27 07:39:54 -08:00
Jayant Krishnamurthy da72b6e250
[entropy] First cut at EVM executor (#1148)
* executor

* executor tests

* basic test works

* cleanup

* cleanup

* fix ci
2023-11-27 06:45:43 -08:00
Ali Behjati ff0d9fe65c
chore(eth): update mentions to evm-testnet and hermes-beta (#1151)
We have deployed new Pyth contracts on testnets using the stable
feeds and users no longer need to use hermes-beta in many networks.
This change updates the mentions to them.
2023-11-27 10:12:52 +01:00
Reisen 2b118c1f9c feat(near): parse string identifiers 2023-11-24 16:14:48 +00:00
Ali Behjati 2c93737366
chore(eth): deploy stable contracts on testnets (#1146)
* chore(eth): deploy stable contracts on testnets

* chore(eth): address feedbacks

* Add op sepolia

---------

Co-authored-by: Amin Moghaddam <amin@pyth.network>
2023-11-24 11:59:04 +01:00
guibescos 7f54f4226b
Ship 64 pubs (#1144) 2023-11-23 21:21:07 +00:00
Ali Behjati 9335898ece feat(contract-manager): add script to fetch account balances 2023-11-21 17:53:43 +01:00
Jayant Krishnamurthy a22b202772
[fortuna] Add tests (#1133)
* fix stuff

* ok that was annoying

* ok

* stuff

* better tests

* cleanup

* pr comments
2023-11-20 12:44:26 -08:00
Jayant Krishnamurthy cc7054b6f3
[scheduler] Default to early updates (#1140)
* make early updates the default

* make early updates the default
2023-11-16 09:04:14 -08:00
Reisen ef02cfefe4 docs(near): add near guides 2023-11-10 17:03:20 +00:00
Jayant Krishnamurthy c0b383e277
[entropy] add arbitrum goerli (#1139) 2023-11-09 13:58:09 -08:00
Ali Behjati 59c7a0cff3 chore: update spy guardian version 2023-11-09 15:29:05 +03:30
Reisen 9d8c271607 feat(near): accumulators 2023-11-08 12:32:06 +00:00
Amin Moghaddam 16832aba51
chore(eth): Add tomochain (#1134) 2023-11-07 10:28:52 +01:00
Jayant Krishnamurthy 8e11d4f442
minor stuff (#1132) 2023-11-03 10:04:54 -07:00
Jayant Krishnamurthy 8c35091831
[entropy] Minor updates to parameters / docs (#1131)
* update parameters

* install instructions

* format stuff
2023-11-01 13:34:47 -07:00
Jayant Krishnamurthy 44ebfbaf55
[entropy] make the SDK public
I think I need this field to get NPM to publish this new package.
2023-11-01 12:41:39 -07:00
Jayant Krishnamurthy 46b597e653
[fortuna] support multiple random value encodings (#1129) 2023-11-01 12:40:21 -07:00
Jayant Krishnamurthy f36e868ef6
[entropy] Typescript code for coin flip example + docs (#1128)
* adding stuff

* add coin flip example

* it works

* docs

* hm

* pr comments
2023-11-01 10:30:04 -07:00
Jayant Krishnamurthy f0a077a2cf
[fortuna] Add legacy transaction support (#1126)
* gr

* support legacy transactions

* doc
2023-10-31 12:13:12 -07:00
Jayant Krishnamurthy fe7984d132
[entropy] Rename files (#1127)
* rename stuff

* fix

* fix
2023-10-31 08:50:15 -07:00