@owney/sdk 0.7.7-beta.4 → 0.7.7-beta.6
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.
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +8 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -223,7 +223,6 @@ function mapPendingAllocations(raw) {
|
|
|
223
223
|
for (const entry of raw) {
|
|
224
224
|
if (typeof entry !== "object" || entry === null) continue;
|
|
225
225
|
const e = entry;
|
|
226
|
-
if (e.isPending !== true) continue;
|
|
227
226
|
if (typeof e.chainId !== "number" || !Number.isFinite(e.chainId)) continue;
|
|
228
227
|
if (typeof e.tokenSymbol !== "string" || e.tokenSymbol === "") continue;
|
|
229
228
|
if (typeof e.balance !== "string") continue;
|
|
@@ -238,6 +237,7 @@ function mapPendingAllocations(raw) {
|
|
|
238
237
|
chainId: e.chainId,
|
|
239
238
|
asset: e.tokenSymbol,
|
|
240
239
|
amount: String(amount),
|
|
240
|
+
isPending: e.isPending === true,
|
|
241
241
|
...typeof e.updatedAt === "string" && e.updatedAt !== "" ? { since: e.updatedAt } : {}
|
|
242
242
|
});
|
|
243
243
|
}
|
package/dist/index.d.cts
CHANGED
|
@@ -192,6 +192,14 @@ interface OwneyPendingAllocation {
|
|
|
192
192
|
asset: string;
|
|
193
193
|
/** Decimal string, consistent with `OwneyToken.amount`. */
|
|
194
194
|
amount: string;
|
|
195
|
+
/**
|
|
196
|
+
* Zyfai's own `isPending` flag. TRUE means it is actively allocating. FALSE
|
|
197
|
+
* does NOT mean the entry is stale or safe to ignore: Zyfai flips it within
|
|
198
|
+
* minutes but leaves funds listed here indefinitely when it has not indexed
|
|
199
|
+
* the pool they landed in. Entries are surfaced regardless of this flag; use
|
|
200
|
+
* it only to decide wording, never to decide whether the money counts.
|
|
201
|
+
*/
|
|
202
|
+
isPending: boolean;
|
|
195
203
|
/** ISO timestamp from Zyfai's `updatedAt`, when the payload carries one. */
|
|
196
204
|
since?: string;
|
|
197
205
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -192,6 +192,14 @@ interface OwneyPendingAllocation {
|
|
|
192
192
|
asset: string;
|
|
193
193
|
/** Decimal string, consistent with `OwneyToken.amount`. */
|
|
194
194
|
amount: string;
|
|
195
|
+
/**
|
|
196
|
+
* Zyfai's own `isPending` flag. TRUE means it is actively allocating. FALSE
|
|
197
|
+
* does NOT mean the entry is stale or safe to ignore: Zyfai flips it within
|
|
198
|
+
* minutes but leaves funds listed here indefinitely when it has not indexed
|
|
199
|
+
* the pool they landed in. Entries are surfaced regardless of this flag; use
|
|
200
|
+
* it only to decide wording, never to decide whether the money counts.
|
|
201
|
+
*/
|
|
202
|
+
isPending: boolean;
|
|
195
203
|
/** ISO timestamp from Zyfai's `updatedAt`, when the payload carries one. */
|
|
196
204
|
since?: string;
|
|
197
205
|
}
|
package/dist/index.js
CHANGED
|
@@ -190,7 +190,6 @@ function mapPendingAllocations(raw) {
|
|
|
190
190
|
for (const entry of raw) {
|
|
191
191
|
if (typeof entry !== "object" || entry === null) continue;
|
|
192
192
|
const e = entry;
|
|
193
|
-
if (e.isPending !== true) continue;
|
|
194
193
|
if (typeof e.chainId !== "number" || !Number.isFinite(e.chainId)) continue;
|
|
195
194
|
if (typeof e.tokenSymbol !== "string" || e.tokenSymbol === "") continue;
|
|
196
195
|
if (typeof e.balance !== "string") continue;
|
|
@@ -205,6 +204,7 @@ function mapPendingAllocations(raw) {
|
|
|
205
204
|
chainId: e.chainId,
|
|
206
205
|
asset: e.tokenSymbol,
|
|
207
206
|
amount: String(amount),
|
|
207
|
+
isPending: e.isPending === true,
|
|
208
208
|
...typeof e.updatedAt === "string" && e.updatedAt !== "" ? { since: e.updatedAt } : {}
|
|
209
209
|
});
|
|
210
210
|
}
|