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
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@
"lint-staged": "^15.5.2",
"openapi-types": "^12.1.3",
"pino-pretty": "^13.1.3",
"prettier": "^3.8.4",
"prettier": "^3.9.1",
"prettier-plugin-astro": "^0.14.1",
"remark-gfm": "^4.0.0",
"remark-mdx": "^3.1.0",
Expand Down
20 changes: 12 additions & 8 deletions src/content/cre/llms-full-ts.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17796,12 +17796,8 @@ Directly replaces the on-chain entry path of `_sendRequest()`. Instead of your c
```ts
const evmClient = new cre.evm.EVMClient(CHAIN_SELECTOR)
const trigger = evmClient.logTrigger({
addresses: [
/* base64-encoded contract address */
],
topics: [
/* base64-encoded event signature hash */
],
addresses: [/* base64-encoded contract address */],
topics: [/* base64-encoded event signature hash */],
})
```

Expand Down Expand Up @@ -20727,7 +20723,11 @@ const workflow = (runtime: Runtime<Config>) => {

// Call the high-level sendRequest with your custom function
const price = httpClient
.sendRequest(runtime, fetchPrice, consensusMedianAggregation<number>())(runtime.config.apiUrl)
.sendRequest(
runtime,
fetchPrice,
consensusMedianAggregation<number>()
)(runtime.config.apiUrl)
.result()

runtime.log(`Aggregated price: ${price}`)
Expand Down Expand Up @@ -21249,7 +21249,11 @@ const createResource = (sendRequester: HTTPSendRequester, payload: { name: strin
// In your workflow
const httpClient = new HTTPClient()
const resource = httpClient
.sendRequest(runtime, createResource, consensusIdenticalAggregation<{ id: string }>())({ name: "My Resource" })
.sendRequest(
runtime,
createResource,
consensusIdenticalAggregation<{ id: string }>()
)({ name: "My Resource" })
.result()
```

Expand Down
8 changes: 2 additions & 6 deletions src/content/cre/reference/clf-migration-ts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,8 @@ Directly replaces the on-chain entry path of `_sendRequest()`. Instead of your c
```ts
const evmClient = new cre.evm.EVMClient(CHAIN_SELECTOR)
const trigger = evmClient.logTrigger({
addresses: [
/* base64-encoded contract address */
],
topics: [
/* base64-encoded event signature hash */
],
addresses: [/* base64-encoded contract address */],
topics: [/* base64-encoded event signature hash */],
})
```

Expand Down
12 changes: 10 additions & 2 deletions src/content/cre/reference/sdk/http-client-ts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,11 @@ const workflow = (runtime: Runtime<Config>) => {

// Call the high-level sendRequest with your custom function
const price = httpClient
.sendRequest(runtime, fetchPrice, consensusMedianAggregation<number>())(runtime.config.apiUrl)
.sendRequest(
runtime,
fetchPrice,
consensusMedianAggregation<number>()
)(runtime.config.apiUrl)
.result()

runtime.log(`Aggregated price: ${price}`)
Expand Down Expand Up @@ -598,7 +602,11 @@ const createResource = (sendRequester: HTTPSendRequester, payload: { name: strin
// In your workflow
const httpClient = new HTTPClient()
const resource = httpClient
.sendRequest(runtime, createResource, consensusIdenticalAggregation<{ id: string }>())({ name: "My Resource" })
.sendRequest(
runtime,
createResource,
consensusIdenticalAggregation<{ id: string }>()
)({ name: "My Resource" })
.result()
```

Expand Down
4 changes: 1 addition & 3 deletions src/content/data-streams/llms-full.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5187,9 +5187,7 @@ Pass your logger to the SDK and choose a verbosity level. For deep WS diagnostic
import { createClient, LogLevel } from "@chainlink/data-streams-sdk"

// Silent mode (default) - Zero overhead
const client = createClient({
/* ... config without logging */
})
const client = createClient({/* ... config without logging */})

// Basic console logging
const client = createClient({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -362,9 +362,7 @@ Pass your logger to the SDK and choose a verbosity level. For deep WS diagnostic
import { createClient, LogLevel } from "@chainlink/data-streams-sdk"

// Silent mode (default) - Zero overhead
const client = createClient({
/* ... config without logging */
})
const client = createClient({/* ... config without logging */})

// Basic console logging
const client = createClient({
Expand Down
6 changes: 3 additions & 3 deletions src/features/ccip/components/NetworkDropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ import {
import { ErrorBoundary } from "../../../components/ErrorBoundary.tsx"

enum LoadingState {
"START",
START,
"LOADING...",
"ERROR",
"END",
ERROR,
END,
}

interface Props {
Expand Down
4 changes: 1 addition & 3 deletions src/pages/[...path].md.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,7 @@ async function resolveSpecialCanonicalMarkdownPath(cleanPath: string): Promise<S
}

type CreResolution =
| { kind: "none" }
| { kind: "resolved"; path: string }
| { kind: "selector"; goPath: string; tsPath: string }
{ kind: "none" } | { kind: "resolved"; path: string } | { kind: "selector"; goPath: string; tsPath: string }

async function resolveCreCanonicalMarkdownPath(cleanPath: string): Promise<CreResolution> {
if (!cleanPath.startsWith("cre/")) {
Expand Down
3 changes: 1 addition & 2 deletions src/scripts/chains-metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,7 @@ function normalizeChainName(name: string): string {
}

type ChainMatchResult =
| { matched: true; reason: "name" | "nativeCurrency" }
| { matched: false; existingName: string | undefined }
{ matched: true; reason: "name" | "nativeCurrency" } | { matched: false; existingName: string | undefined }

/**
* When chainid.network flags a chain as reusedChainId, determines whether the incoming
Expand Down
Loading