Skip to content

Commit

Permalink
Merge branch 'main' into elmattic/eth-trace-block
Browse files Browse the repository at this point in the history
  • Loading branch information
elmattic authored Dec 17, 2024
2 parents 383083f + 68b13b6 commit 831aeb5
Show file tree
Hide file tree
Showing 9 changed files with 68 additions and 13 deletions.
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,14 @@ updates:
open-pull-requests-limit: 1
schedule:
interval: "weekly"

- package-ecosystem: "npm"
directory: "/docs" # Location of package manifests
open-pull-requests-limit: 1
schedule:
interval: "weekly"
# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#groups
groups:
patch-versions:
update-types:
- "patch"
4 changes: 2 additions & 2 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
- name: Checkout Sources
uses: actions/checkout@v4
- name: Setup sccache
uses: mozilla-actions/sccache-action@v0.0.6
uses: mozilla-actions/sccache-action@v0.0.7
timeout-minutes: '${{ fromJSON(env.CACHE_TIMEOUT_MINUTES) }}'
continue-on-error: true
- uses: actions/setup-go@v5
Expand Down Expand Up @@ -98,7 +98,7 @@ jobs:
uses: actions/checkout@v4
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v')
- name: Setup sccache
uses: mozilla-actions/sccache-action@v0.0.6
uses: mozilla-actions/sccache-action@v0.0.7
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v')
timeout-minutes: '${{ fromJSON(env.CACHE_TIMEOUT_MINUTES) }}'
continue-on-error: true
Expand Down
47 changes: 47 additions & 0 deletions .github/workflows/docs-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Docs Deploy

on:
push:
branches:
- main
paths:
- '/docs'
- '.github/workflows/docs-deploy.yml'
merge_group:
pull_request:
branches:
- main
paths:
- '/docs'
- '.github/workflows/docs-deploy.yml'

permissions:
contents: read
deployments: write
pull-requests: write

jobs:
docs-deploy:
name: Deploy to Cloudflare Pages
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./docs
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "18"
# See https://github.com/actions/setup-node/issues/1027
# cache: yarn
- run: corepack enable
- run: yarn install --frozen-lockfile
- run: yarn run build

- name: Deploy
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_PAGES_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_PAGES_ACCOUNT_ID }}
command: pages deploy ./docs/build --project-name=forest-docs
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
6 changes: 3 additions & 3 deletions .github/workflows/forest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
- name: Checkout Sources
uses: actions/checkout@v4
- name: Setup sccache
uses: mozilla-actions/sccache-action@v0.0.6
uses: mozilla-actions/sccache-action@v0.0.7
timeout-minutes: '${{ fromJSON(env.CACHE_TIMEOUT_MINUTES) }}'
continue-on-error: true
- uses: actions/setup-go@v5
Expand All @@ -73,7 +73,7 @@ jobs:
- name: Checkout Sources
uses: actions/checkout@v4
- name: Setup sccache
uses: mozilla-actions/sccache-action@v0.0.6
uses: mozilla-actions/sccache-action@v0.0.7
timeout-minutes: '${{ fromJSON(env.CACHE_TIMEOUT_MINUTES) }}'
continue-on-error: true
- uses: actions/setup-go@v5
Expand All @@ -96,7 +96,7 @@ jobs:
- name: Checkout Sources
uses: actions/checkout@v4
- name: Setup sccache
uses: mozilla-actions/sccache-action@v0.0.6
uses: mozilla-actions/sccache-action@v0.0.7
timeout-minutes: '${{ fromJSON(env.CACHE_TIMEOUT_MINUTES) }}'
continue-on-error: true
- name: Install Apt Dependencies
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/rust-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
- name: Checkout Sources
uses: actions/checkout@v4
- name: Setup sccache
uses: mozilla-actions/sccache-action@v0.0.6
uses: mozilla-actions/sccache-action@v0.0.7
timeout-minutes: ${{ fromJSON(env.CACHE_TIMEOUT_MINUTES) }}
continue-on-error: true
- name: Apt Dependencies
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
- name: Checkout Sources
uses: actions/checkout@v4
- name: Setup sccache
uses: mozilla-actions/sccache-action@v0.0.6
uses: mozilla-actions/sccache-action@v0.0.7
timeout-minutes: ${{ fromJSON(env.CACHE_TIMEOUT_MINUTES) }}
continue-on-error: true
- uses: actions/setup-go@v5
Expand All @@ -70,7 +70,7 @@ jobs:
- name: Checkout Sources
uses: actions/checkout@v4
- name: Setup sccache
uses: mozilla-actions/sccache-action@v0.0.6
uses: mozilla-actions/sccache-action@v0.0.7
timeout-minutes: ${{ fromJSON(env.CACHE_TIMEOUT_MINUTES) }}
continue-on-error: true
- uses: actions/setup-go@v5
Expand Down
2 changes: 0 additions & 2 deletions scripts/tests/api_compare/filter-list
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
!Filecoin.StateReplay
# TODO(elmattic): https://github.com/ChainSafe/forest/issues/4851
!Filecoin.EthGetLogs
# TODO: https://github.com/ChainSafe/forest/issues/4968
!Filecoin.StateCirculatingSupply
# TODO: https://github.com/ChainSafe/forest/issues/4996
!Filecoin.EthGetTransactionReceipt
!Filecoin.EthGetTransactionReceiptLimited
Expand Down
2 changes: 0 additions & 2 deletions scripts/tests/api_compare/filter-list-offline
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@
!Filecoin.ChainSetHead
# TODO(elmattic): https://github.com/ChainSafe/forest/issues/4759
!Filecoin.EthGetLogs
# TODO: https://github.com/ChainSafe/forest/issues/4968
!Filecoin.StateCirculatingSupply
# TODO: https://github.com/ChainSafe/forest/issues/4996
!Filecoin.EthGetTransactionReceipt
!Filecoin.EthGetTransactionReceiptLimited
Expand Down
3 changes: 2 additions & 1 deletion src/rpc/methods/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1542,7 +1542,8 @@ impl RpcMethod<1> for StateCirculatingSupply {
let height = ts.epoch();
let root = ts.parent_state();
let genesis_info = GenesisInfo::from_chain_config(ctx.chain_config().clone());
let supply = genesis_info.get_state_circulating_supply(height, &ctx.store_owned(), root)?;
let supply =
genesis_info.get_state_circulating_supply(height - 1, &ctx.store_owned(), root)?;
Ok(supply)
}
}
Expand Down

0 comments on commit 831aeb5

Please sign in to comment.