@buildonspark/spark-sdk 0.0.9 → 0.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/services/config.d.ts +20 -16
- package/dist/services/config.js +26 -18
- package/dist/services/config.js.map +1 -1
- package/dist/services/connection.js +1 -1
- package/dist/services/connection.js.map +1 -1
- package/dist/services/deposit.js +2 -2
- package/dist/services/deposit.js.map +1 -1
- package/dist/services/lightning.js +4 -4
- package/dist/services/lightning.js.map +1 -1
- package/dist/services/token-transactions.js +8 -7
- package/dist/services/token-transactions.js.map +1 -1
- package/dist/services/transfer.js +12 -10
- package/dist/services/transfer.js.map +1 -1
- package/dist/spark-sdk.d.ts +2 -3
- package/dist/spark-sdk.js +2 -7
- package/dist/spark-sdk.js.map +1 -1
- package/dist/tests/coop-exit.test.js +8 -5
- package/dist/tests/coop-exit.test.js.map +1 -1
- package/dist/tests/deposit.test.js +8 -10
- package/dist/tests/deposit.test.js.map +1 -1
- package/dist/tests/jest.setup.d.ts +1 -0
- package/dist/tests/jest.setup.js +8 -0
- package/dist/tests/jest.setup.js.map +1 -0
- package/dist/tests/keys.test.js +0 -1
- package/dist/tests/keys.test.js.map +1 -1
- package/dist/tests/lightning.test.js +10 -7
- package/dist/tests/lightning.test.js.map +1 -1
- package/dist/tests/swap.test.js +8 -5
- package/dist/tests/swap.test.js.map +1 -1
- package/dist/tests/test-util.d.ts +8 -44
- package/dist/tests/test-util.js +10 -7
- package/dist/tests/test-util.js.map +1 -1
- package/dist/tests/transfer.test.js +30 -19
- package/dist/tests/transfer.test.js.map +1 -1
- package/package.json +2 -2
- package/dist/LightningSendRequest-CNJFhLVc.d.cts +0 -374
- package/dist/LightningSendRequest-CNJFhLVc.d.ts +0 -374
- package/dist/auto-bind.d.ts +0 -7
- package/dist/auto-bind.js +0 -41
- package/dist/auto-bind.js.map +0 -1
- package/dist/chunk-5SAJ52IV.js +0 -10309
- package/dist/chunk-COXVABEU.js +0 -1524
- package/dist/chunk-F4JW24C4.js +0 -78
- package/dist/chunk-H4A2WXR3.js +0 -331
- package/dist/chunk-HTNOFUHX.js +0 -1547
- package/dist/chunk-JQFHUW4I.js +0 -21
- package/dist/chunk-K3Y7DVLD.js +0 -19
- package/dist/chunk-NDKNVHGP.js +0 -127
- package/dist/chunk-PMVJGQCP.js +0 -627
- package/dist/chunk-QX3ZJH2S.js +0 -527
- package/dist/chunk-SL2YOBVM.js +0 -127
- package/dist/chunk-SWCOMKD6.js +0 -333
- package/dist/chunk-SWFFNBSR.js +0 -1244
- package/dist/chunk-WLK5POBV.js +0 -527
- package/dist/chunk-WZ74TD7N.js +0 -660
- package/dist/chunk-WZYVI3M3.js +0 -1244
- package/dist/chunk-ZGU3XW7W.js +0 -78
- package/dist/connection-BgWj7Hnd.d.cts +0 -77
- package/dist/connection-BgbVJtzh.d.ts +0 -77
- package/dist/connection-DX-9yFl8.d.ts +0 -77
- package/dist/connection-hITj9Mgk.d.cts +0 -77
- package/dist/graphql/objects/index.cjs +0 -626
- package/dist/graphql/objects/index.d.cts +0 -140
- package/dist/index.cjs +0 -17202
- package/dist/index.d.cts +0 -413
- package/dist/index.d.ts +0 -413
- package/dist/index.js +0 -3390
- package/dist/proto/spark.cjs +0 -10451
- package/dist/proto/spark.d.cts +0 -3
- package/dist/services/index.cjs +0 -12503
- package/dist/services/index.d.cts +0 -23
- package/dist/services/index.d.ts +0 -23
- package/dist/services/index.js +0 -17
- package/dist/signer/signer.cjs +0 -894
- package/dist/signer/signer.d.cts +0 -5
- package/dist/signer-BaC_ZP1g.d.ts +0 -138
- package/dist/signer-C6h1OnSQ.d.cts +0 -138
- package/dist/signer-CO4owhHI.d.ts +0 -154
- package/dist/signer-DDkpXvNZ.d.cts +0 -154
- package/dist/spark-BUTdOtMz.d.cts +0 -1170
- package/dist/spark-BUTdOtMz.d.ts +0 -1170
- package/dist/tests/test-util.cjs +0 -12269
- package/dist/tests/test-util.d.cts +0 -90
- package/dist/utils/index.cjs +0 -1825
- package/dist/utils/index.d.cts +0 -280
package/dist/spark-BUTdOtMz.d.ts
DELETED
|
@@ -1,1170 +0,0 @@
|
|
|
1
|
-
import { BinaryWriter, BinaryReader } from '@bufbuild/protobuf/wire';
|
|
2
|
-
import { CallOptions, CallContext } from 'nice-grpc-common';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* A generic empty message that you can re-use to avoid defining duplicated
|
|
6
|
-
* empty messages in your APIs. A typical example is to use it as the request
|
|
7
|
-
* or the response type of an API method. For instance:
|
|
8
|
-
*
|
|
9
|
-
* service Foo {
|
|
10
|
-
* rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
|
11
|
-
* }
|
|
12
|
-
*/
|
|
13
|
-
interface Empty {
|
|
14
|
-
}
|
|
15
|
-
declare const Empty: MessageFns$2<Empty>;
|
|
16
|
-
type Builtin$2 = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
17
|
-
type DeepPartial$2<T> = T extends Builtin$2 ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial$2<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial$2<U>> : T extends {
|
|
18
|
-
$case: string;
|
|
19
|
-
} ? {
|
|
20
|
-
[K in keyof Omit<T, "$case">]?: DeepPartial$2<T[K]>;
|
|
21
|
-
} & {
|
|
22
|
-
$case: T["$case"];
|
|
23
|
-
} : T extends {} ? {
|
|
24
|
-
[K in keyof T]?: DeepPartial$2<T[K]>;
|
|
25
|
-
} : Partial<T>;
|
|
26
|
-
interface MessageFns$2<T> {
|
|
27
|
-
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
28
|
-
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
29
|
-
fromJSON(object: any): T;
|
|
30
|
-
toJSON(message: T): unknown;
|
|
31
|
-
create(base?: DeepPartial$2<T>): T;
|
|
32
|
-
fromPartial(object: DeepPartial$2<T>): T;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
declare enum SignatureIntent {
|
|
36
|
-
CREATION = 0,
|
|
37
|
-
TRANSFER = 1,
|
|
38
|
-
AGGREGATE = 2,
|
|
39
|
-
REFRESH = 3,
|
|
40
|
-
EXTEND = 4,
|
|
41
|
-
UNRECOGNIZED = -1
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* A commitment for frost signing.
|
|
45
|
-
* It's a pair of public keys (points) in secp256k1 curve.
|
|
46
|
-
*/
|
|
47
|
-
interface SigningCommitment {
|
|
48
|
-
/** The public key for hiding. 33 bytes. */
|
|
49
|
-
hiding: Uint8Array;
|
|
50
|
-
/** The public key for binding. 33 bytes. */
|
|
51
|
-
binding: Uint8Array;
|
|
52
|
-
}
|
|
53
|
-
declare const SigningCommitment: MessageFns$1<SigningCommitment>;
|
|
54
|
-
type Builtin$1 = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
55
|
-
type DeepPartial$1<T> = T extends Builtin$1 ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial$1<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial$1<U>> : T extends {
|
|
56
|
-
$case: string;
|
|
57
|
-
} ? {
|
|
58
|
-
[K in keyof Omit<T, "$case">]?: DeepPartial$1<T[K]>;
|
|
59
|
-
} & {
|
|
60
|
-
$case: T["$case"];
|
|
61
|
-
} : T extends {} ? {
|
|
62
|
-
[K in keyof T]?: DeepPartial$1<T[K]>;
|
|
63
|
-
} : Partial<T>;
|
|
64
|
-
interface MessageFns$1<T> {
|
|
65
|
-
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
66
|
-
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
67
|
-
fromJSON(object: any): T;
|
|
68
|
-
toJSON(message: T): unknown;
|
|
69
|
-
create(base?: DeepPartial$1<T>): T;
|
|
70
|
-
fromPartial(object: DeepPartial$1<T>): T;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
declare const protobufPackage = "spark";
|
|
74
|
-
declare enum Network {
|
|
75
|
-
MAINNET = 0,
|
|
76
|
-
REGTEST = 1,
|
|
77
|
-
TESTNET = 2,
|
|
78
|
-
SIGNET = 3,
|
|
79
|
-
UNRECOGNIZED = -1
|
|
80
|
-
}
|
|
81
|
-
declare function networkFromJSON(object: any): Network;
|
|
82
|
-
declare function networkToJSON(object: Network): string;
|
|
83
|
-
declare enum TransferStatus {
|
|
84
|
-
TRANSFER_STATUS_SENDER_INITIATED = 0,
|
|
85
|
-
TRANSFER_STATUS_SENDER_KEY_TWEAK_PENDING = 1,
|
|
86
|
-
TRANSFER_STATUS_SENDER_KEY_TWEAKED = 2,
|
|
87
|
-
TRANSFER_STATUS_RECEIVER_KEY_TWEAKED = 3,
|
|
88
|
-
TRANSFER_STATUSR_RECEIVER_REFUND_SIGNED = 4,
|
|
89
|
-
TRANSFER_STATUS_COMPLETED = 5,
|
|
90
|
-
TRANSFER_STATUS_EXPIRED = 6,
|
|
91
|
-
UNRECOGNIZED = -1
|
|
92
|
-
}
|
|
93
|
-
declare function transferStatusFromJSON(object: any): TransferStatus;
|
|
94
|
-
declare function transferStatusToJSON(object: TransferStatus): string;
|
|
95
|
-
declare enum InitiatePreimageSwapRequest_Reason {
|
|
96
|
-
/** REASON_SEND - The associated lightning service is sending the payment. */
|
|
97
|
-
REASON_SEND = 0,
|
|
98
|
-
/** REASON_RECEIVE - The associated lightning service is receiving the payment. */
|
|
99
|
-
REASON_RECEIVE = 1,
|
|
100
|
-
UNRECOGNIZED = -1
|
|
101
|
-
}
|
|
102
|
-
declare function initiatePreimageSwapRequest_ReasonFromJSON(object: any): InitiatePreimageSwapRequest_Reason;
|
|
103
|
-
declare function initiatePreimageSwapRequest_ReasonToJSON(object: InitiatePreimageSwapRequest_Reason): string;
|
|
104
|
-
interface DepositAddressProof {
|
|
105
|
-
addressSignatures: {
|
|
106
|
-
[key: string]: Uint8Array;
|
|
107
|
-
};
|
|
108
|
-
proofOfPossessionSignature: Uint8Array;
|
|
109
|
-
}
|
|
110
|
-
declare const DepositAddressProof: MessageFns<DepositAddressProof>;
|
|
111
|
-
interface DepositAddressProof_AddressSignaturesEntry {
|
|
112
|
-
key: string;
|
|
113
|
-
value: Uint8Array;
|
|
114
|
-
}
|
|
115
|
-
declare const DepositAddressProof_AddressSignaturesEntry: MessageFns<DepositAddressProof_AddressSignaturesEntry>;
|
|
116
|
-
interface GenerateDepositAddressRequest {
|
|
117
|
-
signingPublicKey: Uint8Array;
|
|
118
|
-
identityPublicKey: Uint8Array;
|
|
119
|
-
network: Network;
|
|
120
|
-
}
|
|
121
|
-
declare const GenerateDepositAddressRequest: MessageFns<GenerateDepositAddressRequest>;
|
|
122
|
-
interface Address {
|
|
123
|
-
address: string;
|
|
124
|
-
verifyingKey: Uint8Array;
|
|
125
|
-
depositAddressProof: DepositAddressProof | undefined;
|
|
126
|
-
}
|
|
127
|
-
declare const Address: MessageFns<Address>;
|
|
128
|
-
interface GenerateDepositAddressResponse {
|
|
129
|
-
depositAddress: Address | undefined;
|
|
130
|
-
}
|
|
131
|
-
declare const GenerateDepositAddressResponse: MessageFns<GenerateDepositAddressResponse>;
|
|
132
|
-
interface UTXO {
|
|
133
|
-
rawTx: Uint8Array;
|
|
134
|
-
vout: number;
|
|
135
|
-
network: Network;
|
|
136
|
-
}
|
|
137
|
-
declare const UTXO: MessageFns<UTXO>;
|
|
138
|
-
interface NodeOutput {
|
|
139
|
-
nodeId: string;
|
|
140
|
-
vout: number;
|
|
141
|
-
}
|
|
142
|
-
declare const NodeOutput: MessageFns<NodeOutput>;
|
|
143
|
-
interface SigningJob {
|
|
144
|
-
signingPublicKey: Uint8Array;
|
|
145
|
-
rawTx: Uint8Array;
|
|
146
|
-
signingNonceCommitment: SigningCommitment | undefined;
|
|
147
|
-
}
|
|
148
|
-
declare const SigningJob: MessageFns<SigningJob>;
|
|
149
|
-
interface SigningKeyshare {
|
|
150
|
-
ownerIdentifiers: string[];
|
|
151
|
-
threshold: number;
|
|
152
|
-
}
|
|
153
|
-
declare const SigningKeyshare: MessageFns<SigningKeyshare>;
|
|
154
|
-
interface SigningResult {
|
|
155
|
-
publicKeys: {
|
|
156
|
-
[key: string]: Uint8Array;
|
|
157
|
-
};
|
|
158
|
-
signingNonceCommitments: {
|
|
159
|
-
[key: string]: SigningCommitment;
|
|
160
|
-
};
|
|
161
|
-
signatureShares: {
|
|
162
|
-
[key: string]: Uint8Array;
|
|
163
|
-
};
|
|
164
|
-
signingKeyshare: SigningKeyshare | undefined;
|
|
165
|
-
}
|
|
166
|
-
declare const SigningResult: MessageFns<SigningResult>;
|
|
167
|
-
interface SigningResult_PublicKeysEntry {
|
|
168
|
-
key: string;
|
|
169
|
-
value: Uint8Array;
|
|
170
|
-
}
|
|
171
|
-
declare const SigningResult_PublicKeysEntry: MessageFns<SigningResult_PublicKeysEntry>;
|
|
172
|
-
interface SigningResult_SigningNonceCommitmentsEntry {
|
|
173
|
-
key: string;
|
|
174
|
-
value: SigningCommitment | undefined;
|
|
175
|
-
}
|
|
176
|
-
declare const SigningResult_SigningNonceCommitmentsEntry: MessageFns<SigningResult_SigningNonceCommitmentsEntry>;
|
|
177
|
-
interface SigningResult_SignatureSharesEntry {
|
|
178
|
-
key: string;
|
|
179
|
-
value: Uint8Array;
|
|
180
|
-
}
|
|
181
|
-
declare const SigningResult_SignatureSharesEntry: MessageFns<SigningResult_SignatureSharesEntry>;
|
|
182
|
-
interface NodeSignatureShares {
|
|
183
|
-
nodeId: string;
|
|
184
|
-
nodeTxSigningResult: SigningResult | undefined;
|
|
185
|
-
refundTxSigningResult: SigningResult | undefined;
|
|
186
|
-
verifyingKey: Uint8Array;
|
|
187
|
-
}
|
|
188
|
-
declare const NodeSignatureShares: MessageFns<NodeSignatureShares>;
|
|
189
|
-
interface NodeSignatures {
|
|
190
|
-
nodeId: string;
|
|
191
|
-
nodeTxSignature: Uint8Array;
|
|
192
|
-
refundTxSignature: Uint8Array;
|
|
193
|
-
}
|
|
194
|
-
declare const NodeSignatures: MessageFns<NodeSignatures>;
|
|
195
|
-
interface StartTreeCreationRequest {
|
|
196
|
-
identityPublicKey: Uint8Array;
|
|
197
|
-
onChainUtxo: UTXO | undefined;
|
|
198
|
-
rootTxSigningJob: SigningJob | undefined;
|
|
199
|
-
refundTxSigningJob: SigningJob | undefined;
|
|
200
|
-
}
|
|
201
|
-
declare const StartTreeCreationRequest: MessageFns<StartTreeCreationRequest>;
|
|
202
|
-
interface StartTreeCreationResponse {
|
|
203
|
-
treeId: string;
|
|
204
|
-
rootNodeSignatureShares: NodeSignatureShares | undefined;
|
|
205
|
-
}
|
|
206
|
-
declare const StartTreeCreationResponse: MessageFns<StartTreeCreationResponse>;
|
|
207
|
-
/**
|
|
208
|
-
* This proto is constructed by the wallet to specify leaves it wants to spend as
|
|
209
|
-
* part of the token transaction.
|
|
210
|
-
*/
|
|
211
|
-
interface TokenLeafToSpend {
|
|
212
|
-
prevTokenTransactionHash: Uint8Array;
|
|
213
|
-
prevTokenTransactionLeafVout: number;
|
|
214
|
-
}
|
|
215
|
-
declare const TokenLeafToSpend: MessageFns<TokenLeafToSpend>;
|
|
216
|
-
interface TransferInput {
|
|
217
|
-
leavesToSpend: TokenLeafToSpend[];
|
|
218
|
-
}
|
|
219
|
-
declare const TransferInput: MessageFns<TransferInput>;
|
|
220
|
-
interface MintInput {
|
|
221
|
-
issuerPublicKey: Uint8Array;
|
|
222
|
-
/**
|
|
223
|
-
* Issuer provided timestamp of when the transaction was signed/constructed.
|
|
224
|
-
* Helps provide idempotency and ensures that each mint input signature is unique
|
|
225
|
-
* as long as multiple mint signatures are not happening at the same time. Also gives a
|
|
226
|
-
* potentially useful data point for when the issuer authorized from their
|
|
227
|
-
* perspective. Note that we have no way of proving this is accurate.
|
|
228
|
-
* TODO: Consider whether implementing generic idempotency controls and/or a
|
|
229
|
-
* random nonce would be favorable to populating this field.
|
|
230
|
-
*/
|
|
231
|
-
issuerProvidedTimestamp: number;
|
|
232
|
-
}
|
|
233
|
-
declare const MintInput: MessageFns<MintInput>;
|
|
234
|
-
/**
|
|
235
|
-
* This proto is constructed by the wallet to specify leaves it wants to create
|
|
236
|
-
* as part of a token transaction. id and revocation public key should remain unfilled
|
|
237
|
-
* so that the SE can fill them as part of the StartTokenTransaction() call.
|
|
238
|
-
*/
|
|
239
|
-
interface TokenLeafOutput {
|
|
240
|
-
id?: string | undefined;
|
|
241
|
-
ownerPublicKey: Uint8Array;
|
|
242
|
-
revocationPublicKey?: Uint8Array | undefined;
|
|
243
|
-
withdrawBondSats?: number | undefined;
|
|
244
|
-
withdrawRelativeBlockLocktime?: number | undefined;
|
|
245
|
-
tokenPublicKey: Uint8Array;
|
|
246
|
-
/** Decoded uint128 */
|
|
247
|
-
tokenAmount: Uint8Array;
|
|
248
|
-
}
|
|
249
|
-
declare const TokenLeafOutput: MessageFns<TokenLeafOutput>;
|
|
250
|
-
/**
|
|
251
|
-
* This proto is constructed by the wallet and is the core transaction data structure.
|
|
252
|
-
* This proto is deterministically hashed to generate the token_transaction_hash that
|
|
253
|
-
* is cooperatively signed by the SO group to confirm a token transaction.
|
|
254
|
-
*/
|
|
255
|
-
interface TokenTransaction {
|
|
256
|
-
/**
|
|
257
|
-
* For mint transactions issuer_public_key will be specified without any leaves_to_spend.
|
|
258
|
-
* For transfer transactions the token amount in the input leaves must match the token amount in the output leaves.
|
|
259
|
-
*/
|
|
260
|
-
tokenInput?: {
|
|
261
|
-
$case: "mintInput";
|
|
262
|
-
mintInput: MintInput;
|
|
263
|
-
} | {
|
|
264
|
-
$case: "transferInput";
|
|
265
|
-
transferInput: TransferInput;
|
|
266
|
-
} | undefined;
|
|
267
|
-
outputLeaves: TokenLeafOutput[];
|
|
268
|
-
sparkOperatorIdentityPublicKeys: Uint8Array[];
|
|
269
|
-
}
|
|
270
|
-
declare const TokenTransaction: MessageFns<TokenTransaction>;
|
|
271
|
-
interface TokenTransactionSignatures {
|
|
272
|
-
/**
|
|
273
|
-
* Filled by signing the partial token transaction hash with the owner/issuer private key.
|
|
274
|
-
* For mint transactions this will be one signature for the input issuer_public_key
|
|
275
|
-
* For transfer transactions this will be one for each leaf for the leaf owner_public_key
|
|
276
|
-
* This is a DER signature which can be between 68 and 73 bytes.
|
|
277
|
-
*/
|
|
278
|
-
ownerSignatures: Uint8Array[];
|
|
279
|
-
}
|
|
280
|
-
declare const TokenTransactionSignatures: MessageFns<TokenTransactionSignatures>;
|
|
281
|
-
interface StartTokenTransactionRequest {
|
|
282
|
-
identityPublicKey: Uint8Array;
|
|
283
|
-
partialTokenTransaction: TokenTransaction | undefined;
|
|
284
|
-
/** List of ecdsa signatures authorizing movement of tokens from the token input. */
|
|
285
|
-
tokenTransactionSignatures: TokenTransactionSignatures | undefined;
|
|
286
|
-
}
|
|
287
|
-
declare const StartTokenTransactionRequest: MessageFns<StartTokenTransactionRequest>;
|
|
288
|
-
interface StartTokenTransactionResponse {
|
|
289
|
-
/**
|
|
290
|
-
* This is the same token transaction sent by the wallet with leaf revocation public keys
|
|
291
|
-
* filled. This is the final transaction that is published and gossiped among LRC20 nodes.
|
|
292
|
-
*/
|
|
293
|
-
finalTokenTransaction: TokenTransaction | undefined;
|
|
294
|
-
/**
|
|
295
|
-
* Information for fetching and resolving the revocation keyshare on a transfer operation.
|
|
296
|
-
* Contains the threshold of keyshares needed and the SO owners of those keyshares.
|
|
297
|
-
*/
|
|
298
|
-
keyshareInfo: SigningKeyshare | undefined;
|
|
299
|
-
}
|
|
300
|
-
declare const StartTokenTransactionResponse: MessageFns<StartTokenTransactionResponse>;
|
|
301
|
-
interface OperatorSpecificTokenTransactionSignablePayload {
|
|
302
|
-
finalTokenTransactionHash: Uint8Array;
|
|
303
|
-
operatorIdentityPublicKey: Uint8Array;
|
|
304
|
-
}
|
|
305
|
-
declare const OperatorSpecificTokenTransactionSignablePayload: MessageFns<OperatorSpecificTokenTransactionSignablePayload>;
|
|
306
|
-
/**
|
|
307
|
-
* This message allows the sender of a leaf being spent to provide final evidence
|
|
308
|
-
* that it owns a leaf to an SO when requesting signing and release of the revocation keyshare.
|
|
309
|
-
*/
|
|
310
|
-
interface OperatorSpecificTokenTransactionSignature {
|
|
311
|
-
ownerPublicKey: Uint8Array;
|
|
312
|
-
/** This is a DER signature which can be between 68 and 73 bytes. */
|
|
313
|
-
ownerSignature: Uint8Array;
|
|
314
|
-
payload: OperatorSpecificTokenTransactionSignablePayload | undefined;
|
|
315
|
-
}
|
|
316
|
-
declare const OperatorSpecificTokenTransactionSignature: MessageFns<OperatorSpecificTokenTransactionSignature>;
|
|
317
|
-
interface SignTokenTransactionRequest {
|
|
318
|
-
finalTokenTransaction: TokenTransaction | undefined;
|
|
319
|
-
operatorSpecificSignatures: OperatorSpecificTokenTransactionSignature[];
|
|
320
|
-
identityPublicKey: Uint8Array;
|
|
321
|
-
}
|
|
322
|
-
declare const SignTokenTransactionRequest: MessageFns<SignTokenTransactionRequest>;
|
|
323
|
-
interface SignTokenTransactionResponse {
|
|
324
|
-
sparkOperatorSignature: Uint8Array;
|
|
325
|
-
tokenTransactionRevocationKeyshares: Uint8Array[];
|
|
326
|
-
}
|
|
327
|
-
declare const SignTokenTransactionResponse: MessageFns<SignTokenTransactionResponse>;
|
|
328
|
-
interface FinalizeTokenTransactionRequest {
|
|
329
|
-
finalTokenTransaction: TokenTransaction | undefined;
|
|
330
|
-
/**
|
|
331
|
-
* List of ordered revocation keys that map 1:1 with leaves being spent in the
|
|
332
|
-
* token transaction.
|
|
333
|
-
*/
|
|
334
|
-
leafToSpendRevocationKeys: Uint8Array[];
|
|
335
|
-
identityPublicKey: Uint8Array;
|
|
336
|
-
}
|
|
337
|
-
declare const FinalizeTokenTransactionRequest: MessageFns<FinalizeTokenTransactionRequest>;
|
|
338
|
-
interface FreezeTokensPayload {
|
|
339
|
-
ownerPublicKey: Uint8Array;
|
|
340
|
-
tokenPublicKey: Uint8Array;
|
|
341
|
-
issuerProvidedTimestamp: number;
|
|
342
|
-
operatorIdentityPublicKey: Uint8Array;
|
|
343
|
-
/** Set to false when requesting a freeze. */
|
|
344
|
-
shouldUnfreeze: boolean;
|
|
345
|
-
}
|
|
346
|
-
declare const FreezeTokensPayload: MessageFns<FreezeTokensPayload>;
|
|
347
|
-
interface FreezeTokensRequest {
|
|
348
|
-
freezeTokensPayload: FreezeTokensPayload | undefined;
|
|
349
|
-
/** This is a DER signature which can be between 68 and 73 bytes. */
|
|
350
|
-
issuerSignature: Uint8Array;
|
|
351
|
-
}
|
|
352
|
-
declare const FreezeTokensRequest: MessageFns<FreezeTokensRequest>;
|
|
353
|
-
interface FreezeTokensResponse {
|
|
354
|
-
impactedLeafIds: string[];
|
|
355
|
-
/** Decoded uint128 */
|
|
356
|
-
impactedTokenAmount: Uint8Array;
|
|
357
|
-
}
|
|
358
|
-
declare const FreezeTokensResponse: MessageFns<FreezeTokensResponse>;
|
|
359
|
-
interface GetOwnedTokenLeavesRequest {
|
|
360
|
-
ownerPublicKeys: Uint8Array[];
|
|
361
|
-
/** Optionally provide token public keys. If not set return leaves for all tokens. */
|
|
362
|
-
tokenPublicKeys: Uint8Array[];
|
|
363
|
-
}
|
|
364
|
-
declare const GetOwnedTokenLeavesRequest: MessageFns<GetOwnedTokenLeavesRequest>;
|
|
365
|
-
interface LeafWithPreviousTransactionData {
|
|
366
|
-
leaf: TokenLeafOutput | undefined;
|
|
367
|
-
previousTransactionHash: Uint8Array;
|
|
368
|
-
previousTransactionVout: number;
|
|
369
|
-
}
|
|
370
|
-
declare const LeafWithPreviousTransactionData: MessageFns<LeafWithPreviousTransactionData>;
|
|
371
|
-
interface GetOwnedTokenLeavesResponse {
|
|
372
|
-
leavesWithPreviousTransactionData: LeafWithPreviousTransactionData[];
|
|
373
|
-
}
|
|
374
|
-
declare const GetOwnedTokenLeavesResponse: MessageFns<GetOwnedTokenLeavesResponse>;
|
|
375
|
-
interface TreeNode {
|
|
376
|
-
id: string;
|
|
377
|
-
treeId: string;
|
|
378
|
-
value: number;
|
|
379
|
-
parentNodeId?: string | undefined;
|
|
380
|
-
nodeTx: Uint8Array;
|
|
381
|
-
refundTx: Uint8Array;
|
|
382
|
-
vout: number;
|
|
383
|
-
verifyingPublicKey: Uint8Array;
|
|
384
|
-
ownerIdentityPublicKey: Uint8Array;
|
|
385
|
-
signingKeyshare: SigningKeyshare | undefined;
|
|
386
|
-
status: string;
|
|
387
|
-
network: Network;
|
|
388
|
-
}
|
|
389
|
-
declare const TreeNode: MessageFns<TreeNode>;
|
|
390
|
-
interface FinalizeNodeSignaturesRequest {
|
|
391
|
-
intent: SignatureIntent;
|
|
392
|
-
nodeSignatures: NodeSignatures[];
|
|
393
|
-
}
|
|
394
|
-
declare const FinalizeNodeSignaturesRequest: MessageFns<FinalizeNodeSignaturesRequest>;
|
|
395
|
-
interface FinalizeNodeSignaturesResponse {
|
|
396
|
-
nodes: TreeNode[];
|
|
397
|
-
}
|
|
398
|
-
declare const FinalizeNodeSignaturesResponse: MessageFns<FinalizeNodeSignaturesResponse>;
|
|
399
|
-
interface SecretShare {
|
|
400
|
-
secretShare: Uint8Array;
|
|
401
|
-
proofs: Uint8Array[];
|
|
402
|
-
}
|
|
403
|
-
declare const SecretShare: MessageFns<SecretShare>;
|
|
404
|
-
interface LeafRefundTxSigningJob {
|
|
405
|
-
leafId: string;
|
|
406
|
-
refundTxSigningJob: SigningJob | undefined;
|
|
407
|
-
}
|
|
408
|
-
declare const LeafRefundTxSigningJob: MessageFns<LeafRefundTxSigningJob>;
|
|
409
|
-
interface LeafRefundTxSigningResult {
|
|
410
|
-
leafId: string;
|
|
411
|
-
refundTxSigningResult: SigningResult | undefined;
|
|
412
|
-
verifyingKey: Uint8Array;
|
|
413
|
-
}
|
|
414
|
-
declare const LeafRefundTxSigningResult: MessageFns<LeafRefundTxSigningResult>;
|
|
415
|
-
interface StartSendTransferRequest {
|
|
416
|
-
transferId: string;
|
|
417
|
-
ownerIdentityPublicKey: Uint8Array;
|
|
418
|
-
leavesToSend: LeafRefundTxSigningJob[];
|
|
419
|
-
receiverIdentityPublicKey: Uint8Array;
|
|
420
|
-
expiryTime: Date | undefined;
|
|
421
|
-
}
|
|
422
|
-
declare const StartSendTransferRequest: MessageFns<StartSendTransferRequest>;
|
|
423
|
-
interface StartSendTransferResponse {
|
|
424
|
-
transfer: Transfer | undefined;
|
|
425
|
-
signingResults: LeafRefundTxSigningResult[];
|
|
426
|
-
}
|
|
427
|
-
declare const StartSendTransferResponse: MessageFns<StartSendTransferResponse>;
|
|
428
|
-
interface SendLeafKeyTweak {
|
|
429
|
-
leafId: string;
|
|
430
|
-
secretShareTweak: SecretShare | undefined;
|
|
431
|
-
pubkeySharesTweak: {
|
|
432
|
-
[key: string]: Uint8Array;
|
|
433
|
-
};
|
|
434
|
-
secretCipher: Uint8Array;
|
|
435
|
-
/** Signature over Sha256(leaf_id||transfer_id||secret_cipher) */
|
|
436
|
-
signature: Uint8Array;
|
|
437
|
-
refundSignature: Uint8Array;
|
|
438
|
-
}
|
|
439
|
-
declare const SendLeafKeyTweak: MessageFns<SendLeafKeyTweak>;
|
|
440
|
-
interface SendLeafKeyTweak_PubkeySharesTweakEntry {
|
|
441
|
-
key: string;
|
|
442
|
-
value: Uint8Array;
|
|
443
|
-
}
|
|
444
|
-
declare const SendLeafKeyTweak_PubkeySharesTweakEntry: MessageFns<SendLeafKeyTweak_PubkeySharesTweakEntry>;
|
|
445
|
-
interface CompleteSendTransferRequest {
|
|
446
|
-
transferId: string;
|
|
447
|
-
ownerIdentityPublicKey: Uint8Array;
|
|
448
|
-
leavesToSend: SendLeafKeyTweak[];
|
|
449
|
-
}
|
|
450
|
-
declare const CompleteSendTransferRequest: MessageFns<CompleteSendTransferRequest>;
|
|
451
|
-
interface Transfer {
|
|
452
|
-
id: string;
|
|
453
|
-
senderIdentityPublicKey: Uint8Array;
|
|
454
|
-
receiverIdentityPublicKey: Uint8Array;
|
|
455
|
-
status: TransferStatus;
|
|
456
|
-
totalValue: number;
|
|
457
|
-
expiryTime: Date | undefined;
|
|
458
|
-
leaves: TransferLeaf[];
|
|
459
|
-
}
|
|
460
|
-
declare const Transfer: MessageFns<Transfer>;
|
|
461
|
-
interface TransferLeaf {
|
|
462
|
-
leaf: TreeNode | undefined;
|
|
463
|
-
secretCipher: Uint8Array;
|
|
464
|
-
signature: Uint8Array;
|
|
465
|
-
intermediateRefundTx: Uint8Array;
|
|
466
|
-
}
|
|
467
|
-
declare const TransferLeaf: MessageFns<TransferLeaf>;
|
|
468
|
-
interface CompleteSendTransferResponse {
|
|
469
|
-
transfer: Transfer | undefined;
|
|
470
|
-
}
|
|
471
|
-
declare const CompleteSendTransferResponse: MessageFns<CompleteSendTransferResponse>;
|
|
472
|
-
interface QueryPendingTransfersRequest {
|
|
473
|
-
participant?: {
|
|
474
|
-
$case: "receiverIdentityPublicKey";
|
|
475
|
-
receiverIdentityPublicKey: Uint8Array;
|
|
476
|
-
} | {
|
|
477
|
-
$case: "senderIdentityPublicKey";
|
|
478
|
-
senderIdentityPublicKey: Uint8Array;
|
|
479
|
-
} | undefined;
|
|
480
|
-
transferIds: string[];
|
|
481
|
-
}
|
|
482
|
-
declare const QueryPendingTransfersRequest: MessageFns<QueryPendingTransfersRequest>;
|
|
483
|
-
interface QueryPendingTransfersResponse {
|
|
484
|
-
transfers: Transfer[];
|
|
485
|
-
}
|
|
486
|
-
declare const QueryPendingTransfersResponse: MessageFns<QueryPendingTransfersResponse>;
|
|
487
|
-
interface ClaimLeafKeyTweak {
|
|
488
|
-
leafId: string;
|
|
489
|
-
secretShareTweak: SecretShare | undefined;
|
|
490
|
-
pubkeySharesTweak: {
|
|
491
|
-
[key: string]: Uint8Array;
|
|
492
|
-
};
|
|
493
|
-
}
|
|
494
|
-
declare const ClaimLeafKeyTweak: MessageFns<ClaimLeafKeyTweak>;
|
|
495
|
-
interface ClaimLeafKeyTweak_PubkeySharesTweakEntry {
|
|
496
|
-
key: string;
|
|
497
|
-
value: Uint8Array;
|
|
498
|
-
}
|
|
499
|
-
declare const ClaimLeafKeyTweak_PubkeySharesTweakEntry: MessageFns<ClaimLeafKeyTweak_PubkeySharesTweakEntry>;
|
|
500
|
-
interface ClaimTransferTweakKeysRequest {
|
|
501
|
-
transferId: string;
|
|
502
|
-
ownerIdentityPublicKey: Uint8Array;
|
|
503
|
-
leavesToReceive: ClaimLeafKeyTweak[];
|
|
504
|
-
}
|
|
505
|
-
declare const ClaimTransferTweakKeysRequest: MessageFns<ClaimTransferTweakKeysRequest>;
|
|
506
|
-
interface ClaimTransferSignRefundsRequest {
|
|
507
|
-
transferId: string;
|
|
508
|
-
ownerIdentityPublicKey: Uint8Array;
|
|
509
|
-
signingJobs: LeafRefundTxSigningJob[];
|
|
510
|
-
}
|
|
511
|
-
declare const ClaimTransferSignRefundsRequest: MessageFns<ClaimTransferSignRefundsRequest>;
|
|
512
|
-
interface ClaimTransferSignRefundsResponse {
|
|
513
|
-
signingResults: LeafRefundTxSigningResult[];
|
|
514
|
-
}
|
|
515
|
-
declare const ClaimTransferSignRefundsResponse: MessageFns<ClaimTransferSignRefundsResponse>;
|
|
516
|
-
interface AggregateNodesRequest {
|
|
517
|
-
nodeIds: string[];
|
|
518
|
-
signingJob: SigningJob | undefined;
|
|
519
|
-
/** Serves as a temporary identity public key, this should be get from auth process. */
|
|
520
|
-
ownerIdentityPublicKey: Uint8Array;
|
|
521
|
-
}
|
|
522
|
-
declare const AggregateNodesRequest: MessageFns<AggregateNodesRequest>;
|
|
523
|
-
interface AggregateNodesResponse {
|
|
524
|
-
aggregateSignature: SigningResult | undefined;
|
|
525
|
-
verifyingKey: Uint8Array;
|
|
526
|
-
parentNodeTx: Uint8Array;
|
|
527
|
-
parentNodeVout: number;
|
|
528
|
-
}
|
|
529
|
-
declare const AggregateNodesResponse: MessageFns<AggregateNodesResponse>;
|
|
530
|
-
interface StorePreimageShareRequest {
|
|
531
|
-
paymentHash: Uint8Array;
|
|
532
|
-
preimageShare: SecretShare | undefined;
|
|
533
|
-
threshold: number;
|
|
534
|
-
invoiceString: string;
|
|
535
|
-
userIdentityPublicKey: Uint8Array;
|
|
536
|
-
}
|
|
537
|
-
declare const StorePreimageShareRequest: MessageFns<StorePreimageShareRequest>;
|
|
538
|
-
interface RequestedSigningCommitments {
|
|
539
|
-
signingNonceCommitments: {
|
|
540
|
-
[key: string]: SigningCommitment;
|
|
541
|
-
};
|
|
542
|
-
}
|
|
543
|
-
declare const RequestedSigningCommitments: MessageFns<RequestedSigningCommitments>;
|
|
544
|
-
interface RequestedSigningCommitments_SigningNonceCommitmentsEntry {
|
|
545
|
-
key: string;
|
|
546
|
-
value: SigningCommitment | undefined;
|
|
547
|
-
}
|
|
548
|
-
declare const RequestedSigningCommitments_SigningNonceCommitmentsEntry: MessageFns<RequestedSigningCommitments_SigningNonceCommitmentsEntry>;
|
|
549
|
-
interface GetSigningCommitmentsRequest {
|
|
550
|
-
nodeIds: string[];
|
|
551
|
-
}
|
|
552
|
-
declare const GetSigningCommitmentsRequest: MessageFns<GetSigningCommitmentsRequest>;
|
|
553
|
-
interface GetSigningCommitmentsResponse {
|
|
554
|
-
signingCommitments: RequestedSigningCommitments[];
|
|
555
|
-
}
|
|
556
|
-
declare const GetSigningCommitmentsResponse: MessageFns<GetSigningCommitmentsResponse>;
|
|
557
|
-
interface SigningCommitments {
|
|
558
|
-
signingCommitments: {
|
|
559
|
-
[key: string]: SigningCommitment;
|
|
560
|
-
};
|
|
561
|
-
}
|
|
562
|
-
declare const SigningCommitments: MessageFns<SigningCommitments>;
|
|
563
|
-
interface SigningCommitments_SigningCommitmentsEntry {
|
|
564
|
-
key: string;
|
|
565
|
-
value: SigningCommitment | undefined;
|
|
566
|
-
}
|
|
567
|
-
declare const SigningCommitments_SigningCommitmentsEntry: MessageFns<SigningCommitments_SigningCommitmentsEntry>;
|
|
568
|
-
interface UserSignedRefund {
|
|
569
|
-
nodeId: string;
|
|
570
|
-
refundTx: Uint8Array;
|
|
571
|
-
userSignature: Uint8Array;
|
|
572
|
-
signingCommitments: SigningCommitments | undefined;
|
|
573
|
-
userSignatureCommitment: SigningCommitment | undefined;
|
|
574
|
-
}
|
|
575
|
-
declare const UserSignedRefund: MessageFns<UserSignedRefund>;
|
|
576
|
-
interface InvoiceAmountProof {
|
|
577
|
-
bolt11Invoice: string;
|
|
578
|
-
}
|
|
579
|
-
declare const InvoiceAmountProof: MessageFns<InvoiceAmountProof>;
|
|
580
|
-
interface InvoiceAmount {
|
|
581
|
-
valueSats: number;
|
|
582
|
-
invoiceAmountProof: InvoiceAmountProof | undefined;
|
|
583
|
-
}
|
|
584
|
-
declare const InvoiceAmount: MessageFns<InvoiceAmount>;
|
|
585
|
-
interface InitiatePreimageSwapRequest {
|
|
586
|
-
paymentHash: Uint8Array;
|
|
587
|
-
userSignedRefunds: UserSignedRefund[];
|
|
588
|
-
invoiceAmount: InvoiceAmount | undefined;
|
|
589
|
-
reason: InitiatePreimageSwapRequest_Reason;
|
|
590
|
-
transfer: StartSendTransferRequest | undefined;
|
|
591
|
-
receiverIdentityPublicKey: Uint8Array;
|
|
592
|
-
feeSats: number;
|
|
593
|
-
}
|
|
594
|
-
declare const InitiatePreimageSwapRequest: MessageFns<InitiatePreimageSwapRequest>;
|
|
595
|
-
interface InitiatePreimageSwapResponse {
|
|
596
|
-
preimage: Uint8Array;
|
|
597
|
-
transfer: Transfer | undefined;
|
|
598
|
-
}
|
|
599
|
-
declare const InitiatePreimageSwapResponse: MessageFns<InitiatePreimageSwapResponse>;
|
|
600
|
-
interface OutPoint {
|
|
601
|
-
txid: Uint8Array;
|
|
602
|
-
vout: number;
|
|
603
|
-
}
|
|
604
|
-
declare const OutPoint: MessageFns<OutPoint>;
|
|
605
|
-
interface CooperativeExitRequest {
|
|
606
|
-
transfer: StartSendTransferRequest | undefined;
|
|
607
|
-
exitId: string;
|
|
608
|
-
exitTxid: Uint8Array;
|
|
609
|
-
}
|
|
610
|
-
declare const CooperativeExitRequest: MessageFns<CooperativeExitRequest>;
|
|
611
|
-
interface CooperativeExitResponse {
|
|
612
|
-
transfer: Transfer | undefined;
|
|
613
|
-
signingResults: LeafRefundTxSigningResult[];
|
|
614
|
-
}
|
|
615
|
-
declare const CooperativeExitResponse: MessageFns<CooperativeExitResponse>;
|
|
616
|
-
interface LeafSwapRequest {
|
|
617
|
-
transfer: StartSendTransferRequest | undefined;
|
|
618
|
-
swapId: string;
|
|
619
|
-
adaptorPublicKey: Uint8Array;
|
|
620
|
-
}
|
|
621
|
-
declare const LeafSwapRequest: MessageFns<LeafSwapRequest>;
|
|
622
|
-
interface LeafSwapResponse {
|
|
623
|
-
transfer: Transfer | undefined;
|
|
624
|
-
signingResults: LeafRefundTxSigningResult[];
|
|
625
|
-
}
|
|
626
|
-
declare const LeafSwapResponse: MessageFns<LeafSwapResponse>;
|
|
627
|
-
interface RefreshTimelockRequest {
|
|
628
|
-
leafId: string;
|
|
629
|
-
ownerIdentityPublicKey: Uint8Array;
|
|
630
|
-
signingJobs: SigningJob[];
|
|
631
|
-
}
|
|
632
|
-
declare const RefreshTimelockRequest: MessageFns<RefreshTimelockRequest>;
|
|
633
|
-
interface RefreshTimelockSigningResult {
|
|
634
|
-
signingResult: SigningResult | undefined;
|
|
635
|
-
/** Should maybe just be a part of SigningResult? */
|
|
636
|
-
verifyingKey: Uint8Array;
|
|
637
|
-
}
|
|
638
|
-
declare const RefreshTimelockSigningResult: MessageFns<RefreshTimelockSigningResult>;
|
|
639
|
-
interface RefreshTimelockResponse {
|
|
640
|
-
signingResults: RefreshTimelockSigningResult[];
|
|
641
|
-
}
|
|
642
|
-
declare const RefreshTimelockResponse: MessageFns<RefreshTimelockResponse>;
|
|
643
|
-
interface ExtendLeafRequest {
|
|
644
|
-
leafId: string;
|
|
645
|
-
ownerIdentityPublicKey: Uint8Array;
|
|
646
|
-
nodeTxSigningJob: SigningJob | undefined;
|
|
647
|
-
refundTxSigningJob: SigningJob | undefined;
|
|
648
|
-
}
|
|
649
|
-
declare const ExtendLeafRequest: MessageFns<ExtendLeafRequest>;
|
|
650
|
-
interface ExtendLeafSigningResult {
|
|
651
|
-
signingResult: SigningResult | undefined;
|
|
652
|
-
verifyingKey: Uint8Array;
|
|
653
|
-
}
|
|
654
|
-
declare const ExtendLeafSigningResult: MessageFns<ExtendLeafSigningResult>;
|
|
655
|
-
interface ExtendLeafResponse {
|
|
656
|
-
leafId: string;
|
|
657
|
-
nodeTxSigningResult: ExtendLeafSigningResult | undefined;
|
|
658
|
-
refundTxSigningResult: ExtendLeafSigningResult | undefined;
|
|
659
|
-
}
|
|
660
|
-
declare const ExtendLeafResponse: MessageFns<ExtendLeafResponse>;
|
|
661
|
-
interface AddressRequestNode {
|
|
662
|
-
userPublicKey: Uint8Array;
|
|
663
|
-
children: AddressRequestNode[];
|
|
664
|
-
}
|
|
665
|
-
declare const AddressRequestNode: MessageFns<AddressRequestNode>;
|
|
666
|
-
interface PrepareTreeAddressRequest {
|
|
667
|
-
source?: {
|
|
668
|
-
$case: "parentNodeOutput";
|
|
669
|
-
parentNodeOutput: NodeOutput;
|
|
670
|
-
} | {
|
|
671
|
-
$case: "onChainUtxo";
|
|
672
|
-
onChainUtxo: UTXO;
|
|
673
|
-
} | undefined;
|
|
674
|
-
/**
|
|
675
|
-
* The tx on this node is to spend the source's utxo.
|
|
676
|
-
* The user's public key should already be registered with the SE for the root node.
|
|
677
|
-
*/
|
|
678
|
-
node: AddressRequestNode | undefined;
|
|
679
|
-
userIdentityPublicKey: Uint8Array;
|
|
680
|
-
}
|
|
681
|
-
declare const PrepareTreeAddressRequest: MessageFns<PrepareTreeAddressRequest>;
|
|
682
|
-
interface AddressNode {
|
|
683
|
-
address: Address | undefined;
|
|
684
|
-
children: AddressNode[];
|
|
685
|
-
}
|
|
686
|
-
declare const AddressNode: MessageFns<AddressNode>;
|
|
687
|
-
interface PrepareTreeAddressResponse {
|
|
688
|
-
node: AddressNode | undefined;
|
|
689
|
-
}
|
|
690
|
-
declare const PrepareTreeAddressResponse: MessageFns<PrepareTreeAddressResponse>;
|
|
691
|
-
interface CreationNode {
|
|
692
|
-
/** This is the tx that spends the parent node's output. */
|
|
693
|
-
nodeTxSigningJob: SigningJob | undefined;
|
|
694
|
-
/** The refund tx can only exist if there's no children. */
|
|
695
|
-
refundTxSigningJob: SigningJob | undefined;
|
|
696
|
-
/** The children will spend the output of the node's tx. Vout is the index of the child. */
|
|
697
|
-
children: CreationNode[];
|
|
698
|
-
}
|
|
699
|
-
declare const CreationNode: MessageFns<CreationNode>;
|
|
700
|
-
interface CreateTreeRequest {
|
|
701
|
-
source?: {
|
|
702
|
-
$case: "parentNodeOutput";
|
|
703
|
-
parentNodeOutput: NodeOutput;
|
|
704
|
-
} | {
|
|
705
|
-
$case: "onChainUtxo";
|
|
706
|
-
onChainUtxo: UTXO;
|
|
707
|
-
} | undefined;
|
|
708
|
-
/** The node should contain the tx that spends the source's utxo. */
|
|
709
|
-
node: CreationNode | undefined;
|
|
710
|
-
/** The owner of the tree. */
|
|
711
|
-
userIdentityPublicKey: Uint8Array;
|
|
712
|
-
}
|
|
713
|
-
declare const CreateTreeRequest: MessageFns<CreateTreeRequest>;
|
|
714
|
-
interface CreationResponseNode {
|
|
715
|
-
nodeId: string;
|
|
716
|
-
nodeTxSigningResult: SigningResult | undefined;
|
|
717
|
-
refundTxSigningResult: SigningResult | undefined;
|
|
718
|
-
children: CreationResponseNode[];
|
|
719
|
-
}
|
|
720
|
-
declare const CreationResponseNode: MessageFns<CreationResponseNode>;
|
|
721
|
-
interface CreateTreeResponse {
|
|
722
|
-
node: CreationResponseNode | undefined;
|
|
723
|
-
}
|
|
724
|
-
declare const CreateTreeResponse: MessageFns<CreateTreeResponse>;
|
|
725
|
-
interface SigningOperatorInfo {
|
|
726
|
-
index: number;
|
|
727
|
-
identifier: string;
|
|
728
|
-
publicKey: Uint8Array;
|
|
729
|
-
address: string;
|
|
730
|
-
}
|
|
731
|
-
declare const SigningOperatorInfo: MessageFns<SigningOperatorInfo>;
|
|
732
|
-
interface GetSigningOperatorListResponse {
|
|
733
|
-
signingOperators: {
|
|
734
|
-
[key: string]: SigningOperatorInfo;
|
|
735
|
-
};
|
|
736
|
-
}
|
|
737
|
-
declare const GetSigningOperatorListResponse: MessageFns<GetSigningOperatorListResponse>;
|
|
738
|
-
interface GetSigningOperatorListResponse_SigningOperatorsEntry {
|
|
739
|
-
key: string;
|
|
740
|
-
value: SigningOperatorInfo | undefined;
|
|
741
|
-
}
|
|
742
|
-
declare const GetSigningOperatorListResponse_SigningOperatorsEntry: MessageFns<GetSigningOperatorListResponse_SigningOperatorsEntry>;
|
|
743
|
-
interface QueryUserSignedRefundsRequest {
|
|
744
|
-
paymentHash: Uint8Array;
|
|
745
|
-
identityPublicKey: Uint8Array;
|
|
746
|
-
}
|
|
747
|
-
declare const QueryUserSignedRefundsRequest: MessageFns<QueryUserSignedRefundsRequest>;
|
|
748
|
-
interface QueryUserSignedRefundsResponse {
|
|
749
|
-
userSignedRefunds: UserSignedRefund[];
|
|
750
|
-
}
|
|
751
|
-
declare const QueryUserSignedRefundsResponse: MessageFns<QueryUserSignedRefundsResponse>;
|
|
752
|
-
interface ProvidePreimageRequest {
|
|
753
|
-
paymentHash: Uint8Array;
|
|
754
|
-
preimage: Uint8Array;
|
|
755
|
-
identityPublicKey: Uint8Array;
|
|
756
|
-
}
|
|
757
|
-
declare const ProvidePreimageRequest: MessageFns<ProvidePreimageRequest>;
|
|
758
|
-
interface ProvidePreimageResponse {
|
|
759
|
-
transfer: Transfer | undefined;
|
|
760
|
-
}
|
|
761
|
-
declare const ProvidePreimageResponse: MessageFns<ProvidePreimageResponse>;
|
|
762
|
-
interface ReturnLightningPaymentRequest {
|
|
763
|
-
paymentHash: Uint8Array;
|
|
764
|
-
userIdentityPublicKey: Uint8Array;
|
|
765
|
-
}
|
|
766
|
-
declare const ReturnLightningPaymentRequest: MessageFns<ReturnLightningPaymentRequest>;
|
|
767
|
-
interface TreeNodeIds {
|
|
768
|
-
nodeIds: string[];
|
|
769
|
-
}
|
|
770
|
-
declare const TreeNodeIds: MessageFns<TreeNodeIds>;
|
|
771
|
-
interface QueryNodesRequest {
|
|
772
|
-
source?: {
|
|
773
|
-
$case: "ownerIdentityPubkey";
|
|
774
|
-
ownerIdentityPubkey: Uint8Array;
|
|
775
|
-
} | {
|
|
776
|
-
$case: "nodeIds";
|
|
777
|
-
nodeIds: TreeNodeIds;
|
|
778
|
-
} | undefined;
|
|
779
|
-
includeParents: boolean;
|
|
780
|
-
}
|
|
781
|
-
declare const QueryNodesRequest: MessageFns<QueryNodesRequest>;
|
|
782
|
-
interface QueryNodesResponse {
|
|
783
|
-
nodes: {
|
|
784
|
-
[key: string]: TreeNode;
|
|
785
|
-
};
|
|
786
|
-
}
|
|
787
|
-
declare const QueryNodesResponse: MessageFns<QueryNodesResponse>;
|
|
788
|
-
interface QueryNodesResponse_NodesEntry {
|
|
789
|
-
key: string;
|
|
790
|
-
value: TreeNode | undefined;
|
|
791
|
-
}
|
|
792
|
-
declare const QueryNodesResponse_NodesEntry: MessageFns<QueryNodesResponse_NodesEntry>;
|
|
793
|
-
interface CancelSendTransferRequest {
|
|
794
|
-
transferId: string;
|
|
795
|
-
senderIdentityPublicKey: Uint8Array;
|
|
796
|
-
}
|
|
797
|
-
declare const CancelSendTransferRequest: MessageFns<CancelSendTransferRequest>;
|
|
798
|
-
interface CancelSendTransferResponse {
|
|
799
|
-
transfer: Transfer | undefined;
|
|
800
|
-
}
|
|
801
|
-
declare const CancelSendTransferResponse: MessageFns<CancelSendTransferResponse>;
|
|
802
|
-
interface QueryAllTransfersRequest {
|
|
803
|
-
identityPublicKey: Uint8Array;
|
|
804
|
-
limit: number;
|
|
805
|
-
offset: number;
|
|
806
|
-
}
|
|
807
|
-
declare const QueryAllTransfersRequest: MessageFns<QueryAllTransfersRequest>;
|
|
808
|
-
interface QueryAllTransfersResponse {
|
|
809
|
-
transfers: Transfer[];
|
|
810
|
-
offset: number;
|
|
811
|
-
}
|
|
812
|
-
declare const QueryAllTransfersResponse: MessageFns<QueryAllTransfersResponse>;
|
|
813
|
-
interface QueryUnusedDepositAddressesRequest {
|
|
814
|
-
identityPublicKey: Uint8Array;
|
|
815
|
-
}
|
|
816
|
-
declare const QueryUnusedDepositAddressesRequest: MessageFns<QueryUnusedDepositAddressesRequest>;
|
|
817
|
-
interface DepositAddressQueryResult {
|
|
818
|
-
depositAddress: string;
|
|
819
|
-
userSigningPublicKey: Uint8Array;
|
|
820
|
-
verifyingPublicKey: Uint8Array;
|
|
821
|
-
}
|
|
822
|
-
declare const DepositAddressQueryResult: MessageFns<DepositAddressQueryResult>;
|
|
823
|
-
interface QueryUnusedDepositAddressesResponse {
|
|
824
|
-
depositAddresses: DepositAddressQueryResult[];
|
|
825
|
-
}
|
|
826
|
-
declare const QueryUnusedDepositAddressesResponse: MessageFns<QueryUnusedDepositAddressesResponse>;
|
|
827
|
-
type SparkServiceDefinition = typeof SparkServiceDefinition;
|
|
828
|
-
declare const SparkServiceDefinition: {
|
|
829
|
-
readonly name: "SparkService";
|
|
830
|
-
readonly fullName: "spark.SparkService";
|
|
831
|
-
readonly methods: {
|
|
832
|
-
readonly generate_deposit_address: {
|
|
833
|
-
readonly name: "generate_deposit_address";
|
|
834
|
-
readonly requestType: MessageFns<GenerateDepositAddressRequest>;
|
|
835
|
-
readonly requestStream: false;
|
|
836
|
-
readonly responseType: MessageFns<GenerateDepositAddressResponse>;
|
|
837
|
-
readonly responseStream: false;
|
|
838
|
-
readonly options: {};
|
|
839
|
-
};
|
|
840
|
-
readonly start_tree_creation: {
|
|
841
|
-
readonly name: "start_tree_creation";
|
|
842
|
-
readonly requestType: MessageFns<StartTreeCreationRequest>;
|
|
843
|
-
readonly requestStream: false;
|
|
844
|
-
readonly responseType: MessageFns<StartTreeCreationResponse>;
|
|
845
|
-
readonly responseStream: false;
|
|
846
|
-
readonly options: {};
|
|
847
|
-
};
|
|
848
|
-
readonly finalize_node_signatures: {
|
|
849
|
-
readonly name: "finalize_node_signatures";
|
|
850
|
-
readonly requestType: MessageFns<FinalizeNodeSignaturesRequest>;
|
|
851
|
-
readonly requestStream: false;
|
|
852
|
-
readonly responseType: MessageFns<FinalizeNodeSignaturesResponse>;
|
|
853
|
-
readonly responseStream: false;
|
|
854
|
-
readonly options: {};
|
|
855
|
-
};
|
|
856
|
-
readonly start_send_transfer: {
|
|
857
|
-
readonly name: "start_send_transfer";
|
|
858
|
-
readonly requestType: MessageFns<StartSendTransferRequest>;
|
|
859
|
-
readonly requestStream: false;
|
|
860
|
-
readonly responseType: MessageFns<StartSendTransferResponse>;
|
|
861
|
-
readonly responseStream: false;
|
|
862
|
-
readonly options: {};
|
|
863
|
-
};
|
|
864
|
-
readonly complete_send_transfer: {
|
|
865
|
-
readonly name: "complete_send_transfer";
|
|
866
|
-
readonly requestType: MessageFns<CompleteSendTransferRequest>;
|
|
867
|
-
readonly requestStream: false;
|
|
868
|
-
readonly responseType: MessageFns<CompleteSendTransferResponse>;
|
|
869
|
-
readonly responseStream: false;
|
|
870
|
-
readonly options: {};
|
|
871
|
-
};
|
|
872
|
-
readonly query_pending_transfers: {
|
|
873
|
-
readonly name: "query_pending_transfers";
|
|
874
|
-
readonly requestType: MessageFns<QueryPendingTransfersRequest>;
|
|
875
|
-
readonly requestStream: false;
|
|
876
|
-
readonly responseType: MessageFns<QueryPendingTransfersResponse>;
|
|
877
|
-
readonly responseStream: false;
|
|
878
|
-
readonly options: {};
|
|
879
|
-
};
|
|
880
|
-
readonly query_all_transfers: {
|
|
881
|
-
readonly name: "query_all_transfers";
|
|
882
|
-
readonly requestType: MessageFns<QueryAllTransfersRequest>;
|
|
883
|
-
readonly requestStream: false;
|
|
884
|
-
readonly responseType: MessageFns<QueryAllTransfersResponse>;
|
|
885
|
-
readonly responseStream: false;
|
|
886
|
-
readonly options: {};
|
|
887
|
-
};
|
|
888
|
-
readonly claim_transfer_tweak_keys: {
|
|
889
|
-
readonly name: "claim_transfer_tweak_keys";
|
|
890
|
-
readonly requestType: MessageFns<ClaimTransferTweakKeysRequest>;
|
|
891
|
-
readonly requestStream: false;
|
|
892
|
-
readonly responseType: MessageFns$2<Empty>;
|
|
893
|
-
readonly responseStream: false;
|
|
894
|
-
readonly options: {};
|
|
895
|
-
};
|
|
896
|
-
readonly claim_transfer_sign_refunds: {
|
|
897
|
-
readonly name: "claim_transfer_sign_refunds";
|
|
898
|
-
readonly requestType: MessageFns<ClaimTransferSignRefundsRequest>;
|
|
899
|
-
readonly requestStream: false;
|
|
900
|
-
readonly responseType: MessageFns<ClaimTransferSignRefundsResponse>;
|
|
901
|
-
readonly responseStream: false;
|
|
902
|
-
readonly options: {};
|
|
903
|
-
};
|
|
904
|
-
readonly aggregate_nodes: {
|
|
905
|
-
readonly name: "aggregate_nodes";
|
|
906
|
-
readonly requestType: MessageFns<AggregateNodesRequest>;
|
|
907
|
-
readonly requestStream: false;
|
|
908
|
-
readonly responseType: MessageFns<AggregateNodesResponse>;
|
|
909
|
-
readonly responseStream: false;
|
|
910
|
-
readonly options: {};
|
|
911
|
-
};
|
|
912
|
-
readonly store_preimage_share: {
|
|
913
|
-
readonly name: "store_preimage_share";
|
|
914
|
-
readonly requestType: MessageFns<StorePreimageShareRequest>;
|
|
915
|
-
readonly requestStream: false;
|
|
916
|
-
readonly responseType: MessageFns$2<Empty>;
|
|
917
|
-
readonly responseStream: false;
|
|
918
|
-
readonly options: {};
|
|
919
|
-
};
|
|
920
|
-
readonly get_signing_commitments: {
|
|
921
|
-
readonly name: "get_signing_commitments";
|
|
922
|
-
readonly requestType: MessageFns<GetSigningCommitmentsRequest>;
|
|
923
|
-
readonly requestStream: false;
|
|
924
|
-
readonly responseType: MessageFns<GetSigningCommitmentsResponse>;
|
|
925
|
-
readonly responseStream: false;
|
|
926
|
-
readonly options: {};
|
|
927
|
-
};
|
|
928
|
-
readonly cooperative_exit: {
|
|
929
|
-
readonly name: "cooperative_exit";
|
|
930
|
-
readonly requestType: MessageFns<CooperativeExitRequest>;
|
|
931
|
-
readonly requestStream: false;
|
|
932
|
-
readonly responseType: MessageFns<CooperativeExitResponse>;
|
|
933
|
-
readonly responseStream: false;
|
|
934
|
-
readonly options: {};
|
|
935
|
-
};
|
|
936
|
-
readonly initiate_preimage_swap: {
|
|
937
|
-
readonly name: "initiate_preimage_swap";
|
|
938
|
-
readonly requestType: MessageFns<InitiatePreimageSwapRequest>;
|
|
939
|
-
readonly requestStream: false;
|
|
940
|
-
readonly responseType: MessageFns<InitiatePreimageSwapResponse>;
|
|
941
|
-
readonly responseStream: false;
|
|
942
|
-
readonly options: {};
|
|
943
|
-
};
|
|
944
|
-
readonly provide_preimage: {
|
|
945
|
-
readonly name: "provide_preimage";
|
|
946
|
-
readonly requestType: MessageFns<ProvidePreimageRequest>;
|
|
947
|
-
readonly requestStream: false;
|
|
948
|
-
readonly responseType: MessageFns<ProvidePreimageResponse>;
|
|
949
|
-
readonly responseStream: false;
|
|
950
|
-
readonly options: {};
|
|
951
|
-
};
|
|
952
|
-
readonly leaf_swap: {
|
|
953
|
-
readonly name: "leaf_swap";
|
|
954
|
-
readonly requestType: MessageFns<LeafSwapRequest>;
|
|
955
|
-
readonly requestStream: false;
|
|
956
|
-
readonly responseType: MessageFns<LeafSwapResponse>;
|
|
957
|
-
readonly responseStream: false;
|
|
958
|
-
readonly options: {};
|
|
959
|
-
};
|
|
960
|
-
readonly refresh_timelock: {
|
|
961
|
-
readonly name: "refresh_timelock";
|
|
962
|
-
readonly requestType: MessageFns<RefreshTimelockRequest>;
|
|
963
|
-
readonly requestStream: false;
|
|
964
|
-
readonly responseType: MessageFns<RefreshTimelockResponse>;
|
|
965
|
-
readonly responseStream: false;
|
|
966
|
-
readonly options: {};
|
|
967
|
-
};
|
|
968
|
-
readonly extend_leaf: {
|
|
969
|
-
readonly name: "extend_leaf";
|
|
970
|
-
readonly requestType: MessageFns<ExtendLeafRequest>;
|
|
971
|
-
readonly requestStream: false;
|
|
972
|
-
readonly responseType: MessageFns<ExtendLeafResponse>;
|
|
973
|
-
readonly responseStream: false;
|
|
974
|
-
readonly options: {};
|
|
975
|
-
};
|
|
976
|
-
readonly prepare_tree_address: {
|
|
977
|
-
readonly name: "prepare_tree_address";
|
|
978
|
-
readonly requestType: MessageFns<PrepareTreeAddressRequest>;
|
|
979
|
-
readonly requestStream: false;
|
|
980
|
-
readonly responseType: MessageFns<PrepareTreeAddressResponse>;
|
|
981
|
-
readonly responseStream: false;
|
|
982
|
-
readonly options: {};
|
|
983
|
-
};
|
|
984
|
-
readonly create_tree: {
|
|
985
|
-
readonly name: "create_tree";
|
|
986
|
-
readonly requestType: MessageFns<CreateTreeRequest>;
|
|
987
|
-
readonly requestStream: false;
|
|
988
|
-
readonly responseType: MessageFns<CreateTreeResponse>;
|
|
989
|
-
readonly responseStream: false;
|
|
990
|
-
readonly options: {};
|
|
991
|
-
};
|
|
992
|
-
readonly get_signing_operator_list: {
|
|
993
|
-
readonly name: "get_signing_operator_list";
|
|
994
|
-
readonly requestType: MessageFns$2<Empty>;
|
|
995
|
-
readonly requestStream: false;
|
|
996
|
-
readonly responseType: MessageFns<GetSigningOperatorListResponse>;
|
|
997
|
-
readonly responseStream: false;
|
|
998
|
-
readonly options: {};
|
|
999
|
-
};
|
|
1000
|
-
readonly query_nodes: {
|
|
1001
|
-
readonly name: "query_nodes";
|
|
1002
|
-
readonly requestType: MessageFns<QueryNodesRequest>;
|
|
1003
|
-
readonly requestStream: false;
|
|
1004
|
-
readonly responseType: MessageFns<QueryNodesResponse>;
|
|
1005
|
-
readonly responseStream: false;
|
|
1006
|
-
readonly options: {};
|
|
1007
|
-
};
|
|
1008
|
-
readonly query_user_signed_refunds: {
|
|
1009
|
-
readonly name: "query_user_signed_refunds";
|
|
1010
|
-
readonly requestType: MessageFns<QueryUserSignedRefundsRequest>;
|
|
1011
|
-
readonly requestStream: false;
|
|
1012
|
-
readonly responseType: MessageFns<QueryUserSignedRefundsResponse>;
|
|
1013
|
-
readonly responseStream: false;
|
|
1014
|
-
readonly options: {};
|
|
1015
|
-
};
|
|
1016
|
-
/** Token RPCs */
|
|
1017
|
-
readonly start_token_transaction: {
|
|
1018
|
-
readonly name: "start_token_transaction";
|
|
1019
|
-
readonly requestType: MessageFns<StartTokenTransactionRequest>;
|
|
1020
|
-
readonly requestStream: false;
|
|
1021
|
-
readonly responseType: MessageFns<StartTokenTransactionResponse>;
|
|
1022
|
-
readonly responseStream: false;
|
|
1023
|
-
readonly options: {};
|
|
1024
|
-
};
|
|
1025
|
-
readonly sign_token_transaction: {
|
|
1026
|
-
readonly name: "sign_token_transaction";
|
|
1027
|
-
readonly requestType: MessageFns<SignTokenTransactionRequest>;
|
|
1028
|
-
readonly requestStream: false;
|
|
1029
|
-
readonly responseType: MessageFns<SignTokenTransactionResponse>;
|
|
1030
|
-
readonly responseStream: false;
|
|
1031
|
-
readonly options: {};
|
|
1032
|
-
};
|
|
1033
|
-
readonly finalize_token_transaction: {
|
|
1034
|
-
readonly name: "finalize_token_transaction";
|
|
1035
|
-
readonly requestType: MessageFns<FinalizeTokenTransactionRequest>;
|
|
1036
|
-
readonly requestStream: false;
|
|
1037
|
-
readonly responseType: MessageFns$2<Empty>;
|
|
1038
|
-
readonly responseStream: false;
|
|
1039
|
-
readonly options: {};
|
|
1040
|
-
};
|
|
1041
|
-
readonly freeze_tokens: {
|
|
1042
|
-
readonly name: "freeze_tokens";
|
|
1043
|
-
readonly requestType: MessageFns<FreezeTokensRequest>;
|
|
1044
|
-
readonly requestStream: false;
|
|
1045
|
-
readonly responseType: MessageFns<FreezeTokensResponse>;
|
|
1046
|
-
readonly responseStream: false;
|
|
1047
|
-
readonly options: {};
|
|
1048
|
-
};
|
|
1049
|
-
readonly get_owned_token_leaves: {
|
|
1050
|
-
readonly name: "get_owned_token_leaves";
|
|
1051
|
-
readonly requestType: MessageFns<GetOwnedTokenLeavesRequest>;
|
|
1052
|
-
readonly requestStream: false;
|
|
1053
|
-
readonly responseType: MessageFns<GetOwnedTokenLeavesResponse>;
|
|
1054
|
-
readonly responseStream: false;
|
|
1055
|
-
readonly options: {};
|
|
1056
|
-
};
|
|
1057
|
-
readonly return_lightning_payment: {
|
|
1058
|
-
readonly name: "return_lightning_payment";
|
|
1059
|
-
readonly requestType: MessageFns<ReturnLightningPaymentRequest>;
|
|
1060
|
-
readonly requestStream: false;
|
|
1061
|
-
readonly responseType: MessageFns$2<Empty>;
|
|
1062
|
-
readonly responseStream: false;
|
|
1063
|
-
readonly options: {};
|
|
1064
|
-
};
|
|
1065
|
-
readonly cancel_send_transfer: {
|
|
1066
|
-
readonly name: "cancel_send_transfer";
|
|
1067
|
-
readonly requestType: MessageFns<CancelSendTransferRequest>;
|
|
1068
|
-
readonly requestStream: false;
|
|
1069
|
-
readonly responseType: MessageFns<CancelSendTransferResponse>;
|
|
1070
|
-
readonly responseStream: false;
|
|
1071
|
-
readonly options: {};
|
|
1072
|
-
};
|
|
1073
|
-
readonly query_unused_deposit_addresses: {
|
|
1074
|
-
readonly name: "query_unused_deposit_addresses";
|
|
1075
|
-
readonly requestType: MessageFns<QueryUnusedDepositAddressesRequest>;
|
|
1076
|
-
readonly requestStream: false;
|
|
1077
|
-
readonly responseType: MessageFns<QueryUnusedDepositAddressesResponse>;
|
|
1078
|
-
readonly responseStream: false;
|
|
1079
|
-
readonly options: {};
|
|
1080
|
-
};
|
|
1081
|
-
};
|
|
1082
|
-
};
|
|
1083
|
-
interface SparkServiceImplementation<CallContextExt = {}> {
|
|
1084
|
-
generate_deposit_address(request: GenerateDepositAddressRequest, context: CallContext & CallContextExt): Promise<DeepPartial<GenerateDepositAddressResponse>>;
|
|
1085
|
-
start_tree_creation(request: StartTreeCreationRequest, context: CallContext & CallContextExt): Promise<DeepPartial<StartTreeCreationResponse>>;
|
|
1086
|
-
finalize_node_signatures(request: FinalizeNodeSignaturesRequest, context: CallContext & CallContextExt): Promise<DeepPartial<FinalizeNodeSignaturesResponse>>;
|
|
1087
|
-
start_send_transfer(request: StartSendTransferRequest, context: CallContext & CallContextExt): Promise<DeepPartial<StartSendTransferResponse>>;
|
|
1088
|
-
complete_send_transfer(request: CompleteSendTransferRequest, context: CallContext & CallContextExt): Promise<DeepPartial<CompleteSendTransferResponse>>;
|
|
1089
|
-
query_pending_transfers(request: QueryPendingTransfersRequest, context: CallContext & CallContextExt): Promise<DeepPartial<QueryPendingTransfersResponse>>;
|
|
1090
|
-
query_all_transfers(request: QueryAllTransfersRequest, context: CallContext & CallContextExt): Promise<DeepPartial<QueryAllTransfersResponse>>;
|
|
1091
|
-
claim_transfer_tweak_keys(request: ClaimTransferTweakKeysRequest, context: CallContext & CallContextExt): Promise<DeepPartial<Empty>>;
|
|
1092
|
-
claim_transfer_sign_refunds(request: ClaimTransferSignRefundsRequest, context: CallContext & CallContextExt): Promise<DeepPartial<ClaimTransferSignRefundsResponse>>;
|
|
1093
|
-
aggregate_nodes(request: AggregateNodesRequest, context: CallContext & CallContextExt): Promise<DeepPartial<AggregateNodesResponse>>;
|
|
1094
|
-
store_preimage_share(request: StorePreimageShareRequest, context: CallContext & CallContextExt): Promise<DeepPartial<Empty>>;
|
|
1095
|
-
get_signing_commitments(request: GetSigningCommitmentsRequest, context: CallContext & CallContextExt): Promise<DeepPartial<GetSigningCommitmentsResponse>>;
|
|
1096
|
-
cooperative_exit(request: CooperativeExitRequest, context: CallContext & CallContextExt): Promise<DeepPartial<CooperativeExitResponse>>;
|
|
1097
|
-
initiate_preimage_swap(request: InitiatePreimageSwapRequest, context: CallContext & CallContextExt): Promise<DeepPartial<InitiatePreimageSwapResponse>>;
|
|
1098
|
-
provide_preimage(request: ProvidePreimageRequest, context: CallContext & CallContextExt): Promise<DeepPartial<ProvidePreimageResponse>>;
|
|
1099
|
-
leaf_swap(request: LeafSwapRequest, context: CallContext & CallContextExt): Promise<DeepPartial<LeafSwapResponse>>;
|
|
1100
|
-
refresh_timelock(request: RefreshTimelockRequest, context: CallContext & CallContextExt): Promise<DeepPartial<RefreshTimelockResponse>>;
|
|
1101
|
-
extend_leaf(request: ExtendLeafRequest, context: CallContext & CallContextExt): Promise<DeepPartial<ExtendLeafResponse>>;
|
|
1102
|
-
prepare_tree_address(request: PrepareTreeAddressRequest, context: CallContext & CallContextExt): Promise<DeepPartial<PrepareTreeAddressResponse>>;
|
|
1103
|
-
create_tree(request: CreateTreeRequest, context: CallContext & CallContextExt): Promise<DeepPartial<CreateTreeResponse>>;
|
|
1104
|
-
get_signing_operator_list(request: Empty, context: CallContext & CallContextExt): Promise<DeepPartial<GetSigningOperatorListResponse>>;
|
|
1105
|
-
query_nodes(request: QueryNodesRequest, context: CallContext & CallContextExt): Promise<DeepPartial<QueryNodesResponse>>;
|
|
1106
|
-
query_user_signed_refunds(request: QueryUserSignedRefundsRequest, context: CallContext & CallContextExt): Promise<DeepPartial<QueryUserSignedRefundsResponse>>;
|
|
1107
|
-
/** Token RPCs */
|
|
1108
|
-
start_token_transaction(request: StartTokenTransactionRequest, context: CallContext & CallContextExt): Promise<DeepPartial<StartTokenTransactionResponse>>;
|
|
1109
|
-
sign_token_transaction(request: SignTokenTransactionRequest, context: CallContext & CallContextExt): Promise<DeepPartial<SignTokenTransactionResponse>>;
|
|
1110
|
-
finalize_token_transaction(request: FinalizeTokenTransactionRequest, context: CallContext & CallContextExt): Promise<DeepPartial<Empty>>;
|
|
1111
|
-
freeze_tokens(request: FreezeTokensRequest, context: CallContext & CallContextExt): Promise<DeepPartial<FreezeTokensResponse>>;
|
|
1112
|
-
get_owned_token_leaves(request: GetOwnedTokenLeavesRequest, context: CallContext & CallContextExt): Promise<DeepPartial<GetOwnedTokenLeavesResponse>>;
|
|
1113
|
-
return_lightning_payment(request: ReturnLightningPaymentRequest, context: CallContext & CallContextExt): Promise<DeepPartial<Empty>>;
|
|
1114
|
-
cancel_send_transfer(request: CancelSendTransferRequest, context: CallContext & CallContextExt): Promise<DeepPartial<CancelSendTransferResponse>>;
|
|
1115
|
-
query_unused_deposit_addresses(request: QueryUnusedDepositAddressesRequest, context: CallContext & CallContextExt): Promise<DeepPartial<QueryUnusedDepositAddressesResponse>>;
|
|
1116
|
-
}
|
|
1117
|
-
interface SparkServiceClient<CallOptionsExt = {}> {
|
|
1118
|
-
generate_deposit_address(request: DeepPartial<GenerateDepositAddressRequest>, options?: CallOptions & CallOptionsExt): Promise<GenerateDepositAddressResponse>;
|
|
1119
|
-
start_tree_creation(request: DeepPartial<StartTreeCreationRequest>, options?: CallOptions & CallOptionsExt): Promise<StartTreeCreationResponse>;
|
|
1120
|
-
finalize_node_signatures(request: DeepPartial<FinalizeNodeSignaturesRequest>, options?: CallOptions & CallOptionsExt): Promise<FinalizeNodeSignaturesResponse>;
|
|
1121
|
-
start_send_transfer(request: DeepPartial<StartSendTransferRequest>, options?: CallOptions & CallOptionsExt): Promise<StartSendTransferResponse>;
|
|
1122
|
-
complete_send_transfer(request: DeepPartial<CompleteSendTransferRequest>, options?: CallOptions & CallOptionsExt): Promise<CompleteSendTransferResponse>;
|
|
1123
|
-
query_pending_transfers(request: DeepPartial<QueryPendingTransfersRequest>, options?: CallOptions & CallOptionsExt): Promise<QueryPendingTransfersResponse>;
|
|
1124
|
-
query_all_transfers(request: DeepPartial<QueryAllTransfersRequest>, options?: CallOptions & CallOptionsExt): Promise<QueryAllTransfersResponse>;
|
|
1125
|
-
claim_transfer_tweak_keys(request: DeepPartial<ClaimTransferTweakKeysRequest>, options?: CallOptions & CallOptionsExt): Promise<Empty>;
|
|
1126
|
-
claim_transfer_sign_refunds(request: DeepPartial<ClaimTransferSignRefundsRequest>, options?: CallOptions & CallOptionsExt): Promise<ClaimTransferSignRefundsResponse>;
|
|
1127
|
-
aggregate_nodes(request: DeepPartial<AggregateNodesRequest>, options?: CallOptions & CallOptionsExt): Promise<AggregateNodesResponse>;
|
|
1128
|
-
store_preimage_share(request: DeepPartial<StorePreimageShareRequest>, options?: CallOptions & CallOptionsExt): Promise<Empty>;
|
|
1129
|
-
get_signing_commitments(request: DeepPartial<GetSigningCommitmentsRequest>, options?: CallOptions & CallOptionsExt): Promise<GetSigningCommitmentsResponse>;
|
|
1130
|
-
cooperative_exit(request: DeepPartial<CooperativeExitRequest>, options?: CallOptions & CallOptionsExt): Promise<CooperativeExitResponse>;
|
|
1131
|
-
initiate_preimage_swap(request: DeepPartial<InitiatePreimageSwapRequest>, options?: CallOptions & CallOptionsExt): Promise<InitiatePreimageSwapResponse>;
|
|
1132
|
-
provide_preimage(request: DeepPartial<ProvidePreimageRequest>, options?: CallOptions & CallOptionsExt): Promise<ProvidePreimageResponse>;
|
|
1133
|
-
leaf_swap(request: DeepPartial<LeafSwapRequest>, options?: CallOptions & CallOptionsExt): Promise<LeafSwapResponse>;
|
|
1134
|
-
refresh_timelock(request: DeepPartial<RefreshTimelockRequest>, options?: CallOptions & CallOptionsExt): Promise<RefreshTimelockResponse>;
|
|
1135
|
-
extend_leaf(request: DeepPartial<ExtendLeafRequest>, options?: CallOptions & CallOptionsExt): Promise<ExtendLeafResponse>;
|
|
1136
|
-
prepare_tree_address(request: DeepPartial<PrepareTreeAddressRequest>, options?: CallOptions & CallOptionsExt): Promise<PrepareTreeAddressResponse>;
|
|
1137
|
-
create_tree(request: DeepPartial<CreateTreeRequest>, options?: CallOptions & CallOptionsExt): Promise<CreateTreeResponse>;
|
|
1138
|
-
get_signing_operator_list(request: DeepPartial<Empty>, options?: CallOptions & CallOptionsExt): Promise<GetSigningOperatorListResponse>;
|
|
1139
|
-
query_nodes(request: DeepPartial<QueryNodesRequest>, options?: CallOptions & CallOptionsExt): Promise<QueryNodesResponse>;
|
|
1140
|
-
query_user_signed_refunds(request: DeepPartial<QueryUserSignedRefundsRequest>, options?: CallOptions & CallOptionsExt): Promise<QueryUserSignedRefundsResponse>;
|
|
1141
|
-
/** Token RPCs */
|
|
1142
|
-
start_token_transaction(request: DeepPartial<StartTokenTransactionRequest>, options?: CallOptions & CallOptionsExt): Promise<StartTokenTransactionResponse>;
|
|
1143
|
-
sign_token_transaction(request: DeepPartial<SignTokenTransactionRequest>, options?: CallOptions & CallOptionsExt): Promise<SignTokenTransactionResponse>;
|
|
1144
|
-
finalize_token_transaction(request: DeepPartial<FinalizeTokenTransactionRequest>, options?: CallOptions & CallOptionsExt): Promise<Empty>;
|
|
1145
|
-
freeze_tokens(request: DeepPartial<FreezeTokensRequest>, options?: CallOptions & CallOptionsExt): Promise<FreezeTokensResponse>;
|
|
1146
|
-
get_owned_token_leaves(request: DeepPartial<GetOwnedTokenLeavesRequest>, options?: CallOptions & CallOptionsExt): Promise<GetOwnedTokenLeavesResponse>;
|
|
1147
|
-
return_lightning_payment(request: DeepPartial<ReturnLightningPaymentRequest>, options?: CallOptions & CallOptionsExt): Promise<Empty>;
|
|
1148
|
-
cancel_send_transfer(request: DeepPartial<CancelSendTransferRequest>, options?: CallOptions & CallOptionsExt): Promise<CancelSendTransferResponse>;
|
|
1149
|
-
query_unused_deposit_addresses(request: DeepPartial<QueryUnusedDepositAddressesRequest>, options?: CallOptions & CallOptionsExt): Promise<QueryUnusedDepositAddressesResponse>;
|
|
1150
|
-
}
|
|
1151
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
1152
|
-
type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {
|
|
1153
|
-
$case: string;
|
|
1154
|
-
} ? {
|
|
1155
|
-
[K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
|
|
1156
|
-
} & {
|
|
1157
|
-
$case: T["$case"];
|
|
1158
|
-
} : T extends {} ? {
|
|
1159
|
-
[K in keyof T]?: DeepPartial<T[K]>;
|
|
1160
|
-
} : Partial<T>;
|
|
1161
|
-
interface MessageFns<T> {
|
|
1162
|
-
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
1163
|
-
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
1164
|
-
fromJSON(object: any): T;
|
|
1165
|
-
toJSON(message: T): unknown;
|
|
1166
|
-
create(base?: DeepPartial<T>): T;
|
|
1167
|
-
fromPartial(object: DeepPartial<T>): T;
|
|
1168
|
-
}
|
|
1169
|
-
|
|
1170
|
-
export { LeafRefundTxSigningJob as $, Address as A, TokenTransactionSignatures as B, StartTokenTransactionRequest as C, DepositAddressProof as D, Empty as E, FinalizeNodeSignaturesResponse as F, GenerateDepositAddressRequest as G, StartTokenTransactionResponse as H, OperatorSpecificTokenTransactionSignature as I, SignTokenTransactionRequest as J, SignTokenTransactionResponse as K, LeafWithPreviousTransactionData as L, MintInput as M, Network as N, OperatorSpecificTokenTransactionSignablePayload as O, FinalizeTokenTransactionRequest as P, QueryPendingTransfersResponse as Q, FreezeTokensPayload as R, type SparkServiceClient as S, TokenTransaction as T, UTXO as U, FreezeTokensRequest as V, FreezeTokensResponse as W, GetOwnedTokenLeavesRequest as X, GetOwnedTokenLeavesResponse as Y, FinalizeNodeSignaturesRequest as Z, SecretShare as _, Transfer as a, QueryAllTransfersRequest as a$, StartSendTransferRequest as a0, StartSendTransferResponse as a1, SendLeafKeyTweak as a2, SendLeafKeyTweak_PubkeySharesTweakEntry as a3, CompleteSendTransferRequest as a4, TransferLeaf as a5, CompleteSendTransferResponse as a6, QueryPendingTransfersRequest as a7, ClaimLeafKeyTweak as a8, ClaimLeafKeyTweak_PubkeySharesTweakEntry as a9, RefreshTimelockSigningResult as aA, RefreshTimelockResponse as aB, ExtendLeafRequest as aC, ExtendLeafSigningResult as aD, ExtendLeafResponse as aE, AddressRequestNode as aF, PrepareTreeAddressRequest as aG, AddressNode as aH, PrepareTreeAddressResponse as aI, CreationNode as aJ, CreateTreeRequest as aK, CreationResponseNode as aL, CreateTreeResponse as aM, SigningOperatorInfo as aN, GetSigningOperatorListResponse as aO, GetSigningOperatorListResponse_SigningOperatorsEntry as aP, QueryUserSignedRefundsRequest as aQ, QueryUserSignedRefundsResponse as aR, ProvidePreimageRequest as aS, ProvidePreimageResponse as aT, ReturnLightningPaymentRequest as aU, TreeNodeIds as aV, QueryNodesRequest as aW, QueryNodesResponse as aX, QueryNodesResponse_NodesEntry as aY, CancelSendTransferRequest as aZ, CancelSendTransferResponse as a_, ClaimTransferTweakKeysRequest as aa, ClaimTransferSignRefundsRequest as ab, ClaimTransferSignRefundsResponse as ac, AggregateNodesRequest as ad, AggregateNodesResponse as ae, StorePreimageShareRequest as af, RequestedSigningCommitments as ag, RequestedSigningCommitments_SigningNonceCommitmentsEntry as ah, GetSigningCommitmentsRequest as ai, GetSigningCommitmentsResponse as aj, SigningCommitments as ak, SigningCommitments_SigningCommitmentsEntry as al, UserSignedRefund as am, InvoiceAmountProof as an, InvoiceAmount as ao, InitiatePreimageSwapRequest as ap, InitiatePreimageSwapRequest_Reason as aq, initiatePreimageSwapRequest_ReasonFromJSON as ar, initiatePreimageSwapRequest_ReasonToJSON as as, InitiatePreimageSwapResponse as at, OutPoint as au, CooperativeExitRequest as av, CooperativeExitResponse as aw, LeafSwapRequest as ax, LeafSwapResponse as ay, RefreshTimelockRequest as az, TreeNode as b, QueryUnusedDepositAddressesRequest as b0, DepositAddressQueryResult as b1, QueryUnusedDepositAddressesResponse as b2, SparkServiceDefinition as b3, type SparkServiceImplementation as b4, type DeepPartial as b5, type MessageFns as b6, LeafRefundTxSigningResult as c, NodeSignatures as d, QueryAllTransfersResponse as e, networkToJSON as f, TransferStatus as g, transferStatusToJSON as h, DepositAddressProof_AddressSignaturesEntry as i, GenerateDepositAddressResponse as j, NodeOutput as k, SigningJob as l, SigningKeyshare as m, networkFromJSON as n, SigningResult as o, protobufPackage as p, SigningResult_PublicKeysEntry as q, SigningResult_SigningNonceCommitmentsEntry as r, SigningResult_SignatureSharesEntry as s, transferStatusFromJSON as t, NodeSignatureShares as u, StartTreeCreationRequest as v, StartTreeCreationResponse as w, TokenLeafToSpend as x, TransferInput as y, TokenLeafOutput as z };
|