From e33b4bdf56d9ae1be45e8e104e81e34bcdde52ab Mon Sep 17 00:00:00 2001 From: Arhaam Patvi Date: Tue, 22 Jul 2025 23:41:02 +0530 Subject: [PATCH 1/2] fix ExecutionStateChanged ABI --- packages/ccip-js/src/config.ts | 52 +++++++++++----------------------- 1 file changed, 17 insertions(+), 35 deletions(-) diff --git a/packages/ccip-js/src/config.ts b/packages/ccip-js/src/config.ts index a70c7b5..a43dcc4 100644 --- a/packages/ccip-js/src/config.ts +++ b/packages/ccip-js/src/config.ts @@ -12,46 +12,28 @@ export const ExecutionStateChangedABI = { name: 'ExecutionStateChanged', inputs: [ { - name: 'sourceChainSelector', - type: 'uint64', - indexed: true, - internalType: 'uint64', + "name": "sequenceNumber", + "type": "uint64", + "indexed": true, + "internalType": "uint64" }, { - name: 'sequenceNumber', - type: 'uint64', - indexed: true, - internalType: 'uint64', + "name": "messageId", + "type": "bytes32", + "indexed": true, + "internalType": "bytes32" }, { - name: 'messageId', - type: 'bytes32', - indexed: true, - internalType: 'bytes32', + "name": "state", + "type": "uint8", + "indexed": false, + "internalType": "enum Internal.MessageExecutionState" }, { - name: 'messageHash', - type: 'bytes32', - indexed: false, - internalType: 'bytes32', - }, - { - name: 'state', - type: 'uint8', - indexed: false, - internalType: 'enum Internal.MessageExecutionState', - }, - { - name: 'returnData', - type: 'bytes', - indexed: false, - internalType: 'bytes', - }, - { - name: 'gasUsed', - type: 'uint256', - indexed: false, - internalType: 'uint256', - }, + "name": "returnData", + "type": "bytes", + "indexed": false, + "internalType": "bytes" + } ], } as const From b11807261dfa8e672cc8241589237d5d819d5a84 Mon Sep 17 00:00:00 2001 From: Arhaam Patvi Date: Wed, 23 Jul 2025 02:10:38 +0530 Subject: [PATCH 2/2] eip7702 support --- examples/nextjs/components/ccip.tsx | 12 + examples/nextjs/config/index.ts | 2 + examples/nextjs/package.json | 6 +- packages/ccip-js/package.json | 2 +- packages/ccip-js/src/api.ts | 107 +- packages/ccip-react-components/README.md | 13 + .../ccip-react-components/lib/AppContext.tsx | 3 + .../lib/components/SendButton.tsx | 8 +- packages/ccip-react-components/lib/types.ts | 5 + packages/ccip-react-components/package.json | 2 +- pnpm-lock.yaml | 2062 +++++------------ 11 files changed, 711 insertions(+), 1511 deletions(-) diff --git a/examples/nextjs/components/ccip.tsx b/examples/nextjs/components/ccip.tsx index 7609f6a..f6844a5 100644 --- a/examples/nextjs/components/ccip.tsx +++ b/examples/nextjs/components/ccip.tsx @@ -178,6 +178,7 @@ function TransferTokensAndMessage({ walletClient }: { walletClient: WalletClient const [data, setData] = useState(); const [messageId, setMessageId] = useState(); const [txHash, setTxHash] = useState(); + const [useEip7702, setUseEip7702] = useState(true); return (
@@ -239,6 +240,16 @@ function TransferTokensAndMessage({ walletClient }: { walletClient: WalletClient onChange={({ target }) => setAmount(target.value)} />
+
+ setUseEip7702(target.checked)} + className="rounded border-slate-300" + /> + +