Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
91 commits
Select commit Hold shift + click to select a range
58bf51d
docs: add maintenance guide (#1460)
Imod7 Jul 3, 2024
a4bbcb8
feat: Add route based metrics across API (#1465)
filvecchiato Aug 8, 2024
250b613
docs: remove old stable version note (#1466)
IkerAlus Aug 13, 2024
386fbb3
feat: add pallets/on-going-referenda endpoint (#1471)
Imod7 Aug 14, 2024
0317ec9
chore(deps): update polkadot-js deps (#1473)
Imod7 Aug 14, 2024
82c61df
chore: bump axios from 1.6.7 to 1.7.4 in /docs (#1474)
dependabot[bot] Aug 14, 2024
c766c1d
chore(deps): update all non polkadot-js deps in root & docs folder (#…
Imod7 Aug 14, 2024
beea4a7
chore(release): 19.1.0 (#1478)
Imod7 Aug 15, 2024
11c0173
feat: Inject metrics registry in route controllers (#1477)
filvecchiato Aug 19, 2024
1ca7f9b
chore: bump micromatch from 4.0.4 to 4.0.8 in /docs (#1480)
dependabot[bot] Aug 26, 2024
85a4cca
feat: add loki functionality to transport logs (#1479)
filvecchiato Aug 26, 2024
6eaca88
fix: Improve performance of blocks service by dependency injection (#…
filvecchiato Aug 27, 2024
373ec9b
chore:(deps): bump micromatch from 4.0.5 to 4.0.8 (#1481)
dependabot[bot] Aug 27, 2024
2e6efc0
fix: dependabot yaml (#1482)
Imod7 Aug 27, 2024
6286442
chore: bump webpack from 5.93.0 to 5.94.0 in /docs (#1484)
dependabot[bot] Aug 29, 2024
02a3797
chore: bump express from 4.19.2 to 4.21.0 in /docs (#1490)
dependabot[bot] Sep 14, 2024
a5b8a36
chore(deps): bump express from 4.19.2 to 4.20.0 (#1491)
dependabot[bot] Sep 16, 2024
890c06b
fix: Moves the LRUcache to Controller level (#1489)
filvecchiato Sep 20, 2024
968f522
chore(deps): update non pjs deps & in docs (#1494)
Imod7 Sep 20, 2024
0115afc
chore(deps): update polkadot-js deps (#1495)
Imod7 Sep 23, 2024
112994e
chore(deps): update polkadot-js deps (#1496)
Imod7 Sep 23, 2024
432d8f0
chore(release): 19.2.0 (#1497)
Imod7 Sep 23, 2024
6aac632
chore(yarn): bump yarn to 4.5.0 (#1498)
Imod7 Sep 24, 2024
cf2b58b
chore(deps): update substrate dev package & types (#1500)
Imod7 Oct 7, 2024
28e039e
chore(deps): update express to v5 & jest deprecations (#1502)
Imod7 Oct 8, 2024
68be48b
fix: queryInfo call in fee-estimate endpoint (#1505)
Imod7 Oct 8, 2024
c365490
test: add test for fee-estimate fix (#1506)
Imod7 Oct 9, 2024
a6e8cf4
chore(release): 19.2.1 (#1507)
Imod7 Oct 9, 2024
f0d662b
fix: access router in getRoutes (#1510)
Imod7 Oct 10, 2024
0d6f123
chore(release): 19.2.2 (#1511)
Imod7 Oct 10, 2024
b67bdcf
fix: filtering in assets endpoint & update guides (#1512)
Imod7 Oct 14, 2024
e35c191
chore(deps): update polkadot-js deps (#1515)
Imod7 Oct 15, 2024
22a143a
chore(deps): bump Swatinem/rust-cache from 2.7.3 to 2.7.5 (#1514)
dependabot[bot] Oct 15, 2024
7422fd2
fix: rococo deprecation changes (#1517)
Imod7 Oct 16, 2024
1a3de02
chore(deps): update non pjs deps in root & docs folder (#1518)
Imod7 Oct 16, 2024
bb00db1
chore(deps): update polkadot-js deps & guides (#1522)
Imod7 Oct 22, 2024
e0ad7c1
feat: improve performance with new version of PJS (#1520)
filvecchiato Oct 22, 2024
aeef4dc
feat: update dry run endpoint to use new runtime api call (#1519)
filvecchiato Oct 22, 2024
f4c2d6c
docs: update docs for dry-run endpoint (#1524)
Imod7 Oct 23, 2024
95dfe4d
fix: dependabot yaml & explicit deps (#1523)
Imod7 Oct 23, 2024
bdf7065
chore(deps-dev): bump @types/argparse from 2.0.16 to 2.0.17 (#1526)
dependabot[bot] Oct 23, 2024
fd3faae
chore(deps): bump http-proxy-middleware from 2.0.6 to 2.0.7 in /docs …
dependabot[bot] Oct 23, 2024
c3fbb5b
chore(release): 19.3.0 (#1527)
Imod7 Oct 23, 2024
67f2806
chore(deps-dev): bump @types/express-serve-static-core (#1529)
dependabot[bot] Oct 28, 2024
991821d
chore(deps-dev): bump @substrate/dev from 0.8.0 to 0.9.0 (#1528)
dependabot[bot] Oct 28, 2024
292cd38
chore(deps): bump lru-cache from 11.0.1 to 11.0.2 (#1535)
dependabot[bot] Nov 4, 2024
4a58326
chore(deps): bump winston from 3.15.0 to 3.16.0 (#1536)
dependabot[bot] Nov 4, 2024
c43a26b
fix: return DispatchError in dry-run endpoint (#1533)
Imod7 Nov 5, 2024
cef2d10
fix(dev): fix tsconfig extends pathing for ts-node-dev (#1537)
TarikGul Nov 6, 2024
87245fd
ci: Move from Gitlab to Github (#1531)
alvicsam Nov 7, 2024
7f161d5
ci: fix deploy (#1539)
alvicsam Nov 7, 2024
45c4b1f
fix: ignore extrinsicIndex in multiBlockMigrations event (#1541)
Imod7 Nov 10, 2024
f7465da
chore(deps): bump docker/build-push-action from 5 to 6 (#1540)
dependabot[bot] Nov 11, 2024
158a1f8
chore: update Dependabot versioning strategy (#1543)
Imod7 Nov 11, 2024
b59928c
chore(deps): bump the pjs group across 1 directory with 7 updates (#1…
dependabot[bot] Nov 11, 2024
fb81a16
chore(deps): bump winston from 3.16.0 to 3.17.0 (#1545)
dependabot[bot] Nov 11, 2024
3ff1e48
chore(deps): update polkadot-js deps (#1547)
Imod7 Nov 18, 2024
80d3b65
chore(deps): bump cross-spawn from 7.0.3 to 7.0.6 (#1549)
dependabot[bot] Nov 18, 2024
c7b3f86
chore(deps): bump cross-spawn from 7.0.3 to 7.0.6 in /docs (#1548)
dependabot[bot] Nov 18, 2024
156ad7a
chore(deps): update non pjs deps (#1550)
Imod7 Nov 19, 2024
bcf03ac
chore(release): 19.3.1 (#1551)
Imod7 Nov 19, 2024
226f656
ci: fix benchmark workflow, move docs to gh-pages (#1552)
alvicsam Nov 20, 2024
bd9cad8
docs: update docs & benchmarks related docs (#1553)
Imod7 Nov 20, 2024
1d75954
chore(deps): bump docker/build-push-action from 6.9.0 to 6.10.0 (#1557)
dependabot[bot] Dec 9, 2024
a6eb6aa
chore(deps): bump the pjs group with 5 updates (#1559)
dependabot[bot] Dec 9, 2024
cdaf3e3
chore(deps): bump nanoid from 3.3.7 to 3.3.8 in /docs (#1560)
dependabot[bot] Dec 17, 2024
fe1e303
chore(deps): bump the pjs group with 5 updates (#1561)
dependabot[bot] Dec 19, 2024
1e519ce
chore(deps): bump Swatinem/rust-cache from 2.7.5 to 2.7.7 (#1564)
dependabot[bot] Jan 1, 2025
98f083d
feat: Add configuration parameter for request body size (#1565)
mjakuszko-punks Jan 6, 2025
3a92196
feat: coretime implementation (#1558)
filvecchiato Jan 7, 2025
c64312f
chore(yarn): bump yarn to 4.6.0 & small guide update (#1569)
Imod7 Jan 7, 2025
7ddd854
chore(deps): update non pjs deps (#1568)
Imod7 Jan 7, 2025
fe2e697
chore(deps): update polkadot-js deps (#1567)
Imod7 Jan 7, 2025
6a36d7c
chore: 2025 (#1570)
TarikGul Jan 7, 2025
afedb82
chore(release): 19.4.0 (#1571)
Imod7 Jan 7, 2025
51ab44b
chore(deps): bump docker/build-push-action from 6.10.0 to 6.11.0 (#1572)
dependabot[bot] Jan 10, 2025
fc95cd0
chore(deps): bump the pjs group with 5 updates (#1573)
dependabot[bot] Jan 14, 2025
194f3e7
chore(deps-dev): bump @types/express-serve-static-core (#1574)
dependabot[bot] Jan 14, 2025
e11955a
fix: claimed in staking info endpoint (#1445)
Imod7 Jan 16, 2025
398a98c
chore(deps-dev): bump @types/express-serve-static-core (#1578)
dependabot[bot] Jan 29, 2025
18f33f4
chore(deps): bump docker/build-push-action from 6.11.0 to 6.13.0 (#1580)
dependabot[bot] Jan 29, 2025
fd7d7b7
chore(deps): update polkadot-js deps to v15.5.1 (#1583)
Imod7 Jan 29, 2025
d87bc07
fix: benchmark-publish job (github action) (#1585)
Imod7 Feb 3, 2025
274e844
chore(deps): bump the pjs group with 5 updates (#1587)
dependabot[bot] Feb 5, 2025
2ad52e0
chore(deps-dev): bump @types/express-serve-static-core from 5.0.5 to …
dependabot[bot] Feb 5, 2025
22db863
fix: make scripts executable again in benchmark workflow (#1589)
Imod7 Feb 5, 2025
b2b0389
chore(release): 20.0.0 (#1590)
Imod7 Feb 10, 2025
ed8b04a
feat: add `includeClaimedRewards` query param in staking-info (#1593)
Imod7 Feb 17, 2025
6c97553
chore(deps): update polkadot-js deps (#1595)
Imod7 Feb 17, 2025
c2a3dae
Merge branch 'master' of github.com:enjin/substrate-api-sidecar into …
5tan-enj Feb 18, 2025
fa08f63
fix
5tan-enj Feb 18, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .env.local
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
# For more information on how to use .env files and environment variables
# consult the Configuration section in the README.

SAS_SUBSTRATE_URL=ws://127.0.0.1:9944
SAS_SUBSTRATE_URL=ws://127.0.0.1:9944
11 changes: 7 additions & 4 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,15 @@ updates:
# EST timezone
timezone: "America/New_York"
rebase-strategy: "auto"
# Disable versioned updates, and only allow security updates
open-pull-requests-limit: 0
groups:
pjs:
patterns:
- "@polkadot/*"
commit-message:
# Prefix all commit messages with "chore"
# include a list of updated dependencies
prefix: "chore:"
prefix: "chore"
include: "scope"
labels:
- "dependencies"
- "D0 - Dependencies"
versioning-strategy: increase
68 changes: 68 additions & 0 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: Benchmark

on:
push:
branches:
- master

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
benchmark:
name: benchmark
runs-on: ubuntu-latest
environment: master_n_tags
container:
image: paritytech/node-wrk:latest
steps:
- name: Checkout sources
uses: actions/checkout@v4

- name: benchmarks
run: |
yarn --immutable
echo "Benchmarks for polkadot"
mkdir -p artifacts
yarn bench --log-level info --ws-url wss://rpc.polkadot.io
mv benchmarks.txt artifacts/

- name: upload artifacts
uses: actions/upload-artifact@v4
with:
name: benchmarks
path: ./artifacts/

benchmark-publish:
name: benchmark publish
runs-on: ubuntu-latest
needs: [benchmark]
environment: master_n_tags
steps:
- name: Checkout sources
uses: actions/checkout@v4

- uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ secrets.GH_APP_SAS_APP_ID }}
private-key: ${{ secrets.GH_APP_SAS_APP_KEY }}

- name: download artifacts
uses: actions/download-artifact@v4
with:
name: benchmarks
path: artifacts

- name: Modify benches result for benchmark action
run: ./scripts/ci/benchmarks/generate_benchmark_result.sh artifacts/benchmarks.txt > artifacts/benchmarks.json

- name: Store benchmark result
uses: benchmark-action/github-action-benchmark@d48d326b4ca9ba73ca0cd0d59f108f9e02a381c7 #1.20.4
with:
tool: "customSmallerIsBetter"
output-file-path: artifacts/benchmarks.json
# Push and deploy GitHub pages branch automatically
auto-push: true
github-token: ${{ steps.app-token.outputs.token }}
10 changes: 7 additions & 3 deletions .github/workflows/calc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@ name: calc

on:
push:
branches: [ master ]
branches: [master]
pull_request:
branches: [ master ]
branches: [master]

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
build:
Expand All @@ -22,7 +26,7 @@ jobs:
toolchain: stable

- name: Rust Cache
uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2.7.3
uses: Swatinem/rust-cache@f0deed1e0edfc6a9be95417288c0e1099b1eeec3 # v2.7.7

- name: Cargo test
uses: actions-rs/cargo@v1.0.3
Expand Down
104 changes: 60 additions & 44 deletions .github/workflows/pr.yml → .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
branches:
- master

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
lint:
# The type of runner that the job will run on
Expand All @@ -21,7 +25,7 @@ jobs:
- name: Install Node v18
uses: actions/setup-node@v4
with:
node-version: '18.14'
node-version: "18.14"

- name: Get yarn cache directory path
id: yarn-cache-dir-path
Expand All @@ -41,7 +45,7 @@ jobs:
- name: Linter.
run: yarn lint
tests:
# The type of runner that the job will run on
# The type of runner that the job will run on
runs-on: ubuntu-latest

steps:
Expand All @@ -51,7 +55,7 @@ jobs:
- name: Install Node v18
uses: actions/setup-node@v4
with:
node-version: '18.14'
node-version: "18.14"

- name: Get yarn cache directory path
id: yarn-cache-dir-path
Expand Down Expand Up @@ -82,7 +86,7 @@ jobs:
- name: Install Node v18
uses: actions/setup-node@v4
with:
node-version: '18.14'
node-version: "18.14"

- name: Get yarn cache directory path
id: yarn-cache-dir-path
Expand All @@ -102,55 +106,67 @@ jobs:
- name: Build
run: yarn build

build-docs:
# The type of runner that the job will run on
build-npm-release:
# This test is to make sure sidecar can release a binary without any errors.
# This script does not publish a release, but instead uses yarn to create a tarball and
# install it locally. Once installed a binary is attached to sidecars node_modules, and that
# binary is then tested against. For more in depth information reference the docs at
# `../../scripts/README.md`.

runs-on: ubuntu-latest

steps:
- name: Checkout files
uses: actions/checkout@v4
strategy:
matrix:
node-version: [18.x]

- name: Install Node v18
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: '18.14'
node-version: ${{ matrix.node-version }}
- run: yarn
- run: yarn test:test-release

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
build_docker:
name: Build docker image
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v4

- uses: actions/cache@v4
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
- name: Build Docker image
uses: docker/build-push-action@v6.13.0
env:
DOCKER_BUILD_SUMMARY: false
DOCKER_BUILD_RECORD_UPLOAD: false
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-

- name: Install JS dependencies
run: yarn install

- name: Build Docs
run: yarn build:docs

build-npm-release:
# This test is to make sure sidecar can release a binary without any errors.
# This script does not publish a release, but instead uses yarn to create a tarball and
# install it locally. Once installed a binary is attached to sidecars node_modules, and that
# binary is then tested against. For more in depth information reference the docs at
# `../../scripts/README.md`.

context: .
file: ./Dockerfile
push: false
tags: |
docker.io/parity/substrate-api-sidecar:latest

e2e:
name: e2e
runs-on: ubuntu-latest

container:
image: node:18
strategy:
matrix:
node-version: [18.x]

include:
- chain-name: westend
chain-url: wss://westend-rpc.polkadot.io
- chain-name: kusama
chain-url: wss://apps-kusama-rpc.polkadot.io
- chain-name: polkadot
chain-url: wss://apps-rpc.polkadot.io
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: yarn
- run: yarn test:test-release
- name: Checkout sources
uses: actions/checkout@v4

- name: e2e tests
run: |
yarn --immutable
echo "Tests for ${{ matrix.chain-name }}"
yarn test:latest-e2e-tests --log-level info --chain ${{ matrix.chain-name }} --local ${{ matrix.chain-url }}
Loading
Loading