@flashbacktech/flashbackclient 0.1.63 → 0.1.64
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.
|
@@ -21,7 +21,7 @@ export declare class FundingOps {
|
|
|
21
21
|
* @param amount - Amount to mint in the stable asset's smallest unit
|
|
22
22
|
* @returns Promise resolving to the minting result
|
|
23
23
|
*/
|
|
24
|
-
|
|
24
|
+
testFaucet: (receiver: string, amount: bigint) => Promise<void>;
|
|
25
25
|
/**
|
|
26
26
|
* Changes the admin of the stable asset contract (owner only)
|
|
27
27
|
* @param new_admin - Address of the new admin
|
|
@@ -27,9 +27,8 @@ class FundingOps {
|
|
|
27
27
|
* @param amount - Amount to mint in the stable asset's smallest unit
|
|
28
28
|
* @returns Promise resolving to the minting result
|
|
29
29
|
*/
|
|
30
|
-
this.
|
|
31
|
-
await (0, transaction_1.executeWalletTransaction)(this.context,
|
|
32
|
-
{ value: receiver, type: 'address' },
|
|
30
|
+
this.testFaucet = (0, decorator_1.withSignature)(async (receiver, amount) => {
|
|
31
|
+
await (0, transaction_1.executeWalletTransaction)(this.context, receiver, "test_faucet", [
|
|
33
32
|
{ value: amount, type: 'i128' }
|
|
34
33
|
]);
|
|
35
34
|
});
|