Commit Graph

2914 Commits

Author SHA1 Message Date
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
Jayant Krishnamurthy ddbbe2af14
Entropy Solidity SDK & usage example (#1124)
* grr

* revert

* ok

* ok

* ok

* deploy script

* implement interface

* doc comments

* fix comment
2023-10-31 06:32:21 -07:00
Amin Moghaddam d4fad5049c
Restart pusher on balance issues (#1125)
* Restart pusher on balance issues

* Bump
2023-10-31 08:39:22 +01:00
Ali Behjati d07579e0a6 feat(hermes): only return unique price updates on get_* methods 2023-10-27 17:01:42 +02:00
Ali Behjati 8bee2e8e12 chore(hermes): change level of some logs 2023-10-27 17:01:42 +02:00
Amin Moghaddam 8d99ac402c
chore(evm) Add more networks (#1121) 2023-10-23 11:41:07 +02:00
Jayant Krishnamurthy 4776bdcdf9
Fortuna CI workflows (#1120)
* CI and docker

* cleanup

* erc

* whoops
2023-10-20 10:49:41 -07:00
Jayant Krishnamurthy d87cd7c5fd
Rename pyth-rng to Fortuna (#1119) 2023-10-20 09:41:05 -07:00
Jayant Krishnamurthy d096bfaf73
[pyth-rng] A few small improvements (#1114)
* more stuff

* build

* cleanup

* Update pyth-rng/src/command/generate.rs

Co-authored-by: Reisen <Reisen@users.noreply.github.com>

* Update pyth-rng/src/command/generate.rs

Co-authored-by: Reisen <Reisen@users.noreply.github.com>

* Update pyth-rng/src/command/generate.rs

Co-authored-by: Reisen <Reisen@users.noreply.github.com>

* tracing

---------

Co-authored-by: Reisen <Reisen@users.noreply.github.com>
2023-10-20 09:22:20 -07:00
Ali Behjati efcfae3ed7 chore(eth): deploy to chiliz mainnet 2023-10-20 17:42:47 +02:00
Ali Behjati 6215460613 fix(hermes): fix metrics content-type
Openmetrics specification expects its own content-type instead of plain
text. I didn't set it before as Prometheus still accepts text format but
apparently there are some scrapers (like datadog) that decide
dynamically what format to use for parsing based on the content type and
our format follows Openmetrics specification. Prometheus should be able
to parse it but weirdly it didn't work in our situation. An example of
inconsistency is how counters are represented. In Openmetrics
specification the metric name is appended by `_total` whereas normal
prometheus just uses the metric name.
2023-10-20 13:16:11 +02:00
Amin Moghaddam 99eaab878d
Add option to choose a different account derived from the same mnemonic (#1116)
This is useful for running 2 pushers in parallel
2023-10-20 11:53:26 +02:00
Amin Moghaddam 8b721c38dc
Update sui packages addresses (#1115) 2023-10-20 10:57:24 +02:00
Jayant Krishnamurthy 11eab4f1d7
[pyth-rng] Add support for multiple blockchains (#1110)
* stuff

* missing files

* PR comments

* ok
2023-10-19 13:18:53 -07:00
Ali Behjati 6db59ff6d1 fix(hermes): correct the metrics server env var 2023-10-19 12:46:38 +02:00
Ali Behjati 8075d0704e refactor(hermes): move metrics endpoint to a separate metrics server 2023-10-19 11:59:10 +02:00
Ali Behjati 29dc1082dd fix(hermes): handle ws notifier shut down properly 2023-10-19 11:59:10 +02:00
Ali Behjati cefdd84483 refactor(hermes): move docs_examples inside api 2023-10-19 11:59:10 +02:00
Ali Behjati 65e21997e4 chore: remove price service mentions in the repo 2023-10-19 09:25:03 +02:00
Jayant Krishnamurthy 76a337971e
Initial version of random number server (#1103)
* feat(pyth-rng): first draft of pyth-rng

* adding api

* ok that wasnt so bad

* minor stuff

* add command to get current request

* refactor config

* refactor

* refactor

* ok

* ok

* it works

* blah

* stuff

* stuff

* builds

* builds

* ok it works

* more stuff

* cleanup

* ok stuff

* format

* docs

* ali comments

* correct fee

* warnings

---------

Co-authored-by: Reisen <reisen@morphism.org>
2023-10-18 14:35:25 -07:00
Ali Behjati 49d1a579c3 chore: cleanup repo 2023-10-18 18:32:42 +02:00
Amin Moghaddam c0057809f5
chore(evm): deploy to new networks (#1107) 2023-10-18 17:20:44 +02:00
Ali Behjati 9da64103db feat(hermes): add metrics
Co-authored-by: Reisen <Reisen@users.noreply.github.com>
2023-10-18 15:04:10 +02:00
Jayant Krishnamurthy 727f9ec33d
Initial version of random numbers contract (#1093)
* initial merkle tree cut

* initial working test

* grrr

* add this deploy script

* contract stuff

* doc

* cleanup

* cleanup

* delete janky deploy script

* first commit of random2

* randomness

* format

* wtf

* wtf

* stuff

* cleanup

* minor

* add extra field

* pr comments
2023-10-17 13:07:47 -07:00
Amin Moghaddam 4bc11b863c
chore(evm): deploy to new networks (#1104)
zetachain testnet
2023-10-17 18:15:17 +02:00
Ali Behjati ad277ec7f2 chore(evm): deploy to new networks
chiliz_spicy and scroll
2023-10-17 10:04:34 +02:00
Ali Behjati 2b51cffdc7 fix(price-service/client): remove axios version lock 2023-10-16 16:46:57 +02:00
guibescos 5c0c252cee
Refactor MultisigInstruction (#1098)
* Refactor unknown

* Cleanup

* Cleanup further
2023-10-13 15:12:13 +01:00