@unicitylabs/sphere-sdk 0.16.0 → 0.17.1
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/connect/index.cjs +11 -5
- package/dist/connect/index.cjs.map +1 -1
- package/dist/connect/index.d.cts +4 -1
- package/dist/connect/index.d.ts +4 -1
- package/dist/connect/index.js +11 -5
- package/dist/connect/index.js.map +1 -1
- package/dist/core/index.cjs +692 -268
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.cts +69 -0
- package/dist/core/index.d.ts +69 -0
- package/dist/core/index.js +692 -268
- package/dist/core/index.js.map +1 -1
- package/dist/impl/browser/connect/index.cjs +11 -5
- package/dist/impl/browser/connect/index.cjs.map +1 -1
- package/dist/impl/browser/connect/index.d.cts +3 -1
- package/dist/impl/browser/connect/index.d.ts +3 -1
- package/dist/impl/browser/connect/index.js +11 -5
- package/dist/impl/browser/connect/index.js.map +1 -1
- package/dist/impl/nodejs/connect/index.cjs +10 -4
- package/dist/impl/nodejs/connect/index.cjs.map +1 -1
- package/dist/impl/nodejs/connect/index.d.cts +1 -1
- package/dist/impl/nodejs/connect/index.d.ts +1 -1
- package/dist/impl/nodejs/connect/index.js +10 -4
- package/dist/impl/nodejs/connect/index.js.map +1 -1
- package/dist/impl/nodejs/index.d.cts +11 -0
- package/dist/impl/nodejs/index.d.ts +11 -0
- package/dist/impl/shared/wallet-api/index.d.cts +11 -0
- package/dist/impl/shared/wallet-api/index.d.ts +11 -0
- package/dist/impl/wallet-api-v2/index.cjs +2 -0
- package/dist/impl/wallet-api-v2/index.cjs.map +1 -1
- package/dist/impl/wallet-api-v2/index.d.cts +13 -0
- package/dist/impl/wallet-api-v2/index.d.ts +13 -0
- package/dist/impl/wallet-api-v2/index.js +2 -0
- package/dist/impl/wallet-api-v2/index.js.map +1 -1
- package/dist/index.cjs +692 -268
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +63 -1
- package/dist/index.d.ts +63 -1
- package/dist/index.js +692 -268
- package/dist/index.js.map +1 -1
- package/dist/modules/payments-v2/index.cjs +767 -398
- package/dist/modules/payments-v2/index.cjs.map +1 -1
- package/dist/modules/payments-v2/index.d.cts +91 -14
- package/dist/modules/payments-v2/index.d.ts +91 -14
- package/dist/modules/payments-v2/index.js +767 -398
- package/dist/modules/payments-v2/index.js.map +1 -1
- package/dist/token-engine/index.cjs +132 -34
- package/dist/token-engine/index.cjs.map +1 -1
- package/dist/token-engine/index.d.cts +19 -0
- package/dist/token-engine/index.d.ts +19 -0
- package/dist/token-engine/index.js +132 -34
- package/dist/token-engine/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -59,7 +59,18 @@ interface InventoryItemWire {
|
|
|
59
59
|
status: 'active' | 'removed';
|
|
60
60
|
seq: number;
|
|
61
61
|
stateHash: string;
|
|
62
|
+
/**
|
|
63
|
+
* Omitted for a tombstone AND for an ACTIVE COINLESS token (wallet-api#140),
|
|
64
|
+
* so absence is never "removed" or "not loaded" — discriminate on `status`.
|
|
65
|
+
*/
|
|
62
66
|
assets?: AssetWire[];
|
|
67
|
+
/**
|
|
68
|
+
* Genesis `TokenType`, lowercase hex (1-64 bytes ⇒ 2-128 chars). Names the
|
|
69
|
+
* token's CLASS, not the instance (wallet-api#147). Absent on rows written
|
|
70
|
+
* before wallet-api migration 0015. An unrecognised type is legitimate: never
|
|
71
|
+
* reject or hide a token for it.
|
|
72
|
+
*/
|
|
73
|
+
tokenType?: string;
|
|
63
74
|
}
|
|
64
75
|
interface InventoryPageWire {
|
|
65
76
|
cursor: number;
|
|
@@ -394,7 +405,9 @@ interface InventoryItem {
|
|
|
394
405
|
status: 'active' | 'removed';
|
|
395
406
|
seq: number;
|
|
396
407
|
stateHash: string;
|
|
408
|
+
/** Absent for a tombstone AND for an active COINLESS token — read `status`, not this. */
|
|
397
409
|
assets?: InventoryAsset[];
|
|
410
|
+
tokenType?: string;
|
|
398
411
|
}
|
|
399
412
|
interface InventoryPage {
|
|
400
413
|
cursor: number;
|
|
@@ -59,7 +59,18 @@ interface InventoryItemWire {
|
|
|
59
59
|
status: 'active' | 'removed';
|
|
60
60
|
seq: number;
|
|
61
61
|
stateHash: string;
|
|
62
|
+
/**
|
|
63
|
+
* Omitted for a tombstone AND for an ACTIVE COINLESS token (wallet-api#140),
|
|
64
|
+
* so absence is never "removed" or "not loaded" — discriminate on `status`.
|
|
65
|
+
*/
|
|
62
66
|
assets?: AssetWire[];
|
|
67
|
+
/**
|
|
68
|
+
* Genesis `TokenType`, lowercase hex (1-64 bytes ⇒ 2-128 chars). Names the
|
|
69
|
+
* token's CLASS, not the instance (wallet-api#147). Absent on rows written
|
|
70
|
+
* before wallet-api migration 0015. An unrecognised type is legitimate: never
|
|
71
|
+
* reject or hide a token for it.
|
|
72
|
+
*/
|
|
73
|
+
tokenType?: string;
|
|
63
74
|
}
|
|
64
75
|
interface InventoryPageWire {
|
|
65
76
|
cursor: number;
|
|
@@ -394,7 +405,9 @@ interface InventoryItem {
|
|
|
394
405
|
status: 'active' | 'removed';
|
|
395
406
|
seq: number;
|
|
396
407
|
stateHash: string;
|
|
408
|
+
/** Absent for a tombstone AND for an active COINLESS token — read `status`, not this. */
|
|
397
409
|
assets?: InventoryAsset[];
|
|
410
|
+
tokenType?: string;
|
|
398
411
|
}
|
|
399
412
|
interface InventoryPage {
|
|
400
413
|
cursor: number;
|
|
@@ -4443,6 +4443,8 @@ import { DataHasherFactory } from "@unicitylabs/state-transition-sdk/lib/crypto/
|
|
|
4443
4443
|
import { CborSerializer } from "@unicitylabs/state-transition-sdk/lib/serialization/cbor/CborSerializer.js";
|
|
4444
4444
|
import { CborDeserializer } from "@unicitylabs/state-transition-sdk/lib/serialization/cbor/CborDeserializer.js";
|
|
4445
4445
|
import { CborError } from "@unicitylabs/state-transition-sdk/lib/serialization/cbor/CborError.js";
|
|
4446
|
+
import { CborReader } from "@unicitylabs/state-transition-sdk/lib/serialization/cbor/CborReader.js";
|
|
4447
|
+
import { MajorType } from "@unicitylabs/state-transition-sdk/lib/serialization/cbor/MajorType.js";
|
|
4446
4448
|
import { Asset } from "@unicitylabs/state-transition-sdk/lib/payment/asset/Asset.js";
|
|
4447
4449
|
import { AssetId } from "@unicitylabs/state-transition-sdk/lib/payment/asset/AssetId.js";
|
|
4448
4450
|
import { PaymentAssetCollection } from "@unicitylabs/state-transition-sdk/lib/payment/asset/PaymentAssetCollection.js";
|