Skip to content

Commit 4efd2e0

Browse files
committed
Merge remote-tracking branch 'origin' into llms-full-text
2 parents b0eb3cc + dec462c commit 4efd2e0

File tree

353 files changed

+30068
-15163
lines changed

Some content is hidden

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

353 files changed

+30068
-15163
lines changed

.github/scripts/data/baseline.json

Lines changed: 84 additions & 1 deletion
Large diffs are not rendered by default.

.github/scripts/data/detect-data.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ node <<EOF
154154
155155
// === data-streams networks
156156
const STREAMS_NETWORKS = [
157-
"apechain", "arbitrum", "avalanche", "base", "berachain", "blast",
157+
"apechain", "arbitrum", "avalanche", "base", "berachain", "bitlayer", "blast",
158158
"bnb-chain", "bob", "ethereum", "gnosis-chain", "gravity", "hashkey", "hyperliquid",
159159
"ink", "lens", "linea", "mantle", "opbnb", "optimism", "polygon", "ronin",
160160
"scroll", "shibarium", "soneium", "sonic",

.github/workflows/detect-new-data.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ jobs:
3131
steps:
3232
# Step 1: Check out the repository code
3333
- name: Checkout Repo
34-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
34+
uses: actions/checkout@v4
3535
with:
3636
fetch-depth: 0 # Fetch all history for git operations
3737

3838
# Step 2: Set up Node.js environment
3939
- name: Setup Node.js
40-
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
40+
uses: actions/setup-node@v4
4141
with:
4242
node-version: ${{ env.NODE_VERSION }}
4343
cache: 'npm'
@@ -67,13 +67,13 @@ jobs:
6767
steps:
6868
# Step 1: Check out repository code
6969
- name: Checkout Repo
70-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
70+
uses: actions/checkout@v4
7171
with:
7272
fetch-depth: 0 # Fetch all history for git operations
7373

7474
# Step 2: Set up Node.js environment
7575
- name: Setup Node.js
76-
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
76+
uses: actions/setup-node@v4
7777
with:
7878
node-version: ${{ env.NODE_VERSION }}
7979
cache: 'npm'
@@ -152,7 +152,7 @@ jobs:
152152
# Step 11: Upload artifacts for debugging and record-keeping
153153
- name: Capture output artifacts
154154
if: always()
155-
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
155+
uses: actions/upload-artifact@v4
156156
with:
157157
name: data-detection-${{ github.run_id }}
158158
path: |

.github/workflows/detect-new-tokens.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@ jobs:
4545
runs-on: ubuntu-latest
4646
steps:
4747
- name: Checkout Repo
48-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
48+
uses: actions/checkout@v4
4949
with:
5050
fetch-depth: 0 # Fetch all history for git operations
5151
- name: Setup Node.js
52-
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
52+
uses: actions/setup-node@v4
5353
with:
5454
node-version: ${{ env.NODE_VERSION }}
5555
cache: 'npm'
@@ -76,11 +76,11 @@ jobs:
7676
runs-on: ubuntu-latest
7777
steps:
7878
- name: Checkout Repo
79-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
79+
uses: actions/checkout@v4
8080
with:
8181
fetch-depth: 0 # Fetch all history for git operations
8282
- name: Setup Node.js
83-
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
83+
uses: actions/setup-node@v4
8484
with:
8585
node-version: ${{ env.NODE_VERSION }}
8686
cache: 'npm'
@@ -160,7 +160,7 @@ jobs:
160160
# Capture output artifacts (always runs, even if previous steps failed)
161161
- name: Capture output files
162162
if: always()
163-
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
163+
uses: actions/upload-artifact@v4
164164
with:
165165
name: token-detection-artifacts-${{ github.run_id }}
166166
path: |

.github/workflows/test.yml

Lines changed: 44 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ jobs:
3131
- name: Cache node_modules
3232
uses: actions/cache@v4
3333
id: cache-node-modules
34+
continue-on-error: true
3435
with:
3536
path: |
3637
node_modules
@@ -60,17 +61,26 @@ jobs:
6061
# Restore node_modules from setup job
6162
- name: Restore node_modules
6263
uses: actions/cache@v4
64+
continue-on-error: true
6365
with:
6466
path: |
6567
node_modules
6668
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }}
6769
restore-keys: |
6870
${{ runner.os }}-node-modules-
6971
72+
- name: Ensure Dependencies
73+
run: |
74+
if [ ! -d "node_modules" ]; then
75+
echo "node_modules not found, installing dependencies..."
76+
npm ci --prefer-offline --no-audit
77+
fi
78+
7079
# Cache Solidity compilation artifacts
7180
- name: Restore compilation caches
7281
id: cache-solidity
7382
uses: actions/cache@v4
83+
continue-on-error: true
7484
with:
7585
path: |
7686
.test/artifacts
@@ -109,12 +119,20 @@ jobs:
109119
# Restore node_modules from setup job
110120
- name: Restore node_modules
111121
uses: actions/cache@v4
122+
continue-on-error: true
112123
with:
113124
path: |
114125
node_modules
115126
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }}
116127
restore-keys: |
117128
${{ runner.os }}-node-modules-
129+
130+
- name: Ensure Dependencies
131+
run: |
132+
if [ ! -d "node_modules" ]; then
133+
echo "node_modules not found, installing dependencies..."
134+
npm ci --prefer-offline --no-audit
135+
fi
118136
119137
- name: Check ESLint
120138
run: |
@@ -144,12 +162,20 @@ jobs:
144162
# Restore node_modules from setup job
145163
- name: Restore node_modules
146164
uses: actions/cache@v4
165+
continue-on-error: true
147166
with:
148167
path: |
149168
node_modules
150169
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }}
151170
restore-keys: |
152171
${{ runner.os }}-node-modules-
172+
173+
- name: Ensure Dependencies
174+
run: |
175+
if [ ! -d "node_modules" ]; then
176+
echo "node_modules not found, installing dependencies..."
177+
npm ci --prefer-offline --no-audit
178+
fi
153179
154180
- name: Check Internal Links
155181
run: npm run linkcheck-internal
@@ -172,17 +198,25 @@ jobs:
172198
# Restore node_modules from setup job
173199
- name: Restore node_modules
174200
uses: actions/cache@v4
201+
continue-on-error: true
175202
with:
176203
path: |
177204
node_modules
178205
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }}
179206
restore-keys: |
180207
${{ runner.os }}-node-modules-
181208
209+
- name: Ensure Dependencies
210+
run: |
211+
if [ ! -d "node_modules" ]; then
212+
echo "node_modules not found, installing dependencies..."
213+
npm ci --prefer-offline --no-audit
214+
fi
215+
182216
- name: Generate Astro types
183217
run: |
184218
echo "Generating Astro types..."
185-
npx astro sync
219+
npm run astro sync
186220
187221
- name: Check Types
188222
run: |
@@ -212,13 +246,21 @@ jobs:
212246
# Restore node_modules from setup job
213247
- name: Restore node_modules
214248
uses: actions/cache@v4
249+
continue-on-error: true
215250
with:
216251
path: |
217252
node_modules
218253
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }}
219254
restore-keys: |
220255
${{ runner.os }}-node-modules-
221256
257+
- name: Ensure Dependencies
258+
run: |
259+
if [ ! -d "node_modules" ]; then
260+
echo "node_modules not found, installing dependencies..."
261+
npm ci --prefer-offline --no-audit
262+
fi
263+
222264
- name: Run Jest Tests
223265
run: npm test -- --coverage
224266

