@imtbl/x-client 2.12.3-alpha.0 → 2.12.3
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/browser/index.js +2 -2
- package/dist/node/index.cjs +2 -2
- package/dist/node/index.js +2 -2
- package/dist/types/types/signers.d.ts +0 -4
- package/dist/types/utils/crypto/crypto.d.ts +5 -4
- package/dist/types/utils/stark/starkCurve.d.ts +2 -2
- package/dist/types/workflows/minting.d.ts +3 -2
- package/package.json +3 -3
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import { Signer as EthSigner } from 'ethers';
|
|
2
2
|
export type { EthSigner };
|
|
3
|
-
export type MessageSigner = {
|
|
4
|
-
getAddress(): Promise<string>;
|
|
5
|
-
signMessage(message: string | Uint8Array): Promise<string>;
|
|
6
|
-
};
|
|
7
3
|
/**
|
|
8
4
|
* An abstraction of a Stark account, which can be used to sign messages and transactions on StarkEx to execute state changing operations
|
|
9
5
|
*/
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { Signer } from 'ethers';
|
|
2
|
+
import { StarkSigner } from '../../types';
|
|
3
|
+
export declare function signRaw(payload: string, signer: Signer): Promise<string>;
|
|
3
4
|
type IMXAuthorisationHeaders = {
|
|
4
5
|
timestamp: string;
|
|
5
6
|
signature: string;
|
|
6
7
|
};
|
|
7
|
-
export declare function generateIMXAuthorisationHeaders(ethSigner:
|
|
8
|
-
export declare function signMessage(message: string, signer:
|
|
8
|
+
export declare function generateIMXAuthorisationHeaders(ethSigner: Signer): Promise<IMXAuthorisationHeaders>;
|
|
9
|
+
export declare function signMessage(message: string, signer: Signer): Promise<{
|
|
9
10
|
message: string;
|
|
10
11
|
ethAddress: string;
|
|
11
12
|
ethSignature: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import BN from 'bn.js';
|
|
2
|
-
import {
|
|
2
|
+
import { Signer } from 'ethers';
|
|
3
3
|
export declare const starkEcOrder: BN;
|
|
4
4
|
export declare const starkEc: any;
|
|
5
5
|
export declare function grindKeyV201(keySeed: BN): string;
|
|
@@ -15,4 +15,4 @@ export declare function generateStarkPrivateKey(): string;
|
|
|
15
15
|
* Generates a deterministic Stark private key from the provided signer.
|
|
16
16
|
* @returns the private key as a hex string
|
|
17
17
|
*/
|
|
18
|
-
export declare function generateLegacyStarkPrivateKey(signer:
|
|
18
|
+
export declare function generateLegacyStarkPrivateKey(signer: Signer): Promise<string>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Signer } from 'ethers';
|
|
1
2
|
import { MintsApi, MintTokensResponse } from '../types/api';
|
|
2
|
-
import {
|
|
3
|
-
export declare function mintingWorkflow(signer:
|
|
3
|
+
import { UnsignedMintRequest } from '../types';
|
|
4
|
+
export declare function mintingWorkflow(signer: Signer, request: UnsignedMintRequest, mintsApi: MintsApi): Promise<MintTokensResponse>;
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@imtbl/x-client",
|
|
3
3
|
"description": "Immutable X Client for Immutable SDK",
|
|
4
|
-
"version": "2.12.3
|
|
4
|
+
"version": "2.12.3",
|
|
5
5
|
"author": "Immutable",
|
|
6
6
|
"bugs": "https://github.com/immutable/ts-immutable-sdk/issues",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@ethereumjs/wallet": "^2.0.4",
|
|
9
|
-
"@imtbl/config": "2.12.3
|
|
10
|
-
"@imtbl/generated-clients": "2.12.3
|
|
9
|
+
"@imtbl/config": "2.12.3",
|
|
10
|
+
"@imtbl/generated-clients": "2.12.3",
|
|
11
11
|
"axios": "^1.6.5",
|
|
12
12
|
"bn.js": "^5.2.1",
|
|
13
13
|
"elliptic": "^6.6.1",
|