@trustwallet/wallet-core 3.1.11 → 3.1.13
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 +129 -1
- package/dist/generated/core_proto.js +410 -0
- package/dist/lib/wallet-core.js +139 -138
- package/dist/lib/wallet-core.wasm +0 -0
- package/dist/src/wallet-core.d.ts +23 -1
- package/package.json +1 -1
@@ -10402,7 +10402,123 @@ export namespace TW {
|
|
10402
10402
|
/** TransactionMode enum. */
|
10403
10403
|
enum TransactionMode {
|
10404
10404
|
Legacy = 0,
|
10405
|
-
Enveloped = 1
|
10405
|
+
Enveloped = 1,
|
10406
|
+
UserOp = 2
|
10407
|
+
}
|
10408
|
+
|
10409
|
+
/** Properties of a UserOperation. */
|
10410
|
+
interface IUserOperation {
|
10411
|
+
|
10412
|
+
/** UserOperation entryPoint */
|
10413
|
+
entryPoint?: (string|null);
|
10414
|
+
|
10415
|
+
/** UserOperation accountFactory */
|
10416
|
+
accountFactory?: (string|null);
|
10417
|
+
|
10418
|
+
/** UserOperation accountLogic */
|
10419
|
+
accountLogic?: (string|null);
|
10420
|
+
|
10421
|
+
/** UserOperation owner */
|
10422
|
+
owner?: (string|null);
|
10423
|
+
|
10424
|
+
/** UserOperation isAccountDeployed */
|
10425
|
+
isAccountDeployed?: (boolean|null);
|
10426
|
+
|
10427
|
+
/** UserOperation preVerificationGas */
|
10428
|
+
preVerificationGas?: (Uint8Array|null);
|
10429
|
+
|
10430
|
+
/** UserOperation verificationGasLimit */
|
10431
|
+
verificationGasLimit?: (Uint8Array|null);
|
10432
|
+
|
10433
|
+
/** UserOperation paymasterAndData */
|
10434
|
+
paymasterAndData?: (Uint8Array|null);
|
10435
|
+
}
|
10436
|
+
|
10437
|
+
/** Represents a UserOperation. */
|
10438
|
+
class UserOperation implements IUserOperation {
|
10439
|
+
|
10440
|
+
/**
|
10441
|
+
* Constructs a new UserOperation.
|
10442
|
+
* @param [properties] Properties to set
|
10443
|
+
*/
|
10444
|
+
constructor(properties?: TW.Ethereum.Proto.IUserOperation);
|
10445
|
+
|
10446
|
+
/** UserOperation entryPoint. */
|
10447
|
+
public entryPoint: string;
|
10448
|
+
|
10449
|
+
/** UserOperation accountFactory. */
|
10450
|
+
public accountFactory: string;
|
10451
|
+
|
10452
|
+
/** UserOperation accountLogic. */
|
10453
|
+
public accountLogic: string;
|
10454
|
+
|
10455
|
+
/** UserOperation owner. */
|
10456
|
+
public owner: string;
|
10457
|
+
|
10458
|
+
/** UserOperation isAccountDeployed. */
|
10459
|
+
public isAccountDeployed: boolean;
|
10460
|
+
|
10461
|
+
/** UserOperation preVerificationGas. */
|
10462
|
+
public preVerificationGas: Uint8Array;
|
10463
|
+
|
10464
|
+
/** UserOperation verificationGasLimit. */
|
10465
|
+
public verificationGasLimit: Uint8Array;
|
10466
|
+
|
10467
|
+
/** UserOperation paymasterAndData. */
|
10468
|
+
public paymasterAndData: Uint8Array;
|
10469
|
+
|
10470
|
+
/**
|
10471
|
+
* Creates a new UserOperation instance using the specified properties.
|
10472
|
+
* @param [properties] Properties to set
|
10473
|
+
* @returns UserOperation instance
|
10474
|
+
*/
|
10475
|
+
public static create(properties?: TW.Ethereum.Proto.IUserOperation): TW.Ethereum.Proto.UserOperation;
|
10476
|
+
|
10477
|
+
/**
|
10478
|
+
* Encodes the specified UserOperation message. Does not implicitly {@link TW.Ethereum.Proto.UserOperation.verify|verify} messages.
|
10479
|
+
* @param message UserOperation message or plain object to encode
|
10480
|
+
* @param [writer] Writer to encode to
|
10481
|
+
* @returns Writer
|
10482
|
+
*/
|
10483
|
+
public static encode(message: TW.Ethereum.Proto.IUserOperation, writer?: $protobuf.Writer): $protobuf.Writer;
|
10484
|
+
|
10485
|
+
/**
|
10486
|
+
* Decodes a UserOperation message from the specified reader or buffer.
|
10487
|
+
* @param reader Reader or buffer to decode from
|
10488
|
+
* @param [length] Message length if known beforehand
|
10489
|
+
* @returns UserOperation
|
10490
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
10491
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
10492
|
+
*/
|
10493
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Ethereum.Proto.UserOperation;
|
10494
|
+
|
10495
|
+
/**
|
10496
|
+
* Verifies a UserOperation message.
|
10497
|
+
* @param message Plain object to verify
|
10498
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
10499
|
+
*/
|
10500
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
10501
|
+
|
10502
|
+
/**
|
10503
|
+
* Creates a UserOperation message from a plain object. Also converts values to their respective internal types.
|
10504
|
+
* @param object Plain object
|
10505
|
+
* @returns UserOperation
|
10506
|
+
*/
|
10507
|
+
public static fromObject(object: { [k: string]: any }): TW.Ethereum.Proto.UserOperation;
|
10508
|
+
|
10509
|
+
/**
|
10510
|
+
* Creates a plain object from a UserOperation message. Also converts values to other types if specified.
|
10511
|
+
* @param message UserOperation
|
10512
|
+
* @param [options] Conversion options
|
10513
|
+
* @returns Plain object
|
10514
|
+
*/
|
10515
|
+
public static toObject(message: TW.Ethereum.Proto.UserOperation, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
10516
|
+
|
10517
|
+
/**
|
10518
|
+
* Converts this UserOperation to JSON.
|
10519
|
+
* @returns JSON object
|
10520
|
+
*/
|
10521
|
+
public toJSON(): { [k: string]: any };
|
10406
10522
|
}
|
10407
10523
|
|
10408
10524
|
/** Properties of a SigningInput. */
|
@@ -10437,6 +10553,9 @@ export namespace TW {
|
|
10437
10553
|
|
10438
10554
|
/** SigningInput transaction */
|
10439
10555
|
transaction?: (TW.Ethereum.Proto.ITransaction|null);
|
10556
|
+
|
10557
|
+
/** SigningInput userOperation */
|
10558
|
+
userOperation?: (TW.Ethereum.Proto.IUserOperation|null);
|
10440
10559
|
}
|
10441
10560
|
|
10442
10561
|
/** Represents a SigningInput. */
|
@@ -10478,6 +10597,9 @@ export namespace TW {
|
|
10478
10597
|
/** SigningInput transaction. */
|
10479
10598
|
public transaction?: (TW.Ethereum.Proto.ITransaction|null);
|
10480
10599
|
|
10600
|
+
/** SigningInput userOperation. */
|
10601
|
+
public userOperation?: (TW.Ethereum.Proto.IUserOperation|null);
|
10602
|
+
|
10481
10603
|
/**
|
10482
10604
|
* Creates a new SigningInput instance using the specified properties.
|
10483
10605
|
* @param [properties] Properties to set
|
@@ -27209,6 +27331,9 @@ export namespace TW {
|
|
27209
27331
|
|
27210
27332
|
/** SwapInput extraMemo */
|
27211
27333
|
extraMemo?: (string|null);
|
27334
|
+
|
27335
|
+
/** SwapInput expirationTime */
|
27336
|
+
expirationTime?: (Long|null);
|
27212
27337
|
}
|
27213
27338
|
|
27214
27339
|
/** Represents a SwapInput. */
|
@@ -27253,6 +27378,9 @@ export namespace TW {
|
|
27253
27378
|
/** SwapInput extraMemo. */
|
27254
27379
|
public extraMemo: string;
|
27255
27380
|
|
27381
|
+
/** SwapInput expirationTime. */
|
27382
|
+
public expirationTime: Long;
|
27383
|
+
|
27256
27384
|
/**
|
27257
27385
|
* Creates a new SwapInput instance using the specified properties.
|
27258
27386
|
* @param [properties] Properties to set
|