@onekeyfe/onekey-algo-provider 2.0.0-alpha.9 → 2.0.1

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.
package/dist/cjs/index.js CHANGED
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
package/dist/types.d.ts CHANGED
@@ -6,7 +6,7 @@ export interface EnableNetworkOpts {
6
6
  export interface EnableAccountsOpts {
7
7
  accounts?: string[];
8
8
  }
9
- export declare type EnableOpts = EnableNetworkOpts & EnableAccountsOpts;
9
+ export type EnableOpts = EnableNetworkOpts & EnableAccountsOpts;
10
10
  export interface EnableNetworkResult {
11
11
  genesisID: string;
12
12
  genesisHash: string;
@@ -14,8 +14,8 @@ export interface EnableNetworkResult {
14
14
  export interface EnableAccountsResult {
15
15
  accounts: string[];
16
16
  }
17
- export declare type EnableResult = EnableNetworkResult & EnableAccountsResult;
18
- export declare type SignTxnsResult = (string | null)[];
17
+ export type EnableResult = EnableNetworkResult & EnableAccountsResult;
18
+ export type SignTxnsResult = (string | null)[];
19
19
  export interface WalletTransaction {
20
20
  txn: string;
21
21
  authAddr?: string;
@@ -25,7 +25,7 @@ export interface WalletTransaction {
25
25
  export interface PostTxnsResult {
26
26
  txnIDs: string[];
27
27
  }
28
- export declare type Query<F> = {
28
+ export type Query<F> = {
29
29
  format?: F;
30
30
  [key: string]: any;
31
31
  };
@@ -45,13 +45,13 @@ export interface BaseHTTPClient {
45
45
  interface ConnectionOptions {
46
46
  onlyIfTrusted?: boolean;
47
47
  }
48
- export declare type ConnectInfo = {
48
+ export type ConnectInfo = {
49
49
  address: string;
50
50
  };
51
51
  export interface TransactionResult {
52
52
  txId: string;
53
53
  }
54
- export declare type DisplayEncoding = 'utf8' | 'hex';
54
+ export type DisplayEncoding = 'utf8' | 'hex';
55
55
  export interface IProviderAlgo {
56
56
  isConnected: boolean;
57
57
  isExodus: boolean;
@@ -78,7 +78,7 @@ export declare const PROVIDER_EVENTS: {
78
78
  readonly accountChanged: "accountChanged";
79
79
  readonly message_low_level: "message_low_level";
80
80
  };
81
- export declare type AlgoProviderEventsMap = {
81
+ export type AlgoProviderEventsMap = {
82
82
  [PROVIDER_EVENTS.connect]: (connectInfo: ConnectInfo) => void;
83
83
  [PROVIDER_EVENTS.disconnect]: () => void;
84
84
  [PROVIDER_EVENTS.accountChanged]: (address: string) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onekeyfe/onekey-algo-provider",
3
- "version": "2.0.0-alpha.9",
3
+ "version": "2.0.1",
4
4
  "keywords": [
5
5
  "cross-inpage-provider"
6
6
  ],
@@ -28,10 +28,10 @@
28
28
  "start": "tsc --watch"
29
29
  },
30
30
  "dependencies": {
31
- "@onekeyfe/cross-inpage-provider-core": "2.0.0-alpha.9",
32
- "@onekeyfe/cross-inpage-provider-errors": "2.0.0-alpha.9",
33
- "@onekeyfe/cross-inpage-provider-types": "2.0.0-alpha.9",
34
- "@onekeyfe/extension-bridge-injected": "2.0.0-alpha.9"
31
+ "@onekeyfe/cross-inpage-provider-core": "2.0.1",
32
+ "@onekeyfe/cross-inpage-provider-errors": "2.0.1",
33
+ "@onekeyfe/cross-inpage-provider-types": "2.0.1",
34
+ "@onekeyfe/extension-bridge-injected": "2.0.1"
35
35
  },
36
- "gitHead": "691a45b3b7acfe56366ffa6f875a4fdc5da2ed64"
36
+ "gitHead": "762c20dff522f3bdd67cedcb97a5c49a97c5e3fa"
37
37
  }