@trustwallet/wallet-core 3.0.5 → 3.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generated/core_proto.d.ts +392 -1
- package/dist/generated/core_proto.js +1116 -13
- package/dist/lib/wallet-core.wasm +0 -0
- package/dist/src/wallet-core.d.ts +6 -0
- package/package.json +1 -1
@@ -1182,6 +1182,391 @@ export namespace TW {
|
|
1182
1182
|
public toJSON(): { [k: string]: any };
|
1183
1183
|
}
|
1184
1184
|
|
1185
|
+
/** Properties of an OfferNftMessage. */
|
1186
|
+
interface IOfferNftMessage {
|
1187
|
+
|
1188
|
+
/** OfferNftMessage receiver */
|
1189
|
+
receiver?: (string|null);
|
1190
|
+
|
1191
|
+
/** OfferNftMessage creator */
|
1192
|
+
creator?: (string|null);
|
1193
|
+
|
1194
|
+
/** OfferNftMessage collectionName */
|
1195
|
+
collectionName?: (string|null);
|
1196
|
+
|
1197
|
+
/** OfferNftMessage name */
|
1198
|
+
name?: (string|null);
|
1199
|
+
|
1200
|
+
/** OfferNftMessage propertyVersion */
|
1201
|
+
propertyVersion?: (Long|null);
|
1202
|
+
|
1203
|
+
/** OfferNftMessage amount */
|
1204
|
+
amount?: (Long|null);
|
1205
|
+
}
|
1206
|
+
|
1207
|
+
/** Represents an OfferNftMessage. */
|
1208
|
+
class OfferNftMessage implements IOfferNftMessage {
|
1209
|
+
|
1210
|
+
/**
|
1211
|
+
* Constructs a new OfferNftMessage.
|
1212
|
+
* @param [properties] Properties to set
|
1213
|
+
*/
|
1214
|
+
constructor(properties?: TW.Aptos.Proto.IOfferNftMessage);
|
1215
|
+
|
1216
|
+
/** OfferNftMessage receiver. */
|
1217
|
+
public receiver: string;
|
1218
|
+
|
1219
|
+
/** OfferNftMessage creator. */
|
1220
|
+
public creator: string;
|
1221
|
+
|
1222
|
+
/** OfferNftMessage collectionName. */
|
1223
|
+
public collectionName: string;
|
1224
|
+
|
1225
|
+
/** OfferNftMessage name. */
|
1226
|
+
public name: string;
|
1227
|
+
|
1228
|
+
/** OfferNftMessage propertyVersion. */
|
1229
|
+
public propertyVersion: Long;
|
1230
|
+
|
1231
|
+
/** OfferNftMessage amount. */
|
1232
|
+
public amount: Long;
|
1233
|
+
|
1234
|
+
/**
|
1235
|
+
* Creates a new OfferNftMessage instance using the specified properties.
|
1236
|
+
* @param [properties] Properties to set
|
1237
|
+
* @returns OfferNftMessage instance
|
1238
|
+
*/
|
1239
|
+
public static create(properties?: TW.Aptos.Proto.IOfferNftMessage): TW.Aptos.Proto.OfferNftMessage;
|
1240
|
+
|
1241
|
+
/**
|
1242
|
+
* Encodes the specified OfferNftMessage message. Does not implicitly {@link TW.Aptos.Proto.OfferNftMessage.verify|verify} messages.
|
1243
|
+
* @param message OfferNftMessage message or plain object to encode
|
1244
|
+
* @param [writer] Writer to encode to
|
1245
|
+
* @returns Writer
|
1246
|
+
*/
|
1247
|
+
public static encode(message: TW.Aptos.Proto.IOfferNftMessage, writer?: $protobuf.Writer): $protobuf.Writer;
|
1248
|
+
|
1249
|
+
/**
|
1250
|
+
* Decodes an OfferNftMessage message from the specified reader or buffer.
|
1251
|
+
* @param reader Reader or buffer to decode from
|
1252
|
+
* @param [length] Message length if known beforehand
|
1253
|
+
* @returns OfferNftMessage
|
1254
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
1255
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1256
|
+
*/
|
1257
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Aptos.Proto.OfferNftMessage;
|
1258
|
+
|
1259
|
+
/**
|
1260
|
+
* Verifies an OfferNftMessage message.
|
1261
|
+
* @param message Plain object to verify
|
1262
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
1263
|
+
*/
|
1264
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
1265
|
+
|
1266
|
+
/**
|
1267
|
+
* Creates an OfferNftMessage message from a plain object. Also converts values to their respective internal types.
|
1268
|
+
* @param object Plain object
|
1269
|
+
* @returns OfferNftMessage
|
1270
|
+
*/
|
1271
|
+
public static fromObject(object: { [k: string]: any }): TW.Aptos.Proto.OfferNftMessage;
|
1272
|
+
|
1273
|
+
/**
|
1274
|
+
* Creates a plain object from an OfferNftMessage message. Also converts values to other types if specified.
|
1275
|
+
* @param message OfferNftMessage
|
1276
|
+
* @param [options] Conversion options
|
1277
|
+
* @returns Plain object
|
1278
|
+
*/
|
1279
|
+
public static toObject(message: TW.Aptos.Proto.OfferNftMessage, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
1280
|
+
|
1281
|
+
/**
|
1282
|
+
* Converts this OfferNftMessage to JSON.
|
1283
|
+
* @returns JSON object
|
1284
|
+
*/
|
1285
|
+
public toJSON(): { [k: string]: any };
|
1286
|
+
}
|
1287
|
+
|
1288
|
+
/** Properties of a CancelOfferNftMessage. */
|
1289
|
+
interface ICancelOfferNftMessage {
|
1290
|
+
|
1291
|
+
/** CancelOfferNftMessage receiver */
|
1292
|
+
receiver?: (string|null);
|
1293
|
+
|
1294
|
+
/** CancelOfferNftMessage creator */
|
1295
|
+
creator?: (string|null);
|
1296
|
+
|
1297
|
+
/** CancelOfferNftMessage collectionName */
|
1298
|
+
collectionName?: (string|null);
|
1299
|
+
|
1300
|
+
/** CancelOfferNftMessage name */
|
1301
|
+
name?: (string|null);
|
1302
|
+
|
1303
|
+
/** CancelOfferNftMessage propertyVersion */
|
1304
|
+
propertyVersion?: (Long|null);
|
1305
|
+
}
|
1306
|
+
|
1307
|
+
/** Represents a CancelOfferNftMessage. */
|
1308
|
+
class CancelOfferNftMessage implements ICancelOfferNftMessage {
|
1309
|
+
|
1310
|
+
/**
|
1311
|
+
* Constructs a new CancelOfferNftMessage.
|
1312
|
+
* @param [properties] Properties to set
|
1313
|
+
*/
|
1314
|
+
constructor(properties?: TW.Aptos.Proto.ICancelOfferNftMessage);
|
1315
|
+
|
1316
|
+
/** CancelOfferNftMessage receiver. */
|
1317
|
+
public receiver: string;
|
1318
|
+
|
1319
|
+
/** CancelOfferNftMessage creator. */
|
1320
|
+
public creator: string;
|
1321
|
+
|
1322
|
+
/** CancelOfferNftMessage collectionName. */
|
1323
|
+
public collectionName: string;
|
1324
|
+
|
1325
|
+
/** CancelOfferNftMessage name. */
|
1326
|
+
public name: string;
|
1327
|
+
|
1328
|
+
/** CancelOfferNftMessage propertyVersion. */
|
1329
|
+
public propertyVersion: Long;
|
1330
|
+
|
1331
|
+
/**
|
1332
|
+
* Creates a new CancelOfferNftMessage instance using the specified properties.
|
1333
|
+
* @param [properties] Properties to set
|
1334
|
+
* @returns CancelOfferNftMessage instance
|
1335
|
+
*/
|
1336
|
+
public static create(properties?: TW.Aptos.Proto.ICancelOfferNftMessage): TW.Aptos.Proto.CancelOfferNftMessage;
|
1337
|
+
|
1338
|
+
/**
|
1339
|
+
* Encodes the specified CancelOfferNftMessage message. Does not implicitly {@link TW.Aptos.Proto.CancelOfferNftMessage.verify|verify} messages.
|
1340
|
+
* @param message CancelOfferNftMessage message or plain object to encode
|
1341
|
+
* @param [writer] Writer to encode to
|
1342
|
+
* @returns Writer
|
1343
|
+
*/
|
1344
|
+
public static encode(message: TW.Aptos.Proto.ICancelOfferNftMessage, writer?: $protobuf.Writer): $protobuf.Writer;
|
1345
|
+
|
1346
|
+
/**
|
1347
|
+
* Decodes a CancelOfferNftMessage message from the specified reader or buffer.
|
1348
|
+
* @param reader Reader or buffer to decode from
|
1349
|
+
* @param [length] Message length if known beforehand
|
1350
|
+
* @returns CancelOfferNftMessage
|
1351
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
1352
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1353
|
+
*/
|
1354
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Aptos.Proto.CancelOfferNftMessage;
|
1355
|
+
|
1356
|
+
/**
|
1357
|
+
* Verifies a CancelOfferNftMessage message.
|
1358
|
+
* @param message Plain object to verify
|
1359
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
1360
|
+
*/
|
1361
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
1362
|
+
|
1363
|
+
/**
|
1364
|
+
* Creates a CancelOfferNftMessage message from a plain object. Also converts values to their respective internal types.
|
1365
|
+
* @param object Plain object
|
1366
|
+
* @returns CancelOfferNftMessage
|
1367
|
+
*/
|
1368
|
+
public static fromObject(object: { [k: string]: any }): TW.Aptos.Proto.CancelOfferNftMessage;
|
1369
|
+
|
1370
|
+
/**
|
1371
|
+
* Creates a plain object from a CancelOfferNftMessage message. Also converts values to other types if specified.
|
1372
|
+
* @param message CancelOfferNftMessage
|
1373
|
+
* @param [options] Conversion options
|
1374
|
+
* @returns Plain object
|
1375
|
+
*/
|
1376
|
+
public static toObject(message: TW.Aptos.Proto.CancelOfferNftMessage, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
1377
|
+
|
1378
|
+
/**
|
1379
|
+
* Converts this CancelOfferNftMessage to JSON.
|
1380
|
+
* @returns JSON object
|
1381
|
+
*/
|
1382
|
+
public toJSON(): { [k: string]: any };
|
1383
|
+
}
|
1384
|
+
|
1385
|
+
/** Properties of a ClaimNftMessage. */
|
1386
|
+
interface IClaimNftMessage {
|
1387
|
+
|
1388
|
+
/** ClaimNftMessage sender */
|
1389
|
+
sender?: (string|null);
|
1390
|
+
|
1391
|
+
/** ClaimNftMessage creator */
|
1392
|
+
creator?: (string|null);
|
1393
|
+
|
1394
|
+
/** ClaimNftMessage collectionName */
|
1395
|
+
collectionName?: (string|null);
|
1396
|
+
|
1397
|
+
/** ClaimNftMessage name */
|
1398
|
+
name?: (string|null);
|
1399
|
+
|
1400
|
+
/** ClaimNftMessage propertyVersion */
|
1401
|
+
propertyVersion?: (Long|null);
|
1402
|
+
}
|
1403
|
+
|
1404
|
+
/** Represents a ClaimNftMessage. */
|
1405
|
+
class ClaimNftMessage implements IClaimNftMessage {
|
1406
|
+
|
1407
|
+
/**
|
1408
|
+
* Constructs a new ClaimNftMessage.
|
1409
|
+
* @param [properties] Properties to set
|
1410
|
+
*/
|
1411
|
+
constructor(properties?: TW.Aptos.Proto.IClaimNftMessage);
|
1412
|
+
|
1413
|
+
/** ClaimNftMessage sender. */
|
1414
|
+
public sender: string;
|
1415
|
+
|
1416
|
+
/** ClaimNftMessage creator. */
|
1417
|
+
public creator: string;
|
1418
|
+
|
1419
|
+
/** ClaimNftMessage collectionName. */
|
1420
|
+
public collectionName: string;
|
1421
|
+
|
1422
|
+
/** ClaimNftMessage name. */
|
1423
|
+
public name: string;
|
1424
|
+
|
1425
|
+
/** ClaimNftMessage propertyVersion. */
|
1426
|
+
public propertyVersion: Long;
|
1427
|
+
|
1428
|
+
/**
|
1429
|
+
* Creates a new ClaimNftMessage instance using the specified properties.
|
1430
|
+
* @param [properties] Properties to set
|
1431
|
+
* @returns ClaimNftMessage instance
|
1432
|
+
*/
|
1433
|
+
public static create(properties?: TW.Aptos.Proto.IClaimNftMessage): TW.Aptos.Proto.ClaimNftMessage;
|
1434
|
+
|
1435
|
+
/**
|
1436
|
+
* Encodes the specified ClaimNftMessage message. Does not implicitly {@link TW.Aptos.Proto.ClaimNftMessage.verify|verify} messages.
|
1437
|
+
* @param message ClaimNftMessage message or plain object to encode
|
1438
|
+
* @param [writer] Writer to encode to
|
1439
|
+
* @returns Writer
|
1440
|
+
*/
|
1441
|
+
public static encode(message: TW.Aptos.Proto.IClaimNftMessage, writer?: $protobuf.Writer): $protobuf.Writer;
|
1442
|
+
|
1443
|
+
/**
|
1444
|
+
* Decodes a ClaimNftMessage message from the specified reader or buffer.
|
1445
|
+
* @param reader Reader or buffer to decode from
|
1446
|
+
* @param [length] Message length if known beforehand
|
1447
|
+
* @returns ClaimNftMessage
|
1448
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
1449
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1450
|
+
*/
|
1451
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Aptos.Proto.ClaimNftMessage;
|
1452
|
+
|
1453
|
+
/**
|
1454
|
+
* Verifies a ClaimNftMessage message.
|
1455
|
+
* @param message Plain object to verify
|
1456
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
1457
|
+
*/
|
1458
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
1459
|
+
|
1460
|
+
/**
|
1461
|
+
* Creates a ClaimNftMessage message from a plain object. Also converts values to their respective internal types.
|
1462
|
+
* @param object Plain object
|
1463
|
+
* @returns ClaimNftMessage
|
1464
|
+
*/
|
1465
|
+
public static fromObject(object: { [k: string]: any }): TW.Aptos.Proto.ClaimNftMessage;
|
1466
|
+
|
1467
|
+
/**
|
1468
|
+
* Creates a plain object from a ClaimNftMessage message. Also converts values to other types if specified.
|
1469
|
+
* @param message ClaimNftMessage
|
1470
|
+
* @param [options] Conversion options
|
1471
|
+
* @returns Plain object
|
1472
|
+
*/
|
1473
|
+
public static toObject(message: TW.Aptos.Proto.ClaimNftMessage, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
1474
|
+
|
1475
|
+
/**
|
1476
|
+
* Converts this ClaimNftMessage to JSON.
|
1477
|
+
* @returns JSON object
|
1478
|
+
*/
|
1479
|
+
public toJSON(): { [k: string]: any };
|
1480
|
+
}
|
1481
|
+
|
1482
|
+
/** Properties of a NftMessage. */
|
1483
|
+
interface INftMessage {
|
1484
|
+
|
1485
|
+
/** NftMessage offerNft */
|
1486
|
+
offerNft?: (TW.Aptos.Proto.IOfferNftMessage|null);
|
1487
|
+
|
1488
|
+
/** NftMessage cancelOfferNft */
|
1489
|
+
cancelOfferNft?: (TW.Aptos.Proto.ICancelOfferNftMessage|null);
|
1490
|
+
|
1491
|
+
/** NftMessage claimNft */
|
1492
|
+
claimNft?: (TW.Aptos.Proto.IClaimNftMessage|null);
|
1493
|
+
}
|
1494
|
+
|
1495
|
+
/** Represents a NftMessage. */
|
1496
|
+
class NftMessage implements INftMessage {
|
1497
|
+
|
1498
|
+
/**
|
1499
|
+
* Constructs a new NftMessage.
|
1500
|
+
* @param [properties] Properties to set
|
1501
|
+
*/
|
1502
|
+
constructor(properties?: TW.Aptos.Proto.INftMessage);
|
1503
|
+
|
1504
|
+
/** NftMessage offerNft. */
|
1505
|
+
public offerNft?: (TW.Aptos.Proto.IOfferNftMessage|null);
|
1506
|
+
|
1507
|
+
/** NftMessage cancelOfferNft. */
|
1508
|
+
public cancelOfferNft?: (TW.Aptos.Proto.ICancelOfferNftMessage|null);
|
1509
|
+
|
1510
|
+
/** NftMessage claimNft. */
|
1511
|
+
public claimNft?: (TW.Aptos.Proto.IClaimNftMessage|null);
|
1512
|
+
|
1513
|
+
/** NftMessage nftTransactionPayload. */
|
1514
|
+
public nftTransactionPayload?: ("offerNft"|"cancelOfferNft"|"claimNft");
|
1515
|
+
|
1516
|
+
/**
|
1517
|
+
* Creates a new NftMessage instance using the specified properties.
|
1518
|
+
* @param [properties] Properties to set
|
1519
|
+
* @returns NftMessage instance
|
1520
|
+
*/
|
1521
|
+
public static create(properties?: TW.Aptos.Proto.INftMessage): TW.Aptos.Proto.NftMessage;
|
1522
|
+
|
1523
|
+
/**
|
1524
|
+
* Encodes the specified NftMessage message. Does not implicitly {@link TW.Aptos.Proto.NftMessage.verify|verify} messages.
|
1525
|
+
* @param message NftMessage message or plain object to encode
|
1526
|
+
* @param [writer] Writer to encode to
|
1527
|
+
* @returns Writer
|
1528
|
+
*/
|
1529
|
+
public static encode(message: TW.Aptos.Proto.INftMessage, writer?: $protobuf.Writer): $protobuf.Writer;
|
1530
|
+
|
1531
|
+
/**
|
1532
|
+
* Decodes a NftMessage message from the specified reader or buffer.
|
1533
|
+
* @param reader Reader or buffer to decode from
|
1534
|
+
* @param [length] Message length if known beforehand
|
1535
|
+
* @returns NftMessage
|
1536
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
1537
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1538
|
+
*/
|
1539
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Aptos.Proto.NftMessage;
|
1540
|
+
|
1541
|
+
/**
|
1542
|
+
* Verifies a NftMessage message.
|
1543
|
+
* @param message Plain object to verify
|
1544
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
1545
|
+
*/
|
1546
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
1547
|
+
|
1548
|
+
/**
|
1549
|
+
* Creates a NftMessage message from a plain object. Also converts values to their respective internal types.
|
1550
|
+
* @param object Plain object
|
1551
|
+
* @returns NftMessage
|
1552
|
+
*/
|
1553
|
+
public static fromObject(object: { [k: string]: any }): TW.Aptos.Proto.NftMessage;
|
1554
|
+
|
1555
|
+
/**
|
1556
|
+
* Creates a plain object from a NftMessage message. Also converts values to other types if specified.
|
1557
|
+
* @param message NftMessage
|
1558
|
+
* @param [options] Conversion options
|
1559
|
+
* @returns Plain object
|
1560
|
+
*/
|
1561
|
+
public static toObject(message: TW.Aptos.Proto.NftMessage, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
1562
|
+
|
1563
|
+
/**
|
1564
|
+
* Converts this NftMessage to JSON.
|
1565
|
+
* @returns JSON object
|
1566
|
+
*/
|
1567
|
+
public toJSON(): { [k: string]: any };
|
1568
|
+
}
|
1569
|
+
|
1185
1570
|
/** Properties of a SigningInput. */
|
1186
1571
|
interface ISigningInput {
|
1187
1572
|
|
@@ -1200,6 +1585,9 @@ export namespace TW {
|
|
1200
1585
|
/** SigningInput createAccount */
|
1201
1586
|
createAccount?: (TW.Aptos.Proto.ICreateAccountMessage|null);
|
1202
1587
|
|
1588
|
+
/** SigningInput nftMessage */
|
1589
|
+
nftMessage?: (TW.Aptos.Proto.INftMessage|null);
|
1590
|
+
|
1203
1591
|
/** SigningInput maxGasAmount */
|
1204
1592
|
maxGasAmount?: (Long|null);
|
1205
1593
|
|
@@ -1243,6 +1631,9 @@ export namespace TW {
|
|
1243
1631
|
/** SigningInput createAccount. */
|
1244
1632
|
public createAccount?: (TW.Aptos.Proto.ICreateAccountMessage|null);
|
1245
1633
|
|
1634
|
+
/** SigningInput nftMessage. */
|
1635
|
+
public nftMessage?: (TW.Aptos.Proto.INftMessage|null);
|
1636
|
+
|
1246
1637
|
/** SigningInput maxGasAmount. */
|
1247
1638
|
public maxGasAmount: Long;
|
1248
1639
|
|
@@ -1262,7 +1653,7 @@ export namespace TW {
|
|
1262
1653
|
public anyEncoded: string;
|
1263
1654
|
|
1264
1655
|
/** SigningInput transactionPayload. */
|
1265
|
-
public transactionPayload?: ("transfer"|"tokenTransfer"|"createAccount");
|
1656
|
+
public transactionPayload?: ("transfer"|"tokenTransfer"|"createAccount"|"nftMessage");
|
1266
1657
|
|
1267
1658
|
/**
|
1268
1659
|
* Creates a new SigningInput instance using the specified properties.
|