@flashbacktech/flashbackclient 0.1.56 → 0.1.58

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.
@@ -1,5 +1,5 @@
1
1
  import { ClientContext } from '.';
2
- import { Bucket, BucketCreateParams, BucketUpdateBasicParams, BucketUpdateConditionsParams } from '../models';
2
+ import { Bucket, BucketCreateParams, BucketMarketplace, BucketUpdateBasicParams, BucketUpdateConditionsParams } from '../models';
3
3
  /**
4
4
  * Bucket operations client for FlashOnStellar V2
5
5
  * Implements all bucket-related contract methods
@@ -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<Bucket[]>;
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' },
@@ -46,6 +46,27 @@ export interface Bucket {
46
46
  status: BucketStatus;
47
47
  locked: boolean;
48
48
  }
49
+ export interface BucketMarketplace {
50
+ bucket_id: number;
51
+ name: string;
52
+ region: string;
53
+ provider_id: string;
54
+ provider_name: string;
55
+ provider_reputation: string;
56
+ fb_bucket_id: string;
57
+ price_per_gb_storage: bigint;
58
+ price_per_gb_egress: bigint;
59
+ versioning_enabled: boolean;
60
+ encryption_at_rest: boolean;
61
+ encryption_in_transit: boolean;
62
+ object_locking: boolean;
63
+ api_compatibility: string;
64
+ sla_avg_latency_ms: number;
65
+ sla_avg_uptime_pct: number;
66
+ created_ts: bigint;
67
+ status: BucketStatus;
68
+ locked: boolean;
69
+ }
49
70
  export declare enum BucketStatus {
50
71
  Active = "Active",
51
72
  Inactive = "Inactive",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flashbacktech/flashbackclient",
3
- "version": "0.1.56",
3
+ "version": "0.1.58",
4
4
  "type": "commonjs",
5
5
  "publishConfig": {
6
6
  "access": "public"