@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/x.d.ts CHANGED
@@ -12868,7 +12868,7 @@ declare abstract class Signer {
12868
12868
  /**
12869
12869
  * An abstraction of a Stark account, which can be used to sign messages and transactions on StarkEx to execute state changing operations
12870
12870
  */
12871
- interface StarkSigner$1 {
12871
+ interface StarkSigner {
12872
12872
  /**
12873
12873
  * Signs the prefixed-message
12874
12874
  * @params message - this must be a UTF8-message
@@ -12893,7 +12893,7 @@ interface WalletConnection {
12893
12893
  /**
12894
12894
  * The L2 signer
12895
12895
  */
12896
- starkSigner: StarkSigner$1;
12896
+ starkSigner: StarkSigner;
12897
12897
  }
12898
12898
 
12899
12899
  /**
@@ -13595,6 +13595,24 @@ declare class IMXClient {
13595
13595
  declare class ImmutableX extends IMXClient {
13596
13596
  }
13597
13597
 
13598
+ /**
13599
+ * Generates a new Stark private key
13600
+ * @returns the private key as a hex string
13601
+ */
13602
+ declare function generateStarkPrivateKey(): string;
13603
+ /**
13604
+ * Generates a deterministic Stark private key from the provided signer.
13605
+ * @returns the private key as a hex string
13606
+ */
13607
+ declare function generateLegacyStarkPrivateKey(signer: Signer): Promise<string>;
13608
+
13609
+ /**
13610
+ * Creates a new Stark Signer
13611
+ * @params starkPrivateKey - the private key as a hex string
13612
+ * @returns a StarkSigner
13613
+ */
13614
+ declare function createStarkSigner(starkPrivateKey: string): StarkSigner;
13615
+
13598
13616
  interface JsonFragmentType {
13599
13617
  readonly name?: string;
13600
13618
  readonly indexed?: boolean;
@@ -13968,42 +13986,6 @@ declare class ContractFactory {
13968
13986
  static getContract(address: string, contractInterface: ContractInterface, signer?: Signer): Contract;
13969
13987
  }
13970
13988
 
13971
- /**
13972
- * Generates a new Stark private key
13973
- * @returns the private key as a hex string
13974
- */
13975
- declare function generateStarkPrivateKey(): string;
13976
- /**
13977
- * Generates a deterministic Stark private key from the provided signer.
13978
- * @returns the private key as a hex string
13979
- */
13980
- declare function generateLegacyStarkPrivateKey(signer: Signer): Promise<string>;
13981
-
13982
- /**
13983
- * An abstraction of a Stark account, which can be used to sign messages and transactions on StarkEx to execute state changing operations
13984
- */
13985
- interface StarkSigner {
13986
- /**
13987
- * Signs the prefixed-message
13988
- * @params message - this must be a UTF8-message
13989
- * @example "0x1234"
13990
- * @returns the signed prefixed-message
13991
- */
13992
- signMessage(message: string): Promise<string>;
13993
- /**
13994
- * Get the Signer address
13995
- * @returns the Signer's checksum address
13996
- */
13997
- getAddress(): string | Promise<string>;
13998
- }
13999
-
14000
- /**
14001
- * Creates a new Stark Signer
14002
- * @params starkPrivateKey - the private key as a hex string
14003
- * @returns a StarkSigner
14004
- */
14005
- declare function createStarkSigner(starkPrivateKey: string): StarkSigner;
14006
-
14007
13989
  interface TypedEvent<TArgsArray extends Array<any> = any, TArgsObject = any> extends Event {
14008
13990
  args: TArgsArray & TArgsObject;
14009
13991
  }
@@ -15971,7 +15953,7 @@ declare class ProviderConfiguration {
15971
15953
  declare class GenericIMXProvider implements IMXProvider {
15972
15954
  private readonly config;
15973
15955
  private readonly signers;
15974
- constructor(config: ProviderConfiguration, ethSigner: Signer, starkSigner: StarkSigner$1);
15956
+ constructor(config: ProviderConfiguration, ethSigner: Signer, starkSigner: StarkSigner);
15975
15957
  getAddress(): Promise<string>;
15976
15958
  isRegisteredOffchain(): Promise<boolean>;
15977
15959
  registerOffchain(): Promise<RegisterUserResponse>;
@@ -15994,4 +15976,4 @@ declare class MetaMaskIMXProvider extends GenericIMXProvider {
15994
15976
  static signMessage(message: string): Promise<string>;
15995
15977
  }
15996
15978
 
15997
- export { APIError, AcceptPrimarySaleBadRequestBody, AcceptPrimarySaleForbiddenBody, AcceptPrimarySaleNotFoundBody, AcceptPrimarySaleOKBody, AcceptPrimarySaleUnauthorizedBody, AddMetadataSchemaToCollectionRequest, AnyToken, ApiConfiguration, AssetsApi, AssetsApiGetAssetRequest, AssetsApiListAssetsRequest, BalancesApi, BalancesApiGetBalanceRequest, BalancesApiListBalancesRequest, CancelOrderResponse, CollectionsApi, CollectionsApiGetCollectionRequest, CollectionsApiListCollectionFiltersRequest, CollectionsApiListCollectionsRequest, ConfigOptions, exportContracts_d as Contracts, CreateCollectionRequest, CreateMetadataRefreshRequest, CreateOrderResponse, CreatePrimarySaleBadRequestBody, CreatePrimarySaleCreatedBody, CreatePrimarySaleForbiddenBody, CreatePrimarySaleNotFoundBody, CreatePrimarySaleUnauthorizedBody, CreateTradeResponse, CreateTransferResponseV1, DepositsApi, DepositsApiGetDepositRequest, DepositsApiListDepositsRequest, ERC20Amount, ERC20Token, ERC721Token, ETHAmount, ETHToken, EncodingApi, Environment, EthConfiguration, Signer as EthSigner, ExchangeTokenAmount, ExchangesApi, ExchangesApiCreateExchangeRequest, ExchangesApiGetExchangeRequest, ExchangesApiGetExchangesRequest, GenericIMXProvider, GetSignableCancelOrderRequest, GetSignableOrderRequest, GetSignableTradeRequest, IMXClient, IMXError, IMXProvider, ImmutableConfiguration, ImmutableX, ImmutableXConfiguration, ImxModuleConfiguration as ImxClientModuleConfiguration, WalletConnection as ImxClientWalletConnection, ImxConfiguration, ImxModuleConfiguration, ImxOverrides, MetaMaskIMXProvider, MetadataApi, MetadataApiGetMetadataSchemaRequest, MetadataRefreshesApi, MetadataSchemaRequest, MetadataSchemaRequestTypeEnum, MintFee, MintRequest, MintTokenDataV2, MintTokensResponse, MintUser, MintsApi, MintsApiGetMintRequest, MintsApiListMintsRequest, MintsApiMintTokensRequest, NftCheckoutPrimaryApi, NftCheckoutPrimaryApiCreateNftPrimaryRequest, NftCheckoutPrimaryApiGetCurrenciesNFTCheckoutPrimaryRequest, NftCheckoutPrimaryApiGetNftPrimaryTransactionRequest, NftCheckoutPrimaryApiGetNftPrimaryTransactionsRequest, NftTransferDetails, OrdersApi, OrdersApiCreateOrderV3Request, OrdersApiGetOrderV3Request, OrdersApiListOrdersV3Request, PrimarySalesApi, PrimarySalesApiCreatePrimarySaleRequest, PrimarySalesApiSignableCreatePrimarySaleRequest, ProjectsApi, ProviderConfiguration, RejectPrimarySaleBadRequestBody, RejectPrimarySaleForbiddenBody, RejectPrimarySaleNotFoundBody, RejectPrimarySaleOKBody, RejectPrimarySaleUnauthorizedBody, SignableToken, StarkExContractVersion, StarkSigner$1 as StarkSigner, TokenAmount, TokensApi, TokensApiGetTokenRequest, TokensApiListTokensRequest, TradesApi, TradesApiGetTradeV3Request, TradesApiListTradesV3Request, TransfersApi, TransfersApiGetTransferRequest, TransfersApiListTransfersRequest, UnsignedExchangeTransferRequest, UnsignedMintRequest, UnsignedOrderRequest, UnsignedTransferRequest, UpdateCollectionRequest, UsersApi, WalletConnection, WithdrawalsApi, WithdrawalsApiGetWithdrawalRequest, WithdrawalsApiListWithdrawalsRequest, createConfig, createImmutableXConfiguration, createStarkSigner, generateLegacyStarkPrivateKey, generateStarkPrivateKey, imxClientConfig, createStarkSigner as imxClientCreateStarkSigner, generateLegacyStarkPrivateKey as imxClientGenerateLegacyStarkPrivateKey, production, sandbox };
15979
+ export { APIError, AcceptPrimarySaleBadRequestBody, AcceptPrimarySaleForbiddenBody, AcceptPrimarySaleNotFoundBody, AcceptPrimarySaleOKBody, AcceptPrimarySaleUnauthorizedBody, AddMetadataSchemaToCollectionRequest, AnyToken, ApiConfiguration, AssetsApi, AssetsApiGetAssetRequest, AssetsApiListAssetsRequest, BalancesApi, BalancesApiGetBalanceRequest, BalancesApiListBalancesRequest, CancelOrderResponse, CollectionsApi, CollectionsApiGetCollectionRequest, CollectionsApiListCollectionFiltersRequest, CollectionsApiListCollectionsRequest, ConfigOptions, exportContracts_d as Contracts, CreateCollectionRequest, CreateMetadataRefreshRequest, CreateOrderResponse, CreatePrimarySaleBadRequestBody, CreatePrimarySaleCreatedBody, CreatePrimarySaleForbiddenBody, CreatePrimarySaleNotFoundBody, CreatePrimarySaleUnauthorizedBody, CreateTradeResponse, CreateTransferResponseV1, DepositsApi, DepositsApiGetDepositRequest, DepositsApiListDepositsRequest, ERC20Amount, ERC20Token, ERC721Token, ETHAmount, ETHToken, EncodingApi, Environment, EthConfiguration, Signer as EthSigner, ExchangeTokenAmount, ExchangesApi, ExchangesApiCreateExchangeRequest, ExchangesApiGetExchangeRequest, ExchangesApiGetExchangesRequest, GenericIMXProvider, GetSignableCancelOrderRequest, GetSignableOrderRequest, GetSignableTradeRequest, IMXClient, IMXError, IMXProvider, ImmutableConfiguration, ImmutableX, ImmutableXConfiguration, ImxModuleConfiguration as ImxClientModuleConfiguration, WalletConnection as ImxClientWalletConnection, ImxConfiguration, ImxModuleConfiguration, ImxOverrides, MetaMaskIMXProvider, MetadataApi, MetadataApiGetMetadataSchemaRequest, MetadataRefreshesApi, MetadataSchemaRequest, MetadataSchemaRequestTypeEnum, MintFee, MintRequest, MintTokenDataV2, MintTokensResponse, MintUser, MintsApi, MintsApiGetMintRequest, MintsApiListMintsRequest, MintsApiMintTokensRequest, NftCheckoutPrimaryApi, NftCheckoutPrimaryApiCreateNftPrimaryRequest, NftCheckoutPrimaryApiGetCurrenciesNFTCheckoutPrimaryRequest, NftCheckoutPrimaryApiGetNftPrimaryTransactionRequest, NftCheckoutPrimaryApiGetNftPrimaryTransactionsRequest, NftTransferDetails, OrdersApi, OrdersApiCreateOrderV3Request, OrdersApiGetOrderV3Request, OrdersApiListOrdersV3Request, PrimarySalesApi, PrimarySalesApiCreatePrimarySaleRequest, PrimarySalesApiSignableCreatePrimarySaleRequest, ProjectsApi, ProviderConfiguration, RejectPrimarySaleBadRequestBody, RejectPrimarySaleForbiddenBody, RejectPrimarySaleNotFoundBody, RejectPrimarySaleOKBody, RejectPrimarySaleUnauthorizedBody, SignableToken, StarkExContractVersion, StarkSigner, TokenAmount, TokensApi, TokensApiGetTokenRequest, TokensApiListTokensRequest, TradesApi, TradesApiGetTradeV3Request, TradesApiListTradesV3Request, TransfersApi, TransfersApiGetTransferRequest, TransfersApiListTransfersRequest, UnsignedExchangeTransferRequest, UnsignedMintRequest, UnsignedOrderRequest, UnsignedTransferRequest, UpdateCollectionRequest, UsersApi, WalletConnection, WithdrawalsApi, WithdrawalsApiGetWithdrawalRequest, WithdrawalsApiListWithdrawalsRequest, createConfig, createImmutableXConfiguration, createStarkSigner, generateLegacyStarkPrivateKey, generateStarkPrivateKey, imxClientConfig, createStarkSigner as imxClientCreateStarkSigner, generateLegacyStarkPrivateKey as imxClientGenerateLegacyStarkPrivateKey, production, sandbox };