@flashbacktech/flashbackclient 0.2.68 → 0.2.69
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.
|
@@ -23,8 +23,8 @@ class DealOps {
|
|
|
23
23
|
{ value: bucket_id, type: 'u32' },
|
|
24
24
|
{ value: fb_repo_id, type: 'string' },
|
|
25
25
|
{ value: params.duration_secs, type: 'u64' },
|
|
26
|
-
{ value: params.
|
|
27
|
-
{ value: params.
|
|
26
|
+
{ value: params.agreed_storage_mb, type: 'u64' },
|
|
27
|
+
{ value: params.agreed_egress_mb, type: 'u64' },
|
|
28
28
|
{ value: params.api_compatibility, type: 'string' }
|
|
29
29
|
]);
|
|
30
30
|
if (!response.isSuccess) {
|
|
@@ -155,8 +155,8 @@ class DealOps {
|
|
|
155
155
|
{ value: provider_id, type: 'address' },
|
|
156
156
|
{ value: consumer_id, type: 'address' },
|
|
157
157
|
{ value: deal_id, type: 'u32' },
|
|
158
|
-
{ value: params.
|
|
159
|
-
{ value: params.
|
|
158
|
+
{ value: params.storage_mb, type: 'u64' },
|
|
159
|
+
{ value: params.egress_mb, type: 'u64' }
|
|
160
160
|
]);
|
|
161
161
|
});
|
|
162
162
|
/**
|
|
@@ -81,19 +81,19 @@ export interface Deal {
|
|
|
81
81
|
api_compatibility: string;
|
|
82
82
|
start_ts: bigint;
|
|
83
83
|
duration_secs: bigint;
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
84
|
+
agreed_storage_mb: number;
|
|
85
|
+
agreed_egress_mb: number;
|
|
86
|
+
unpaid_storage_mb: number;
|
|
87
|
+
unpaid_egress_mb: number;
|
|
88
|
+
paid_storage_mb: number;
|
|
89
|
+
paid_egress_mb: number;
|
|
90
90
|
status: DealStatus;
|
|
91
91
|
balance_consumer: bigint;
|
|
92
92
|
balance_provider: bigint;
|
|
93
93
|
sla_avg_latency_ms: number;
|
|
94
94
|
sla_avg_uptime_pct: number;
|
|
95
|
-
|
|
96
|
-
|
|
95
|
+
slash_storage_mb: number;
|
|
96
|
+
slash_egress_mb: number;
|
|
97
97
|
slash_amount_usd: bigint;
|
|
98
98
|
/** Ledger timestamp of last settlement. Oracle uses this to query consumption from last_settled_ts to now. */
|
|
99
99
|
last_settled_ts: bigint;
|
|
@@ -150,8 +150,8 @@ export interface BucketCreateParams {
|
|
|
150
150
|
}
|
|
151
151
|
export interface DealCreateParams {
|
|
152
152
|
duration_secs: bigint;
|
|
153
|
-
|
|
154
|
-
|
|
153
|
+
agreed_storage_mb: number;
|
|
154
|
+
agreed_egress_mb: number;
|
|
155
155
|
api_compatibility: string;
|
|
156
156
|
}
|
|
157
157
|
export interface BucketUpdateBasicParams {
|
|
@@ -168,8 +168,8 @@ export interface BucketUpdateConditionsParams {
|
|
|
168
168
|
sla_avg_uptime_pct?: number;
|
|
169
169
|
}
|
|
170
170
|
export interface DealConsumptionUpdateParams {
|
|
171
|
-
|
|
172
|
-
|
|
171
|
+
storage_mb: number;
|
|
172
|
+
egress_mb: number;
|
|
173
173
|
}
|
|
174
174
|
export interface DealSLAUpdateParams {
|
|
175
175
|
sla_avg_latency_ms: number;
|