@flashbacktech/flashbackclient 0.1.57 → 0.1.59

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.
@@ -74,7 +74,7 @@ export declare class BucketOps {
74
74
  * @param take - Number of items to take per page
75
75
  * @returns Promise resolving to an array of Bucket objects
76
76
  */
77
- getBuckets(skip?: number, take?: number): Promise<BucketMarketplace[]>;
77
+ getBuckets(wallet_address: string, skip?: number, take?: number): Promise<BucketMarketplace[]>;
78
78
  /**
79
79
  * Retrieves all buckets owned by a specific provider
80
80
  * @param provider_id - Address of the provider
@@ -188,8 +188,8 @@ class BucketOps {
188
188
  * @param take - Number of items to take per page
189
189
  * @returns Promise resolving to an array of Bucket objects
190
190
  */
191
- async getBuckets(skip = 0, take = 10) {
192
- const response = await (0, transaction_1.prepareTransaction)(this.context, '', {
191
+ async getBuckets(wallet_address, skip = 0, take = 10) {
192
+ const response = await (0, transaction_1.prepareTransaction)(this.context, wallet_address, {
193
193
  method: 'get_buckets',
194
194
  args: [
195
195
  { value: skip, type: 'u32' },
@@ -32,7 +32,7 @@ export declare class DealOps {
32
32
  * @param amount_usd - Amount to fund in USD (scaled by 10^7)
33
33
  * @returns Promise resolving to the funding result
34
34
  */
35
- setDealFunded: (consumer_id: string, provider_id: string, deal_id: number, amount_usd: bigint) => Promise<void>;
35
+ setDealFunded: (consumer_id: string, provider_id: string, deal_id: number, amount_usd: bigint, fb_repo_id: string) => Promise<void>;
36
36
  /**
37
37
  * Sets a deal as completed
38
38
  * @param consumer_id - Address of the consumer
@@ -26,7 +26,6 @@ class DealOps {
26
26
  { value: params.duration_secs, type: 'u64' },
27
27
  { value: params.agreed_storage_gb, type: 'u32' },
28
28
  { value: params.agreed_egress_gb, type: 'u32' },
29
- { value: params.fb_repo_id, type: 'string' },
30
29
  { value: params.api_compatibility, type: 'string' }
31
30
  ]
32
31
  });
@@ -60,11 +59,12 @@ class DealOps {
60
59
  * @param amount_usd - Amount to fund in USD (scaled by 10^7)
61
60
  * @returns Promise resolving to the funding result
62
61
  */
63
- this.setDealFunded = (0, decorator_1.withSignature)(async (consumer_id, provider_id, deal_id, amount_usd) => {
62
+ this.setDealFunded = (0, decorator_1.withSignature)(async (consumer_id, provider_id, deal_id, amount_usd, fb_repo_id) => {
64
63
  await (0, transaction_1.executeWalletTransaction)(this.context, consumer_id, "set_deal_funded", [
65
64
  { value: provider_id, type: 'address' },
66
65
  { value: deal_id, type: 'u32' },
67
- { value: amount_usd, type: 'u128' }
66
+ { value: amount_usd, type: 'u128' },
67
+ { value: fb_repo_id, type: 'string' },
68
68
  ]);
69
69
  });
70
70
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flashbacktech/flashbackclient",
3
- "version": "0.1.57",
3
+ "version": "0.1.59",
4
4
  "type": "commonjs",
5
5
  "publishConfig": {
6
6
  "access": "public"