Skip to content

Commit e794c05

Browse files
akherchaRemsko
andauthored
refactor: Removed currencies table + Merkle feeds route + All decimals to 18 (#184)
* remove-currencies-and-merkle: * remove-currencies-and-merkle: Added todos for next steps * remove-currencies-and-merkle: Removed currencies * remove-currencies-and-merkle: * remove-currencies-and-merkle: Unused deps * remove-currencies-and-merkle: Exclude E2E tests for release builds * test: E2E get_entry (#178) * tests(e2e_get_entry): get_entry simple * tests(e2e_get_entry): removed to_owned * tests(e2e_get_entry): removed postgre from CI * tests(e2e_get_entry): Added nextest config * tests(e2e_get_entry): test OK * tests(e2e_get_entry): OK for multiple intervals * tests(e2e_get_entry): increased startup timeout * tests(e2e_get_entry): Increase startup timeout for pragma nod * tests(e2e_get_entry): Local mode for integration tests * test: e2e get_entry for strk/eth (#185) * tests: add fake datas * tests: deps * tests: more tests * tests: more tests * tests: fix view refresh call * tests: add twap table * tests: fix routing many * tests: fix twap * tests: uncomment * tests: fix * tests: remove pairs const * tests: lint * tests(e2e_get_entry): toml lint * tests(e2e_get_entry): Removed one test * tests(e2e_get_entry): Fixed deadlock * tests(e2e_get_entry): Removed outliers filtering --------- Co-authored-by: Rémi <33517098+Remsko@users.noreply.github.com> * remove-currencies-and-merkle: * remove-currencies-and-merkle: E2Es --------- Co-authored-by: Rémi <33517098+Remsko@users.noreply.github.com>
1 parent 9c74285 commit e794c05

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+2571
-4618
lines changed

.config/nextest.toml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
[profile.default]
2+
# "retries" defines the number of times a test should be retried. If set to a
3+
# non-zero value, tests that succeed on a subsequent attempt will be marked as
4+
# flaky. Can be overridden through the `--retries` option.
5+
# Examples
6+
# * retries = 3
7+
# * retries = { backoff = "fixed", count = 2, delay = "1s" }
8+
# * retries = { backoff = "exponential", count = 10, delay = "1s", jitter = true, max-delay = "10s" }
9+
retries = 0
10+
11+
# The number of threads to run tests with. Supported values are either an
12+
# integer or the string "num-cpus". Can be overridden through the
13+
# `--test-threads` option.
14+
test-threads = "num-cpus"
15+
16+
# The number of threads required for each test. This is generally used in
17+
# overrides to mark certain tests as heavier than others. However, it can also
18+
# be set as a global parameter.
19+
threads-required = 1
20+
21+
[[profile.default.overrides]]
22+
filter = "package(tests)"
23+
threads-required = "num-cpus"
24+
run-extra-args = ["--test-threads=1"]
25+
26+
[profile.ci]
27+
retries = 0
28+
test-threads = "num-cpus"
29+
30+
[[profile.ci.overrides]]
31+
filter = "package(tests)"
32+
run-extra-args = ["--test-threads=1"]
33+
threads-required = "num-cpus"

.env.example

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Mode, can be dev or production
2+
MODE=dev
3+
4+
# Starknet RPCs
5+
MAINNET_RPC_URL=https://free-rpc.nethermind.io/mainnet-juno
6+
SEPOLIA_RPC_URL=https://free-rpc.nethermind.io/sepolia-juno
7+
8+
# Databases info
9+
OFFCHAIN_DATABASE_URL="postgres://postgres:test-password@0.0.0.0:5432/pragma"
10+
ONCHAIN_DATABASE_URL="postgres://postgres:test-password@0.0.0.0:5433/pragma"
11+
DATABASE_MAX_CONN=5
12+
13+
# API info
14+
HOST="0.0.0.0"
15+
PORT=3000
16+
METRICS_PORT=8080
17+
18+
# Kafka info
19+
KAFKA_BROKERS=localhost:29092
20+
TOPIC="pragma-data"
21+
OTEL_EXPORTER_OTLP_ENDPOINT=localhost:4317

.github/workflows/pragma.yaml

-21
Original file line numberDiff line numberDiff line change
@@ -31,27 +31,6 @@ jobs:
3131
security-events: write
3232
checks: write
3333
pull-requests: write
34-
env:
35-
HOST: 0.0.0.0
36-
PORT: 3000
37-
METRICS_PORT: 8080
38-
POSTGRES_DATABASE_URL: postgres://postgres:postgres@localhost:5432
39-
40-
services:
41-
postgres:
42-
image: postgres:latest
43-
env:
44-
POSTGRES_DB: postgres
45-
POSTGRES_USER: postgres
46-
POSTGRES_HOST_AUTH_METHOD: trust
47-
ports:
48-
- 5432:5432
49-
# Set health checks to wait until postgres has started
50-
options: >-
51-
--health-cmd pg_isready
52-
--health-interval 10s
53-
--health-timeout 5s
54-
--health-retries 5
5534

5635
steps:
5736
- name: Checkout toml files

0 commit comments

Comments
 (0)