@portal-hq/provider 4.2.7 → 4.2.8
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/lib/commonjs/signers/mpc.js +2 -1
- package/lib/esm/signers/mpc.js +2 -1
- package/package.json +4 -4
- package/src/signers/mpc.ts +9 -1
- package/types.d.ts +1 -0
|
@@ -76,7 +76,7 @@ class MpcSigner {
|
|
|
76
76
|
try {
|
|
77
77
|
const eip155Address = yield this.keychain.getEip155Address();
|
|
78
78
|
const apiKey = provider.apiKey;
|
|
79
|
-
const { method, chainId, curve, isRaw, sponsorGas } = message;
|
|
79
|
+
const { method, chainId, curve, isRaw, sponsorGas, signatureApprovalMemo, } = message;
|
|
80
80
|
// Add chainId to metrics
|
|
81
81
|
if (chainId) {
|
|
82
82
|
metrics.chainId = chainId;
|
|
@@ -109,6 +109,7 @@ class MpcSigner {
|
|
|
109
109
|
reqId: traceId,
|
|
110
110
|
connectionTracingEnabled: shouldSendMetrics,
|
|
111
111
|
sponsorGas,
|
|
112
|
+
signatureApprovalMemo,
|
|
112
113
|
};
|
|
113
114
|
const stringifiedMetadata = JSON.stringify(metadata);
|
|
114
115
|
let formattedParams;
|
package/lib/esm/signers/mpc.js
CHANGED
|
@@ -71,7 +71,7 @@ class MpcSigner {
|
|
|
71
71
|
try {
|
|
72
72
|
const eip155Address = yield this.keychain.getEip155Address();
|
|
73
73
|
const apiKey = provider.apiKey;
|
|
74
|
-
const { method, chainId, curve, isRaw, sponsorGas } = message;
|
|
74
|
+
const { method, chainId, curve, isRaw, sponsorGas, signatureApprovalMemo, } = message;
|
|
75
75
|
// Add chainId to metrics
|
|
76
76
|
if (chainId) {
|
|
77
77
|
metrics.chainId = chainId;
|
|
@@ -104,6 +104,7 @@ class MpcSigner {
|
|
|
104
104
|
reqId: traceId,
|
|
105
105
|
connectionTracingEnabled: shouldSendMetrics,
|
|
106
106
|
sponsorGas,
|
|
107
|
+
signatureApprovalMemo,
|
|
107
108
|
};
|
|
108
109
|
const stringifiedMetadata = JSON.stringify(metadata);
|
|
109
110
|
let formattedParams;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@portal-hq/provider",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.8",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "lib/commonjs/index",
|
|
6
6
|
"module": "lib/esm/index",
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
"test": "jest"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@portal-hq/connect": "^4.2.
|
|
23
|
-
"@portal-hq/utils": "^4.2.
|
|
22
|
+
"@portal-hq/connect": "^4.2.8",
|
|
23
|
+
"@portal-hq/utils": "^4.2.8",
|
|
24
24
|
"@types/react-native-uuid": "^2.0.0",
|
|
25
25
|
"react-native-uuid": "^2.0.3"
|
|
26
26
|
},
|
|
@@ -32,5 +32,5 @@
|
|
|
32
32
|
"ts-jest": "^29.0.3",
|
|
33
33
|
"typescript": "^4.8.4"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "0cb8282a3ead1e8d968f563d3ec4bb729c7187c5"
|
|
36
36
|
}
|
package/src/signers/mpc.ts
CHANGED
|
@@ -76,7 +76,14 @@ class MpcSigner implements Signer {
|
|
|
76
76
|
|
|
77
77
|
const apiKey = provider.apiKey
|
|
78
78
|
|
|
79
|
-
const {
|
|
79
|
+
const {
|
|
80
|
+
method,
|
|
81
|
+
chainId,
|
|
82
|
+
curve,
|
|
83
|
+
isRaw,
|
|
84
|
+
sponsorGas,
|
|
85
|
+
signatureApprovalMemo,
|
|
86
|
+
} = message
|
|
80
87
|
// Add chainId to metrics
|
|
81
88
|
if (chainId) {
|
|
82
89
|
metrics.chainId = chainId
|
|
@@ -116,6 +123,7 @@ class MpcSigner implements Signer {
|
|
|
116
123
|
reqId: traceId,
|
|
117
124
|
connectionTracingEnabled: shouldSendMetrics,
|
|
118
125
|
sponsorGas,
|
|
126
|
+
signatureApprovalMemo,
|
|
119
127
|
}
|
|
120
128
|
|
|
121
129
|
const stringifiedMetadata = JSON.stringify(metadata)
|