@trustwallet/wallet-core 4.2.9 → 4.2.11
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.
@@ -10920,6 +10920,101 @@ export namespace TW {
|
|
10920
10920
|
public toJSON(): { [k: string]: any };
|
10921
10921
|
}
|
10922
10922
|
|
10923
|
+
/** Properties of a VoteDelegation. */
|
10924
|
+
interface IVoteDelegation {
|
10925
|
+
|
10926
|
+
/** VoteDelegation stakingAddress */
|
10927
|
+
stakingAddress?: (string|null);
|
10928
|
+
|
10929
|
+
/** VoteDelegation drepType */
|
10930
|
+
drepType?: (TW.Cardano.Proto.VoteDelegation.DRepType|null);
|
10931
|
+
|
10932
|
+
/** VoteDelegation drepId */
|
10933
|
+
drepId?: (string|null);
|
10934
|
+
}
|
10935
|
+
|
10936
|
+
/** Represents a VoteDelegation. */
|
10937
|
+
class VoteDelegation implements IVoteDelegation {
|
10938
|
+
|
10939
|
+
/**
|
10940
|
+
* Constructs a new VoteDelegation.
|
10941
|
+
* @param [properties] Properties to set
|
10942
|
+
*/
|
10943
|
+
constructor(properties?: TW.Cardano.Proto.IVoteDelegation);
|
10944
|
+
|
10945
|
+
/** VoteDelegation stakingAddress. */
|
10946
|
+
public stakingAddress: string;
|
10947
|
+
|
10948
|
+
/** VoteDelegation drepType. */
|
10949
|
+
public drepType: TW.Cardano.Proto.VoteDelegation.DRepType;
|
10950
|
+
|
10951
|
+
/** VoteDelegation drepId. */
|
10952
|
+
public drepId: string;
|
10953
|
+
|
10954
|
+
/**
|
10955
|
+
* Creates a new VoteDelegation instance using the specified properties.
|
10956
|
+
* @param [properties] Properties to set
|
10957
|
+
* @returns VoteDelegation instance
|
10958
|
+
*/
|
10959
|
+
public static create(properties?: TW.Cardano.Proto.IVoteDelegation): TW.Cardano.Proto.VoteDelegation;
|
10960
|
+
|
10961
|
+
/**
|
10962
|
+
* Encodes the specified VoteDelegation message. Does not implicitly {@link TW.Cardano.Proto.VoteDelegation.verify|verify} messages.
|
10963
|
+
* @param message VoteDelegation message or plain object to encode
|
10964
|
+
* @param [writer] Writer to encode to
|
10965
|
+
* @returns Writer
|
10966
|
+
*/
|
10967
|
+
public static encode(message: TW.Cardano.Proto.IVoteDelegation, writer?: $protobuf.Writer): $protobuf.Writer;
|
10968
|
+
|
10969
|
+
/**
|
10970
|
+
* Decodes a VoteDelegation message from the specified reader or buffer.
|
10971
|
+
* @param reader Reader or buffer to decode from
|
10972
|
+
* @param [length] Message length if known beforehand
|
10973
|
+
* @returns VoteDelegation
|
10974
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
10975
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
10976
|
+
*/
|
10977
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Cardano.Proto.VoteDelegation;
|
10978
|
+
|
10979
|
+
/**
|
10980
|
+
* Verifies a VoteDelegation message.
|
10981
|
+
* @param message Plain object to verify
|
10982
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
10983
|
+
*/
|
10984
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
10985
|
+
|
10986
|
+
/**
|
10987
|
+
* Creates a VoteDelegation message from a plain object. Also converts values to their respective internal types.
|
10988
|
+
* @param object Plain object
|
10989
|
+
* @returns VoteDelegation
|
10990
|
+
*/
|
10991
|
+
public static fromObject(object: { [k: string]: any }): TW.Cardano.Proto.VoteDelegation;
|
10992
|
+
|
10993
|
+
/**
|
10994
|
+
* Creates a plain object from a VoteDelegation message. Also converts values to other types if specified.
|
10995
|
+
* @param message VoteDelegation
|
10996
|
+
* @param [options] Conversion options
|
10997
|
+
* @returns Plain object
|
10998
|
+
*/
|
10999
|
+
public static toObject(message: TW.Cardano.Proto.VoteDelegation, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
11000
|
+
|
11001
|
+
/**
|
11002
|
+
* Converts this VoteDelegation to JSON.
|
11003
|
+
* @returns JSON object
|
11004
|
+
*/
|
11005
|
+
public toJSON(): { [k: string]: any };
|
11006
|
+
}
|
11007
|
+
|
11008
|
+
namespace VoteDelegation {
|
11009
|
+
|
11010
|
+
/** DRepType enum. */
|
11011
|
+
enum DRepType {
|
11012
|
+
DREP_ID = 0,
|
11013
|
+
DREP_ALWAYS_ABSTAIN = 2,
|
11014
|
+
DREP_NO_CONFIDENCE = 3
|
11015
|
+
}
|
11016
|
+
}
|
11017
|
+
|
10923
11018
|
/** Properties of a Delegate. */
|
10924
11019
|
interface IDelegate {
|
10925
11020
|
|
@@ -11247,6 +11342,9 @@ export namespace TW {
|
|
11247
11342
|
/** SigningInput deregisterStakingKey */
|
11248
11343
|
deregisterStakingKey?: (TW.Cardano.Proto.IDeregisterStakingKey|null);
|
11249
11344
|
|
11345
|
+
/** SigningInput voteDelegation */
|
11346
|
+
voteDelegation?: (TW.Cardano.Proto.IVoteDelegation|null);
|
11347
|
+
|
11250
11348
|
/** SigningInput ttl */
|
11251
11349
|
ttl?: (Long|null);
|
11252
11350
|
|
@@ -11287,6 +11385,9 @@ export namespace TW {
|
|
11287
11385
|
/** SigningInput deregisterStakingKey. */
|
11288
11386
|
public deregisterStakingKey?: (TW.Cardano.Proto.IDeregisterStakingKey|null);
|
11289
11387
|
|
11388
|
+
/** SigningInput voteDelegation. */
|
11389
|
+
public voteDelegation?: (TW.Cardano.Proto.IVoteDelegation|null);
|
11390
|
+
|
11290
11391
|
/** SigningInput ttl. */
|
11291
11392
|
public ttl: Long;
|
11292
11393
|
|
@@ -37069,6 +37170,9 @@ export namespace TW {
|
|
37069
37170
|
/** SigningInput publicKey */
|
37070
37171
|
publicKey?: (Uint8Array|null);
|
37071
37172
|
|
37173
|
+
/** SigningInput rawJson */
|
37174
|
+
rawJson?: (string|null);
|
37175
|
+
|
37072
37176
|
/** SigningInput sourceTag */
|
37073
37177
|
sourceTag?: (number|null);
|
37074
37178
|
}
|
@@ -37130,6 +37234,9 @@ export namespace TW {
|
|
37130
37234
|
/** SigningInput publicKey. */
|
37131
37235
|
public publicKey: Uint8Array;
|
37132
37236
|
|
37237
|
+
/** SigningInput rawJson. */
|
37238
|
+
public rawJson: string;
|
37239
|
+
|
37133
37240
|
/** SigningInput sourceTag. */
|
37134
37241
|
public sourceTag: number;
|
37135
37242
|
|
@@ -32565,6 +32565,243 @@
|
|
32565
32565
|
return DeregisterStakingKey;
|
32566
32566
|
})();
|
32567
32567
|
|
32568
|
+
Proto.VoteDelegation = (function() {
|
32569
|
+
|
32570
|
+
/**
|
32571
|
+
* Properties of a VoteDelegation.
|
32572
|
+
* @memberof TW.Cardano.Proto
|
32573
|
+
* @interface IVoteDelegation
|
32574
|
+
* @property {string|null} [stakingAddress] VoteDelegation stakingAddress
|
32575
|
+
* @property {TW.Cardano.Proto.VoteDelegation.DRepType|null} [drepType] VoteDelegation drepType
|
32576
|
+
* @property {string|null} [drepId] VoteDelegation drepId
|
32577
|
+
*/
|
32578
|
+
|
32579
|
+
/**
|
32580
|
+
* Constructs a new VoteDelegation.
|
32581
|
+
* @memberof TW.Cardano.Proto
|
32582
|
+
* @classdesc Represents a VoteDelegation.
|
32583
|
+
* @implements IVoteDelegation
|
32584
|
+
* @constructor
|
32585
|
+
* @param {TW.Cardano.Proto.IVoteDelegation=} [properties] Properties to set
|
32586
|
+
*/
|
32587
|
+
function VoteDelegation(properties) {
|
32588
|
+
if (properties)
|
32589
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
32590
|
+
if (properties[keys[i]] != null)
|
32591
|
+
this[keys[i]] = properties[keys[i]];
|
32592
|
+
}
|
32593
|
+
|
32594
|
+
/**
|
32595
|
+
* VoteDelegation stakingAddress.
|
32596
|
+
* @member {string} stakingAddress
|
32597
|
+
* @memberof TW.Cardano.Proto.VoteDelegation
|
32598
|
+
* @instance
|
32599
|
+
*/
|
32600
|
+
VoteDelegation.prototype.stakingAddress = "";
|
32601
|
+
|
32602
|
+
/**
|
32603
|
+
* VoteDelegation drepType.
|
32604
|
+
* @member {TW.Cardano.Proto.VoteDelegation.DRepType} drepType
|
32605
|
+
* @memberof TW.Cardano.Proto.VoteDelegation
|
32606
|
+
* @instance
|
32607
|
+
*/
|
32608
|
+
VoteDelegation.prototype.drepType = 0;
|
32609
|
+
|
32610
|
+
/**
|
32611
|
+
* VoteDelegation drepId.
|
32612
|
+
* @member {string} drepId
|
32613
|
+
* @memberof TW.Cardano.Proto.VoteDelegation
|
32614
|
+
* @instance
|
32615
|
+
*/
|
32616
|
+
VoteDelegation.prototype.drepId = "";
|
32617
|
+
|
32618
|
+
/**
|
32619
|
+
* Creates a new VoteDelegation instance using the specified properties.
|
32620
|
+
* @function create
|
32621
|
+
* @memberof TW.Cardano.Proto.VoteDelegation
|
32622
|
+
* @static
|
32623
|
+
* @param {TW.Cardano.Proto.IVoteDelegation=} [properties] Properties to set
|
32624
|
+
* @returns {TW.Cardano.Proto.VoteDelegation} VoteDelegation instance
|
32625
|
+
*/
|
32626
|
+
VoteDelegation.create = function create(properties) {
|
32627
|
+
return new VoteDelegation(properties);
|
32628
|
+
};
|
32629
|
+
|
32630
|
+
/**
|
32631
|
+
* Encodes the specified VoteDelegation message. Does not implicitly {@link TW.Cardano.Proto.VoteDelegation.verify|verify} messages.
|
32632
|
+
* @function encode
|
32633
|
+
* @memberof TW.Cardano.Proto.VoteDelegation
|
32634
|
+
* @static
|
32635
|
+
* @param {TW.Cardano.Proto.IVoteDelegation} message VoteDelegation message or plain object to encode
|
32636
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
32637
|
+
* @returns {$protobuf.Writer} Writer
|
32638
|
+
*/
|
32639
|
+
VoteDelegation.encode = function encode(message, writer) {
|
32640
|
+
if (!writer)
|
32641
|
+
writer = $Writer.create();
|
32642
|
+
if (message.stakingAddress != null && Object.hasOwnProperty.call(message, "stakingAddress"))
|
32643
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.stakingAddress);
|
32644
|
+
if (message.drepType != null && Object.hasOwnProperty.call(message, "drepType"))
|
32645
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.drepType);
|
32646
|
+
if (message.drepId != null && Object.hasOwnProperty.call(message, "drepId"))
|
32647
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.drepId);
|
32648
|
+
return writer;
|
32649
|
+
};
|
32650
|
+
|
32651
|
+
/**
|
32652
|
+
* Decodes a VoteDelegation message from the specified reader or buffer.
|
32653
|
+
* @function decode
|
32654
|
+
* @memberof TW.Cardano.Proto.VoteDelegation
|
32655
|
+
* @static
|
32656
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
32657
|
+
* @param {number} [length] Message length if known beforehand
|
32658
|
+
* @returns {TW.Cardano.Proto.VoteDelegation} VoteDelegation
|
32659
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
32660
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
32661
|
+
*/
|
32662
|
+
VoteDelegation.decode = function decode(reader, length) {
|
32663
|
+
if (!(reader instanceof $Reader))
|
32664
|
+
reader = $Reader.create(reader);
|
32665
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.TW.Cardano.Proto.VoteDelegation();
|
32666
|
+
while (reader.pos < end) {
|
32667
|
+
var tag = reader.uint32();
|
32668
|
+
switch (tag >>> 3) {
|
32669
|
+
case 1:
|
32670
|
+
message.stakingAddress = reader.string();
|
32671
|
+
break;
|
32672
|
+
case 2:
|
32673
|
+
message.drepType = reader.int32();
|
32674
|
+
break;
|
32675
|
+
case 3:
|
32676
|
+
message.drepId = reader.string();
|
32677
|
+
break;
|
32678
|
+
default:
|
32679
|
+
reader.skipType(tag & 7);
|
32680
|
+
break;
|
32681
|
+
}
|
32682
|
+
}
|
32683
|
+
return message;
|
32684
|
+
};
|
32685
|
+
|
32686
|
+
/**
|
32687
|
+
* Verifies a VoteDelegation message.
|
32688
|
+
* @function verify
|
32689
|
+
* @memberof TW.Cardano.Proto.VoteDelegation
|
32690
|
+
* @static
|
32691
|
+
* @param {Object.<string,*>} message Plain object to verify
|
32692
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
32693
|
+
*/
|
32694
|
+
VoteDelegation.verify = function verify(message) {
|
32695
|
+
if (typeof message !== "object" || message === null)
|
32696
|
+
return "object expected";
|
32697
|
+
if (message.stakingAddress != null && message.hasOwnProperty("stakingAddress"))
|
32698
|
+
if (!$util.isString(message.stakingAddress))
|
32699
|
+
return "stakingAddress: string expected";
|
32700
|
+
if (message.drepType != null && message.hasOwnProperty("drepType"))
|
32701
|
+
switch (message.drepType) {
|
32702
|
+
default:
|
32703
|
+
return "drepType: enum value expected";
|
32704
|
+
case 0:
|
32705
|
+
case 2:
|
32706
|
+
case 3:
|
32707
|
+
break;
|
32708
|
+
}
|
32709
|
+
if (message.drepId != null && message.hasOwnProperty("drepId"))
|
32710
|
+
if (!$util.isString(message.drepId))
|
32711
|
+
return "drepId: string expected";
|
32712
|
+
return null;
|
32713
|
+
};
|
32714
|
+
|
32715
|
+
/**
|
32716
|
+
* Creates a VoteDelegation message from a plain object. Also converts values to their respective internal types.
|
32717
|
+
* @function fromObject
|
32718
|
+
* @memberof TW.Cardano.Proto.VoteDelegation
|
32719
|
+
* @static
|
32720
|
+
* @param {Object.<string,*>} object Plain object
|
32721
|
+
* @returns {TW.Cardano.Proto.VoteDelegation} VoteDelegation
|
32722
|
+
*/
|
32723
|
+
VoteDelegation.fromObject = function fromObject(object) {
|
32724
|
+
if (object instanceof $root.TW.Cardano.Proto.VoteDelegation)
|
32725
|
+
return object;
|
32726
|
+
var message = new $root.TW.Cardano.Proto.VoteDelegation();
|
32727
|
+
if (object.stakingAddress != null)
|
32728
|
+
message.stakingAddress = String(object.stakingAddress);
|
32729
|
+
switch (object.drepType) {
|
32730
|
+
case "DREP_ID":
|
32731
|
+
case 0:
|
32732
|
+
message.drepType = 0;
|
32733
|
+
break;
|
32734
|
+
case "DREP_ALWAYS_ABSTAIN":
|
32735
|
+
case 2:
|
32736
|
+
message.drepType = 2;
|
32737
|
+
break;
|
32738
|
+
case "DREP_NO_CONFIDENCE":
|
32739
|
+
case 3:
|
32740
|
+
message.drepType = 3;
|
32741
|
+
break;
|
32742
|
+
}
|
32743
|
+
if (object.drepId != null)
|
32744
|
+
message.drepId = String(object.drepId);
|
32745
|
+
return message;
|
32746
|
+
};
|
32747
|
+
|
32748
|
+
/**
|
32749
|
+
* Creates a plain object from a VoteDelegation message. Also converts values to other types if specified.
|
32750
|
+
* @function toObject
|
32751
|
+
* @memberof TW.Cardano.Proto.VoteDelegation
|
32752
|
+
* @static
|
32753
|
+
* @param {TW.Cardano.Proto.VoteDelegation} message VoteDelegation
|
32754
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
32755
|
+
* @returns {Object.<string,*>} Plain object
|
32756
|
+
*/
|
32757
|
+
VoteDelegation.toObject = function toObject(message, options) {
|
32758
|
+
if (!options)
|
32759
|
+
options = {};
|
32760
|
+
var object = {};
|
32761
|
+
if (options.defaults) {
|
32762
|
+
object.stakingAddress = "";
|
32763
|
+
object.drepType = options.enums === String ? "DREP_ID" : 0;
|
32764
|
+
object.drepId = "";
|
32765
|
+
}
|
32766
|
+
if (message.stakingAddress != null && message.hasOwnProperty("stakingAddress"))
|
32767
|
+
object.stakingAddress = message.stakingAddress;
|
32768
|
+
if (message.drepType != null && message.hasOwnProperty("drepType"))
|
32769
|
+
object.drepType = options.enums === String ? $root.TW.Cardano.Proto.VoteDelegation.DRepType[message.drepType] : message.drepType;
|
32770
|
+
if (message.drepId != null && message.hasOwnProperty("drepId"))
|
32771
|
+
object.drepId = message.drepId;
|
32772
|
+
return object;
|
32773
|
+
};
|
32774
|
+
|
32775
|
+
/**
|
32776
|
+
* Converts this VoteDelegation to JSON.
|
32777
|
+
* @function toJSON
|
32778
|
+
* @memberof TW.Cardano.Proto.VoteDelegation
|
32779
|
+
* @instance
|
32780
|
+
* @returns {Object.<string,*>} JSON object
|
32781
|
+
*/
|
32782
|
+
VoteDelegation.prototype.toJSON = function toJSON() {
|
32783
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
32784
|
+
};
|
32785
|
+
|
32786
|
+
/**
|
32787
|
+
* DRepType enum.
|
32788
|
+
* @name TW.Cardano.Proto.VoteDelegation.DRepType
|
32789
|
+
* @enum {number}
|
32790
|
+
* @property {number} DREP_ID=0 DREP_ID value
|
32791
|
+
* @property {number} DREP_ALWAYS_ABSTAIN=2 DREP_ALWAYS_ABSTAIN value
|
32792
|
+
* @property {number} DREP_NO_CONFIDENCE=3 DREP_NO_CONFIDENCE value
|
32793
|
+
*/
|
32794
|
+
VoteDelegation.DRepType = (function() {
|
32795
|
+
var valuesById = {}, values = Object.create(valuesById);
|
32796
|
+
values[valuesById[0] = "DREP_ID"] = 0;
|
32797
|
+
values[valuesById[2] = "DREP_ALWAYS_ABSTAIN"] = 2;
|
32798
|
+
values[valuesById[3] = "DREP_NO_CONFIDENCE"] = 3;
|
32799
|
+
return values;
|
32800
|
+
})();
|
32801
|
+
|
32802
|
+
return VoteDelegation;
|
32803
|
+
})();
|
32804
|
+
|
32568
32805
|
Proto.Delegate = (function() {
|
32569
32806
|
|
32570
32807
|
/**
|
@@ -33724,6 +33961,7 @@
|
|
33724
33961
|
* @property {TW.Cardano.Proto.IDelegate|null} [delegate] SigningInput delegate
|
33725
33962
|
* @property {TW.Cardano.Proto.IWithdraw|null} [withdraw] SigningInput withdraw
|
33726
33963
|
* @property {TW.Cardano.Proto.IDeregisterStakingKey|null} [deregisterStakingKey] SigningInput deregisterStakingKey
|
33964
|
+
* @property {TW.Cardano.Proto.IVoteDelegation|null} [voteDelegation] SigningInput voteDelegation
|
33727
33965
|
* @property {Long|null} [ttl] SigningInput ttl
|
33728
33966
|
* @property {TW.Cardano.Proto.ITransactionPlan|null} [plan] SigningInput plan
|
33729
33967
|
* @property {Array.<TW.Cardano.Proto.ITxOutput>|null} [extraOutputs] SigningInput extraOutputs
|
@@ -33803,6 +34041,14 @@
|
|
33803
34041
|
*/
|
33804
34042
|
SigningInput.prototype.deregisterStakingKey = null;
|
33805
34043
|
|
34044
|
+
/**
|
34045
|
+
* SigningInput voteDelegation.
|
34046
|
+
* @member {TW.Cardano.Proto.IVoteDelegation|null|undefined} voteDelegation
|
34047
|
+
* @memberof TW.Cardano.Proto.SigningInput
|
34048
|
+
* @instance
|
34049
|
+
*/
|
34050
|
+
SigningInput.prototype.voteDelegation = null;
|
34051
|
+
|
33806
34052
|
/**
|
33807
34053
|
* SigningInput ttl.
|
33808
34054
|
* @member {Long} ttl
|
@@ -33874,6 +34120,8 @@
|
|
33874
34120
|
if (message.extraOutputs != null && message.extraOutputs.length)
|
33875
34121
|
for (var i = 0; i < message.extraOutputs.length; ++i)
|
33876
34122
|
$root.TW.Cardano.Proto.TxOutput.encode(message.extraOutputs[i], writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
|
34123
|
+
if (message.voteDelegation != null && Object.hasOwnProperty.call(message, "voteDelegation"))
|
34124
|
+
$root.TW.Cardano.Proto.VoteDelegation.encode(message.voteDelegation, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim();
|
33877
34125
|
return writer;
|
33878
34126
|
};
|
33879
34127
|
|
@@ -33920,6 +34168,9 @@
|
|
33920
34168
|
case 9:
|
33921
34169
|
message.deregisterStakingKey = $root.TW.Cardano.Proto.DeregisterStakingKey.decode(reader, reader.uint32());
|
33922
34170
|
break;
|
34171
|
+
case 11:
|
34172
|
+
message.voteDelegation = $root.TW.Cardano.Proto.VoteDelegation.decode(reader, reader.uint32());
|
34173
|
+
break;
|
33923
34174
|
case 4:
|
33924
34175
|
message.ttl = reader.uint64();
|
33925
34176
|
break;
|
@@ -33991,6 +34242,11 @@
|
|
33991
34242
|
if (error)
|
33992
34243
|
return "deregisterStakingKey." + error;
|
33993
34244
|
}
|
34245
|
+
if (message.voteDelegation != null && message.hasOwnProperty("voteDelegation")) {
|
34246
|
+
var error = $root.TW.Cardano.Proto.VoteDelegation.verify(message.voteDelegation);
|
34247
|
+
if (error)
|
34248
|
+
return "voteDelegation." + error;
|
34249
|
+
}
|
33994
34250
|
if (message.ttl != null && message.hasOwnProperty("ttl"))
|
33995
34251
|
if (!$util.isInteger(message.ttl) && !(message.ttl && $util.isInteger(message.ttl.low) && $util.isInteger(message.ttl.high)))
|
33996
34252
|
return "ttl: integer|Long expected";
|
@@ -34068,6 +34324,11 @@
|
|
34068
34324
|
throw TypeError(".TW.Cardano.Proto.SigningInput.deregisterStakingKey: object expected");
|
34069
34325
|
message.deregisterStakingKey = $root.TW.Cardano.Proto.DeregisterStakingKey.fromObject(object.deregisterStakingKey);
|
34070
34326
|
}
|
34327
|
+
if (object.voteDelegation != null) {
|
34328
|
+
if (typeof object.voteDelegation !== "object")
|
34329
|
+
throw TypeError(".TW.Cardano.Proto.SigningInput.voteDelegation: object expected");
|
34330
|
+
message.voteDelegation = $root.TW.Cardano.Proto.VoteDelegation.fromObject(object.voteDelegation);
|
34331
|
+
}
|
34071
34332
|
if (object.ttl != null)
|
34072
34333
|
if ($util.Long)
|
34073
34334
|
(message.ttl = $util.Long.fromValue(object.ttl)).unsigned = true;
|
@@ -34125,6 +34386,7 @@
|
|
34125
34386
|
object.delegate = null;
|
34126
34387
|
object.withdraw = null;
|
34127
34388
|
object.deregisterStakingKey = null;
|
34389
|
+
object.voteDelegation = null;
|
34128
34390
|
}
|
34129
34391
|
if (message.utxos && message.utxos.length) {
|
34130
34392
|
object.utxos = [];
|
@@ -34158,6 +34420,8 @@
|
|
34158
34420
|
for (var j = 0; j < message.extraOutputs.length; ++j)
|
34159
34421
|
object.extraOutputs[j] = $root.TW.Cardano.Proto.TxOutput.toObject(message.extraOutputs[j], options);
|
34160
34422
|
}
|
34423
|
+
if (message.voteDelegation != null && message.hasOwnProperty("voteDelegation"))
|
34424
|
+
object.voteDelegation = $root.TW.Cardano.Proto.VoteDelegation.toObject(message.voteDelegation, options);
|
34161
34425
|
return object;
|
34162
34426
|
};
|
34163
34427
|
|
@@ -109146,6 +109410,7 @@
|
|
109146
109410
|
* @property {TW.Ripple.Proto.IOperationEscrowCancel|null} [opEscrowCancel] SigningInput opEscrowCancel
|
109147
109411
|
* @property {TW.Ripple.Proto.IOperationEscrowFinish|null} [opEscrowFinish] SigningInput opEscrowFinish
|
109148
109412
|
* @property {Uint8Array|null} [publicKey] SigningInput publicKey
|
109413
|
+
* @property {string|null} [rawJson] SigningInput rawJson
|
109149
109414
|
* @property {number|null} [sourceTag] SigningInput sourceTag
|
109150
109415
|
*/
|
109151
109416
|
|
@@ -109292,6 +109557,14 @@
|
|
109292
109557
|
*/
|
109293
109558
|
SigningInput.prototype.publicKey = $util.newBuffer([]);
|
109294
109559
|
|
109560
|
+
/**
|
109561
|
+
* SigningInput rawJson.
|
109562
|
+
* @member {string} rawJson
|
109563
|
+
* @memberof TW.Ripple.Proto.SigningInput
|
109564
|
+
* @instance
|
109565
|
+
*/
|
109566
|
+
SigningInput.prototype.rawJson = "";
|
109567
|
+
|
109295
109568
|
/**
|
109296
109569
|
* SigningInput sourceTag.
|
109297
109570
|
* @member {number} sourceTag
|
@@ -109370,6 +109643,8 @@
|
|
109370
109643
|
$root.TW.Ripple.Proto.OperationEscrowCancel.encode(message.opEscrowCancel, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim();
|
109371
109644
|
if (message.opEscrowFinish != null && Object.hasOwnProperty.call(message, "opEscrowFinish"))
|
109372
109645
|
$root.TW.Ripple.Proto.OperationEscrowFinish.encode(message.opEscrowFinish, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim();
|
109646
|
+
if (message.rawJson != null && Object.hasOwnProperty.call(message, "rawJson"))
|
109647
|
+
writer.uint32(/* id 20, wireType 2 =*/162).string(message.rawJson);
|
109373
109648
|
if (message.sourceTag != null && Object.hasOwnProperty.call(message, "sourceTag"))
|
109374
109649
|
writer.uint32(/* id 25, wireType 0 =*/200).uint32(message.sourceTag);
|
109375
109650
|
return writer;
|
@@ -109441,6 +109716,9 @@
|
|
109441
109716
|
case 15:
|
109442
109717
|
message.publicKey = reader.bytes();
|
109443
109718
|
break;
|
109719
|
+
case 20:
|
109720
|
+
message.rawJson = reader.string();
|
109721
|
+
break;
|
109444
109722
|
case 25:
|
109445
109723
|
message.sourceTag = reader.uint32();
|
109446
109724
|
break;
|
@@ -109573,6 +109851,9 @@
|
|
109573
109851
|
if (message.publicKey != null && message.hasOwnProperty("publicKey"))
|
109574
109852
|
if (!(message.publicKey && typeof message.publicKey.length === "number" || $util.isString(message.publicKey)))
|
109575
109853
|
return "publicKey: buffer expected";
|
109854
|
+
if (message.rawJson != null && message.hasOwnProperty("rawJson"))
|
109855
|
+
if (!$util.isString(message.rawJson))
|
109856
|
+
return "rawJson: string expected";
|
109576
109857
|
if (message.sourceTag != null && message.hasOwnProperty("sourceTag"))
|
109577
109858
|
if (!$util.isInteger(message.sourceTag))
|
109578
109859
|
return "sourceTag: integer expected";
|
@@ -109663,6 +109944,8 @@
|
|
109663
109944
|
$util.base64.decode(object.publicKey, message.publicKey = $util.newBuffer($util.base64.length(object.publicKey)), 0);
|
109664
109945
|
else if (object.publicKey.length)
|
109665
109946
|
message.publicKey = object.publicKey;
|
109947
|
+
if (object.rawJson != null)
|
109948
|
+
message.rawJson = String(object.rawJson);
|
109666
109949
|
if (object.sourceTag != null)
|
109667
109950
|
message.sourceTag = object.sourceTag >>> 0;
|
109668
109951
|
return message;
|
@@ -109705,6 +109988,7 @@
|
|
109705
109988
|
if (options.bytes !== Array)
|
109706
109989
|
object.publicKey = $util.newBuffer(object.publicKey);
|
109707
109990
|
}
|
109991
|
+
object.rawJson = "";
|
109708
109992
|
object.sourceTag = 0;
|
109709
109993
|
}
|
109710
109994
|
if (message.fee != null && message.hasOwnProperty("fee"))
|
@@ -109769,6 +110053,8 @@
|
|
109769
110053
|
if (options.oneofs)
|
109770
110054
|
object.operationOneof = "opEscrowFinish";
|
109771
110055
|
}
|
110056
|
+
if (message.rawJson != null && message.hasOwnProperty("rawJson"))
|
110057
|
+
object.rawJson = message.rawJson;
|
109772
110058
|
if (message.sourceTag != null && message.hasOwnProperty("sourceTag"))
|
109773
110059
|
object.sourceTag = message.sourceTag;
|
109774
110060
|
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={2159636:()=>{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";}}},2160358:()=>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
|