@portal-hq/provider 4.2.5 → 4.2.7

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 } = message;
80
80
  // Add chainId to metrics
81
81
  if (chainId) {
82
82
  metrics.chainId = chainId;
@@ -108,6 +108,7 @@ class MpcSigner {
108
108
  isRaw,
109
109
  reqId: traceId,
110
110
  connectionTracingEnabled: shouldSendMetrics,
111
+ sponsorGas,
111
112
  };
112
113
  const stringifiedMetadata = JSON.stringify(metadata);
113
114
  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 } = message;
75
75
  // Add chainId to metrics
76
76
  if (chainId) {
77
77
  metrics.chainId = chainId;
@@ -103,6 +103,7 @@ class MpcSigner {
103
103
  isRaw,
104
104
  reqId: traceId,
105
105
  connectionTracingEnabled: shouldSendMetrics,
106
+ sponsorGas,
106
107
  };
107
108
  const stringifiedMetadata = JSON.stringify(metadata);
108
109
  let formattedParams;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@portal-hq/provider",
3
- "version": "4.2.5",
3
+ "version": "4.2.7",
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.5",
23
- "@portal-hq/utils": "^4.2.5",
22
+ "@portal-hq/connect": "^4.2.7",
23
+ "@portal-hq/utils": "^4.2.7",
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": "2306203a7e8d8fee8436b81a062d960c32e5444d"
35
+ "gitHead": "d398df655803c96d576463cbd19ba023fc13c2b7"
36
36
  }
@@ -76,7 +76,7 @@ class MpcSigner implements Signer {
76
76
 
77
77
  const apiKey = provider.apiKey
78
78
 
79
- const { method, chainId, curve, isRaw } = message
79
+ const { method, chainId, curve, isRaw, sponsorGas } = message
80
80
  // Add chainId to metrics
81
81
  if (chainId) {
82
82
  metrics.chainId = chainId
@@ -115,6 +115,7 @@ class MpcSigner implements Signer {
115
115
  isRaw,
116
116
  reqId: traceId,
117
117
  connectionTracingEnabled: shouldSendMetrics,
118
+ sponsorGas,
118
119
  }
119
120
 
120
121
  const stringifiedMetadata = JSON.stringify(metadata)
package/types.d.ts CHANGED
@@ -48,6 +48,7 @@ export interface PortalMobileMpcMetadata {
48
48
  isRaw?: boolean
49
49
  reqId?: string
50
50
  connectionTracingEnabled?: boolean
51
+ sponsorGas?: boolean
51
52
  }
52
53
 
53
54
  export interface PortalMobileMpc {