Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: vrf listener remove args + add sphinx docs config #162

Merged
merged 10 commits into from
Jul 23, 2024
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
version: 2

build:
os: "ubuntu-22.04"
apt_packages:
- libgmp3-dev
tools:
python: "3.9"
jobs:
pre_install:
- pip install poetry
- poetry export -f requirements.txt --output requirements.txt --without-hashes --extras docs

sphinx:
configuration: docs/conf.py
fail_on_warning: true

python:
install:
- requirements: requirements.txt
- method: pip
path: .
293 changes: 293 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,293 @@
## v2.0.0rc1 (2024-07-23)

### Feat

- Checkpoint setter (#145)
- ci-tests (#160)
- add infra folder for deployments (#152)
- pypi test jobs, better permissions management (#148)
- add id-token permission (#147)

### Fix

- versions
- vrf listener remove useless args
- CI tests (#159)
- CI tests and prerelease (#158)
- ci-tests error (#157)
- try to fix pragma-utils error into test-pypi job (#149)
- workflows publisher, docker-build (#146)
- env variables, rm artifacts for release (#144)

## v2.0.0-rc0 (2024-07-15)

### Feat

- **ci/cd**: build/release pipeline (#139)

## v1.5.2 (2024-07-01)

### Fix

- **vrf**: log error

## v1.5.1 (2024-07-01)

### Fix

- vrf ignore request threshold

## v1.5.0 (2024-06-29)

### Feat

- PR template
- price pusher (#121)

### Fix

- **vrf-handler**: rpc url env var

## v1.4.7 (2024-06-26)

### Feat

- get vrf requests status in parallel

## v1.4.6 (2024-06-26)

### Feat

- update default RPCs

## v1.4.5 (2024-06-26)

### Fix

- vrf handler (#126)
- PragmaAPIError as exception
- **stagecoach**: default values

## v1.4.4 (2024-06-21)

## v1.4.3 (2024-06-19)

## v1.4.2 (2024-06-19)

### Feat

- add NSTR support (#119)

## v1.4.1 (2024-06-18)

### Feat

- gate io and mexc fetchers (#118)

## v1.4.0 (2024-06-16)

### Feat

- Publishing offchain future assets (#109)
- PragmaAPIClient clean up (#113)
- vrf cron (#110)
- **x10_new_assets**: Added new assets

## v1.3.10 (2024-06-04)

### Fix

- **publisher**: pending block support
- **publisher**: deviation check

## v1.3.9 (2024-05-23)

### Fix

- **vrf**: query latest block

## v1.3.8 (2024-05-23)

## v1.3.7 (2024-05-23)

### Fix

- **vrf**: support pending block

## v1.3.6 (2024-05-23)

### Fix

- **vrf**: get events chunk size

## v1.3.5 (2024-05-23)

### Fix

- **vrf**: ignore old requests (#103)

## v1.3.4 (2024-05-22)

### Fix

- vrf block number condition (#102)

## v1.3.3 (2024-05-22)

### Fix

- get events to pending block (#101)
- Binance fetcher (#100)

## v1.3.2 (2024-04-23)

### Fix

- clean up code (#99)

## v1.3.1 (2024-04-15)

## v1.3.0 (2024-04-15)

## v1.2.14 (2024-03-15)

## v1.2.13 (2024-03-14)

## v1.2.12 (2024-03-14)

## v1.2.11 (2024-03-13)

## v1.2.10 (2024-03-08)

## v1.2.9 (2024-03-08)

## v1.2.8 (2024-03-08)

## v1.2.7 (2024-03-07)

### Fix

- update deps & apply nonce mixin (#87)

## v1.2.6 (2024-03-05)

### Fix

- PublisherFetchError as Exception

## v1.2.5 (2024-02-23)

## v1.2.4 (2024-02-21)

### Fix

- kucoin fetcher timestamp

## v1.2.3 (2024-02-21)

### Fix

- fetchers volume overflow
- strk pairs fetchers hopping (#79)

## v1.2.2 (2024-02-20)

### Fix

- fetcher (#78)

## v1.2.1 (2024-02-20)

### Fix

- minor fixes

## v1.2.0 (2024-02-20)

### Feat

- add STRK to geckoterminal
- add STRK to defillama fetcher

### Fix

- gecko fetcher for STRK/USD
- defillama/gecko fetchers
- default api url

## v1.1.9 (2024-02-13)

### Feat

- add StarknetAMMFetcher

## v1.1.8 (2024-02-12)

## v1.1.7 (2024-02-05)

## v1.1.6 (2024-01-18)

### Fix

- rpc urls

## v1.1.5 (2024-01-18)

## v1.1.4 (2024-01-18)

## v1.1.3 (2024-01-18)

## v1.1.2 (2024-01-15)

## v1.1.1 (2024-01-05)

## v1.1.0 (2023-12-27)

## v1.0.10 (2023-12-18)

## v1.0.9 (2023-11-23)

## v1.0.8 (2023-11-21)

## v1.0.7 (2023-11-20)

## v1.0.6 (2023-11-16)

## v1.0.5 (2023-11-05)

## v1.0.4 (2023-11-05)

## v1.0.3 (2023-10-17)

## v1.0.2 (2023-10-16)

## v1.0.1 (2023-09-29)

### Feat

- add default rpc's and remove rpc_key env (#23)

### Fix

- get client id for rpc url (#34)
- missing warning module import (#25)

## v1.0.0 (2023-09-19)

## v1.0.0-beta7 (2023-09-17)

## v1.0.0-beta6 (2023-09-16)

## v1.0.0-beta5 (2023-09-12)

## v1.0.0-beta4 (2023-09-01)

## v1.0.0-beta3 (2023-09-01)

## v1.0.0-beta2 (2023-09-01)

## v1.0.0-beta1 (2023-09-01)

## v1.0.0-beta (2023-09-02)

## v1.0.0-alpha (2023-08-30)
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.0.0.rc-0
2.0.0rc1
2 changes: 1 addition & 1 deletion checkpointer/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.1
2.0.0rc1
1 change: 1 addition & 0 deletions checkpointer/checkpointer/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = "2.0.0rc1"
2 changes: 1 addition & 1 deletion checkpointer/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "checkpointer"
version = "0.0.1"
version = "2.0.0rc1"
authors = ["0xevolve <[email protected]>"]
description = "Checkpoints service for Pragma."
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion infra/vrf-listener/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ COPY vrf-listener/ /opt/vrf-listener/
WORKDIR /opt/vrf-listener
RUN poetry env use 3.12
RUN poetry install
ENTRYPOINT poetry run vrf-listener -n ${NETWORK} --oracle-address ${ORACLE_ADDRESS} --vrf-address ${VRF_ADDRESS} --admin-address ${ADMIN_ADDRESS} --private-key ${PRIVATE_KEY} -t ${CHECK_INTERVAL} --rpc-url ${RPC_URL}
ENTRYPOINT poetry run vrf-listener -n ${NETWORK} --vrf-address ${VRF_ADDRESS} --admin-address ${ADMIN_ADDRESS} --private-key ${PRIVATE_KEY} -t ${CHECK_INTERVAL} --rpc-url ${RPC_URL}
3 changes: 1 addition & 2 deletions pragma-sdk/pragma_sdk/onchain/mixins/randomness.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,6 @@ async def refund_operation(
async def handle_random(
self,
private_key: int,
min_block: int = 0,
ignore_request_threshold: int = 3,
):
"""
EvolveArt marked this conversation as resolved.
Show resolved Hide resolved
Expand All @@ -360,7 +359,7 @@ async def handle_random(

block_number = await self.full_node_client.get_block_number()

min_block = max(min_block, block_number - ignore_request_threshold)
min_block = max(block_number - ignore_request_threshold, 0)
logger.info(f"Handle random job running with min_block: {min_block}")

sk = felt_to_secret_key(private_key)
Expand Down
2 changes: 1 addition & 1 deletion pragma-sdk/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "pragma-sdk"
version = "2.0.0.rc-0"
version = "2.0.0rc1"
authors = ["0xevolve <[email protected]>"]
description = "Core package for rollup-native Pragma Oracle"
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion pragma-utils/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.1
2.0.0rc0
1 change: 1 addition & 0 deletions pragma-utils/pragma_utils/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = "2.0.0rc0"
2 changes: 1 addition & 1 deletion pragma-utils/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "pragma-utils"
version = "0.0.1"
version = "2.0.0rc0"
authors = ["0xevolve <[email protected]>"]
description = "Utils functions shared accross Pragma python packages."
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion price-pusher/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.1
2.0.0rc1
1 change: 1 addition & 0 deletions price-pusher/price_pusher/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = "2.0.0rc1"
2 changes: 1 addition & 1 deletion price-pusher/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "price-pusher"
version = "0.0.1"
version = "2.0.0rc1"
authors = ["0xevolve <[email protected]>"]
description = "Price pushing service for Pragma."
readme = "README.md"
Expand Down
Loading
Loading