@trustwallet/wallet-core 2.9.5 → 2.9.8
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 +312 -3
- package/dist/generated/core_proto.js +1073 -151
- package/dist/index.d.ts +2 -3
- package/dist/index.js +16 -7
- package/dist/lib/wallet-core.d.ts +395 -381
- package/dist/lib/wallet-core.js +69 -69
- package/dist/lib/wallet-core.wasm +0 -0
- package/package.json +6 -4
@@ -5496,6 +5496,15 @@ export namespace TW {
|
|
5496
5496
|
|
5497
5497
|
/** Message wasmTerraExecuteContractGeneric */
|
5498
5498
|
wasmTerraExecuteContractGeneric?: (TW.Cosmos.Proto.Message.IWasmTerraExecuteContractGeneric|null);
|
5499
|
+
|
5500
|
+
/** Message wasmExecuteContractTransferMessage */
|
5501
|
+
wasmExecuteContractTransferMessage?: (TW.Cosmos.Proto.Message.IWasmExecuteContractTransfer|null);
|
5502
|
+
|
5503
|
+
/** Message wasmExecuteContractSendMessage */
|
5504
|
+
wasmExecuteContractSendMessage?: (TW.Cosmos.Proto.Message.IWasmExecuteContractSend|null);
|
5505
|
+
|
5506
|
+
/** Message wasmExecuteContractGeneric */
|
5507
|
+
wasmExecuteContractGeneric?: (TW.Cosmos.Proto.Message.IWasmExecuteContractGeneric|null);
|
5499
5508
|
}
|
5500
5509
|
|
5501
5510
|
/** Represents a Message. */
|
@@ -5540,8 +5549,17 @@ export namespace TW {
|
|
5540
5549
|
/** Message wasmTerraExecuteContractGeneric. */
|
5541
5550
|
public wasmTerraExecuteContractGeneric?: (TW.Cosmos.Proto.Message.IWasmTerraExecuteContractGeneric|null);
|
5542
5551
|
|
5552
|
+
/** Message wasmExecuteContractTransferMessage. */
|
5553
|
+
public wasmExecuteContractTransferMessage?: (TW.Cosmos.Proto.Message.IWasmExecuteContractTransfer|null);
|
5554
|
+
|
5555
|
+
/** Message wasmExecuteContractSendMessage. */
|
5556
|
+
public wasmExecuteContractSendMessage?: (TW.Cosmos.Proto.Message.IWasmExecuteContractSend|null);
|
5557
|
+
|
5558
|
+
/** Message wasmExecuteContractGeneric. */
|
5559
|
+
public wasmExecuteContractGeneric?: (TW.Cosmos.Proto.Message.IWasmExecuteContractGeneric|null);
|
5560
|
+
|
5543
5561
|
/** Message messageOneof. */
|
5544
|
-
public messageOneof?: ("sendCoinsMessage"|"transferTokensMessage"|"stakeMessage"|"unstakeMessage"|"restakeMessage"|"withdrawStakeRewardMessage"|"rawJsonMessage"|"wasmTerraExecuteContractTransferMessage"|"wasmTerraExecuteContractSendMessage"|"thorchainSendMessage"|"wasmTerraExecuteContractGeneric");
|
5562
|
+
public messageOneof?: ("sendCoinsMessage"|"transferTokensMessage"|"stakeMessage"|"unstakeMessage"|"restakeMessage"|"withdrawStakeRewardMessage"|"rawJsonMessage"|"wasmTerraExecuteContractTransferMessage"|"wasmTerraExecuteContractSendMessage"|"thorchainSendMessage"|"wasmTerraExecuteContractGeneric"|"wasmExecuteContractTransferMessage"|"wasmExecuteContractSendMessage"|"wasmExecuteContractGeneric");
|
5545
5563
|
|
5546
5564
|
/**
|
5547
5565
|
* Creates a new Message instance using the specified properties.
|
@@ -6533,6 +6551,291 @@ export namespace TW {
|
|
6533
6551
|
public toJSON(): { [k: string]: any };
|
6534
6552
|
}
|
6535
6553
|
|
6554
|
+
/** Properties of a WasmExecuteContractTransfer. */
|
6555
|
+
interface IWasmExecuteContractTransfer {
|
6556
|
+
|
6557
|
+
/** WasmExecuteContractTransfer senderAddress */
|
6558
|
+
senderAddress?: (string|null);
|
6559
|
+
|
6560
|
+
/** WasmExecuteContractTransfer contractAddress */
|
6561
|
+
contractAddress?: (string|null);
|
6562
|
+
|
6563
|
+
/** WasmExecuteContractTransfer amount */
|
6564
|
+
amount?: (Uint8Array|null);
|
6565
|
+
|
6566
|
+
/** WasmExecuteContractTransfer recipientAddress */
|
6567
|
+
recipientAddress?: (string|null);
|
6568
|
+
}
|
6569
|
+
|
6570
|
+
/** Represents a WasmExecuteContractTransfer. */
|
6571
|
+
class WasmExecuteContractTransfer implements IWasmExecuteContractTransfer {
|
6572
|
+
|
6573
|
+
/**
|
6574
|
+
* Constructs a new WasmExecuteContractTransfer.
|
6575
|
+
* @param [properties] Properties to set
|
6576
|
+
*/
|
6577
|
+
constructor(properties?: TW.Cosmos.Proto.Message.IWasmExecuteContractTransfer);
|
6578
|
+
|
6579
|
+
/** WasmExecuteContractTransfer senderAddress. */
|
6580
|
+
public senderAddress: string;
|
6581
|
+
|
6582
|
+
/** WasmExecuteContractTransfer contractAddress. */
|
6583
|
+
public contractAddress: string;
|
6584
|
+
|
6585
|
+
/** WasmExecuteContractTransfer amount. */
|
6586
|
+
public amount: Uint8Array;
|
6587
|
+
|
6588
|
+
/** WasmExecuteContractTransfer recipientAddress. */
|
6589
|
+
public recipientAddress: string;
|
6590
|
+
|
6591
|
+
/**
|
6592
|
+
* Creates a new WasmExecuteContractTransfer instance using the specified properties.
|
6593
|
+
* @param [properties] Properties to set
|
6594
|
+
* @returns WasmExecuteContractTransfer instance
|
6595
|
+
*/
|
6596
|
+
public static create(properties?: TW.Cosmos.Proto.Message.IWasmExecuteContractTransfer): TW.Cosmos.Proto.Message.WasmExecuteContractTransfer;
|
6597
|
+
|
6598
|
+
/**
|
6599
|
+
* Encodes the specified WasmExecuteContractTransfer message. Does not implicitly {@link TW.Cosmos.Proto.Message.WasmExecuteContractTransfer.verify|verify} messages.
|
6600
|
+
* @param message WasmExecuteContractTransfer message or plain object to encode
|
6601
|
+
* @param [writer] Writer to encode to
|
6602
|
+
* @returns Writer
|
6603
|
+
*/
|
6604
|
+
public static encode(message: TW.Cosmos.Proto.Message.IWasmExecuteContractTransfer, writer?: $protobuf.Writer): $protobuf.Writer;
|
6605
|
+
|
6606
|
+
/**
|
6607
|
+
* Decodes a WasmExecuteContractTransfer message from the specified reader or buffer.
|
6608
|
+
* @param reader Reader or buffer to decode from
|
6609
|
+
* @param [length] Message length if known beforehand
|
6610
|
+
* @returns WasmExecuteContractTransfer
|
6611
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
6612
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
6613
|
+
*/
|
6614
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Cosmos.Proto.Message.WasmExecuteContractTransfer;
|
6615
|
+
|
6616
|
+
/**
|
6617
|
+
* Verifies a WasmExecuteContractTransfer message.
|
6618
|
+
* @param message Plain object to verify
|
6619
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
6620
|
+
*/
|
6621
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
6622
|
+
|
6623
|
+
/**
|
6624
|
+
* Creates a WasmExecuteContractTransfer message from a plain object. Also converts values to their respective internal types.
|
6625
|
+
* @param object Plain object
|
6626
|
+
* @returns WasmExecuteContractTransfer
|
6627
|
+
*/
|
6628
|
+
public static fromObject(object: { [k: string]: any }): TW.Cosmos.Proto.Message.WasmExecuteContractTransfer;
|
6629
|
+
|
6630
|
+
/**
|
6631
|
+
* Creates a plain object from a WasmExecuteContractTransfer message. Also converts values to other types if specified.
|
6632
|
+
* @param message WasmExecuteContractTransfer
|
6633
|
+
* @param [options] Conversion options
|
6634
|
+
* @returns Plain object
|
6635
|
+
*/
|
6636
|
+
public static toObject(message: TW.Cosmos.Proto.Message.WasmExecuteContractTransfer, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
6637
|
+
|
6638
|
+
/**
|
6639
|
+
* Converts this WasmExecuteContractTransfer to JSON.
|
6640
|
+
* @returns JSON object
|
6641
|
+
*/
|
6642
|
+
public toJSON(): { [k: string]: any };
|
6643
|
+
}
|
6644
|
+
|
6645
|
+
/** Properties of a WasmExecuteContractSend. */
|
6646
|
+
interface IWasmExecuteContractSend {
|
6647
|
+
|
6648
|
+
/** WasmExecuteContractSend senderAddress */
|
6649
|
+
senderAddress?: (string|null);
|
6650
|
+
|
6651
|
+
/** WasmExecuteContractSend contractAddress */
|
6652
|
+
contractAddress?: (string|null);
|
6653
|
+
|
6654
|
+
/** WasmExecuteContractSend amount */
|
6655
|
+
amount?: (Uint8Array|null);
|
6656
|
+
|
6657
|
+
/** WasmExecuteContractSend recipientContractAddress */
|
6658
|
+
recipientContractAddress?: (string|null);
|
6659
|
+
|
6660
|
+
/** WasmExecuteContractSend msg */
|
6661
|
+
msg?: (string|null);
|
6662
|
+
|
6663
|
+
/** WasmExecuteContractSend coin */
|
6664
|
+
coin?: (string[]|null);
|
6665
|
+
}
|
6666
|
+
|
6667
|
+
/** Represents a WasmExecuteContractSend. */
|
6668
|
+
class WasmExecuteContractSend implements IWasmExecuteContractSend {
|
6669
|
+
|
6670
|
+
/**
|
6671
|
+
* Constructs a new WasmExecuteContractSend.
|
6672
|
+
* @param [properties] Properties to set
|
6673
|
+
*/
|
6674
|
+
constructor(properties?: TW.Cosmos.Proto.Message.IWasmExecuteContractSend);
|
6675
|
+
|
6676
|
+
/** WasmExecuteContractSend senderAddress. */
|
6677
|
+
public senderAddress: string;
|
6678
|
+
|
6679
|
+
/** WasmExecuteContractSend contractAddress. */
|
6680
|
+
public contractAddress: string;
|
6681
|
+
|
6682
|
+
/** WasmExecuteContractSend amount. */
|
6683
|
+
public amount: Uint8Array;
|
6684
|
+
|
6685
|
+
/** WasmExecuteContractSend recipientContractAddress. */
|
6686
|
+
public recipientContractAddress: string;
|
6687
|
+
|
6688
|
+
/** WasmExecuteContractSend msg. */
|
6689
|
+
public msg: string;
|
6690
|
+
|
6691
|
+
/** WasmExecuteContractSend coin. */
|
6692
|
+
public coin: string[];
|
6693
|
+
|
6694
|
+
/**
|
6695
|
+
* Creates a new WasmExecuteContractSend instance using the specified properties.
|
6696
|
+
* @param [properties] Properties to set
|
6697
|
+
* @returns WasmExecuteContractSend instance
|
6698
|
+
*/
|
6699
|
+
public static create(properties?: TW.Cosmos.Proto.Message.IWasmExecuteContractSend): TW.Cosmos.Proto.Message.WasmExecuteContractSend;
|
6700
|
+
|
6701
|
+
/**
|
6702
|
+
* Encodes the specified WasmExecuteContractSend message. Does not implicitly {@link TW.Cosmos.Proto.Message.WasmExecuteContractSend.verify|verify} messages.
|
6703
|
+
* @param message WasmExecuteContractSend message or plain object to encode
|
6704
|
+
* @param [writer] Writer to encode to
|
6705
|
+
* @returns Writer
|
6706
|
+
*/
|
6707
|
+
public static encode(message: TW.Cosmos.Proto.Message.IWasmExecuteContractSend, writer?: $protobuf.Writer): $protobuf.Writer;
|
6708
|
+
|
6709
|
+
/**
|
6710
|
+
* Decodes a WasmExecuteContractSend message from the specified reader or buffer.
|
6711
|
+
* @param reader Reader or buffer to decode from
|
6712
|
+
* @param [length] Message length if known beforehand
|
6713
|
+
* @returns WasmExecuteContractSend
|
6714
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
6715
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
6716
|
+
*/
|
6717
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Cosmos.Proto.Message.WasmExecuteContractSend;
|
6718
|
+
|
6719
|
+
/**
|
6720
|
+
* Verifies a WasmExecuteContractSend message.
|
6721
|
+
* @param message Plain object to verify
|
6722
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
6723
|
+
*/
|
6724
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
6725
|
+
|
6726
|
+
/**
|
6727
|
+
* Creates a WasmExecuteContractSend message from a plain object. Also converts values to their respective internal types.
|
6728
|
+
* @param object Plain object
|
6729
|
+
* @returns WasmExecuteContractSend
|
6730
|
+
*/
|
6731
|
+
public static fromObject(object: { [k: string]: any }): TW.Cosmos.Proto.Message.WasmExecuteContractSend;
|
6732
|
+
|
6733
|
+
/**
|
6734
|
+
* Creates a plain object from a WasmExecuteContractSend message. Also converts values to other types if specified.
|
6735
|
+
* @param message WasmExecuteContractSend
|
6736
|
+
* @param [options] Conversion options
|
6737
|
+
* @returns Plain object
|
6738
|
+
*/
|
6739
|
+
public static toObject(message: TW.Cosmos.Proto.Message.WasmExecuteContractSend, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
6740
|
+
|
6741
|
+
/**
|
6742
|
+
* Converts this WasmExecuteContractSend to JSON.
|
6743
|
+
* @returns JSON object
|
6744
|
+
*/
|
6745
|
+
public toJSON(): { [k: string]: any };
|
6746
|
+
}
|
6747
|
+
|
6748
|
+
/** Properties of a WasmExecuteContractGeneric. */
|
6749
|
+
interface IWasmExecuteContractGeneric {
|
6750
|
+
|
6751
|
+
/** WasmExecuteContractGeneric senderAddress */
|
6752
|
+
senderAddress?: (string|null);
|
6753
|
+
|
6754
|
+
/** WasmExecuteContractGeneric contractAddress */
|
6755
|
+
contractAddress?: (string|null);
|
6756
|
+
|
6757
|
+
/** WasmExecuteContractGeneric executeMsg */
|
6758
|
+
executeMsg?: (string|null);
|
6759
|
+
|
6760
|
+
/** WasmExecuteContractGeneric coins */
|
6761
|
+
coins?: (TW.Cosmos.Proto.IAmount[]|null);
|
6762
|
+
}
|
6763
|
+
|
6764
|
+
/** Represents a WasmExecuteContractGeneric. */
|
6765
|
+
class WasmExecuteContractGeneric implements IWasmExecuteContractGeneric {
|
6766
|
+
|
6767
|
+
/**
|
6768
|
+
* Constructs a new WasmExecuteContractGeneric.
|
6769
|
+
* @param [properties] Properties to set
|
6770
|
+
*/
|
6771
|
+
constructor(properties?: TW.Cosmos.Proto.Message.IWasmExecuteContractGeneric);
|
6772
|
+
|
6773
|
+
/** WasmExecuteContractGeneric senderAddress. */
|
6774
|
+
public senderAddress: string;
|
6775
|
+
|
6776
|
+
/** WasmExecuteContractGeneric contractAddress. */
|
6777
|
+
public contractAddress: string;
|
6778
|
+
|
6779
|
+
/** WasmExecuteContractGeneric executeMsg. */
|
6780
|
+
public executeMsg: string;
|
6781
|
+
|
6782
|
+
/** WasmExecuteContractGeneric coins. */
|
6783
|
+
public coins: TW.Cosmos.Proto.IAmount[];
|
6784
|
+
|
6785
|
+
/**
|
6786
|
+
* Creates a new WasmExecuteContractGeneric instance using the specified properties.
|
6787
|
+
* @param [properties] Properties to set
|
6788
|
+
* @returns WasmExecuteContractGeneric instance
|
6789
|
+
*/
|
6790
|
+
public static create(properties?: TW.Cosmos.Proto.Message.IWasmExecuteContractGeneric): TW.Cosmos.Proto.Message.WasmExecuteContractGeneric;
|
6791
|
+
|
6792
|
+
/**
|
6793
|
+
* Encodes the specified WasmExecuteContractGeneric message. Does not implicitly {@link TW.Cosmos.Proto.Message.WasmExecuteContractGeneric.verify|verify} messages.
|
6794
|
+
* @param message WasmExecuteContractGeneric message or plain object to encode
|
6795
|
+
* @param [writer] Writer to encode to
|
6796
|
+
* @returns Writer
|
6797
|
+
*/
|
6798
|
+
public static encode(message: TW.Cosmos.Proto.Message.IWasmExecuteContractGeneric, writer?: $protobuf.Writer): $protobuf.Writer;
|
6799
|
+
|
6800
|
+
/**
|
6801
|
+
* Decodes a WasmExecuteContractGeneric message from the specified reader or buffer.
|
6802
|
+
* @param reader Reader or buffer to decode from
|
6803
|
+
* @param [length] Message length if known beforehand
|
6804
|
+
* @returns WasmExecuteContractGeneric
|
6805
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
6806
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
6807
|
+
*/
|
6808
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Cosmos.Proto.Message.WasmExecuteContractGeneric;
|
6809
|
+
|
6810
|
+
/**
|
6811
|
+
* Verifies a WasmExecuteContractGeneric message.
|
6812
|
+
* @param message Plain object to verify
|
6813
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
6814
|
+
*/
|
6815
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
6816
|
+
|
6817
|
+
/**
|
6818
|
+
* Creates a WasmExecuteContractGeneric message from a plain object. Also converts values to their respective internal types.
|
6819
|
+
* @param object Plain object
|
6820
|
+
* @returns WasmExecuteContractGeneric
|
6821
|
+
*/
|
6822
|
+
public static fromObject(object: { [k: string]: any }): TW.Cosmos.Proto.Message.WasmExecuteContractGeneric;
|
6823
|
+
|
6824
|
+
/**
|
6825
|
+
* Creates a plain object from a WasmExecuteContractGeneric message. Also converts values to other types if specified.
|
6826
|
+
* @param message WasmExecuteContractGeneric
|
6827
|
+
* @param [options] Conversion options
|
6828
|
+
* @returns Plain object
|
6829
|
+
*/
|
6830
|
+
public static toObject(message: TW.Cosmos.Proto.Message.WasmExecuteContractGeneric, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
6831
|
+
|
6832
|
+
/**
|
6833
|
+
* Converts this WasmExecuteContractGeneric to JSON.
|
6834
|
+
* @returns JSON object
|
6835
|
+
*/
|
6836
|
+
public toJSON(): { [k: string]: any };
|
6837
|
+
}
|
6838
|
+
|
6536
6839
|
/** Properties of a RawJSON. */
|
6537
6840
|
interface IRawJSON {
|
6538
6841
|
|
@@ -13392,6 +13695,9 @@ export namespace TW {
|
|
13392
13695
|
|
13393
13696
|
/** FunctionCallPermission receiverId */
|
13394
13697
|
receiverId?: (string|null);
|
13698
|
+
|
13699
|
+
/** FunctionCallPermission methodNames */
|
13700
|
+
methodNames?: (string[]|null);
|
13395
13701
|
}
|
13396
13702
|
|
13397
13703
|
/** Represents a FunctionCallPermission. */
|
@@ -13409,6 +13715,9 @@ export namespace TW {
|
|
13409
13715
|
/** FunctionCallPermission receiverId. */
|
13410
13716
|
public receiverId: string;
|
13411
13717
|
|
13718
|
+
/** FunctionCallPermission methodNames. */
|
13719
|
+
public methodNames: string[];
|
13720
|
+
|
13412
13721
|
/**
|
13413
13722
|
* Creates a new FunctionCallPermission instance using the specified properties.
|
13414
13723
|
* @param [properties] Properties to set
|
@@ -13929,7 +14238,7 @@ export namespace TW {
|
|
13929
14238
|
stake?: (Uint8Array|null);
|
13930
14239
|
|
13931
14240
|
/** Stake publicKey */
|
13932
|
-
publicKey?: (
|
14241
|
+
publicKey?: (TW.NEAR.Proto.IPublicKey|null);
|
13933
14242
|
}
|
13934
14243
|
|
13935
14244
|
/** Represents a Stake. */
|
@@ -13945,7 +14254,7 @@ export namespace TW {
|
|
13945
14254
|
public stake: Uint8Array;
|
13946
14255
|
|
13947
14256
|
/** Stake publicKey. */
|
13948
|
-
public publicKey
|
14257
|
+
public publicKey?: (TW.NEAR.Proto.IPublicKey|null);
|
13949
14258
|
|
13950
14259
|
/**
|
13951
14260
|
* Creates a new Stake instance using the specified properties.
|