@portal-hq/provider 0.2.0-beta3 → 0.2.0-beta5
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.
|
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
const
|
|
12
|
+
const keychain_1 = require("@portal-hq/keychain");
|
|
13
13
|
const utils_1 = require("@portal-hq/utils");
|
|
14
14
|
class HttpSigner {
|
|
15
15
|
constructor(opts) {
|
|
@@ -19,7 +19,7 @@ class HttpSigner {
|
|
|
19
19
|
option: 'portal',
|
|
20
20
|
});
|
|
21
21
|
}
|
|
22
|
-
this.keychain = new
|
|
22
|
+
this.keychain = new keychain_1.Keychain();
|
|
23
23
|
this.portal = opts.portal;
|
|
24
24
|
}
|
|
25
25
|
sign(message, provider) {
|
|
@@ -10,7 +10,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
const react_native_1 = require("react-native");
|
|
13
|
-
const
|
|
13
|
+
const keychain_1 = require("@portal-hq/keychain");
|
|
14
14
|
const utils_1 = require("@portal-hq/utils");
|
|
15
15
|
class MpcSigner {
|
|
16
16
|
constructor(opts) {
|
|
@@ -35,7 +35,7 @@ class MpcSigner {
|
|
|
35
35
|
if (!this.mpc) {
|
|
36
36
|
throw new Error(`[Portal.Provider.MpcSigner] The MPC module could not be found by the signer. This is usually an issue with React Native linking. Please verify that the 'PortalReactNative' module is properly linked to this project.`);
|
|
37
37
|
}
|
|
38
|
-
this.keychain = new
|
|
38
|
+
this.keychain = new keychain_1.Keychain();
|
|
39
39
|
}
|
|
40
40
|
get address() {
|
|
41
41
|
return (() => __awaiter(this, void 0, void 0, function* () {
|
package/lib/esm/signers/http.js
CHANGED
|
@@ -7,7 +7,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
7
7
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
|
-
import { Keychain } from '@portal-hq/
|
|
10
|
+
import { Keychain } from '@portal-hq/keychain';
|
|
11
11
|
import { MissingOptionError } from '@portal-hq/utils';
|
|
12
12
|
class HttpSigner {
|
|
13
13
|
constructor(opts) {
|
package/lib/esm/signers/mpc.js
CHANGED
|
@@ -8,7 +8,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
10
|
import { NativeModules } from 'react-native';
|
|
11
|
-
import { Keychain } from '@portal-hq/
|
|
11
|
+
import { Keychain } from '@portal-hq/keychain';
|
|
12
12
|
import { MpcSigningError } from '@portal-hq/utils';
|
|
13
13
|
class MpcSigner {
|
|
14
14
|
constructor(opts) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@portal-hq/provider",
|
|
3
|
-
"version": "0.2.0-
|
|
3
|
+
"version": "0.2.0-beta5",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "lib/commonjs/index",
|
|
6
6
|
"module": "lib/module/index",
|
|
@@ -17,8 +17,9 @@
|
|
|
17
17
|
"prepare:esm": "tsc --outDir lib/esm --module es2015 --target es2015"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@portal-hq/core": "^0.2.0-
|
|
21
|
-
"@portal-hq/
|
|
20
|
+
"@portal-hq/core": "^0.2.0-beta5",
|
|
21
|
+
"@portal-hq/keychain": "^0.2.0-beta5",
|
|
22
|
+
"@portal-hq/utils": "^0.2.0-beta5"
|
|
22
23
|
},
|
|
23
24
|
"devDependencies": {
|
|
24
25
|
"typescript": "^4.8.4"
|
package/src/signers/http.ts
CHANGED
package/src/signers/mpc.ts
CHANGED