@imtbl/sdk 0.15.0-alpha → 0.15.1-alpha

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.
@@ -16975,7 +16975,8 @@ const $d85ad1457a3f1a83$export$6f24f3cef7d501c4 = new Map([
16975
16975
  nativeCurrency: {
16976
16976
  name: "IMX",
16977
16977
  symbol: "IMX",
16978
- decimals: 18
16978
+ decimals: 18,
16979
+ address: $d85ad1457a3f1a83$export$b80040cb173ba6e9
16979
16980
  }
16980
16981
  }
16981
16982
  ]
@@ -17010,7 +17011,8 @@ const $d85ad1457a3f1a83$export$3e81fc0987227f10 = new Map([
17010
17011
  nativeCurrency: {
17011
17012
  name: "IMX",
17012
17013
  symbol: "IMX",
17013
- decimals: 18
17014
+ decimals: 18,
17015
+ address: $d85ad1457a3f1a83$export$b80040cb173ba6e9
17014
17016
  }
17015
17017
  }
17016
17018
  ]
@@ -17045,7 +17047,8 @@ const $d85ad1457a3f1a83$export$3a9ebede6a150274 = new Map([
17045
17047
  nativeCurrency: {
17046
17048
  name: "IMX",
17047
17049
  symbol: "IMX",
17048
- decimals: 18
17050
+ decimals: 18,
17051
+ address: $d85ad1457a3f1a83$export$b80040cb173ba6e9
17049
17052
  }
17050
17053
  }
17051
17054
  ]
@@ -4,7 +4,7 @@ import { useEffect } from 'react';
4
4
  function $parcel$export(e, n, v, s) {
5
5
  Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
6
6
  }
7
- const $d663162fd5a0853f$export$38a083d9fb5551ca = "0.15.0-alpha";
7
+ const $d663162fd5a0853f$export$38a083d9fb5551ca = "0.15.1-alpha";
8
8
  const $d663162fd5a0853f$export$83bf90b30cdfd29f = ()=>false;
9
9
  const $d663162fd5a0853f$export$1169f5475725171b = ()=>$d663162fd5a0853f$export$38a083d9fb5551ca;
10
10
 
@@ -462,6 +462,14 @@ interface ERC20Token {
462
462
  type: 'ERC20';
463
463
  tokenAddress: string;
464
464
  }
465
+ /**
466
+ * An ERC721 token
467
+ */
468
+ interface ERC721Token {
469
+ type: 'ERC721';
470
+ tokenId: string;
471
+ tokenAddress: string;
472
+ }
465
473
  /**
466
474
  * An ETH token
467
475
  */
@@ -486,6 +494,14 @@ interface ERC20Amount extends ERC20Token {
486
494
  */
487
495
  amount: string;
488
496
  }
497
+ /**
498
+ * Union type that represents all token types
499
+ */
500
+ declare type AnyToken = ETHToken | ERC721Token | ERC20Token;
501
+ /**
502
+ * Union type that represents all token type amounts
503
+ */
504
+ declare type TokenAmount = ETHAmount | ERC20Amount | ERC721Token;
489
505
  /**
490
506
  * Union type that represents exchange token type amounts
491
507
  */
@@ -586,6 +602,43 @@ declare class BaseAPI {
586
602
  constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
587
603
  }
588
604
 
605
+ /**
606
+ * Immutable X API
607
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
608
+ *
609
+ * The version of the OpenAPI document: 3.0
610
+ * Contact: support@immutable.com
611
+ *
612
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
613
+ * https://openapi-generator.tech
614
+ * Do not edit the class manually.
615
+ */
616
+ /**
617
+ *
618
+ * @export
619
+ * @interface APIError
620
+ */
621
+ interface APIError {
622
+ /**
623
+ * The error code
624
+ * @type {string}
625
+ * @memberof APIError
626
+ */
627
+ 'code': string;
628
+ /**
629
+ * The error details
630
+ * @type {string}
631
+ * @memberof APIError
632
+ */
633
+ 'details'?: string;
634
+ /**
635
+ * The error message
636
+ * @type {string}
637
+ * @memberof APIError
638
+ */
639
+ 'message': string;
640
+ }
641
+
589
642
  /**
590
643
  * Immutable X API
591
644
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
@@ -9894,6 +9947,37 @@ declare class WithdrawalsApi extends BaseAPI {
9894
9947
  */
9895
9948
  listWithdrawals(requestParameters?: WithdrawalsApiListWithdrawalsRequest, options?: AxiosRequestConfig): Promise<AxiosResponse<ListWithdrawalsResponse, any>>;
9896
9949
  }
