Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
79,579 changes: 79,579 additions & 0 deletions .config/en_US.dic

Large diffs are not rendered by default.

146 changes: 146 additions & 0 deletions .config/forest.dic
Original file line number Diff line number Diff line change
@@ -0,0 +1,146 @@
145
+
Algorand/M
API/M
APIs
args
arities
arity
async
attoFIL
benchmark/GD
bitfield
bitswap
BLAKE2b
blockchain/M
blockstore/SM
BLS
butterflynet
calibnet
callee
canonicalization
CAR/SM
CARv1/SM
CARv2/SM
CBOR
CID/SM
CIDs
ChainSafe/M
CLI
CloudFlare
clonable
codebase
codecov
codec
cron
crypto
CurrentEpoch
daemon
daemonize
Datacap
devnet
DB/S
deserialize/D
destructuring
DNS
durations
EIP
EIP155
enum
Enum
EOF
Ethereum
eth
exa
EVM
F3
FFI
FIL
Filecoin/M
Filops
FIP
FVM
GC
GiB
HAMT
hasher
healthcheck
implementor/SM
IPFS
ip
IPLD
JSON
JWT
Kademlia
Kubernetes
Leptos
libp2p
liveness
localhost
mainnet
MDNS
mempool
Merkle
MiB
middleware
milliGas
multiaddr/SM
multihash
multisig
mutex
Open
OpenRPC
overallocation
P2P
param/SM
ParityDb
ParityDB
parsable
performant
PoC
pointer/SM
PoSt
precommit
R2
reactivity
RLP
RPC
schema/SM
schemas
SECP
SECP256k1
seekable
serializable
serializer/SM
skippable
statediff
stateful
stderr
stdout
struct/SM
synchronizer
syscall/S
TCP
testnet
tipset/SM
tipsetkey/S
TOML
trie
truthy
TTY
uncompress
unrepresentable
untrusted
URL
UUID
validator/S
varint
verifier
verifreg
VM/SM
VRF
WASM
WebAssembly
WebSocket
WPoStProvingPeriodDeadlines
zstd
24 changes: 24 additions & 0 deletions .config/spellcheck.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
dev_comments = false
skip_readme = false

[hunspell]
lang = "en_US"
search_dirs = ["."]
skip_os_lookups = true
use_builtin = true
tokenization_splitchars = "\",;:.!?#(){}[]|/_-‒'`&@§¶…<>="
extra_dictionaries = ["forest.dic", "en_US.dic"]

[hunspell.quirks]
transform_regex = [
# 10.7%
"^[0-9_]+(?:\\.[0-9]*)?%$",
]
allow_concatenation = false
allow_dashes = false
allow_emojis = true

[nlprules]

[reflow]
max_line_length = 80
3 changes: 2 additions & 1 deletion .github/ISSUE_TEMPLATE/3-epic.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
name: Epic
about: "[Internal] Larger chunk of work that can be broken down into smaller tasks"
about:
"[Internal] Larger chunk of work that can be broken down into smaller tasks"
title: ""
labels: "Type: Epic"
assignees: ""
Expand Down
7 changes: 5 additions & 2 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ Closes
<!-- Follow this format https://keepachangelog.com/en/1.0.0/ -->

- [ ] I have performed a self-review of my own code,
- [ ] I have made corresponding changes to the documentation. All new code adheres to the team's [documentation standards](https://github.com/ChainSafe/forest/wiki/Documentation-practices),
- [ ] I have added tests that prove my fix is effective or that my feature works (if possible),
- [ ] I have made corresponding changes to the documentation. All new code
adheres to the team's
[documentation standards](https://github.com/ChainSafe/forest/wiki/Documentation-practices),
- [ ] I have added tests that prove my fix is effective or that my feature works
(if possible),

<!-- Thank you 🔥 -->
3 changes: 3 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ updates:
patterns:
- "worker"
- "worker-macros"
leptos:
patterns:
- "leptos*"
patch-versions:
update-types:
- "patch"
Expand Down
69 changes: 36 additions & 33 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,36 +26,39 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Setup sccache
uses: mozilla-actions/[email protected]
timeout-minutes: "${{ fromJSON(env.CACHE_TIMEOUT_MINUTES) }}"
continue-on-error: true

- name: Checkout code
uses: actions/checkout@v4

- name: Setup Rust
uses: actions-rust-lang/setup-rust-toolchain@v1

- name: Install wasm-pack
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh

- uses: sigoden/install-binary@v1
with:
repo: WebAssembly/binaryen
name: wasm-opt

- name: Install worker-build
run: cargo install --locked worker-build

- name: Dry Run
if: github.ref != 'refs/heads/main'
uses: cloudflare/wrangler-action@v3
with:
command: deploy --dry-run

- name: Publish
if: github.ref == 'refs/heads/main'
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CF_API_TOKEN }}
- name: Setup sccache
uses: mozilla-actions/[email protected]
timeout-minutes: "${{ fromJSON(env.CACHE_TIMEOUT_MINUTES) }}"
continue-on-error: true

