@flashbacktech/flashbackclient 0.1.58 → 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.
|
@@ -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
|
/**
|