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
40 changes: 35 additions & 5 deletions package-lock.json

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

12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"@chainlink/cl-search-frontend": "^0.12.0",
"@chainlink/components": "^0.4.18",
"@chainlink/contracts": "1.5.0",
"@chainlink/contracts-ccip": "1.6.2",
"@chainlink/contracts-ccip": "1.6.3",
"@chainlink/design-system": "^0.2.8",
"@chainlink/local": "0.2.7-beta",
"@chainlink/solana-sdk": "^0.2.2",
Expand Down Expand Up @@ -109,7 +109,6 @@
},
"devDependencies": {
"@apidevtools/swagger-parser": "^10.1.1",
"solhint-plugin-chainlink-solidity": "github:smartcontractkit/chainlink-solhint-rules#v1.3.0",
"@jest/globals": "^29.7.0",
"@project-serum/anchor": "^0.26.0",
"@rollup/plugin-yaml": "^4.1.2",
Expand Down Expand Up @@ -139,16 +138,17 @@
"pino-pretty": "^13.1.2",
"prettier": "^3.5.3",
"prettier-plugin-astro": "^0.14.1",
"remark-gfm": "^4.0.0",
"remark-mdx": "^3.1.0",
"remark-parse": "^11.0.0",
"remark-stringify": "^11.0.0",
"solhint": "^6.0.1",
"solhint-plugin-chainlink-solidity": "github:smartcontractkit/chainlink-solhint-rules#v1.3.0",
"ts-jest": "^29.4.5",
"tsconfig-paths": "^4.2.0",
"tsx": "^4.20.6",
"typescript": "^5.9.3",
"unified": "^11.0.4",
"remark-parse": "^11.0.0",
"remark-mdx": "^3.1.0",
"remark-gfm": "^4.0.0",
"remark-stringify": "^11.0.0",
"unist-util-visit": "^5.0.0",
"vite": "^6.4.1"
},
Expand Down
12 changes: 12 additions & 0 deletions src/config/data/ccip/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ import * as errors_v1_5_1 from "./errors/v1_5_1/index.ts"
import * as errors_v1_6_0 from "./errors/v1_6_0/index.ts"
// eslint-disable-next-line camelcase
import * as errors_v1_6_1 from "./errors/v1_6_1/index.ts"
// eslint-disable-next-line camelcase
import * as errors_v1_6_2 from "./errors/v1_6_2/index.ts"
// eslint-disable-next-line camelcase
import * as errors_v1_6_3 from "./errors/v1_6_3/index.ts"

export const getAllEnvironments = () => [Environment.Mainnet, Environment.Testnet]
export const getAllVersions = () => [Version.V1_2_0]
Expand All @@ -74,12 +78,16 @@ type ErrorTypesV160 = ErrorTypesV151 & {
}

type ErrorTypesV161 = ErrorTypesV160
type ErrorTypesV162 = ErrorTypesV161
type ErrorTypesV163 = ErrorTypesV162

type VersionedErrors = {
v1_5_0: ErrorTypesV150
v1_5_1: ErrorTypesV151
v1_6_0: ErrorTypesV160
v1_6_1: ErrorTypesV161
v1_6_2: ErrorTypesV162
v1_6_3: ErrorTypesV163
}

// Export errors by version with type safety
Expand All @@ -92,6 +100,10 @@ export const errors: VersionedErrors = {
v1_6_0: errors_v1_6_0 as ErrorTypesV160,
// eslint-disable-next-line camelcase
v1_6_1: errors_v1_6_1 as ErrorTypesV161,
// eslint-disable-next-line camelcase
v1_6_2: errors_v1_6_2 as ErrorTypesV162,
// eslint-disable-next-line camelcase
v1_6_3: errors_v1_6_3 as ErrorTypesV163,
}

