@flashbacktech/flashbackclient 0.2.63 → 0.2.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.
@@ -15,7 +15,7 @@ export declare class DealOps {
15
15
  * @param params - Deal creation parameters
16
16
  * @returns Promise resolving to the created deal ID
17
17
  */
18
- createDeal: (consumer_id: string, provider_id: string, bucket_id: number, params: DealCreateParams) => Promise<any>;
18
+ createDeal: (consumer_id: string, provider_id: string, bucket_id: number, fb_repo_id: string, params: DealCreateParams) => Promise<any>;
19
19
  /**
20
20
  * Sets a deal as accepted by the provider
21
21
  * @param consumer_id - Address of the consumer
@@ -17,10 +17,11 @@ class DealOps {
17
17
  * @param params - Deal creation parameters
18
18
  * @returns Promise resolving to the created deal ID
19
19
  */
20
- this.createDeal = (0, decorator_1.withSignature)(async (consumer_id, provider_id, bucket_id, params) => {
20
+ this.createDeal = (0, decorator_1.withSignature)(async (consumer_id, provider_id, bucket_id, fb_repo_id, params) => {
21
21
  const response = await (0, transaction_1.executeWalletTransaction)(this.context, consumer_id, "create_deal", [
22
22
  { value: provider_id, type: 'address' },
23
23
  { value: bucket_id, type: 'u32' },
24
+ { value: fb_repo_id, type: 'string' },
24
25
  { value: params.duration_secs, type: 'u64' },
25
26
  { value: params.agreed_storage_gb, type: 'u32' },
26
27
  { value: params.agreed_egress_gb, type: 'u32' },
@@ -150,7 +150,6 @@ export interface DealCreateParams {
150
150
  duration_secs: bigint;
151
151
  agreed_storage_gb: number;
152
152
  agreed_egress_gb: number;
153
- fb_repo_id: string;
154
153
  api_compatibility: string;
155
154
  }
156
155
  export interface BucketUpdateBasicParams {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flashbacktech/flashbackclient",
3
- "version": "0.2.63",
3
+ "version": "0.2.65",
4
4
  "type": "commonjs",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -27,7 +27,7 @@
27
27
  "@aws-sdk/client-sts": "^3.777.0",
28
28
  "@flashbacktech/flashbackclient": "^0.2.58",
29
29
  "@google-cloud/storage": "^7.15.0",
30
- "@stellar/stellar-sdk": "^14.0.0",
30
+ "@stellar/stellar-sdk": "^14.5.0",
31
31
  "formdata-node": "^6.0.3",
32
32
  "google-auth-library": "^9.15.1",
33
33
  "openai": "^6.6.0"