@buildonspark/spark-sdk 0.1.44 → 0.1.46
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 +17 -0
- package/dist/{RequestLightningSendInput-BxbCtwpV.d.cts → RequestLightningSendInput-2cSh_In4.d.cts} +1 -1
- package/dist/{RequestLightningSendInput-RGel43ks.d.ts → RequestLightningSendInput-CN6BNg_g.d.ts} +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-EKFD62HN.js → chunk-4EMV7HHW.js} +2 -1
- package/dist/{chunk-4Q2ZDYYU.js → chunk-BGGEVUJK.js} +1157 -208
- package/dist/{chunk-CIZNCBKE.js → chunk-C2S227QR.js} +648 -45
- package/dist/{chunk-WPTRVD2V.js → chunk-DXR2PXJU.js} +15 -15
- package/dist/{chunk-NBCNYDWJ.js → chunk-HHNQ3ZHC.js} +2 -2
- package/dist/{chunk-DAXGVPVM.js → chunk-HSCLBJEL.js} +2 -2
- package/dist/{chunk-6AFUC5M2.js → chunk-HWJWKEIU.js} +8 -2
- package/dist/{chunk-A2ZLMH6I.js → chunk-JB64OQES.js} +259 -327
- package/dist/{chunk-KEKGSH7B.js → chunk-KMUMFYFX.js} +3 -3
- package/dist/chunk-LHRD2WT6.js +2374 -0
- package/dist/{chunk-HTMXTJRK.js → chunk-N5VZVCGJ.js} +4 -4
- package/dist/{chunk-SQKXGAIR.js → chunk-NTFKFRQ2.js} +1 -1
- package/dist/{chunk-K4BJARWM.js → chunk-OBFKIEMP.js} +1 -1
- package/dist/{chunk-UBT6EDVJ.js → chunk-OFCJFZ4I.js} +1 -1
- package/dist/{chunk-XX4RRWOX.js → chunk-UXDODSDT.js} +8 -10
- package/dist/graphql/objects/index.d.cts +5 -4
- package/dist/graphql/objects/index.d.ts +5 -4
- package/dist/index-CKL5DodV.d.cts +214 -0
- package/dist/index-COm59SPw.d.ts +214 -0
- package/dist/index.cjs +4026 -1315
- package/dist/index.d.cts +764 -19
- package/dist/index.d.ts +764 -19
- package/dist/index.js +23 -27
- package/dist/index.node.cjs +4026 -1319
- package/dist/index.node.d.cts +10 -8
- package/dist/index.node.d.ts +10 -8
- package/dist/index.node.js +23 -31
- package/dist/native/index.cjs +4027 -1316
- package/dist/native/index.d.cts +281 -85
- package/dist/native/index.d.ts +281 -85
- package/dist/native/index.js +4018 -1307
- package/dist/{network-CfxLnaot.d.cts → network-Css46DAz.d.cts} +1 -1
- package/dist/{network-CroCOQ0B.d.ts → network-hynb7iTZ.d.ts} +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-CTbTdDbE.d.ts → sdk-types-CKBsylfW.d.ts} +1 -1
- package/dist/{sdk-types-BeCBoozO.d.cts → sdk-types-Ct8xmN7l.d.cts} +1 -1
- package/dist/services/config.cjs +2 -2
- 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 +5937 -3154
- package/dist/services/index.d.cts +7 -6
- package/dist/services/index.d.ts +7 -6
- package/dist/services/index.js +17 -15
- 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 +3 -1
- 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-BP6F__oR.d.cts} +2 -6
- package/dist/{signer-DaY8c60s.d.cts → signer-BVZJXcq7.d.ts} +2 -6
- package/dist/{spark-C4ZrsgjC.d.cts → spark-DbzGfse6.d.cts} +93 -15
- package/dist/{spark-C4ZrsgjC.d.ts → spark-DbzGfse6.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 +65 -13
- package/dist/utils/index.d.cts +14 -134
- package/dist/utils/index.d.ts +14 -134
- package/dist/utils/index.js +13 -13
- package/package.json +22 -2
- 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 +2 -2
- 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
|
@@ -241,7 +241,7 @@ init_buffer();
|
|
|
241
241
|
var import_core = require("@lightsparkdev/core");
|
|
242
242
|
var isReactNative = typeof navigator !== "undefined" && navigator.product === "ReactNative";
|
|
243
243
|
var isBun = globalThis.Bun !== void 0;
|
|
244
|
-
var packageVersion = true ? "0.1.
|
|
244
|
+
var packageVersion = true ? "0.1.46" : "unknown";
|
|
245
245
|
var baseEnvStr = "unknown";
|
|
246
246
|
if (isBun) {
|
|
247
247
|
const bunVersion = "version" in globalThis.Bun ? globalThis.Bun.version : "unknown-version";
|
|
@@ -358,7 +358,7 @@ var Empty = {
|
|
|
358
358
|
},
|
|
359
359
|
decode(input, length) {
|
|
360
360
|
const reader = input instanceof import_wire.BinaryReader ? input : new import_wire.BinaryReader(input);
|
|
361
|
-
|
|
361
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
362
362
|
const message = createBaseEmpty();
|
|
363
363
|
while (reader.pos < end) {
|
|
364
364
|
const tag = reader.uint32();
|
|
@@ -430,7 +430,7 @@ var CleanUpPreimageShareRequest = {
|
|
|
430
430
|
},
|
|
431
431
|
decode(input, length) {
|
|
432
432
|
const reader = input instanceof import_wire2.BinaryReader ? input : new import_wire2.BinaryReader(input);
|
|
433
|
-
|
|
433
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
434
434
|
const message = createBaseCleanUpPreimageShareRequest();
|
|
435
435
|
while (reader.pos < end) {
|
|
436
436
|
const tag = reader.uint32();
|
|
@@ -481,7 +481,7 @@ var InterruptTransferRequest = {
|
|
|
481
481
|
},
|
|
482
482
|
decode(input, length) {
|
|
483
483
|
const reader = input instanceof import_wire2.BinaryReader ? input : new import_wire2.BinaryReader(input);
|
|
484
|
-
|
|
484
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
485
485
|
const message = createBaseInterruptTransferRequest();
|
|
486
486
|
while (reader.pos < end) {
|
|
487
487
|
const tag = reader.uint32();
|
|
@@ -537,7 +537,7 @@ var UpdateNodesStatusRequest = {
|
|
|
537
537
|
},
|
|
538
538
|
decode(input, length) {
|
|
539
539
|
const reader = input instanceof import_wire2.BinaryReader ? input : new import_wire2.BinaryReader(input);
|
|
540
|
-
|
|
540
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
541
541
|
const message = createBaseUpdateNodesStatusRequest();
|
|
542
542
|
while (reader.pos < end) {
|
|
543
543
|
const tag = reader.uint32();
|
|
@@ -709,7 +709,7 @@ var SigningCommitment = {
|
|
|
709
709
|
},
|
|
710
710
|
decode(input, length) {
|
|
711
711
|
const reader = input instanceof import_wire3.BinaryReader ? input : new import_wire3.BinaryReader(input);
|
|
712
|
-
|
|
712
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
713
713
|
const message = createBaseSigningCommitment();
|
|
714
714
|
while (reader.pos < end) {
|
|
715
715
|
const tag = reader.uint32();
|
|
@@ -807,7 +807,7 @@ var Timestamp = {
|
|
|
807
807
|
},
|
|
808
808
|
decode(input, length) {
|
|
809
809
|
const reader = input instanceof import_wire4.BinaryReader ? input : new import_wire4.BinaryReader(input);
|
|
810
|
-
|
|
810
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
811
811
|
const message = createBaseTimestamp();
|
|
812
812
|
while (reader.pos < end) {
|
|
813
813
|
const tag = reader.uint32();
|
|
@@ -1147,7 +1147,7 @@ var SubscribeToEventsRequest = {
|
|
|
1147
1147
|
},
|
|
1148
1148
|
decode(input, length) {
|
|
1149
1149
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
1150
|
-
|
|
1150
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
1151
1151
|
const message = createBaseSubscribeToEventsRequest();
|
|
1152
1152
|
while (reader.pos < end) {
|
|
1153
1153
|
const tag = reader.uint32();
|
|
@@ -1208,7 +1208,7 @@ var SubscribeToEventsResponse = {
|
|
|
1208
1208
|
},
|
|
1209
1209
|
decode(input, length) {
|
|
1210
1210
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
1211
|
-
|
|
1211
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
1212
1212
|
const message = createBaseSubscribeToEventsResponse();
|
|
1213
1213
|
while (reader.pos < end) {
|
|
1214
1214
|
const tag = reader.uint32();
|
|
@@ -1295,7 +1295,7 @@ var ConnectedEvent = {
|
|
|
1295
1295
|
},
|
|
1296
1296
|
decode(input, length) {
|
|
1297
1297
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
1298
|
-
|
|
1298
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
1299
1299
|
const message = createBaseConnectedEvent();
|
|
1300
1300
|
while (reader.pos < end) {
|
|
1301
1301
|
const tag = reader.uint32();
|
|
@@ -1335,7 +1335,7 @@ var TransferEvent = {
|
|
|
1335
1335
|
},
|
|
1336
1336
|
decode(input, length) {
|
|
1337
1337
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
1338
|
-
|
|
1338
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
1339
1339
|
const message = createBaseTransferEvent();
|
|
1340
1340
|
while (reader.pos < end) {
|
|
1341
1341
|
const tag = reader.uint32();
|
|
@@ -1386,7 +1386,7 @@ var DepositEvent = {
|
|
|
1386
1386
|
},
|
|
1387
1387
|
decode(input, length) {
|
|
1388
1388
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
1389
|
-
|
|
1389
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
1390
1390
|
const message = createBaseDepositEvent();
|
|
1391
1391
|
while (reader.pos < end) {
|
|
1392
1392
|
const tag = reader.uint32();
|
|
@@ -1440,7 +1440,7 @@ var DepositAddressProof = {
|
|
|
1440
1440
|
},
|
|
1441
1441
|
decode(input, length) {
|
|
1442
1442
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
1443
|
-
|
|
1443
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
1444
1444
|
const message = createBaseDepositAddressProof();
|
|
1445
1445
|
while (reader.pos < end) {
|
|
1446
1446
|
const tag = reader.uint32();
|
|
@@ -1528,7 +1528,7 @@ var DepositAddressProof_AddressSignaturesEntry = {
|
|
|
1528
1528
|
},
|
|
1529
1529
|
decode(input, length) {
|
|
1530
1530
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
1531
|
-
|
|
1531
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
1532
1532
|
const message = createBaseDepositAddressProof_AddressSignaturesEntry();
|
|
1533
1533
|
while (reader.pos < end) {
|
|
1534
1534
|
const tag = reader.uint32();
|
|
@@ -1611,7 +1611,7 @@ var GenerateDepositAddressRequest = {
|
|
|
1611
1611
|
},
|
|
1612
1612
|
decode(input, length) {
|
|
1613
1613
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
1614
|
-
|
|
1614
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
1615
1615
|
const message = createBaseGenerateDepositAddressRequest();
|
|
1616
1616
|
while (reader.pos < end) {
|
|
1617
1617
|
const tag = reader.uint32();
|
|
@@ -1721,7 +1721,7 @@ var Address = {
|
|
|
1721
1721
|
},
|
|
1722
1722
|
decode(input, length) {
|
|
1723
1723
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
1724
|
-
|
|
1724
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
1725
1725
|
const message = createBaseAddress();
|
|
1726
1726
|
while (reader.pos < end) {
|
|
1727
1727
|
const tag = reader.uint32();
|
|
@@ -1810,7 +1810,7 @@ var GenerateDepositAddressResponse = {
|
|
|
1810
1810
|
},
|
|
1811
1811
|
decode(input, length) {
|
|
1812
1812
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
1813
|
-
|
|
1813
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
1814
1814
|
const message = createBaseGenerateDepositAddressResponse();
|
|
1815
1815
|
while (reader.pos < end) {
|
|
1816
1816
|
const tag = reader.uint32();
|
|
@@ -1870,7 +1870,7 @@ var UTXO = {
|
|
|
1870
1870
|
},
|
|
1871
1871
|
decode(input, length) {
|
|
1872
1872
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
1873
|
-
|
|
1873
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
1874
1874
|
const message = createBaseUTXO();
|
|
1875
1875
|
while (reader.pos < end) {
|
|
1876
1876
|
const tag = reader.uint32();
|
|
@@ -1962,7 +1962,7 @@ var NodeOutput = {
|
|
|
1962
1962
|
},
|
|
1963
1963
|
decode(input, length) {
|
|
1964
1964
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
1965
|
-
|
|
1965
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
1966
1966
|
const message = createBaseNodeOutput();
|
|
1967
1967
|
while (reader.pos < end) {
|
|
1968
1968
|
const tag = reader.uint32();
|
|
@@ -2033,7 +2033,7 @@ var SigningJob = {
|
|
|
2033
2033
|
},
|
|
2034
2034
|
decode(input, length) {
|
|
2035
2035
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
2036
|
-
|
|
2036
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
2037
2037
|
const message = createBaseSigningJob();
|
|
2038
2038
|
while (reader.pos < end) {
|
|
2039
2039
|
const tag = reader.uint32();
|
|
@@ -2122,7 +2122,7 @@ var SigningKeyshare = {
|
|
|
2122
2122
|
},
|
|
2123
2123
|
decode(input, length) {
|
|
2124
2124
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
2125
|
-
|
|
2125
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
2126
2126
|
const message = createBaseSigningKeyshare();
|
|
2127
2127
|
while (reader.pos < end) {
|
|
2128
2128
|
const tag = reader.uint32();
|
|
@@ -2246,7 +2246,7 @@ var SigningKeyshare_PublicSharesEntry = {
|
|
|
2246
2246
|
},
|
|
2247
2247
|
decode(input, length) {
|
|
2248
2248
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
2249
|
-
|
|
2249
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
2250
2250
|
const message = createBaseSigningKeyshare_PublicSharesEntry();
|
|
2251
2251
|
while (reader.pos < end) {
|
|
2252
2252
|
const tag = reader.uint32();
|
|
@@ -2320,7 +2320,7 @@ var SigningResult = {
|
|
|
2320
2320
|
},
|
|
2321
2321
|
decode(input, length) {
|
|
2322
2322
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
2323
|
-
|
|
2323
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
2324
2324
|
const message = createBaseSigningResult();
|
|
2325
2325
|
while (reader.pos < end) {
|
|
2326
2326
|
const tag = reader.uint32();
|
|
@@ -2472,7 +2472,7 @@ var SigningResult_PublicKeysEntry = {
|
|
|
2472
2472
|
},
|
|
2473
2473
|
decode(input, length) {
|
|
2474
2474
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
2475
|
-
|
|
2475
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
2476
2476
|
const message = createBaseSigningResult_PublicKeysEntry();
|
|
2477
2477
|
while (reader.pos < end) {
|
|
2478
2478
|
const tag = reader.uint32();
|
|
@@ -2540,7 +2540,7 @@ var SigningResult_SigningNonceCommitmentsEntry = {
|
|
|
2540
2540
|
},
|
|
2541
2541
|
decode(input, length) {
|
|
2542
2542
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
2543
|
-
|
|
2543
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
2544
2544
|
const message = createBaseSigningResult_SigningNonceCommitmentsEntry();
|
|
2545
2545
|
while (reader.pos < end) {
|
|
2546
2546
|
const tag = reader.uint32();
|
|
@@ -2608,7 +2608,7 @@ var SigningResult_SignatureSharesEntry = {
|
|
|
2608
2608
|
},
|
|
2609
2609
|
decode(input, length) {
|
|
2610
2610
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
2611
|
-
|
|
2611
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
2612
2612
|
const message = createBaseSigningResult_SignatureSharesEntry();
|
|
2613
2613
|
while (reader.pos < end) {
|
|
2614
2614
|
const tag = reader.uint32();
|
|
@@ -2666,7 +2666,10 @@ function createBaseNodeSignatureShares() {
|
|
|
2666
2666
|
nodeId: "",
|
|
2667
2667
|
nodeTxSigningResult: void 0,
|
|
2668
2668
|
refundTxSigningResult: void 0,
|
|
2669
|
-
verifyingKey: new Uint8Array(0)
|
|
2669
|
+
verifyingKey: new Uint8Array(0),
|
|
2670
|
+
directNodeTxSigningResult: void 0,
|
|
2671
|
+
directRefundTxSigningResult: void 0,
|
|
2672
|
+
directFromCpfpRefundTxSigningResult: void 0
|
|
2670
2673
|
};
|
|
2671
2674
|
}
|
|
2672
2675
|
var NodeSignatureShares = {
|
|
@@ -2683,11 +2686,20 @@ var NodeSignatureShares = {
|
|
|
2683
2686
|
if (message.verifyingKey.length !== 0) {
|
|
2684
2687
|
writer.uint32(34).bytes(message.verifyingKey);
|
|
2685
2688
|
}
|
|
2689
|
+
if (message.directNodeTxSigningResult !== void 0) {
|
|
2690
|
+
SigningResult.encode(message.directNodeTxSigningResult, writer.uint32(42).fork()).join();
|
|
2691
|
+
}
|
|
2692
|
+
if (message.directRefundTxSigningResult !== void 0) {
|
|
2693
|
+
SigningResult.encode(message.directRefundTxSigningResult, writer.uint32(50).fork()).join();
|
|
2694
|
+
}
|
|
2695
|
+
if (message.directFromCpfpRefundTxSigningResult !== void 0) {
|
|
2696
|
+
SigningResult.encode(message.directFromCpfpRefundTxSigningResult, writer.uint32(58).fork()).join();
|
|
2697
|
+
}
|
|
2686
2698
|
return writer;
|
|
2687
2699
|
},
|
|
2688
2700
|
decode(input, length) {
|
|
2689
2701
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
2690
|
-
|
|
2702
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
2691
2703
|
const message = createBaseNodeSignatureShares();
|
|
2692
2704
|
while (reader.pos < end) {
|
|
2693
2705
|
const tag = reader.uint32();
|
|
@@ -2720,6 +2732,27 @@ var NodeSignatureShares = {
|
|
|
2720
2732
|
message.verifyingKey = reader.bytes();
|
|
2721
2733
|
continue;
|
|
2722
2734
|
}
|
|
2735
|
+
case 5: {
|
|
2736
|
+
if (tag !== 42) {
|
|
2737
|
+
break;
|
|
2738
|
+
}
|
|
2739
|
+
message.directNodeTxSigningResult = SigningResult.decode(reader, reader.uint32());
|
|
2740
|
+
continue;
|
|
2741
|
+
}
|
|
2742
|
+
case 6: {
|
|
2743
|
+
if (tag !== 50) {
|
|
2744
|
+
break;
|
|
2745
|
+
}
|
|
2746
|
+
message.directRefundTxSigningResult = SigningResult.decode(reader, reader.uint32());
|
|
2747
|
+
continue;
|
|
2748
|
+
}
|
|
2749
|
+
case 7: {
|
|
2750
|
+
if (tag !== 58) {
|
|
2751
|
+
break;
|
|
2752
|
+
}
|
|
2753
|
+
message.directFromCpfpRefundTxSigningResult = SigningResult.decode(reader, reader.uint32());
|
|
2754
|
+
continue;
|
|
2755
|
+
}
|
|
2723
2756
|
}
|
|
2724
2757
|
if ((tag & 7) === 4 || tag === 0) {
|
|
2725
2758
|
break;
|
|
@@ -2733,7 +2766,10 @@ var NodeSignatureShares = {
|
|
|
2733
2766
|
nodeId: isSet4(object.nodeId) ? globalThis.String(object.nodeId) : "",
|
|
2734
2767
|
nodeTxSigningResult: isSet4(object.nodeTxSigningResult) ? SigningResult.fromJSON(object.nodeTxSigningResult) : void 0,
|
|
2735
2768
|
refundTxSigningResult: isSet4(object.refundTxSigningResult) ? SigningResult.fromJSON(object.refundTxSigningResult) : void 0,
|
|
2736
|
-
verifyingKey: isSet4(object.verifyingKey) ? bytesFromBase643(object.verifyingKey) : new Uint8Array(0)
|
|
2769
|
+
verifyingKey: isSet4(object.verifyingKey) ? bytesFromBase643(object.verifyingKey) : new Uint8Array(0),
|
|
2770
|
+
directNodeTxSigningResult: isSet4(object.directNodeTxSigningResult) ? SigningResult.fromJSON(object.directNodeTxSigningResult) : void 0,
|
|
2771
|
+
directRefundTxSigningResult: isSet4(object.directRefundTxSigningResult) ? SigningResult.fromJSON(object.directRefundTxSigningResult) : void 0,
|
|
2772
|
+
directFromCpfpRefundTxSigningResult: isSet4(object.directFromCpfpRefundTxSigningResult) ? SigningResult.fromJSON(object.directFromCpfpRefundTxSigningResult) : void 0
|
|
2737
2773
|
};
|
|
2738
2774
|
},
|
|
2739
2775
|
toJSON(message) {
|
|
@@ -2750,6 +2786,15 @@ var NodeSignatureShares = {
|
|
|
2750
2786
|
if (message.verifyingKey.length !== 0) {
|
|
2751
2787
|
obj.verifyingKey = base64FromBytes3(message.verifyingKey);
|
|
2752
2788
|
}
|
|
2789
|
+
if (message.directNodeTxSigningResult !== void 0) {
|
|
2790
|
+
obj.directNodeTxSigningResult = SigningResult.toJSON(message.directNodeTxSigningResult);
|
|
2791
|
+
}
|
|
2792
|
+
if (message.directRefundTxSigningResult !== void 0) {
|
|
2793
|
+
obj.directRefundTxSigningResult = SigningResult.toJSON(message.directRefundTxSigningResult);
|
|
2794
|
+
}
|
|
2795
|
+
if (message.directFromCpfpRefundTxSigningResult !== void 0) {
|
|
2796
|
+
obj.directFromCpfpRefundTxSigningResult = SigningResult.toJSON(message.directFromCpfpRefundTxSigningResult);
|
|
2797
|
+
}
|
|
2753
2798
|
return obj;
|
|
2754
2799
|
},
|
|
2755
2800
|
create(base) {
|
|
@@ -2761,11 +2806,21 @@ var NodeSignatureShares = {
|
|
|
2761
2806
|
message.nodeTxSigningResult = object.nodeTxSigningResult !== void 0 && object.nodeTxSigningResult !== null ? SigningResult.fromPartial(object.nodeTxSigningResult) : void 0;
|
|
2762
2807
|
message.refundTxSigningResult = object.refundTxSigningResult !== void 0 && object.refundTxSigningResult !== null ? SigningResult.fromPartial(object.refundTxSigningResult) : void 0;
|
|
2763
2808
|
message.verifyingKey = object.verifyingKey ?? new Uint8Array(0);
|
|
2809
|
+
message.directNodeTxSigningResult = object.directNodeTxSigningResult !== void 0 && object.directNodeTxSigningResult !== null ? SigningResult.fromPartial(object.directNodeTxSigningResult) : void 0;
|
|
2810
|
+
message.directRefundTxSigningResult = object.directRefundTxSigningResult !== void 0 && object.directRefundTxSigningResult !== null ? SigningResult.fromPartial(object.directRefundTxSigningResult) : void 0;
|
|
2811
|
+
message.directFromCpfpRefundTxSigningResult = object.directFromCpfpRefundTxSigningResult !== void 0 && object.directFromCpfpRefundTxSigningResult !== null ? SigningResult.fromPartial(object.directFromCpfpRefundTxSigningResult) : void 0;
|
|
2764
2812
|
return message;
|
|
2765
2813
|
}
|
|
2766
2814
|
};
|
|
2767
2815
|
function createBaseNodeSignatures() {
|
|
2768
|
-
return {
|
|
2816
|
+
return {
|
|
2817
|
+
nodeId: "",
|
|
2818
|
+
nodeTxSignature: new Uint8Array(0),
|
|
2819
|
+
refundTxSignature: new Uint8Array(0),
|
|
2820
|
+
directNodeTxSignature: new Uint8Array(0),
|
|
2821
|
+
directRefundTxSignature: new Uint8Array(0),
|
|
2822
|
+
directFromCpfpRefundTxSignature: new Uint8Array(0)
|
|
2823
|
+
};
|
|
2769
2824
|
}
|
|
2770
2825
|
var NodeSignatures = {
|
|
2771
2826
|
encode(message, writer = new import_wire5.BinaryWriter()) {
|
|
@@ -2778,11 +2833,20 @@ var NodeSignatures = {
|
|
|
2778
2833
|
if (message.refundTxSignature.length !== 0) {
|
|
2779
2834
|
writer.uint32(26).bytes(message.refundTxSignature);
|
|
2780
2835
|
}
|
|
2836
|
+
if (message.directNodeTxSignature.length !== 0) {
|
|
2837
|
+
writer.uint32(34).bytes(message.directNodeTxSignature);
|
|
2838
|
+
}
|
|
2839
|
+
if (message.directRefundTxSignature.length !== 0) {
|
|
2840
|
+
writer.uint32(42).bytes(message.directRefundTxSignature);
|
|
2841
|
+
}
|
|
2842
|
+
if (message.directFromCpfpRefundTxSignature.length !== 0) {
|
|
2843
|
+
writer.uint32(50).bytes(message.directFromCpfpRefundTxSignature);
|
|
2844
|
+
}
|
|
2781
2845
|
return writer;
|
|
2782
2846
|
},
|
|
2783
2847
|
decode(input, length) {
|
|
2784
2848
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
2785
|
-
|
|
2849
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
2786
2850
|
const message = createBaseNodeSignatures();
|
|
2787
2851
|
while (reader.pos < end) {
|
|
2788
2852
|
const tag = reader.uint32();
|
|
@@ -2808,6 +2872,27 @@ var NodeSignatures = {
|
|
|
2808
2872
|
message.refundTxSignature = reader.bytes();
|
|
2809
2873
|
continue;
|
|
2810
2874
|
}
|
|
2875
|
+
case 4: {
|
|
2876
|
+
if (tag !== 34) {
|
|
2877
|
+
break;
|
|
2878
|
+
}
|
|
2879
|
+
message.directNodeTxSignature = reader.bytes();
|
|
2880
|
+
continue;
|
|
2881
|
+
}
|
|
2882
|
+
case 5: {
|
|
2883
|
+
if (tag !== 42) {
|
|
2884
|
+
break;
|
|
2885
|
+
}
|
|
2886
|
+
message.directRefundTxSignature = reader.bytes();
|
|
2887
|
+
continue;
|
|
2888
|
+
}
|
|
2889
|
+
case 6: {
|
|
2890
|
+
if (tag !== 50) {
|
|
2891
|
+
break;
|
|
2892
|
+
}
|
|
2893
|
+
message.directFromCpfpRefundTxSignature = reader.bytes();
|
|
2894
|
+
continue;
|
|
2895
|
+
}
|
|
2811
2896
|
}
|
|
2812
2897
|
if ((tag & 7) === 4 || tag === 0) {
|
|
2813
2898
|
break;
|
|
@@ -2820,7 +2905,10 @@ var NodeSignatures = {
|
|
|
2820
2905
|
return {
|
|
2821
2906
|
nodeId: isSet4(object.nodeId) ? globalThis.String(object.nodeId) : "",
|
|
2822
2907
|
nodeTxSignature: isSet4(object.nodeTxSignature) ? bytesFromBase643(object.nodeTxSignature) : new Uint8Array(0),
|
|
2823
|
-
refundTxSignature: isSet4(object.refundTxSignature) ? bytesFromBase643(object.refundTxSignature) : new Uint8Array(0)
|
|
2908
|
+
refundTxSignature: isSet4(object.refundTxSignature) ? bytesFromBase643(object.refundTxSignature) : new Uint8Array(0),
|
|
2909
|
+
directNodeTxSignature: isSet4(object.directNodeTxSignature) ? bytesFromBase643(object.directNodeTxSignature) : new Uint8Array(0),
|
|
2910
|
+
directRefundTxSignature: isSet4(object.directRefundTxSignature) ? bytesFromBase643(object.directRefundTxSignature) : new Uint8Array(0),
|
|
2911
|
+
directFromCpfpRefundTxSignature: isSet4(object.directFromCpfpRefundTxSignature) ? bytesFromBase643(object.directFromCpfpRefundTxSignature) : new Uint8Array(0)
|
|
2824
2912
|
};
|
|
2825
2913
|
},
|
|
2826
2914
|
toJSON(message) {
|
|
@@ -2834,6 +2922,15 @@ var NodeSignatures = {
|
|
|
2834
2922
|
if (message.refundTxSignature.length !== 0) {
|
|
2835
2923
|
obj.refundTxSignature = base64FromBytes3(message.refundTxSignature);
|
|
2836
2924
|
}
|
|
2925
|
+
if (message.directNodeTxSignature.length !== 0) {
|
|
2926
|
+
obj.directNodeTxSignature = base64FromBytes3(message.directNodeTxSignature);
|
|
2927
|
+
}
|
|
2928
|
+
if (message.directRefundTxSignature.length !== 0) {
|
|
2929
|
+
obj.directRefundTxSignature = base64FromBytes3(message.directRefundTxSignature);
|
|
2930
|
+
}
|
|
2931
|
+
if (message.directFromCpfpRefundTxSignature.length !== 0) {
|
|
2932
|
+
obj.directFromCpfpRefundTxSignature = base64FromBytes3(message.directFromCpfpRefundTxSignature);
|
|
2933
|
+
}
|
|
2837
2934
|
return obj;
|
|
2838
2935
|
},
|
|
2839
2936
|
create(base) {
|
|
@@ -2844,6 +2941,9 @@ var NodeSignatures = {
|
|
|
2844
2941
|
message.nodeId = object.nodeId ?? "";
|
|
2845
2942
|
message.nodeTxSignature = object.nodeTxSignature ?? new Uint8Array(0);
|
|
2846
2943
|
message.refundTxSignature = object.refundTxSignature ?? new Uint8Array(0);
|
|
2944
|
+
message.directNodeTxSignature = object.directNodeTxSignature ?? new Uint8Array(0);
|
|
2945
|
+
message.directRefundTxSignature = object.directRefundTxSignature ?? new Uint8Array(0);
|
|
2946
|
+
message.directFromCpfpRefundTxSignature = object.directFromCpfpRefundTxSignature ?? new Uint8Array(0);
|
|
2847
2947
|
return message;
|
|
2848
2948
|
}
|
|
2849
2949
|
};
|
|
@@ -2852,7 +2952,10 @@ function createBaseStartTreeCreationRequest() {
|
|
|
2852
2952
|
identityPublicKey: new Uint8Array(0),
|
|
2853
2953
|
onChainUtxo: void 0,
|
|
2854
2954
|
rootTxSigningJob: void 0,
|
|
2855
|
-
refundTxSigningJob: void 0
|
|
2955
|
+
refundTxSigningJob: void 0,
|
|
2956
|
+
directRootTxSigningJob: void 0,
|
|
2957
|
+
directRefundTxSigningJob: void 0,
|
|
2958
|
+
directFromCpfpRefundTxSigningJob: void 0
|
|
2856
2959
|
};
|
|
2857
2960
|
}
|
|
2858
2961
|
var StartTreeCreationRequest = {
|
|
@@ -2869,11 +2972,20 @@ var StartTreeCreationRequest = {
|
|
|
2869
2972
|
if (message.refundTxSigningJob !== void 0) {
|
|
2870
2973
|
SigningJob.encode(message.refundTxSigningJob, writer.uint32(34).fork()).join();
|
|
2871
2974
|
}
|
|
2975
|
+
if (message.directRootTxSigningJob !== void 0) {
|
|
2976
|
+
SigningJob.encode(message.directRootTxSigningJob, writer.uint32(42).fork()).join();
|
|
2977
|
+
}
|
|
2978
|
+
if (message.directRefundTxSigningJob !== void 0) {
|
|
2979
|
+
SigningJob.encode(message.directRefundTxSigningJob, writer.uint32(50).fork()).join();
|
|
2980
|
+
}
|
|
2981
|
+
if (message.directFromCpfpRefundTxSigningJob !== void 0) {
|
|
2982
|
+
SigningJob.encode(message.directFromCpfpRefundTxSigningJob, writer.uint32(58).fork()).join();
|
|
2983
|
+
}
|
|
2872
2984
|
return writer;
|
|
2873
2985
|
},
|
|
2874
2986
|
decode(input, length) {
|
|
2875
2987
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
2876
|
-
|
|
2988
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
2877
2989
|
const message = createBaseStartTreeCreationRequest();
|
|
2878
2990
|
while (reader.pos < end) {
|
|
2879
2991
|
const tag = reader.uint32();
|
|
@@ -2906,6 +3018,27 @@ var StartTreeCreationRequest = {
|
|
|
2906
3018
|
message.refundTxSigningJob = SigningJob.decode(reader, reader.uint32());
|
|
2907
3019
|
continue;
|
|
2908
3020
|
}
|
|
3021
|
+
case 5: {
|
|
3022
|
+
if (tag !== 42) {
|
|
3023
|
+
break;
|
|
3024
|
+
}
|
|
3025
|
+
message.directRootTxSigningJob = SigningJob.decode(reader, reader.uint32());
|
|
3026
|
+
continue;
|
|
3027
|
+
}
|
|
3028
|
+
case 6: {
|
|
3029
|
+
if (tag !== 50) {
|
|
3030
|
+
break;
|
|
3031
|
+
}
|
|
3032
|
+
message.directRefundTxSigningJob = SigningJob.decode(reader, reader.uint32());
|
|
3033
|
+
continue;
|
|
3034
|
+
}
|
|
3035
|
+
case 7: {
|
|
3036
|
+
if (tag !== 58) {
|
|
3037
|
+
break;
|
|
3038
|
+
}
|
|
3039
|
+
message.directFromCpfpRefundTxSigningJob = SigningJob.decode(reader, reader.uint32());
|
|
3040
|
+
continue;
|
|
3041
|
+
}
|
|
2909
3042
|
}
|
|
2910
3043
|
if ((tag & 7) === 4 || tag === 0) {
|
|
2911
3044
|
break;
|
|
@@ -2919,7 +3052,10 @@ var StartTreeCreationRequest = {
|
|
|
2919
3052
|
identityPublicKey: isSet4(object.identityPublicKey) ? bytesFromBase643(object.identityPublicKey) : new Uint8Array(0),
|
|
2920
3053
|
onChainUtxo: isSet4(object.onChainUtxo) ? UTXO.fromJSON(object.onChainUtxo) : void 0,
|
|
2921
3054
|
rootTxSigningJob: isSet4(object.rootTxSigningJob) ? SigningJob.fromJSON(object.rootTxSigningJob) : void 0,
|
|
2922
|
-
refundTxSigningJob: isSet4(object.refundTxSigningJob) ? SigningJob.fromJSON(object.refundTxSigningJob) : void 0
|
|
3055
|
+
refundTxSigningJob: isSet4(object.refundTxSigningJob) ? SigningJob.fromJSON(object.refundTxSigningJob) : void 0,
|
|
3056
|
+
directRootTxSigningJob: isSet4(object.directRootTxSigningJob) ? SigningJob.fromJSON(object.directRootTxSigningJob) : void 0,
|
|
3057
|
+
directRefundTxSigningJob: isSet4(object.directRefundTxSigningJob) ? SigningJob.fromJSON(object.directRefundTxSigningJob) : void 0,
|
|
3058
|
+
directFromCpfpRefundTxSigningJob: isSet4(object.directFromCpfpRefundTxSigningJob) ? SigningJob.fromJSON(object.directFromCpfpRefundTxSigningJob) : void 0
|
|
2923
3059
|
};
|
|
2924
3060
|
},
|
|
2925
3061
|
toJSON(message) {
|
|
@@ -2936,6 +3072,15 @@ var StartTreeCreationRequest = {
|
|
|
2936
3072
|
if (message.refundTxSigningJob !== void 0) {
|
|
2937
3073
|
obj.refundTxSigningJob = SigningJob.toJSON(message.refundTxSigningJob);
|
|
2938
3074
|
}
|
|
3075
|
+
if (message.directRootTxSigningJob !== void 0) {
|
|
3076
|
+
obj.directRootTxSigningJob = SigningJob.toJSON(message.directRootTxSigningJob);
|
|
3077
|
+
}
|
|
3078
|
+
if (message.directRefundTxSigningJob !== void 0) {
|
|
3079
|
+
obj.directRefundTxSigningJob = SigningJob.toJSON(message.directRefundTxSigningJob);
|
|
3080
|
+
}
|
|
3081
|
+
if (message.directFromCpfpRefundTxSigningJob !== void 0) {
|
|
3082
|
+
obj.directFromCpfpRefundTxSigningJob = SigningJob.toJSON(message.directFromCpfpRefundTxSigningJob);
|
|
3083
|
+
}
|
|
2939
3084
|
return obj;
|
|
2940
3085
|
},
|
|
2941
3086
|
create(base) {
|
|
@@ -2947,6 +3092,9 @@ var StartTreeCreationRequest = {
|
|
|
2947
3092
|
message.onChainUtxo = object.onChainUtxo !== void 0 && object.onChainUtxo !== null ? UTXO.fromPartial(object.onChainUtxo) : void 0;
|
|
2948
3093
|
message.rootTxSigningJob = object.rootTxSigningJob !== void 0 && object.rootTxSigningJob !== null ? SigningJob.fromPartial(object.rootTxSigningJob) : void 0;
|
|
2949
3094
|
message.refundTxSigningJob = object.refundTxSigningJob !== void 0 && object.refundTxSigningJob !== null ? SigningJob.fromPartial(object.refundTxSigningJob) : void 0;
|
|
3095
|
+
message.directRootTxSigningJob = object.directRootTxSigningJob !== void 0 && object.directRootTxSigningJob !== null ? SigningJob.fromPartial(object.directRootTxSigningJob) : void 0;
|
|
3096
|
+
message.directRefundTxSigningJob = object.directRefundTxSigningJob !== void 0 && object.directRefundTxSigningJob !== null ? SigningJob.fromPartial(object.directRefundTxSigningJob) : void 0;
|
|
3097
|
+
message.directFromCpfpRefundTxSigningJob = object.directFromCpfpRefundTxSigningJob !== void 0 && object.directFromCpfpRefundTxSigningJob !== null ? SigningJob.fromPartial(object.directFromCpfpRefundTxSigningJob) : void 0;
|
|
2950
3098
|
return message;
|
|
2951
3099
|
}
|
|
2952
3100
|
};
|
|
@@ -2965,7 +3113,7 @@ var StartTreeCreationResponse = {
|
|
|
2965
3113
|
},
|
|
2966
3114
|
decode(input, length) {
|
|
2967
3115
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
2968
|
-
|
|
3116
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
2969
3117
|
const message = createBaseStartTreeCreationResponse();
|
|
2970
3118
|
while (reader.pos < end) {
|
|
2971
3119
|
const tag = reader.uint32();
|
|
@@ -3023,7 +3171,10 @@ function createBaseStartDepositTreeCreationRequest() {
|
|
|
3023
3171
|
identityPublicKey: new Uint8Array(0),
|
|
3024
3172
|
onChainUtxo: void 0,
|
|
3025
3173
|
rootTxSigningJob: void 0,
|
|
3026
|
-
refundTxSigningJob: void 0
|
|
3174
|
+
refundTxSigningJob: void 0,
|
|
3175
|
+
directRootTxSigningJob: void 0,
|
|
3176
|
+
directRefundTxSigningJob: void 0,
|
|
3177
|
+
directFromCpfpRefundTxSigningJob: void 0
|
|
3027
3178
|
};
|
|
3028
3179
|
}
|
|
3029
3180
|
var StartDepositTreeCreationRequest = {
|
|
@@ -3040,11 +3191,20 @@ var StartDepositTreeCreationRequest = {
|
|
|
3040
3191
|
if (message.refundTxSigningJob !== void 0) {
|
|
3041
3192
|
SigningJob.encode(message.refundTxSigningJob, writer.uint32(34).fork()).join();
|
|
3042
3193
|
}
|
|
3194
|
+
if (message.directRootTxSigningJob !== void 0) {
|
|
3195
|
+
SigningJob.encode(message.directRootTxSigningJob, writer.uint32(42).fork()).join();
|
|
3196
|
+
}
|
|
3197
|
+
if (message.directRefundTxSigningJob !== void 0) {
|
|
3198
|
+
SigningJob.encode(message.directRefundTxSigningJob, writer.uint32(50).fork()).join();
|
|
3199
|
+
}
|
|
3200
|
+
if (message.directFromCpfpRefundTxSigningJob !== void 0) {
|
|
3201
|
+
SigningJob.encode(message.directFromCpfpRefundTxSigningJob, writer.uint32(58).fork()).join();
|
|
3202
|
+
}
|
|
3043
3203
|
return writer;
|
|
3044
3204
|
},
|
|
3045
3205
|
decode(input, length) {
|
|
3046
3206
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
3047
|
-
|
|
3207
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
3048
3208
|
const message = createBaseStartDepositTreeCreationRequest();
|
|
3049
3209
|
while (reader.pos < end) {
|
|
3050
3210
|
const tag = reader.uint32();
|
|
@@ -3077,6 +3237,27 @@ var StartDepositTreeCreationRequest = {
|
|
|
3077
3237
|
message.refundTxSigningJob = SigningJob.decode(reader, reader.uint32());
|
|
3078
3238
|
continue;
|
|
3079
3239
|
}
|
|
3240
|
+
case 5: {
|
|
3241
|
+
if (tag !== 42) {
|
|
3242
|
+
break;
|
|
3243
|
+
}
|
|
3244
|
+
message.directRootTxSigningJob = SigningJob.decode(reader, reader.uint32());
|
|
3245
|
+
continue;
|
|
3246
|
+
}
|
|
3247
|
+
case 6: {
|
|
3248
|
+
if (tag !== 50) {
|
|
3249
|
+
break;
|
|
3250
|
+
}
|
|
3251
|
+
message.directRefundTxSigningJob = SigningJob.decode(reader, reader.uint32());
|
|
3252
|
+
continue;
|
|
3253
|
+
}
|
|
3254
|
+
case 7: {
|
|
3255
|
+
if (tag !== 58) {
|
|
3256
|
+
break;
|
|
3257
|
+
}
|
|
3258
|
+
message.directFromCpfpRefundTxSigningJob = SigningJob.decode(reader, reader.uint32());
|
|
3259
|
+
continue;
|
|
3260
|
+
}
|
|
3080
3261
|
}
|
|
3081
3262
|
if ((tag & 7) === 4 || tag === 0) {
|
|
3082
3263
|
break;
|
|
@@ -3090,7 +3271,10 @@ var StartDepositTreeCreationRequest = {
|
|
|
3090
3271
|
identityPublicKey: isSet4(object.identityPublicKey) ? bytesFromBase643(object.identityPublicKey) : new Uint8Array(0),
|
|
3091
3272
|
onChainUtxo: isSet4(object.onChainUtxo) ? UTXO.fromJSON(object.onChainUtxo) : void 0,
|
|
3092
3273
|
rootTxSigningJob: isSet4(object.rootTxSigningJob) ? SigningJob.fromJSON(object.rootTxSigningJob) : void 0,
|
|
3093
|
-
refundTxSigningJob: isSet4(object.refundTxSigningJob) ? SigningJob.fromJSON(object.refundTxSigningJob) : void 0
|
|
3274
|
+
refundTxSigningJob: isSet4(object.refundTxSigningJob) ? SigningJob.fromJSON(object.refundTxSigningJob) : void 0,
|
|
3275
|
+
directRootTxSigningJob: isSet4(object.directRootTxSigningJob) ? SigningJob.fromJSON(object.directRootTxSigningJob) : void 0,
|
|
3276
|
+
directRefundTxSigningJob: isSet4(object.directRefundTxSigningJob) ? SigningJob.fromJSON(object.directRefundTxSigningJob) : void 0,
|
|
3277
|
+
directFromCpfpRefundTxSigningJob: isSet4(object.directFromCpfpRefundTxSigningJob) ? SigningJob.fromJSON(object.directFromCpfpRefundTxSigningJob) : void 0
|
|
3094
3278
|
};
|
|
3095
3279
|
},
|
|
3096
3280
|
toJSON(message) {
|
|
@@ -3107,6 +3291,15 @@ var StartDepositTreeCreationRequest = {
|
|
|
3107
3291
|
if (message.refundTxSigningJob !== void 0) {
|
|
3108
3292
|
obj.refundTxSigningJob = SigningJob.toJSON(message.refundTxSigningJob);
|
|
3109
3293
|
}
|
|
3294
|
+
if (message.directRootTxSigningJob !== void 0) {
|
|
3295
|
+
obj.directRootTxSigningJob = SigningJob.toJSON(message.directRootTxSigningJob);
|
|
3296
|
+
}
|
|
3297
|
+
if (message.directRefundTxSigningJob !== void 0) {
|
|
3298
|
+
obj.directRefundTxSigningJob = SigningJob.toJSON(message.directRefundTxSigningJob);
|
|
3299
|
+
}
|
|
3300
|
+
if (message.directFromCpfpRefundTxSigningJob !== void 0) {
|
|
3301
|
+
obj.directFromCpfpRefundTxSigningJob = SigningJob.toJSON(message.directFromCpfpRefundTxSigningJob);
|
|
3302
|
+
}
|
|
3110
3303
|
return obj;
|
|
3111
3304
|
},
|
|
3112
3305
|
create(base) {
|
|
@@ -3118,6 +3311,9 @@ var StartDepositTreeCreationRequest = {
|
|
|
3118
3311
|
message.onChainUtxo = object.onChainUtxo !== void 0 && object.onChainUtxo !== null ? UTXO.fromPartial(object.onChainUtxo) : void 0;
|
|
3119
3312
|
message.rootTxSigningJob = object.rootTxSigningJob !== void 0 && object.rootTxSigningJob !== null ? SigningJob.fromPartial(object.rootTxSigningJob) : void 0;
|
|
3120
3313
|
message.refundTxSigningJob = object.refundTxSigningJob !== void 0 && object.refundTxSigningJob !== null ? SigningJob.fromPartial(object.refundTxSigningJob) : void 0;
|
|
3314
|
+
message.directRootTxSigningJob = object.directRootTxSigningJob !== void 0 && object.directRootTxSigningJob !== null ? SigningJob.fromPartial(object.directRootTxSigningJob) : void 0;
|
|
3315
|
+
message.directRefundTxSigningJob = object.directRefundTxSigningJob !== void 0 && object.directRefundTxSigningJob !== null ? SigningJob.fromPartial(object.directRefundTxSigningJob) : void 0;
|
|
3316
|
+
message.directFromCpfpRefundTxSigningJob = object.directFromCpfpRefundTxSigningJob !== void 0 && object.directFromCpfpRefundTxSigningJob !== null ? SigningJob.fromPartial(object.directFromCpfpRefundTxSigningJob) : void 0;
|
|
3121
3317
|
return message;
|
|
3122
3318
|
}
|
|
3123
3319
|
};
|
|
@@ -3136,7 +3332,7 @@ var StartDepositTreeCreationResponse = {
|
|
|
3136
3332
|
},
|
|
3137
3333
|
decode(input, length) {
|
|
3138
3334
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
3139
|
-
|
|
3335
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
3140
3336
|
const message = createBaseStartDepositTreeCreationResponse();
|
|
3141
3337
|
while (reader.pos < end) {
|
|
3142
3338
|
const tag = reader.uint32();
|
|
@@ -3204,7 +3400,7 @@ var TokenOutputToSpend = {
|
|
|
3204
3400
|
},
|
|
3205
3401
|
decode(input, length) {
|
|
3206
3402
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
3207
|
-
|
|
3403
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
3208
3404
|
const message = createBaseTokenOutputToSpend();
|
|
3209
3405
|
while (reader.pos < end) {
|
|
3210
3406
|
const tag = reader.uint32();
|
|
@@ -3269,7 +3465,7 @@ var TokenTransferInput = {
|
|
|
3269
3465
|
},
|
|
3270
3466
|
decode(input, length) {
|
|
3271
3467
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
3272
|
-
|
|
3468
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
3273
3469
|
const message = createBaseTokenTransferInput();
|
|
3274
3470
|
while (reader.pos < end) {
|
|
3275
3471
|
const tag = reader.uint32();
|
|
@@ -3311,7 +3507,7 @@ var TokenTransferInput = {
|
|
|
3311
3507
|
}
|
|
3312
3508
|
};
|
|
3313
3509
|
function createBaseTokenMintInput() {
|
|
3314
|
-
return { issuerPublicKey: new Uint8Array(0), issuerProvidedTimestamp: 0 };
|
|
3510
|
+
return { issuerPublicKey: new Uint8Array(0), issuerProvidedTimestamp: 0, tokenIdentifier: void 0 };
|
|
3315
3511
|
}
|
|
3316
3512
|
var TokenMintInput = {
|
|
3317
3513
|
encode(message, writer = new import_wire5.BinaryWriter()) {
|
|
@@ -3321,11 +3517,14 @@ var TokenMintInput = {
|
|
|
3321
3517
|
if (message.issuerProvidedTimestamp !== 0) {
|
|
3322
3518
|
writer.uint32(16).uint64(message.issuerProvidedTimestamp);
|
|
3323
3519
|
}
|
|
3520
|
+
if (message.tokenIdentifier !== void 0) {
|
|
3521
|
+
writer.uint32(26).bytes(message.tokenIdentifier);
|
|
3522
|
+
}
|
|
3324
3523
|
return writer;
|
|
3325
3524
|
},
|
|
3326
3525
|
decode(input, length) {
|
|
3327
3526
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
3328
|
-
|
|
3527
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
3329
3528
|
const message = createBaseTokenMintInput();
|
|
3330
3529
|
while (reader.pos < end) {
|
|
3331
3530
|
const tag = reader.uint32();
|
|
@@ -3344,6 +3543,13 @@ var TokenMintInput = {
|
|
|
3344
3543
|
message.issuerProvidedTimestamp = longToNumber2(reader.uint64());
|
|
3345
3544
|
continue;
|
|
3346
3545
|
}
|
|
3546
|
+
case 3: {
|
|
3547
|
+
if (tag !== 26) {
|
|
3548
|
+
break;
|
|
3549
|
+
}
|
|
3550
|
+
message.tokenIdentifier = reader.bytes();
|
|
3551
|
+
continue;
|
|
3552
|
+
}
|
|
3347
3553
|
}
|
|
3348
3554
|
if ((tag & 7) === 4 || tag === 0) {
|
|
3349
3555
|
break;
|
|
@@ -3355,7 +3561,8 @@ var TokenMintInput = {
|
|
|
3355
3561
|
fromJSON(object) {
|
|
3356
3562
|
return {
|
|
3357
3563
|
issuerPublicKey: isSet4(object.issuerPublicKey) ? bytesFromBase643(object.issuerPublicKey) : new Uint8Array(0),
|
|
3358
|
-
issuerProvidedTimestamp: isSet4(object.issuerProvidedTimestamp) ? globalThis.Number(object.issuerProvidedTimestamp) : 0
|
|
3564
|
+
issuerProvidedTimestamp: isSet4(object.issuerProvidedTimestamp) ? globalThis.Number(object.issuerProvidedTimestamp) : 0,
|
|
3565
|
+
tokenIdentifier: isSet4(object.tokenIdentifier) ? bytesFromBase643(object.tokenIdentifier) : void 0
|
|
3359
3566
|
};
|
|
3360
3567
|
},
|
|
3361
3568
|
toJSON(message) {
|
|
@@ -3366,6 +3573,9 @@ var TokenMintInput = {
|
|
|
3366
3573
|
if (message.issuerProvidedTimestamp !== 0) {
|
|
3367
3574
|
obj.issuerProvidedTimestamp = Math.round(message.issuerProvidedTimestamp);
|
|
3368
3575
|
}
|
|
3576
|
+
if (message.tokenIdentifier !== void 0) {
|
|
3577
|
+
obj.tokenIdentifier = base64FromBytes3(message.tokenIdentifier);
|
|
3578
|
+
}
|
|
3369
3579
|
return obj;
|
|
3370
3580
|
},
|
|
3371
3581
|
create(base) {
|
|
@@ -3375,6 +3585,158 @@ var TokenMintInput = {
|
|
|
3375
3585
|
const message = createBaseTokenMintInput();
|
|
3376
3586
|
message.issuerPublicKey = object.issuerPublicKey ?? new Uint8Array(0);
|
|
3377
3587
|
message.issuerProvidedTimestamp = object.issuerProvidedTimestamp ?? 0;
|
|
3588
|
+
message.tokenIdentifier = object.tokenIdentifier ?? void 0;
|
|
3589
|
+
return message;
|
|
3590
|
+
}
|
|
3591
|
+
};
|
|
3592
|
+
function createBaseTokenCreateInput() {
|
|
3593
|
+
return {
|
|
3594
|
+
issuerPublicKey: new Uint8Array(0),
|
|
3595
|
+
tokenName: "",
|
|
3596
|
+
tokenTicker: "",
|
|
3597
|
+
decimals: 0,
|
|
3598
|
+
maxSupply: new Uint8Array(0),
|
|
3599
|
+
isFreezable: false,
|
|
3600
|
+
creationEntityPublicKey: void 0
|
|
3601
|
+
};
|
|
3602
|
+
}
|
|
3603
|
+
var TokenCreateInput = {
|
|
3604
|
+
encode(message, writer = new import_wire5.BinaryWriter()) {
|
|
3605
|
+
if (message.issuerPublicKey.length !== 0) {
|
|
3606
|
+
writer.uint32(10).bytes(message.issuerPublicKey);
|
|
3607
|
+
}
|
|
3608
|
+
if (message.tokenName !== "") {
|
|
3609
|
+
writer.uint32(18).string(message.tokenName);
|
|
3610
|
+
}
|
|
3611
|
+
if (message.tokenTicker !== "") {
|
|
3612
|
+
writer.uint32(26).string(message.tokenTicker);
|
|
3613
|
+
}
|
|
3614
|
+
if (message.decimals !== 0) {
|
|
3615
|
+
writer.uint32(32).uint32(message.decimals);
|
|
3616
|
+
}
|
|
3617
|
+
if (message.maxSupply.length !== 0) {
|
|
3618
|
+
writer.uint32(42).bytes(message.maxSupply);
|
|
3619
|
+
}
|
|
3620
|
+
if (message.isFreezable !== false) {
|
|
3621
|
+
writer.uint32(48).bool(message.isFreezable);
|
|
3622
|
+
}
|
|
3623
|
+
if (message.creationEntityPublicKey !== void 0) {
|
|
3624
|
+
writer.uint32(58).bytes(message.creationEntityPublicKey);
|
|
3625
|
+
}
|
|
3626
|
+
return writer;
|
|
3627
|
+
},
|
|
3628
|
+
decode(input, length) {
|
|
3629
|
+
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
3630
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
3631
|
+
const message = createBaseTokenCreateInput();
|
|
3632
|
+
while (reader.pos < end) {
|
|
3633
|
+
const tag = reader.uint32();
|
|
3634
|
+
switch (tag >>> 3) {
|
|
3635
|
+
case 1: {
|
|
3636
|
+
if (tag !== 10) {
|
|
3637
|
+
break;
|
|
3638
|
+
}
|
|
3639
|
+
message.issuerPublicKey = reader.bytes();
|
|
3640
|
+
continue;
|
|
3641
|
+
}
|
|
3642
|
+
case 2: {
|
|
3643
|
+
if (tag !== 18) {
|
|
3644
|
+
break;
|
|
3645
|
+
}
|
|
3646
|
+
message.tokenName = reader.string();
|
|
3647
|
+
continue;
|
|
3648
|
+
}
|
|
3649
|
+
case 3: {
|
|
3650
|
+
if (tag !== 26) {
|
|
3651
|
+
break;
|
|
3652
|
+
}
|
|
3653
|
+
message.tokenTicker = reader.string();
|
|
3654
|
+
continue;
|
|
3655
|
+
}
|
|
3656
|
+
case 4: {
|
|
3657
|
+
if (tag !== 32) {
|
|
3658
|
+
break;
|
|
3659
|
+
}
|
|
3660
|
+
message.decimals = reader.uint32();
|
|
3661
|
+
continue;
|
|
3662
|
+
}
|
|
3663
|
+
case 5: {
|
|
3664
|
+
if (tag !== 42) {
|
|
3665
|
+
break;
|
|
3666
|
+
}
|
|
3667
|
+
message.maxSupply = reader.bytes();
|
|
3668
|
+
continue;
|
|
3669
|
+
}
|
|
3670
|
+
case 6: {
|
|
3671
|
+
if (tag !== 48) {
|
|
3672
|
+
break;
|
|
3673
|
+
}
|
|
3674
|
+
message.isFreezable = reader.bool();
|
|
3675
|
+
continue;
|
|
3676
|
+
}
|
|
3677
|
+
case 7: {
|
|
3678
|
+
if (tag !== 58) {
|
|
3679
|
+
break;
|
|
3680
|
+
}
|
|
3681
|
+
message.creationEntityPublicKey = reader.bytes();
|
|
3682
|
+
continue;
|
|
3683
|
+
}
|
|
3684
|
+
}
|
|
3685
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3686
|
+
break;
|
|
3687
|
+
}
|
|
3688
|
+
reader.skip(tag & 7);
|
|
3689
|
+
}
|
|
3690
|
+
return message;
|
|
3691
|
+
},
|
|
3692
|
+
fromJSON(object) {
|
|
3693
|
+
return {
|
|
3694
|
+
issuerPublicKey: isSet4(object.issuerPublicKey) ? bytesFromBase643(object.issuerPublicKey) : new Uint8Array(0),
|
|
3695
|
+
tokenName: isSet4(object.tokenName) ? globalThis.String(object.tokenName) : "",
|
|
3696
|
+
tokenTicker: isSet4(object.tokenTicker) ? globalThis.String(object.tokenTicker) : "",
|
|
3697
|
+
decimals: isSet4(object.decimals) ? globalThis.Number(object.decimals) : 0,
|
|
3698
|
+
maxSupply: isSet4(object.maxSupply) ? bytesFromBase643(object.maxSupply) : new Uint8Array(0),
|
|
3699
|
+
isFreezable: isSet4(object.isFreezable) ? globalThis.Boolean(object.isFreezable) : false,
|
|
3700
|
+
creationEntityPublicKey: isSet4(object.creationEntityPublicKey) ? bytesFromBase643(object.creationEntityPublicKey) : void 0
|
|
3701
|
+
};
|
|
3702
|
+
},
|
|
3703
|
+
toJSON(message) {
|
|
3704
|
+
const obj = {};
|
|
3705
|
+
if (message.issuerPublicKey.length !== 0) {
|
|
3706
|
+
obj.issuerPublicKey = base64FromBytes3(message.issuerPublicKey);
|
|
3707
|
+
}
|
|
3708
|
+
if (message.tokenName !== "") {
|
|
3709
|
+
obj.tokenName = message.tokenName;
|
|
3710
|
+
}
|
|
3711
|
+
if (message.tokenTicker !== "") {
|
|
3712
|
+
obj.tokenTicker = message.tokenTicker;
|
|
3713
|
+
}
|
|
3714
|
+
if (message.decimals !== 0) {
|
|
3715
|
+
obj.decimals = Math.round(message.decimals);
|
|
3716
|
+
}
|
|
3717
|
+
if (message.maxSupply.length !== 0) {
|
|
3718
|
+
obj.maxSupply = base64FromBytes3(message.maxSupply);
|
|
3719
|
+
}
|
|
3720
|
+
if (message.isFreezable !== false) {
|
|
3721
|
+
obj.isFreezable = message.isFreezable;
|
|
3722
|
+
}
|
|
3723
|
+
if (message.creationEntityPublicKey !== void 0) {
|
|
3724
|
+
obj.creationEntityPublicKey = base64FromBytes3(message.creationEntityPublicKey);
|
|
3725
|
+
}
|
|
3726
|
+
return obj;
|
|
3727
|
+
},
|
|
3728
|
+
create(base) {
|
|
3729
|
+
return TokenCreateInput.fromPartial(base ?? {});
|
|
3730
|
+
},
|
|
3731
|
+
fromPartial(object) {
|
|
3732
|
+
const message = createBaseTokenCreateInput();
|
|
3733
|
+
message.issuerPublicKey = object.issuerPublicKey ?? new Uint8Array(0);
|
|
3734
|
+
message.tokenName = object.tokenName ?? "";
|
|
3735
|
+
message.tokenTicker = object.tokenTicker ?? "";
|
|
3736
|
+
message.decimals = object.decimals ?? 0;
|
|
3737
|
+
message.maxSupply = object.maxSupply ?? new Uint8Array(0);
|
|
3738
|
+
message.isFreezable = object.isFreezable ?? false;
|
|
3739
|
+
message.creationEntityPublicKey = object.creationEntityPublicKey ?? void 0;
|
|
3378
3740
|
return message;
|
|
3379
3741
|
}
|
|
3380
3742
|
};
|
|
@@ -3385,7 +3747,8 @@ function createBaseTokenOutput() {
|
|
|
3385
3747
|
revocationCommitment: void 0,
|
|
3386
3748
|
withdrawBondSats: void 0,
|
|
3387
3749
|
withdrawRelativeBlockLocktime: void 0,
|
|
3388
|
-
tokenPublicKey:
|
|
3750
|
+
tokenPublicKey: void 0,
|
|
3751
|
+
tokenIdentifier: void 0,
|
|
3389
3752
|
tokenAmount: new Uint8Array(0)
|
|
3390
3753
|
};
|
|
3391
3754
|
}
|
|
@@ -3406,9 +3769,12 @@ var TokenOutput = {
|
|
|
3406
3769
|
if (message.withdrawRelativeBlockLocktime !== void 0) {
|
|
3407
3770
|
writer.uint32(40).uint64(message.withdrawRelativeBlockLocktime);
|
|
3408
3771
|
}
|
|
3409
|
-
if (message.tokenPublicKey
|
|
3772
|
+
if (message.tokenPublicKey !== void 0) {
|
|
3410
3773
|
writer.uint32(50).bytes(message.tokenPublicKey);
|
|
3411
3774
|
}
|
|
3775
|
+
if (message.tokenIdentifier !== void 0) {
|
|
3776
|
+
writer.uint32(66).bytes(message.tokenIdentifier);
|
|
3777
|
+
}
|
|
3412
3778
|
if (message.tokenAmount.length !== 0) {
|
|
3413
3779
|
writer.uint32(58).bytes(message.tokenAmount);
|
|
3414
3780
|
}
|
|
@@ -3416,7 +3782,7 @@ var TokenOutput = {
|
|
|
3416
3782
|
},
|
|
3417
3783
|
decode(input, length) {
|
|
3418
3784
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
3419
|
-
|
|
3785
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
3420
3786
|
const message = createBaseTokenOutput();
|
|
3421
3787
|
while (reader.pos < end) {
|
|
3422
3788
|
const tag = reader.uint32();
|
|
@@ -3463,6 +3829,13 @@ var TokenOutput = {
|
|
|
3463
3829
|
message.tokenPublicKey = reader.bytes();
|
|
3464
3830
|
continue;
|
|
3465
3831
|
}
|
|
3832
|
+
case 8: {
|
|
3833
|
+
if (tag !== 66) {
|
|
3834
|
+
break;
|
|
3835
|
+
}
|
|
3836
|
+
message.tokenIdentifier = reader.bytes();
|
|
3837
|
+
continue;
|
|
3838
|
+
}
|
|
3466
3839
|
case 7: {
|
|
3467
3840
|
if (tag !== 58) {
|
|
3468
3841
|
break;
|
|
@@ -3485,7 +3858,8 @@ var TokenOutput = {
|
|
|
3485
3858
|
revocationCommitment: isSet4(object.revocationCommitment) ? bytesFromBase643(object.revocationCommitment) : void 0,
|
|
3486
3859
|
withdrawBondSats: isSet4(object.withdrawBondSats) ? globalThis.Number(object.withdrawBondSats) : void 0,
|
|
3487
3860
|
withdrawRelativeBlockLocktime: isSet4(object.withdrawRelativeBlockLocktime) ? globalThis.Number(object.withdrawRelativeBlockLocktime) : void 0,
|
|
3488
|
-
tokenPublicKey: isSet4(object.tokenPublicKey) ? bytesFromBase643(object.tokenPublicKey) :
|
|
3861
|
+
tokenPublicKey: isSet4(object.tokenPublicKey) ? bytesFromBase643(object.tokenPublicKey) : void 0,
|
|
3862
|
+
tokenIdentifier: isSet4(object.tokenIdentifier) ? bytesFromBase643(object.tokenIdentifier) : void 0,
|
|
3489
3863
|
tokenAmount: isSet4(object.tokenAmount) ? bytesFromBase643(object.tokenAmount) : new Uint8Array(0)
|
|
3490
3864
|
};
|
|
3491
3865
|
},
|
|
@@ -3506,9 +3880,12 @@ var TokenOutput = {
|
|
|
3506
3880
|
if (message.withdrawRelativeBlockLocktime !== void 0) {
|
|
3507
3881
|
obj.withdrawRelativeBlockLocktime = Math.round(message.withdrawRelativeBlockLocktime);
|
|
3508
3882
|
}
|
|
3509
|
-
if (message.tokenPublicKey
|
|
3883
|
+
if (message.tokenPublicKey !== void 0) {
|
|
3510
3884
|
obj.tokenPublicKey = base64FromBytes3(message.tokenPublicKey);
|
|
3511
3885
|
}
|
|
3886
|
+
if (message.tokenIdentifier !== void 0) {
|
|
3887
|
+
obj.tokenIdentifier = base64FromBytes3(message.tokenIdentifier);
|
|
3888
|
+
}
|
|
3512
3889
|
if (message.tokenAmount.length !== 0) {
|
|
3513
3890
|
obj.tokenAmount = base64FromBytes3(message.tokenAmount);
|
|
3514
3891
|
}
|
|
@@ -3524,7 +3901,8 @@ var TokenOutput = {
|
|
|
3524
3901
|
message.revocationCommitment = object.revocationCommitment ?? void 0;
|
|
3525
3902
|
message.withdrawBondSats = object.withdrawBondSats ?? void 0;
|
|
3526
3903
|
message.withdrawRelativeBlockLocktime = object.withdrawRelativeBlockLocktime ?? void 0;
|
|
3527
|
-
message.tokenPublicKey = object.tokenPublicKey ??
|
|
3904
|
+
message.tokenPublicKey = object.tokenPublicKey ?? void 0;
|
|
3905
|
+
message.tokenIdentifier = object.tokenIdentifier ?? void 0;
|
|
3528
3906
|
message.tokenAmount = object.tokenAmount ?? new Uint8Array(0);
|
|
3529
3907
|
return message;
|
|
3530
3908
|
}
|
|
@@ -3541,6 +3919,9 @@ var TokenTransaction = {
|
|
|
3541
3919
|
case "transferInput":
|
|
3542
3920
|
TokenTransferInput.encode(message.tokenInputs.transferInput, writer.uint32(18).fork()).join();
|
|
3543
3921
|
break;
|
|
3922
|
+
case "createInput":
|
|
3923
|
+
TokenCreateInput.encode(message.tokenInputs.createInput, writer.uint32(42).fork()).join();
|
|
3924
|
+
break;
|
|
3544
3925
|
}
|
|
3545
3926
|
for (const v of message.tokenOutputs) {
|
|
3546
3927
|
TokenOutput.encode(v, writer.uint32(26).fork()).join();
|
|
@@ -3555,7 +3936,7 @@ var TokenTransaction = {
|
|
|
3555
3936
|
},
|
|
3556
3937
|
decode(input, length) {
|
|
3557
3938
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
3558
|
-
|
|
3939
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
3559
3940
|
const message = createBaseTokenTransaction();
|
|
3560
3941
|
while (reader.pos < end) {
|
|
3561
3942
|
const tag = reader.uint32();
|
|
@@ -3577,6 +3958,13 @@ var TokenTransaction = {
|
|
|
3577
3958
|
};
|
|
3578
3959
|
continue;
|
|
3579
3960
|
}
|
|
3961
|
+
case 5: {
|
|
3962
|
+
if (tag !== 42) {
|
|
3963
|
+
break;
|
|
3964
|
+
}
|
|
3965
|
+
message.tokenInputs = { $case: "createInput", createInput: TokenCreateInput.decode(reader, reader.uint32()) };
|
|
3966
|
+
continue;
|
|
3967
|
+
}
|
|
3580
3968
|
case 3: {
|
|
3581
3969
|
if (tag !== 26) {
|
|
3582
3970
|
break;
|
|
@@ -3608,7 +3996,7 @@ var TokenTransaction = {
|
|
|
3608
3996
|
},
|
|
3609
3997
|
fromJSON(object) {
|
|
3610
3998
|
return {
|
|
3611
|
-
tokenInputs: isSet4(object.mintInput) ? { $case: "mintInput", mintInput: TokenMintInput.fromJSON(object.mintInput) } : isSet4(object.transferInput) ? { $case: "transferInput", transferInput: TokenTransferInput.fromJSON(object.transferInput) } : void 0,
|
|
3999
|
+
tokenInputs: isSet4(object.mintInput) ? { $case: "mintInput", mintInput: TokenMintInput.fromJSON(object.mintInput) } : isSet4(object.transferInput) ? { $case: "transferInput", transferInput: TokenTransferInput.fromJSON(object.transferInput) } : isSet4(object.createInput) ? { $case: "createInput", createInput: TokenCreateInput.fromJSON(object.createInput) } : void 0,
|
|
3612
4000
|
tokenOutputs: globalThis.Array.isArray(object?.tokenOutputs) ? object.tokenOutputs.map((e) => TokenOutput.fromJSON(e)) : [],
|
|
3613
4001
|
sparkOperatorIdentityPublicKeys: globalThis.Array.isArray(object?.sparkOperatorIdentityPublicKeys) ? object.sparkOperatorIdentityPublicKeys.map((e) => bytesFromBase643(e)) : [],
|
|
3614
4002
|
network: isSet4(object.network) ? networkFromJSON(object.network) : 0
|
|
@@ -3620,6 +4008,8 @@ var TokenTransaction = {
|
|
|
3620
4008
|
obj.mintInput = TokenMintInput.toJSON(message.tokenInputs.mintInput);
|
|
3621
4009
|
} else if (message.tokenInputs?.$case === "transferInput") {
|
|
3622
4010
|
obj.transferInput = TokenTransferInput.toJSON(message.tokenInputs.transferInput);
|
|
4011
|
+
} else if (message.tokenInputs?.$case === "createInput") {
|
|
4012
|
+
obj.createInput = TokenCreateInput.toJSON(message.tokenInputs.createInput);
|
|
3623
4013
|
}
|
|
3624
4014
|
if (message.tokenOutputs?.length) {
|
|
3625
4015
|
obj.tokenOutputs = message.tokenOutputs.map((e) => TokenOutput.toJSON(e));
|
|
@@ -3656,6 +4046,15 @@ var TokenTransaction = {
|
|
|
3656
4046
|
}
|
|
3657
4047
|
break;
|
|
3658
4048
|
}
|
|
4049
|
+
case "createInput": {
|
|
4050
|
+
if (object.tokenInputs?.createInput !== void 0 && object.tokenInputs?.createInput !== null) {
|
|
4051
|
+
message.tokenInputs = {
|
|
4052
|
+
$case: "createInput",
|
|
4053
|
+
createInput: TokenCreateInput.fromPartial(object.tokenInputs.createInput)
|
|
4054
|
+
};
|
|
4055
|
+
}
|
|
4056
|
+
break;
|
|
4057
|
+
}
|
|
3659
4058
|
}
|
|
3660
4059
|
message.tokenOutputs = object.tokenOutputs?.map((e) => TokenOutput.fromPartial(e)) || [];
|
|
3661
4060
|
message.sparkOperatorIdentityPublicKeys = object.sparkOperatorIdentityPublicKeys?.map((e) => e) || [];
|
|
@@ -3678,7 +4077,7 @@ var SpentTokenOutputMetadata = {
|
|
|
3678
4077
|
},
|
|
3679
4078
|
decode(input, length) {
|
|
3680
4079
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
3681
|
-
|
|
4080
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
3682
4081
|
const message = createBaseSpentTokenOutputMetadata();
|
|
3683
4082
|
while (reader.pos < end) {
|
|
3684
4083
|
const tag = reader.uint32();
|
|
@@ -3743,7 +4142,7 @@ var TokenTransactionConfirmationMetadata = {
|
|
|
3743
4142
|
},
|
|
3744
4143
|
decode(input, length) {
|
|
3745
4144
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
3746
|
-
|
|
4145
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
3747
4146
|
const message = createBaseTokenTransactionConfirmationMetadata();
|
|
3748
4147
|
while (reader.pos < end) {
|
|
3749
4148
|
const tag = reader.uint32();
|
|
@@ -3802,7 +4201,7 @@ var TokenTransactionWithStatus = {
|
|
|
3802
4201
|
},
|
|
3803
4202
|
decode(input, length) {
|
|
3804
4203
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
3805
|
-
|
|
4204
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
3806
4205
|
const message = createBaseTokenTransactionWithStatus();
|
|
3807
4206
|
while (reader.pos < end) {
|
|
3808
4207
|
const tag = reader.uint32();
|
|
@@ -3882,7 +4281,7 @@ var SignatureWithIndex = {
|
|
|
3882
4281
|
},
|
|
3883
4282
|
decode(input, length) {
|
|
3884
4283
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
3885
|
-
|
|
4284
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
3886
4285
|
const message = createBaseSignatureWithIndex();
|
|
3887
4286
|
while (reader.pos < end) {
|
|
3888
4287
|
const tag = reader.uint32();
|
|
@@ -3947,7 +4346,7 @@ var TokenTransactionSignatures = {
|
|
|
3947
4346
|
},
|
|
3948
4347
|
decode(input, length) {
|
|
3949
4348
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
3950
|
-
|
|
4349
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
3951
4350
|
const message = createBaseTokenTransactionSignatures();
|
|
3952
4351
|
while (reader.pos < end) {
|
|
3953
4352
|
const tag = reader.uint32();
|
|
@@ -4014,7 +4413,7 @@ var StartTokenTransactionRequest = {
|
|
|
4014
4413
|
},
|
|
4015
4414
|
decode(input, length) {
|
|
4016
4415
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
4017
|
-
|
|
4416
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
4018
4417
|
const message = createBaseStartTokenTransactionRequest();
|
|
4019
4418
|
while (reader.pos < end) {
|
|
4020
4419
|
const tag = reader.uint32();
|
|
@@ -4106,7 +4505,7 @@ var StartTokenTransactionResponse = {
|
|
|
4106
4505
|
},
|
|
4107
4506
|
decode(input, length) {
|
|
4108
4507
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
4109
|
-
|
|
4508
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
4110
4509
|
const message = createBaseStartTokenTransactionResponse();
|
|
4111
4510
|
while (reader.pos < end) {
|
|
4112
4511
|
const tag = reader.uint32();
|
|
@@ -4174,7 +4573,7 @@ var OperatorSpecificTokenTransactionSignablePayload = {
|
|
|
4174
4573
|
},
|
|
4175
4574
|
decode(input, length) {
|
|
4176
4575
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
4177
|
-
|
|
4576
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
4178
4577
|
const message = createBaseOperatorSpecificTokenTransactionSignablePayload();
|
|
4179
4578
|
while (reader.pos < end) {
|
|
4180
4579
|
const tag = reader.uint32();
|
|
@@ -4242,7 +4641,7 @@ var OperatorSpecificOwnerSignature = {
|
|
|
4242
4641
|
},
|
|
4243
4642
|
decode(input, length) {
|
|
4244
4643
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
4245
|
-
|
|
4644
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
4246
4645
|
const message = createBaseOperatorSpecificOwnerSignature();
|
|
4247
4646
|
while (reader.pos < end) {
|
|
4248
4647
|
const tag = reader.uint32();
|
|
@@ -4313,7 +4712,7 @@ var SignTokenTransactionRequest = {
|
|
|
4313
4712
|
},
|
|
4314
4713
|
decode(input, length) {
|
|
4315
4714
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
4316
|
-
|
|
4715
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
4317
4716
|
const message = createBaseSignTokenTransactionRequest();
|
|
4318
4717
|
while (reader.pos < end) {
|
|
4319
4718
|
const tag = reader.uint32();
|
|
@@ -4395,7 +4794,7 @@ var KeyshareWithIndex = {
|
|
|
4395
4794
|
},
|
|
4396
4795
|
decode(input, length) {
|
|
4397
4796
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
4398
|
-
|
|
4797
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
4399
4798
|
const message = createBaseKeyshareWithIndex();
|
|
4400
4799
|
while (reader.pos < end) {
|
|
4401
4800
|
const tag = reader.uint32();
|
|
@@ -4463,7 +4862,7 @@ var SignTokenTransactionResponse = {
|
|
|
4463
4862
|
},
|
|
4464
4863
|
decode(input, length) {
|
|
4465
4864
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
4466
|
-
|
|
4865
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
4467
4866
|
const message = createBaseSignTokenTransactionResponse();
|
|
4468
4867
|
while (reader.pos < end) {
|
|
4469
4868
|
const tag = reader.uint32();
|
|
@@ -4531,7 +4930,7 @@ var RevocationSecretWithIndex = {
|
|
|
4531
4930
|
},
|
|
4532
4931
|
decode(input, length) {
|
|
4533
4932
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
4534
|
-
|
|
4933
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
4535
4934
|
const message = createBaseRevocationSecretWithIndex();
|
|
4536
4935
|
while (reader.pos < end) {
|
|
4537
4936
|
const tag = reader.uint32();
|
|
@@ -4610,7 +5009,7 @@ var FinalizeTokenTransactionRequest = {
|
|
|
4610
5009
|
},
|
|
4611
5010
|
decode(input, length) {
|
|
4612
5011
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
4613
|
-
|
|
5012
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
4614
5013
|
const message = createBaseFinalizeTokenTransactionRequest();
|
|
4615
5014
|
while (reader.pos < end) {
|
|
4616
5015
|
const tag = reader.uint32();
|
|
@@ -4693,7 +5092,8 @@ function createBaseFreezeTokensPayload() {
|
|
|
4693
5092
|
tokenPublicKey: new Uint8Array(0),
|
|
4694
5093
|
issuerProvidedTimestamp: 0,
|
|
4695
5094
|
operatorIdentityPublicKey: new Uint8Array(0),
|
|
4696
|
-
shouldUnfreeze: false
|
|
5095
|
+
shouldUnfreeze: false,
|
|
5096
|
+
tokenIdentifier: void 0
|
|
4697
5097
|
};
|
|
4698
5098
|
}
|
|
4699
5099
|
var FreezeTokensPayload = {
|
|
@@ -4713,11 +5113,14 @@ var FreezeTokensPayload = {
|
|
|
4713
5113
|
if (message.shouldUnfreeze !== false) {
|
|
4714
5114
|
writer.uint32(40).bool(message.shouldUnfreeze);
|
|
4715
5115
|
}
|
|
5116
|
+
if (message.tokenIdentifier !== void 0) {
|
|
5117
|
+
writer.uint32(50).bytes(message.tokenIdentifier);
|
|
5118
|
+
}
|
|
4716
5119
|
return writer;
|
|
4717
5120
|
},
|
|
4718
5121
|
decode(input, length) {
|
|
4719
5122
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
4720
|
-
|
|
5123
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
4721
5124
|
const message = createBaseFreezeTokensPayload();
|
|
4722
5125
|
while (reader.pos < end) {
|
|
4723
5126
|
const tag = reader.uint32();
|
|
@@ -4757,6 +5160,13 @@ var FreezeTokensPayload = {
|
|
|
4757
5160
|
message.shouldUnfreeze = reader.bool();
|
|
4758
5161
|
continue;
|
|
4759
5162
|
}
|
|
5163
|
+
case 6: {
|
|
5164
|
+
if (tag !== 50) {
|
|
5165
|
+
break;
|
|
5166
|
+
}
|
|
5167
|
+
message.tokenIdentifier = reader.bytes();
|
|
5168
|
+
continue;
|
|
5169
|
+
}
|
|
4760
5170
|
}
|
|
4761
5171
|
if ((tag & 7) === 4 || tag === 0) {
|
|
4762
5172
|
break;
|
|
@@ -4771,7 +5181,8 @@ var FreezeTokensPayload = {
|
|
|
4771
5181
|
tokenPublicKey: isSet4(object.tokenPublicKey) ? bytesFromBase643(object.tokenPublicKey) : new Uint8Array(0),
|
|
4772
5182
|
issuerProvidedTimestamp: isSet4(object.issuerProvidedTimestamp) ? globalThis.Number(object.issuerProvidedTimestamp) : 0,
|
|
4773
5183
|
operatorIdentityPublicKey: isSet4(object.operatorIdentityPublicKey) ? bytesFromBase643(object.operatorIdentityPublicKey) : new Uint8Array(0),
|
|
4774
|
-
shouldUnfreeze: isSet4(object.shouldUnfreeze) ? globalThis.Boolean(object.shouldUnfreeze) : false
|
|
5184
|
+
shouldUnfreeze: isSet4(object.shouldUnfreeze) ? globalThis.Boolean(object.shouldUnfreeze) : false,
|
|
5185
|
+
tokenIdentifier: isSet4(object.tokenIdentifier) ? bytesFromBase643(object.tokenIdentifier) : void 0
|
|
4775
5186
|
};
|
|
4776
5187
|
},
|
|
4777
5188
|
toJSON(message) {
|
|
@@ -4791,6 +5202,9 @@ var FreezeTokensPayload = {
|
|
|
4791
5202
|
if (message.shouldUnfreeze !== false) {
|
|
4792
5203
|
obj.shouldUnfreeze = message.shouldUnfreeze;
|
|
4793
5204
|
}
|
|
5205
|
+
if (message.tokenIdentifier !== void 0) {
|
|
5206
|
+
obj.tokenIdentifier = base64FromBytes3(message.tokenIdentifier);
|
|
5207
|
+
}
|
|
4794
5208
|
return obj;
|
|
4795
5209
|
},
|
|
4796
5210
|
create(base) {
|
|
@@ -4803,6 +5217,7 @@ var FreezeTokensPayload = {
|
|
|
4803
5217
|
message.issuerProvidedTimestamp = object.issuerProvidedTimestamp ?? 0;
|
|
4804
5218
|
message.operatorIdentityPublicKey = object.operatorIdentityPublicKey ?? new Uint8Array(0);
|
|
4805
5219
|
message.shouldUnfreeze = object.shouldUnfreeze ?? false;
|
|
5220
|
+
message.tokenIdentifier = object.tokenIdentifier ?? void 0;
|
|
4806
5221
|
return message;
|
|
4807
5222
|
}
|
|
4808
5223
|
};
|
|
@@ -4821,7 +5236,7 @@ var FreezeTokensRequest = {
|
|
|
4821
5236
|
},
|
|
4822
5237
|
decode(input, length) {
|
|
4823
5238
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
4824
|
-
|
|
5239
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
4825
5240
|
const message = createBaseFreezeTokensRequest();
|
|
4826
5241
|
while (reader.pos < end) {
|
|
4827
5242
|
const tag = reader.uint32();
|
|
@@ -4889,7 +5304,7 @@ var FreezeTokensResponse = {
|
|
|
4889
5304
|
},
|
|
4890
5305
|
decode(input, length) {
|
|
4891
5306
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
4892
|
-
|
|
5307
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
4893
5308
|
const message = createBaseFreezeTokensResponse();
|
|
4894
5309
|
while (reader.pos < end) {
|
|
4895
5310
|
const tag = reader.uint32();
|
|
@@ -4943,7 +5358,7 @@ var FreezeTokensResponse = {
|
|
|
4943
5358
|
}
|
|
4944
5359
|
};
|
|
4945
5360
|
function createBaseQueryTokenOutputsRequest() {
|
|
4946
|
-
return { ownerPublicKeys: [], tokenPublicKeys: [], network: 0 };
|
|
5361
|
+
return { ownerPublicKeys: [], tokenPublicKeys: [], tokenIdentifiers: [], network: 0 };
|
|
4947
5362
|
}
|
|
4948
5363
|
var QueryTokenOutputsRequest = {
|
|
4949
5364
|
encode(message, writer = new import_wire5.BinaryWriter()) {
|
|
@@ -4953,6 +5368,9 @@ var QueryTokenOutputsRequest = {
|
|
|
4953
5368
|
for (const v of message.tokenPublicKeys) {
|
|
4954
5369
|
writer.uint32(18).bytes(v);
|
|
4955
5370
|
}
|
|
5371
|
+
for (const v of message.tokenIdentifiers) {
|
|
5372
|
+
writer.uint32(34).bytes(v);
|
|
5373
|
+
}
|
|
4956
5374
|
if (message.network !== 0) {
|
|
4957
5375
|
writer.uint32(24).int32(message.network);
|
|
4958
5376
|
}
|
|
@@ -4960,7 +5378,7 @@ var QueryTokenOutputsRequest = {
|
|
|
4960
5378
|
},
|
|
4961
5379
|
decode(input, length) {
|
|
4962
5380
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
4963
|
-
|
|
5381
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
4964
5382
|
const message = createBaseQueryTokenOutputsRequest();
|
|
4965
5383
|
while (reader.pos < end) {
|
|
4966
5384
|
const tag = reader.uint32();
|
|
@@ -4979,6 +5397,13 @@ var QueryTokenOutputsRequest = {
|
|
|
4979
5397
|
message.tokenPublicKeys.push(reader.bytes());
|
|
4980
5398
|
continue;
|
|
4981
5399
|
}
|
|
5400
|
+
case 4: {
|
|
5401
|
+
if (tag !== 34) {
|
|
5402
|
+
break;
|
|
5403
|
+
}
|
|
5404
|
+
message.tokenIdentifiers.push(reader.bytes());
|
|
5405
|
+
continue;
|
|
5406
|
+
}
|
|
4982
5407
|
case 3: {
|
|
4983
5408
|
if (tag !== 24) {
|
|
4984
5409
|
break;
|
|
@@ -4998,6 +5423,7 @@ var QueryTokenOutputsRequest = {
|
|
|
4998
5423
|
return {
|
|
4999
5424
|
ownerPublicKeys: globalThis.Array.isArray(object?.ownerPublicKeys) ? object.ownerPublicKeys.map((e) => bytesFromBase643(e)) : [],
|
|
5000
5425
|
tokenPublicKeys: globalThis.Array.isArray(object?.tokenPublicKeys) ? object.tokenPublicKeys.map((e) => bytesFromBase643(e)) : [],
|
|
5426
|
+
tokenIdentifiers: globalThis.Array.isArray(object?.tokenIdentifiers) ? object.tokenIdentifiers.map((e) => bytesFromBase643(e)) : [],
|
|
5001
5427
|
network: isSet4(object.network) ? networkFromJSON(object.network) : 0
|
|
5002
5428
|
};
|
|
5003
5429
|
},
|
|
@@ -5009,6 +5435,9 @@ var QueryTokenOutputsRequest = {
|
|
|
5009
5435
|
if (message.tokenPublicKeys?.length) {
|
|
5010
5436
|
obj.tokenPublicKeys = message.tokenPublicKeys.map((e) => base64FromBytes3(e));
|
|
5011
5437
|
}
|
|
5438
|
+
if (message.tokenIdentifiers?.length) {
|
|
5439
|
+
obj.tokenIdentifiers = message.tokenIdentifiers.map((e) => base64FromBytes3(e));
|
|
5440
|
+
}
|
|
5012
5441
|
if (message.network !== 0) {
|
|
5013
5442
|
obj.network = networkToJSON(message.network);
|
|
5014
5443
|
}
|
|
@@ -5021,12 +5450,21 @@ var QueryTokenOutputsRequest = {
|
|
|
5021
5450
|
const message = createBaseQueryTokenOutputsRequest();
|
|
5022
5451
|
message.ownerPublicKeys = object.ownerPublicKeys?.map((e) => e) || [];
|
|
5023
5452
|
message.tokenPublicKeys = object.tokenPublicKeys?.map((e) => e) || [];
|
|
5453
|
+
message.tokenIdentifiers = object.tokenIdentifiers?.map((e) => e) || [];
|
|
5024
5454
|
message.network = object.network ?? 0;
|
|
5025
5455
|
return message;
|
|
5026
5456
|
}
|
|
5027
5457
|
};
|
|
5028
5458
|
function createBaseQueryTokenTransactionsRequest() {
|
|
5029
|
-
return {
|
|
5459
|
+
return {
|
|
5460
|
+
outputIds: [],
|
|
5461
|
+
ownerPublicKeys: [],
|
|
5462
|
+
tokenPublicKeys: [],
|
|
5463
|
+
tokenIdentifiers: [],
|
|
5464
|
+
tokenTransactionHashes: [],
|
|
5465
|
+
limit: 0,
|
|
5466
|
+
offset: 0
|
|
5467
|
+
};
|
|
5030
5468
|
}
|
|
5031
5469
|
var QueryTokenTransactionsRequest = {
|
|
5032
5470
|
encode(message, writer = new import_wire5.BinaryWriter()) {
|
|
@@ -5039,6 +5477,9 @@ var QueryTokenTransactionsRequest = {
|
|
|
5039
5477
|
for (const v of message.tokenPublicKeys) {
|
|
5040
5478
|
writer.uint32(26).bytes(v);
|
|
5041
5479
|
}
|
|
5480
|
+
for (const v of message.tokenIdentifiers) {
|
|
5481
|
+
writer.uint32(58).bytes(v);
|
|
5482
|
+
}
|
|
5042
5483
|
for (const v of message.tokenTransactionHashes) {
|
|
5043
5484
|
writer.uint32(34).bytes(v);
|
|
5044
5485
|
}
|
|
@@ -5052,7 +5493,7 @@ var QueryTokenTransactionsRequest = {
|
|
|
5052
5493
|
},
|
|
5053
5494
|
decode(input, length) {
|
|
5054
5495
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
5055
|
-
|
|
5496
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
5056
5497
|
const message = createBaseQueryTokenTransactionsRequest();
|
|
5057
5498
|
while (reader.pos < end) {
|
|
5058
5499
|
const tag = reader.uint32();
|
|
@@ -5078,9 +5519,16 @@ var QueryTokenTransactionsRequest = {
|
|
|
5078
5519
|
message.tokenPublicKeys.push(reader.bytes());
|
|
5079
5520
|
continue;
|
|
5080
5521
|
}
|
|
5081
|
-
case
|
|
5082
|
-
if (tag !==
|
|
5083
|
-
break;
|
|
5522
|
+
case 7: {
|
|
5523
|
+
if (tag !== 58) {
|
|
5524
|
+
break;
|
|
5525
|
+
}
|
|
5526
|
+
message.tokenIdentifiers.push(reader.bytes());
|
|
5527
|
+
continue;
|
|
5528
|
+
}
|
|
5529
|
+
case 4: {
|
|
5530
|
+
if (tag !== 34) {
|
|
5531
|
+
break;
|
|
5084
5532
|
}
|
|
5085
5533
|
message.tokenTransactionHashes.push(reader.bytes());
|
|
5086
5534
|
continue;
|
|
@@ -5112,6 +5560,7 @@ var QueryTokenTransactionsRequest = {
|
|
|
5112
5560
|
outputIds: globalThis.Array.isArray(object?.outputIds) ? object.outputIds.map((e) => globalThis.String(e)) : [],
|
|
5113
5561
|
ownerPublicKeys: globalThis.Array.isArray(object?.ownerPublicKeys) ? object.ownerPublicKeys.map((e) => bytesFromBase643(e)) : [],
|
|
5114
5562
|
tokenPublicKeys: globalThis.Array.isArray(object?.tokenPublicKeys) ? object.tokenPublicKeys.map((e) => bytesFromBase643(e)) : [],
|
|
5563
|
+
tokenIdentifiers: globalThis.Array.isArray(object?.tokenIdentifiers) ? object.tokenIdentifiers.map((e) => bytesFromBase643(e)) : [],
|
|
5115
5564
|
tokenTransactionHashes: globalThis.Array.isArray(object?.tokenTransactionHashes) ? object.tokenTransactionHashes.map((e) => bytesFromBase643(e)) : [],
|
|
5116
5565
|
limit: isSet4(object.limit) ? globalThis.Number(object.limit) : 0,
|
|
5117
5566
|
offset: isSet4(object.offset) ? globalThis.Number(object.offset) : 0
|
|
@@ -5128,6 +5577,9 @@ var QueryTokenTransactionsRequest = {
|
|
|
5128
5577
|
if (message.tokenPublicKeys?.length) {
|
|
5129
5578
|
obj.tokenPublicKeys = message.tokenPublicKeys.map((e) => base64FromBytes3(e));
|
|
5130
5579
|
}
|
|
5580
|
+
if (message.tokenIdentifiers?.length) {
|
|
5581
|
+
obj.tokenIdentifiers = message.tokenIdentifiers.map((e) => base64FromBytes3(e));
|
|
5582
|
+
}
|
|
5131
5583
|
if (message.tokenTransactionHashes?.length) {
|
|
5132
5584
|
obj.tokenTransactionHashes = message.tokenTransactionHashes.map((e) => base64FromBytes3(e));
|
|
5133
5585
|
}
|
|
@@ -5147,6 +5599,7 @@ var QueryTokenTransactionsRequest = {
|
|
|
5147
5599
|
message.outputIds = object.outputIds?.map((e) => e) || [];
|
|
5148
5600
|
message.ownerPublicKeys = object.ownerPublicKeys?.map((e) => e) || [];
|
|
5149
5601
|
message.tokenPublicKeys = object.tokenPublicKeys?.map((e) => e) || [];
|
|
5602
|
+
message.tokenIdentifiers = object.tokenIdentifiers?.map((e) => e) || [];
|
|
5150
5603
|
message.tokenTransactionHashes = object.tokenTransactionHashes?.map((e) => e) || [];
|
|
5151
5604
|
message.limit = object.limit ?? 0;
|
|
5152
5605
|
message.offset = object.offset ?? 0;
|
|
@@ -5168,7 +5621,7 @@ var QueryTokenTransactionsResponse = {
|
|
|
5168
5621
|
},
|
|
5169
5622
|
decode(input, length) {
|
|
5170
5623
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
5171
|
-
|
|
5624
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
5172
5625
|
const message = createBaseQueryTokenTransactionsResponse();
|
|
5173
5626
|
while (reader.pos < end) {
|
|
5174
5627
|
const tag = reader.uint32();
|
|
@@ -5241,7 +5694,7 @@ var OutputWithPreviousTransactionData = {
|
|
|
5241
5694
|
},
|
|
5242
5695
|
decode(input, length) {
|
|
5243
5696
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
5244
|
-
|
|
5697
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
5245
5698
|
const message = createBaseOutputWithPreviousTransactionData();
|
|
5246
5699
|
while (reader.pos < end) {
|
|
5247
5700
|
const tag = reader.uint32();
|
|
@@ -5318,7 +5771,7 @@ var QueryTokenOutputsResponse = {
|
|
|
5318
5771
|
},
|
|
5319
5772
|
decode(input, length) {
|
|
5320
5773
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
5321
|
-
|
|
5774
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
5322
5775
|
const message = createBaseQueryTokenOutputsResponse();
|
|
5323
5776
|
while (reader.pos < end) {
|
|
5324
5777
|
const tag = reader.uint32();
|
|
@@ -5379,7 +5832,10 @@ function createBaseTreeNode() {
|
|
|
5379
5832
|
network: 0,
|
|
5380
5833
|
createdTime: void 0,
|
|
5381
5834
|
updatedTime: void 0,
|
|
5382
|
-
ownerSigningPublicKey: new Uint8Array(0)
|
|
5835
|
+
ownerSigningPublicKey: new Uint8Array(0),
|
|
5836
|
+
directTx: new Uint8Array(0),
|
|
5837
|
+
directRefundTx: new Uint8Array(0),
|
|
5838
|
+
directFromCpfpRefundTx: new Uint8Array(0)
|
|
5383
5839
|
};
|
|
5384
5840
|
}
|
|
5385
5841
|
var TreeNode = {
|
|
@@ -5429,11 +5885,20 @@ var TreeNode = {
|
|
|
5429
5885
|
if (message.ownerSigningPublicKey.length !== 0) {
|
|
5430
5886
|
writer.uint32(122).bytes(message.ownerSigningPublicKey);
|
|
5431
5887
|
}
|
|
5888
|
+
if (message.directTx.length !== 0) {
|
|
5889
|
+
writer.uint32(130).bytes(message.directTx);
|
|
5890
|
+
}
|
|
5891
|
+
if (message.directRefundTx.length !== 0) {
|
|
5892
|
+
writer.uint32(138).bytes(message.directRefundTx);
|
|
5893
|
+
}
|
|
5894
|
+
if (message.directFromCpfpRefundTx.length !== 0) {
|
|
5895
|
+
writer.uint32(146).bytes(message.directFromCpfpRefundTx);
|
|
5896
|
+
}
|
|
5432
5897
|
return writer;
|
|
5433
5898
|
},
|
|
5434
5899
|
decode(input, length) {
|
|
5435
5900
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
5436
|
-
|
|
5901
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
5437
5902
|
const message = createBaseTreeNode();
|
|
5438
5903
|
while (reader.pos < end) {
|
|
5439
5904
|
const tag = reader.uint32();
|
|
@@ -5543,6 +6008,27 @@ var TreeNode = {
|
|
|
5543
6008
|
message.ownerSigningPublicKey = reader.bytes();
|
|
5544
6009
|
continue;
|
|
5545
6010
|
}
|
|
6011
|
+
case 16: {
|
|
6012
|
+
if (tag !== 130) {
|
|
6013
|
+
break;
|
|
6014
|
+
}
|
|
6015
|
+
message.directTx = reader.bytes();
|
|
6016
|
+
continue;
|
|
6017
|
+
}
|
|
6018
|
+
case 17: {
|
|
6019
|
+
if (tag !== 138) {
|
|
6020
|
+
break;
|
|
6021
|
+
}
|
|
6022
|
+
message.directRefundTx = reader.bytes();
|
|
6023
|
+
continue;
|
|
6024
|
+
}
|
|
6025
|
+
case 18: {
|
|
6026
|
+
if (tag !== 146) {
|
|
6027
|
+
break;
|
|
6028
|
+
}
|
|
6029
|
+
message.directFromCpfpRefundTx = reader.bytes();
|
|
6030
|
+
continue;
|
|
6031
|
+
}
|
|
5546
6032
|
}
|
|
5547
6033
|
if ((tag & 7) === 4 || tag === 0) {
|
|
5548
6034
|
break;
|
|
@@ -5567,7 +6053,10 @@ var TreeNode = {
|
|
|
5567
6053
|
network: isSet4(object.network) ? networkFromJSON(object.network) : 0,
|
|
5568
6054
|
createdTime: isSet4(object.createdTime) ? fromJsonTimestamp(object.createdTime) : void 0,
|
|
5569
6055
|
updatedTime: isSet4(object.updatedTime) ? fromJsonTimestamp(object.updatedTime) : void 0,
|
|
5570
|
-
ownerSigningPublicKey: isSet4(object.ownerSigningPublicKey) ? bytesFromBase643(object.ownerSigningPublicKey) : new Uint8Array(0)
|
|
6056
|
+
ownerSigningPublicKey: isSet4(object.ownerSigningPublicKey) ? bytesFromBase643(object.ownerSigningPublicKey) : new Uint8Array(0),
|
|
6057
|
+
directTx: isSet4(object.directTx) ? bytesFromBase643(object.directTx) : new Uint8Array(0),
|
|
6058
|
+
directRefundTx: isSet4(object.directRefundTx) ? bytesFromBase643(object.directRefundTx) : new Uint8Array(0),
|
|
6059
|
+
directFromCpfpRefundTx: isSet4(object.directFromCpfpRefundTx) ? bytesFromBase643(object.directFromCpfpRefundTx) : new Uint8Array(0)
|
|
5571
6060
|
};
|
|
5572
6061
|
},
|
|
5573
6062
|
toJSON(message) {
|
|
@@ -5617,6 +6106,15 @@ var TreeNode = {
|
|
|
5617
6106
|
if (message.ownerSigningPublicKey.length !== 0) {
|
|
5618
6107
|
obj.ownerSigningPublicKey = base64FromBytes3(message.ownerSigningPublicKey);
|
|
5619
6108
|
}
|
|
6109
|
+
if (message.directTx.length !== 0) {
|
|
6110
|
+
obj.directTx = base64FromBytes3(message.directTx);
|
|
6111
|
+
}
|
|
6112
|
+
if (message.directRefundTx.length !== 0) {
|
|
6113
|
+
obj.directRefundTx = base64FromBytes3(message.directRefundTx);
|
|
6114
|
+
}
|
|
6115
|
+
if (message.directFromCpfpRefundTx.length !== 0) {
|
|
6116
|
+
obj.directFromCpfpRefundTx = base64FromBytes3(message.directFromCpfpRefundTx);
|
|
6117
|
+
}
|
|
5620
6118
|
return obj;
|
|
5621
6119
|
},
|
|
5622
6120
|
create(base) {
|
|
@@ -5639,6 +6137,9 @@ var TreeNode = {
|
|
|
5639
6137
|
message.createdTime = object.createdTime ?? void 0;
|
|
5640
6138
|
message.updatedTime = object.updatedTime ?? void 0;
|
|
5641
6139
|
message.ownerSigningPublicKey = object.ownerSigningPublicKey ?? new Uint8Array(0);
|
|
6140
|
+
message.directTx = object.directTx ?? new Uint8Array(0);
|
|
6141
|
+
message.directRefundTx = object.directRefundTx ?? new Uint8Array(0);
|
|
6142
|
+
message.directFromCpfpRefundTx = object.directFromCpfpRefundTx ?? new Uint8Array(0);
|
|
5642
6143
|
return message;
|
|
5643
6144
|
}
|
|
5644
6145
|
};
|
|
@@ -5657,7 +6158,7 @@ var FinalizeNodeSignaturesRequest = {
|
|
|
5657
6158
|
},
|
|
5658
6159
|
decode(input, length) {
|
|
5659
6160
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
5660
|
-
|
|
6161
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
5661
6162
|
const message = createBaseFinalizeNodeSignaturesRequest();
|
|
5662
6163
|
while (reader.pos < end) {
|
|
5663
6164
|
const tag = reader.uint32();
|
|
@@ -5722,7 +6223,7 @@ var FinalizeNodeSignaturesResponse = {
|
|
|
5722
6223
|
},
|
|
5723
6224
|
decode(input, length) {
|
|
5724
6225
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
5725
|
-
|
|
6226
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
5726
6227
|
const message = createBaseFinalizeNodeSignaturesResponse();
|
|
5727
6228
|
while (reader.pos < end) {
|
|
5728
6229
|
const tag = reader.uint32();
|
|
@@ -5776,7 +6277,7 @@ var SecretShare = {
|
|
|
5776
6277
|
},
|
|
5777
6278
|
decode(input, length) {
|
|
5778
6279
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
5779
|
-
|
|
6280
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
5780
6281
|
const message = createBaseSecretShare();
|
|
5781
6282
|
while (reader.pos < end) {
|
|
5782
6283
|
const tag = reader.uint32();
|
|
@@ -5830,7 +6331,12 @@ var SecretShare = {
|
|
|
5830
6331
|
}
|
|
5831
6332
|
};
|
|
5832
6333
|
function createBaseLeafRefundTxSigningJob() {
|
|
5833
|
-
return {
|
|
6334
|
+
return {
|
|
6335
|
+
leafId: "",
|
|
6336
|
+
refundTxSigningJob: void 0,
|
|
6337
|
+
directRefundTxSigningJob: void 0,
|
|
6338
|
+
directFromCpfpRefundTxSigningJob: void 0
|
|
6339
|
+
};
|
|
5834
6340
|
}
|
|
5835
6341
|
var LeafRefundTxSigningJob = {
|
|
5836
6342
|
encode(message, writer = new import_wire5.BinaryWriter()) {
|
|
@@ -5840,11 +6346,17 @@ var LeafRefundTxSigningJob = {
|
|
|
5840
6346
|
if (message.refundTxSigningJob !== void 0) {
|
|
5841
6347
|
SigningJob.encode(message.refundTxSigningJob, writer.uint32(18).fork()).join();
|
|
5842
6348
|
}
|
|
6349
|
+
if (message.directRefundTxSigningJob !== void 0) {
|
|
6350
|
+
SigningJob.encode(message.directRefundTxSigningJob, writer.uint32(26).fork()).join();
|
|
6351
|
+
}
|
|
6352
|
+
if (message.directFromCpfpRefundTxSigningJob !== void 0) {
|
|
6353
|
+
SigningJob.encode(message.directFromCpfpRefundTxSigningJob, writer.uint32(34).fork()).join();
|
|
6354
|
+
}
|
|
5843
6355
|
return writer;
|
|
5844
6356
|
},
|
|
5845
6357
|
decode(input, length) {
|
|
5846
6358
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
5847
|
-
|
|
6359
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
5848
6360
|
const message = createBaseLeafRefundTxSigningJob();
|
|
5849
6361
|
while (reader.pos < end) {
|
|
5850
6362
|
const tag = reader.uint32();
|
|
@@ -5863,6 +6375,20 @@ var LeafRefundTxSigningJob = {
|
|
|
5863
6375
|
message.refundTxSigningJob = SigningJob.decode(reader, reader.uint32());
|
|
5864
6376
|
continue;
|
|
5865
6377
|
}
|
|
6378
|
+
case 3: {
|
|
6379
|
+
if (tag !== 26) {
|
|
6380
|
+
break;
|
|
6381
|
+
}
|
|
6382
|
+
message.directRefundTxSigningJob = SigningJob.decode(reader, reader.uint32());
|
|
6383
|
+
continue;
|
|
6384
|
+
}
|
|
6385
|
+
case 4: {
|
|
6386
|
+
if (tag !== 34) {
|
|
6387
|
+
break;
|
|
6388
|
+
}
|
|
6389
|
+
message.directFromCpfpRefundTxSigningJob = SigningJob.decode(reader, reader.uint32());
|
|
6390
|
+
continue;
|
|
6391
|
+
}
|
|
5866
6392
|
}
|
|
5867
6393
|
if ((tag & 7) === 4 || tag === 0) {
|
|
5868
6394
|
break;
|
|
@@ -5874,7 +6400,9 @@ var LeafRefundTxSigningJob = {
|
|
|
5874
6400
|
fromJSON(object) {
|
|
5875
6401
|
return {
|
|
5876
6402
|
leafId: isSet4(object.leafId) ? globalThis.String(object.leafId) : "",
|
|
5877
|
-
refundTxSigningJob: isSet4(object.refundTxSigningJob) ? SigningJob.fromJSON(object.refundTxSigningJob) : void 0
|
|
6403
|
+
refundTxSigningJob: isSet4(object.refundTxSigningJob) ? SigningJob.fromJSON(object.refundTxSigningJob) : void 0,
|
|
6404
|
+
directRefundTxSigningJob: isSet4(object.directRefundTxSigningJob) ? SigningJob.fromJSON(object.directRefundTxSigningJob) : void 0,
|
|
6405
|
+
directFromCpfpRefundTxSigningJob: isSet4(object.directFromCpfpRefundTxSigningJob) ? SigningJob.fromJSON(object.directFromCpfpRefundTxSigningJob) : void 0
|
|
5878
6406
|
};
|
|
5879
6407
|
},
|
|
5880
6408
|
toJSON(message) {
|
|
@@ -5885,6 +6413,12 @@ var LeafRefundTxSigningJob = {
|
|
|
5885
6413
|
if (message.refundTxSigningJob !== void 0) {
|
|
5886
6414
|
obj.refundTxSigningJob = SigningJob.toJSON(message.refundTxSigningJob);
|
|
5887
6415
|
}
|
|
6416
|
+
if (message.directRefundTxSigningJob !== void 0) {
|
|
6417
|
+
obj.directRefundTxSigningJob = SigningJob.toJSON(message.directRefundTxSigningJob);
|
|
6418
|
+
}
|
|
6419
|
+
if (message.directFromCpfpRefundTxSigningJob !== void 0) {
|
|
6420
|
+
obj.directFromCpfpRefundTxSigningJob = SigningJob.toJSON(message.directFromCpfpRefundTxSigningJob);
|
|
6421
|
+
}
|
|
5888
6422
|
return obj;
|
|
5889
6423
|
},
|
|
5890
6424
|
create(base) {
|
|
@@ -5894,6 +6428,8 @@ var LeafRefundTxSigningJob = {
|
|
|
5894
6428
|
const message = createBaseLeafRefundTxSigningJob();
|
|
5895
6429
|
message.leafId = object.leafId ?? "";
|
|
5896
6430
|
message.refundTxSigningJob = object.refundTxSigningJob !== void 0 && object.refundTxSigningJob !== null ? SigningJob.fromPartial(object.refundTxSigningJob) : void 0;
|
|
6431
|
+
message.directRefundTxSigningJob = object.directRefundTxSigningJob !== void 0 && object.directRefundTxSigningJob !== null ? SigningJob.fromPartial(object.directRefundTxSigningJob) : void 0;
|
|
6432
|
+
message.directFromCpfpRefundTxSigningJob = object.directFromCpfpRefundTxSigningJob !== void 0 && object.directFromCpfpRefundTxSigningJob !== null ? SigningJob.fromPartial(object.directFromCpfpRefundTxSigningJob) : void 0;
|
|
5897
6433
|
return message;
|
|
5898
6434
|
}
|
|
5899
6435
|
};
|
|
@@ -5931,7 +6467,7 @@ var UserSignedTxSigningJob = {
|
|
|
5931
6467
|
},
|
|
5932
6468
|
decode(input, length) {
|
|
5933
6469
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
5934
|
-
|
|
6470
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
5935
6471
|
const message = createBaseUserSignedTxSigningJob();
|
|
5936
6472
|
while (reader.pos < end) {
|
|
5937
6473
|
const tag = reader.uint32();
|
|
@@ -6033,7 +6569,13 @@ var UserSignedTxSigningJob = {
|
|
|
6033
6569
|
}
|
|
6034
6570
|
};
|
|
6035
6571
|
function createBaseLeafRefundTxSigningResult() {
|
|
6036
|
-
return {
|
|
6572
|
+
return {
|
|
6573
|
+
leafId: "",
|
|
6574
|
+
refundTxSigningResult: void 0,
|
|
6575
|
+
verifyingKey: new Uint8Array(0),
|
|
6576
|
+
directRefundTxSigningResult: void 0,
|
|
6577
|
+
directFromCpfpRefundTxSigningResult: void 0
|
|
6578
|
+
};
|
|
6037
6579
|
}
|
|
6038
6580
|
var LeafRefundTxSigningResult = {
|
|
6039
6581
|
encode(message, writer = new import_wire5.BinaryWriter()) {
|
|
@@ -6046,11 +6588,17 @@ var LeafRefundTxSigningResult = {
|
|
|
6046
6588
|
if (message.verifyingKey.length !== 0) {
|
|
6047
6589
|
writer.uint32(26).bytes(message.verifyingKey);
|
|
6048
6590
|
}
|
|
6591
|
+
if (message.directRefundTxSigningResult !== void 0) {
|
|
6592
|
+
SigningResult.encode(message.directRefundTxSigningResult, writer.uint32(34).fork()).join();
|
|
6593
|
+
}
|
|
6594
|
+
if (message.directFromCpfpRefundTxSigningResult !== void 0) {
|
|
6595
|
+
SigningResult.encode(message.directFromCpfpRefundTxSigningResult, writer.uint32(42).fork()).join();
|
|
6596
|
+
}
|
|
6049
6597
|
return writer;
|
|
6050
6598
|
},
|
|
6051
6599
|
decode(input, length) {
|
|
6052
6600
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
6053
|
-
|
|
6601
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
6054
6602
|
const message = createBaseLeafRefundTxSigningResult();
|
|
6055
6603
|
while (reader.pos < end) {
|
|
6056
6604
|
const tag = reader.uint32();
|
|
@@ -6076,6 +6624,20 @@ var LeafRefundTxSigningResult = {
|
|
|
6076
6624
|
message.verifyingKey = reader.bytes();
|
|
6077
6625
|
continue;
|
|
6078
6626
|
}
|
|
6627
|
+
case 4: {
|
|
6628
|
+
if (tag !== 34) {
|
|
6629
|
+
break;
|
|
6630
|
+
}
|
|
6631
|
+
message.directRefundTxSigningResult = SigningResult.decode(reader, reader.uint32());
|
|
6632
|
+
continue;
|
|
6633
|
+
}
|
|
6634
|
+
case 5: {
|
|
6635
|
+
if (tag !== 42) {
|
|
6636
|
+
break;
|
|
6637
|
+
}
|
|
6638
|
+
message.directFromCpfpRefundTxSigningResult = SigningResult.decode(reader, reader.uint32());
|
|
6639
|
+
continue;
|
|
6640
|
+
}
|
|
6079
6641
|
}
|
|
6080
6642
|
if ((tag & 7) === 4 || tag === 0) {
|
|
6081
6643
|
break;
|
|
@@ -6088,7 +6650,9 @@ var LeafRefundTxSigningResult = {
|
|
|
6088
6650
|
return {
|
|
6089
6651
|
leafId: isSet4(object.leafId) ? globalThis.String(object.leafId) : "",
|
|
6090
6652
|
refundTxSigningResult: isSet4(object.refundTxSigningResult) ? SigningResult.fromJSON(object.refundTxSigningResult) : void 0,
|
|
6091
|
-
verifyingKey: isSet4(object.verifyingKey) ? bytesFromBase643(object.verifyingKey) : new Uint8Array(0)
|
|
6653
|
+
verifyingKey: isSet4(object.verifyingKey) ? bytesFromBase643(object.verifyingKey) : new Uint8Array(0),
|
|
6654
|
+
directRefundTxSigningResult: isSet4(object.directRefundTxSigningResult) ? SigningResult.fromJSON(object.directRefundTxSigningResult) : void 0,
|
|
6655
|
+
directFromCpfpRefundTxSigningResult: isSet4(object.directFromCpfpRefundTxSigningResult) ? SigningResult.fromJSON(object.directFromCpfpRefundTxSigningResult) : void 0
|
|
6092
6656
|
};
|
|
6093
6657
|
},
|
|
6094
6658
|
toJSON(message) {
|
|
@@ -6102,6 +6666,12 @@ var LeafRefundTxSigningResult = {
|
|
|
6102
6666
|
if (message.verifyingKey.length !== 0) {
|
|
6103
6667
|
obj.verifyingKey = base64FromBytes3(message.verifyingKey);
|
|
6104
6668
|
}
|
|
6669
|
+
if (message.directRefundTxSigningResult !== void 0) {
|
|
6670
|
+
obj.directRefundTxSigningResult = SigningResult.toJSON(message.directRefundTxSigningResult);
|
|
6671
|
+
}
|
|
6672
|
+
if (message.directFromCpfpRefundTxSigningResult !== void 0) {
|
|
6673
|
+
obj.directFromCpfpRefundTxSigningResult = SigningResult.toJSON(message.directFromCpfpRefundTxSigningResult);
|
|
6674
|
+
}
|
|
6105
6675
|
return obj;
|
|
6106
6676
|
},
|
|
6107
6677
|
create(base) {
|
|
@@ -6112,6 +6682,8 @@ var LeafRefundTxSigningResult = {
|
|
|
6112
6682
|
message.leafId = object.leafId ?? "";
|
|
6113
6683
|
message.refundTxSigningResult = object.refundTxSigningResult !== void 0 && object.refundTxSigningResult !== null ? SigningResult.fromPartial(object.refundTxSigningResult) : void 0;
|
|
6114
6684
|
message.verifyingKey = object.verifyingKey ?? new Uint8Array(0);
|
|
6685
|
+
message.directRefundTxSigningResult = object.directRefundTxSigningResult !== void 0 && object.directRefundTxSigningResult !== null ? SigningResult.fromPartial(object.directRefundTxSigningResult) : void 0;
|
|
6686
|
+
message.directFromCpfpRefundTxSigningResult = object.directFromCpfpRefundTxSigningResult !== void 0 && object.directFromCpfpRefundTxSigningResult !== null ? SigningResult.fromPartial(object.directFromCpfpRefundTxSigningResult) : void 0;
|
|
6115
6687
|
return message;
|
|
6116
6688
|
}
|
|
6117
6689
|
};
|
|
@@ -6121,7 +6693,9 @@ function createBaseStartUserSignedTransferRequest() {
|
|
|
6121
6693
|
ownerIdentityPublicKey: new Uint8Array(0),
|
|
6122
6694
|
leavesToSend: [],
|
|
6123
6695
|
receiverIdentityPublicKey: new Uint8Array(0),
|
|
6124
|
-
expiryTime: void 0
|
|
6696
|
+
expiryTime: void 0,
|
|
6697
|
+
directLeavesToSend: [],
|
|
6698
|
+
directFromCpfpLeavesToSend: []
|
|
6125
6699
|
};
|
|
6126
6700
|
}
|
|
6127
6701
|
var StartUserSignedTransferRequest = {
|
|
@@ -6141,11 +6715,17 @@ var StartUserSignedTransferRequest = {
|
|
|
6141
6715
|
if (message.expiryTime !== void 0) {
|
|
6142
6716
|
Timestamp.encode(toTimestamp(message.expiryTime), writer.uint32(42).fork()).join();
|
|
6143
6717
|
}
|
|
6718
|
+
for (const v of message.directLeavesToSend) {
|
|
6719
|
+
UserSignedTxSigningJob.encode(v, writer.uint32(50).fork()).join();
|
|
6720
|
+
}
|
|
6721
|
+
for (const v of message.directFromCpfpLeavesToSend) {
|
|
6722
|
+
UserSignedTxSigningJob.encode(v, writer.uint32(58).fork()).join();
|
|
6723
|
+
}
|
|
6144
6724
|
return writer;
|
|
6145
6725
|
},
|
|
6146
6726
|
decode(input, length) {
|
|
6147
6727
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
6148
|
-
|
|
6728
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
6149
6729
|
const message = createBaseStartUserSignedTransferRequest();
|
|
6150
6730
|
while (reader.pos < end) {
|
|
6151
6731
|
const tag = reader.uint32();
|
|
@@ -6185,6 +6765,20 @@ var StartUserSignedTransferRequest = {
|
|
|
6185
6765
|
message.expiryTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
6186
6766
|
continue;
|
|
6187
6767
|
}
|
|
6768
|
+
case 6: {
|
|
6769
|
+
if (tag !== 50) {
|
|
6770
|
+
break;
|
|
6771
|
+
}
|
|
6772
|
+
message.directLeavesToSend.push(UserSignedTxSigningJob.decode(reader, reader.uint32()));
|
|
6773
|
+
continue;
|
|
6774
|
+
}
|
|
6775
|
+
case 7: {
|
|
6776
|
+
if (tag !== 58) {
|
|
6777
|
+
break;
|
|
6778
|
+
}
|
|
6779
|
+
message.directFromCpfpLeavesToSend.push(UserSignedTxSigningJob.decode(reader, reader.uint32()));
|
|
6780
|
+
continue;
|
|
6781
|
+
}
|
|
6188
6782
|
}
|
|
6189
6783
|
if ((tag & 7) === 4 || tag === 0) {
|
|
6190
6784
|
break;
|
|
@@ -6199,7 +6793,9 @@ var StartUserSignedTransferRequest = {
|
|
|
6199
6793
|
ownerIdentityPublicKey: isSet4(object.ownerIdentityPublicKey) ? bytesFromBase643(object.ownerIdentityPublicKey) : new Uint8Array(0),
|
|
6200
6794
|
leavesToSend: globalThis.Array.isArray(object?.leavesToSend) ? object.leavesToSend.map((e) => UserSignedTxSigningJob.fromJSON(e)) : [],
|
|
6201
6795
|
receiverIdentityPublicKey: isSet4(object.receiverIdentityPublicKey) ? bytesFromBase643(object.receiverIdentityPublicKey) : new Uint8Array(0),
|
|
6202
|
-
expiryTime: isSet4(object.expiryTime) ? fromJsonTimestamp(object.expiryTime) : void 0
|
|
6796
|
+
expiryTime: isSet4(object.expiryTime) ? fromJsonTimestamp(object.expiryTime) : void 0,
|
|
6797
|
+
directLeavesToSend: globalThis.Array.isArray(object?.directLeavesToSend) ? object.directLeavesToSend.map((e) => UserSignedTxSigningJob.fromJSON(e)) : [],
|
|
6798
|
+
directFromCpfpLeavesToSend: globalThis.Array.isArray(object?.directFromCpfpLeavesToSend) ? object.directFromCpfpLeavesToSend.map((e) => UserSignedTxSigningJob.fromJSON(e)) : []
|
|
6203
6799
|
};
|
|
6204
6800
|
},
|
|
6205
6801
|
toJSON(message) {
|
|
@@ -6219,6 +6815,12 @@ var StartUserSignedTransferRequest = {
|
|
|
6219
6815
|
if (message.expiryTime !== void 0) {
|
|
6220
6816
|
obj.expiryTime = message.expiryTime.toISOString();
|
|
6221
6817
|
}
|
|
6818
|
+
if (message.directLeavesToSend?.length) {
|
|
6819
|
+
obj.directLeavesToSend = message.directLeavesToSend.map((e) => UserSignedTxSigningJob.toJSON(e));
|
|
6820
|
+
}
|
|
6821
|
+
if (message.directFromCpfpLeavesToSend?.length) {
|
|
6822
|
+
obj.directFromCpfpLeavesToSend = message.directFromCpfpLeavesToSend.map((e) => UserSignedTxSigningJob.toJSON(e));
|
|
6823
|
+
}
|
|
6222
6824
|
return obj;
|
|
6223
6825
|
},
|
|
6224
6826
|
create(base) {
|
|
@@ -6231,6 +6833,8 @@ var StartUserSignedTransferRequest = {
|
|
|
6231
6833
|
message.leavesToSend = object.leavesToSend?.map((e) => UserSignedTxSigningJob.fromPartial(e)) || [];
|
|
6232
6834
|
message.receiverIdentityPublicKey = object.receiverIdentityPublicKey ?? new Uint8Array(0);
|
|
6233
6835
|
message.expiryTime = object.expiryTime ?? void 0;
|
|
6836
|
+
message.directLeavesToSend = object.directLeavesToSend?.map((e) => UserSignedTxSigningJob.fromPartial(e)) || [];
|
|
6837
|
+
message.directFromCpfpLeavesToSend = object.directFromCpfpLeavesToSend?.map((e) => UserSignedTxSigningJob.fromPartial(e)) || [];
|
|
6234
6838
|
return message;
|
|
6235
6839
|
}
|
|
6236
6840
|
};
|
|
@@ -6272,7 +6876,7 @@ var StartTransferRequest = {
|
|
|
6272
6876
|
},
|
|
6273
6877
|
decode(input, length) {
|
|
6274
6878
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
6275
|
-
|
|
6879
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
6276
6880
|
const message = createBaseStartTransferRequest();
|
|
6277
6881
|
while (reader.pos < end) {
|
|
6278
6882
|
const tag = reader.uint32();
|
|
@@ -6400,7 +7004,7 @@ var StartTransferResponse = {
|
|
|
6400
7004
|
},
|
|
6401
7005
|
decode(input, length) {
|
|
6402
7006
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
6403
|
-
|
|
7007
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
6404
7008
|
const message = createBaseStartTransferResponse();
|
|
6405
7009
|
while (reader.pos < end) {
|
|
6406
7010
|
const tag = reader.uint32();
|
|
@@ -6454,7 +7058,13 @@ var StartTransferResponse = {
|
|
|
6454
7058
|
}
|
|
6455
7059
|
};
|
|
6456
7060
|
function createBaseTransferPackage() {
|
|
6457
|
-
return {
|
|
7061
|
+
return {
|
|
7062
|
+
leavesToSend: [],
|
|
7063
|
+
keyTweakPackage: {},
|
|
7064
|
+
userSignature: new Uint8Array(0),
|
|
7065
|
+
directLeavesToSend: [],
|
|
7066
|
+
directFromCpfpLeavesToSend: []
|
|
7067
|
+
};
|
|
6458
7068
|
}
|
|
6459
7069
|
var TransferPackage = {
|
|
6460
7070
|
encode(message, writer = new import_wire5.BinaryWriter()) {
|
|
@@ -6467,11 +7077,17 @@ var TransferPackage = {
|
|
|
6467
7077
|
if (message.userSignature.length !== 0) {
|
|
6468
7078
|
writer.uint32(26).bytes(message.userSignature);
|
|
6469
7079
|
}
|
|
7080
|
+
for (const v of message.directLeavesToSend) {
|
|
7081
|
+
UserSignedTxSigningJob.encode(v, writer.uint32(34).fork()).join();
|
|
7082
|
+
}
|
|
7083
|
+
for (const v of message.directFromCpfpLeavesToSend) {
|
|
7084
|
+
UserSignedTxSigningJob.encode(v, writer.uint32(42).fork()).join();
|
|
7085
|
+
}
|
|
6470
7086
|
return writer;
|
|
6471
7087
|
},
|
|
6472
7088
|
decode(input, length) {
|
|
6473
7089
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
6474
|
-
|
|
7090
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
6475
7091
|
const message = createBaseTransferPackage();
|
|
6476
7092
|
while (reader.pos < end) {
|
|
6477
7093
|
const tag = reader.uint32();
|
|
@@ -6500,6 +7116,20 @@ var TransferPackage = {
|
|
|
6500
7116
|
message.userSignature = reader.bytes();
|
|
6501
7117
|
continue;
|
|
6502
7118
|
}
|
|
7119
|
+
case 4: {
|
|
7120
|
+
if (tag !== 34) {
|
|
7121
|
+
break;
|
|
7122
|
+
}
|
|
7123
|
+
message.directLeavesToSend.push(UserSignedTxSigningJob.decode(reader, reader.uint32()));
|
|
7124
|
+
continue;
|
|
7125
|
+
}
|
|
7126
|
+
case 5: {
|
|
7127
|
+
if (tag !== 42) {
|
|
7128
|
+
break;
|
|
7129
|
+
}
|
|
7130
|
+
message.directFromCpfpLeavesToSend.push(UserSignedTxSigningJob.decode(reader, reader.uint32()));
|
|
7131
|
+
continue;
|
|
7132
|
+
}
|
|
6503
7133
|
}
|
|
6504
7134
|
if ((tag & 7) === 4 || tag === 0) {
|
|
6505
7135
|
break;
|
|
@@ -6515,7 +7145,9 @@ var TransferPackage = {
|
|
|
6515
7145
|
acc[key] = bytesFromBase643(value);
|
|
6516
7146
|
return acc;
|
|
6517
7147
|
}, {}) : {},
|
|
6518
|
-
userSignature: isSet4(object.userSignature) ? bytesFromBase643(object.userSignature) : new Uint8Array(0)
|
|
7148
|
+
userSignature: isSet4(object.userSignature) ? bytesFromBase643(object.userSignature) : new Uint8Array(0),
|
|
7149
|
+
directLeavesToSend: globalThis.Array.isArray(object?.directLeavesToSend) ? object.directLeavesToSend.map((e) => UserSignedTxSigningJob.fromJSON(e)) : [],
|
|
7150
|
+
directFromCpfpLeavesToSend: globalThis.Array.isArray(object?.directFromCpfpLeavesToSend) ? object.directFromCpfpLeavesToSend.map((e) => UserSignedTxSigningJob.fromJSON(e)) : []
|
|
6519
7151
|
};
|
|
6520
7152
|
},
|
|
6521
7153
|
toJSON(message) {
|
|
@@ -6535,6 +7167,12 @@ var TransferPackage = {
|
|
|
6535
7167
|
if (message.userSignature.length !== 0) {
|
|
6536
7168
|
obj.userSignature = base64FromBytes3(message.userSignature);
|
|
6537
7169
|
}
|
|
7170
|
+
if (message.directLeavesToSend?.length) {
|
|
7171
|
+
obj.directLeavesToSend = message.directLeavesToSend.map((e) => UserSignedTxSigningJob.toJSON(e));
|
|
7172
|
+
}
|
|
7173
|
+
if (message.directFromCpfpLeavesToSend?.length) {
|
|
7174
|
+
obj.directFromCpfpLeavesToSend = message.directFromCpfpLeavesToSend.map((e) => UserSignedTxSigningJob.toJSON(e));
|
|
7175
|
+
}
|
|
6538
7176
|
return obj;
|
|
6539
7177
|
},
|
|
6540
7178
|
create(base) {
|
|
@@ -6553,6 +7191,8 @@ var TransferPackage = {
|
|
|
6553
7191
|
{}
|
|
6554
7192
|
);
|
|
6555
7193
|
message.userSignature = object.userSignature ?? new Uint8Array(0);
|
|
7194
|
+
message.directLeavesToSend = object.directLeavesToSend?.map((e) => UserSignedTxSigningJob.fromPartial(e)) || [];
|
|
7195
|
+
message.directFromCpfpLeavesToSend = object.directFromCpfpLeavesToSend?.map((e) => UserSignedTxSigningJob.fromPartial(e)) || [];
|
|
6556
7196
|
return message;
|
|
6557
7197
|
}
|
|
6558
7198
|
};
|
|
@@ -6571,7 +7211,7 @@ var TransferPackage_KeyTweakPackageEntry = {
|
|
|
6571
7211
|
},
|
|
6572
7212
|
decode(input, length) {
|
|
6573
7213
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
6574
|
-
|
|
7214
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
6575
7215
|
const message = createBaseTransferPackage_KeyTweakPackageEntry();
|
|
6576
7216
|
while (reader.pos < end) {
|
|
6577
7217
|
const tag = reader.uint32();
|
|
@@ -6631,7 +7271,9 @@ function createBaseSendLeafKeyTweak() {
|
|
|
6631
7271
|
pubkeySharesTweak: {},
|
|
6632
7272
|
secretCipher: new Uint8Array(0),
|
|
6633
7273
|
signature: new Uint8Array(0),
|
|
6634
|
-
refundSignature: new Uint8Array(0)
|
|
7274
|
+
refundSignature: new Uint8Array(0),
|
|
7275
|
+
directRefundSignature: new Uint8Array(0),
|
|
7276
|
+
directFromCpfpRefundSignature: new Uint8Array(0)
|
|
6635
7277
|
};
|
|
6636
7278
|
}
|
|
6637
7279
|
var SendLeafKeyTweak = {
|
|
@@ -6654,11 +7296,17 @@ var SendLeafKeyTweak = {
|
|
|
6654
7296
|
if (message.refundSignature.length !== 0) {
|
|
6655
7297
|
writer.uint32(50).bytes(message.refundSignature);
|
|
6656
7298
|
}
|
|
7299
|
+
if (message.directRefundSignature.length !== 0) {
|
|
7300
|
+
writer.uint32(58).bytes(message.directRefundSignature);
|
|
7301
|
+
}
|
|
7302
|
+
if (message.directFromCpfpRefundSignature.length !== 0) {
|
|
7303
|
+
writer.uint32(66).bytes(message.directFromCpfpRefundSignature);
|
|
7304
|
+
}
|
|
6657
7305
|
return writer;
|
|
6658
7306
|
},
|
|
6659
7307
|
decode(input, length) {
|
|
6660
7308
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
6661
|
-
|
|
7309
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
6662
7310
|
const message = createBaseSendLeafKeyTweak();
|
|
6663
7311
|
while (reader.pos < end) {
|
|
6664
7312
|
const tag = reader.uint32();
|
|
@@ -6708,6 +7356,20 @@ var SendLeafKeyTweak = {
|
|
|
6708
7356
|
message.refundSignature = reader.bytes();
|
|
6709
7357
|
continue;
|
|
6710
7358
|
}
|
|
7359
|
+
case 7: {
|
|
7360
|
+
if (tag !== 58) {
|
|
7361
|
+
break;
|
|
7362
|
+
}
|
|
7363
|
+
message.directRefundSignature = reader.bytes();
|
|
7364
|
+
continue;
|
|
7365
|
+
}
|
|
7366
|
+
case 8: {
|
|
7367
|
+
if (tag !== 66) {
|
|
7368
|
+
break;
|
|
7369
|
+
}
|
|
7370
|
+
message.directFromCpfpRefundSignature = reader.bytes();
|
|
7371
|
+
continue;
|
|
7372
|
+
}
|
|
6711
7373
|
}
|
|
6712
7374
|
if ((tag & 7) === 4 || tag === 0) {
|
|
6713
7375
|
break;
|
|
@@ -6726,7 +7388,9 @@ var SendLeafKeyTweak = {
|
|
|
6726
7388
|
}, {}) : {},
|
|
6727
7389
|
secretCipher: isSet4(object.secretCipher) ? bytesFromBase643(object.secretCipher) : new Uint8Array(0),
|
|
6728
7390
|
signature: isSet4(object.signature) ? bytesFromBase643(object.signature) : new Uint8Array(0),
|
|
6729
|
-
refundSignature: isSet4(object.refundSignature) ? bytesFromBase643(object.refundSignature) : new Uint8Array(0)
|
|
7391
|
+
refundSignature: isSet4(object.refundSignature) ? bytesFromBase643(object.refundSignature) : new Uint8Array(0),
|
|
7392
|
+
directRefundSignature: isSet4(object.directRefundSignature) ? bytesFromBase643(object.directRefundSignature) : new Uint8Array(0),
|
|
7393
|
+
directFromCpfpRefundSignature: isSet4(object.directFromCpfpRefundSignature) ? bytesFromBase643(object.directFromCpfpRefundSignature) : new Uint8Array(0)
|
|
6730
7394
|
};
|
|
6731
7395
|
},
|
|
6732
7396
|
toJSON(message) {
|
|
@@ -6755,6 +7419,12 @@ var SendLeafKeyTweak = {
|
|
|
6755
7419
|
if (message.refundSignature.length !== 0) {
|
|
6756
7420
|
obj.refundSignature = base64FromBytes3(message.refundSignature);
|
|
6757
7421
|
}
|
|
7422
|
+
if (message.directRefundSignature.length !== 0) {
|
|
7423
|
+
obj.directRefundSignature = base64FromBytes3(message.directRefundSignature);
|
|
7424
|
+
}
|
|
7425
|
+
if (message.directFromCpfpRefundSignature.length !== 0) {
|
|
7426
|
+
obj.directFromCpfpRefundSignature = base64FromBytes3(message.directFromCpfpRefundSignature);
|
|
7427
|
+
}
|
|
6758
7428
|
return obj;
|
|
6759
7429
|
},
|
|
6760
7430
|
create(base) {
|
|
@@ -6776,6 +7446,8 @@ var SendLeafKeyTweak = {
|
|
|
6776
7446
|
message.secretCipher = object.secretCipher ?? new Uint8Array(0);
|
|
6777
7447
|
message.signature = object.signature ?? new Uint8Array(0);
|
|
6778
7448
|
message.refundSignature = object.refundSignature ?? new Uint8Array(0);
|
|
7449
|
+
message.directRefundSignature = object.directRefundSignature ?? new Uint8Array(0);
|
|
7450
|
+
message.directFromCpfpRefundSignature = object.directFromCpfpRefundSignature ?? new Uint8Array(0);
|
|
6779
7451
|
return message;
|
|
6780
7452
|
}
|
|
6781
7453
|
};
|
|
@@ -6794,7 +7466,7 @@ var SendLeafKeyTweak_PubkeySharesTweakEntry = {
|
|
|
6794
7466
|
},
|
|
6795
7467
|
decode(input, length) {
|
|
6796
7468
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
6797
|
-
|
|
7469
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
6798
7470
|
const message = createBaseSendLeafKeyTweak_PubkeySharesTweakEntry();
|
|
6799
7471
|
while (reader.pos < end) {
|
|
6800
7472
|
const tag = reader.uint32();
|
|
@@ -6868,7 +7540,7 @@ var FinalizeTransferRequest = {
|
|
|
6868
7540
|
},
|
|
6869
7541
|
decode(input, length) {
|
|
6870
7542
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
6871
|
-
|
|
7543
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
6872
7544
|
const message = createBaseFinalizeTransferRequest();
|
|
6873
7545
|
while (reader.pos < end) {
|
|
6874
7546
|
const tag = reader.uint32();
|
|
@@ -6963,7 +7635,7 @@ var FinalizeTransferWithTransferPackageRequest = {
|
|
|
6963
7635
|
},
|
|
6964
7636
|
decode(input, length) {
|
|
6965
7637
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
6966
|
-
|
|
7638
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
6967
7639
|
const message = createBaseFinalizeTransferWithTransferPackageRequest();
|
|
6968
7640
|
while (reader.pos < end) {
|
|
6969
7641
|
const tag = reader.uint32();
|
|
@@ -7040,7 +7712,7 @@ var FinalizeTransferResponse = {
|
|
|
7040
7712
|
},
|
|
7041
7713
|
decode(input, length) {
|
|
7042
7714
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
7043
|
-
|
|
7715
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
7044
7716
|
const message = createBaseFinalizeTransferResponse();
|
|
7045
7717
|
while (reader.pos < end) {
|
|
7046
7718
|
const tag = reader.uint32();
|
|
@@ -7129,7 +7801,7 @@ var Transfer = {
|
|
|
7129
7801
|
},
|
|
7130
7802
|
decode(input, length) {
|
|
7131
7803
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
7132
|
-
|
|
7804
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
7133
7805
|
const message = createBaseTransfer();
|
|
7134
7806
|
while (reader.pos < end) {
|
|
7135
7807
|
const tag = reader.uint32();
|
|
@@ -7283,7 +7955,9 @@ function createBaseTransferLeaf() {
|
|
|
7283
7955
|
leaf: void 0,
|
|
7284
7956
|
secretCipher: new Uint8Array(0),
|
|
7285
7957
|
signature: new Uint8Array(0),
|
|
7286
|
-
intermediateRefundTx: new Uint8Array(0)
|
|
7958
|
+
intermediateRefundTx: new Uint8Array(0),
|
|
7959
|
+
intermediateDirectRefundTx: new Uint8Array(0),
|
|
7960
|
+
intermediateDirectFromCpfpRefundTx: new Uint8Array(0)
|
|
7287
7961
|
};
|
|
7288
7962
|
}
|
|
7289
7963
|
var TransferLeaf = {
|
|
@@ -7300,11 +7974,17 @@ var TransferLeaf = {
|
|
|
7300
7974
|
if (message.intermediateRefundTx.length !== 0) {
|
|
7301
7975
|
writer.uint32(34).bytes(message.intermediateRefundTx);
|
|
7302
7976
|
}
|
|
7977
|
+
if (message.intermediateDirectRefundTx.length !== 0) {
|
|
7978
|
+
writer.uint32(42).bytes(message.intermediateDirectRefundTx);
|
|
7979
|
+
}
|
|
7980
|
+
if (message.intermediateDirectFromCpfpRefundTx.length !== 0) {
|
|
7981
|
+
writer.uint32(50).bytes(message.intermediateDirectFromCpfpRefundTx);
|
|
7982
|
+
}
|
|
7303
7983
|
return writer;
|
|
7304
7984
|
},
|
|
7305
7985
|
decode(input, length) {
|
|
7306
7986
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
7307
|
-
|
|
7987
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
7308
7988
|
const message = createBaseTransferLeaf();
|
|
7309
7989
|
while (reader.pos < end) {
|
|
7310
7990
|
const tag = reader.uint32();
|
|
@@ -7337,6 +8017,20 @@ var TransferLeaf = {
|
|
|
7337
8017
|
message.intermediateRefundTx = reader.bytes();
|
|
7338
8018
|
continue;
|
|
7339
8019
|
}
|
|
8020
|
+
case 5: {
|
|
8021
|
+
if (tag !== 42) {
|
|
8022
|
+
break;
|
|
8023
|
+
}
|
|
8024
|
+
message.intermediateDirectRefundTx = reader.bytes();
|
|
8025
|
+
continue;
|
|
8026
|
+
}
|
|
8027
|
+
case 6: {
|
|
8028
|
+
if (tag !== 50) {
|
|
8029
|
+
break;
|
|
8030
|
+
}
|
|
8031
|
+
message.intermediateDirectFromCpfpRefundTx = reader.bytes();
|
|
8032
|
+
continue;
|
|
8033
|
+
}
|
|
7340
8034
|
}
|
|
7341
8035
|
if ((tag & 7) === 4 || tag === 0) {
|
|
7342
8036
|
break;
|
|
@@ -7350,7 +8044,9 @@ var TransferLeaf = {
|
|
|
7350
8044
|
leaf: isSet4(object.leaf) ? TreeNode.fromJSON(object.leaf) : void 0,
|
|
7351
8045
|
secretCipher: isSet4(object.secretCipher) ? bytesFromBase643(object.secretCipher) : new Uint8Array(0),
|
|
7352
8046
|
signature: isSet4(object.signature) ? bytesFromBase643(object.signature) : new Uint8Array(0),
|
|
7353
|
-
intermediateRefundTx: isSet4(object.intermediateRefundTx) ? bytesFromBase643(object.intermediateRefundTx) : new Uint8Array(0)
|
|
8047
|
+
intermediateRefundTx: isSet4(object.intermediateRefundTx) ? bytesFromBase643(object.intermediateRefundTx) : new Uint8Array(0),
|
|
8048
|
+
intermediateDirectRefundTx: isSet4(object.intermediateDirectRefundTx) ? bytesFromBase643(object.intermediateDirectRefundTx) : new Uint8Array(0),
|
|
8049
|
+
intermediateDirectFromCpfpRefundTx: isSet4(object.intermediateDirectFromCpfpRefundTx) ? bytesFromBase643(object.intermediateDirectFromCpfpRefundTx) : new Uint8Array(0)
|
|
7354
8050
|
};
|
|
7355
8051
|
},
|
|
7356
8052
|
toJSON(message) {
|
|
@@ -7367,6 +8063,12 @@ var TransferLeaf = {
|
|
|
7367
8063
|
if (message.intermediateRefundTx.length !== 0) {
|
|
7368
8064
|
obj.intermediateRefundTx = base64FromBytes3(message.intermediateRefundTx);
|
|
7369
8065
|
}
|
|
8066
|
+
if (message.intermediateDirectRefundTx.length !== 0) {
|
|
8067
|
+
obj.intermediateDirectRefundTx = base64FromBytes3(message.intermediateDirectRefundTx);
|
|
8068
|
+
}
|
|
8069
|
+
if (message.intermediateDirectFromCpfpRefundTx.length !== 0) {
|
|
8070
|
+
obj.intermediateDirectFromCpfpRefundTx = base64FromBytes3(message.intermediateDirectFromCpfpRefundTx);
|
|
8071
|
+
}
|
|
7370
8072
|
return obj;
|
|
7371
8073
|
},
|
|
7372
8074
|
create(base) {
|
|
@@ -7378,6 +8080,8 @@ var TransferLeaf = {
|
|
|
7378
8080
|
message.secretCipher = object.secretCipher ?? new Uint8Array(0);
|
|
7379
8081
|
message.signature = object.signature ?? new Uint8Array(0);
|
|
7380
8082
|
message.intermediateRefundTx = object.intermediateRefundTx ?? new Uint8Array(0);
|
|
8083
|
+
message.intermediateDirectRefundTx = object.intermediateDirectRefundTx ?? new Uint8Array(0);
|
|
8084
|
+
message.intermediateDirectFromCpfpRefundTx = object.intermediateDirectFromCpfpRefundTx ?? new Uint8Array(0);
|
|
7381
8085
|
return message;
|
|
7382
8086
|
}
|
|
7383
8087
|
};
|
|
@@ -7423,7 +8127,7 @@ var TransferFilter = {
|
|
|
7423
8127
|
},
|
|
7424
8128
|
decode(input, length) {
|
|
7425
8129
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
7426
|
-
|
|
8130
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
7427
8131
|
const message = createBaseTransferFilter();
|
|
7428
8132
|
while (reader.pos < end) {
|
|
7429
8133
|
const tag = reader.uint32();
|
|
@@ -7620,7 +8324,7 @@ var QueryTransfersResponse = {
|
|
|
7620
8324
|
},
|
|
7621
8325
|
decode(input, length) {
|
|
7622
8326
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
7623
|
-
|
|
8327
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
7624
8328
|
const message = createBaseQueryTransfersResponse();
|
|
7625
8329
|
while (reader.pos < end) {
|
|
7626
8330
|
const tag = reader.uint32();
|
|
@@ -7691,7 +8395,7 @@ var ClaimLeafKeyTweak = {
|
|
|
7691
8395
|
},
|
|
7692
8396
|
decode(input, length) {
|
|
7693
8397
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
7694
|
-
|
|
8398
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
7695
8399
|
const message = createBaseClaimLeafKeyTweak();
|
|
7696
8400
|
while (reader.pos < end) {
|
|
7697
8401
|
const tag = reader.uint32();
|
|
@@ -7791,7 +8495,7 @@ var ClaimLeafKeyTweak_PubkeySharesTweakEntry = {
|
|
|
7791
8495
|
},
|
|
7792
8496
|
decode(input, length) {
|
|
7793
8497
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
7794
|
-
|
|
8498
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
7795
8499
|
const message = createBaseClaimLeafKeyTweak_PubkeySharesTweakEntry();
|
|
7796
8500
|
while (reader.pos < end) {
|
|
7797
8501
|
const tag = reader.uint32();
|
|
@@ -7862,7 +8566,7 @@ var ClaimTransferTweakKeysRequest = {
|
|
|
7862
8566
|
},
|
|
7863
8567
|
decode(input, length) {
|
|
7864
8568
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
7865
|
-
|
|
8569
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
7866
8570
|
const message = createBaseClaimTransferTweakKeysRequest();
|
|
7867
8571
|
while (reader.pos < end) {
|
|
7868
8572
|
const tag = reader.uint32();
|
|
@@ -7945,7 +8649,7 @@ var ClaimTransferSignRefundsRequest = {
|
|
|
7945
8649
|
},
|
|
7946
8650
|
decode(input, length) {
|
|
7947
8651
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
7948
|
-
|
|
8652
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
7949
8653
|
const message = createBaseClaimTransferSignRefundsRequest();
|
|
7950
8654
|
while (reader.pos < end) {
|
|
7951
8655
|
const tag = reader.uint32();
|
|
@@ -8022,7 +8726,7 @@ var ClaimTransferSignRefundsResponse = {
|
|
|
8022
8726
|
},
|
|
8023
8727
|
decode(input, length) {
|
|
8024
8728
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
8025
|
-
|
|
8729
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
8026
8730
|
const message = createBaseClaimTransferSignRefundsResponse();
|
|
8027
8731
|
while (reader.pos < end) {
|
|
8028
8732
|
const tag = reader.uint32();
|
|
@@ -8093,7 +8797,7 @@ var StorePreimageShareRequest = {
|
|
|
8093
8797
|
},
|
|
8094
8798
|
decode(input, length) {
|
|
8095
8799
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
8096
|
-
|
|
8800
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
8097
8801
|
const message = createBaseStorePreimageShareRequest();
|
|
8098
8802
|
while (reader.pos < end) {
|
|
8099
8803
|
const tag = reader.uint32();
|
|
@@ -8197,7 +8901,7 @@ var RequestedSigningCommitments = {
|
|
|
8197
8901
|
},
|
|
8198
8902
|
decode(input, length) {
|
|
8199
8903
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
8200
|
-
|
|
8904
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
8201
8905
|
const message = createBaseRequestedSigningCommitments();
|
|
8202
8906
|
while (reader.pos < end) {
|
|
8203
8907
|
const tag = reader.uint32();
|
|
@@ -8273,7 +8977,7 @@ var RequestedSigningCommitments_SigningNonceCommitmentsEntry = {
|
|
|
8273
8977
|
},
|
|
8274
8978
|
decode(input, length) {
|
|
8275
8979
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
8276
|
-
|
|
8980
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
8277
8981
|
const message = createBaseRequestedSigningCommitments_SigningNonceCommitmentsEntry();
|
|
8278
8982
|
while (reader.pos < end) {
|
|
8279
8983
|
const tag = reader.uint32();
|
|
@@ -8338,7 +9042,7 @@ var GetSigningCommitmentsRequest = {
|
|
|
8338
9042
|
},
|
|
8339
9043
|
decode(input, length) {
|
|
8340
9044
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
8341
|
-
|
|
9045
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
8342
9046
|
const message = createBaseGetSigningCommitmentsRequest();
|
|
8343
9047
|
while (reader.pos < end) {
|
|
8344
9048
|
const tag = reader.uint32();
|
|
@@ -8391,7 +9095,7 @@ var GetSigningCommitmentsResponse = {
|
|
|
8391
9095
|
},
|
|
8392
9096
|
decode(input, length) {
|
|
8393
9097
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
8394
|
-
|
|
9098
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
8395
9099
|
const message = createBaseGetSigningCommitmentsResponse();
|
|
8396
9100
|
while (reader.pos < end) {
|
|
8397
9101
|
const tag = reader.uint32();
|
|
@@ -8444,7 +9148,7 @@ var SigningCommitments = {
|
|
|
8444
9148
|
},
|
|
8445
9149
|
decode(input, length) {
|
|
8446
9150
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
8447
|
-
|
|
9151
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
8448
9152
|
const message = createBaseSigningCommitments();
|
|
8449
9153
|
while (reader.pos < end) {
|
|
8450
9154
|
const tag = reader.uint32();
|
|
@@ -8520,7 +9224,7 @@ var SigningCommitments_SigningCommitmentsEntry = {
|
|
|
8520
9224
|
},
|
|
8521
9225
|
decode(input, length) {
|
|
8522
9226
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
8523
|
-
|
|
9227
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
8524
9228
|
const message = createBaseSigningCommitments_SigningCommitmentsEntry();
|
|
8525
9229
|
while (reader.pos < end) {
|
|
8526
9230
|
const tag = reader.uint32();
|
|
@@ -8607,7 +9311,7 @@ var UserSignedRefund = {
|
|
|
8607
9311
|
},
|
|
8608
9312
|
decode(input, length) {
|
|
8609
9313
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
8610
|
-
|
|
9314
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
8611
9315
|
const message = createBaseUserSignedRefund();
|
|
8612
9316
|
while (reader.pos < end) {
|
|
8613
9317
|
const tag = reader.uint32();
|
|
@@ -8720,7 +9424,7 @@ var InvoiceAmountProof = {
|
|
|
8720
9424
|
},
|
|
8721
9425
|
decode(input, length) {
|
|
8722
9426
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
8723
|
-
|
|
9427
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
8724
9428
|
const message = createBaseInvoiceAmountProof();
|
|
8725
9429
|
while (reader.pos < end) {
|
|
8726
9430
|
const tag = reader.uint32();
|
|
@@ -8774,7 +9478,7 @@ var InvoiceAmount = {
|
|
|
8774
9478
|
},
|
|
8775
9479
|
decode(input, length) {
|
|
8776
9480
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
8777
|
-
|
|
9481
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
8778
9482
|
const message = createBaseInvoiceAmount();
|
|
8779
9483
|
while (reader.pos < end) {
|
|
8780
9484
|
const tag = reader.uint32();
|
|
@@ -8861,7 +9565,7 @@ var InitiatePreimageSwapRequest = {
|
|
|
8861
9565
|
},
|
|
8862
9566
|
decode(input, length) {
|
|
8863
9567
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
8864
|
-
|
|
9568
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
8865
9569
|
const message = createBaseInitiatePreimageSwapRequest();
|
|
8866
9570
|
while (reader.pos < end) {
|
|
8867
9571
|
const tag = reader.uint32();
|
|
@@ -8977,7 +9681,7 @@ var InitiatePreimageSwapResponse = {
|
|
|
8977
9681
|
},
|
|
8978
9682
|
decode(input, length) {
|
|
8979
9683
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
8980
|
-
|
|
9684
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
8981
9685
|
const message = createBaseInitiatePreimageSwapResponse();
|
|
8982
9686
|
while (reader.pos < end) {
|
|
8983
9687
|
const tag = reader.uint32();
|
|
@@ -9048,7 +9752,7 @@ var CooperativeExitRequest = {
|
|
|
9048
9752
|
},
|
|
9049
9753
|
decode(input, length) {
|
|
9050
9754
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
9051
|
-
|
|
9755
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
9052
9756
|
const message = createBaseCooperativeExitRequest();
|
|
9053
9757
|
while (reader.pos < end) {
|
|
9054
9758
|
const tag = reader.uint32();
|
|
@@ -9128,7 +9832,7 @@ var CooperativeExitResponse = {
|
|
|
9128
9832
|
},
|
|
9129
9833
|
decode(input, length) {
|
|
9130
9834
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
9131
|
-
|
|
9835
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
9132
9836
|
const message = createBaseCooperativeExitResponse();
|
|
9133
9837
|
while (reader.pos < end) {
|
|
9134
9838
|
const tag = reader.uint32();
|
|
@@ -9182,7 +9886,13 @@ var CooperativeExitResponse = {
|
|
|
9182
9886
|
}
|
|
9183
9887
|
};
|
|
9184
9888
|
function createBaseCounterLeafSwapRequest() {
|
|
9185
|
-
return {
|
|
9889
|
+
return {
|
|
9890
|
+
transfer: void 0,
|
|
9891
|
+
swapId: "",
|
|
9892
|
+
adaptorPublicKey: new Uint8Array(0),
|
|
9893
|
+
directAdaptorPublicKey: new Uint8Array(0),
|
|
9894
|
+
directFromCpfpAdaptorPublicKey: new Uint8Array(0)
|
|
9895
|
+
};
|
|
9186
9896
|
}
|
|
9187
9897
|
var CounterLeafSwapRequest = {
|
|
9188
9898
|
encode(message, writer = new import_wire5.BinaryWriter()) {
|
|
@@ -9195,11 +9905,17 @@ var CounterLeafSwapRequest = {
|
|
|
9195
9905
|
if (message.adaptorPublicKey.length !== 0) {
|
|
9196
9906
|
writer.uint32(26).bytes(message.adaptorPublicKey);
|
|
9197
9907
|
}
|
|
9908
|
+
if (message.directAdaptorPublicKey.length !== 0) {
|
|
9909
|
+
writer.uint32(34).bytes(message.directAdaptorPublicKey);
|
|
9910
|
+
}
|
|
9911
|
+
if (message.directFromCpfpAdaptorPublicKey.length !== 0) {
|
|
9912
|
+
writer.uint32(42).bytes(message.directFromCpfpAdaptorPublicKey);
|
|
9913
|
+
}
|
|
9198
9914
|
return writer;
|
|
9199
9915
|
},
|
|
9200
9916
|
decode(input, length) {
|
|
9201
9917
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
9202
|
-
|
|
9918
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
9203
9919
|
const message = createBaseCounterLeafSwapRequest();
|
|
9204
9920
|
while (reader.pos < end) {
|
|
9205
9921
|
const tag = reader.uint32();
|
|
@@ -9225,6 +9941,20 @@ var CounterLeafSwapRequest = {
|
|
|
9225
9941
|
message.adaptorPublicKey = reader.bytes();
|
|
9226
9942
|
continue;
|
|
9227
9943
|
}
|
|
9944
|
+
case 4: {
|
|
9945
|
+
if (tag !== 34) {
|
|
9946
|
+
break;
|
|
9947
|
+
}
|
|
9948
|
+
message.directAdaptorPublicKey = reader.bytes();
|
|
9949
|
+
continue;
|
|
9950
|
+
}
|
|
9951
|
+
case 5: {
|
|
9952
|
+
if (tag !== 42) {
|
|
9953
|
+
break;
|
|
9954
|
+
}
|
|
9955
|
+
message.directFromCpfpAdaptorPublicKey = reader.bytes();
|
|
9956
|
+
continue;
|
|
9957
|
+
}
|
|
9228
9958
|
}
|
|
9229
9959
|
if ((tag & 7) === 4 || tag === 0) {
|
|
9230
9960
|
break;
|
|
@@ -9237,7 +9967,9 @@ var CounterLeafSwapRequest = {
|
|
|
9237
9967
|
return {
|
|
9238
9968
|
transfer: isSet4(object.transfer) ? StartTransferRequest.fromJSON(object.transfer) : void 0,
|
|
9239
9969
|
swapId: isSet4(object.swapId) ? globalThis.String(object.swapId) : "",
|
|
9240
|
-
adaptorPublicKey: isSet4(object.adaptorPublicKey) ? bytesFromBase643(object.adaptorPublicKey) : new Uint8Array(0)
|
|
9970
|
+
adaptorPublicKey: isSet4(object.adaptorPublicKey) ? bytesFromBase643(object.adaptorPublicKey) : new Uint8Array(0),
|
|
9971
|
+
directAdaptorPublicKey: isSet4(object.directAdaptorPublicKey) ? bytesFromBase643(object.directAdaptorPublicKey) : new Uint8Array(0),
|
|
9972
|
+
directFromCpfpAdaptorPublicKey: isSet4(object.directFromCpfpAdaptorPublicKey) ? bytesFromBase643(object.directFromCpfpAdaptorPublicKey) : new Uint8Array(0)
|
|
9241
9973
|
};
|
|
9242
9974
|
},
|
|
9243
9975
|
toJSON(message) {
|
|
@@ -9251,6 +9983,12 @@ var CounterLeafSwapRequest = {
|
|
|
9251
9983
|
if (message.adaptorPublicKey.length !== 0) {
|
|
9252
9984
|
obj.adaptorPublicKey = base64FromBytes3(message.adaptorPublicKey);
|
|
9253
9985
|
}
|
|
9986
|
+
if (message.directAdaptorPublicKey.length !== 0) {
|
|
9987
|
+
obj.directAdaptorPublicKey = base64FromBytes3(message.directAdaptorPublicKey);
|
|
9988
|
+
}
|
|
9989
|
+
if (message.directFromCpfpAdaptorPublicKey.length !== 0) {
|
|
9990
|
+
obj.directFromCpfpAdaptorPublicKey = base64FromBytes3(message.directFromCpfpAdaptorPublicKey);
|
|
9991
|
+
}
|
|
9254
9992
|
return obj;
|
|
9255
9993
|
},
|
|
9256
9994
|
create(base) {
|
|
@@ -9261,6 +9999,8 @@ var CounterLeafSwapRequest = {
|
|
|
9261
9999
|
message.transfer = object.transfer !== void 0 && object.transfer !== null ? StartTransferRequest.fromPartial(object.transfer) : void 0;
|
|
9262
10000
|
message.swapId = object.swapId ?? "";
|
|
9263
10001
|
message.adaptorPublicKey = object.adaptorPublicKey ?? new Uint8Array(0);
|
|
10002
|
+
message.directAdaptorPublicKey = object.directAdaptorPublicKey ?? new Uint8Array(0);
|
|
10003
|
+
message.directFromCpfpAdaptorPublicKey = object.directFromCpfpAdaptorPublicKey ?? new Uint8Array(0);
|
|
9264
10004
|
return message;
|
|
9265
10005
|
}
|
|
9266
10006
|
};
|
|
@@ -9279,7 +10019,7 @@ var CounterLeafSwapResponse = {
|
|
|
9279
10019
|
},
|
|
9280
10020
|
decode(input, length) {
|
|
9281
10021
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
9282
|
-
|
|
10022
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
9283
10023
|
const message = createBaseCounterLeafSwapResponse();
|
|
9284
10024
|
while (reader.pos < end) {
|
|
9285
10025
|
const tag = reader.uint32();
|
|
@@ -9350,7 +10090,7 @@ var RefreshTimelockRequest = {
|
|
|
9350
10090
|
},
|
|
9351
10091
|
decode(input, length) {
|
|
9352
10092
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
9353
|
-
|
|
10093
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
9354
10094
|
const message = createBaseRefreshTimelockRequest();
|
|
9355
10095
|
while (reader.pos < end) {
|
|
9356
10096
|
const tag = reader.uint32();
|
|
@@ -9430,7 +10170,7 @@ var RefreshTimelockSigningResult = {
|
|
|
9430
10170
|
},
|
|
9431
10171
|
decode(input, length) {
|
|
9432
10172
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
9433
|
-
|
|
10173
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
9434
10174
|
const message = createBaseRefreshTimelockSigningResult();
|
|
9435
10175
|
while (reader.pos < end) {
|
|
9436
10176
|
const tag = reader.uint32();
|
|
@@ -9495,7 +10235,7 @@ var RefreshTimelockResponse = {
|
|
|
9495
10235
|
},
|
|
9496
10236
|
decode(input, length) {
|
|
9497
10237
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
9498
|
-
|
|
10238
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
9499
10239
|
const message = createBaseRefreshTimelockResponse();
|
|
9500
10240
|
while (reader.pos < end) {
|
|
9501
10241
|
const tag = reader.uint32();
|
|
@@ -9541,7 +10281,10 @@ function createBaseExtendLeafRequest() {
|
|
|
9541
10281
|
leafId: "",
|
|
9542
10282
|
ownerIdentityPublicKey: new Uint8Array(0),
|
|
9543
10283
|
nodeTxSigningJob: void 0,
|
|
9544
|
-
refundTxSigningJob: void 0
|
|
10284
|
+
refundTxSigningJob: void 0,
|
|
10285
|
+
directNodeTxSigningJob: void 0,
|
|
10286
|
+
directRefundTxSigningJob: void 0,
|
|
10287
|
+
directFromCpfpRefundTxSigningJob: void 0
|
|
9545
10288
|
};
|
|
9546
10289
|
}
|
|
9547
10290
|
var ExtendLeafRequest = {
|
|
@@ -9558,11 +10301,20 @@ var ExtendLeafRequest = {
|
|
|
9558
10301
|
if (message.refundTxSigningJob !== void 0) {
|
|
9559
10302
|
SigningJob.encode(message.refundTxSigningJob, writer.uint32(34).fork()).join();
|
|
9560
10303
|
}
|
|
10304
|
+
if (message.directNodeTxSigningJob !== void 0) {
|
|
10305
|
+
SigningJob.encode(message.directNodeTxSigningJob, writer.uint32(42).fork()).join();
|
|
10306
|
+
}
|
|
10307
|
+
if (message.directRefundTxSigningJob !== void 0) {
|
|
10308
|
+
SigningJob.encode(message.directRefundTxSigningJob, writer.uint32(50).fork()).join();
|
|
10309
|
+
}
|
|
10310
|
+
if (message.directFromCpfpRefundTxSigningJob !== void 0) {
|
|
10311
|
+
SigningJob.encode(message.directFromCpfpRefundTxSigningJob, writer.uint32(58).fork()).join();
|
|
10312
|
+
}
|
|
9561
10313
|
return writer;
|
|
9562
10314
|
},
|
|
9563
10315
|
decode(input, length) {
|
|
9564
10316
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
9565
|
-
|
|
10317
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
9566
10318
|
const message = createBaseExtendLeafRequest();
|
|
9567
10319
|
while (reader.pos < end) {
|
|
9568
10320
|
const tag = reader.uint32();
|
|
@@ -9595,6 +10347,27 @@ var ExtendLeafRequest = {
|
|
|
9595
10347
|
message.refundTxSigningJob = SigningJob.decode(reader, reader.uint32());
|
|
9596
10348
|
continue;
|
|
9597
10349
|
}
|
|
10350
|
+
case 5: {
|
|
10351
|
+
if (tag !== 42) {
|
|
10352
|
+
break;
|
|
10353
|
+
}
|
|
10354
|
+
message.directNodeTxSigningJob = SigningJob.decode(reader, reader.uint32());
|
|
10355
|
+
continue;
|
|
10356
|
+
}
|
|
10357
|
+
case 6: {
|
|
10358
|
+
if (tag !== 50) {
|
|
10359
|
+
break;
|
|
10360
|
+
}
|
|
10361
|
+
message.directRefundTxSigningJob = SigningJob.decode(reader, reader.uint32());
|
|
10362
|
+
continue;
|
|
10363
|
+
}
|
|
10364
|
+
case 7: {
|
|
10365
|
+
if (tag !== 58) {
|
|
10366
|
+
break;
|
|
10367
|
+
}
|
|
10368
|
+
message.directFromCpfpRefundTxSigningJob = SigningJob.decode(reader, reader.uint32());
|
|
10369
|
+
continue;
|
|
10370
|
+
}
|
|
9598
10371
|
}
|
|
9599
10372
|
if ((tag & 7) === 4 || tag === 0) {
|
|
9600
10373
|
break;
|
|
@@ -9608,7 +10381,10 @@ var ExtendLeafRequest = {
|
|
|
9608
10381
|
leafId: isSet4(object.leafId) ? globalThis.String(object.leafId) : "",
|
|
9609
10382
|
ownerIdentityPublicKey: isSet4(object.ownerIdentityPublicKey) ? bytesFromBase643(object.ownerIdentityPublicKey) : new Uint8Array(0),
|
|
9610
10383
|
nodeTxSigningJob: isSet4(object.nodeTxSigningJob) ? SigningJob.fromJSON(object.nodeTxSigningJob) : void 0,
|
|
9611
|
-
refundTxSigningJob: isSet4(object.refundTxSigningJob) ? SigningJob.fromJSON(object.refundTxSigningJob) : void 0
|
|
10384
|
+
refundTxSigningJob: isSet4(object.refundTxSigningJob) ? SigningJob.fromJSON(object.refundTxSigningJob) : void 0,
|
|
10385
|
+
directNodeTxSigningJob: isSet4(object.directNodeTxSigningJob) ? SigningJob.fromJSON(object.directNodeTxSigningJob) : void 0,
|
|
10386
|
+
directRefundTxSigningJob: isSet4(object.directRefundTxSigningJob) ? SigningJob.fromJSON(object.directRefundTxSigningJob) : void 0,
|
|
10387
|
+
directFromCpfpRefundTxSigningJob: isSet4(object.directFromCpfpRefundTxSigningJob) ? SigningJob.fromJSON(object.directFromCpfpRefundTxSigningJob) : void 0
|
|
9612
10388
|
};
|
|
9613
10389
|
},
|
|
9614
10390
|
toJSON(message) {
|
|
@@ -9625,6 +10401,15 @@ var ExtendLeafRequest = {
|
|
|
9625
10401
|
if (message.refundTxSigningJob !== void 0) {
|
|
9626
10402
|
obj.refundTxSigningJob = SigningJob.toJSON(message.refundTxSigningJob);
|
|
9627
10403
|
}
|
|
10404
|
+
if (message.directNodeTxSigningJob !== void 0) {
|
|
10405
|
+
obj.directNodeTxSigningJob = SigningJob.toJSON(message.directNodeTxSigningJob);
|
|
10406
|
+
}
|
|
10407
|
+
if (message.directRefundTxSigningJob !== void 0) {
|
|
10408
|
+
obj.directRefundTxSigningJob = SigningJob.toJSON(message.directRefundTxSigningJob);
|
|
10409
|
+
}
|
|
10410
|
+
if (message.directFromCpfpRefundTxSigningJob !== void 0) {
|
|
10411
|
+
obj.directFromCpfpRefundTxSigningJob = SigningJob.toJSON(message.directFromCpfpRefundTxSigningJob);
|
|
10412
|
+
}
|
|
9628
10413
|
return obj;
|
|
9629
10414
|
},
|
|
9630
10415
|
create(base) {
|
|
@@ -9636,6 +10421,9 @@ var ExtendLeafRequest = {
|
|
|
9636
10421
|
message.ownerIdentityPublicKey = object.ownerIdentityPublicKey ?? new Uint8Array(0);
|
|
9637
10422
|
message.nodeTxSigningJob = object.nodeTxSigningJob !== void 0 && object.nodeTxSigningJob !== null ? SigningJob.fromPartial(object.nodeTxSigningJob) : void 0;
|
|
9638
10423
|
message.refundTxSigningJob = object.refundTxSigningJob !== void 0 && object.refundTxSigningJob !== null ? SigningJob.fromPartial(object.refundTxSigningJob) : void 0;
|
|
10424
|
+
message.directNodeTxSigningJob = object.directNodeTxSigningJob !== void 0 && object.directNodeTxSigningJob !== null ? SigningJob.fromPartial(object.directNodeTxSigningJob) : void 0;
|
|
10425
|
+
message.directRefundTxSigningJob = object.directRefundTxSigningJob !== void 0 && object.directRefundTxSigningJob !== null ? SigningJob.fromPartial(object.directRefundTxSigningJob) : void 0;
|
|
10426
|
+
message.directFromCpfpRefundTxSigningJob = object.directFromCpfpRefundTxSigningJob !== void 0 && object.directFromCpfpRefundTxSigningJob !== null ? SigningJob.fromPartial(object.directFromCpfpRefundTxSigningJob) : void 0;
|
|
9639
10427
|
return message;
|
|
9640
10428
|
}
|
|
9641
10429
|
};
|
|
@@ -9654,7 +10442,7 @@ var ExtendLeafSigningResult = {
|
|
|
9654
10442
|
},
|
|
9655
10443
|
decode(input, length) {
|
|
9656
10444
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
9657
|
-
|
|
10445
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
9658
10446
|
const message = createBaseExtendLeafSigningResult();
|
|
9659
10447
|
while (reader.pos < end) {
|
|
9660
10448
|
const tag = reader.uint32();
|
|
@@ -9708,7 +10496,14 @@ var ExtendLeafSigningResult = {
|
|
|
9708
10496
|
}
|
|
9709
10497
|
};
|
|
9710
10498
|
function createBaseExtendLeafResponse() {
|
|
9711
|
-
return {
|
|
10499
|
+
return {
|
|
10500
|
+
leafId: "",
|
|
10501
|
+
nodeTxSigningResult: void 0,
|
|
10502
|
+
refundTxSigningResult: void 0,
|
|
10503
|
+
directNodeTxSigningResult: void 0,
|
|
10504
|
+
directRefundTxSigningResult: void 0,
|
|
10505
|
+
directFromCpfpRefundTxSigningResult: void 0
|
|
10506
|
+
};
|
|
9712
10507
|
}
|
|
9713
10508
|
var ExtendLeafResponse = {
|
|
9714
10509
|
encode(message, writer = new import_wire5.BinaryWriter()) {
|
|
@@ -9721,11 +10516,20 @@ var ExtendLeafResponse = {
|
|
|
9721
10516
|
if (message.refundTxSigningResult !== void 0) {
|
|
9722
10517
|
ExtendLeafSigningResult.encode(message.refundTxSigningResult, writer.uint32(26).fork()).join();
|
|
9723
10518
|
}
|
|
10519
|
+
if (message.directNodeTxSigningResult !== void 0) {
|
|
10520
|
+
ExtendLeafSigningResult.encode(message.directNodeTxSigningResult, writer.uint32(34).fork()).join();
|
|
10521
|
+
}
|
|
10522
|
+
if (message.directRefundTxSigningResult !== void 0) {
|
|
10523
|
+
ExtendLeafSigningResult.encode(message.directRefundTxSigningResult, writer.uint32(42).fork()).join();
|
|
10524
|
+
}
|
|
10525
|
+
if (message.directFromCpfpRefundTxSigningResult !== void 0) {
|
|
10526
|
+
ExtendLeafSigningResult.encode(message.directFromCpfpRefundTxSigningResult, writer.uint32(50).fork()).join();
|
|
10527
|
+
}
|
|
9724
10528
|
return writer;
|
|
9725
10529
|
},
|
|
9726
10530
|
decode(input, length) {
|
|
9727
10531
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
9728
|
-
|
|
10532
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
9729
10533
|
const message = createBaseExtendLeafResponse();
|
|
9730
10534
|
while (reader.pos < end) {
|
|
9731
10535
|
const tag = reader.uint32();
|
|
@@ -9751,6 +10555,27 @@ var ExtendLeafResponse = {
|
|
|
9751
10555
|
message.refundTxSigningResult = ExtendLeafSigningResult.decode(reader, reader.uint32());
|
|
9752
10556
|
continue;
|
|
9753
10557
|
}
|
|
10558
|
+
case 4: {
|
|
10559
|
+
if (tag !== 34) {
|
|
10560
|
+
break;
|
|
10561
|
+
}
|
|
10562
|
+
message.directNodeTxSigningResult = ExtendLeafSigningResult.decode(reader, reader.uint32());
|
|
10563
|
+
continue;
|
|
10564
|
+
}
|
|
10565
|
+
case 5: {
|
|
10566
|
+
if (tag !== 42) {
|
|
10567
|
+
break;
|
|
10568
|
+
}
|
|
10569
|
+
message.directRefundTxSigningResult = ExtendLeafSigningResult.decode(reader, reader.uint32());
|
|
10570
|
+
continue;
|
|
10571
|
+
}
|
|
10572
|
+
case 6: {
|
|
10573
|
+
if (tag !== 50) {
|
|
10574
|
+
break;
|
|
10575
|
+
}
|
|
10576
|
+
message.directFromCpfpRefundTxSigningResult = ExtendLeafSigningResult.decode(reader, reader.uint32());
|
|
10577
|
+
continue;
|
|
10578
|
+
}
|
|
9754
10579
|
}
|
|
9755
10580
|
if ((tag & 7) === 4 || tag === 0) {
|
|
9756
10581
|
break;
|
|
@@ -9763,7 +10588,10 @@ var ExtendLeafResponse = {
|
|
|
9763
10588
|
return {
|
|
9764
10589
|
leafId: isSet4(object.leafId) ? globalThis.String(object.leafId) : "",
|
|
9765
10590
|
nodeTxSigningResult: isSet4(object.nodeTxSigningResult) ? ExtendLeafSigningResult.fromJSON(object.nodeTxSigningResult) : void 0,
|
|
9766
|
-
refundTxSigningResult: isSet4(object.refundTxSigningResult) ? ExtendLeafSigningResult.fromJSON(object.refundTxSigningResult) : void 0
|
|
10591
|
+
refundTxSigningResult: isSet4(object.refundTxSigningResult) ? ExtendLeafSigningResult.fromJSON(object.refundTxSigningResult) : void 0,
|
|
10592
|
+
directNodeTxSigningResult: isSet4(object.directNodeTxSigningResult) ? ExtendLeafSigningResult.fromJSON(object.directNodeTxSigningResult) : void 0,
|
|
10593
|
+
directRefundTxSigningResult: isSet4(object.directRefundTxSigningResult) ? ExtendLeafSigningResult.fromJSON(object.directRefundTxSigningResult) : void 0,
|
|
10594
|
+
directFromCpfpRefundTxSigningResult: isSet4(object.directFromCpfpRefundTxSigningResult) ? ExtendLeafSigningResult.fromJSON(object.directFromCpfpRefundTxSigningResult) : void 0
|
|
9767
10595
|
};
|
|
9768
10596
|
},
|
|
9769
10597
|
toJSON(message) {
|
|
@@ -9777,6 +10605,17 @@ var ExtendLeafResponse = {
|
|
|
9777
10605
|
if (message.refundTxSigningResult !== void 0) {
|
|
9778
10606
|
obj.refundTxSigningResult = ExtendLeafSigningResult.toJSON(message.refundTxSigningResult);
|
|
9779
10607
|
}
|
|
10608
|
+
if (message.directNodeTxSigningResult !== void 0) {
|
|
10609
|
+
obj.directNodeTxSigningResult = ExtendLeafSigningResult.toJSON(message.directNodeTxSigningResult);
|
|
10610
|
+
}
|
|
10611
|
+
if (message.directRefundTxSigningResult !== void 0) {
|
|
10612
|
+
obj.directRefundTxSigningResult = ExtendLeafSigningResult.toJSON(message.directRefundTxSigningResult);
|
|
10613
|
+
}
|
|
10614
|
+
if (message.directFromCpfpRefundTxSigningResult !== void 0) {
|
|
10615
|
+
obj.directFromCpfpRefundTxSigningResult = ExtendLeafSigningResult.toJSON(
|
|
10616
|
+
message.directFromCpfpRefundTxSigningResult
|
|
10617
|
+
);
|
|
10618
|
+
}
|
|
9780
10619
|
return obj;
|
|
9781
10620
|
},
|
|
9782
10621
|
create(base) {
|
|
@@ -9787,6 +10626,9 @@ var ExtendLeafResponse = {
|
|
|
9787
10626
|
message.leafId = object.leafId ?? "";
|
|
9788
10627
|
message.nodeTxSigningResult = object.nodeTxSigningResult !== void 0 && object.nodeTxSigningResult !== null ? ExtendLeafSigningResult.fromPartial(object.nodeTxSigningResult) : void 0;
|
|
9789
10628
|
message.refundTxSigningResult = object.refundTxSigningResult !== void 0 && object.refundTxSigningResult !== null ? ExtendLeafSigningResult.fromPartial(object.refundTxSigningResult) : void 0;
|
|
10629
|
+
message.directNodeTxSigningResult = object.directNodeTxSigningResult !== void 0 && object.directNodeTxSigningResult !== null ? ExtendLeafSigningResult.fromPartial(object.directNodeTxSigningResult) : void 0;
|
|
10630
|
+
message.directRefundTxSigningResult = object.directRefundTxSigningResult !== void 0 && object.directRefundTxSigningResult !== null ? ExtendLeafSigningResult.fromPartial(object.directRefundTxSigningResult) : void 0;
|
|
10631
|
+
message.directFromCpfpRefundTxSigningResult = object.directFromCpfpRefundTxSigningResult !== void 0 && object.directFromCpfpRefundTxSigningResult !== null ? ExtendLeafSigningResult.fromPartial(object.directFromCpfpRefundTxSigningResult) : void 0;
|
|
9790
10632
|
return message;
|
|
9791
10633
|
}
|
|
9792
10634
|
};
|
|
@@ -9805,7 +10647,7 @@ var AddressRequestNode = {
|
|
|
9805
10647
|
},
|
|
9806
10648
|
decode(input, length) {
|
|
9807
10649
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
9808
|
-
|
|
10650
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
9809
10651
|
const message = createBaseAddressRequestNode();
|
|
9810
10652
|
while (reader.pos < end) {
|
|
9811
10653
|
const tag = reader.uint32();
|
|
@@ -9881,7 +10723,7 @@ var PrepareTreeAddressRequest = {
|
|
|
9881
10723
|
},
|
|
9882
10724
|
decode(input, length) {
|
|
9883
10725
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
9884
|
-
|
|
10726
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
9885
10727
|
const message = createBasePrepareTreeAddressRequest();
|
|
9886
10728
|
while (reader.pos < end) {
|
|
9887
10729
|
const tag = reader.uint32();
|
|
@@ -9986,7 +10828,7 @@ var AddressNode = {
|
|
|
9986
10828
|
},
|
|
9987
10829
|
decode(input, length) {
|
|
9988
10830
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
9989
|
-
|
|
10831
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
9990
10832
|
const message = createBaseAddressNode();
|
|
9991
10833
|
while (reader.pos < end) {
|
|
9992
10834
|
const tag = reader.uint32();
|
|
@@ -10051,7 +10893,7 @@ var PrepareTreeAddressResponse = {
|
|
|
10051
10893
|
},
|
|
10052
10894
|
decode(input, length) {
|
|
10053
10895
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
10054
|
-
|
|
10896
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
10055
10897
|
const message = createBasePrepareTreeAddressResponse();
|
|
10056
10898
|
while (reader.pos < end) {
|
|
10057
10899
|
const tag = reader.uint32();
|
|
@@ -10091,7 +10933,14 @@ var PrepareTreeAddressResponse = {
|
|
|
10091
10933
|
}
|
|
10092
10934
|
};
|
|
10093
10935
|
function createBaseCreationNode() {
|
|
10094
|
-
return {
|
|
10936
|
+
return {
|
|
10937
|
+
nodeTxSigningJob: void 0,
|
|
10938
|
+
refundTxSigningJob: void 0,
|
|
10939
|
+
children: [],
|
|
10940
|
+
directNodeTxSigningJob: void 0,
|
|
10941
|
+
directRefundTxSigningJob: void 0,
|
|
10942
|
+
directFromCpfpRefundTxSigningJob: void 0
|
|
10943
|
+
};
|
|
10095
10944
|
}
|
|
10096
10945
|
var CreationNode = {
|
|
10097
10946
|
encode(message, writer = new import_wire5.BinaryWriter()) {
|
|
@@ -10104,11 +10953,20 @@ var CreationNode = {
|
|
|
10104
10953
|
for (const v of message.children) {
|
|
10105
10954
|
CreationNode.encode(v, writer.uint32(26).fork()).join();
|
|
10106
10955
|
}
|
|
10956
|
+
if (message.directNodeTxSigningJob !== void 0) {
|
|
10957
|
+
SigningJob.encode(message.directNodeTxSigningJob, writer.uint32(34).fork()).join();
|
|
10958
|
+
}
|
|
10959
|
+
if (message.directRefundTxSigningJob !== void 0) {
|
|
10960
|
+
SigningJob.encode(message.directRefundTxSigningJob, writer.uint32(42).fork()).join();
|
|
10961
|
+
}
|
|
10962
|
+
if (message.directFromCpfpRefundTxSigningJob !== void 0) {
|
|
10963
|
+
SigningJob.encode(message.directFromCpfpRefundTxSigningJob, writer.uint32(50).fork()).join();
|
|
10964
|
+
}
|
|
10107
10965
|
return writer;
|
|
10108
10966
|
},
|
|
10109
10967
|
decode(input, length) {
|
|
10110
10968
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
10111
|
-
|
|
10969
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
10112
10970
|
const message = createBaseCreationNode();
|
|
10113
10971
|
while (reader.pos < end) {
|
|
10114
10972
|
const tag = reader.uint32();
|
|
@@ -10134,6 +10992,27 @@ var CreationNode = {
|
|
|
10134
10992
|
message.children.push(CreationNode.decode(reader, reader.uint32()));
|
|
10135
10993
|
continue;
|
|
10136
10994
|
}
|
|
10995
|
+
case 4: {
|
|
10996
|
+
if (tag !== 34) {
|
|
10997
|
+
break;
|
|
10998
|
+
}
|
|
10999
|
+
message.directNodeTxSigningJob = SigningJob.decode(reader, reader.uint32());
|
|
11000
|
+
continue;
|
|
11001
|
+
}
|
|
11002
|
+
case 5: {
|
|
11003
|
+
if (tag !== 42) {
|
|
11004
|
+
break;
|
|
11005
|
+
}
|
|
11006
|
+
message.directRefundTxSigningJob = SigningJob.decode(reader, reader.uint32());
|
|
11007
|
+
continue;
|
|
11008
|
+
}
|
|
11009
|
+
case 6: {
|
|
11010
|
+
if (tag !== 50) {
|
|
11011
|
+
break;
|
|
11012
|
+
}
|
|
11013
|
+
message.directFromCpfpRefundTxSigningJob = SigningJob.decode(reader, reader.uint32());
|
|
11014
|
+
continue;
|
|
11015
|
+
}
|
|
10137
11016
|
}
|
|
10138
11017
|
if ((tag & 7) === 4 || tag === 0) {
|
|
10139
11018
|
break;
|
|
@@ -10146,7 +11025,10 @@ var CreationNode = {
|
|
|
10146
11025
|
return {
|
|
10147
11026
|
nodeTxSigningJob: isSet4(object.nodeTxSigningJob) ? SigningJob.fromJSON(object.nodeTxSigningJob) : void 0,
|
|
10148
11027
|
refundTxSigningJob: isSet4(object.refundTxSigningJob) ? SigningJob.fromJSON(object.refundTxSigningJob) : void 0,
|
|
10149
|
-
children: globalThis.Array.isArray(object?.children) ? object.children.map((e) => CreationNode.fromJSON(e)) : []
|
|
11028
|
+
children: globalThis.Array.isArray(object?.children) ? object.children.map((e) => CreationNode.fromJSON(e)) : [],
|
|
11029
|
+
directNodeTxSigningJob: isSet4(object.directNodeTxSigningJob) ? SigningJob.fromJSON(object.directNodeTxSigningJob) : void 0,
|
|
11030
|
+
directRefundTxSigningJob: isSet4(object.directRefundTxSigningJob) ? SigningJob.fromJSON(object.directRefundTxSigningJob) : void 0,
|
|
11031
|
+
directFromCpfpRefundTxSigningJob: isSet4(object.directFromCpfpRefundTxSigningJob) ? SigningJob.fromJSON(object.directFromCpfpRefundTxSigningJob) : void 0
|
|
10150
11032
|
};
|
|
10151
11033
|
},
|
|
10152
11034
|
toJSON(message) {
|
|
@@ -10160,6 +11042,15 @@ var CreationNode = {
|
|
|
10160
11042
|
if (message.children?.length) {
|
|
10161
11043
|
obj.children = message.children.map((e) => CreationNode.toJSON(e));
|
|
10162
11044
|
}
|
|
11045
|
+
if (message.directNodeTxSigningJob !== void 0) {
|
|
11046
|
+
obj.directNodeTxSigningJob = SigningJob.toJSON(message.directNodeTxSigningJob);
|
|
11047
|
+
}
|
|
11048
|
+
if (message.directRefundTxSigningJob !== void 0) {
|
|
11049
|
+
obj.directRefundTxSigningJob = SigningJob.toJSON(message.directRefundTxSigningJob);
|
|
11050
|
+
}
|
|
11051
|
+
if (message.directFromCpfpRefundTxSigningJob !== void 0) {
|
|
11052
|
+
obj.directFromCpfpRefundTxSigningJob = SigningJob.toJSON(message.directFromCpfpRefundTxSigningJob);
|
|
11053
|
+
}
|
|
10163
11054
|
return obj;
|
|
10164
11055
|
},
|
|
10165
11056
|
create(base) {
|
|
@@ -10170,6 +11061,9 @@ var CreationNode = {
|
|
|
10170
11061
|
message.nodeTxSigningJob = object.nodeTxSigningJob !== void 0 && object.nodeTxSigningJob !== null ? SigningJob.fromPartial(object.nodeTxSigningJob) : void 0;
|
|
10171
11062
|
message.refundTxSigningJob = object.refundTxSigningJob !== void 0 && object.refundTxSigningJob !== null ? SigningJob.fromPartial(object.refundTxSigningJob) : void 0;
|
|
10172
11063
|
message.children = object.children?.map((e) => CreationNode.fromPartial(e)) || [];
|
|
11064
|
+
message.directNodeTxSigningJob = object.directNodeTxSigningJob !== void 0 && object.directNodeTxSigningJob !== null ? SigningJob.fromPartial(object.directNodeTxSigningJob) : void 0;
|
|
11065
|
+
message.directRefundTxSigningJob = object.directRefundTxSigningJob !== void 0 && object.directRefundTxSigningJob !== null ? SigningJob.fromPartial(object.directRefundTxSigningJob) : void 0;
|
|
11066
|
+
message.directFromCpfpRefundTxSigningJob = object.directFromCpfpRefundTxSigningJob !== void 0 && object.directFromCpfpRefundTxSigningJob !== null ? SigningJob.fromPartial(object.directFromCpfpRefundTxSigningJob) : void 0;
|
|
10173
11067
|
return message;
|
|
10174
11068
|
}
|
|
10175
11069
|
};
|
|
@@ -10196,7 +11090,7 @@ var CreateTreeRequest = {
|
|
|
10196
11090
|
},
|
|
10197
11091
|
decode(input, length) {
|
|
10198
11092
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
10199
|
-
|
|
11093
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
10200
11094
|
const message = createBaseCreateTreeRequest();
|
|
10201
11095
|
while (reader.pos < end) {
|
|
10202
11096
|
const tag = reader.uint32();
|
|
@@ -10287,7 +11181,15 @@ var CreateTreeRequest = {
|
|
|
10287
11181
|
}
|
|
10288
11182
|
};
|
|
10289
11183
|
function createBaseCreationResponseNode() {
|
|
10290
|
-
return {
|
|
11184
|
+
return {
|
|
11185
|
+
nodeId: "",
|
|
11186
|
+
nodeTxSigningResult: void 0,
|
|
11187
|
+
refundTxSigningResult: void 0,
|
|
11188
|
+
children: [],
|
|
11189
|
+
directNodeTxSigningResult: void 0,
|
|
11190
|
+
directRefundTxSigningResult: void 0,
|
|
11191
|
+
directFromCpfpRefundTxSigningResult: void 0
|
|
11192
|
+
};
|
|
10291
11193
|
}
|
|
10292
11194
|
var CreationResponseNode = {
|
|
10293
11195
|
encode(message, writer = new import_wire5.BinaryWriter()) {
|
|
@@ -10303,11 +11205,20 @@ var CreationResponseNode = {
|
|
|
10303
11205
|
for (const v of message.children) {
|
|
10304
11206
|
CreationResponseNode.encode(v, writer.uint32(34).fork()).join();
|
|
10305
11207
|
}
|
|
11208
|
+
if (message.directNodeTxSigningResult !== void 0) {
|
|
11209
|
+
SigningResult.encode(message.directNodeTxSigningResult, writer.uint32(42).fork()).join();
|
|
11210
|
+
}
|
|
11211
|
+
if (message.directRefundTxSigningResult !== void 0) {
|
|
11212
|
+
SigningResult.encode(message.directRefundTxSigningResult, writer.uint32(50).fork()).join();
|
|
11213
|
+
}
|
|
11214
|
+
if (message.directFromCpfpRefundTxSigningResult !== void 0) {
|
|
11215
|
+
SigningResult.encode(message.directFromCpfpRefundTxSigningResult, writer.uint32(58).fork()).join();
|
|
11216
|
+
}
|
|
10306
11217
|
return writer;
|
|
10307
11218
|
},
|
|
10308
11219
|
decode(input, length) {
|
|
10309
11220
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
10310
|
-
|
|
11221
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
10311
11222
|
const message = createBaseCreationResponseNode();
|
|
10312
11223
|
while (reader.pos < end) {
|
|
10313
11224
|
const tag = reader.uint32();
|
|
@@ -10340,12 +11251,33 @@ var CreationResponseNode = {
|
|
|
10340
11251
|
message.children.push(CreationResponseNode.decode(reader, reader.uint32()));
|
|
10341
11252
|
continue;
|
|
10342
11253
|
}
|
|
10343
|
-
|
|
10344
|
-
|
|
10345
|
-
|
|
10346
|
-
|
|
10347
|
-
|
|
10348
|
-
|
|
11254
|
+
case 5: {
|
|
11255
|
+
if (tag !== 42) {
|
|
11256
|
+
break;
|
|
11257
|
+
}
|
|
11258
|
+
message.directNodeTxSigningResult = SigningResult.decode(reader, reader.uint32());
|
|
11259
|
+
continue;
|
|
11260
|
+
}
|
|
11261
|
+
case 6: {
|
|
11262
|
+
if (tag !== 50) {
|
|
11263
|
+
break;
|
|
11264
|
+
}
|
|
11265
|
+
message.directRefundTxSigningResult = SigningResult.decode(reader, reader.uint32());
|
|
11266
|
+
continue;
|
|
11267
|
+
}
|
|
11268
|
+
case 7: {
|
|
11269
|
+
if (tag !== 58) {
|
|
11270
|
+
break;
|
|
11271
|
+
}
|
|
11272
|
+
message.directFromCpfpRefundTxSigningResult = SigningResult.decode(reader, reader.uint32());
|
|
11273
|
+
continue;
|
|
11274
|
+
}
|
|
11275
|
+
}
|
|
11276
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
11277
|
+
break;
|
|
11278
|
+
}
|
|
11279
|
+
reader.skip(tag & 7);
|
|
11280
|
+
}
|
|
10349
11281
|
return message;
|
|
10350
11282
|
},
|
|
10351
11283
|
fromJSON(object) {
|
|
@@ -10353,7 +11285,10 @@ var CreationResponseNode = {
|
|
|
10353
11285
|
nodeId: isSet4(object.nodeId) ? globalThis.String(object.nodeId) : "",
|
|
10354
11286
|
nodeTxSigningResult: isSet4(object.nodeTxSigningResult) ? SigningResult.fromJSON(object.nodeTxSigningResult) : void 0,
|
|
10355
11287
|
refundTxSigningResult: isSet4(object.refundTxSigningResult) ? SigningResult.fromJSON(object.refundTxSigningResult) : void 0,
|
|
10356
|
-
children: globalThis.Array.isArray(object?.children) ? object.children.map((e) => CreationResponseNode.fromJSON(e)) : []
|
|
11288
|
+
children: globalThis.Array.isArray(object?.children) ? object.children.map((e) => CreationResponseNode.fromJSON(e)) : [],
|
|
11289
|
+
directNodeTxSigningResult: isSet4(object.directNodeTxSigningResult) ? SigningResult.fromJSON(object.directNodeTxSigningResult) : void 0,
|
|
11290
|
+
directRefundTxSigningResult: isSet4(object.directRefundTxSigningResult) ? SigningResult.fromJSON(object.directRefundTxSigningResult) : void 0,
|
|
11291
|
+
directFromCpfpRefundTxSigningResult: isSet4(object.directFromCpfpRefundTxSigningResult) ? SigningResult.fromJSON(object.directFromCpfpRefundTxSigningResult) : void 0
|
|
10357
11292
|
};
|
|
10358
11293
|
},
|
|
10359
11294
|
toJSON(message) {
|
|
@@ -10370,6 +11305,15 @@ var CreationResponseNode = {
|
|
|
10370
11305
|
if (message.children?.length) {
|
|
10371
11306
|
obj.children = message.children.map((e) => CreationResponseNode.toJSON(e));
|
|
10372
11307
|
}
|
|
11308
|
+
if (message.directNodeTxSigningResult !== void 0) {
|
|
11309
|
+
obj.directNodeTxSigningResult = SigningResult.toJSON(message.directNodeTxSigningResult);
|
|
11310
|
+
}
|
|
11311
|
+
if (message.directRefundTxSigningResult !== void 0) {
|
|
11312
|
+
obj.directRefundTxSigningResult = SigningResult.toJSON(message.directRefundTxSigningResult);
|
|
11313
|
+
}
|
|
11314
|
+
if (message.directFromCpfpRefundTxSigningResult !== void 0) {
|
|
11315
|
+
obj.directFromCpfpRefundTxSigningResult = SigningResult.toJSON(message.directFromCpfpRefundTxSigningResult);
|
|
11316
|
+
}
|
|
10373
11317
|
return obj;
|
|
10374
11318
|
},
|
|
10375
11319
|
create(base) {
|
|
@@ -10381,6 +11325,9 @@ var CreationResponseNode = {
|
|
|
10381
11325
|
message.nodeTxSigningResult = object.nodeTxSigningResult !== void 0 && object.nodeTxSigningResult !== null ? SigningResult.fromPartial(object.nodeTxSigningResult) : void 0;
|
|
10382
11326
|
message.refundTxSigningResult = object.refundTxSigningResult !== void 0 && object.refundTxSigningResult !== null ? SigningResult.fromPartial(object.refundTxSigningResult) : void 0;
|
|
10383
11327
|
message.children = object.children?.map((e) => CreationResponseNode.fromPartial(e)) || [];
|
|
11328
|
+
message.directNodeTxSigningResult = object.directNodeTxSigningResult !== void 0 && object.directNodeTxSigningResult !== null ? SigningResult.fromPartial(object.directNodeTxSigningResult) : void 0;
|
|
11329
|
+
message.directRefundTxSigningResult = object.directRefundTxSigningResult !== void 0 && object.directRefundTxSigningResult !== null ? SigningResult.fromPartial(object.directRefundTxSigningResult) : void 0;
|
|
11330
|
+
message.directFromCpfpRefundTxSigningResult = object.directFromCpfpRefundTxSigningResult !== void 0 && object.directFromCpfpRefundTxSigningResult !== null ? SigningResult.fromPartial(object.directFromCpfpRefundTxSigningResult) : void 0;
|
|
10384
11331
|
return message;
|
|
10385
11332
|
}
|
|
10386
11333
|
};
|
|
@@ -10396,7 +11343,7 @@ var CreateTreeResponse = {
|
|
|
10396
11343
|
},
|
|
10397
11344
|
decode(input, length) {
|
|
10398
11345
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
10399
|
-
|
|
11346
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
10400
11347
|
const message = createBaseCreateTreeResponse();
|
|
10401
11348
|
while (reader.pos < end) {
|
|
10402
11349
|
const tag = reader.uint32();
|
|
@@ -10456,7 +11403,7 @@ var SigningOperatorInfo = {
|
|
|
10456
11403
|
},
|
|
10457
11404
|
decode(input, length) {
|
|
10458
11405
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
10459
|
-
|
|
11406
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
10460
11407
|
const message = createBaseSigningOperatorInfo();
|
|
10461
11408
|
while (reader.pos < end) {
|
|
10462
11409
|
const tag = reader.uint32();
|
|
@@ -10545,7 +11492,7 @@ var GetSigningOperatorListResponse = {
|
|
|
10545
11492
|
},
|
|
10546
11493
|
decode(input, length) {
|
|
10547
11494
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
10548
|
-
|
|
11495
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
10549
11496
|
const message = createBaseGetSigningOperatorListResponse();
|
|
10550
11497
|
while (reader.pos < end) {
|
|
10551
11498
|
const tag = reader.uint32();
|
|
@@ -10621,7 +11568,7 @@ var GetSigningOperatorListResponse_SigningOperatorsEntry = {
|
|
|
10621
11568
|
},
|
|
10622
11569
|
decode(input, length) {
|
|
10623
11570
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
10624
|
-
|
|
11571
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
10625
11572
|
const message = createBaseGetSigningOperatorListResponse_SigningOperatorsEntry();
|
|
10626
11573
|
while (reader.pos < end) {
|
|
10627
11574
|
const tag = reader.uint32();
|
|
@@ -10689,7 +11636,7 @@ var QueryUserSignedRefundsRequest = {
|
|
|
10689
11636
|
},
|
|
10690
11637
|
decode(input, length) {
|
|
10691
11638
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
10692
|
-
|
|
11639
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
10693
11640
|
const message = createBaseQueryUserSignedRefundsRequest();
|
|
10694
11641
|
while (reader.pos < end) {
|
|
10695
11642
|
const tag = reader.uint32();
|
|
@@ -10754,7 +11701,7 @@ var QueryUserSignedRefundsResponse = {
|
|
|
10754
11701
|
},
|
|
10755
11702
|
decode(input, length) {
|
|
10756
11703
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
10757
|
-
|
|
11704
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
10758
11705
|
const message = createBaseQueryUserSignedRefundsResponse();
|
|
10759
11706
|
while (reader.pos < end) {
|
|
10760
11707
|
const tag = reader.uint32();
|
|
@@ -10813,7 +11760,7 @@ var ProvidePreimageRequest = {
|
|
|
10813
11760
|
},
|
|
10814
11761
|
decode(input, length) {
|
|
10815
11762
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
10816
|
-
|
|
11763
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
10817
11764
|
const message = createBaseProvidePreimageRequest();
|
|
10818
11765
|
while (reader.pos < end) {
|
|
10819
11766
|
const tag = reader.uint32();
|
|
@@ -10890,7 +11837,7 @@ var ProvidePreimageResponse = {
|
|
|
10890
11837
|
},
|
|
10891
11838
|
decode(input, length) {
|
|
10892
11839
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
10893
|
-
|
|
11840
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
10894
11841
|
const message = createBaseProvidePreimageResponse();
|
|
10895
11842
|
while (reader.pos < end) {
|
|
10896
11843
|
const tag = reader.uint32();
|
|
@@ -10944,7 +11891,7 @@ var ReturnLightningPaymentRequest = {
|
|
|
10944
11891
|
},
|
|
10945
11892
|
decode(input, length) {
|
|
10946
11893
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
10947
|
-
|
|
11894
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
10948
11895
|
const message = createBaseReturnLightningPaymentRequest();
|
|
10949
11896
|
while (reader.pos < end) {
|
|
10950
11897
|
const tag = reader.uint32();
|
|
@@ -11009,7 +11956,7 @@ var TreeNodeIds = {
|
|
|
11009
11956
|
},
|
|
11010
11957
|
decode(input, length) {
|
|
11011
11958
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
11012
|
-
|
|
11959
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
11013
11960
|
const message = createBaseTreeNodeIds();
|
|
11014
11961
|
while (reader.pos < end) {
|
|
11015
11962
|
const tag = reader.uint32();
|
|
@@ -11079,7 +12026,7 @@ var QueryNodesRequest = {
|
|
|
11079
12026
|
},
|
|
11080
12027
|
decode(input, length) {
|
|
11081
12028
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
11082
|
-
|
|
12029
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
11083
12030
|
const message = createBaseQueryNodesRequest();
|
|
11084
12031
|
while (reader.pos < end) {
|
|
11085
12032
|
const tag = reader.uint32();
|
|
@@ -11205,7 +12152,7 @@ var QueryNodesResponse = {
|
|
|
11205
12152
|
},
|
|
11206
12153
|
decode(input, length) {
|
|
11207
12154
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
11208
|
-
|
|
12155
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
11209
12156
|
const message = createBaseQueryNodesResponse();
|
|
11210
12157
|
while (reader.pos < end) {
|
|
11211
12158
|
const tag = reader.uint32();
|
|
@@ -11290,7 +12237,7 @@ var QueryNodesResponse_NodesEntry = {
|
|
|
11290
12237
|
},
|
|
11291
12238
|
decode(input, length) {
|
|
11292
12239
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
11293
|
-
|
|
12240
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
11294
12241
|
const message = createBaseQueryNodesResponse_NodesEntry();
|
|
11295
12242
|
while (reader.pos < end) {
|
|
11296
12243
|
const tag = reader.uint32();
|
|
@@ -11358,7 +12305,7 @@ var CancelTransferRequest = {
|
|
|
11358
12305
|
},
|
|
11359
12306
|
decode(input, length) {
|
|
11360
12307
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
11361
|
-
|
|
12308
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
11362
12309
|
const message = createBaseCancelTransferRequest();
|
|
11363
12310
|
while (reader.pos < end) {
|
|
11364
12311
|
const tag = reader.uint32();
|
|
@@ -11423,7 +12370,7 @@ var CancelTransferResponse = {
|
|
|
11423
12370
|
},
|
|
11424
12371
|
decode(input, length) {
|
|
11425
12372
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
11426
|
-
|
|
12373
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
11427
12374
|
const message = createBaseCancelTransferResponse();
|
|
11428
12375
|
while (reader.pos < end) {
|
|
11429
12376
|
const tag = reader.uint32();
|
|
@@ -11483,7 +12430,7 @@ var QueryUnusedDepositAddressesRequest = {
|
|
|
11483
12430
|
},
|
|
11484
12431
|
decode(input, length) {
|
|
11485
12432
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
11486
|
-
|
|
12433
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
11487
12434
|
const message = createBaseQueryUnusedDepositAddressesRequest();
|
|
11488
12435
|
while (reader.pos < end) {
|
|
11489
12436
|
const tag = reader.uint32();
|
|
@@ -11581,7 +12528,7 @@ var QueryStaticDepositAddressesRequest = {
|
|
|
11581
12528
|
},
|
|
11582
12529
|
decode(input, length) {
|
|
11583
12530
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
11584
|
-
|
|
12531
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
11585
12532
|
const message = createBaseQueryStaticDepositAddressesRequest();
|
|
11586
12533
|
while (reader.pos < end) {
|
|
11587
12534
|
const tag = reader.uint32();
|
|
@@ -11684,7 +12631,7 @@ var DepositAddressQueryResult = {
|
|
|
11684
12631
|
},
|
|
11685
12632
|
decode(input, length) {
|
|
11686
12633
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
11687
|
-
|
|
12634
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
11688
12635
|
const message = createBaseDepositAddressQueryResult();
|
|
11689
12636
|
while (reader.pos < end) {
|
|
11690
12637
|
const tag = reader.uint32();
|
|
@@ -11776,7 +12723,7 @@ var QueryUnusedDepositAddressesResponse = {
|
|
|
11776
12723
|
},
|
|
11777
12724
|
decode(input, length) {
|
|
11778
12725
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
11779
|
-
|
|
12726
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
11780
12727
|
const message = createBaseQueryUnusedDepositAddressesResponse();
|
|
11781
12728
|
while (reader.pos < end) {
|
|
11782
12729
|
const tag = reader.uint32();
|
|
@@ -11841,7 +12788,7 @@ var QueryStaticDepositAddressesResponse = {
|
|
|
11841
12788
|
},
|
|
11842
12789
|
decode(input, length) {
|
|
11843
12790
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
11844
|
-
|
|
12791
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
11845
12792
|
const message = createBaseQueryStaticDepositAddressesResponse();
|
|
11846
12793
|
while (reader.pos < end) {
|
|
11847
12794
|
const tag = reader.uint32();
|
|
@@ -11897,7 +12844,7 @@ var QueryBalanceRequest = {
|
|
|
11897
12844
|
},
|
|
11898
12845
|
decode(input, length) {
|
|
11899
12846
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
11900
|
-
|
|
12847
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
11901
12848
|
const message = createBaseQueryBalanceRequest();
|
|
11902
12849
|
while (reader.pos < end) {
|
|
11903
12850
|
const tag = reader.uint32();
|
|
@@ -11965,7 +12912,7 @@ var QueryBalanceResponse = {
|
|
|
11965
12912
|
},
|
|
11966
12913
|
decode(input, length) {
|
|
11967
12914
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
11968
|
-
|
|
12915
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
11969
12916
|
const message = createBaseQueryBalanceResponse();
|
|
11970
12917
|
while (reader.pos < end) {
|
|
11971
12918
|
const tag = reader.uint32();
|
|
@@ -12053,7 +13000,7 @@ var QueryBalanceResponse_NodeBalancesEntry = {
|
|
|
12053
13000
|
},
|
|
12054
13001
|
decode(input, length) {
|
|
12055
13002
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
12056
|
-
|
|
13003
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
12057
13004
|
const message = createBaseQueryBalanceResponse_NodeBalancesEntry();
|
|
12058
13005
|
while (reader.pos < end) {
|
|
12059
13006
|
const tag = reader.uint32();
|
|
@@ -12149,7 +13096,7 @@ var InitiateUtxoSwapRequest = {
|
|
|
12149
13096
|
},
|
|
12150
13097
|
decode(input, length) {
|
|
12151
13098
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
12152
|
-
|
|
13099
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
12153
13100
|
const message = createBaseInitiateUtxoSwapRequest();
|
|
12154
13101
|
while (reader.pos < end) {
|
|
12155
13102
|
const tag = reader.uint32();
|
|
@@ -12302,7 +13249,7 @@ var InitiateUtxoSwapResponse = {
|
|
|
12302
13249
|
},
|
|
12303
13250
|
decode(input, length) {
|
|
12304
13251
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
12305
|
-
|
|
13252
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
12306
13253
|
const message = createBaseInitiateUtxoSwapResponse();
|
|
12307
13254
|
while (reader.pos < end) {
|
|
12308
13255
|
const tag = reader.uint32();
|
|
@@ -12385,7 +13332,7 @@ var ExitingTree = {
|
|
|
12385
13332
|
},
|
|
12386
13333
|
decode(input, length) {
|
|
12387
13334
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
12388
|
-
|
|
13335
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
12389
13336
|
const message = createBaseExitingTree();
|
|
12390
13337
|
while (reader.pos < end) {
|
|
12391
13338
|
const tag = reader.uint32();
|
|
@@ -12468,7 +13415,7 @@ var ExitSingleNodeTreeSigningResult = {
|
|
|
12468
13415
|
},
|
|
12469
13416
|
decode(input, length) {
|
|
12470
13417
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
12471
|
-
|
|
13418
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
12472
13419
|
const message = createBaseExitSingleNodeTreeSigningResult();
|
|
12473
13420
|
while (reader.pos < end) {
|
|
12474
13421
|
const tag = reader.uint32();
|
|
@@ -12548,7 +13495,7 @@ var BitcoinTransactionOutput = {
|
|
|
12548
13495
|
},
|
|
12549
13496
|
decode(input, length) {
|
|
12550
13497
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
12551
|
-
|
|
13498
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
12552
13499
|
const message = createBaseBitcoinTransactionOutput();
|
|
12553
13500
|
while (reader.pos < end) {
|
|
12554
13501
|
const tag = reader.uint32();
|
|
@@ -12622,7 +13569,7 @@ var ExitSingleNodeTreesRequest = {
|
|
|
12622
13569
|
},
|
|
12623
13570
|
decode(input, length) {
|
|
12624
13571
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
12625
|
-
|
|
13572
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
12626
13573
|
const message = createBaseExitSingleNodeTreesRequest();
|
|
12627
13574
|
while (reader.pos < end) {
|
|
12628
13575
|
const tag = reader.uint32();
|
|
@@ -12711,7 +13658,7 @@ var ExitSingleNodeTreesResponse = {
|
|
|
12711
13658
|
},
|
|
12712
13659
|
decode(input, length) {
|
|
12713
13660
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
12714
|
-
|
|
13661
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
12715
13662
|
const message = createBaseExitSingleNodeTreesResponse();
|
|
12716
13663
|
while (reader.pos < end) {
|
|
12717
13664
|
const tag = reader.uint32();
|
|
@@ -12764,7 +13711,7 @@ var QueryNodesDistributionRequest = {
|
|
|
12764
13711
|
},
|
|
12765
13712
|
decode(input, length) {
|
|
12766
13713
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
12767
|
-
|
|
13714
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
12768
13715
|
const message = createBaseQueryNodesDistributionRequest();
|
|
12769
13716
|
while (reader.pos < end) {
|
|
12770
13717
|
const tag = reader.uint32();
|
|
@@ -12817,7 +13764,7 @@ var QueryNodesDistributionResponse = {
|
|
|
12817
13764
|
},
|
|
12818
13765
|
decode(input, length) {
|
|
12819
13766
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
12820
|
-
|
|
13767
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
12821
13768
|
const message = createBaseQueryNodesDistributionResponse();
|
|
12822
13769
|
while (reader.pos < end) {
|
|
12823
13770
|
const tag = reader.uint32();
|
|
@@ -12893,7 +13840,7 @@ var QueryNodesDistributionResponse_NodeDistributionEntry = {
|
|
|
12893
13840
|
},
|
|
12894
13841
|
decode(input, length) {
|
|
12895
13842
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
12896
|
-
|
|
13843
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
12897
13844
|
const message = createBaseQueryNodesDistributionResponse_NodeDistributionEntry();
|
|
12898
13845
|
while (reader.pos < end) {
|
|
12899
13846
|
const tag = reader.uint32();
|
|
@@ -12967,7 +13914,7 @@ var QueryNodesByValueRequest = {
|
|
|
12967
13914
|
},
|
|
12968
13915
|
decode(input, length) {
|
|
12969
13916
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
12970
|
-
|
|
13917
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
12971
13918
|
const message = createBaseQueryNodesByValueRequest();
|
|
12972
13919
|
while (reader.pos < end) {
|
|
12973
13920
|
const tag = reader.uint32();
|
|
@@ -13059,7 +14006,7 @@ var QueryNodesByValueResponse = {
|
|
|
13059
14006
|
},
|
|
13060
14007
|
decode(input, length) {
|
|
13061
14008
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
13062
|
-
|
|
14009
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
13063
14010
|
const message = createBaseQueryNodesByValueResponse();
|
|
13064
14011
|
while (reader.pos < end) {
|
|
13065
14012
|
const tag = reader.uint32();
|
|
@@ -13144,7 +14091,7 @@ var QueryNodesByValueResponse_NodesEntry = {
|
|
|
13144
14091
|
},
|
|
13145
14092
|
decode(input, length) {
|
|
13146
14093
|
const reader = input instanceof import_wire5.BinaryReader ? input : new import_wire5.BinaryReader(input);
|
|
13147
|
-
|
|
14094
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
13148
14095
|
const message = createBaseQueryNodesByValueResponse_NodesEntry();
|
|
13149
14096
|
while (reader.pos < end) {
|
|
13150
14097
|
const tag = reader.uint32();
|
|
@@ -13647,7 +14594,7 @@ var Challenge = {
|
|
|
13647
14594
|
},
|
|
13648
14595
|
decode(input, length) {
|
|
13649
14596
|
const reader = input instanceof import_wire6.BinaryReader ? input : new import_wire6.BinaryReader(input);
|
|
13650
|
-
|
|
14597
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
13651
14598
|
const message = createBaseChallenge();
|
|
13652
14599
|
while (reader.pos < end) {
|
|
13653
14600
|
const tag = reader.uint32();
|
|
@@ -13742,7 +14689,7 @@ var ProtectedChallenge = {
|
|
|
13742
14689
|
},
|
|
13743
14690
|
decode(input, length) {
|
|
13744
14691
|
const reader = input instanceof import_wire6.BinaryReader ? input : new import_wire6.BinaryReader(input);
|
|
13745
|
-
|
|
14692
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
13746
14693
|
const message = createBaseProtectedChallenge();
|
|
13747
14694
|
while (reader.pos < end) {
|
|
13748
14695
|
const tag = reader.uint32();
|
|
@@ -13819,7 +14766,7 @@ var GetChallengeRequest = {
|
|
|
13819
14766
|
},
|
|
13820
14767
|
decode(input, length) {
|
|
13821
14768
|
const reader = input instanceof import_wire6.BinaryReader ? input : new import_wire6.BinaryReader(input);
|
|
13822
|
-
|
|
14769
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
13823
14770
|
const message = createBaseGetChallengeRequest();
|
|
13824
14771
|
while (reader.pos < end) {
|
|
13825
14772
|
const tag = reader.uint32();
|
|
@@ -13870,7 +14817,7 @@ var GetChallengeResponse = {
|
|
|
13870
14817
|
},
|
|
13871
14818
|
decode(input, length) {
|
|
13872
14819
|
const reader = input instanceof import_wire6.BinaryReader ? input : new import_wire6.BinaryReader(input);
|
|
13873
|
-
|
|
14820
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
13874
14821
|
const message = createBaseGetChallengeResponse();
|
|
13875
14822
|
while (reader.pos < end) {
|
|
13876
14823
|
const tag = reader.uint32();
|
|
@@ -13929,7 +14876,7 @@ var VerifyChallengeRequest = {
|
|
|
13929
14876
|
},
|
|
13930
14877
|
decode(input, length) {
|
|
13931
14878
|
const reader = input instanceof import_wire6.BinaryReader ? input : new import_wire6.BinaryReader(input);
|
|
13932
|
-
|
|
14879
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
13933
14880
|
const message = createBaseVerifyChallengeRequest();
|
|
13934
14881
|
while (reader.pos < end) {
|
|
13935
14882
|
const tag = reader.uint32();
|
|
@@ -14009,7 +14956,7 @@ var VerifyChallengeResponse = {
|
|
|
14009
14956
|
},
|
|
14010
14957
|
decode(input, length) {
|
|
14011
14958
|
const reader = input instanceof import_wire6.BinaryReader ? input : new import_wire6.BinaryReader(input);
|
|
14012
|
-
|
|
14959
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
14013
14960
|
const message = createBaseVerifyChallengeResponse();
|
|
14014
14961
|
while (reader.pos < end) {
|
|
14015
14962
|
const tag = reader.uint32();
|
|
@@ -14126,6 +15073,56 @@ function isSet5(value) {
|
|
|
14126
15073
|
// src/proto/spark_token.ts
|
|
14127
15074
|
init_buffer();
|
|
14128
15075
|
var import_wire7 = require("@bufbuild/protobuf/wire");
|
|
15076
|
+
function tokenTransactionStatusFromJSON2(object) {
|
|
15077
|
+
switch (object) {
|
|
15078
|
+
case 0:
|
|
15079
|
+
case "TOKEN_TRANSACTION_STARTED":
|
|
15080
|
+
return 0 /* TOKEN_TRANSACTION_STARTED */;
|
|
15081
|
+
case 1:
|
|
15082
|
+
case "TOKEN_TRANSACTION_SIGNED":
|
|
15083
|
+
return 1 /* TOKEN_TRANSACTION_SIGNED */;
|
|
15084
|
+
case 5:
|
|
15085
|
+
case "TOKEN_TRANSACTION_REVEALED":
|
|
15086
|
+
return 5 /* TOKEN_TRANSACTION_REVEALED */;
|
|
15087
|
+
case 2:
|
|
15088
|
+
case "TOKEN_TRANSACTION_FINALIZED":
|
|
15089
|
+
return 2 /* TOKEN_TRANSACTION_FINALIZED */;
|
|
15090
|
+
case 3:
|
|
15091
|
+
case "TOKEN_TRANSACTION_STARTED_CANCELLED":
|
|
15092
|
+
return 3 /* TOKEN_TRANSACTION_STARTED_CANCELLED */;
|
|
15093
|
+
case 4:
|
|
15094
|
+
case "TOKEN_TRANSACTION_SIGNED_CANCELLED":
|
|
15095
|
+
return 4 /* TOKEN_TRANSACTION_SIGNED_CANCELLED */;
|
|
15096
|
+
case 10:
|
|
15097
|
+
case "TOKEN_TRANSACTION_UNKNOWN":
|
|
15098
|
+
return 10 /* TOKEN_TRANSACTION_UNKNOWN */;
|
|
15099
|
+
case -1:
|
|
15100
|
+
case "UNRECOGNIZED":
|
|
15101
|
+
default:
|
|
15102
|
+
return -1 /* UNRECOGNIZED */;
|
|
15103
|
+
}
|
|
15104
|
+
}
|
|
15105
|
+
function tokenTransactionStatusToJSON2(object) {
|
|
15106
|
+
switch (object) {
|
|
15107
|
+
case 0 /* TOKEN_TRANSACTION_STARTED */:
|
|
15108
|
+
return "TOKEN_TRANSACTION_STARTED";
|
|
15109
|
+
case 1 /* TOKEN_TRANSACTION_SIGNED */:
|
|
15110
|
+
return "TOKEN_TRANSACTION_SIGNED";
|
|
15111
|
+
case 5 /* TOKEN_TRANSACTION_REVEALED */:
|
|
15112
|
+
return "TOKEN_TRANSACTION_REVEALED";
|
|
15113
|
+
case 2 /* TOKEN_TRANSACTION_FINALIZED */:
|
|
15114
|
+
return "TOKEN_TRANSACTION_FINALIZED";
|
|
15115
|
+
case 3 /* TOKEN_TRANSACTION_STARTED_CANCELLED */:
|
|
15116
|
+
return "TOKEN_TRANSACTION_STARTED_CANCELLED";
|
|
15117
|
+
case 4 /* TOKEN_TRANSACTION_SIGNED_CANCELLED */:
|
|
15118
|
+
return "TOKEN_TRANSACTION_SIGNED_CANCELLED";
|
|
15119
|
+
case 10 /* TOKEN_TRANSACTION_UNKNOWN */:
|
|
15120
|
+
return "TOKEN_TRANSACTION_UNKNOWN";
|
|
15121
|
+
case -1 /* UNRECOGNIZED */:
|
|
15122
|
+
default:
|
|
15123
|
+
return "UNRECOGNIZED";
|
|
15124
|
+
}
|
|
15125
|
+
}
|
|
14129
15126
|
function createBaseTokenOutputToSpend2() {
|
|
14130
15127
|
return { prevTokenTransactionHash: new Uint8Array(0), prevTokenTransactionVout: 0 };
|
|
14131
15128
|
}
|
|
@@ -14141,7 +15138,7 @@ var TokenOutputToSpend2 = {
|
|
|
14141
15138
|
},
|
|
14142
15139
|
decode(input, length) {
|
|
14143
15140
|
const reader = input instanceof import_wire7.BinaryReader ? input : new import_wire7.BinaryReader(input);
|
|
14144
|
-
|
|
15141
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
14145
15142
|
const message = createBaseTokenOutputToSpend2();
|
|
14146
15143
|
while (reader.pos < end) {
|
|
14147
15144
|
const tag = reader.uint32();
|
|
@@ -14206,7 +15203,7 @@ var TokenTransferInput2 = {
|
|
|
14206
15203
|
},
|
|
14207
15204
|
decode(input, length) {
|
|
14208
15205
|
const reader = input instanceof import_wire7.BinaryReader ? input : new import_wire7.BinaryReader(input);
|
|
14209
|
-
|
|
15206
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
14210
15207
|
const message = createBaseTokenTransferInput2();
|
|
14211
15208
|
while (reader.pos < end) {
|
|
14212
15209
|
const tag = reader.uint32();
|
|
@@ -14248,21 +15245,21 @@ var TokenTransferInput2 = {
|
|
|
14248
15245
|
}
|
|
14249
15246
|
};
|
|
14250
15247
|
function createBaseTokenMintInput2() {
|
|
14251
|
-
return { issuerPublicKey: new Uint8Array(0),
|
|
15248
|
+
return { issuerPublicKey: new Uint8Array(0), tokenIdentifier: void 0 };
|
|
14252
15249
|
}
|
|
14253
15250
|
var TokenMintInput2 = {
|
|
14254
15251
|
encode(message, writer = new import_wire7.BinaryWriter()) {
|
|
14255
15252
|
if (message.issuerPublicKey.length !== 0) {
|
|
14256
15253
|
writer.uint32(10).bytes(message.issuerPublicKey);
|
|
14257
15254
|
}
|
|
14258
|
-
if (message.
|
|
14259
|
-
writer.uint32(
|
|
15255
|
+
if (message.tokenIdentifier !== void 0) {
|
|
15256
|
+
writer.uint32(18).bytes(message.tokenIdentifier);
|
|
14260
15257
|
}
|
|
14261
15258
|
return writer;
|
|
14262
15259
|
},
|
|
14263
15260
|
decode(input, length) {
|
|
14264
15261
|
const reader = input instanceof import_wire7.BinaryReader ? input : new import_wire7.BinaryReader(input);
|
|
14265
|
-
|
|
15262
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
14266
15263
|
const message = createBaseTokenMintInput2();
|
|
14267
15264
|
while (reader.pos < end) {
|
|
14268
15265
|
const tag = reader.uint32();
|
|
@@ -14275,10 +15272,10 @@ var TokenMintInput2 = {
|
|
|
14275
15272
|
continue;
|
|
14276
15273
|
}
|
|
14277
15274
|
case 2: {
|
|
14278
|
-
if (tag !==
|
|
15275
|
+
if (tag !== 18) {
|
|
14279
15276
|
break;
|
|
14280
15277
|
}
|
|
14281
|
-
message.
|
|
15278
|
+
message.tokenIdentifier = reader.bytes();
|
|
14282
15279
|
continue;
|
|
14283
15280
|
}
|
|
14284
15281
|
}
|
|
@@ -14292,7 +15289,7 @@ var TokenMintInput2 = {
|
|
|
14292
15289
|
fromJSON(object) {
|
|
14293
15290
|
return {
|
|
14294
15291
|
issuerPublicKey: isSet6(object.issuerPublicKey) ? bytesFromBase645(object.issuerPublicKey) : new Uint8Array(0),
|
|
14295
|
-
|
|
15292
|
+
tokenIdentifier: isSet6(object.tokenIdentifier) ? bytesFromBase645(object.tokenIdentifier) : void 0
|
|
14296
15293
|
};
|
|
14297
15294
|
},
|
|
14298
15295
|
toJSON(message) {
|
|
@@ -14300,8 +15297,8 @@ var TokenMintInput2 = {
|
|
|
14300
15297
|
if (message.issuerPublicKey.length !== 0) {
|
|
14301
15298
|
obj.issuerPublicKey = base64FromBytes5(message.issuerPublicKey);
|
|
14302
15299
|
}
|
|
14303
|
-
if (message.
|
|
14304
|
-
obj.
|
|
15300
|
+
if (message.tokenIdentifier !== void 0) {
|
|
15301
|
+
obj.tokenIdentifier = base64FromBytes5(message.tokenIdentifier);
|
|
14305
15302
|
}
|
|
14306
15303
|
return obj;
|
|
14307
15304
|
},
|
|
@@ -14311,7 +15308,158 @@ var TokenMintInput2 = {
|
|
|
14311
15308
|
fromPartial(object) {
|
|
14312
15309
|
const message = createBaseTokenMintInput2();
|
|
14313
15310
|
message.issuerPublicKey = object.issuerPublicKey ?? new Uint8Array(0);
|
|
14314
|
-
message.
|
|
15311
|
+
message.tokenIdentifier = object.tokenIdentifier ?? void 0;
|
|
15312
|
+
return message;
|
|
15313
|
+
}
|
|
15314
|
+
};
|
|
15315
|
+
function createBaseTokenCreateInput2() {
|
|
15316
|
+
return {
|
|
15317
|
+
issuerPublicKey: new Uint8Array(0),
|
|
15318
|
+
tokenName: "",
|
|
15319
|
+
tokenTicker: "",
|
|
15320
|
+
decimals: 0,
|
|
15321
|
+
maxSupply: new Uint8Array(0),
|
|
15322
|
+
isFreezable: false,
|
|
15323
|
+
creationEntityPublicKey: void 0
|
|
15324
|
+
};
|
|
15325
|
+
}
|
|
15326
|
+
var TokenCreateInput2 = {
|
|
15327
|
+
encode(message, writer = new import_wire7.BinaryWriter()) {
|
|
15328
|
+
if (message.issuerPublicKey.length !== 0) {
|
|
15329
|
+
writer.uint32(10).bytes(message.issuerPublicKey);
|
|
15330
|
+
}
|
|
15331
|
+
if (message.tokenName !== "") {
|
|
15332
|
+
writer.uint32(18).string(message.tokenName);
|
|
15333
|
+
}
|
|
15334
|
+
if (message.tokenTicker !== "") {
|
|
15335
|
+
writer.uint32(26).string(message.tokenTicker);
|
|
15336
|
+
}
|
|
15337
|
+
if (message.decimals !== 0) {
|
|
15338
|
+
writer.uint32(32).uint32(message.decimals);
|
|
15339
|
+
}
|
|
15340
|
+
if (message.maxSupply.length !== 0) {
|
|
15341
|
+
writer.uint32(42).bytes(message.maxSupply);
|
|
15342
|
+
}
|
|
15343
|
+
if (message.isFreezable !== false) {
|
|
15344
|
+
writer.uint32(48).bool(message.isFreezable);
|
|
15345
|
+
}
|
|
15346
|
+
if (message.creationEntityPublicKey !== void 0) {
|
|
15347
|
+
writer.uint32(58).bytes(message.creationEntityPublicKey);
|
|
15348
|
+
}
|
|
15349
|
+
return writer;
|
|
15350
|
+
},
|
|
15351
|
+
decode(input, length) {
|
|
15352
|
+
const reader = input instanceof import_wire7.BinaryReader ? input : new import_wire7.BinaryReader(input);
|
|
15353
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
15354
|
+
const message = createBaseTokenCreateInput2();
|
|
15355
|
+
while (reader.pos < end) {
|
|
15356
|
+
const tag = reader.uint32();
|
|
15357
|
+
switch (tag >>> 3) {
|
|
15358
|
+
case 1: {
|
|
15359
|
+
if (tag !== 10) {
|
|
15360
|
+
break;
|
|
15361
|
+
}
|
|
15362
|
+
message.issuerPublicKey = reader.bytes();
|
|
15363
|
+
continue;
|
|
15364
|
+
}
|
|
15365
|
+
case 2: {
|
|
15366
|
+
if (tag !== 18) {
|
|
15367
|
+
break;
|
|
15368
|
+
}
|
|
15369
|
+
message.tokenName = reader.string();
|
|
15370
|
+
continue;
|
|
15371
|
+
}
|
|
15372
|
+
case 3: {
|
|
15373
|
+
if (tag !== 26) {
|
|
15374
|
+
break;
|
|
15375
|
+
}
|
|
15376
|
+
message.tokenTicker = reader.string();
|
|
15377
|
+
continue;
|
|
15378
|
+
}
|
|
15379
|
+
case 4: {
|
|
15380
|
+
if (tag !== 32) {
|
|
15381
|
+
break;
|
|
15382
|
+
}
|
|
15383
|
+
message.decimals = reader.uint32();
|
|
15384
|
+
continue;
|
|
15385
|
+
}
|
|
15386
|
+
case 5: {
|
|
15387
|
+
if (tag !== 42) {
|
|
15388
|
+
break;
|
|
15389
|
+
}
|
|
15390
|
+
message.maxSupply = reader.bytes();
|
|
15391
|
+
continue;
|
|
15392
|
+
}
|
|
15393
|
+
case 6: {
|
|
15394
|
+
if (tag !== 48) {
|
|
15395
|
+
break;
|
|
15396
|
+
}
|
|
15397
|
+
message.isFreezable = reader.bool();
|
|
15398
|
+
continue;
|
|
15399
|
+
}
|
|
15400
|
+
case 7: {
|
|
15401
|
+
if (tag !== 58) {
|
|
15402
|
+
break;
|
|
15403
|
+
}
|
|
15404
|
+
message.creationEntityPublicKey = reader.bytes();
|
|
15405
|
+
continue;
|
|
15406
|
+
}
|
|
15407
|
+
}
|
|
15408
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
15409
|
+
break;
|
|
15410
|
+
}
|
|
15411
|
+
reader.skip(tag & 7);
|
|
15412
|
+
}
|
|
15413
|
+
return message;
|
|
15414
|
+
},
|
|
15415
|
+
fromJSON(object) {
|
|
15416
|
+
return {
|
|
15417
|
+
issuerPublicKey: isSet6(object.issuerPublicKey) ? bytesFromBase645(object.issuerPublicKey) : new Uint8Array(0),
|
|
15418
|
+
tokenName: isSet6(object.tokenName) ? globalThis.String(object.tokenName) : "",
|
|
15419
|
+
tokenTicker: isSet6(object.tokenTicker) ? globalThis.String(object.tokenTicker) : "",
|
|
15420
|
+
decimals: isSet6(object.decimals) ? globalThis.Number(object.decimals) : 0,
|
|
15421
|
+
maxSupply: isSet6(object.maxSupply) ? bytesFromBase645(object.maxSupply) : new Uint8Array(0),
|
|
15422
|
+
isFreezable: isSet6(object.isFreezable) ? globalThis.Boolean(object.isFreezable) : false,
|
|
15423
|
+
creationEntityPublicKey: isSet6(object.creationEntityPublicKey) ? bytesFromBase645(object.creationEntityPublicKey) : void 0
|
|
15424
|
+
};
|
|
15425
|
+
},
|
|
15426
|
+
toJSON(message) {
|
|
15427
|
+
const obj = {};
|
|
15428
|
+
if (message.issuerPublicKey.length !== 0) {
|
|
15429
|
+
obj.issuerPublicKey = base64FromBytes5(message.issuerPublicKey);
|
|
15430
|
+
}
|
|
15431
|
+
if (message.tokenName !== "") {
|
|
15432
|
+
obj.tokenName = message.tokenName;
|
|
15433
|
+
}
|
|
15434
|
+
if (message.tokenTicker !== "") {
|
|
15435
|
+
obj.tokenTicker = message.tokenTicker;
|
|
15436
|
+
}
|
|
15437
|
+
if (message.decimals !== 0) {
|
|
15438
|
+
obj.decimals = Math.round(message.decimals);
|
|
15439
|
+
}
|
|
15440
|
+
if (message.maxSupply.length !== 0) {
|
|
15441
|
+
obj.maxSupply = base64FromBytes5(message.maxSupply);
|
|
15442
|
+
}
|
|
15443
|
+
if (message.isFreezable !== false) {
|
|
15444
|
+
obj.isFreezable = message.isFreezable;
|
|
15445
|
+
}
|
|
15446
|
+
if (message.creationEntityPublicKey !== void 0) {
|
|
15447
|
+
obj.creationEntityPublicKey = base64FromBytes5(message.creationEntityPublicKey);
|
|
15448
|
+
}
|
|
15449
|
+
return obj;
|
|
15450
|
+
},
|
|
15451
|
+
create(base) {
|
|
15452
|
+
return TokenCreateInput2.fromPartial(base ?? {});
|
|
15453
|
+
},
|
|
15454
|
+
fromPartial(object) {
|
|
15455
|
+
const message = createBaseTokenCreateInput2();
|
|
15456
|
+
message.issuerPublicKey = object.issuerPublicKey ?? new Uint8Array(0);
|
|
15457
|
+
message.tokenName = object.tokenName ?? "";
|
|
15458
|
+
message.tokenTicker = object.tokenTicker ?? "";
|
|
15459
|
+
message.decimals = object.decimals ?? 0;
|
|
15460
|
+
message.maxSupply = object.maxSupply ?? new Uint8Array(0);
|
|
15461
|
+
message.isFreezable = object.isFreezable ?? false;
|
|
15462
|
+
message.creationEntityPublicKey = object.creationEntityPublicKey ?? void 0;
|
|
14315
15463
|
return message;
|
|
14316
15464
|
}
|
|
14317
15465
|
};
|
|
@@ -14322,7 +15470,8 @@ function createBaseTokenOutput2() {
|
|
|
14322
15470
|
revocationCommitment: void 0,
|
|
14323
15471
|
withdrawBondSats: void 0,
|
|
14324
15472
|
withdrawRelativeBlockLocktime: void 0,
|
|
14325
|
-
tokenPublicKey:
|
|
15473
|
+
tokenPublicKey: void 0,
|
|
15474
|
+
tokenIdentifier: void 0,
|
|
14326
15475
|
tokenAmount: new Uint8Array(0)
|
|
14327
15476
|
};
|
|
14328
15477
|
}
|
|
@@ -14343,9 +15492,12 @@ var TokenOutput2 = {
|
|
|
14343
15492
|
if (message.withdrawRelativeBlockLocktime !== void 0) {
|
|
14344
15493
|
writer.uint32(40).uint64(message.withdrawRelativeBlockLocktime);
|
|
14345
15494
|
}
|
|
14346
|
-
if (message.tokenPublicKey
|
|
15495
|
+
if (message.tokenPublicKey !== void 0) {
|
|
14347
15496
|
writer.uint32(50).bytes(message.tokenPublicKey);
|
|
14348
15497
|
}
|
|
15498
|
+
if (message.tokenIdentifier !== void 0) {
|
|
15499
|
+
writer.uint32(66).bytes(message.tokenIdentifier);
|
|
15500
|
+
}
|
|
14349
15501
|
if (message.tokenAmount.length !== 0) {
|
|
14350
15502
|
writer.uint32(58).bytes(message.tokenAmount);
|
|
14351
15503
|
}
|
|
@@ -14353,7 +15505,7 @@ var TokenOutput2 = {
|
|
|
14353
15505
|
},
|
|
14354
15506
|
decode(input, length) {
|
|
14355
15507
|
const reader = input instanceof import_wire7.BinaryReader ? input : new import_wire7.BinaryReader(input);
|
|
14356
|
-
|
|
15508
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
14357
15509
|
const message = createBaseTokenOutput2();
|
|
14358
15510
|
while (reader.pos < end) {
|
|
14359
15511
|
const tag = reader.uint32();
|
|
@@ -14400,6 +15552,13 @@ var TokenOutput2 = {
|
|
|
14400
15552
|
message.tokenPublicKey = reader.bytes();
|
|
14401
15553
|
continue;
|
|
14402
15554
|
}
|
|
15555
|
+
case 8: {
|
|
15556
|
+
if (tag !== 66) {
|
|
15557
|
+
break;
|
|
15558
|
+
}
|
|
15559
|
+
message.tokenIdentifier = reader.bytes();
|
|
15560
|
+
continue;
|
|
15561
|
+
}
|
|
14403
15562
|
case 7: {
|
|
14404
15563
|
if (tag !== 58) {
|
|
14405
15564
|
break;
|
|
@@ -14422,7 +15581,8 @@ var TokenOutput2 = {
|
|
|
14422
15581
|
revocationCommitment: isSet6(object.revocationCommitment) ? bytesFromBase645(object.revocationCommitment) : void 0,
|
|
14423
15582
|
withdrawBondSats: isSet6(object.withdrawBondSats) ? globalThis.Number(object.withdrawBondSats) : void 0,
|
|
14424
15583
|
withdrawRelativeBlockLocktime: isSet6(object.withdrawRelativeBlockLocktime) ? globalThis.Number(object.withdrawRelativeBlockLocktime) : void 0,
|
|
14425
|
-
tokenPublicKey: isSet6(object.tokenPublicKey) ? bytesFromBase645(object.tokenPublicKey) :
|
|
15584
|
+
tokenPublicKey: isSet6(object.tokenPublicKey) ? bytesFromBase645(object.tokenPublicKey) : void 0,
|
|
15585
|
+
tokenIdentifier: isSet6(object.tokenIdentifier) ? bytesFromBase645(object.tokenIdentifier) : void 0,
|
|
14426
15586
|
tokenAmount: isSet6(object.tokenAmount) ? bytesFromBase645(object.tokenAmount) : new Uint8Array(0)
|
|
14427
15587
|
};
|
|
14428
15588
|
},
|
|
@@ -14443,9 +15603,12 @@ var TokenOutput2 = {
|
|
|
14443
15603
|
if (message.withdrawRelativeBlockLocktime !== void 0) {
|
|
14444
15604
|
obj.withdrawRelativeBlockLocktime = Math.round(message.withdrawRelativeBlockLocktime);
|
|
14445
15605
|
}
|
|
14446
|
-
if (message.tokenPublicKey
|
|
15606
|
+
if (message.tokenPublicKey !== void 0) {
|
|
14447
15607
|
obj.tokenPublicKey = base64FromBytes5(message.tokenPublicKey);
|
|
14448
15608
|
}
|
|
15609
|
+
if (message.tokenIdentifier !== void 0) {
|
|
15610
|
+
obj.tokenIdentifier = base64FromBytes5(message.tokenIdentifier);
|
|
15611
|
+
}
|
|
14449
15612
|
if (message.tokenAmount.length !== 0) {
|
|
14450
15613
|
obj.tokenAmount = base64FromBytes5(message.tokenAmount);
|
|
14451
15614
|
}
|
|
@@ -14461,7 +15624,8 @@ var TokenOutput2 = {
|
|
|
14461
15624
|
message.revocationCommitment = object.revocationCommitment ?? void 0;
|
|
14462
15625
|
message.withdrawBondSats = object.withdrawBondSats ?? void 0;
|
|
14463
15626
|
message.withdrawRelativeBlockLocktime = object.withdrawRelativeBlockLocktime ?? void 0;
|
|
14464
|
-
message.tokenPublicKey = object.tokenPublicKey ??
|
|
15627
|
+
message.tokenPublicKey = object.tokenPublicKey ?? void 0;
|
|
15628
|
+
message.tokenIdentifier = object.tokenIdentifier ?? void 0;
|
|
14465
15629
|
message.tokenAmount = object.tokenAmount ?? new Uint8Array(0);
|
|
14466
15630
|
return message;
|
|
14467
15631
|
}
|
|
@@ -14473,7 +15637,8 @@ function createBaseTokenTransaction2() {
|
|
|
14473
15637
|
tokenOutputs: [],
|
|
14474
15638
|
sparkOperatorIdentityPublicKeys: [],
|
|
14475
15639
|
expiryTime: void 0,
|
|
14476
|
-
network: 0
|
|
15640
|
+
network: 0,
|
|
15641
|
+
clientCreatedTimestamp: void 0
|
|
14477
15642
|
};
|
|
14478
15643
|
}
|
|
14479
15644
|
var TokenTransaction2 = {
|
|
@@ -14488,6 +15653,9 @@ var TokenTransaction2 = {
|
|
|
14488
15653
|
case "transferInput":
|
|
14489
15654
|
TokenTransferInput2.encode(message.tokenInputs.transferInput, writer.uint32(26).fork()).join();
|
|
14490
15655
|
break;
|
|
15656
|
+
case "createInput":
|
|
15657
|
+
TokenCreateInput2.encode(message.tokenInputs.createInput, writer.uint32(66).fork()).join();
|
|
15658
|
+
break;
|
|
14491
15659
|
}
|
|
14492
15660
|
for (const v of message.tokenOutputs) {
|
|
14493
15661
|
TokenOutput2.encode(v, writer.uint32(34).fork()).join();
|
|
@@ -14501,11 +15669,14 @@ var TokenTransaction2 = {
|
|
|
14501
15669
|
if (message.network !== 0) {
|
|
14502
15670
|
writer.uint32(56).int32(message.network);
|
|
14503
15671
|
}
|
|
15672
|
+
if (message.clientCreatedTimestamp !== void 0) {
|
|
15673
|
+
Timestamp.encode(toTimestamp2(message.clientCreatedTimestamp), writer.uint32(74).fork()).join();
|
|
15674
|
+
}
|
|
14504
15675
|
return writer;
|
|
14505
15676
|
},
|
|
14506
15677
|
decode(input, length) {
|
|
14507
15678
|
const reader = input instanceof import_wire7.BinaryReader ? input : new import_wire7.BinaryReader(input);
|
|
14508
|
-
|
|
15679
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
14509
15680
|
const message = createBaseTokenTransaction2();
|
|
14510
15681
|
while (reader.pos < end) {
|
|
14511
15682
|
const tag = reader.uint32();
|
|
@@ -14534,6 +15705,13 @@ var TokenTransaction2 = {
|
|
|
14534
15705
|
};
|
|
14535
15706
|
continue;
|
|
14536
15707
|
}
|
|
15708
|
+
case 8: {
|
|
15709
|
+
if (tag !== 66) {
|
|
15710
|
+
break;
|
|
15711
|
+
}
|
|
15712
|
+
message.tokenInputs = { $case: "createInput", createInput: TokenCreateInput2.decode(reader, reader.uint32()) };
|
|
15713
|
+
continue;
|
|
15714
|
+
}
|
|
14537
15715
|
case 4: {
|
|
14538
15716
|
if (tag !== 34) {
|
|
14539
15717
|
break;
|
|
@@ -14562,6 +15740,13 @@ var TokenTransaction2 = {
|
|
|
14562
15740
|
message.network = reader.int32();
|
|
14563
15741
|
continue;
|
|
14564
15742
|
}
|
|
15743
|
+
case 9: {
|
|
15744
|
+
if (tag !== 74) {
|
|
15745
|
+
break;
|
|
15746
|
+
}
|
|
15747
|
+
message.clientCreatedTimestamp = fromTimestamp2(Timestamp.decode(reader, reader.uint32()));
|
|
15748
|
+
continue;
|
|
15749
|
+
}
|
|
14565
15750
|
}
|
|
14566
15751
|
if ((tag & 7) === 4 || tag === 0) {
|
|
14567
15752
|
break;
|
|
@@ -14573,11 +15758,12 @@ var TokenTransaction2 = {
|
|
|
14573
15758
|
fromJSON(object) {
|
|
14574
15759
|
return {
|
|
14575
15760
|
version: isSet6(object.version) ? globalThis.Number(object.version) : 0,
|
|
14576
|
-
tokenInputs: isSet6(object.mintInput) ? { $case: "mintInput", mintInput: TokenMintInput2.fromJSON(object.mintInput) } : isSet6(object.transferInput) ? { $case: "transferInput", transferInput: TokenTransferInput2.fromJSON(object.transferInput) } : void 0,
|
|
15761
|
+
tokenInputs: isSet6(object.mintInput) ? { $case: "mintInput", mintInput: TokenMintInput2.fromJSON(object.mintInput) } : isSet6(object.transferInput) ? { $case: "transferInput", transferInput: TokenTransferInput2.fromJSON(object.transferInput) } : isSet6(object.createInput) ? { $case: "createInput", createInput: TokenCreateInput2.fromJSON(object.createInput) } : void 0,
|
|
14577
15762
|
tokenOutputs: globalThis.Array.isArray(object?.tokenOutputs) ? object.tokenOutputs.map((e) => TokenOutput2.fromJSON(e)) : [],
|
|
14578
15763
|
sparkOperatorIdentityPublicKeys: globalThis.Array.isArray(object?.sparkOperatorIdentityPublicKeys) ? object.sparkOperatorIdentityPublicKeys.map((e) => bytesFromBase645(e)) : [],
|
|
14579
15764
|
expiryTime: isSet6(object.expiryTime) ? fromJsonTimestamp2(object.expiryTime) : void 0,
|
|
14580
|
-
network: isSet6(object.network) ? networkFromJSON(object.network) : 0
|
|
15765
|
+
network: isSet6(object.network) ? networkFromJSON(object.network) : 0,
|
|
15766
|
+
clientCreatedTimestamp: isSet6(object.clientCreatedTimestamp) ? fromJsonTimestamp2(object.clientCreatedTimestamp) : void 0
|
|
14581
15767
|
};
|
|
14582
15768
|
},
|
|
14583
15769
|
toJSON(message) {
|
|
@@ -14589,6 +15775,8 @@ var TokenTransaction2 = {
|
|
|
14589
15775
|
obj.mintInput = TokenMintInput2.toJSON(message.tokenInputs.mintInput);
|
|
14590
15776
|
} else if (message.tokenInputs?.$case === "transferInput") {
|
|
14591
15777
|
obj.transferInput = TokenTransferInput2.toJSON(message.tokenInputs.transferInput);
|
|
15778
|
+
} else if (message.tokenInputs?.$case === "createInput") {
|
|
15779
|
+
obj.createInput = TokenCreateInput2.toJSON(message.tokenInputs.createInput);
|
|
14592
15780
|
}
|
|
14593
15781
|
if (message.tokenOutputs?.length) {
|
|
14594
15782
|
obj.tokenOutputs = message.tokenOutputs.map((e) => TokenOutput2.toJSON(e));
|
|
@@ -14602,6 +15790,9 @@ var TokenTransaction2 = {
|
|
|
14602
15790
|
if (message.network !== 0) {
|
|
14603
15791
|
obj.network = networkToJSON(message.network);
|
|
14604
15792
|
}
|
|
15793
|
+
if (message.clientCreatedTimestamp !== void 0) {
|
|
15794
|
+
obj.clientCreatedTimestamp = message.clientCreatedTimestamp.toISOString();
|
|
15795
|
+
}
|
|
14605
15796
|
return obj;
|
|
14606
15797
|
},
|
|
14607
15798
|
create(base) {
|
|
@@ -14629,11 +15820,21 @@ var TokenTransaction2 = {
|
|
|
14629
15820
|
}
|
|
14630
15821
|
break;
|
|
14631
15822
|
}
|
|
15823
|
+
case "createInput": {
|
|
15824
|
+
if (object.tokenInputs?.createInput !== void 0 && object.tokenInputs?.createInput !== null) {
|
|
15825
|
+
message.tokenInputs = {
|
|
15826
|
+
$case: "createInput",
|
|
15827
|
+
createInput: TokenCreateInput2.fromPartial(object.tokenInputs.createInput)
|
|
15828
|
+
};
|
|
15829
|
+
}
|
|
15830
|
+
break;
|
|
15831
|
+
}
|
|
14632
15832
|
}
|
|
14633
15833
|
message.tokenOutputs = object.tokenOutputs?.map((e) => TokenOutput2.fromPartial(e)) || [];
|
|
14634
15834
|
message.sparkOperatorIdentityPublicKeys = object.sparkOperatorIdentityPublicKeys?.map((e) => e) || [];
|
|
14635
15835
|
message.expiryTime = object.expiryTime ?? void 0;
|
|
14636
15836
|
message.network = object.network ?? 0;
|
|
15837
|
+
message.clientCreatedTimestamp = object.clientCreatedTimestamp ?? void 0;
|
|
14637
15838
|
return message;
|
|
14638
15839
|
}
|
|
14639
15840
|
};
|
|
@@ -14652,7 +15853,7 @@ var SignatureWithIndex2 = {
|
|
|
14652
15853
|
},
|
|
14653
15854
|
decode(input, length) {
|
|
14654
15855
|
const reader = input instanceof import_wire7.BinaryReader ? input : new import_wire7.BinaryReader(input);
|
|
14655
|
-
|
|
15856
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
14656
15857
|
const message = createBaseSignatureWithIndex2();
|
|
14657
15858
|
while (reader.pos < end) {
|
|
14658
15859
|
const tag = reader.uint32();
|
|
@@ -14720,7 +15921,7 @@ var InputTtxoSignaturesPerOperator = {
|
|
|
14720
15921
|
},
|
|
14721
15922
|
decode(input, length) {
|
|
14722
15923
|
const reader = input instanceof import_wire7.BinaryReader ? input : new import_wire7.BinaryReader(input);
|
|
14723
|
-
|
|
15924
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
14724
15925
|
const message = createBaseInputTtxoSignaturesPerOperator();
|
|
14725
15926
|
while (reader.pos < end) {
|
|
14726
15927
|
const tag = reader.uint32();
|
|
@@ -14799,7 +16000,7 @@ var StartTransactionRequest = {
|
|
|
14799
16000
|
},
|
|
14800
16001
|
decode(input, length) {
|
|
14801
16002
|
const reader = input instanceof import_wire7.BinaryReader ? input : new import_wire7.BinaryReader(input);
|
|
14802
|
-
|
|
16003
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
14803
16004
|
const message = createBaseStartTransactionRequest();
|
|
14804
16005
|
while (reader.pos < end) {
|
|
14805
16006
|
const tag = reader.uint32();
|
|
@@ -14893,7 +16094,7 @@ var StartTransactionResponse = {
|
|
|
14893
16094
|
},
|
|
14894
16095
|
decode(input, length) {
|
|
14895
16096
|
const reader = input instanceof import_wire7.BinaryReader ? input : new import_wire7.BinaryReader(input);
|
|
14896
|
-
|
|
16097
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
14897
16098
|
const message = createBaseStartTransactionResponse();
|
|
14898
16099
|
while (reader.pos < end) {
|
|
14899
16100
|
const tag = reader.uint32();
|
|
@@ -14972,7 +16173,7 @@ var CommitTransactionRequest = {
|
|
|
14972
16173
|
},
|
|
14973
16174
|
decode(input, length) {
|
|
14974
16175
|
const reader = input instanceof import_wire7.BinaryReader ? input : new import_wire7.BinaryReader(input);
|
|
14975
|
-
|
|
16176
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
14976
16177
|
const message = createBaseCommitTransactionRequest();
|
|
14977
16178
|
while (reader.pos < end) {
|
|
14978
16179
|
const tag = reader.uint32();
|
|
@@ -15060,7 +16261,7 @@ var CommitTransactionResponse = {
|
|
|
15060
16261
|
},
|
|
15061
16262
|
decode(input, length) {
|
|
15062
16263
|
const reader = input instanceof import_wire7.BinaryReader ? input : new import_wire7.BinaryReader(input);
|
|
15063
|
-
|
|
16264
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
15064
16265
|
const message = createBaseCommitTransactionResponse();
|
|
15065
16266
|
while (reader.pos < end) {
|
|
15066
16267
|
const tag = reader.uint32();
|
|
@@ -15088,31 +16289,1006 @@ var CommitTransactionResponse = {
|
|
|
15088
16289
|
return message;
|
|
15089
16290
|
}
|
|
15090
16291
|
};
|
|
15091
|
-
|
|
15092
|
-
|
|
15093
|
-
|
|
15094
|
-
|
|
15095
|
-
|
|
15096
|
-
|
|
15097
|
-
|
|
15098
|
-
|
|
15099
|
-
|
|
15100
|
-
|
|
15101
|
-
|
|
15102
|
-
|
|
15103
|
-
|
|
15104
|
-
|
|
15105
|
-
|
|
15106
|
-
|
|
15107
|
-
|
|
15108
|
-
|
|
15109
|
-
|
|
15110
|
-
|
|
15111
|
-
|
|
15112
|
-
|
|
15113
|
-
|
|
15114
|
-
|
|
15115
|
-
|
|
16292
|
+
function createBaseQueryTokenMetadataRequest() {
|
|
16293
|
+
return { tokenIdentifiers: [], issuerPublicKeys: [] };
|
|
16294
|
+
}
|
|
16295
|
+
var QueryTokenMetadataRequest = {
|
|
16296
|
+
encode(message, writer = new import_wire7.BinaryWriter()) {
|
|
16297
|
+
for (const v of message.tokenIdentifiers) {
|
|
16298
|
+
writer.uint32(10).bytes(v);
|
|
16299
|
+
}
|
|
16300
|
+
for (const v of message.issuerPublicKeys) {
|
|
16301
|
+
writer.uint32(18).bytes(v);
|
|
16302
|
+
}
|
|
16303
|
+
return writer;
|
|
16304
|
+
},
|
|
16305
|
+
decode(input, length) {
|
|
16306
|
+
const reader = input instanceof import_wire7.BinaryReader ? input : new import_wire7.BinaryReader(input);
|
|
16307
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
16308
|
+
const message = createBaseQueryTokenMetadataRequest();
|
|
16309
|
+
while (reader.pos < end) {
|
|
16310
|
+
const tag = reader.uint32();
|
|
16311
|
+
switch (tag >>> 3) {
|
|
16312
|
+
case 1: {
|
|
16313
|
+
if (tag !== 10) {
|
|
16314
|
+
break;
|
|
16315
|
+
}
|
|
16316
|
+
message.tokenIdentifiers.push(reader.bytes());
|
|
16317
|
+
continue;
|
|
16318
|
+
}
|
|
16319
|
+
case 2: {
|
|
16320
|
+
if (tag !== 18) {
|
|
16321
|
+
break;
|
|
16322
|
+
}
|
|
16323
|
+
message.issuerPublicKeys.push(reader.bytes());
|
|
16324
|
+
continue;
|
|
16325
|
+
}
|
|
16326
|
+
}
|
|
16327
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
16328
|
+
break;
|
|
16329
|
+
}
|
|
16330
|
+
reader.skip(tag & 7);
|
|
16331
|
+
}
|
|
16332
|
+
return message;
|
|
16333
|
+
},
|
|
16334
|
+
fromJSON(object) {
|
|
16335
|
+
return {
|
|
16336
|
+
tokenIdentifiers: globalThis.Array.isArray(object?.tokenIdentifiers) ? object.tokenIdentifiers.map((e) => bytesFromBase645(e)) : [],
|
|
16337
|
+
issuerPublicKeys: globalThis.Array.isArray(object?.issuerPublicKeys) ? object.issuerPublicKeys.map((e) => bytesFromBase645(e)) : []
|
|
16338
|
+
};
|
|
16339
|
+
},
|
|
16340
|
+
toJSON(message) {
|
|
16341
|
+
const obj = {};
|
|
16342
|
+
if (message.tokenIdentifiers?.length) {
|
|
16343
|
+
obj.tokenIdentifiers = message.tokenIdentifiers.map((e) => base64FromBytes5(e));
|
|
16344
|
+
}
|
|
16345
|
+
if (message.issuerPublicKeys?.length) {
|
|
16346
|
+
obj.issuerPublicKeys = message.issuerPublicKeys.map((e) => base64FromBytes5(e));
|
|
16347
|
+
}
|
|
16348
|
+
return obj;
|
|
16349
|
+
},
|
|
16350
|
+
create(base) {
|
|
16351
|
+
return QueryTokenMetadataRequest.fromPartial(base ?? {});
|
|
16352
|
+
},
|
|
16353
|
+
fromPartial(object) {
|
|
16354
|
+
const message = createBaseQueryTokenMetadataRequest();
|
|
16355
|
+
message.tokenIdentifiers = object.tokenIdentifiers?.map((e) => e) || [];
|
|
16356
|
+
message.issuerPublicKeys = object.issuerPublicKeys?.map((e) => e) || [];
|
|
16357
|
+
return message;
|
|
16358
|
+
}
|
|
16359
|
+
};
|
|
16360
|
+
function createBaseTokenMetadata() {
|
|
16361
|
+
return {
|
|
16362
|
+
issuerPublicKey: new Uint8Array(0),
|
|
16363
|
+
tokenName: "",
|
|
16364
|
+
tokenTicker: "",
|
|
16365
|
+
decimals: 0,
|
|
16366
|
+
maxSupply: new Uint8Array(0),
|
|
16367
|
+
isFreezable: false,
|
|
16368
|
+
creationEntityPublicKey: void 0,
|
|
16369
|
+
tokenIdentifier: new Uint8Array(0)
|
|
16370
|
+
};
|
|
16371
|
+
}
|
|
16372
|
+
var TokenMetadata = {
|
|
16373
|
+
encode(message, writer = new import_wire7.BinaryWriter()) {
|
|
16374
|
+
if (message.issuerPublicKey.length !== 0) {
|
|
16375
|
+
writer.uint32(10).bytes(message.issuerPublicKey);
|
|
16376
|
+
}
|
|
16377
|
+
if (message.tokenName !== "") {
|
|
16378
|
+
writer.uint32(18).string(message.tokenName);
|
|
16379
|
+
}
|
|
16380
|
+
if (message.tokenTicker !== "") {
|
|
16381
|
+
writer.uint32(26).string(message.tokenTicker);
|
|
16382
|
+
}
|
|
16383
|
+
if (message.decimals !== 0) {
|
|
16384
|
+
writer.uint32(32).uint32(message.decimals);
|
|
16385
|
+
}
|
|
16386
|
+
if (message.maxSupply.length !== 0) {
|
|
16387
|
+
writer.uint32(42).bytes(message.maxSupply);
|
|
16388
|
+
}
|
|
16389
|
+
if (message.isFreezable !== false) {
|
|
16390
|
+
writer.uint32(48).bool(message.isFreezable);
|
|
16391
|
+
}
|
|
16392
|
+
if (message.creationEntityPublicKey !== void 0) {
|
|
16393
|
+
writer.uint32(58).bytes(message.creationEntityPublicKey);
|
|
16394
|
+
}
|
|
16395
|
+
if (message.tokenIdentifier.length !== 0) {
|
|
16396
|
+
writer.uint32(66).bytes(message.tokenIdentifier);
|
|
16397
|
+
}
|
|
16398
|
+
return writer;
|
|
16399
|
+
},
|
|
16400
|
+
decode(input, length) {
|
|
16401
|
+
const reader = input instanceof import_wire7.BinaryReader ? input : new import_wire7.BinaryReader(input);
|
|
16402
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
16403
|
+
const message = createBaseTokenMetadata();
|
|
16404
|
+
while (reader.pos < end) {
|
|
16405
|
+
const tag = reader.uint32();
|
|
16406
|
+
switch (tag >>> 3) {
|
|
16407
|
+
case 1: {
|
|
16408
|
+
if (tag !== 10) {
|
|
16409
|
+
break;
|
|
16410
|
+
}
|
|
16411
|
+
message.issuerPublicKey = reader.bytes();
|
|
16412
|
+
continue;
|
|
16413
|
+
}
|
|
16414
|
+
case 2: {
|
|
16415
|
+
if (tag !== 18) {
|
|
16416
|
+
break;
|
|
16417
|
+
}
|
|
16418
|
+
message.tokenName = reader.string();
|
|
16419
|
+
continue;
|
|
16420
|
+
}
|
|
16421
|
+
case 3: {
|
|
16422
|
+
if (tag !== 26) {
|
|
16423
|
+
break;
|
|
16424
|
+
}
|
|
16425
|
+
message.tokenTicker = reader.string();
|
|
16426
|
+
continue;
|
|
16427
|
+
}
|
|
16428
|
+
case 4: {
|
|
16429
|
+
if (tag !== 32) {
|
|
16430
|
+
break;
|
|
16431
|
+
}
|
|
16432
|
+
message.decimals = reader.uint32();
|
|
16433
|
+
continue;
|
|
16434
|
+
}
|
|
16435
|
+
case 5: {
|
|
16436
|
+
if (tag !== 42) {
|
|
16437
|
+
break;
|
|
16438
|
+
}
|
|
16439
|
+
message.maxSupply = reader.bytes();
|
|
16440
|
+
continue;
|
|
16441
|
+
}
|
|
16442
|
+
case 6: {
|
|
16443
|
+
if (tag !== 48) {
|
|
16444
|
+
break;
|
|
16445
|
+
}
|
|
16446
|
+
message.isFreezable = reader.bool();
|
|
16447
|
+
continue;
|
|
16448
|
+
}
|
|
16449
|
+
case 7: {
|
|
16450
|
+
if (tag !== 58) {
|
|
16451
|
+
break;
|
|
16452
|
+
}
|
|
16453
|
+
message.creationEntityPublicKey = reader.bytes();
|
|
16454
|
+
continue;
|
|
16455
|
+
}
|
|
16456
|
+
case 8: {
|
|
16457
|
+
if (tag !== 66) {
|
|
16458
|
+
break;
|
|
16459
|
+
}
|
|
16460
|
+
message.tokenIdentifier = reader.bytes();
|
|
16461
|
+
continue;
|
|
16462
|
+
}
|
|
16463
|
+
}
|
|
16464
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
16465
|
+
break;
|
|
16466
|
+
}
|
|
16467
|
+
reader.skip(tag & 7);
|
|
16468
|
+
}
|
|
16469
|
+
return message;
|
|
16470
|
+
},
|
|
16471
|
+
fromJSON(object) {
|
|
16472
|
+
return {
|
|
16473
|
+
issuerPublicKey: isSet6(object.issuerPublicKey) ? bytesFromBase645(object.issuerPublicKey) : new Uint8Array(0),
|
|
16474
|
+
tokenName: isSet6(object.tokenName) ? globalThis.String(object.tokenName) : "",
|
|
16475
|
+
tokenTicker: isSet6(object.tokenTicker) ? globalThis.String(object.tokenTicker) : "",
|
|
16476
|
+
decimals: isSet6(object.decimals) ? globalThis.Number(object.decimals) : 0,
|
|
16477
|
+
maxSupply: isSet6(object.maxSupply) ? bytesFromBase645(object.maxSupply) : new Uint8Array(0),
|
|
16478
|
+
isFreezable: isSet6(object.isFreezable) ? globalThis.Boolean(object.isFreezable) : false,
|
|
16479
|
+
creationEntityPublicKey: isSet6(object.creationEntityPublicKey) ? bytesFromBase645(object.creationEntityPublicKey) : void 0,
|
|
16480
|
+
tokenIdentifier: isSet6(object.tokenIdentifier) ? bytesFromBase645(object.tokenIdentifier) : new Uint8Array(0)
|
|
16481
|
+
};
|
|
16482
|
+
},
|
|
16483
|
+
toJSON(message) {
|
|
16484
|
+
const obj = {};
|
|
16485
|
+
if (message.issuerPublicKey.length !== 0) {
|
|
16486
|
+
obj.issuerPublicKey = base64FromBytes5(message.issuerPublicKey);
|
|
16487
|
+
}
|
|
16488
|
+
if (message.tokenName !== "") {
|
|
16489
|
+
obj.tokenName = message.tokenName;
|
|
16490
|
+
}
|
|
16491
|
+
if (message.tokenTicker !== "") {
|
|
16492
|
+
obj.tokenTicker = message.tokenTicker;
|
|
16493
|
+
}
|
|
16494
|
+
if (message.decimals !== 0) {
|
|
16495
|
+
obj.decimals = Math.round(message.decimals);
|
|
16496
|
+
}
|
|
16497
|
+
if (message.maxSupply.length !== 0) {
|
|
16498
|
+
obj.maxSupply = base64FromBytes5(message.maxSupply);
|
|
16499
|
+
}
|
|
16500
|
+
if (message.isFreezable !== false) {
|
|
16501
|
+
obj.isFreezable = message.isFreezable;
|
|
16502
|
+
}
|
|
16503
|
+
if (message.creationEntityPublicKey !== void 0) {
|
|
16504
|
+
obj.creationEntityPublicKey = base64FromBytes5(message.creationEntityPublicKey);
|
|
16505
|
+
}
|
|
16506
|
+
if (message.tokenIdentifier.length !== 0) {
|
|
16507
|
+
obj.tokenIdentifier = base64FromBytes5(message.tokenIdentifier);
|
|
16508
|
+
}
|
|
16509
|
+
return obj;
|
|
16510
|
+
},
|
|
16511
|
+
create(base) {
|
|
16512
|
+
return TokenMetadata.fromPartial(base ?? {});
|
|
16513
|
+
},
|
|
16514
|
+
fromPartial(object) {
|
|
16515
|
+
const message = createBaseTokenMetadata();
|
|
16516
|
+
message.issuerPublicKey = object.issuerPublicKey ?? new Uint8Array(0);
|
|
16517
|
+
message.tokenName = object.tokenName ?? "";
|
|
16518
|
+
message.tokenTicker = object.tokenTicker ?? "";
|
|
16519
|
+
message.decimals = object.decimals ?? 0;
|
|
16520
|
+
message.maxSupply = object.maxSupply ?? new Uint8Array(0);
|
|
16521
|
+
message.isFreezable = object.isFreezable ?? false;
|
|
16522
|
+
message.creationEntityPublicKey = object.creationEntityPublicKey ?? void 0;
|
|
16523
|
+
message.tokenIdentifier = object.tokenIdentifier ?? new Uint8Array(0);
|
|
16524
|
+
return message;
|
|
16525
|
+
}
|
|
16526
|
+
};
|
|
16527
|
+
function createBaseQueryTokenMetadataResponse() {
|
|
16528
|
+
return { tokenMetadata: [] };
|
|
16529
|
+
}
|
|
16530
|
+
var QueryTokenMetadataResponse = {
|
|
16531
|
+
encode(message, writer = new import_wire7.BinaryWriter()) {
|
|
16532
|
+
for (const v of message.tokenMetadata) {
|
|
16533
|
+
TokenMetadata.encode(v, writer.uint32(10).fork()).join();
|
|
16534
|
+
}
|
|
16535
|
+
return writer;
|
|
16536
|
+
},
|
|
16537
|
+
decode(input, length) {
|
|
16538
|
+
const reader = input instanceof import_wire7.BinaryReader ? input : new import_wire7.BinaryReader(input);
|
|
16539
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
16540
|
+
const message = createBaseQueryTokenMetadataResponse();
|
|
16541
|
+
while (reader.pos < end) {
|
|
16542
|
+
const tag = reader.uint32();
|
|
16543
|
+
switch (tag >>> 3) {
|
|
16544
|
+
case 1: {
|
|
16545
|
+
if (tag !== 10) {
|
|
16546
|
+
break;
|
|
16547
|
+
}
|
|
16548
|
+
message.tokenMetadata.push(TokenMetadata.decode(reader, reader.uint32()));
|
|
16549
|
+
continue;
|
|
16550
|
+
}
|
|
16551
|
+
}
|
|
16552
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
16553
|
+
break;
|
|
16554
|
+
}
|
|
16555
|
+
reader.skip(tag & 7);
|
|
16556
|
+
}
|
|
16557
|
+
return message;
|
|
16558
|
+
},
|
|
16559
|
+
fromJSON(object) {
|
|
16560
|
+
return {
|
|
16561
|
+
tokenMetadata: globalThis.Array.isArray(object?.tokenMetadata) ? object.tokenMetadata.map((e) => TokenMetadata.fromJSON(e)) : []
|
|
16562
|
+
};
|
|
16563
|
+
},
|
|
16564
|
+
toJSON(message) {
|
|
16565
|
+
const obj = {};
|
|
16566
|
+
if (message.tokenMetadata?.length) {
|
|
16567
|
+
obj.tokenMetadata = message.tokenMetadata.map((e) => TokenMetadata.toJSON(e));
|
|
16568
|
+
}
|
|
16569
|
+
return obj;
|
|
16570
|
+
},
|
|
16571
|
+
create(base) {
|
|
16572
|
+
return QueryTokenMetadataResponse.fromPartial(base ?? {});
|
|
16573
|
+
},
|
|
16574
|
+
fromPartial(object) {
|
|
16575
|
+
const message = createBaseQueryTokenMetadataResponse();
|
|
16576
|
+
message.tokenMetadata = object.tokenMetadata?.map((e) => TokenMetadata.fromPartial(e)) || [];
|
|
16577
|
+
return message;
|
|
16578
|
+
}
|
|
16579
|
+
};
|
|
16580
|
+
function createBaseQueryTokenOutputsRequest2() {
|
|
16581
|
+
return { ownerPublicKeys: [], issuerPublicKeys: [], tokenIdentifiers: [], network: 0 };
|
|
16582
|
+
}
|
|
16583
|
+
var QueryTokenOutputsRequest2 = {
|
|
16584
|
+
encode(message, writer = new import_wire7.BinaryWriter()) {
|
|
16585
|
+
for (const v of message.ownerPublicKeys) {
|
|
16586
|
+
writer.uint32(10).bytes(v);
|
|
16587
|
+
}
|
|
16588
|
+
for (const v of message.issuerPublicKeys) {
|
|
16589
|
+
writer.uint32(18).bytes(v);
|
|
16590
|
+
}
|
|
16591
|
+
for (const v of message.tokenIdentifiers) {
|
|
16592
|
+
writer.uint32(34).bytes(v);
|
|
16593
|
+
}
|
|
16594
|
+
if (message.network !== 0) {
|
|
16595
|
+
writer.uint32(24).int32(message.network);
|
|
16596
|
+
}
|
|
16597
|
+
return writer;
|
|
16598
|
+
},
|
|
16599
|
+
decode(input, length) {
|
|
16600
|
+
const reader = input instanceof import_wire7.BinaryReader ? input : new import_wire7.BinaryReader(input);
|
|
16601
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
16602
|
+
const message = createBaseQueryTokenOutputsRequest2();
|
|
16603
|
+
while (reader.pos < end) {
|
|
16604
|
+
const tag = reader.uint32();
|
|
16605
|
+
switch (tag >>> 3) {
|
|
16606
|
+
case 1: {
|
|
16607
|
+
if (tag !== 10) {
|
|
16608
|
+
break;
|
|
16609
|
+
}
|
|
16610
|
+
message.ownerPublicKeys.push(reader.bytes());
|
|
16611
|
+
continue;
|
|
16612
|
+
}
|
|
16613
|
+
case 2: {
|
|
16614
|
+
if (tag !== 18) {
|
|
16615
|
+
break;
|
|
16616
|
+
}
|
|
16617
|
+
message.issuerPublicKeys.push(reader.bytes());
|
|
16618
|
+
continue;
|
|
16619
|
+
}
|
|
16620
|
+
case 4: {
|
|
16621
|
+
if (tag !== 34) {
|
|
16622
|
+
break;
|
|
16623
|
+
}
|
|
16624
|
+
message.tokenIdentifiers.push(reader.bytes());
|
|
16625
|
+
continue;
|
|
16626
|
+
}
|
|
16627
|
+
case 3: {
|
|
16628
|
+
if (tag !== 24) {
|
|
16629
|
+
break;
|
|
16630
|
+
}
|
|
16631
|
+
message.network = reader.int32();
|
|
16632
|
+
continue;
|
|
16633
|
+
}
|
|
16634
|
+
}
|
|
16635
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
16636
|
+
break;
|
|
16637
|
+
}
|
|
16638
|
+
reader.skip(tag & 7);
|
|
16639
|
+
}
|
|
16640
|
+
return message;
|
|
16641
|
+
},
|
|
16642
|
+
fromJSON(object) {
|
|
16643
|
+
return {
|
|
16644
|
+
ownerPublicKeys: globalThis.Array.isArray(object?.ownerPublicKeys) ? object.ownerPublicKeys.map((e) => bytesFromBase645(e)) : [],
|
|
16645
|
+
issuerPublicKeys: globalThis.Array.isArray(object?.issuerPublicKeys) ? object.issuerPublicKeys.map((e) => bytesFromBase645(e)) : [],
|
|
16646
|
+
tokenIdentifiers: globalThis.Array.isArray(object?.tokenIdentifiers) ? object.tokenIdentifiers.map((e) => bytesFromBase645(e)) : [],
|
|
16647
|
+
network: isSet6(object.network) ? networkFromJSON(object.network) : 0
|
|
16648
|
+
};
|
|
16649
|
+
},
|
|
16650
|
+
toJSON(message) {
|
|
16651
|
+
const obj = {};
|
|
16652
|
+
if (message.ownerPublicKeys?.length) {
|
|
16653
|
+
obj.ownerPublicKeys = message.ownerPublicKeys.map((e) => base64FromBytes5(e));
|
|
16654
|
+
}
|
|
16655
|
+
if (message.issuerPublicKeys?.length) {
|
|
16656
|
+
obj.issuerPublicKeys = message.issuerPublicKeys.map((e) => base64FromBytes5(e));
|
|
16657
|
+
}
|
|
16658
|
+
if (message.tokenIdentifiers?.length) {
|
|
16659
|
+
obj.tokenIdentifiers = message.tokenIdentifiers.map((e) => base64FromBytes5(e));
|
|
16660
|
+
}
|
|
16661
|
+
if (message.network !== 0) {
|
|
16662
|
+
obj.network = networkToJSON(message.network);
|
|
16663
|
+
}
|
|
16664
|
+
return obj;
|
|
16665
|
+
},
|
|
16666
|
+
create(base) {
|
|
16667
|
+
return QueryTokenOutputsRequest2.fromPartial(base ?? {});
|
|
16668
|
+
},
|
|
16669
|
+
fromPartial(object) {
|
|
16670
|
+
const message = createBaseQueryTokenOutputsRequest2();
|
|
16671
|
+
message.ownerPublicKeys = object.ownerPublicKeys?.map((e) => e) || [];
|
|
16672
|
+
message.issuerPublicKeys = object.issuerPublicKeys?.map((e) => e) || [];
|
|
16673
|
+
message.tokenIdentifiers = object.tokenIdentifiers?.map((e) => e) || [];
|
|
16674
|
+
message.network = object.network ?? 0;
|
|
16675
|
+
return message;
|
|
16676
|
+
}
|
|
16677
|
+
};
|
|
16678
|
+
function createBaseQueryTokenTransactionsRequest2() {
|
|
16679
|
+
return {
|
|
16680
|
+
outputIds: [],
|
|
16681
|
+
ownerPublicKeys: [],
|
|
16682
|
+
issuerPublicKeys: [],
|
|
16683
|
+
tokenIdentifiers: [],
|
|
16684
|
+
tokenTransactionHashes: [],
|
|
16685
|
+
limit: 0,
|
|
16686
|
+
offset: 0
|
|
16687
|
+
};
|
|
16688
|
+
}
|
|
16689
|
+
var QueryTokenTransactionsRequest2 = {
|
|
16690
|
+
encode(message, writer = new import_wire7.BinaryWriter()) {
|
|
16691
|
+
for (const v of message.outputIds) {
|
|
16692
|
+
writer.uint32(10).string(v);
|
|
16693
|
+
}
|
|
16694
|
+
for (const v of message.ownerPublicKeys) {
|
|
16695
|
+
writer.uint32(18).bytes(v);
|
|
16696
|
+
}
|
|
16697
|
+
for (const v of message.issuerPublicKeys) {
|
|
16698
|
+
writer.uint32(26).bytes(v);
|
|
16699
|
+
}
|
|
16700
|
+
for (const v of message.tokenIdentifiers) {
|
|
16701
|
+
writer.uint32(58).bytes(v);
|
|
16702
|
+
}
|
|
16703
|
+
for (const v of message.tokenTransactionHashes) {
|
|
16704
|
+
writer.uint32(34).bytes(v);
|
|
16705
|
+
}
|
|
16706
|
+
if (message.limit !== 0) {
|
|
16707
|
+
writer.uint32(40).int64(message.limit);
|
|
16708
|
+
}
|
|
16709
|
+
if (message.offset !== 0) {
|
|
16710
|
+
writer.uint32(48).int64(message.offset);
|
|
16711
|
+
}
|
|
16712
|
+
return writer;
|
|
16713
|
+
},
|
|
16714
|
+
decode(input, length) {
|
|
16715
|
+
const reader = input instanceof import_wire7.BinaryReader ? input : new import_wire7.BinaryReader(input);
|
|
16716
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
16717
|
+
const message = createBaseQueryTokenTransactionsRequest2();
|
|
16718
|
+
while (reader.pos < end) {
|
|
16719
|
+
const tag = reader.uint32();
|
|
16720
|
+
switch (tag >>> 3) {
|
|
16721
|
+
case 1: {
|
|
16722
|
+
if (tag !== 10) {
|
|
16723
|
+
break;
|
|
16724
|
+
}
|
|
16725
|
+
message.outputIds.push(reader.string());
|
|
16726
|
+
continue;
|
|
16727
|
+
}
|
|
16728
|
+
case 2: {
|
|
16729
|
+
if (tag !== 18) {
|
|
16730
|
+
break;
|
|
16731
|
+
}
|
|
16732
|
+
message.ownerPublicKeys.push(reader.bytes());
|
|
16733
|
+
continue;
|
|
16734
|
+
}
|
|
16735
|
+
case 3: {
|
|
16736
|
+
if (tag !== 26) {
|
|
16737
|
+
break;
|
|
16738
|
+
}
|
|
16739
|
+
message.issuerPublicKeys.push(reader.bytes());
|
|
16740
|
+
continue;
|
|
16741
|
+
}
|
|
16742
|
+
case 7: {
|
|
16743
|
+
if (tag !== 58) {
|
|
16744
|
+
break;
|
|
16745
|
+
}
|
|
16746
|
+
message.tokenIdentifiers.push(reader.bytes());
|
|
16747
|
+
continue;
|
|
16748
|
+
}
|
|
16749
|
+
case 4: {
|
|
16750
|
+
if (tag !== 34) {
|
|
16751
|
+
break;
|
|
16752
|
+
}
|
|
16753
|
+
message.tokenTransactionHashes.push(reader.bytes());
|
|
16754
|
+
continue;
|
|
16755
|
+
}
|
|
16756
|
+
case 5: {
|
|
16757
|
+
if (tag !== 40) {
|
|
16758
|
+
break;
|
|
16759
|
+
}
|
|
16760
|
+
message.limit = longToNumber4(reader.int64());
|
|
16761
|
+
continue;
|
|
16762
|
+
}
|
|
16763
|
+
case 6: {
|
|
16764
|
+
if (tag !== 48) {
|
|
16765
|
+
break;
|
|
16766
|
+
}
|
|
16767
|
+
message.offset = longToNumber4(reader.int64());
|
|
16768
|
+
continue;
|
|
16769
|
+
}
|
|
16770
|
+
}
|
|
16771
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
16772
|
+
break;
|
|
16773
|
+
}
|
|
16774
|
+
reader.skip(tag & 7);
|
|
16775
|
+
}
|
|
16776
|
+
return message;
|
|
16777
|
+
},
|
|
16778
|
+
fromJSON(object) {
|
|
16779
|
+
return {
|
|
16780
|
+
outputIds: globalThis.Array.isArray(object?.outputIds) ? object.outputIds.map((e) => globalThis.String(e)) : [],
|
|
16781
|
+
ownerPublicKeys: globalThis.Array.isArray(object?.ownerPublicKeys) ? object.ownerPublicKeys.map((e) => bytesFromBase645(e)) : [],
|
|
16782
|
+
issuerPublicKeys: globalThis.Array.isArray(object?.issuerPublicKeys) ? object.issuerPublicKeys.map((e) => bytesFromBase645(e)) : [],
|
|
16783
|
+
tokenIdentifiers: globalThis.Array.isArray(object?.tokenIdentifiers) ? object.tokenIdentifiers.map((e) => bytesFromBase645(e)) : [],
|
|
16784
|
+
tokenTransactionHashes: globalThis.Array.isArray(object?.tokenTransactionHashes) ? object.tokenTransactionHashes.map((e) => bytesFromBase645(e)) : [],
|
|
16785
|
+
limit: isSet6(object.limit) ? globalThis.Number(object.limit) : 0,
|
|
16786
|
+
offset: isSet6(object.offset) ? globalThis.Number(object.offset) : 0
|
|
16787
|
+
};
|
|
16788
|
+
},
|
|
16789
|
+
toJSON(message) {
|
|
16790
|
+
const obj = {};
|
|
16791
|
+
if (message.outputIds?.length) {
|
|
16792
|
+
obj.outputIds = message.outputIds;
|
|
16793
|
+
}
|
|
16794
|
+
if (message.ownerPublicKeys?.length) {
|
|
16795
|
+
obj.ownerPublicKeys = message.ownerPublicKeys.map((e) => base64FromBytes5(e));
|
|
16796
|
+
}
|
|
16797
|
+
if (message.issuerPublicKeys?.length) {
|
|
16798
|
+
obj.issuerPublicKeys = message.issuerPublicKeys.map((e) => base64FromBytes5(e));
|
|
16799
|
+
}
|
|
16800
|
+
if (message.tokenIdentifiers?.length) {
|
|
16801
|
+
obj.tokenIdentifiers = message.tokenIdentifiers.map((e) => base64FromBytes5(e));
|
|
16802
|
+
}
|
|
16803
|
+
if (message.tokenTransactionHashes?.length) {
|
|
16804
|
+
obj.tokenTransactionHashes = message.tokenTransactionHashes.map((e) => base64FromBytes5(e));
|
|
16805
|
+
}
|
|
16806
|
+
if (message.limit !== 0) {
|
|
16807
|
+
obj.limit = Math.round(message.limit);
|
|
16808
|
+
}
|
|
16809
|
+
if (message.offset !== 0) {
|
|
16810
|
+
obj.offset = Math.round(message.offset);
|
|
16811
|
+
}
|
|
16812
|
+
return obj;
|
|
16813
|
+
},
|
|
16814
|
+
create(base) {
|
|
16815
|
+
return QueryTokenTransactionsRequest2.fromPartial(base ?? {});
|
|
16816
|
+
},
|
|
16817
|
+
fromPartial(object) {
|
|
16818
|
+
const message = createBaseQueryTokenTransactionsRequest2();
|
|
16819
|
+
message.outputIds = object.outputIds?.map((e) => e) || [];
|
|
16820
|
+
message.ownerPublicKeys = object.ownerPublicKeys?.map((e) => e) || [];
|
|
16821
|
+
message.issuerPublicKeys = object.issuerPublicKeys?.map((e) => e) || [];
|
|
16822
|
+
message.tokenIdentifiers = object.tokenIdentifiers?.map((e) => e) || [];
|
|
16823
|
+
message.tokenTransactionHashes = object.tokenTransactionHashes?.map((e) => e) || [];
|
|
16824
|
+
message.limit = object.limit ?? 0;
|
|
16825
|
+
message.offset = object.offset ?? 0;
|
|
16826
|
+
return message;
|
|
16827
|
+
}
|
|
16828
|
+
};
|
|
16829
|
+
function createBaseQueryTokenTransactionsResponse2() {
|
|
16830
|
+
return { tokenTransactionsWithStatus: [], offset: 0 };
|
|
16831
|
+
}
|
|
16832
|
+
var QueryTokenTransactionsResponse2 = {
|
|
16833
|
+
encode(message, writer = new import_wire7.BinaryWriter()) {
|
|
16834
|
+
for (const v of message.tokenTransactionsWithStatus) {
|
|
16835
|
+
TokenTransactionWithStatus2.encode(v, writer.uint32(10).fork()).join();
|
|
16836
|
+
}
|
|
16837
|
+
if (message.offset !== 0) {
|
|
16838
|
+
writer.uint32(16).int64(message.offset);
|
|
16839
|
+
}
|
|
16840
|
+
return writer;
|
|
16841
|
+
},
|
|
16842
|
+
decode(input, length) {
|
|
16843
|
+
const reader = input instanceof import_wire7.BinaryReader ? input : new import_wire7.BinaryReader(input);
|
|
16844
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
16845
|
+
const message = createBaseQueryTokenTransactionsResponse2();
|
|
16846
|
+
while (reader.pos < end) {
|
|
16847
|
+
const tag = reader.uint32();
|
|
16848
|
+
switch (tag >>> 3) {
|
|
16849
|
+
case 1: {
|
|
16850
|
+
if (tag !== 10) {
|
|
16851
|
+
break;
|
|
16852
|
+
}
|
|
16853
|
+
message.tokenTransactionsWithStatus.push(TokenTransactionWithStatus2.decode(reader, reader.uint32()));
|
|
16854
|
+
continue;
|
|
16855
|
+
}
|
|
16856
|
+
case 2: {
|
|
16857
|
+
if (tag !== 16) {
|
|
16858
|
+
break;
|
|
16859
|
+
}
|
|
16860
|
+
message.offset = longToNumber4(reader.int64());
|
|
16861
|
+
continue;
|
|
16862
|
+
}
|
|
16863
|
+
}
|
|
16864
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
16865
|
+
break;
|
|
16866
|
+
}
|
|
16867
|
+
reader.skip(tag & 7);
|
|
16868
|
+
}
|
|
16869
|
+
return message;
|
|
16870
|
+
},
|
|
16871
|
+
fromJSON(object) {
|
|
16872
|
+
return {
|
|
16873
|
+
tokenTransactionsWithStatus: globalThis.Array.isArray(object?.tokenTransactionsWithStatus) ? object.tokenTransactionsWithStatus.map((e) => TokenTransactionWithStatus2.fromJSON(e)) : [],
|
|
16874
|
+
offset: isSet6(object.offset) ? globalThis.Number(object.offset) : 0
|
|
16875
|
+
};
|
|
16876
|
+
},
|
|
16877
|
+
toJSON(message) {
|
|
16878
|
+
const obj = {};
|
|
16879
|
+
if (message.tokenTransactionsWithStatus?.length) {
|
|
16880
|
+
obj.tokenTransactionsWithStatus = message.tokenTransactionsWithStatus.map(
|
|
16881
|
+
(e) => TokenTransactionWithStatus2.toJSON(e)
|
|
16882
|
+
);
|
|
16883
|
+
}
|
|
16884
|
+
if (message.offset !== 0) {
|
|
16885
|
+
obj.offset = Math.round(message.offset);
|
|
16886
|
+
}
|
|
16887
|
+
return obj;
|
|
16888
|
+
},
|
|
16889
|
+
create(base) {
|
|
16890
|
+
return QueryTokenTransactionsResponse2.fromPartial(base ?? {});
|
|
16891
|
+
},
|
|
16892
|
+
fromPartial(object) {
|
|
16893
|
+
const message = createBaseQueryTokenTransactionsResponse2();
|
|
16894
|
+
message.tokenTransactionsWithStatus = object.tokenTransactionsWithStatus?.map((e) => TokenTransactionWithStatus2.fromPartial(e)) || [];
|
|
16895
|
+
message.offset = object.offset ?? 0;
|
|
16896
|
+
return message;
|
|
16897
|
+
}
|
|
16898
|
+
};
|
|
16899
|
+
function createBaseOutputWithPreviousTransactionData2() {
|
|
16900
|
+
return { output: void 0, previousTransactionHash: new Uint8Array(0), previousTransactionVout: 0 };
|
|
16901
|
+
}
|
|
16902
|
+
var OutputWithPreviousTransactionData2 = {
|
|
16903
|
+
encode(message, writer = new import_wire7.BinaryWriter()) {
|
|
16904
|
+
if (message.output !== void 0) {
|
|
16905
|
+
TokenOutput2.encode(message.output, writer.uint32(10).fork()).join();
|
|
16906
|
+
}
|
|
16907
|
+
if (message.previousTransactionHash.length !== 0) {
|
|
16908
|
+
writer.uint32(18).bytes(message.previousTransactionHash);
|
|
16909
|
+
}
|
|
16910
|
+
if (message.previousTransactionVout !== 0) {
|
|
16911
|
+
writer.uint32(24).uint32(message.previousTransactionVout);
|
|
16912
|
+
}
|
|
16913
|
+
return writer;
|
|
16914
|
+
},
|
|
16915
|
+
decode(input, length) {
|
|
16916
|
+
const reader = input instanceof import_wire7.BinaryReader ? input : new import_wire7.BinaryReader(input);
|
|
16917
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
16918
|
+
const message = createBaseOutputWithPreviousTransactionData2();
|
|
16919
|
+
while (reader.pos < end) {
|
|
16920
|
+
const tag = reader.uint32();
|
|
16921
|
+
switch (tag >>> 3) {
|
|
16922
|
+
case 1: {
|
|
16923
|
+
if (tag !== 10) {
|
|
16924
|
+
break;
|
|
16925
|
+
}
|
|
16926
|
+
message.output = TokenOutput2.decode(reader, reader.uint32());
|
|
16927
|
+
continue;
|
|
16928
|
+
}
|
|
16929
|
+
case 2: {
|
|
16930
|
+
if (tag !== 18) {
|
|
16931
|
+
break;
|
|
16932
|
+
}
|
|
16933
|
+
message.previousTransactionHash = reader.bytes();
|
|
16934
|
+
continue;
|
|
16935
|
+
}
|
|
16936
|
+
case 3: {
|
|
16937
|
+
if (tag !== 24) {
|
|
16938
|
+
break;
|
|
16939
|
+
}
|
|
16940
|
+
message.previousTransactionVout = reader.uint32();
|
|
16941
|
+
continue;
|
|
16942
|
+
}
|
|
16943
|
+
}
|
|
16944
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
16945
|
+
break;
|
|
16946
|
+
}
|
|
16947
|
+
reader.skip(tag & 7);
|
|
16948
|
+
}
|
|
16949
|
+
return message;
|
|
16950
|
+
},
|
|
16951
|
+
fromJSON(object) {
|
|
16952
|
+
return {
|
|
16953
|
+
output: isSet6(object.output) ? TokenOutput2.fromJSON(object.output) : void 0,
|
|
16954
|
+
previousTransactionHash: isSet6(object.previousTransactionHash) ? bytesFromBase645(object.previousTransactionHash) : new Uint8Array(0),
|
|
16955
|
+
previousTransactionVout: isSet6(object.previousTransactionVout) ? globalThis.Number(object.previousTransactionVout) : 0
|
|
16956
|
+
};
|
|
16957
|
+
},
|
|
16958
|
+
toJSON(message) {
|
|
16959
|
+
const obj = {};
|
|
16960
|
+
if (message.output !== void 0) {
|
|
16961
|
+
obj.output = TokenOutput2.toJSON(message.output);
|
|
16962
|
+
}
|
|
16963
|
+
if (message.previousTransactionHash.length !== 0) {
|
|
16964
|
+
obj.previousTransactionHash = base64FromBytes5(message.previousTransactionHash);
|
|
16965
|
+
}
|
|
16966
|
+
if (message.previousTransactionVout !== 0) {
|
|
16967
|
+
obj.previousTransactionVout = Math.round(message.previousTransactionVout);
|
|
16968
|
+
}
|
|
16969
|
+
return obj;
|
|
16970
|
+
},
|
|
16971
|
+
create(base) {
|
|
16972
|
+
return OutputWithPreviousTransactionData2.fromPartial(base ?? {});
|
|
16973
|
+
},
|
|
16974
|
+
fromPartial(object) {
|
|
16975
|
+
const message = createBaseOutputWithPreviousTransactionData2();
|
|
16976
|
+
message.output = object.output !== void 0 && object.output !== null ? TokenOutput2.fromPartial(object.output) : void 0;
|
|
16977
|
+
message.previousTransactionHash = object.previousTransactionHash ?? new Uint8Array(0);
|
|
16978
|
+
message.previousTransactionVout = object.previousTransactionVout ?? 0;
|
|
16979
|
+
return message;
|
|
16980
|
+
}
|
|
16981
|
+
};
|
|
16982
|
+
function createBaseQueryTokenOutputsResponse2() {
|
|
16983
|
+
return { outputsWithPreviousTransactionData: [] };
|
|
16984
|
+
}
|
|
16985
|
+
var QueryTokenOutputsResponse2 = {
|
|
16986
|
+
encode(message, writer = new import_wire7.BinaryWriter()) {
|
|
16987
|
+
for (const v of message.outputsWithPreviousTransactionData) {
|
|
16988
|
+
OutputWithPreviousTransactionData2.encode(v, writer.uint32(10).fork()).join();
|
|
16989
|
+
}
|
|
16990
|
+
return writer;
|
|
16991
|
+
},
|
|
16992
|
+
decode(input, length) {
|
|
16993
|
+
const reader = input instanceof import_wire7.BinaryReader ? input : new import_wire7.BinaryReader(input);
|
|
16994
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
16995
|
+
const message = createBaseQueryTokenOutputsResponse2();
|
|
16996
|
+
while (reader.pos < end) {
|
|
16997
|
+
const tag = reader.uint32();
|
|
16998
|
+
switch (tag >>> 3) {
|
|
16999
|
+
case 1: {
|
|
17000
|
+
if (tag !== 10) {
|
|
17001
|
+
break;
|
|
17002
|
+
}
|
|
17003
|
+
message.outputsWithPreviousTransactionData.push(
|
|
17004
|
+
OutputWithPreviousTransactionData2.decode(reader, reader.uint32())
|
|
17005
|
+
);
|
|
17006
|
+
continue;
|
|
17007
|
+
}
|
|
17008
|
+
}
|
|
17009
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
17010
|
+
break;
|
|
17011
|
+
}
|
|
17012
|
+
reader.skip(tag & 7);
|
|
17013
|
+
}
|
|
17014
|
+
return message;
|
|
17015
|
+
},
|
|
17016
|
+
fromJSON(object) {
|
|
17017
|
+
return {
|
|
17018
|
+
outputsWithPreviousTransactionData: globalThis.Array.isArray(object?.outputsWithPreviousTransactionData) ? object.outputsWithPreviousTransactionData.map((e) => OutputWithPreviousTransactionData2.fromJSON(e)) : []
|
|
17019
|
+
};
|
|
17020
|
+
},
|
|
17021
|
+
toJSON(message) {
|
|
17022
|
+
const obj = {};
|
|
17023
|
+
if (message.outputsWithPreviousTransactionData?.length) {
|
|
17024
|
+
obj.outputsWithPreviousTransactionData = message.outputsWithPreviousTransactionData.map(
|
|
17025
|
+
(e) => OutputWithPreviousTransactionData2.toJSON(e)
|
|
17026
|
+
);
|
|
17027
|
+
}
|
|
17028
|
+
return obj;
|
|
17029
|
+
},
|
|
17030
|
+
create(base) {
|
|
17031
|
+
return QueryTokenOutputsResponse2.fromPartial(base ?? {});
|
|
17032
|
+
},
|
|
17033
|
+
fromPartial(object) {
|
|
17034
|
+
const message = createBaseQueryTokenOutputsResponse2();
|
|
17035
|
+
message.outputsWithPreviousTransactionData = object.outputsWithPreviousTransactionData?.map((e) => OutputWithPreviousTransactionData2.fromPartial(e)) || [];
|
|
17036
|
+
return message;
|
|
17037
|
+
}
|
|
17038
|
+
};
|
|
17039
|
+
function createBaseSpentTokenOutputMetadata2() {
|
|
17040
|
+
return { outputId: "", revocationSecret: new Uint8Array(0) };
|
|
17041
|
+
}
|
|
17042
|
+
var SpentTokenOutputMetadata2 = {
|
|
17043
|
+
encode(message, writer = new import_wire7.BinaryWriter()) {
|
|
17044
|
+
if (message.outputId !== "") {
|
|
17045
|
+
writer.uint32(10).string(message.outputId);
|
|
17046
|
+
}
|
|
17047
|
+
if (message.revocationSecret.length !== 0) {
|
|
17048
|
+
writer.uint32(18).bytes(message.revocationSecret);
|
|
17049
|
+
}
|
|
17050
|
+
return writer;
|
|
17051
|
+
},
|
|
17052
|
+
decode(input, length) {
|
|
17053
|
+
const reader = input instanceof import_wire7.BinaryReader ? input : new import_wire7.BinaryReader(input);
|
|
17054
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
17055
|
+
const message = createBaseSpentTokenOutputMetadata2();
|
|
17056
|
+
while (reader.pos < end) {
|
|
17057
|
+
const tag = reader.uint32();
|
|
17058
|
+
switch (tag >>> 3) {
|
|
17059
|
+
case 1: {
|
|
17060
|
+
if (tag !== 10) {
|
|
17061
|
+
break;
|
|
17062
|
+
}
|
|
17063
|
+
message.outputId = reader.string();
|
|
17064
|
+
continue;
|
|
17065
|
+
}
|
|
17066
|
+
case 2: {
|
|
17067
|
+
if (tag !== 18) {
|
|
17068
|
+
break;
|
|
17069
|
+
}
|
|
17070
|
+
message.revocationSecret = reader.bytes();
|
|
17071
|
+
continue;
|
|
17072
|
+
}
|
|
17073
|
+
}
|
|
17074
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
17075
|
+
break;
|
|
17076
|
+
}
|
|
17077
|
+
reader.skip(tag & 7);
|
|
17078
|
+
}
|
|
17079
|
+
return message;
|
|
17080
|
+
},
|
|
17081
|
+
fromJSON(object) {
|
|
17082
|
+
return {
|
|
17083
|
+
outputId: isSet6(object.outputId) ? globalThis.String(object.outputId) : "",
|
|
17084
|
+
revocationSecret: isSet6(object.revocationSecret) ? bytesFromBase645(object.revocationSecret) : new Uint8Array(0)
|
|
17085
|
+
};
|
|
17086
|
+
},
|
|
17087
|
+
toJSON(message) {
|
|
17088
|
+
const obj = {};
|
|
17089
|
+
if (message.outputId !== "") {
|
|
17090
|
+
obj.outputId = message.outputId;
|
|
17091
|
+
}
|
|
17092
|
+
if (message.revocationSecret.length !== 0) {
|
|
17093
|
+
obj.revocationSecret = base64FromBytes5(message.revocationSecret);
|
|
17094
|
+
}
|
|
17095
|
+
return obj;
|
|
17096
|
+
},
|
|
17097
|
+
create(base) {
|
|
17098
|
+
return SpentTokenOutputMetadata2.fromPartial(base ?? {});
|
|
17099
|
+
},
|
|
17100
|
+
fromPartial(object) {
|
|
17101
|
+
const message = createBaseSpentTokenOutputMetadata2();
|
|
17102
|
+
message.outputId = object.outputId ?? "";
|
|
17103
|
+
message.revocationSecret = object.revocationSecret ?? new Uint8Array(0);
|
|
17104
|
+
return message;
|
|
17105
|
+
}
|
|
17106
|
+
};
|
|
17107
|
+
function createBaseTokenTransactionConfirmationMetadata2() {
|
|
17108
|
+
return { spentTokenOutputsMetadata: [] };
|
|
17109
|
+
}
|
|
17110
|
+
var TokenTransactionConfirmationMetadata2 = {
|
|
17111
|
+
encode(message, writer = new import_wire7.BinaryWriter()) {
|
|
17112
|
+
for (const v of message.spentTokenOutputsMetadata) {
|
|
17113
|
+
SpentTokenOutputMetadata2.encode(v, writer.uint32(10).fork()).join();
|
|
17114
|
+
}
|
|
17115
|
+
return writer;
|
|
17116
|
+
},
|
|
17117
|
+
decode(input, length) {
|
|
17118
|
+
const reader = input instanceof import_wire7.BinaryReader ? input : new import_wire7.BinaryReader(input);
|
|
17119
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
17120
|
+
const message = createBaseTokenTransactionConfirmationMetadata2();
|
|
17121
|
+
while (reader.pos < end) {
|
|
17122
|
+
const tag = reader.uint32();
|
|
17123
|
+
switch (tag >>> 3) {
|
|
17124
|
+
case 1: {
|
|
17125
|
+
if (tag !== 10) {
|
|
17126
|
+
break;
|
|
17127
|
+
}
|
|
17128
|
+
message.spentTokenOutputsMetadata.push(SpentTokenOutputMetadata2.decode(reader, reader.uint32()));
|
|
17129
|
+
continue;
|
|
17130
|
+
}
|
|
17131
|
+
}
|
|
17132
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
17133
|
+
break;
|
|
17134
|
+
}
|
|
17135
|
+
reader.skip(tag & 7);
|
|
17136
|
+
}
|
|
17137
|
+
return message;
|
|
17138
|
+
},
|
|
17139
|
+
fromJSON(object) {
|
|
17140
|
+
return {
|
|
17141
|
+
spentTokenOutputsMetadata: globalThis.Array.isArray(object?.spentTokenOutputsMetadata) ? object.spentTokenOutputsMetadata.map((e) => SpentTokenOutputMetadata2.fromJSON(e)) : []
|
|
17142
|
+
};
|
|
17143
|
+
},
|
|
17144
|
+
toJSON(message) {
|
|
17145
|
+
const obj = {};
|
|
17146
|
+
if (message.spentTokenOutputsMetadata?.length) {
|
|
17147
|
+
obj.spentTokenOutputsMetadata = message.spentTokenOutputsMetadata.map((e) => SpentTokenOutputMetadata2.toJSON(e));
|
|
17148
|
+
}
|
|
17149
|
+
return obj;
|
|
17150
|
+
},
|
|
17151
|
+
create(base) {
|
|
17152
|
+
return TokenTransactionConfirmationMetadata2.fromPartial(base ?? {});
|
|
17153
|
+
},
|
|
17154
|
+
fromPartial(object) {
|
|
17155
|
+
const message = createBaseTokenTransactionConfirmationMetadata2();
|
|
17156
|
+
message.spentTokenOutputsMetadata = object.spentTokenOutputsMetadata?.map((e) => SpentTokenOutputMetadata2.fromPartial(e)) || [];
|
|
17157
|
+
return message;
|
|
17158
|
+
}
|
|
17159
|
+
};
|
|
17160
|
+
function createBaseTokenTransactionWithStatus2() {
|
|
17161
|
+
return { tokenTransaction: void 0, status: 0, confirmationMetadata: void 0 };
|
|
17162
|
+
}
|
|
17163
|
+
var TokenTransactionWithStatus2 = {
|
|
17164
|
+
encode(message, writer = new import_wire7.BinaryWriter()) {
|
|
17165
|
+
if (message.tokenTransaction !== void 0) {
|
|
17166
|
+
TokenTransaction2.encode(message.tokenTransaction, writer.uint32(10).fork()).join();
|
|
17167
|
+
}
|
|
17168
|
+
if (message.status !== 0) {
|
|
17169
|
+
writer.uint32(16).int32(message.status);
|
|
17170
|
+
}
|
|
17171
|
+
if (message.confirmationMetadata !== void 0) {
|
|
17172
|
+
TokenTransactionConfirmationMetadata2.encode(message.confirmationMetadata, writer.uint32(26).fork()).join();
|
|
17173
|
+
}
|
|
17174
|
+
return writer;
|
|
17175
|
+
},
|
|
17176
|
+
decode(input, length) {
|
|
17177
|
+
const reader = input instanceof import_wire7.BinaryReader ? input : new import_wire7.BinaryReader(input);
|
|
17178
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
17179
|
+
const message = createBaseTokenTransactionWithStatus2();
|
|
17180
|
+
while (reader.pos < end) {
|
|
17181
|
+
const tag = reader.uint32();
|
|
17182
|
+
switch (tag >>> 3) {
|
|
17183
|
+
case 1: {
|
|
17184
|
+
if (tag !== 10) {
|
|
17185
|
+
break;
|
|
17186
|
+
}
|
|
17187
|
+
message.tokenTransaction = TokenTransaction2.decode(reader, reader.uint32());
|
|
17188
|
+
continue;
|
|
17189
|
+
}
|
|
17190
|
+
case 2: {
|
|
17191
|
+
if (tag !== 16) {
|
|
17192
|
+
break;
|
|
17193
|
+
}
|
|
17194
|
+
message.status = reader.int32();
|
|
17195
|
+
continue;
|
|
17196
|
+
}
|
|
17197
|
+
case 3: {
|
|
17198
|
+
if (tag !== 26) {
|
|
17199
|
+
break;
|
|
17200
|
+
}
|
|
17201
|
+
message.confirmationMetadata = TokenTransactionConfirmationMetadata2.decode(reader, reader.uint32());
|
|
17202
|
+
continue;
|
|
17203
|
+
}
|
|
17204
|
+
}
|
|
17205
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
17206
|
+
break;
|
|
17207
|
+
}
|
|
17208
|
+
reader.skip(tag & 7);
|
|
17209
|
+
}
|
|
17210
|
+
return message;
|
|
17211
|
+
},
|
|
17212
|
+
fromJSON(object) {
|
|
17213
|
+
return {
|
|
17214
|
+
tokenTransaction: isSet6(object.tokenTransaction) ? TokenTransaction2.fromJSON(object.tokenTransaction) : void 0,
|
|
17215
|
+
status: isSet6(object.status) ? tokenTransactionStatusFromJSON2(object.status) : 0,
|
|
17216
|
+
confirmationMetadata: isSet6(object.confirmationMetadata) ? TokenTransactionConfirmationMetadata2.fromJSON(object.confirmationMetadata) : void 0
|
|
17217
|
+
};
|
|
17218
|
+
},
|
|
17219
|
+
toJSON(message) {
|
|
17220
|
+
const obj = {};
|
|
17221
|
+
if (message.tokenTransaction !== void 0) {
|
|
17222
|
+
obj.tokenTransaction = TokenTransaction2.toJSON(message.tokenTransaction);
|
|
17223
|
+
}
|
|
17224
|
+
if (message.status !== 0) {
|
|
17225
|
+
obj.status = tokenTransactionStatusToJSON2(message.status);
|
|
17226
|
+
}
|
|
17227
|
+
if (message.confirmationMetadata !== void 0) {
|
|
17228
|
+
obj.confirmationMetadata = TokenTransactionConfirmationMetadata2.toJSON(message.confirmationMetadata);
|
|
17229
|
+
}
|
|
17230
|
+
return obj;
|
|
17231
|
+
},
|
|
17232
|
+
create(base) {
|
|
17233
|
+
return TokenTransactionWithStatus2.fromPartial(base ?? {});
|
|
17234
|
+
},
|
|
17235
|
+
fromPartial(object) {
|
|
17236
|
+
const message = createBaseTokenTransactionWithStatus2();
|
|
17237
|
+
message.tokenTransaction = object.tokenTransaction !== void 0 && object.tokenTransaction !== null ? TokenTransaction2.fromPartial(object.tokenTransaction) : void 0;
|
|
17238
|
+
message.status = object.status ?? 0;
|
|
17239
|
+
message.confirmationMetadata = object.confirmationMetadata !== void 0 && object.confirmationMetadata !== null ? TokenTransactionConfirmationMetadata2.fromPartial(object.confirmationMetadata) : void 0;
|
|
17240
|
+
return message;
|
|
17241
|
+
}
|
|
17242
|
+
};
|
|
17243
|
+
var SparkTokenServiceDefinition = {
|
|
17244
|
+
name: "SparkTokenService",
|
|
17245
|
+
fullName: "spark_token.SparkTokenService",
|
|
17246
|
+
methods: {
|
|
17247
|
+
/**
|
|
17248
|
+
* Start process to create final token transaction with all inputs required
|
|
17249
|
+
* from user and SOs (including revocation secret commitment)
|
|
17250
|
+
*/
|
|
17251
|
+
start_transaction: {
|
|
17252
|
+
name: "start_transaction",
|
|
17253
|
+
requestType: StartTransactionRequest,
|
|
17254
|
+
requestStream: false,
|
|
17255
|
+
responseType: StartTransactionResponse,
|
|
17256
|
+
responseStream: false,
|
|
17257
|
+
options: {}
|
|
17258
|
+
},
|
|
17259
|
+
/**
|
|
17260
|
+
* Complete the transaction and commit it with all SOs. This will be
|
|
17261
|
+
* coordinated by one SO.
|
|
17262
|
+
*/
|
|
17263
|
+
commit_transaction: {
|
|
17264
|
+
name: "commit_transaction",
|
|
17265
|
+
requestType: CommitTransactionRequest,
|
|
17266
|
+
requestStream: false,
|
|
17267
|
+
responseType: CommitTransactionResponse,
|
|
17268
|
+
responseStream: false,
|
|
17269
|
+
options: {}
|
|
17270
|
+
},
|
|
17271
|
+
query_token_metadata: {
|
|
17272
|
+
name: "query_token_metadata",
|
|
17273
|
+
requestType: QueryTokenMetadataRequest,
|
|
17274
|
+
requestStream: false,
|
|
17275
|
+
responseType: QueryTokenMetadataResponse,
|
|
17276
|
+
responseStream: false,
|
|
17277
|
+
options: {}
|
|
17278
|
+
},
|
|
17279
|
+
query_token_transactions: {
|
|
17280
|
+
name: "query_token_transactions",
|
|
17281
|
+
requestType: QueryTokenTransactionsRequest2,
|
|
17282
|
+
requestStream: false,
|
|
17283
|
+
responseType: QueryTokenTransactionsResponse2,
|
|
17284
|
+
responseStream: false,
|
|
17285
|
+
options: {}
|
|
17286
|
+
},
|
|
17287
|
+
query_token_outputs: {
|
|
17288
|
+
name: "query_token_outputs",
|
|
17289
|
+
requestType: QueryTokenOutputsRequest2,
|
|
17290
|
+
requestStream: false,
|
|
17291
|
+
responseType: QueryTokenOutputsResponse2,
|
|
15116
17292
|
responseStream: false,
|
|
15117
17293
|
options: {}
|
|
15118
17294
|
}
|