@frontiertower/frontier-sdk 0.1.4 → 0.2.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
@@ -49,6 +49,7 @@ Your app must declare required permissions in the Frontier app registry:
49
49
  - `wallet:transferERC20` - Transfer ERC20 tokens
50
50
  - `wallet:approveERC20` - Approve ERC20 token spending
51
51
  - `wallet:transferNative` - Transfer native currency (ETH)
52
+ - `wallet:transferFrontierDollar` - Transfer Frontier Dollars
52
53
  - `wallet:executeCall` - Execute arbitrary contract calls
53
54
 
54
55
  ### Storage Permissions
package/dist/index.d.mts CHANGED
@@ -232,6 +232,32 @@ declare class WalletAccess {
232
232
  * ```
233
233
  */
234
234
  executeCall(call: ExecuteCall, overrides?: GasOverrides): Promise<UserOperationReceipt>;
235
+ /**
236
+ * Transfer Frontier Dollars to another address
237
+ *
238
+ * Sends Frontier Dollars (the native stablecoin) to a recipient address.
239
+ * Requires biometric authentication and sufficient balance.
240
+ *
241
+ * @param to - Recipient address
242
+ * @param amount - Amount to send (as string, e.g., '10.5' for 10.5 Frontier Dollars)
243
+ * @param overrides - Optional gas overrides
244
+ * @returns User operation receipt with transaction details
245
+ * @throws {Error} If insufficient balance or transaction fails
246
+ *
247
+ * @example
248
+ * ```typescript
249
+ * const receipt = await sdk.getWallet().transferFrontierDollar({
250
+ * to: '0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb',
251
+ * amount: '10.5' // 10.5 Frontier Dollars
252
+ * });
253
+ * console.log('Transaction:', receipt.transactionHash);
254
+ * ```
255
+ */
256
+ transferFrontierDollar(payload: {
257
+ to: string;
258
+ amount: string;
259
+ overrides?: GasOverrides;
260
+ }): Promise<UserOperationReceipt>;
235
261
  }
236
262
 
237
263
  /**
package/dist/index.d.ts CHANGED
@@ -232,6 +232,32 @@ declare class WalletAccess {
232
232
  * ```
233
233
  */
234
234
  executeCall(call: ExecuteCall, overrides?: GasOverrides): Promise<UserOperationReceipt>;
235
+ /**
236
+ * Transfer Frontier Dollars to another address
237
+ *
238
+ * Sends Frontier Dollars (the native stablecoin) to a recipient address.
239
+ * Requires biometric authentication and sufficient balance.
240
+ *
241
+ * @param to - Recipient address
242
+ * @param amount - Amount to send (as string, e.g., '10.5' for 10.5 Frontier Dollars)
243
+ * @param overrides - Optional gas overrides
244
+ * @returns User operation receipt with transaction details
245
+ * @throws {Error} If insufficient balance or transaction fails
246
+ *
247
+ * @example
248
+ * ```typescript
249
+ * const receipt = await sdk.getWallet().transferFrontierDollar({
250
+ * to: '0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb',
251
+ * amount: '10.5' // 10.5 Frontier Dollars
252
+ * });
253
+ * console.log('Transaction:', receipt.transactionHash);
254
+ * ```
255
+ */
256
+ transferFrontierDollar(payload: {
257
+ to: string;
258
+ amount: string;
259
+ overrides?: GasOverrides;
260
+ }): Promise<UserOperationReceipt>;
235
261
  }
236
262
 
237
263
  /**
package/dist/index.js CHANGED
@@ -231,6 +231,35 @@ var WalletAccess = class {
231
231
  overrides
232
232
  });
233
233
  }
234
+ /**
235
+ * Transfer Frontier Dollars to another address
236
+ *
237
+ * Sends Frontier Dollars (the native stablecoin) to a recipient address.
238
+ * Requires biometric authentication and sufficient balance.
239
+ *
240
+ * @param to - Recipient address
241
+ * @param amount - Amount to send (as string, e.g., '10.5' for 10.5 Frontier Dollars)
242
+ * @param overrides - Optional gas overrides
243
+ * @returns User operation receipt with transaction details
244
+ * @throws {Error} If insufficient balance or transaction fails
245
+ *
246
+ * @example
247
+ * ```typescript
248
+ * const receipt = await sdk.getWallet().transferFrontierDollar({
249
+ * to: '0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb',
250
+ * amount: '10.5' // 10.5 Frontier Dollars
251
+ * });
252
+ * console.log('Transaction:', receipt.transactionHash);
253
+ * ```
254
+ */
255
+ async transferFrontierDollar(payload) {
256
+ const { to, amount, overrides } = payload;
257
+ return this.sdk.request("wallet:transferFrontierDollar", {
258
+ to,
259
+ amount,
260
+ overrides
261
+ });
262
+ }
234
263
  };
235
264
 
236
265
  // src/access/storage.ts
package/dist/index.mjs CHANGED
@@ -201,6 +201,35 @@ var WalletAccess = class {
201
201
  overrides
202
202
  });
203
203
  }
204
+ /**
205
+ * Transfer Frontier Dollars to another address
206
+ *
207
+ * Sends Frontier Dollars (the native stablecoin) to a recipient address.
208
+ * Requires biometric authentication and sufficient balance.
209
+ *
210
+ * @param to - Recipient address
211
+ * @param amount - Amount to send (as string, e.g., '10.5' for 10.5 Frontier Dollars)
212
+ * @param overrides - Optional gas overrides
213
+ * @returns User operation receipt with transaction details
214
+ * @throws {Error} If insufficient balance or transaction fails
215
+ *
216
+ * @example
217
+ * ```typescript
218
+ * const receipt = await sdk.getWallet().transferFrontierDollar({
219
+ * to: '0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb',
220
+ * amount: '10.5' // 10.5 Frontier Dollars
221
+ * });
222
+ * console.log('Transaction:', receipt.transactionHash);
223
+ * ```
224
+ */
225
+ async transferFrontierDollar(payload) {
226
+ const { to, amount, overrides } = payload;
227
+ return this.sdk.request("wallet:transferFrontierDollar", {
228
+ to,
229
+ amount,
230
+ overrides
231
+ });
232
+ }
204
233
  };
205
234
 
206
235
  // src/access/storage.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frontiertower/frontier-sdk",
3
- "version": "0.1.4",
3
+ "version": "0.2.0",
4
4
  "description": "SDK for building apps on Frontier Wallet",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -45,7 +45,7 @@
45
45
  },
46
46
  "repository": {
47
47
  "type": "git",
48
- "url": "git+https://github.com/frontiertower/frontier-sdk.git"
48
+ "url": "git+https://github.com/BerlinhouseLabs/frontier-sdk.git"
49
49
  },
50
50
  "readme": "README.md"
51
51
  }