@arianee/utils
Advanced tools
Comparing version 1.12.0 to 1.13.0
{ | ||
"name": "@arianee/utils", | ||
"version": "1.12.0", | ||
"version": "1.13.0", | ||
"type": "commonjs", | ||
@@ -11,3 +11,3 @@ "dependencies": { | ||
"peerDependencies": { | ||
"@arianee/common-types": "1.12.0", | ||
"@arianee/common-types": "1.13.0", | ||
"tslib": "2.5.0" | ||
@@ -14,0 +14,0 @@ }, |
@@ -1,6 +0,10 @@ | ||
import { Result, TransactionRequest } from 'ethers'; | ||
import { TransactionRequest } from 'ethers'; | ||
interface DecodedArianeeTransaction { | ||
contractName: string; | ||
functionName: string; | ||
functionArgs: Result; | ||
functionArgs: { | ||
name: string; | ||
type: string; | ||
value: any; | ||
}[]; | ||
from: string; | ||
@@ -7,0 +11,0 @@ to: string; |
@@ -44,3 +44,9 @@ "use strict"; | ||
functionName: decoded.name, | ||
functionArgs: decoded.args, | ||
functionArgs: decoded.args.map((argValue, argIndex) => { | ||
return { | ||
name: decoded === null || decoded === void 0 ? void 0 : decoded.fragment.inputs[argIndex].name, | ||
type: decoded === null || decoded === void 0 ? void 0 : decoded.fragment.inputs[argIndex].type, | ||
value: argValue, | ||
}; | ||
}), | ||
from: from.toString(), | ||
@@ -47,0 +53,0 @@ to: to.toString(), |
Sorry, the diff of this file is not supported yet
26098
396