@unicitylabs/sphere-sdk 0.17.6 → 0.18.0-dev.2
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/chunks/{chunk-T4DZCXWS.js → chunk-FGQ6CKKK.js} +2 -2
- package/dist/connect/chunks/{chunk-T4DZCXWS.js.map → chunk-FGQ6CKKK.js.map} +1 -1
- package/dist/connect/chunks/{chunk-BRYRG2TL.js → chunk-JYBI36GK.js} +2 -2
- package/dist/connect/chunks/{chunk-MA32MTCD.js → chunk-OAAY2JEA.js} +2 -2
- package/dist/connect/index.cjs +1 -1
- package/dist/connect/index.cjs.map +1 -1
- package/dist/connect/index.js +3 -3
- package/dist/connect/internal/host.js +2 -2
- package/dist/core/index.cjs +304 -47
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.cts +392 -320
- package/dist/core/index.d.ts +392 -320
- package/dist/core/index.js +304 -47
- package/dist/core/index.js.map +1 -1
- package/dist/impl/browser/connect/index.cjs +1 -1
- package/dist/impl/browser/connect/index.cjs.map +1 -1
- package/dist/impl/browser/connect/index.js +2 -2
- 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 +30 -30
- package/dist/impl/wallet-api-v2/index.d.ts +30 -30
- 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 +304 -47
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +279 -154
- package/dist/index.d.ts +279 -154
- package/dist/index.js +304 -47
- package/dist/index.js.map +1 -1
- package/dist/modules/payments-v2/index.cjs +249 -28
- package/dist/modules/payments-v2/index.cjs.map +1 -1
- package/dist/modules/payments-v2/index.d.cts +252 -166
- package/dist/modules/payments-v2/index.d.ts +252 -166
- package/dist/modules/payments-v2/index.js +249 -28
- package/dist/modules/payments-v2/index.js.map +1 -1
- package/dist/token-engine/index.cjs +455 -427
- package/dist/token-engine/index.cjs.map +1 -1
- package/dist/token-engine/index.d.cts +26 -1
- package/dist/token-engine/index.d.ts +26 -1
- package/dist/token-engine/index.js +455 -427
- package/dist/token-engine/index.js.map +1 -1
- package/package.json +1 -1
- /package/dist/connect/chunks/{chunk-BRYRG2TL.js.map → chunk-JYBI36GK.js.map} +0 -0
- /package/dist/connect/chunks/{chunk-MA32MTCD.js.map → chunk-OAAY2JEA.js.map} +0 -0
|
@@ -266,6 +266,36 @@ declare class WalletApiV2Client {
|
|
|
266
266
|
wsTicket(): Promise<string>;
|
|
267
267
|
}
|
|
268
268
|
|
|
269
|
+
/**
|
|
270
|
+
* token-engine/engine.ts — the FROZEN public port (ITokenEngine) + its config.
|
|
271
|
+
*
|
|
272
|
+
* This is the contract both migration tracks build against. It is sphere-domain
|
|
273
|
+
* only (see types.ts). The granular, SDK-typed steps (buildMint, submit,
|
|
274
|
+
* awaitProof, certify, …) are an INTERNAL concern of the real adapter and are
|
|
275
|
+
* intentionally NOT part of this public interface.
|
|
276
|
+
*/
|
|
277
|
+
|
|
278
|
+
/**
|
|
279
|
+
* Durable, any-device store for a split's burn checkpoint (sdk-changes E.4, sphere-sdk#501
|
|
280
|
+
* option b). The engine passes opaque PLAINTEXT bytes; a transport adapter (the wallet-api
|
|
281
|
+
* provider) is responsible for AAD-encryption and the wallet-api §16 intent-progress round-trip.
|
|
282
|
+
*
|
|
283
|
+
* The store is the resume seed for the one split input the engine cannot re-derive — the burn's
|
|
284
|
+
* aggregator-issued inclusion proof — so the mint justification is rebuilt from stored bytes, not
|
|
285
|
+
* a refetch (the aggregator regenerates proofs per request).
|
|
286
|
+
*/
|
|
287
|
+
interface SplitCheckpointStore {
|
|
288
|
+
/**
|
|
289
|
+
* Insert-once, first-write-wins. MUST resolve only AFTER the store acked durability, and MUST
|
|
290
|
+
* resolve with the AUTHORITATIVE stored bytes — the caller's own on a fresh write, or the FIRST
|
|
291
|
+
* writer's when the slot `(transferId, opIndex)` was already taken (the caller adopts those and
|
|
292
|
+
* mints from them, so concurrent resumers converge on one burn proof).
|
|
293
|
+
*/
|
|
294
|
+
put(transferId: string, opIndex: number, bytes: Uint8Array): Promise<Uint8Array>;
|
|
295
|
+
/** The stored bytes for the slot, or `null` when none exists. */
|
|
296
|
+
get(transferId: string, opIndex: number): Promise<Uint8Array | null>;
|
|
297
|
+
}
|
|
298
|
+
|
|
269
299
|
interface ScopedKV {
|
|
270
300
|
get<T>(key: string): Promise<T | null>;
|
|
271
301
|
set<T>(key: string, value: T): Promise<void>;
|
|
@@ -571,36 +601,6 @@ declare class WalletApiDeliveryPort implements DeliveryPort {
|
|
|
571
601
|
private addSeenAll;
|
|
572
602
|
}
|
|
573
603
|
|
|
574
|
-
/**
|
|
575
|
-
* token-engine/engine.ts — the FROZEN public port (ITokenEngine) + its config.
|
|
576
|
-
*
|
|
577
|
-
* This is the contract both migration tracks build against. It is sphere-domain
|
|
578
|
-
* only (see types.ts). The granular, SDK-typed steps (buildMint, submit,
|
|
579
|
-
* awaitProof, certify, …) are an INTERNAL concern of the real adapter and are
|
|
580
|
-
* intentionally NOT part of this public interface.
|
|
581
|
-
*/
|
|
582
|
-
|
|
583
|
-
/**
|
|
584
|
-
* Durable, any-device store for a split's burn checkpoint (sdk-changes E.4, sphere-sdk#501
|
|
585
|
-
* option b). The engine passes opaque PLAINTEXT bytes; a transport adapter (the wallet-api
|
|
586
|
-
* provider) is responsible for AAD-encryption and the wallet-api §16 intent-progress round-trip.
|
|
587
|
-
*
|
|
588
|
-
* The store is the resume seed for the one split input the engine cannot re-derive — the burn's
|
|
589
|
-
* aggregator-issued inclusion proof — so the mint justification is rebuilt from stored bytes, not
|
|
590
|
-
* a refetch (the aggregator regenerates proofs per request).
|
|
591
|
-
*/
|
|
592
|
-
interface SplitCheckpointStore {
|
|
593
|
-
/**
|
|
594
|
-
* Insert-once, first-write-wins. MUST resolve only AFTER the store acked durability, and MUST
|
|
595
|
-
* resolve with the AUTHORITATIVE stored bytes — the caller's own on a fresh write, or the FIRST
|
|
596
|
-
* writer's when the slot `(transferId, opIndex)` was already taken (the caller adopts those and
|
|
597
|
-
* mints from them, so concurrent resumers converge on one burn proof).
|
|
598
|
-
*/
|
|
599
|
-
put(transferId: string, opIndex: number, bytes: Uint8Array): Promise<Uint8Array>;
|
|
600
|
-
/** The stored bytes for the slot, or `null` when none exists. */
|
|
601
|
-
get(transferId: string, opIndex: number): Promise<Uint8Array | null>;
|
|
602
|
-
}
|
|
603
|
-
|
|
604
604
|
type CheckpointClient = Pick<WalletApiV2Client, 'postProgress' | 'getProgress'>;
|
|
605
605
|
|
|
606
606
|
interface WalletApiSplitCheckpointStoreConfig {
|
|
@@ -266,6 +266,36 @@ declare class WalletApiV2Client {
|
|
|
266
266
|
wsTicket(): Promise<string>;
|
|
267
267
|
}
|
|
268
268
|
|
|
269
|
+
/**
|
|
270
|
+
* token-engine/engine.ts — the FROZEN public port (ITokenEngine) + its config.
|
|
271
|
+
*
|
|
272
|
+
* This is the contract both migration tracks build against. It is sphere-domain
|
|
273
|
+
* only (see types.ts). The granular, SDK-typed steps (buildMint, submit,
|
|
274
|
+
* awaitProof, certify, …) are an INTERNAL concern of the real adapter and are
|
|
275
|
+
* intentionally NOT part of this public interface.
|
|
276
|
+
*/
|
|
277
|
+
|
|
278
|
+
/**
|
|
279
|
+
* Durable, any-device store for a split's burn checkpoint (sdk-changes E.4, sphere-sdk#501
|
|
280
|
+
* option b). The engine passes opaque PLAINTEXT bytes; a transport adapter (the wallet-api
|
|
281
|
+
* provider) is responsible for AAD-encryption and the wallet-api §16 intent-progress round-trip.
|
|
282
|
+
*
|
|
283
|
+
* The store is the resume seed for the one split input the engine cannot re-derive — the burn's
|
|
284
|
+
* aggregator-issued inclusion proof — so the mint justification is rebuilt from stored bytes, not
|
|
285
|
+
* a refetch (the aggregator regenerates proofs per request).
|
|
286
|
+
*/
|
|
287
|
+
interface SplitCheckpointStore {
|
|
288
|
+
/**
|
|
289
|
+
* Insert-once, first-write-wins. MUST resolve only AFTER the store acked durability, and MUST
|
|
290
|
+
* resolve with the AUTHORITATIVE stored bytes — the caller's own on a fresh write, or the FIRST
|
|
291
|
+
* writer's when the slot `(transferId, opIndex)` was already taken (the caller adopts those and
|
|
292
|
+
* mints from them, so concurrent resumers converge on one burn proof).
|
|
293
|
+
*/
|
|
294
|
+
put(transferId: string, opIndex: number, bytes: Uint8Array): Promise<Uint8Array>;
|
|
295
|
+
/** The stored bytes for the slot, or `null` when none exists. */
|
|
296
|
+
get(transferId: string, opIndex: number): Promise<Uint8Array | null>;
|
|
297
|
+
}
|
|
298
|
+
|
|
269
299
|
interface ScopedKV {
|
|
270
300
|
get<T>(key: string): Promise<T | null>;
|
|
271
301
|
set<T>(key: string, value: T): Promise<void>;
|
|
@@ -571,36 +601,6 @@ declare class WalletApiDeliveryPort implements DeliveryPort {
|
|
|
571
601
|
private addSeenAll;
|
|
572
602
|
}
|
|
573
603
|
|
|
574
|
-
/**
|
|
575
|
-
* token-engine/engine.ts — the FROZEN public port (ITokenEngine) + its config.
|
|
576
|
-
*
|
|
577
|
-
* This is the contract both migration tracks build against. It is sphere-domain
|
|
578
|
-
* only (see types.ts). The granular, SDK-typed steps (buildMint, submit,
|
|
579
|
-
* awaitProof, certify, …) are an INTERNAL concern of the real adapter and are
|
|
580
|
-
* intentionally NOT part of this public interface.
|
|
581
|
-
*/
|
|
582
|
-
|
|
583
|
-
/**
|
|
584
|
-
* Durable, any-device store for a split's burn checkpoint (sdk-changes E.4, sphere-sdk#501
|
|
585
|
-
* option b). The engine passes opaque PLAINTEXT bytes; a transport adapter (the wallet-api
|
|
586
|
-
* provider) is responsible for AAD-encryption and the wallet-api §16 intent-progress round-trip.
|
|
587
|
-
*
|
|
588
|
-
* The store is the resume seed for the one split input the engine cannot re-derive — the burn's
|
|
589
|
-
* aggregator-issued inclusion proof — so the mint justification is rebuilt from stored bytes, not
|
|
590
|
-
* a refetch (the aggregator regenerates proofs per request).
|
|
591
|
-
*/
|
|
592
|
-
interface SplitCheckpointStore {
|
|
593
|
-
/**
|
|
594
|
-
* Insert-once, first-write-wins. MUST resolve only AFTER the store acked durability, and MUST
|
|
595
|
-
* resolve with the AUTHORITATIVE stored bytes — the caller's own on a fresh write, or the FIRST
|
|
596
|
-
* writer's when the slot `(transferId, opIndex)` was already taken (the caller adopts those and
|
|
597
|
-
* mints from them, so concurrent resumers converge on one burn proof).
|
|
598
|
-
*/
|
|
599
|
-
put(transferId: string, opIndex: number, bytes: Uint8Array): Promise<Uint8Array>;
|
|
600
|
-
/** The stored bytes for the slot, or `null` when none exists. */
|
|
601
|
-
get(transferId: string, opIndex: number): Promise<Uint8Array | null>;
|
|
602
|
-
}
|
|
603
|
-
|
|
604
604
|
type CheckpointClient = Pick<WalletApiV2Client, 'postProgress' | 'getProgress'>;
|
|
605
605
|
|
|
606
606
|
interface WalletApiSplitCheckpointStoreConfig {
|
|
@@ -788,6 +788,8 @@ var STORE_KEYS = {
|
|
|
788
788
|
deliveryJournal: "delivery-journal",
|
|
789
789
|
mintJournal: "mint-journal",
|
|
790
790
|
nftMintJournal: "nft-mint-journal",
|
|
791
|
+
customMintJournal: "custom-mint-journal",
|
|
792
|
+
burnJournal: "burn-journal",
|
|
791
793
|
shortfalls: "shortfalls",
|
|
792
794
|
settlingLinks: "settling",
|
|
793
795
|
streamCursor: (s) => `cursor:${s}`,
|