@trustwallet/wallet-core 4.2.19 → 4.2.21
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 +133 -48
- package/dist/generated/core_proto.js +377 -138
- package/dist/lib/wallet-core.js +1 -1
- package/dist/lib/wallet-core.wasm +0 -0
- package/package.json +1 -1
@@ -15840,8 +15840,11 @@ export namespace TW {
|
|
15840
15840
|
/** Transaction contractGeneric */
|
15841
15841
|
contractGeneric?: (TW.Ethereum.Proto.Transaction.IContractGeneric|null);
|
15842
15842
|
|
15843
|
-
/** Transaction
|
15844
|
-
|
15843
|
+
/** Transaction scwBatch */
|
15844
|
+
scwBatch?: (TW.Ethereum.Proto.Transaction.ISCWalletBatch|null);
|
15845
|
+
|
15846
|
+
/** Transaction scwExecute */
|
15847
|
+
scwExecute?: (TW.Ethereum.Proto.Transaction.ISCWalletExecute|null);
|
15845
15848
|
}
|
15846
15849
|
|
15847
15850
|
/** Represents a Transaction. */
|
@@ -15871,11 +15874,14 @@ export namespace TW {
|
|
15871
15874
|
/** Transaction contractGeneric. */
|
15872
15875
|
public contractGeneric?: (TW.Ethereum.Proto.Transaction.IContractGeneric|null);
|
15873
15876
|
|
15874
|
-
/** Transaction
|
15875
|
-
public
|
15877
|
+
/** Transaction scwBatch. */
|
15878
|
+
public scwBatch?: (TW.Ethereum.Proto.Transaction.ISCWalletBatch|null);
|
15879
|
+
|
15880
|
+
/** Transaction scwExecute. */
|
15881
|
+
public scwExecute?: (TW.Ethereum.Proto.Transaction.ISCWalletExecute|null);
|
15876
15882
|
|
15877
15883
|
/** Transaction transactionOneof. */
|
15878
|
-
public transactionOneof?: ("transfer"|"erc20Transfer"|"erc20Approve"|"erc721Transfer"|"erc1155Transfer"|"contractGeneric"|"
|
15884
|
+
public transactionOneof?: ("transfer"|"erc20Transfer"|"erc20Approve"|"erc721Transfer"|"erc1155Transfer"|"contractGeneric"|"scwBatch"|"scwExecute");
|
15879
15885
|
|
15880
15886
|
/**
|
15881
15887
|
* Creates a new Transaction instance using the specified properties.
|
@@ -16431,80 +16437,86 @@ export namespace TW {
|
|
16431
16437
|
public toJSON(): { [k: string]: any };
|
16432
16438
|
}
|
16433
16439
|
|
16434
|
-
/** Properties of a
|
16435
|
-
interface
|
16440
|
+
/** Properties of a SCWalletBatch. */
|
16441
|
+
interface ISCWalletBatch {
|
16436
16442
|
|
16437
|
-
/**
|
16438
|
-
calls?: (TW.Ethereum.Proto.Transaction.
|
16443
|
+
/** SCWalletBatch calls */
|
16444
|
+
calls?: (TW.Ethereum.Proto.Transaction.SCWalletBatch.IBatchedCall[]|null);
|
16445
|
+
|
16446
|
+
/** SCWalletBatch walletType */
|
16447
|
+
walletType?: (TW.Ethereum.Proto.SCWalletType|null);
|
16439
16448
|
}
|
16440
16449
|
|
16441
|
-
/** Represents a
|
16442
|
-
class
|
16450
|
+
/** Represents a SCWalletBatch. */
|
16451
|
+
class SCWalletBatch implements ISCWalletBatch {
|
16443
16452
|
|
16444
16453
|
/**
|
16445
|
-
* Constructs a new
|
16454
|
+
* Constructs a new SCWalletBatch.
|
16446
16455
|
* @param [properties] Properties to set
|
16447
16456
|
*/
|
16448
|
-
constructor(properties?: TW.Ethereum.Proto.Transaction.
|
16457
|
+
constructor(properties?: TW.Ethereum.Proto.Transaction.ISCWalletBatch);
|
16449
16458
|
|
16450
|
-
/**
|
16451
|
-
public calls: TW.Ethereum.Proto.Transaction.
|
16459
|
+
/** SCWalletBatch calls. */
|
16460
|
+
public calls: TW.Ethereum.Proto.Transaction.SCWalletBatch.IBatchedCall[];
|
16461
|
+
|
16462
|
+
/** SCWalletBatch walletType. */
|
16463
|
+
public walletType: TW.Ethereum.Proto.SCWalletType;
|
16452
16464
|
|
16453
16465
|
/**
|
16454
|
-
* Creates a new
|
16466
|
+
* Creates a new SCWalletBatch instance using the specified properties.
|
16455
16467
|
* @param [properties] Properties to set
|
16456
|
-
* @returns
|
16468
|
+
* @returns SCWalletBatch instance
|
16457
16469
|
*/
|
16458
|
-
public static create(properties?: TW.Ethereum.Proto.Transaction.
|
16470
|
+
public static create(properties?: TW.Ethereum.Proto.Transaction.ISCWalletBatch): TW.Ethereum.Proto.Transaction.SCWalletBatch;
|
16459
16471
|
|
16460
16472
|
/**
|
16461
|
-
* Encodes the specified
|
16462
|
-
* @param message
|
16473
|
+
* Encodes the specified SCWalletBatch message. Does not implicitly {@link TW.Ethereum.Proto.Transaction.SCWalletBatch.verify|verify} messages.
|
16474
|
+
* @param message SCWalletBatch message or plain object to encode
|
16463
16475
|
* @param [writer] Writer to encode to
|
16464
16476
|
* @returns Writer
|
16465
16477
|
*/
|
16466
|
-
public static encode(message: TW.Ethereum.Proto.Transaction.
|
16478
|
+
public static encode(message: TW.Ethereum.Proto.Transaction.ISCWalletBatch, writer?: $protobuf.Writer): $protobuf.Writer;
|
16467
16479
|
|
16468
16480
|
/**
|
16469
|
-
* Decodes a
|
16481
|
+
* Decodes a SCWalletBatch message from the specified reader or buffer.
|
16470
16482
|
* @param reader Reader or buffer to decode from
|
16471
16483
|
* @param [length] Message length if known beforehand
|
16472
|
-
* @returns
|
16484
|
+
* @returns SCWalletBatch
|
16473
16485
|
* @throws {Error} If the payload is not a reader or valid buffer
|
16474
16486
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
16475
16487
|
*/
|
16476
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Ethereum.Proto.Transaction.
|
16488
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Ethereum.Proto.Transaction.SCWalletBatch;
|
16477
16489
|
|
16478
16490
|
/**
|
16479
|
-
* Verifies a
|
16491
|
+
* Verifies a SCWalletBatch message.
|
16480
16492
|
* @param message Plain object to verify
|
16481
16493
|
* @returns `null` if valid, otherwise the reason why it is not
|
16482
16494
|
*/
|
16483
16495
|
public static verify(message: { [k: string]: any }): (string|null);
|
16484
16496
|
|
16485
16497
|
/**
|
16486
|
-
* Creates a
|
16498
|
+
* Creates a SCWalletBatch message from a plain object. Also converts values to their respective internal types.
|
16487
16499
|
* @param object Plain object
|
16488
|
-
* @returns
|
16500
|
+
* @returns SCWalletBatch
|
16489
16501
|
*/
|
16490
|
-
public static fromObject(object: { [k: string]: any }): TW.Ethereum.Proto.Transaction.
|
16502
|
+
public static fromObject(object: { [k: string]: any }): TW.Ethereum.Proto.Transaction.SCWalletBatch;
|
16491
16503
|
|
16492
16504
|
/**
|
16493
|
-
* Creates a plain object from a
|
16494
|
-
* @param message
|
16505
|
+
* Creates a plain object from a SCWalletBatch message. Also converts values to other types if specified.
|
16506
|
+
* @param message SCWalletBatch
|
16495
16507
|
* @param [options] Conversion options
|
16496
16508
|
* @returns Plain object
|
16497
16509
|
*/
|
16498
|
-
public static toObject(message: TW.Ethereum.Proto.Transaction.
|
16510
|
+
public static toObject(message: TW.Ethereum.Proto.Transaction.SCWalletBatch, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
16499
16511
|
|
16500
16512
|
/**
|
16501
|
-
* Converts this
|
16513
|
+
* Converts this SCWalletBatch to JSON.
|
16502
16514
|
* @returns JSON object
|
16503
16515
|
*/
|
16504
16516
|
public toJSON(): { [k: string]: any };
|
16505
16517
|
}
|
16506
16518
|
|
16507
|
-
namespace
|
16519
|
+
namespace SCWalletBatch {
|
16508
16520
|
|
16509
16521
|
/** Properties of a BatchedCall. */
|
16510
16522
|
interface IBatchedCall {
|
@@ -16526,7 +16538,7 @@ export namespace TW {
|
|
16526
16538
|
* Constructs a new BatchedCall.
|
16527
16539
|
* @param [properties] Properties to set
|
16528
16540
|
*/
|
16529
|
-
constructor(properties?: TW.Ethereum.Proto.Transaction.
|
16541
|
+
constructor(properties?: TW.Ethereum.Proto.Transaction.SCWalletBatch.IBatchedCall);
|
16530
16542
|
|
16531
16543
|
/** BatchedCall address. */
|
16532
16544
|
public address: string;
|
@@ -16542,15 +16554,15 @@ export namespace TW {
|
|
16542
16554
|
* @param [properties] Properties to set
|
16543
16555
|
* @returns BatchedCall instance
|
16544
16556
|
*/
|
16545
|
-
public static create(properties?: TW.Ethereum.Proto.Transaction.
|
16557
|
+
public static create(properties?: TW.Ethereum.Proto.Transaction.SCWalletBatch.IBatchedCall): TW.Ethereum.Proto.Transaction.SCWalletBatch.BatchedCall;
|
16546
16558
|
|
16547
16559
|
/**
|
16548
|
-
* Encodes the specified BatchedCall message. Does not implicitly {@link TW.Ethereum.Proto.Transaction.
|
16560
|
+
* Encodes the specified BatchedCall message. Does not implicitly {@link TW.Ethereum.Proto.Transaction.SCWalletBatch.BatchedCall.verify|verify} messages.
|
16549
16561
|
* @param message BatchedCall message or plain object to encode
|
16550
16562
|
* @param [writer] Writer to encode to
|
16551
16563
|
* @returns Writer
|
16552
16564
|
*/
|
16553
|
-
public static encode(message: TW.Ethereum.Proto.Transaction.
|
16565
|
+
public static encode(message: TW.Ethereum.Proto.Transaction.SCWalletBatch.IBatchedCall, writer?: $protobuf.Writer): $protobuf.Writer;
|
16554
16566
|
|
16555
16567
|
/**
|
16556
16568
|
* Decodes a BatchedCall message from the specified reader or buffer.
|
@@ -16560,7 +16572,7 @@ export namespace TW {
|
|
16560
16572
|
* @throws {Error} If the payload is not a reader or valid buffer
|
16561
16573
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
16562
16574
|
*/
|
16563
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Ethereum.Proto.Transaction.
|
16575
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Ethereum.Proto.Transaction.SCWalletBatch.BatchedCall;
|
16564
16576
|
|
16565
16577
|
/**
|
16566
16578
|
* Verifies a BatchedCall message.
|
@@ -16574,7 +16586,7 @@ export namespace TW {
|
|
16574
16586
|
* @param object Plain object
|
16575
16587
|
* @returns BatchedCall
|
16576
16588
|
*/
|
16577
|
-
public static fromObject(object: { [k: string]: any }): TW.Ethereum.Proto.Transaction.
|
16589
|
+
public static fromObject(object: { [k: string]: any }): TW.Ethereum.Proto.Transaction.SCWalletBatch.BatchedCall;
|
16578
16590
|
|
16579
16591
|
/**
|
16580
16592
|
* Creates a plain object from a BatchedCall message. Also converts values to other types if specified.
|
@@ -16582,7 +16594,7 @@ export namespace TW {
|
|
16582
16594
|
* @param [options] Conversion options
|
16583
16595
|
* @returns Plain object
|
16584
16596
|
*/
|
16585
|
-
public static toObject(message: TW.Ethereum.Proto.Transaction.
|
16597
|
+
public static toObject(message: TW.Ethereum.Proto.Transaction.SCWalletBatch.BatchedCall, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
16586
16598
|
|
16587
16599
|
/**
|
16588
16600
|
* Converts this BatchedCall to JSON.
|
@@ -16591,6 +16603,85 @@ export namespace TW {
|
|
16591
16603
|
public toJSON(): { [k: string]: any };
|
16592
16604
|
}
|
16593
16605
|
}
|
16606
|
+
|
16607
|
+
/** Properties of a SCWalletExecute. */
|
16608
|
+
interface ISCWalletExecute {
|
16609
|
+
|
16610
|
+
/** SCWalletExecute transaction */
|
16611
|
+
transaction?: (TW.Ethereum.Proto.ITransaction|null);
|
16612
|
+
|
16613
|
+
/** SCWalletExecute walletType */
|
16614
|
+
walletType?: (TW.Ethereum.Proto.SCWalletType|null);
|
16615
|
+
}
|
16616
|
+
|
16617
|
+
/** Represents a SCWalletExecute. */
|
16618
|
+
class SCWalletExecute implements ISCWalletExecute {
|
16619
|
+
|
16620
|
+
/**
|
16621
|
+
* Constructs a new SCWalletExecute.
|
16622
|
+
* @param [properties] Properties to set
|
16623
|
+
*/
|
16624
|
+
constructor(properties?: TW.Ethereum.Proto.Transaction.ISCWalletExecute);
|
16625
|
+
|
16626
|
+
/** SCWalletExecute transaction. */
|
16627
|
+
public transaction?: (TW.Ethereum.Proto.ITransaction|null);
|
16628
|
+
|
16629
|
+
/** SCWalletExecute walletType. */
|
16630
|
+
public walletType: TW.Ethereum.Proto.SCWalletType;
|
16631
|
+
|
16632
|
+
/**
|
16633
|
+
* Creates a new SCWalletExecute instance using the specified properties.
|
16634
|
+
* @param [properties] Properties to set
|
16635
|
+
* @returns SCWalletExecute instance
|
16636
|
+
*/
|
16637
|
+
public static create(properties?: TW.Ethereum.Proto.Transaction.ISCWalletExecute): TW.Ethereum.Proto.Transaction.SCWalletExecute;
|
16638
|
+
|
16639
|
+
/**
|
16640
|
+
* Encodes the specified SCWalletExecute message. Does not implicitly {@link TW.Ethereum.Proto.Transaction.SCWalletExecute.verify|verify} messages.
|
16641
|
+
* @param message SCWalletExecute message or plain object to encode
|
16642
|
+
* @param [writer] Writer to encode to
|
16643
|
+
* @returns Writer
|
16644
|
+
*/
|
16645
|
+
public static encode(message: TW.Ethereum.Proto.Transaction.ISCWalletExecute, writer?: $protobuf.Writer): $protobuf.Writer;
|
16646
|
+
|
16647
|
+
/**
|
16648
|
+
* Decodes a SCWalletExecute message from the specified reader or buffer.
|
16649
|
+
* @param reader Reader or buffer to decode from
|
16650
|
+
* @param [length] Message length if known beforehand
|
16651
|
+
* @returns SCWalletExecute
|
16652
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
16653
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
16654
|
+
*/
|
16655
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Ethereum.Proto.Transaction.SCWalletExecute;
|
16656
|
+
|
16657
|
+
/**
|
16658
|
+
* Verifies a SCWalletExecute message.
|
16659
|
+
* @param message Plain object to verify
|
16660
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
16661
|
+
*/
|
16662
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
16663
|
+
|
16664
|
+
/**
|
16665
|
+
* Creates a SCWalletExecute message from a plain object. Also converts values to their respective internal types.
|
16666
|
+
* @param object Plain object
|
16667
|
+
* @returns SCWalletExecute
|
16668
|
+
*/
|
16669
|
+
public static fromObject(object: { [k: string]: any }): TW.Ethereum.Proto.Transaction.SCWalletExecute;
|
16670
|
+
|
16671
|
+
/**
|
16672
|
+
* Creates a plain object from a SCWalletExecute message. Also converts values to other types if specified.
|
16673
|
+
* @param message SCWalletExecute
|
16674
|
+
* @param [options] Conversion options
|
16675
|
+
* @returns Plain object
|
16676
|
+
*/
|
16677
|
+
public static toObject(message: TW.Ethereum.Proto.Transaction.SCWalletExecute, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
16678
|
+
|
16679
|
+
/**
|
16680
|
+
* Converts this SCWalletExecute to JSON.
|
16681
|
+
* @returns JSON object
|
16682
|
+
*/
|
16683
|
+
public toJSON(): { [k: string]: any };
|
16684
|
+
}
|
16594
16685
|
}
|
16595
16686
|
|
16596
16687
|
/** TransactionMode enum. */
|
@@ -16983,8 +17074,8 @@ export namespace TW {
|
|
16983
17074
|
public toJSON(): { [k: string]: any };
|
16984
17075
|
}
|
16985
17076
|
|
16986
|
-
/**
|
16987
|
-
enum
|
17077
|
+
/** SCWalletType enum. */
|
17078
|
+
enum SCWalletType {
|
16988
17079
|
SimpleAccount = 0,
|
16989
17080
|
Biz4337 = 1,
|
16990
17081
|
Biz = 2
|
@@ -17032,9 +17123,6 @@ export namespace TW {
|
|
17032
17123
|
/** SigningInput accessList */
|
17033
17124
|
accessList?: (TW.Ethereum.Proto.IAccess[]|null);
|
17034
17125
|
|
17035
|
-
/** SigningInput userOperationMode */
|
17036
|
-
userOperationMode?: (TW.Ethereum.Proto.SCAccountType|null);
|
17037
|
-
|
17038
17126
|
/** SigningInput eip7702Authority */
|
17039
17127
|
eip7702Authority?: (TW.Ethereum.Proto.IAuthority|null);
|
17040
17128
|
}
|
@@ -17087,9 +17175,6 @@ export namespace TW {
|
|
17087
17175
|
/** SigningInput accessList. */
|
17088
17176
|
public accessList: TW.Ethereum.Proto.IAccess[];
|
17089
17177
|
|
17090
|
-
/** SigningInput userOperationMode. */
|
17091
|
-
public userOperationMode: TW.Ethereum.Proto.SCAccountType;
|
17092
|
-
|
17093
17178
|
/** SigningInput eip7702Authority. */
|
17094
17179
|
public eip7702Authority?: (TW.Ethereum.Proto.IAuthority|null);
|
17095
17180
|
|
@@ -47215,7 +47215,8 @@
|
|
47215
47215
|
* @property {TW.Ethereum.Proto.Transaction.IERC721Transfer|null} [erc721Transfer] Transaction erc721Transfer
|
47216
47216
|
* @property {TW.Ethereum.Proto.Transaction.IERC1155Transfer|null} [erc1155Transfer] Transaction erc1155Transfer
|
47217
47217
|
* @property {TW.Ethereum.Proto.Transaction.IContractGeneric|null} [contractGeneric] Transaction contractGeneric
|
47218
|
-
* @property {TW.Ethereum.Proto.Transaction.
|
47218
|
+
* @property {TW.Ethereum.Proto.Transaction.ISCWalletBatch|null} [scwBatch] Transaction scwBatch
|
47219
|
+
* @property {TW.Ethereum.Proto.Transaction.ISCWalletExecute|null} [scwExecute] Transaction scwExecute
|
47219
47220
|
*/
|
47220
47221
|
|
47221
47222
|
/**
|
@@ -47282,24 +47283,32 @@
|
|
47282
47283
|
Transaction.prototype.contractGeneric = null;
|
47283
47284
|
|
47284
47285
|
/**
|
47285
|
-
* Transaction
|
47286
|
-
* @member {TW.Ethereum.Proto.Transaction.
|
47286
|
+
* Transaction scwBatch.
|
47287
|
+
* @member {TW.Ethereum.Proto.Transaction.ISCWalletBatch|null|undefined} scwBatch
|
47287
47288
|
* @memberof TW.Ethereum.Proto.Transaction
|
47288
47289
|
* @instance
|
47289
47290
|
*/
|
47290
|
-
Transaction.prototype.
|
47291
|
+
Transaction.prototype.scwBatch = null;
|
47292
|
+
|
47293
|
+
/**
|
47294
|
+
* Transaction scwExecute.
|
47295
|
+
* @member {TW.Ethereum.Proto.Transaction.ISCWalletExecute|null|undefined} scwExecute
|
47296
|
+
* @memberof TW.Ethereum.Proto.Transaction
|
47297
|
+
* @instance
|
47298
|
+
*/
|
47299
|
+
Transaction.prototype.scwExecute = null;
|
47291
47300
|
|
47292
47301
|
// OneOf field names bound to virtual getters and setters
|
47293
47302
|
var $oneOfFields;
|
47294
47303
|
|
47295
47304
|
/**
|
47296
47305
|
* Transaction transactionOneof.
|
47297
|
-
* @member {"transfer"|"erc20Transfer"|"erc20Approve"|"erc721Transfer"|"erc1155Transfer"|"contractGeneric"|"
|
47306
|
+
* @member {"transfer"|"erc20Transfer"|"erc20Approve"|"erc721Transfer"|"erc1155Transfer"|"contractGeneric"|"scwBatch"|"scwExecute"|undefined} transactionOneof
|
47298
47307
|
* @memberof TW.Ethereum.Proto.Transaction
|
47299
47308
|
* @instance
|
47300
47309
|
*/
|
47301
47310
|
Object.defineProperty(Transaction.prototype, "transactionOneof", {
|
47302
|
-
get: $util.oneOfGetter($oneOfFields = ["transfer", "erc20Transfer", "erc20Approve", "erc721Transfer", "erc1155Transfer", "contractGeneric", "
|
47311
|
+
get: $util.oneOfGetter($oneOfFields = ["transfer", "erc20Transfer", "erc20Approve", "erc721Transfer", "erc1155Transfer", "contractGeneric", "scwBatch", "scwExecute"]),
|
47303
47312
|
set: $util.oneOfSetter($oneOfFields)
|
47304
47313
|
});
|
47305
47314
|
|
@@ -47339,8 +47348,10 @@
|
|
47339
47348
|
$root.TW.Ethereum.Proto.Transaction.ERC1155Transfer.encode(message.erc1155Transfer, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
47340
47349
|
if (message.contractGeneric != null && Object.hasOwnProperty.call(message, "contractGeneric"))
|
47341
47350
|
$root.TW.Ethereum.Proto.Transaction.ContractGeneric.encode(message.contractGeneric, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
|
47342
|
-
if (message.
|
47343
|
-
$root.TW.Ethereum.Proto.Transaction.
|
47351
|
+
if (message.scwBatch != null && Object.hasOwnProperty.call(message, "scwBatch"))
|
47352
|
+
$root.TW.Ethereum.Proto.Transaction.SCWalletBatch.encode(message.scwBatch, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
|
47353
|
+
if (message.scwExecute != null && Object.hasOwnProperty.call(message, "scwExecute"))
|
47354
|
+
$root.TW.Ethereum.Proto.Transaction.SCWalletExecute.encode(message.scwExecute, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
|
47344
47355
|
return writer;
|
47345
47356
|
};
|
47346
47357
|
|
@@ -47381,7 +47392,10 @@
|
|
47381
47392
|
message.contractGeneric = $root.TW.Ethereum.Proto.Transaction.ContractGeneric.decode(reader, reader.uint32());
|
47382
47393
|
break;
|
47383
47394
|
case 7:
|
47384
|
-
message.
|
47395
|
+
message.scwBatch = $root.TW.Ethereum.Proto.Transaction.SCWalletBatch.decode(reader, reader.uint32());
|
47396
|
+
break;
|
47397
|
+
case 8:
|
47398
|
+
message.scwExecute = $root.TW.Ethereum.Proto.Transaction.SCWalletExecute.decode(reader, reader.uint32());
|
47385
47399
|
break;
|
47386
47400
|
default:
|
47387
47401
|
reader.skipType(tag & 7);
|
@@ -47461,14 +47475,24 @@
|
|
47461
47475
|
return "contractGeneric." + error;
|
47462
47476
|
}
|
47463
47477
|
}
|
47464
|
-
if (message.
|
47478
|
+
if (message.scwBatch != null && message.hasOwnProperty("scwBatch")) {
|
47465
47479
|
if (properties.transactionOneof === 1)
|
47466
47480
|
return "transactionOneof: multiple values";
|
47467
47481
|
properties.transactionOneof = 1;
|
47468
47482
|
{
|
47469
|
-
var error = $root.TW.Ethereum.Proto.Transaction.
|
47483
|
+
var error = $root.TW.Ethereum.Proto.Transaction.SCWalletBatch.verify(message.scwBatch);
|
47470
47484
|
if (error)
|
47471
|
-
return "
|
47485
|
+
return "scwBatch." + error;
|
47486
|
+
}
|
47487
|
+
}
|
47488
|
+
if (message.scwExecute != null && message.hasOwnProperty("scwExecute")) {
|
47489
|
+
if (properties.transactionOneof === 1)
|
47490
|
+
return "transactionOneof: multiple values";
|
47491
|
+
properties.transactionOneof = 1;
|
47492
|
+
{
|
47493
|
+
var error = $root.TW.Ethereum.Proto.Transaction.SCWalletExecute.verify(message.scwExecute);
|
47494
|
+
if (error)
|
47495
|
+
return "scwExecute." + error;
|
47472
47496
|
}
|
47473
47497
|
}
|
47474
47498
|
return null;
|
@@ -47516,10 +47540,15 @@
|
|
47516
47540
|
throw TypeError(".TW.Ethereum.Proto.Transaction.contractGeneric: object expected");
|
47517
47541
|
message.contractGeneric = $root.TW.Ethereum.Proto.Transaction.ContractGeneric.fromObject(object.contractGeneric);
|
47518
47542
|
}
|
47519
|
-
if (object.
|
47520
|
-
if (typeof object.
|
47521
|
-
throw TypeError(".TW.Ethereum.Proto.Transaction.
|
47522
|
-
message.
|
47543
|
+
if (object.scwBatch != null) {
|
47544
|
+
if (typeof object.scwBatch !== "object")
|
47545
|
+
throw TypeError(".TW.Ethereum.Proto.Transaction.scwBatch: object expected");
|
47546
|
+
message.scwBatch = $root.TW.Ethereum.Proto.Transaction.SCWalletBatch.fromObject(object.scwBatch);
|
47547
|
+
}
|
47548
|
+
if (object.scwExecute != null) {
|
47549
|
+
if (typeof object.scwExecute !== "object")
|
47550
|
+
throw TypeError(".TW.Ethereum.Proto.Transaction.scwExecute: object expected");
|
47551
|
+
message.scwExecute = $root.TW.Ethereum.Proto.Transaction.SCWalletExecute.fromObject(object.scwExecute);
|
47523
47552
|
}
|
47524
47553
|
return message;
|
47525
47554
|
};
|
@@ -47567,10 +47596,15 @@
|
|
47567
47596
|
if (options.oneofs)
|
47568
47597
|
object.transactionOneof = "contractGeneric";
|
47569
47598
|
}
|
47570
|
-
if (message.
|
47571
|
-
object.
|
47599
|
+
if (message.scwBatch != null && message.hasOwnProperty("scwBatch")) {
|
47600
|
+
object.scwBatch = $root.TW.Ethereum.Proto.Transaction.SCWalletBatch.toObject(message.scwBatch, options);
|
47572
47601
|
if (options.oneofs)
|
47573
|
-
object.transactionOneof = "
|
47602
|
+
object.transactionOneof = "scwBatch";
|
47603
|
+
}
|
47604
|
+
if (message.scwExecute != null && message.hasOwnProperty("scwExecute")) {
|
47605
|
+
object.scwExecute = $root.TW.Ethereum.Proto.Transaction.SCWalletExecute.toObject(message.scwExecute, options);
|
47606
|
+
if (options.oneofs)
|
47607
|
+
object.transactionOneof = "scwExecute";
|
47574
47608
|
}
|
47575
47609
|
return object;
|
47576
47610
|
};
|
@@ -48850,24 +48884,25 @@
|
|
48850
48884
|
return ContractGeneric;
|
48851
48885
|
})();
|
48852
48886
|
|
48853
|
-
Transaction.
|
48887
|
+
Transaction.SCWalletBatch = (function() {
|
48854
48888
|
|
48855
48889
|
/**
|
48856
|
-
* Properties of a
|
48890
|
+
* Properties of a SCWalletBatch.
|
48857
48891
|
* @memberof TW.Ethereum.Proto.Transaction
|
48858
|
-
* @interface
|
48859
|
-
* @property {Array.<TW.Ethereum.Proto.Transaction.
|
48892
|
+
* @interface ISCWalletBatch
|
48893
|
+
* @property {Array.<TW.Ethereum.Proto.Transaction.SCWalletBatch.IBatchedCall>|null} [calls] SCWalletBatch calls
|
48894
|
+
* @property {TW.Ethereum.Proto.SCWalletType|null} [walletType] SCWalletBatch walletType
|
48860
48895
|
*/
|
48861
48896
|
|
48862
48897
|
/**
|
48863
|
-
* Constructs a new
|
48898
|
+
* Constructs a new SCWalletBatch.
|
48864
48899
|
* @memberof TW.Ethereum.Proto.Transaction
|
48865
|
-
* @classdesc Represents a
|
48866
|
-
* @implements
|
48900
|
+
* @classdesc Represents a SCWalletBatch.
|
48901
|
+
* @implements ISCWalletBatch
|
48867
48902
|
* @constructor
|
48868
|
-
* @param {TW.Ethereum.Proto.Transaction.
|
48903
|
+
* @param {TW.Ethereum.Proto.Transaction.ISCWalletBatch=} [properties] Properties to set
|
48869
48904
|
*/
|
48870
|
-
function
|
48905
|
+
function SCWalletBatch(properties) {
|
48871
48906
|
this.calls = [];
|
48872
48907
|
if (properties)
|
48873
48908
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
@@ -48876,65 +48911,78 @@
|
|
48876
48911
|
}
|
48877
48912
|
|
48878
48913
|
/**
|
48879
|
-
*
|
48880
|
-
* @member {Array.<TW.Ethereum.Proto.Transaction.
|
48881
|
-
* @memberof TW.Ethereum.Proto.Transaction.
|
48914
|
+
* SCWalletBatch calls.
|
48915
|
+
* @member {Array.<TW.Ethereum.Proto.Transaction.SCWalletBatch.IBatchedCall>} calls
|
48916
|
+
* @memberof TW.Ethereum.Proto.Transaction.SCWalletBatch
|
48882
48917
|
* @instance
|
48883
48918
|
*/
|
48884
|
-
|
48919
|
+
SCWalletBatch.prototype.calls = $util.emptyArray;
|
48885
48920
|
|
48886
48921
|
/**
|
48887
|
-
*
|
48922
|
+
* SCWalletBatch walletType.
|
48923
|
+
* @member {TW.Ethereum.Proto.SCWalletType} walletType
|
48924
|
+
* @memberof TW.Ethereum.Proto.Transaction.SCWalletBatch
|
48925
|
+
* @instance
|
48926
|
+
*/
|
48927
|
+
SCWalletBatch.prototype.walletType = 0;
|
48928
|
+
|
48929
|
+
/**
|
48930
|
+
* Creates a new SCWalletBatch instance using the specified properties.
|
48888
48931
|
* @function create
|
48889
|
-
* @memberof TW.Ethereum.Proto.Transaction.
|
48932
|
+
* @memberof TW.Ethereum.Proto.Transaction.SCWalletBatch
|
48890
48933
|
* @static
|
48891
|
-
* @param {TW.Ethereum.Proto.Transaction.
|
48892
|
-
* @returns {TW.Ethereum.Proto.Transaction.
|
48934
|
+
* @param {TW.Ethereum.Proto.Transaction.ISCWalletBatch=} [properties] Properties to set
|
48935
|
+
* @returns {TW.Ethereum.Proto.Transaction.SCWalletBatch} SCWalletBatch instance
|
48893
48936
|
*/
|
48894
|
-
|
48895
|
-
return new
|
48937
|
+
SCWalletBatch.create = function create(properties) {
|
48938
|
+
return new SCWalletBatch(properties);
|
48896
48939
|
};
|
48897
48940
|
|
48898
48941
|
/**
|
48899
|
-
* Encodes the specified
|
48942
|
+
* Encodes the specified SCWalletBatch message. Does not implicitly {@link TW.Ethereum.Proto.Transaction.SCWalletBatch.verify|verify} messages.
|
48900
48943
|
* @function encode
|
48901
|
-
* @memberof TW.Ethereum.Proto.Transaction.
|
48944
|
+
* @memberof TW.Ethereum.Proto.Transaction.SCWalletBatch
|
48902
48945
|
* @static
|
48903
|
-
* @param {TW.Ethereum.Proto.Transaction.
|
48946
|
+
* @param {TW.Ethereum.Proto.Transaction.ISCWalletBatch} message SCWalletBatch message or plain object to encode
|
48904
48947
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
48905
48948
|
* @returns {$protobuf.Writer} Writer
|
48906
48949
|
*/
|
48907
|
-
|
48950
|
+
SCWalletBatch.encode = function encode(message, writer) {
|
48908
48951
|
if (!writer)
|
48909
48952
|
writer = $Writer.create();
|
48910
48953
|
if (message.calls != null && message.calls.length)
|
48911
48954
|
for (var i = 0; i < message.calls.length; ++i)
|
48912
|
-
$root.TW.Ethereum.Proto.Transaction.
|
48955
|
+
$root.TW.Ethereum.Proto.Transaction.SCWalletBatch.BatchedCall.encode(message.calls[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
48956
|
+
if (message.walletType != null && Object.hasOwnProperty.call(message, "walletType"))
|
48957
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.walletType);
|
48913
48958
|
return writer;
|
48914
48959
|
};
|
48915
48960
|
|
48916
48961
|
/**
|
48917
|
-
* Decodes a
|
48962
|
+
* Decodes a SCWalletBatch message from the specified reader or buffer.
|
48918
48963
|
* @function decode
|
48919
|
-
* @memberof TW.Ethereum.Proto.Transaction.
|
48964
|
+
* @memberof TW.Ethereum.Proto.Transaction.SCWalletBatch
|
48920
48965
|
* @static
|
48921
48966
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
48922
48967
|
* @param {number} [length] Message length if known beforehand
|
48923
|
-
* @returns {TW.Ethereum.Proto.Transaction.
|
48968
|
+
* @returns {TW.Ethereum.Proto.Transaction.SCWalletBatch} SCWalletBatch
|
48924
48969
|
* @throws {Error} If the payload is not a reader or valid buffer
|
48925
48970
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
48926
48971
|
*/
|
48927
|
-
|
48972
|
+
SCWalletBatch.decode = function decode(reader, length) {
|
48928
48973
|
if (!(reader instanceof $Reader))
|
48929
48974
|
reader = $Reader.create(reader);
|
48930
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.TW.Ethereum.Proto.Transaction.
|
48975
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.TW.Ethereum.Proto.Transaction.SCWalletBatch();
|
48931
48976
|
while (reader.pos < end) {
|
48932
48977
|
var tag = reader.uint32();
|
48933
48978
|
switch (tag >>> 3) {
|
48934
48979
|
case 1:
|
48935
48980
|
if (!(message.calls && message.calls.length))
|
48936
48981
|
message.calls = [];
|
48937
|
-
message.calls.push($root.TW.Ethereum.Proto.Transaction.
|
48982
|
+
message.calls.push($root.TW.Ethereum.Proto.Transaction.SCWalletBatch.BatchedCall.decode(reader, reader.uint32()));
|
48983
|
+
break;
|
48984
|
+
case 2:
|
48985
|
+
message.walletType = reader.int32();
|
48938
48986
|
break;
|
48939
48987
|
default:
|
48940
48988
|
reader.skipType(tag & 7);
|
@@ -48945,92 +48993,119 @@
|
|
48945
48993
|
};
|
48946
48994
|
|
48947
48995
|
/**
|
48948
|
-
* Verifies a
|
48996
|
+
* Verifies a SCWalletBatch message.
|
48949
48997
|
* @function verify
|
48950
|
-
* @memberof TW.Ethereum.Proto.Transaction.
|
48998
|
+
* @memberof TW.Ethereum.Proto.Transaction.SCWalletBatch
|
48951
48999
|
* @static
|
48952
49000
|
* @param {Object.<string,*>} message Plain object to verify
|
48953
49001
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
48954
49002
|
*/
|
48955
|
-
|
49003
|
+
SCWalletBatch.verify = function verify(message) {
|
48956
49004
|
if (typeof message !== "object" || message === null)
|
48957
49005
|
return "object expected";
|
48958
49006
|
if (message.calls != null && message.hasOwnProperty("calls")) {
|
48959
49007
|
if (!Array.isArray(message.calls))
|
48960
49008
|
return "calls: array expected";
|
48961
49009
|
for (var i = 0; i < message.calls.length; ++i) {
|
48962
|
-
var error = $root.TW.Ethereum.Proto.Transaction.
|
49010
|
+
var error = $root.TW.Ethereum.Proto.Transaction.SCWalletBatch.BatchedCall.verify(message.calls[i]);
|
48963
49011
|
if (error)
|
48964
49012
|
return "calls." + error;
|
48965
49013
|
}
|
48966
49014
|
}
|
49015
|
+
if (message.walletType != null && message.hasOwnProperty("walletType"))
|
49016
|
+
switch (message.walletType) {
|
49017
|
+
default:
|
49018
|
+
return "walletType: enum value expected";
|
49019
|
+
case 0:
|
49020
|
+
case 1:
|
49021
|
+
case 2:
|
49022
|
+
break;
|
49023
|
+
}
|
48967
49024
|
return null;
|
48968
49025
|
};
|
48969
49026
|
|
48970
49027
|
/**
|
48971
|
-
* Creates a
|
49028
|
+
* Creates a SCWalletBatch message from a plain object. Also converts values to their respective internal types.
|
48972
49029
|
* @function fromObject
|
48973
|
-
* @memberof TW.Ethereum.Proto.Transaction.
|
49030
|
+
* @memberof TW.Ethereum.Proto.Transaction.SCWalletBatch
|
48974
49031
|
* @static
|
48975
49032
|
* @param {Object.<string,*>} object Plain object
|
48976
|
-
* @returns {TW.Ethereum.Proto.Transaction.
|
49033
|
+
* @returns {TW.Ethereum.Proto.Transaction.SCWalletBatch} SCWalletBatch
|
48977
49034
|
*/
|
48978
|
-
|
48979
|
-
if (object instanceof $root.TW.Ethereum.Proto.Transaction.
|
49035
|
+
SCWalletBatch.fromObject = function fromObject(object) {
|
49036
|
+
if (object instanceof $root.TW.Ethereum.Proto.Transaction.SCWalletBatch)
|
48980
49037
|
return object;
|
48981
|
-
var message = new $root.TW.Ethereum.Proto.Transaction.
|
49038
|
+
var message = new $root.TW.Ethereum.Proto.Transaction.SCWalletBatch();
|
48982
49039
|
if (object.calls) {
|
48983
49040
|
if (!Array.isArray(object.calls))
|
48984
|
-
throw TypeError(".TW.Ethereum.Proto.Transaction.
|
49041
|
+
throw TypeError(".TW.Ethereum.Proto.Transaction.SCWalletBatch.calls: array expected");
|
48985
49042
|
message.calls = [];
|
48986
49043
|
for (var i = 0; i < object.calls.length; ++i) {
|
48987
49044
|
if (typeof object.calls[i] !== "object")
|
48988
|
-
throw TypeError(".TW.Ethereum.Proto.Transaction.
|
48989
|
-
message.calls[i] = $root.TW.Ethereum.Proto.Transaction.
|
49045
|
+
throw TypeError(".TW.Ethereum.Proto.Transaction.SCWalletBatch.calls: object expected");
|
49046
|
+
message.calls[i] = $root.TW.Ethereum.Proto.Transaction.SCWalletBatch.BatchedCall.fromObject(object.calls[i]);
|
48990
49047
|
}
|
48991
49048
|
}
|
49049
|
+
switch (object.walletType) {
|
49050
|
+
case "SimpleAccount":
|
49051
|
+
case 0:
|
49052
|
+
message.walletType = 0;
|
49053
|
+
break;
|
49054
|
+
case "Biz4337":
|
49055
|
+
case 1:
|
49056
|
+
message.walletType = 1;
|
49057
|
+
break;
|
49058
|
+
case "Biz":
|
49059
|
+
case 2:
|
49060
|
+
message.walletType = 2;
|
49061
|
+
break;
|
49062
|
+
}
|
48992
49063
|
return message;
|
48993
49064
|
};
|
48994
49065
|
|
48995
49066
|
/**
|
48996
|
-
* Creates a plain object from a
|
49067
|
+
* Creates a plain object from a SCWalletBatch message. Also converts values to other types if specified.
|
48997
49068
|
* @function toObject
|
48998
|
-
* @memberof TW.Ethereum.Proto.Transaction.
|
49069
|
+
* @memberof TW.Ethereum.Proto.Transaction.SCWalletBatch
|
48999
49070
|
* @static
|
49000
|
-
* @param {TW.Ethereum.Proto.Transaction.
|
49071
|
+
* @param {TW.Ethereum.Proto.Transaction.SCWalletBatch} message SCWalletBatch
|
49001
49072
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
49002
49073
|
* @returns {Object.<string,*>} Plain object
|
49003
49074
|
*/
|
49004
|
-
|
49075
|
+
SCWalletBatch.toObject = function toObject(message, options) {
|
49005
49076
|
if (!options)
|
49006
49077
|
options = {};
|
49007
49078
|
var object = {};
|
49008
49079
|
if (options.arrays || options.defaults)
|
49009
49080
|
object.calls = [];
|
49081
|
+
if (options.defaults)
|
49082
|
+
object.walletType = options.enums === String ? "SimpleAccount" : 0;
|
49010
49083
|
if (message.calls && message.calls.length) {
|
49011
49084
|
object.calls = [];
|
49012
49085
|
for (var j = 0; j < message.calls.length; ++j)
|
49013
|
-
object.calls[j] = $root.TW.Ethereum.Proto.Transaction.
|
49086
|
+
object.calls[j] = $root.TW.Ethereum.Proto.Transaction.SCWalletBatch.BatchedCall.toObject(message.calls[j], options);
|
49014
49087
|
}
|
49088
|
+
if (message.walletType != null && message.hasOwnProperty("walletType"))
|
49089
|
+
object.walletType = options.enums === String ? $root.TW.Ethereum.Proto.SCWalletType[message.walletType] : message.walletType;
|
49015
49090
|
return object;
|
49016
49091
|
};
|
49017
49092
|
|
49018
49093
|
/**
|
49019
|
-
* Converts this
|
49094
|
+
* Converts this SCWalletBatch to JSON.
|
49020
49095
|
* @function toJSON
|
49021
|
-
* @memberof TW.Ethereum.Proto.Transaction.
|
49096
|
+
* @memberof TW.Ethereum.Proto.Transaction.SCWalletBatch
|
49022
49097
|
* @instance
|
49023
49098
|
* @returns {Object.<string,*>} JSON object
|
49024
49099
|
*/
|
49025
|
-
|
49100
|
+
SCWalletBatch.prototype.toJSON = function toJSON() {
|
49026
49101
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
49027
49102
|
};
|
49028
49103
|
|
49029
|
-
|
49104
|
+
SCWalletBatch.BatchedCall = (function() {
|
49030
49105
|
|
49031
49106
|
/**
|
49032
49107
|
* Properties of a BatchedCall.
|
49033
|
-
* @memberof TW.Ethereum.Proto.Transaction.
|
49108
|
+
* @memberof TW.Ethereum.Proto.Transaction.SCWalletBatch
|
49034
49109
|
* @interface IBatchedCall
|
49035
49110
|
* @property {string|null} [address] BatchedCall address
|
49036
49111
|
* @property {Uint8Array|null} [amount] BatchedCall amount
|
@@ -49039,11 +49114,11 @@
|
|
49039
49114
|
|
49040
49115
|
/**
|
49041
49116
|
* Constructs a new BatchedCall.
|
49042
|
-
* @memberof TW.Ethereum.Proto.Transaction.
|
49117
|
+
* @memberof TW.Ethereum.Proto.Transaction.SCWalletBatch
|
49043
49118
|
* @classdesc Represents a BatchedCall.
|
49044
49119
|
* @implements IBatchedCall
|
49045
49120
|
* @constructor
|
49046
|
-
* @param {TW.Ethereum.Proto.Transaction.
|
49121
|
+
* @param {TW.Ethereum.Proto.Transaction.SCWalletBatch.IBatchedCall=} [properties] Properties to set
|
49047
49122
|
*/
|
49048
49123
|
function BatchedCall(properties) {
|
49049
49124
|
if (properties)
|
@@ -49055,7 +49130,7 @@
|
|
49055
49130
|
/**
|
49056
49131
|
* BatchedCall address.
|
49057
49132
|
* @member {string} address
|
49058
|
-
* @memberof TW.Ethereum.Proto.Transaction.
|
49133
|
+
* @memberof TW.Ethereum.Proto.Transaction.SCWalletBatch.BatchedCall
|
49059
49134
|
* @instance
|
49060
49135
|
*/
|
49061
49136
|
BatchedCall.prototype.address = "";
|
@@ -49063,7 +49138,7 @@
|
|
49063
49138
|
/**
|
49064
49139
|
* BatchedCall amount.
|
49065
49140
|
* @member {Uint8Array} amount
|
49066
|
-
* @memberof TW.Ethereum.Proto.Transaction.
|
49141
|
+
* @memberof TW.Ethereum.Proto.Transaction.SCWalletBatch.BatchedCall
|
49067
49142
|
* @instance
|
49068
49143
|
*/
|
49069
49144
|
BatchedCall.prototype.amount = $util.newBuffer([]);
|
@@ -49071,7 +49146,7 @@
|
|
49071
49146
|
/**
|
49072
49147
|
* BatchedCall payload.
|
49073
49148
|
* @member {Uint8Array} payload
|
49074
|
-
* @memberof TW.Ethereum.Proto.Transaction.
|
49149
|
+
* @memberof TW.Ethereum.Proto.Transaction.SCWalletBatch.BatchedCall
|
49075
49150
|
* @instance
|
49076
49151
|
*/
|
49077
49152
|
BatchedCall.prototype.payload = $util.newBuffer([]);
|
@@ -49079,21 +49154,21 @@
|
|
49079
49154
|
/**
|
49080
49155
|
* Creates a new BatchedCall instance using the specified properties.
|
49081
49156
|
* @function create
|
49082
|
-
* @memberof TW.Ethereum.Proto.Transaction.
|
49157
|
+
* @memberof TW.Ethereum.Proto.Transaction.SCWalletBatch.BatchedCall
|
49083
49158
|
* @static
|
49084
|
-
* @param {TW.Ethereum.Proto.Transaction.
|
49085
|
-
* @returns {TW.Ethereum.Proto.Transaction.
|
49159
|
+
* @param {TW.Ethereum.Proto.Transaction.SCWalletBatch.IBatchedCall=} [properties] Properties to set
|
49160
|
+
* @returns {TW.Ethereum.Proto.Transaction.SCWalletBatch.BatchedCall} BatchedCall instance
|
49086
49161
|
*/
|
49087
49162
|
BatchedCall.create = function create(properties) {
|
49088
49163
|
return new BatchedCall(properties);
|
49089
49164
|
};
|
49090
49165
|
|
49091
49166
|
/**
|
49092
|
-
* Encodes the specified BatchedCall message. Does not implicitly {@link TW.Ethereum.Proto.Transaction.
|
49167
|
+
* Encodes the specified BatchedCall message. Does not implicitly {@link TW.Ethereum.Proto.Transaction.SCWalletBatch.BatchedCall.verify|verify} messages.
|
49093
49168
|
* @function encode
|
49094
|
-
* @memberof TW.Ethereum.Proto.Transaction.
|
49169
|
+
* @memberof TW.Ethereum.Proto.Transaction.SCWalletBatch.BatchedCall
|
49095
49170
|
* @static
|
49096
|
-
* @param {TW.Ethereum.Proto.Transaction.
|
49171
|
+
* @param {TW.Ethereum.Proto.Transaction.SCWalletBatch.IBatchedCall} message BatchedCall message or plain object to encode
|
49097
49172
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
49098
49173
|
* @returns {$protobuf.Writer} Writer
|
49099
49174
|
*/
|
@@ -49112,18 +49187,18 @@
|
|
49112
49187
|
/**
|
49113
49188
|
* Decodes a BatchedCall message from the specified reader or buffer.
|
49114
49189
|
* @function decode
|
49115
|
-
* @memberof TW.Ethereum.Proto.Transaction.
|
49190
|
+
* @memberof TW.Ethereum.Proto.Transaction.SCWalletBatch.BatchedCall
|
49116
49191
|
* @static
|
49117
49192
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
49118
49193
|
* @param {number} [length] Message length if known beforehand
|
49119
|
-
* @returns {TW.Ethereum.Proto.Transaction.
|
49194
|
+
* @returns {TW.Ethereum.Proto.Transaction.SCWalletBatch.BatchedCall} BatchedCall
|
49120
49195
|
* @throws {Error} If the payload is not a reader or valid buffer
|
49121
49196
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
49122
49197
|
*/
|
49123
49198
|
BatchedCall.decode = function decode(reader, length) {
|
49124
49199
|
if (!(reader instanceof $Reader))
|
49125
49200
|
reader = $Reader.create(reader);
|
49126
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.TW.Ethereum.Proto.Transaction.
|
49201
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.TW.Ethereum.Proto.Transaction.SCWalletBatch.BatchedCall();
|
49127
49202
|
while (reader.pos < end) {
|
49128
49203
|
var tag = reader.uint32();
|
49129
49204
|
switch (tag >>> 3) {
|
@@ -49147,7 +49222,7 @@
|
|
49147
49222
|
/**
|
49148
49223
|
* Verifies a BatchedCall message.
|
49149
49224
|
* @function verify
|
49150
|
-
* @memberof TW.Ethereum.Proto.Transaction.
|
49225
|
+
* @memberof TW.Ethereum.Proto.Transaction.SCWalletBatch.BatchedCall
|
49151
49226
|
* @static
|
49152
49227
|
* @param {Object.<string,*>} message Plain object to verify
|
49153
49228
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
@@ -49170,15 +49245,15 @@
|
|
49170
49245
|
/**
|
49171
49246
|
* Creates a BatchedCall message from a plain object. Also converts values to their respective internal types.
|
49172
49247
|
* @function fromObject
|
49173
|
-
* @memberof TW.Ethereum.Proto.Transaction.
|
49248
|
+
* @memberof TW.Ethereum.Proto.Transaction.SCWalletBatch.BatchedCall
|
49174
49249
|
* @static
|
49175
49250
|
* @param {Object.<string,*>} object Plain object
|
49176
|
-
* @returns {TW.Ethereum.Proto.Transaction.
|
49251
|
+
* @returns {TW.Ethereum.Proto.Transaction.SCWalletBatch.BatchedCall} BatchedCall
|
49177
49252
|
*/
|
49178
49253
|
BatchedCall.fromObject = function fromObject(object) {
|
49179
|
-
if (object instanceof $root.TW.Ethereum.Proto.Transaction.
|
49254
|
+
if (object instanceof $root.TW.Ethereum.Proto.Transaction.SCWalletBatch.BatchedCall)
|
49180
49255
|
return object;
|
49181
|
-
var message = new $root.TW.Ethereum.Proto.Transaction.
|
49256
|
+
var message = new $root.TW.Ethereum.Proto.Transaction.SCWalletBatch.BatchedCall();
|
49182
49257
|
if (object.address != null)
|
49183
49258
|
message.address = String(object.address);
|
49184
49259
|
if (object.amount != null)
|
@@ -49197,9 +49272,9 @@
|
|
49197
49272
|
/**
|
49198
49273
|
* Creates a plain object from a BatchedCall message. Also converts values to other types if specified.
|
49199
49274
|
* @function toObject
|
49200
|
-
* @memberof TW.Ethereum.Proto.Transaction.
|
49275
|
+
* @memberof TW.Ethereum.Proto.Transaction.SCWalletBatch.BatchedCall
|
49201
49276
|
* @static
|
49202
|
-
* @param {TW.Ethereum.Proto.Transaction.
|
49277
|
+
* @param {TW.Ethereum.Proto.Transaction.SCWalletBatch.BatchedCall} message BatchedCall
|
49203
49278
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
49204
49279
|
* @returns {Object.<string,*>} Plain object
|
49205
49280
|
*/
|
@@ -49236,7 +49311,7 @@
|
|
49236
49311
|
/**
|
49237
49312
|
* Converts this BatchedCall to JSON.
|
49238
49313
|
* @function toJSON
|
49239
|
-
* @memberof TW.Ethereum.Proto.Transaction.
|
49314
|
+
* @memberof TW.Ethereum.Proto.Transaction.SCWalletBatch.BatchedCall
|
49240
49315
|
* @instance
|
49241
49316
|
* @returns {Object.<string,*>} JSON object
|
49242
49317
|
*/
|
@@ -49247,7 +49322,211 @@
|
|
49247
49322
|
return BatchedCall;
|
49248
49323
|
})();
|
49249
49324
|
|
49250
|
-
return
|
49325
|
+
return SCWalletBatch;
|
49326
|
+
})();
|
49327
|
+
|
49328
|
+
Transaction.SCWalletExecute = (function() {
|
49329
|
+
|
49330
|
+
/**
|
49331
|
+
* Properties of a SCWalletExecute.
|
49332
|
+
* @memberof TW.Ethereum.Proto.Transaction
|
49333
|
+
* @interface ISCWalletExecute
|
49334
|
+
* @property {TW.Ethereum.Proto.ITransaction|null} [transaction] SCWalletExecute transaction
|
49335
|
+
* @property {TW.Ethereum.Proto.SCWalletType|null} [walletType] SCWalletExecute walletType
|
49336
|
+
*/
|
49337
|
+
|
49338
|
+
/**
|
49339
|
+
* Constructs a new SCWalletExecute.
|
49340
|
+
* @memberof TW.Ethereum.Proto.Transaction
|
49341
|
+
* @classdesc Represents a SCWalletExecute.
|
49342
|
+
* @implements ISCWalletExecute
|
49343
|
+
* @constructor
|
49344
|
+
* @param {TW.Ethereum.Proto.Transaction.ISCWalletExecute=} [properties] Properties to set
|
49345
|
+
*/
|
49346
|
+
function SCWalletExecute(properties) {
|
49347
|
+
if (properties)
|
49348
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
49349
|
+
if (properties[keys[i]] != null)
|
49350
|
+
this[keys[i]] = properties[keys[i]];
|
49351
|
+
}
|
49352
|
+
|
49353
|
+
/**
|
49354
|
+
* SCWalletExecute transaction.
|
49355
|
+
* @member {TW.Ethereum.Proto.ITransaction|null|undefined} transaction
|
49356
|
+
* @memberof TW.Ethereum.Proto.Transaction.SCWalletExecute
|
49357
|
+
* @instance
|
49358
|
+
*/
|
49359
|
+
SCWalletExecute.prototype.transaction = null;
|
49360
|
+
|
49361
|
+
/**
|
49362
|
+
* SCWalletExecute walletType.
|
49363
|
+
* @member {TW.Ethereum.Proto.SCWalletType} walletType
|
49364
|
+
* @memberof TW.Ethereum.Proto.Transaction.SCWalletExecute
|
49365
|
+
* @instance
|
49366
|
+
*/
|
49367
|
+
SCWalletExecute.prototype.walletType = 0;
|
49368
|
+
|
49369
|
+
/**
|
49370
|
+
* Creates a new SCWalletExecute instance using the specified properties.
|
49371
|
+
* @function create
|
49372
|
+
* @memberof TW.Ethereum.Proto.Transaction.SCWalletExecute
|
49373
|
+
* @static
|
49374
|
+
* @param {TW.Ethereum.Proto.Transaction.ISCWalletExecute=} [properties] Properties to set
|
49375
|
+
* @returns {TW.Ethereum.Proto.Transaction.SCWalletExecute} SCWalletExecute instance
|
49376
|
+
*/
|
49377
|
+
SCWalletExecute.create = function create(properties) {
|
49378
|
+
return new SCWalletExecute(properties);
|
49379
|
+
};
|
49380
|
+
|
49381
|
+
/**
|
49382
|
+
* Encodes the specified SCWalletExecute message. Does not implicitly {@link TW.Ethereum.Proto.Transaction.SCWalletExecute.verify|verify} messages.
|
49383
|
+
* @function encode
|
49384
|
+
* @memberof TW.Ethereum.Proto.Transaction.SCWalletExecute
|
49385
|
+
* @static
|
49386
|
+
* @param {TW.Ethereum.Proto.Transaction.ISCWalletExecute} message SCWalletExecute message or plain object to encode
|
49387
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
49388
|
+
* @returns {$protobuf.Writer} Writer
|
49389
|
+
*/
|
49390
|
+
SCWalletExecute.encode = function encode(message, writer) {
|
49391
|
+
if (!writer)
|
49392
|
+
writer = $Writer.create();
|
49393
|
+
if (message.transaction != null && Object.hasOwnProperty.call(message, "transaction"))
|
49394
|
+
$root.TW.Ethereum.Proto.Transaction.encode(message.transaction, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
49395
|
+
if (message.walletType != null && Object.hasOwnProperty.call(message, "walletType"))
|
49396
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.walletType);
|
49397
|
+
return writer;
|
49398
|
+
};
|
49399
|
+
|
49400
|
+
/**
|
49401
|
+
* Decodes a SCWalletExecute message from the specified reader or buffer.
|
49402
|
+
* @function decode
|
49403
|
+
* @memberof TW.Ethereum.Proto.Transaction.SCWalletExecute
|
49404
|
+
* @static
|
49405
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
49406
|
+
* @param {number} [length] Message length if known beforehand
|
49407
|
+
* @returns {TW.Ethereum.Proto.Transaction.SCWalletExecute} SCWalletExecute
|
49408
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
49409
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
49410
|
+
*/
|
49411
|
+
SCWalletExecute.decode = function decode(reader, length) {
|
49412
|
+
if (!(reader instanceof $Reader))
|
49413
|
+
reader = $Reader.create(reader);
|
49414
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.TW.Ethereum.Proto.Transaction.SCWalletExecute();
|
49415
|
+
while (reader.pos < end) {
|
49416
|
+
var tag = reader.uint32();
|
49417
|
+
switch (tag >>> 3) {
|
49418
|
+
case 1:
|
49419
|
+
message.transaction = $root.TW.Ethereum.Proto.Transaction.decode(reader, reader.uint32());
|
49420
|
+
break;
|
49421
|
+
case 2:
|
49422
|
+
message.walletType = reader.int32();
|
49423
|
+
break;
|
49424
|
+
default:
|
49425
|
+
reader.skipType(tag & 7);
|
49426
|
+
break;
|
49427
|
+
}
|
49428
|
+
}
|
49429
|
+
return message;
|
49430
|
+
};
|
49431
|
+
|
49432
|
+
/**
|
49433
|
+
* Verifies a SCWalletExecute message.
|
49434
|
+
* @function verify
|
49435
|
+
* @memberof TW.Ethereum.Proto.Transaction.SCWalletExecute
|
49436
|
+
* @static
|
49437
|
+
* @param {Object.<string,*>} message Plain object to verify
|
49438
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
49439
|
+
*/
|
49440
|
+
SCWalletExecute.verify = function verify(message) {
|
49441
|
+
if (typeof message !== "object" || message === null)
|
49442
|
+
return "object expected";
|
49443
|
+
if (message.transaction != null && message.hasOwnProperty("transaction")) {
|
49444
|
+
var error = $root.TW.Ethereum.Proto.Transaction.verify(message.transaction);
|
49445
|
+
if (error)
|
49446
|
+
return "transaction." + error;
|
49447
|
+
}
|
49448
|
+
if (message.walletType != null && message.hasOwnProperty("walletType"))
|
49449
|
+
switch (message.walletType) {
|
49450
|
+
default:
|
49451
|
+
return "walletType: enum value expected";
|
49452
|
+
case 0:
|
49453
|
+
case 1:
|
49454
|
+
case 2:
|
49455
|
+
break;
|
49456
|
+
}
|
49457
|
+
return null;
|
49458
|
+
};
|
49459
|
+
|
49460
|
+
/**
|
49461
|
+
* Creates a SCWalletExecute message from a plain object. Also converts values to their respective internal types.
|
49462
|
+
* @function fromObject
|
49463
|
+
* @memberof TW.Ethereum.Proto.Transaction.SCWalletExecute
|
49464
|
+
* @static
|
49465
|
+
* @param {Object.<string,*>} object Plain object
|
49466
|
+
* @returns {TW.Ethereum.Proto.Transaction.SCWalletExecute} SCWalletExecute
|
49467
|
+
*/
|
49468
|
+
SCWalletExecute.fromObject = function fromObject(object) {
|
49469
|
+
if (object instanceof $root.TW.Ethereum.Proto.Transaction.SCWalletExecute)
|
49470
|
+
return object;
|
49471
|
+
var message = new $root.TW.Ethereum.Proto.Transaction.SCWalletExecute();
|
49472
|
+
if (object.transaction != null) {
|
49473
|
+
if (typeof object.transaction !== "object")
|
49474
|
+
throw TypeError(".TW.Ethereum.Proto.Transaction.SCWalletExecute.transaction: object expected");
|
49475
|
+
message.transaction = $root.TW.Ethereum.Proto.Transaction.fromObject(object.transaction);
|
49476
|
+
}
|
49477
|
+
switch (object.walletType) {
|
49478
|
+
case "SimpleAccount":
|
49479
|
+
case 0:
|
49480
|
+
message.walletType = 0;
|
49481
|
+
break;
|
49482
|
+
case "Biz4337":
|
49483
|
+
case 1:
|
49484
|
+
message.walletType = 1;
|
49485
|
+
break;
|
49486
|
+
case "Biz":
|
49487
|
+
case 2:
|
49488
|
+
message.walletType = 2;
|
49489
|
+
break;
|
49490
|
+
}
|
49491
|
+
return message;
|
49492
|
+
};
|
49493
|
+
|
49494
|
+
/**
|
49495
|
+
* Creates a plain object from a SCWalletExecute message. Also converts values to other types if specified.
|
49496
|
+
* @function toObject
|
49497
|
+
* @memberof TW.Ethereum.Proto.Transaction.SCWalletExecute
|
49498
|
+
* @static
|
49499
|
+
* @param {TW.Ethereum.Proto.Transaction.SCWalletExecute} message SCWalletExecute
|
49500
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
49501
|
+
* @returns {Object.<string,*>} Plain object
|
49502
|
+
*/
|
49503
|
+
SCWalletExecute.toObject = function toObject(message, options) {
|
49504
|
+
if (!options)
|
49505
|
+
options = {};
|
49506
|
+
var object = {};
|
49507
|
+
if (options.defaults) {
|
49508
|
+
object.transaction = null;
|
49509
|
+
object.walletType = options.enums === String ? "SimpleAccount" : 0;
|
49510
|
+
}
|
49511
|
+
if (message.transaction != null && message.hasOwnProperty("transaction"))
|
49512
|
+
object.transaction = $root.TW.Ethereum.Proto.Transaction.toObject(message.transaction, options);
|
49513
|
+
if (message.walletType != null && message.hasOwnProperty("walletType"))
|
49514
|
+
object.walletType = options.enums === String ? $root.TW.Ethereum.Proto.SCWalletType[message.walletType] : message.walletType;
|
49515
|
+
return object;
|
49516
|
+
};
|
49517
|
+
|
49518
|
+
/**
|
49519
|
+
* Converts this SCWalletExecute to JSON.
|
49520
|
+
* @function toJSON
|
49521
|
+
* @memberof TW.Ethereum.Proto.Transaction.SCWalletExecute
|
49522
|
+
* @instance
|
49523
|
+
* @returns {Object.<string,*>} JSON object
|
49524
|
+
*/
|
49525
|
+
SCWalletExecute.prototype.toJSON = function toJSON() {
|
49526
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
49527
|
+
};
|
49528
|
+
|
49529
|
+
return SCWalletExecute;
|
49251
49530
|
})();
|
49252
49531
|
|
49253
49532
|
return Transaction;
|
@@ -50346,14 +50625,14 @@
|
|
50346
50625
|
})();
|
50347
50626
|
|
50348
50627
|
/**
|
50349
|
-
*
|
50350
|
-
* @name TW.Ethereum.Proto.
|
50628
|
+
* SCWalletType enum.
|
50629
|
+
* @name TW.Ethereum.Proto.SCWalletType
|
50351
50630
|
* @enum {number}
|
50352
50631
|
* @property {number} SimpleAccount=0 SimpleAccount value
|
50353
50632
|
* @property {number} Biz4337=1 Biz4337 value
|
50354
50633
|
* @property {number} Biz=2 Biz value
|
50355
50634
|
*/
|
50356
|
-
Proto.
|
50635
|
+
Proto.SCWalletType = (function() {
|
50357
50636
|
var valuesById = {}, values = Object.create(valuesById);
|
50358
50637
|
values[valuesById[0] = "SimpleAccount"] = 0;
|
50359
50638
|
values[valuesById[1] = "Biz4337"] = 1;
|
@@ -50380,7 +50659,6 @@
|
|
50380
50659
|
* @property {TW.Ethereum.Proto.IUserOperation|null} [userOperation] SigningInput userOperation
|
50381
50660
|
* @property {TW.Ethereum.Proto.IUserOperationV0_7|null} [userOperationV0_7] SigningInput userOperationV0_7
|
50382
50661
|
* @property {Array.<TW.Ethereum.Proto.IAccess>|null} [accessList] SigningInput accessList
|
50383
|
-
* @property {TW.Ethereum.Proto.SCAccountType|null} [userOperationMode] SigningInput userOperationMode
|
50384
50662
|
* @property {TW.Ethereum.Proto.IAuthority|null} [eip7702Authority] SigningInput eip7702Authority
|
50385
50663
|
*/
|
50386
50664
|
|
@@ -50504,14 +50782,6 @@
|
|
50504
50782
|
*/
|
50505
50783
|
SigningInput.prototype.accessList = $util.emptyArray;
|
50506
50784
|
|
50507
|
-
/**
|
50508
|
-
* SigningInput userOperationMode.
|
50509
|
-
* @member {TW.Ethereum.Proto.SCAccountType} userOperationMode
|
50510
|
-
* @memberof TW.Ethereum.Proto.SigningInput
|
50511
|
-
* @instance
|
50512
|
-
*/
|
50513
|
-
SigningInput.prototype.userOperationMode = 0;
|
50514
|
-
|
50515
50785
|
/**
|
50516
50786
|
* SigningInput eip7702Authority.
|
50517
50787
|
* @member {TW.Ethereum.Proto.IAuthority|null|undefined} eip7702Authority
|
@@ -50585,8 +50855,6 @@
|
|
50585
50855
|
$root.TW.Ethereum.Proto.Access.encode(message.accessList[i], writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim();
|
50586
50856
|
if (message.userOperationV0_7 != null && Object.hasOwnProperty.call(message, "userOperationV0_7"))
|
50587
50857
|
$root.TW.Ethereum.Proto.UserOperationV0_7.encode(message.userOperationV0_7, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim();
|
50588
|
-
if (message.userOperationMode != null && Object.hasOwnProperty.call(message, "userOperationMode"))
|
50589
|
-
writer.uint32(/* id 14, wireType 0 =*/112).int32(message.userOperationMode);
|
50590
50858
|
if (message.eip7702Authority != null && Object.hasOwnProperty.call(message, "eip7702Authority"))
|
50591
50859
|
$root.TW.Ethereum.Proto.Authority.encode(message.eip7702Authority, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim();
|
50592
50860
|
return writer;
|
@@ -50651,9 +50919,6 @@
|
|
50651
50919
|
message.accessList = [];
|
50652
50920
|
message.accessList.push($root.TW.Ethereum.Proto.Access.decode(reader, reader.uint32()));
|
50653
50921
|
break;
|
50654
|
-
case 14:
|
50655
|
-
message.userOperationMode = reader.int32();
|
50656
|
-
break;
|
50657
50922
|
case 15:
|
50658
50923
|
message.eip7702Authority = $root.TW.Ethereum.Proto.Authority.decode(reader, reader.uint32());
|
50659
50924
|
break;
|
@@ -50743,15 +51008,6 @@
|
|
50743
51008
|
return "accessList." + error;
|
50744
51009
|
}
|
50745
51010
|
}
|
50746
|
-
if (message.userOperationMode != null && message.hasOwnProperty("userOperationMode"))
|
50747
|
-
switch (message.userOperationMode) {
|
50748
|
-
default:
|
50749
|
-
return "userOperationMode: enum value expected";
|
50750
|
-
case 0:
|
50751
|
-
case 1:
|
50752
|
-
case 2:
|
50753
|
-
break;
|
50754
|
-
}
|
50755
51011
|
if (message.eip7702Authority != null && message.hasOwnProperty("eip7702Authority")) {
|
50756
51012
|
var error = $root.TW.Ethereum.Proto.Authority.verify(message.eip7702Authority);
|
50757
51013
|
if (error)
|
@@ -50852,20 +51108,6 @@
|
|
50852
51108
|
message.accessList[i] = $root.TW.Ethereum.Proto.Access.fromObject(object.accessList[i]);
|
50853
51109
|
}
|
50854
51110
|
}
|
50855
|
-
switch (object.userOperationMode) {
|
50856
|
-
case "SimpleAccount":
|
50857
|
-
case 0:
|
50858
|
-
message.userOperationMode = 0;
|
50859
|
-
break;
|
50860
|
-
case "Biz4337":
|
50861
|
-
case 1:
|
50862
|
-
message.userOperationMode = 1;
|
50863
|
-
break;
|
50864
|
-
case "Biz":
|
50865
|
-
case 2:
|
50866
|
-
message.userOperationMode = 2;
|
50867
|
-
break;
|
50868
|
-
}
|
50869
51111
|
if (object.eip7702Authority != null) {
|
50870
51112
|
if (typeof object.eip7702Authority !== "object")
|
50871
51113
|
throw TypeError(".TW.Ethereum.Proto.SigningInput.eip7702Authority: object expected");
|
@@ -50942,7 +51184,6 @@
|
|
50942
51184
|
object.privateKey = $util.newBuffer(object.privateKey);
|
50943
51185
|
}
|
50944
51186
|
object.transaction = null;
|
50945
|
-
object.userOperationMode = options.enums === String ? "SimpleAccount" : 0;
|
50946
51187
|
object.eip7702Authority = null;
|
50947
51188
|
}
|
50948
51189
|
if (message.chainId != null && message.hasOwnProperty("chainId"))
|
@@ -50980,8 +51221,6 @@
|
|
50980
51221
|
if (options.oneofs)
|
50981
51222
|
object.userOperationOneof = "userOperationV0_7";
|
50982
51223
|
}
|
50983
|
-
if (message.userOperationMode != null && message.hasOwnProperty("userOperationMode"))
|
50984
|
-
object.userOperationMode = options.enums === String ? $root.TW.Ethereum.Proto.SCAccountType[message.userOperationMode] : message.userOperationMode;
|
50985
51224
|
if (message.eip7702Authority != null && message.hasOwnProperty("eip7702Authority"))
|
50986
51225
|
object.eip7702Authority = $root.TW.Ethereum.Proto.Authority.toObject(message.eip7702Authority, options);
|
50987
51226
|
return object;
|
package/dist/lib/wallet-core.js
CHANGED
@@ -36,7 +36,7 @@ function $a(a,b){var c=M;return sa||"function"!=typeof WebAssembly.instantiateSt
|
|
36
36
|
function z(a,b){Object.getOwnPropertyDescriptor(g,a)||Object.defineProperty(g,a,{configurable:!0,get:function(){n("Module."+a+" has been replaced with plain "+b+" (the initial value can be provided on Module, but after startup the value is only looked for on a local variable of that name)")}})}
|
37
37
|
function cb(a){return"FS_createPath"===a||"FS_createDataFile"===a||"FS_createPreloadedFile"===a||"FS_unlink"===a||"addRunDependency"===a||"FS_createLazyFile"===a||"FS_createDevice"===a||"removeRunDependency"===a}(function(a,b){"undefined"!==typeof globalThis&&Object.defineProperty(globalThis,a,{configurable:!0,get:function(){ya("`"+a+"` is not longer defined by emscripten. "+b)}})})("buffer","Please use HEAP8.buffer or wasmMemory.buffer");
|
38
38
|
function db(a){Object.getOwnPropertyDescriptor(g,a)||Object.defineProperty(g,a,{configurable:!0,get:function(){var b="'"+a+"' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)";cb(a)&&(b+=". Alternatively, forcing filesystem support (-sFORCE_FILESYSTEM) can export this for you");n(b)}})}
|
39
|
-
var eb={
|
39
|
+
var eb={2181780:()=>{if(void 0===g.fa)try{var a="object"===typeof window?window:self,b="undefined"!==typeof a.crypto?a.crypto:a.msCrypto;a=function(){var d=new Uint32Array(1);b.getRandomValues(d);return d[0]>>>0};a();g.fa=a}catch(d){try{var c=require("crypto");a=function(){var e=c.randomBytes(4);return(e[0]<<24|e[1]<<16|e[2]<<8|e[3])>>>0};a();g.fa=a}catch(e){throw"No secure random number generator found";}}},2182502:()=>g.fa()};
|
40
40
|
function qa(a){this.name="ExitStatus";this.message="Program terminated with exit("+a+")";this.status=a}function fb(a){for(;0<a.length;)a.shift()(g)}function za(a){assert("number"===typeof a);return"0x"+a.toString(16).padStart(8,"0")}function ya(a){gb||(gb={});gb[a]||(gb[a]=1,w&&(a="warning: "+a),y(a))}var gb,hb=[];function ib(a){var b=hb[a];b||(a>=hb.length&&(hb.length=a+1),hb[a]=b=Ha.get(a));assert(Ha.get(a)==b,"JavaScript-side Wasm function table mirror is out of date!");return b}
|
41
41
|
function jb(a){this.l=a-24;this.Oa=function(b){G[this.l+4>>2]=b};this.Ja=function(b){G[this.l+8>>2]=b};this.Ka=function(){F[this.l>>2]=0};this.Ea=function(){D[this.l+12>>0]=0};this.La=function(){D[this.l+13>>0]=0};this.I=function(b,c){this.Da();this.Oa(b);this.Ja(c);this.Ka();this.Ea();this.La()};this.Da=function(){G[this.l+16>>2]=0}}
|
42
42
|
var kb=0,lb=(a,b)=>{for(var c=0,d=a.length-1;0<=d;d--){var e=a[d];"."===e?a.splice(d,1):".."===e?(a.splice(d,1),c++):c&&(a.splice(d,1),c--)}if(b)for(;c;c--)a.unshift("..");return a},mb=a=>{var b="/"===a.charAt(0),c="/"===a.substr(-1);(a=lb(a.split("/").filter(d=>!!d),!b).join("/"))||b||(a=".");a&&c&&(a+="/");return(b?"/":"")+a},nb=a=>{var b=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(a).slice(1);a=b[0];b=b[1];if(!a&&!b)return".";b&&(b=b.substr(0,b.length-1));return a+b},ob=
|
Binary file
|