@trustwallet/wallet-core 4.2.3 → 4.2.4
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/generated/core_proto.d.ts +733 -502
- package/dist/generated/core_proto.js +2794 -2057
- package/dist/lib/wallet-core.js +1 -1
- package/dist/lib/wallet-core.wasm +0 -0
- package/dist/src/keystore/default-impl.d.ts +1 -0
- package/dist/src/keystore/default-impl.js +10 -2
- package/dist/src/keystore/types.d.ts +6 -1
- package/dist/src/wallet-core.d.ts +3 -0
- package/package.json +1 -1
@@ -7789,90 +7789,11 @@ export namespace TW {
|
|
7789
7789
|
public toJSON(): { [k: string]: any };
|
7790
7790
|
}
|
7791
7791
|
|
7792
|
-
/** Properties of an OutPoint. */
|
7793
|
-
interface IOutPoint {
|
7794
|
-
|
7795
|
-
/** OutPoint hash */
|
7796
|
-
hash?: (Uint8Array|null);
|
7797
|
-
|
7798
|
-
/** OutPoint vout */
|
7799
|
-
vout?: (number|null);
|
7800
|
-
}
|
7801
|
-
|
7802
|
-
/** Represents an OutPoint. */
|
7803
|
-
class OutPoint implements IOutPoint {
|
7804
|
-
|
7805
|
-
/**
|
7806
|
-
* Constructs a new OutPoint.
|
7807
|
-
* @param [properties] Properties to set
|
7808
|
-
*/
|
7809
|
-
constructor(properties?: TW.BitcoinV2.Proto.IOutPoint);
|
7810
|
-
|
7811
|
-
/** OutPoint hash. */
|
7812
|
-
public hash: Uint8Array;
|
7813
|
-
|
7814
|
-
/** OutPoint vout. */
|
7815
|
-
public vout: number;
|
7816
|
-
|
7817
|
-
/**
|
7818
|
-
* Creates a new OutPoint instance using the specified properties.
|
7819
|
-
* @param [properties] Properties to set
|
7820
|
-
* @returns OutPoint instance
|
7821
|
-
*/
|
7822
|
-
public static create(properties?: TW.BitcoinV2.Proto.IOutPoint): TW.BitcoinV2.Proto.OutPoint;
|
7823
|
-
|
7824
|
-
/**
|
7825
|
-
* Encodes the specified OutPoint message. Does not implicitly {@link TW.BitcoinV2.Proto.OutPoint.verify|verify} messages.
|
7826
|
-
* @param message OutPoint message or plain object to encode
|
7827
|
-
* @param [writer] Writer to encode to
|
7828
|
-
* @returns Writer
|
7829
|
-
*/
|
7830
|
-
public static encode(message: TW.BitcoinV2.Proto.IOutPoint, writer?: $protobuf.Writer): $protobuf.Writer;
|
7831
|
-
|
7832
|
-
/**
|
7833
|
-
* Decodes an OutPoint message from the specified reader or buffer.
|
7834
|
-
* @param reader Reader or buffer to decode from
|
7835
|
-
* @param [length] Message length if known beforehand
|
7836
|
-
* @returns OutPoint
|
7837
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
7838
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
7839
|
-
*/
|
7840
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.BitcoinV2.Proto.OutPoint;
|
7841
|
-
|
7842
|
-
/**
|
7843
|
-
* Verifies an OutPoint message.
|
7844
|
-
* @param message Plain object to verify
|
7845
|
-
* @returns `null` if valid, otherwise the reason why it is not
|
7846
|
-
*/
|
7847
|
-
public static verify(message: { [k: string]: any }): (string|null);
|
7848
|
-
|
7849
|
-
/**
|
7850
|
-
* Creates an OutPoint message from a plain object. Also converts values to their respective internal types.
|
7851
|
-
* @param object Plain object
|
7852
|
-
* @returns OutPoint
|
7853
|
-
*/
|
7854
|
-
public static fromObject(object: { [k: string]: any }): TW.BitcoinV2.Proto.OutPoint;
|
7855
|
-
|
7856
|
-
/**
|
7857
|
-
* Creates a plain object from an OutPoint message. Also converts values to other types if specified.
|
7858
|
-
* @param message OutPoint
|
7859
|
-
* @param [options] Conversion options
|
7860
|
-
* @returns Plain object
|
7861
|
-
*/
|
7862
|
-
public static toObject(message: TW.BitcoinV2.Proto.OutPoint, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
7863
|
-
|
7864
|
-
/**
|
7865
|
-
* Converts this OutPoint to JSON.
|
7866
|
-
* @returns JSON object
|
7867
|
-
*/
|
7868
|
-
public toJSON(): { [k: string]: any };
|
7869
|
-
}
|
7870
|
-
|
7871
7792
|
/** Properties of an Input. */
|
7872
7793
|
interface IInput {
|
7873
7794
|
|
7874
7795
|
/** Input outPoint */
|
7875
|
-
outPoint?: (TW.
|
7796
|
+
outPoint?: (TW.Utxo.Proto.IOutPoint|null);
|
7876
7797
|
|
7877
7798
|
/** Input value */
|
7878
7799
|
value?: (Long|null);
|
@@ -7903,7 +7824,7 @@ export namespace TW {
|
|
7903
7824
|
constructor(properties?: TW.BitcoinV2.Proto.IInput);
|
7904
7825
|
|
7905
7826
|
/** Input outPoint. */
|
7906
|
-
public outPoint?: (TW.
|
7827
|
+
public outPoint?: (TW.Utxo.Proto.IOutPoint|null);
|
7907
7828
|
|
7908
7829
|
/** Input value. */
|
7909
7830
|
public value: Long;
|
@@ -8962,6 +8883,9 @@ export namespace TW {
|
|
8962
8883
|
|
8963
8884
|
/** TransactionBuilder fixedDustThreshold */
|
8964
8885
|
fixedDustThreshold?: (Long|null);
|
8886
|
+
|
8887
|
+
/** TransactionBuilder zcashExtraData */
|
8888
|
+
zcashExtraData?: (TW.Zcash.Proto.ITransactionBuilderExtraData|null);
|
8965
8889
|
}
|
8966
8890
|
|
8967
8891
|
/** Represents a TransactionBuilder. */
|
@@ -9000,9 +8924,15 @@ export namespace TW {
|
|
9000
8924
|
/** TransactionBuilder fixedDustThreshold. */
|
9001
8925
|
public fixedDustThreshold?: (Long|null);
|
9002
8926
|
|
8927
|
+
/** TransactionBuilder zcashExtraData. */
|
8928
|
+
public zcashExtraData?: (TW.Zcash.Proto.ITransactionBuilderExtraData|null);
|
8929
|
+
|
9003
8930
|
/** TransactionBuilder dustPolicy. */
|
9004
8931
|
public dustPolicy?: "fixedDustThreshold";
|
9005
8932
|
|
8933
|
+
/** TransactionBuilder chainSpecific. */
|
8934
|
+
public chainSpecific?: "zcashExtraData";
|
8935
|
+
|
9006
8936
|
/**
|
9007
8937
|
* Creates a new TransactionBuilder instance using the specified properties.
|
9008
8938
|
* @param [properties] Properties to set
|
@@ -9236,766 +9166,1067 @@ export namespace TW {
|
|
9236
9166
|
public toJSON(): { [k: string]: any };
|
9237
9167
|
}
|
9238
9168
|
|
9239
|
-
/** Properties of a
|
9240
|
-
interface
|
9169
|
+
/** Properties of a TransactionPlan. */
|
9170
|
+
interface ITransactionPlan {
|
9241
9171
|
|
9242
|
-
/**
|
9243
|
-
|
9172
|
+
/** TransactionPlan error */
|
9173
|
+
error?: (TW.Common.Proto.SigningError|null);
|
9244
9174
|
|
9245
|
-
/**
|
9246
|
-
|
9175
|
+
/** TransactionPlan errorMessage */
|
9176
|
+
errorMessage?: (string|null);
|
9247
9177
|
|
9248
|
-
/**
|
9249
|
-
inputs?: (TW.BitcoinV2.Proto.
|
9178
|
+
/** TransactionPlan inputs */
|
9179
|
+
inputs?: (TW.BitcoinV2.Proto.IInput[]|null);
|
9250
9180
|
|
9251
|
-
/**
|
9252
|
-
outputs?: (TW.BitcoinV2.Proto.
|
9181
|
+
/** TransactionPlan outputs */
|
9182
|
+
outputs?: (TW.BitcoinV2.Proto.IOutput[]|null);
|
9183
|
+
|
9184
|
+
/** TransactionPlan availableAmount */
|
9185
|
+
availableAmount?: (Long|null);
|
9186
|
+
|
9187
|
+
/** TransactionPlan sendAmount */
|
9188
|
+
sendAmount?: (Long|null);
|
9189
|
+
|
9190
|
+
/** TransactionPlan vsizeEstimate */
|
9191
|
+
vsizeEstimate?: (Long|null);
|
9192
|
+
|
9193
|
+
/** TransactionPlan feeEstimate */
|
9194
|
+
feeEstimate?: (Long|null);
|
9195
|
+
|
9196
|
+
/** TransactionPlan change */
|
9197
|
+
change?: (Long|null);
|
9253
9198
|
}
|
9254
9199
|
|
9255
|
-
/** Represents a
|
9256
|
-
class
|
9200
|
+
/** Represents a TransactionPlan. */
|
9201
|
+
class TransactionPlan implements ITransactionPlan {
|
9257
9202
|
|
9258
9203
|
/**
|
9259
|
-
* Constructs a new
|
9204
|
+
* Constructs a new TransactionPlan.
|
9260
9205
|
* @param [properties] Properties to set
|
9261
9206
|
*/
|
9262
|
-
constructor(properties?: TW.BitcoinV2.Proto.
|
9207
|
+
constructor(properties?: TW.BitcoinV2.Proto.ITransactionPlan);
|
9263
9208
|
|
9264
|
-
/**
|
9265
|
-
public
|
9209
|
+
/** TransactionPlan error. */
|
9210
|
+
public error: TW.Common.Proto.SigningError;
|
9266
9211
|
|
9267
|
-
/**
|
9268
|
-
public
|
9212
|
+
/** TransactionPlan errorMessage. */
|
9213
|
+
public errorMessage: string;
|
9269
9214
|
|
9270
|
-
/**
|
9271
|
-
public inputs: TW.BitcoinV2.Proto.
|
9215
|
+
/** TransactionPlan inputs. */
|
9216
|
+
public inputs: TW.BitcoinV2.Proto.IInput[];
|
9272
9217
|
|
9273
|
-
/**
|
9274
|
-
public outputs: TW.BitcoinV2.Proto.
|
9218
|
+
/** TransactionPlan outputs. */
|
9219
|
+
public outputs: TW.BitcoinV2.Proto.IOutput[];
|
9220
|
+
|
9221
|
+
/** TransactionPlan availableAmount. */
|
9222
|
+
public availableAmount: Long;
|
9223
|
+
|
9224
|
+
/** TransactionPlan sendAmount. */
|
9225
|
+
public sendAmount: Long;
|
9226
|
+
|
9227
|
+
/** TransactionPlan vsizeEstimate. */
|
9228
|
+
public vsizeEstimate: Long;
|
9229
|
+
|
9230
|
+
/** TransactionPlan feeEstimate. */
|
9231
|
+
public feeEstimate: Long;
|
9232
|
+
|
9233
|
+
/** TransactionPlan change. */
|
9234
|
+
public change: Long;
|
9275
9235
|
|
9276
9236
|
/**
|
9277
|
-
* Creates a new
|
9237
|
+
* Creates a new TransactionPlan instance using the specified properties.
|
9278
9238
|
* @param [properties] Properties to set
|
9279
|
-
* @returns
|
9239
|
+
* @returns TransactionPlan instance
|
9280
9240
|
*/
|
9281
|
-
public static create(properties?: TW.BitcoinV2.Proto.
|
9241
|
+
public static create(properties?: TW.BitcoinV2.Proto.ITransactionPlan): TW.BitcoinV2.Proto.TransactionPlan;
|
9282
9242
|
|
9283
9243
|
/**
|
9284
|
-
* Encodes the specified
|
9285
|
-
* @param message
|
9244
|
+
* Encodes the specified TransactionPlan message. Does not implicitly {@link TW.BitcoinV2.Proto.TransactionPlan.verify|verify} messages.
|
9245
|
+
* @param message TransactionPlan message or plain object to encode
|
9286
9246
|
* @param [writer] Writer to encode to
|
9287
9247
|
* @returns Writer
|
9288
9248
|
*/
|
9289
|
-
public static encode(message: TW.BitcoinV2.Proto.
|
9249
|
+
public static encode(message: TW.BitcoinV2.Proto.ITransactionPlan, writer?: $protobuf.Writer): $protobuf.Writer;
|
9290
9250
|
|
9291
9251
|
/**
|
9292
|
-
* Decodes a
|
9252
|
+
* Decodes a TransactionPlan message from the specified reader or buffer.
|
9293
9253
|
* @param reader Reader or buffer to decode from
|
9294
9254
|
* @param [length] Message length if known beforehand
|
9295
|
-
* @returns
|
9255
|
+
* @returns TransactionPlan
|
9296
9256
|
* @throws {Error} If the payload is not a reader or valid buffer
|
9297
9257
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
9298
9258
|
*/
|
9299
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.BitcoinV2.Proto.
|
9259
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.BitcoinV2.Proto.TransactionPlan;
|
9300
9260
|
|
9301
9261
|
/**
|
9302
|
-
* Verifies a
|
9262
|
+
* Verifies a TransactionPlan message.
|
9303
9263
|
* @param message Plain object to verify
|
9304
9264
|
* @returns `null` if valid, otherwise the reason why it is not
|
9305
9265
|
*/
|
9306
9266
|
public static verify(message: { [k: string]: any }): (string|null);
|
9307
9267
|
|
9308
9268
|
/**
|
9309
|
-
* Creates a
|
9269
|
+
* Creates a TransactionPlan message from a plain object. Also converts values to their respective internal types.
|
9310
9270
|
* @param object Plain object
|
9311
|
-
* @returns
|
9271
|
+
* @returns TransactionPlan
|
9312
9272
|
*/
|
9313
|
-
public static fromObject(object: { [k: string]: any }): TW.BitcoinV2.Proto.
|
9273
|
+
public static fromObject(object: { [k: string]: any }): TW.BitcoinV2.Proto.TransactionPlan;
|
9314
9274
|
|
9315
9275
|
/**
|
9316
|
-
* Creates a plain object from a
|
9317
|
-
* @param message
|
9276
|
+
* Creates a plain object from a TransactionPlan message. Also converts values to other types if specified.
|
9277
|
+
* @param message TransactionPlan
|
9318
9278
|
* @param [options] Conversion options
|
9319
9279
|
* @returns Plain object
|
9320
9280
|
*/
|
9321
|
-
public static toObject(message: TW.BitcoinV2.Proto.
|
9281
|
+
public static toObject(message: TW.BitcoinV2.Proto.TransactionPlan, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
9322
9282
|
|
9323
9283
|
/**
|
9324
|
-
* Converts this
|
9284
|
+
* Converts this TransactionPlan to JSON.
|
9325
9285
|
* @returns JSON object
|
9326
9286
|
*/
|
9327
9287
|
public toJSON(): { [k: string]: any };
|
9328
9288
|
}
|
9329
9289
|
|
9330
|
-
|
9290
|
+
/** Properties of a PreSigningOutput. */
|
9291
|
+
interface IPreSigningOutput {
|
9331
9292
|
|
9332
|
-
/**
|
9333
|
-
|
9293
|
+
/** PreSigningOutput error */
|
9294
|
+
error?: (TW.Common.Proto.SigningError|null);
|
9334
9295
|
|
9335
|
-
|
9336
|
-
|
9296
|
+
/** PreSigningOutput errorMessage */
|
9297
|
+
errorMessage?: (string|null);
|
9337
9298
|
|
9338
|
-
|
9339
|
-
|
9299
|
+
/** PreSigningOutput sighashes */
|
9300
|
+
sighashes?: (TW.BitcoinV2.Proto.PreSigningOutput.ISighash[]|null);
|
9301
|
+
}
|
9340
9302
|
|
9341
|
-
|
9342
|
-
|
9303
|
+
/** Represents a PreSigningOutput. */
|
9304
|
+
class PreSigningOutput implements IPreSigningOutput {
|
9343
9305
|
|
9344
|
-
|
9345
|
-
|
9346
|
-
|
9306
|
+
/**
|
9307
|
+
* Constructs a new PreSigningOutput.
|
9308
|
+
* @param [properties] Properties to set
|
9309
|
+
*/
|
9310
|
+
constructor(properties?: TW.BitcoinV2.Proto.IPreSigningOutput);
|
9347
9311
|
|
9348
|
-
/**
|
9349
|
-
|
9312
|
+
/** PreSigningOutput error. */
|
9313
|
+
public error: TW.Common.Proto.SigningError;
|
9350
9314
|
|
9351
|
-
|
9352
|
-
|
9353
|
-
* @param [properties] Properties to set
|
9354
|
-
*/
|
9355
|
-
constructor(properties?: TW.BitcoinV2.Proto.Transaction.ITransactionInput);
|
9315
|
+
/** PreSigningOutput errorMessage. */
|
9316
|
+
public errorMessage: string;
|
9356
9317
|
|
9357
|
-
|
9358
|
-
|
9318
|
+
/** PreSigningOutput sighashes. */
|
9319
|
+
public sighashes: TW.BitcoinV2.Proto.PreSigningOutput.ISighash[];
|
9359
9320
|
|
9360
|
-
|
9361
|
-
|
9321
|
+
/**
|
9322
|
+
* Creates a new PreSigningOutput instance using the specified properties.
|
9323
|
+
* @param [properties] Properties to set
|
9324
|
+
* @returns PreSigningOutput instance
|
9325
|
+
*/
|
9326
|
+
public static create(properties?: TW.BitcoinV2.Proto.IPreSigningOutput): TW.BitcoinV2.Proto.PreSigningOutput;
|
9362
9327
|
|
9363
|
-
|
9364
|
-
|
9328
|
+
/**
|
9329
|
+
* Encodes the specified PreSigningOutput message. Does not implicitly {@link TW.BitcoinV2.Proto.PreSigningOutput.verify|verify} messages.
|
9330
|
+
* @param message PreSigningOutput message or plain object to encode
|
9331
|
+
* @param [writer] Writer to encode to
|
9332
|
+
* @returns Writer
|
9333
|
+
*/
|
9334
|
+
public static encode(message: TW.BitcoinV2.Proto.IPreSigningOutput, writer?: $protobuf.Writer): $protobuf.Writer;
|
9365
9335
|
|
9366
|
-
|
9367
|
-
|
9336
|
+
/**
|
9337
|
+
* Decodes a PreSigningOutput message from the specified reader or buffer.
|
9338
|
+
* @param reader Reader or buffer to decode from
|
9339
|
+
* @param [length] Message length if known beforehand
|
9340
|
+
* @returns PreSigningOutput
|
9341
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
9342
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
9343
|
+
*/
|
9344
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.BitcoinV2.Proto.PreSigningOutput;
|
9368
9345
|
|
9369
|
-
|
9370
|
-
|
9371
|
-
|
9372
|
-
|
9373
|
-
|
9374
|
-
|
9346
|
+
/**
|
9347
|
+
* Verifies a PreSigningOutput message.
|
9348
|
+
* @param message Plain object to verify
|
9349
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
9350
|
+
*/
|
9351
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
9375
9352
|
|
9376
|
-
|
9377
|
-
|
9378
|
-
|
9379
|
-
|
9380
|
-
|
9381
|
-
|
9382
|
-
public static encode(message: TW.BitcoinV2.Proto.Transaction.ITransactionInput, writer?: $protobuf.Writer): $protobuf.Writer;
|
9353
|
+
/**
|
9354
|
+
* Creates a PreSigningOutput message from a plain object. Also converts values to their respective internal types.
|
9355
|
+
* @param object Plain object
|
9356
|
+
* @returns PreSigningOutput
|
9357
|
+
*/
|
9358
|
+
public static fromObject(object: { [k: string]: any }): TW.BitcoinV2.Proto.PreSigningOutput;
|
9383
9359
|
|
9384
|
-
|
9385
|
-
|
9386
|
-
|
9387
|
-
|
9388
|
-
|
9389
|
-
|
9390
|
-
|
9391
|
-
*/
|
9392
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.BitcoinV2.Proto.Transaction.TransactionInput;
|
9360
|
+
/**
|
9361
|
+
* Creates a plain object from a PreSigningOutput message. Also converts values to other types if specified.
|
9362
|
+
* @param message PreSigningOutput
|
9363
|
+
* @param [options] Conversion options
|
9364
|
+
* @returns Plain object
|
9365
|
+
*/
|
9366
|
+
public static toObject(message: TW.BitcoinV2.Proto.PreSigningOutput, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
9393
9367
|
|
9394
|
-
|
9395
|
-
|
9368
|
+
/**
|
9369
|
+
* Converts this PreSigningOutput to JSON.
|
9370
|
+
* @returns JSON object
|
9371
|
+
*/
|
9372
|
+
public toJSON(): { [k: string]: any };
|
9373
|
+
}
|
9374
|
+
|
9375
|
+
namespace PreSigningOutput {
|
9376
|
+
|
9377
|
+
/** SigningMethod enum. */
|
9378
|
+
enum SigningMethod {
|
9379
|
+
Legacy = 0,
|
9380
|
+
Segwit = 1,
|
9381
|
+
Taproot = 2
|
9382
|
+
}
|
9383
|
+
|
9384
|
+
/** Properties of a Sighash. */
|
9385
|
+
interface ISighash {
|
9386
|
+
|
9387
|
+
/** Sighash publicKey */
|
9388
|
+
publicKey?: (Uint8Array|null);
|
9389
|
+
|
9390
|
+
/** Sighash sighash */
|
9391
|
+
sighash?: (Uint8Array|null);
|
9392
|
+
|
9393
|
+
/** Sighash signingMethod */
|
9394
|
+
signingMethod?: (TW.BitcoinV2.Proto.PreSigningOutput.SigningMethod|null);
|
9395
|
+
|
9396
|
+
/** Sighash tweak */
|
9397
|
+
tweak?: (TW.BitcoinV2.Proto.PreSigningOutput.ITaprootTweak|null);
|
9398
|
+
}
|
9399
|
+
|
9400
|
+
/** Represents a Sighash. */
|
9401
|
+
class Sighash implements ISighash {
|
9402
|
+
|
9403
|
+
/**
|
9404
|
+
* Constructs a new Sighash.
|
9405
|
+
* @param [properties] Properties to set
|
9406
|
+
*/
|
9407
|
+
constructor(properties?: TW.BitcoinV2.Proto.PreSigningOutput.ISighash);
|
9408
|
+
|
9409
|
+
/** Sighash publicKey. */
|
9410
|
+
public publicKey: Uint8Array;
|
9411
|
+
|
9412
|
+
/** Sighash sighash. */
|
9413
|
+
public sighash: Uint8Array;
|
9414
|
+
|
9415
|
+
/** Sighash signingMethod. */
|
9416
|
+
public signingMethod: TW.BitcoinV2.Proto.PreSigningOutput.SigningMethod;
|
9417
|
+
|
9418
|
+
/** Sighash tweak. */
|
9419
|
+
public tweak?: (TW.BitcoinV2.Proto.PreSigningOutput.ITaprootTweak|null);
|
9420
|
+
|
9421
|
+
/**
|
9422
|
+
* Creates a new Sighash instance using the specified properties.
|
9423
|
+
* @param [properties] Properties to set
|
9424
|
+
* @returns Sighash instance
|
9425
|
+
*/
|
9426
|
+
public static create(properties?: TW.BitcoinV2.Proto.PreSigningOutput.ISighash): TW.BitcoinV2.Proto.PreSigningOutput.Sighash;
|
9427
|
+
|
9428
|
+
/**
|
9429
|
+
* Encodes the specified Sighash message. Does not implicitly {@link TW.BitcoinV2.Proto.PreSigningOutput.Sighash.verify|verify} messages.
|
9430
|
+
* @param message Sighash message or plain object to encode
|
9431
|
+
* @param [writer] Writer to encode to
|
9432
|
+
* @returns Writer
|
9433
|
+
*/
|
9434
|
+
public static encode(message: TW.BitcoinV2.Proto.PreSigningOutput.ISighash, writer?: $protobuf.Writer): $protobuf.Writer;
|
9435
|
+
|
9436
|
+
/**
|
9437
|
+
* Decodes a Sighash message from the specified reader or buffer.
|
9438
|
+
* @param reader Reader or buffer to decode from
|
9439
|
+
* @param [length] Message length if known beforehand
|
9440
|
+
* @returns Sighash
|
9441
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
9442
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
9443
|
+
*/
|
9444
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.BitcoinV2.Proto.PreSigningOutput.Sighash;
|
9445
|
+
|
9446
|
+
/**
|
9447
|
+
* Verifies a Sighash message.
|
9396
9448
|
* @param message Plain object to verify
|
9397
9449
|
* @returns `null` if valid, otherwise the reason why it is not
|
9398
9450
|
*/
|
9399
9451
|
public static verify(message: { [k: string]: any }): (string|null);
|
9400
9452
|
|
9401
9453
|
/**
|
9402
|
-
* Creates a
|
9454
|
+
* Creates a Sighash message from a plain object. Also converts values to their respective internal types.
|
9403
9455
|
* @param object Plain object
|
9404
|
-
* @returns
|
9456
|
+
* @returns Sighash
|
9405
9457
|
*/
|
9406
|
-
public static fromObject(object: { [k: string]: any }): TW.BitcoinV2.Proto.
|
9458
|
+
public static fromObject(object: { [k: string]: any }): TW.BitcoinV2.Proto.PreSigningOutput.Sighash;
|
9407
9459
|
|
9408
9460
|
/**
|
9409
|
-
* Creates a plain object from a
|
9410
|
-
* @param message
|
9461
|
+
* Creates a plain object from a Sighash message. Also converts values to other types if specified.
|
9462
|
+
* @param message Sighash
|
9411
9463
|
* @param [options] Conversion options
|
9412
9464
|
* @returns Plain object
|
9413
9465
|
*/
|
9414
|
-
public static toObject(message: TW.BitcoinV2.Proto.
|
9466
|
+
public static toObject(message: TW.BitcoinV2.Proto.PreSigningOutput.Sighash, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
9415
9467
|
|
9416
9468
|
/**
|
9417
|
-
* Converts this
|
9469
|
+
* Converts this Sighash to JSON.
|
9418
9470
|
* @returns JSON object
|
9419
9471
|
*/
|
9420
9472
|
public toJSON(): { [k: string]: any };
|
9421
9473
|
}
|
9422
9474
|
|
9423
|
-
/** Properties of a
|
9424
|
-
interface
|
9425
|
-
|
9426
|
-
/** TransactionOutput scriptPubkey */
|
9427
|
-
scriptPubkey?: (Uint8Array|null);
|
9475
|
+
/** Properties of a TaprootTweak. */
|
9476
|
+
interface ITaprootTweak {
|
9428
9477
|
|
9429
|
-
/**
|
9430
|
-
|
9478
|
+
/** TaprootTweak merkleRoot */
|
9479
|
+
merkleRoot?: (Uint8Array|null);
|
9431
9480
|
}
|
9432
9481
|
|
9433
|
-
/** Represents a
|
9434
|
-
class
|
9482
|
+
/** Represents a TaprootTweak. */
|
9483
|
+
class TaprootTweak implements ITaprootTweak {
|
9435
9484
|
|
9436
9485
|
/**
|
9437
|
-
* Constructs a new
|
9486
|
+
* Constructs a new TaprootTweak.
|
9438
9487
|
* @param [properties] Properties to set
|
9439
9488
|
*/
|
9440
|
-
constructor(properties?: TW.BitcoinV2.Proto.
|
9441
|
-
|
9442
|
-
/** TransactionOutput scriptPubkey. */
|
9443
|
-
public scriptPubkey: Uint8Array;
|
9489
|
+
constructor(properties?: TW.BitcoinV2.Proto.PreSigningOutput.ITaprootTweak);
|
9444
9490
|
|
9445
|
-
/**
|
9446
|
-
public
|
9491
|
+
/** TaprootTweak merkleRoot. */
|
9492
|
+
public merkleRoot: Uint8Array;
|
9447
9493
|
|
9448
9494
|
/**
|
9449
|
-
* Creates a new
|
9495
|
+
* Creates a new TaprootTweak instance using the specified properties.
|
9450
9496
|
* @param [properties] Properties to set
|
9451
|
-
* @returns
|
9497
|
+
* @returns TaprootTweak instance
|
9452
9498
|
*/
|
9453
|
-
public static create(properties?: TW.BitcoinV2.Proto.
|
9499
|
+
public static create(properties?: TW.BitcoinV2.Proto.PreSigningOutput.ITaprootTweak): TW.BitcoinV2.Proto.PreSigningOutput.TaprootTweak;
|
9454
9500
|
|
9455
9501
|
/**
|
9456
|
-
* Encodes the specified
|
9457
|
-
* @param message
|
9502
|
+
* Encodes the specified TaprootTweak message. Does not implicitly {@link TW.BitcoinV2.Proto.PreSigningOutput.TaprootTweak.verify|verify} messages.
|
9503
|
+
* @param message TaprootTweak message or plain object to encode
|
9458
9504
|
* @param [writer] Writer to encode to
|
9459
9505
|
* @returns Writer
|
9460
9506
|
*/
|
9461
|
-
public static encode(message: TW.BitcoinV2.Proto.
|
9507
|
+
public static encode(message: TW.BitcoinV2.Proto.PreSigningOutput.ITaprootTweak, writer?: $protobuf.Writer): $protobuf.Writer;
|
9462
9508
|
|
9463
9509
|
/**
|
9464
|
-
* Decodes a
|
9510
|
+
* Decodes a TaprootTweak message from the specified reader or buffer.
|
9465
9511
|
* @param reader Reader or buffer to decode from
|
9466
9512
|
* @param [length] Message length if known beforehand
|
9467
|
-
* @returns
|
9513
|
+
* @returns TaprootTweak
|
9468
9514
|
* @throws {Error} If the payload is not a reader or valid buffer
|
9469
9515
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
9470
9516
|
*/
|
9471
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.BitcoinV2.Proto.
|
9517
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.BitcoinV2.Proto.PreSigningOutput.TaprootTweak;
|
9472
9518
|
|
9473
9519
|
/**
|
9474
|
-
* Verifies a
|
9520
|
+
* Verifies a TaprootTweak message.
|
9475
9521
|
* @param message Plain object to verify
|
9476
9522
|
* @returns `null` if valid, otherwise the reason why it is not
|
9477
9523
|
*/
|
9478
9524
|
public static verify(message: { [k: string]: any }): (string|null);
|
9479
9525
|
|
9480
9526
|
/**
|
9481
|
-
* Creates a
|
9527
|
+
* Creates a TaprootTweak message from a plain object. Also converts values to their respective internal types.
|
9482
9528
|
* @param object Plain object
|
9483
|
-
* @returns
|
9529
|
+
* @returns TaprootTweak
|
9484
9530
|
*/
|
9485
|
-
public static fromObject(object: { [k: string]: any }): TW.BitcoinV2.Proto.
|
9531
|
+
public static fromObject(object: { [k: string]: any }): TW.BitcoinV2.Proto.PreSigningOutput.TaprootTweak;
|
9486
9532
|
|
9487
9533
|
/**
|
9488
|
-
* Creates a plain object from a
|
9489
|
-
* @param message
|
9534
|
+
* Creates a plain object from a TaprootTweak message. Also converts values to other types if specified.
|
9535
|
+
* @param message TaprootTweak
|
9490
9536
|
* @param [options] Conversion options
|
9491
9537
|
* @returns Plain object
|
9492
9538
|
*/
|
9493
|
-
public static toObject(message: TW.BitcoinV2.Proto.
|
9539
|
+
public static toObject(message: TW.BitcoinV2.Proto.PreSigningOutput.TaprootTweak, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
9494
9540
|
|
9495
9541
|
/**
|
9496
|
-
* Converts this
|
9542
|
+
* Converts this TaprootTweak to JSON.
|
9497
9543
|
* @returns JSON object
|
9498
9544
|
*/
|
9499
9545
|
public toJSON(): { [k: string]: any };
|
9500
9546
|
}
|
9501
9547
|
}
|
9502
9548
|
|
9503
|
-
/** Properties of a
|
9504
|
-
interface
|
9549
|
+
/** Properties of a SigningOutput. */
|
9550
|
+
interface ISigningOutput {
|
9505
9551
|
|
9506
|
-
/**
|
9552
|
+
/** SigningOutput error */
|
9507
9553
|
error?: (TW.Common.Proto.SigningError|null);
|
9508
9554
|
|
9509
|
-
/**
|
9555
|
+
/** SigningOutput errorMessage */
|
9510
9556
|
errorMessage?: (string|null);
|
9511
9557
|
|
9512
|
-
/**
|
9513
|
-
|
9558
|
+
/** SigningOutput encoded */
|
9559
|
+
encoded?: (Uint8Array|null);
|
9514
9560
|
|
9515
|
-
/**
|
9516
|
-
|
9561
|
+
/** SigningOutput txid */
|
9562
|
+
txid?: (Uint8Array|null);
|
9517
9563
|
|
9518
|
-
/**
|
9519
|
-
|
9564
|
+
/** SigningOutput vsize */
|
9565
|
+
vsize?: (Long|null);
|
9520
9566
|
|
9521
|
-
/**
|
9522
|
-
|
9567
|
+
/** SigningOutput weight */
|
9568
|
+
weight?: (Long|null);
|
9523
9569
|
|
9524
|
-
/**
|
9525
|
-
|
9570
|
+
/** SigningOutput fee */
|
9571
|
+
fee?: (Long|null);
|
9526
9572
|
|
9527
|
-
/**
|
9528
|
-
|
9573
|
+
/** SigningOutput psbt */
|
9574
|
+
psbt?: (TW.BitcoinV2.Proto.IPsbt|null);
|
9529
9575
|
|
9530
|
-
/**
|
9531
|
-
|
9576
|
+
/** SigningOutput bitcoin */
|
9577
|
+
bitcoin?: (TW.Utxo.Proto.ITransaction|null);
|
9578
|
+
|
9579
|
+
/** SigningOutput zcash */
|
9580
|
+
zcash?: (TW.Zcash.Proto.ITransaction|null);
|
9532
9581
|
}
|
9533
9582
|
|
9534
|
-
/** Represents a
|
9535
|
-
class
|
9583
|
+
/** Represents a SigningOutput. */
|
9584
|
+
class SigningOutput implements ISigningOutput {
|
9536
9585
|
|
9537
9586
|
/**
|
9538
|
-
* Constructs a new
|
9587
|
+
* Constructs a new SigningOutput.
|
9539
9588
|
* @param [properties] Properties to set
|
9540
9589
|
*/
|
9541
|
-
constructor(properties?: TW.BitcoinV2.Proto.
|
9590
|
+
constructor(properties?: TW.BitcoinV2.Proto.ISigningOutput);
|
9542
9591
|
|
9543
|
-
/**
|
9592
|
+
/** SigningOutput error. */
|
9544
9593
|
public error: TW.Common.Proto.SigningError;
|
9545
9594
|
|
9546
|
-
/**
|
9595
|
+
/** SigningOutput errorMessage. */
|
9547
9596
|
public errorMessage: string;
|
9548
9597
|
|
9549
|
-
/**
|
9550
|
-
public
|
9598
|
+
/** SigningOutput encoded. */
|
9599
|
+
public encoded: Uint8Array;
|
9551
9600
|
|
9552
|
-
/**
|
9553
|
-
public
|
9601
|
+
/** SigningOutput txid. */
|
9602
|
+
public txid: Uint8Array;
|
9554
9603
|
|
9555
|
-
/**
|
9556
|
-
public
|
9604
|
+
/** SigningOutput vsize. */
|
9605
|
+
public vsize: Long;
|
9557
9606
|
|
9558
|
-
/**
|
9559
|
-
public
|
9607
|
+
/** SigningOutput weight. */
|
9608
|
+
public weight: Long;
|
9560
9609
|
|
9561
|
-
/**
|
9562
|
-
public
|
9610
|
+
/** SigningOutput fee. */
|
9611
|
+
public fee: Long;
|
9563
9612
|
|
9564
|
-
/**
|
9565
|
-
public
|
9613
|
+
/** SigningOutput psbt. */
|
9614
|
+
public psbt?: (TW.BitcoinV2.Proto.IPsbt|null);
|
9566
9615
|
|
9567
|
-
/**
|
9568
|
-
public
|
9616
|
+
/** SigningOutput bitcoin. */
|
9617
|
+
public bitcoin?: (TW.Utxo.Proto.ITransaction|null);
|
9618
|
+
|
9619
|
+
/** SigningOutput zcash. */
|
9620
|
+
public zcash?: (TW.Zcash.Proto.ITransaction|null);
|
9621
|
+
|
9622
|
+
/** SigningOutput transaction. */
|
9623
|
+
public transaction?: ("bitcoin"|"zcash");
|
9569
9624
|
|
9570
9625
|
/**
|
9571
|
-
* Creates a new
|
9626
|
+
* Creates a new SigningOutput instance using the specified properties.
|
9572
9627
|
* @param [properties] Properties to set
|
9573
|
-
* @returns
|
9628
|
+
* @returns SigningOutput instance
|
9574
9629
|
*/
|
9575
|
-
public static create(properties?: TW.BitcoinV2.Proto.
|
9630
|
+
public static create(properties?: TW.BitcoinV2.Proto.ISigningOutput): TW.BitcoinV2.Proto.SigningOutput;
|
9576
9631
|
|
9577
9632
|
/**
|
9578
|
-
* Encodes the specified
|
9579
|
-
* @param message
|
9633
|
+
* Encodes the specified SigningOutput message. Does not implicitly {@link TW.BitcoinV2.Proto.SigningOutput.verify|verify} messages.
|
9634
|
+
* @param message SigningOutput message or plain object to encode
|
9580
9635
|
* @param [writer] Writer to encode to
|
9581
9636
|
* @returns Writer
|
9582
9637
|
*/
|
9583
|
-
public static encode(message: TW.BitcoinV2.Proto.
|
9638
|
+
public static encode(message: TW.BitcoinV2.Proto.ISigningOutput, writer?: $protobuf.Writer): $protobuf.Writer;
|
9584
9639
|
|
9585
9640
|
/**
|
9586
|
-
* Decodes a
|
9641
|
+
* Decodes a SigningOutput message from the specified reader or buffer.
|
9587
9642
|
* @param reader Reader or buffer to decode from
|
9588
9643
|
* @param [length] Message length if known beforehand
|
9589
|
-
* @returns
|
9644
|
+
* @returns SigningOutput
|
9590
9645
|
* @throws {Error} If the payload is not a reader or valid buffer
|
9591
9646
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
9592
9647
|
*/
|
9593
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.BitcoinV2.Proto.
|
9648
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.BitcoinV2.Proto.SigningOutput;
|
9594
9649
|
|
9595
9650
|
/**
|
9596
|
-
* Verifies a
|
9651
|
+
* Verifies a SigningOutput message.
|
9597
9652
|
* @param message Plain object to verify
|
9598
9653
|
* @returns `null` if valid, otherwise the reason why it is not
|
9599
9654
|
*/
|
9600
9655
|
public static verify(message: { [k: string]: any }): (string|null);
|
9601
9656
|
|
9602
9657
|
/**
|
9603
|
-
* Creates a
|
9658
|
+
* Creates a SigningOutput message from a plain object. Also converts values to their respective internal types.
|
9604
9659
|
* @param object Plain object
|
9605
|
-
* @returns
|
9660
|
+
* @returns SigningOutput
|
9606
9661
|
*/
|
9607
|
-
public static fromObject(object: { [k: string]: any }): TW.BitcoinV2.Proto.
|
9662
|
+
public static fromObject(object: { [k: string]: any }): TW.BitcoinV2.Proto.SigningOutput;
|
9608
9663
|
|
9609
9664
|
/**
|
9610
|
-
* Creates a plain object from a
|
9611
|
-
* @param message
|
9665
|
+
* Creates a plain object from a SigningOutput message. Also converts values to other types if specified.
|
9666
|
+
* @param message SigningOutput
|
9612
9667
|
* @param [options] Conversion options
|
9613
9668
|
* @returns Plain object
|
9614
9669
|
*/
|
9615
|
-
public static toObject(message: TW.BitcoinV2.Proto.
|
9670
|
+
public static toObject(message: TW.BitcoinV2.Proto.SigningOutput, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
9616
9671
|
|
9617
9672
|
/**
|
9618
|
-
* Converts this
|
9673
|
+
* Converts this SigningOutput to JSON.
|
9619
9674
|
* @returns JSON object
|
9620
9675
|
*/
|
9621
9676
|
public toJSON(): { [k: string]: any };
|
9622
9677
|
}
|
9678
|
+
}
|
9679
|
+
}
|
9623
9680
|
|
9624
|
-
|
9625
|
-
|
9681
|
+
/** Namespace Utxo. */
|
9682
|
+
namespace Utxo {
|
9626
9683
|
|
9627
|
-
|
9628
|
-
|
9684
|
+
/** Namespace Proto. */
|
9685
|
+
namespace Proto {
|
9629
9686
|
|
9630
|
-
|
9631
|
-
|
9687
|
+
/** Properties of an OutPoint. */
|
9688
|
+
interface IOutPoint {
|
9632
9689
|
|
9633
|
-
/**
|
9634
|
-
|
9690
|
+
/** OutPoint hash */
|
9691
|
+
hash?: (Uint8Array|null);
|
9692
|
+
|
9693
|
+
/** OutPoint vout */
|
9694
|
+
vout?: (number|null);
|
9635
9695
|
}
|
9636
9696
|
|
9637
|
-
/** Represents
|
9638
|
-
class
|
9697
|
+
/** Represents an OutPoint. */
|
9698
|
+
class OutPoint implements IOutPoint {
|
9639
9699
|
|
9640
9700
|
/**
|
9641
|
-
* Constructs a new
|
9701
|
+
* Constructs a new OutPoint.
|
9642
9702
|
* @param [properties] Properties to set
|
9643
9703
|
*/
|
9644
|
-
constructor(properties?: TW.
|
9704
|
+
constructor(properties?: TW.Utxo.Proto.IOutPoint);
|
9645
9705
|
|
9646
|
-
/**
|
9647
|
-
public
|
9706
|
+
/** OutPoint hash. */
|
9707
|
+
public hash: Uint8Array;
|
9648
9708
|
|
9649
|
-
/**
|
9650
|
-
public
|
9651
|
-
|
9652
|
-
/** PreSigningOutput sighashes. */
|
9653
|
-
public sighashes: TW.BitcoinV2.Proto.PreSigningOutput.ISighash[];
|
9709
|
+
/** OutPoint vout. */
|
9710
|
+
public vout: number;
|
9654
9711
|
|
9655
9712
|
/**
|
9656
|
-
* Creates a new
|
9713
|
+
* Creates a new OutPoint instance using the specified properties.
|
9657
9714
|
* @param [properties] Properties to set
|
9658
|
-
* @returns
|
9715
|
+
* @returns OutPoint instance
|
9659
9716
|
*/
|
9660
|
-
public static create(properties?: TW.
|
9717
|
+
public static create(properties?: TW.Utxo.Proto.IOutPoint): TW.Utxo.Proto.OutPoint;
|
9661
9718
|
|
9662
9719
|
/**
|
9663
|
-
* Encodes the specified
|
9664
|
-
* @param message
|
9720
|
+
* Encodes the specified OutPoint message. Does not implicitly {@link TW.Utxo.Proto.OutPoint.verify|verify} messages.
|
9721
|
+
* @param message OutPoint message or plain object to encode
|
9665
9722
|
* @param [writer] Writer to encode to
|
9666
9723
|
* @returns Writer
|
9667
9724
|
*/
|
9668
|
-
public static encode(message: TW.
|
9725
|
+
public static encode(message: TW.Utxo.Proto.IOutPoint, writer?: $protobuf.Writer): $protobuf.Writer;
|
9669
9726
|
|
9670
9727
|
/**
|
9671
|
-
* Decodes
|
9728
|
+
* Decodes an OutPoint message from the specified reader or buffer.
|
9672
9729
|
* @param reader Reader or buffer to decode from
|
9673
9730
|
* @param [length] Message length if known beforehand
|
9674
|
-
* @returns
|
9731
|
+
* @returns OutPoint
|
9675
9732
|
* @throws {Error} If the payload is not a reader or valid buffer
|
9676
9733
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
9677
9734
|
*/
|
9678
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.
|
9735
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Utxo.Proto.OutPoint;
|
9679
9736
|
|
9680
9737
|
/**
|
9681
|
-
* Verifies
|
9738
|
+
* Verifies an OutPoint message.
|
9682
9739
|
* @param message Plain object to verify
|
9683
9740
|
* @returns `null` if valid, otherwise the reason why it is not
|
9684
9741
|
*/
|
9685
9742
|
public static verify(message: { [k: string]: any }): (string|null);
|
9686
9743
|
|
9687
9744
|
/**
|
9688
|
-
* Creates
|
9745
|
+
* Creates an OutPoint message from a plain object. Also converts values to their respective internal types.
|
9689
9746
|
* @param object Plain object
|
9690
|
-
* @returns
|
9747
|
+
* @returns OutPoint
|
9691
9748
|
*/
|
9692
|
-
public static fromObject(object: { [k: string]: any }): TW.
|
9749
|
+
public static fromObject(object: { [k: string]: any }): TW.Utxo.Proto.OutPoint;
|
9693
9750
|
|
9694
9751
|
/**
|
9695
|
-
* Creates a plain object from
|
9696
|
-
* @param message
|
9752
|
+
* Creates a plain object from an OutPoint message. Also converts values to other types if specified.
|
9753
|
+
* @param message OutPoint
|
9697
9754
|
* @param [options] Conversion options
|
9698
9755
|
* @returns Plain object
|
9699
9756
|
*/
|
9700
|
-
public static toObject(message: TW.
|
9757
|
+
public static toObject(message: TW.Utxo.Proto.OutPoint, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
9701
9758
|
|
9702
9759
|
/**
|
9703
|
-
* Converts this
|
9760
|
+
* Converts this OutPoint to JSON.
|
9704
9761
|
* @returns JSON object
|
9705
9762
|
*/
|
9706
9763
|
public toJSON(): { [k: string]: any };
|
9707
9764
|
}
|
9708
9765
|
|
9709
|
-
|
9766
|
+
/** Properties of a TransactionInput. */
|
9767
|
+
interface ITransactionInput {
|
9710
9768
|
|
9711
|
-
/**
|
9712
|
-
|
9713
|
-
Legacy = 0,
|
9714
|
-
Segwit = 1,
|
9715
|
-
Taproot = 2
|
9716
|
-
}
|
9769
|
+
/** TransactionInput outPoint */
|
9770
|
+
outPoint?: (TW.Utxo.Proto.IOutPoint|null);
|
9717
9771
|
|
9718
|
-
/**
|
9719
|
-
|
9772
|
+
/** TransactionInput sequence */
|
9773
|
+
sequence?: (number|null);
|
9720
9774
|
|
9721
|
-
|
9722
|
-
|
9775
|
+
/** TransactionInput scriptSig */
|
9776
|
+
scriptSig?: (Uint8Array|null);
|
9723
9777
|
|
9724
|
-
|
9725
|
-
|
9778
|
+
/** TransactionInput witnessItems */
|
9779
|
+
witnessItems?: (Uint8Array[]|null);
|
9780
|
+
}
|
9726
9781
|
|
9727
|
-
|
9728
|
-
|
9782
|
+
/** Represents a TransactionInput. */
|
9783
|
+
class TransactionInput implements ITransactionInput {
|
9729
9784
|
|
9730
|
-
|
9731
|
-
|
9732
|
-
|
9785
|
+
/**
|
9786
|
+
* Constructs a new TransactionInput.
|
9787
|
+
* @param [properties] Properties to set
|
9788
|
+
*/
|
9789
|
+
constructor(properties?: TW.Utxo.Proto.ITransactionInput);
|
9733
9790
|
|
9734
|
-
/**
|
9735
|
-
|
9791
|
+
/** TransactionInput outPoint. */
|
9792
|
+
public outPoint?: (TW.Utxo.Proto.IOutPoint|null);
|
9736
9793
|
|
9737
|
-
|
9738
|
-
|
9739
|
-
* @param [properties] Properties to set
|
9740
|
-
*/
|
9741
|
-
constructor(properties?: TW.BitcoinV2.Proto.PreSigningOutput.ISighash);
|
9794
|
+
/** TransactionInput sequence. */
|
9795
|
+
public sequence: number;
|
9742
9796
|
|
9743
|
-
|
9744
|
-
|
9797
|
+
/** TransactionInput scriptSig. */
|
9798
|
+
public scriptSig: Uint8Array;
|
9745
9799
|
|
9746
|
-
|
9747
|
-
|
9800
|
+
/** TransactionInput witnessItems. */
|
9801
|
+
public witnessItems: Uint8Array[];
|
9748
9802
|
|
9749
|
-
|
9750
|
-
|
9803
|
+
/**
|
9804
|
+
* Creates a new TransactionInput instance using the specified properties.
|
9805
|
+
* @param [properties] Properties to set
|
9806
|
+
* @returns TransactionInput instance
|
9807
|
+
*/
|
9808
|
+
public static create(properties?: TW.Utxo.Proto.ITransactionInput): TW.Utxo.Proto.TransactionInput;
|
9751
9809
|
|
9752
|
-
|
9753
|
-
|
9810
|
+
/**
|
9811
|
+
* Encodes the specified TransactionInput message. Does not implicitly {@link TW.Utxo.Proto.TransactionInput.verify|verify} messages.
|
9812
|
+
* @param message TransactionInput message or plain object to encode
|
9813
|
+
* @param [writer] Writer to encode to
|
9814
|
+
* @returns Writer
|
9815
|
+
*/
|
9816
|
+
public static encode(message: TW.Utxo.Proto.ITransactionInput, writer?: $protobuf.Writer): $protobuf.Writer;
|
9754
9817
|
|
9755
|
-
|
9756
|
-
|
9757
|
-
|
9758
|
-
|
9759
|
-
|
9760
|
-
|
9818
|
+
/**
|
9819
|
+
* Decodes a TransactionInput message from the specified reader or buffer.
|
9820
|
+
* @param reader Reader or buffer to decode from
|
9821
|
+
* @param [length] Message length if known beforehand
|
9822
|
+
* @returns TransactionInput
|
9823
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
9824
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
9825
|
+
*/
|
9826
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Utxo.Proto.TransactionInput;
|
9761
9827
|
|
9762
|
-
|
9763
|
-
|
9764
|
-
|
9765
|
-
|
9766
|
-
|
9767
|
-
|
9768
|
-
public static encode(message: TW.BitcoinV2.Proto.PreSigningOutput.ISighash, writer?: $protobuf.Writer): $protobuf.Writer;
|
9828
|
+
/**
|
9829
|
+
* Verifies a TransactionInput message.
|
9830
|
+
* @param message Plain object to verify
|
9831
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
9832
|
+
*/
|
9833
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
9769
9834
|
|
9770
|
-
|
9771
|
-
|
9772
|
-
|
9773
|
-
|
9774
|
-
|
9775
|
-
|
9776
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
9777
|
-
*/
|
9778
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.BitcoinV2.Proto.PreSigningOutput.Sighash;
|
9835
|
+
/**
|
9836
|
+
* Creates a TransactionInput message from a plain object. Also converts values to their respective internal types.
|
9837
|
+
* @param object Plain object
|
9838
|
+
* @returns TransactionInput
|
9839
|
+
*/
|
9840
|
+
public static fromObject(object: { [k: string]: any }): TW.Utxo.Proto.TransactionInput;
|
9779
9841
|
|
9780
|
-
|
9781
|
-
|
9782
|
-
|
9783
|
-
|
9784
|
-
|
9785
|
-
|
9842
|
+
/**
|
9843
|
+
* Creates a plain object from a TransactionInput message. Also converts values to other types if specified.
|
9844
|
+
* @param message TransactionInput
|
9845
|
+
* @param [options] Conversion options
|
9846
|
+
* @returns Plain object
|
9847
|
+
*/
|
9848
|
+
public static toObject(message: TW.Utxo.Proto.TransactionInput, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
9786
9849
|
|
9787
|
-
|
9788
|
-
|
9789
|
-
|
9790
|
-
|
9791
|
-
|
9792
|
-
|
9850
|
+
/**
|
9851
|
+
* Converts this TransactionInput to JSON.
|
9852
|
+
* @returns JSON object
|
9853
|
+
*/
|
9854
|
+
public toJSON(): { [k: string]: any };
|
9855
|
+
}
|
9793
9856
|
|
9794
|
-
|
9795
|
-
|
9796
|
-
* @param message Sighash
|
9797
|
-
* @param [options] Conversion options
|
9798
|
-
* @returns Plain object
|
9799
|
-
*/
|
9800
|
-
public static toObject(message: TW.BitcoinV2.Proto.PreSigningOutput.Sighash, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
9857
|
+
/** Properties of a TransactionOutput. */
|
9858
|
+
interface ITransactionOutput {
|
9801
9859
|
|
9802
|
-
|
9803
|
-
|
9804
|
-
* @returns JSON object
|
9805
|
-
*/
|
9806
|
-
public toJSON(): { [k: string]: any };
|
9807
|
-
}
|
9860
|
+
/** TransactionOutput scriptPubkey */
|
9861
|
+
scriptPubkey?: (Uint8Array|null);
|
9808
9862
|
|
9809
|
-
/**
|
9810
|
-
|
9863
|
+
/** TransactionOutput value */
|
9864
|
+
value?: (Long|null);
|
9865
|
+
}
|
9811
9866
|
|
9812
|
-
|
9813
|
-
|
9814
|
-
}
|
9867
|
+
/** Represents a TransactionOutput. */
|
9868
|
+
class TransactionOutput implements ITransactionOutput {
|
9815
9869
|
|
9816
|
-
/**
|
9817
|
-
|
9870
|
+
/**
|
9871
|
+
* Constructs a new TransactionOutput.
|
9872
|
+
* @param [properties] Properties to set
|
9873
|
+
*/
|
9874
|
+
constructor(properties?: TW.Utxo.Proto.ITransactionOutput);
|
9818
9875
|
|
9819
|
-
|
9820
|
-
|
9821
|
-
* @param [properties] Properties to set
|
9822
|
-
*/
|
9823
|
-
constructor(properties?: TW.BitcoinV2.Proto.PreSigningOutput.ITaprootTweak);
|
9876
|
+
/** TransactionOutput scriptPubkey. */
|
9877
|
+
public scriptPubkey: Uint8Array;
|
9824
9878
|
|
9825
|
-
|
9826
|
-
|
9879
|
+
/** TransactionOutput value. */
|
9880
|
+
public value: Long;
|
9827
9881
|
|
9828
|
-
|
9829
|
-
|
9830
|
-
|
9831
|
-
|
9832
|
-
|
9833
|
-
|
9882
|
+
/**
|
9883
|
+
* Creates a new TransactionOutput instance using the specified properties.
|
9884
|
+
* @param [properties] Properties to set
|
9885
|
+
* @returns TransactionOutput instance
|
9886
|
+
*/
|
9887
|
+
public static create(properties?: TW.Utxo.Proto.ITransactionOutput): TW.Utxo.Proto.TransactionOutput;
|
9834
9888
|
|
9835
|
-
|
9836
|
-
|
9837
|
-
|
9838
|
-
|
9839
|
-
|
9840
|
-
|
9841
|
-
|
9889
|
+
/**
|
9890
|
+
* Encodes the specified TransactionOutput message. Does not implicitly {@link TW.Utxo.Proto.TransactionOutput.verify|verify} messages.
|
9891
|
+
* @param message TransactionOutput message or plain object to encode
|
9892
|
+
* @param [writer] Writer to encode to
|
9893
|
+
* @returns Writer
|
9894
|
+
*/
|
9895
|
+
public static encode(message: TW.Utxo.Proto.ITransactionOutput, writer?: $protobuf.Writer): $protobuf.Writer;
|
9842
9896
|
|
9843
|
-
|
9844
|
-
|
9845
|
-
|
9846
|
-
|
9847
|
-
|
9848
|
-
|
9849
|
-
|
9850
|
-
|
9851
|
-
|
9897
|
+
/**
|
9898
|
+
* Decodes a TransactionOutput message from the specified reader or buffer.
|
9899
|
+
* @param reader Reader or buffer to decode from
|
9900
|
+
* @param [length] Message length if known beforehand
|
9901
|
+
* @returns TransactionOutput
|
9902
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
9903
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
9904
|
+
*/
|
9905
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Utxo.Proto.TransactionOutput;
|
9852
9906
|
|
9853
|
-
|
9854
|
-
|
9855
|
-
|
9856
|
-
|
9857
|
-
|
9858
|
-
|
9907
|
+
/**
|
9908
|
+
* Verifies a TransactionOutput message.
|
9909
|
+
* @param message Plain object to verify
|
9910
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
9911
|
+
*/
|
9912
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
9859
9913
|
|
9860
|
-
|
9861
|
-
|
9862
|
-
|
9863
|
-
|
9864
|
-
|
9865
|
-
|
9914
|
+
/**
|
9915
|
+
* Creates a TransactionOutput message from a plain object. Also converts values to their respective internal types.
|
9916
|
+
* @param object Plain object
|
9917
|
+
* @returns TransactionOutput
|
9918
|
+
*/
|
9919
|
+
public static fromObject(object: { [k: string]: any }): TW.Utxo.Proto.TransactionOutput;
|
9866
9920
|
|
9867
|
-
|
9868
|
-
|
9869
|
-
|
9870
|
-
|
9871
|
-
|
9872
|
-
|
9873
|
-
|
9921
|
+
/**
|
9922
|
+
* Creates a plain object from a TransactionOutput message. Also converts values to other types if specified.
|
9923
|
+
* @param message TransactionOutput
|
9924
|
+
* @param [options] Conversion options
|
9925
|
+
* @returns Plain object
|
9926
|
+
*/
|
9927
|
+
public static toObject(message: TW.Utxo.Proto.TransactionOutput, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
9874
9928
|
|
9875
|
-
|
9876
|
-
|
9877
|
-
|
9878
|
-
|
9879
|
-
|
9880
|
-
}
|
9929
|
+
/**
|
9930
|
+
* Converts this TransactionOutput to JSON.
|
9931
|
+
* @returns JSON object
|
9932
|
+
*/
|
9933
|
+
public toJSON(): { [k: string]: any };
|
9881
9934
|
}
|
9882
9935
|
|
9883
|
-
/** Properties of a
|
9884
|
-
interface
|
9936
|
+
/** Properties of a Transaction. */
|
9937
|
+
interface ITransaction {
|
9885
9938
|
|
9886
|
-
/**
|
9887
|
-
|
9939
|
+
/** Transaction version */
|
9940
|
+
version?: (number|null);
|
9888
9941
|
|
9889
|
-
/**
|
9890
|
-
|
9942
|
+
/** Transaction lockTime */
|
9943
|
+
lockTime?: (number|null);
|
9891
9944
|
|
9892
|
-
/**
|
9893
|
-
|
9945
|
+
/** Transaction inputs */
|
9946
|
+
inputs?: (TW.Utxo.Proto.ITransactionInput[]|null);
|
9894
9947
|
|
9895
|
-
/**
|
9896
|
-
|
9948
|
+
/** Transaction outputs */
|
9949
|
+
outputs?: (TW.Utxo.Proto.ITransactionOutput[]|null);
|
9950
|
+
}
|
9897
9951
|
|
9898
|
-
|
9899
|
-
|
9952
|
+
/** Represents a Transaction. */
|
9953
|
+
class Transaction implements ITransaction {
|
9900
9954
|
|
9901
|
-
/**
|
9902
|
-
|
9955
|
+
/**
|
9956
|
+
* Constructs a new Transaction.
|
9957
|
+
* @param [properties] Properties to set
|
9958
|
+
*/
|
9959
|
+
constructor(properties?: TW.Utxo.Proto.ITransaction);
|
9903
9960
|
|
9904
|
-
/**
|
9905
|
-
|
9961
|
+
/** Transaction version. */
|
9962
|
+
public version: number;
|
9906
9963
|
|
9907
|
-
/**
|
9908
|
-
|
9964
|
+
/** Transaction lockTime. */
|
9965
|
+
public lockTime: number;
|
9909
9966
|
|
9910
|
-
/**
|
9911
|
-
|
9967
|
+
/** Transaction inputs. */
|
9968
|
+
public inputs: TW.Utxo.Proto.ITransactionInput[];
|
9969
|
+
|
9970
|
+
/** Transaction outputs. */
|
9971
|
+
public outputs: TW.Utxo.Proto.ITransactionOutput[];
|
9972
|
+
|
9973
|
+
/**
|
9974
|
+
* Creates a new Transaction instance using the specified properties.
|
9975
|
+
* @param [properties] Properties to set
|
9976
|
+
* @returns Transaction instance
|
9977
|
+
*/
|
9978
|
+
public static create(properties?: TW.Utxo.Proto.ITransaction): TW.Utxo.Proto.Transaction;
|
9979
|
+
|
9980
|
+
/**
|
9981
|
+
* Encodes the specified Transaction message. Does not implicitly {@link TW.Utxo.Proto.Transaction.verify|verify} messages.
|
9982
|
+
* @param message Transaction message or plain object to encode
|
9983
|
+
* @param [writer] Writer to encode to
|
9984
|
+
* @returns Writer
|
9985
|
+
*/
|
9986
|
+
public static encode(message: TW.Utxo.Proto.ITransaction, writer?: $protobuf.Writer): $protobuf.Writer;
|
9987
|
+
|
9988
|
+
/**
|
9989
|
+
* Decodes a Transaction message from the specified reader or buffer.
|
9990
|
+
* @param reader Reader or buffer to decode from
|
9991
|
+
* @param [length] Message length if known beforehand
|
9992
|
+
* @returns Transaction
|
9993
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
9994
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
9995
|
+
*/
|
9996
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Utxo.Proto.Transaction;
|
9997
|
+
|
9998
|
+
/**
|
9999
|
+
* Verifies a Transaction message.
|
10000
|
+
* @param message Plain object to verify
|
10001
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
10002
|
+
*/
|
10003
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
10004
|
+
|
10005
|
+
/**
|
10006
|
+
* Creates a Transaction message from a plain object. Also converts values to their respective internal types.
|
10007
|
+
* @param object Plain object
|
10008
|
+
* @returns Transaction
|
10009
|
+
*/
|
10010
|
+
public static fromObject(object: { [k: string]: any }): TW.Utxo.Proto.Transaction;
|
10011
|
+
|
10012
|
+
/**
|
10013
|
+
* Creates a plain object from a Transaction message. Also converts values to other types if specified.
|
10014
|
+
* @param message Transaction
|
10015
|
+
* @param [options] Conversion options
|
10016
|
+
* @returns Plain object
|
10017
|
+
*/
|
10018
|
+
public static toObject(message: TW.Utxo.Proto.Transaction, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
10019
|
+
|
10020
|
+
/**
|
10021
|
+
* Converts this Transaction to JSON.
|
10022
|
+
* @returns JSON object
|
10023
|
+
*/
|
10024
|
+
public toJSON(): { [k: string]: any };
|
9912
10025
|
}
|
10026
|
+
}
|
10027
|
+
}
|
9913
10028
|
|
9914
|
-
|
9915
|
-
|
10029
|
+
/** Namespace Zcash. */
|
10030
|
+
namespace Zcash {
|
10031
|
+
|
10032
|
+
/** Namespace Proto. */
|
10033
|
+
namespace Proto {
|
10034
|
+
|
10035
|
+
/** Properties of a TransactionBuilderExtraData. */
|
10036
|
+
interface ITransactionBuilderExtraData {
|
10037
|
+
|
10038
|
+
/** TransactionBuilderExtraData branchId */
|
10039
|
+
branchId?: (Uint8Array|null);
|
10040
|
+
|
10041
|
+
/** TransactionBuilderExtraData expiryHeight */
|
10042
|
+
expiryHeight?: (number|null);
|
10043
|
+
|
10044
|
+
/** TransactionBuilderExtraData zip_0317 */
|
10045
|
+
zip_0317?: (boolean|null);
|
10046
|
+
}
|
10047
|
+
|
10048
|
+
/** Represents a TransactionBuilderExtraData. */
|
10049
|
+
class TransactionBuilderExtraData implements ITransactionBuilderExtraData {
|
9916
10050
|
|
9917
10051
|
/**
|
9918
|
-
* Constructs a new
|
10052
|
+
* Constructs a new TransactionBuilderExtraData.
|
9919
10053
|
* @param [properties] Properties to set
|
9920
10054
|
*/
|
9921
|
-
constructor(properties?: TW.
|
10055
|
+
constructor(properties?: TW.Zcash.Proto.ITransactionBuilderExtraData);
|
9922
10056
|
|
9923
|
-
/**
|
9924
|
-
public
|
10057
|
+
/** TransactionBuilderExtraData branchId. */
|
10058
|
+
public branchId: Uint8Array;
|
9925
10059
|
|
9926
|
-
/**
|
9927
|
-
public
|
10060
|
+
/** TransactionBuilderExtraData expiryHeight. */
|
10061
|
+
public expiryHeight: number;
|
9928
10062
|
|
9929
|
-
/**
|
9930
|
-
public
|
10063
|
+
/** TransactionBuilderExtraData zip_0317. */
|
10064
|
+
public zip_0317: boolean;
|
9931
10065
|
|
9932
|
-
/**
|
9933
|
-
|
10066
|
+
/**
|
10067
|
+
* Creates a new TransactionBuilderExtraData instance using the specified properties.
|
10068
|
+
* @param [properties] Properties to set
|
10069
|
+
* @returns TransactionBuilderExtraData instance
|
10070
|
+
*/
|
10071
|
+
public static create(properties?: TW.Zcash.Proto.ITransactionBuilderExtraData): TW.Zcash.Proto.TransactionBuilderExtraData;
|
9934
10072
|
|
9935
|
-
/**
|
9936
|
-
|
10073
|
+
/**
|
10074
|
+
* Encodes the specified TransactionBuilderExtraData message. Does not implicitly {@link TW.Zcash.Proto.TransactionBuilderExtraData.verify|verify} messages.
|
10075
|
+
* @param message TransactionBuilderExtraData message or plain object to encode
|
10076
|
+
* @param [writer] Writer to encode to
|
10077
|
+
* @returns Writer
|
10078
|
+
*/
|
10079
|
+
public static encode(message: TW.Zcash.Proto.ITransactionBuilderExtraData, writer?: $protobuf.Writer): $protobuf.Writer;
|
9937
10080
|
|
9938
|
-
/**
|
9939
|
-
|
10081
|
+
/**
|
10082
|
+
* Decodes a TransactionBuilderExtraData message from the specified reader or buffer.
|
10083
|
+
* @param reader Reader or buffer to decode from
|
10084
|
+
* @param [length] Message length if known beforehand
|
10085
|
+
* @returns TransactionBuilderExtraData
|
10086
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
10087
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
10088
|
+
*/
|
10089
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Zcash.Proto.TransactionBuilderExtraData;
|
9940
10090
|
|
9941
|
-
/**
|
9942
|
-
|
10091
|
+
/**
|
10092
|
+
* Verifies a TransactionBuilderExtraData message.
|
10093
|
+
* @param message Plain object to verify
|
10094
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
10095
|
+
*/
|
10096
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
9943
10097
|
|
9944
|
-
/**
|
9945
|
-
|
10098
|
+
/**
|
10099
|
+
* Creates a TransactionBuilderExtraData message from a plain object. Also converts values to their respective internal types.
|
10100
|
+
* @param object Plain object
|
10101
|
+
* @returns TransactionBuilderExtraData
|
10102
|
+
*/
|
10103
|
+
public static fromObject(object: { [k: string]: any }): TW.Zcash.Proto.TransactionBuilderExtraData;
|
9946
10104
|
|
9947
|
-
/**
|
9948
|
-
|
10105
|
+
/**
|
10106
|
+
* Creates a plain object from a TransactionBuilderExtraData message. Also converts values to other types if specified.
|
10107
|
+
* @param message TransactionBuilderExtraData
|
10108
|
+
* @param [options] Conversion options
|
10109
|
+
* @returns Plain object
|
10110
|
+
*/
|
10111
|
+
public static toObject(message: TW.Zcash.Proto.TransactionBuilderExtraData, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
9949
10112
|
|
9950
10113
|
/**
|
9951
|
-
*
|
10114
|
+
* Converts this TransactionBuilderExtraData to JSON.
|
10115
|
+
* @returns JSON object
|
10116
|
+
*/
|
10117
|
+
public toJSON(): { [k: string]: any };
|
10118
|
+
}
|
10119
|
+
|
10120
|
+
/** Properties of a Transaction. */
|
10121
|
+
interface ITransaction {
|
10122
|
+
|
10123
|
+
/** Currently, version 4 (0x80000004) is supported only. */
|
10124
|
+
version?: (number|null);
|
10125
|
+
|
10126
|
+
/** Transaction versionGroupId */
|
10127
|
+
versionGroupId?: (number|null);
|
10128
|
+
|
10129
|
+
/** Transaction inputs */
|
10130
|
+
inputs?: (TW.Utxo.Proto.ITransactionInput[]|null);
|
10131
|
+
|
10132
|
+
/** Transaction outputs */
|
10133
|
+
outputs?: (TW.Utxo.Proto.ITransactionOutput[]|null);
|
10134
|
+
|
10135
|
+
/** Transaction lockTime */
|
10136
|
+
lockTime?: (number|null);
|
10137
|
+
|
10138
|
+
/** Transaction expiryHeight */
|
10139
|
+
expiryHeight?: (number|null);
|
10140
|
+
|
10141
|
+
/** Transaction saplingValueBalance */
|
10142
|
+
saplingValueBalance?: (Long|null);
|
10143
|
+
|
10144
|
+
/** Transaction branchId */
|
10145
|
+
branchId?: (Uint8Array|null);
|
10146
|
+
}
|
10147
|
+
|
10148
|
+
/** Represents a Transaction. */
|
10149
|
+
class Transaction implements ITransaction {
|
10150
|
+
|
10151
|
+
/**
|
10152
|
+
* Constructs a new Transaction.
|
9952
10153
|
* @param [properties] Properties to set
|
9953
|
-
* @returns SigningOutput instance
|
9954
10154
|
*/
|
9955
|
-
|
10155
|
+
constructor(properties?: TW.Zcash.Proto.ITransaction);
|
10156
|
+
|
10157
|
+
/** Currently, version 4 (0x80000004) is supported only. */
|
10158
|
+
public version: number;
|
10159
|
+
|
10160
|
+
/** Transaction versionGroupId. */
|
10161
|
+
public versionGroupId: number;
|
10162
|
+
|
10163
|
+
/** Transaction inputs. */
|
10164
|
+
public inputs: TW.Utxo.Proto.ITransactionInput[];
|
10165
|
+
|
10166
|
+
/** Transaction outputs. */
|
10167
|
+
public outputs: TW.Utxo.Proto.ITransactionOutput[];
|
10168
|
+
|
10169
|
+
/** Transaction lockTime. */
|
10170
|
+
public lockTime: number;
|
10171
|
+
|
10172
|
+
/** Transaction expiryHeight. */
|
10173
|
+
public expiryHeight: number;
|
10174
|
+
|
10175
|
+
/** Transaction saplingValueBalance. */
|
10176
|
+
public saplingValueBalance: Long;
|
10177
|
+
|
10178
|
+
/** Transaction branchId. */
|
10179
|
+
public branchId: Uint8Array;
|
9956
10180
|
|
9957
10181
|
/**
|
9958
|
-
*
|
9959
|
-
* @param
|
10182
|
+
* Creates a new Transaction instance using the specified properties.
|
10183
|
+
* @param [properties] Properties to set
|
10184
|
+
* @returns Transaction instance
|
10185
|
+
*/
|
10186
|
+
public static create(properties?: TW.Zcash.Proto.ITransaction): TW.Zcash.Proto.Transaction;
|
10187
|
+
|
10188
|
+
/**
|
10189
|
+
* Encodes the specified Transaction message. Does not implicitly {@link TW.Zcash.Proto.Transaction.verify|verify} messages.
|
10190
|
+
* @param message Transaction message or plain object to encode
|
9960
10191
|
* @param [writer] Writer to encode to
|
9961
10192
|
* @returns Writer
|
9962
10193
|
*/
|
9963
|
-
public static encode(message: TW.
|
10194
|
+
public static encode(message: TW.Zcash.Proto.ITransaction, writer?: $protobuf.Writer): $protobuf.Writer;
|
9964
10195
|
|
9965
10196
|
/**
|
9966
|
-
* Decodes a
|
10197
|
+
* Decodes a Transaction message from the specified reader or buffer.
|
9967
10198
|
* @param reader Reader or buffer to decode from
|
9968
10199
|
* @param [length] Message length if known beforehand
|
9969
|
-
* @returns
|
10200
|
+
* @returns Transaction
|
9970
10201
|
* @throws {Error} If the payload is not a reader or valid buffer
|
9971
10202
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
9972
10203
|
*/
|
9973
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.
|
10204
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Zcash.Proto.Transaction;
|
9974
10205
|
|
9975
10206
|
/**
|
9976
|
-
* Verifies a
|
10207
|
+
* Verifies a Transaction message.
|
9977
10208
|
* @param message Plain object to verify
|
9978
10209
|
* @returns `null` if valid, otherwise the reason why it is not
|
9979
10210
|
*/
|
9980
10211
|
public static verify(message: { [k: string]: any }): (string|null);
|
9981
10212
|
|
9982
10213
|
/**
|
9983
|
-
* Creates a
|
10214
|
+
* Creates a Transaction message from a plain object. Also converts values to their respective internal types.
|
9984
10215
|
* @param object Plain object
|
9985
|
-
* @returns
|
10216
|
+
* @returns Transaction
|
9986
10217
|
*/
|
9987
|
-
public static fromObject(object: { [k: string]: any }): TW.
|
10218
|
+
public static fromObject(object: { [k: string]: any }): TW.Zcash.Proto.Transaction;
|
9988
10219
|
|
9989
10220
|
/**
|
9990
|
-
* Creates a plain object from a
|
9991
|
-
* @param message
|
10221
|
+
* Creates a plain object from a Transaction message. Also converts values to other types if specified.
|
10222
|
+
* @param message Transaction
|
9992
10223
|
* @param [options] Conversion options
|
9993
10224
|
* @returns Plain object
|
9994
10225
|
*/
|
9995
|
-
public static toObject(message: TW.
|
10226
|
+
public static toObject(message: TW.Zcash.Proto.Transaction, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
9996
10227
|
|
9997
10228
|
/**
|
9998
|
-
* Converts this
|
10229
|
+
* Converts this Transaction to JSON.
|
9999
10230
|
* @returns JSON object
|
10000
10231
|
*/
|
10001
10232
|
public toJSON(): { [k: string]: any };
|