@startbahn/startrail-sdk-js 1.23.3 → 1.23.4
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/startrail-sdk.js +88942 -133738
- package/package.json +1 -1
- package/types/startrail-sdk-js.d.ts +10 -7
package/package.json
CHANGED
|
@@ -32,7 +32,7 @@ declare module '@startbahn/startrail-sdk-js' {
|
|
|
32
32
|
* Sign message with the Ethereum private key associated to your wallet
|
|
33
33
|
* @throws Will throw an error
|
|
34
34
|
*/
|
|
35
|
-
signMessage(message: string, isPopup?: boolean): Promise<Type.
|
|
35
|
+
signMessage(message: string, isPopup?: boolean): Promise<Type.MessageSignature | false>;
|
|
36
36
|
/**
|
|
37
37
|
* Create SRR
|
|
38
38
|
* Send tx to Startrail Ethereum smart-contract with meta-tx in which signature is generated by your private key
|
|
@@ -236,11 +236,14 @@ declare module '@startbahn/startrail-sdk-js/types' {
|
|
|
236
236
|
lang?: string;
|
|
237
237
|
loginProvider?: LoginProvider;
|
|
238
238
|
}
|
|
239
|
-
export interface
|
|
239
|
+
export interface MessageSignature {
|
|
240
240
|
signature: string;
|
|
241
|
-
|
|
242
|
-
message: string;
|
|
241
|
+
prefix: string | undefined;
|
|
243
242
|
}
|
|
243
|
+
export type MessageToBeSigned = [string, string] | [string, string, {
|
|
244
|
+
customPrefix: string;
|
|
245
|
+
customMessage: string;
|
|
246
|
+
}];
|
|
244
247
|
export interface startrailLUWAddress {
|
|
245
248
|
startrailLUWAddress: string;
|
|
246
249
|
}
|
|
@@ -591,7 +594,7 @@ declare module '@startbahn/startrail-sdk-js/service' {
|
|
|
591
594
|
* Sign message with the Ethereum private key associated to your wallet
|
|
592
595
|
* @throws Will throw an error
|
|
593
596
|
*/
|
|
594
|
-
signMessage(message: string,
|
|
597
|
+
signMessage(message: string, disableCustomPrefix?: boolean): Promise<Type.MessageSignature | false>;
|
|
595
598
|
/**
|
|
596
599
|
* Sign typed data according to EIP-712 standard
|
|
597
600
|
* Promise<Type.EIP712TypedData>
|
|
@@ -718,7 +721,7 @@ declare module '@startbahn/startrail-sdk-js/errorClass' {
|
|
|
718
721
|
|
|
719
722
|
declare module '@startbahn/startrail-sdk-js/torus' {
|
|
720
723
|
import TorusEmbed from '@toruslabs/torus-embed';
|
|
721
|
-
import { EIP712TypedData, OverwriteStartrailSDKConfig, UserInfo } from '@startbahn/startrail-sdk-js/types';
|
|
724
|
+
import { EIP712TypedData, MessageToBeSigned, OverwriteStartrailSDKConfig, UserInfo } from '@startbahn/startrail-sdk-js/types';
|
|
722
725
|
import ConfigContext from '@startbahn/startrail-sdk-js/config';
|
|
723
726
|
class Torus {
|
|
724
727
|
EOA: string;
|
|
@@ -758,7 +761,7 @@ declare module '@startbahn/startrail-sdk-js/torus' {
|
|
|
758
761
|
* @param hashedMessage
|
|
759
762
|
* @todo Fix d.ts in @toruslabs/torus-embed
|
|
760
763
|
*/
|
|
761
|
-
signMessage(
|
|
764
|
+
signMessage(params: MessageToBeSigned): Promise<string>;
|
|
762
765
|
signTypedDataMessage(typedData: EIP712TypedData): Promise<string>;
|
|
763
766
|
/**
|
|
764
767
|
* logout() & clearInit()
|