Skip to content

Improve API reliability #95

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

Open
wants to merge 135 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
135 commits
Select commit Hold shift + click to select a range
cd05c7d
fix: exclude entries with balance equal to 1 in epoch number query
onmax Dec 23, 2024
c18bc98
chore: fix JSON format
onmax Dec 30, 2024
aee5e02
chore: disable corepack
onmax Feb 6, 2025
d063597
chore: update github actions
onmax Feb 20, 2025
a23d252
feat: include staked balance in reason object
Albermonte Feb 24, 2025
e9096e4
Merge branch 'main' into dev
Albermonte Feb 24, 2025
0e208e3
Merge branch 'main' into dev
sisou Mar 21, 2025
a66c066
chore: updated rpc client version
onmax Mar 24, 2025
3bedc68
feat: retrieve validators balances for any validators independently o…
onmax Mar 24, 2025
e8c410a
chore: return error if there is no connection to RPC node
onmax Mar 24, 2025
f0d8b9d
chore!: removed `only-active` query param in /validators
onmax Mar 24, 2025
a23454c
refactor: validators score endpoint
onmax Mar 24, 2025
98f2683
Add Siam Testnet Pool
sisou Mar 22, 2025
6aca76e
refactor: simplify validators endpoint
onmax Mar 24, 2025
adeaa4e
chore: remove moved packages to `@nimiq/utils`
onmax Mar 24, 2025
fc4da6c
Merge branch 'dev' of https://github.com/nimiq/validators-api into dev
onmax Mar 24, 2025
65871b1
chore: remove eslint from the package
onmax Mar 24, 2025
d1aa526
chore: updated eslint and run formatter
onmax Mar 24, 2025
8f2a0dc
chore: removed radix
onmax Mar 24, 2025
deb5cf2
chore: fixing build
onmax Mar 24, 2025
1c5f146
chore: general cleanup
onmax Mar 24, 2025
ca09044
chore: remove package ci.
onmax Mar 24, 2025
bb89c51
feat!: return ResultSync type
onmax Mar 25, 2025
7db4a7d
feat!: removed remote `getPolicyConstant` request
onmax Mar 25, 2025
bdbb99f
feat!: use Result type everywhere
onmax Mar 25, 2025
f677196
chore!: removed most endpoints and leave `sync` endpoint
onmax Mar 25, 2025
2c4277e
chore!: updated workflows
onmax Mar 25, 2025
7a94043
chore: added nuxthub action
onmax Mar 25, 2025
60fdbb7
chore: migrated to '@nimiq/utils/albatross-policy'
onmax Mar 25, 2025
2f43fb1
chore: more clean up. removed unused functions
onmax Mar 25, 2025
b5c8206
chore: typecheck
onmax Mar 25, 2025
f0e4eeb
chore: update dependencies and linter
onmax Mar 26, 2025
bca5420
chore: renamed to range.ts
onmax Mar 26, 2025
ef4fae6
chore!: track also inactive validators
onmax Mar 26, 2025
b498237
chore: removed fetch file
onmax Mar 26, 2025
2ccde3a
feat: enhance sync handler to calculate scores
onmax Mar 26, 2025
2702701
chore: re-added simplified "health" endpoint
onmax Mar 26, 2025
1078e57
refactor: update schema definitions to use array syntax for table con…
onmax Mar 26, 2025
4a7bb30
chore: fix config and add env logs
onmax Mar 27, 2025
fc74220
chore: removed release-it
onmax Mar 27, 2025
dca77a6
chore: refactor pages index
onmax Mar 27, 2025
57f984b
chore: removed tasks
onmax Mar 27, 2025
9eb0b48
chore: add new font files for Fira Code and Mulish
onmax Mar 27, 2025
3ac4091
refactor: update score calculation and improve validator fetching logic
onmax Mar 27, 2025
ac4dacf
feat: add Vitest configuration and tests for range functionality
onmax Mar 27, 2025
f93b02f
chore: added range tests
onmax Mar 27, 2025
5e52bdb
chore: use testnet to make block calculations
onmax Mar 27, 2025
e529329
chore: use `getValidators` from RPC
onmax Mar 27, 2025
c5be465
chore: make distintion between selected and active
onmax Mar 27, 2025
89286b5
chore: fix sync method
onmax Mar 27, 2025
95f6a96
chore: changes in ui
onmax Mar 28, 2025
ada2290
chore!: move code to safe assignment operator syntax
onmax Mar 28, 2025
07f3e7d
chore: removed unnecessary pages and code
onmax Mar 28, 2025
5e8b565
feat: improved ui and range
onmax Apr 1, 2025
938f0fe
chore: improved ui
onmax Apr 1, 2025
763baae
feat: update validator data structure and improve caching logic
onmax Apr 1, 2025
afce8b1
chore: new grid layout
onmax Apr 1, 2025
504cfb8
chore: added stakers and improved UI
onmax Apr 2, 2025
8a1eda3
chore: renamed selected to elected
onmax Apr 2, 2025
11e6349
chore: update identicons-esm to version 1.0.0-beta.5 and refactor rel…
onmax Apr 2, 2025
339b8fe
chore: added sync trigger
onmax Apr 3, 2025
da9c83a
chore: refactor validator fetching logic and improve score handling
onmax Apr 3, 2025
0cb5871
feat: new components for validator details
onmax Apr 3, 2025
7881b2d
chore: fixed typecheck & tests
onmax Apr 3, 2025
54c7a8f
chore: update CI configuration
onmax Apr 3, 2025
2c896e0
chore: fix ci
onmax Apr 3, 2025
9be8315
chore: update range docs
onmax Apr 3, 2025
1280124
chore: clean up
onmax Apr 3, 2025
1f12313
chore: remove unused range query schema
onmax Apr 3, 2025
ddc3c16
chore: add changelog
onmax Apr 3, 2025
ee23dde
chore: update vitest config, enhance CI with JSON validation, and add…
onmax Apr 3, 2025
4618d8e
chore: updated dependencies & open api
onmax Apr 3, 2025
d0bc1c4
chore: updated nuxthub action
onmax Apr 3, 2025
b620fda
chore: ignore macro blocks for window size. solves #77
onmax Apr 3, 2025
1ed93be
chore: fix tests for epochDuration
onmax Apr 3, 2025
a6d0aee
chore: update CI workflows to trigger on workflow completion instead …
onmax Apr 3, 2025
f5ec965
chore: add environment configuration for CI workflow
onmax Apr 3, 2025
2b6c64e
docs: update README to clarify validator address endpoint
onmax Apr 3, 2025
13694ab
docs: improved docs
onmax Apr 3, 2025
178bb47
chore: renamed to snapshotEpoch
onmax Apr 3, 2025
bc8826c
chore: fix typo in CI workflow environment name
onmax Apr 3, 2025
ec06dfe
chore: update CHANGELOG to reflect API endpoint deletions and modific…
onmax Apr 3, 2025
907a14c
chore: update consola logging to use inline code formatting
onmax Apr 3, 2025
a8d4723
chore: update CI workflows
onmax Apr 4, 2025
4e3db5a
docs: updated readme with deployment section
onmax Apr 4, 2025
37cd72b
chore: import validators locally in dev
onmax Apr 4, 2025
ac56f82
chore: update build config
onmax Apr 4, 2025
31fd4ac
chore: pin rpc version
onmax Apr 4, 2025
eb3273d
chore: updated dependencies
onmax Apr 24, 2025
9de4bc0
chore: don't use workers
onmax Apr 24, 2025
c25579d
chore: fix build
onmax Apr 24, 2025
7f99753
fix: ci workflow
onmax Apr 24, 2025
aec4890
fix: make sure typecheck works
onmax Apr 24, 2025
df723f3
chore: removed svgo
onmax Apr 24, 2025
ae4088d
chore: add manual triggering to sync workflow
onmax Apr 24, 2025
7b7a6c6
chore: updated rpc client
onmax Apr 24, 2025
6ac5b80
Merge remote-tracking branch 'origin/main' into dev
onmax Apr 24, 2025
aef208e
chore: removed automatic workflows
onmax Apr 24, 2025
b31aff5
fix: typecheck
onmax Apr 24, 2025
c18f23c
chore: exclude ws
onmax Apr 24, 2025
67d9a29
chore: updated rpc client
onmax Apr 24, 2025
1b24bce
refactor: remove rpc client dependency from getRange calls
onmax Apr 24, 2025
9e0c25c
chore: updated docs
onmax Apr 24, 2025
4fc6069
ci: added distribution check
onmax Apr 24, 2025
0fde8fc
chore: renamed sync action
onmax Apr 24, 2025
55516ac
chore: dynamic sync
onmax Apr 24, 2025
a4311a2
refactor: remove unused imports from sync and status endpoints
onmax Apr 24, 2025
3bfdbe9
feat: add Fira Code font files for enhanced code readability
onmax Apr 24, 2025
74f208a
feat: enhance sync workflow with dynamic endpoint configuration
onmax Apr 24, 2025
29d0590
chore: removed pkg action
onmax Apr 24, 2025
50f9be6
refactor: clean up nuxt.config.ts by removing commented-out code and …
onmax Apr 24, 2025
b924068
docs: grammar
onmax Apr 24, 2025
7d27090
refactor: rename rpcUrl to albatrossRpcNodeUrl for clarity
onmax Apr 24, 2025
9e0c59c
feat: initialize RPC client with Albatross RPC Node URL in API handlers
onmax Apr 24, 2025
fd200b4
feat: enhance error handling and user feedback in activity synchroniz…
onmax Apr 25, 2025
511e167
feat: add options parameter to fetchEpochs for enhanced activity fetc…
onmax Apr 25, 2025
bebe58d
refactor: simplify sync-matrix workflow by removing conditional logic…
onmax Apr 25, 2025
3b133cf
fix: improve error handling in fetchActivity by removing unnecessary …
onmax Apr 25, 2025
53ba3c2
feat: add distribution data fetching to sync handler response
onmax Apr 25, 2025
c43d4af
feat: enhance user feedback and error handling in synchronization pro…
onmax Apr 25, 2025
7afd87d
docs: improved readme
onmax Apr 25, 2025
b34b494
feat: implement server-sent events for sync process and enhance error…
onmax Apr 25, 2025
d969220
feat: enhance stat display with tooltips for better user feedback
onmax Apr 25, 2025
16b75cc
docs: update API endpoint URL in README
onmax Apr 25, 2025
d6dc611
feat: improve error handling in fetchActivity by providing detailed e…
onmax Apr 25, 2025
5da18ef
feat: enhance test setup by mocking additional RPC client functions
onmax Apr 25, 2025
9c77cc8
feat: improve error handling in fetchActivity by throwing errors inst…
onmax Apr 25, 2025
0c4e9bf
feat: increase maximum retry delay in fetchActivity to 30 seconds
onmax Apr 25, 2025
98d01dd
refactor: update distribution API to fetch supply data from external …
onmax Apr 28, 2025
cdf38d3
feat: add RPC proxy for sending requests to Nimiq RPC node without CORS
onmax Apr 28, 2025
5d23e95
feat: update error handling and improve UI sync status display
onmax Apr 30, 2025
f547c57
feat: updated fonts files
onmax Apr 30, 2025
3e41941
feat: enhance sync handling with success message check and improved e…
onmax Apr 30, 2025
1fe69f1
feat: update API calls to use supply data instead of distribution data
onmax Apr 30, 2025
d9fc717
feat: enhance layout by adding max-width to scroll area and text elli…
onmax Apr 30, 2025
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
5 changes: 1 addition & 4 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,4 @@

