@arkade-os/swap 0.0.12 → 0.0.13
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/{chunk-XXWOODUE.js → chunk-IFZOBTTG.js} +8 -8
- package/dist/index.cjs +308 -48
- package/dist/index.d.cts +131 -6
- package/dist/index.d.ts +131 -6
- package/dist/index.js +297 -30
- package/dist/nostr.d.cts +1 -1
- package/dist/nostr.d.ts +1 -1
- package/dist/nostr.js +1 -1
- package/dist/repositories/realm/index.d.cts +2 -2
- package/dist/repositories/realm/index.d.ts +2 -2
- package/dist/repositories/sqlite/index.d.cts +2 -2
- package/dist/repositories/sqlite/index.d.ts +2 -2
- package/dist/{repository-DlLvj_y6.d.ts → repository-D5JoeqwB.d.ts} +1 -1
- package/dist/{repository-DaK1RzRq.d.cts → repository-Vfx65uF1.d.cts} +1 -1
- package/dist/{rfq-DzsmhXX3.d.ts → rfq-CYfKvAPp.d.cts} +14 -8
- package/dist/{rfq-DzsmhXX3.d.cts → rfq-CYfKvAPp.d.ts} +14 -8
- package/package.json +2 -2
|
@@ -640,8 +640,10 @@ declare const lightningReceiveRequest: (input: {
|
|
|
640
640
|
payoutAddress: string;
|
|
641
641
|
/** Trader's x-only arkade key — the covenant's `receiver` role. */
|
|
642
642
|
payoutPubkey: Uint8Array;
|
|
643
|
-
/** `P` sealed to covclaimd, base64 — `sealClaimPacket(...).ciphertext`.
|
|
644
|
-
|
|
643
|
+
/** `P` sealed to covclaimd, base64 — `sealClaimPacket(...).ciphertext`.
|
|
644
|
+
* Omitted when there is no covclaimd to seal to; the field is then left off
|
|
645
|
+
* the wire entirely, since the solver refuses an empty packet. */
|
|
646
|
+
claimPacket?: string;
|
|
645
647
|
amount: number;
|
|
646
648
|
amountSide: "from" | "to";
|
|
647
649
|
}) => Record<string, unknown>;
|
|
@@ -659,8 +661,9 @@ declare const onchainReceiveRequest: (input: {
|
|
|
659
661
|
payoutPubkey: Uint8Array;
|
|
660
662
|
/** Trader's x-only L1 key for the HTLC's refund leaf. */
|
|
661
663
|
refundPubkey: Uint8Array;
|
|
662
|
-
/** `P` sealed to covclaimd, base64
|
|
663
|
-
|
|
664
|
+
/** `P` sealed to covclaimd, base64. Omitted when there is none to seal to —
|
|
665
|
+
* see {@link lightningReceiveRequest}. */
|
|
666
|
+
claimPacket?: string;
|
|
664
667
|
amount: number;
|
|
665
668
|
amountSide: "from" | "to";
|
|
666
669
|
}) => Record<string, unknown>;
|
|
@@ -942,8 +945,10 @@ declare function requestLightningReceive(wallet: IWallet, arkServerUrl: string,
|
|
|
942
945
|
* {@link resolveEmulatorPubkey}. */
|
|
943
946
|
emulatorPubkey?: string;
|
|
944
947
|
/** covclaimd's 33-byte compressed pubkey (from its own info endpoint)
|
|
945
|
-
* — the claim packet seals to it and only it can ever read `P` early.
|
|
946
|
-
|
|
948
|
+
* — the claim packet seals to it and only it can ever read `P` early.
|
|
949
|
+
* Unset where no covclaimd is deployed: nothing is sealed and no packet
|
|
950
|
+
* is sent. Never substitute a throwaway key — nobody could open it. */
|
|
951
|
+
covclaimdPubkey?: Uint8Array;
|
|
947
952
|
/** The caller's own BOLT11 decoder, applied to the SOLVER's invoice.
|
|
948
953
|
* Required: an optional verifier is one integrators skip, and this is
|
|
949
954
|
* the check whose absence loses the whole payment. */
|
|
@@ -1032,8 +1037,9 @@ declare function requestOnchainReceive(wallet: IWallet, arkServerUrl: string, tr
|
|
|
1032
1037
|
emulatorPubkey?: string;
|
|
1033
1038
|
/** Trader's x-only L1 key for the HTLC's refund leaf. */
|
|
1034
1039
|
refundPubkey: Uint8Array;
|
|
1035
|
-
/** covclaimd's 33-byte compressed pubkey
|
|
1036
|
-
|
|
1040
|
+
/** covclaimd's 33-byte compressed pubkey, unset where none is deployed
|
|
1041
|
+
* — see {@link requestLightningReceive}. */
|
|
1042
|
+
covclaimdPubkey?: Uint8Array;
|
|
1037
1043
|
rfqId?: string;
|
|
1038
1044
|
}): Promise<{
|
|
1039
1045
|
rfqId: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arkade-os/swap",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.13",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Client-side Arkade Intents asset swaps: discover markets, quote, create/track/cancel offers, restore from chain.",
|
|
6
6
|
"repository": {
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"@noble/hashes": "2.0.1",
|
|
71
71
|
"@scure/base": "2.0.0",
|
|
72
72
|
"@scure/btc-signer": "2.0.1",
|
|
73
|
-
"@arkade-os/sdk": "0.4.
|
|
73
|
+
"@arkade-os/sdk": "0.4.70"
|
|
74
74
|
},
|
|
75
75
|
"peerDependencies": {
|
|
76
76
|
"nostr-tools": "^2.12.0"
|