@imtbl/sdk 1.26.8 → 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/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 {
12871
+ interface StarkSigner$1 {
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;
12896
+ starkSigner: StarkSigner$1;
12897
12897
  }
12898
12898
 
12899
12899
  /**
@@ -13595,24 +13595,6 @@ 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
-
13616
13598
  interface JsonFragmentType {
13617
13599
  readonly name?: string;
13618
13600
  readonly indexed?: boolean;
@@ -13986,6 +13968,42 @@ declare class ContractFactory {
13986
13968
  static getContract(address: string, contractInterface: ContractInterface, signer?: Signer): Contract;
13987
13969
  }
13988
13970
 
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
+
13989
14007
  interface TypedEvent<TArgsArray extends Array<any> = any, TArgsObject = any> extends Event {
13990
14008
  args: TArgsArray & TArgsObject;
13991
14009
  }
@@ -15953,7 +15971,7 @@ declare class ProviderConfiguration {
15953
15971
  declare class GenericIMXProvider implements IMXProvider {
15954
15972
  private readonly config;
15955
15973
  private readonly signers;
15956
- constructor(config: ProviderConfiguration, ethSigner: Signer, starkSigner: StarkSigner);
15974
+ constructor(config: ProviderConfiguration, ethSigner: Signer, starkSigner: StarkSigner$1);
15957
15975
  getAddress(): Promise<string>;
15958
15976
  isRegisteredOffchain(): Promise<boolean>;
15959
15977
  registerOffchain(): Promise<RegisterUserResponse>;
@@ -15976,4 +15994,4 @@ declare class MetaMaskIMXProvider extends GenericIMXProvider {
15976
15994
  static signMessage(message: string): Promise<string>;
15977
15995
  }
15978
15996
 
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 };
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 };