@trustwallet/wallet-core 4.2.0-dev-rc3 → 4.2.0-dev-rc4
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 +273 -0
- package/dist/generated/core_proto.js +846 -0
- package/dist/lib/wallet-core.js +1 -1
- package/dist/lib/wallet-core.wasm +0 -0
- package/dist/src/keystore/default-impl.d.ts +0 -1
- package/dist/src/keystore/default-impl.js +3 -33
- package/dist/src/keystore/types.d.ts +1 -3
- package/dist/src/keystore/types.js +0 -1
- package/dist/src/wallet-core.d.ts +6 -8
- package/package.json +1 -1
@@ -33399,6 +33399,12 @@ export namespace TW {
|
|
33399
33399
|
|
33400
33400
|
/** BondAndNominate callIndices */
|
33401
33401
|
callIndices?: (TW.Polkadot.Proto.ICallIndices|null);
|
33402
|
+
|
33403
|
+
/** BondAndNominate bondCallIndices */
|
33404
|
+
bondCallIndices?: (TW.Polkadot.Proto.ICallIndices|null);
|
33405
|
+
|
33406
|
+
/** BondAndNominate nominateCallIndices */
|
33407
|
+
nominateCallIndices?: (TW.Polkadot.Proto.ICallIndices|null);
|
33402
33408
|
}
|
33403
33409
|
|
33404
33410
|
/** Represents a BondAndNominate. */
|
@@ -33425,6 +33431,12 @@ export namespace TW {
|
|
33425
33431
|
/** BondAndNominate callIndices. */
|
33426
33432
|
public callIndices?: (TW.Polkadot.Proto.ICallIndices|null);
|
33427
33433
|
|
33434
|
+
/** BondAndNominate bondCallIndices. */
|
33435
|
+
public bondCallIndices?: (TW.Polkadot.Proto.ICallIndices|null);
|
33436
|
+
|
33437
|
+
/** BondAndNominate nominateCallIndices. */
|
33438
|
+
public nominateCallIndices?: (TW.Polkadot.Proto.ICallIndices|null);
|
33439
|
+
|
33428
33440
|
/**
|
33429
33441
|
* Creates a new BondAndNominate instance using the specified properties.
|
33430
33442
|
* @param [properties] Properties to set
|
@@ -33882,6 +33894,12 @@ export namespace TW {
|
|
33882
33894
|
|
33883
33895
|
/** ChillAndUnbond callIndices */
|
33884
33896
|
callIndices?: (TW.Polkadot.Proto.ICallIndices|null);
|
33897
|
+
|
33898
|
+
/** ChillAndUnbond chillCallIndices */
|
33899
|
+
chillCallIndices?: (TW.Polkadot.Proto.ICallIndices|null);
|
33900
|
+
|
33901
|
+
/** ChillAndUnbond unbondCallIndices */
|
33902
|
+
unbondCallIndices?: (TW.Polkadot.Proto.ICallIndices|null);
|
33885
33903
|
}
|
33886
33904
|
|
33887
33905
|
/** Represents a ChillAndUnbond. */
|
@@ -33899,6 +33917,12 @@ export namespace TW {
|
|
33899
33917
|
/** ChillAndUnbond callIndices. */
|
33900
33918
|
public callIndices?: (TW.Polkadot.Proto.ICallIndices|null);
|
33901
33919
|
|
33920
|
+
/** ChillAndUnbond chillCallIndices. */
|
33921
|
+
public chillCallIndices?: (TW.Polkadot.Proto.ICallIndices|null);
|
33922
|
+
|
33923
|
+
/** ChillAndUnbond unbondCallIndices. */
|
33924
|
+
public unbondCallIndices?: (TW.Polkadot.Proto.ICallIndices|null);
|
33925
|
+
|
33902
33926
|
/**
|
33903
33927
|
* Creates a new ChillAndUnbond instance using the specified properties.
|
33904
33928
|
* @param [properties] Properties to set
|
@@ -38216,6 +38240,255 @@ export namespace TW {
|
|
38216
38240
|
*/
|
38217
38241
|
public toJSON(): { [k: string]: any };
|
38218
38242
|
}
|
38243
|
+
|
38244
|
+
/** Properties of a MessageSigningInput. */
|
38245
|
+
interface IMessageSigningInput {
|
38246
|
+
|
38247
|
+
/** MessageSigningInput privateKey */
|
38248
|
+
privateKey?: (Uint8Array|null);
|
38249
|
+
|
38250
|
+
/** MessageSigningInput message */
|
38251
|
+
message?: (string|null);
|
38252
|
+
}
|
38253
|
+
|
38254
|
+
/** Represents a MessageSigningInput. */
|
38255
|
+
class MessageSigningInput implements IMessageSigningInput {
|
38256
|
+
|
38257
|
+
/**
|
38258
|
+
* Constructs a new MessageSigningInput.
|
38259
|
+
* @param [properties] Properties to set
|
38260
|
+
*/
|
38261
|
+
constructor(properties?: TW.Solana.Proto.IMessageSigningInput);
|
38262
|
+
|
38263
|
+
/** MessageSigningInput privateKey. */
|
38264
|
+
public privateKey: Uint8Array;
|
38265
|
+
|
38266
|
+
/** MessageSigningInput message. */
|
38267
|
+
public message: string;
|
38268
|
+
|
38269
|
+
/**
|
38270
|
+
* Creates a new MessageSigningInput instance using the specified properties.
|
38271
|
+
* @param [properties] Properties to set
|
38272
|
+
* @returns MessageSigningInput instance
|
38273
|
+
*/
|
38274
|
+
public static create(properties?: TW.Solana.Proto.IMessageSigningInput): TW.Solana.Proto.MessageSigningInput;
|
38275
|
+
|
38276
|
+
/**
|
38277
|
+
* Encodes the specified MessageSigningInput message. Does not implicitly {@link TW.Solana.Proto.MessageSigningInput.verify|verify} messages.
|
38278
|
+
* @param message MessageSigningInput message or plain object to encode
|
38279
|
+
* @param [writer] Writer to encode to
|
38280
|
+
* @returns Writer
|
38281
|
+
*/
|
38282
|
+
public static encode(message: TW.Solana.Proto.IMessageSigningInput, writer?: $protobuf.Writer): $protobuf.Writer;
|
38283
|
+
|
38284
|
+
/**
|
38285
|
+
* Decodes a MessageSigningInput message from the specified reader or buffer.
|
38286
|
+
* @param reader Reader or buffer to decode from
|
38287
|
+
* @param [length] Message length if known beforehand
|
38288
|
+
* @returns MessageSigningInput
|
38289
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
38290
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
38291
|
+
*/
|
38292
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Solana.Proto.MessageSigningInput;
|
38293
|
+
|
38294
|
+
/**
|
38295
|
+
* Verifies a MessageSigningInput message.
|
38296
|
+
* @param message Plain object to verify
|
38297
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
38298
|
+
*/
|
38299
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
38300
|
+
|
38301
|
+
/**
|
38302
|
+
* Creates a MessageSigningInput message from a plain object. Also converts values to their respective internal types.
|
38303
|
+
* @param object Plain object
|
38304
|
+
* @returns MessageSigningInput
|
38305
|
+
*/
|
38306
|
+
public static fromObject(object: { [k: string]: any }): TW.Solana.Proto.MessageSigningInput;
|
38307
|
+
|
38308
|
+
/**
|
38309
|
+
* Creates a plain object from a MessageSigningInput message. Also converts values to other types if specified.
|
38310
|
+
* @param message MessageSigningInput
|
38311
|
+
* @param [options] Conversion options
|
38312
|
+
* @returns Plain object
|
38313
|
+
*/
|
38314
|
+
public static toObject(message: TW.Solana.Proto.MessageSigningInput, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
38315
|
+
|
38316
|
+
/**
|
38317
|
+
* Converts this MessageSigningInput to JSON.
|
38318
|
+
* @returns JSON object
|
38319
|
+
*/
|
38320
|
+
public toJSON(): { [k: string]: any };
|
38321
|
+
}
|
38322
|
+
|
38323
|
+
/** Properties of a MessageSigningOutput. */
|
38324
|
+
interface IMessageSigningOutput {
|
38325
|
+
|
38326
|
+
/** MessageSigningOutput signature */
|
38327
|
+
signature?: (string|null);
|
38328
|
+
|
38329
|
+
/** MessageSigningOutput error */
|
38330
|
+
error?: (TW.Common.Proto.SigningError|null);
|
38331
|
+
|
38332
|
+
/** MessageSigningOutput errorMessage */
|
38333
|
+
errorMessage?: (string|null);
|
38334
|
+
}
|
38335
|
+
|
38336
|
+
/** Represents a MessageSigningOutput. */
|
38337
|
+
class MessageSigningOutput implements IMessageSigningOutput {
|
38338
|
+
|
38339
|
+
/**
|
38340
|
+
* Constructs a new MessageSigningOutput.
|
38341
|
+
* @param [properties] Properties to set
|
38342
|
+
*/
|
38343
|
+
constructor(properties?: TW.Solana.Proto.IMessageSigningOutput);
|
38344
|
+
|
38345
|
+
/** MessageSigningOutput signature. */
|
38346
|
+
public signature: string;
|
38347
|
+
|
38348
|
+
/** MessageSigningOutput error. */
|
38349
|
+
public error: TW.Common.Proto.SigningError;
|
38350
|
+
|
38351
|
+
/** MessageSigningOutput errorMessage. */
|
38352
|
+
public errorMessage: string;
|
38353
|
+
|
38354
|
+
/**
|
38355
|
+
* Creates a new MessageSigningOutput instance using the specified properties.
|
38356
|
+
* @param [properties] Properties to set
|
38357
|
+
* @returns MessageSigningOutput instance
|
38358
|
+
*/
|
38359
|
+
public static create(properties?: TW.Solana.Proto.IMessageSigningOutput): TW.Solana.Proto.MessageSigningOutput;
|
38360
|
+
|
38361
|
+
/**
|
38362
|
+
* Encodes the specified MessageSigningOutput message. Does not implicitly {@link TW.Solana.Proto.MessageSigningOutput.verify|verify} messages.
|
38363
|
+
* @param message MessageSigningOutput message or plain object to encode
|
38364
|
+
* @param [writer] Writer to encode to
|
38365
|
+
* @returns Writer
|
38366
|
+
*/
|
38367
|
+
public static encode(message: TW.Solana.Proto.IMessageSigningOutput, writer?: $protobuf.Writer): $protobuf.Writer;
|
38368
|
+
|
38369
|
+
/**
|
38370
|
+
* Decodes a MessageSigningOutput message from the specified reader or buffer.
|
38371
|
+
* @param reader Reader or buffer to decode from
|
38372
|
+
* @param [length] Message length if known beforehand
|
38373
|
+
* @returns MessageSigningOutput
|
38374
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
38375
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
38376
|
+
*/
|
38377
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Solana.Proto.MessageSigningOutput;
|
38378
|
+
|
38379
|
+
/**
|
38380
|
+
* Verifies a MessageSigningOutput message.
|
38381
|
+
* @param message Plain object to verify
|
38382
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
38383
|
+
*/
|
38384
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
38385
|
+
|
38386
|
+
/**
|
38387
|
+
* Creates a MessageSigningOutput message from a plain object. Also converts values to their respective internal types.
|
38388
|
+
* @param object Plain object
|
38389
|
+
* @returns MessageSigningOutput
|
38390
|
+
*/
|
38391
|
+
public static fromObject(object: { [k: string]: any }): TW.Solana.Proto.MessageSigningOutput;
|
38392
|
+
|
38393
|
+
/**
|
38394
|
+
* Creates a plain object from a MessageSigningOutput message. Also converts values to other types if specified.
|
38395
|
+
* @param message MessageSigningOutput
|
38396
|
+
* @param [options] Conversion options
|
38397
|
+
* @returns Plain object
|
38398
|
+
*/
|
38399
|
+
public static toObject(message: TW.Solana.Proto.MessageSigningOutput, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
38400
|
+
|
38401
|
+
/**
|
38402
|
+
* Converts this MessageSigningOutput to JSON.
|
38403
|
+
* @returns JSON object
|
38404
|
+
*/
|
38405
|
+
public toJSON(): { [k: string]: any };
|
38406
|
+
}
|
38407
|
+
|
38408
|
+
/** Properties of a MessageVerifyingInput. */
|
38409
|
+
interface IMessageVerifyingInput {
|
38410
|
+
|
38411
|
+
/** MessageVerifyingInput message */
|
38412
|
+
message?: (string|null);
|
38413
|
+
|
38414
|
+
/** MessageVerifyingInput publicKey */
|
38415
|
+
publicKey?: (Uint8Array|null);
|
38416
|
+
|
38417
|
+
/** MessageVerifyingInput signature */
|
38418
|
+
signature?: (string|null);
|
38419
|
+
}
|
38420
|
+
|
38421
|
+
/** Represents a MessageVerifyingInput. */
|
38422
|
+
class MessageVerifyingInput implements IMessageVerifyingInput {
|
38423
|
+
|
38424
|
+
/**
|
38425
|
+
* Constructs a new MessageVerifyingInput.
|
38426
|
+
* @param [properties] Properties to set
|
38427
|
+
*/
|
38428
|
+
constructor(properties?: TW.Solana.Proto.IMessageVerifyingInput);
|
38429
|
+
|
38430
|
+
/** MessageVerifyingInput message. */
|
38431
|
+
public message: string;
|
38432
|
+
|
38433
|
+
/** MessageVerifyingInput publicKey. */
|
38434
|
+
public publicKey: Uint8Array;
|
38435
|
+
|
38436
|
+
/** MessageVerifyingInput signature. */
|
38437
|
+
public signature: string;
|
38438
|
+
|
38439
|
+
/**
|
38440
|
+
* Creates a new MessageVerifyingInput instance using the specified properties.
|
38441
|
+
* @param [properties] Properties to set
|
38442
|
+
* @returns MessageVerifyingInput instance
|
38443
|
+
*/
|
38444
|
+
public static create(properties?: TW.Solana.Proto.IMessageVerifyingInput): TW.Solana.Proto.MessageVerifyingInput;
|
38445
|
+
|
38446
|
+
/**
|
38447
|
+
* Encodes the specified MessageVerifyingInput message. Does not implicitly {@link TW.Solana.Proto.MessageVerifyingInput.verify|verify} messages.
|
38448
|
+
* @param message MessageVerifyingInput message or plain object to encode
|
38449
|
+
* @param [writer] Writer to encode to
|
38450
|
+
* @returns Writer
|
38451
|
+
*/
|
38452
|
+
public static encode(message: TW.Solana.Proto.IMessageVerifyingInput, writer?: $protobuf.Writer): $protobuf.Writer;
|
38453
|
+
|
38454
|
+
/**
|
38455
|
+
* Decodes a MessageVerifyingInput message from the specified reader or buffer.
|
38456
|
+
* @param reader Reader or buffer to decode from
|
38457
|
+
* @param [length] Message length if known beforehand
|
38458
|
+
* @returns MessageVerifyingInput
|
38459
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
38460
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
38461
|
+
*/
|
38462
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Solana.Proto.MessageVerifyingInput;
|
38463
|
+
|
38464
|
+
/**
|
38465
|
+
* Verifies a MessageVerifyingInput message.
|
38466
|
+
* @param message Plain object to verify
|
38467
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
38468
|
+
*/
|
38469
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
38470
|
+
|
38471
|
+
/**
|
38472
|
+
* Creates a MessageVerifyingInput message from a plain object. Also converts values to their respective internal types.
|
38473
|
+
* @param object Plain object
|
38474
|
+
* @returns MessageVerifyingInput
|
38475
|
+
*/
|
38476
|
+
public static fromObject(object: { [k: string]: any }): TW.Solana.Proto.MessageVerifyingInput;
|
38477
|
+
|
38478
|
+
/**
|
38479
|
+
* Creates a plain object from a MessageVerifyingInput message. Also converts values to other types if specified.
|
38480
|
+
* @param message MessageVerifyingInput
|
38481
|
+
* @param [options] Conversion options
|
38482
|
+
* @returns Plain object
|
38483
|
+
*/
|
38484
|
+
public static toObject(message: TW.Solana.Proto.MessageVerifyingInput, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
38485
|
+
|
38486
|
+
/**
|
38487
|
+
* Converts this MessageVerifyingInput to JSON.
|
38488
|
+
* @returns JSON object
|
38489
|
+
*/
|
38490
|
+
public toJSON(): { [k: string]: any };
|
38491
|
+
}
|
38219
38492
|
}
|
38220
38493
|
}
|
38221
38494
|
|