- name: Checkout code
uses: actions/checkout@v4

- name: Setup Rust
uses: actions-rust-lang/setup-rust-toolchain@v1

- name: Install wasm-pack
run:
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh

- uses: sigoden/install-binary@v1
with:
repo: WebAssembly/binaryen
name: wasm-opt

- name: Install worker-build
run: cargo install --locked worker-build

- run: corepack enable

- name: Dry Run
if: github.ref != 'refs/heads/main'
uses: cloudflare/wrangler-action@v3
with:
command: deploy --dry-run

- name: Publish
if: github.ref == 'refs/heads/main'
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CF_API_TOKEN }}
44 changes: 44 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Lint

concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: "${{ github.ref != 'refs/heads/main' }}"

on:
workflow_dispatch:
merge_group:
pull_request:
branches:
- main
push:
branches:
- main

env:
CACHE_TIMEOUT_MINUTES: 5
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: sccache
CC: sccache clang
CXX: sccache clang++

jobs:
lint:
runs-on: ubuntu-latest

steps:
- name: Setup sccache
uses: mozilla-actions/[email protected]
timeout-minutes: "${{ fromJSON(env.CACHE_TIMEOUT_MINUTES) }}"
continue-on-error: true
- uses: actions/checkout@v4
- name: Apt Dependencies
uses: nick-fields/retry@v3
with:
timeout_minutes: 5
max_attempts: 3
command: |
sudo apt-get install -y libclang-dev # required dep for cargo-spellcheck
- run: make install-lint-tools-ci
env:
RUSTFLAGS: "-Cstrip=symbols"
- run: make lint-all
65 changes: 31 additions & 34 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,45 +26,42 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Setup sccache
uses: mozilla-actions/[email protected]
timeout-minutes: "${{ fromJSON(env.CACHE_TIMEOUT_MINUTES) }}"
continue-on-error: true
- name: Setup sccache
uses: mozilla-actions/[email protected]
timeout-minutes: "${{ fromJSON(env.CACHE_TIMEOUT_MINUTES) }}"
continue-on-error: true

- name: Checkout code
uses: actions/checkout@v4
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Setup Rust
uses: actions-rust-lang/setup-rust-toolchain@v1

- run: cargo fmt --check
- name: Install wasm-pack
run:
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh

- run: cargo clippy --all-features --all-targets -- --deny warnings
- uses: sigoden/install-binary@v1
with:
repo: WebAssembly/binaryen
name: wasm-opt

- name: Install wasm-pack
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- name: Install worker-build
run: cargo install --locked worker-build

- uses: sigoden/install-binary@v1
with:
repo: WebAssembly/binaryen
name: wasm-opt
- uses: nanasess/setup-chromedriver@v2
- run: |
chromedriver --port=9515 &

- name: Install worker-build
run: cargo install --locked worker-build
- name: Run website
run: |
npx wrangler@latest build
npx wrangler@latest dev &
echo "waiting"
timeout 120 sh -c 'until nc -z $0 $1; do sleep 1; done' 127.0.0.1 8787

- uses: nanasess/setup-chromedriver@v2
- run: |
chromedriver --port=9515 &

- name: Run website
run: |
npx wrangler@latest build
npx wrangler@latest dev &
echo "waiting"
timeout 120 sh -c 'until nc -z $0 $1; do sleep 1; done' 127.0.0.1 8787

- name: E2E
run: |
cd e2e
cargo build
cargo run
- name: E2E
run: |
cd e2e
cargo build
cargo run
Loading
Loading