@trustwallet/wallet-core 4.0.0 → 4.0.2
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 +342 -0
- package/dist/generated/core_proto.js +1008 -0
- package/dist/lib/wallet-core.js +18 -18
- package/dist/lib/wallet-core.wasm +0 -0
- package/dist/src/wallet-core.d.ts +2 -0
- package/package.json +1 -1
@@ -22629,6 +22629,348 @@ export namespace TW {
|
|
22629
22629
|
}
|
22630
22630
|
}
|
22631
22631
|
|
22632
|
+
/** Namespace InternetComputer. */
|
22633
|
+
namespace InternetComputer {
|
22634
|
+
|
22635
|
+
/** Namespace Proto. */
|
22636
|
+
namespace Proto {
|
22637
|
+
|
22638
|
+
/** Properties of a Transaction. */
|
22639
|
+
interface ITransaction {
|
22640
|
+
|
22641
|
+
/** Transaction transfer */
|
22642
|
+
transfer?: (TW.InternetComputer.Proto.Transaction.ITransfer|null);
|
22643
|
+
}
|
22644
|
+
|
22645
|
+
/** Represents a Transaction. */
|
22646
|
+
class Transaction implements ITransaction {
|
22647
|
+
|
22648
|
+
/**
|
22649
|
+
* Constructs a new Transaction.
|
22650
|
+
* @param [properties] Properties to set
|
22651
|
+
*/
|
22652
|
+
constructor(properties?: TW.InternetComputer.Proto.ITransaction);
|
22653
|
+
|
22654
|
+
/** Transaction transfer. */
|
22655
|
+
public transfer?: (TW.InternetComputer.Proto.Transaction.ITransfer|null);
|
22656
|
+
|
22657
|
+
/** Transaction transactionOneof. */
|
22658
|
+
public transactionOneof?: "transfer";
|
22659
|
+
|
22660
|
+
/**
|
22661
|
+
* Creates a new Transaction instance using the specified properties.
|
22662
|
+
* @param [properties] Properties to set
|
22663
|
+
* @returns Transaction instance
|
22664
|
+
*/
|
22665
|
+
public static create(properties?: TW.InternetComputer.Proto.ITransaction): TW.InternetComputer.Proto.Transaction;
|
22666
|
+
|
22667
|
+
/**
|
22668
|
+
* Encodes the specified Transaction message. Does not implicitly {@link TW.InternetComputer.Proto.Transaction.verify|verify} messages.
|
22669
|
+
* @param message Transaction message or plain object to encode
|
22670
|
+
* @param [writer] Writer to encode to
|
22671
|
+
* @returns Writer
|
22672
|
+
*/
|
22673
|
+
public static encode(message: TW.InternetComputer.Proto.ITransaction, writer?: $protobuf.Writer): $protobuf.Writer;
|
22674
|
+
|
22675
|
+
/**
|
22676
|
+
* Decodes a Transaction message from the specified reader or buffer.
|
22677
|
+
* @param reader Reader or buffer to decode from
|
22678
|
+
* @param [length] Message length if known beforehand
|
22679
|
+
* @returns Transaction
|
22680
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
22681
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
22682
|
+
*/
|
22683
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.InternetComputer.Proto.Transaction;
|
22684
|
+
|
22685
|
+
/**
|
22686
|
+
* Verifies a Transaction message.
|
22687
|
+
* @param message Plain object to verify
|
22688
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
22689
|
+
*/
|
22690
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
22691
|
+
|
22692
|
+
/**
|
22693
|
+
* Creates a Transaction message from a plain object. Also converts values to their respective internal types.
|
22694
|
+
* @param object Plain object
|
22695
|
+
* @returns Transaction
|
22696
|
+
*/
|
22697
|
+
public static fromObject(object: { [k: string]: any }): TW.InternetComputer.Proto.Transaction;
|
22698
|
+
|
22699
|
+
/**
|
22700
|
+
* Creates a plain object from a Transaction message. Also converts values to other types if specified.
|
22701
|
+
* @param message Transaction
|
22702
|
+
* @param [options] Conversion options
|
22703
|
+
* @returns Plain object
|
22704
|
+
*/
|
22705
|
+
public static toObject(message: TW.InternetComputer.Proto.Transaction, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
22706
|
+
|
22707
|
+
/**
|
22708
|
+
* Converts this Transaction to JSON.
|
22709
|
+
* @returns JSON object
|
22710
|
+
*/
|
22711
|
+
public toJSON(): { [k: string]: any };
|
22712
|
+
}
|
22713
|
+
|
22714
|
+
namespace Transaction {
|
22715
|
+
|
22716
|
+
/** Properties of a Transfer. */
|
22717
|
+
interface ITransfer {
|
22718
|
+
|
22719
|
+
/** Transfer toAccountIdentifier */
|
22720
|
+
toAccountIdentifier?: (string|null);
|
22721
|
+
|
22722
|
+
/** Transfer amount */
|
22723
|
+
amount?: (Long|null);
|
22724
|
+
|
22725
|
+
/** Transfer memo */
|
22726
|
+
memo?: (Long|null);
|
22727
|
+
|
22728
|
+
/** Transfer currentTimestampNanos */
|
22729
|
+
currentTimestampNanos?: (Long|null);
|
22730
|
+
}
|
22731
|
+
|
22732
|
+
/** Represents a Transfer. */
|
22733
|
+
class Transfer implements ITransfer {
|
22734
|
+
|
22735
|
+
/**
|
22736
|
+
* Constructs a new Transfer.
|
22737
|
+
* @param [properties] Properties to set
|
22738
|
+
*/
|
22739
|
+
constructor(properties?: TW.InternetComputer.Proto.Transaction.ITransfer);
|
22740
|
+
|
22741
|
+
/** Transfer toAccountIdentifier. */
|
22742
|
+
public toAccountIdentifier: string;
|
22743
|
+
|
22744
|
+
/** Transfer amount. */
|
22745
|
+
public amount: Long;
|
22746
|
+
|
22747
|
+
/** Transfer memo. */
|
22748
|
+
public memo: Long;
|
22749
|
+
|
22750
|
+
/** Transfer currentTimestampNanos. */
|
22751
|
+
public currentTimestampNanos: Long;
|
22752
|
+
|
22753
|
+
/**
|
22754
|
+
* Creates a new Transfer instance using the specified properties.
|
22755
|
+
* @param [properties] Properties to set
|
22756
|
+
* @returns Transfer instance
|
22757
|
+
*/
|
22758
|
+
public static create(properties?: TW.InternetComputer.Proto.Transaction.ITransfer): TW.InternetComputer.Proto.Transaction.Transfer;
|
22759
|
+
|
22760
|
+
/**
|
22761
|
+
* Encodes the specified Transfer message. Does not implicitly {@link TW.InternetComputer.Proto.Transaction.Transfer.verify|verify} messages.
|
22762
|
+
* @param message Transfer message or plain object to encode
|
22763
|
+
* @param [writer] Writer to encode to
|
22764
|
+
* @returns Writer
|
22765
|
+
*/
|
22766
|
+
public static encode(message: TW.InternetComputer.Proto.Transaction.ITransfer, writer?: $protobuf.Writer): $protobuf.Writer;
|
22767
|
+
|
22768
|
+
/**
|
22769
|
+
* Decodes a Transfer message from the specified reader or buffer.
|
22770
|
+
* @param reader Reader or buffer to decode from
|
22771
|
+
* @param [length] Message length if known beforehand
|
22772
|
+
* @returns Transfer
|
22773
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
22774
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
22775
|
+
*/
|
22776
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.InternetComputer.Proto.Transaction.Transfer;
|
22777
|
+
|
22778
|
+
/**
|
22779
|
+
* Verifies a Transfer message.
|
22780
|
+
* @param message Plain object to verify
|
22781
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
22782
|
+
*/
|
22783
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
22784
|
+
|
22785
|
+
/**
|
22786
|
+
* Creates a Transfer message from a plain object. Also converts values to their respective internal types.
|
22787
|
+
* @param object Plain object
|
22788
|
+
* @returns Transfer
|
22789
|
+
*/
|
22790
|
+
public static fromObject(object: { [k: string]: any }): TW.InternetComputer.Proto.Transaction.Transfer;
|
22791
|
+
|
22792
|
+
/**
|
22793
|
+
* Creates a plain object from a Transfer message. Also converts values to other types if specified.
|
22794
|
+
* @param message Transfer
|
22795
|
+
* @param [options] Conversion options
|
22796
|
+
* @returns Plain object
|
22797
|
+
*/
|
22798
|
+
public static toObject(message: TW.InternetComputer.Proto.Transaction.Transfer, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
22799
|
+
|
22800
|
+
/**
|
22801
|
+
* Converts this Transfer to JSON.
|
22802
|
+
* @returns JSON object
|
22803
|
+
*/
|
22804
|
+
public toJSON(): { [k: string]: any };
|
22805
|
+
}
|
22806
|
+
}
|
22807
|
+
|
22808
|
+
/** Properties of a SigningInput. */
|
22809
|
+
interface ISigningInput {
|
22810
|
+
|
22811
|
+
/** SigningInput privateKey */
|
22812
|
+
privateKey?: (Uint8Array|null);
|
22813
|
+
|
22814
|
+
/** SigningInput transaction */
|
22815
|
+
transaction?: (TW.InternetComputer.Proto.ITransaction|null);
|
22816
|
+
}
|
22817
|
+
|
22818
|
+
/** Represents a SigningInput. */
|
22819
|
+
class SigningInput implements ISigningInput {
|
22820
|
+
|
22821
|
+
/**
|
22822
|
+
* Constructs a new SigningInput.
|
22823
|
+
* @param [properties] Properties to set
|
22824
|
+
*/
|
22825
|
+
constructor(properties?: TW.InternetComputer.Proto.ISigningInput);
|
22826
|
+
|
22827
|
+
/** SigningInput privateKey. */
|
22828
|
+
public privateKey: Uint8Array;
|
22829
|
+
|
22830
|
+
/** SigningInput transaction. */
|
22831
|
+
public transaction?: (TW.InternetComputer.Proto.ITransaction|null);
|
22832
|
+
|
22833
|
+
/**
|
22834
|
+
* Creates a new SigningInput instance using the specified properties.
|
22835
|
+
* @param [properties] Properties to set
|
22836
|
+
* @returns SigningInput instance
|
22837
|
+
*/
|
22838
|
+
public static create(properties?: TW.InternetComputer.Proto.ISigningInput): TW.InternetComputer.Proto.SigningInput;
|
22839
|
+
|
22840
|
+
/**
|
22841
|
+
* Encodes the specified SigningInput message. Does not implicitly {@link TW.InternetComputer.Proto.SigningInput.verify|verify} messages.
|
22842
|
+
* @param message SigningInput message or plain object to encode
|
22843
|
+
* @param [writer] Writer to encode to
|
22844
|
+
* @returns Writer
|
22845
|
+
*/
|
22846
|
+
public static encode(message: TW.InternetComputer.Proto.ISigningInput, writer?: $protobuf.Writer): $protobuf.Writer;
|
22847
|
+
|
22848
|
+
/**
|
22849
|
+
* Decodes a SigningInput message from the specified reader or buffer.
|
22850
|
+
* @param reader Reader or buffer to decode from
|
22851
|
+
* @param [length] Message length if known beforehand
|
22852
|
+
* @returns SigningInput
|
22853
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
22854
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
22855
|
+
*/
|
22856
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.InternetComputer.Proto.SigningInput;
|
22857
|
+
|
22858
|
+
/**
|
22859
|
+
* Verifies a SigningInput message.
|
22860
|
+
* @param message Plain object to verify
|
22861
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
22862
|
+
*/
|
22863
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
22864
|
+
|
22865
|
+
/**
|
22866
|
+
* Creates a SigningInput message from a plain object. Also converts values to their respective internal types.
|
22867
|
+
* @param object Plain object
|
22868
|
+
* @returns SigningInput
|
22869
|
+
*/
|
22870
|
+
public static fromObject(object: { [k: string]: any }): TW.InternetComputer.Proto.SigningInput;
|
22871
|
+
|
22872
|
+
/**
|
22873
|
+
* Creates a plain object from a SigningInput message. Also converts values to other types if specified.
|
22874
|
+
* @param message SigningInput
|
22875
|
+
* @param [options] Conversion options
|
22876
|
+
* @returns Plain object
|
22877
|
+
*/
|
22878
|
+
public static toObject(message: TW.InternetComputer.Proto.SigningInput, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
22879
|
+
|
22880
|
+
/**
|
22881
|
+
* Converts this SigningInput to JSON.
|
22882
|
+
* @returns JSON object
|
22883
|
+
*/
|
22884
|
+
public toJSON(): { [k: string]: any };
|
22885
|
+
}
|
22886
|
+
|
22887
|
+
/** Properties of a SigningOutput. */
|
22888
|
+
interface ISigningOutput {
|
22889
|
+
|
22890
|
+
/** SigningOutput signedTransaction */
|
22891
|
+
signedTransaction?: (Uint8Array|null);
|
22892
|
+
|
22893
|
+
/** SigningOutput error */
|
22894
|
+
error?: (TW.Common.Proto.SigningError|null);
|
22895
|
+
|
22896
|
+
/** SigningOutput errorMessage */
|
22897
|
+
errorMessage?: (string|null);
|
22898
|
+
}
|
22899
|
+
|
22900
|
+
/** Represents a SigningOutput. */
|
22901
|
+
class SigningOutput implements ISigningOutput {
|
22902
|
+
|
22903
|
+
/**
|
22904
|
+
* Constructs a new SigningOutput.
|
22905
|
+
* @param [properties] Properties to set
|
22906
|
+
*/
|
22907
|
+
constructor(properties?: TW.InternetComputer.Proto.ISigningOutput);
|
22908
|
+
|
22909
|
+
/** SigningOutput signedTransaction. */
|
22910
|
+
public signedTransaction: Uint8Array;
|
22911
|
+
|
22912
|
+
/** SigningOutput error. */
|
22913
|
+
public error: TW.Common.Proto.SigningError;
|
22914
|
+
|
22915
|
+
/** SigningOutput errorMessage. */
|
22916
|
+
public errorMessage: string;
|
22917
|
+
|
22918
|
+
/**
|
22919
|
+
* Creates a new SigningOutput instance using the specified properties.
|
22920
|
+
* @param [properties] Properties to set
|
22921
|
+
* @returns SigningOutput instance
|
22922
|
+
*/
|
22923
|
+
public static create(properties?: TW.InternetComputer.Proto.ISigningOutput): TW.InternetComputer.Proto.SigningOutput;
|
22924
|
+
|
22925
|
+
/**
|
22926
|
+
* Encodes the specified SigningOutput message. Does not implicitly {@link TW.InternetComputer.Proto.SigningOutput.verify|verify} messages.
|
22927
|
+
* @param message SigningOutput message or plain object to encode
|
22928
|
+
* @param [writer] Writer to encode to
|
22929
|
+
* @returns Writer
|
22930
|
+
*/
|
22931
|
+
public static encode(message: TW.InternetComputer.Proto.ISigningOutput, writer?: $protobuf.Writer): $protobuf.Writer;
|
22932
|
+
|
22933
|
+
/**
|
22934
|
+
* Decodes a SigningOutput message from the specified reader or buffer.
|
22935
|
+
* @param reader Reader or buffer to decode from
|
22936
|
+
* @param [length] Message length if known beforehand
|
22937
|
+
* @returns SigningOutput
|
22938
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
22939
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
22940
|
+
*/
|
22941
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.InternetComputer.Proto.SigningOutput;
|
22942
|
+
|
22943
|
+
/**
|
22944
|
+
* Verifies a SigningOutput message.
|
22945
|
+
* @param message Plain object to verify
|
22946
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
22947
|
+
*/
|
22948
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
22949
|
+
|
22950
|
+
/**
|
22951
|
+
* Creates a SigningOutput message from a plain object. Also converts values to their respective internal types.
|
22952
|
+
* @param object Plain object
|
22953
|
+
* @returns SigningOutput
|
22954
|
+
*/
|
22955
|
+
public static fromObject(object: { [k: string]: any }): TW.InternetComputer.Proto.SigningOutput;
|
22956
|
+
|
22957
|
+
/**
|
22958
|
+
* Creates a plain object from a SigningOutput message. Also converts values to other types if specified.
|
22959
|
+
* @param message SigningOutput
|
22960
|
+
* @param [options] Conversion options
|
22961
|
+
* @returns Plain object
|
22962
|
+
*/
|
22963
|
+
public static toObject(message: TW.InternetComputer.Proto.SigningOutput, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
22964
|
+
|
22965
|
+
/**
|
22966
|
+
* Converts this SigningOutput to JSON.
|
22967
|
+
* @returns JSON object
|
22968
|
+
*/
|
22969
|
+
public toJSON(): { [k: string]: any };
|
22970
|
+
}
|
22971
|
+
}
|
22972
|
+
}
|
22973
|
+
|
22632
22974
|
/** Namespace IOST. */
|
22633
22975
|
namespace IOST {
|
22634
22976
|
|