@toruslabs/ethereum-controllers 5.3.2 → 5.3.4
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/ethereumControllers.cjs.js +47 -32
- package/dist/ethereumControllers.cjs.js.map +1 -1
- package/dist/ethereumControllers.esm.js +105 -3
- package/dist/ethereumControllers.esm.js.map +1 -1
- package/dist/ethereumControllers.umd.min.js +1 -1
- package/dist/ethereumControllers.umd.min.js.map +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/utils/interfaces.d.ts +1 -0
- package/package.json +4 -4
- package/src/Transaction/TransactionController.ts +1 -1
- package/src/index.ts +1 -0
- package/src/utils/interfaces.ts +1 -0
package/dist/types/index.d.ts
CHANGED
|
@@ -33,6 +33,7 @@ export { default as TransactionStateManager } from "./Transaction/TransactionSta
|
|
|
33
33
|
export * from "./Transaction/TransactionUtils";
|
|
34
34
|
export * from "./utils/abis";
|
|
35
35
|
export * from "./utils/constants";
|
|
36
|
+
export * from "./utils/conversionUtils";
|
|
36
37
|
export * from "./utils/helpers";
|
|
37
38
|
export * from "./utils/interfaces";
|
|
38
39
|
/**
|
|
@@ -304,6 +304,7 @@ export interface EthereumTransactionMeta extends TransactionMeta<TransactionPara
|
|
|
304
304
|
simulationFails?: Record<string, unknown>;
|
|
305
305
|
loadingDefaults?: boolean;
|
|
306
306
|
transactionCategory?: TRANSACTION_TYPE;
|
|
307
|
+
contractType?: string;
|
|
307
308
|
nonceDetails?: NonceDetails;
|
|
308
309
|
methodParams?: unknown[];
|
|
309
310
|
dappSuggestedGasFees?: DappSuggestedGasFees;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@toruslabs/ethereum-controllers",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.4",
|
|
4
4
|
"homepage": "https://github.com/torusresearch/controllers#readme",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"main": "dist/ethereumControllers.cjs.js",
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
"@ethereumjs/util": "^9.0.1",
|
|
25
25
|
"@metamask/eth-sig-util": "^7.0.1",
|
|
26
26
|
"@metamask/rpc-errors": "^6.1.0",
|
|
27
|
-
"@toruslabs/base-controllers": "^5.3.
|
|
27
|
+
"@toruslabs/base-controllers": "^5.3.3",
|
|
28
28
|
"@toruslabs/http-helpers": "^6.0.0",
|
|
29
|
-
"@toruslabs/openlogin-jrpc": "^6.2.
|
|
29
|
+
"@toruslabs/openlogin-jrpc": "^6.2.8",
|
|
30
30
|
"async-mutex": "^0.4.1",
|
|
31
31
|
"bignumber.js": "^9.1.2",
|
|
32
32
|
"bn.js": "^5.2.1",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"publishConfig": {
|
|
65
65
|
"access": "public"
|
|
66
66
|
},
|
|
67
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "475a9fbc714cf8ae618673fc15719d9d73d305be",
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"@nomicfoundation/hardhat-toolbox": "^4.0.0",
|
|
70
70
|
"hardhat": "^2.19.4"
|
|
@@ -461,7 +461,7 @@ export default class TransactionController extends TransactionStateManager imple
|
|
|
461
461
|
});
|
|
462
462
|
|
|
463
463
|
const { type, category, methodParams } = await determineTransactionType(txParameters, this.provider);
|
|
464
|
-
txMeta.
|
|
464
|
+
txMeta.contractType = type;
|
|
465
465
|
txMeta.transactionCategory = category;
|
|
466
466
|
txMeta.methodParams = methodParams;
|
|
467
467
|
txMeta.transaction.value = txMeta.transaction.value ? addHexPrefix(txMeta.transaction.value) : "0x0";
|
package/src/index.ts
CHANGED
|
@@ -33,6 +33,7 @@ export { default as TransactionStateManager } from "./Transaction/TransactionSta
|
|
|
33
33
|
export * from "./Transaction/TransactionUtils";
|
|
34
34
|
export * from "./utils/abis";
|
|
35
35
|
export * from "./utils/constants";
|
|
36
|
+
export * from "./utils/conversionUtils";
|
|
36
37
|
export * from "./utils/helpers";
|
|
37
38
|
export * from "./utils/interfaces";
|
|
38
39
|
|
package/src/utils/interfaces.ts
CHANGED
|
@@ -366,6 +366,7 @@ export interface EthereumTransactionMeta extends TransactionMeta<TransactionPara
|
|
|
366
366
|
simulationFails?: Record<string, unknown>;
|
|
367
367
|
loadingDefaults?: boolean;
|
|
368
368
|
transactionCategory?: TRANSACTION_TYPE;
|
|
369
|
+
contractType?: string;
|
|
369
370
|
nonceDetails?: NonceDetails;
|
|
370
371
|
methodParams?: unknown[];
|
|
371
372
|
dappSuggestedGasFees?: DappSuggestedGasFees;
|