@trustwallet/wallet-core 3.2.8 → 3.2.10
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.
@@ -1181,6 +1181,91 @@ export namespace TW {
|
|
1181
1181
|
public toJSON(): { [k: string]: any };
|
1182
1182
|
}
|
1183
1183
|
|
1184
|
+
/** Properties of a TokenTransferCoinsMessage. */
|
1185
|
+
interface ITokenTransferCoinsMessage {
|
1186
|
+
|
1187
|
+
/** TokenTransferCoinsMessage to */
|
1188
|
+
to?: (string|null);
|
1189
|
+
|
1190
|
+
/** TokenTransferCoinsMessage amount */
|
1191
|
+
amount?: (Long|null);
|
1192
|
+
|
1193
|
+
/** TokenTransferCoinsMessage function */
|
1194
|
+
"function"?: (TW.Aptos.Proto.IStructTag|null);
|
1195
|
+
}
|
1196
|
+
|
1197
|
+
/** Represents a TokenTransferCoinsMessage. */
|
1198
|
+
class TokenTransferCoinsMessage implements ITokenTransferCoinsMessage {
|
1199
|
+
|
1200
|
+
/**
|
1201
|
+
* Constructs a new TokenTransferCoinsMessage.
|
1202
|
+
* @param [properties] Properties to set
|
1203
|
+
*/
|
1204
|
+
constructor(properties?: TW.Aptos.Proto.ITokenTransferCoinsMessage);
|
1205
|
+
|
1206
|
+
/** TokenTransferCoinsMessage to. */
|
1207
|
+
public to: string;
|
1208
|
+
|
1209
|
+
/** TokenTransferCoinsMessage amount. */
|
1210
|
+
public amount: Long;
|
1211
|
+
|
1212
|
+
/** TokenTransferCoinsMessage function. */
|
1213
|
+
public function?: (TW.Aptos.Proto.IStructTag|null);
|
1214
|
+
|
1215
|
+
/**
|
1216
|
+
* Creates a new TokenTransferCoinsMessage instance using the specified properties.
|
1217
|
+
* @param [properties] Properties to set
|
1218
|
+
* @returns TokenTransferCoinsMessage instance
|
1219
|
+
*/
|
1220
|
+
public static create(properties?: TW.Aptos.Proto.ITokenTransferCoinsMessage): TW.Aptos.Proto.TokenTransferCoinsMessage;
|
1221
|
+
|
1222
|
+
/**
|
1223
|
+
* Encodes the specified TokenTransferCoinsMessage message. Does not implicitly {@link TW.Aptos.Proto.TokenTransferCoinsMessage.verify|verify} messages.
|
1224
|
+
* @param message TokenTransferCoinsMessage message or plain object to encode
|
1225
|
+
* @param [writer] Writer to encode to
|
1226
|
+
* @returns Writer
|
1227
|
+
*/
|
1228
|
+
public static encode(message: TW.Aptos.Proto.ITokenTransferCoinsMessage, writer?: $protobuf.Writer): $protobuf.Writer;
|
1229
|
+
|
1230
|
+
/**
|
1231
|
+
* Decodes a TokenTransferCoinsMessage message from the specified reader or buffer.
|
1232
|
+
* @param reader Reader or buffer to decode from
|
1233
|
+
* @param [length] Message length if known beforehand
|
1234
|
+
* @returns TokenTransferCoinsMessage
|
1235
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
1236
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1237
|
+
*/
|
1238
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Aptos.Proto.TokenTransferCoinsMessage;
|
1239
|
+
|
1240
|
+
/**
|
1241
|
+
* Verifies a TokenTransferCoinsMessage message.
|
1242
|
+
* @param message Plain object to verify
|
1243
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
1244
|
+
*/
|
1245
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
1246
|
+
|
1247
|
+
/**
|
1248
|
+
* Creates a TokenTransferCoinsMessage message from a plain object. Also converts values to their respective internal types.
|
1249
|
+
* @param object Plain object
|
1250
|
+
* @returns TokenTransferCoinsMessage
|
1251
|
+
*/
|
1252
|
+
public static fromObject(object: { [k: string]: any }): TW.Aptos.Proto.TokenTransferCoinsMessage;
|
1253
|
+
|
1254
|
+
/**
|
1255
|
+
* Creates a plain object from a TokenTransferCoinsMessage message. Also converts values to other types if specified.
|
1256
|
+
* @param message TokenTransferCoinsMessage
|
1257
|
+
* @param [options] Conversion options
|
1258
|
+
* @returns Plain object
|
1259
|
+
*/
|
1260
|
+
public static toObject(message: TW.Aptos.Proto.TokenTransferCoinsMessage, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
1261
|
+
|
1262
|
+
/**
|
1263
|
+
* Converts this TokenTransferCoinsMessage to JSON.
|
1264
|
+
* @returns JSON object
|
1265
|
+
*/
|
1266
|
+
public toJSON(): { [k: string]: any };
|
1267
|
+
}
|
1268
|
+
|
1184
1269
|
/** Properties of a ManagedTokensRegisterMessage. */
|
1185
1270
|
interface IManagedTokensRegisterMessage {
|
1186
1271
|
|
@@ -2069,6 +2154,9 @@ export namespace TW {
|
|
2069
2154
|
|
2070
2155
|
/** SigningInput liquidStakingMessage */
|
2071
2156
|
liquidStakingMessage?: (TW.Aptos.Proto.ILiquidStaking|null);
|
2157
|
+
|
2158
|
+
/** SigningInput tokenTransferCoins */
|
2159
|
+
tokenTransferCoins?: (TW.Aptos.Proto.ITokenTransferCoinsMessage|null);
|
2072
2160
|
}
|
2073
2161
|
|
2074
2162
|
/** Represents a SigningInput. */
|
@@ -2122,8 +2210,11 @@ export namespace TW {
|
|
2122
2210
|
/** SigningInput liquidStakingMessage. */
|
2123
2211
|
public liquidStakingMessage?: (TW.Aptos.Proto.ILiquidStaking|null);
|
2124
2212
|
|
2213
|
+
/** SigningInput tokenTransferCoins. */
|
2214
|
+
public tokenTransferCoins?: (TW.Aptos.Proto.ITokenTransferCoinsMessage|null);
|
2215
|
+
|
2125
2216
|
/** SigningInput transactionPayload. */
|
2126
|
-
public transactionPayload?: ("transfer"|"tokenTransfer"|"createAccount"|"nftMessage"|"registerToken"|"liquidStakingMessage");
|
2217
|
+
public transactionPayload?: ("transfer"|"tokenTransfer"|"createAccount"|"nftMessage"|"registerToken"|"liquidStakingMessage"|"tokenTransferCoins");
|
2127
2218
|
|
2128
2219
|
/**
|
2129
2220
|
* Creates a new SigningInput instance using the specified properties.
|
@@ -2383,6 +2474,9 @@ export namespace TW {
|
|
2383
2474
|
|
2384
2475
|
/** ContractAddressInput publicKey */
|
2385
2476
|
publicKey?: (string|null);
|
2477
|
+
|
2478
|
+
/** ContractAddressInput salt */
|
2479
|
+
salt?: (number|null);
|
2386
2480
|
}
|
2387
2481
|
|
2388
2482
|
/** Represents a ContractAddressInput. */
|
@@ -2418,6 +2512,9 @@ export namespace TW {
|
|
2418
2512
|
/** ContractAddressInput publicKey. */
|
2419
2513
|
public publicKey: string;
|
2420
2514
|
|
2515
|
+
/** ContractAddressInput salt. */
|
2516
|
+
public salt: number;
|
2517
|
+
|
2421
2518
|
/**
|
2422
2519
|
* Creates a new ContractAddressInput instance using the specified properties.
|
2423
2520
|
* @param [properties] Properties to set
|
@@ -3574,6 +3574,228 @@
|
|
3574
3574
|
return TokenTransferMessage;
|
3575
3575
|
})();
|
3576
3576
|
|
3577
|
+
Proto.TokenTransferCoinsMessage = (function() {
|
3578
|
+
|
3579
|
+
/**
|
3580
|
+
* Properties of a TokenTransferCoinsMessage.
|
3581
|
+
* @memberof TW.Aptos.Proto
|
3582
|
+
* @interface ITokenTransferCoinsMessage
|
3583
|
+
* @property {string|null} [to] TokenTransferCoinsMessage to
|
3584
|
+
* @property {Long|null} [amount] TokenTransferCoinsMessage amount
|
3585
|
+
* @property {TW.Aptos.Proto.IStructTag|null} ["function"] TokenTransferCoinsMessage function
|
3586
|
+
*/
|
3587
|
+
|
3588
|
+
/**
|
3589
|
+
* Constructs a new TokenTransferCoinsMessage.
|
3590
|
+
* @memberof TW.Aptos.Proto
|
3591
|
+
* @classdesc Represents a TokenTransferCoinsMessage.
|
3592
|
+
* @implements ITokenTransferCoinsMessage
|
3593
|
+
* @constructor
|
3594
|
+
* @param {TW.Aptos.Proto.ITokenTransferCoinsMessage=} [properties] Properties to set
|
3595
|
+
*/
|
3596
|
+
function TokenTransferCoinsMessage(properties) {
|
3597
|
+
if (properties)
|
3598
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
3599
|
+
if (properties[keys[i]] != null)
|
3600
|
+
this[keys[i]] = properties[keys[i]];
|
3601
|
+
}
|
3602
|
+
|
3603
|
+
/**
|
3604
|
+
* TokenTransferCoinsMessage to.
|
3605
|
+
* @member {string} to
|
3606
|
+
* @memberof TW.Aptos.Proto.TokenTransferCoinsMessage
|
3607
|
+
* @instance
|
3608
|
+
*/
|
3609
|
+
TokenTransferCoinsMessage.prototype.to = "";
|
3610
|
+
|
3611
|
+
/**
|
3612
|
+
* TokenTransferCoinsMessage amount.
|
3613
|
+
* @member {Long} amount
|
3614
|
+
* @memberof TW.Aptos.Proto.TokenTransferCoinsMessage
|
3615
|
+
* @instance
|
3616
|
+
*/
|
3617
|
+
TokenTransferCoinsMessage.prototype.amount = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
3618
|
+
|
3619
|
+
/**
|
3620
|
+
* TokenTransferCoinsMessage function.
|
3621
|
+
* @member {TW.Aptos.Proto.IStructTag|null|undefined} function
|
3622
|
+
* @memberof TW.Aptos.Proto.TokenTransferCoinsMessage
|
3623
|
+
* @instance
|
3624
|
+
*/
|
3625
|
+
TokenTransferCoinsMessage.prototype["function"] = null;
|
3626
|
+
|
3627
|
+
/**
|
3628
|
+
* Creates a new TokenTransferCoinsMessage instance using the specified properties.
|
3629
|
+
* @function create
|
3630
|
+
* @memberof TW.Aptos.Proto.TokenTransferCoinsMessage
|
3631
|
+
* @static
|
3632
|
+
* @param {TW.Aptos.Proto.ITokenTransferCoinsMessage=} [properties] Properties to set
|
3633
|
+
* @returns {TW.Aptos.Proto.TokenTransferCoinsMessage} TokenTransferCoinsMessage instance
|
3634
|
+
*/
|
3635
|
+
TokenTransferCoinsMessage.create = function create(properties) {
|
3636
|
+
return new TokenTransferCoinsMessage(properties);
|
3637
|
+
};
|
3638
|
+
|
3639
|
+
/**
|
3640
|
+
* Encodes the specified TokenTransferCoinsMessage message. Does not implicitly {@link TW.Aptos.Proto.TokenTransferCoinsMessage.verify|verify} messages.
|
3641
|
+
* @function encode
|
3642
|
+
* @memberof TW.Aptos.Proto.TokenTransferCoinsMessage
|
3643
|
+
* @static
|
3644
|
+
* @param {TW.Aptos.Proto.ITokenTransferCoinsMessage} message TokenTransferCoinsMessage message or plain object to encode
|
3645
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
3646
|
+
* @returns {$protobuf.Writer} Writer
|
3647
|
+
*/
|
3648
|
+
TokenTransferCoinsMessage.encode = function encode(message, writer) {
|
3649
|
+
if (!writer)
|
3650
|
+
writer = $Writer.create();
|
3651
|
+
if (message.to != null && Object.hasOwnProperty.call(message, "to"))
|
3652
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.to);
|
3653
|
+
if (message.amount != null && Object.hasOwnProperty.call(message, "amount"))
|
3654
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.amount);
|
3655
|
+
if (message["function"] != null && Object.hasOwnProperty.call(message, "function"))
|
3656
|
+
$root.TW.Aptos.Proto.StructTag.encode(message["function"], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
3657
|
+
return writer;
|
3658
|
+
};
|
3659
|
+
|
3660
|
+
/**
|
3661
|
+
* Decodes a TokenTransferCoinsMessage message from the specified reader or buffer.
|
3662
|
+
* @function decode
|
3663
|
+
* @memberof TW.Aptos.Proto.TokenTransferCoinsMessage
|
3664
|
+
* @static
|
3665
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
3666
|
+
* @param {number} [length] Message length if known beforehand
|
3667
|
+
* @returns {TW.Aptos.Proto.TokenTransferCoinsMessage} TokenTransferCoinsMessage
|
3668
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
3669
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
3670
|
+
*/
|
3671
|
+
TokenTransferCoinsMessage.decode = function decode(reader, length) {
|
3672
|
+
if (!(reader instanceof $Reader))
|
3673
|
+
reader = $Reader.create(reader);
|
3674
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.TW.Aptos.Proto.TokenTransferCoinsMessage();
|
3675
|
+
while (reader.pos < end) {
|
3676
|
+
var tag = reader.uint32();
|
3677
|
+
switch (tag >>> 3) {
|
3678
|
+
case 1:
|
3679
|
+
message.to = reader.string();
|
3680
|
+
break;
|
3681
|
+
case 2:
|
3682
|
+
message.amount = reader.uint64();
|
3683
|
+
break;
|
3684
|
+
case 3:
|
3685
|
+
message["function"] = $root.TW.Aptos.Proto.StructTag.decode(reader, reader.uint32());
|
3686
|
+
break;
|
3687
|
+
default:
|
3688
|
+
reader.skipType(tag & 7);
|
3689
|
+
break;
|
3690
|
+
}
|
3691
|
+
}
|
3692
|
+
return message;
|
3693
|
+
};
|
3694
|
+
|
3695
|
+
/**
|
3696
|
+
* Verifies a TokenTransferCoinsMessage message.
|
3697
|
+
* @function verify
|
3698
|
+
* @memberof TW.Aptos.Proto.TokenTransferCoinsMessage
|
3699
|
+
* @static
|
3700
|
+
* @param {Object.<string,*>} message Plain object to verify
|
3701
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
3702
|
+
*/
|
3703
|
+
TokenTransferCoinsMessage.verify = function verify(message) {
|
3704
|
+
if (typeof message !== "object" || message === null)
|
3705
|
+
return "object expected";
|
3706
|
+
if (message.to != null && message.hasOwnProperty("to"))
|
3707
|
+
if (!$util.isString(message.to))
|
3708
|
+
return "to: string expected";
|
3709
|
+
if (message.amount != null && message.hasOwnProperty("amount"))
|
3710
|
+
if (!$util.isInteger(message.amount) && !(message.amount && $util.isInteger(message.amount.low) && $util.isInteger(message.amount.high)))
|
3711
|
+
return "amount: integer|Long expected";
|
3712
|
+
if (message["function"] != null && message.hasOwnProperty("function")) {
|
3713
|
+
var error = $root.TW.Aptos.Proto.StructTag.verify(message["function"]);
|
3714
|
+
if (error)
|
3715
|
+
return "function." + error;
|
3716
|
+
}
|
3717
|
+
return null;
|
3718
|
+
};
|
3719
|
+
|
3720
|
+
/**
|
3721
|
+
* Creates a TokenTransferCoinsMessage message from a plain object. Also converts values to their respective internal types.
|
3722
|
+
* @function fromObject
|
3723
|
+
* @memberof TW.Aptos.Proto.TokenTransferCoinsMessage
|
3724
|
+
* @static
|
3725
|
+
* @param {Object.<string,*>} object Plain object
|
3726
|
+
* @returns {TW.Aptos.Proto.TokenTransferCoinsMessage} TokenTransferCoinsMessage
|
3727
|
+
*/
|
3728
|
+
TokenTransferCoinsMessage.fromObject = function fromObject(object) {
|
3729
|
+
if (object instanceof $root.TW.Aptos.Proto.TokenTransferCoinsMessage)
|
3730
|
+
return object;
|
3731
|
+
var message = new $root.TW.Aptos.Proto.TokenTransferCoinsMessage();
|
3732
|
+
if (object.to != null)
|
3733
|
+
message.to = String(object.to);
|
3734
|
+
if (object.amount != null)
|
3735
|
+
if ($util.Long)
|
3736
|
+
(message.amount = $util.Long.fromValue(object.amount)).unsigned = true;
|
3737
|
+
else if (typeof object.amount === "string")
|
3738
|
+
message.amount = parseInt(object.amount, 10);
|
3739
|
+
else if (typeof object.amount === "number")
|
3740
|
+
message.amount = object.amount;
|
3741
|
+
else if (typeof object.amount === "object")
|
3742
|
+
message.amount = new $util.LongBits(object.amount.low >>> 0, object.amount.high >>> 0).toNumber(true);
|
3743
|
+
if (object["function"] != null) {
|
3744
|
+
if (typeof object["function"] !== "object")
|
3745
|
+
throw TypeError(".TW.Aptos.Proto.TokenTransferCoinsMessage.function: object expected");
|
3746
|
+
message["function"] = $root.TW.Aptos.Proto.StructTag.fromObject(object["function"]);
|
3747
|
+
}
|
3748
|
+
return message;
|
3749
|
+
};
|
3750
|
+
|
3751
|
+
/**
|
3752
|
+
* Creates a plain object from a TokenTransferCoinsMessage message. Also converts values to other types if specified.
|
3753
|
+
* @function toObject
|
3754
|
+
* @memberof TW.Aptos.Proto.TokenTransferCoinsMessage
|
3755
|
+
* @static
|
3756
|
+
* @param {TW.Aptos.Proto.TokenTransferCoinsMessage} message TokenTransferCoinsMessage
|
3757
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
3758
|
+
* @returns {Object.<string,*>} Plain object
|
3759
|
+
*/
|
3760
|
+
TokenTransferCoinsMessage.toObject = function toObject(message, options) {
|
3761
|
+
if (!options)
|
3762
|
+
options = {};
|
3763
|
+
var object = {};
|
3764
|
+
if (options.defaults) {
|
3765
|
+
object.to = "";
|
3766
|
+
if ($util.Long) {
|
3767
|
+
var long = new $util.Long(0, 0, true);
|
3768
|
+
object.amount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
3769
|
+
} else
|
3770
|
+
object.amount = options.longs === String ? "0" : 0;
|
3771
|
+
object["function"] = null;
|
3772
|
+
}
|
3773
|
+
if (message.to != null && message.hasOwnProperty("to"))
|
3774
|
+
object.to = message.to;
|
3775
|
+
if (message.amount != null && message.hasOwnProperty("amount"))
|
3776
|
+
if (typeof message.amount === "number")
|
3777
|
+
object.amount = options.longs === String ? String(message.amount) : message.amount;
|
3778
|
+
else
|
3779
|
+
object.amount = options.longs === String ? $util.Long.prototype.toString.call(message.amount) : options.longs === Number ? new $util.LongBits(message.amount.low >>> 0, message.amount.high >>> 0).toNumber(true) : message.amount;
|
3780
|
+
if (message["function"] != null && message.hasOwnProperty("function"))
|
3781
|
+
object["function"] = $root.TW.Aptos.Proto.StructTag.toObject(message["function"], options);
|
3782
|
+
return object;
|
3783
|
+
};
|
3784
|
+
|
3785
|
+
/**
|
3786
|
+
* Converts this TokenTransferCoinsMessage to JSON.
|
3787
|
+
* @function toJSON
|
3788
|
+
* @memberof TW.Aptos.Proto.TokenTransferCoinsMessage
|
3789
|
+
* @instance
|
3790
|
+
* @returns {Object.<string,*>} JSON object
|
3791
|
+
*/
|
3792
|
+
TokenTransferCoinsMessage.prototype.toJSON = function toJSON() {
|
3793
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
3794
|
+
};
|
3795
|
+
|
3796
|
+
return TokenTransferCoinsMessage;
|
3797
|
+
})();
|
3798
|
+
|
3577
3799
|
Proto.ManagedTokensRegisterMessage = (function() {
|
3578
3800
|
|
3579
3801
|
/**
|
@@ -5773,6 +5995,7 @@
|
|
5773
5995
|
* @property {TW.Aptos.Proto.INftMessage|null} [nftMessage] SigningInput nftMessage
|
5774
5996
|
* @property {TW.Aptos.Proto.IManagedTokensRegisterMessage|null} [registerToken] SigningInput registerToken
|
5775
5997
|
* @property {TW.Aptos.Proto.ILiquidStaking|null} [liquidStakingMessage] SigningInput liquidStakingMessage
|
5998
|
+
* @property {TW.Aptos.Proto.ITokenTransferCoinsMessage|null} [tokenTransferCoins] SigningInput tokenTransferCoins
|
5776
5999
|
*/
|
5777
6000
|
|
5778
6001
|
/**
|
@@ -5902,17 +6125,25 @@
|
|
5902
6125
|
*/
|
5903
6126
|
SigningInput.prototype.liquidStakingMessage = null;
|
5904
6127
|
|
6128
|
+
/**
|
6129
|
+
* SigningInput tokenTransferCoins.
|
6130
|
+
* @member {TW.Aptos.Proto.ITokenTransferCoinsMessage|null|undefined} tokenTransferCoins
|
6131
|
+
* @memberof TW.Aptos.Proto.SigningInput
|
6132
|
+
* @instance
|
6133
|
+
*/
|
6134
|
+
SigningInput.prototype.tokenTransferCoins = null;
|
6135
|
+
|
5905
6136
|
// OneOf field names bound to virtual getters and setters
|
5906
6137
|
var $oneOfFields;
|
5907
6138
|
|
5908
6139
|
/**
|
5909
6140
|
* SigningInput transactionPayload.
|
5910
|
-
* @member {"transfer"|"tokenTransfer"|"createAccount"|"nftMessage"|"registerToken"|"liquidStakingMessage"|undefined} transactionPayload
|
6141
|
+
* @member {"transfer"|"tokenTransfer"|"createAccount"|"nftMessage"|"registerToken"|"liquidStakingMessage"|"tokenTransferCoins"|undefined} transactionPayload
|
5911
6142
|
* @memberof TW.Aptos.Proto.SigningInput
|
5912
6143
|
* @instance
|
5913
6144
|
*/
|
5914
6145
|
Object.defineProperty(SigningInput.prototype, "transactionPayload", {
|
5915
|
-
get: $util.oneOfGetter($oneOfFields = ["transfer", "tokenTransfer", "createAccount", "nftMessage", "registerToken", "liquidStakingMessage"]),
|
6146
|
+
get: $util.oneOfGetter($oneOfFields = ["transfer", "tokenTransfer", "createAccount", "nftMessage", "registerToken", "liquidStakingMessage", "tokenTransferCoins"]),
|
5916
6147
|
set: $util.oneOfSetter($oneOfFields)
|
5917
6148
|
});
|
5918
6149
|
|
@@ -5968,6 +6199,8 @@
|
|
5968
6199
|
$root.TW.Aptos.Proto.ManagedTokensRegisterMessage.encode(message.registerToken, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim();
|
5969
6200
|
if (message.liquidStakingMessage != null && Object.hasOwnProperty.call(message, "liquidStakingMessage"))
|
5970
6201
|
$root.TW.Aptos.Proto.LiquidStaking.encode(message.liquidStakingMessage, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim();
|
6202
|
+
if (message.tokenTransferCoins != null && Object.hasOwnProperty.call(message, "tokenTransferCoins"))
|
6203
|
+
$root.TW.Aptos.Proto.TokenTransferCoinsMessage.encode(message.tokenTransferCoins, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim();
|
5971
6204
|
return writer;
|
5972
6205
|
};
|
5973
6206
|
|
@@ -6031,6 +6264,9 @@
|
|
6031
6264
|
case 14:
|
6032
6265
|
message.liquidStakingMessage = $root.TW.Aptos.Proto.LiquidStaking.decode(reader, reader.uint32());
|
6033
6266
|
break;
|
6267
|
+
case 15:
|
6268
|
+
message.tokenTransferCoins = $root.TW.Aptos.Proto.TokenTransferCoinsMessage.decode(reader, reader.uint32());
|
6269
|
+
break;
|
6034
6270
|
default:
|
6035
6271
|
reader.skipType(tag & 7);
|
6036
6272
|
break;
|
@@ -6133,6 +6369,16 @@
|
|
6133
6369
|
return "liquidStakingMessage." + error;
|
6134
6370
|
}
|
6135
6371
|
}
|
6372
|
+
if (message.tokenTransferCoins != null && message.hasOwnProperty("tokenTransferCoins")) {
|
6373
|
+
if (properties.transactionPayload === 1)
|
6374
|
+
return "transactionPayload: multiple values";
|
6375
|
+
properties.transactionPayload = 1;
|
6376
|
+
{
|
6377
|
+
var error = $root.TW.Aptos.Proto.TokenTransferCoinsMessage.verify(message.tokenTransferCoins);
|
6378
|
+
if (error)
|
6379
|
+
return "tokenTransferCoins." + error;
|
6380
|
+
}
|
6381
|
+
}
|
6136
6382
|
return null;
|
6137
6383
|
};
|
6138
6384
|
|
@@ -6225,6 +6471,11 @@
|
|
6225
6471
|
throw TypeError(".TW.Aptos.Proto.SigningInput.liquidStakingMessage: object expected");
|
6226
6472
|
message.liquidStakingMessage = $root.TW.Aptos.Proto.LiquidStaking.fromObject(object.liquidStakingMessage);
|
6227
6473
|
}
|
6474
|
+
if (object.tokenTransferCoins != null) {
|
6475
|
+
if (typeof object.tokenTransferCoins !== "object")
|
6476
|
+
throw TypeError(".TW.Aptos.Proto.SigningInput.tokenTransferCoins: object expected");
|
6477
|
+
message.tokenTransferCoins = $root.TW.Aptos.Proto.TokenTransferCoinsMessage.fromObject(object.tokenTransferCoins);
|
6478
|
+
}
|
6228
6479
|
return message;
|
6229
6480
|
};
|
6230
6481
|
|
@@ -6331,6 +6582,11 @@
|
|
6331
6582
|
if (options.oneofs)
|
6332
6583
|
object.transactionPayload = "liquidStakingMessage";
|
6333
6584
|
}
|
6585
|
+
if (message.tokenTransferCoins != null && message.hasOwnProperty("tokenTransferCoins")) {
|
6586
|
+
object.tokenTransferCoins = $root.TW.Aptos.Proto.TokenTransferCoinsMessage.toObject(message.tokenTransferCoins, options);
|
6587
|
+
if (options.oneofs)
|
6588
|
+
object.transactionPayload = "tokenTransferCoins";
|
6589
|
+
}
|
6334
6590
|
return object;
|
6335
6591
|
};
|
6336
6592
|
|
@@ -6833,6 +7089,7 @@
|
|
6833
7089
|
* @property {string|null} [defaultFallback] ContractAddressInput defaultFallback
|
6834
7090
|
* @property {string|null} [bytecode] ContractAddressInput bytecode
|
6835
7091
|
* @property {string|null} [publicKey] ContractAddressInput publicKey
|
7092
|
+
* @property {number|null} [salt] ContractAddressInput salt
|
6836
7093
|
*/
|
6837
7094
|
|
6838
7095
|
/**
|
@@ -6914,6 +7171,14 @@
|
|
6914
7171
|
*/
|
6915
7172
|
ContractAddressInput.prototype.publicKey = "";
|
6916
7173
|
|
7174
|
+
/**
|
7175
|
+
* ContractAddressInput salt.
|
7176
|
+
* @member {number} salt
|
7177
|
+
* @memberof TW.Barz.Proto.ContractAddressInput
|
7178
|
+
* @instance
|
7179
|
+
*/
|
7180
|
+
ContractAddressInput.prototype.salt = 0;
|
7181
|
+
|
6917
7182
|
/**
|
6918
7183
|
* Creates a new ContractAddressInput instance using the specified properties.
|
6919
7184
|
* @function create
|
@@ -6954,6 +7219,8 @@
|
|
6954
7219
|
writer.uint32(/* id 7, wireType 2 =*/58).string(message.bytecode);
|
6955
7220
|
if (message.publicKey != null && Object.hasOwnProperty.call(message, "publicKey"))
|
6956
7221
|
writer.uint32(/* id 8, wireType 2 =*/66).string(message.publicKey);
|
7222
|
+
if (message.salt != null && Object.hasOwnProperty.call(message, "salt"))
|
7223
|
+
writer.uint32(/* id 9, wireType 0 =*/72).uint32(message.salt);
|
6957
7224
|
return writer;
|
6958
7225
|
};
|
6959
7226
|
|
@@ -6999,6 +7266,9 @@
|
|
6999
7266
|
case 8:
|
7000
7267
|
message.publicKey = reader.string();
|
7001
7268
|
break;
|
7269
|
+
case 9:
|
7270
|
+
message.salt = reader.uint32();
|
7271
|
+
break;
|
7002
7272
|
default:
|
7003
7273
|
reader.skipType(tag & 7);
|
7004
7274
|
break;
|
@@ -7042,6 +7312,9 @@
|
|
7042
7312
|
if (message.publicKey != null && message.hasOwnProperty("publicKey"))
|
7043
7313
|
if (!$util.isString(message.publicKey))
|
7044
7314
|
return "publicKey: string expected";
|
7315
|
+
if (message.salt != null && message.hasOwnProperty("salt"))
|
7316
|
+
if (!$util.isInteger(message.salt))
|
7317
|
+
return "salt: integer expected";
|
7045
7318
|
return null;
|
7046
7319
|
};
|
7047
7320
|
|
@@ -7073,6 +7346,8 @@
|
|
7073
7346
|
message.bytecode = String(object.bytecode);
|
7074
7347
|
if (object.publicKey != null)
|
7075
7348
|
message.publicKey = String(object.publicKey);
|
7349
|
+
if (object.salt != null)
|
7350
|
+
message.salt = object.salt >>> 0;
|
7076
7351
|
return message;
|
7077
7352
|
};
|
7078
7353
|
|
@@ -7098,6 +7373,7 @@
|
|
7098
7373
|
object.defaultFallback = "";
|
7099
7374
|
object.bytecode = "";
|
7100
7375
|
object.publicKey = "";
|
7376
|
+
object.salt = 0;
|
7101
7377
|
}
|
7102
7378
|
if (message.entryPoint != null && message.hasOwnProperty("entryPoint"))
|
7103
7379
|
object.entryPoint = message.entryPoint;
|
@@ -7115,6 +7391,8 @@
|
|
7115
7391
|
object.bytecode = message.bytecode;
|
7116
7392
|
if (message.publicKey != null && message.hasOwnProperty("publicKey"))
|
7117
7393
|
object.publicKey = message.publicKey;
|
7394
|
+
if (message.salt != null && message.hasOwnProperty("salt"))
|
7395
|
+
object.salt = message.salt;
|
7118
7396
|
return object;
|
7119
7397
|
};
|
7120
7398
|
|
package/dist/lib/wallet-core.js
CHANGED
@@ -34,7 +34,7 @@ function Ua(){Qa++;g.monitorRunDependencies&&g.monitorRunDependencies(Qa);assert
|
|
34
34
|
function Va(){return G.startsWith("data:application/octet-stream;base64,")}function ma(a){return a.startsWith("file://")}function H(a){return function(){var b=g.asm;assert(Oa,"native function `"+a+"` called before runtime initialization");b[a]||assert(b[a],"exported native function `"+a+"` not found");return b[a].apply(null,arguments)}}var G;G="wallet-core.wasm";if(!Va()){var Wa=G;G=g.locateFile?g.locateFile(Wa,w):w+Wa}
|
35
35
|
function Xa(){var a=G;try{if(a==G&&qa)return new Uint8Array(qa);if(ka)return ka(a);throw"both async and sync fetching of the wasm failed";}catch(b){n(b)}}
|
36
36
|
function Ya(){if(!qa&&(ea||fa)){if("function"==typeof fetch&&!ma(G))return fetch(G,{credentials:"same-origin"}).then(function(a){if(!a.ok)throw"failed to load wasm binary file at '"+G+"'";return a.arrayBuffer()}).catch(function(){return Xa()});if(ja)return new Promise(function(a,b){ja(G,function(c){a(new Uint8Array(c))},b)})}return Promise.resolve().then(function(){return Xa()})}
|
37
|
-
var Za,$a,ab={
|
37
|
+
var Za,$a,ab={1790868:()=>{if(void 0===g.ea)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.ea=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.ea=a}catch(e){throw"No secure random number generator found";}}},1791590:()=>g.ea()};function bb(a){for(;0<a.length;)a.shift()(g)}
|
38
38
|
function va(a){assert("number"===typeof a);return"0x"+a.toString(16).padStart(8,"0")}function pa(a){cb||(cb={});cb[a]||(cb[a]=1,v&&(a="warning: "+a),y(a))}var cb,db=0;
|
39
39
|
function eb(a){this.l=a-24;this.Ta=function(b){F[this.l+4>>2]=b};this.Da=function(){return F[this.l+4>>2]};this.Ja=function(b){F[this.l+8>>2]=b};this.Ka=function(){E[this.l>>2]=0};this.Ia=function(){C[this.l+12>>0]=0};this.Na=function(){C[this.l+13>>0]=0};this.Ea=function(b,c){this.F(0);this.Ta(b);this.Ja(c);this.Ka();this.Ia();this.Na()};this.F=function(b){F[this.l+16>>2]=b}}
|
40
40
|
var fb=0,gb=(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},hb=a=>{var b="/"===a.charAt(0),c="/"===a.substr(-1);(a=gb(a.split("/").filter(d=>!!d),!b).join("/"))||b||(a=".");a&&c&&(a+="/");return(b?"/":"")+a},ib=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},jb=
|
@@ -154,12 +154,12 @@ a)}catch(f){y("Module.instantiateWasm callback failed with error: "+f),ba(f)}(fu
|
|
154
154
|
var zd=g._malloc=H("malloc"),Pd=g.___errno_location=H("__errno_location"),V=g._free=H("free");g._fflush=H("fflush");var Vc=g.___getTypeName=H("__getTypeName");g.__embind_initialize_bindings=H("_embind_initialize_bindings");g._htonl=H("htonl");g._htons=H("htons");var xb=g._emscripten_builtin_memalign=H("emscripten_builtin_memalign");g._ntohs=H("ntohs");
|
155
155
|
var X=g._setThrew=H("setThrew"),Nd=g.setTempRet0=H("setTempRet0"),ke=g._emscripten_stack_init=function(){return(ke=g._emscripten_stack_init=g.asm.emscripten_stack_init).apply(null,arguments)};g._emscripten_stack_get_free=function(){return(g._emscripten_stack_get_free=g.asm.emscripten_stack_get_free).apply(null,arguments)};g._emscripten_stack_get_base=function(){return(g._emscripten_stack_get_base=g.asm.emscripten_stack_get_base).apply(null,arguments)};
|
156
156
|
var Ha=g._emscripten_stack_get_end=function(){return(Ha=g._emscripten_stack_get_end=g.asm.emscripten_stack_get_end).apply(null,arguments)},Y=g.stackSave=H("stackSave"),Z=g.stackRestore=H("stackRestore");g.stackAlloc=H("stackAlloc");g._emscripten_stack_get_current=function(){return(g._emscripten_stack_get_current=g.asm.emscripten_stack_get_current).apply(null,arguments)};g.___cxa_free_exception=H("__cxa_free_exception");var Od=g.___cxa_can_catch=H("__cxa_can_catch");g.___cxa_is_pointer_type=H("__cxa_is_pointer_type");
|
157
|
-
g.
|
158
|
-
|
159
|
-
function
|
160
|
-
function
|
161
|
-
function
|
162
|
-
function
|
157
|
+
g.dynCall_iiiiij=H("dynCall_iiiiij");g.dynCall_iiiij=H("dynCall_iiiij");var le=g.dynCall_jii=H("dynCall_jii");g.dynCall_ji=H("dynCall_ji");g.dynCall_iiji=H("dynCall_iiji");g.dynCall_iiiji=H("dynCall_iiiji");g.dynCall_jiii=H("dynCall_jiii");g.dynCall_jiiii=H("dynCall_jiiii");g.dynCall_iiij=H("dynCall_iiij");g.dynCall_jijjj=H("dynCall_jijjj");g.dynCall_jij=H("dynCall_jij");g.dynCall_viijii=H("dynCall_viijii");g.dynCall_viiiijijji=H("dynCall_viiiijijji");g.dynCall_iij=H("dynCall_iij");
|
158
|
+
var me=g.dynCall_vij=H("dynCall_vij"),ne=g.dynCall_viiji=H("dynCall_viiji"),oe=g.dynCall_viji=H("dynCall_viji"),pe=g.dynCall_viiiiiji=H("dynCall_viiiiiji"),qe=g.dynCall_jj=H("dynCall_jj");g.dynCall_jiji=H("dynCall_jiji");g.dynCall_iiiiijj=H("dynCall_iiiiijj");g.dynCall_iiiiiijj=H("dynCall_iiiiiijj");function ae(a,b,c,d){var e=Y();try{U(a)(b,c,d)}catch(f){Z(e);if(f!==f+0)throw f;X(1,0)}}function Sd(a,b,c){var d=Y();try{return U(a)(b,c)}catch(e){Z(d);if(e!==e+0)throw e;X(1,0)}}
|
159
|
+
function ce(a,b,c,d,e,f){var h=Y();try{U(a)(b,c,d,e,f)}catch(l){Z(h);if(l!==l+0)throw l;X(1,0)}}function $d(a,b,c){var d=Y();try{U(a)(b,c)}catch(e){Z(d);if(e!==e+0)throw e;X(1,0)}}function Zd(a,b){var c=Y();try{U(a)(b)}catch(d){Z(c);if(d!==d+0)throw d;X(1,0)}}function be(a,b,c,d,e){var f=Y();try{U(a)(b,c,d,e)}catch(h){Z(f);if(h!==h+0)throw h;X(1,0)}}function Rd(a,b){var c=Y();try{return U(a)(b)}catch(d){Z(c);if(d!==d+0)throw d;X(1,0)}}
|
160
|
+
function Yd(a){var b=Y();try{U(a)()}catch(c){Z(b);if(c!==c+0)throw c;X(1,0)}}function de(a,b,c,d,e,f,h){var l=Y();try{U(a)(b,c,d,e,f,h)}catch(p){Z(l);if(p!==p+0)throw p;X(1,0)}}function Td(a,b,c,d){var e=Y();try{return U(a)(b,c,d)}catch(f){Z(e);if(f!==f+0)throw f;X(1,0)}}function Ud(a,b,c,d,e){var f=Y();try{return U(a)(b,c,d,e)}catch(h){Z(f);if(h!==h+0)throw h;X(1,0)}}function Qd(a){var b=Y();try{return U(a)()}catch(c){Z(b);if(c!==c+0)throw c;X(1,0)}}
|
161
|
+
function ee(a,b,c,d,e,f,h,l){var p=Y();try{U(a)(b,c,d,e,f,h,l)}catch(m){Z(p);if(m!==m+0)throw m;X(1,0)}}function Vd(a,b,c,d,e,f){var h=Y();try{return U(a)(b,c,d,e,f)}catch(l){Z(h);if(l!==l+0)throw l;X(1,0)}}function ge(a,b,c,d,e,f){var h=Y();try{ne(a,b,c,d,e,f)}catch(l){Z(h);if(l!==l+0)throw l;X(1,0)}}function ie(a,b,c,d,e){var f=Y();try{oe(a,b,c,d,e)}catch(h){Z(f);if(h!==h+0)throw h;X(1,0)}}function Xd(a,b,c){var d=Y();try{return qe(a,b,c)}catch(e){Z(d);if(e!==e+0)throw e;X(1,0)}}
|
162
|
+
function he(a,b,c,d){var e=Y();try{me(a,b,c,d)}catch(f){Z(e);if(f!==f+0)throw f;X(1,0)}}function fe(a,b,c,d,e,f,h,l,p){var m=Y();try{pe(a,b,c,d,e,f,h,l,p)}catch(q){Z(m);if(q!==q+0)throw q;X(1,0)}}function Wd(a,b,c){var d=Y();try{return le(a,b,c)}catch(e){Z(d);if(e!==e+0)throw e;X(1,0)}}
|
163
163
|
"run UTF8ArrayToString UTF8ToString stringToUTF8Array stringToUTF8 lengthBytesUTF8 addOnPreRun addOnInit addOnPreMain addOnExit addOnPostRun addRunDependency removeRunDependency FS_createFolder FS_createPath FS_createDataFile FS_createPreloadedFile FS_createLazyFile FS_createLink FS_createDevice FS_unlink getLEB getFunctionTables alignFunctionTables registerFunctions prettyPrint getCompilerSetting out err callMain abort keepRuntimeAlive wasmMemory stackAlloc stackSave stackRestore getTempRet0 setTempRet0 writeStackCookie checkStackCookie ptrToString zeroMemory stringToNewUTF8 exitJS getHeapMax emscripten_realloc_buffer ENV ERRNO_CODES ERRNO_MESSAGES setErrNo inetPton4 inetNtop4 inetPton6 inetNtop6 readSockaddr writeSockaddr DNS getHostByName Protocols Sockets getRandomDevice warnOnce traverseStack UNWIND_CACHE convertPCtoSourceLocation readEmAsmArgsArray readEmAsmArgs runEmAsmFunction runMainThreadEmAsm jstoi_q jstoi_s getExecutableName listenOnce autoResumeAudioContext dynCallLegacy getDynCaller dynCall handleException runtimeKeepalivePush runtimeKeepalivePop callUserCallback maybeExit safeSetTimeout asmjsMangle asyncLoad alignMemory mmapAlloc handleAllocator writeI53ToI64 writeI53ToI64Clamped writeI53ToI64Signaling writeI53ToU64Clamped writeI53ToU64Signaling readI53FromI64 readI53FromU64 convertI32PairToI53 convertI32PairToI53Checked convertU32PairToI53 getCFunc ccall cwrap uleb128Encode sigToWasmTypes generateFuncType convertJsFunctionToWasm freeTableIndexes functionsInTableMap getEmptyTableSlot updateTableMap addFunction removeFunction reallyNegative unSign strLen reSign formatString setValue getValue PATH PATH_FS intArrayFromString intArrayToString AsciiToString stringToAscii UTF16Decoder UTF16ToString stringToUTF16 lengthBytesUTF16 UTF32ToString stringToUTF32 lengthBytesUTF32 allocateUTF8 allocateUTF8OnStack writeStringToMemory writeArrayToMemory writeAsciiToMemory SYSCALLS getSocketFromFD getSocketAddress JSEvents registerKeyEventCallback specialHTMLTargets maybeCStringToJsString findEventTarget findCanvasEventTarget getBoundingClientRect fillMouseEventData registerMouseEventCallback registerWheelEventCallback registerUiEventCallback registerFocusEventCallback fillDeviceOrientationEventData registerDeviceOrientationEventCallback fillDeviceMotionEventData registerDeviceMotionEventCallback screenOrientation fillOrientationChangeEventData registerOrientationChangeEventCallback fillFullscreenChangeEventData registerFullscreenChangeEventCallback JSEvents_requestFullscreen JSEvents_resizeCanvasForFullscreen registerRestoreOldStyle hideEverythingExceptGivenElement restoreHiddenElements setLetterbox currentFullscreenStrategy restoreOldWindowedStyle softFullscreenResizeWebGLRenderTarget doRequestFullscreen fillPointerlockChangeEventData registerPointerlockChangeEventCallback registerPointerlockErrorEventCallback requestPointerLock fillVisibilityChangeEventData registerVisibilityChangeEventCallback registerTouchEventCallback fillGamepadEventData registerGamepadEventCallback registerBeforeUnloadEventCallback fillBatteryEventData battery registerBatteryEventCallback setCanvasElementSize getCanvasElementSize demangle demangleAll jsStackTrace stackTrace ExitStatus getEnvStrings checkWasiClock doReadv doWritev createDyncallWrapper setImmediateWrapped clearImmediateWrapped polyfillSetImmediate promiseMap newNativePromise getPromise uncaughtExceptionCount exceptionLast exceptionCaught ExceptionInfo exception_addRef exception_decRef Browser setMainLoop wget FS MEMFS TTY PIPEFS SOCKFS _setNetworkCallback InternalError BindingError UnboundTypeError PureVirtualError init_embind throwInternalError throwBindingError throwUnboundTypeError ensureOverloadTable exposePublicSymbol replacePublicSymbol extendError createNamedFunction embindRepr registeredInstances getBasestPointer registerInheritedInstance unregisterInheritedInstance getInheritedInstance getInheritedInstanceCount getLiveInheritedInstances registeredTypes awaitingDependencies typeDependencies registeredPointers registerType whenDependentTypesAreResolved embind_charCodes embind_init_charCodes readLatin1String getTypeName heap32VectorToArray requireRegisteredType getShiftFromSize integerReadValueFromPointer enumReadValueFromPointer floatReadValueFromPointer simpleReadValueFromPointer runDestructors new_ craftInvokerFunction embind__requireFunction tupleRegistrations structRegistrations genericPointerToWireType constNoSmartPtrRawPointerToWireType nonConstNoSmartPtrRawPointerToWireType init_RegisteredPointer RegisteredPointer RegisteredPointer_getPointee RegisteredPointer_destructor RegisteredPointer_deleteObject RegisteredPointer_fromWireType runDestructor releaseClassHandle finalizationRegistry detachFinalizer_deps detachFinalizer attachFinalizer makeClassHandle init_ClassHandle ClassHandle ClassHandle_isAliasOf throwInstanceAlreadyDeleted ClassHandle_clone ClassHandle_delete deletionQueue ClassHandle_isDeleted ClassHandle_deleteLater flushPendingDeletes delayFunction setDelayFunction RegisteredClass shallowCopyInternalPointer downcastPointer upcastPointer validateThis char_0 char_9 makeLegalFunctionName emval_handle_array emval_free_list emval_symbols init_emval count_emval_handles get_first_emval getStringOrSymbol Emval emval_newers craftEmvalAllocator emval_get_global emval_lookupTypes emval_allocateDestructors emval_methodCallers emval_addMethodCaller emval_registeredMethods".split(" ").forEach(function(a){Object.getOwnPropertyDescriptor(g,a)||
|
164
164
|
Object.defineProperty(g,a,{configurable:!0,get:function(){var b="'"+a+"' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)";oa(a)&&(b+=". Alternatively, forcing filesystem support (-sFORCE_FILESYSTEM) can export this for you");n(b)}})});
|
165
165
|
"stringToNewUTF8 exitJS inetPton4 inetNtop4 inetPton6 inetNtop6 readSockaddr writeSockaddr getHostByName traverseStack convertPCtoSourceLocation runMainThreadEmAsm jstoi_q jstoi_s listenOnce autoResumeAudioContext handleException runtimeKeepalivePush runtimeKeepalivePop callUserCallback maybeExit safeSetTimeout asmjsMangle handleAllocator writeI53ToI64 writeI53ToI64Clamped writeI53ToI64Signaling writeI53ToU64Clamped writeI53ToU64Signaling readI53FromU64 convertI32PairToI53 convertU32PairToI53 getCFunc ccall cwrap uleb128Encode sigToWasmTypes generateFuncType convertJsFunctionToWasm getEmptyTableSlot updateTableMap addFunction removeFunction reallyNegative unSign strLen reSign formatString intArrayToString AsciiToString stringToAscii allocateUTF8OnStack writeStringToMemory getSocketFromFD getSocketAddress registerKeyEventCallback maybeCStringToJsString findEventTarget findCanvasEventTarget getBoundingClientRect fillMouseEventData registerMouseEventCallback registerWheelEventCallback registerUiEventCallback registerFocusEventCallback fillDeviceOrientationEventData registerDeviceOrientationEventCallback fillDeviceMotionEventData registerDeviceMotionEventCallback screenOrientation fillOrientationChangeEventData registerOrientationChangeEventCallback fillFullscreenChangeEventData registerFullscreenChangeEventCallback JSEvents_requestFullscreen JSEvents_resizeCanvasForFullscreen registerRestoreOldStyle hideEverythingExceptGivenElement restoreHiddenElements setLetterbox softFullscreenResizeWebGLRenderTarget doRequestFullscreen fillPointerlockChangeEventData registerPointerlockChangeEventCallback registerPointerlockErrorEventCallback requestPointerLock fillVisibilityChangeEventData registerVisibilityChangeEventCallback registerTouchEventCallback fillGamepadEventData registerGamepadEventCallback registerBeforeUnloadEventCallback fillBatteryEventData battery registerBatteryEventCallback setCanvasElementSize getCanvasElementSize jsStackTrace stackTrace checkWasiClock createDyncallWrapper setImmediateWrapped clearImmediateWrapped polyfillSetImmediate newNativePromise getPromise exception_addRef exception_decRef setMainLoop _setNetworkCallback registerInheritedInstance unregisterInheritedInstance validateThis".split(" ").forEach(function(a){"undefined"===typeof globalThis||
|
Binary file
|
@@ -95,7 +95,7 @@ export class AsnParser {
|
|
95
95
|
}
|
96
96
|
export class Barz {
|
97
97
|
static getCounterfactualAddress(input: Uint8Array | Buffer): string;
|
98
|
-
static getInitCode(factory: string, publicKey: PublicKey, verificationFacet: string): Uint8Array;
|
98
|
+
static getInitCode(factory: string, publicKey: PublicKey, verificationFacet: string, salt: number): Uint8Array;
|
99
99
|
static getFormattedSignature(signature: Uint8Array | Buffer, challenge: Uint8Array | Buffer, authenticatorData: Uint8Array | Buffer, clientDataJSON: string): Uint8Array;
|
100
100
|
}
|
101
101
|
export class Base32 {
|
@@ -129,7 +129,7 @@ export class BitcoinAddress {
|
|
129
129
|
delete(): void;
|
130
130
|
}
|
131
131
|
export class BitcoinFee {
|
132
|
-
static calculateFee(data: Uint8Array | Buffer, satVb:
|
132
|
+
static calculateFee(data: Uint8Array | Buffer, satVb: string): string;
|
133
133
|
}
|
134
134
|
export class BitcoinMessageSigner {
|
135
135
|
static signMessage(privateKey: PrivateKey, address: string, message: string): string;
|