@trustwallet/wallet-core 3.1.35 → 3.1.37
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 +158 -61
- package/dist/generated/core_proto.js +483 -183
- package/dist/lib/wallet-core.js +2 -2
- package/dist/lib/wallet-core.wasm +0 -0
- package/dist/src/wallet-core.d.ts +4 -1
- package/package.json +1 -1
@@ -2391,8 +2391,11 @@ export namespace TW {
|
|
2391
2391
|
/** ContractAddressInput entryPoint */
|
2392
2392
|
entryPoint?: (string|null);
|
2393
2393
|
|
2394
|
-
/** ContractAddressInput
|
2395
|
-
|
2394
|
+
/** ContractAddressInput diamondLoupeFacet */
|
2395
|
+
diamondLoupeFacet?: (string|null);
|
2396
|
+
|
2397
|
+
/** ContractAddressInput diamondInit */
|
2398
|
+
diamondInit?: (string|null);
|
2396
2399
|
|
2397
2400
|
/** ContractAddressInput facetRegistry */
|
2398
2401
|
facetRegistry?: (string|null);
|
@@ -2428,8 +2431,11 @@ export namespace TW {
|
|
2428
2431
|
/** ContractAddressInput entryPoint. */
|
2429
2432
|
public entryPoint: string;
|
2430
2433
|
|
2431
|
-
/** ContractAddressInput
|
2432
|
-
public
|
2434
|
+
/** ContractAddressInput diamondLoupeFacet. */
|
2435
|
+
public diamondLoupeFacet: string;
|
2436
|
+
|
2437
|
+
/** ContractAddressInput diamondInit. */
|
2438
|
+
public diamondInit: string;
|
2433
2439
|
|
2434
2440
|
/** ContractAddressInput facetRegistry. */
|
2435
2441
|
public facetRegistry: string;
|
@@ -2496,42 +2502,6 @@ export namespace TW {
|
|
2496
2502
|
}
|
2497
2503
|
}
|
2498
2504
|
|
2499
|
-
/** Namespace Common. */
|
2500
|
-
namespace Common {
|
2501
|
-
|
2502
|
-
/** Namespace Proto. */
|
2503
|
-
namespace Proto {
|
2504
|
-
|
2505
|
-
/** SigningError enum. */
|
2506
|
-
enum SigningError {
|
2507
|
-
OK = 0,
|
2508
|
-
Error_general = 1,
|
2509
|
-
Error_internal = 2,
|
2510
|
-
Error_low_balance = 3,
|
2511
|
-
Error_zero_amount_requested = 4,
|
2512
|
-
Error_missing_private_key = 5,
|
2513
|
-
Error_invalid_private_key = 15,
|
2514
|
-
Error_invalid_address = 16,
|
2515
|
-
Error_invalid_utxo = 17,
|
2516
|
-
Error_invalid_utxo_amount = 18,
|
2517
|
-
Error_wrong_fee = 6,
|
2518
|
-
Error_signing = 7,
|
2519
|
-
Error_tx_too_big = 8,
|
2520
|
-
Error_missing_input_utxos = 9,
|
2521
|
-
Error_not_enough_utxos = 10,
|
2522
|
-
Error_script_redeem = 11,
|
2523
|
-
Error_script_output = 12,
|
2524
|
-
Error_script_witness_program = 13,
|
2525
|
-
Error_invalid_memo = 14,
|
2526
|
-
Error_input_parse = 19,
|
2527
|
-
Error_no_support_n2n = 20,
|
2528
|
-
Error_signatures_count = 21,
|
2529
|
-
Error_invalid_params = 22,
|
2530
|
-
Error_invalid_requested_token_amount = 23
|
2531
|
-
}
|
2532
|
-
}
|
2533
|
-
}
|
2534
|
-
|
2535
2505
|
/** Namespace Binance. */
|
2536
2506
|
namespace Binance {
|
2537
2507
|
|
@@ -5002,6 +4972,42 @@ export namespace TW {
|
|
5002
4972
|
}
|
5003
4973
|
}
|
5004
4974
|
|
4975
|
+
/** Namespace Common. */
|
4976
|
+
namespace Common {
|
4977
|
+
|
4978
|
+
/** Namespace Proto. */
|
4979
|
+
namespace Proto {
|
4980
|
+
|
4981
|
+
/** SigningError enum. */
|
4982
|
+
enum SigningError {
|
4983
|
+
OK = 0,
|
4984
|
+
Error_general = 1,
|
4985
|
+
Error_internal = 2,
|
4986
|
+
Error_low_balance = 3,
|
4987
|
+
Error_zero_amount_requested = 4,
|
4988
|
+
Error_missing_private_key = 5,
|
4989
|
+
Error_invalid_private_key = 15,
|
4990
|
+
Error_invalid_address = 16,
|
4991
|
+
Error_invalid_utxo = 17,
|
4992
|
+
Error_invalid_utxo_amount = 18,
|
4993
|
+
Error_wrong_fee = 6,
|
4994
|
+
Error_signing = 7,
|
4995
|
+
Error_tx_too_big = 8,
|
4996
|
+
Error_missing_input_utxos = 9,
|
4997
|
+
Error_not_enough_utxos = 10,
|
4998
|
+
Error_script_redeem = 11,
|
4999
|
+
Error_script_output = 12,
|
5000
|
+
Error_script_witness_program = 13,
|
5001
|
+
Error_invalid_memo = 14,
|
5002
|
+
Error_input_parse = 19,
|
5003
|
+
Error_no_support_n2n = 20,
|
5004
|
+
Error_signatures_count = 21,
|
5005
|
+
Error_invalid_params = 22,
|
5006
|
+
Error_invalid_requested_token_amount = 23
|
5007
|
+
}
|
5008
|
+
}
|
5009
|
+
}
|
5010
|
+
|
5005
5011
|
/** Namespace Bitcoin. */
|
5006
5012
|
namespace Bitcoin {
|
5007
5013
|
|
@@ -11136,17 +11142,11 @@ export namespace TW {
|
|
11136
11142
|
/** UserOperation entryPoint */
|
11137
11143
|
entryPoint?: (string|null);
|
11138
11144
|
|
11139
|
-
/** UserOperation
|
11140
|
-
|
11141
|
-
|
11142
|
-
/** UserOperation accountLogic */
|
11143
|
-
accountLogic?: (string|null);
|
11145
|
+
/** UserOperation initCode */
|
11146
|
+
initCode?: (Uint8Array|null);
|
11144
11147
|
|
11145
|
-
/** UserOperation
|
11146
|
-
|
11147
|
-
|
11148
|
-
/** UserOperation isAccountDeployed */
|
11149
|
-
isAccountDeployed?: (boolean|null);
|
11148
|
+
/** UserOperation sender */
|
11149
|
+
sender?: (string|null);
|
11150
11150
|
|
11151
11151
|
/** UserOperation preVerificationGas */
|
11152
11152
|
preVerificationGas?: (Uint8Array|null);
|
@@ -11170,17 +11170,11 @@ export namespace TW {
|
|
11170
11170
|
/** UserOperation entryPoint. */
|
11171
11171
|
public entryPoint: string;
|
11172
11172
|
|
11173
|
-
/** UserOperation
|
11174
|
-
public
|
11175
|
-
|
11176
|
-
/** UserOperation accountLogic. */
|
11177
|
-
public accountLogic: string;
|
11178
|
-
|
11179
|
-
/** UserOperation owner. */
|
11180
|
-
public owner: string;
|
11173
|
+
/** UserOperation initCode. */
|
11174
|
+
public initCode: Uint8Array;
|
11181
11175
|
|
11182
|
-
/** UserOperation
|
11183
|
-
public
|
11176
|
+
/** UserOperation sender. */
|
11177
|
+
public sender: string;
|
11184
11178
|
|
11185
11179
|
/** UserOperation preVerificationGas. */
|
11186
11180
|
public preVerificationGas: Uint8Array;
|
@@ -11401,6 +11395,9 @@ export namespace TW {
|
|
11401
11395
|
|
11402
11396
|
/** SigningOutput errorMessage */
|
11403
11397
|
errorMessage?: (string|null);
|
11398
|
+
|
11399
|
+
/** SigningOutput preHash */
|
11400
|
+
preHash?: (Uint8Array|null);
|
11404
11401
|
}
|
11405
11402
|
|
11406
11403
|
/** Represents a SigningOutput. */
|
@@ -11433,6 +11430,9 @@ export namespace TW {
|
|
11433
11430
|
/** SigningOutput errorMessage. */
|
11434
11431
|
public errorMessage: string;
|
11435
11432
|
|
11433
|
+
/** SigningOutput preHash. */
|
11434
|
+
public preHash: Uint8Array;
|
11435
|
+
|
11436
11436
|
/**
|
11437
11437
|
* Creates a new SigningOutput instance using the specified properties.
|
11438
11438
|
* @param [properties] Properties to set
|
@@ -18830,6 +18830,97 @@ export namespace TW {
|
|
18830
18830
|
public toJSON(): { [k: string]: any };
|
18831
18831
|
}
|
18832
18832
|
|
18833
|
+
/** Properties of a TokenTransfer. */
|
18834
|
+
interface ITokenTransfer {
|
18835
|
+
|
18836
|
+
/** TokenTransfer tokenAmount */
|
18837
|
+
tokenAmount?: (string|null);
|
18838
|
+
|
18839
|
+
/** TokenTransfer receiverId */
|
18840
|
+
receiverId?: (string|null);
|
18841
|
+
|
18842
|
+
/** TokenTransfer gas */
|
18843
|
+
gas?: (Long|null);
|
18844
|
+
|
18845
|
+
/** TokenTransfer deposit */
|
18846
|
+
deposit?: (Uint8Array|null);
|
18847
|
+
}
|
18848
|
+
|
18849
|
+
/** Represents a TokenTransfer. */
|
18850
|
+
class TokenTransfer implements ITokenTransfer {
|
18851
|
+
|
18852
|
+
/**
|
18853
|
+
* Constructs a new TokenTransfer.
|
18854
|
+
* @param [properties] Properties to set
|
18855
|
+
*/
|
18856
|
+
constructor(properties?: TW.NEAR.Proto.ITokenTransfer);
|
18857
|
+
|
18858
|
+
/** TokenTransfer tokenAmount. */
|
18859
|
+
public tokenAmount: string;
|
18860
|
+
|
18861
|
+
/** TokenTransfer receiverId. */
|
18862
|
+
public receiverId: string;
|
18863
|
+
|
18864
|
+
/** TokenTransfer gas. */
|
18865
|
+
public gas: Long;
|
18866
|
+
|
18867
|
+
/** TokenTransfer deposit. */
|
18868
|
+
public deposit: Uint8Array;
|
18869
|
+
|
18870
|
+
/**
|
18871
|
+
* Creates a new TokenTransfer instance using the specified properties.
|
18872
|
+
* @param [properties] Properties to set
|
18873
|
+
* @returns TokenTransfer instance
|
18874
|
+
*/
|
18875
|
+
public static create(properties?: TW.NEAR.Proto.ITokenTransfer): TW.NEAR.Proto.TokenTransfer;
|
18876
|
+
|
18877
|
+
/**
|
18878
|
+
* Encodes the specified TokenTransfer message. Does not implicitly {@link TW.NEAR.Proto.TokenTransfer.verify|verify} messages.
|
18879
|
+
* @param message TokenTransfer message or plain object to encode
|
18880
|
+
* @param [writer] Writer to encode to
|
18881
|
+
* @returns Writer
|
18882
|
+
*/
|
18883
|
+
public static encode(message: TW.NEAR.Proto.ITokenTransfer, writer?: $protobuf.Writer): $protobuf.Writer;
|
18884
|
+
|
18885
|
+
/**
|
18886
|
+
* Decodes a TokenTransfer message from the specified reader or buffer.
|
18887
|
+
* @param reader Reader or buffer to decode from
|
18888
|
+
* @param [length] Message length if known beforehand
|
18889
|
+
* @returns TokenTransfer
|
18890
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
18891
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
18892
|
+
*/
|
18893
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.NEAR.Proto.TokenTransfer;
|
18894
|
+
|
18895
|
+
/**
|
18896
|
+
* Verifies a TokenTransfer message.
|
18897
|
+
* @param message Plain object to verify
|
18898
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
18899
|
+
*/
|
18900
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
18901
|
+
|
18902
|
+
/**
|
18903
|
+
* Creates a TokenTransfer message from a plain object. Also converts values to their respective internal types.
|
18904
|
+
* @param object Plain object
|
18905
|
+
* @returns TokenTransfer
|
18906
|
+
*/
|
18907
|
+
public static fromObject(object: { [k: string]: any }): TW.NEAR.Proto.TokenTransfer;
|
18908
|
+
|
18909
|
+
/**
|
18910
|
+
* Creates a plain object from a TokenTransfer message. Also converts values to other types if specified.
|
18911
|
+
* @param message TokenTransfer
|
18912
|
+
* @param [options] Conversion options
|
18913
|
+
* @returns Plain object
|
18914
|
+
*/
|
18915
|
+
public static toObject(message: TW.NEAR.Proto.TokenTransfer, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
18916
|
+
|
18917
|
+
/**
|
18918
|
+
* Converts this TokenTransfer to JSON.
|
18919
|
+
* @returns JSON object
|
18920
|
+
*/
|
18921
|
+
public toJSON(): { [k: string]: any };
|
18922
|
+
}
|
18923
|
+
|
18833
18924
|
/** Properties of an Action. */
|
18834
18925
|
interface IAction {
|
18835
18926
|
|
@@ -18856,6 +18947,9 @@ export namespace TW {
|
|
18856
18947
|
|
18857
18948
|
/** Action deleteAccount */
|
18858
18949
|
deleteAccount?: (TW.NEAR.Proto.IDeleteAccount|null);
|
18950
|
+
|
18951
|
+
/** Action tokenTransfer */
|
18952
|
+
tokenTransfer?: (TW.NEAR.Proto.ITokenTransfer|null);
|
18859
18953
|
}
|
18860
18954
|
|
18861
18955
|
/** Represents an Action. */
|
@@ -18891,8 +18985,11 @@ export namespace TW {
|
|
18891
18985
|
/** Action deleteAccount. */
|
18892
18986
|
public deleteAccount?: (TW.NEAR.Proto.IDeleteAccount|null);
|
18893
18987
|
|
18988
|
+
/** Action tokenTransfer. */
|
18989
|
+
public tokenTransfer?: (TW.NEAR.Proto.ITokenTransfer|null);
|
18990
|
+
|
18894
18991
|
/** Action payload. */
|
18895
|
-
public payload?: ("createAccount"|"deployContract"|"functionCall"|"transfer"|"stake"|"addKey"|"deleteKey"|"deleteAccount");
|
18992
|
+
public payload?: ("createAccount"|"deployContract"|"functionCall"|"transfer"|"stake"|"addKey"|"deleteKey"|"deleteAccount"|"tokenTransfer");
|
18896
18993
|
|
18897
18994
|
/**
|
18898
18995
|
* Creates a new Action instance using the specified properties.
|