@imtbl/sdk 1.26.7 → 1.26.9
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.d.ts +1 -1
- package/dist/checkout.js +16 -11
- package/dist/config.js +1 -1
- package/dist/index.browser.js +43 -26
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +505 -2904
- package/dist/index.d.ts +41 -24
- package/dist/index.js +498 -2897
- package/dist/orderbook.js +1 -1
- package/dist/passport.js +5 -2402
- package/dist/x.d.ts +40 -22
- package/dist/x.js +5 -2410
- package/package.json +3 -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$1 {
|
|
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$1;
|
|
20914
20914
|
}
|
|
20915
20915
|
|
|
20916
20916
|
/**
|
|
@@ -21612,24 +21612,6 @@ 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
|
-
|
|
21633
21615
|
interface JsonFragmentType {
|
|
21634
21616
|
readonly name?: string;
|
|
21635
21617
|
readonly indexed?: boolean;
|
|
@@ -22274,6 +22256,42 @@ declare class Web3Provider extends JsonRpcProvider {
|
|
|
22274
22256
|
send(method: string, params: Array<any>): Promise<any>;
|
|
22275
22257
|
}
|
|
22276
22258
|
|
|
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
|
+
|
|
22277
22295
|
interface TypedEvent<TArgsArray extends Array<any> = any, TArgsObject = any> extends Event$1 {
|
|
22278
22296
|
args: TArgsArray & TArgsObject;
|
|
22279
22297
|
}
|
|
@@ -24241,7 +24259,7 @@ declare class ProviderConfiguration {
|
|
|
24241
24259
|
declare class GenericIMXProvider implements IMXProvider {
|
|
24242
24260
|
private readonly config;
|
|
24243
24261
|
private readonly signers;
|
|
24244
|
-
constructor(config: ProviderConfiguration, ethSigner: Signer, starkSigner: StarkSigner);
|
|
24262
|
+
constructor(config: ProviderConfiguration, ethSigner: Signer, starkSigner: StarkSigner$1);
|
|
24245
24263
|
getAddress(): Promise<string>;
|
|
24246
24264
|
isRegisteredOffchain(): Promise<boolean>;
|
|
24247
24265
|
registerOffchain(): Promise<RegisterUserResponse>;
|
|
@@ -26058,7 +26076,7 @@ interface SmartCheckoutParams {
|
|
|
26058
26076
|
/** The item requirements for the transaction. */
|
|
26059
26077
|
itemRequirements: (NativeItemRequirement | ERC20ItemRequirement | ERC721ItemRequirement)[];
|
|
26060
26078
|
/** The transaction or gas amount. */
|
|
26061
|
-
transactionOrGasAmount
|
|
26079
|
+
transactionOrGasAmount?: FulfillmentTransaction | GasAmount;
|
|
26062
26080
|
}
|
|
26063
26081
|
/**
|
|
26064
26082
|
* Represents a native item requirement for a transaction.
|
|
@@ -28908,7 +28926,6 @@ type x_d_RejectPrimarySaleOKBody = RejectPrimarySaleOKBody;
|
|
|
28908
28926
|
type x_d_RejectPrimarySaleUnauthorizedBody = RejectPrimarySaleUnauthorizedBody;
|
|
28909
28927
|
type x_d_SignableToken = SignableToken;
|
|
28910
28928
|
type x_d_StarkExContractVersion = StarkExContractVersion;
|
|
28911
|
-
type x_d_StarkSigner = StarkSigner;
|
|
28912
28929
|
type x_d_TokenAmount = TokenAmount;
|
|
28913
28930
|
type x_d_TokensApi = TokensApi;
|
|
28914
28931
|
declare const x_d_TokensApi: typeof TokensApi;
|
|
@@ -29045,7 +29062,7 @@ declare namespace x_d {
|
|
|
29045
29062
|
x_d_RejectPrimarySaleUnauthorizedBody as RejectPrimarySaleUnauthorizedBody,
|
|
29046
29063
|
x_d_SignableToken as SignableToken,
|
|
29047
29064
|
x_d_StarkExContractVersion as StarkExContractVersion,
|
|
29048
|
-
|
|
29065
|
+
StarkSigner$1 as StarkSigner,
|
|
29049
29066
|
x_d_TokenAmount as TokenAmount,
|
|
29050
29067
|
x_d_TokensApi as TokensApi,
|
|
29051
29068
|
x_d_TokensApiGetTokenRequest as TokensApiGetTokenRequest,
|