@portal-hq/provider 4.6.0 → 4.7.0

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.
@@ -24,6 +24,7 @@ const signerMethods = [
24
24
  'eth_sendTransaction',
25
25
  'eth_sign',
26
26
  'eth_signTransaction',
27
+ 'eth_signUserOperation',
27
28
  'eth_signTypedData_v3',
28
29
  'eth_signTypedData_v4',
29
30
  'personal_sign',
@@ -461,6 +462,7 @@ class Provider {
461
462
  case 'eth_sendTransaction':
462
463
  case 'eth_sign':
463
464
  case 'eth_signTransaction':
465
+ case 'eth_signUserOperation':
464
466
  case 'eth_signTypedData_v3':
465
467
  case 'eth_signTypedData_v4':
466
468
  case 'personal_sign':
@@ -22,6 +22,7 @@ const signerMethods = [
22
22
  'eth_sendTransaction',
23
23
  'eth_sign',
24
24
  'eth_signTransaction',
25
+ 'eth_signUserOperation',
25
26
  'eth_signTypedData_v3',
26
27
  'eth_signTypedData_v4',
27
28
  'personal_sign',
@@ -459,6 +460,7 @@ class Provider {
459
460
  case 'eth_sendTransaction':
460
461
  case 'eth_sign':
461
462
  case 'eth_signTransaction':
463
+ case 'eth_signUserOperation':
462
464
  case 'eth_signTypedData_v3':
463
465
  case 'eth_signTypedData_v4':
464
466
  case 'personal_sign':
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@portal-hq/provider",
3
- "version": "4.6.0",
3
+ "version": "4.7.0",
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.6.0",
23
- "@portal-hq/utils": "^4.6.0",
22
+ "@portal-hq/connect": "^4.7.0",
23
+ "@portal-hq/utils": "^4.7.0",
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": "81e3ade6164a87aa8fc8942af4c770d04f73bc55"
35
+ "gitHead": "3125e96a72c384e33229138b63ff3791818b0833"
36
36
  }
@@ -41,6 +41,7 @@ const signerMethods = [
41
41
  'eth_sendTransaction',
42
42
  'eth_sign',
43
43
  'eth_signTransaction',
44
+ 'eth_signUserOperation',
44
45
  'eth_signTypedData_v3',
45
46
  'eth_signTypedData_v4',
46
47
  'personal_sign',
@@ -594,6 +595,7 @@ class Provider implements IPortalProvider {
594
595
  case 'eth_sendTransaction':
595
596
  case 'eth_sign':
596
597
  case 'eth_signTransaction':
598
+ case 'eth_signUserOperation':
597
599
  case 'eth_signTypedData_v3':
598
600
  case 'eth_signTypedData_v4':
599
601
  case 'personal_sign':
package/types.d.ts CHANGED
@@ -41,6 +41,7 @@ export interface MpcSignerOptions extends SignerOptions {
41
41
  export interface PortalMobileMpcMetadata {
42
42
  backupMethod?:
43
43
  | 'CUSTOM'
44
+ | 'FIREBASE'
44
45
  | 'GDRIVE'
45
46
  | 'ICLOUD'
46
47
  | 'PASSKEY'
@@ -214,3 +215,4 @@ export type EnclaveSignResponse =
214
215
  message: string
215
216
  code: number
216
217
  }
218
+ export { BackupMethods } from '@portal-hq/core'