@portal-hq/provider 4.2.6 → 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.
@@ -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 } = 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;
@@ -108,6 +108,8 @@ class MpcSigner {
108
108
  isRaw,
109
109
  reqId: traceId,
110
110
  connectionTracingEnabled: shouldSendMetrics,
111
+ sponsorGas,
112
+ signatureApprovalMemo,
111
113
  };
112
114
  const stringifiedMetadata = JSON.stringify(metadata);
113
115
  let formattedParams;
@@ -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 } = 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;
@@ -103,6 +103,8 @@ class MpcSigner {
103
103
  isRaw,
104
104
  reqId: traceId,
105
105
  connectionTracingEnabled: shouldSendMetrics,
106
+ sponsorGas,
107
+ signatureApprovalMemo,
106
108
  };
107
109
  const stringifiedMetadata = JSON.stringify(metadata);
108
110
  let formattedParams;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@portal-hq/provider",
3
- "version": "4.2.6",
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.6",
23
- "@portal-hq/utils": "^4.2.6",
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": "18b1614b2dcc31138d8b7cbd7867ee6037eddaa2"
35
+ "gitHead": "0cb8282a3ead1e8d968f563d3ec4bb729c7187c5"
36
36
  }
@@ -76,7 +76,14 @@ class MpcSigner implements Signer {
76
76
 
77
77
  const apiKey = provider.apiKey
78
78
 
79
- const { method, chainId, curve, isRaw } = message
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
@@ -115,6 +122,8 @@ class MpcSigner implements Signer {
115
122
  isRaw,
116
123
  reqId: traceId,
117
124
  connectionTracingEnabled: shouldSendMetrics,
125
+ sponsorGas,
126
+ signatureApprovalMemo,
118
127
  }
119
128
 
120
129
  const stringifiedMetadata = JSON.stringify(metadata)
package/types.d.ts CHANGED
@@ -48,6 +48,8 @@ export interface PortalMobileMpcMetadata {
48
48
  isRaw?: boolean
49
49
  reqId?: string
50
50
  connectionTracingEnabled?: boolean
51
+ sponsorGas?: boolean
52
+ signatureApprovalMemo?: string
51
53
  }
52
54
 
53
55
  export interface PortalMobileMpc {