NUXT_HUB_PROJECT_KEY=
NUXT_PUBLIC_NIMIQ_NETWORK=test-albatross
NUXT_RPC_URL=

# Needed only for release-it
GITHUB_TOKEN=
ALBATROSS_RPC_NODE_URL=
16 changes: 16 additions & 0 deletions .github/logo-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions .github/logo-light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
49 changes: 13 additions & 36 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,37 +3,12 @@ name: CI
on:
push:
branches:
- main

pull_request:
branches:
- main
- '*'

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v4

- name: Set node
uses: actions/setup-node@v4
with:
node-version: lts/*

- name: Set .env file
run: echo "NUXT_PUBLIC_NIMIQ_NETWORK=test-albatross" > .env

- name: Install
run: pnpm install --frozen-lockfile

- name: Lint
run: pnpm run lint

package:
ci:
runs-on: ubuntu-latest
environment: preview-testnet
steps:
- uses: actions/checkout@v4

Expand All @@ -43,23 +18,25 @@ jobs:
- name: Set node
uses: actions/setup-node@v4
with:
node-version: lts/*

- name: Set .env file
run: echo "NUXT_PUBLIC_NIMIQ_NETWORK=test-albatross" > .env
node-version: 22
cache: pnpm

- name: Install
run: pnpm install --frozen-lockfile
working-directory: packages/nimiq-validators-trustscore

- name: Lint
run: pnpm run lint
working-directory: packages/nimiq-validators-trustscore

- name: Typecheck
run: pnpm run typecheck
working-directory: packages/nimiq-validators-trustscore
env:
NUXT_PUBLIC_NIMIQ_NETWORK: ${{ vars.NUXT_PUBLIC_NIMIQ_NETWORK }}

- name: Validate JSON files
run: pnpm run validate:json-files

- name: Test
run: pnpm run test
working-directory: packages/nimiq-validators-trustscore
env:
ALBATROSS_RPC_NODE_URL: ${{ secrets.ALBATROSS_RPC_NODE_URL }}
NUXT_PUBLIC_NIMIQ_NETWORK: ${{ vars.NUXT_PUBLIC_NIMIQ_NETWORK }}
18 changes: 0 additions & 18 deletions .github/workflows/import-validators-mainnet.yml

This file was deleted.

12 changes: 0 additions & 12 deletions .github/workflows/import-validators-testnet.yml

This file was deleted.

41 changes: 0 additions & 41 deletions .github/workflows/import-validators.yml

This file was deleted.

Loading