@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
package/dist/utils/index.js
CHANGED
|
@@ -26,16 +26,7 @@ import {
|
|
|
26
26
|
isTxBroadcast,
|
|
27
27
|
maybeApplyFee,
|
|
28
28
|
proofOfPossessionMessageHashForDepositAddress
|
|
29
|
-
} from "../chunk-
|
|
30
|
-
import {
|
|
31
|
-
calculateAvailableTokenAmount,
|
|
32
|
-
checkIfSelectedOutputsAreAvailable,
|
|
33
|
-
collectResponses,
|
|
34
|
-
filterTokenBalanceForTokenPublicKey
|
|
35
|
-
} from "../chunk-6AFUC5M2.js";
|
|
36
|
-
import "../chunk-K4BJARWM.js";
|
|
37
|
-
import "../chunk-I54FARY2.js";
|
|
38
|
-
import "../chunk-KEKGSH7B.js";
|
|
29
|
+
} from "../chunk-UXDODSDT.js";
|
|
39
30
|
import {
|
|
40
31
|
LRC_WALLET_NETWORK,
|
|
41
32
|
LRC_WALLET_NETWORK_TYPE,
|
|
@@ -45,9 +36,14 @@ import {
|
|
|
45
36
|
getNetworkFromAddress,
|
|
46
37
|
getNetworkFromString
|
|
47
38
|
} from "../chunk-Z5HIAYFT.js";
|
|
48
|
-
import
|
|
49
|
-
|
|
50
|
-
|
|
39
|
+
import {
|
|
40
|
+
calculateAvailableTokenAmount,
|
|
41
|
+
checkIfSelectedOutputsAreAvailable,
|
|
42
|
+
collectResponses,
|
|
43
|
+
filterTokenBalanceForTokenPublicKey
|
|
44
|
+
} from "../chunk-HWJWKEIU.js";
|
|
45
|
+
import "../chunk-4EMV7HHW.js";
|
|
46
|
+
import "../chunk-KMUMFYFX.js";
|
|
51
47
|
import {
|
|
52
48
|
addPrivateKeys,
|
|
53
49
|
addPublicKeys,
|
|
@@ -84,6 +80,10 @@ import {
|
|
|
84
80
|
} from "../chunk-QNNSEJ4P.js";
|
|
85
81
|
import "../chunk-VTUGIIWI.js";
|
|
86
82
|
import "../chunk-GSI4OLXZ.js";
|
|
83
|
+
import "../chunk-OBFKIEMP.js";
|
|
84
|
+
import "../chunk-I54FARY2.js";
|
|
85
|
+
import "../chunk-HMLOC6TE.js";
|
|
86
|
+
import "../chunk-BGGEVUJK.js";
|
|
87
87
|
import "../chunk-MVRQ5US7.js";
|
|
88
88
|
export {
|
|
89
89
|
DEFAULT_FEE_SATS,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@buildonspark/spark-sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.46",
|
|
4
4
|
"author": "",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -92,6 +92,14 @@
|
|
|
92
92
|
"./native": {
|
|
93
93
|
"import": "./dist/native/index.js",
|
|
94
94
|
"require": "./dist/native/index.cjs"
|
|
95
|
+
},
|
|
96
|
+
"./native/spark-frost": {
|
|
97
|
+
"import": "./dist/spark_bindings/native/index.js",
|
|
98
|
+
"require": "./dist/spark_bindings/native/index.cjs"
|
|
99
|
+
},
|
|
100
|
+
"./spark-frost": {
|
|
101
|
+
"import": "./dist/spark_bindings/wasm/index.js",
|
|
102
|
+
"require": "./dist/spark_bindings/wasm/index.cjs"
|
|
95
103
|
}
|
|
96
104
|
},
|
|
97
105
|
"browser": {
|
|
@@ -149,7 +157,7 @@
|
|
|
149
157
|
"dependencies": {
|
|
150
158
|
"@bitcoinerlab/secp256k1": "^1.1.1",
|
|
151
159
|
"@bufbuild/protobuf": "^2.2.5",
|
|
152
|
-
"@buildonspark/lrc20-sdk": "0.0.
|
|
160
|
+
"@buildonspark/lrc20-sdk": "0.0.59",
|
|
153
161
|
"@lightsparkdev/core": "^1.4.2",
|
|
154
162
|
"@noble/curves": "^1.8.0",
|
|
155
163
|
"@noble/hashes": "^1.7.1",
|
|
@@ -168,6 +176,7 @@
|
|
|
168
176
|
"eciesjs": "^0.4.13",
|
|
169
177
|
"eventemitter3": "^5.0.1",
|
|
170
178
|
"js-base64": "^3.7.7",
|
|
179
|
+
"light-bolt11-decoder": "^3.2.0",
|
|
171
180
|
"nice-grpc": "^2.1.10",
|
|
172
181
|
"nice-grpc-client-middleware-retry": "^3.1.10",
|
|
173
182
|
"nice-grpc-common": "^2.0.2",
|
|
@@ -181,6 +190,17 @@
|
|
|
181
190
|
"react-native": ">=0.71.0",
|
|
182
191
|
"react-native-get-random-values": ">=1.11.0"
|
|
183
192
|
},
|
|
193
|
+
"peerDependenciesMeta": {
|
|
194
|
+
"react": {
|
|
195
|
+
"optional": true
|
|
196
|
+
},
|
|
197
|
+
"react-native": {
|
|
198
|
+
"optional": true
|
|
199
|
+
},
|
|
200
|
+
"react-native-get-random-values": {
|
|
201
|
+
"optional": true
|
|
202
|
+
}
|
|
203
|
+
},
|
|
184
204
|
"engines": {
|
|
185
205
|
"node": ">=18.0.0"
|
|
186
206
|
},
|
package/src/index.node.ts
CHANGED
package/src/index.ts
CHANGED
package/src/native/index.ts
CHANGED
|
@@ -3,6 +3,5 @@ export { ReactNativeSparkSigner } from "../signer/signer.react-native.js";
|
|
|
3
3
|
/* Enable some consumers to use named import DefaultSparkSigner regardless of module, see LIG-7662 */
|
|
4
4
|
export { ReactNativeSparkSigner as DefaultSparkSigner } from "../signer/signer.react-native.js";
|
|
5
5
|
export { SparkWallet } from "../spark-wallet/spark-wallet.js";
|
|
6
|
-
export { getLatestDepositTxId } from "../utils/mempool.js";
|
|
7
|
-
export { createDummyTx } from "../spark_bindings/native/index.js";
|
|
8
6
|
export * from "../utils/index.js";
|
|
7
|
+
export { getLatestDepositTxId } from "../utils/mempool.js";
|
package/src/proto/common.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
2
|
// versions:
|
|
3
|
-
// protoc-gen-ts_proto v2.7.
|
|
3
|
+
// protoc-gen-ts_proto v2.7.5
|
|
4
4
|
// protoc v5.29.3
|
|
5
5
|
// source: common.proto
|
|
6
6
|
|
|
@@ -99,7 +99,7 @@ export const PackageMap: MessageFns<PackageMap> = {
|
|
|
99
99
|
|
|
100
100
|
decode(input: BinaryReader | Uint8Array, length?: number): PackageMap {
|
|
101
101
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
102
|
-
|
|
102
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
103
103
|
const message = createBasePackageMap();
|
|
104
104
|
while (reader.pos < end) {
|
|
105
105
|
const tag = reader.uint32();
|
|
@@ -184,7 +184,7 @@ export const PackageMap_PackagesEntry: MessageFns<PackageMap_PackagesEntry> = {
|
|
|
184
184
|
|
|
185
185
|
decode(input: BinaryReader | Uint8Array, length?: number): PackageMap_PackagesEntry {
|
|
186
186
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
187
|
-
|
|
187
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
188
188
|
const message = createBasePackageMap_PackagesEntry();
|
|
189
189
|
while (reader.pos < end) {
|
|
190
190
|
const tag = reader.uint32();
|
|
@@ -260,7 +260,7 @@ export const SigningCommitment: MessageFns<SigningCommitment> = {
|
|
|
260
260
|
|
|
261
261
|
decode(input: BinaryReader | Uint8Array, length?: number): SigningCommitment {
|
|
262
262
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
263
|
-
|
|
263
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
264
264
|
const message = createBaseSigningCommitment();
|
|
265
265
|
while (reader.pos < end) {
|
|
266
266
|
const tag = reader.uint32();
|
|
@@ -333,7 +333,7 @@ export const SigningResult: MessageFns<SigningResult> = {
|
|
|
333
333
|
|
|
334
334
|
decode(input: BinaryReader | Uint8Array, length?: number): SigningResult {
|
|
335
335
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
336
|
-
|
|
336
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
337
337
|
const message = createBaseSigningResult();
|
|
338
338
|
while (reader.pos < end) {
|
|
339
339
|
const tag = reader.uint32();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
2
|
// versions:
|
|
3
|
-
// protoc-gen-ts_proto v2.7.
|
|
3
|
+
// protoc-gen-ts_proto v2.7.5
|
|
4
4
|
// protoc v5.29.3
|
|
5
5
|
// source: google/protobuf/descriptor.proto
|
|
6
6
|
|
|
@@ -2066,7 +2066,7 @@ export const FileDescriptorSet: MessageFns<FileDescriptorSet> = {
|
|
|
2066
2066
|
|
|
2067
2067
|
decode(input: BinaryReader | Uint8Array, length?: number): FileDescriptorSet {
|
|
2068
2068
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2069
|
-
|
|
2069
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2070
2070
|
const message = createBaseFileDescriptorSet();
|
|
2071
2071
|
while (reader.pos < end) {
|
|
2072
2072
|
const tag = reader.uint32();
|
|
@@ -2180,7 +2180,7 @@ export const FileDescriptorProto: MessageFns<FileDescriptorProto> = {
|
|
|
2180
2180
|
|
|
2181
2181
|
decode(input: BinaryReader | Uint8Array, length?: number): FileDescriptorProto {
|
|
2182
2182
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2183
|
-
|
|
2183
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2184
2184
|
const message = createBaseFileDescriptorProto();
|
|
2185
2185
|
while (reader.pos < end) {
|
|
2186
2186
|
const tag = reader.uint32();
|
|
@@ -2472,7 +2472,7 @@ export const DescriptorProto: MessageFns<DescriptorProto> = {
|
|
|
2472
2472
|
|
|
2473
2473
|
decode(input: BinaryReader | Uint8Array, length?: number): DescriptorProto {
|
|
2474
2474
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2475
|
-
|
|
2475
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2476
2476
|
const message = createBaseDescriptorProto();
|
|
2477
2477
|
while (reader.pos < end) {
|
|
2478
2478
|
const tag = reader.uint32();
|
|
@@ -2673,7 +2673,7 @@ export const DescriptorProto_ExtensionRange: MessageFns<DescriptorProto_Extensio
|
|
|
2673
2673
|
|
|
2674
2674
|
decode(input: BinaryReader | Uint8Array, length?: number): DescriptorProto_ExtensionRange {
|
|
2675
2675
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2676
|
-
|
|
2676
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2677
2677
|
const message = createBaseDescriptorProto_ExtensionRange();
|
|
2678
2678
|
while (reader.pos < end) {
|
|
2679
2679
|
const tag = reader.uint32();
|
|
@@ -2764,7 +2764,7 @@ export const DescriptorProto_ReservedRange: MessageFns<DescriptorProto_ReservedR
|
|
|
2764
2764
|
|
|
2765
2765
|
decode(input: BinaryReader | Uint8Array, length?: number): DescriptorProto_ReservedRange {
|
|
2766
2766
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2767
|
-
|
|
2767
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2768
2768
|
const message = createBaseDescriptorProto_ReservedRange();
|
|
2769
2769
|
while (reader.pos < end) {
|
|
2770
2770
|
const tag = reader.uint32();
|
|
@@ -2846,7 +2846,7 @@ export const ExtensionRangeOptions: MessageFns<ExtensionRangeOptions> = {
|
|
|
2846
2846
|
|
|
2847
2847
|
decode(input: BinaryReader | Uint8Array, length?: number): ExtensionRangeOptions {
|
|
2848
2848
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2849
|
-
|
|
2849
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2850
2850
|
const message = createBaseExtensionRangeOptions();
|
|
2851
2851
|
while (reader.pos < end) {
|
|
2852
2852
|
const tag = reader.uint32();
|
|
@@ -2965,7 +2965,7 @@ export const ExtensionRangeOptions_Declaration: MessageFns<ExtensionRangeOptions
|
|
|
2965
2965
|
|
|
2966
2966
|
decode(input: BinaryReader | Uint8Array, length?: number): ExtensionRangeOptions_Declaration {
|
|
2967
2967
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2968
|
-
|
|
2968
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2969
2969
|
const message = createBaseExtensionRangeOptions_Declaration();
|
|
2970
2970
|
while (reader.pos < end) {
|
|
2971
2971
|
const tag = reader.uint32();
|
|
@@ -3119,7 +3119,7 @@ export const FieldDescriptorProto: MessageFns<FieldDescriptorProto> = {
|
|
|
3119
3119
|
|
|
3120
3120
|
decode(input: BinaryReader | Uint8Array, length?: number): FieldDescriptorProto {
|
|
3121
3121
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3122
|
-
|
|
3122
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3123
3123
|
const message = createBaseFieldDescriptorProto();
|
|
3124
3124
|
while (reader.pos < end) {
|
|
3125
3125
|
const tag = reader.uint32();
|
|
@@ -3314,7 +3314,7 @@ export const OneofDescriptorProto: MessageFns<OneofDescriptorProto> = {
|
|
|
3314
3314
|
|
|
3315
3315
|
decode(input: BinaryReader | Uint8Array, length?: number): OneofDescriptorProto {
|
|
3316
3316
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3317
|
-
|
|
3317
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3318
3318
|
const message = createBaseOneofDescriptorProto();
|
|
3319
3319
|
while (reader.pos < end) {
|
|
3320
3320
|
const tag = reader.uint32();
|
|
@@ -3401,7 +3401,7 @@ export const EnumDescriptorProto: MessageFns<EnumDescriptorProto> = {
|
|
|
3401
3401
|
|
|
3402
3402
|
decode(input: BinaryReader | Uint8Array, length?: number): EnumDescriptorProto {
|
|
3403
3403
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3404
|
-
|
|
3404
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3405
3405
|
const message = createBaseEnumDescriptorProto();
|
|
3406
3406
|
while (reader.pos < end) {
|
|
3407
3407
|
const tag = reader.uint32();
|
|
@@ -3525,7 +3525,7 @@ export const EnumDescriptorProto_EnumReservedRange: MessageFns<EnumDescriptorPro
|
|
|
3525
3525
|
|
|
3526
3526
|
decode(input: BinaryReader | Uint8Array, length?: number): EnumDescriptorProto_EnumReservedRange {
|
|
3527
3527
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3528
|
-
|
|
3528
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3529
3529
|
const message = createBaseEnumDescriptorProto_EnumReservedRange();
|
|
3530
3530
|
while (reader.pos < end) {
|
|
3531
3531
|
const tag = reader.uint32();
|
|
@@ -3604,7 +3604,7 @@ export const EnumValueDescriptorProto: MessageFns<EnumValueDescriptorProto> = {
|
|
|
3604
3604
|
|
|
3605
3605
|
decode(input: BinaryReader | Uint8Array, length?: number): EnumValueDescriptorProto {
|
|
3606
3606
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3607
|
-
|
|
3607
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3608
3608
|
const message = createBaseEnumValueDescriptorProto();
|
|
3609
3609
|
while (reader.pos < end) {
|
|
3610
3610
|
const tag = reader.uint32();
|
|
@@ -3698,7 +3698,7 @@ export const ServiceDescriptorProto: MessageFns<ServiceDescriptorProto> = {
|
|
|
3698
3698
|
|
|
3699
3699
|
decode(input: BinaryReader | Uint8Array, length?: number): ServiceDescriptorProto {
|
|
3700
3700
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3701
|
-
|
|
3701
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3702
3702
|
const message = createBaseServiceDescriptorProto();
|
|
3703
3703
|
while (reader.pos < end) {
|
|
3704
3704
|
const tag = reader.uint32();
|
|
@@ -3810,7 +3810,7 @@ export const MethodDescriptorProto: MessageFns<MethodDescriptorProto> = {
|
|
|
3810
3810
|
|
|
3811
3811
|
decode(input: BinaryReader | Uint8Array, length?: number): MethodDescriptorProto {
|
|
3812
3812
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3813
|
-
|
|
3813
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3814
3814
|
const message = createBaseMethodDescriptorProto();
|
|
3815
3815
|
while (reader.pos < end) {
|
|
3816
3816
|
const tag = reader.uint32();
|
|
@@ -4019,7 +4019,7 @@ export const FileOptions: MessageFns<FileOptions> = {
|
|
|
4019
4019
|
|
|
4020
4020
|
decode(input: BinaryReader | Uint8Array, length?: number): FileOptions {
|
|
4021
4021
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
4022
|
-
|
|
4022
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
4023
4023
|
const message = createBaseFileOptions();
|
|
4024
4024
|
while (reader.pos < end) {
|
|
4025
4025
|
const tag = reader.uint32();
|
|
@@ -4373,7 +4373,7 @@ export const MessageOptions: MessageFns<MessageOptions> = {
|
|
|
4373
4373
|
|
|
4374
4374
|
decode(input: BinaryReader | Uint8Array, length?: number): MessageOptions {
|
|
4375
4375
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
4376
|
-
|
|
4376
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
4377
4377
|
const message = createBaseMessageOptions();
|
|
4378
4378
|
while (reader.pos < end) {
|
|
4379
4379
|
const tag = reader.uint32();
|
|
@@ -4579,7 +4579,7 @@ export const FieldOptions: MessageFns<FieldOptions> = {
|
|
|
4579
4579
|
|
|
4580
4580
|
decode(input: BinaryReader | Uint8Array, length?: number): FieldOptions {
|
|
4581
4581
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
4582
|
-
|
|
4582
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
4583
4583
|
const message = createBaseFieldOptions();
|
|
4584
4584
|
while (reader.pos < end) {
|
|
4585
4585
|
const tag = reader.uint32();
|
|
@@ -4833,7 +4833,7 @@ export const FieldOptions_EditionDefault: MessageFns<FieldOptions_EditionDefault
|
|
|
4833
4833
|
|
|
4834
4834
|
decode(input: BinaryReader | Uint8Array, length?: number): FieldOptions_EditionDefault {
|
|
4835
4835
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
4836
|
-
|
|
4836
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
4837
4837
|
const message = createBaseFieldOptions_EditionDefault();
|
|
4838
4838
|
while (reader.pos < end) {
|
|
4839
4839
|
const tag = reader.uint32();
|
|
@@ -4915,7 +4915,7 @@ export const FieldOptions_FeatureSupport: MessageFns<FieldOptions_FeatureSupport
|
|
|
4915
4915
|
|
|
4916
4916
|
decode(input: BinaryReader | Uint8Array, length?: number): FieldOptions_FeatureSupport {
|
|
4917
4917
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
4918
|
-
|
|
4918
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
4919
4919
|
const message = createBaseFieldOptions_FeatureSupport();
|
|
4920
4920
|
while (reader.pos < end) {
|
|
4921
4921
|
const tag = reader.uint32();
|
|
@@ -5017,7 +5017,7 @@ export const OneofOptions: MessageFns<OneofOptions> = {
|
|
|
5017
5017
|
|
|
5018
5018
|
decode(input: BinaryReader | Uint8Array, length?: number): OneofOptions {
|
|
5019
5019
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
5020
|
-
|
|
5020
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
5021
5021
|
const message = createBaseOneofOptions();
|
|
5022
5022
|
while (reader.pos < end) {
|
|
5023
5023
|
const tag = reader.uint32();
|
|
@@ -5114,7 +5114,7 @@ export const EnumOptions: MessageFns<EnumOptions> = {
|
|
|
5114
5114
|
|
|
5115
5115
|
decode(input: BinaryReader | Uint8Array, length?: number): EnumOptions {
|
|
5116
5116
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
5117
|
-
|
|
5117
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
5118
5118
|
const message = createBaseEnumOptions();
|
|
5119
5119
|
while (reader.pos < end) {
|
|
5120
5120
|
const tag = reader.uint32();
|
|
@@ -5252,7 +5252,7 @@ export const EnumValueOptions: MessageFns<EnumValueOptions> = {
|
|
|
5252
5252
|
|
|
5253
5253
|
decode(input: BinaryReader | Uint8Array, length?: number): EnumValueOptions {
|
|
5254
5254
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
5255
|
-
|
|
5255
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
5256
5256
|
const message = createBaseEnumValueOptions();
|
|
5257
5257
|
while (reader.pos < end) {
|
|
5258
5258
|
const tag = reader.uint32();
|
|
@@ -5378,7 +5378,7 @@ export const ServiceOptions: MessageFns<ServiceOptions> = {
|
|
|
5378
5378
|
|
|
5379
5379
|
decode(input: BinaryReader | Uint8Array, length?: number): ServiceOptions {
|
|
5380
5380
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
5381
|
-
|
|
5381
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
5382
5382
|
const message = createBaseServiceOptions();
|
|
5383
5383
|
while (reader.pos < end) {
|
|
5384
5384
|
const tag = reader.uint32();
|
|
@@ -5477,7 +5477,7 @@ export const MethodOptions: MessageFns<MethodOptions> = {
|
|
|
5477
5477
|
|
|
5478
5478
|
decode(input: BinaryReader | Uint8Array, length?: number): MethodOptions {
|
|
5479
5479
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
5480
|
-
|
|
5480
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
5481
5481
|
const message = createBaseMethodOptions();
|
|
5482
5482
|
while (reader.pos < end) {
|
|
5483
5483
|
const tag = reader.uint32();
|
|
@@ -5608,7 +5608,7 @@ export const UninterpretedOption: MessageFns<UninterpretedOption> = {
|
|
|
5608
5608
|
|
|
5609
5609
|
decode(input: BinaryReader | Uint8Array, length?: number): UninterpretedOption {
|
|
5610
5610
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
5611
|
-
|
|
5611
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
5612
5612
|
const message = createBaseUninterpretedOption();
|
|
5613
5613
|
while (reader.pos < end) {
|
|
5614
5614
|
const tag = reader.uint32();
|
|
@@ -5751,7 +5751,7 @@ export const UninterpretedOption_NamePart: MessageFns<UninterpretedOption_NamePa
|
|
|
5751
5751
|
|
|
5752
5752
|
decode(input: BinaryReader | Uint8Array, length?: number): UninterpretedOption_NamePart {
|
|
5753
5753
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
5754
|
-
|
|
5754
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
5755
5755
|
const message = createBaseUninterpretedOption_NamePart();
|
|
5756
5756
|
while (reader.pos < end) {
|
|
5757
5757
|
const tag = reader.uint32();
|
|
@@ -5846,7 +5846,7 @@ export const FeatureSet: MessageFns<FeatureSet> = {
|
|
|
5846
5846
|
|
|
5847
5847
|
decode(input: BinaryReader | Uint8Array, length?: number): FeatureSet {
|
|
5848
5848
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
5849
|
-
|
|
5849
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
5850
5850
|
const message = createBaseFeatureSet();
|
|
5851
5851
|
while (reader.pos < end) {
|
|
5852
5852
|
const tag = reader.uint32();
|
|
@@ -5979,7 +5979,7 @@ export const FeatureSetDefaults: MessageFns<FeatureSetDefaults> = {
|
|
|
5979
5979
|
|
|
5980
5980
|
decode(input: BinaryReader | Uint8Array, length?: number): FeatureSetDefaults {
|
|
5981
5981
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
5982
|
-
|
|
5982
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
5983
5983
|
const message = createBaseFeatureSetDefaults();
|
|
5984
5984
|
while (reader.pos < end) {
|
|
5985
5985
|
const tag = reader.uint32();
|
|
@@ -6076,7 +6076,7 @@ export const FeatureSetDefaults_FeatureSetEditionDefault: MessageFns<FeatureSetD
|
|
|
6076
6076
|
|
|
6077
6077
|
decode(input: BinaryReader | Uint8Array, length?: number): FeatureSetDefaults_FeatureSetEditionDefault {
|
|
6078
6078
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
6079
|
-
|
|
6079
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
6080
6080
|
const message = createBaseFeatureSetDefaults_FeatureSetEditionDefault();
|
|
6081
6081
|
while (reader.pos < end) {
|
|
6082
6082
|
const tag = reader.uint32();
|
|
@@ -6170,7 +6170,7 @@ export const SourceCodeInfo: MessageFns<SourceCodeInfo> = {
|
|
|
6170
6170
|
|
|
6171
6171
|
decode(input: BinaryReader | Uint8Array, length?: number): SourceCodeInfo {
|
|
6172
6172
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
6173
|
-
|
|
6173
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
6174
6174
|
const message = createBaseSourceCodeInfo();
|
|
6175
6175
|
while (reader.pos < end) {
|
|
6176
6176
|
const tag = reader.uint32();
|
|
@@ -6248,7 +6248,7 @@ export const SourceCodeInfo_Location: MessageFns<SourceCodeInfo_Location> = {
|
|
|
6248
6248
|
|
|
6249
6249
|
decode(input: BinaryReader | Uint8Array, length?: number): SourceCodeInfo_Location {
|
|
6250
6250
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
6251
|
-
|
|
6251
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
6252
6252
|
const message = createBaseSourceCodeInfo_Location();
|
|
6253
6253
|
while (reader.pos < end) {
|
|
6254
6254
|
const tag = reader.uint32();
|
|
@@ -6382,7 +6382,7 @@ export const GeneratedCodeInfo: MessageFns<GeneratedCodeInfo> = {
|
|
|
6382
6382
|
|
|
6383
6383
|
decode(input: BinaryReader | Uint8Array, length?: number): GeneratedCodeInfo {
|
|
6384
6384
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
6385
|
-
|
|
6385
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
6386
6386
|
const message = createBaseGeneratedCodeInfo();
|
|
6387
6387
|
while (reader.pos < end) {
|
|
6388
6388
|
const tag = reader.uint32();
|
|
@@ -6458,7 +6458,7 @@ export const GeneratedCodeInfo_Annotation: MessageFns<GeneratedCodeInfo_Annotati
|
|
|
6458
6458
|
|
|
6459
6459
|
decode(input: BinaryReader | Uint8Array, length?: number): GeneratedCodeInfo_Annotation {
|
|
6460
6460
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
6461
|
-
|
|
6461
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
6462
6462
|
const message = createBaseGeneratedCodeInfo_Annotation();
|
|
6463
6463
|
while (reader.pos < end) {
|
|
6464
6464
|
const tag = reader.uint32();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
2
|
// versions:
|
|
3
|
-
// protoc-gen-ts_proto v2.7.
|
|
3
|
+
// protoc-gen-ts_proto v2.7.5
|
|
4
4
|
// protoc v5.29.3
|
|
5
5
|
// source: google/protobuf/duration.proto
|
|
6
6
|
|
|
@@ -104,7 +104,7 @@ export const Duration: MessageFns<Duration> = {
|
|
|
104
104
|
|
|
105
105
|
decode(input: BinaryReader | Uint8Array, length?: number): Duration {
|
|
106
106
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
107
|
-
|
|
107
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
108
108
|
const message = createBaseDuration();
|
|
109
109
|
while (reader.pos < end) {
|
|
110
110
|
const tag = reader.uint32();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
2
|
// versions:
|
|
3
|
-
// protoc-gen-ts_proto v2.7.
|
|
3
|
+
// protoc-gen-ts_proto v2.7.5
|
|
4
4
|
// protoc v5.29.3
|
|
5
5
|
// source: google/protobuf/empty.proto
|
|
6
6
|
|
|
@@ -32,7 +32,7 @@ export const Empty: MessageFns<Empty> = {
|
|
|
32
32
|
|
|
33
33
|
decode(input: BinaryReader | Uint8Array, length?: number): Empty {
|
|
34
34
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
35
|
-
|
|
35
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
36
36
|
const message = createBaseEmpty();
|
|
37
37
|
while (reader.pos < end) {
|
|
38
38
|
const tag = reader.uint32();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
2
|
// versions:
|
|
3
|
-
// protoc-gen-ts_proto v2.7.
|
|
3
|
+
// protoc-gen-ts_proto v2.7.5
|
|
4
4
|
// protoc v5.29.3
|
|
5
5
|
// source: google/protobuf/timestamp.proto
|
|
6
6
|
|
|
@@ -133,7 +133,7 @@ export const Timestamp: MessageFns<Timestamp> = {
|
|
|
133
133
|
|
|
134
134
|
decode(input: BinaryReader | Uint8Array, length?: number): Timestamp {
|
|
135
135
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
136
|
-
|
|
136
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
137
137
|
const message = createBaseTimestamp();
|
|
138
138
|
while (reader.pos < end) {
|
|
139
139
|
const tag = reader.uint32();
|
package/src/proto/mock.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
2
|
// versions:
|
|
3
|
-
// protoc-gen-ts_proto v2.7.
|
|
3
|
+
// protoc-gen-ts_proto v2.7.5
|
|
4
4
|
// protoc v5.29.3
|
|
5
5
|
// source: mock.proto
|
|
6
6
|
|
|
@@ -81,7 +81,7 @@ export const CleanUpPreimageShareRequest: MessageFns<CleanUpPreimageShareRequest
|
|
|
81
81
|
|
|
82
82
|
decode(input: BinaryReader | Uint8Array, length?: number): CleanUpPreimageShareRequest {
|
|
83
83
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
84
|
-
|
|
84
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
85
85
|
const message = createBaseCleanUpPreimageShareRequest();
|
|
86
86
|
while (reader.pos < end) {
|
|
87
87
|
const tag = reader.uint32();
|
|
@@ -139,7 +139,7 @@ export const InterruptTransferRequest: MessageFns<InterruptTransferRequest> = {
|
|
|
139
139
|
|
|
140
140
|
decode(input: BinaryReader | Uint8Array, length?: number): InterruptTransferRequest {
|
|
141
141
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
142
|
-
|
|
142
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
143
143
|
const message = createBaseInterruptTransferRequest();
|
|
144
144
|
while (reader.pos < end) {
|
|
145
145
|
const tag = reader.uint32();
|
|
@@ -202,7 +202,7 @@ export const UpdateNodesStatusRequest: MessageFns<UpdateNodesStatusRequest> = {
|
|
|
202
202
|
|
|
203
203
|
decode(input: BinaryReader | Uint8Array, length?: number): UpdateNodesStatusRequest {
|
|
204
204
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
205
|
-
|
|
205
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
206
206
|
const message = createBaseUpdateNodesStatusRequest();
|
|
207
207
|
while (reader.pos < end) {
|
|
208
208
|
const tag = reader.uint32();
|