From 6edce745e4f6f8ce0e58f2c5270eb6892836fb34 Mon Sep 17 00:00:00 2001 From: Aaron Cook Date: Mon, 25 Nov 2024 14:55:10 +0100 Subject: [PATCH 1/3] Update EIP-5792 support, fixing pending status --- .changeset/great-mails-warn.md | 5 +++++ packages/safe-apps-provider/src/provider.ts | 25 ++++++++++++--------- 2 files changed, 19 insertions(+), 11 deletions(-) create mode 100644 .changeset/great-mails-warn.md diff --git a/.changeset/great-mails-warn.md b/.changeset/great-mails-warn.md new file mode 100644 index 00000000..69daf173 --- /dev/null +++ b/.changeset/great-mails-warn.md @@ -0,0 +1,5 @@ +--- +'@safe-global/safe-apps-provider': patch +--- + +Update EIP-5792 implementation according to spec. and fix pending status diff --git a/packages/safe-apps-provider/src/provider.ts b/packages/safe-apps-provider/src/provider.ts index 4cb3baf4..8a8c788f 100644 --- a/packages/safe-apps-provider/src/provider.ts +++ b/packages/safe-apps-provider/src/provider.ts @@ -234,16 +234,19 @@ export class SafeAppProvider extends EventEmitter implements EIP1193Provider { [TransactionStatus.SUCCESS]: 'CONFIRMED', }; - const tx = await this.sdk.txs.getBySafeTxHash(params[0]).catch(() => null); - if (!tx?.txHash) { - throw new Error('Transaction not found'); - } + const tx = await this.sdk.txs.getBySafeTxHash(params[0]); + + const status = CallStatus[tx.txStatus]; - const receipt = await this.sdk.eth.getTransactionReceipt([tx.txHash]).catch(() => null); - if (!receipt) { - throw new Error('Transaction receipt not found'); + // Transaction is queued + if (!tx.txHash) { + return { + status, + }; } + const receipt = await this.sdk.eth.getTransactionReceipt([tx.txHash]); + const calls = tx.txData?.dataDecoded?.method !== 'multiSend' ? 1 @@ -255,17 +258,17 @@ export class SafeAppProvider extends EventEmitter implements EIP1193Provider { const gasUsed = Number(receipt.gasUsed); const receipts = Array(calls).fill({ - success: numberToHex(tx.txStatus === TransactionStatus.SUCCESS ? 1 : 0), + logs: receipt.logs, + status: numberToHex(tx.txStatus === TransactionStatus.SUCCESS ? 1 : 0), + chainId: numberToHex(this.chainId), blockHash: receipt.blockHash, blockNumber: numberToHex(blockNumber), - blockTimestamp: numberToHex(tx.executedAt ?? 0), gasUsed: numberToHex(gasUsed), transactionHash: tx.txHash, - logs: receipt.logs, }); return { - status: CallStatus[tx.txStatus], + status, receipts, }; } From 7fe57cfc0bbfb5e0fafd60c8eb8617568f3bdba9 Mon Sep 17 00:00:00 2001 From: Aaron Cook Date: Tue, 26 Nov 2024 12:41:58 +0100 Subject: [PATCH 2/3] Handle receipts of transactions being executed --- packages/safe-apps-provider/src/provider.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/safe-apps-provider/src/provider.ts b/packages/safe-apps-provider/src/provider.ts index 8a8c788f..7bdcb33b 100644 --- a/packages/safe-apps-provider/src/provider.ts +++ b/packages/safe-apps-provider/src/provider.ts @@ -245,7 +245,13 @@ export class SafeAppProvider extends EventEmitter implements EIP1193Provider { }; } + // If transaction is executing, receipt is null const receipt = await this.sdk.eth.getTransactionReceipt([tx.txHash]); + if (!receipt) { + return { + status, + }; + } const calls = tx.txData?.dataDecoded?.method !== 'multiSend' From 30ec4d5f305af03da69992fb76bc9e914f4f4ed9 Mon Sep 17 00:00:00 2001 From: Aaron Cook Date: Tue, 26 Nov 2024 13:17:32 +0100 Subject: [PATCH 3/3] Add build --- packages/safe-apps-provider/dist/provider.js | 25 ++++++++++++------- .../safe-apps-provider/dist/provider.js.map | 2 +- 2 files changed, 17 insertions(+), 10 deletions(-) diff --git a/packages/safe-apps-provider/dist/provider.js b/packages/safe-apps-provider/dist/provider.js index 198eacfd..0eabb45b 100644 --- a/packages/safe-apps-provider/dist/provider.js +++ b/packages/safe-apps-provider/dist/provider.js @@ -184,13 +184,20 @@ class SafeAppProvider extends events_1.EventEmitter { [safe_apps_sdk_1.TransactionStatus.FAILED]: 'CONFIRMED', [safe_apps_sdk_1.TransactionStatus.SUCCESS]: 'CONFIRMED', }; - const tx = await this.sdk.txs.getBySafeTxHash(params[0]).catch(() => null); - if (!tx?.txHash) { - throw new Error('Transaction not found'); + const tx = await this.sdk.txs.getBySafeTxHash(params[0]); + const status = CallStatus[tx.txStatus]; + // Transaction is queued + if (!tx.txHash) { + return { + status, + }; } - const receipt = await this.sdk.eth.getTransactionReceipt([tx.txHash]).catch(() => null); + // If transaction is executing, receipt is null + const receipt = await this.sdk.eth.getTransactionReceipt([tx.txHash]); if (!receipt) { - throw new Error('Transaction receipt not found'); + return { + status, + }; } const calls = tx.txData?.dataDecoded?.method !== 'multiSend' ? 1 @@ -200,16 +207,16 @@ class SafeAppProvider extends events_1.EventEmitter { const blockNumber = Number(receipt.blockNumber); const gasUsed = Number(receipt.gasUsed); const receipts = Array(calls).fill({ - success: (0, utils_1.numberToHex)(tx.txStatus === safe_apps_sdk_1.TransactionStatus.SUCCESS ? 1 : 0), + logs: receipt.logs, + status: (0, utils_1.numberToHex)(tx.txStatus === safe_apps_sdk_1.TransactionStatus.SUCCESS ? 1 : 0), + chainId: (0, utils_1.numberToHex)(this.chainId), blockHash: receipt.blockHash, blockNumber: (0, utils_1.numberToHex)(blockNumber), - blockTimestamp: (0, utils_1.numberToHex)(tx.executedAt ?? 0), gasUsed: (0, utils_1.numberToHex)(gasUsed), transactionHash: tx.txHash, - logs: receipt.logs, }); return { - status: CallStatus[tx.txStatus], + status, receipts, }; } diff --git a/packages/safe-apps-provider/dist/provider.js.map b/packages/safe-apps-provider/dist/provider.js.map index 7388760a..6d7985f5 100644 --- a/packages/safe-apps-provider/dist/provider.js.map +++ b/packages/safe-apps-provider/dist/provider.js.map @@ -1 +1 @@ -{"version":3,"file":"provider.js","sourceRoot":"","sources":["../src/provider.ts"],"names":[],"mappings":";;;AAAA,8DAA6G;AAC7G,mCAAsC;AAEtC,mCAAoD;AAEpD,+GAA+G;AAC/G,MAAa,eAAgB,SAAQ,qBAAY;IAK/C,YAAY,IAAc,EAAE,GAAgB;QAC1C,KAAK,EAAE,CAAC;QAHF,iBAAY,GAAG,IAAI,GAAG,EAAiC,CAAC;QAI9D,IAAI,CAAC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