Skip to content

Feat: token page #14

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 174 commits into
base: feat-ccip-landing
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
174 commits
Select commit Hold shift + click to select a range
960ce6a
Add product metrics (#2089)
khadni Sep 24, 2024
960fc35
Simplify selected network button style (#2091)
khadni Sep 24, 2024
38daeaa
Node release 2.16.0 (#2085)
thedriftofwords Sep 24, 2024
2728ccf
update (#2087)
aelmanaa Sep 25, 2024
a61523f
Feat: token page
markshenouda Sep 26, 2024
484e6c1
fix: search
markshenouda Sep 26, 2024
ef3c4c0
fix: show correct lanes
markshenouda Sep 26, 2024
ebdfd93
fix: chainhero search
markshenouda Sep 26, 2024
91c13b4
feat: added total lanes and total networks
markshenouda Sep 26, 2024
04a3408
fix: show the correct chains for each network
markshenouda Sep 26, 2024
7bbe3c3
Add GitHub & page edit links (#2094)
khadni Sep 26, 2024
946a40e
Add heartbeat latency info (#2095)
thedriftofwords Sep 27, 2024
f414060
CLA Base mainnet (#2096)
thedriftofwords Sep 30, 2024
68c85cd
Add quick links ID attributes (#2099)
khadni Oct 1, 2024
f227194
feat: Drawer & filters
markshenouda Oct 1, 2024
72d477b
First draft to move page out
Zelig880 Oct 2, 2024
a3370cf
Developer Responsibilities update (#2102)
khadni Oct 2, 2024
7751183
feat: API integrations
markshenouda Oct 3, 2024
c2812f7
remove unused files
markshenouda Oct 3, 2024
159a417
mock
aelmanaa Sep 6, 2024
2e88e09
mock
aelmanaa Sep 6, 2024
b4ee80a
get-status API vercel function
aelmanaa Aug 28, 2024
0046d74
fix caching
aelmanaa Sep 4, 2024
f887782
cleanup
aelmanaa Sep 6, 2024
b0b6fc0
update
aelmanaa Oct 3, 2024
f309d7b
update
aelmanaa Oct 3, 2024
e0ee72c
update
aelmanaa Oct 3, 2024
bd731a0
Merge remote-tracking branch 'thisdot/feat-ccip-landing-token' into s…
Zelig880 Oct 3, 2024
b7f8240
Move token and Chains
Zelig880 Oct 3, 2024
2ff4815
Fix search links
Zelig880 Oct 3, 2024
e687eb9
Merge remote-tracking branch 'origin/ccip/config-redesign' into feat-…
Zelig880 Oct 3, 2024
d42e152
Fix chain after Merge
Zelig880 Oct 3, 2024
34ba959
Streams onboarding clarification (#2101)
khadni Oct 3, 2024
65a00d5
Fix shadow on navigation (#2100)
Zelig880 Oct 3, 2024
b6e1b93
Adjust VRF Sepolia lane and CLA deprecation notice (#2103)
thedriftofwords Oct 3, 2024
51d3c96
Fix URL from main navigation
Zelig880 Oct 4, 2024
42bc3e6
Rename heading
Zelig880 Oct 4, 2024
4ccbd17
Fix token passing wrong environment
Zelig880 Oct 4, 2024
58332d3
CCIP 1.5 (#2104)
aelmanaa Oct 4, 2024
0040ecf
mock
aelmanaa Sep 6, 2024
b690455
mock
aelmanaa Sep 6, 2024
e2f8d8b
get-status API vercel function
aelmanaa Aug 28, 2024
114cabb
fix caching
aelmanaa Sep 4, 2024
f751c61
cleanup
aelmanaa Sep 6, 2024
462529d
update
aelmanaa Oct 3, 2024
f22043c
update
aelmanaa Oct 3, 2024
7653c75
update
aelmanaa Oct 4, 2024
fb1f1fa
Add gas spikes note (#2105)
khadni Oct 4, 2024
69ac54f
feat: Drawer Mobile close button
markshenouda Oct 7, 2024
e8c662f
feat: hook tables to seach and filters
markshenouda Oct 7, 2024
f83360e
feat: lane drawer
markshenouda Oct 7, 2024
95a9707
remove unused console.logs
markshenouda Oct 7, 2024
86f2f0f
Fix Testnet token not working
Zelig880 Oct 7, 2024
f80e304
Merge remote-tracking branch 'origin/ccip/config-redesign' into feat-…
Zelig880 Oct 7, 2024
ac2b398
Add CCIP Directory on sidebar
Zelig880 Oct 7, 2024
7827c35
Include missing import
Zelig880 Oct 7, 2024
cba0693
Merge remote-tracking branch 'origin/main' into feat-ccip-landing-token
Zelig880 Oct 7, 2024
0d8f738
Fix component import
Zelig880 Oct 7, 2024
dc09606
Fix component import
Zelig880 Oct 7, 2024
020a891
Fix component import
Zelig880 Oct 7, 2024
a9747ad
update (#2110)
aelmanaa Oct 7, 2024
cb1ad68
update (#2108)
aelmanaa Oct 7, 2024
89fbf2d
new integration (#2111)
aelmanaa Oct 8, 2024
643822b
fix: lane search
markshenouda Oct 10, 2024
3c025d0
Add Search Overlay
Zelig880 Oct 10, 2024
f93ed46
fix: breadcrumb
markshenouda Oct 10, 2024
0b1dcfd
fix: search styles
markshenouda Oct 10, 2024
82409ce
feat: add search to token
markshenouda Oct 10, 2024
17be6dd
fix: search + tokens operational
markshenouda Oct 10, 2024
0e6a56b
fix: lane drawer spacing
markshenouda Oct 10, 2024
d9a8b5f
feat: copy value component
markshenouda Oct 10, 2024
fed5d86
fix: copy value component
markshenouda Oct 10, 2024
bd2170b
Multiple Changes
Zelig880 Oct 10, 2024
a624c1b
scroll (#2114)
aelmanaa Oct 10, 2024
a8e4e2e
add Scroll ccip to QL (#2115)
khadni Oct 10, 2024
112ad49
nit (#2116)
khadni Oct 10, 2024
cb8faa1
nit (#2117)
khadni Oct 10, 2024
b3d60a9
mock
aelmanaa Sep 6, 2024
5901602
mock
aelmanaa Sep 6, 2024
d588026
get-status API vercel function
aelmanaa Aug 28, 2024
78ce139
fix caching
aelmanaa Sep 4, 2024
6c373c3
cleanup
aelmanaa Sep 6, 2024
31d151e
update
aelmanaa Oct 3, 2024
c464f28
update
aelmanaa Oct 3, 2024
1a97146
update
aelmanaa Oct 4, 2024
693c446
Merge remote-tracking branch 'origin/ccip/config-redesign' into feat-…
Zelig880 Oct 11, 2024
444784e
Add Link for the "add my token" button
Zelig880 Oct 11, 2024
b2fb00a
rmn status (#2118)
aelmanaa Oct 11, 2024
43cdd7d
fix: token drawer
markshenouda Oct 11, 2024
45b3a66
fix: token tabs
markshenouda Oct 11, 2024
0058fc6
feat: fee tokens
markshenouda Oct 11, 2024
70a8b19
add issuer por field (#2119)
khadni Oct 11, 2024
b2ae5f1
Node release 2.17.0 (#2121)
thedriftofwords Oct 11, 2024
96b05c0
chains metadata updated (#2122)
github-actions[bot] Oct 14, 2024
9ccb133
Various update from Review
Zelig880 Oct 14, 2024
decfa0a
Merge remote-tracking branch 'origin/main' into feat-ccip-landing-token
Zelig880 Oct 14, 2024
de5f8c8
Add RMN
Zelig880 Oct 14, 2024
9c68765
CCIP GHO fee token (#2120)
aelmanaa Oct 14, 2024
f39b625
Fix some of the URLs being incorrectly set
Zelig880 Oct 15, 2024
1cbce3c
Fix build
Zelig880 Oct 15, 2024
0f77598
Fix center align on build
Zelig880 Oct 15, 2024
8051f37
update rmn disclaimer (#2124)
aelmanaa Oct 15, 2024
623bc41
Header transparency (#2125)
Zelig880 Oct 15, 2024
e2a1583
Apply multiple changes from review
Zelig880 Oct 15, 2024
bf1ce57
Add search on mobile (#2126)
Zelig880 Oct 16, 2024
cb2bf94
Enable RMN and Fix Address URL
Zelig880 Oct 16, 2024
0cda512
Add Native token on feeToken
Zelig880 Oct 16, 2024
60a9251
Add Data typees for Josh
Zelig880 Oct 16, 2024
10fb64d
Draft for Network operation
Zelig880 Oct 16, 2024
7a6117b
Fix ExplorerUrl
Zelig880 Oct 16, 2024
a018093
Fix TS issue
Zelig880 Oct 16, 2024
30f50ce
clarify note (#2128)
aelmanaa Oct 16, 2024
0ff7522
Add tooltips
Zelig880 Oct 17, 2024
2d540df
Add General icons (#2127)
Zelig880 Oct 18, 2024
df0e5d2
Merge branch 'main; into UpdateIcons
Zelig880 Oct 21, 2024
5d9be4f
Fix Typo in tooltip
Zelig880 Oct 21, 2024
612c58e
Add Tooltips
Zelig880 Oct 21, 2024
b0cfb82
Merge branch 'Network-operation' into feat-ccip-landing-token
Zelig880 Oct 21, 2024
a1d4009
fix: Update "list my token"'s url (#15)
markshenouda Oct 21, 2024
2126024
fix: Heading colors and other minor css issues (#20)
markshenouda Oct 21, 2024
3ae3de6
update (#2129)
aelmanaa Oct 21, 2024
d37f1d9
fix: Page width incorrect (DocsLayout grid) (#19)
markshenouda Oct 21, 2024
8e2c7d0
mock
aelmanaa Sep 6, 2024
04262bc
mock
aelmanaa Sep 6, 2024
c49c83c
get-status API vercel function
aelmanaa Aug 28, 2024
2021664
fix caching
aelmanaa Sep 4, 2024
8d30125
cleanup
aelmanaa Sep 6, 2024
808e47e
update
aelmanaa Oct 3, 2024
7d685ce
update
aelmanaa Oct 3, 2024
cea41b4
update
aelmanaa Oct 4, 2024
57782ba
update
aelmanaa Oct 21, 2024
006f4d3
Merge remote-tracking branch 'origin/ccip/config-redesign' into feat-…
Zelig880 Oct 21, 2024
8bf5153
Fix: Drawer (#26)
markshenouda Oct 22, 2024
1bc02c1
fix: Removing the grid banner (#25)
markshenouda Oct 22, 2024
1e6afdb
fix: icon sizes & use css variables (#24)
markshenouda Oct 22, 2024
d55170c
Fix Fee Token URL (#17)
Zelig880 Oct 22, 2024
744dc6d
Use Symbol instead than name for Native Gas Token (#16)
Zelig880 Oct 22, 2024
0cbb30d
Filter out FeeTokenOnly (#18)
Zelig880 Oct 22, 2024
beb1543
Fix: spacing address row (#22)
markshenouda Oct 22, 2024
01c0461
fix: Header spacing (#23)
markshenouda Oct 22, 2024
aa0bc2a
ccip usdm (#2132)
aelmanaa Oct 22, 2024
779fa18
EOA clarification (#2130)
thedriftofwords Oct 22, 2024
33f3996
soneium minato (#2133)
aelmanaa Oct 22, 2024
55e4612
fix: Single/Plural words (#21)
markshenouda Oct 22, 2024
bc07649
fix: Align Networks/Tokens/lanes Alphabetically (#27)
markshenouda Oct 22, 2024
d6edbf7
Navigation buttons and Backdrop blur
Zelig880 Oct 22, 2024
3106322
Merge remote-tracking branch 'origin/main' into feat-ccip-landing-token
Zelig880 Oct 23, 2024
847ac15
fallback icon
aelmanaa Oct 23, 2024
4464d95
Merge remote-tracking branch 'origin/ccip/config-redesign' into feat-…
Zelig880 Oct 23, 2024
d17a2af
Improve sizing of Chain cards (#28)
Zelig880 Oct 23, 2024
bad0fa1
Improve Image Fallback (#31)
Zelig880 Oct 23, 2024
e7854ca
Add extra SEO
Zelig880 Oct 24, 2024
7a15190
Fix 340 (#32)
markshenouda Oct 24, 2024
61a9b4f
Fix token search
Zelig880 Oct 23, 2024
c717900
Padding and spaces changes
Zelig880 Oct 24, 2024
bfa7b60
Feat: Add see more, CSS fixes (#36)
markshenouda Oct 24, 2024
63db402
Review from Nav
Zelig880 Oct 24, 2024
48a2489
Update Tooltio
Zelig880 Oct 25, 2024
19c9ff4
fix: Breadcrum + page titles (#37)
markshenouda Oct 25, 2024
1d9bd1b
Update Page to be "directory" instead than "supported-networks" (#29)
Zelig880 Oct 25, 2024
d69f21b
Remove hardcoded URL
Zelig880 Oct 28, 2024
61c022d
Update link verbiage for security reason
Zelig880 Oct 28, 2024
fa5f7b0
Improve logic and UI for Operational API
Zelig880 Oct 28, 2024
9acd2c1
Update API to use Astro URL
Zelig880 Oct 28, 2024
710f63e
fix: lane drawer on main page (#39)
markshenouda Oct 28, 2024
6f6d717
Move statuses to be client side only
Zelig880 Oct 29, 2024
1922675
Fix lane key
Zelig880 Oct 29, 2024
5a8bc49
Update capacity to show N/A instead than 0
Zelig880 Oct 29, 2024
93a744b
Add EnsureOutOfOrder
Zelig880 Oct 29, 2024
71c692f
Add OpenGraph image
Zelig880 Oct 29, 2024
13a977c
Add Get certified on navbar
Zelig880 Oct 29, 2024
47f48a6
Remove double Drawer
Zelig880 Oct 29, 2024
7226d3b
Change default state to status unavailable
Zelig880 Oct 29, 2024
63d2df2
Fix testnet case issue
Zelig880 Oct 29, 2024
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
6 changes: 6 additions & 0 deletions astro.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ import yaml from "@rollup/plugin-yaml"
// https://astro.build/config
export default defineConfig({
site: "https://docs.chain.link",
redirects: {
"/ccip/directory": "/ccip/directory/mainnet",
"/ccip/supported-networks": "/ccip/directory/mainnet",
"/getting-started": "/getting-started/conceptual-overview",
"/resources": "/resources/link-token-contracts",
},
integrations: [
preact({
include: ["**/preact/*"],
Expand Down
1 change: 1 addition & 0 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const config: HardhatUserConfig = {
{ version: "0.8.16" },
{ version: "0.8.19" },
{ version: "0.8.20" },
{ version: "0.8.24" },
],
},
}
Expand Down
11,159 changes: 6,358 additions & 4,801 deletions package-lock.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@
"@astrojs/partytown": "^2.1.2",
"@astrojs/preact": "^3.5.2",
"@astrojs/prism": "^3.1.0",
"@chainlink/components": "^0.4.18",
"@astrojs/react": "^3.6.2",
"@astrojs/sitemap": "^3.1.6",
"@astrojs/vercel": "^7.8.0",
"@chainlink/components": "^0.4.16",
"@chainlink/contracts": "1.2.0",
"@chainlink/contracts-ccip": "1.4.0",
"@chainlink/contracts-ccip": "1.5.0-beta.0",
"@chainlink/design-system": "^0.2.8",
"@chainlink/local": "^0.2.1",
"@chainlink/solana-sdk": "^0.2.2",
Expand Down
Binary file removed public/assets/ccip.png
Binary file not shown.
3 changes: 3 additions & 0 deletions public/assets/icons/ccip-cursed.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions public/assets/icons/ccip-degraded.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions public/assets/icons/ccip-maintenance.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions public/assets/icons/ccip-operational.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions public/assets/icons/generic-token.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
113 changes: 113 additions & 0 deletions public/changelog.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,117 @@
[
{
"category": "integration",
"changes": [],
"date": "2024-10-22",
"description": "Chainlink Functions is available on Soneium Minato testnet. Visit the [Supported Networks](https://docs.chain.link/chainlink-functions/supported-networks#soneium-minato-testnet) page for more information.",
"relatedNetworks": ["soneium"],
"relatedTokens": [],
"title": "Functions on Soneium Minato",
"topic": "functions",
"urls": []
},
{
"category": "integration",
"changes": [],
"date": "2024-10-22",
"description": "Chainlink VRF 2.5 is available on Soneium Minato testnet. Visit the [Supported Networks](https://docs.chain.link/vrf/v2-5/supported-networks#soneium-minato-testnet) page for more information.",
"relatedNetworks": ["soneium"],
"relatedTokens": [],
"title": "VRF 2.5 on Soneium Minato",
"topic": "vrf",
"urls": []
},
{
"category": "integration",
"changes": [],
"date": "2024-10-22",
"description": "Chainlink CCIP is available on Soneium Minato testnet. Visit the [Supported Networks](https://docs.chain.link/ccip/supported-networks/v1_2_0/testnet) page for more information.",
"relatedNetworks": ["soneium"],
"relatedTokens": [],
"title": "CCIP on Soneium Minato",
"topic": "ccip",
"urls": []
},
{
"category": "integration",
"changes": [],
"date": "2024-10-22",
"description": "Chainlink Data Streams is available in Early Access on Soneium Minato. The verifier proxy address and feed IDs are available on the [Data Streams Feed IDs](https://docs.chain.link/data-streams/stream-ids) page.",
"relatedNetworks": ["soneium"],
"relatedTokens": [],
"title": "Data Streams on Soneium Minato",
"topic": "data",
"subTopic": "data-streams",
"urls": []
},
{
"category": "release",
"changes": [],
"date": "2024-10-10",
"description": "Chainlink Node v2.17.0 is now available. See the [Release Notes](https://github.com/smartcontractkit/chainlink/releases/tag/v2.17.0) for details.",
"relatedNetworks": [],
"relatedTokens": [],
"subTopic": "nodes",
"title": "Chainlink Node v2.17.0",
"topic": "general",
"urls": []
},
{
"category": "integration",
"changes": [],
"date": "2024-10-10",
"description": "Chainlink CCIP is publicly available on Scroll mainnet and testnet.\n\n- Visit the [Supported Networks](https://docs.chain.link/ccip/supported-networks) page for more information.",
"relatedNetworks": ["scroll"],
"relatedTokens": [],
"title": "CCIP on Scroll",
"topic": "ccip",
"urls": []
},
{
"category": "integration",
"changes": [],
"date": "2024-10-08",
"description": "Chainlink CCIP is publicly available on Linea mainnet and testnet.\n\n- Visit the [Supported Networks](https://docs.chain.link/ccip/supported-networks) page for more information.",
"relatedNetworks": ["linea"],
"relatedTokens": [],
"title": "CCIP on Linea",
"topic": "ccip",
"urls": []
},
{
"category": "release",
"changes": [],
"date": "2024-10-04",
"description": "Chainlink CCIP 1.5 is now available on testnet, introducing several new features and enhancements.\n\n**Risk Management Network Coverage:**\nCertain CCIP integrations may not initially include the Risk Management Network (RMN). Blockchains can be integrated with CCIP in a phased approach, starting with the deployment of the Committing and Executing Decentralized Oracle Networks (DONs), followed by the addition of the Risk Management Network in a subsequent update. During a phased deployment, the relevant Commit Stores are configured in the Risk Management contract to always be considered blessed until the Risk Management Network has been deployed for that blockchain. Please refer to the [Supported Networks](https://docs.chain.link/ccip/supported-networks) documentation to identify which integrations utilize a phased approach, and review the [CCIP Service Responsibility](https://docs.chain.link/ccip/service-responsibility) for more information.\n\n**New Version of `EVMExtraArgs`:**\nChainlink CCIP 1.5 introduces a new version of `EVMExtraArgs`, allowing users to set the `allowOutOfOrderExecution` parameter. This feature enables developers to control the execution order of their messages on the destination blockchain. The `allowOutOfOrderExecution` parameter is part of [`EVMExtraArgsV2`](https://docs.chain.link/ccip/api-reference/client#evmextraargsv2) and is available only on lanes where the **Out of Order Execution** property is set to **Optional** or **Required**. Please consult the [Supported Networks page](https://docs.chain.link/ccip/supported-networks) to determine if your target lane supports this feature.",
"relatedNetworks": [],
"relatedTokens": [],
"title": "Chainlink CCIP 1.5 - Testnet",
"topic": "ccip",
"urls": []
},
{
"category": "integration",
"changes": [],
"date": "2024-09-27",
"description": "Chainlink Automation is live on [Base mainnet](https://docs.chain.link/chainlink-automation/overview/supported-networks#base-mainnet).",
"relatedNetworks": ["base"],
"relatedTokens": [],
"title": "Automation on Base mainnet",
"topic": "automation",
"urls": []
},
{
"category": "release",
"changes": [],
"date": "2024-09-23",
"description": "Chainlink Node v2.16.0 is now available. See the [Release Notes](https://github.com/smartcontractkit/chainlink/releases/tag/v2.16.0/) for details.",
"relatedNetworks": [],
"relatedTokens": [],
"subTopic": "nodes",
"title": "Chainlink Node v2.16.0",
"topic": "general",
"urls": []
},
{
"category": "integration",
"changes": [],
Expand Down
Binary file added public/files/ccip-directory.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 5 additions & 2 deletions public/samples/CCIP/Acknowledger.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.19;
pragma solidity 0.8.24;

import {IRouterClient} from "@chainlink/contracts-ccip/src/v0.8/ccip/interfaces/IRouterClient.sol";
import {OwnerIsCreator} from "@chainlink/contracts-ccip/src/v0.8/shared/access/OwnerIsCreator.sol";
Expand Down Expand Up @@ -122,7 +122,10 @@ contract Acknowledger is CCIPReceiver, OwnerIsCreator {
tokenAmounts: new Client.EVMTokenAmount[](0), // Empty array aas no tokens are transferred
extraArgs: Client._argsToBytes(
// Additional arguments, setting gas limit
Client.EVMExtraArgsV1({gasLimit: 200_000})
Client.EVMExtraArgsV2({
gasLimit: 200_000,
allowOutOfOrderExecution: true // Allows the message to be executed out of order relative to other messages from the same sender
})
),
// Set the feeToken to a feeTokenAddress, indicating specific asset will be used for fees
feeToken: address(s_linkToken)
Expand Down
7 changes: 5 additions & 2 deletions public/samples/CCIP/MessageTracker.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.19;
pragma solidity 0.8.24;

import {IRouterClient} from "@chainlink/contracts-ccip/src/v0.8/ccip/interfaces/IRouterClient.sol";
import {OwnerIsCreator} from "@chainlink/contracts-ccip/src/v0.8/shared/access/OwnerIsCreator.sol";
Expand Down Expand Up @@ -258,7 +258,10 @@ contract MessageTracker is CCIPReceiver, OwnerIsCreator {
tokenAmounts: new Client.EVMTokenAmount[](0), // Empty array as no tokens are transferred
extraArgs: Client._argsToBytes(
// Additional arguments, setting gas limit
Client.EVMExtraArgsV1({gasLimit: 300_000})
Client.EVMExtraArgsV2({
gasLimit: 300_000,
allowOutOfOrderExecution: true // Allows the message to be executed out of order relative to other messages from the same sender
})
),
// Set the feeToken to a feeTokenAddress, indicating specific asset will be used for fees
feeToken: _feeTokenAddress
Expand Down
7 changes: 5 additions & 2 deletions public/samples/CCIP/Messenger.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.19;
pragma solidity 0.8.24;

import {IRouterClient} from "@chainlink/contracts-ccip/src/v0.8/ccip/interfaces/IRouterClient.sol";
import {OwnerIsCreator} from "@chainlink/contracts-ccip/src/v0.8/shared/access/OwnerIsCreator.sol";
Expand Down Expand Up @@ -261,7 +261,10 @@ contract Messenger is CCIPReceiver, OwnerIsCreator {
tokenAmounts: new Client.EVMTokenAmount[](0), // Empty array as no tokens are transferred
extraArgs: Client._argsToBytes(
// Additional arguments, setting gas limit
Client.EVMExtraArgsV1({gasLimit: 200_000})
Client.EVMExtraArgsV2({
gasLimit: 200_000, // Gas limit for the callback on the destination chain
allowOutOfOrderExecution: true // Allows the message to be executed out of order relative to other messages from the same sender
})
),
// Set the feeToken to a feeTokenAddress, indicating specific asset will be used for fees
feeToken: _feeTokenAddress
Expand Down
7 changes: 5 additions & 2 deletions public/samples/CCIP/ProgrammableDefensiveTokenTransfers.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.19;
pragma solidity 0.8.24;

import {IRouterClient} from "@chainlink/contracts-ccip/src/v0.8/ccip/interfaces/IRouterClient.sol";
import {OwnerIsCreator} from "@chainlink/contracts-ccip/src/v0.8/shared/access/OwnerIsCreator.sol";
Expand Down Expand Up @@ -494,7 +494,10 @@ contract ProgrammableDefensiveTokenTransfers is CCIPReceiver, OwnerIsCreator {
tokenAmounts: tokenAmounts, // The amount and type of token being transferred
extraArgs: Client._argsToBytes(
// Additional arguments, setting gas limit
Client.EVMExtraArgsV1({gasLimit: 400_000})
Client.EVMExtraArgsV2({
gasLimit: 400_000, // Gas limit for the callback on the destination chain
allowOutOfOrderExecution: true // Allows the message to be executed out of order relative to other messages from the same sender
})
),
// Set the feeToken to a feeTokenAddress, indicating specific asset will be used for fees
feeToken: _feeTokenAddress
Expand Down
7 changes: 5 additions & 2 deletions public/samples/CCIP/ProgrammableTokenTransfers.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.19;
pragma solidity 0.8.24;

import {IRouterClient} from "@chainlink/contracts-ccip/src/v0.8/ccip/interfaces/IRouterClient.sol";
import {OwnerIsCreator} from "@chainlink/contracts-ccip/src/v0.8/shared/access/OwnerIsCreator.sol";
Expand Down Expand Up @@ -342,7 +342,10 @@ contract ProgrammableTokenTransfers is CCIPReceiver, OwnerIsCreator {
tokenAmounts: tokenAmounts, // The amount and type of token being transferred
extraArgs: Client._argsToBytes(
// Additional arguments, setting gas limit
Client.EVMExtraArgsV1({gasLimit: 200_000})
Client.EVMExtraArgsV2({
gasLimit: 200_000, // Gas limit for the callback on the destination chain
allowOutOfOrderExecution: true // Allows the message to be executed out of order relative to other messages from the same sender
})
),
// Set the feeToken to a feeTokenAddress, indicating specific asset will be used for fees
feeToken: _feeTokenAddress
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.19;
pragma solidity 0.8.24;

import {IRouterClient} from "@chainlink/contracts-ccip/src/v0.8/ccip/interfaces/IRouterClient.sol";
import {OwnerIsCreator} from "@chainlink/contracts-ccip/src/v0.8/shared/access/OwnerIsCreator.sol";
Expand Down Expand Up @@ -157,7 +157,10 @@ contract ProgrammableTokenTransfersLowGasLimit is CCIPReceiver, OwnerIsCreator {
tokenAmounts: tokenAmounts, // The amount and type of token being transferred
extraArgs: Client._argsToBytes(
// gasLimit set to 20_000 on purpose to force the execution to fail on the destination chain
Client.EVMExtraArgsV1({gasLimit: 20_000})
Client.EVMExtraArgsV2({
gasLimit: 20_000, // Gas limit for the callback on the destination chain
allowOutOfOrderExecution: true // Allows the message to be executed out of order relative to other messages from the same sender
})
),
// Set the feeToken to a LINK token address
feeToken: address(s_linkToken)
Expand Down
2 changes: 1 addition & 1 deletion public/samples/CCIP/Receiver.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.19;
pragma solidity 0.8.24;

import {Client} from "@chainlink/contracts-ccip/src/v0.8/ccip/libraries/Client.sol";
import {CCIPReceiver} from "@chainlink/contracts-ccip/src/v0.8/ccip/applications/CCIPReceiver.sol";
Expand Down
7 changes: 5 additions & 2 deletions public/samples/CCIP/Sender.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.19;
pragma solidity 0.8.24;

import {IRouterClient} from "@chainlink/contracts-ccip/src/v0.8/ccip/interfaces/IRouterClient.sol";
import {OwnerIsCreator} from "@chainlink/contracts-ccip/src/v0.8/shared/access/OwnerIsCreator.sol";
Expand Down Expand Up @@ -57,7 +57,10 @@ contract Sender is OwnerIsCreator {
tokenAmounts: new Client.EVMTokenAmount[](0), // Empty array indicating no tokens are being sent
extraArgs: Client._argsToBytes(
// Additional arguments, setting gas limit
Client.EVMExtraArgsV1({gasLimit: 200_000})
Client.EVMExtraArgsV2({
gasLimit: 200_000, // Gas limit for the callback on the destination chain
allowOutOfOrderExecution: true // Allows the message to be executed out of order relative to other messages from the same sender
})
),
// Set the feeToken address, indicating LINK will be used for fees
feeToken: address(s_linkToken)
Expand Down
2 changes: 1 addition & 1 deletion public/samples/CCIP/TestCCIPLocalSimulator.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.19;
pragma solidity 0.8.24;

// solhint-disable no-unused-import
import {CCIPLocalSimulator} from "@chainlink/local/src/ccip/CCIPLocalSimulator.sol";
7 changes: 5 additions & 2 deletions public/samples/CCIP/TokenTransferor.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.19;
pragma solidity 0.8.24;

import {IRouterClient} from "@chainlink/contracts-ccip/src/v0.8/ccip/interfaces/IRouterClient.sol";
import {OwnerIsCreator} from "@chainlink/contracts-ccip/src/v0.8/shared/access/OwnerIsCreator.sol";
Expand Down Expand Up @@ -235,7 +235,10 @@ contract TokenTransferor is OwnerIsCreator {
tokenAmounts: tokenAmounts, // The amount and type of token being transferred
extraArgs: Client._argsToBytes(
// Additional arguments, setting gas limit to 0 as we are not sending any data
Client.EVMExtraArgsV1({gasLimit: 0})
Client.EVMExtraArgsV2({
gasLimit: 0, // Gas limit for the callback on the destination chain
allowOutOfOrderExecution: true // Allows the message to be executed out of order relative to other messages from the same sender
})
),
// Set the feeToken to a feeTokenAddress, indicating specific asset will be used for fees
feeToken: _feeTokenAddress
Expand Down
2 changes: 1 addition & 1 deletion public/samples/CCIP/usdc/Receiver.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.19;
pragma solidity 0.8.24;

import {OwnerIsCreator} from "@chainlink/contracts-ccip/src/v0.8/shared/access/OwnerIsCreator.sol";
import {Client} from "@chainlink/contracts-ccip/src/v0.8/ccip/libraries/Client.sol";
Expand Down
7 changes: 5 additions & 2 deletions public/samples/CCIP/usdc/Sender.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.19;
pragma solidity 0.8.24;

import {IRouterClient} from "@chainlink/contracts-ccip/src/v0.8/ccip/interfaces/IRouterClient.sol";
import {OwnerIsCreator} from "@chainlink/contracts-ccip/src/v0.8/shared/access/OwnerIsCreator.sol";
Expand Down Expand Up @@ -153,7 +153,10 @@ contract Sender is OwnerIsCreator {
tokenAmounts: tokenAmounts, // The amount and type of token being transferred
extraArgs: Client._argsToBytes(
// Additional arguments, setting gas limit
Client.EVMExtraArgsV1({gasLimit: gasLimit})
Client.EVMExtraArgsV2({
gasLimit: gasLimit, // Gas limit for the callback on the destination chain
allowOutOfOrderExecution: true // Allows the message to be executed out of order relative to other messages from the same sender
})
),
// Set the feeToken to a feeTokenAddress, indicating specific asset will be used for fees
feeToken: address(i_linkToken)
Expand Down
Loading