@imtbl/sdk 1.28.0 → 1.28.1
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/blockchain_data.js +2 -2
- package/dist/browser/checkout/sdk.js +4 -4
- package/dist/checkout.js +4 -4
- package/dist/config.js +1 -1
- package/dist/index.browser.js +26 -43
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +2423 -16
- package/dist/index.d.ts +23 -40
- package/dist/index.js +2415 -9
- package/dist/orderbook.js +1 -1
- package/dist/passport.js +2404 -5
- package/dist/x.d.ts +22 -40
- package/dist/x.js +2412 -5
- package/package.json +1 -2
package/dist/index.d.ts
CHANGED
|
@@ -20885,7 +20885,7 @@ declare abstract class Signer {
|
|
|
20885
20885
|
/**
|
|
20886
20886
|
* An abstraction of a Stark account, which can be used to sign messages and transactions on StarkEx to execute state changing operations
|
|
20887
20887
|
*/
|
|
20888
|
-
interface StarkSigner
|
|
20888
|
+
interface StarkSigner {
|
|
20889
20889
|
/**
|
|
20890
20890
|
* Signs the prefixed-message
|
|
20891
20891
|
* @params message - this must be a UTF8-message
|
|
@@ -20910,7 +20910,7 @@ interface WalletConnection {
|
|
|
20910
20910
|
/**
|
|
20911
20911
|
* The L2 signer
|
|
20912
20912
|
*/
|
|
20913
|
-
starkSigner: StarkSigner
|
|
20913
|
+
starkSigner: StarkSigner;
|
|
20914
20914
|
}
|
|
20915
20915
|
|
|
20916
20916
|
/**
|
|
@@ -21612,6 +21612,24 @@ declare class IMXClient {
|
|
|
21612
21612
|
declare class ImmutableX extends IMXClient {
|
|
21613
21613
|
}
|
|
21614
21614
|
|
|
21615
|
+
/**
|
|
21616
|
+
* Generates a new Stark private key
|
|
21617
|
+
* @returns the private key as a hex string
|
|
21618
|
+
*/
|
|
21619
|
+
declare function generateStarkPrivateKey(): string;
|
|
21620
|
+
/**
|
|
21621
|
+
* Generates a deterministic Stark private key from the provided signer.
|
|
21622
|
+
* @returns the private key as a hex string
|
|
21623
|
+
*/
|
|
21624
|
+
declare function generateLegacyStarkPrivateKey(signer: Signer): Promise<string>;
|
|
21625
|
+
|
|
21626
|
+
/**
|
|
21627
|
+
* Creates a new Stark Signer
|
|
21628
|
+
* @params starkPrivateKey - the private key as a hex string
|
|
21629
|
+
* @returns a StarkSigner
|
|
21630
|
+
*/
|
|
21631
|
+
declare function createStarkSigner(starkPrivateKey: string): StarkSigner;
|
|
21632
|
+
|
|
21615
21633
|
interface JsonFragmentType {
|
|
21616
21634
|
readonly name?: string;
|
|
21617
21635
|
readonly indexed?: boolean;
|
|
@@ -22256,42 +22274,6 @@ declare class Web3Provider extends JsonRpcProvider {
|
|
|
22256
22274
|
send(method: string, params: Array<any>): Promise<any>;
|
|
22257
22275
|
}
|
|
22258
22276
|
|
|
22259
|
-
/**
|
|
22260
|
-
* Generates a new Stark private key
|
|
22261
|
-
* @returns the private key as a hex string
|
|
22262
|
-
*/
|
|
22263
|
-
declare function generateStarkPrivateKey(): string;
|
|
22264
|
-
/**
|
|
22265
|
-
* Generates a deterministic Stark private key from the provided signer.
|
|
22266
|
-
* @returns the private key as a hex string
|
|
22267
|
-
*/
|
|
22268
|
-
declare function generateLegacyStarkPrivateKey(signer: Signer): Promise<string>;
|
|
22269
|
-
|
|
22270
|
-
/**
|
|
22271
|
-
* An abstraction of a Stark account, which can be used to sign messages and transactions on StarkEx to execute state changing operations
|
|
22272
|
-
*/
|
|
22273
|
-
interface StarkSigner {
|
|
22274
|
-
/**
|
|
22275
|
-
* Signs the prefixed-message
|
|
22276
|
-
* @params message - this must be a UTF8-message
|
|
22277
|
-
* @example "0x1234"
|
|
22278
|
-
* @returns the signed prefixed-message
|
|
22279
|
-
*/
|
|
22280
|
-
signMessage(message: string): Promise<string>;
|
|
22281
|
-
/**
|
|
22282
|
-
* Get the Signer address
|
|
22283
|
-
* @returns the Signer's checksum address
|
|
22284
|
-
*/
|
|
22285
|
-
getAddress(): string | Promise<string>;
|
|
22286
|
-
}
|
|
22287
|
-
|
|
22288
|
-
/**
|
|
22289
|
-
* Creates a new Stark Signer
|
|
22290
|
-
* @params starkPrivateKey - the private key as a hex string
|
|
22291
|
-
* @returns a StarkSigner
|
|
22292
|
-
*/
|
|
22293
|
-
declare function createStarkSigner(starkPrivateKey: string): StarkSigner;
|
|
22294
|
-
|
|
22295
22277
|
interface TypedEvent<TArgsArray extends Array<any> = any, TArgsObject = any> extends Event$1 {
|
|
22296
22278
|
args: TArgsArray & TArgsObject;
|
|
22297
22279
|
}
|
|
@@ -24259,7 +24241,7 @@ declare class ProviderConfiguration {
|
|
|
24259
24241
|
declare class GenericIMXProvider implements IMXProvider {
|
|
24260
24242
|
private readonly config;
|
|
24261
24243
|
private readonly signers;
|
|
24262
|
-
constructor(config: ProviderConfiguration, ethSigner: Signer, starkSigner: StarkSigner
|
|
24244
|
+
constructor(config: ProviderConfiguration, ethSigner: Signer, starkSigner: StarkSigner);
|
|
24263
24245
|
getAddress(): Promise<string>;
|
|
24264
24246
|
isRegisteredOffchain(): Promise<boolean>;
|
|
24265
24247
|
registerOffchain(): Promise<RegisterUserResponse>;
|
|
@@ -28926,6 +28908,7 @@ type x_d_RejectPrimarySaleOKBody = RejectPrimarySaleOKBody;
|
|
|
28926
28908
|
type x_d_RejectPrimarySaleUnauthorizedBody = RejectPrimarySaleUnauthorizedBody;
|
|
28927
28909
|
type x_d_SignableToken = SignableToken;
|
|
28928
28910
|
type x_d_StarkExContractVersion = StarkExContractVersion;
|
|
28911
|
+
type x_d_StarkSigner = StarkSigner;
|
|
28929
28912
|
type x_d_TokenAmount = TokenAmount;
|
|
28930
28913
|
type x_d_TokensApi = TokensApi;
|
|
28931
28914
|
declare const x_d_TokensApi: typeof TokensApi;
|
|
@@ -29062,7 +29045,7 @@ declare namespace x_d {
|
|
|
29062
29045
|
x_d_RejectPrimarySaleUnauthorizedBody as RejectPrimarySaleUnauthorizedBody,
|
|
29063
29046
|
x_d_SignableToken as SignableToken,
|
|
29064
29047
|
x_d_StarkExContractVersion as StarkExContractVersion,
|
|
29065
|
-
|
|
29048
|
+
x_d_StarkSigner as StarkSigner,
|
|
29066
29049
|
x_d_TokenAmount as TokenAmount,
|
|
29067
29050
|
x_d_TokensApi as TokensApi,
|
|
29068
29051
|
x_d_TokensApiGetTokenRequest as TokensApiGetTokenRequest,
|