@trustwallet/wallet-core 4.0.33 → 4.0.35
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.
@@ -4658,6 +4658,103 @@ export namespace TW {
|
|
4658
4658
|
public toJSON(): { [k: string]: any };
|
4659
4659
|
}
|
4660
4660
|
|
4661
|
+
/** Properties of a SideChainStakeMigration. */
|
4662
|
+
interface ISideChainStakeMigration {
|
4663
|
+
|
4664
|
+
/** SideChainStakeMigration validatorSrcAddr */
|
4665
|
+
validatorSrcAddr?: (Uint8Array|null);
|
4666
|
+
|
4667
|
+
/** SideChainStakeMigration validatorDstAddr */
|
4668
|
+
validatorDstAddr?: (Uint8Array|null);
|
4669
|
+
|
4670
|
+
/** SideChainStakeMigration delegatorAddr */
|
4671
|
+
delegatorAddr?: (Uint8Array|null);
|
4672
|
+
|
4673
|
+
/** SideChainStakeMigration refundAddr */
|
4674
|
+
refundAddr?: (Uint8Array|null);
|
4675
|
+
|
4676
|
+
/** SideChainStakeMigration amount */
|
4677
|
+
amount?: (TW.Binance.Proto.SendOrder.IToken|null);
|
4678
|
+
}
|
4679
|
+
|
4680
|
+
/** Represents a SideChainStakeMigration. */
|
4681
|
+
class SideChainStakeMigration implements ISideChainStakeMigration {
|
4682
|
+
|
4683
|
+
/**
|
4684
|
+
* Constructs a new SideChainStakeMigration.
|
4685
|
+
* @param [properties] Properties to set
|
4686
|
+
*/
|
4687
|
+
constructor(properties?: TW.Binance.Proto.ISideChainStakeMigration);
|
4688
|
+
|
4689
|
+
/** SideChainStakeMigration validatorSrcAddr. */
|
4690
|
+
public validatorSrcAddr: Uint8Array;
|
4691
|
+
|
4692
|
+
/** SideChainStakeMigration validatorDstAddr. */
|
4693
|
+
public validatorDstAddr: Uint8Array;
|
4694
|
+
|
4695
|
+
/** SideChainStakeMigration delegatorAddr. */
|
4696
|
+
public delegatorAddr: Uint8Array;
|
4697
|
+
|
4698
|
+
/** SideChainStakeMigration refundAddr. */
|
4699
|
+
public refundAddr: Uint8Array;
|
4700
|
+
|
4701
|
+
/** SideChainStakeMigration amount. */
|
4702
|
+
public amount?: (TW.Binance.Proto.SendOrder.IToken|null);
|
4703
|
+
|
4704
|
+
/**
|
4705
|
+
* Creates a new SideChainStakeMigration instance using the specified properties.
|
4706
|
+
* @param [properties] Properties to set
|
4707
|
+
* @returns SideChainStakeMigration instance
|
4708
|
+
*/
|
4709
|
+
public static create(properties?: TW.Binance.Proto.ISideChainStakeMigration): TW.Binance.Proto.SideChainStakeMigration;
|
4710
|
+
|
4711
|
+
/**
|
4712
|
+
* Encodes the specified SideChainStakeMigration message. Does not implicitly {@link TW.Binance.Proto.SideChainStakeMigration.verify|verify} messages.
|
4713
|
+
* @param message SideChainStakeMigration message or plain object to encode
|
4714
|
+
* @param [writer] Writer to encode to
|
4715
|
+
* @returns Writer
|
4716
|
+
*/
|
4717
|
+
public static encode(message: TW.Binance.Proto.ISideChainStakeMigration, writer?: $protobuf.Writer): $protobuf.Writer;
|
4718
|
+
|
4719
|
+
/**
|
4720
|
+
* Decodes a SideChainStakeMigration message from the specified reader or buffer.
|
4721
|
+
* @param reader Reader or buffer to decode from
|
4722
|
+
* @param [length] Message length if known beforehand
|
4723
|
+
* @returns SideChainStakeMigration
|
4724
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
4725
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
4726
|
+
*/
|
4727
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Binance.Proto.SideChainStakeMigration;
|
4728
|
+
|
4729
|
+
/**
|
4730
|
+
* Verifies a SideChainStakeMigration message.
|
4731
|
+
* @param message Plain object to verify
|
4732
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
4733
|
+
*/
|
4734
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
4735
|
+
|
4736
|
+
/**
|
4737
|
+
* Creates a SideChainStakeMigration message from a plain object. Also converts values to their respective internal types.
|
4738
|
+
* @param object Plain object
|
4739
|
+
* @returns SideChainStakeMigration
|
4740
|
+
*/
|
4741
|
+
public static fromObject(object: { [k: string]: any }): TW.Binance.Proto.SideChainStakeMigration;
|
4742
|
+
|
4743
|
+
/**
|
4744
|
+
* Creates a plain object from a SideChainStakeMigration message. Also converts values to other types if specified.
|
4745
|
+
* @param message SideChainStakeMigration
|
4746
|
+
* @param [options] Conversion options
|
4747
|
+
* @returns Plain object
|
4748
|
+
*/
|
4749
|
+
public static toObject(message: TW.Binance.Proto.SideChainStakeMigration, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
4750
|
+
|
4751
|
+
/**
|
4752
|
+
* Converts this SideChainStakeMigration to JSON.
|
4753
|
+
* @returns JSON object
|
4754
|
+
*/
|
4755
|
+
public toJSON(): { [k: string]: any };
|
4756
|
+
}
|
4757
|
+
|
4661
4758
|
/** Properties of a TimeLockOrder. */
|
4662
4759
|
interface ITimeLockOrder {
|
4663
4760
|
|
@@ -5002,6 +5099,9 @@ export namespace TW {
|
|
5002
5099
|
|
5003
5100
|
/** SigningInput timeUnlockOrder */
|
5004
5101
|
timeUnlockOrder?: (TW.Binance.Proto.ITimeUnlockOrder|null);
|
5102
|
+
|
5103
|
+
/** SigningInput sideStakeMigrationOrder */
|
5104
|
+
sideStakeMigrationOrder?: (TW.Binance.Proto.ISideChainStakeMigration|null);
|
5005
5105
|
}
|
5006
5106
|
|
5007
5107
|
/** Represents a SigningInput. */
|
@@ -5088,8 +5188,11 @@ export namespace TW {
|
|
5088
5188
|
/** SigningInput timeUnlockOrder. */
|
5089
5189
|
public timeUnlockOrder?: (TW.Binance.Proto.ITimeUnlockOrder|null);
|
5090
5190
|
|
5191
|
+
/** SigningInput sideStakeMigrationOrder. */
|
5192
|
+
public sideStakeMigrationOrder?: (TW.Binance.Proto.ISideChainStakeMigration|null);
|
5193
|
+
|
5091
5194
|
/** SigningInput orderOneof. */
|
5092
|
-
public orderOneof?: ("tradeOrder"|"cancelTradeOrder"|"sendOrder"|"freezeOrder"|"unfreezeOrder"|"htltOrder"|"depositHTLTOrder"|"claimHTLTOrder"|"refundHTLTOrder"|"issueOrder"|"mintOrder"|"burnOrder"|"transferOutOrder"|"sideDelegateOrder"|"sideRedelegateOrder"|"sideUndelegateOrder"|"timeLockOrder"|"timeRelockOrder"|"timeUnlockOrder");
|
5195
|
+
public orderOneof?: ("tradeOrder"|"cancelTradeOrder"|"sendOrder"|"freezeOrder"|"unfreezeOrder"|"htltOrder"|"depositHTLTOrder"|"claimHTLTOrder"|"refundHTLTOrder"|"issueOrder"|"mintOrder"|"burnOrder"|"transferOutOrder"|"sideDelegateOrder"|"sideRedelegateOrder"|"sideUndelegateOrder"|"timeLockOrder"|"timeRelockOrder"|"timeUnlockOrder"|"sideStakeMigrationOrder");
|
5093
5196
|
|
5094
5197
|
/**
|
5095
5198
|
* Creates a new SigningInput instance using the specified properties.
|
@@ -23057,6 +23160,9 @@ export namespace TW {
|
|
23057
23160
|
|
23058
23161
|
/** Transfer currentTimestampNanos */
|
23059
23162
|
currentTimestampNanos?: (Long|null);
|
23163
|
+
|
23164
|
+
/** Transfer permittedDrift */
|
23165
|
+
permittedDrift?: (Long|null);
|
23060
23166
|
}
|
23061
23167
|
|
23062
23168
|
/** Represents a Transfer. */
|
@@ -23080,6 +23186,9 @@ export namespace TW {
|
|
23080
23186
|
/** Transfer currentTimestampNanos. */
|
23081
23187
|
public currentTimestampNanos: Long;
|
23082
23188
|
|
23189
|
+
/** Transfer permittedDrift. */
|
23190
|
+
public permittedDrift: Long;
|
23191
|
+
|
23083
23192
|
/**
|
23084
23193
|
* Creates a new Transfer instance using the specified properties.
|
23085
23194
|
* @param [properties] Properties to set
|
@@ -39515,6 +39624,164 @@ export namespace TW {
|
|
39515
39624
|
/** Namespace Proto. */
|
39516
39625
|
namespace Proto {
|
39517
39626
|
|
39627
|
+
/** Properties of an ObjectRef. */
|
39628
|
+
interface IObjectRef {
|
39629
|
+
|
39630
|
+
/** ObjectRef objectId */
|
39631
|
+
objectId?: (string|null);
|
39632
|
+
|
39633
|
+
/** ObjectRef version */
|
39634
|
+
version?: (Long|null);
|
39635
|
+
|
39636
|
+
/** ObjectRef objectDigest */
|
39637
|
+
objectDigest?: (string|null);
|
39638
|
+
}
|
39639
|
+
|
39640
|
+
/** Represents an ObjectRef. */
|
39641
|
+
class ObjectRef implements IObjectRef {
|
39642
|
+
|
39643
|
+
/**
|
39644
|
+
* Constructs a new ObjectRef.
|
39645
|
+
* @param [properties] Properties to set
|
39646
|
+
*/
|
39647
|
+
constructor(properties?: TW.Sui.Proto.IObjectRef);
|
39648
|
+
|
39649
|
+
/** ObjectRef objectId. */
|
39650
|
+
public objectId: string;
|
39651
|
+
|
39652
|
+
/** ObjectRef version. */
|
39653
|
+
public version: Long;
|
39654
|
+
|
39655
|
+
/** ObjectRef objectDigest. */
|
39656
|
+
public objectDigest: string;
|
39657
|
+
|
39658
|
+
/**
|
39659
|
+
* Creates a new ObjectRef instance using the specified properties.
|
39660
|
+
* @param [properties] Properties to set
|
39661
|
+
* @returns ObjectRef instance
|
39662
|
+
*/
|
39663
|
+
public static create(properties?: TW.Sui.Proto.IObjectRef): TW.Sui.Proto.ObjectRef;
|
39664
|
+
|
39665
|
+
/**
|
39666
|
+
* Encodes the specified ObjectRef message. Does not implicitly {@link TW.Sui.Proto.ObjectRef.verify|verify} messages.
|
39667
|
+
* @param message ObjectRef message or plain object to encode
|
39668
|
+
* @param [writer] Writer to encode to
|
39669
|
+
* @returns Writer
|
39670
|
+
*/
|
39671
|
+
public static encode(message: TW.Sui.Proto.IObjectRef, writer?: $protobuf.Writer): $protobuf.Writer;
|
39672
|
+
|
39673
|
+
/**
|
39674
|
+
* Decodes an ObjectRef message from the specified reader or buffer.
|
39675
|
+
* @param reader Reader or buffer to decode from
|
39676
|
+
* @param [length] Message length if known beforehand
|
39677
|
+
* @returns ObjectRef
|
39678
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
39679
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
39680
|
+
*/
|
39681
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Sui.Proto.ObjectRef;
|
39682
|
+
|
39683
|
+
/**
|
39684
|
+
* Verifies an ObjectRef message.
|
39685
|
+
* @param message Plain object to verify
|
39686
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
39687
|
+
*/
|
39688
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
39689
|
+
|
39690
|
+
/**
|
39691
|
+
* Creates an ObjectRef message from a plain object. Also converts values to their respective internal types.
|
39692
|
+
* @param object Plain object
|
39693
|
+
* @returns ObjectRef
|
39694
|
+
*/
|
39695
|
+
public static fromObject(object: { [k: string]: any }): TW.Sui.Proto.ObjectRef;
|
39696
|
+
|
39697
|
+
/**
|
39698
|
+
* Creates a plain object from an ObjectRef message. Also converts values to other types if specified.
|
39699
|
+
* @param message ObjectRef
|
39700
|
+
* @param [options] Conversion options
|
39701
|
+
* @returns Plain object
|
39702
|
+
*/
|
39703
|
+
public static toObject(message: TW.Sui.Proto.ObjectRef, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
39704
|
+
|
39705
|
+
/**
|
39706
|
+
* Converts this ObjectRef to JSON.
|
39707
|
+
* @returns JSON object
|
39708
|
+
*/
|
39709
|
+
public toJSON(): { [k: string]: any };
|
39710
|
+
}
|
39711
|
+
|
39712
|
+
/** Properties of an Amount. */
|
39713
|
+
interface IAmount {
|
39714
|
+
|
39715
|
+
/** Amount amount */
|
39716
|
+
amount?: (Long|null);
|
39717
|
+
}
|
39718
|
+
|
39719
|
+
/** Represents an Amount. */
|
39720
|
+
class Amount implements IAmount {
|
39721
|
+
|
39722
|
+
/**
|
39723
|
+
* Constructs a new Amount.
|
39724
|
+
* @param [properties] Properties to set
|
39725
|
+
*/
|
39726
|
+
constructor(properties?: TW.Sui.Proto.IAmount);
|
39727
|
+
|
39728
|
+
/** Amount amount. */
|
39729
|
+
public amount: Long;
|
39730
|
+
|
39731
|
+
/**
|
39732
|
+
* Creates a new Amount instance using the specified properties.
|
39733
|
+
* @param [properties] Properties to set
|
39734
|
+
* @returns Amount instance
|
39735
|
+
*/
|
39736
|
+
public static create(properties?: TW.Sui.Proto.IAmount): TW.Sui.Proto.Amount;
|
39737
|
+
|
39738
|
+
/**
|
39739
|
+
* Encodes the specified Amount message. Does not implicitly {@link TW.Sui.Proto.Amount.verify|verify} messages.
|
39740
|
+
* @param message Amount message or plain object to encode
|
39741
|
+
* @param [writer] Writer to encode to
|
39742
|
+
* @returns Writer
|
39743
|
+
*/
|
39744
|
+
public static encode(message: TW.Sui.Proto.IAmount, writer?: $protobuf.Writer): $protobuf.Writer;
|
39745
|
+
|
39746
|
+
/**
|
39747
|
+
* Decodes an Amount message from the specified reader or buffer.
|
39748
|
+
* @param reader Reader or buffer to decode from
|
39749
|
+
* @param [length] Message length if known beforehand
|
39750
|
+
* @returns Amount
|
39751
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
39752
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
39753
|
+
*/
|
39754
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Sui.Proto.Amount;
|
39755
|
+
|
39756
|
+
/**
|
39757
|
+
* Verifies an Amount message.
|
39758
|
+
* @param message Plain object to verify
|
39759
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
39760
|
+
*/
|
39761
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
39762
|
+
|
39763
|
+
/**
|
39764
|
+
* Creates an Amount message from a plain object. Also converts values to their respective internal types.
|
39765
|
+
* @param object Plain object
|
39766
|
+
* @returns Amount
|
39767
|
+
*/
|
39768
|
+
public static fromObject(object: { [k: string]: any }): TW.Sui.Proto.Amount;
|
39769
|
+
|
39770
|
+
/**
|
39771
|
+
* Creates a plain object from an Amount message. Also converts values to other types if specified.
|
39772
|
+
* @param message Amount
|
39773
|
+
* @param [options] Conversion options
|
39774
|
+
* @returns Plain object
|
39775
|
+
*/
|
39776
|
+
public static toObject(message: TW.Sui.Proto.Amount, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
39777
|
+
|
39778
|
+
/**
|
39779
|
+
* Converts this Amount to JSON.
|
39780
|
+
* @returns JSON object
|
39781
|
+
*/
|
39782
|
+
public toJSON(): { [k: string]: any };
|
39783
|
+
}
|
39784
|
+
|
39518
39785
|
/** Properties of a SignDirect. */
|
39519
39786
|
interface ISignDirect {
|
39520
39787
|
|
@@ -39588,14 +39855,551 @@ export namespace TW {
|
|
39588
39855
|
public toJSON(): { [k: string]: any };
|
39589
39856
|
}
|
39590
39857
|
|
39858
|
+
/** Properties of a Pay. */
|
39859
|
+
interface IPay {
|
39860
|
+
|
39861
|
+
/** Pay inputCoins */
|
39862
|
+
inputCoins?: (TW.Sui.Proto.IObjectRef[]|null);
|
39863
|
+
|
39864
|
+
/** Pay recipients */
|
39865
|
+
recipients?: (string[]|null);
|
39866
|
+
|
39867
|
+
/** Pay amounts */
|
39868
|
+
amounts?: (Long[]|null);
|
39869
|
+
|
39870
|
+
/** Pay gas */
|
39871
|
+
gas?: (TW.Sui.Proto.IObjectRef|null);
|
39872
|
+
}
|
39873
|
+
|
39874
|
+
/** Represents a Pay. */
|
39875
|
+
class Pay implements IPay {
|
39876
|
+
|
39877
|
+
/**
|
39878
|
+
* Constructs a new Pay.
|
39879
|
+
* @param [properties] Properties to set
|
39880
|
+
*/
|
39881
|
+
constructor(properties?: TW.Sui.Proto.IPay);
|
39882
|
+
|
39883
|
+
/** Pay inputCoins. */
|
39884
|
+
public inputCoins: TW.Sui.Proto.IObjectRef[];
|
39885
|
+
|
39886
|
+
/** Pay recipients. */
|
39887
|
+
public recipients: string[];
|
39888
|
+
|
39889
|
+
/** Pay amounts. */
|
39890
|
+
public amounts: Long[];
|
39891
|
+
|
39892
|
+
/** Pay gas. */
|
39893
|
+
public gas?: (TW.Sui.Proto.IObjectRef|null);
|
39894
|
+
|
39895
|
+
/**
|
39896
|
+
* Creates a new Pay instance using the specified properties.
|
39897
|
+
* @param [properties] Properties to set
|
39898
|
+
* @returns Pay instance
|
39899
|
+
*/
|
39900
|
+
public static create(properties?: TW.Sui.Proto.IPay): TW.Sui.Proto.Pay;
|
39901
|
+
|
39902
|
+
/**
|
39903
|
+
* Encodes the specified Pay message. Does not implicitly {@link TW.Sui.Proto.Pay.verify|verify} messages.
|
39904
|
+
* @param message Pay message or plain object to encode
|
39905
|
+
* @param [writer] Writer to encode to
|
39906
|
+
* @returns Writer
|
39907
|
+
*/
|
39908
|
+
public static encode(message: TW.Sui.Proto.IPay, writer?: $protobuf.Writer): $protobuf.Writer;
|
39909
|
+
|
39910
|
+
/**
|
39911
|
+
* Decodes a Pay message from the specified reader or buffer.
|
39912
|
+
* @param reader Reader or buffer to decode from
|
39913
|
+
* @param [length] Message length if known beforehand
|
39914
|
+
* @returns Pay
|
39915
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
39916
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
39917
|
+
*/
|
39918
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Sui.Proto.Pay;
|
39919
|
+
|
39920
|
+
/**
|
39921
|
+
* Verifies a Pay message.
|
39922
|
+
* @param message Plain object to verify
|
39923
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
39924
|
+
*/
|
39925
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
39926
|
+
|
39927
|
+
/**
|
39928
|
+
* Creates a Pay message from a plain object. Also converts values to their respective internal types.
|
39929
|
+
* @param object Plain object
|
39930
|
+
* @returns Pay
|
39931
|
+
*/
|
39932
|
+
public static fromObject(object: { [k: string]: any }): TW.Sui.Proto.Pay;
|
39933
|
+
|
39934
|
+
/**
|
39935
|
+
* Creates a plain object from a Pay message. Also converts values to other types if specified.
|
39936
|
+
* @param message Pay
|
39937
|
+
* @param [options] Conversion options
|
39938
|
+
* @returns Plain object
|
39939
|
+
*/
|
39940
|
+
public static toObject(message: TW.Sui.Proto.Pay, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
39941
|
+
|
39942
|
+
/**
|
39943
|
+
* Converts this Pay to JSON.
|
39944
|
+
* @returns JSON object
|
39945
|
+
*/
|
39946
|
+
public toJSON(): { [k: string]: any };
|
39947
|
+
}
|
39948
|
+
|
39949
|
+
/** Properties of a PaySui. */
|
39950
|
+
interface IPaySui {
|
39951
|
+
|
39952
|
+
/** PaySui inputCoins */
|
39953
|
+
inputCoins?: (TW.Sui.Proto.IObjectRef[]|null);
|
39954
|
+
|
39955
|
+
/** PaySui recipients */
|
39956
|
+
recipients?: (string[]|null);
|
39957
|
+
|
39958
|
+
/** PaySui amounts */
|
39959
|
+
amounts?: (Long[]|null);
|
39960
|
+
}
|
39961
|
+
|
39962
|
+
/** Represents a PaySui. */
|
39963
|
+
class PaySui implements IPaySui {
|
39964
|
+
|
39965
|
+
/**
|
39966
|
+
* Constructs a new PaySui.
|
39967
|
+
* @param [properties] Properties to set
|
39968
|
+
*/
|
39969
|
+
constructor(properties?: TW.Sui.Proto.IPaySui);
|
39970
|
+
|
39971
|
+
/** PaySui inputCoins. */
|
39972
|
+
public inputCoins: TW.Sui.Proto.IObjectRef[];
|
39973
|
+
|
39974
|
+
/** PaySui recipients. */
|
39975
|
+
public recipients: string[];
|
39976
|
+
|
39977
|
+
/** PaySui amounts. */
|
39978
|
+
public amounts: Long[];
|
39979
|
+
|
39980
|
+
/**
|
39981
|
+
* Creates a new PaySui instance using the specified properties.
|
39982
|
+
* @param [properties] Properties to set
|
39983
|
+
* @returns PaySui instance
|
39984
|
+
*/
|
39985
|
+
public static create(properties?: TW.Sui.Proto.IPaySui): TW.Sui.Proto.PaySui;
|
39986
|
+
|
39987
|
+
/**
|
39988
|
+
* Encodes the specified PaySui message. Does not implicitly {@link TW.Sui.Proto.PaySui.verify|verify} messages.
|
39989
|
+
* @param message PaySui message or plain object to encode
|
39990
|
+
* @param [writer] Writer to encode to
|
39991
|
+
* @returns Writer
|
39992
|
+
*/
|
39993
|
+
public static encode(message: TW.Sui.Proto.IPaySui, writer?: $protobuf.Writer): $protobuf.Writer;
|
39994
|
+
|
39995
|
+
/**
|
39996
|
+
* Decodes a PaySui message from the specified reader or buffer.
|
39997
|
+
* @param reader Reader or buffer to decode from
|
39998
|
+
* @param [length] Message length if known beforehand
|
39999
|
+
* @returns PaySui
|
40000
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
40001
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
40002
|
+
*/
|
40003
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Sui.Proto.PaySui;
|
40004
|
+
|
40005
|
+
/**
|
40006
|
+
* Verifies a PaySui message.
|
40007
|
+
* @param message Plain object to verify
|
40008
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
40009
|
+
*/
|
40010
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
40011
|
+
|
40012
|
+
/**
|
40013
|
+
* Creates a PaySui message from a plain object. Also converts values to their respective internal types.
|
40014
|
+
* @param object Plain object
|
40015
|
+
* @returns PaySui
|
40016
|
+
*/
|
40017
|
+
public static fromObject(object: { [k: string]: any }): TW.Sui.Proto.PaySui;
|
40018
|
+
|
40019
|
+
/**
|
40020
|
+
* Creates a plain object from a PaySui message. Also converts values to other types if specified.
|
40021
|
+
* @param message PaySui
|
40022
|
+
* @param [options] Conversion options
|
40023
|
+
* @returns Plain object
|
40024
|
+
*/
|
40025
|
+
public static toObject(message: TW.Sui.Proto.PaySui, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
40026
|
+
|
40027
|
+
/**
|
40028
|
+
* Converts this PaySui to JSON.
|
40029
|
+
* @returns JSON object
|
40030
|
+
*/
|
40031
|
+
public toJSON(): { [k: string]: any };
|
40032
|
+
}
|
40033
|
+
|
40034
|
+
/** Properties of a PayAllSui. */
|
40035
|
+
interface IPayAllSui {
|
40036
|
+
|
40037
|
+
/** PayAllSui inputCoins */
|
40038
|
+
inputCoins?: (TW.Sui.Proto.IObjectRef[]|null);
|
40039
|
+
|
40040
|
+
/** PayAllSui recipient */
|
40041
|
+
recipient?: (string|null);
|
40042
|
+
}
|
40043
|
+
|
40044
|
+
/** Represents a PayAllSui. */
|
40045
|
+
class PayAllSui implements IPayAllSui {
|
40046
|
+
|
40047
|
+
/**
|
40048
|
+
* Constructs a new PayAllSui.
|
40049
|
+
* @param [properties] Properties to set
|
40050
|
+
*/
|
40051
|
+
constructor(properties?: TW.Sui.Proto.IPayAllSui);
|
40052
|
+
|
40053
|
+
/** PayAllSui inputCoins. */
|
40054
|
+
public inputCoins: TW.Sui.Proto.IObjectRef[];
|
40055
|
+
|
40056
|
+
/** PayAllSui recipient. */
|
40057
|
+
public recipient: string;
|
40058
|
+
|
40059
|
+
/**
|
40060
|
+
* Creates a new PayAllSui instance using the specified properties.
|
40061
|
+
* @param [properties] Properties to set
|
40062
|
+
* @returns PayAllSui instance
|
40063
|
+
*/
|
40064
|
+
public static create(properties?: TW.Sui.Proto.IPayAllSui): TW.Sui.Proto.PayAllSui;
|
40065
|
+
|
40066
|
+
/**
|
40067
|
+
* Encodes the specified PayAllSui message. Does not implicitly {@link TW.Sui.Proto.PayAllSui.verify|verify} messages.
|
40068
|
+
* @param message PayAllSui message or plain object to encode
|
40069
|
+
* @param [writer] Writer to encode to
|
40070
|
+
* @returns Writer
|
40071
|
+
*/
|
40072
|
+
public static encode(message: TW.Sui.Proto.IPayAllSui, writer?: $protobuf.Writer): $protobuf.Writer;
|
40073
|
+
|
40074
|
+
/**
|
40075
|
+
* Decodes a PayAllSui message from the specified reader or buffer.
|
40076
|
+
* @param reader Reader or buffer to decode from
|
40077
|
+
* @param [length] Message length if known beforehand
|
40078
|
+
* @returns PayAllSui
|
40079
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
40080
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
40081
|
+
*/
|
40082
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Sui.Proto.PayAllSui;
|
40083
|
+
|
40084
|
+
/**
|
40085
|
+
* Verifies a PayAllSui message.
|
40086
|
+
* @param message Plain object to verify
|
40087
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
40088
|
+
*/
|
40089
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
40090
|
+
|
40091
|
+
/**
|
40092
|
+
* Creates a PayAllSui message from a plain object. Also converts values to their respective internal types.
|
40093
|
+
* @param object Plain object
|
40094
|
+
* @returns PayAllSui
|
40095
|
+
*/
|
40096
|
+
public static fromObject(object: { [k: string]: any }): TW.Sui.Proto.PayAllSui;
|
40097
|
+
|
40098
|
+
/**
|
40099
|
+
* Creates a plain object from a PayAllSui message. Also converts values to other types if specified.
|
40100
|
+
* @param message PayAllSui
|
40101
|
+
* @param [options] Conversion options
|
40102
|
+
* @returns Plain object
|
40103
|
+
*/
|
40104
|
+
public static toObject(message: TW.Sui.Proto.PayAllSui, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
40105
|
+
|
40106
|
+
/**
|
40107
|
+
* Converts this PayAllSui to JSON.
|
40108
|
+
* @returns JSON object
|
40109
|
+
*/
|
40110
|
+
public toJSON(): { [k: string]: any };
|
40111
|
+
}
|
40112
|
+
|
40113
|
+
/** Properties of a RequestAddStake. */
|
40114
|
+
interface IRequestAddStake {
|
40115
|
+
|
40116
|
+
/** RequestAddStake coins */
|
40117
|
+
coins?: (TW.Sui.Proto.IObjectRef[]|null);
|
40118
|
+
|
40119
|
+
/** RequestAddStake amount */
|
40120
|
+
amount?: (TW.Sui.Proto.IAmount|null);
|
40121
|
+
|
40122
|
+
/** RequestAddStake validator */
|
40123
|
+
validator?: (string|null);
|
40124
|
+
|
40125
|
+
/** RequestAddStake gas */
|
40126
|
+
gas?: (TW.Sui.Proto.IObjectRef|null);
|
40127
|
+
}
|
40128
|
+
|
40129
|
+
/** Represents a RequestAddStake. */
|
40130
|
+
class RequestAddStake implements IRequestAddStake {
|
40131
|
+
|
40132
|
+
/**
|
40133
|
+
* Constructs a new RequestAddStake.
|
40134
|
+
* @param [properties] Properties to set
|
40135
|
+
*/
|
40136
|
+
constructor(properties?: TW.Sui.Proto.IRequestAddStake);
|
40137
|
+
|
40138
|
+
/** RequestAddStake coins. */
|
40139
|
+
public coins: TW.Sui.Proto.IObjectRef[];
|
40140
|
+
|
40141
|
+
/** RequestAddStake amount. */
|
40142
|
+
public amount?: (TW.Sui.Proto.IAmount|null);
|
40143
|
+
|
40144
|
+
/** RequestAddStake validator. */
|
40145
|
+
public validator: string;
|
40146
|
+
|
40147
|
+
/** RequestAddStake gas. */
|
40148
|
+
public gas?: (TW.Sui.Proto.IObjectRef|null);
|
40149
|
+
|
40150
|
+
/**
|
40151
|
+
* Creates a new RequestAddStake instance using the specified properties.
|
40152
|
+
* @param [properties] Properties to set
|
40153
|
+
* @returns RequestAddStake instance
|
40154
|
+
*/
|
40155
|
+
public static create(properties?: TW.Sui.Proto.IRequestAddStake): TW.Sui.Proto.RequestAddStake;
|
40156
|
+
|
40157
|
+
/**
|
40158
|
+
* Encodes the specified RequestAddStake message. Does not implicitly {@link TW.Sui.Proto.RequestAddStake.verify|verify} messages.
|
40159
|
+
* @param message RequestAddStake message or plain object to encode
|
40160
|
+
* @param [writer] Writer to encode to
|
40161
|
+
* @returns Writer
|
40162
|
+
*/
|
40163
|
+
public static encode(message: TW.Sui.Proto.IRequestAddStake, writer?: $protobuf.Writer): $protobuf.Writer;
|
40164
|
+
|
40165
|
+
/**
|
40166
|
+
* Decodes a RequestAddStake message from the specified reader or buffer.
|
40167
|
+
* @param reader Reader or buffer to decode from
|
40168
|
+
* @param [length] Message length if known beforehand
|
40169
|
+
* @returns RequestAddStake
|
40170
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
40171
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
40172
|
+
*/
|
40173
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Sui.Proto.RequestAddStake;
|
40174
|
+
|
40175
|
+
/**
|
40176
|
+
* Verifies a RequestAddStake message.
|
40177
|
+
* @param message Plain object to verify
|
40178
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
40179
|
+
*/
|
40180
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
40181
|
+
|
40182
|
+
/**
|
40183
|
+
* Creates a RequestAddStake message from a plain object. Also converts values to their respective internal types.
|
40184
|
+
* @param object Plain object
|
40185
|
+
* @returns RequestAddStake
|
40186
|
+
*/
|
40187
|
+
public static fromObject(object: { [k: string]: any }): TW.Sui.Proto.RequestAddStake;
|
40188
|
+
|
40189
|
+
/**
|
40190
|
+
* Creates a plain object from a RequestAddStake message. Also converts values to other types if specified.
|
40191
|
+
* @param message RequestAddStake
|
40192
|
+
* @param [options] Conversion options
|
40193
|
+
* @returns Plain object
|
40194
|
+
*/
|
40195
|
+
public static toObject(message: TW.Sui.Proto.RequestAddStake, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
40196
|
+
|
40197
|
+
/**
|
40198
|
+
* Converts this RequestAddStake to JSON.
|
40199
|
+
* @returns JSON object
|
40200
|
+
*/
|
40201
|
+
public toJSON(): { [k: string]: any };
|
40202
|
+
}
|
40203
|
+
|
40204
|
+
/** Properties of a RequestWithdrawStake. */
|
40205
|
+
interface IRequestWithdrawStake {
|
40206
|
+
|
40207
|
+
/** RequestWithdrawStake stakedSui */
|
40208
|
+
stakedSui?: (TW.Sui.Proto.IObjectRef|null);
|
40209
|
+
|
40210
|
+
/** RequestWithdrawStake gas */
|
40211
|
+
gas?: (TW.Sui.Proto.IObjectRef|null);
|
40212
|
+
}
|
40213
|
+
|
40214
|
+
/** Represents a RequestWithdrawStake. */
|
40215
|
+
class RequestWithdrawStake implements IRequestWithdrawStake {
|
40216
|
+
|
40217
|
+
/**
|
40218
|
+
* Constructs a new RequestWithdrawStake.
|
40219
|
+
* @param [properties] Properties to set
|
40220
|
+
*/
|
40221
|
+
constructor(properties?: TW.Sui.Proto.IRequestWithdrawStake);
|
40222
|
+
|
40223
|
+
/** RequestWithdrawStake stakedSui. */
|
40224
|
+
public stakedSui?: (TW.Sui.Proto.IObjectRef|null);
|
40225
|
+
|
40226
|
+
/** RequestWithdrawStake gas. */
|
40227
|
+
public gas?: (TW.Sui.Proto.IObjectRef|null);
|
40228
|
+
|
40229
|
+
/**
|
40230
|
+
* Creates a new RequestWithdrawStake instance using the specified properties.
|
40231
|
+
* @param [properties] Properties to set
|
40232
|
+
* @returns RequestWithdrawStake instance
|
40233
|
+
*/
|
40234
|
+
public static create(properties?: TW.Sui.Proto.IRequestWithdrawStake): TW.Sui.Proto.RequestWithdrawStake;
|
40235
|
+
|
40236
|
+
/**
|
40237
|
+
* Encodes the specified RequestWithdrawStake message. Does not implicitly {@link TW.Sui.Proto.RequestWithdrawStake.verify|verify} messages.
|
40238
|
+
* @param message RequestWithdrawStake message or plain object to encode
|
40239
|
+
* @param [writer] Writer to encode to
|
40240
|
+
* @returns Writer
|
40241
|
+
*/
|
40242
|
+
public static encode(message: TW.Sui.Proto.IRequestWithdrawStake, writer?: $protobuf.Writer): $protobuf.Writer;
|
40243
|
+
|
40244
|
+
/**
|
40245
|
+
* Decodes a RequestWithdrawStake message from the specified reader or buffer.
|
40246
|
+
* @param reader Reader or buffer to decode from
|
40247
|
+
* @param [length] Message length if known beforehand
|
40248
|
+
* @returns RequestWithdrawStake
|
40249
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
40250
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
40251
|
+
*/
|
40252
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Sui.Proto.RequestWithdrawStake;
|
40253
|
+
|
40254
|
+
/**
|
40255
|
+
* Verifies a RequestWithdrawStake message.
|
40256
|
+
* @param message Plain object to verify
|
40257
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
40258
|
+
*/
|
40259
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
40260
|
+
|
40261
|
+
/**
|
40262
|
+
* Creates a RequestWithdrawStake message from a plain object. Also converts values to their respective internal types.
|
40263
|
+
* @param object Plain object
|
40264
|
+
* @returns RequestWithdrawStake
|
40265
|
+
*/
|
40266
|
+
public static fromObject(object: { [k: string]: any }): TW.Sui.Proto.RequestWithdrawStake;
|
40267
|
+
|
40268
|
+
/**
|
40269
|
+
* Creates a plain object from a RequestWithdrawStake message. Also converts values to other types if specified.
|
40270
|
+
* @param message RequestWithdrawStake
|
40271
|
+
* @param [options] Conversion options
|
40272
|
+
* @returns Plain object
|
40273
|
+
*/
|
40274
|
+
public static toObject(message: TW.Sui.Proto.RequestWithdrawStake, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
40275
|
+
|
40276
|
+
/**
|
40277
|
+
* Converts this RequestWithdrawStake to JSON.
|
40278
|
+
* @returns JSON object
|
40279
|
+
*/
|
40280
|
+
public toJSON(): { [k: string]: any };
|
40281
|
+
}
|
40282
|
+
|
40283
|
+
/** Properties of a TransferObject. */
|
40284
|
+
interface ITransferObject {
|
40285
|
+
|
40286
|
+
/** TransferObject object */
|
40287
|
+
object?: (TW.Sui.Proto.IObjectRef|null);
|
40288
|
+
|
40289
|
+
/** TransferObject recipient */
|
40290
|
+
recipient?: (string|null);
|
40291
|
+
|
40292
|
+
/** TransferObject gas */
|
40293
|
+
gas?: (TW.Sui.Proto.IObjectRef|null);
|
40294
|
+
}
|
40295
|
+
|
40296
|
+
/** https://docs.sui.io/sui-api-ref#unsafe_transferobject */
|
40297
|
+
class TransferObject implements ITransferObject {
|
40298
|
+
|
40299
|
+
/**
|
40300
|
+
* Constructs a new TransferObject.
|
40301
|
+
* @param [properties] Properties to set
|
40302
|
+
*/
|
40303
|
+
constructor(properties?: TW.Sui.Proto.ITransferObject);
|
40304
|
+
|
40305
|
+
/** TransferObject object. */
|
40306
|
+
public object?: (TW.Sui.Proto.IObjectRef|null);
|
40307
|
+
|
40308
|
+
/** TransferObject recipient. */
|
40309
|
+
public recipient: string;
|
40310
|
+
|
40311
|
+
/** TransferObject gas. */
|
40312
|
+
public gas?: (TW.Sui.Proto.IObjectRef|null);
|
40313
|
+
|
40314
|
+
/**
|
40315
|
+
* Creates a new TransferObject instance using the specified properties.
|
40316
|
+
* @param [properties] Properties to set
|
40317
|
+
* @returns TransferObject instance
|
40318
|
+
*/
|
40319
|
+
public static create(properties?: TW.Sui.Proto.ITransferObject): TW.Sui.Proto.TransferObject;
|
40320
|
+
|
40321
|
+
/**
|
40322
|
+
* Encodes the specified TransferObject message. Does not implicitly {@link TW.Sui.Proto.TransferObject.verify|verify} messages.
|
40323
|
+
* @param message TransferObject message or plain object to encode
|
40324
|
+
* @param [writer] Writer to encode to
|
40325
|
+
* @returns Writer
|
40326
|
+
*/
|
40327
|
+
public static encode(message: TW.Sui.Proto.ITransferObject, writer?: $protobuf.Writer): $protobuf.Writer;
|
40328
|
+
|
40329
|
+
/**
|
40330
|
+
* Decodes a TransferObject message from the specified reader or buffer.
|
40331
|
+
* @param reader Reader or buffer to decode from
|
40332
|
+
* @param [length] Message length if known beforehand
|
40333
|
+
* @returns TransferObject
|
40334
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
40335
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
40336
|
+
*/
|
40337
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Sui.Proto.TransferObject;
|
40338
|
+
|
40339
|
+
/**
|
40340
|
+
* Verifies a TransferObject message.
|
40341
|
+
* @param message Plain object to verify
|
40342
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
40343
|
+
*/
|
40344
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
40345
|
+
|
40346
|
+
/**
|
40347
|
+
* Creates a TransferObject message from a plain object. Also converts values to their respective internal types.
|
40348
|
+
* @param object Plain object
|
40349
|
+
* @returns TransferObject
|
40350
|
+
*/
|
40351
|
+
public static fromObject(object: { [k: string]: any }): TW.Sui.Proto.TransferObject;
|
40352
|
+
|
40353
|
+
/**
|
40354
|
+
* Creates a plain object from a TransferObject message. Also converts values to other types if specified.
|
40355
|
+
* @param message TransferObject
|
40356
|
+
* @param [options] Conversion options
|
40357
|
+
* @returns Plain object
|
40358
|
+
*/
|
40359
|
+
public static toObject(message: TW.Sui.Proto.TransferObject, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
40360
|
+
|
40361
|
+
/**
|
40362
|
+
* Converts this TransferObject to JSON.
|
40363
|
+
* @returns JSON object
|
40364
|
+
*/
|
40365
|
+
public toJSON(): { [k: string]: any };
|
40366
|
+
}
|
40367
|
+
|
39591
40368
|
/** Properties of a SigningInput. */
|
39592
40369
|
interface ISigningInput {
|
39593
40370
|
|
39594
40371
|
/** SigningInput privateKey */
|
39595
40372
|
privateKey?: (Uint8Array|null);
|
39596
40373
|
|
40374
|
+
/** SigningInput signer */
|
40375
|
+
signer?: (string|null);
|
40376
|
+
|
39597
40377
|
/** SigningInput signDirectMessage */
|
39598
40378
|
signDirectMessage?: (TW.Sui.Proto.ISignDirect|null);
|
40379
|
+
|
40380
|
+
/** SigningInput pay */
|
40381
|
+
pay?: (TW.Sui.Proto.IPay|null);
|
40382
|
+
|
40383
|
+
/** SigningInput paySui */
|
40384
|
+
paySui?: (TW.Sui.Proto.IPaySui|null);
|
40385
|
+
|
40386
|
+
/** SigningInput payAllSui */
|
40387
|
+
payAllSui?: (TW.Sui.Proto.IPayAllSui|null);
|
40388
|
+
|
40389
|
+
/** SigningInput requestAddStake */
|
40390
|
+
requestAddStake?: (TW.Sui.Proto.IRequestAddStake|null);
|
40391
|
+
|
40392
|
+
/** SigningInput requestWithdrawStake */
|
40393
|
+
requestWithdrawStake?: (TW.Sui.Proto.IRequestWithdrawStake|null);
|
40394
|
+
|
40395
|
+
/** SigningInput transferObject */
|
40396
|
+
transferObject?: (TW.Sui.Proto.ITransferObject|null);
|
40397
|
+
|
40398
|
+
/** SigningInput gasBudget */
|
40399
|
+
gasBudget?: (Long|null);
|
40400
|
+
|
40401
|
+
/** SigningInput referenceGasPrice */
|
40402
|
+
referenceGasPrice?: (Long|null);
|
39599
40403
|
}
|
39600
40404
|
|
39601
40405
|
/** Represents a SigningInput. */
|
@@ -39610,11 +40414,38 @@ export namespace TW {
|
|
39610
40414
|
/** SigningInput privateKey. */
|
39611
40415
|
public privateKey: Uint8Array;
|
39612
40416
|
|
40417
|
+
/** SigningInput signer. */
|
40418
|
+
public signer: string;
|
40419
|
+
|
39613
40420
|
/** SigningInput signDirectMessage. */
|
39614
40421
|
public signDirectMessage?: (TW.Sui.Proto.ISignDirect|null);
|
39615
40422
|
|
40423
|
+
/** SigningInput pay. */
|
40424
|
+
public pay?: (TW.Sui.Proto.IPay|null);
|
40425
|
+
|
40426
|
+
/** SigningInput paySui. */
|
40427
|
+
public paySui?: (TW.Sui.Proto.IPaySui|null);
|
40428
|
+
|
40429
|
+
/** SigningInput payAllSui. */
|
40430
|
+
public payAllSui?: (TW.Sui.Proto.IPayAllSui|null);
|
40431
|
+
|
40432
|
+
/** SigningInput requestAddStake. */
|
40433
|
+
public requestAddStake?: (TW.Sui.Proto.IRequestAddStake|null);
|
40434
|
+
|
40435
|
+
/** SigningInput requestWithdrawStake. */
|
40436
|
+
public requestWithdrawStake?: (TW.Sui.Proto.IRequestWithdrawStake|null);
|
40437
|
+
|
40438
|
+
/** SigningInput transferObject. */
|
40439
|
+
public transferObject?: (TW.Sui.Proto.ITransferObject|null);
|
40440
|
+
|
40441
|
+
/** SigningInput gasBudget. */
|
40442
|
+
public gasBudget: Long;
|
40443
|
+
|
40444
|
+
/** SigningInput referenceGasPrice. */
|
40445
|
+
public referenceGasPrice: Long;
|
40446
|
+
|
39616
40447
|
/** SigningInput transactionPayload. */
|
39617
|
-
public transactionPayload?: "signDirectMessage";
|
40448
|
+
public transactionPayload?: ("signDirectMessage"|"pay"|"paySui"|"payAllSui"|"requestAddStake"|"requestWithdrawStake"|"transferObject");
|
39618
40449
|
|
39619
40450
|
/**
|
39620
40451
|
* Creates a new SigningInput instance using the specified properties.
|