@trustwallet/wallet-core 4.0.49 → 4.1.0-rc1
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 +831 -2146
- package/dist/generated/core_proto.js +3300 -7847
- package/dist/lib/wallet-core.js +1 -1
- package/dist/lib/wallet-core.wasm +0 -0
- package/dist/src/wallet-core.d.ts +4 -11
- package/package.json +1 -1
@@ -6020,12 +6020,6 @@ export namespace TW {
|
|
6020
6020
|
/** SigningInput time */
|
6021
6021
|
time?: (number|null);
|
6022
6022
|
|
6023
|
-
/** SigningInput isItBrcOperation */
|
6024
|
-
isItBrcOperation?: (boolean|null);
|
6025
|
-
|
6026
|
-
/** SigningInput planningV2 */
|
6027
|
-
planningV2?: (TW.BitcoinV2.Proto.IComposePlan|null);
|
6028
|
-
|
6029
6023
|
/** SigningInput signingV2 */
|
6030
6024
|
signingV2?: (TW.BitcoinV2.Proto.ISigningInput|null);
|
6031
6025
|
|
@@ -6096,12 +6090,6 @@ export namespace TW {
|
|
6096
6090
|
/** SigningInput time. */
|
6097
6091
|
public time: number;
|
6098
6092
|
|
6099
|
-
/** SigningInput isItBrcOperation. */
|
6100
|
-
public isItBrcOperation: boolean;
|
6101
|
-
|
6102
|
-
/** SigningInput planningV2. */
|
6103
|
-
public planningV2?: (TW.BitcoinV2.Proto.IComposePlan|null);
|
6104
|
-
|
6105
6093
|
/** SigningInput signingV2. */
|
6106
6094
|
public signingV2?: (TW.BitcoinV2.Proto.ISigningInput|null);
|
6107
6095
|
|
@@ -6579,176 +6567,170 @@ export namespace TW {
|
|
6579
6567
|
/** Namespace Proto. */
|
6580
6568
|
namespace Proto {
|
6581
6569
|
|
6582
|
-
/**
|
6583
|
-
enum
|
6584
|
-
|
6585
|
-
|
6586
|
-
|
6587
|
-
|
6588
|
-
Error_utxo_invalid_txid = 5,
|
6589
|
-
Error_utxo_sighash_failed = 6,
|
6590
|
-
Error_utxo_missing_sighash_method = 7,
|
6591
|
-
Error_utxo_failed_encoding = 8,
|
6592
|
-
Error_utxo_insufficient_inputs = 9,
|
6593
|
-
Error_utxo_no_outputs_specified = 43,
|
6594
|
-
Error_utxo_missing_change_script_pubkey = 10,
|
6595
|
-
Error_zero_sequence_not_enabled = 11,
|
6596
|
-
Error_unmatched_input_signature_count = 12,
|
6597
|
-
Error_missing_input_builder = 13,
|
6598
|
-
Error_missing_output_builder = 14,
|
6599
|
-
Error_missing_recipient = 15,
|
6600
|
-
Error_missing_inscription = 41,
|
6601
|
-
Error_missing_tagged_output = 42,
|
6602
|
-
Error_legacy_p2tr_invalid_variant = 16,
|
6603
|
-
Error_legacy_no_spending_script_provided = 17,
|
6604
|
-
Error_legacy_expected_redeem_script = 18,
|
6605
|
-
Error_legacy_outpoint_not_set = 19,
|
6606
|
-
Error_legacy_no_private_key = 36,
|
6607
|
-
Error_legacy_no_plan_provided = 37,
|
6608
|
-
Error_invalid_private_key = 20,
|
6609
|
-
Error_invalid_public_key = 21,
|
6610
|
-
Error_invalid_sighash = 22,
|
6611
|
-
Error_invalid_witness_pubkey_hash = 23,
|
6612
|
-
Error_invalid_brc20_ticker = 24,
|
6613
|
-
Error_invalid_ecdsa_signature = 25,
|
6614
|
-
Error_invalid_schnorr_signature = 26,
|
6615
|
-
Error_invalid_control_block = 27,
|
6616
|
-
Error_invalid_pubkey_hash = 28,
|
6617
|
-
Error_invalid_taproot_root = 29,
|
6618
|
-
Error_invalid_redeem_script = 30,
|
6619
|
-
Error_invalid_wpkh_script_code = 1,
|
6620
|
-
Error_invalid_witness_redeem_script_hash = 31,
|
6621
|
-
Error_invalid_witness_encoding = 39,
|
6622
|
-
Error_invalid_taproot_tweaked_pubkey = 32,
|
6623
|
-
Error_invalid_change_output = 33,
|
6624
|
-
Error_unsupported_address_recipient = 34,
|
6625
|
-
Error_bad_address_recipient = 35,
|
6626
|
-
Error_ordinal_mime_type_too_large = 38,
|
6627
|
-
Error_ordinal_payload_too_large = 40
|
6570
|
+
/** InputSelector enum. */
|
6571
|
+
enum InputSelector {
|
6572
|
+
SelectAscending = 0,
|
6573
|
+
SelectInOrder = 1,
|
6574
|
+
SelectDescending = 2,
|
6575
|
+
UseAll = 10
|
6628
6576
|
}
|
6629
6577
|
|
6630
|
-
/** Properties of a
|
6631
|
-
interface
|
6632
|
-
|
6633
|
-
/** SigningInput version */
|
6634
|
-
version?: (number|null);
|
6578
|
+
/** Properties of a PublicKeyOrHash. */
|
6579
|
+
interface IPublicKeyOrHash {
|
6635
6580
|
|
6636
|
-
/**
|
6637
|
-
|
6581
|
+
/** PublicKeyOrHash pubkey */
|
6582
|
+
pubkey?: (Uint8Array|null);
|
6638
6583
|
|
6639
|
-
/**
|
6640
|
-
|
6584
|
+
/** PublicKeyOrHash hash */
|
6585
|
+
hash?: (Uint8Array|null);
|
6586
|
+
}
|
6641
6587
|
|
6642
|
-
|
6643
|
-
|
6588
|
+
/** Represents a PublicKeyOrHash. */
|
6589
|
+
class PublicKeyOrHash implements IPublicKeyOrHash {
|
6644
6590
|
|
6645
|
-
/**
|
6646
|
-
|
6591
|
+
/**
|
6592
|
+
* Constructs a new PublicKeyOrHash.
|
6593
|
+
* @param [properties] Properties to set
|
6594
|
+
*/
|
6595
|
+
constructor(properties?: TW.BitcoinV2.Proto.IPublicKeyOrHash);
|
6647
6596
|
|
6648
|
-
/**
|
6649
|
-
|
6597
|
+
/** PublicKeyOrHash pubkey. */
|
6598
|
+
public pubkey?: (Uint8Array|null);
|
6650
6599
|
|
6651
|
-
/**
|
6652
|
-
|
6600
|
+
/** PublicKeyOrHash hash. */
|
6601
|
+
public hash?: (Uint8Array|null);
|
6653
6602
|
|
6654
|
-
/**
|
6655
|
-
|
6603
|
+
/** PublicKeyOrHash variant. */
|
6604
|
+
public variant?: ("pubkey"|"hash");
|
6656
6605
|
|
6657
|
-
/**
|
6658
|
-
|
6606
|
+
/**
|
6607
|
+
* Creates a new PublicKeyOrHash instance using the specified properties.
|
6608
|
+
* @param [properties] Properties to set
|
6609
|
+
* @returns PublicKeyOrHash instance
|
6610
|
+
*/
|
6611
|
+
public static create(properties?: TW.BitcoinV2.Proto.IPublicKeyOrHash): TW.BitcoinV2.Proto.PublicKeyOrHash;
|
6659
6612
|
|
6660
|
-
/**
|
6661
|
-
|
6662
|
-
|
6613
|
+
/**
|
6614
|
+
* Encodes the specified PublicKeyOrHash message. Does not implicitly {@link TW.BitcoinV2.Proto.PublicKeyOrHash.verify|verify} messages.
|
6615
|
+
* @param message PublicKeyOrHash message or plain object to encode
|
6616
|
+
* @param [writer] Writer to encode to
|
6617
|
+
* @returns Writer
|
6618
|
+
*/
|
6619
|
+
public static encode(message: TW.BitcoinV2.Proto.IPublicKeyOrHash, writer?: $protobuf.Writer): $protobuf.Writer;
|
6663
6620
|
|
6664
|
-
|
6665
|
-
|
6621
|
+
/**
|
6622
|
+
* Decodes a PublicKeyOrHash message from the specified reader or buffer.
|
6623
|
+
* @param reader Reader or buffer to decode from
|
6624
|
+
* @param [length] Message length if known beforehand
|
6625
|
+
* @returns PublicKeyOrHash
|
6626
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
6627
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
6628
|
+
*/
|
6629
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.BitcoinV2.Proto.PublicKeyOrHash;
|
6666
6630
|
|
6667
6631
|
/**
|
6668
|
-
*
|
6669
|
-
* @param
|
6632
|
+
* Verifies a PublicKeyOrHash message.
|
6633
|
+
* @param message Plain object to verify
|
6634
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
6670
6635
|
*/
|
6671
|
-
|
6636
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
6672
6637
|
|
6673
|
-
/**
|
6674
|
-
|
6638
|
+
/**
|
6639
|
+
* Creates a PublicKeyOrHash message from a plain object. Also converts values to their respective internal types.
|
6640
|
+
* @param object Plain object
|
6641
|
+
* @returns PublicKeyOrHash
|
6642
|
+
*/
|
6643
|
+
public static fromObject(object: { [k: string]: any }): TW.BitcoinV2.Proto.PublicKeyOrHash;
|
6675
6644
|
|
6676
|
-
/**
|
6677
|
-
|
6645
|
+
/**
|
6646
|
+
* Creates a plain object from a PublicKeyOrHash message. Also converts values to other types if specified.
|
6647
|
+
* @param message PublicKeyOrHash
|
6648
|
+
* @param [options] Conversion options
|
6649
|
+
* @returns Plain object
|
6650
|
+
*/
|
6651
|
+
public static toObject(message: TW.BitcoinV2.Proto.PublicKeyOrHash, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
6678
6652
|
|
6679
|
-
/**
|
6680
|
-
|
6653
|
+
/**
|
6654
|
+
* Converts this PublicKeyOrHash to JSON.
|
6655
|
+
* @returns JSON object
|
6656
|
+
*/
|
6657
|
+
public toJSON(): { [k: string]: any };
|
6658
|
+
}
|
6681
6659
|
|
6682
|
-
|
6683
|
-
|
6660
|
+
/** Properties of an OutPoint. */
|
6661
|
+
interface IOutPoint {
|
6684
6662
|
|
6685
|
-
/**
|
6686
|
-
|
6663
|
+
/** OutPoint hash */
|
6664
|
+
hash?: (Uint8Array|null);
|
6687
6665
|
|
6688
|
-
/**
|
6689
|
-
|
6666
|
+
/** OutPoint vout */
|
6667
|
+
vout?: (number|null);
|
6668
|
+
}
|
6690
6669
|
|
6691
|
-
|
6692
|
-
|
6670
|
+
/** Represents an OutPoint. */
|
6671
|
+
class OutPoint implements IOutPoint {
|
6693
6672
|
|
6694
|
-
/**
|
6695
|
-
|
6673
|
+
/**
|
6674
|
+
* Constructs a new OutPoint.
|
6675
|
+
* @param [properties] Properties to set
|
6676
|
+
*/
|
6677
|
+
constructor(properties?: TW.BitcoinV2.Proto.IOutPoint);
|
6696
6678
|
|
6697
|
-
/**
|
6698
|
-
public
|
6679
|
+
/** OutPoint hash. */
|
6680
|
+
public hash: Uint8Array;
|
6699
6681
|
|
6700
|
-
/**
|
6701
|
-
public
|
6682
|
+
/** OutPoint vout. */
|
6683
|
+
public vout: number;
|
6702
6684
|
|
6703
6685
|
/**
|
6704
|
-
* Creates a new
|
6686
|
+
* Creates a new OutPoint instance using the specified properties.
|
6705
6687
|
* @param [properties] Properties to set
|
6706
|
-
* @returns
|
6688
|
+
* @returns OutPoint instance
|
6707
6689
|
*/
|
6708
|
-
public static create(properties?: TW.BitcoinV2.Proto.
|
6690
|
+
public static create(properties?: TW.BitcoinV2.Proto.IOutPoint): TW.BitcoinV2.Proto.OutPoint;
|
6709
6691
|
|
6710
6692
|
/**
|
6711
|
-
* Encodes the specified
|
6712
|
-
* @param message
|
6693
|
+
* Encodes the specified OutPoint message. Does not implicitly {@link TW.BitcoinV2.Proto.OutPoint.verify|verify} messages.
|
6694
|
+
* @param message OutPoint message or plain object to encode
|
6713
6695
|
* @param [writer] Writer to encode to
|
6714
6696
|
* @returns Writer
|
6715
6697
|
*/
|
6716
|
-
public static encode(message: TW.BitcoinV2.Proto.
|
6698
|
+
public static encode(message: TW.BitcoinV2.Proto.IOutPoint, writer?: $protobuf.Writer): $protobuf.Writer;
|
6717
6699
|
|
6718
6700
|
/**
|
6719
|
-
* Decodes
|
6701
|
+
* Decodes an OutPoint message from the specified reader or buffer.
|
6720
6702
|
* @param reader Reader or buffer to decode from
|
6721
6703
|
* @param [length] Message length if known beforehand
|
6722
|
-
* @returns
|
6704
|
+
* @returns OutPoint
|
6723
6705
|
* @throws {Error} If the payload is not a reader or valid buffer
|
6724
6706
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
6725
6707
|
*/
|
6726
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.BitcoinV2.Proto.
|
6708
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.BitcoinV2.Proto.OutPoint;
|
6727
6709
|
|
6728
6710
|
/**
|
6729
|
-
* Verifies
|
6711
|
+
* Verifies an OutPoint message.
|
6730
6712
|
* @param message Plain object to verify
|
6731
6713
|
* @returns `null` if valid, otherwise the reason why it is not
|
6732
6714
|
*/
|
6733
6715
|
public static verify(message: { [k: string]: any }): (string|null);
|
6734
6716
|
|
6735
6717
|
/**
|
6736
|
-
* Creates
|
6718
|
+
* Creates an OutPoint message from a plain object. Also converts values to their respective internal types.
|
6737
6719
|
* @param object Plain object
|
6738
|
-
* @returns
|
6720
|
+
* @returns OutPoint
|
6739
6721
|
*/
|
6740
|
-
public static fromObject(object: { [k: string]: any }): TW.BitcoinV2.Proto.
|
6722
|
+
public static fromObject(object: { [k: string]: any }): TW.BitcoinV2.Proto.OutPoint;
|
6741
6723
|
|
6742
6724
|
/**
|
6743
|
-
* Creates a plain object from
|
6744
|
-
* @param message
|
6725
|
+
* Creates a plain object from an OutPoint message. Also converts values to other types if specified.
|
6726
|
+
* @param message OutPoint
|
6745
6727
|
* @param [options] Conversion options
|
6746
6728
|
* @returns Plain object
|
6747
6729
|
*/
|
6748
|
-
public static toObject(message: TW.BitcoinV2.Proto.
|
6730
|
+
public static toObject(message: TW.BitcoinV2.Proto.OutPoint, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
6749
6731
|
|
6750
6732
|
/**
|
6751
|
-
* Converts this
|
6733
|
+
* Converts this OutPoint to JSON.
|
6752
6734
|
* @returns JSON object
|
6753
6735
|
*/
|
6754
6736
|
public toJSON(): { [k: string]: any };
|
@@ -6757,32 +6739,26 @@ export namespace TW {
|
|
6757
6739
|
/** Properties of an Input. */
|
6758
6740
|
interface IInput {
|
6759
6741
|
|
6760
|
-
/** Input
|
6761
|
-
|
6762
|
-
|
6763
|
-
/** Input txid */
|
6764
|
-
txid?: (Uint8Array|null);
|
6765
|
-
|
6766
|
-
/** Input vout */
|
6767
|
-
vout?: (number|null);
|
6768
|
-
|
6769
|
-
/** Input sequence */
|
6770
|
-
sequence?: (number|null);
|
6771
|
-
|
6772
|
-
/** Input sequenceEnableZero */
|
6773
|
-
sequenceEnableZero?: (boolean|null);
|
6742
|
+
/** Input outPoint */
|
6743
|
+
outPoint?: (TW.BitcoinV2.Proto.IOutPoint|null);
|
6774
6744
|
|
6775
6745
|
/** Input value */
|
6776
6746
|
value?: (Long|null);
|
6777
6747
|
|
6778
6748
|
/** Input sighashType */
|
6779
|
-
sighashType?: (
|
6749
|
+
sighashType?: (number|null);
|
6780
6750
|
|
6781
|
-
/** Input
|
6782
|
-
|
6751
|
+
/** Input sequence */
|
6752
|
+
sequence?: (TW.BitcoinV2.Proto.Input.ISequence|null);
|
6753
|
+
|
6754
|
+
/** Input scriptBuilder */
|
6755
|
+
scriptBuilder?: (TW.BitcoinV2.Proto.Input.IInputBuilder|null);
|
6783
6756
|
|
6784
|
-
/** Input
|
6785
|
-
|
6757
|
+
/** Input scriptData */
|
6758
|
+
scriptData?: (Uint8Array|null);
|
6759
|
+
|
6760
|
+
/** Input receiverAddress */
|
6761
|
+
receiverAddress?: (string|null);
|
6786
6762
|
}
|
6787
6763
|
|
6788
6764
|
/** Represents an Input. */
|
@@ -6794,35 +6770,29 @@ export namespace TW {
|
|
6794
6770
|
*/
|
6795
6771
|
constructor(properties?: TW.BitcoinV2.Proto.IInput);
|
6796
6772
|
|
6797
|
-
/** Input
|
6798
|
-
public
|
6799
|
-
|
6800
|
-
/** Input txid. */
|
6801
|
-
public txid: Uint8Array;
|
6802
|
-
|
6803
|
-
/** Input vout. */
|
6804
|
-
public vout: number;
|
6805
|
-
|
6806
|
-
/** Input sequence. */
|
6807
|
-
public sequence: number;
|
6808
|
-
|
6809
|
-
/** Input sequenceEnableZero. */
|
6810
|
-
public sequenceEnableZero: boolean;
|
6773
|
+
/** Input outPoint. */
|
6774
|
+
public outPoint?: (TW.BitcoinV2.Proto.IOutPoint|null);
|
6811
6775
|
|
6812
6776
|
/** Input value. */
|
6813
6777
|
public value: Long;
|
6814
6778
|
|
6815
6779
|
/** Input sighashType. */
|
6816
|
-
public sighashType:
|
6780
|
+
public sighashType: number;
|
6781
|
+
|
6782
|
+
/** Input sequence. */
|
6783
|
+
public sequence?: (TW.BitcoinV2.Proto.Input.ISequence|null);
|
6784
|
+
|
6785
|
+
/** Input scriptBuilder. */
|
6786
|
+
public scriptBuilder?: (TW.BitcoinV2.Proto.Input.IInputBuilder|null);
|
6817
6787
|
|
6818
|
-
/** Input
|
6819
|
-
public
|
6788
|
+
/** Input scriptData. */
|
6789
|
+
public scriptData?: (Uint8Array|null);
|
6820
6790
|
|
6821
|
-
/** Input
|
6822
|
-
public
|
6791
|
+
/** Input receiverAddress. */
|
6792
|
+
public receiverAddress?: (string|null);
|
6823
6793
|
|
6824
|
-
/** Input
|
6825
|
-
public
|
6794
|
+
/** Input claimingScript. */
|
6795
|
+
public claimingScript?: ("scriptBuilder"|"scriptData"|"receiverAddress");
|
6826
6796
|
|
6827
6797
|
/**
|
6828
6798
|
* Creates a new Input instance using the specified properties.
|
@@ -6880,32 +6850,96 @@ export namespace TW {
|
|
6880
6850
|
|
6881
6851
|
namespace Input {
|
6882
6852
|
|
6853
|
+
/** Properties of a Sequence. */
|
6854
|
+
interface ISequence {
|
6855
|
+
|
6856
|
+
/** Sequence sequence */
|
6857
|
+
sequence?: (number|null);
|
6858
|
+
}
|
6859
|
+
|
6860
|
+
/** Represents a Sequence. */
|
6861
|
+
class Sequence implements ISequence {
|
6862
|
+
|
6863
|
+
/**
|
6864
|
+
* Constructs a new Sequence.
|
6865
|
+
* @param [properties] Properties to set
|
6866
|
+
*/
|
6867
|
+
constructor(properties?: TW.BitcoinV2.Proto.Input.ISequence);
|
6868
|
+
|
6869
|
+
/** Sequence sequence. */
|
6870
|
+
public sequence: number;
|
6871
|
+
|
6872
|
+
/**
|
6873
|
+
* Creates a new Sequence instance using the specified properties.
|
6874
|
+
* @param [properties] Properties to set
|
6875
|
+
* @returns Sequence instance
|
6876
|
+
*/
|
6877
|
+
public static create(properties?: TW.BitcoinV2.Proto.Input.ISequence): TW.BitcoinV2.Proto.Input.Sequence;
|
6878
|
+
|
6879
|
+
/**
|
6880
|
+
* Encodes the specified Sequence message. Does not implicitly {@link TW.BitcoinV2.Proto.Input.Sequence.verify|verify} messages.
|
6881
|
+
* @param message Sequence message or plain object to encode
|
6882
|
+
* @param [writer] Writer to encode to
|
6883
|
+
* @returns Writer
|
6884
|
+
*/
|
6885
|
+
public static encode(message: TW.BitcoinV2.Proto.Input.ISequence, writer?: $protobuf.Writer): $protobuf.Writer;
|
6886
|
+
|
6887
|
+
/**
|
6888
|
+
* Decodes a Sequence message from the specified reader or buffer.
|
6889
|
+
* @param reader Reader or buffer to decode from
|
6890
|
+
* @param [length] Message length if known beforehand
|
6891
|
+
* @returns Sequence
|
6892
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
6893
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
6894
|
+
*/
|
6895
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.BitcoinV2.Proto.Input.Sequence;
|
6896
|
+
|
6897
|
+
/**
|
6898
|
+
* Verifies a Sequence message.
|
6899
|
+
* @param message Plain object to verify
|
6900
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
6901
|
+
*/
|
6902
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
6903
|
+
|
6904
|
+
/**
|
6905
|
+
* Creates a Sequence message from a plain object. Also converts values to their respective internal types.
|
6906
|
+
* @param object Plain object
|
6907
|
+
* @returns Sequence
|
6908
|
+
*/
|
6909
|
+
public static fromObject(object: { [k: string]: any }): TW.BitcoinV2.Proto.Input.Sequence;
|
6910
|
+
|
6911
|
+
/**
|
6912
|
+
* Creates a plain object from a Sequence message. Also converts values to other types if specified.
|
6913
|
+
* @param message Sequence
|
6914
|
+
* @param [options] Conversion options
|
6915
|
+
* @returns Plain object
|
6916
|
+
*/
|
6917
|
+
public static toObject(message: TW.BitcoinV2.Proto.Input.Sequence, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
6918
|
+
|
6919
|
+
/**
|
6920
|
+
* Converts this Sequence to JSON.
|
6921
|
+
* @returns JSON object
|
6922
|
+
*/
|
6923
|
+
public toJSON(): { [k: string]: any };
|
6924
|
+
}
|
6925
|
+
|
6883
6926
|
/** Properties of an InputBuilder. */
|
6884
6927
|
interface IInputBuilder {
|
6885
6928
|
|
6886
|
-
/** InputBuilder
|
6887
|
-
|
6929
|
+
/** InputBuilder p2pk */
|
6930
|
+
p2pk?: (Uint8Array|null);
|
6888
6931
|
|
6889
6932
|
/** InputBuilder p2pkh */
|
6890
|
-
p2pkh?: (
|
6891
|
-
|
6892
|
-
/** InputBuilder p2wsh */
|
6893
|
-
p2wsh?: (Uint8Array|null);
|
6933
|
+
p2pkh?: (TW.BitcoinV2.Proto.IPublicKeyOrHash|null);
|
6894
6934
|
|
6895
6935
|
/** InputBuilder p2wpkh */
|
6896
|
-
p2wpkh?: (
|
6936
|
+
p2wpkh?: (TW.BitcoinV2.Proto.IPublicKeyOrHash|null);
|
6897
6937
|
|
6898
6938
|
/** InputBuilder p2trKeyPath */
|
6899
|
-
p2trKeyPath?: (
|
6900
|
-
|
6901
|
-
/** InputBuilder p2trScriptPath */
|
6902
|
-
p2trScriptPath?: (TW.BitcoinV2.Proto.Input.IInputTaprootScriptPath|null);
|
6939
|
+
p2trKeyPath?: (Uint8Array|null);
|
6903
6940
|
|
6904
6941
|
/** InputBuilder brc20Inscribe */
|
6905
6942
|
brc20Inscribe?: (TW.BitcoinV2.Proto.Input.IInputBrc20Inscription|null);
|
6906
|
-
|
6907
|
-
/** InputBuilder ordinalInscribe */
|
6908
|
-
ordinalInscribe?: (TW.BitcoinV2.Proto.Input.IInputOrdinalInscription|null);
|
6909
6943
|
}
|
6910
6944
|
|
6911
6945
|
/** Represents an InputBuilder. */
|
@@ -6917,32 +6951,23 @@ export namespace TW {
|
|
6917
6951
|
*/
|
6918
6952
|
constructor(properties?: TW.BitcoinV2.Proto.Input.IInputBuilder);
|
6919
6953
|
|
6920
|
-
/** InputBuilder
|
6921
|
-
public
|
6954
|
+
/** InputBuilder p2pk. */
|
6955
|
+
public p2pk?: (Uint8Array|null);
|
6922
6956
|
|
6923
6957
|
/** InputBuilder p2pkh. */
|
6924
|
-
public p2pkh?: (
|
6925
|
-
|
6926
|
-
/** InputBuilder p2wsh. */
|
6927
|
-
public p2wsh?: (Uint8Array|null);
|
6958
|
+
public p2pkh?: (TW.BitcoinV2.Proto.IPublicKeyOrHash|null);
|
6928
6959
|
|
6929
6960
|
/** InputBuilder p2wpkh. */
|
6930
|
-
public p2wpkh?: (
|
6961
|
+
public p2wpkh?: (TW.BitcoinV2.Proto.IPublicKeyOrHash|null);
|
6931
6962
|
|
6932
6963
|
/** InputBuilder p2trKeyPath. */
|
6933
|
-
public p2trKeyPath?: (
|
6934
|
-
|
6935
|
-
/** InputBuilder p2trScriptPath. */
|
6936
|
-
public p2trScriptPath?: (TW.BitcoinV2.Proto.Input.IInputTaprootScriptPath|null);
|
6964
|
+
public p2trKeyPath?: (Uint8Array|null);
|
6937
6965
|
|
6938
6966
|
/** InputBuilder brc20Inscribe. */
|
6939
6967
|
public brc20Inscribe?: (TW.BitcoinV2.Proto.Input.IInputBrc20Inscription|null);
|
6940
6968
|
|
6941
|
-
/** InputBuilder ordinalInscribe. */
|
6942
|
-
public ordinalInscribe?: (TW.BitcoinV2.Proto.Input.IInputOrdinalInscription|null);
|
6943
|
-
|
6944
6969
|
/** InputBuilder variant. */
|
6945
|
-
public variant?: ("
|
6970
|
+
public variant?: ("p2pk"|"p2pkh"|"p2wpkh"|"p2trKeyPath"|"brc20Inscribe");
|
6946
6971
|
|
6947
6972
|
/**
|
6948
6973
|
* Creates a new InputBuilder instance using the specified properties.
|
@@ -6998,360 +7023,90 @@ export namespace TW {
|
|
6998
7023
|
public toJSON(): { [k: string]: any };
|
6999
7024
|
}
|
7000
7025
|
|
7001
|
-
/** Properties of an
|
7002
|
-
interface
|
7003
|
-
|
7004
|
-
/** InputScriptWitness scriptPubkey */
|
7005
|
-
scriptPubkey?: (Uint8Array|null);
|
7006
|
-
|
7007
|
-
/** InputScriptWitness scriptSig */
|
7008
|
-
scriptSig?: (Uint8Array|null);
|
7026
|
+
/** Properties of an InputTaprootScriptPath. */
|
7027
|
+
interface IInputTaprootScriptPath {
|
7009
7028
|
|
7010
|
-
/**
|
7011
|
-
|
7029
|
+
/** InputTaprootScriptPath payload */
|
7030
|
+
payload?: (Uint8Array|null);
|
7012
7031
|
|
7013
|
-
/**
|
7014
|
-
|
7032
|
+
/** InputTaprootScriptPath controlBlock */
|
7033
|
+
controlBlock?: (Uint8Array|null);
|
7015
7034
|
}
|
7016
7035
|
|
7017
|
-
/** Represents an
|
7018
|
-
class
|
7036
|
+
/** Represents an InputTaprootScriptPath. */
|
7037
|
+
class InputTaprootScriptPath implements IInputTaprootScriptPath {
|
7019
7038
|
|
7020
7039
|
/**
|
7021
|
-
* Constructs a new
|
7040
|
+
* Constructs a new InputTaprootScriptPath.
|
7022
7041
|
* @param [properties] Properties to set
|
7023
7042
|
*/
|
7024
|
-
constructor(properties?: TW.BitcoinV2.Proto.Input.
|
7025
|
-
|
7026
|
-
/** InputScriptWitness scriptPubkey. */
|
7027
|
-
public scriptPubkey: Uint8Array;
|
7028
|
-
|
7029
|
-
/** InputScriptWitness scriptSig. */
|
7030
|
-
public scriptSig: Uint8Array;
|
7043
|
+
constructor(properties?: TW.BitcoinV2.Proto.Input.IInputTaprootScriptPath);
|
7031
7044
|
|
7032
|
-
/**
|
7033
|
-
public
|
7045
|
+
/** InputTaprootScriptPath payload. */
|
7046
|
+
public payload: Uint8Array;
|
7034
7047
|
|
7035
|
-
/**
|
7036
|
-
public
|
7048
|
+
/** InputTaprootScriptPath controlBlock. */
|
7049
|
+
public controlBlock: Uint8Array;
|
7037
7050
|
|
7038
7051
|
/**
|
7039
|
-
* Creates a new
|
7052
|
+
* Creates a new InputTaprootScriptPath instance using the specified properties.
|
7040
7053
|
* @param [properties] Properties to set
|
7041
|
-
* @returns
|
7054
|
+
* @returns InputTaprootScriptPath instance
|
7042
7055
|
*/
|
7043
|
-
public static create(properties?: TW.BitcoinV2.Proto.Input.
|
7056
|
+
public static create(properties?: TW.BitcoinV2.Proto.Input.IInputTaprootScriptPath): TW.BitcoinV2.Proto.Input.InputTaprootScriptPath;
|
7044
7057
|
|
7045
7058
|
/**
|
7046
|
-
* Encodes the specified
|
7047
|
-
* @param message
|
7059
|
+
* Encodes the specified InputTaprootScriptPath message. Does not implicitly {@link TW.BitcoinV2.Proto.Input.InputTaprootScriptPath.verify|verify} messages.
|
7060
|
+
* @param message InputTaprootScriptPath message or plain object to encode
|
7048
7061
|
* @param [writer] Writer to encode to
|
7049
7062
|
* @returns Writer
|
7050
7063
|
*/
|
7051
|
-
public static encode(message: TW.BitcoinV2.Proto.Input.
|
7064
|
+
public static encode(message: TW.BitcoinV2.Proto.Input.IInputTaprootScriptPath, writer?: $protobuf.Writer): $protobuf.Writer;
|
7052
7065
|
|
7053
7066
|
/**
|
7054
|
-
* Decodes an
|
7067
|
+
* Decodes an InputTaprootScriptPath message from the specified reader or buffer.
|
7055
7068
|
* @param reader Reader or buffer to decode from
|
7056
7069
|
* @param [length] Message length if known beforehand
|
7057
|
-
* @returns
|
7070
|
+
* @returns InputTaprootScriptPath
|
7058
7071
|
* @throws {Error} If the payload is not a reader or valid buffer
|
7059
7072
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
7060
7073
|
*/
|
7061
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.BitcoinV2.Proto.Input.
|
7074
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.BitcoinV2.Proto.Input.InputTaprootScriptPath;
|
7062
7075
|
|
7063
7076
|
/**
|
7064
|
-
* Verifies an
|
7077
|
+
* Verifies an InputTaprootScriptPath message.
|
7065
7078
|
* @param message Plain object to verify
|
7066
7079
|
* @returns `null` if valid, otherwise the reason why it is not
|
7067
7080
|
*/
|
7068
7081
|
public static verify(message: { [k: string]: any }): (string|null);
|
7069
7082
|
|
7070
7083
|
/**
|
7071
|
-
* Creates an
|
7084
|
+
* Creates an InputTaprootScriptPath message from a plain object. Also converts values to their respective internal types.
|
7072
7085
|
* @param object Plain object
|
7073
|
-
* @returns
|
7086
|
+
* @returns InputTaprootScriptPath
|
7074
7087
|
*/
|
7075
|
-
public static fromObject(object: { [k: string]: any }): TW.BitcoinV2.Proto.Input.
|
7088
|
+
public static fromObject(object: { [k: string]: any }): TW.BitcoinV2.Proto.Input.InputTaprootScriptPath;
|
7076
7089
|
|
7077
7090
|
/**
|
7078
|
-
* Creates a plain object from an
|
7079
|
-
* @param message
|
7091
|
+
* Creates a plain object from an InputTaprootScriptPath message. Also converts values to other types if specified.
|
7092
|
+
* @param message InputTaprootScriptPath
|
7080
7093
|
* @param [options] Conversion options
|
7081
7094
|
* @returns Plain object
|
7082
7095
|
*/
|
7083
|
-
public static toObject(message: TW.BitcoinV2.Proto.Input.
|
7096
|
+
public static toObject(message: TW.BitcoinV2.Proto.Input.InputTaprootScriptPath, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
7084
7097
|
|
7085
7098
|
/**
|
7086
|
-
* Converts this
|
7099
|
+
* Converts this InputTaprootScriptPath to JSON.
|
7087
7100
|
* @returns JSON object
|
7088
7101
|
*/
|
7089
7102
|
public toJSON(): { [k: string]: any };
|
7090
7103
|
}
|
7091
7104
|
|
7092
|
-
/** Properties of an
|
7093
|
-
interface
|
7105
|
+
/** Properties of an InputBrc20Inscription. */
|
7106
|
+
interface IInputBrc20Inscription {
|
7094
7107
|
|
7095
|
-
/**
|
7096
|
-
|
7097
|
-
|
7098
|
-
/** InputTaprootKeyPath publicKey */
|
7099
|
-
publicKey?: (Uint8Array|null);
|
7100
|
-
}
|
7101
|
-
|
7102
|
-
/** Represents an InputTaprootKeyPath. */
|
7103
|
-
class InputTaprootKeyPath implements IInputTaprootKeyPath {
|
7104
|
-
|
7105
|
-
/**
|
7106
|
-
* Constructs a new InputTaprootKeyPath.
|
7107
|
-
* @param [properties] Properties to set
|
7108
|
-
*/
|
7109
|
-
constructor(properties?: TW.BitcoinV2.Proto.Input.IInputTaprootKeyPath);
|
7110
|
-
|
7111
|
-
/** InputTaprootKeyPath onePrevout. */
|
7112
|
-
public onePrevout: boolean;
|
7113
|
-
|
7114
|
-
/** InputTaprootKeyPath publicKey. */
|
7115
|
-
public publicKey: Uint8Array;
|
7116
|
-
|
7117
|
-
/**
|
7118
|
-
* Creates a new InputTaprootKeyPath instance using the specified properties.
|
7119
|
-
* @param [properties] Properties to set
|
7120
|
-
* @returns InputTaprootKeyPath instance
|
7121
|
-
*/
|
7122
|
-
public static create(properties?: TW.BitcoinV2.Proto.Input.IInputTaprootKeyPath): TW.BitcoinV2.Proto.Input.InputTaprootKeyPath;
|
7123
|
-
|
7124
|
-
/**
|
7125
|
-
* Encodes the specified InputTaprootKeyPath message. Does not implicitly {@link TW.BitcoinV2.Proto.Input.InputTaprootKeyPath.verify|verify} messages.
|
7126
|
-
* @param message InputTaprootKeyPath message or plain object to encode
|
7127
|
-
* @param [writer] Writer to encode to
|
7128
|
-
* @returns Writer
|
7129
|
-
*/
|
7130
|
-
public static encode(message: TW.BitcoinV2.Proto.Input.IInputTaprootKeyPath, writer?: $protobuf.Writer): $protobuf.Writer;
|
7131
|
-
|
7132
|
-
/**
|
7133
|
-
* Decodes an InputTaprootKeyPath message from the specified reader or buffer.
|
7134
|
-
* @param reader Reader or buffer to decode from
|
7135
|
-
* @param [length] Message length if known beforehand
|
7136
|
-
* @returns InputTaprootKeyPath
|
7137
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
7138
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
7139
|
-
*/
|
7140
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.BitcoinV2.Proto.Input.InputTaprootKeyPath;
|
7141
|
-
|
7142
|
-
/**
|
7143
|
-
* Verifies an InputTaprootKeyPath message.
|
7144
|
-
* @param message Plain object to verify
|
7145
|
-
* @returns `null` if valid, otherwise the reason why it is not
|
7146
|
-
*/
|
7147
|
-
public static verify(message: { [k: string]: any }): (string|null);
|
7148
|
-
|
7149
|
-
/**
|
7150
|
-
* Creates an InputTaprootKeyPath message from a plain object. Also converts values to their respective internal types.
|
7151
|
-
* @param object Plain object
|
7152
|
-
* @returns InputTaprootKeyPath
|
7153
|
-
*/
|
7154
|
-
public static fromObject(object: { [k: string]: any }): TW.BitcoinV2.Proto.Input.InputTaprootKeyPath;
|
7155
|
-
|
7156
|
-
/**
|
7157
|
-
* Creates a plain object from an InputTaprootKeyPath message. Also converts values to other types if specified.
|
7158
|
-
* @param message InputTaprootKeyPath
|
7159
|
-
* @param [options] Conversion options
|
7160
|
-
* @returns Plain object
|
7161
|
-
*/
|
7162
|
-
public static toObject(message: TW.BitcoinV2.Proto.Input.InputTaprootKeyPath, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
7163
|
-
|
7164
|
-
/**
|
7165
|
-
* Converts this InputTaprootKeyPath to JSON.
|
7166
|
-
* @returns JSON object
|
7167
|
-
*/
|
7168
|
-
public toJSON(): { [k: string]: any };
|
7169
|
-
}
|
7170
|
-
|
7171
|
-
/** Properties of an InputTaprootScriptPath. */
|
7172
|
-
interface IInputTaprootScriptPath {
|
7173
|
-
|
7174
|
-
/** InputTaprootScriptPath onePrevout */
|
7175
|
-
onePrevout?: (boolean|null);
|
7176
|
-
|
7177
|
-
/** InputTaprootScriptPath payload */
|
7178
|
-
payload?: (Uint8Array|null);
|
7179
|
-
|
7180
|
-
/** InputTaprootScriptPath controlBlock */
|
7181
|
-
controlBlock?: (Uint8Array|null);
|
7182
|
-
}
|
7183
|
-
|
7184
|
-
/** Represents an InputTaprootScriptPath. */
|
7185
|
-
class InputTaprootScriptPath implements IInputTaprootScriptPath {
|
7186
|
-
|
7187
|
-
/**
|
7188
|
-
* Constructs a new InputTaprootScriptPath.
|
7189
|
-
* @param [properties] Properties to set
|
7190
|
-
*/
|
7191
|
-
constructor(properties?: TW.BitcoinV2.Proto.Input.IInputTaprootScriptPath);
|
7192
|
-
|
7193
|
-
/** InputTaprootScriptPath onePrevout. */
|
7194
|
-
public onePrevout: boolean;
|
7195
|
-
|
7196
|
-
/** InputTaprootScriptPath payload. */
|
7197
|
-
public payload: Uint8Array;
|
7198
|
-
|
7199
|
-
/** InputTaprootScriptPath controlBlock. */
|
7200
|
-
public controlBlock: Uint8Array;
|
7201
|
-
|
7202
|
-
/**
|
7203
|
-
* Creates a new InputTaprootScriptPath instance using the specified properties.
|
7204
|
-
* @param [properties] Properties to set
|
7205
|
-
* @returns InputTaprootScriptPath instance
|
7206
|
-
*/
|
7207
|
-
public static create(properties?: TW.BitcoinV2.Proto.Input.IInputTaprootScriptPath): TW.BitcoinV2.Proto.Input.InputTaprootScriptPath;
|
7208
|
-
|
7209
|
-
/**
|
7210
|
-
* Encodes the specified InputTaprootScriptPath message. Does not implicitly {@link TW.BitcoinV2.Proto.Input.InputTaprootScriptPath.verify|verify} messages.
|
7211
|
-
* @param message InputTaprootScriptPath message or plain object to encode
|
7212
|
-
* @param [writer] Writer to encode to
|
7213
|
-
* @returns Writer
|
7214
|
-
*/
|
7215
|
-
public static encode(message: TW.BitcoinV2.Proto.Input.IInputTaprootScriptPath, writer?: $protobuf.Writer): $protobuf.Writer;
|
7216
|
-
|
7217
|
-
/**
|
7218
|
-
* Decodes an InputTaprootScriptPath message from the specified reader or buffer.
|
7219
|
-
* @param reader Reader or buffer to decode from
|
7220
|
-
* @param [length] Message length if known beforehand
|
7221
|
-
* @returns InputTaprootScriptPath
|
7222
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
7223
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
7224
|
-
*/
|
7225
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.BitcoinV2.Proto.Input.InputTaprootScriptPath;
|
7226
|
-
|
7227
|
-
/**
|
7228
|
-
* Verifies an InputTaprootScriptPath message.
|
7229
|
-
* @param message Plain object to verify
|
7230
|
-
* @returns `null` if valid, otherwise the reason why it is not
|
7231
|
-
*/
|
7232
|
-
public static verify(message: { [k: string]: any }): (string|null);
|
7233
|
-
|
7234
|
-
/**
|
7235
|
-
* Creates an InputTaprootScriptPath message from a plain object. Also converts values to their respective internal types.
|
7236
|
-
* @param object Plain object
|
7237
|
-
* @returns InputTaprootScriptPath
|
7238
|
-
*/
|
7239
|
-
public static fromObject(object: { [k: string]: any }): TW.BitcoinV2.Proto.Input.InputTaprootScriptPath;
|
7240
|
-
|
7241
|
-
/**
|
7242
|
-
* Creates a plain object from an InputTaprootScriptPath message. Also converts values to other types if specified.
|
7243
|
-
* @param message InputTaprootScriptPath
|
7244
|
-
* @param [options] Conversion options
|
7245
|
-
* @returns Plain object
|
7246
|
-
*/
|
7247
|
-
public static toObject(message: TW.BitcoinV2.Proto.Input.InputTaprootScriptPath, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
7248
|
-
|
7249
|
-
/**
|
7250
|
-
* Converts this InputTaprootScriptPath to JSON.
|
7251
|
-
* @returns JSON object
|
7252
|
-
*/
|
7253
|
-
public toJSON(): { [k: string]: any };
|
7254
|
-
}
|
7255
|
-
|
7256
|
-
/** Properties of an InputOrdinalInscription. */
|
7257
|
-
interface IInputOrdinalInscription {
|
7258
|
-
|
7259
|
-
/** InputOrdinalInscription onePrevout */
|
7260
|
-
onePrevout?: (boolean|null);
|
7261
|
-
|
7262
|
-
/** InputOrdinalInscription inscribeTo */
|
7263
|
-
inscribeTo?: (Uint8Array|null);
|
7264
|
-
|
7265
|
-
/** InputOrdinalInscription mimeType */
|
7266
|
-
mimeType?: (string|null);
|
7267
|
-
|
7268
|
-
/** InputOrdinalInscription payload */
|
7269
|
-
payload?: (Uint8Array|null);
|
7270
|
-
}
|
7271
|
-
|
7272
|
-
/** Represents an InputOrdinalInscription. */
|
7273
|
-
class InputOrdinalInscription implements IInputOrdinalInscription {
|
7274
|
-
|
7275
|
-
/**
|
7276
|
-
* Constructs a new InputOrdinalInscription.
|
7277
|
-
* @param [properties] Properties to set
|
7278
|
-
*/
|
7279
|
-
constructor(properties?: TW.BitcoinV2.Proto.Input.IInputOrdinalInscription);
|
7280
|
-
|
7281
|
-
/** InputOrdinalInscription onePrevout. */
|
7282
|
-
public onePrevout: boolean;
|
7283
|
-
|
7284
|
-
/** InputOrdinalInscription inscribeTo. */
|
7285
|
-
public inscribeTo: Uint8Array;
|
7286
|
-
|
7287
|
-
/** InputOrdinalInscription mimeType. */
|
7288
|
-
public mimeType: string;
|
7289
|
-
|
7290
|
-
/** InputOrdinalInscription payload. */
|
7291
|
-
public payload: Uint8Array;
|
7292
|
-
|
7293
|
-
/**
|
7294
|
-
* Creates a new InputOrdinalInscription instance using the specified properties.
|
7295
|
-
* @param [properties] Properties to set
|
7296
|
-
* @returns InputOrdinalInscription instance
|
7297
|
-
*/
|
7298
|
-
public static create(properties?: TW.BitcoinV2.Proto.Input.IInputOrdinalInscription): TW.BitcoinV2.Proto.Input.InputOrdinalInscription;
|
7299
|
-
|
7300
|
-
/**
|
7301
|
-
* Encodes the specified InputOrdinalInscription message. Does not implicitly {@link TW.BitcoinV2.Proto.Input.InputOrdinalInscription.verify|verify} messages.
|
7302
|
-
* @param message InputOrdinalInscription message or plain object to encode
|
7303
|
-
* @param [writer] Writer to encode to
|
7304
|
-
* @returns Writer
|
7305
|
-
*/
|
7306
|
-
public static encode(message: TW.BitcoinV2.Proto.Input.IInputOrdinalInscription, writer?: $protobuf.Writer): $protobuf.Writer;
|
7307
|
-
|
7308
|
-
/**
|
7309
|
-
* Decodes an InputOrdinalInscription message from the specified reader or buffer.
|
7310
|
-
* @param reader Reader or buffer to decode from
|
7311
|
-
* @param [length] Message length if known beforehand
|
7312
|
-
* @returns InputOrdinalInscription
|
7313
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
7314
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
7315
|
-
*/
|
7316
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.BitcoinV2.Proto.Input.InputOrdinalInscription;
|
7317
|
-
|
7318
|
-
/**
|
7319
|
-
* Verifies an InputOrdinalInscription message.
|
7320
|
-
* @param message Plain object to verify
|
7321
|
-
* @returns `null` if valid, otherwise the reason why it is not
|
7322
|
-
*/
|
7323
|
-
public static verify(message: { [k: string]: any }): (string|null);
|
7324
|
-
|
7325
|
-
/**
|
7326
|
-
* Creates an InputOrdinalInscription message from a plain object. Also converts values to their respective internal types.
|
7327
|
-
* @param object Plain object
|
7328
|
-
* @returns InputOrdinalInscription
|
7329
|
-
*/
|
7330
|
-
public static fromObject(object: { [k: string]: any }): TW.BitcoinV2.Proto.Input.InputOrdinalInscription;
|
7331
|
-
|
7332
|
-
/**
|
7333
|
-
* Creates a plain object from an InputOrdinalInscription message. Also converts values to other types if specified.
|
7334
|
-
* @param message InputOrdinalInscription
|
7335
|
-
* @param [options] Conversion options
|
7336
|
-
* @returns Plain object
|
7337
|
-
*/
|
7338
|
-
public static toObject(message: TW.BitcoinV2.Proto.Input.InputOrdinalInscription, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
7339
|
-
|
7340
|
-
/**
|
7341
|
-
* Converts this InputOrdinalInscription to JSON.
|
7342
|
-
* @returns JSON object
|
7343
|
-
*/
|
7344
|
-
public toJSON(): { [k: string]: any };
|
7345
|
-
}
|
7346
|
-
|
7347
|
-
/** Properties of an InputBrc20Inscription. */
|
7348
|
-
interface IInputBrc20Inscription {
|
7349
|
-
|
7350
|
-
/** InputBrc20Inscription onePrevout */
|
7351
|
-
onePrevout?: (boolean|null);
|
7352
|
-
|
7353
|
-
/** InputBrc20Inscription inscribeTo */
|
7354
|
-
inscribeTo?: (Uint8Array|null);
|
7108
|
+
/** InputBrc20Inscription inscribeTo */
|
7109
|
+
inscribeTo?: (Uint8Array|null);
|
7355
7110
|
|
7356
7111
|
/** InputBrc20Inscription ticker */
|
7357
7112
|
ticker?: (string|null);
|
@@ -7369,9 +7124,6 @@ export namespace TW {
|
|
7369
7124
|
*/
|
7370
7125
|
constructor(properties?: TW.BitcoinV2.Proto.Input.IInputBrc20Inscription);
|
7371
7126
|
|
7372
|
-
/** InputBrc20Inscription onePrevout. */
|
7373
|
-
public onePrevout: boolean;
|
7374
|
-
|
7375
7127
|
/** InputBrc20Inscription inscribeTo. */
|
7376
7128
|
public inscribeTo: Uint8Array;
|
7377
7129
|
|
@@ -7448,8 +7200,8 @@ export namespace TW {
|
|
7448
7200
|
/** Output customScriptPubkey */
|
7449
7201
|
customScriptPubkey?: (Uint8Array|null);
|
7450
7202
|
|
7451
|
-
/** Output
|
7452
|
-
|
7203
|
+
/** Output toAddress */
|
7204
|
+
toAddress?: (string|null);
|
7453
7205
|
}
|
7454
7206
|
|
7455
7207
|
/** Represents an Output. */
|
@@ -7470,11 +7222,11 @@ export namespace TW {
|
|
7470
7222
|
/** Output customScriptPubkey. */
|
7471
7223
|
public customScriptPubkey?: (Uint8Array|null);
|
7472
7224
|
|
7473
|
-
/** Output
|
7474
|
-
public
|
7225
|
+
/** Output toAddress. */
|
7226
|
+
public toAddress?: (string|null);
|
7475
7227
|
|
7476
7228
|
/** Output toRecipient. */
|
7477
|
-
public toRecipient?: ("builder"|"customScriptPubkey"|"
|
7229
|
+
public toRecipient?: ("builder"|"customScriptPubkey"|"toAddress");
|
7478
7230
|
|
7479
7231
|
/**
|
7480
7232
|
* Creates a new Output instance using the specified properties.
|
@@ -7536,16 +7288,19 @@ export namespace TW {
|
|
7536
7288
|
interface IOutputBuilder {
|
7537
7289
|
|
7538
7290
|
/** OutputBuilder p2sh */
|
7539
|
-
p2sh?: (TW.BitcoinV2.Proto.Output.
|
7291
|
+
p2sh?: (TW.BitcoinV2.Proto.Output.IRedeemScriptOrHash|null);
|
7292
|
+
|
7293
|
+
/** OutputBuilder p2pk */
|
7294
|
+
p2pk?: (Uint8Array|null);
|
7540
7295
|
|
7541
7296
|
/** OutputBuilder p2pkh */
|
7542
|
-
p2pkh?: (TW.BitcoinV2.Proto.
|
7297
|
+
p2pkh?: (TW.BitcoinV2.Proto.IPublicKeyOrHash|null);
|
7543
7298
|
|
7544
7299
|
/** OutputBuilder p2wsh */
|
7545
|
-
p2wsh?: (TW.BitcoinV2.Proto.Output.
|
7300
|
+
p2wsh?: (TW.BitcoinV2.Proto.Output.IRedeemScriptOrHash|null);
|
7546
7301
|
|
7547
7302
|
/** OutputBuilder p2wpkh */
|
7548
|
-
p2wpkh?: (TW.BitcoinV2.Proto.
|
7303
|
+
p2wpkh?: (TW.BitcoinV2.Proto.IPublicKeyOrHash|null);
|
7549
7304
|
|
7550
7305
|
/** OutputBuilder p2trKeyPath */
|
7551
7306
|
p2trKeyPath?: (Uint8Array|null);
|
@@ -7559,8 +7314,8 @@ export namespace TW {
|
|
7559
7314
|
/** OutputBuilder brc20Inscribe */
|
7560
7315
|
brc20Inscribe?: (TW.BitcoinV2.Proto.Output.IOutputBrc20Inscription|null);
|
7561
7316
|
|
7562
|
-
/** OutputBuilder
|
7563
|
-
|
7317
|
+
/** OutputBuilder opReturn */
|
7318
|
+
opReturn?: (Uint8Array|null);
|
7564
7319
|
}
|
7565
7320
|
|
7566
7321
|
/** Represents an OutputBuilder. */
|
@@ -7573,16 +7328,19 @@ export namespace TW {
|
|
7573
7328
|
constructor(properties?: TW.BitcoinV2.Proto.Output.IOutputBuilder);
|
7574
7329
|
|
7575
7330
|
/** OutputBuilder p2sh. */
|
7576
|
-
public p2sh?: (TW.BitcoinV2.Proto.Output.
|
7331
|
+
public p2sh?: (TW.BitcoinV2.Proto.Output.IRedeemScriptOrHash|null);
|
7332
|
+
|
7333
|
+
/** OutputBuilder p2pk. */
|
7334
|
+
public p2pk?: (Uint8Array|null);
|
7577
7335
|
|
7578
7336
|
/** OutputBuilder p2pkh. */
|
7579
|
-
public p2pkh?: (TW.BitcoinV2.Proto.
|
7337
|
+
public p2pkh?: (TW.BitcoinV2.Proto.IPublicKeyOrHash|null);
|
7580
7338
|
|
7581
7339
|
/** OutputBuilder p2wsh. */
|
7582
|
-
public p2wsh?: (TW.BitcoinV2.Proto.Output.
|
7340
|
+
public p2wsh?: (TW.BitcoinV2.Proto.Output.IRedeemScriptOrHash|null);
|
7583
7341
|
|
7584
7342
|
/** OutputBuilder p2wpkh. */
|
7585
|
-
public p2wpkh?: (TW.BitcoinV2.Proto.
|
7343
|
+
public p2wpkh?: (TW.BitcoinV2.Proto.IPublicKeyOrHash|null);
|
7586
7344
|
|
7587
7345
|
/** OutputBuilder p2trKeyPath. */
|
7588
7346
|
public p2trKeyPath?: (Uint8Array|null);
|
@@ -7596,11 +7354,11 @@ export namespace TW {
|
|
7596
7354
|
/** OutputBuilder brc20Inscribe. */
|
7597
7355
|
public brc20Inscribe?: (TW.BitcoinV2.Proto.Output.IOutputBrc20Inscription|null);
|
7598
7356
|
|
7599
|
-
/** OutputBuilder
|
7600
|
-
public
|
7357
|
+
/** OutputBuilder opReturn. */
|
7358
|
+
public opReturn?: (Uint8Array|null);
|
7601
7359
|
|
7602
7360
|
/** OutputBuilder variant. */
|
7603
|
-
public variant?: ("p2sh"|"p2pkh"|"p2wsh"|"p2wpkh"|"p2trKeyPath"|"p2trScriptPath"|"p2trDangerousAssumeTweaked"|"brc20Inscribe"|"
|
7361
|
+
public variant?: ("p2sh"|"p2pk"|"p2pkh"|"p2wsh"|"p2wpkh"|"p2trKeyPath"|"p2trScriptPath"|"p2trDangerousAssumeTweaked"|"brc20Inscribe"|"opReturn");
|
7604
7362
|
|
7605
7363
|
/**
|
7606
7364
|
* Creates a new OutputBuilder instance using the specified properties.
|
@@ -7656,83 +7414,83 @@ export namespace TW {
|
|
7656
7414
|
public toJSON(): { [k: string]: any };
|
7657
7415
|
}
|
7658
7416
|
|
7659
|
-
/** Properties of
|
7660
|
-
interface
|
7417
|
+
/** Properties of a RedeemScriptOrHash. */
|
7418
|
+
interface IRedeemScriptOrHash {
|
7661
7419
|
|
7662
|
-
/**
|
7420
|
+
/** RedeemScriptOrHash redeemScript */
|
7663
7421
|
redeemScript?: (Uint8Array|null);
|
7664
7422
|
|
7665
|
-
/**
|
7423
|
+
/** RedeemScriptOrHash hash */
|
7666
7424
|
hash?: (Uint8Array|null);
|
7667
7425
|
}
|
7668
7426
|
|
7669
|
-
/** Represents
|
7670
|
-
class
|
7427
|
+
/** Represents a RedeemScriptOrHash. */
|
7428
|
+
class RedeemScriptOrHash implements IRedeemScriptOrHash {
|
7671
7429
|
|
7672
7430
|
/**
|
7673
|
-
* Constructs a new
|
7431
|
+
* Constructs a new RedeemScriptOrHash.
|
7674
7432
|
* @param [properties] Properties to set
|
7675
7433
|
*/
|
7676
|
-
constructor(properties?: TW.BitcoinV2.Proto.Output.
|
7434
|
+
constructor(properties?: TW.BitcoinV2.Proto.Output.IRedeemScriptOrHash);
|
7677
7435
|
|
7678
|
-
/**
|
7436
|
+
/** RedeemScriptOrHash redeemScript. */
|
7679
7437
|
public redeemScript?: (Uint8Array|null);
|
7680
7438
|
|
7681
|
-
/**
|
7439
|
+
/** RedeemScriptOrHash hash. */
|
7682
7440
|
public hash?: (Uint8Array|null);
|
7683
7441
|
|
7684
|
-
/**
|
7442
|
+
/** RedeemScriptOrHash variant. */
|
7685
7443
|
public variant?: ("redeemScript"|"hash");
|
7686
7444
|
|
7687
7445
|
/**
|
7688
|
-
* Creates a new
|
7446
|
+
* Creates a new RedeemScriptOrHash instance using the specified properties.
|
7689
7447
|
* @param [properties] Properties to set
|
7690
|
-
* @returns
|
7448
|
+
* @returns RedeemScriptOrHash instance
|
7691
7449
|
*/
|
7692
|
-
public static create(properties?: TW.BitcoinV2.Proto.Output.
|
7450
|
+
public static create(properties?: TW.BitcoinV2.Proto.Output.IRedeemScriptOrHash): TW.BitcoinV2.Proto.Output.RedeemScriptOrHash;
|
7693
7451
|
|
7694
7452
|
/**
|
7695
|
-
* Encodes the specified
|
7696
|
-
* @param message
|
7453
|
+
* Encodes the specified RedeemScriptOrHash message. Does not implicitly {@link TW.BitcoinV2.Proto.Output.RedeemScriptOrHash.verify|verify} messages.
|
7454
|
+
* @param message RedeemScriptOrHash message or plain object to encode
|
7697
7455
|
* @param [writer] Writer to encode to
|
7698
7456
|
* @returns Writer
|
7699
7457
|
*/
|
7700
|
-
public static encode(message: TW.BitcoinV2.Proto.Output.
|
7458
|
+
public static encode(message: TW.BitcoinV2.Proto.Output.IRedeemScriptOrHash, writer?: $protobuf.Writer): $protobuf.Writer;
|
7701
7459
|
|
7702
7460
|
/**
|
7703
|
-
* Decodes
|
7461
|
+
* Decodes a RedeemScriptOrHash message from the specified reader or buffer.
|
7704
7462
|
* @param reader Reader or buffer to decode from
|
7705
7463
|
* @param [length] Message length if known beforehand
|
7706
|
-
* @returns
|
7464
|
+
* @returns RedeemScriptOrHash
|
7707
7465
|
* @throws {Error} If the payload is not a reader or valid buffer
|
7708
7466
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
7709
7467
|
*/
|
7710
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.BitcoinV2.Proto.Output.
|
7468
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.BitcoinV2.Proto.Output.RedeemScriptOrHash;
|
7711
7469
|
|
7712
7470
|
/**
|
7713
|
-
* Verifies
|
7471
|
+
* Verifies a RedeemScriptOrHash message.
|
7714
7472
|
* @param message Plain object to verify
|
7715
7473
|
* @returns `null` if valid, otherwise the reason why it is not
|
7716
7474
|
*/
|
7717
7475
|
public static verify(message: { [k: string]: any }): (string|null);
|
7718
7476
|
|
7719
7477
|
/**
|
7720
|
-
* Creates
|
7478
|
+
* Creates a RedeemScriptOrHash message from a plain object. Also converts values to their respective internal types.
|
7721
7479
|
* @param object Plain object
|
7722
|
-
* @returns
|
7480
|
+
* @returns RedeemScriptOrHash
|
7723
7481
|
*/
|
7724
|
-
public static fromObject(object: { [k: string]: any }): TW.BitcoinV2.Proto.Output.
|
7482
|
+
public static fromObject(object: { [k: string]: any }): TW.BitcoinV2.Proto.Output.RedeemScriptOrHash;
|
7725
7483
|
|
7726
7484
|
/**
|
7727
|
-
* Creates a plain object from
|
7728
|
-
* @param message
|
7485
|
+
* Creates a plain object from a RedeemScriptOrHash message. Also converts values to other types if specified.
|
7486
|
+
* @param message RedeemScriptOrHash
|
7729
7487
|
* @param [options] Conversion options
|
7730
7488
|
* @returns Plain object
|
7731
7489
|
*/
|
7732
|
-
public static toObject(message: TW.BitcoinV2.Proto.Output.
|
7490
|
+
public static toObject(message: TW.BitcoinV2.Proto.Output.RedeemScriptOrHash, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
7733
7491
|
|
7734
7492
|
/**
|
7735
|
-
* Converts this
|
7493
|
+
* Converts this RedeemScriptOrHash to JSON.
|
7736
7494
|
* @returns JSON object
|
7737
7495
|
*/
|
7738
7496
|
public toJSON(): { [k: string]: any };
|
@@ -7817,91 +7575,6 @@ export namespace TW {
|
|
7817
7575
|
public toJSON(): { [k: string]: any };
|
7818
7576
|
}
|
7819
7577
|
|
7820
|
-
/** Properties of an OutputOrdinalInscription. */
|
7821
|
-
interface IOutputOrdinalInscription {
|
7822
|
-
|
7823
|
-
/** OutputOrdinalInscription inscribeTo */
|
7824
|
-
inscribeTo?: (Uint8Array|null);
|
7825
|
-
|
7826
|
-
/** OutputOrdinalInscription mimeType */
|
7827
|
-
mimeType?: (string|null);
|
7828
|
-
|
7829
|
-
/** OutputOrdinalInscription payload */
|
7830
|
-
payload?: (Uint8Array|null);
|
7831
|
-
}
|
7832
|
-
|
7833
|
-
/** Represents an OutputOrdinalInscription. */
|
7834
|
-
class OutputOrdinalInscription implements IOutputOrdinalInscription {
|
7835
|
-
|
7836
|
-
/**
|
7837
|
-
* Constructs a new OutputOrdinalInscription.
|
7838
|
-
* @param [properties] Properties to set
|
7839
|
-
*/
|
7840
|
-
constructor(properties?: TW.BitcoinV2.Proto.Output.IOutputOrdinalInscription);
|
7841
|
-
|
7842
|
-
/** OutputOrdinalInscription inscribeTo. */
|
7843
|
-
public inscribeTo: Uint8Array;
|
7844
|
-
|
7845
|
-
/** OutputOrdinalInscription mimeType. */
|
7846
|
-
public mimeType: string;
|
7847
|
-
|
7848
|
-
/** OutputOrdinalInscription payload. */
|
7849
|
-
public payload: Uint8Array;
|
7850
|
-
|
7851
|
-
/**
|
7852
|
-
* Creates a new OutputOrdinalInscription instance using the specified properties.
|
7853
|
-
* @param [properties] Properties to set
|
7854
|
-
* @returns OutputOrdinalInscription instance
|
7855
|
-
*/
|
7856
|
-
public static create(properties?: TW.BitcoinV2.Proto.Output.IOutputOrdinalInscription): TW.BitcoinV2.Proto.Output.OutputOrdinalInscription;
|
7857
|
-
|
7858
|
-
/**
|
7859
|
-
* Encodes the specified OutputOrdinalInscription message. Does not implicitly {@link TW.BitcoinV2.Proto.Output.OutputOrdinalInscription.verify|verify} messages.
|
7860
|
-
* @param message OutputOrdinalInscription message or plain object to encode
|
7861
|
-
* @param [writer] Writer to encode to
|
7862
|
-
* @returns Writer
|
7863
|
-
*/
|
7864
|
-
public static encode(message: TW.BitcoinV2.Proto.Output.IOutputOrdinalInscription, writer?: $protobuf.Writer): $protobuf.Writer;
|
7865
|
-
|
7866
|
-
/**
|
7867
|
-
* Decodes an OutputOrdinalInscription message from the specified reader or buffer.
|
7868
|
-
* @param reader Reader or buffer to decode from
|
7869
|
-
* @param [length] Message length if known beforehand
|
7870
|
-
* @returns OutputOrdinalInscription
|
7871
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
7872
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
7873
|
-
*/
|
7874
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.BitcoinV2.Proto.Output.OutputOrdinalInscription;
|
7875
|
-
|
7876
|
-
/**
|
7877
|
-
* Verifies an OutputOrdinalInscription message.
|
7878
|
-
* @param message Plain object to verify
|
7879
|
-
* @returns `null` if valid, otherwise the reason why it is not
|
7880
|
-
*/
|
7881
|
-
public static verify(message: { [k: string]: any }): (string|null);
|
7882
|
-
|
7883
|
-
/**
|
7884
|
-
* Creates an OutputOrdinalInscription message from a plain object. Also converts values to their respective internal types.
|
7885
|
-
* @param object Plain object
|
7886
|
-
* @returns OutputOrdinalInscription
|
7887
|
-
*/
|
7888
|
-
public static fromObject(object: { [k: string]: any }): TW.BitcoinV2.Proto.Output.OutputOrdinalInscription;
|
7889
|
-
|
7890
|
-
/**
|
7891
|
-
* Creates a plain object from an OutputOrdinalInscription message. Also converts values to other types if specified.
|
7892
|
-
* @param message OutputOrdinalInscription
|
7893
|
-
* @param [options] Conversion options
|
7894
|
-
* @returns Plain object
|
7895
|
-
*/
|
7896
|
-
public static toObject(message: TW.BitcoinV2.Proto.Output.OutputOrdinalInscription, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
7897
|
-
|
7898
|
-
/**
|
7899
|
-
* Converts this OutputOrdinalInscription to JSON.
|
7900
|
-
* @returns JSON object
|
7901
|
-
*/
|
7902
|
-
public toJSON(): { [k: string]: any };
|
7903
|
-
}
|
7904
|
-
|
7905
7578
|
/** Properties of an OutputBrc20Inscription. */
|
7906
7579
|
interface IOutputBrc20Inscription {
|
7907
7580
|
|
@@ -7988,401 +7661,235 @@ export namespace TW {
|
|
7988
7661
|
}
|
7989
7662
|
}
|
7990
7663
|
|
7991
|
-
/** Properties of a
|
7992
|
-
interface
|
7664
|
+
/** Properties of a ChainInfo. */
|
7665
|
+
interface IChainInfo {
|
7993
7666
|
|
7994
|
-
/**
|
7995
|
-
|
7667
|
+
/** ChainInfo p2pkhPrefix */
|
7668
|
+
p2pkhPrefix?: (number|null);
|
7996
7669
|
|
7997
|
-
/**
|
7998
|
-
|
7670
|
+
/** ChainInfo p2shPrefix */
|
7671
|
+
p2shPrefix?: (number|null);
|
7999
7672
|
}
|
8000
7673
|
|
8001
|
-
/** Represents a
|
8002
|
-
class
|
7674
|
+
/** Represents a ChainInfo. */
|
7675
|
+
class ChainInfo implements IChainInfo {
|
8003
7676
|
|
8004
7677
|
/**
|
8005
|
-
* Constructs a new
|
7678
|
+
* Constructs a new ChainInfo.
|
8006
7679
|
* @param [properties] Properties to set
|
8007
7680
|
*/
|
8008
|
-
constructor(properties?: TW.BitcoinV2.Proto.
|
7681
|
+
constructor(properties?: TW.BitcoinV2.Proto.IChainInfo);
|
8009
7682
|
|
8010
|
-
/**
|
8011
|
-
public
|
8012
|
-
|
8013
|
-
/** ToPublicKeyOrHash hash. */
|
8014
|
-
public hash?: (Uint8Array|null);
|
7683
|
+
/** ChainInfo p2pkhPrefix. */
|
7684
|
+
public p2pkhPrefix: number;
|
8015
7685
|
|
8016
|
-
/**
|
8017
|
-
public
|
7686
|
+
/** ChainInfo p2shPrefix. */
|
7687
|
+
public p2shPrefix: number;
|
8018
7688
|
|
8019
7689
|
/**
|
8020
|
-
* Creates a new
|
7690
|
+
* Creates a new ChainInfo instance using the specified properties.
|
8021
7691
|
* @param [properties] Properties to set
|
8022
|
-
* @returns
|
7692
|
+
* @returns ChainInfo instance
|
8023
7693
|
*/
|
8024
|
-
public static create(properties?: TW.BitcoinV2.Proto.
|
7694
|
+
public static create(properties?: TW.BitcoinV2.Proto.IChainInfo): TW.BitcoinV2.Proto.ChainInfo;
|
8025
7695
|
|
8026
7696
|
/**
|
8027
|
-
* Encodes the specified
|
8028
|
-
* @param message
|
7697
|
+
* Encodes the specified ChainInfo message. Does not implicitly {@link TW.BitcoinV2.Proto.ChainInfo.verify|verify} messages.
|
7698
|
+
* @param message ChainInfo message or plain object to encode
|
8029
7699
|
* @param [writer] Writer to encode to
|
8030
7700
|
* @returns Writer
|
8031
7701
|
*/
|
8032
|
-
public static encode(message: TW.BitcoinV2.Proto.
|
7702
|
+
public static encode(message: TW.BitcoinV2.Proto.IChainInfo, writer?: $protobuf.Writer): $protobuf.Writer;
|
8033
7703
|
|
8034
7704
|
/**
|
8035
|
-
* Decodes a
|
7705
|
+
* Decodes a ChainInfo message from the specified reader or buffer.
|
8036
7706
|
* @param reader Reader or buffer to decode from
|
8037
7707
|
* @param [length] Message length if known beforehand
|
8038
|
-
* @returns
|
7708
|
+
* @returns ChainInfo
|
8039
7709
|
* @throws {Error} If the payload is not a reader or valid buffer
|
8040
7710
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
8041
7711
|
*/
|
8042
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.BitcoinV2.Proto.
|
7712
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.BitcoinV2.Proto.ChainInfo;
|
8043
7713
|
|
8044
7714
|
/**
|
8045
|
-
* Verifies a
|
7715
|
+
* Verifies a ChainInfo message.
|
8046
7716
|
* @param message Plain object to verify
|
8047
7717
|
* @returns `null` if valid, otherwise the reason why it is not
|
8048
7718
|
*/
|
8049
7719
|
public static verify(message: { [k: string]: any }): (string|null);
|
8050
7720
|
|
8051
7721
|
/**
|
8052
|
-
* Creates a
|
7722
|
+
* Creates a ChainInfo message from a plain object. Also converts values to their respective internal types.
|
8053
7723
|
* @param object Plain object
|
8054
|
-
* @returns
|
7724
|
+
* @returns ChainInfo
|
8055
7725
|
*/
|
8056
|
-
public static fromObject(object: { [k: string]: any }): TW.BitcoinV2.Proto.
|
7726
|
+
public static fromObject(object: { [k: string]: any }): TW.BitcoinV2.Proto.ChainInfo;
|
8057
7727
|
|
8058
7728
|
/**
|
8059
|
-
* Creates a plain object from a
|
8060
|
-
* @param message
|
7729
|
+
* Creates a plain object from a ChainInfo message. Also converts values to other types if specified.
|
7730
|
+
* @param message ChainInfo
|
8061
7731
|
* @param [options] Conversion options
|
8062
7732
|
* @returns Plain object
|
8063
7733
|
*/
|
8064
|
-
public static toObject(message: TW.BitcoinV2.Proto.
|
7734
|
+
public static toObject(message: TW.BitcoinV2.Proto.ChainInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
8065
7735
|
|
8066
7736
|
/**
|
8067
|
-
* Converts this
|
7737
|
+
* Converts this ChainInfo to JSON.
|
8068
7738
|
* @returns JSON object
|
8069
7739
|
*/
|
8070
7740
|
public toJSON(): { [k: string]: any };
|
8071
7741
|
}
|
8072
7742
|
|
8073
|
-
/**
|
8074
|
-
|
8075
|
-
|
8076
|
-
|
8077
|
-
|
8078
|
-
|
8079
|
-
/** PreSigningOutput errorMessage */
|
8080
|
-
errorMessage?: (string|null);
|
8081
|
-
|
8082
|
-
/** PreSigningOutput txid */
|
8083
|
-
txid?: (Uint8Array|null);
|
8084
|
-
|
8085
|
-
/** The sighashes to be signed; ECDSA for legacy and Segwit, Schnorr for Taproot. */
|
8086
|
-
sighashes?: (TW.Utxo.Proto.ISighash[]|null);
|
8087
|
-
|
8088
|
-
/** PreSigningOutput utxoInputs */
|
8089
|
-
utxoInputs?: (TW.Utxo.Proto.ITxIn[]|null);
|
8090
|
-
|
8091
|
-
/** PreSigningOutput utxoOutputs */
|
8092
|
-
utxoOutputs?: (TW.BitcoinV2.Proto.PreSigningOutput.ITxOut[]|null);
|
8093
|
-
|
8094
|
-
/** PreSigningOutput weightEstimate */
|
8095
|
-
weightEstimate?: (Long|null);
|
8096
|
-
|
8097
|
-
/** PreSigningOutput feeEstimate */
|
8098
|
-
feeEstimate?: (Long|null);
|
7743
|
+
/** TransactionVersion enum. */
|
7744
|
+
enum TransactionVersion {
|
7745
|
+
UseDefault = 0,
|
7746
|
+
V1 = 1,
|
7747
|
+
V2 = 2
|
8099
7748
|
}
|
8100
7749
|
|
8101
|
-
/**
|
8102
|
-
|
8103
|
-
|
8104
|
-
/**
|
8105
|
-
* Constructs a new PreSigningOutput.
|
8106
|
-
* @param [properties] Properties to set
|
8107
|
-
*/
|
8108
|
-
constructor(properties?: TW.BitcoinV2.Proto.IPreSigningOutput);
|
7750
|
+
/** Properties of a SigningInput. */
|
7751
|
+
interface ISigningInput {
|
8109
7752
|
|
8110
|
-
/**
|
8111
|
-
|
7753
|
+
/** SigningInput version */
|
7754
|
+
version?: (TW.BitcoinV2.Proto.TransactionVersion|null);
|
8112
7755
|
|
8113
|
-
/**
|
8114
|
-
|
7756
|
+
/** SigningInput privateKeys */
|
7757
|
+
privateKeys?: (Uint8Array[]|null);
|
8115
7758
|
|
8116
|
-
/**
|
8117
|
-
|
7759
|
+
/** SigningInput publicKeys */
|
7760
|
+
publicKeys?: (Uint8Array[]|null);
|
8118
7761
|
|
8119
|
-
/**
|
8120
|
-
|
7762
|
+
/** SigningInput lockTime */
|
7763
|
+
lockTime?: (number|null);
|
8121
7764
|
|
8122
|
-
/**
|
8123
|
-
|
7765
|
+
/** SigningInput inputs */
|
7766
|
+
inputs?: (TW.BitcoinV2.Proto.IInput[]|null);
|
8124
7767
|
|
8125
|
-
/**
|
8126
|
-
|
7768
|
+
/** SigningInput outputs */
|
7769
|
+
outputs?: (TW.BitcoinV2.Proto.IOutput[]|null);
|
8127
7770
|
|
8128
|
-
/**
|
8129
|
-
|
7771
|
+
/** SigningInput inputSelector */
|
7772
|
+
inputSelector?: (TW.BitcoinV2.Proto.InputSelector|null);
|
8130
7773
|
|
8131
|
-
/**
|
8132
|
-
|
7774
|
+
/** SigningInput feePerVb */
|
7775
|
+
feePerVb?: (Long|null);
|
8133
7776
|
|
8134
|
-
/**
|
8135
|
-
|
8136
|
-
* @param [properties] Properties to set
|
8137
|
-
* @returns PreSigningOutput instance
|
8138
|
-
*/
|
8139
|
-
public static create(properties?: TW.BitcoinV2.Proto.IPreSigningOutput): TW.BitcoinV2.Proto.PreSigningOutput;
|
7777
|
+
/** SigningInput changeOutput */
|
7778
|
+
changeOutput?: (TW.BitcoinV2.Proto.IOutput|null);
|
8140
7779
|
|
8141
|
-
/**
|
8142
|
-
|
8143
|
-
* @param message PreSigningOutput message or plain object to encode
|
8144
|
-
* @param [writer] Writer to encode to
|
8145
|
-
* @returns Writer
|
8146
|
-
*/
|
8147
|
-
public static encode(message: TW.BitcoinV2.Proto.IPreSigningOutput, writer?: $protobuf.Writer): $protobuf.Writer;
|
7780
|
+
/** SigningInput maxAmountOutput */
|
7781
|
+
maxAmountOutput?: (TW.BitcoinV2.Proto.IOutput|null);
|
8148
7782
|
|
8149
|
-
/**
|
8150
|
-
|
8151
|
-
* @param reader Reader or buffer to decode from
|
8152
|
-
* @param [length] Message length if known beforehand
|
8153
|
-
* @returns PreSigningOutput
|
8154
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
8155
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
8156
|
-
*/
|
8157
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.BitcoinV2.Proto.PreSigningOutput;
|
7783
|
+
/** SigningInput chainInfo */
|
7784
|
+
chainInfo?: (TW.BitcoinV2.Proto.IChainInfo|null);
|
8158
7785
|
|
8159
|
-
/**
|
8160
|
-
|
8161
|
-
* @param message Plain object to verify
|
8162
|
-
* @returns `null` if valid, otherwise the reason why it is not
|
8163
|
-
*/
|
8164
|
-
public static verify(message: { [k: string]: any }): (string|null);
|
7786
|
+
/** SigningInput fixedDustThreshold */
|
7787
|
+
fixedDustThreshold?: (Long|null);
|
8165
7788
|
|
8166
|
-
/**
|
8167
|
-
|
8168
|
-
|
8169
|
-
* @returns PreSigningOutput
|
8170
|
-
*/
|
8171
|
-
public static fromObject(object: { [k: string]: any }): TW.BitcoinV2.Proto.PreSigningOutput;
|
7789
|
+
/** SigningInput dangerousUseFixedSchnorrRng */
|
7790
|
+
dangerousUseFixedSchnorrRng?: (boolean|null);
|
7791
|
+
}
|
8172
7792
|
|
8173
|
-
|
8174
|
-
|
8175
|
-
* @param message PreSigningOutput
|
8176
|
-
* @param [options] Conversion options
|
8177
|
-
* @returns Plain object
|
8178
|
-
*/
|
8179
|
-
public static toObject(message: TW.BitcoinV2.Proto.PreSigningOutput, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
7793
|
+
/** Represents a SigningInput. */
|
7794
|
+
class SigningInput implements ISigningInput {
|
8180
7795
|
|
8181
7796
|
/**
|
8182
|
-
*
|
8183
|
-
* @
|
7797
|
+
* Constructs a new SigningInput.
|
7798
|
+
* @param [properties] Properties to set
|
8184
7799
|
*/
|
8185
|
-
|
8186
|
-
}
|
8187
|
-
|
8188
|
-
namespace PreSigningOutput {
|
8189
|
-
|
8190
|
-
/** Properties of a TxOut. */
|
8191
|
-
interface ITxOut {
|
8192
|
-
|
8193
|
-
/** TxOut value */
|
8194
|
-
value?: (Long|null);
|
8195
|
-
|
8196
|
-
/** TxOut scriptPubkey */
|
8197
|
-
scriptPubkey?: (Uint8Array|null);
|
8198
|
-
|
8199
|
-
/** TxOut taprootPayload */
|
8200
|
-
taprootPayload?: (Uint8Array|null);
|
8201
|
-
|
8202
|
-
/** TxOut controlBlock */
|
8203
|
-
controlBlock?: (Uint8Array|null);
|
8204
|
-
}
|
8205
|
-
|
8206
|
-
/** Represents a TxOut. */
|
8207
|
-
class TxOut implements ITxOut {
|
8208
|
-
|
8209
|
-
/**
|
8210
|
-
* Constructs a new TxOut.
|
8211
|
-
* @param [properties] Properties to set
|
8212
|
-
*/
|
8213
|
-
constructor(properties?: TW.BitcoinV2.Proto.PreSigningOutput.ITxOut);
|
8214
|
-
|
8215
|
-
/** TxOut value. */
|
8216
|
-
public value: Long;
|
8217
|
-
|
8218
|
-
/** TxOut scriptPubkey. */
|
8219
|
-
public scriptPubkey: Uint8Array;
|
8220
|
-
|
8221
|
-
/** TxOut taprootPayload. */
|
8222
|
-
public taprootPayload: Uint8Array;
|
8223
|
-
|
8224
|
-
/** TxOut controlBlock. */
|
8225
|
-
public controlBlock: Uint8Array;
|
8226
|
-
|
8227
|
-
/**
|
8228
|
-
* Creates a new TxOut instance using the specified properties.
|
8229
|
-
* @param [properties] Properties to set
|
8230
|
-
* @returns TxOut instance
|
8231
|
-
*/
|
8232
|
-
public static create(properties?: TW.BitcoinV2.Proto.PreSigningOutput.ITxOut): TW.BitcoinV2.Proto.PreSigningOutput.TxOut;
|
8233
|
-
|
8234
|
-
/**
|
8235
|
-
* Encodes the specified TxOut message. Does not implicitly {@link TW.BitcoinV2.Proto.PreSigningOutput.TxOut.verify|verify} messages.
|
8236
|
-
* @param message TxOut message or plain object to encode
|
8237
|
-
* @param [writer] Writer to encode to
|
8238
|
-
* @returns Writer
|
8239
|
-
*/
|
8240
|
-
public static encode(message: TW.BitcoinV2.Proto.PreSigningOutput.ITxOut, writer?: $protobuf.Writer): $protobuf.Writer;
|
8241
|
-
|
8242
|
-
/**
|
8243
|
-
* Decodes a TxOut message from the specified reader or buffer.
|
8244
|
-
* @param reader Reader or buffer to decode from
|
8245
|
-
* @param [length] Message length if known beforehand
|
8246
|
-
* @returns TxOut
|
8247
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
8248
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
8249
|
-
*/
|
8250
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.BitcoinV2.Proto.PreSigningOutput.TxOut;
|
8251
|
-
|
8252
|
-
/**
|
8253
|
-
* Verifies a TxOut message.
|
8254
|
-
* @param message Plain object to verify
|
8255
|
-
* @returns `null` if valid, otherwise the reason why it is not
|
8256
|
-
*/
|
8257
|
-
public static verify(message: { [k: string]: any }): (string|null);
|
8258
|
-
|
8259
|
-
/**
|
8260
|
-
* Creates a TxOut message from a plain object. Also converts values to their respective internal types.
|
8261
|
-
* @param object Plain object
|
8262
|
-
* @returns TxOut
|
8263
|
-
*/
|
8264
|
-
public static fromObject(object: { [k: string]: any }): TW.BitcoinV2.Proto.PreSigningOutput.TxOut;
|
8265
|
-
|
8266
|
-
/**
|
8267
|
-
* Creates a plain object from a TxOut message. Also converts values to other types if specified.
|
8268
|
-
* @param message TxOut
|
8269
|
-
* @param [options] Conversion options
|
8270
|
-
* @returns Plain object
|
8271
|
-
*/
|
8272
|
-
public static toObject(message: TW.BitcoinV2.Proto.PreSigningOutput.TxOut, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
8273
|
-
|
8274
|
-
/**
|
8275
|
-
* Converts this TxOut to JSON.
|
8276
|
-
* @returns JSON object
|
8277
|
-
*/
|
8278
|
-
public toJSON(): { [k: string]: any };
|
8279
|
-
}
|
8280
|
-
}
|
8281
|
-
|
8282
|
-
/** Properties of a SigningOutput. */
|
8283
|
-
interface ISigningOutput {
|
8284
|
-
|
8285
|
-
/** SigningOutput error */
|
8286
|
-
error?: (TW.BitcoinV2.Proto.Error|null);
|
8287
|
-
|
8288
|
-
/** SigningOutput errorMessage */
|
8289
|
-
errorMessage?: (string|null);
|
7800
|
+
constructor(properties?: TW.BitcoinV2.Proto.ISigningInput);
|
8290
7801
|
|
8291
|
-
/**
|
8292
|
-
|
7802
|
+
/** SigningInput version. */
|
7803
|
+
public version: TW.BitcoinV2.Proto.TransactionVersion;
|
8293
7804
|
|
8294
|
-
/**
|
8295
|
-
|
7805
|
+
/** SigningInput privateKeys. */
|
7806
|
+
public privateKeys: Uint8Array[];
|
8296
7807
|
|
8297
|
-
/**
|
8298
|
-
|
7808
|
+
/** SigningInput publicKeys. */
|
7809
|
+
public publicKeys: Uint8Array[];
|
8299
7810
|
|
8300
|
-
/**
|
8301
|
-
|
7811
|
+
/** SigningInput lockTime. */
|
7812
|
+
public lockTime: number;
|
8302
7813
|
|
8303
|
-
/**
|
8304
|
-
|
8305
|
-
}
|
7814
|
+
/** SigningInput inputs. */
|
7815
|
+
public inputs: TW.BitcoinV2.Proto.IInput[];
|
8306
7816
|
|
8307
|
-
|
8308
|
-
|
7817
|
+
/** SigningInput outputs. */
|
7818
|
+
public outputs: TW.BitcoinV2.Proto.IOutput[];
|
8309
7819
|
|
8310
|
-
/**
|
8311
|
-
|
8312
|
-
* @param [properties] Properties to set
|
8313
|
-
*/
|
8314
|
-
constructor(properties?: TW.BitcoinV2.Proto.ISigningOutput);
|
7820
|
+
/** SigningInput inputSelector. */
|
7821
|
+
public inputSelector: TW.BitcoinV2.Proto.InputSelector;
|
8315
7822
|
|
8316
|
-
/**
|
8317
|
-
public
|
7823
|
+
/** SigningInput feePerVb. */
|
7824
|
+
public feePerVb: Long;
|
8318
7825
|
|
8319
|
-
/**
|
8320
|
-
public
|
7826
|
+
/** SigningInput changeOutput. */
|
7827
|
+
public changeOutput?: (TW.BitcoinV2.Proto.IOutput|null);
|
8321
7828
|
|
8322
|
-
/**
|
8323
|
-
public
|
7829
|
+
/** SigningInput maxAmountOutput. */
|
7830
|
+
public maxAmountOutput?: (TW.BitcoinV2.Proto.IOutput|null);
|
8324
7831
|
|
8325
|
-
/**
|
8326
|
-
public
|
7832
|
+
/** SigningInput chainInfo. */
|
7833
|
+
public chainInfo?: (TW.BitcoinV2.Proto.IChainInfo|null);
|
8327
7834
|
|
8328
|
-
/**
|
8329
|
-
public
|
7835
|
+
/** SigningInput fixedDustThreshold. */
|
7836
|
+
public fixedDustThreshold?: (Long|null);
|
8330
7837
|
|
8331
|
-
/**
|
8332
|
-
public
|
7838
|
+
/** SigningInput dangerousUseFixedSchnorrRng. */
|
7839
|
+
public dangerousUseFixedSchnorrRng: boolean;
|
8333
7840
|
|
8334
|
-
/**
|
8335
|
-
public
|
7841
|
+
/** SigningInput dustPolicy. */
|
7842
|
+
public dustPolicy?: "fixedDustThreshold";
|
8336
7843
|
|
8337
7844
|
/**
|
8338
|
-
* Creates a new
|
7845
|
+
* Creates a new SigningInput instance using the specified properties.
|
8339
7846
|
* @param [properties] Properties to set
|
8340
|
-
* @returns
|
7847
|
+
* @returns SigningInput instance
|
8341
7848
|
*/
|
8342
|
-
public static create(properties?: TW.BitcoinV2.Proto.
|
7849
|
+
public static create(properties?: TW.BitcoinV2.Proto.ISigningInput): TW.BitcoinV2.Proto.SigningInput;
|
8343
7850
|
|
8344
7851
|
/**
|
8345
|
-
* Encodes the specified
|
8346
|
-
* @param message
|
7852
|
+
* Encodes the specified SigningInput message. Does not implicitly {@link TW.BitcoinV2.Proto.SigningInput.verify|verify} messages.
|
7853
|
+
* @param message SigningInput message or plain object to encode
|
8347
7854
|
* @param [writer] Writer to encode to
|
8348
7855
|
* @returns Writer
|
8349
7856
|
*/
|
8350
|
-
public static encode(message: TW.BitcoinV2.Proto.
|
7857
|
+
public static encode(message: TW.BitcoinV2.Proto.ISigningInput, writer?: $protobuf.Writer): $protobuf.Writer;
|
8351
7858
|
|
8352
7859
|
/**
|
8353
|
-
* Decodes a
|
7860
|
+
* Decodes a SigningInput message from the specified reader or buffer.
|
8354
7861
|
* @param reader Reader or buffer to decode from
|
8355
7862
|
* @param [length] Message length if known beforehand
|
8356
|
-
* @returns
|
7863
|
+
* @returns SigningInput
|
8357
7864
|
* @throws {Error} If the payload is not a reader or valid buffer
|
8358
7865
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
8359
7866
|
*/
|
8360
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.BitcoinV2.Proto.
|
7867
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.BitcoinV2.Proto.SigningInput;
|
8361
7868
|
|
8362
7869
|
/**
|
8363
|
-
* Verifies a
|
7870
|
+
* Verifies a SigningInput message.
|
8364
7871
|
* @param message Plain object to verify
|
8365
7872
|
* @returns `null` if valid, otherwise the reason why it is not
|
8366
7873
|
*/
|
8367
7874
|
public static verify(message: { [k: string]: any }): (string|null);
|
8368
7875
|
|
8369
7876
|
/**
|
8370
|
-
* Creates a
|
7877
|
+
* Creates a SigningInput message from a plain object. Also converts values to their respective internal types.
|
8371
7878
|
* @param object Plain object
|
8372
|
-
* @returns
|
7879
|
+
* @returns SigningInput
|
8373
7880
|
*/
|
8374
|
-
public static fromObject(object: { [k: string]: any }): TW.BitcoinV2.Proto.
|
7881
|
+
public static fromObject(object: { [k: string]: any }): TW.BitcoinV2.Proto.SigningInput;
|
8375
7882
|
|
8376
7883
|
/**
|
8377
|
-
* Creates a plain object from a
|
8378
|
-
* @param message
|
7884
|
+
* Creates a plain object from a SigningInput message. Also converts values to other types if specified.
|
7885
|
+
* @param message SigningInput
|
8379
7886
|
* @param [options] Conversion options
|
8380
7887
|
* @returns Plain object
|
8381
7888
|
*/
|
8382
|
-
public static toObject(message: TW.BitcoinV2.Proto.
|
7889
|
+
public static toObject(message: TW.BitcoinV2.Proto.SigningInput, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
8383
7890
|
|
8384
7891
|
/**
|
8385
|
-
* Converts this
|
7892
|
+
* Converts this SigningInput to JSON.
|
8386
7893
|
* @returns JSON object
|
8387
7894
|
*/
|
8388
7895
|
public toJSON(): { [k: string]: any };
|
@@ -8395,13 +7902,13 @@ export namespace TW {
|
|
8395
7902
|
version?: (number|null);
|
8396
7903
|
|
8397
7904
|
/** Transaction lockTime */
|
8398
|
-
lockTime?: (
|
7905
|
+
lockTime?: (number|null);
|
8399
7906
|
|
8400
7907
|
/** Transaction inputs */
|
8401
|
-
inputs?: (TW.BitcoinV2.Proto.ITransactionInput[]|null);
|
7908
|
+
inputs?: (TW.BitcoinV2.Proto.Transaction.ITransactionInput[]|null);
|
8402
7909
|
|
8403
7910
|
/** Transaction outputs */
|
8404
|
-
outputs?: (TW.BitcoinV2.Proto.ITransactionOutput[]|null);
|
7911
|
+
outputs?: (TW.BitcoinV2.Proto.Transaction.ITransactionOutput[]|null);
|
8405
7912
|
}
|
8406
7913
|
|
8407
7914
|
/** Represents a Transaction. */
|
@@ -8417,13 +7924,13 @@ export namespace TW {
|
|
8417
7924
|
public version: number;
|
8418
7925
|
|
8419
7926
|
/** Transaction lockTime. */
|
8420
|
-
public lockTime
|
7927
|
+
public lockTime: number;
|
8421
7928
|
|
8422
7929
|
/** Transaction inputs. */
|
8423
|
-
public inputs: TW.BitcoinV2.Proto.ITransactionInput[];
|
7930
|
+
public inputs: TW.BitcoinV2.Proto.Transaction.ITransactionInput[];
|
8424
7931
|
|
8425
7932
|
/** Transaction outputs. */
|
8426
|
-
public outputs: TW.BitcoinV2.Proto.ITransactionOutput[];
|
7933
|
+
public outputs: TW.BitcoinV2.Proto.Transaction.ITransactionOutput[];
|
8427
7934
|
|
8428
7935
|
/**
|
8429
7936
|
* Creates a new Transaction instance using the specified properties.
|
@@ -8479,382 +7986,173 @@ export namespace TW {
|
|
8479
7986
|
public toJSON(): { [k: string]: any };
|
8480
7987
|
}
|
8481
7988
|
|
8482
|
-
|
8483
|
-
interface ITransactionInput {
|
7989
|
+
namespace Transaction {
|
8484
7990
|
|
8485
|
-
/** TransactionInput
|
8486
|
-
|
8487
|
-
|
8488
|
-
/** TransactionInput vout */
|
8489
|
-
vout?: (number|null);
|
8490
|
-
|
8491
|
-
/** TransactionInput sequence */
|
8492
|
-
sequence?: (number|null);
|
8493
|
-
|
8494
|
-
/** TransactionInput scriptSig */
|
8495
|
-
scriptSig?: (Uint8Array|null);
|
8496
|
-
|
8497
|
-
/** TransactionInput witnessItems */
|
8498
|
-
witnessItems?: (Uint8Array[]|null);
|
8499
|
-
}
|
8500
|
-
|
8501
|
-
/** Represents a TransactionInput. */
|
8502
|
-
class TransactionInput implements ITransactionInput {
|
8503
|
-
|
8504
|
-
/**
|
8505
|
-
* Constructs a new TransactionInput.
|
8506
|
-
* @param [properties] Properties to set
|
8507
|
-
*/
|
8508
|
-
constructor(properties?: TW.BitcoinV2.Proto.ITransactionInput);
|
8509
|
-
|
8510
|
-
/** TransactionInput txid. */
|
8511
|
-
public txid: Uint8Array;
|
8512
|
-
|
8513
|
-
/** TransactionInput vout. */
|
8514
|
-
public vout: number;
|
8515
|
-
|
8516
|
-
/** TransactionInput sequence. */
|
8517
|
-
public sequence: number;
|
8518
|
-
|
8519
|
-
/** TransactionInput scriptSig. */
|
8520
|
-
public scriptSig: Uint8Array;
|
8521
|
-
|
8522
|
-
/** TransactionInput witnessItems. */
|
8523
|
-
public witnessItems: Uint8Array[];
|
8524
|
-
|
8525
|
-
/**
|
8526
|
-
* Creates a new TransactionInput instance using the specified properties.
|
8527
|
-
* @param [properties] Properties to set
|
8528
|
-
* @returns TransactionInput instance
|
8529
|
-
*/
|
8530
|
-
public static create(properties?: TW.BitcoinV2.Proto.ITransactionInput): TW.BitcoinV2.Proto.TransactionInput;
|
8531
|
-
|
8532
|
-
/**
|
8533
|
-
* Encodes the specified TransactionInput message. Does not implicitly {@link TW.BitcoinV2.Proto.TransactionInput.verify|verify} messages.
|
8534
|
-
* @param message TransactionInput message or plain object to encode
|
8535
|
-
* @param [writer] Writer to encode to
|
8536
|
-
* @returns Writer
|
8537
|
-
*/
|
8538
|
-
public static encode(message: TW.BitcoinV2.Proto.ITransactionInput, writer?: $protobuf.Writer): $protobuf.Writer;
|
8539
|
-
|
8540
|
-
/**
|
8541
|
-
* Decodes a TransactionInput message from the specified reader or buffer.
|
8542
|
-
* @param reader Reader or buffer to decode from
|
8543
|
-
* @param [length] Message length if known beforehand
|
8544
|
-
* @returns TransactionInput
|
8545
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
8546
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
8547
|
-
*/
|
8548
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.BitcoinV2.Proto.TransactionInput;
|
8549
|
-
|
8550
|
-
/**
|
8551
|
-
* Verifies a TransactionInput message.
|
8552
|
-
* @param message Plain object to verify
|
8553
|
-
* @returns `null` if valid, otherwise the reason why it is not
|
8554
|
-
*/
|
8555
|
-
public static verify(message: { [k: string]: any }): (string|null);
|
8556
|
-
|
8557
|
-
/**
|
8558
|
-
* Creates a TransactionInput message from a plain object. Also converts values to their respective internal types.
|
8559
|
-
* @param object Plain object
|
8560
|
-
* @returns TransactionInput
|
8561
|
-
*/
|
8562
|
-
public static fromObject(object: { [k: string]: any }): TW.BitcoinV2.Proto.TransactionInput;
|
8563
|
-
|
8564
|
-
/**
|
8565
|
-
* Creates a plain object from a TransactionInput message. Also converts values to other types if specified.
|
8566
|
-
* @param message TransactionInput
|
8567
|
-
* @param [options] Conversion options
|
8568
|
-
* @returns Plain object
|
8569
|
-
*/
|
8570
|
-
public static toObject(message: TW.BitcoinV2.Proto.TransactionInput, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
8571
|
-
|
8572
|
-
/**
|
8573
|
-
* Converts this TransactionInput to JSON.
|
8574
|
-
* @returns JSON object
|
8575
|
-
*/
|
8576
|
-
public toJSON(): { [k: string]: any };
|
8577
|
-
}
|
8578
|
-
|
8579
|
-
/** Properties of a TransactionOutput. */
|
8580
|
-
interface ITransactionOutput {
|
8581
|
-
|
8582
|
-
/** TransactionOutput scriptPubkey */
|
8583
|
-
scriptPubkey?: (Uint8Array|null);
|
8584
|
-
|
8585
|
-
/** TransactionOutput value */
|
8586
|
-
value?: (Long|null);
|
8587
|
-
|
8588
|
-
/** TransactionOutput taprootPayload */
|
8589
|
-
taprootPayload?: (Uint8Array|null);
|
8590
|
-
|
8591
|
-
/** TransactionOutput controlBlock */
|
8592
|
-
controlBlock?: (Uint8Array|null);
|
8593
|
-
}
|
8594
|
-
|
8595
|
-
/** Represents a TransactionOutput. */
|
8596
|
-
class TransactionOutput implements ITransactionOutput {
|
8597
|
-
|
8598
|
-
/**
|
8599
|
-
* Constructs a new TransactionOutput.
|
8600
|
-
* @param [properties] Properties to set
|
8601
|
-
*/
|
8602
|
-
constructor(properties?: TW.BitcoinV2.Proto.ITransactionOutput);
|
8603
|
-
|
8604
|
-
/** TransactionOutput scriptPubkey. */
|
8605
|
-
public scriptPubkey: Uint8Array;
|
8606
|
-
|
8607
|
-
/** TransactionOutput value. */
|
8608
|
-
public value: Long;
|
8609
|
-
|
8610
|
-
/** TransactionOutput taprootPayload. */
|
8611
|
-
public taprootPayload: Uint8Array;
|
8612
|
-
|
8613
|
-
/** TransactionOutput controlBlock. */
|
8614
|
-
public controlBlock: Uint8Array;
|
8615
|
-
|
8616
|
-
/**
|
8617
|
-
* Creates a new TransactionOutput instance using the specified properties.
|
8618
|
-
* @param [properties] Properties to set
|
8619
|
-
* @returns TransactionOutput instance
|
8620
|
-
*/
|
8621
|
-
public static create(properties?: TW.BitcoinV2.Proto.ITransactionOutput): TW.BitcoinV2.Proto.TransactionOutput;
|
8622
|
-
|
8623
|
-
/**
|
8624
|
-
* Encodes the specified TransactionOutput message. Does not implicitly {@link TW.BitcoinV2.Proto.TransactionOutput.verify|verify} messages.
|
8625
|
-
* @param message TransactionOutput message or plain object to encode
|
8626
|
-
* @param [writer] Writer to encode to
|
8627
|
-
* @returns Writer
|
8628
|
-
*/
|
8629
|
-
public static encode(message: TW.BitcoinV2.Proto.ITransactionOutput, writer?: $protobuf.Writer): $protobuf.Writer;
|
8630
|
-
|
8631
|
-
/**
|
8632
|
-
* Decodes a TransactionOutput message from the specified reader or buffer.
|
8633
|
-
* @param reader Reader or buffer to decode from
|
8634
|
-
* @param [length] Message length if known beforehand
|
8635
|
-
* @returns TransactionOutput
|
8636
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
8637
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
8638
|
-
*/
|
8639
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.BitcoinV2.Proto.TransactionOutput;
|
8640
|
-
|
8641
|
-
/**
|
8642
|
-
* Verifies a TransactionOutput message.
|
8643
|
-
* @param message Plain object to verify
|
8644
|
-
* @returns `null` if valid, otherwise the reason why it is not
|
8645
|
-
*/
|
8646
|
-
public static verify(message: { [k: string]: any }): (string|null);
|
8647
|
-
|
8648
|
-
/**
|
8649
|
-
* Creates a TransactionOutput message from a plain object. Also converts values to their respective internal types.
|
8650
|
-
* @param object Plain object
|
8651
|
-
* @returns TransactionOutput
|
8652
|
-
*/
|
8653
|
-
public static fromObject(object: { [k: string]: any }): TW.BitcoinV2.Proto.TransactionOutput;
|
8654
|
-
|
8655
|
-
/**
|
8656
|
-
* Creates a plain object from a TransactionOutput message. Also converts values to other types if specified.
|
8657
|
-
* @param message TransactionOutput
|
8658
|
-
* @param [options] Conversion options
|
8659
|
-
* @returns Plain object
|
8660
|
-
*/
|
8661
|
-
public static toObject(message: TW.BitcoinV2.Proto.TransactionOutput, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
8662
|
-
|
8663
|
-
/**
|
8664
|
-
* Converts this TransactionOutput to JSON.
|
8665
|
-
* @returns JSON object
|
8666
|
-
*/
|
8667
|
-
public toJSON(): { [k: string]: any };
|
8668
|
-
}
|
8669
|
-
|
8670
|
-
/** Properties of a ComposePlan. */
|
8671
|
-
interface IComposePlan {
|
8672
|
-
|
8673
|
-
/** ComposePlan brc20 */
|
8674
|
-
brc20?: (TW.BitcoinV2.Proto.ComposePlan.IComposeBrc20Plan|null);
|
8675
|
-
}
|
8676
|
-
|
8677
|
-
/** Represents a ComposePlan. */
|
8678
|
-
class ComposePlan implements IComposePlan {
|
7991
|
+
/** Properties of a TransactionInput. */
|
7992
|
+
interface ITransactionInput {
|
8679
7993
|
|
8680
|
-
|
8681
|
-
|
8682
|
-
* @param [properties] Properties to set
|
8683
|
-
*/
|
8684
|
-
constructor(properties?: TW.BitcoinV2.Proto.IComposePlan);
|
7994
|
+
/** TransactionInput outPoint */
|
7995
|
+
outPoint?: (TW.BitcoinV2.Proto.IOutPoint|null);
|
8685
7996
|
|
8686
|
-
|
8687
|
-
|
7997
|
+
/** TransactionInput sequence */
|
7998
|
+
sequence?: (number|null);
|
8688
7999
|
|
8689
|
-
|
8690
|
-
|
8000
|
+
/** TransactionInput scriptSig */
|
8001
|
+
scriptSig?: (Uint8Array|null);
|
8691
8002
|
|
8692
|
-
|
8693
|
-
|
8694
|
-
|
8695
|
-
* @returns ComposePlan instance
|
8696
|
-
*/
|
8697
|
-
public static create(properties?: TW.BitcoinV2.Proto.IComposePlan): TW.BitcoinV2.Proto.ComposePlan;
|
8003
|
+
/** TransactionInput witnessItems */
|
8004
|
+
witnessItems?: (Uint8Array[]|null);
|
8005
|
+
}
|
8698
8006
|
|
8699
|
-
/**
|
8700
|
-
|
8701
|
-
* @param message ComposePlan message or plain object to encode
|
8702
|
-
* @param [writer] Writer to encode to
|
8703
|
-
* @returns Writer
|
8704
|
-
*/
|
8705
|
-
public static encode(message: TW.BitcoinV2.Proto.IComposePlan, writer?: $protobuf.Writer): $protobuf.Writer;
|
8007
|
+
/** Represents a TransactionInput. */
|
8008
|
+
class TransactionInput implements ITransactionInput {
|
8706
8009
|
|
8707
|
-
|
8708
|
-
|
8709
|
-
|
8710
|
-
|
8711
|
-
|
8712
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
8713
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
8714
|
-
*/
|
8715
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.BitcoinV2.Proto.ComposePlan;
|
8010
|
+
/**
|
8011
|
+
* Constructs a new TransactionInput.
|
8012
|
+
* @param [properties] Properties to set
|
8013
|
+
*/
|
8014
|
+
constructor(properties?: TW.BitcoinV2.Proto.Transaction.ITransactionInput);
|
8716
8015
|
|
8717
|
-
|
8718
|
-
|
8719
|
-
* @param message Plain object to verify
|
8720
|
-
* @returns `null` if valid, otherwise the reason why it is not
|
8721
|
-
*/
|
8722
|
-
public static verify(message: { [k: string]: any }): (string|null);
|
8016
|
+
/** TransactionInput outPoint. */
|
8017
|
+
public outPoint?: (TW.BitcoinV2.Proto.IOutPoint|null);
|
8723
8018
|
|
8724
|
-
|
8725
|
-
|
8726
|
-
* @param object Plain object
|
8727
|
-
* @returns ComposePlan
|
8728
|
-
*/
|
8729
|
-
public static fromObject(object: { [k: string]: any }): TW.BitcoinV2.Proto.ComposePlan;
|
8019
|
+
/** TransactionInput sequence. */
|
8020
|
+
public sequence: number;
|
8730
8021
|
|
8731
|
-
|
8732
|
-
|
8733
|
-
* @param message ComposePlan
|
8734
|
-
* @param [options] Conversion options
|
8735
|
-
* @returns Plain object
|
8736
|
-
*/
|
8737
|
-
public static toObject(message: TW.BitcoinV2.Proto.ComposePlan, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
8022
|
+
/** TransactionInput scriptSig. */
|
8023
|
+
public scriptSig: Uint8Array;
|
8738
8024
|
|
8739
|
-
|
8740
|
-
|
8741
|
-
* @returns JSON object
|
8742
|
-
*/
|
8743
|
-
public toJSON(): { [k: string]: any };
|
8744
|
-
}
|
8025
|
+
/** TransactionInput witnessItems. */
|
8026
|
+
public witnessItems: Uint8Array[];
|
8745
8027
|
|
8746
|
-
|
8028
|
+
/**
|
8029
|
+
* Creates a new TransactionInput instance using the specified properties.
|
8030
|
+
* @param [properties] Properties to set
|
8031
|
+
* @returns TransactionInput instance
|
8032
|
+
*/
|
8033
|
+
public static create(properties?: TW.BitcoinV2.Proto.Transaction.ITransactionInput): TW.BitcoinV2.Proto.Transaction.TransactionInput;
|
8747
8034
|
|
8748
|
-
|
8749
|
-
|
8035
|
+
/**
|
8036
|
+
* Encodes the specified TransactionInput message. Does not implicitly {@link TW.BitcoinV2.Proto.Transaction.TransactionInput.verify|verify} messages.
|
8037
|
+
* @param message TransactionInput message or plain object to encode
|
8038
|
+
* @param [writer] Writer to encode to
|
8039
|
+
* @returns Writer
|
8040
|
+
*/
|
8041
|
+
public static encode(message: TW.BitcoinV2.Proto.Transaction.ITransactionInput, writer?: $protobuf.Writer): $protobuf.Writer;
|
8750
8042
|
|
8751
|
-
/**
|
8752
|
-
|
8043
|
+
/**
|
8044
|
+
* Decodes a TransactionInput message from the specified reader or buffer.
|
8045
|
+
* @param reader Reader or buffer to decode from
|
8046
|
+
* @param [length] Message length if known beforehand
|
8047
|
+
* @returns TransactionInput
|
8048
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
8049
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
8050
|
+
*/
|
8051
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.BitcoinV2.Proto.Transaction.TransactionInput;
|
8753
8052
|
|
8754
|
-
/**
|
8755
|
-
|
8053
|
+
/**
|
8054
|
+
* Verifies a TransactionInput message.
|
8055
|
+
* @param message Plain object to verify
|
8056
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
8057
|
+
*/
|
8058
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
8756
8059
|
|
8757
|
-
/**
|
8758
|
-
|
8060
|
+
/**
|
8061
|
+
* Creates a TransactionInput message from a plain object. Also converts values to their respective internal types.
|
8062
|
+
* @param object Plain object
|
8063
|
+
* @returns TransactionInput
|
8064
|
+
*/
|
8065
|
+
public static fromObject(object: { [k: string]: any }): TW.BitcoinV2.Proto.Transaction.TransactionInput;
|
8759
8066
|
|
8760
|
-
/**
|
8761
|
-
|
8067
|
+
/**
|
8068
|
+
* Creates a plain object from a TransactionInput message. Also converts values to other types if specified.
|
8069
|
+
* @param message TransactionInput
|
8070
|
+
* @param [options] Conversion options
|
8071
|
+
* @returns Plain object
|
8072
|
+
*/
|
8073
|
+
public static toObject(message: TW.BitcoinV2.Proto.Transaction.TransactionInput, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
8762
8074
|
|
8763
|
-
/**
|
8764
|
-
|
8075
|
+
/**
|
8076
|
+
* Converts this TransactionInput to JSON.
|
8077
|
+
* @returns JSON object
|
8078
|
+
*/
|
8079
|
+
public toJSON(): { [k: string]: any };
|
8080
|
+
}
|
8765
8081
|
|
8766
|
-
|
8767
|
-
|
8082
|
+
/** Properties of a TransactionOutput. */
|
8083
|
+
interface ITransactionOutput {
|
8768
8084
|
|
8769
|
-
/**
|
8770
|
-
|
8085
|
+
/** TransactionOutput scriptPubkey */
|
8086
|
+
scriptPubkey?: (Uint8Array|null);
|
8771
8087
|
|
8772
|
-
/**
|
8773
|
-
|
8088
|
+
/** TransactionOutput value */
|
8089
|
+
value?: (Long|null);
|
8774
8090
|
}
|
8775
8091
|
|
8776
|
-
/** Represents a
|
8777
|
-
class
|
8092
|
+
/** Represents a TransactionOutput. */
|
8093
|
+
class TransactionOutput implements ITransactionOutput {
|
8778
8094
|
|
8779
8095
|
/**
|
8780
|
-
* Constructs a new
|
8096
|
+
* Constructs a new TransactionOutput.
|
8781
8097
|
* @param [properties] Properties to set
|
8782
8098
|
*/
|
8783
|
-
constructor(properties?: TW.BitcoinV2.Proto.
|
8784
|
-
|
8785
|
-
/** ComposeBrc20Plan privateKey. */
|
8786
|
-
public privateKey: Uint8Array;
|
8099
|
+
constructor(properties?: TW.BitcoinV2.Proto.Transaction.ITransactionOutput);
|
8787
8100
|
|
8788
|
-
/**
|
8789
|
-
public
|
8790
|
-
|
8791
|
-
/** ComposeBrc20Plan inputSelector. */
|
8792
|
-
public inputSelector: TW.Utxo.Proto.InputSelector;
|
8793
|
-
|
8794
|
-
/** ComposeBrc20Plan taggedOutput. */
|
8795
|
-
public taggedOutput?: (TW.BitcoinV2.Proto.IOutput|null);
|
8796
|
-
|
8797
|
-
/** ComposeBrc20Plan inscription. */
|
8798
|
-
public inscription?: (TW.BitcoinV2.Proto.Input.IInputBrc20Inscription|null);
|
8799
|
-
|
8800
|
-
/** ComposeBrc20Plan feePerVb. */
|
8801
|
-
public feePerVb: Long;
|
8802
|
-
|
8803
|
-
/** ComposeBrc20Plan changeOutput. */
|
8804
|
-
public changeOutput?: (TW.BitcoinV2.Proto.IOutput|null);
|
8101
|
+
/** TransactionOutput scriptPubkey. */
|
8102
|
+
public scriptPubkey: Uint8Array;
|
8805
8103
|
|
8806
|
-
/**
|
8807
|
-
public
|
8104
|
+
/** TransactionOutput value. */
|
8105
|
+
public value: Long;
|
8808
8106
|
|
8809
8107
|
/**
|
8810
|
-
* Creates a new
|
8108
|
+
* Creates a new TransactionOutput instance using the specified properties.
|
8811
8109
|
* @param [properties] Properties to set
|
8812
|
-
* @returns
|
8110
|
+
* @returns TransactionOutput instance
|
8813
8111
|
*/
|
8814
|
-
public static create(properties?: TW.BitcoinV2.Proto.
|
8112
|
+
public static create(properties?: TW.BitcoinV2.Proto.Transaction.ITransactionOutput): TW.BitcoinV2.Proto.Transaction.TransactionOutput;
|
8815
8113
|
|
8816
8114
|
/**
|
8817
|
-
* Encodes the specified
|
8818
|
-
* @param message
|
8115
|
+
* Encodes the specified TransactionOutput message. Does not implicitly {@link TW.BitcoinV2.Proto.Transaction.TransactionOutput.verify|verify} messages.
|
8116
|
+
* @param message TransactionOutput message or plain object to encode
|
8819
8117
|
* @param [writer] Writer to encode to
|
8820
8118
|
* @returns Writer
|
8821
8119
|
*/
|
8822
|
-
public static encode(message: TW.BitcoinV2.Proto.
|
8120
|
+
public static encode(message: TW.BitcoinV2.Proto.Transaction.ITransactionOutput, writer?: $protobuf.Writer): $protobuf.Writer;
|
8823
8121
|
|
8824
8122
|
/**
|
8825
|
-
* Decodes a
|
8123
|
+
* Decodes a TransactionOutput message from the specified reader or buffer.
|
8826
8124
|
* @param reader Reader or buffer to decode from
|
8827
8125
|
* @param [length] Message length if known beforehand
|
8828
|
-
* @returns
|
8126
|
+
* @returns TransactionOutput
|
8829
8127
|
* @throws {Error} If the payload is not a reader or valid buffer
|
8830
8128
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
8831
8129
|
*/
|
8832
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.BitcoinV2.Proto.
|
8130
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.BitcoinV2.Proto.Transaction.TransactionOutput;
|
8833
8131
|
|
8834
8132
|
/**
|
8835
|
-
* Verifies a
|
8133
|
+
* Verifies a TransactionOutput message.
|
8836
8134
|
* @param message Plain object to verify
|
8837
8135
|
* @returns `null` if valid, otherwise the reason why it is not
|
8838
8136
|
*/
|
8839
8137
|
public static verify(message: { [k: string]: any }): (string|null);
|
8840
8138
|
|
8841
8139
|
/**
|
8842
|
-
* Creates a
|
8140
|
+
* Creates a TransactionOutput message from a plain object. Also converts values to their respective internal types.
|
8843
8141
|
* @param object Plain object
|
8844
|
-
* @returns
|
8142
|
+
* @returns TransactionOutput
|
8845
8143
|
*/
|
8846
|
-
public static fromObject(object: { [k: string]: any }): TW.BitcoinV2.Proto.
|
8144
|
+
public static fromObject(object: { [k: string]: any }): TW.BitcoinV2.Proto.Transaction.TransactionOutput;
|
8847
8145
|
|
8848
8146
|
/**
|
8849
|
-
* Creates a plain object from a
|
8850
|
-
* @param message
|
8147
|
+
* Creates a plain object from a TransactionOutput message. Also converts values to other types if specified.
|
8148
|
+
* @param message TransactionOutput
|
8851
8149
|
* @param [options] Conversion options
|
8852
8150
|
* @returns Plain object
|
8853
8151
|
*/
|
8854
|
-
public static toObject(message: TW.BitcoinV2.Proto.
|
8152
|
+
public static toObject(message: TW.BitcoinV2.Proto.Transaction.TransactionOutput, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
8855
8153
|
|
8856
8154
|
/**
|
8857
|
-
* Converts this
|
8155
|
+
* Converts this TransactionOutput to JSON.
|
8858
8156
|
* @returns JSON object
|
8859
8157
|
*/
|
8860
8158
|
public toJSON(): { [k: string]: any };
|
@@ -8865,1105 +8163,492 @@ export namespace TW {
|
|
8865
8163
|
interface ITransactionPlan {
|
8866
8164
|
|
8867
8165
|
/** TransactionPlan error */
|
8868
|
-
error?: (TW.
|
8166
|
+
error?: (TW.Common.Proto.SigningError|null);
|
8869
8167
|
|
8870
|
-
/**
|
8168
|
+
/** Error description. */
|
8871
8169
|
errorMessage?: (string|null);
|
8872
8170
|
|
8873
|
-
/** TransactionPlan
|
8874
|
-
|
8875
|
-
}
|
8876
|
-
|
8877
|
-
/** Represents a TransactionPlan. */
|
8878
|
-
class TransactionPlan implements ITransactionPlan {
|
8879
|
-
|
8880
|
-
/**
|
8881
|
-
* Constructs a new TransactionPlan.
|
8882
|
-
* @param [properties] Properties to set
|
8883
|
-
*/
|
8884
|
-
constructor(properties?: TW.BitcoinV2.Proto.ITransactionPlan);
|
8885
|
-
|
8886
|
-
/** TransactionPlan error. */
|
8887
|
-
public error: TW.BitcoinV2.Proto.Error;
|
8888
|
-
|
8889
|
-
/** TransactionPlan errorMessage. */
|
8890
|
-
public errorMessage: string;
|
8891
|
-
|
8892
|
-
/** TransactionPlan brc20. */
|
8893
|
-
public brc20?: (TW.BitcoinV2.Proto.TransactionPlan.IBrc20Plan|null);
|
8171
|
+
/** TransactionPlan inputs */
|
8172
|
+
inputs?: (TW.BitcoinV2.Proto.IInput[]|null);
|
8894
8173
|
|
8895
|
-
/** TransactionPlan
|
8896
|
-
|
8174
|
+
/** TransactionPlan outputs */
|
8175
|
+
outputs?: (TW.BitcoinV2.Proto.IOutput[]|null);
|
8897
8176
|
|
8898
|
-
/**
|
8899
|
-
|
8900
|
-
* @param [properties] Properties to set
|
8901
|
-
* @returns TransactionPlan instance
|
8902
|
-
*/
|
8903
|
-
public static create(properties?: TW.BitcoinV2.Proto.ITransactionPlan): TW.BitcoinV2.Proto.TransactionPlan;
|
8904
|
-
|
8905
|
-
/**
|
8906
|
-
* Encodes the specified TransactionPlan message. Does not implicitly {@link TW.BitcoinV2.Proto.TransactionPlan.verify|verify} messages.
|
8907
|
-
* @param message TransactionPlan message or plain object to encode
|
8908
|
-
* @param [writer] Writer to encode to
|
8909
|
-
* @returns Writer
|
8910
|
-
*/
|
8911
|
-
public static encode(message: TW.BitcoinV2.Proto.ITransactionPlan, writer?: $protobuf.Writer): $protobuf.Writer;
|
8912
|
-
|
8913
|
-
/**
|
8914
|
-
* Decodes a TransactionPlan message from the specified reader or buffer.
|
8915
|
-
* @param reader Reader or buffer to decode from
|
8916
|
-
* @param [length] Message length if known beforehand
|
8917
|
-
* @returns TransactionPlan
|
8918
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
8919
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
8920
|
-
*/
|
8921
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.BitcoinV2.Proto.TransactionPlan;
|
8922
|
-
|
8923
|
-
/**
|
8924
|
-
* Verifies a TransactionPlan message.
|
8925
|
-
* @param message Plain object to verify
|
8926
|
-
* @returns `null` if valid, otherwise the reason why it is not
|
8927
|
-
*/
|
8928
|
-
public static verify(message: { [k: string]: any }): (string|null);
|
8929
|
-
|
8930
|
-
/**
|
8931
|
-
* Creates a TransactionPlan message from a plain object. Also converts values to their respective internal types.
|
8932
|
-
* @param object Plain object
|
8933
|
-
* @returns TransactionPlan
|
8934
|
-
*/
|
8935
|
-
public static fromObject(object: { [k: string]: any }): TW.BitcoinV2.Proto.TransactionPlan;
|
8936
|
-
|
8937
|
-
/**
|
8938
|
-
* Creates a plain object from a TransactionPlan message. Also converts values to other types if specified.
|
8939
|
-
* @param message TransactionPlan
|
8940
|
-
* @param [options] Conversion options
|
8941
|
-
* @returns Plain object
|
8942
|
-
*/
|
8943
|
-
public static toObject(message: TW.BitcoinV2.Proto.TransactionPlan, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
8944
|
-
|
8945
|
-
/**
|
8946
|
-
* Converts this TransactionPlan to JSON.
|
8947
|
-
* @returns JSON object
|
8948
|
-
*/
|
8949
|
-
public toJSON(): { [k: string]: any };
|
8950
|
-
}
|
8951
|
-
|
8952
|
-
namespace TransactionPlan {
|
8953
|
-
|
8954
|
-
/** Properties of a Brc20Plan. */
|
8955
|
-
interface IBrc20Plan {
|
8956
|
-
|
8957
|
-
/** Brc20Plan commit */
|
8958
|
-
commit?: (TW.BitcoinV2.Proto.ISigningInput|null);
|
8959
|
-
|
8960
|
-
/** Brc20Plan reveal */
|
8961
|
-
reveal?: (TW.BitcoinV2.Proto.ISigningInput|null);
|
8962
|
-
}
|
8963
|
-
|
8964
|
-
/** Represents a Brc20Plan. */
|
8965
|
-
class Brc20Plan implements IBrc20Plan {
|
8966
|
-
|
8967
|
-
/**
|
8968
|
-
* Constructs a new Brc20Plan.
|
8969
|
-
* @param [properties] Properties to set
|
8970
|
-
*/
|
8971
|
-
constructor(properties?: TW.BitcoinV2.Proto.TransactionPlan.IBrc20Plan);
|
8972
|
-
|
8973
|
-
/** Brc20Plan commit. */
|
8974
|
-
public commit?: (TW.BitcoinV2.Proto.ISigningInput|null);
|
8975
|
-
|
8976
|
-
/** Brc20Plan reveal. */
|
8977
|
-
public reveal?: (TW.BitcoinV2.Proto.ISigningInput|null);
|
8978
|
-
|
8979
|
-
/**
|
8980
|
-
* Creates a new Brc20Plan instance using the specified properties.
|
8981
|
-
* @param [properties] Properties to set
|
8982
|
-
* @returns Brc20Plan instance
|
8983
|
-
*/
|
8984
|
-
public static create(properties?: TW.BitcoinV2.Proto.TransactionPlan.IBrc20Plan): TW.BitcoinV2.Proto.TransactionPlan.Brc20Plan;
|
8985
|
-
|
8986
|
-
/**
|
8987
|
-
* Encodes the specified Brc20Plan message. Does not implicitly {@link TW.BitcoinV2.Proto.TransactionPlan.Brc20Plan.verify|verify} messages.
|
8988
|
-
* @param message Brc20Plan message or plain object to encode
|
8989
|
-
* @param [writer] Writer to encode to
|
8990
|
-
* @returns Writer
|
8991
|
-
*/
|
8992
|
-
public static encode(message: TW.BitcoinV2.Proto.TransactionPlan.IBrc20Plan, writer?: $protobuf.Writer): $protobuf.Writer;
|
8993
|
-
|
8994
|
-
/**
|
8995
|
-
* Decodes a Brc20Plan message from the specified reader or buffer.
|
8996
|
-
* @param reader Reader or buffer to decode from
|
8997
|
-
* @param [length] Message length if known beforehand
|
8998
|
-
* @returns Brc20Plan
|
8999
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
9000
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
9001
|
-
*/
|
9002
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.BitcoinV2.Proto.TransactionPlan.Brc20Plan;
|
9003
|
-
|
9004
|
-
/**
|
9005
|
-
* Verifies a Brc20Plan message.
|
9006
|
-
* @param message Plain object to verify
|
9007
|
-
* @returns `null` if valid, otherwise the reason why it is not
|
9008
|
-
*/
|
9009
|
-
public static verify(message: { [k: string]: any }): (string|null);
|
9010
|
-
|
9011
|
-
/**
|
9012
|
-
* Creates a Brc20Plan message from a plain object. Also converts values to their respective internal types.
|
9013
|
-
* @param object Plain object
|
9014
|
-
* @returns Brc20Plan
|
9015
|
-
*/
|
9016
|
-
public static fromObject(object: { [k: string]: any }): TW.BitcoinV2.Proto.TransactionPlan.Brc20Plan;
|
9017
|
-
|
9018
|
-
/**
|
9019
|
-
* Creates a plain object from a Brc20Plan message. Also converts values to other types if specified.
|
9020
|
-
* @param message Brc20Plan
|
9021
|
-
* @param [options] Conversion options
|
9022
|
-
* @returns Plain object
|
9023
|
-
*/
|
9024
|
-
public static toObject(message: TW.BitcoinV2.Proto.TransactionPlan.Brc20Plan, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
9025
|
-
|
9026
|
-
/**
|
9027
|
-
* Converts this Brc20Plan to JSON.
|
9028
|
-
* @returns JSON object
|
9029
|
-
*/
|
9030
|
-
public toJSON(): { [k: string]: any };
|
9031
|
-
}
|
9032
|
-
}
|
9033
|
-
}
|
9034
|
-
}
|
9035
|
-
|
9036
|
-
/** Namespace Utxo. */
|
9037
|
-
namespace Utxo {
|
9038
|
-
|
9039
|
-
/** Namespace Proto. */
|
9040
|
-
namespace Proto {
|
9041
|
-
|
9042
|
-
/** Error enum. */
|
9043
|
-
enum Error {
|
9044
|
-
OK = 0,
|
9045
|
-
Error_invalid_leaf_hash = 1,
|
9046
|
-
Error_invalid_sighash_type = 2,
|
9047
|
-
Error_invalid_lock_time = 3,
|
9048
|
-
Error_invalid_txid = 4,
|
9049
|
-
Error_sighash_failed = 5,
|
9050
|
-
Error_missing_sighash_method = 6,
|
9051
|
-
Error_failed_encoding = 7,
|
9052
|
-
Error_insufficient_inputs = 8,
|
9053
|
-
Error_no_outputs_specified = 9,
|
9054
|
-
Error_missing_change_script_pubkey = 10
|
9055
|
-
}
|
9056
|
-
|
9057
|
-
/** Properties of a SigningInput. */
|
9058
|
-
interface ISigningInput {
|
9059
|
-
|
9060
|
-
/** SigningInput version */
|
9061
|
-
version?: (number|null);
|
9062
|
-
|
9063
|
-
/** SigningInput lockTime */
|
9064
|
-
lockTime?: (TW.Utxo.Proto.ILockTime|null);
|
9065
|
-
|
9066
|
-
/** SigningInput inputs */
|
9067
|
-
inputs?: (TW.Utxo.Proto.ITxIn[]|null);
|
9068
|
-
|
9069
|
-
/** SigningInput outputs */
|
9070
|
-
outputs?: (TW.Utxo.Proto.ITxOut[]|null);
|
9071
|
-
|
9072
|
-
/** SigningInput inputSelector */
|
9073
|
-
inputSelector?: (TW.Utxo.Proto.InputSelector|null);
|
9074
|
-
|
9075
|
-
/** SigningInput weightBase */
|
9076
|
-
weightBase?: (Long|null);
|
9077
|
-
|
9078
|
-
/** SigningInput changeScriptPubkey */
|
9079
|
-
changeScriptPubkey?: (Uint8Array|null);
|
9080
|
-
|
9081
|
-
/** SigningInput disableChangeOutput */
|
9082
|
-
disableChangeOutput?: (boolean|null);
|
9083
|
-
}
|
9084
|
-
|
9085
|
-
/** Represents a SigningInput. */
|
9086
|
-
class SigningInput implements ISigningInput {
|
9087
|
-
|
9088
|
-
/**
|
9089
|
-
* Constructs a new SigningInput.
|
9090
|
-
* @param [properties] Properties to set
|
9091
|
-
*/
|
9092
|
-
constructor(properties?: TW.Utxo.Proto.ISigningInput);
|
9093
|
-
|
9094
|
-
/** SigningInput version. */
|
9095
|
-
public version: number;
|
9096
|
-
|
9097
|
-
/** SigningInput lockTime. */
|
9098
|
-
public lockTime?: (TW.Utxo.Proto.ILockTime|null);
|
9099
|
-
|
9100
|
-
/** SigningInput inputs. */
|
9101
|
-
public inputs: TW.Utxo.Proto.ITxIn[];
|
9102
|
-
|
9103
|
-
/** SigningInput outputs. */
|
9104
|
-
public outputs: TW.Utxo.Proto.ITxOut[];
|
9105
|
-
|
9106
|
-
/** SigningInput inputSelector. */
|
9107
|
-
public inputSelector: TW.Utxo.Proto.InputSelector;
|
9108
|
-
|
9109
|
-
/** SigningInput weightBase. */
|
9110
|
-
public weightBase: Long;
|
9111
|
-
|
9112
|
-
/** SigningInput changeScriptPubkey. */
|
9113
|
-
public changeScriptPubkey: Uint8Array;
|
9114
|
-
|
9115
|
-
/** SigningInput disableChangeOutput. */
|
9116
|
-
public disableChangeOutput: boolean;
|
9117
|
-
|
9118
|
-
/**
|
9119
|
-
* Creates a new SigningInput instance using the specified properties.
|
9120
|
-
* @param [properties] Properties to set
|
9121
|
-
* @returns SigningInput instance
|
9122
|
-
*/
|
9123
|
-
public static create(properties?: TW.Utxo.Proto.ISigningInput): TW.Utxo.Proto.SigningInput;
|
9124
|
-
|
9125
|
-
/**
|
9126
|
-
* Encodes the specified SigningInput message. Does not implicitly {@link TW.Utxo.Proto.SigningInput.verify|verify} messages.
|
9127
|
-
* @param message SigningInput message or plain object to encode
|
9128
|
-
* @param [writer] Writer to encode to
|
9129
|
-
* @returns Writer
|
9130
|
-
*/
|
9131
|
-
public static encode(message: TW.Utxo.Proto.ISigningInput, writer?: $protobuf.Writer): $protobuf.Writer;
|
9132
|
-
|
9133
|
-
/**
|
9134
|
-
* Decodes a SigningInput message from the specified reader or buffer.
|
9135
|
-
* @param reader Reader or buffer to decode from
|
9136
|
-
* @param [length] Message length if known beforehand
|
9137
|
-
* @returns SigningInput
|
9138
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
9139
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
9140
|
-
*/
|
9141
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Utxo.Proto.SigningInput;
|
9142
|
-
|
9143
|
-
/**
|
9144
|
-
* Verifies a SigningInput message.
|
9145
|
-
* @param message Plain object to verify
|
9146
|
-
* @returns `null` if valid, otherwise the reason why it is not
|
9147
|
-
*/
|
9148
|
-
public static verify(message: { [k: string]: any }): (string|null);
|
9149
|
-
|
9150
|
-
/**
|
9151
|
-
* Creates a SigningInput message from a plain object. Also converts values to their respective internal types.
|
9152
|
-
* @param object Plain object
|
9153
|
-
* @returns SigningInput
|
9154
|
-
*/
|
9155
|
-
public static fromObject(object: { [k: string]: any }): TW.Utxo.Proto.SigningInput;
|
9156
|
-
|
9157
|
-
/**
|
9158
|
-
* Creates a plain object from a SigningInput message. Also converts values to other types if specified.
|
9159
|
-
* @param message SigningInput
|
9160
|
-
* @param [options] Conversion options
|
9161
|
-
* @returns Plain object
|
9162
|
-
*/
|
9163
|
-
public static toObject(message: TW.Utxo.Proto.SigningInput, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
9164
|
-
|
9165
|
-
/**
|
9166
|
-
* Converts this SigningInput to JSON.
|
9167
|
-
* @returns JSON object
|
9168
|
-
*/
|
9169
|
-
public toJSON(): { [k: string]: any };
|
9170
|
-
}
|
9171
|
-
|
9172
|
-
/** InputSelector enum. */
|
9173
|
-
enum InputSelector {
|
9174
|
-
SelectAscending = 0,
|
9175
|
-
SelectInOrder = 1,
|
9176
|
-
SelectDescending = 2,
|
9177
|
-
UseAll = 10
|
9178
|
-
}
|
9179
|
-
|
9180
|
-
/** Properties of a LockTime. */
|
9181
|
-
interface ILockTime {
|
9182
|
-
|
9183
|
-
/** LockTime blocks */
|
9184
|
-
blocks?: (number|null);
|
9185
|
-
|
9186
|
-
/** LockTime seconds */
|
9187
|
-
seconds?: (number|null);
|
9188
|
-
}
|
9189
|
-
|
9190
|
-
/** Represents a LockTime. */
|
9191
|
-
class LockTime implements ILockTime {
|
9192
|
-
|
9193
|
-
/**
|
9194
|
-
* Constructs a new LockTime.
|
9195
|
-
* @param [properties] Properties to set
|
9196
|
-
*/
|
9197
|
-
constructor(properties?: TW.Utxo.Proto.ILockTime);
|
9198
|
-
|
9199
|
-
/** LockTime blocks. */
|
9200
|
-
public blocks?: (number|null);
|
9201
|
-
|
9202
|
-
/** LockTime seconds. */
|
9203
|
-
public seconds?: (number|null);
|
9204
|
-
|
9205
|
-
/** LockTime variant. */
|
9206
|
-
public variant?: ("blocks"|"seconds");
|
9207
|
-
|
9208
|
-
/**
|
9209
|
-
* Creates a new LockTime instance using the specified properties.
|
9210
|
-
* @param [properties] Properties to set
|
9211
|
-
* @returns LockTime instance
|
9212
|
-
*/
|
9213
|
-
public static create(properties?: TW.Utxo.Proto.ILockTime): TW.Utxo.Proto.LockTime;
|
9214
|
-
|
9215
|
-
/**
|
9216
|
-
* Encodes the specified LockTime message. Does not implicitly {@link TW.Utxo.Proto.LockTime.verify|verify} messages.
|
9217
|
-
* @param message LockTime message or plain object to encode
|
9218
|
-
* @param [writer] Writer to encode to
|
9219
|
-
* @returns Writer
|
9220
|
-
*/
|
9221
|
-
public static encode(message: TW.Utxo.Proto.ILockTime, writer?: $protobuf.Writer): $protobuf.Writer;
|
9222
|
-
|
9223
|
-
/**
|
9224
|
-
* Decodes a LockTime message from the specified reader or buffer.
|
9225
|
-
* @param reader Reader or buffer to decode from
|
9226
|
-
* @param [length] Message length if known beforehand
|
9227
|
-
* @returns LockTime
|
9228
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
9229
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
9230
|
-
*/
|
9231
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Utxo.Proto.LockTime;
|
9232
|
-
|
9233
|
-
/**
|
9234
|
-
* Verifies a LockTime message.
|
9235
|
-
* @param message Plain object to verify
|
9236
|
-
* @returns `null` if valid, otherwise the reason why it is not
|
9237
|
-
*/
|
9238
|
-
public static verify(message: { [k: string]: any }): (string|null);
|
9239
|
-
|
9240
|
-
/**
|
9241
|
-
* Creates a LockTime message from a plain object. Also converts values to their respective internal types.
|
9242
|
-
* @param object Plain object
|
9243
|
-
* @returns LockTime
|
9244
|
-
*/
|
9245
|
-
public static fromObject(object: { [k: string]: any }): TW.Utxo.Proto.LockTime;
|
9246
|
-
|
9247
|
-
/**
|
9248
|
-
* Creates a plain object from a LockTime message. Also converts values to other types if specified.
|
9249
|
-
* @param message LockTime
|
9250
|
-
* @param [options] Conversion options
|
9251
|
-
* @returns Plain object
|
9252
|
-
*/
|
9253
|
-
public static toObject(message: TW.Utxo.Proto.LockTime, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
9254
|
-
|
9255
|
-
/**
|
9256
|
-
* Converts this LockTime to JSON.
|
9257
|
-
* @returns JSON object
|
9258
|
-
*/
|
9259
|
-
public toJSON(): { [k: string]: any };
|
9260
|
-
}
|
9261
|
-
|
9262
|
-
/** Properties of a TxIn. */
|
9263
|
-
interface ITxIn {
|
9264
|
-
|
9265
|
-
/** TxIn txid */
|
9266
|
-
txid?: (Uint8Array|null);
|
9267
|
-
|
9268
|
-
/** TxIn vout */
|
9269
|
-
vout?: (number|null);
|
9270
|
-
|
9271
|
-
/** TxIn value */
|
9272
|
-
value?: (Long|null);
|
9273
|
-
|
9274
|
-
/** TxIn sequence */
|
9275
|
-
sequence?: (number|null);
|
9276
|
-
|
9277
|
-
/** TxIn scriptPubkey */
|
9278
|
-
scriptPubkey?: (Uint8Array|null);
|
9279
|
-
|
9280
|
-
/** TxIn sighashType */
|
9281
|
-
sighashType?: (TW.Utxo.Proto.SighashType|null);
|
9282
|
-
|
9283
|
-
/** TxIn signingMethod */
|
9284
|
-
signingMethod?: (TW.Utxo.Proto.SigningMethod|null);
|
9285
|
-
|
9286
|
-
/** TxIn weightEstimate */
|
9287
|
-
weightEstimate?: (Long|null);
|
9288
|
-
|
9289
|
-
/** TxIn leafHash */
|
9290
|
-
leafHash?: (Uint8Array|null);
|
9291
|
-
}
|
9292
|
-
|
9293
|
-
/** Represents a TxIn. */
|
9294
|
-
class TxIn implements ITxIn {
|
9295
|
-
|
9296
|
-
/**
|
9297
|
-
* Constructs a new TxIn.
|
9298
|
-
* @param [properties] Properties to set
|
9299
|
-
*/
|
9300
|
-
constructor(properties?: TW.Utxo.Proto.ITxIn);
|
9301
|
-
|
9302
|
-
/** TxIn txid. */
|
9303
|
-
public txid: Uint8Array;
|
9304
|
-
|
9305
|
-
/** TxIn vout. */
|
9306
|
-
public vout: number;
|
9307
|
-
|
9308
|
-
/** TxIn value. */
|
9309
|
-
public value: Long;
|
9310
|
-
|
9311
|
-
/** TxIn sequence. */
|
9312
|
-
public sequence: number;
|
9313
|
-
|
9314
|
-
/** TxIn scriptPubkey. */
|
9315
|
-
public scriptPubkey: Uint8Array;
|
9316
|
-
|
9317
|
-
/** TxIn sighashType. */
|
9318
|
-
public sighashType: TW.Utxo.Proto.SighashType;
|
9319
|
-
|
9320
|
-
/** TxIn signingMethod. */
|
9321
|
-
public signingMethod: TW.Utxo.Proto.SigningMethod;
|
9322
|
-
|
9323
|
-
/** TxIn weightEstimate. */
|
9324
|
-
public weightEstimate: Long;
|
9325
|
-
|
9326
|
-
/** TxIn leafHash. */
|
9327
|
-
public leafHash: Uint8Array;
|
9328
|
-
|
9329
|
-
/**
|
9330
|
-
* Creates a new TxIn instance using the specified properties.
|
9331
|
-
* @param [properties] Properties to set
|
9332
|
-
* @returns TxIn instance
|
9333
|
-
*/
|
9334
|
-
public static create(properties?: TW.Utxo.Proto.ITxIn): TW.Utxo.Proto.TxIn;
|
9335
|
-
|
9336
|
-
/**
|
9337
|
-
* Encodes the specified TxIn message. Does not implicitly {@link TW.Utxo.Proto.TxIn.verify|verify} messages.
|
9338
|
-
* @param message TxIn message or plain object to encode
|
9339
|
-
* @param [writer] Writer to encode to
|
9340
|
-
* @returns Writer
|
9341
|
-
*/
|
9342
|
-
public static encode(message: TW.Utxo.Proto.ITxIn, writer?: $protobuf.Writer): $protobuf.Writer;
|
9343
|
-
|
9344
|
-
/**
|
9345
|
-
* Decodes a TxIn message from the specified reader or buffer.
|
9346
|
-
* @param reader Reader or buffer to decode from
|
9347
|
-
* @param [length] Message length if known beforehand
|
9348
|
-
* @returns TxIn
|
9349
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
9350
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
9351
|
-
*/
|
9352
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Utxo.Proto.TxIn;
|
9353
|
-
|
9354
|
-
/**
|
9355
|
-
* Verifies a TxIn message.
|
9356
|
-
* @param message Plain object to verify
|
9357
|
-
* @returns `null` if valid, otherwise the reason why it is not
|
9358
|
-
*/
|
9359
|
-
public static verify(message: { [k: string]: any }): (string|null);
|
9360
|
-
|
9361
|
-
/**
|
9362
|
-
* Creates a TxIn message from a plain object. Also converts values to their respective internal types.
|
9363
|
-
* @param object Plain object
|
9364
|
-
* @returns TxIn
|
9365
|
-
*/
|
9366
|
-
public static fromObject(object: { [k: string]: any }): TW.Utxo.Proto.TxIn;
|
9367
|
-
|
9368
|
-
/**
|
9369
|
-
* Creates a plain object from a TxIn message. Also converts values to other types if specified.
|
9370
|
-
* @param message TxIn
|
9371
|
-
* @param [options] Conversion options
|
9372
|
-
* @returns Plain object
|
9373
|
-
*/
|
9374
|
-
public static toObject(message: TW.Utxo.Proto.TxIn, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
9375
|
-
|
9376
|
-
/**
|
9377
|
-
* Converts this TxIn to JSON.
|
9378
|
-
* @returns JSON object
|
9379
|
-
*/
|
9380
|
-
public toJSON(): { [k: string]: any };
|
9381
|
-
}
|
9382
|
-
|
9383
|
-
/** SigningMethod enum. */
|
9384
|
-
enum SigningMethod {
|
9385
|
-
Legacy = 0,
|
9386
|
-
Segwit = 1,
|
9387
|
-
TaprootAll = 2,
|
9388
|
-
TaprootOnePrevout = 3
|
9389
|
-
}
|
9390
|
-
|
9391
|
-
/** SighashType enum. */
|
9392
|
-
enum SighashType {
|
9393
|
-
UseDefault = 0,
|
9394
|
-
All = 1,
|
9395
|
-
None = 2,
|
9396
|
-
Single = 3,
|
9397
|
-
AllPlusAnyoneCanPay = 129,
|
9398
|
-
NonePlusAnyoneCanPay = 130,
|
9399
|
-
SinglePlusAnyoneCanPay = 131
|
9400
|
-
}
|
9401
|
-
|
9402
|
-
/** Properties of a TxOut. */
|
9403
|
-
interface ITxOut {
|
9404
|
-
|
9405
|
-
/** TxOut value */
|
9406
|
-
value?: (Long|null);
|
9407
|
-
|
9408
|
-
/** TxOut scriptPubkey */
|
9409
|
-
scriptPubkey?: (Uint8Array|null);
|
9410
|
-
}
|
9411
|
-
|
9412
|
-
/** Represents a TxOut. */
|
9413
|
-
class TxOut implements ITxOut {
|
9414
|
-
|
9415
|
-
/**
|
9416
|
-
* Constructs a new TxOut.
|
9417
|
-
* @param [properties] Properties to set
|
9418
|
-
*/
|
9419
|
-
constructor(properties?: TW.Utxo.Proto.ITxOut);
|
9420
|
-
|
9421
|
-
/** TxOut value. */
|
9422
|
-
public value: Long;
|
9423
|
-
|
9424
|
-
/** TxOut scriptPubkey. */
|
9425
|
-
public scriptPubkey: Uint8Array;
|
9426
|
-
|
9427
|
-
/**
|
9428
|
-
* Creates a new TxOut instance using the specified properties.
|
9429
|
-
* @param [properties] Properties to set
|
9430
|
-
* @returns TxOut instance
|
9431
|
-
*/
|
9432
|
-
public static create(properties?: TW.Utxo.Proto.ITxOut): TW.Utxo.Proto.TxOut;
|
9433
|
-
|
9434
|
-
/**
|
9435
|
-
* Encodes the specified TxOut message. Does not implicitly {@link TW.Utxo.Proto.TxOut.verify|verify} messages.
|
9436
|
-
* @param message TxOut message or plain object to encode
|
9437
|
-
* @param [writer] Writer to encode to
|
9438
|
-
* @returns Writer
|
9439
|
-
*/
|
9440
|
-
public static encode(message: TW.Utxo.Proto.ITxOut, writer?: $protobuf.Writer): $protobuf.Writer;
|
9441
|
-
|
9442
|
-
/**
|
9443
|
-
* Decodes a TxOut message from the specified reader or buffer.
|
9444
|
-
* @param reader Reader or buffer to decode from
|
9445
|
-
* @param [length] Message length if known beforehand
|
9446
|
-
* @returns TxOut
|
9447
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
9448
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
9449
|
-
*/
|
9450
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Utxo.Proto.TxOut;
|
9451
|
-
|
9452
|
-
/**
|
9453
|
-
* Verifies a TxOut message.
|
9454
|
-
* @param message Plain object to verify
|
9455
|
-
* @returns `null` if valid, otherwise the reason why it is not
|
9456
|
-
*/
|
9457
|
-
public static verify(message: { [k: string]: any }): (string|null);
|
9458
|
-
|
9459
|
-
/**
|
9460
|
-
* Creates a TxOut message from a plain object. Also converts values to their respective internal types.
|
9461
|
-
* @param object Plain object
|
9462
|
-
* @returns TxOut
|
9463
|
-
*/
|
9464
|
-
public static fromObject(object: { [k: string]: any }): TW.Utxo.Proto.TxOut;
|
9465
|
-
|
9466
|
-
/**
|
9467
|
-
* Creates a plain object from a TxOut message. Also converts values to other types if specified.
|
9468
|
-
* @param message TxOut
|
9469
|
-
* @param [options] Conversion options
|
9470
|
-
* @returns Plain object
|
9471
|
-
*/
|
9472
|
-
public static toObject(message: TW.Utxo.Proto.TxOut, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
9473
|
-
|
9474
|
-
/**
|
9475
|
-
* Converts this TxOut to JSON.
|
9476
|
-
* @returns JSON object
|
9477
|
-
*/
|
9478
|
-
public toJSON(): { [k: string]: any };
|
9479
|
-
}
|
9480
|
-
|
9481
|
-
/** Properties of a PreSigningOutput. */
|
9482
|
-
interface IPreSigningOutput {
|
9483
|
-
|
9484
|
-
/** PreSigningOutput error */
|
9485
|
-
error?: (TW.Utxo.Proto.Error|null);
|
9486
|
-
|
9487
|
-
/** PreSigningOutput txid */
|
9488
|
-
txid?: (Uint8Array|null);
|
9489
|
-
|
9490
|
-
/** Sighashes to be signed; ECDSA for legacy and Segwit, Schnorr for Taproot. */
|
9491
|
-
sighashes?: (TW.Utxo.Proto.ISighash[]|null);
|
9492
|
-
|
9493
|
-
/** PreSigningOutput inputs */
|
9494
|
-
inputs?: (TW.Utxo.Proto.ITxIn[]|null);
|
9495
|
-
|
9496
|
-
/** PreSigningOutput outputs */
|
9497
|
-
outputs?: (TW.Utxo.Proto.ITxOut[]|null);
|
9498
|
-
|
9499
|
-
/** PreSigningOutput weightEstimate */
|
9500
|
-
weightEstimate?: (Long|null);
|
9501
|
-
|
9502
|
-
/** PreSigningOutput feeEstimate */
|
9503
|
-
feeEstimate?: (Long|null);
|
9504
|
-
}
|
9505
|
-
|
9506
|
-
/** Represents a PreSigningOutput. */
|
9507
|
-
class PreSigningOutput implements IPreSigningOutput {
|
9508
|
-
|
9509
|
-
/**
|
9510
|
-
* Constructs a new PreSigningOutput.
|
9511
|
-
* @param [properties] Properties to set
|
9512
|
-
*/
|
9513
|
-
constructor(properties?: TW.Utxo.Proto.IPreSigningOutput);
|
9514
|
-
|
9515
|
-
/** PreSigningOutput error. */
|
9516
|
-
public error: TW.Utxo.Proto.Error;
|
9517
|
-
|
9518
|
-
/** PreSigningOutput txid. */
|
9519
|
-
public txid: Uint8Array;
|
9520
|
-
|
9521
|
-
/** Sighashes to be signed; ECDSA for legacy and Segwit, Schnorr for Taproot. */
|
9522
|
-
public sighashes: TW.Utxo.Proto.ISighash[];
|
9523
|
-
|
9524
|
-
/** PreSigningOutput inputs. */
|
9525
|
-
public inputs: TW.Utxo.Proto.ITxIn[];
|
9526
|
-
|
9527
|
-
/** PreSigningOutput outputs. */
|
9528
|
-
public outputs: TW.Utxo.Proto.ITxOut[];
|
9529
|
-
|
9530
|
-
/** PreSigningOutput weightEstimate. */
|
9531
|
-
public weightEstimate: Long;
|
9532
|
-
|
9533
|
-
/** PreSigningOutput feeEstimate. */
|
9534
|
-
public feeEstimate: Long;
|
9535
|
-
|
9536
|
-
/**
|
9537
|
-
* Creates a new PreSigningOutput instance using the specified properties.
|
9538
|
-
* @param [properties] Properties to set
|
9539
|
-
* @returns PreSigningOutput instance
|
9540
|
-
*/
|
9541
|
-
public static create(properties?: TW.Utxo.Proto.IPreSigningOutput): TW.Utxo.Proto.PreSigningOutput;
|
9542
|
-
|
9543
|
-
/**
|
9544
|
-
* Encodes the specified PreSigningOutput message. Does not implicitly {@link TW.Utxo.Proto.PreSigningOutput.verify|verify} messages.
|
9545
|
-
* @param message PreSigningOutput message or plain object to encode
|
9546
|
-
* @param [writer] Writer to encode to
|
9547
|
-
* @returns Writer
|
9548
|
-
*/
|
9549
|
-
public static encode(message: TW.Utxo.Proto.IPreSigningOutput, writer?: $protobuf.Writer): $protobuf.Writer;
|
9550
|
-
|
9551
|
-
/**
|
9552
|
-
* Decodes a PreSigningOutput message from the specified reader or buffer.
|
9553
|
-
* @param reader Reader or buffer to decode from
|
9554
|
-
* @param [length] Message length if known beforehand
|
9555
|
-
* @returns PreSigningOutput
|
9556
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
9557
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
9558
|
-
*/
|
9559
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Utxo.Proto.PreSigningOutput;
|
9560
|
-
|
9561
|
-
/**
|
9562
|
-
* Verifies a PreSigningOutput message.
|
9563
|
-
* @param message Plain object to verify
|
9564
|
-
* @returns `null` if valid, otherwise the reason why it is not
|
9565
|
-
*/
|
9566
|
-
public static verify(message: { [k: string]: any }): (string|null);
|
9567
|
-
|
9568
|
-
/**
|
9569
|
-
* Creates a PreSigningOutput message from a plain object. Also converts values to their respective internal types.
|
9570
|
-
* @param object Plain object
|
9571
|
-
* @returns PreSigningOutput
|
9572
|
-
*/
|
9573
|
-
public static fromObject(object: { [k: string]: any }): TW.Utxo.Proto.PreSigningOutput;
|
9574
|
-
|
9575
|
-
/**
|
9576
|
-
* Creates a plain object from a PreSigningOutput message. Also converts values to other types if specified.
|
9577
|
-
* @param message PreSigningOutput
|
9578
|
-
* @param [options] Conversion options
|
9579
|
-
* @returns Plain object
|
9580
|
-
*/
|
9581
|
-
public static toObject(message: TW.Utxo.Proto.PreSigningOutput, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
9582
|
-
|
9583
|
-
/**
|
9584
|
-
* Converts this PreSigningOutput to JSON.
|
9585
|
-
* @returns JSON object
|
9586
|
-
*/
|
9587
|
-
public toJSON(): { [k: string]: any };
|
9588
|
-
}
|
8177
|
+
/** TransactionPlan availableAmount */
|
8178
|
+
availableAmount?: (Long|null);
|
9589
8179
|
|
9590
|
-
|
9591
|
-
|
8180
|
+
/** TransactionPlan sendAmount */
|
8181
|
+
sendAmount?: (Long|null);
|
9592
8182
|
|
9593
|
-
/**
|
9594
|
-
|
8183
|
+
/** TransactionPlan vsizeEstimate */
|
8184
|
+
vsizeEstimate?: (Long|null);
|
9595
8185
|
|
9596
|
-
/**
|
9597
|
-
|
8186
|
+
/** TransactionPlan feeEstimate */
|
8187
|
+
feeEstimate?: (Long|null);
|
9598
8188
|
|
9599
|
-
/**
|
9600
|
-
|
8189
|
+
/** TransactionPlan change */
|
8190
|
+
change?: (Long|null);
|
9601
8191
|
}
|
9602
8192
|
|
9603
|
-
/** Represents a
|
9604
|
-
class
|
8193
|
+
/** Represents a TransactionPlan. */
|
8194
|
+
class TransactionPlan implements ITransactionPlan {
|
9605
8195
|
|
9606
8196
|
/**
|
9607
|
-
* Constructs a new
|
8197
|
+
* Constructs a new TransactionPlan.
|
9608
8198
|
* @param [properties] Properties to set
|
9609
8199
|
*/
|
9610
|
-
constructor(properties?: TW.
|
8200
|
+
constructor(properties?: TW.BitcoinV2.Proto.ITransactionPlan);
|
8201
|
+
|
8202
|
+
/** TransactionPlan error. */
|
8203
|
+
public error: TW.Common.Proto.SigningError;
|
8204
|
+
|
8205
|
+
/** Error description. */
|
8206
|
+
public errorMessage: string;
|
8207
|
+
|
8208
|
+
/** TransactionPlan inputs. */
|
8209
|
+
public inputs: TW.BitcoinV2.Proto.IInput[];
|
9611
8210
|
|
9612
|
-
/**
|
9613
|
-
public
|
8211
|
+
/** TransactionPlan outputs. */
|
8212
|
+
public outputs: TW.BitcoinV2.Proto.IOutput[];
|
8213
|
+
|
8214
|
+
/** TransactionPlan availableAmount. */
|
8215
|
+
public availableAmount: Long;
|
8216
|
+
|
8217
|
+
/** TransactionPlan sendAmount. */
|
8218
|
+
public sendAmount: Long;
|
9614
8219
|
|
9615
|
-
/**
|
9616
|
-
public
|
8220
|
+
/** TransactionPlan vsizeEstimate. */
|
8221
|
+
public vsizeEstimate: Long;
|
8222
|
+
|
8223
|
+
/** TransactionPlan feeEstimate. */
|
8224
|
+
public feeEstimate: Long;
|
9617
8225
|
|
9618
|
-
/**
|
9619
|
-
public
|
8226
|
+
/** TransactionPlan change. */
|
8227
|
+
public change: Long;
|
9620
8228
|
|
9621
8229
|
/**
|
9622
|
-
* Creates a new
|
8230
|
+
* Creates a new TransactionPlan instance using the specified properties.
|
9623
8231
|
* @param [properties] Properties to set
|
9624
|
-
* @returns
|
8232
|
+
* @returns TransactionPlan instance
|
9625
8233
|
*/
|
9626
|
-
public static create(properties?: TW.
|
8234
|
+
public static create(properties?: TW.BitcoinV2.Proto.ITransactionPlan): TW.BitcoinV2.Proto.TransactionPlan;
|
9627
8235
|
|
9628
8236
|
/**
|
9629
|
-
* Encodes the specified
|
9630
|
-
* @param message
|
8237
|
+
* Encodes the specified TransactionPlan message. Does not implicitly {@link TW.BitcoinV2.Proto.TransactionPlan.verify|verify} messages.
|
8238
|
+
* @param message TransactionPlan message or plain object to encode
|
9631
8239
|
* @param [writer] Writer to encode to
|
9632
8240
|
* @returns Writer
|
9633
8241
|
*/
|
9634
|
-
public static encode(message: TW.
|
8242
|
+
public static encode(message: TW.BitcoinV2.Proto.ITransactionPlan, writer?: $protobuf.Writer): $protobuf.Writer;
|
9635
8243
|
|
9636
8244
|
/**
|
9637
|
-
* Decodes a
|
8245
|
+
* Decodes a TransactionPlan message from the specified reader or buffer.
|
9638
8246
|
* @param reader Reader or buffer to decode from
|
9639
8247
|
* @param [length] Message length if known beforehand
|
9640
|
-
* @returns
|
8248
|
+
* @returns TransactionPlan
|
9641
8249
|
* @throws {Error} If the payload is not a reader or valid buffer
|
9642
8250
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
9643
8251
|
*/
|
9644
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.
|
8252
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.BitcoinV2.Proto.TransactionPlan;
|
9645
8253
|
|
9646
8254
|
/**
|
9647
|
-
* Verifies a
|
8255
|
+
* Verifies a TransactionPlan message.
|
9648
8256
|
* @param message Plain object to verify
|
9649
8257
|
* @returns `null` if valid, otherwise the reason why it is not
|
9650
8258
|
*/
|
9651
8259
|
public static verify(message: { [k: string]: any }): (string|null);
|
9652
8260
|
|
9653
8261
|
/**
|
9654
|
-
* Creates a
|
8262
|
+
* Creates a TransactionPlan message from a plain object. Also converts values to their respective internal types.
|
9655
8263
|
* @param object Plain object
|
9656
|
-
* @returns
|
8264
|
+
* @returns TransactionPlan
|
9657
8265
|
*/
|
9658
|
-
public static fromObject(object: { [k: string]: any }): TW.
|
8266
|
+
public static fromObject(object: { [k: string]: any }): TW.BitcoinV2.Proto.TransactionPlan;
|
9659
8267
|
|
9660
8268
|
/**
|
9661
|
-
* Creates a plain object from a
|
9662
|
-
* @param message
|
8269
|
+
* Creates a plain object from a TransactionPlan message. Also converts values to other types if specified.
|
8270
|
+
* @param message TransactionPlan
|
9663
8271
|
* @param [options] Conversion options
|
9664
8272
|
* @returns Plain object
|
9665
8273
|
*/
|
9666
|
-
public static toObject(message: TW.
|
8274
|
+
public static toObject(message: TW.BitcoinV2.Proto.TransactionPlan, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
9667
8275
|
|
9668
8276
|
/**
|
9669
|
-
* Converts this
|
8277
|
+
* Converts this TransactionPlan to JSON.
|
9670
8278
|
* @returns JSON object
|
9671
8279
|
*/
|
9672
8280
|
public toJSON(): { [k: string]: any };
|
9673
8281
|
}
|
9674
8282
|
|
9675
|
-
/** Properties of a
|
9676
|
-
interface
|
9677
|
-
|
9678
|
-
/** PreSerialization version */
|
9679
|
-
version?: (number|null);
|
9680
|
-
|
9681
|
-
/** PreSerialization lockTime */
|
9682
|
-
lockTime?: (TW.Utxo.Proto.ILockTime|null);
|
8283
|
+
/** Properties of a PreSigningOutput. */
|
8284
|
+
interface IPreSigningOutput {
|
9683
8285
|
|
9684
|
-
/**
|
9685
|
-
|
8286
|
+
/** PreSigningOutput error */
|
8287
|
+
error?: (TW.Common.Proto.SigningError|null);
|
9686
8288
|
|
9687
|
-
/**
|
9688
|
-
|
8289
|
+
/** PreSigningOutput errorMessage */
|
8290
|
+
errorMessage?: (string|null);
|
9689
8291
|
|
9690
|
-
/**
|
9691
|
-
|
8292
|
+
/** The sighashes to be signed; ECDSA for legacy and Segwit, Schnorr for Taproot. */
|
8293
|
+
sighashes?: (TW.BitcoinV2.Proto.PreSigningOutput.ISighash[]|null);
|
9692
8294
|
}
|
9693
8295
|
|
9694
|
-
/** Represents a
|
9695
|
-
class
|
8296
|
+
/** Represents a PreSigningOutput. */
|
8297
|
+
class PreSigningOutput implements IPreSigningOutput {
|
9696
8298
|
|
9697
8299
|
/**
|
9698
|
-
* Constructs a new
|
8300
|
+
* Constructs a new PreSigningOutput.
|
9699
8301
|
* @param [properties] Properties to set
|
9700
8302
|
*/
|
9701
|
-
constructor(properties?: TW.
|
9702
|
-
|
9703
|
-
/** PreSerialization version. */
|
9704
|
-
public version: number;
|
9705
|
-
|
9706
|
-
/** PreSerialization lockTime. */
|
9707
|
-
public lockTime?: (TW.Utxo.Proto.ILockTime|null);
|
8303
|
+
constructor(properties?: TW.BitcoinV2.Proto.IPreSigningOutput);
|
9708
8304
|
|
9709
|
-
/**
|
9710
|
-
public
|
8305
|
+
/** PreSigningOutput error. */
|
8306
|
+
public error: TW.Common.Proto.SigningError;
|
9711
8307
|
|
9712
|
-
/**
|
9713
|
-
public
|
8308
|
+
/** PreSigningOutput errorMessage. */
|
8309
|
+
public errorMessage: string;
|
9714
8310
|
|
9715
|
-
/**
|
9716
|
-
public
|
8311
|
+
/** The sighashes to be signed; ECDSA for legacy and Segwit, Schnorr for Taproot. */
|
8312
|
+
public sighashes: TW.BitcoinV2.Proto.PreSigningOutput.ISighash[];
|
9717
8313
|
|
9718
8314
|
/**
|
9719
|
-
* Creates a new
|
8315
|
+
* Creates a new PreSigningOutput instance using the specified properties.
|
9720
8316
|
* @param [properties] Properties to set
|
9721
|
-
* @returns
|
8317
|
+
* @returns PreSigningOutput instance
|
9722
8318
|
*/
|
9723
|
-
public static create(properties?: TW.
|
8319
|
+
public static create(properties?: TW.BitcoinV2.Proto.IPreSigningOutput): TW.BitcoinV2.Proto.PreSigningOutput;
|
9724
8320
|
|
9725
8321
|
/**
|
9726
|
-
* Encodes the specified
|
9727
|
-
* @param message
|
8322
|
+
* Encodes the specified PreSigningOutput message. Does not implicitly {@link TW.BitcoinV2.Proto.PreSigningOutput.verify|verify} messages.
|
8323
|
+
* @param message PreSigningOutput message or plain object to encode
|
9728
8324
|
* @param [writer] Writer to encode to
|
9729
8325
|
* @returns Writer
|
9730
8326
|
*/
|
9731
|
-
public static encode(message: TW.
|
8327
|
+
public static encode(message: TW.BitcoinV2.Proto.IPreSigningOutput, writer?: $protobuf.Writer): $protobuf.Writer;
|
9732
8328
|
|
9733
8329
|
/**
|
9734
|
-
* Decodes a
|
8330
|
+
* Decodes a PreSigningOutput message from the specified reader or buffer.
|
9735
8331
|
* @param reader Reader or buffer to decode from
|
9736
8332
|
* @param [length] Message length if known beforehand
|
9737
|
-
* @returns
|
8333
|
+
* @returns PreSigningOutput
|
9738
8334
|
* @throws {Error} If the payload is not a reader or valid buffer
|
9739
8335
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
9740
8336
|
*/
|
9741
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.
|
8337
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.BitcoinV2.Proto.PreSigningOutput;
|
9742
8338
|
|
9743
8339
|
/**
|
9744
|
-
* Verifies a
|
8340
|
+
* Verifies a PreSigningOutput message.
|
9745
8341
|
* @param message Plain object to verify
|
9746
8342
|
* @returns `null` if valid, otherwise the reason why it is not
|
9747
8343
|
*/
|
9748
8344
|
public static verify(message: { [k: string]: any }): (string|null);
|
9749
8345
|
|
9750
8346
|
/**
|
9751
|
-
* Creates a
|
8347
|
+
* Creates a PreSigningOutput message from a plain object. Also converts values to their respective internal types.
|
9752
8348
|
* @param object Plain object
|
9753
|
-
* @returns
|
8349
|
+
* @returns PreSigningOutput
|
9754
8350
|
*/
|
9755
|
-
public static fromObject(object: { [k: string]: any }): TW.
|
8351
|
+
public static fromObject(object: { [k: string]: any }): TW.BitcoinV2.Proto.PreSigningOutput;
|
9756
8352
|
|
9757
8353
|
/**
|
9758
|
-
* Creates a plain object from a
|
9759
|
-
* @param message
|
8354
|
+
* Creates a plain object from a PreSigningOutput message. Also converts values to other types if specified.
|
8355
|
+
* @param message PreSigningOutput
|
9760
8356
|
* @param [options] Conversion options
|
9761
8357
|
* @returns Plain object
|
9762
8358
|
*/
|
9763
|
-
public static toObject(message: TW.
|
8359
|
+
public static toObject(message: TW.BitcoinV2.Proto.PreSigningOutput, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
9764
8360
|
|
9765
8361
|
/**
|
9766
|
-
* Converts this
|
8362
|
+
* Converts this PreSigningOutput to JSON.
|
9767
8363
|
* @returns JSON object
|
9768
8364
|
*/
|
9769
8365
|
public toJSON(): { [k: string]: any };
|
9770
8366
|
}
|
9771
8367
|
|
9772
|
-
|
9773
|
-
interface ITxInClaim {
|
8368
|
+
namespace PreSigningOutput {
|
9774
8369
|
|
9775
|
-
/**
|
9776
|
-
|
8370
|
+
/** SigningMethod enum. */
|
8371
|
+
enum SigningMethod {
|
8372
|
+
Legacy = 0,
|
8373
|
+
Segwit = 1,
|
8374
|
+
Taproot = 2
|
8375
|
+
}
|
9777
8376
|
|
9778
|
-
/**
|
9779
|
-
|
8377
|
+
/** Properties of a Sighash. */
|
8378
|
+
interface ISighash {
|
9780
8379
|
|
9781
|
-
|
9782
|
-
|
8380
|
+
/** Sighash publicKey */
|
8381
|
+
publicKey?: (Uint8Array|null);
|
9783
8382
|
|
9784
|
-
|
9785
|
-
|
8383
|
+
/** Sighash sighash */
|
8384
|
+
sighash?: (Uint8Array|null);
|
9786
8385
|
|
9787
|
-
|
9788
|
-
|
8386
|
+
/** Sighash signingMethod */
|
8387
|
+
signingMethod?: (TW.BitcoinV2.Proto.PreSigningOutput.SigningMethod|null);
|
9789
8388
|
|
9790
|
-
|
9791
|
-
|
9792
|
-
|
8389
|
+
/** Sighash tweak */
|
8390
|
+
tweak?: (TW.BitcoinV2.Proto.PreSigningOutput.ITaprootTweak|null);
|
8391
|
+
}
|
9793
8392
|
|
9794
|
-
|
9795
|
-
|
8393
|
+
/** Represents a Sighash. */
|
8394
|
+
class Sighash implements ISighash {
|
9796
8395
|
|
9797
|
-
|
9798
|
-
|
9799
|
-
|
9800
|
-
|
9801
|
-
|
8396
|
+
/**
|
8397
|
+
* Constructs a new Sighash.
|
8398
|
+
* @param [properties] Properties to set
|
8399
|
+
*/
|
8400
|
+
constructor(properties?: TW.BitcoinV2.Proto.PreSigningOutput.ISighash);
|
9802
8401
|
|
9803
|
-
|
9804
|
-
|
8402
|
+
/** Sighash publicKey. */
|
8403
|
+
public publicKey: Uint8Array;
|
9805
8404
|
|
9806
|
-
|
9807
|
-
|
8405
|
+
/** Sighash sighash. */
|
8406
|
+
public sighash: Uint8Array;
|
9808
8407
|
|
9809
|
-
|
9810
|
-
|
8408
|
+
/** Sighash signingMethod. */
|
8409
|
+
public signingMethod: TW.BitcoinV2.Proto.PreSigningOutput.SigningMethod;
|
9811
8410
|
|
9812
|
-
|
9813
|
-
|
8411
|
+
/** Sighash tweak. */
|
8412
|
+
public tweak?: (TW.BitcoinV2.Proto.PreSigningOutput.ITaprootTweak|null);
|
9814
8413
|
|
9815
|
-
|
9816
|
-
|
8414
|
+
/**
|
8415
|
+
* Creates a new Sighash instance using the specified properties.
|
8416
|
+
* @param [properties] Properties to set
|
8417
|
+
* @returns Sighash instance
|
8418
|
+
*/
|
8419
|
+
public static create(properties?: TW.BitcoinV2.Proto.PreSigningOutput.ISighash): TW.BitcoinV2.Proto.PreSigningOutput.Sighash;
|
9817
8420
|
|
9818
|
-
|
9819
|
-
|
8421
|
+
/**
|
8422
|
+
* Encodes the specified Sighash message. Does not implicitly {@link TW.BitcoinV2.Proto.PreSigningOutput.Sighash.verify|verify} messages.
|
8423
|
+
* @param message Sighash message or plain object to encode
|
8424
|
+
* @param [writer] Writer to encode to
|
8425
|
+
* @returns Writer
|
8426
|
+
*/
|
8427
|
+
public static encode(message: TW.BitcoinV2.Proto.PreSigningOutput.ISighash, writer?: $protobuf.Writer): $protobuf.Writer;
|
9820
8428
|
|
9821
|
-
|
9822
|
-
|
9823
|
-
|
9824
|
-
|
9825
|
-
|
9826
|
-
|
8429
|
+
/**
|
8430
|
+
* Decodes a Sighash message from the specified reader or buffer.
|
8431
|
+
* @param reader Reader or buffer to decode from
|
8432
|
+
* @param [length] Message length if known beforehand
|
8433
|
+
* @returns Sighash
|
8434
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
8435
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
8436
|
+
*/
|
8437
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.BitcoinV2.Proto.PreSigningOutput.Sighash;
|
9827
8438
|
|
9828
|
-
|
9829
|
-
|
9830
|
-
|
9831
|
-
|
9832
|
-
|
9833
|
-
|
9834
|
-
public static encode(message: TW.Utxo.Proto.ITxInClaim, writer?: $protobuf.Writer): $protobuf.Writer;
|
8439
|
+
/**
|
8440
|
+
* Verifies a Sighash message.
|
8441
|
+
* @param message Plain object to verify
|
8442
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
8443
|
+
*/
|
8444
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
9835
8445
|
|
9836
|
-
|
9837
|
-
|
9838
|
-
|
9839
|
-
|
9840
|
-
|
9841
|
-
|
9842
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
9843
|
-
*/
|
9844
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Utxo.Proto.TxInClaim;
|
8446
|
+
/**
|
8447
|
+
* Creates a Sighash message from a plain object. Also converts values to their respective internal types.
|
8448
|
+
* @param object Plain object
|
8449
|
+
* @returns Sighash
|
8450
|
+
*/
|
8451
|
+
public static fromObject(object: { [k: string]: any }): TW.BitcoinV2.Proto.PreSigningOutput.Sighash;
|
9845
8452
|
|
9846
|
-
|
9847
|
-
|
9848
|
-
|
9849
|
-
|
9850
|
-
|
9851
|
-
|
8453
|
+
/**
|
8454
|
+
* Creates a plain object from a Sighash message. Also converts values to other types if specified.
|
8455
|
+
* @param message Sighash
|
8456
|
+
* @param [options] Conversion options
|
8457
|
+
* @returns Plain object
|
8458
|
+
*/
|
8459
|
+
public static toObject(message: TW.BitcoinV2.Proto.PreSigningOutput.Sighash, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
9852
8460
|
|
9853
|
-
|
9854
|
-
|
9855
|
-
|
9856
|
-
|
9857
|
-
|
9858
|
-
|
8461
|
+
/**
|
8462
|
+
* Converts this Sighash to JSON.
|
8463
|
+
* @returns JSON object
|
8464
|
+
*/
|
8465
|
+
public toJSON(): { [k: string]: any };
|
8466
|
+
}
|
9859
8467
|
|
9860
|
-
/**
|
9861
|
-
|
9862
|
-
* @param message TxInClaim
|
9863
|
-
* @param [options] Conversion options
|
9864
|
-
* @returns Plain object
|
9865
|
-
*/
|
9866
|
-
public static toObject(message: TW.Utxo.Proto.TxInClaim, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
8468
|
+
/** Properties of a TaprootTweak. */
|
8469
|
+
interface ITaprootTweak {
|
9867
8470
|
|
9868
|
-
|
9869
|
-
|
9870
|
-
|
9871
|
-
|
9872
|
-
|
8471
|
+
/** TaprootTweak merkleRoot */
|
8472
|
+
merkleRoot?: (Uint8Array|null);
|
8473
|
+
}
|
8474
|
+
|
8475
|
+
/** Represents a TaprootTweak. */
|
8476
|
+
class TaprootTweak implements ITaprootTweak {
|
8477
|
+
|
8478
|
+
/**
|
8479
|
+
* Constructs a new TaprootTweak.
|
8480
|
+
* @param [properties] Properties to set
|
8481
|
+
*/
|
8482
|
+
constructor(properties?: TW.BitcoinV2.Proto.PreSigningOutput.ITaprootTweak);
|
8483
|
+
|
8484
|
+
/** TaprootTweak merkleRoot. */
|
8485
|
+
public merkleRoot: Uint8Array;
|
8486
|
+
|
8487
|
+
/**
|
8488
|
+
* Creates a new TaprootTweak instance using the specified properties.
|
8489
|
+
* @param [properties] Properties to set
|
8490
|
+
* @returns TaprootTweak instance
|
8491
|
+
*/
|
8492
|
+
public static create(properties?: TW.BitcoinV2.Proto.PreSigningOutput.ITaprootTweak): TW.BitcoinV2.Proto.PreSigningOutput.TaprootTweak;
|
8493
|
+
|
8494
|
+
/**
|
8495
|
+
* Encodes the specified TaprootTweak message. Does not implicitly {@link TW.BitcoinV2.Proto.PreSigningOutput.TaprootTweak.verify|verify} messages.
|
8496
|
+
* @param message TaprootTweak message or plain object to encode
|
8497
|
+
* @param [writer] Writer to encode to
|
8498
|
+
* @returns Writer
|
8499
|
+
*/
|
8500
|
+
public static encode(message: TW.BitcoinV2.Proto.PreSigningOutput.ITaprootTweak, writer?: $protobuf.Writer): $protobuf.Writer;
|
8501
|
+
|
8502
|
+
/**
|
8503
|
+
* Decodes a TaprootTweak message from the specified reader or buffer.
|
8504
|
+
* @param reader Reader or buffer to decode from
|
8505
|
+
* @param [length] Message length if known beforehand
|
8506
|
+
* @returns TaprootTweak
|
8507
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
8508
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
8509
|
+
*/
|
8510
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.BitcoinV2.Proto.PreSigningOutput.TaprootTweak;
|
8511
|
+
|
8512
|
+
/**
|
8513
|
+
* Verifies a TaprootTweak message.
|
8514
|
+
* @param message Plain object to verify
|
8515
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
8516
|
+
*/
|
8517
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
8518
|
+
|
8519
|
+
/**
|
8520
|
+
* Creates a TaprootTweak message from a plain object. Also converts values to their respective internal types.
|
8521
|
+
* @param object Plain object
|
8522
|
+
* @returns TaprootTweak
|
8523
|
+
*/
|
8524
|
+
public static fromObject(object: { [k: string]: any }): TW.BitcoinV2.Proto.PreSigningOutput.TaprootTweak;
|
8525
|
+
|
8526
|
+
/**
|
8527
|
+
* Creates a plain object from a TaprootTweak message. Also converts values to other types if specified.
|
8528
|
+
* @param message TaprootTweak
|
8529
|
+
* @param [options] Conversion options
|
8530
|
+
* @returns Plain object
|
8531
|
+
*/
|
8532
|
+
public static toObject(message: TW.BitcoinV2.Proto.PreSigningOutput.TaprootTweak, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
8533
|
+
|
8534
|
+
/**
|
8535
|
+
* Converts this TaprootTweak to JSON.
|
8536
|
+
* @returns JSON object
|
8537
|
+
*/
|
8538
|
+
public toJSON(): { [k: string]: any };
|
8539
|
+
}
|
9873
8540
|
}
|
9874
8541
|
|
9875
|
-
/** Properties of a
|
9876
|
-
interface
|
8542
|
+
/** Properties of a SigningOutput. */
|
8543
|
+
interface ISigningOutput {
|
8544
|
+
|
8545
|
+
/** SigningOutput error */
|
8546
|
+
error?: (TW.Common.Proto.SigningError|null);
|
8547
|
+
|
8548
|
+
/** SigningOutput errorMessage */
|
8549
|
+
errorMessage?: (string|null);
|
9877
8550
|
|
9878
|
-
/**
|
9879
|
-
|
8551
|
+
/** SigningOutput transaction */
|
8552
|
+
transaction?: (TW.BitcoinV2.Proto.ITransaction|null);
|
9880
8553
|
|
9881
|
-
/**
|
8554
|
+
/** SigningOutput encoded */
|
9882
8555
|
encoded?: (Uint8Array|null);
|
9883
8556
|
|
9884
|
-
/**
|
8557
|
+
/** SigningOutput txid */
|
9885
8558
|
txid?: (Uint8Array|null);
|
9886
8559
|
|
9887
|
-
/**
|
8560
|
+
/** SigningOutput vsize */
|
8561
|
+
vsize?: (Long|null);
|
8562
|
+
|
8563
|
+
/** SigningOutput weight */
|
9888
8564
|
weight?: (Long|null);
|
9889
8565
|
|
9890
|
-
/**
|
8566
|
+
/** SigningOutput fee */
|
9891
8567
|
fee?: (Long|null);
|
9892
8568
|
}
|
9893
8569
|
|
9894
|
-
/** Represents a
|
9895
|
-
class
|
8570
|
+
/** Represents a SigningOutput. */
|
8571
|
+
class SigningOutput implements ISigningOutput {
|
9896
8572
|
|
9897
8573
|
/**
|
9898
|
-
* Constructs a new
|
8574
|
+
* Constructs a new SigningOutput.
|
9899
8575
|
* @param [properties] Properties to set
|
9900
8576
|
*/
|
9901
|
-
constructor(properties?: TW.
|
8577
|
+
constructor(properties?: TW.BitcoinV2.Proto.ISigningOutput);
|
8578
|
+
|
8579
|
+
/** SigningOutput error. */
|
8580
|
+
public error: TW.Common.Proto.SigningError;
|
8581
|
+
|
8582
|
+
/** SigningOutput errorMessage. */
|
8583
|
+
public errorMessage: string;
|
9902
8584
|
|
9903
|
-
/**
|
9904
|
-
public
|
8585
|
+
/** SigningOutput transaction. */
|
8586
|
+
public transaction?: (TW.BitcoinV2.Proto.ITransaction|null);
|
9905
8587
|
|
9906
|
-
/**
|
8588
|
+
/** SigningOutput encoded. */
|
9907
8589
|
public encoded: Uint8Array;
|
9908
8590
|
|
9909
|
-
/**
|
8591
|
+
/** SigningOutput txid. */
|
9910
8592
|
public txid: Uint8Array;
|
9911
8593
|
|
9912
|
-
/**
|
8594
|
+
/** SigningOutput vsize. */
|
8595
|
+
public vsize: Long;
|
8596
|
+
|
8597
|
+
/** SigningOutput weight. */
|
9913
8598
|
public weight: Long;
|
9914
8599
|
|
9915
|
-
/**
|
8600
|
+
/** SigningOutput fee. */
|
9916
8601
|
public fee: Long;
|
9917
8602
|
|
9918
8603
|
/**
|
9919
|
-
* Creates a new
|
8604
|
+
* Creates a new SigningOutput instance using the specified properties.
|
9920
8605
|
* @param [properties] Properties to set
|
9921
|
-
* @returns
|
8606
|
+
* @returns SigningOutput instance
|
9922
8607
|
*/
|
9923
|
-
public static create(properties?: TW.
|
8608
|
+
public static create(properties?: TW.BitcoinV2.Proto.ISigningOutput): TW.BitcoinV2.Proto.SigningOutput;
|
9924
8609
|
|
9925
8610
|
/**
|
9926
|
-
* Encodes the specified
|
9927
|
-
* @param message
|
8611
|
+
* Encodes the specified SigningOutput message. Does not implicitly {@link TW.BitcoinV2.Proto.SigningOutput.verify|verify} messages.
|
8612
|
+
* @param message SigningOutput message or plain object to encode
|
9928
8613
|
* @param [writer] Writer to encode to
|
9929
8614
|
* @returns Writer
|
9930
8615
|
*/
|
9931
|
-
public static encode(message: TW.
|
8616
|
+
public static encode(message: TW.BitcoinV2.Proto.ISigningOutput, writer?: $protobuf.Writer): $protobuf.Writer;
|
9932
8617
|
|
9933
8618
|
/**
|
9934
|
-
* Decodes a
|
8619
|
+
* Decodes a SigningOutput message from the specified reader or buffer.
|
9935
8620
|
* @param reader Reader or buffer to decode from
|
9936
8621
|
* @param [length] Message length if known beforehand
|
9937
|
-
* @returns
|
8622
|
+
* @returns SigningOutput
|
9938
8623
|
* @throws {Error} If the payload is not a reader or valid buffer
|
9939
8624
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
9940
8625
|
*/
|
9941
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.
|
8626
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.BitcoinV2.Proto.SigningOutput;
|
9942
8627
|
|
9943
8628
|
/**
|
9944
|
-
* Verifies a
|
8629
|
+
* Verifies a SigningOutput message.
|
9945
8630
|
* @param message Plain object to verify
|
9946
8631
|
* @returns `null` if valid, otherwise the reason why it is not
|
9947
8632
|
*/
|
9948
8633
|
public static verify(message: { [k: string]: any }): (string|null);
|
9949
8634
|
|
9950
8635
|
/**
|
9951
|
-
* Creates a
|
8636
|
+
* Creates a SigningOutput message from a plain object. Also converts values to their respective internal types.
|
9952
8637
|
* @param object Plain object
|
9953
|
-
* @returns
|
8638
|
+
* @returns SigningOutput
|
9954
8639
|
*/
|
9955
|
-
public static fromObject(object: { [k: string]: any }): TW.
|
8640
|
+
public static fromObject(object: { [k: string]: any }): TW.BitcoinV2.Proto.SigningOutput;
|
9956
8641
|
|
9957
8642
|
/**
|
9958
|
-
* Creates a plain object from a
|
9959
|
-
* @param message
|
8643
|
+
* Creates a plain object from a SigningOutput message. Also converts values to other types if specified.
|
8644
|
+
* @param message SigningOutput
|
9960
8645
|
* @param [options] Conversion options
|
9961
8646
|
* @returns Plain object
|
9962
8647
|
*/
|
9963
|
-
public static toObject(message: TW.
|
8648
|
+
public static toObject(message: TW.BitcoinV2.Proto.SigningOutput, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
9964
8649
|
|
9965
8650
|
/**
|
9966
|
-
* Converts this
|
8651
|
+
* Converts this SigningOutput to JSON.
|
9967
8652
|
* @returns JSON object
|
9968
8653
|
*/
|
9969
8654
|
public toJSON(): { [k: string]: any };
|