@buildonspark/spark-sdk 0.1.44 → 0.1.45
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/CHANGELOG.md +9 -0
- package/dist/{RequestLightningSendInput-RGel43ks.d.ts → RequestLightningSendInput-DEPd_fPO.d.ts} +1 -1
- package/dist/{RequestLightningSendInput-BxbCtwpV.d.cts → RequestLightningSendInput-Du0z7Om7.d.cts} +1 -1
- package/dist/address/index.cjs +2 -2
- package/dist/address/index.d.cts +2 -2
- package/dist/address/index.d.ts +2 -2
- package/dist/address/index.js +2 -2
- package/dist/{chunk-XX4RRWOX.js → chunk-5FUB65LX.js} +5 -7
- package/dist/{chunk-DAXGVPVM.js → chunk-6264CGDM.js} +4 -4
- package/dist/{chunk-UBT6EDVJ.js → chunk-7V6N75CC.js} +1 -1
- package/dist/{chunk-4Q2ZDYYU.js → chunk-BGGEVUJK.js} +1157 -208
- package/dist/{chunk-CIZNCBKE.js → chunk-C2S227QR.js} +648 -45
- package/dist/{chunk-NBCNYDWJ.js → chunk-GZ5IPPJ2.js} +2 -2
- package/dist/{chunk-6AFUC5M2.js → chunk-HWJWKEIU.js} +8 -2
- package/dist/{chunk-A2ZLMH6I.js → chunk-J2IE4Z7Y.js} +231 -299
- package/dist/{chunk-KEKGSH7B.js → chunk-KMUMFYFX.js} +3 -3
- package/dist/chunk-LHRD2WT6.js +2374 -0
- package/dist/{chunk-SQKXGAIR.js → chunk-NTFKFRQ2.js} +1 -1
- package/dist/{chunk-K4BJARWM.js → chunk-OBFKIEMP.js} +1 -1
- package/dist/{chunk-WPTRVD2V.js → chunk-PQN3C2MF.js} +15 -15
- package/dist/{chunk-EKFD62HN.js → chunk-R5PXJZQS.js} +1 -0
- package/dist/{chunk-HTMXTJRK.js → chunk-YUPMXTCJ.js} +4 -4
- package/dist/graphql/objects/index.d.cts +5 -4
- package/dist/graphql/objects/index.d.ts +5 -4
- package/dist/index-B2AwKW5J.d.cts +214 -0
- package/dist/index-CJDi1HWc.d.ts +214 -0
- package/dist/index.cjs +4025 -1314
- package/dist/index.d.cts +764 -19
- package/dist/index.d.ts +764 -19
- package/dist/index.js +16 -20
- package/dist/index.node.cjs +4025 -1318
- package/dist/index.node.d.cts +10 -8
- package/dist/index.node.d.ts +10 -8
- package/dist/index.node.js +16 -24
- package/dist/native/index.cjs +4026 -1315
- package/dist/native/index.d.cts +281 -85
- package/dist/native/index.d.ts +281 -85
- package/dist/native/index.js +4017 -1306
- package/dist/{network-CroCOQ0B.d.ts → network-BTJl-Sul.d.ts} +1 -1
- package/dist/{network-CfxLnaot.d.cts → network-CqgsdUF2.d.cts} +1 -1
- package/dist/proto/lrc20.cjs +222 -19
- package/dist/proto/lrc20.d.cts +1 -1
- package/dist/proto/lrc20.d.ts +1 -1
- package/dist/proto/lrc20.js +2 -2
- package/dist/proto/spark.cjs +1154 -205
- package/dist/proto/spark.d.cts +1 -1
- package/dist/proto/spark.d.ts +1 -1
- package/dist/proto/spark.js +3 -1
- package/dist/proto/spark_token.cjs +1377 -58
- package/dist/proto/spark_token.d.cts +153 -15
- package/dist/proto/spark_token.d.ts +153 -15
- package/dist/proto/spark_token.js +40 -4
- package/dist/{sdk-types-BeCBoozO.d.cts → sdk-types-B0SwjolI.d.cts} +1 -1
- package/dist/{sdk-types-CTbTdDbE.d.ts → sdk-types-Cc4l4kb1.d.ts} +1 -1
- package/dist/services/config.cjs +1 -1
- package/dist/services/config.d.cts +5 -4
- package/dist/services/config.d.ts +5 -4
- package/dist/services/config.js +6 -6
- package/dist/services/connection.cjs +2438 -262
- package/dist/services/connection.d.cts +5 -4
- package/dist/services/connection.d.ts +5 -4
- package/dist/services/connection.js +4 -4
- package/dist/services/index.cjs +5936 -3153
- package/dist/services/index.d.cts +7 -6
- package/dist/services/index.d.ts +7 -6
- package/dist/services/index.js +15 -13
- package/dist/services/lrc-connection.cjs +223 -20
- package/dist/services/lrc-connection.d.cts +5 -4
- package/dist/services/lrc-connection.d.ts +5 -4
- package/dist/services/lrc-connection.js +4 -4
- package/dist/services/token-transactions.cjs +840 -236
- package/dist/services/token-transactions.d.cts +25 -7
- package/dist/services/token-transactions.d.ts +25 -7
- package/dist/services/token-transactions.js +5 -4
- package/dist/services/wallet-config.cjs +2 -0
- package/dist/services/wallet-config.d.cts +7 -5
- package/dist/services/wallet-config.d.ts +7 -5
- package/dist/services/wallet-config.js +3 -1
- package/dist/signer/signer.cjs +1 -1
- package/dist/signer/signer.d.cts +3 -2
- package/dist/signer/signer.d.ts +3 -2
- package/dist/signer/signer.js +2 -2
- package/dist/{signer-D7vfYik9.d.ts → signer-BocS_J6B.d.ts} +2 -6
- package/dist/{signer-DaY8c60s.d.cts → signer-DKS0AJkw.d.cts} +2 -6
- package/dist/{spark-C4ZrsgjC.d.cts → spark-dM7EYXYQ.d.cts} +93 -15
- package/dist/{spark-C4ZrsgjC.d.ts → spark-dM7EYXYQ.d.ts} +93 -15
- package/dist/spark_bindings/native/index.cjs +183 -0
- package/dist/spark_bindings/native/index.d.cts +14 -0
- package/dist/spark_bindings/native/index.d.ts +14 -0
- package/dist/spark_bindings/native/index.js +141 -0
- package/dist/spark_bindings/wasm/index.cjs +1093 -0
- package/dist/spark_bindings/wasm/index.d.cts +47 -0
- package/dist/spark_bindings/wasm/index.d.ts +47 -0
- package/dist/{chunk-K4C4W5FC.js → spark_bindings/wasm/index.js} +7 -6
- package/dist/types/index.cjs +1156 -208
- package/dist/types/index.d.cts +5 -4
- package/dist/types/index.d.ts +5 -4
- package/dist/types/index.js +2 -2
- package/dist/types-C-Rp0Oo7.d.cts +46 -0
- package/dist/types-C-Rp0Oo7.d.ts +46 -0
- package/dist/utils/index.cjs +64 -12
- package/dist/utils/index.d.cts +14 -134
- package/dist/utils/index.d.ts +14 -134
- package/dist/utils/index.js +7 -7
- package/package.json +21 -1
- package/src/index.node.ts +0 -1
- package/src/index.ts +0 -1
- package/src/native/index.ts +1 -2
- package/src/proto/common.ts +5 -5
- package/src/proto/google/protobuf/descriptor.ts +34 -34
- package/src/proto/google/protobuf/duration.ts +2 -2
- package/src/proto/google/protobuf/empty.ts +2 -2
- package/src/proto/google/protobuf/timestamp.ts +2 -2
- package/src/proto/mock.ts +4 -4
- package/src/proto/spark.ts +1452 -185
- package/src/proto/spark_authn.ts +7 -7
- package/src/proto/spark_token.ts +1668 -105
- package/src/proto/validate/validate.ts +24 -24
- package/src/services/bolt11-spark.ts +62 -187
- package/src/services/coop-exit.ts +3 -0
- package/src/services/lrc20.ts +1 -1
- package/src/services/token-transactions.ts +197 -9
- package/src/services/transfer.ts +22 -0
- package/src/services/tree-creation.ts +13 -0
- package/src/services/wallet-config.ts +1 -1
- package/src/spark-wallet/spark-wallet.node.ts +0 -4
- package/src/spark-wallet/spark-wallet.ts +76 -108
- package/src/spark-wallet/types.ts +39 -3
- package/src/tests/bolt11-spark.test.ts +7 -15
- package/src/tests/integration/ssp/coop-exit.test.ts +7 -7
- package/src/tests/integration/swap.test.ts +453 -433
- package/src/tests/integration/transfer.test.ts +261 -248
- package/src/tests/token-identifier.test.ts +54 -0
- package/src/tests/tokens.test.ts +218 -23
- package/src/utils/token-hashing.ts +320 -44
- package/src/utils/token-identifier.ts +88 -0
- package/src/utils/token-transaction-validation.ts +350 -5
- package/src/utils/token-transactions.ts +12 -8
- package/src/utils/transaction.ts +0 -6
- package/dist/chunk-B3AMIGJG.js +0 -1073
- package/dist/index-CZmDdSts.d.cts +0 -829
- package/dist/index-ClIRO_3y.d.ts +0 -829
- package/dist/wasm-7OWFHDMS.js +0 -21
package/src/proto/spark_authn.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
2
|
// versions:
|
|
3
|
-
// protoc-gen-ts_proto v2.7.
|
|
3
|
+
// protoc-gen-ts_proto v2.7.5
|
|
4
4
|
// protoc v5.29.3
|
|
5
5
|
// source: spark_authn.proto
|
|
6
6
|
|
|
@@ -89,7 +89,7 @@ export const Challenge: MessageFns<Challenge> = {
|
|
|
89
89
|
|
|
90
90
|
decode(input: BinaryReader | Uint8Array, length?: number): Challenge {
|
|
91
91
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
92
|
-
|
|
92
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
93
93
|
const message = createBaseChallenge();
|
|
94
94
|
while (reader.pos < end) {
|
|
95
95
|
const tag = reader.uint32();
|
|
@@ -194,7 +194,7 @@ export const ProtectedChallenge: MessageFns<ProtectedChallenge> = {
|
|
|
194
194
|
|
|
195
195
|
decode(input: BinaryReader | Uint8Array, length?: number): ProtectedChallenge {
|
|
196
196
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
197
|
-
|
|
197
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
198
198
|
const message = createBaseProtectedChallenge();
|
|
199
199
|
while (reader.pos < end) {
|
|
200
200
|
const tag = reader.uint32();
|
|
@@ -282,7 +282,7 @@ export const GetChallengeRequest: MessageFns<GetChallengeRequest> = {
|
|
|
282
282
|
|
|
283
283
|
decode(input: BinaryReader | Uint8Array, length?: number): GetChallengeRequest {
|
|
284
284
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
285
|
-
|
|
285
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
286
286
|
const message = createBaseGetChallengeRequest();
|
|
287
287
|
while (reader.pos < end) {
|
|
288
288
|
const tag = reader.uint32();
|
|
@@ -340,7 +340,7 @@ export const GetChallengeResponse: MessageFns<GetChallengeResponse> = {
|
|
|
340
340
|
|
|
341
341
|
decode(input: BinaryReader | Uint8Array, length?: number): GetChallengeResponse {
|
|
342
342
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
343
|
-
|
|
343
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
344
344
|
const message = createBaseGetChallengeResponse();
|
|
345
345
|
while (reader.pos < end) {
|
|
346
346
|
const tag = reader.uint32();
|
|
@@ -410,7 +410,7 @@ export const VerifyChallengeRequest: MessageFns<VerifyChallengeRequest> = {
|
|
|
410
410
|
|
|
411
411
|
decode(input: BinaryReader | Uint8Array, length?: number): VerifyChallengeRequest {
|
|
412
412
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
413
|
-
|
|
413
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
414
414
|
const message = createBaseVerifyChallengeRequest();
|
|
415
415
|
while (reader.pos < end) {
|
|
416
416
|
const tag = reader.uint32();
|
|
@@ -503,7 +503,7 @@ export const VerifyChallengeResponse: MessageFns<VerifyChallengeResponse> = {
|
|
|
503
503
|
|
|
504
504
|
decode(input: BinaryReader | Uint8Array, length?: number): VerifyChallengeResponse {
|
|
505
505
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
506
|
-
|
|
506
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
507
507
|
const message = createBaseVerifyChallengeResponse();
|
|
508
508
|
while (reader.pos < end) {
|
|
509
509
|
const tag = reader.uint32();
|