@portal-hq/utils 4.2.7 → 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.7" }
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.7" }
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.7",
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": "d398df655803c96d576463cbd19ba023fc13c2b7"
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,
@@ -74,15 +77,24 @@ export interface RequestArguments {
74
77
 
75
78
  export interface RequestOptions {
76
79
  sponsorGas?: boolean
80
+ signatureApprovalMemo?: string
77
81
  }
78
82
  export interface SendAssetParams {
79
83
  to: string
80
84
  amount: string
81
85
  token: string
82
86
  signatureApprovalMemo?: string
87
+ /**
88
+ * Enables gas fee sponsorship.
89
+ * Only supported for EVM and Solana chains.
90
+ */
83
91
  sponsorGas?: boolean
84
92
  }
85
93
 
94
+ export interface RawSignOptions {
95
+ signatureApprovalMemo?: string
96
+ }
97
+
86
98
  export type SigningRequestParams = Eip1559 | LegacyTx
87
99
 
88
100
  export interface IPortalApi {
@@ -186,6 +198,14 @@ export interface IPortalApi {
186
198
  request: YieldXyzTrackTransactionRequest,
187
199
  ): Promise<YieldXyzTrackTransactionResponse>
188
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>
189
209
  }
190
210
 
191
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.7" }
1
+ { "version": "4.2.9" }
package/types.d.ts CHANGED
@@ -281,6 +281,7 @@ export interface SigningRequestArguments {
281
281
  readonly params?: unknown[] | SigningRequestParams
282
282
  readonly isRaw?: boolean
283
283
  readonly sponsorGas?: boolean
284
+ readonly signatureApprovalMemo?: string
284
285
  }
285
286
 
286
287
  export interface SigningResponse {