@portal-hq/utils 2.0.1 → 2.0.3

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.
@@ -7,5 +7,18 @@ var Events;
7
7
  Events["WalletBackedUp"] = "Wallet Backed Up";
8
8
  Events["WalletCreated"] = "Wallet Created";
9
9
  Events["WalletRecovered"] = "Wallet Recovered";
10
+ // API Method events
11
+ Events["GetClient"] = "Get Client";
12
+ Events["GetEnabledDapps"] = "Get Enabled Dapps";
13
+ Events["GetNetworks"] = "Get Networks";
14
+ Events["GetQuote"] = "Get Quote";
15
+ Events["GetSources"] = "Get Sources";
16
+ Events["GetNFTs"] = "Get NFTs";
17
+ Events["GetTransactions"] = "Get Transactions";
18
+ Events["GetBalances"] = "Get Balances";
19
+ Events["SimulateTransaction"] = "Simulate Transaction";
20
+ Events["StoredClientSigningShare"] = "Stored Client Signing Share";
21
+ Events["StoredClientBackupShareKey"] = "Stored Client Backup Share Key";
22
+ Events["StoredClientBackupShare"] = "Stored Client Backup Share";
10
23
  })(Events || (Events = {}));
11
24
  exports.default = Events;
@@ -5,5 +5,18 @@ var Events;
5
5
  Events["WalletBackedUp"] = "Wallet Backed Up";
6
6
  Events["WalletCreated"] = "Wallet Created";
7
7
  Events["WalletRecovered"] = "Wallet Recovered";
8
+ // API Method events
9
+ Events["GetClient"] = "Get Client";
10
+ Events["GetEnabledDapps"] = "Get Enabled Dapps";
11
+ Events["GetNetworks"] = "Get Networks";
12
+ Events["GetQuote"] = "Get Quote";
13
+ Events["GetSources"] = "Get Sources";
14
+ Events["GetNFTs"] = "Get NFTs";
15
+ Events["GetTransactions"] = "Get Transactions";
16
+ Events["GetBalances"] = "Get Balances";
17
+ Events["SimulateTransaction"] = "Simulate Transaction";
18
+ Events["StoredClientSigningShare"] = "Stored Client Signing Share";
19
+ Events["StoredClientBackupShareKey"] = "Stored Client Backup Share Key";
20
+ Events["StoredClientBackupShare"] = "Stored Client Backup Share";
8
21
  })(Events || (Events = {}));
9
22
  export default Events;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@portal-hq/utils",
3
- "version": "2.0.1",
3
+ "version": "2.0.3",
4
4
  "main": "lib/commonjs/index",
5
5
  "module": "lib/esm/index",
6
6
  "source": "src/index",
@@ -26,5 +26,5 @@
26
26
  "ts-jest": "^29.0.3",
27
27
  "typescript": "^4.8.4"
28
28
  },
29
- "gitHead": "95132d009b1a7a08d6c05be9323dd21354c4adf0"
29
+ "gitHead": "c333fe5280f16a5c5f70b7ae768f112baf7156ba"
30
30
  }
@@ -33,6 +33,7 @@ export interface LegacyTx {
33
33
  export interface RequestArguments {
34
34
  method: string
35
35
  params?: unknown[] | SigningRequestParams
36
+ chainId?: string
36
37
  connect?: PortalConnect
37
38
  }
38
39
 
@@ -4,6 +4,20 @@ enum Events {
4
4
  WalletBackedUp = 'Wallet Backed Up',
5
5
  WalletCreated = 'Wallet Created',
6
6
  WalletRecovered = 'Wallet Recovered',
7
+
8
+ // API Method events
9
+ GetClient = 'Get Client',
10
+ GetEnabledDapps = 'Get Enabled Dapps',
11
+ GetNetworks = 'Get Networks',
12
+ GetQuote = 'Get Quote',
13
+ GetSources = 'Get Sources',
14
+ GetNFTs = 'Get NFTs',
15
+ GetTransactions = 'Get Transactions',
16
+ GetBalances = 'Get Balances',
17
+ SimulateTransaction = 'Simulate Transaction',
18
+ StoredClientSigningShare = 'Stored Client Signing Share',
19
+ StoredClientBackupShareKey = 'Stored Client Backup Share Key',
20
+ StoredClientBackupShare = 'Stored Client Backup Share',
7
21
  }
8
22
 
9
23
  export default Events