@@ -228,4 +270,4 @@ jobs:
228270
with:
229271
name: coverage-report-node-${{ matrix.node-version }}
230272
path: coverage/
231-
retention-days: 30
273+
retention-days: 30

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ typechain-types/
4141
.idea
4242
.vercel
4343

44+
# Selectors backup files
45+
selectors*.yml.backup
4446
selectors.yml.backup
4547

4648
# Test coverage

CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
* @gfletcher-cll @aelmanaa @khadni @SyedAsadKazmi
1+
* @smartcontractkit/product-docs

jest.config.cjs

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,34 @@
11
module.exports = {
2-
preset: "ts-jest",
2+
preset: "ts-jest/presets/js-with-ts-esm",
33
testEnvironment: "node",
44
transform: {
5-
"^.+\\.ts?$": "ts-jest",
5+
"^.+\\.(ts|tsx)$": [
6+
"ts-jest",
7+
{
8+
useESM: true,
9+
tsconfig: "tsconfig.json",
10+
},
11+
],
612
},
13+
extensionsToTreatAsEsm: [".ts", ".tsx"],
14+
moduleFileExtensions: ["js", "jsx", "ts", "tsx", "json", "node"],
715
moduleNameMapper: {
816
"\\.(css)$": "<rootDir>/src/__mocks__/styleMock.ts",
917
"^~/(.*)$": "<rootDir>/src/$1",
10-
"^@components$": "<rootDir>/src/components/index.ts",
18+
"^@components": "<rootDir>/src/components/index.ts",
1119
"^@components/(.*)$": "<rootDir>/src/components/$1",
12-
"^@config$": "<rootDir>/src/config",
20+
"^@config$": "<rootDir>/src/config/index.ts",
1321
"^@config/(.*)$": "<rootDir>/src/config/$1",
1422
"^@features/(.*)$": "<rootDir>/src/features/$1",
15-
"^@graphql$": "<rootDir>/src/graphql",
23+
"^@graphql$": "<rootDir>/src/graphql/index.ts",
1624
"^@graphql/(.*)$": "<rootDir>/src/graphql/$1",
1725
"^@stores/(.*)$": "<rootDir>/src/stores/$1",
18-
"^@utils$": "<rootDir>/src/utils",
26+
"^@utils$": "<rootDir>/src/utils/index.ts",
1927
"^@utils/(.*)$": "<rootDir>/src/utils/$1",
2028
"^@variables$": "<rootDir>/src/config/markdown-variables.ts",
2129
"^@abi$": "<rootDir>/src/features/abi/index.ts",
22-
"^src/(.*)$": "<rootDir>/src/$1",
2330
"\\.ya?ml$": "<rootDir>/src/__mocks__/yamlMock.ts",
2431
},
25-
transformIgnorePatterns: ["<rootDir>/node_modules/"],
26-
moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node"],
32+
transformIgnorePatterns: ["/node_modules/(?!.*\\.mjs$)"],
33+
testPathIgnorePatterns: ["/node_modules/", "src/tests/chain-api.test.ts"],
2734
}

0 commit comments

Comments
 (0)