@flashbacktech/flashbackclient 0.1.63 → 0.1.65

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.
@@ -6,8 +6,8 @@ import { ClientContext } from '.';
6
6
  export declare class FundingOps {
7
7
  private context;
8
8
  constructor(context: ClientContext);
9
- getStableAssetName(): Promise<string>;
10
- getStableAssetAddress(): Promise<string>;
9
+ getStableAssetName(wallet_address: string): Promise<string>;
10
+ getStableAssetAddress(wallet_address: string): Promise<string>;
11
11
  /**
12
12
  * Sends funds from the contract to a receiver (owner only)
13
13
  * @param receiver - Address of the receiver
@@ -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
- testFaucetOwner: (receiver: string, amount: bigint) => Promise<void>;
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.testFaucetOwner = (0, decorator_1.withSignature)(async (receiver, amount) => {
31
- await (0, transaction_1.executeWalletTransaction)(this.context, '', "test_faucet_owner", [
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
  });
@@ -45,8 +44,8 @@ class FundingOps {
45
44
  });
46
45
  this.context = context;
47
46
  }
48
- async getStableAssetName() {
49
- const response = await (0, transaction_1.prepareTransaction)(this.context, '', {
47
+ async getStableAssetName(wallet_address) {
48
+ const response = await (0, transaction_1.prepareTransaction)(this.context, wallet_address, {
50
49
  method: 'get_stable_asset_name',
51
50
  args: []
52
51
  });
@@ -55,8 +54,8 @@ class FundingOps {
55
54
  }
56
55
  return '';
57
56
  }
58
- async getStableAssetAddress() {
59
- const response = await (0, transaction_1.prepareTransaction)(this.context, '', {
57
+ async getStableAssetAddress(wallet_address) {
58
+ const response = await (0, transaction_1.prepareTransaction)(this.context, wallet_address, {
60
59
  method: 'get_stable_asset_address',
61
60
  args: []
62
61
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flashbacktech/flashbackclient",
3
- "version": "0.1.63",
3
+ "version": "0.1.65",
4
4
  "type": "commonjs",
5
5
  "publishConfig": {
6
6
  "access": "public"