@frontiertower/frontier-sdk 0.10.0 → 0.11.0

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/README.md CHANGED
@@ -58,6 +58,7 @@ Your app must declare required permissions in the Frontier app registry:
58
58
  - `wallet:transferNative` - Transfer native currency (ETH)
59
59
  - `wallet:transferFrontierDollar` - Transfer Frontier Dollars
60
60
  - `wallet:transferInternalFrontierDollar` - Transfer Internal Frontier Dollars
61
+ - `wallet:transferOverallFrontierDollar` - Transfer Frontier Dollars with iFTD preferred
61
62
  - `wallet:executeCall` - Execute arbitrary contract calls
62
63
  - `wallet:executeBatchCall` - Execute multiple contract calls atomically
63
64
  - `wallet:getSupportedTokens` - Get list of supported tokens for swaps
package/dist/index.d.mts CHANGED
@@ -354,6 +354,27 @@ declare class WalletAccess {
354
354
  * ```
355
355
  */
356
356
  transferInternalFrontierDollar(to: string, amount: string, overrides?: GasOverrides): Promise<UserOperationReceipt>;
357
+ /**
358
+ * Transfer Frontier Dollars with Internal Frontier Dollars (iFTD) preferred
359
+ *
360
+ * This method will use Internal Frontier Dollars first, and if insufficient,
361
+ * it will use regular Frontier Dollars to complete the transfer.
362
+ *
363
+ * @param to - Recipient address
364
+ * @param amount - Amount to send (as string, e.g., '10.5')
365
+ * @param overrides - Optional gas overrides
366
+ * @returns User operation receipt with transaction details
367
+ * @throws {Error} If insufficient total balance or transaction fails
368
+ *
369
+ * @example
370
+ * ```typescript
371
+ * const receipt = await sdk.getWallet().transferOverallFrontierDollar(
372
+ * '0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb',
373
+ * '10.5'
374
+ * );
375
+ * ```
376
+ */
377
+ transferOverallFrontierDollar(to: string, amount: string, overrides?: GasOverrides): Promise<UserOperationReceipt>;
357
378
  /**
358
379
  * Execute multiple calls atomically with a single signature
359
380
  *
package/dist/index.d.ts CHANGED
@@ -354,6 +354,27 @@ declare class WalletAccess {
354
354
  * ```
355
355
  */
356
356
  transferInternalFrontierDollar(to: string, amount: string, overrides?: GasOverrides): Promise<UserOperationReceipt>;
357
+ /**
358
+ * Transfer Frontier Dollars with Internal Frontier Dollars (iFTD) preferred
359
+ *
360
+ * This method will use Internal Frontier Dollars first, and if insufficient,
361
+ * it will use regular Frontier Dollars to complete the transfer.
362
+ *
363
+ * @param to - Recipient address
364
+ * @param amount - Amount to send (as string, e.g., '10.5')
365
+ * @param overrides - Optional gas overrides
366
+ * @returns User operation receipt with transaction details
367
+ * @throws {Error} If insufficient total balance or transaction fails
368
+ *
369
+ * @example
370
+ * ```typescript
371
+ * const receipt = await sdk.getWallet().transferOverallFrontierDollar(
372
+ * '0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb',
373
+ * '10.5'
374
+ * );
375
+ * ```
376
+ */
377
+ transferOverallFrontierDollar(to: string, amount: string, overrides?: GasOverrides): Promise<UserOperationReceipt>;
357
378
  /**
358
379
  * Execute multiple calls atomically with a single signature
359
380
  *
package/dist/index.js CHANGED
@@ -299,6 +299,33 @@ var WalletAccess = class {
299
299
  overrides
300
300
  });
301
301
  }
302
+ /**
303
+ * Transfer Frontier Dollars with Internal Frontier Dollars (iFTD) preferred
304
+ *
305
+ * This method will use Internal Frontier Dollars first, and if insufficient,
306
+ * it will use regular Frontier Dollars to complete the transfer.
307
+ *
308
+ * @param to - Recipient address
309
+ * @param amount - Amount to send (as string, e.g., '10.5')
310
+ * @param overrides - Optional gas overrides
311
+ * @returns User operation receipt with transaction details
312
+ * @throws {Error} If insufficient total balance or transaction fails
313
+ *
314
+ * @example
315
+ * ```typescript
316
+ * const receipt = await sdk.getWallet().transferOverallFrontierDollar(
317
+ * '0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb',
318
+ * '10.5'
319
+ * );
320
+ * ```
321
+ */
322
+ async transferOverallFrontierDollar(to, amount, overrides) {
323
+ return this.sdk.request("wallet:transferOverallFrontierDollar", {
324
+ to,
325
+ amount,
326
+ overrides
327
+ });
328
+ }
302
329
  /**
303
330
  * Execute multiple calls atomically with a single signature
304
331
  *
package/dist/index.mjs CHANGED
@@ -269,6 +269,33 @@ var WalletAccess = class {
269
269
  overrides
270
270
  });
271
271
  }
272
+ /**
273
+ * Transfer Frontier Dollars with Internal Frontier Dollars (iFTD) preferred
274
+ *
275
+ * This method will use Internal Frontier Dollars first, and if insufficient,
276
+ * it will use regular Frontier Dollars to complete the transfer.
277
+ *
278
+ * @param to - Recipient address
279
+ * @param amount - Amount to send (as string, e.g., '10.5')
280
+ * @param overrides - Optional gas overrides
281
+ * @returns User operation receipt with transaction details
282
+ * @throws {Error} If insufficient total balance or transaction fails
283
+ *
284
+ * @example
285
+ * ```typescript
286
+ * const receipt = await sdk.getWallet().transferOverallFrontierDollar(
287
+ * '0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb',
288
+ * '10.5'
289
+ * );
290
+ * ```
291
+ */
292
+ async transferOverallFrontierDollar(to, amount, overrides) {
293
+ return this.sdk.request("wallet:transferOverallFrontierDollar", {
294
+ to,
295
+ amount,
296
+ overrides
297
+ });
298
+ }
272
299
  /**
273
300
  * Execute multiple calls atomically with a single signature
274
301
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frontiertower/frontier-sdk",
3
- "version": "0.10.0",
3
+ "version": "0.11.0",
4
4
  "description": "SDK for building apps on Frontier Wallet",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",