@unicitylabs/sphere-sdk 0.17.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 +1 -1
- package/dist/connect/index.cjs.map +1 -1
- package/dist/connect/index.js +1 -1
- package/dist/connect/index.js.map +1 -1
- package/dist/core/index.cjs +170 -141
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.cts +4 -2
- package/dist/core/index.d.ts +4 -2
- package/dist/core/index.js +170 -141
- 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 +1 -1
- package/dist/impl/browser/connect/index.js.map +1 -1
- package/dist/index.cjs +170 -141
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.js +170 -141
- package/dist/index.js.map +1 -1
- package/dist/modules/payments-v2/index.cjs +243 -214
- package/dist/modules/payments-v2/index.cjs.map +1 -1
- package/dist/modules/payments-v2/index.d.cts +13 -11
- package/dist/modules/payments-v2/index.d.ts +13 -11
- package/dist/modules/payments-v2/index.js +243 -214
- package/dist/modules/payments-v2/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -177,7 +177,9 @@ interface SendRequest {
|
|
|
177
177
|
coinId: string;
|
|
178
178
|
memo?: string;
|
|
179
179
|
}
|
|
180
|
-
|
|
180
|
+
/** 0.17.0's name for {@link SendWholeTokenRequest}. Kept so published imports compile. */
|
|
181
|
+
type SendCoinlessRequest = SendWholeTokenRequest;
|
|
182
|
+
interface SendWholeTokenRequest {
|
|
181
183
|
recipient: string;
|
|
182
184
|
tokenId: string;
|
|
183
185
|
memo?: string;
|
|
@@ -275,7 +277,9 @@ interface PaymentsV2 {
|
|
|
275
277
|
limit?: number;
|
|
276
278
|
}): Promise<HistoryPage>;
|
|
277
279
|
send(req: SendRequest): Promise<TransferResult>;
|
|
278
|
-
|
|
280
|
+
sendWholeToken(req: SendWholeTokenRequest): Promise<TransferResult>;
|
|
281
|
+
/** NFT-scoped twin: refuses a valued source. Connect's `send_nft` routes here. */
|
|
282
|
+
sendCoinless(req: SendWholeTokenRequest): Promise<TransferResult>;
|
|
279
283
|
mint(coinId: string, amount: bigint): Promise<MintResult>;
|
|
280
284
|
receive(): Promise<{
|
|
281
285
|
transfers: IncomingTransfer[];
|
|
@@ -421,13 +425,12 @@ interface CoinIntentPayload extends IntentPayloadBase {
|
|
|
421
425
|
remainderAmount: string;
|
|
422
426
|
};
|
|
423
427
|
}
|
|
424
|
-
interface
|
|
425
|
-
kind: 'coinless';
|
|
428
|
+
interface WholeIntentPayload extends IntentPayloadBase {
|
|
429
|
+
kind: 'whole' | 'coinless';
|
|
426
430
|
direct: [string];
|
|
427
431
|
split?: undefined;
|
|
428
432
|
}
|
|
429
|
-
|
|
430
|
-
type IntentPayload = CoinIntentPayload | CoinlessIntentPayload;
|
|
433
|
+
type IntentPayload = CoinIntentPayload | WholeIntentPayload;
|
|
431
434
|
interface PlannedOp {
|
|
432
435
|
kind: 'direct' | 'split';
|
|
433
436
|
opIndex: number;
|
|
@@ -1239,7 +1242,9 @@ declare class PaymentsFacade implements PaymentsV2 {
|
|
|
1239
1242
|
discardPrewarm(): void;
|
|
1240
1243
|
private warmDeps;
|
|
1241
1244
|
send(request: SendRequest): Promise<TransferResult>;
|
|
1242
|
-
|
|
1245
|
+
sendWholeToken(request: SendWholeTokenRequest): Promise<TransferResult>;
|
|
1246
|
+
/** NFT-scoped twin: refuses a valued source. */
|
|
1247
|
+
sendCoinless(request: SendWholeTokenRequest): Promise<TransferResult>;
|
|
1243
1248
|
receive(): Promise<{
|
|
1244
1249
|
transfers: IncomingTransfer[];
|
|
1245
1250
|
}>;
|
|
@@ -1254,9 +1259,6 @@ declare class PaymentsFacade implements PaymentsV2 {
|
|
|
1254
1259
|
private mintDeps;
|
|
1255
1260
|
/** The ONE place a send() outcome is shaped: success emits in finishSend, a
|
|
1256
1261
|
* CLEAN rejection emits `transfer:updated{status:'failed'}` here (§4). */
|
|
1257
|
-
private sendOutcome;
|
|
1258
|
-
/** A token spend has no amount; '0' keeps the shortfall arithmetic total-free. */
|
|
1259
|
-
private sendCoinlessOutcome;
|
|
1260
1262
|
private runJob;
|
|
1261
1263
|
/** Only a CLEAN failure (nothing certified, classifyError 'other') is 'failed'.
|
|
1262
1264
|
* Keep-open/partial/conflict outcomes are pending/converging — labelling them
|
|
@@ -1305,4 +1307,4 @@ declare class PaymentsFacade implements PaymentsV2 {
|
|
|
1305
1307
|
declare const HEARTBEAT_SEED_MS = 5000;
|
|
1306
1308
|
declare const HEARTBEAT_CAP_MS = 120000;
|
|
1307
1309
|
|
|
1308
|
-
export { ATTENTION_MINT_UNRESOLVED, ATTENTION_RECIPIENT_NETWORK_UNVERIFIED, ATTENTION_RESEED_REJECTED, type AckOutcome, type AckRequest, type ApplyDeltaResult, type CheckpointReseeder, type ConnectionStatus, type DeliverOptions, type DeliveryJournalEntry, type DeliveryPort, type DeliveryReceipt, type DeterministicMintCapable, type FacadeClient, type FacadeSession, HEARTBEAT_CAP_MS, HEARTBEAT_SEED_MS, type HistoryEntry, type HistoryPage, type IncomingDelivery, type IntentBackstopEntry, type IntentPayload, type InventoryAsset, type InventoryItem, type InventoryPage, MAX_RESELECT, type MintJournalEntry, type MintResult, type OpOutcome, type OutcomeClass, type PaymentRequestStatus, type PaymentRequestView, PaymentsFacade, type PaymentsFacadeDeps, type PaymentsRequestsApi, type PaymentsV2, type PaymentsV2Events, type PendingTransfer, type PlannedOp, type RecipientInfo, type RetryableAckError, STORE_KEYS, type ScopedKV, type SendCoinlessRequest, type SendRequest, type SettlingLink, type ShortfallEntry, type StoragePort, type StreamCursor, type StreamName, createScopedKV, isRetryableAckError, supportsDeterministicMint, sweepSupersededState };
|
|
1310
|
+
export { ATTENTION_MINT_UNRESOLVED, ATTENTION_RECIPIENT_NETWORK_UNVERIFIED, ATTENTION_RESEED_REJECTED, type AckOutcome, type AckRequest, type ApplyDeltaResult, type CheckpointReseeder, type ConnectionStatus, type DeliverOptions, type DeliveryJournalEntry, type DeliveryPort, type DeliveryReceipt, type DeterministicMintCapable, type FacadeClient, type FacadeSession, HEARTBEAT_CAP_MS, HEARTBEAT_SEED_MS, type HistoryEntry, type HistoryPage, type IncomingDelivery, type IntentBackstopEntry, type IntentPayload, type InventoryAsset, type InventoryItem, type InventoryPage, MAX_RESELECT, type MintJournalEntry, type MintResult, type OpOutcome, type OutcomeClass, type PaymentRequestStatus, type PaymentRequestView, PaymentsFacade, type PaymentsFacadeDeps, type PaymentsRequestsApi, type PaymentsV2, type PaymentsV2Events, type PendingTransfer, type PlannedOp, type RecipientInfo, type RetryableAckError, STORE_KEYS, type ScopedKV, type SendCoinlessRequest, type SendRequest, type SendWholeTokenRequest, type SettlingLink, type ShortfallEntry, type StoragePort, type StreamCursor, type StreamName, createScopedKV, isRetryableAckError, supportsDeterministicMint, sweepSupersededState };
|
|
@@ -177,7 +177,9 @@ interface SendRequest {
|
|
|
177
177
|
coinId: string;
|
|
178
178
|
memo?: string;
|
|
179
179
|
}
|
|
180
|
-
|
|
180
|
+
/** 0.17.0's name for {@link SendWholeTokenRequest}. Kept so published imports compile. */
|
|
181
|
+
type SendCoinlessRequest = SendWholeTokenRequest;
|
|
182
|
+
interface SendWholeTokenRequest {
|
|
181
183
|
recipient: string;
|
|
182
184
|
tokenId: string;
|
|
183
185
|
memo?: string;
|
|
@@ -275,7 +277,9 @@ interface PaymentsV2 {
|
|
|
275
277
|
limit?: number;
|
|
276
278
|
}): Promise<HistoryPage>;
|
|
277
279
|
send(req: SendRequest): Promise<TransferResult>;
|
|
278
|
-
|
|
280
|
+
sendWholeToken(req: SendWholeTokenRequest): Promise<TransferResult>;
|
|
281
|
+
/** NFT-scoped twin: refuses a valued source. Connect's `send_nft` routes here. */
|
|
282
|
+
sendCoinless(req: SendWholeTokenRequest): Promise<TransferResult>;
|
|
279
283
|
mint(coinId: string, amount: bigint): Promise<MintResult>;
|
|
280
284
|
receive(): Promise<{
|
|
281
285
|
transfers: IncomingTransfer[];
|
|
@@ -421,13 +425,12 @@ interface CoinIntentPayload extends IntentPayloadBase {
|
|
|
421
425
|
remainderAmount: string;
|
|
422
426
|
};
|
|
423
427
|
}
|
|
424
|
-
interface
|
|
425
|
-
kind: 'coinless';
|
|
428
|
+
interface WholeIntentPayload extends IntentPayloadBase {
|
|
429
|
+
kind: 'whole' | 'coinless';
|
|
426
430
|
direct: [string];
|
|
427
431
|
split?: undefined;
|
|
428
432
|
}
|
|
429
|
-
|
|
430
|
-
type IntentPayload = CoinIntentPayload | CoinlessIntentPayload;
|
|
433
|
+
type IntentPayload = CoinIntentPayload | WholeIntentPayload;
|
|
431
434
|
interface PlannedOp {
|
|
432
435
|
kind: 'direct' | 'split';
|
|
433
436
|
opIndex: number;
|
|
@@ -1239,7 +1242,9 @@ declare class PaymentsFacade implements PaymentsV2 {
|
|
|
1239
1242
|
discardPrewarm(): void;
|
|
1240
1243
|
private warmDeps;
|
|
1241
1244
|
send(request: SendRequest): Promise<TransferResult>;
|
|
1242
|
-
|
|
1245
|
+
sendWholeToken(request: SendWholeTokenRequest): Promise<TransferResult>;
|
|
1246
|
+
/** NFT-scoped twin: refuses a valued source. */
|
|
1247
|
+
sendCoinless(request: SendWholeTokenRequest): Promise<TransferResult>;
|
|
1243
1248
|
receive(): Promise<{
|
|
1244
1249
|
transfers: IncomingTransfer[];
|
|
1245
1250
|
}>;
|
|
@@ -1254,9 +1259,6 @@ declare class PaymentsFacade implements PaymentsV2 {
|
|
|
1254
1259
|
private mintDeps;
|
|
1255
1260
|
/** The ONE place a send() outcome is shaped: success emits in finishSend, a
|
|
1256
1261
|
* CLEAN rejection emits `transfer:updated{status:'failed'}` here (§4). */
|
|
1257
|
-
private sendOutcome;
|
|
1258
|
-
/** A token spend has no amount; '0' keeps the shortfall arithmetic total-free. */
|
|
1259
|
-
private sendCoinlessOutcome;
|
|
1260
1262
|
private runJob;
|
|
1261
1263
|
/** Only a CLEAN failure (nothing certified, classifyError 'other') is 'failed'.
|
|
1262
1264
|
* Keep-open/partial/conflict outcomes are pending/converging — labelling them
|
|
@@ -1305,4 +1307,4 @@ declare class PaymentsFacade implements PaymentsV2 {
|
|
|
1305
1307
|
declare const HEARTBEAT_SEED_MS = 5000;
|
|
1306
1308
|
declare const HEARTBEAT_CAP_MS = 120000;
|
|
1307
1309
|
|
|
1308
|
-
export { ATTENTION_MINT_UNRESOLVED, ATTENTION_RECIPIENT_NETWORK_UNVERIFIED, ATTENTION_RESEED_REJECTED, type AckOutcome, type AckRequest, type ApplyDeltaResult, type CheckpointReseeder, type ConnectionStatus, type DeliverOptions, type DeliveryJournalEntry, type DeliveryPort, type DeliveryReceipt, type DeterministicMintCapable, type FacadeClient, type FacadeSession, HEARTBEAT_CAP_MS, HEARTBEAT_SEED_MS, type HistoryEntry, type HistoryPage, type IncomingDelivery, type IntentBackstopEntry, type IntentPayload, type InventoryAsset, type InventoryItem, type InventoryPage, MAX_RESELECT, type MintJournalEntry, type MintResult, type OpOutcome, type OutcomeClass, type PaymentRequestStatus, type PaymentRequestView, PaymentsFacade, type PaymentsFacadeDeps, type PaymentsRequestsApi, type PaymentsV2, type PaymentsV2Events, type PendingTransfer, type PlannedOp, type RecipientInfo, type RetryableAckError, STORE_KEYS, type ScopedKV, type SendCoinlessRequest, type SendRequest, type SettlingLink, type ShortfallEntry, type StoragePort, type StreamCursor, type StreamName, createScopedKV, isRetryableAckError, supportsDeterministicMint, sweepSupersededState };
|
|
1310
|
+
export { ATTENTION_MINT_UNRESOLVED, ATTENTION_RECIPIENT_NETWORK_UNVERIFIED, ATTENTION_RESEED_REJECTED, type AckOutcome, type AckRequest, type ApplyDeltaResult, type CheckpointReseeder, type ConnectionStatus, type DeliverOptions, type DeliveryJournalEntry, type DeliveryPort, type DeliveryReceipt, type DeterministicMintCapable, type FacadeClient, type FacadeSession, HEARTBEAT_CAP_MS, HEARTBEAT_SEED_MS, type HistoryEntry, type HistoryPage, type IncomingDelivery, type IntentBackstopEntry, type IntentPayload, type InventoryAsset, type InventoryItem, type InventoryPage, MAX_RESELECT, type MintJournalEntry, type MintResult, type OpOutcome, type OutcomeClass, type PaymentRequestStatus, type PaymentRequestView, PaymentsFacade, type PaymentsFacadeDeps, type PaymentsRequestsApi, type PaymentsV2, type PaymentsV2Events, type PendingTransfer, type PlannedOp, type RecipientInfo, type RetryableAckError, STORE_KEYS, type ScopedKV, type SendCoinlessRequest, type SendRequest, type SendWholeTokenRequest, type SettlingLink, type ShortfallEntry, type StoragePort, type StreamCursor, type StreamName, createScopedKV, isRetryableAckError, supportsDeterministicMint, sweepSupersededState };
|