@flashbacktech/flashbackclient 0.2.67 → 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,20 +81,22 @@ 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
|
+
/** Ledger timestamp of last settlement. Oracle uses this to query consumption from last_settled_ts to now. */
|
|
99
|
+
last_settled_ts: bigint;
|
|
98
100
|
}
|
|
99
101
|
export interface DealInfo {
|
|
100
102
|
deal: Deal;
|
|
@@ -148,8 +150,8 @@ export interface BucketCreateParams {
|
|
|
148
150
|
}
|
|
149
151
|
export interface DealCreateParams {
|
|
150
152
|
duration_secs: bigint;
|
|
151
|
-
|
|
152
|
-
|
|
153
|
+
agreed_storage_mb: number;
|
|
154
|
+
agreed_egress_mb: number;
|
|
153
155
|
api_compatibility: string;
|
|
154
156
|
}
|
|
155
157
|
export interface BucketUpdateBasicParams {
|
|
@@ -166,8 +168,8 @@ export interface BucketUpdateConditionsParams {
|
|
|
166
168
|
sla_avg_uptime_pct?: number;
|
|
167
169
|
}
|
|
168
170
|
export interface DealConsumptionUpdateParams {
|
|
169
|
-
|
|
170
|
-
|
|
171
|
+
storage_mb: number;
|
|
172
|
+
egress_mb: number;
|
|
171
173
|
}
|
|
172
174
|
export interface DealSLAUpdateParams {
|
|
173
175
|
sla_avg_latency_ms: number;
|
|
@@ -40,7 +40,8 @@ const getServer = (network) => {
|
|
|
40
40
|
break;
|
|
41
41
|
case "PUBLIC":
|
|
42
42
|
//serverUrl = "https://rpc.stellar.org";
|
|
43
|
-
serverUrl = "https://stellar-soroban-public.nodies.app";
|
|
43
|
+
//serverUrl = "https://stellar-soroban-public.nodies.app";
|
|
44
|
+
serverUrl = "https://soroban-rpc.mainnet.stellar.gateway.fm";
|
|
44
45
|
break;
|
|
45
46
|
}
|
|
46
47
|
// For Stellar SDK v13+, we need to handle the allowHttp issue
|