defi-kit 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/arb1.js +20 -16
- package/dist/arb1.js.map +1 -1
- package/dist/arb1.mjs +1 -1
- package/dist/{chunk-AUSHK4AH.mjs → chunk-QN7LFK2K.mjs} +22 -17
- package/dist/{chunk-AUSHK4AH.mjs.map → chunk-QN7LFK2K.mjs.map} +1 -1
- package/dist/eth.js +20 -16
- package/dist/eth.js.map +1 -1
- package/dist/eth.mjs +1 -1
- package/dist/gno.js +20 -16
- package/dist/gno.js.map +1 -1
- package/dist/gno.mjs +1 -1
- package/package.json +1 -1
package/dist/arb1.js
CHANGED
|
@@ -25293,7 +25293,8 @@ var decode = (transaction) => {
|
|
|
25293
25293
|
);
|
|
25294
25294
|
}
|
|
25295
25295
|
const contractInputsValues = asTxBuilderInputValues(
|
|
25296
|
-
iface.decodeFunctionData(functionFragment, transaction.data)
|
|
25296
|
+
iface.decodeFunctionData(functionFragment, transaction.data),
|
|
25297
|
+
functionFragment.inputs
|
|
25297
25298
|
);
|
|
25298
25299
|
return {
|
|
25299
25300
|
to: transaction.to,
|
|
@@ -25314,23 +25315,26 @@ var mapInputs = (inputs) => {
|
|
|
25314
25315
|
components: mapInputs(input.components)
|
|
25315
25316
|
}));
|
|
25316
25317
|
};
|
|
25317
|
-
var asTxBuilderInputValues = (result) => {
|
|
25318
|
+
var asTxBuilderInputValues = (result, params) => {
|
|
25318
25319
|
const object = {};
|
|
25319
|
-
for (const
|
|
25320
|
-
|
|
25321
|
-
|
|
25322
|
-
|
|
25323
|
-
|
|
25324
|
-
|
|
25325
|
-
|
|
25326
|
-
|
|
25327
|
-
|
|
25328
|
-
|
|
25329
|
-
|
|
25330
|
-
|
|
25331
|
-
|
|
25332
|
-
|
|
25320
|
+
for (const param of params) {
|
|
25321
|
+
const value = result[param.name];
|
|
25322
|
+
let serialized = value;
|
|
25323
|
+
if (typeof value === "string") {
|
|
25324
|
+
serialized = value;
|
|
25325
|
+
} else if (typeof value === "bigint" || typeof value === "number") {
|
|
25326
|
+
serialized = value.toString();
|
|
25327
|
+
} else if ((0, import_ethers11.isBytesLike)(value)) {
|
|
25328
|
+
serialized = (0, import_ethers11.hexlify)(value);
|
|
25329
|
+
} else if (value instanceof import_ethers11.Result) {
|
|
25330
|
+
serialized = JSON.stringify(
|
|
25331
|
+
value,
|
|
25332
|
+
(_, v) => (0, import_ethers11.isBytesLike)(v) ? (0, import_ethers11.hexlify)(v) : typeof v === "bigint" ? v.toString() : v
|
|
25333
|
+
);
|
|
25334
|
+
} else {
|
|
25335
|
+
throw new Error(`Unexpected value type: ${typeof value}`);
|
|
25333
25336
|
}
|
|
25337
|
+
object[param.name] = serialized;
|
|
25334
25338
|
}
|
|
25335
25339
|
return object;
|
|
25336
25340
|
};
|