9950
+
9951
+ /**
9952
+ * Parameter required to create an Order
9953
+ */
9954
+ interface UnsignedOrderRequest {
9955
+ /**
9956
+ * The amount of tokens that will be bought for this order
9957
+ */
9958
+ buy: TokenAmount;
9959
+ /**
9960
+ * The amount of tokens that will be sold for this order
9961
+ */
9962
+ sell: TokenAmount;
9963
+ /**
9964
+ * ExpirationTimestamp in Unix time. Note: will be rounded down to the nearest hour
9965
+ */
9966
+ expiration_timestamp?: number;
9967
+ /**
9968
+ * Inclusion of either maker or taker fees
9969
+ */
9970
+ fees?: Array<FeeEntry>;
9971
+ }
9972
+ /**
9973
+ * Parameter required to create a Transfer
9974
+ */
9975
+ declare type UnsignedTransferRequest = TokenAmount & {
9976
+ /**
9977
+ * Ethereum address of the receiving user
9978
+ */
9979
+ receiver: string;
9980
+ };
9897
9981
  /**
9898
9982
  * Parameter required to Mint tokens
9899
9983
  */
@@ -9912,6 +9996,36 @@ declare type UnsignedExchangeTransferRequest = ExchangeTokenAmount & {
9912
9996
  transactionID: string;
9913
9997
  };
9914
9998
 
9999
+ /**
10000
+ * Parameter required to create a batchNftTransfer
10001
+ */
10002
+ interface NftTransferDetails {
10003
+ /**
10004
+ * Ethereum address of the receiving user
10005
+ */
10006
+ receiver: string;
10007
+ /**
10008
+ * The token ID
10009
+ */
10010
+ tokenId: string;
10011
+ /**
10012
+ * The token contract address
10013
+ */
10014
+ tokenAddress: string;
10015
+ }
10016
+
10017
+ /**
10018
+ * Custom Error class that is returned from the API when a request fails
10019
+ */
10020
+ declare class IMXError extends Error {
10021
+ /**
10022
+ * [See a list of thrown error codes](https://docs.x.immutable.com/docs/error-codes/)
10023
+ */
10024
+ readonly code: string;
10025
+ readonly details?: string;
10026
+ constructor({ code, details, message }: APIError);
10027
+ }
10028
+
9915
10029
  /**
9916
10030
  * Creates a new Stark Signer
9917
10031
  * @params starkPrivateKey - the private key as a hex string
@@ -10310,4 +10424,4 @@ declare class ImmutableXClient {
10310
10424
  getNftPrimaryTransactions(request: NftCheckoutPrimaryApiGetNftPrimaryTransactionsRequest): Promise<NftprimarytransactionListTransactionsResponse>;
10311
10425
  }
10312
10426
 
10313
- export { ImmutableXClient, ImxModuleConfiguration as ImxClientModuleConfiguration, WalletConnection as ImxClientWalletConnection, createStarkSigner as imxClientCreateStarkSigner, generateLegacyStarkPrivateKey as imxClientGenerateLegacyStarkPrivateKey };
10427
+ export { AnyToken, ERC20Amount, ERC20Token, ERC721Token, ETHAmount, ETHToken, ExchangeTokenAmount, IMXError, ImmutableXClient, ImxModuleConfiguration as ImxClientModuleConfiguration, WalletConnection as ImxClientWalletConnection, NftTransferDetails, StarkSigner, TokenAmount, UnsignedExchangeTransferRequest, UnsignedMintRequest, UnsignedOrderRequest, UnsignedTransferRequest, WalletConnection, createStarkSigner as imxClientCreateStarkSigner, generateLegacyStarkPrivateKey as imxClientGenerateLegacyStarkPrivateKey };
@@ -1,5 +1,5 @@
1
1
  import { ImmutableX, Config } from '@imtbl/core-sdk';
2
- export { createStarkSigner as imxClientCreateStarkSigner, generateLegacyStarkPrivateKey as imxClientGenerateLegacyStarkPrivateKey } from '@imtbl/core-sdk';
2
+ export { IMXError, createStarkSigner as imxClientCreateStarkSigner, generateLegacyStarkPrivateKey as imxClientGenerateLegacyStarkPrivateKey } from '@imtbl/core-sdk';
3
3
 
4
4
  var Environment;
5
5
  (function (Environment) {
@@ -16,7 +16,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
16
16
  chainID,
17
17
  coreContractAddress,
18
18
  registrationContractAddress,
19
- sdkVersion: 'ts-immutable-sdk-0.15.0-alpha',
19
+ sdkVersion: 'ts-immutable-sdk-0.15.1-alpha',
20
20
  });
21
21
  /**
22
22
  * Sets `sdkVersion` at the time of build