@portal-hq/utils 4.2.8 → 4.2.9

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.
@@ -44,5 +44,10 @@ var Events;
44
44
  Events["ZeroXGetQuote"] = "ZeroX Get Quote";
45
45
  Events["ZeroXGetPrice"] = "ZeroX Get Price";
46
46
  Events["GetAssets"] = "Get Assets";
47
+ Events["HypernativeScanTx"] = "Hypernative Scan Transaction";
48
+ Events["HypernativeScanAddresses"] = "Hypernative Scan Addresses";
49
+ Events["HypernativeScanNFTs"] = "Hypernative Scan NFTs";
50
+ Events["HypernativeScanTokens"] = "Hypernative Scan Tokens";
51
+ Events["HypernativeScanURL"] = "Hypernative Scan URL";
47
52
  })(Events || (Events = {}));
48
53
  exports.default = Events;
@@ -1 +1 @@
1
- { "version": "4.2.8" }
1
+ { "version": "4.2.9" }
@@ -42,5 +42,10 @@ var Events;
42
42
  Events["ZeroXGetQuote"] = "ZeroX Get Quote";
43
43
  Events["ZeroXGetPrice"] = "ZeroX Get Price";
44
44
  Events["GetAssets"] = "Get Assets";
45
+ Events["HypernativeScanTx"] = "Hypernative Scan Transaction";
46
+ Events["HypernativeScanAddresses"] = "Hypernative Scan Addresses";
47
+ Events["HypernativeScanNFTs"] = "Hypernative Scan NFTs";
48
+ Events["HypernativeScanTokens"] = "Hypernative Scan Tokens";
49
+ Events["HypernativeScanURL"] = "Hypernative Scan URL";
45
50
  })(Events || (Events = {}));
46
51
  export default Events;
@@ -1 +1 @@
1
- { "version": "4.2.8" }
1
+ { "version": "4.2.9" }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@portal-hq/utils",
3
- "version": "4.2.8",
3
+ "version": "4.2.9",
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": "0cb8282a3ead1e8d968f563d3ec4bb729c7187c5"
29
+ "gitHead": "f661ab7847d1616e9305c5f44cf1b808be47338c"
30
30
  }
@@ -2,6 +2,9 @@ import PortalConnect from '@portal-hq/connect'
2
2
  import {
3
3
  BuildEip155TransactionResponse,
4
4
  BuildSolanaTransactionResponse,
5
+ BuildBitcoinP2wpkhTransactionResponse,
6
+ BroadcastParam,
7
+ BroadcastBitcoinP2wpkhTransactionResponse,
5
8
  FundParams,
6
9
  FundResponse,
7
10
  YieldXyzGetYieldsRequest,
@@ -81,6 +84,10 @@ export interface SendAssetParams {
81
84
  amount: string
82
85
  token: string
83
86
  signatureApprovalMemo?: string
87
+ /**
88
+ * Enables gas fee sponsorship.
89
+ * Only supported for EVM and Solana chains.
90
+ */
84
91
  sponsorGas?: boolean
85
92
  }
86
93
 
@@ -191,6 +198,14 @@ export interface IPortalApi {
191
198
  request: YieldXyzTrackTransactionRequest,
192
199
  ): Promise<YieldXyzTrackTransactionResponse>
193
200
  getAssets(chainId: string): Promise<AssetsResponse>
201
+ buildBitcoinP2wpkhTransaction(
202
+ chainId: string,
203
+ params: { to: string; token: string; amount: string },
204
+ ): Promise<BuildBitcoinP2wpkhTransactionResponse>
205
+ broadcastBitcoinP2wpkhTransaction(
206
+ chainId: string,
207
+ params: BroadcastParam,
208
+ ): Promise<BroadcastBitcoinP2wpkhTransactionResponse>
194
209
  }
195
210
 
196
211
  export interface IPortalConnect {
@@ -43,6 +43,12 @@ enum Events {
43
43
  ZeroXGetPrice = 'ZeroX Get Price',
44
44
 
45
45
  GetAssets = 'Get Assets',
46
+
47
+ HypernativeScanTx = 'Hypernative Scan Transaction',
48
+ HypernativeScanAddresses = 'Hypernative Scan Addresses',
49
+ HypernativeScanNFTs = 'Hypernative Scan NFTs',
50
+ HypernativeScanTokens = 'Hypernative Scan Tokens',
51
+ HypernativeScanURL = 'Hypernative Scan URL',
46
52
  }
47
53
 
48
54
  export default Events
@@ -1 +1 @@
1
- { "version": "4.2.8" }
1
+ { "version": "4.2.9" }