@getpara/react-native-wallet 1.0.1 → 1.0.2-dev.2

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.
@@ -8,7 +8,7 @@ import java.util.ArrayList;
8
8
  import java.util.Collections;
9
9
  import java.util.List;
10
10
 
11
- public class CapsuleSignerPackage implements ReactPackage {
11
+ public class ParaSignerPackage implements ReactPackage {
12
12
 
13
13
  @Override
14
14
  public List<ViewManager> createViewManagers(
@@ -1,4 +1,3 @@
1
- // Copyright (c) Capsule Labs Inc. All rights reserved.
2
1
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
2
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
3
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -1,4 +1,3 @@
1
- // Copyright (c) Capsule Labs Inc. All rights reserved.
2
1
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
2
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
3
  return new (P || (P = Promise))(function (resolve, reject) {
package/dist/config.js CHANGED
@@ -1,4 +1,3 @@
1
- // Copyright (c) Capsule Labs Inc. All rights reserved.
2
1
  import { NativeModules } from 'react-native';
3
2
  import { Environment } from '@getpara/web-sdk';
4
3
  function getPortalBaseURL(env) {
@@ -52,10 +51,10 @@ export function setEnv(env) {
52
51
  mpcNetworkWSServer = getBaseMPCNetworkWSUrl(env);
53
52
  init();
54
53
  }
55
- const { CapsuleSignerModule } = NativeModules;
54
+ const { ParaSignerModule } = NativeModules;
56
55
  export const DEBUG_MODE_ENABLED = false;
57
56
  function init() {
58
- CapsuleSignerModule.setServerUrl(userManagementServer);
59
- CapsuleSignerModule.setWsServerUrl(mpcNetworkWSServer);
57
+ ParaSignerModule.setServerUrl(userManagementServer);
58
+ ParaSignerModule.setWsServerUrl(mpcNetworkWSServer);
60
59
  }
61
60
  init();
@@ -46,4 +46,6 @@ export declare class ParaMobile extends ParaCore {
46
46
  * @returns {Promise<Wallet[]>} An array of user wallets.
47
47
  */
48
48
  login(email?: string, phone?: string, countryCode?: CountryCallingCode): Promise<void>;
49
+ protected isPortal(): boolean;
50
+ protected isParaConnect(): boolean;
49
51
  }
@@ -238,4 +238,10 @@ export class ParaMobile extends ParaCore {
238
238
  yield this.setWallets(walletsToInsert);
239
239
  });
240
240
  }
241
+ isPortal() {
242
+ return false;
243
+ }
244
+ isParaConnect() {
245
+ return false;
246
+ }
241
247
  }
@@ -1,4 +1,3 @@
1
- // Copyright (c) Capsule Labs Inc. All rights reserved.
2
1
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
2
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
3
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -1,4 +1,4 @@
1
- // Copyright (c) Capsule Labs Inc. All rights reserved.
1
+
2
2
 
3
3
  //
4
4
  // ParaSignerModule.h
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getpara/react-native-wallet",
3
- "version": "1.0.1",
3
+ "version": "1.0.2-dev.2",
4
4
  "description": "Para Wallet for React Native",
5
5
  "homepage": "https://getpara.com",
6
6
  "author": "Para Team <hello@getpara.com> (https://getpara.com)",
@@ -58,6 +58,5 @@
58
58
  },
59
59
  "publishConfig": {
60
60
  "access": "public"
61
- },
62
- "gitHead": "adab14d69316165076fb244001ae271847bc23cc"
61
+ }
63
62
  }
@@ -1,5 +1,3 @@
1
- // Copyright (c) Capsule Labs Inc. All rights reserved.
2
-
3
1
  import { StorageUtils } from '@getpara/web-sdk';
4
2
  import RNAsyncStorage from '@react-native-async-storage/async-storage';
5
3
 
@@ -1,5 +1,3 @@
1
- // Copyright (c) Capsule Labs Inc. All rights reserved.
2
-
3
1
  import { StorageUtils } from '@getpara/web-sdk';
4
2
  import Keychain from 'react-native-keychain';
5
3
 
package/src/config.ts CHANGED
@@ -1,5 +1,3 @@
1
- // Copyright (c) Capsule Labs Inc. All rights reserved.
2
-
3
1
  import { NativeModules } from 'react-native';
4
2
  import { Environment } from '@getpara/web-sdk';
5
3
 
@@ -59,12 +57,12 @@ export function setEnv(env: Environment) {
59
57
  init();
60
58
  }
61
59
 
62
- const { CapsuleSignerModule } = NativeModules;
60
+ const { ParaSignerModule } = NativeModules;
63
61
  export const DEBUG_MODE_ENABLED = false;
64
62
 
65
63
  function init() {
66
- CapsuleSignerModule.setServerUrl(userManagementServer);
67
- CapsuleSignerModule.setWsServerUrl(mpcNetworkWSServer);
64
+ ParaSignerModule.setServerUrl(userManagementServer);
65
+ ParaSignerModule.setWsServerUrl(mpcNetworkWSServer);
68
66
  }
69
67
 
70
68
  init();
@@ -296,4 +296,12 @@ export class ParaMobile extends ParaCore {
296
296
 
297
297
  await this.setWallets(walletsToInsert);
298
298
  }
299
+
300
+ protected isPortal(): boolean {
301
+ return false;
302
+ }
303
+
304
+ protected isParaConnect(): boolean {
305
+ return false;
306
+ }
299
307
  }
@@ -1,5 +1,3 @@
1
- // Copyright (c) Capsule Labs Inc. All rights reserved.
2
-
3
1
  import { PlatformUtils, TPregenIdentifierType } from '@getpara/web-sdk';
4
2
  import { Ctx } from '@getpara/web-sdk';
5
3
  import { SignatureRes } from '@getpara/web-sdk';