export const networkFees: NetworkFees = {
Expand Down
24 changes: 24 additions & 0 deletions src/config/data/ccip/errors/v1_6_2/burnMintERC20.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
[
{
"error": "MaxSupplyExceeded",
"parameters": [
{
"type": "uint256",
"name": "supplyAfterMint"
}
],
"errorSelector": "0xcbbf1113",
"description": "Thrown when a mint operation would cause the total supply to exceed the maximum supply limit."
},
{
"error": "InvalidRecipient",
"parameters": [
{
"type": "address",
"name": "recipient"
}
],
"errorSelector": "0x17858bbe",
"description": "Thrown when attempting to transfer or approve tokens for the contract itself (address(this))."
}
]
10 changes: 10 additions & 0 deletions src/config/data/ccip/errors/v1_6_2/erc20.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[
{
"error": "ERC20: burn amount exceeds balance",
"description": "Thrown when the amount to be burned exceeds the pool balance."
},
{
"error": "ERC20: transfer amount exceeds allowance",
"description": "Thrown when the transfer amount exceeds the allowance."
}
]
193 changes: 193 additions & 0 deletions src/config/data/ccip/errors/v1_6_2/feequoter.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,193 @@
[
{
"error": "InvalidExtraArgsTag",
"parameters": [],
"errorSelector": "0x5247fdce",
"description": "Thrown when an invalid extra arguments tag is used."
},
{
"error": "MessageTooLarge",
"parameters": [
{
"type": "uint256",
"name": "maxSize"
},
{
"type": "uint256",
"name": "actualSize"
}
],
"errorSelector": "0x86933789",
"description": "Thrown when the message size exceeds the maximum allowed size."
},
{
"error": "MessageGasLimitTooHigh",
"parameters": [],
"errorSelector": "0x4c4fc93a",
"description": "Thrown when the gas limit exceeds the maximum per-message gas limit."
},
{
"error": "UnsupportedNumberOfTokens",
"parameters": [
{
"type": "uint256",
"name": "numberOfTokens"
},
{
"type": "uint256",
"name": "maxNumberOfTokensPerMsg"
}
],
"errorSelector": "0x4c056b6a",
"description": "Thrown when too many tokens are involved in the transfer."
},
{
"error": "ExtraArgOutOfOrderExecutionMustBeTrue",
"parameters": [],
"errorSelector": "0xee433e99",
"description": "Thrown when enforceOutOfOrder is true but allowOutOfOrderExecution is false."
},
{
"error": "SourceTokenDataTooLarge",
"parameters": [
{
"name": "token",
"type": "address"
}
],
"errorSelector": "0x36f536ca",
"description": "Thrown when the source token data exceeds the configured maximum size."
},
{
"error": "TokenNotSupported",
"parameters": [
{
"type": "address",
"name": "token"
}
],
"errorSelector": "0x06439c6b",
"description": "Thrown when a token's price isn't configured or is zero."
},
{
"error": "FeeTokenNotSupported",
"parameters": [
{
"type": "address",
"name": "token"
}
],
"errorSelector": "0x2502348c",
"description": "Thrown when the fee token isn't in the allowed fee tokens list."
},
{
"error": "StaleGasPrice",
"parameters": [
{
"type": "uint64",
"name": "destChainSelector"
},
{
"type": "uint256",
"name": "threshold"
},
{
"type": "uint256",
"name": "timePassed"
}
],
"errorSelector": "0xf08bcb3e",
"description": "Thrown when a gas price is too old based on the chain's staleness threshold."
},
{
"error": "DataFeedValueOutOfUint224Range",
"parameters": [],
"errorSelector": "0x10cb51d1",
"description": "Thrown when price feed values exceed uint224 range."
},
{
"error": "DestinationChainNotEnabled",
"parameters": [
{
"type": "uint64",
"name": "destChainSelector"
}
],
"errorSelector": "0x99ac52f2",
"description": "Thrown when attempting to use a disabled destination chain."
},
{
"error": "InvalidExtraArgsData",
"parameters": [],
"errorSelector": "0xb00b53dc",
"description": "Thrown when extra args data is missing or malformed."
},
{
"error": "MessageFeeTooHigh",
"parameters": [
{
"type": "uint256",
"name": "msgFeeJuels"
},
{
"type": "uint256",
"name": "maxFeeJuelsPerMsg"
}
],
"errorSelector": "0x6a92a483",
"description": "Thrown when message fee exceeds the maximum allowed fee."
},
{
"error": "InvalidChainFamilySelector",
"parameters": [
{
"type": "bytes4",
"name": "chainFamilySelector"
}
],
"errorSelector": "0x2ee82075",
"description": "Thrown when an unsupported chain family selector is used."
},
{
"error": "InvalidTokenReceiver",
"parameters": [],
"errorSelector": "0x5bed5192",
"description": "Thrown when token receiver is invalid for SVM chains (typically when it's zero and tokens are being transferred)."
},
{
"error": "TooManySVMExtraArgsAccounts",
"parameters": [
{
"type": "uint256",
"name": "numAccounts"
},
{
"type": "uint256",
"name": "maxAccounts"
}
],
"errorSelector": "0x8a0d71f7",
"description": "Thrown when too many accounts are specified in SVM extra args."
},
{
"error": "InvalidSVMExtraArgsWritableBitmap",
"parameters": [
{
"type": "uint64",
"name": "accountIsWritableBitmap"
},
{
"type": "uint256",
"name": "numAccounts"
}
],
"errorSelector": "0xafa93308",
"description": "Thrown when SVM writable bitmap is invalid for the number of accounts."
},
{
"error": "MessageComputeUnitLimitTooHigh",
"parameters": [],
"errorSelector": "0x2e2b0c29",
"description": "Thrown when compute unit limit exceeds maximum for SVM chains."
}
]
Loading
Loading