Skip to content
Open
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
683 changes: 683 additions & 0 deletions docs/CCIP-API-TOKEN-DIRECTORY.md

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion jest.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,9 @@ module.exports = {
"\\.ya?ml$": "<rootDir>/src/__mocks__/yamlMock.ts",
},
transformIgnorePatterns: ["/node_modules/(?!.*\\.mjs$)"],
testPathIgnorePatterns: ["/node_modules/", "src/tests/chain-api.test.ts"],
testPathIgnorePatterns: [
"/node_modules/",
"src/tests/chain-api.test.ts",
"src/tests/chain-identifier-service.test.ts",
],
}
904 changes: 901 additions & 3 deletions public/api/ccip/v1/openapi.json

Large diffs are not rendered by default.

333 changes: 333 additions & 0 deletions src/__mocks__/ccv-config-mainnet.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,333 @@
{
"LBTC": {
"mainnet": {
"thresholdAmount": "100000000000",
"outboundCCVs": {
"ethereum-mainnet-to-ethereum-mainnet-arbitrum-1": {
"base": ["0x80226fc0Ee2b096224EeAc085Bb9a8cba1146f7D"],
"threshold": ["0xF4c7E640EdA248ef95972845a62bdC74237805dB"]
},
"ethereum-mainnet-to-ethereum-mainnet-base-1": {
"base": ["0x80226fc0Ee2b096224EeAc085Bb9a8cba1146f7D"],
"threshold": ["0xF4c7E640EdA248ef95972845a62bdC74237805dB"]
},
"ethereum-mainnet-to-ethereum-mainnet-optimism-1": {
"base": ["0x80226fc0Ee2b096224EeAc085Bb9a8cba1146f7D"],
"threshold": ["0xF4c7E640EdA248ef95972845a62bdC74237805dB"]
}
},
"inboundCCVs": {
"ethereum-mainnet-arbitrum-1-to-ethereum-mainnet": {
"base": ["0x80226fc0Ee2b096224EeAc085Bb9a8cba1146f7D"],
"threshold": []
},
"ethereum-mainnet-base-1-to-ethereum-mainnet": {
"base": ["0x80226fc0Ee2b096224EeAc085Bb9a8cba1146f7D"],
"threshold": []
},
"ethereum-mainnet-optimism-1-to-ethereum-mainnet": {
"base": ["0x80226fc0Ee2b096224EeAc085Bb9a8cba1146f7D"],
"threshold": []
}
}
},
"ethereum-mainnet-arbitrum-1": {
"thresholdAmount": "50000000000",
"outboundCCVs": {
"ethereum-mainnet-arbitrum-1-to-ethereum-mainnet": {
"base": ["0xe9c6945281028cb6530d43F998eE539dFE2a9191"],
"threshold": ["0xBF38331E34ef7f248020611bB31Be0576D06413D"]
},
"ethereum-mainnet-arbitrum-1-to-ethereum-mainnet-base-1": {
"base": ["0xe9c6945281028cb6530d43F998eE539dFE2a9191"],
"threshold": ["0xBF38331E34ef7f248020611bB31Be0576D06413D"]
}
},
"inboundCCVs": {
"ethereum-mainnet-to-ethereum-mainnet-arbitrum-1": {
"base": ["0xe9c6945281028cb6530d43F998eE539dFE2a9191"],
"threshold": []
},
"ethereum-mainnet-base-1-to-ethereum-mainnet-arbitrum-1": {
"base": ["0xe9c6945281028cb6530d43F998eE539dFE2a9191"],
"threshold": []
}
}
},
"ethereum-mainnet-base-1": {
"thresholdAmount": "50000000000",
"outboundCCVs": {
"ethereum-mainnet-base-1-to-ethereum-mainnet": {
"base": ["0x0aA145a62153190B8f0D3cA00c441e451529f755"],
"threshold": ["0xF4c7E640EdA248ef95972845a62bdC74237805dB"]
},
"ethereum-mainnet-base-1-to-ethereum-mainnet-arbitrum-1": {
"base": ["0x0aA145a62153190B8f0D3cA00c441e451529f755"],
"threshold": ["0xF4c7E640EdA248ef95972845a62bdC74237805dB"]
}
},
"inboundCCVs": {
"ethereum-mainnet-to-ethereum-mainnet-base-1": {
"base": ["0x0aA145a62153190B8f0D3cA00c441e451529f755"],
"threshold": []
},
"ethereum-mainnet-arbitrum-1-to-ethereum-mainnet-base-1": {
"base": ["0x0aA145a62153190B8f0D3cA00c441e451529f755"],
"threshold": []
}
}
}
},
"USDC": {
"mainnet": {
"thresholdAmount": "0",
"outboundCCVs": {
"ethereum-mainnet-to-ethereum-mainnet-base-1": {
"base": ["0x80226fc0Ee2b096224EeAc085Bb9a8cba1146f7D", "0x768a1a3B321126A8B214d7376D48465C7f6Fa061"],
"threshold": []
},
"ethereum-mainnet-to-ethereum-mainnet-arbitrum-1": {
"base": ["0x80226fc0Ee2b096224EeAc085Bb9a8cba1146f7D", "0x768a1a3B321126A8B214d7376D48465C7f6Fa061"],
"threshold": []
},
"ethereum-mainnet-to-ethereum-mainnet-optimism-1": {
"base": ["0x80226fc0Ee2b096224EeAc085Bb9a8cba1146f7D", "0x2edAc8B8928c4e1Ed559e619b6A8a4aaCe9Ef18A"],
"threshold": []
}
},
"inboundCCVs": {
"ethereum-mainnet-base-1-to-ethereum-mainnet": {
"base": ["0x80226fc0Ee2b096224EeAc085Bb9a8cba1146f7D", "0x768a1a3B321126A8B214d7376D48465C7f6Fa061"],
"threshold": []
},
"ethereum-mainnet-arbitrum-1-to-ethereum-mainnet": {
"base": ["0x80226fc0Ee2b096224EeAc085Bb9a8cba1146f7D", "0x768a1a3B321126A8B214d7376D48465C7f6Fa061"],
"threshold": []
},
"ethereum-mainnet-optimism-1-to-ethereum-mainnet": {
"base": ["0x80226fc0Ee2b096224EeAc085Bb9a8cba1146f7D", "0x2edAc8B8928c4e1Ed559e619b6A8a4aaCe9Ef18A"],
"threshold": []
}
}
},
"ethereum-mainnet-base-1": {
"thresholdAmount": "0",
"outboundCCVs": {
"ethereum-mainnet-base-1-to-ethereum-mainnet": {
"base": ["0x0aA145a62153190B8f0D3cA00c441e451529f755", "0x09521B0B5BB2d4406124c0207Cf551829B45f84d"],
"threshold": []
}
},
"inboundCCVs": {
"ethereum-mainnet-to-ethereum-mainnet-base-1": {
"base": ["0x0aA145a62153190B8f0D3cA00c441e451529f755", "0x09521B0B5BB2d4406124c0207Cf551829B45f84d"],
"threshold": []
}
}
},
"ethereum-mainnet-arbitrum-1": {
"thresholdAmount": "0",
"outboundCCVs": {
"ethereum-mainnet-arbitrum-1-to-ethereum-mainnet": {
"base": ["0xe9c6945281028cb6530d43F998eE539dFE2a9191", "0x768a1a3B321126A8B214d7376D48465C7f6Fa061"],
"threshold": []
}
},
"inboundCCVs": {
"ethereum-mainnet-to-ethereum-mainnet-arbitrum-1": {
"base": ["0xe9c6945281028cb6530d43F998eE539dFE2a9191", "0x768a1a3B321126A8B214d7376D48465C7f6Fa061"],
"threshold": []
}
}
},
"ethereum-mainnet-optimism-1": {
"thresholdAmount": "0",
"outboundCCVs": {
"ethereum-mainnet-optimism-1-to-ethereum-mainnet": {
"base": ["0x80226fc0Ee2b096224EeAc085Bb9a8cba1146f7D", "0x2edAc8B8928c4e1Ed559e619b6A8a4aaCe9Ef18A"],
"threshold": []
}
},
"inboundCCVs": {
"ethereum-mainnet-to-ethereum-mainnet-optimism-1": {
"base": ["0x80226fc0Ee2b096224EeAc085Bb9a8cba1146f7D", "0x2edAc8B8928c4e1Ed559e619b6A8a4aaCe9Ef18A"],
"threshold": []
}
}
}
},
"LINK": {
"mainnet": {
"thresholdAmount": "10000000000000000000000",
"outboundCCVs": {
"ethereum-mainnet-to-ethereum-mainnet-arbitrum-1": {
"base": ["0x80226fc0Ee2b096224EeAc085Bb9a8cba1146f7D", "0xF4c7E640EdA248ef95972845a62bdC74237805dB"],
"threshold": ["0xcBD48A8eB077381c3c4Eb36b402d7283aB2b11Bc"]
},
"ethereum-mainnet-to-ethereum-mainnet-optimism-1": {
"base": ["0x80226fc0Ee2b096224EeAc085Bb9a8cba1146f7D", "0xF4c7E640EdA248ef95972845a62bdC74237805dB"],
"threshold": ["0x76Aa17dCda9E8529149E76e9ffaE4aD1C4AD701B"]
},
"ethereum-mainnet-to-ethereum-mainnet-base-1": {
"base": ["0x80226fc0Ee2b096224EeAc085Bb9a8cba1146f7D", "0xF4c7E640EdA248ef95972845a62bdC74237805dB"],
"threshold": ["0xcBD48A8eB077381c3c4Eb36b402d7283aB2b11Bc"]
}
},
"inboundCCVs": {
"ethereum-mainnet-arbitrum-1-to-ethereum-mainnet": {
"base": ["0x80226fc0Ee2b096224EeAc085Bb9a8cba1146f7D", "0xF4c7E640EdA248ef95972845a62bdC74237805dB"],
"threshold": []
},
"ethereum-mainnet-optimism-1-to-ethereum-mainnet": {
"base": ["0x80226fc0Ee2b096224EeAc085Bb9a8cba1146f7D", "0xF4c7E640EdA248ef95972845a62bdC74237805dB"],
"threshold": []
},
"ethereum-mainnet-base-1-to-ethereum-mainnet": {
"base": ["0x80226fc0Ee2b096224EeAc085Bb9a8cba1146f7D", "0xF4c7E640EdA248ef95972845a62bdC74237805dB"],
"threshold": []
}
}
},
"ethereum-mainnet-arbitrum-1": {
"thresholdAmount": "10000000000000000000000",
"outboundCCVs": {
"ethereum-mainnet-arbitrum-1-to-ethereum-mainnet": {
"base": ["0xe9c6945281028cb6530d43F998eE539dFE2a9191", "0xBF38331E34ef7f248020611bB31Be0576D06413D"],
"threshold": ["0xcBD48A8eB077381c3c4Eb36b402d7283aB2b11Bc"]
},
"ethereum-mainnet-arbitrum-1-to-ethereum-mainnet-base-1": {
"base": ["0xe9c6945281028cb6530d43F998eE539dFE2a9191", "0xBF38331E34ef7f248020611bB31Be0576D06413D"],
"threshold": ["0xcBD48A8eB077381c3c4Eb36b402d7283aB2b11Bc"]
}
},
"inboundCCVs": {
"ethereum-mainnet-to-ethereum-mainnet-arbitrum-1": {
"base": ["0xe9c6945281028cb6530d43F998eE539dFE2a9191", "0xBF38331E34ef7f248020611bB31Be0576D06413D"],
"threshold": []
},
"ethereum-mainnet-base-1-to-ethereum-mainnet-arbitrum-1": {
"base": ["0xe9c6945281028cb6530d43F998eE539dFE2a9191", "0xBF38331E34ef7f248020611bB31Be0576D06413D"],
"threshold": []
}
}
},
"ethereum-mainnet-base-1": {
"thresholdAmount": "10000000000000000000000",
"outboundCCVs": {
"ethereum-mainnet-base-1-to-ethereum-mainnet": {
"base": ["0x0aA145a62153190B8f0D3cA00c441e451529f755", "0xF4c7E640EdA248ef95972845a62bdC74237805dB"],
"threshold": ["0xcBD48A8eB077381c3c4Eb36b402d7283aB2b11Bc"]
},
"ethereum-mainnet-base-1-to-ethereum-mainnet-arbitrum-1": {
"base": ["0x0aA145a62153190B8f0D3cA00c441e451529f755", "0xF4c7E640EdA248ef95972845a62bdC74237805dB"],
"threshold": ["0xcBD48A8eB077381c3c4Eb36b402d7283aB2b11Bc"]
}
},
"inboundCCVs": {
"ethereum-mainnet-to-ethereum-mainnet-base-1": {
"base": ["0x0aA145a62153190B8f0D3cA00c441e451529f755", "0xF4c7E640EdA248ef95972845a62bdC74237805dB"],
"threshold": []
},
"ethereum-mainnet-arbitrum-1-to-ethereum-mainnet-base-1": {
"base": ["0x0aA145a62153190B8f0D3cA00c441e451529f755", "0xF4c7E640EdA248ef95972845a62bdC74237805dB"],
"threshold": []
}
}
},
"ethereum-mainnet-optimism-1": {
"thresholdAmount": "10000000000000000000000",
"outboundCCVs": {
"ethereum-mainnet-optimism-1-to-ethereum-mainnet": {
"base": ["0x80226fc0Ee2b096224EeAc085Bb9a8cba1146f7D", "0xF4c7E640EdA248ef95972845a62bdC74237805dB"],
"threshold": ["0x76Aa17dCda9E8529149E76e9ffaE4aD1C4AD701B"]
}
},
"inboundCCVs": {
"ethereum-mainnet-to-ethereum-mainnet-optimism-1": {
"base": ["0x80226fc0Ee2b096224EeAc085Bb9a8cba1146f7D", "0xF4c7E640EdA248ef95972845a62bdC74237805dB"],
"threshold": []
}
}
}
},
"wstETH": {
"mainnet": {
"thresholdAmount": "500000000000000000000",
"outboundCCVs": {
"ethereum-mainnet-to-ethereum-mainnet-arbitrum-1": {
"base": ["0x80226fc0Ee2b096224EeAc085Bb9a8cba1146f7D"],
"threshold": ["0xcBD48A8eB077381c3c4Eb36b402d7283aB2b11Bc"]
},
"ethereum-mainnet-to-ethereum-mainnet-optimism-1": {
"base": ["0x80226fc0Ee2b096224EeAc085Bb9a8cba1146f7D"],
"threshold": ["0x76Aa17dCda9E8529149E76e9ffaE4aD1C4AD701B"]
}
},
"inboundCCVs": {
"ethereum-mainnet-arbitrum-1-to-ethereum-mainnet": {
"base": ["0x80226fc0Ee2b096224EeAc085Bb9a8cba1146f7D"],
"threshold": []
},
"ethereum-mainnet-optimism-1-to-ethereum-mainnet": {
"base": ["0x80226fc0Ee2b096224EeAc085Bb9a8cba1146f7D"],
"threshold": []
}
}
}
},
"BETS": {
"mainnet": {
"thresholdAmount": "50000000000000000000000000",
"outboundCCVs": {
"ethereum-mainnet-to-avalanche-mainnet": {
"base": ["0x80226fc0Ee2b096224EeAc085Bb9a8cba1146f7D"],
"threshold": ["0xF4c7E640EdA248ef95972845a62bdC74237805dB"]
},
"ethereum-mainnet-to-ethereum-mainnet-base-1": {
"base": ["0x80226fc0Ee2b096224EeAc085Bb9a8cba1146f7D"],
"threshold": ["0xF4c7E640EdA248ef95972845a62bdC74237805dB"]
}
},
"inboundCCVs": {
"avalanche-mainnet-to-ethereum-mainnet": {
"base": ["0x80226fc0Ee2b096224EeAc085Bb9a8cba1146f7D"],
"threshold": []
},
"ethereum-mainnet-base-1-to-ethereum-mainnet": {
"base": ["0x80226fc0Ee2b096224EeAc085Bb9a8cba1146f7D"],
"threshold": []
}
}
},
"ethereum-mainnet-base-1": {
"thresholdAmount": "25000000000000000000000000",
"outboundCCVs": {
"ethereum-mainnet-base-1-to-ethereum-mainnet": {
"base": ["0x80226fc0Ee2b096224EeAc085Bb9a8cba1146f7D"],
"threshold": ["0xF4c7E640EdA248ef95972845a62bdC74237805dB"]
}
},
"inboundCCVs": {
"ethereum-mainnet-to-ethereum-mainnet-base-1": {
"base": ["0x80226fc0Ee2b096224EeAc085Bb9a8cba1146f7D"],
"threshold": []
}
}
},
"bsc-mainnet": {
"thresholdAmount": "0",
"outboundCCVs": {
"binance_smart_chain-mainnet-to-ethereum-mainnet": {
"base": null,
"threshold": null
}
},
"inboundCCVs": {
"ethereum-mainnet-to-binance_smart_chain-mainnet": {
"base": null,
"threshold": null
}
}
}
}
}
Loading
Loading