@trustwallet/wallet-core 4.3.6 → 4.3.9
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.
@@ -1353,79 +1353,6 @@ export namespace TW {
|
|
1353
1353
|
public toJSON(): { [k: string]: any };
|
1354
1354
|
}
|
1355
1355
|
|
1356
|
-
/** Properties of a ManagedTokensRegisterMessage. */
|
1357
|
-
interface IManagedTokensRegisterMessage {
|
1358
|
-
|
1359
|
-
/** ManagedTokensRegisterMessage function */
|
1360
|
-
"function"?: (TW.Aptos.Proto.IStructTag|null);
|
1361
|
-
}
|
1362
|
-
|
1363
|
-
/** Represents a ManagedTokensRegisterMessage. */
|
1364
|
-
class ManagedTokensRegisterMessage implements IManagedTokensRegisterMessage {
|
1365
|
-
|
1366
|
-
/**
|
1367
|
-
* Constructs a new ManagedTokensRegisterMessage.
|
1368
|
-
* @param [properties] Properties to set
|
1369
|
-
*/
|
1370
|
-
constructor(properties?: TW.Aptos.Proto.IManagedTokensRegisterMessage);
|
1371
|
-
|
1372
|
-
/** ManagedTokensRegisterMessage function. */
|
1373
|
-
public function?: (TW.Aptos.Proto.IStructTag|null);
|
1374
|
-
|
1375
|
-
/**
|
1376
|
-
* Creates a new ManagedTokensRegisterMessage instance using the specified properties.
|
1377
|
-
* @param [properties] Properties to set
|
1378
|
-
* @returns ManagedTokensRegisterMessage instance
|
1379
|
-
*/
|
1380
|
-
public static create(properties?: TW.Aptos.Proto.IManagedTokensRegisterMessage): TW.Aptos.Proto.ManagedTokensRegisterMessage;
|
1381
|
-
|
1382
|
-
/**
|
1383
|
-
* Encodes the specified ManagedTokensRegisterMessage message. Does not implicitly {@link TW.Aptos.Proto.ManagedTokensRegisterMessage.verify|verify} messages.
|
1384
|
-
* @param message ManagedTokensRegisterMessage message or plain object to encode
|
1385
|
-
* @param [writer] Writer to encode to
|
1386
|
-
* @returns Writer
|
1387
|
-
*/
|
1388
|
-
public static encode(message: TW.Aptos.Proto.IManagedTokensRegisterMessage, writer?: $protobuf.Writer): $protobuf.Writer;
|
1389
|
-
|
1390
|
-
/**
|
1391
|
-
* Decodes a ManagedTokensRegisterMessage message from the specified reader or buffer.
|
1392
|
-
* @param reader Reader or buffer to decode from
|
1393
|
-
* @param [length] Message length if known beforehand
|
1394
|
-
* @returns ManagedTokensRegisterMessage
|
1395
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
1396
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1397
|
-
*/
|
1398
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Aptos.Proto.ManagedTokensRegisterMessage;
|
1399
|
-
|
1400
|
-
/**
|
1401
|
-
* Verifies a ManagedTokensRegisterMessage message.
|
1402
|
-
* @param message Plain object to verify
|
1403
|
-
* @returns `null` if valid, otherwise the reason why it is not
|
1404
|
-
*/
|
1405
|
-
public static verify(message: { [k: string]: any }): (string|null);
|
1406
|
-
|
1407
|
-
/**
|
1408
|
-
* Creates a ManagedTokensRegisterMessage message from a plain object. Also converts values to their respective internal types.
|
1409
|
-
* @param object Plain object
|
1410
|
-
* @returns ManagedTokensRegisterMessage
|
1411
|
-
*/
|
1412
|
-
public static fromObject(object: { [k: string]: any }): TW.Aptos.Proto.ManagedTokensRegisterMessage;
|
1413
|
-
|
1414
|
-
/**
|
1415
|
-
* Creates a plain object from a ManagedTokensRegisterMessage message. Also converts values to other types if specified.
|
1416
|
-
* @param message ManagedTokensRegisterMessage
|
1417
|
-
* @param [options] Conversion options
|
1418
|
-
* @returns Plain object
|
1419
|
-
*/
|
1420
|
-
public static toObject(message: TW.Aptos.Proto.ManagedTokensRegisterMessage, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
1421
|
-
|
1422
|
-
/**
|
1423
|
-
* Converts this ManagedTokensRegisterMessage to JSON.
|
1424
|
-
* @returns JSON object
|
1425
|
-
*/
|
1426
|
-
public toJSON(): { [k: string]: any };
|
1427
|
-
}
|
1428
|
-
|
1429
1356
|
/** Properties of a CreateAccountMessage. */
|
1430
1357
|
interface ICreateAccountMessage {
|
1431
1358
|
|
@@ -2236,9 +2163,6 @@ export namespace TW {
|
|
2236
2163
|
/** SigningInput nftMessage */
|
2237
2164
|
nftMessage?: (TW.Aptos.Proto.INftMessage|null);
|
2238
2165
|
|
2239
|
-
/** SigningInput registerToken */
|
2240
|
-
registerToken?: (TW.Aptos.Proto.IManagedTokensRegisterMessage|null);
|
2241
|
-
|
2242
2166
|
/** SigningInput liquidStakingMessage */
|
2243
2167
|
liquidStakingMessage?: (TW.Aptos.Proto.ILiquidStaking|null);
|
2244
2168
|
|
@@ -2297,9 +2221,6 @@ export namespace TW {
|
|
2297
2221
|
/** SigningInput nftMessage. */
|
2298
2222
|
public nftMessage?: (TW.Aptos.Proto.INftMessage|null);
|
2299
2223
|
|
2300
|
-
/** SigningInput registerToken. */
|
2301
|
-
public registerToken?: (TW.Aptos.Proto.IManagedTokensRegisterMessage|null);
|
2302
|
-
|
2303
2224
|
/** SigningInput liquidStakingMessage. */
|
2304
2225
|
public liquidStakingMessage?: (TW.Aptos.Proto.ILiquidStaking|null);
|
2305
2226
|
|
@@ -2313,7 +2234,7 @@ export namespace TW {
|
|
2313
2234
|
public abi: string;
|
2314
2235
|
|
2315
2236
|
/** SigningInput transactionPayload. */
|
2316
|
-
public transactionPayload?: ("transfer"|"tokenTransfer"|"createAccount"|"nftMessage"|"
|
2237
|
+
public transactionPayload?: ("transfer"|"tokenTransfer"|"createAccount"|"nftMessage"|"liquidStakingMessage"|"tokenTransferCoins"|"fungibleAssetTransfer");
|
2317
2238
|
|
2318
2239
|
/**
|
2319
2240
|
* Creates a new SigningInput instance using the specified properties.
|
@@ -49296,6 +49217,9 @@ export namespace TW {
|
|
49296
49217
|
|
49297
49218
|
/** SigningInput txId */
|
49298
49219
|
txId?: (string|null);
|
49220
|
+
|
49221
|
+
/** SigningInput rawJson */
|
49222
|
+
rawJson?: (string|null);
|
49299
49223
|
}
|
49300
49224
|
|
49301
49225
|
/** Represents a SigningInput. */
|
@@ -49316,6 +49240,9 @@ export namespace TW {
|
|
49316
49240
|
/** SigningInput txId. */
|
49317
49241
|
public txId: string;
|
49318
49242
|
|
49243
|
+
/** SigningInput rawJson. */
|
49244
|
+
public rawJson: string;
|
49245
|
+
|
49319
49246
|
/**
|
49320
49247
|
* Creates a new SigningInput instance using the specified properties.
|
49321
49248
|
* @param [properties] Properties to set
|
@@ -4037,169 +4037,6 @@
|
|
4037
4037
|
return FungibleAssetTransferMessage;
|
4038
4038
|
})();
|
4039
4039
|
|
4040
|
-
Proto.ManagedTokensRegisterMessage = (function() {
|
4041
|
-
|
4042
|
-
/**
|
4043
|
-
* Properties of a ManagedTokensRegisterMessage.
|
4044
|
-
* @memberof TW.Aptos.Proto
|
4045
|
-
* @interface IManagedTokensRegisterMessage
|
4046
|
-
* @property {TW.Aptos.Proto.IStructTag|null} ["function"] ManagedTokensRegisterMessage function
|
4047
|
-
*/
|
4048
|
-
|
4049
|
-
/**
|
4050
|
-
* Constructs a new ManagedTokensRegisterMessage.
|
4051
|
-
* @memberof TW.Aptos.Proto
|
4052
|
-
* @classdesc Represents a ManagedTokensRegisterMessage.
|
4053
|
-
* @implements IManagedTokensRegisterMessage
|
4054
|
-
* @constructor
|
4055
|
-
* @param {TW.Aptos.Proto.IManagedTokensRegisterMessage=} [properties] Properties to set
|
4056
|
-
*/
|
4057
|
-
function ManagedTokensRegisterMessage(properties) {
|
4058
|
-
if (properties)
|
4059
|
-
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
4060
|
-
if (properties[keys[i]] != null)
|
4061
|
-
this[keys[i]] = properties[keys[i]];
|
4062
|
-
}
|
4063
|
-
|
4064
|
-
/**
|
4065
|
-
* ManagedTokensRegisterMessage function.
|
4066
|
-
* @member {TW.Aptos.Proto.IStructTag|null|undefined} function
|
4067
|
-
* @memberof TW.Aptos.Proto.ManagedTokensRegisterMessage
|
4068
|
-
* @instance
|
4069
|
-
*/
|
4070
|
-
ManagedTokensRegisterMessage.prototype["function"] = null;
|
4071
|
-
|
4072
|
-
/**
|
4073
|
-
* Creates a new ManagedTokensRegisterMessage instance using the specified properties.
|
4074
|
-
* @function create
|
4075
|
-
* @memberof TW.Aptos.Proto.ManagedTokensRegisterMessage
|
4076
|
-
* @static
|
4077
|
-
* @param {TW.Aptos.Proto.IManagedTokensRegisterMessage=} [properties] Properties to set
|
4078
|
-
* @returns {TW.Aptos.Proto.ManagedTokensRegisterMessage} ManagedTokensRegisterMessage instance
|
4079
|
-
*/
|
4080
|
-
ManagedTokensRegisterMessage.create = function create(properties) {
|
4081
|
-
return new ManagedTokensRegisterMessage(properties);
|
4082
|
-
};
|
4083
|
-
|
4084
|
-
/**
|
4085
|
-
* Encodes the specified ManagedTokensRegisterMessage message. Does not implicitly {@link TW.Aptos.Proto.ManagedTokensRegisterMessage.verify|verify} messages.
|
4086
|
-
* @function encode
|
4087
|
-
* @memberof TW.Aptos.Proto.ManagedTokensRegisterMessage
|
4088
|
-
* @static
|
4089
|
-
* @param {TW.Aptos.Proto.IManagedTokensRegisterMessage} message ManagedTokensRegisterMessage message or plain object to encode
|
4090
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
4091
|
-
* @returns {$protobuf.Writer} Writer
|
4092
|
-
*/
|
4093
|
-
ManagedTokensRegisterMessage.encode = function encode(message, writer) {
|
4094
|
-
if (!writer)
|
4095
|
-
writer = $Writer.create();
|
4096
|
-
if (message["function"] != null && Object.hasOwnProperty.call(message, "function"))
|
4097
|
-
$root.TW.Aptos.Proto.StructTag.encode(message["function"], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
4098
|
-
return writer;
|
4099
|
-
};
|
4100
|
-
|
4101
|
-
/**
|
4102
|
-
* Decodes a ManagedTokensRegisterMessage message from the specified reader or buffer.
|
4103
|
-
* @function decode
|
4104
|
-
* @memberof TW.Aptos.Proto.ManagedTokensRegisterMessage
|
4105
|
-
* @static
|
4106
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
4107
|
-
* @param {number} [length] Message length if known beforehand
|
4108
|
-
* @returns {TW.Aptos.Proto.ManagedTokensRegisterMessage} ManagedTokensRegisterMessage
|
4109
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
4110
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
4111
|
-
*/
|
4112
|
-
ManagedTokensRegisterMessage.decode = function decode(reader, length) {
|
4113
|
-
if (!(reader instanceof $Reader))
|
4114
|
-
reader = $Reader.create(reader);
|
4115
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.TW.Aptos.Proto.ManagedTokensRegisterMessage();
|
4116
|
-
while (reader.pos < end) {
|
4117
|
-
var tag = reader.uint32();
|
4118
|
-
switch (tag >>> 3) {
|
4119
|
-
case 1:
|
4120
|
-
message["function"] = $root.TW.Aptos.Proto.StructTag.decode(reader, reader.uint32());
|
4121
|
-
break;
|
4122
|
-
default:
|
4123
|
-
reader.skipType(tag & 7);
|
4124
|
-
break;
|
4125
|
-
}
|
4126
|
-
}
|
4127
|
-
return message;
|
4128
|
-
};
|
4129
|
-
|
4130
|
-
/**
|
4131
|
-
* Verifies a ManagedTokensRegisterMessage message.
|
4132
|
-
* @function verify
|
4133
|
-
* @memberof TW.Aptos.Proto.ManagedTokensRegisterMessage
|
4134
|
-
* @static
|
4135
|
-
* @param {Object.<string,*>} message Plain object to verify
|
4136
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
4137
|
-
*/
|
4138
|
-
ManagedTokensRegisterMessage.verify = function verify(message) {
|
4139
|
-
if (typeof message !== "object" || message === null)
|
4140
|
-
return "object expected";
|
4141
|
-
if (message["function"] != null && message.hasOwnProperty("function")) {
|
4142
|
-
var error = $root.TW.Aptos.Proto.StructTag.verify(message["function"]);
|
4143
|
-
if (error)
|
4144
|
-
return "function." + error;
|
4145
|
-
}
|
4146
|
-
return null;
|
4147
|
-
};
|
4148
|
-
|
4149
|
-
/**
|
4150
|
-
* Creates a ManagedTokensRegisterMessage message from a plain object. Also converts values to their respective internal types.
|
4151
|
-
* @function fromObject
|
4152
|
-
* @memberof TW.Aptos.Proto.ManagedTokensRegisterMessage
|
4153
|
-
* @static
|
4154
|
-
* @param {Object.<string,*>} object Plain object
|
4155
|
-
* @returns {TW.Aptos.Proto.ManagedTokensRegisterMessage} ManagedTokensRegisterMessage
|
4156
|
-
*/
|
4157
|
-
ManagedTokensRegisterMessage.fromObject = function fromObject(object) {
|
4158
|
-
if (object instanceof $root.TW.Aptos.Proto.ManagedTokensRegisterMessage)
|
4159
|
-
return object;
|
4160
|
-
var message = new $root.TW.Aptos.Proto.ManagedTokensRegisterMessage();
|
4161
|
-
if (object["function"] != null) {
|
4162
|
-
if (typeof object["function"] !== "object")
|
4163
|
-
throw TypeError(".TW.Aptos.Proto.ManagedTokensRegisterMessage.function: object expected");
|
4164
|
-
message["function"] = $root.TW.Aptos.Proto.StructTag.fromObject(object["function"]);
|
4165
|
-
}
|
4166
|
-
return message;
|
4167
|
-
};
|
4168
|
-
|
4169
|
-
/**
|
4170
|
-
* Creates a plain object from a ManagedTokensRegisterMessage message. Also converts values to other types if specified.
|
4171
|
-
* @function toObject
|
4172
|
-
* @memberof TW.Aptos.Proto.ManagedTokensRegisterMessage
|
4173
|
-
* @static
|
4174
|
-
* @param {TW.Aptos.Proto.ManagedTokensRegisterMessage} message ManagedTokensRegisterMessage
|
4175
|
-
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
4176
|
-
* @returns {Object.<string,*>} Plain object
|
4177
|
-
*/
|
4178
|
-
ManagedTokensRegisterMessage.toObject = function toObject(message, options) {
|
4179
|
-
if (!options)
|
4180
|
-
options = {};
|
4181
|
-
var object = {};
|
4182
|
-
if (options.defaults)
|
4183
|
-
object["function"] = null;
|
4184
|
-
if (message["function"] != null && message.hasOwnProperty("function"))
|
4185
|
-
object["function"] = $root.TW.Aptos.Proto.StructTag.toObject(message["function"], options);
|
4186
|
-
return object;
|
4187
|
-
};
|
4188
|
-
|
4189
|
-
/**
|
4190
|
-
* Converts this ManagedTokensRegisterMessage to JSON.
|
4191
|
-
* @function toJSON
|
4192
|
-
* @memberof TW.Aptos.Proto.ManagedTokensRegisterMessage
|
4193
|
-
* @instance
|
4194
|
-
* @returns {Object.<string,*>} JSON object
|
4195
|
-
*/
|
4196
|
-
ManagedTokensRegisterMessage.prototype.toJSON = function toJSON() {
|
4197
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
4198
|
-
};
|
4199
|
-
|
4200
|
-
return ManagedTokensRegisterMessage;
|
4201
|
-
})();
|
4202
|
-
|
4203
4040
|
Proto.CreateAccountMessage = (function() {
|
4204
4041
|
|
4205
4042
|
/**
|
@@ -6234,7 +6071,6 @@
|
|
6234
6071
|
* @property {TW.Aptos.Proto.ITokenTransferMessage|null} [tokenTransfer] SigningInput tokenTransfer
|
6235
6072
|
* @property {TW.Aptos.Proto.ICreateAccountMessage|null} [createAccount] SigningInput createAccount
|
6236
6073
|
* @property {TW.Aptos.Proto.INftMessage|null} [nftMessage] SigningInput nftMessage
|
6237
|
-
* @property {TW.Aptos.Proto.IManagedTokensRegisterMessage|null} [registerToken] SigningInput registerToken
|
6238
6074
|
* @property {TW.Aptos.Proto.ILiquidStaking|null} [liquidStakingMessage] SigningInput liquidStakingMessage
|
6239
6075
|
* @property {TW.Aptos.Proto.ITokenTransferCoinsMessage|null} [tokenTransferCoins] SigningInput tokenTransferCoins
|
6240
6076
|
* @property {TW.Aptos.Proto.IFungibleAssetTransferMessage|null} [fungibleAssetTransfer] SigningInput fungibleAssetTransfer
|
@@ -6352,14 +6188,6 @@
|
|
6352
6188
|
*/
|
6353
6189
|
SigningInput.prototype.nftMessage = null;
|
6354
6190
|
|
6355
|
-
/**
|
6356
|
-
* SigningInput registerToken.
|
6357
|
-
* @member {TW.Aptos.Proto.IManagedTokensRegisterMessage|null|undefined} registerToken
|
6358
|
-
* @memberof TW.Aptos.Proto.SigningInput
|
6359
|
-
* @instance
|
6360
|
-
*/
|
6361
|
-
SigningInput.prototype.registerToken = null;
|
6362
|
-
|
6363
6191
|
/**
|
6364
6192
|
* SigningInput liquidStakingMessage.
|
6365
6193
|
* @member {TW.Aptos.Proto.ILiquidStaking|null|undefined} liquidStakingMessage
|
@@ -6397,12 +6225,12 @@
|
|
6397
6225
|
|
6398
6226
|
/**
|
6399
6227
|
* SigningInput transactionPayload.
|
6400
|
-
* @member {"transfer"|"tokenTransfer"|"createAccount"|"nftMessage"|"
|
6228
|
+
* @member {"transfer"|"tokenTransfer"|"createAccount"|"nftMessage"|"liquidStakingMessage"|"tokenTransferCoins"|"fungibleAssetTransfer"|undefined} transactionPayload
|
6401
6229
|
* @memberof TW.Aptos.Proto.SigningInput
|
6402
6230
|
* @instance
|
6403
6231
|
*/
|
6404
6232
|
Object.defineProperty(SigningInput.prototype, "transactionPayload", {
|
6405
|
-
get: $util.oneOfGetter($oneOfFields = ["transfer", "tokenTransfer", "createAccount", "nftMessage", "
|
6233
|
+
get: $util.oneOfGetter($oneOfFields = ["transfer", "tokenTransfer", "createAccount", "nftMessage", "liquidStakingMessage", "tokenTransferCoins", "fungibleAssetTransfer"]),
|
6406
6234
|
set: $util.oneOfSetter($oneOfFields)
|
6407
6235
|
});
|
6408
6236
|
|
@@ -6454,8 +6282,6 @@
|
|
6454
6282
|
$root.TW.Aptos.Proto.CreateAccountMessage.encode(message.createAccount, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim();
|
6455
6283
|
if (message.nftMessage != null && Object.hasOwnProperty.call(message, "nftMessage"))
|
6456
6284
|
$root.TW.Aptos.Proto.NftMessage.encode(message.nftMessage, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim();
|
6457
|
-
if (message.registerToken != null && Object.hasOwnProperty.call(message, "registerToken"))
|
6458
|
-
$root.TW.Aptos.Proto.ManagedTokensRegisterMessage.encode(message.registerToken, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim();
|
6459
6285
|
if (message.liquidStakingMessage != null && Object.hasOwnProperty.call(message, "liquidStakingMessage"))
|
6460
6286
|
$root.TW.Aptos.Proto.LiquidStaking.encode(message.liquidStakingMessage, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim();
|
6461
6287
|
if (message.tokenTransferCoins != null && Object.hasOwnProperty.call(message, "tokenTransferCoins"))
|
@@ -6521,9 +6347,6 @@
|
|
6521
6347
|
case 12:
|
6522
6348
|
message.nftMessage = $root.TW.Aptos.Proto.NftMessage.decode(reader, reader.uint32());
|
6523
6349
|
break;
|
6524
|
-
case 13:
|
6525
|
-
message.registerToken = $root.TW.Aptos.Proto.ManagedTokensRegisterMessage.decode(reader, reader.uint32());
|
6526
|
-
break;
|
6527
6350
|
case 14:
|
6528
6351
|
message.liquidStakingMessage = $root.TW.Aptos.Proto.LiquidStaking.decode(reader, reader.uint32());
|
6529
6352
|
break;
|
@@ -6618,16 +6441,6 @@
|
|
6618
6441
|
return "nftMessage." + error;
|
6619
6442
|
}
|
6620
6443
|
}
|
6621
|
-
if (message.registerToken != null && message.hasOwnProperty("registerToken")) {
|
6622
|
-
if (properties.transactionPayload === 1)
|
6623
|
-
return "transactionPayload: multiple values";
|
6624
|
-
properties.transactionPayload = 1;
|
6625
|
-
{
|
6626
|
-
var error = $root.TW.Aptos.Proto.ManagedTokensRegisterMessage.verify(message.registerToken);
|
6627
|
-
if (error)
|
6628
|
-
return "registerToken." + error;
|
6629
|
-
}
|
6630
|
-
}
|
6631
6444
|
if (message.liquidStakingMessage != null && message.hasOwnProperty("liquidStakingMessage")) {
|
6632
6445
|
if (properties.transactionPayload === 1)
|
6633
6446
|
return "transactionPayload: multiple values";
|
@@ -6743,11 +6556,6 @@
|
|
6743
6556
|
throw TypeError(".TW.Aptos.Proto.SigningInput.nftMessage: object expected");
|
6744
6557
|
message.nftMessage = $root.TW.Aptos.Proto.NftMessage.fromObject(object.nftMessage);
|
6745
6558
|
}
|
6746
|
-
if (object.registerToken != null) {
|
6747
|
-
if (typeof object.registerToken !== "object")
|
6748
|
-
throw TypeError(".TW.Aptos.Proto.SigningInput.registerToken: object expected");
|
6749
|
-
message.registerToken = $root.TW.Aptos.Proto.ManagedTokensRegisterMessage.fromObject(object.registerToken);
|
6750
|
-
}
|
6751
6559
|
if (object.liquidStakingMessage != null) {
|
6752
6560
|
if (typeof object.liquidStakingMessage !== "object")
|
6753
6561
|
throw TypeError(".TW.Aptos.Proto.SigningInput.liquidStakingMessage: object expected");
|
@@ -6862,11 +6670,6 @@
|
|
6862
6670
|
if (options.oneofs)
|
6863
6671
|
object.transactionPayload = "nftMessage";
|
6864
6672
|
}
|
6865
|
-
if (message.registerToken != null && message.hasOwnProperty("registerToken")) {
|
6866
|
-
object.registerToken = $root.TW.Aptos.Proto.ManagedTokensRegisterMessage.toObject(message.registerToken, options);
|
6867
|
-
if (options.oneofs)
|
6868
|
-
object.transactionPayload = "registerToken";
|
6869
|
-
}
|
6870
6673
|
if (message.liquidStakingMessage != null && message.hasOwnProperty("liquidStakingMessage")) {
|
6871
6674
|
object.liquidStakingMessage = $root.TW.Aptos.Proto.LiquidStaking.toObject(message.liquidStakingMessage, options);
|
6872
6675
|
if (options.oneofs)
|
@@ -145056,6 +144859,7 @@
|
|
145056
144859
|
* @property {TW.Tron.Proto.ITransaction|null} [transaction] SigningInput transaction
|
145057
144860
|
* @property {Uint8Array|null} [privateKey] SigningInput privateKey
|
145058
144861
|
* @property {string|null} [txId] SigningInput txId
|
144862
|
+
* @property {string|null} [rawJson] SigningInput rawJson
|
145059
144863
|
*/
|
145060
144864
|
|
145061
144865
|
/**
|
@@ -145097,6 +144901,14 @@
|
|
145097
144901
|
*/
|
145098
144902
|
SigningInput.prototype.txId = "";
|
145099
144903
|
|
144904
|
+
/**
|
144905
|
+
* SigningInput rawJson.
|
144906
|
+
* @member {string} rawJson
|
144907
|
+
* @memberof TW.Tron.Proto.SigningInput
|
144908
|
+
* @instance
|
144909
|
+
*/
|
144910
|
+
SigningInput.prototype.rawJson = "";
|
144911
|
+
|
145100
144912
|
/**
|
145101
144913
|
* Creates a new SigningInput instance using the specified properties.
|
145102
144914
|
* @function create
|
@@ -145127,6 +144939,8 @@
|
|
145127
144939
|
writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.privateKey);
|
145128
144940
|
if (message.txId != null && Object.hasOwnProperty.call(message, "txId"))
|
145129
144941
|
writer.uint32(/* id 3, wireType 2 =*/26).string(message.txId);
|
144942
|
+
if (message.rawJson != null && Object.hasOwnProperty.call(message, "rawJson"))
|
144943
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.rawJson);
|
145130
144944
|
return writer;
|
145131
144945
|
};
|
145132
144946
|
|
@@ -145157,6 +144971,9 @@
|
|
145157
144971
|
case 3:
|
145158
144972
|
message.txId = reader.string();
|
145159
144973
|
break;
|
144974
|
+
case 4:
|
144975
|
+
message.rawJson = reader.string();
|
144976
|
+
break;
|
145160
144977
|
default:
|
145161
144978
|
reader.skipType(tag & 7);
|
145162
144979
|
break;
|
@@ -145187,6 +145004,9 @@
|
|
145187
145004
|
if (message.txId != null && message.hasOwnProperty("txId"))
|
145188
145005
|
if (!$util.isString(message.txId))
|
145189
145006
|
return "txId: string expected";
|
145007
|
+
if (message.rawJson != null && message.hasOwnProperty("rawJson"))
|
145008
|
+
if (!$util.isString(message.rawJson))
|
145009
|
+
return "rawJson: string expected";
|
145190
145010
|
return null;
|
145191
145011
|
};
|
145192
145012
|
|
@@ -145214,6 +145034,8 @@
|
|
145214
145034
|
message.privateKey = object.privateKey;
|
145215
145035
|
if (object.txId != null)
|
145216
145036
|
message.txId = String(object.txId);
|
145037
|
+
if (object.rawJson != null)
|
145038
|
+
message.rawJson = String(object.rawJson);
|
145217
145039
|
return message;
|
145218
145040
|
};
|
145219
145041
|
|
@@ -145240,6 +145062,7 @@
|
|
145240
145062
|
object.privateKey = $util.newBuffer(object.privateKey);
|
145241
145063
|
}
|
145242
145064
|
object.txId = "";
|
145065
|
+
object.rawJson = "";
|
145243
145066
|
}
|
145244
145067
|
if (message.transaction != null && message.hasOwnProperty("transaction"))
|
145245
145068
|
object.transaction = $root.TW.Tron.Proto.Transaction.toObject(message.transaction, options);
|
@@ -145247,6 +145070,8 @@
|
|
145247
145070
|
object.privateKey = options.bytes === String ? $util.base64.encode(message.privateKey, 0, message.privateKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.privateKey) : message.privateKey;
|
145248
145071
|
if (message.txId != null && message.hasOwnProperty("txId"))
|
145249
145072
|
object.txId = message.txId;
|
145073
|
+
if (message.rawJson != null && message.hasOwnProperty("rawJson"))
|
145074
|
+
object.rawJson = message.rawJson;
|
145250
145075
|
return object;
|
145251
145076
|
};
|
145252
145077
|
|
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={2189556:()=>{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";}}},2190278:()=>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
|
@@ -93,7 +93,7 @@ export class AsnParser {
|
|
93
93
|
export class Barz {
|
94
94
|
static getCounterfactualAddress(input: Uint8Array | Buffer): string;
|
95
95
|
static getInitCode(factory: string, publicKey: PublicKey, verificationFacet: string, salt: number): Uint8Array;
|
96
|
-
static getFormattedSignature(signature: Uint8Array | Buffer, challenge: Uint8Array | Buffer, authenticatorData: Uint8Array | Buffer,
|
96
|
+
static getFormattedSignature(signature: Uint8Array | Buffer, challenge: Uint8Array | Buffer, authenticatorData: Uint8Array | Buffer, clientDataJson: string): Uint8Array;
|
97
97
|
static getPrefixedMsgHash(msgHash: Uint8Array | Buffer, barzAddress: string, chainId: number): Uint8Array;
|
98
98
|
static getDiamondCutCode(input: Uint8Array | Buffer): Uint8Array;
|
99
99
|
static getAuthorizationHash(chainId: Uint8Array | Buffer, contractAddress: string, nonce: Uint8Array | Buffer): Uint8Array;
|
@@ -490,7 +490,10 @@ export class DerivationPathIndex {
|
|
490
490
|
delete(): void;
|
491
491
|
}
|
492
492
|
export class Ethereum {
|
493
|
+
static addressChecksummed(address: string): string;
|
493
494
|
static eip2645GetPath(ethAddress: string, layer: string, application: string, index: string): string;
|
495
|
+
static eip1014Create2Address(from: string, salt: Uint8Array | Buffer, initCodeHash: Uint8Array | Buffer): string;
|
496
|
+
static eip1967ProxyInitCode(logicAddress: string, data: Uint8Array | Buffer): Uint8Array;
|
494
497
|
}
|
495
498
|
export class EthereumAbi {
|
496
499
|
static decodeContractCall(coin: CoinType, input: Uint8Array | Buffer): Uint8Array;
|