From 422c4f345235bbeeeb6ecf000905ae7acfd7630b Mon Sep 17 00:00:00 2001 From: Thomas Hodges Date: Mon, 30 Nov 2026 08:47:32 -0600 Subject: [PATCH] Fix unrendered MDX braces leaking into page and markdown output --- src/content/ccip/llms-full.txt | 6 +- .../architecture/onchain/components.mdx | 6 +- .../v0.2.4/ccip-local-simulator-fork-js.mdx | 30 +-- .../v0.2.5/ccip-local-simulator-fork-js.mdx | 30 +-- .../v0.2.6/ccip-local-simulator-fork-js.mdx | 33 ++- .../v0.2.7/ccip-local-simulator-fork-js.mdx | 33 ++- .../v0.2.8/ccip-local-simulator-fork-js.mdx | 33 ++- .../v0.2.9/ccip-local-simulator-fork-js.mdx | 33 ++- .../v0.3.0/ccip-local-simulator-fork-js.mdx | 12 +- src/content/chainlink-local/llms-full.txt | 204 +++++++++--------- 10 files changed, 208 insertions(+), 212 deletions(-) diff --git a/src/content/ccip/llms-full.txt b/src/content/ccip/llms-full.txt index ae1e848da96..a5ec2453297 100644 --- a/src/content/ccip/llms-full.txt +++ b/src/content/ccip/llms-full.txt @@ -3104,7 +3104,7 @@ When the `Router` forwards `OnRamp_Send`, the `OnRamp`: The `OnRamp` also handles fee withdrawal (`OnRamp_WithdrawFeeTokens`, permissionless), dynamic config updates (owner-only), destination chain config updates (owner-only), and allowlist updates (allowlist admin or owner). -## SendExecutor\{id} +## `SendExecutor{id}` The `SendExecutor{id}` is an ephemeral contract deployed by the `OnRamp` once per outgoing message. Its address is deterministically derived from the `OnRamp`'s address and a randomly generated `id`, so the `OnRamp` can authenticate replies without storing any state. @@ -3182,7 +3182,7 @@ The `OffRamp` includes an `OffRamp_ManuallyExecute` handler that follows the sam The `OffRamp` accepts `OffRamp_UpdateCursedSubjects` exclusively from the address stored as `rmnRouter` in its `deployables` storage (which is the `Router` address). When received, it overwrites the local `CursedSubjects` replica. This is the only mechanism by which the curse state is updated in the `OffRamp`. -## MerkleRoot\{id} +## `MerkleRoot{id}` The `MerkleRoot{id}` is an ephemeral contract deployed once per committed Merkle root by the `OffRamp`. Its address is deterministic, derived from the `OffRamp`'s address and the Merkle root value itself. @@ -3192,7 +3192,7 @@ The `MerkleRoot{id}` is an ephemeral contract deployed once per committed Merkle - Accepts `MerkleRoot_MarkState` from the `OffRamp` to transition a message to `Success` or `Failure`. Increments a delivered count on `Success`. When delivered count equals the total expected messages, the `MerkleRoot{id}` freezes and returns its balance to the `OffRamp`. - Is never directly redeployed; if a root's `MerkleRoot{id}` was destroyed (all messages succeeded) and a retry attempt arrives, the address will not exist and the message will bounce. -## ReceiveExecutor\{id} +## `ReceiveExecutor{id}` The `ReceiveExecutor{id}` is an ephemeral contract deployed (or reused on retry) by the `OffRamp` per incoming message. Its address is deterministic, derived from the `OffRamp`'s address, the `messageId`, and the `sourceChainSelector`. diff --git a/src/content/ccip/v1/ton/concepts/architecture/onchain/components.mdx b/src/content/ccip/v1/ton/concepts/architecture/onchain/components.mdx index de345dfcd22..95ec6d7a3e6 100644 --- a/src/content/ccip/v1/ton/concepts/architecture/onchain/components.mdx +++ b/src/content/ccip/v1/ton/concepts/architecture/onchain/components.mdx @@ -92,7 +92,7 @@ When the `Router` forwards `OnRamp_Send`, the `OnRamp`: The `OnRamp` also handles fee withdrawal (`OnRamp_WithdrawFeeTokens`, permissionless), dynamic config updates (owner-only), destination chain config updates (owner-only), and allowlist updates (allowlist admin or owner). -## SendExecutor\{id\} +## `SendExecutor{id}` The `SendExecutor{id}` is an ephemeral contract deployed by the `OnRamp` once per outgoing message. Its address is deterministically derived from the `OnRamp`'s address and a randomly generated `id`, so the `OnRamp` can authenticate replies without storing any state. @@ -170,7 +170,7 @@ The `OffRamp` includes an `OffRamp_ManuallyExecute` handler that follows the sam The `OffRamp` accepts `OffRamp_UpdateCursedSubjects` exclusively from the address stored as `rmnRouter` in its `deployables` storage (which is the `Router` address). When received, it overwrites the local `CursedSubjects` replica. This is the only mechanism by which the curse state is updated in the `OffRamp`. -## MerkleRoot\{id\} +## `MerkleRoot{id}` The `MerkleRoot{id}` is an ephemeral contract deployed once per committed Merkle root by the `OffRamp`. Its address is deterministic, derived from the `OffRamp`'s address and the Merkle root value itself. @@ -180,7 +180,7 @@ The `MerkleRoot{id}` is an ephemeral contract deployed once per committed Merkle - Accepts `MerkleRoot_MarkState` from the `OffRamp` to transition a message to `Success` or `Failure`. Increments a delivered count on `Success`. When delivered count equals the total expected messages, the `MerkleRoot{id}` freezes and returns its balance to the `OffRamp`. - Is never directly redeployed; if a root's `MerkleRoot{id}` was destroyed (all messages succeeded) and a retry attempt arrives, the address will not exist and the message will bounce. -## ReceiveExecutor\{id\} +## `ReceiveExecutor{id}` The `ReceiveExecutor{id}` is an ephemeral contract deployed (or reused on retry) by the `OffRamp` per incoming message. Its address is deterministic, derived from the `OffRamp`'s address, the `messageId`, and the `sourceChainSelector`. diff --git a/src/content/chainlink-local/api-reference/v0.2.4/ccip-local-simulator-fork-js.mdx b/src/content/chainlink-local/api-reference/v0.2.4/ccip-local-simulator-fork-js.mdx index a3e0ed07027..c75ca128059 100644 --- a/src/content/chainlink-local/api-reference/v0.2.4/ccip-local-simulator-fork-js.mdx +++ b/src/content/chainlink-local/api-reference/v0.2.4/ccip-local-simulator-fork-js.mdx @@ -23,21 +23,21 @@ Hardhat 2 JavaScript helpers for fork routing. **Properties** -| Name | Type | -| ------------------- | ------------------------------------------ | -| sourceChainSelector | `bigint` | -| sender | `string` | -| receiver | `string` | -| sequenceNumber | `bigint` | -| gasLimit | `bigint` | -| strict | `boolean` | -| nonce | `bigint` | -| feeToken | `string` | -| feeTokenAmount | `bigint` | -| data | `string` | -| tokenAmounts | `Array.<\{token: string, amount: bigint}>` | -| sourceTokenData | `Array.` | -| messageId | `string` | +| Name | Type | +| ------------------- | ----------------------------------------- | +| sourceChainSelector | `bigint` | +| sender | `string` | +| receiver | `string` | +| sequenceNumber | `bigint` | +| gasLimit | `bigint` | +| strict | `boolean` | +| nonce | `bigint` | +| feeToken | `string` | +| feeTokenAmount | `bigint` | +| data | `string` | +| tokenAmounts | `Array.<{token: string, amount: bigint}>` | +| sourceTokenData | `Array.` | +| messageId | `string` | ## Functions diff --git a/src/content/chainlink-local/api-reference/v0.2.5/ccip-local-simulator-fork-js.mdx b/src/content/chainlink-local/api-reference/v0.2.5/ccip-local-simulator-fork-js.mdx index bc0c6f9a0ef..4bb4b682ea5 100644 --- a/src/content/chainlink-local/api-reference/v0.2.5/ccip-local-simulator-fork-js.mdx +++ b/src/content/chainlink-local/api-reference/v0.2.5/ccip-local-simulator-fork-js.mdx @@ -23,21 +23,21 @@ Hardhat 2 JavaScript helpers for fork routing. **Properties** -| Name | Type | -| ------------------- | ------------------------------------------ | -| sourceChainSelector | `bigint` | -| sender | `string` | -| receiver | `string` | -| sequenceNumber | `bigint` | -| gasLimit | `bigint` | -| strict | `boolean` | -| nonce | `bigint` | -| feeToken | `string` | -| feeTokenAmount | `bigint` | -| data | `string` | -| tokenAmounts | `Array.<\{token: string, amount: bigint}>` | -| sourceTokenData | `Array.` | -| messageId | `string` | +| Name | Type | +| ------------------- | ----------------------------------------- | +| sourceChainSelector | `bigint` | +| sender | `string` | +| receiver | `string` | +| sequenceNumber | `bigint` | +| gasLimit | `bigint` | +| strict | `boolean` | +| nonce | `bigint` | +| feeToken | `string` | +| feeTokenAmount | `bigint` | +| data | `string` | +| tokenAmounts | `Array.<{token: string, amount: bigint}>` | +| sourceTokenData | `Array.` | +| messageId | `string` | ## Functions diff --git a/src/content/chainlink-local/api-reference/v0.2.6/ccip-local-simulator-fork-js.mdx b/src/content/chainlink-local/api-reference/v0.2.6/ccip-local-simulator-fork-js.mdx index 187f3ef9a36..616d5e48e4b 100644 --- a/src/content/chainlink-local/api-reference/v0.2.6/ccip-local-simulator-fork-js.mdx +++ b/src/content/chainlink-local/api-reference/v0.2.6/ccip-local-simulator-fork-js.mdx @@ -23,21 +23,21 @@ Hardhat 2 JavaScript helpers for fork routing. **Properties** -| Name | Type | -| ------------------- | ------------------------------------------ | -| sourceChainSelector | `bigint` | -| sender | `string` | -| receiver | `string` | -| sequenceNumber | `bigint` | -| gasLimit | `bigint` | -| strict | `boolean` | -| nonce | `bigint` | -| feeToken | `string` | -| feeTokenAmount | `bigint` | -| data | `string` | -| tokenAmounts | `Array.<\{token: string, amount: bigint}>` | -| sourceTokenData | `Array.` | -| messageId | `string` | +| Name | Type | +| ------------------- | ----------------------------------------- | +| sourceChainSelector | `bigint` | +| sender | `string` | +| receiver | `string` | +| sequenceNumber | `bigint` | +| gasLimit | `bigint` | +| strict | `boolean` | +| nonce | `bigint` | +| feeToken | `string` | +| feeTokenAmount | `bigint` | +| data | `string` | +| tokenAmounts | `Array.<{token: string, amount: bigint}>` | +| sourceTokenData | `Array.` | +| messageId | `string` | ## Functions @@ -72,8 +72,7 @@ does not contain `CCIPSendRequested` log Parses a transaction receipt to extract the sent message from CCIPMessageSent -**Returns**: `object` | `null` - Returns \{ -destChainSelector, sequenceNumber, EVM2AnyRampMessage message \} or null +**Returns**: `object` | `null` - Returns `{ destChainSelector, sequenceNumber, EVM2AnyRampMessage message }` or `null` | Param | Type | Description | | ------- | -------- | ------------------------------------------ | diff --git a/src/content/chainlink-local/api-reference/v0.2.7/ccip-local-simulator-fork-js.mdx b/src/content/chainlink-local/api-reference/v0.2.7/ccip-local-simulator-fork-js.mdx index a7979466ed1..83bc7b4ba50 100644 --- a/src/content/chainlink-local/api-reference/v0.2.7/ccip-local-simulator-fork-js.mdx +++ b/src/content/chainlink-local/api-reference/v0.2.7/ccip-local-simulator-fork-js.mdx @@ -23,21 +23,21 @@ Hardhat 2 JavaScript helpers for fork routing. **Properties** -| Name | Type | -| ------------------- | ------------------------------------------ | -| sourceChainSelector | `bigint` | -| sender | `string` | -| receiver | `string` | -| sequenceNumber | `bigint` | -| gasLimit | `bigint` | -| strict | `boolean` | -| nonce | `bigint` | -| feeToken | `string` | -| feeTokenAmount | `bigint` | -| data | `string` | -| tokenAmounts | `Array.<\{token: string, amount: bigint}>` | -| sourceTokenData | `Array.` | -| messageId | `string` | +| Name | Type | +| ------------------- | ----------------------------------------- | +| sourceChainSelector | `bigint` | +| sender | `string` | +| receiver | `string` | +| sequenceNumber | `bigint` | +| gasLimit | `bigint` | +| strict | `boolean` | +| nonce | `bigint` | +| feeToken | `string` | +| feeTokenAmount | `bigint` | +| data | `string` | +| tokenAmounts | `Array.<{token: string, amount: bigint}>` | +| sourceTokenData | `Array.` | +| messageId | `string` | ## Functions @@ -72,8 +72,7 @@ does not contain `CCIPSendRequested` log Parses a transaction receipt to extract the sent message from CCIPMessageSent -**Returns**: `object` | `null` - Returns \{ -destChainSelector, sequenceNumber, EVM2AnyRampMessage message \} or null +**Returns**: `object` | `null` - Returns `{ destChainSelector, sequenceNumber, EVM2AnyRampMessage message }` or `null` | Param | Type | Description | | ------- | -------- | ------------------------------------------ | diff --git a/src/content/chainlink-local/api-reference/v0.2.8/ccip-local-simulator-fork-js.mdx b/src/content/chainlink-local/api-reference/v0.2.8/ccip-local-simulator-fork-js.mdx index f0f83447344..9a35b31874d 100644 --- a/src/content/chainlink-local/api-reference/v0.2.8/ccip-local-simulator-fork-js.mdx +++ b/src/content/chainlink-local/api-reference/v0.2.8/ccip-local-simulator-fork-js.mdx @@ -23,21 +23,21 @@ Hardhat 2 JavaScript helpers for fork routing. **Properties** -| Name | Type | -| ------------------- | ------------------------------------------ | -| sourceChainSelector | `bigint` | -| sender | `string` | -| receiver | `string` | -| sequenceNumber | `bigint` | -| gasLimit | `bigint` | -| strict | `boolean` | -| nonce | `bigint` | -| feeToken | `string` | -| feeTokenAmount | `bigint` | -| data | `string` | -| tokenAmounts | `Array.<\{token: string, amount: bigint}>` | -| sourceTokenData | `Array.` | -| messageId | `string` | +| Name | Type | +| ------------------- | ----------------------------------------- | +| sourceChainSelector | `bigint` | +| sender | `string` | +| receiver | `string` | +| sequenceNumber | `bigint` | +| gasLimit | `bigint` | +| strict | `boolean` | +| nonce | `bigint` | +| feeToken | `string` | +| feeTokenAmount | `bigint` | +| data | `string` | +| tokenAmounts | `Array.<{token: string, amount: bigint}>` | +| sourceTokenData | `Array.` | +| messageId | `string` | ## Functions @@ -72,8 +72,7 @@ does not contain `CCIPSendRequested` log Parses a transaction receipt to extract the sent message from CCIPMessageSent -**Returns**: `object` | `null` - Returns \{ -destChainSelector, sequenceNumber, EVM2AnyRampMessage message \} or null +**Returns**: `object` | `null` - Returns `{ destChainSelector, sequenceNumber, EVM2AnyRampMessage message }` or `null` | Param | Type | Description | | ------- | -------- | ------------------------------------------ | diff --git a/src/content/chainlink-local/api-reference/v0.2.9/ccip-local-simulator-fork-js.mdx b/src/content/chainlink-local/api-reference/v0.2.9/ccip-local-simulator-fork-js.mdx index 84dad86b09f..a37338edd99 100644 --- a/src/content/chainlink-local/api-reference/v0.2.9/ccip-local-simulator-fork-js.mdx +++ b/src/content/chainlink-local/api-reference/v0.2.9/ccip-local-simulator-fork-js.mdx @@ -23,21 +23,21 @@ Hardhat 2 JavaScript helpers for fork routing. **Properties** -| Name | Type | -| ------------------- | ------------------------------------------ | -| sourceChainSelector | `bigint` | -| sender | `string` | -| receiver | `string` | -| sequenceNumber | `bigint` | -| gasLimit | `bigint` | -| strict | `boolean` | -| nonce | `bigint` | -| feeToken | `string` | -| feeTokenAmount | `bigint` | -| data | `string` | -| tokenAmounts | `Array.<\{token: string, amount: bigint}>` | -| sourceTokenData | `Array.` | -| messageId | `string` | +| Name | Type | +| ------------------- | ----------------------------------------- | +| sourceChainSelector | `bigint` | +| sender | `string` | +| receiver | `string` | +| sequenceNumber | `bigint` | +| gasLimit | `bigint` | +| strict | `boolean` | +| nonce | `bigint` | +| feeToken | `string` | +| feeTokenAmount | `bigint` | +| data | `string` | +| tokenAmounts | `Array.<{token: string, amount: bigint}>` | +| sourceTokenData | `Array.` | +| messageId | `string` | ## Functions @@ -72,8 +72,7 @@ does not contain `CCIPSendRequested` log Parses a transaction receipt to extract the sent message from CCIPMessageSent -**Returns**: `object` | `null` - Returns \{ -destChainSelector, sequenceNumber, EVM2AnyRampMessage message \} or null +**Returns**: `object` | `null` - Returns `{ destChainSelector, sequenceNumber, EVM2AnyRampMessage message }` or `null` | Param | Type | Description | | ------- | -------- | ------------------------------------------ | diff --git a/src/content/chainlink-local/api-reference/v0.3.0/ccip-local-simulator-fork-js.mdx b/src/content/chainlink-local/api-reference/v0.3.0/ccip-local-simulator-fork-js.mdx index eb2199067bf..fdb5687bfda 100644 --- a/src/content/chainlink-local/api-reference/v0.3.0/ccip-local-simulator-fork-js.mdx +++ b/src/content/chainlink-local/api-reference/v0.3.0/ccip-local-simulator-fork-js.mdx @@ -45,11 +45,13 @@ requires the `@nomicfoundation/hardhat-ethers` plugin (it uses `connection.ethers`). Messages are sent on the source connection, then routed on the destination connection: -const source = await network.connect(\{ network: "sepoliaFork" \}); const -destination = await network.connect(\{ network: "arbitrumSepoliaFork" \}); const -receipt = await (await router.ccipSend(destChainSelector, message, \{ value: fee -\})).wait(); const [sent] = getCCIPMessages(source, receipt); await -routeMessage(destination, destinationRouterAddress, sent); +```js +const source = await network.connect({ network: "sepoliaFork" }) +const destination = await network.connect({ network: "arbitrumSepoliaFork" }) +const receipt = await (await router.ccipSend(destChainSelector, message, { value: fee })).wait() +const [sent] = getCCIPMessages(source, receipt) +await routeMessage(destination, destinationRouterAddress, sent) +``` **Kind**: global constant diff --git a/src/content/chainlink-local/llms-full.txt b/src/content/chainlink-local/llms-full.txt index 1bbaa03fb98..cc1d6d860d4 100644 --- a/src/content/chainlink-local/llms-full.txt +++ b/src/content/chainlink-local/llms-full.txt @@ -7932,21 +7932,21 @@ Hardhat 2 JavaScript helpers for fork routing. **Properties** -| Name | Type | -| ------------------- | ------------------------------------------ | -| sourceChainSelector | `bigint` | -| sender | `string` | -| receiver | `string` | -| sequenceNumber | `bigint` | -| gasLimit | `bigint` | -| strict | `boolean` | -| nonce | `bigint` | -| feeToken | `string` | -| feeTokenAmount | `bigint` | -| data | `string` | -| tokenAmounts | `Array.<\{token: string, amount: bigint}>` | -| sourceTokenData | `Array.` | -| messageId | `string` | +| Name | Type | +| ------------------- | ----------------------------------------- | +| sourceChainSelector | `bigint` | +| sender | `string` | +| receiver | `string` | +| sequenceNumber | `bigint` | +| gasLimit | `bigint` | +| strict | `boolean` | +| nonce | `bigint` | +| feeToken | `string` | +| feeTokenAmount | `bigint` | +| data | `string` | +| tokenAmounts | `Array.<{token: string, amount: bigint}>` | +| sourceTokenData | `Array.` | +| messageId | `string` | ## Functions @@ -11343,21 +11343,21 @@ Hardhat 2 JavaScript helpers for fork routing. **Properties** -| Name | Type | -| ------------------- | ------------------------------------------ | -| sourceChainSelector | `bigint` | -| sender | `string` | -| receiver | `string` | -| sequenceNumber | `bigint` | -| gasLimit | `bigint` | -| strict | `boolean` | -| nonce | `bigint` | -| feeToken | `string` | -| feeTokenAmount | `bigint` | -| data | `string` | -| tokenAmounts | `Array.<\{token: string, amount: bigint}>` | -| sourceTokenData | `Array.` | -| messageId | `string` | +| Name | Type | +| ------------------- | ----------------------------------------- | +| sourceChainSelector | `bigint` | +| sender | `string` | +| receiver | `string` | +| sequenceNumber | `bigint` | +| gasLimit | `bigint` | +| strict | `boolean` | +| nonce | `bigint` | +| feeToken | `string` | +| feeTokenAmount | `bigint` | +| data | `string` | +| tokenAmounts | `Array.<{token: string, amount: bigint}>` | +| sourceTokenData | `Array.` | +| messageId | `string` | ## Functions @@ -14754,21 +14754,21 @@ Hardhat 2 JavaScript helpers for fork routing. **Properties** -| Name | Type | -| ------------------- | ------------------------------------------ | -| sourceChainSelector | `bigint` | -| sender | `string` | -| receiver | `string` | -| sequenceNumber | `bigint` | -| gasLimit | `bigint` | -| strict | `boolean` | -| nonce | `bigint` | -| feeToken | `string` | -| feeTokenAmount | `bigint` | -| data | `string` | -| tokenAmounts | `Array.<\{token: string, amount: bigint}>` | -| sourceTokenData | `Array.` | -| messageId | `string` | +| Name | Type | +| ------------------- | ----------------------------------------- | +| sourceChainSelector | `bigint` | +| sender | `string` | +| receiver | `string` | +| sequenceNumber | `bigint` | +| gasLimit | `bigint` | +| strict | `boolean` | +| nonce | `bigint` | +| feeToken | `string` | +| feeTokenAmount | `bigint` | +| data | `string` | +| tokenAmounts | `Array.<{token: string, amount: bigint}>` | +| sourceTokenData | `Array.` | +| messageId | `string` | ## Functions @@ -14803,8 +14803,7 @@ does not contain `CCIPSendRequested` log Parses a transaction receipt to extract the sent message from CCIPMessageSent -**Returns**: `object` | `null` - Returns \{ -destChainSelector, sequenceNumber, EVM2AnyRampMessage message } or null +**Returns**: `object` | `null` - Returns `{ destChainSelector, sequenceNumber, EVM2AnyRampMessage message }` or `null` | Param | Type | Description | | ------- | -------- | ------------------------------------------ | @@ -18290,21 +18289,21 @@ Hardhat 2 JavaScript helpers for fork routing. **Properties** -| Name | Type | -| ------------------- | ------------------------------------------ | -| sourceChainSelector | `bigint` | -| sender | `string` | -| receiver | `string` | -| sequenceNumber | `bigint` | -| gasLimit | `bigint` | -| strict | `boolean` | -| nonce | `bigint` | -| feeToken | `string` | -| feeTokenAmount | `bigint` | -| data | `string` | -| tokenAmounts | `Array.<\{token: string, amount: bigint}>` | -| sourceTokenData | `Array.` | -| messageId | `string` | +| Name | Type | +| ------------------- | ----------------------------------------- | +| sourceChainSelector | `bigint` | +| sender | `string` | +| receiver | `string` | +| sequenceNumber | `bigint` | +| gasLimit | `bigint` | +| strict | `boolean` | +| nonce | `bigint` | +| feeToken | `string` | +| feeTokenAmount | `bigint` | +| data | `string` | +| tokenAmounts | `Array.<{token: string, amount: bigint}>` | +| sourceTokenData | `Array.` | +| messageId | `string` | ## Functions @@ -18339,8 +18338,7 @@ does not contain `CCIPSendRequested` log Parses a transaction receipt to extract the sent message from CCIPMessageSent -**Returns**: `object` | `null` - Returns \{ -destChainSelector, sequenceNumber, EVM2AnyRampMessage message } or null +**Returns**: `object` | `null` - Returns `{ destChainSelector, sequenceNumber, EVM2AnyRampMessage message }` or `null` | Param | Type | Description | | ------- | -------- | ------------------------------------------ | @@ -21826,21 +21824,21 @@ Hardhat 2 JavaScript helpers for fork routing. **Properties** -| Name | Type | -| ------------------- | ------------------------------------------ | -| sourceChainSelector | `bigint` | -| sender | `string` | -| receiver | `string` | -| sequenceNumber | `bigint` | -| gasLimit | `bigint` | -| strict | `boolean` | -| nonce | `bigint` | -| feeToken | `string` | -| feeTokenAmount | `bigint` | -| data | `string` | -| tokenAmounts | `Array.<\{token: string, amount: bigint}>` | -| sourceTokenData | `Array.` | -| messageId | `string` | +| Name | Type | +| ------------------- | ----------------------------------------- | +| sourceChainSelector | `bigint` | +| sender | `string` | +| receiver | `string` | +| sequenceNumber | `bigint` | +| gasLimit | `bigint` | +| strict | `boolean` | +| nonce | `bigint` | +| feeToken | `string` | +| feeTokenAmount | `bigint` | +| data | `string` | +| tokenAmounts | `Array.<{token: string, amount: bigint}>` | +| sourceTokenData | `Array.` | +| messageId | `string` | ## Functions @@ -21875,8 +21873,7 @@ does not contain `CCIPSendRequested` log Parses a transaction receipt to extract the sent message from CCIPMessageSent -**Returns**: `object` | `null` - Returns \{ -destChainSelector, sequenceNumber, EVM2AnyRampMessage message } or null +**Returns**: `object` | `null` - Returns `{ destChainSelector, sequenceNumber, EVM2AnyRampMessage message }` or `null` | Param | Type | Description | | ------- | -------- | ------------------------------------------ | @@ -25362,21 +25359,21 @@ Hardhat 2 JavaScript helpers for fork routing. **Properties** -| Name | Type | -| ------------------- | ------------------------------------------ | -| sourceChainSelector | `bigint` | -| sender | `string` | -| receiver | `string` | -| sequenceNumber | `bigint` | -| gasLimit | `bigint` | -| strict | `boolean` | -| nonce | `bigint` | -| feeToken | `string` | -| feeTokenAmount | `bigint` | -| data | `string` | -| tokenAmounts | `Array.<\{token: string, amount: bigint}>` | -| sourceTokenData | `Array.` | -| messageId | `string` | +| Name | Type | +| ------------------- | ----------------------------------------- | +| sourceChainSelector | `bigint` | +| sender | `string` | +| receiver | `string` | +| sequenceNumber | `bigint` | +| gasLimit | `bigint` | +| strict | `boolean` | +| nonce | `bigint` | +| feeToken | `string` | +| feeTokenAmount | `bigint` | +| data | `string` | +| tokenAmounts | `Array.<{token: string, amount: bigint}>` | +| sourceTokenData | `Array.` | +| messageId | `string` | ## Functions @@ -25411,8 +25408,7 @@ does not contain `CCIPSendRequested` log Parses a transaction receipt to extract the sent message from CCIPMessageSent -**Returns**: `object` | `null` - Returns \{ -destChainSelector, sequenceNumber, EVM2AnyRampMessage message } or null +**Returns**: `object` | `null` - Returns `{ destChainSelector, sequenceNumber, EVM2AnyRampMessage message }` or `null` | Param | Type | Description | | ------- | -------- | ------------------------------------------ | @@ -29264,11 +29260,13 @@ requires the `@nomicfoundation/hardhat-ethers` plugin (it uses `connection.ethers`). Messages are sent on the source connection, then routed on the destination connection: -const source = await network.connect(\{ network: "sepoliaFork" }); const -destination = await network.connect(\{ network: "arbitrumSepoliaFork" }); const -receipt = await (await router.ccipSend(destChainSelector, message, \{ value: fee -})).wait(); const [sent] = getCCIPMessages(source, receipt); await -routeMessage(destination, destinationRouterAddress, sent); +```js +const source = await network.connect({ network: "sepoliaFork" }) +const destination = await network.connect({ network: "arbitrumSepoliaFork" }) +const receipt = await (await router.ccipSend(destChainSelector, message, { value: fee })).wait() +const [sent] = getCCIPMessages(source, receipt) +await routeMessage(destination, destinationRouterAddress, sent) +``` **Kind**: global constant