@imtbl/sdk 1.2.0 → 1.4.0-alpha.2

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.
Files changed (47) hide show
  1. package/dist/blockchain_data.d.ts +4413 -1793
  2. package/dist/blockchain_data.js +398 -78
  3. package/dist/browser/checkout/BridgeWidget-52ba2210.js +2753 -0
  4. package/dist/browser/checkout/BridgeWidget-fffec54f.js +1 -0
  5. package/dist/browser/checkout/OnRampWidget-04677711.js +288 -0
  6. package/dist/browser/checkout/OnRampWidget-b1c1cc52.js +1 -0
  7. package/dist/browser/checkout/SaleWidget-8b73504f.js +1610 -0
  8. package/dist/browser/checkout/SaleWidget-e9cc4cb2.js +2 -0
  9. package/dist/browser/checkout/SpendingCapHero-43c9cf8c.js +9 -0
  10. package/dist/browser/checkout/SpendingCapHero-af71a6f5.js +1 -0
  11. package/dist/browser/checkout/SwapWidget-45ff8dfa.js +1 -0
  12. package/dist/browser/checkout/SwapWidget-e52876ac.js +1461 -0
  13. package/dist/browser/checkout/TopUpView-590c2c4c.js +365 -0
  14. package/dist/browser/checkout/TopUpView-ff09517a.js +1 -0
  15. package/dist/browser/checkout/WalletWidget-9c4c62e4.js +760 -0
  16. package/dist/browser/checkout/WalletWidget-ed0bd774.js +1 -0
  17. package/dist/browser/checkout/auto-track-1bf3a0ee.js +1 -0
  18. package/dist/browser/checkout/balance-e5a26a9d.js +1 -0
  19. package/dist/browser/checkout/balance-e5d785aa.js +182 -0
  20. package/dist/browser/checkout/index-1405c4f4.js +1 -0
  21. package/dist/browser/checkout/index-3272becd.js +1 -0
  22. package/dist/browser/checkout/index-4511315b.js +5638 -0
  23. package/dist/browser/checkout/index-6ee5fac7.js +1 -0
  24. package/dist/browser/checkout/index-8562ab3b.js +1 -0
  25. package/dist/browser/checkout/index-942c822d.js +1 -0
  26. package/dist/browser/checkout/index-9a5fbaa1.js +90 -0
  27. package/dist/browser/checkout/index-d9cfe478.js +773 -0
  28. package/dist/browser/checkout/index.umd-956dbfb2.js +1 -0
  29. package/dist/browser/checkout/is-plan-event-enabled-80f76ce6.js +1 -0
  30. package/dist/browser/checkout/retry-254e3478.js +58 -0
  31. package/dist/browser/checkout/retry-81ddd897.js +1 -0
  32. package/dist/browser/checkout/sdk.js +4 -4
  33. package/dist/browser/checkout/useTransakEvents-54a554e5.js +150 -0
  34. package/dist/browser/checkout/useTransakEvents-8580b8ed.js +2 -0
  35. package/dist/browser/checkout/widgets.js +1 -872
  36. package/dist/checkout.d.ts +28 -2
  37. package/dist/checkout.js +471 -57
  38. package/dist/config.js +1 -1
  39. package/dist/index.browser.js +12 -12
  40. package/dist/index.browser.js.map +1 -1
  41. package/dist/index.cjs +404 -88
  42. package/dist/index.d.ts +4472 -1842
  43. package/dist/index.js +404 -88
  44. package/dist/orderbook.js +1 -1
  45. package/dist/passport.js +415 -3
  46. package/dist/x.js +2 -2
  47. package/package.json +1 -1
package/dist/orderbook.js CHANGED
@@ -126,7 +126,7 @@ const flattenProperties = (properties) => {
126
126
  };
127
127
 
128
128
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
129
- const SDK_VERSION = '1.2.0';
129
+ const SDK_VERSION = '1.4.0-alpha.2';
130
130
  let initialised = false;
131
131
  const isInitialised = () => initialised;
132
132
  const getReferrer = () => {
package/dist/passport.js CHANGED
@@ -8661,6 +8661,418 @@ class PassportApi extends BaseAPI$2 {
8661
8661
  }
8662
8662
  }
8663
8663
 
8664
+ /* tslint:disable */
8665
+ /* eslint-disable */
8666
+ /**
8667
+ * Immutable zkEVM API
8668
+ * Immutable Multi Rollup API
8669
+ *
8670
+ * The version of the OpenAPI document: 1.0.0
8671
+ * Contact: support@immutable.com
8672
+ *
8673
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
8674
+ * https://openapi-generator.tech
8675
+ * Do not edit the class manually.
8676
+ */
8677
+ /**
8678
+ * @export
8679
+ * @enum {string}
8680
+ */
8681
+ var APIError400AllOfCodeEnum;
8682
+ (function (APIError400AllOfCodeEnum) {
8683
+ APIError400AllOfCodeEnum["ValidationError"] = "VALIDATION_ERROR";
8684
+ })(APIError400AllOfCodeEnum || (APIError400AllOfCodeEnum = {}));
8685
+
8686
+ /* tslint:disable */
8687
+ /* eslint-disable */
8688
+ /**
8689
+ * Immutable zkEVM API
8690
+ * Immutable Multi Rollup API
8691
+ *
8692
+ * The version of the OpenAPI document: 1.0.0
8693
+ * Contact: support@immutable.com
8694
+ *
8695
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
8696
+ * https://openapi-generator.tech
8697
+ * Do not edit the class manually.
8698
+ */
8699
+ /**
8700
+ * @export
8701
+ * @enum {string}
8702
+ */
8703
+ var APIError401AllOfCodeEnum;
8704
+ (function (APIError401AllOfCodeEnum) {
8705
+ APIError401AllOfCodeEnum["UnauthorisedRequest"] = "UNAUTHORISED_REQUEST";
8706
+ })(APIError401AllOfCodeEnum || (APIError401AllOfCodeEnum = {}));
8707
+
8708
+ /* tslint:disable */
8709
+ /* eslint-disable */
8710
+ /**
8711
+ * Immutable zkEVM API
8712
+ * Immutable Multi Rollup API
8713
+ *
8714
+ * The version of the OpenAPI document: 1.0.0
8715
+ * Contact: support@immutable.com
8716
+ *
8717
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
8718
+ * https://openapi-generator.tech
8719
+ * Do not edit the class manually.
8720
+ */
8721
+ /**
8722
+ * @export
8723
+ * @enum {string}
8724
+ */
8725
+ var APIError403AllOfCodeEnum;
8726
+ (function (APIError403AllOfCodeEnum) {
8727
+ APIError403AllOfCodeEnum["AuthenticationError"] = "AUTHENTICATION_ERROR";
8728
+ })(APIError403AllOfCodeEnum || (APIError403AllOfCodeEnum = {}));
8729
+
8730
+ /* tslint:disable */
8731
+ /* eslint-disable */
8732
+ /**
8733
+ * Immutable zkEVM API
8734
+ * Immutable Multi Rollup API
8735
+ *
8736
+ * The version of the OpenAPI document: 1.0.0
8737
+ * Contact: support@immutable.com
8738
+ *
8739
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
8740
+ * https://openapi-generator.tech
8741
+ * Do not edit the class manually.
8742
+ */
8743
+ /**
8744
+ * @export
8745
+ * @enum {string}
8746
+ */
8747
+ var APIError404AllOfCodeEnum;
8748
+ (function (APIError404AllOfCodeEnum) {
8749
+ APIError404AllOfCodeEnum["ResourceNotFound"] = "RESOURCE_NOT_FOUND";
8750
+ })(APIError404AllOfCodeEnum || (APIError404AllOfCodeEnum = {}));
8751
+
8752
+ /* tslint:disable */
8753
+ /* eslint-disable */
8754
+ /**
8755
+ * Immutable zkEVM API
8756
+ * Immutable Multi Rollup API
8757
+ *
8758
+ * The version of the OpenAPI document: 1.0.0
8759
+ * Contact: support@immutable.com
8760
+ *
8761
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
8762
+ * https://openapi-generator.tech
8763
+ * Do not edit the class manually.
8764
+ */
8765
+ /**
8766
+ * @export
8767
+ * @enum {string}
8768
+ */
8769
+ var APIError429AllOfCodeEnum;
8770
+ (function (APIError429AllOfCodeEnum) {
8771
+ APIError429AllOfCodeEnum["TooManyRequestsError"] = "TOO_MANY_REQUESTS_ERROR";
8772
+ })(APIError429AllOfCodeEnum || (APIError429AllOfCodeEnum = {}));
8773
+
8774
+ /* tslint:disable */
8775
+ /* eslint-disable */
8776
+ /**
8777
+ * Immutable zkEVM API
8778
+ * Immutable Multi Rollup API
8779
+ *
8780
+ * The version of the OpenAPI document: 1.0.0
8781
+ * Contact: support@immutable.com
8782
+ *
8783
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
8784
+ * https://openapi-generator.tech
8785
+ * Do not edit the class manually.
8786
+ */
8787
+ /**
8788
+ * @export
8789
+ * @enum {string}
8790
+ */
8791
+ var APIError500AllOfCodeEnum;
8792
+ (function (APIError500AllOfCodeEnum) {
8793
+ APIError500AllOfCodeEnum["InternalServerError"] = "INTERNAL_SERVER_ERROR";
8794
+ })(APIError500AllOfCodeEnum || (APIError500AllOfCodeEnum = {}));
8795
+
8796
+ /* tslint:disable */
8797
+ /* eslint-disable */
8798
+ /**
8799
+ * Immutable zkEVM API
8800
+ * Immutable Multi Rollup API
8801
+ *
8802
+ * The version of the OpenAPI document: 1.0.0
8803
+ * Contact: support@immutable.com
8804
+ *
8805
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
8806
+ * https://openapi-generator.tech
8807
+ * Do not edit the class manually.
8808
+ */
8809
+ /**
8810
+ * @export
8811
+ * @enum {string}
8812
+ */
8813
+ var APIError501AllOfCodeEnum;
8814
+ (function (APIError501AllOfCodeEnum) {
8815
+ APIError501AllOfCodeEnum["NotImplementedError"] = "NOT_IMPLEMENTED_ERROR";
8816
+ })(APIError501AllOfCodeEnum || (APIError501AllOfCodeEnum = {}));
8817
+
8818
+ /* tslint:disable */
8819
+ /* eslint-disable */
8820
+ /**
8821
+ * Immutable zkEVM API
8822
+ * Immutable Multi Rollup API
8823
+ *
8824
+ * The version of the OpenAPI document: 1.0.0
8825
+ * Contact: support@immutable.com
8826
+ *
8827
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
8828
+ * https://openapi-generator.tech
8829
+ * Do not edit the class manually.
8830
+ */
8831
+ /**
8832
+ * @export
8833
+ * @enum {string}
8834
+ */
8835
+ var ActiveOrderStatusNameEnum;
8836
+ (function (ActiveOrderStatusNameEnum) {
8837
+ ActiveOrderStatusNameEnum["Active"] = "ACTIVE";
8838
+ })(ActiveOrderStatusNameEnum || (ActiveOrderStatusNameEnum = {}));
8839
+
8840
+ /* tslint:disable */
8841
+ /* eslint-disable */
8842
+ /**
8843
+ * Immutable zkEVM API
8844
+ * Immutable Multi Rollup API
8845
+ *
8846
+ * The version of the OpenAPI document: 1.0.0
8847
+ * Contact: support@immutable.com
8848
+ *
8849
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
8850
+ * https://openapi-generator.tech
8851
+ * Do not edit the class manually.
8852
+ */
8853
+ /**
8854
+ * The activity type
8855
+ * @export
8856
+ * @enum {string}
8857
+ */
8858
+ var ActivityType;
8859
+ (function (ActivityType) {
8860
+ ActivityType["Mint"] = "mint";
8861
+ ActivityType["Burn"] = "burn";
8862
+ ActivityType["Transfer"] = "transfer";
8863
+ ActivityType["Sale"] = "sale";
8864
+ ActivityType["Deposit"] = "deposit";
8865
+ ActivityType["Withdrawal"] = "withdrawal";
8866
+ })(ActivityType || (ActivityType = {}));
8867
+
8868
+ /* tslint:disable */
8869
+ /* eslint-disable */
8870
+ /**
8871
+ * Immutable zkEVM API
8872
+ * Immutable Multi Rollup API
8873
+ *
8874
+ * The version of the OpenAPI document: 1.0.0
8875
+ * Contact: support@immutable.com
8876
+ *
8877
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
8878
+ * https://openapi-generator.tech
8879
+ * Do not edit the class manually.
8880
+ */
8881
+ /**
8882
+ * The collection contract type
8883
+ * @export
8884
+ * @enum {string}
8885
+ */
8886
+ var CollectionContractType;
8887
+ (function (CollectionContractType) {
8888
+ CollectionContractType["Erc721"] = "ERC721";
8889
+ CollectionContractType["Erc1155"] = "ERC1155";
8890
+ })(CollectionContractType || (CollectionContractType = {}));
8891
+
8892
+ /* tslint:disable */
8893
+ /* eslint-disable */
8894
+ /**
8895
+ * Immutable zkEVM API
8896
+ * Immutable Multi Rollup API
8897
+ *
8898
+ * The version of the OpenAPI document: 1.0.0
8899
+ * Contact: support@immutable.com
8900
+ *
8901
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
8902
+ * https://openapi-generator.tech
8903
+ * Do not edit the class manually.
8904
+ */
8905
+ /**
8906
+ * @export
8907
+ * @enum {string}
8908
+ */
8909
+ var ERC1155ItemTypeEnum;
8910
+ (function (ERC1155ItemTypeEnum) {
8911
+ ERC1155ItemTypeEnum["Erc1155"] = "ERC1155";
8912
+ })(ERC1155ItemTypeEnum || (ERC1155ItemTypeEnum = {}));
8913
+
8914
+ /* tslint:disable */
8915
+ /* eslint-disable */
8916
+ /**
8917
+ * Immutable zkEVM API
8918
+ * Immutable Multi Rollup API
8919
+ *
8920
+ * The version of the OpenAPI document: 1.0.0
8921
+ * Contact: support@immutable.com
8922
+ *
8923
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
8924
+ * https://openapi-generator.tech
8925
+ * Do not edit the class manually.
8926
+ */
8927
+ /**
8928
+ * @export
8929
+ * @enum {string}
8930
+ */
8931
+ var ERC20ItemTypeEnum;
8932
+ (function (ERC20ItemTypeEnum) {
8933
+ ERC20ItemTypeEnum["Erc20"] = "ERC20";
8934
+ })(ERC20ItemTypeEnum || (ERC20ItemTypeEnum = {}));
8935
+
8936
+ /* tslint:disable */
8937
+ /* eslint-disable */
8938
+ /**
8939
+ * Immutable zkEVM API
8940
+ * Immutable Multi Rollup API
8941
+ *
8942
+ * The version of the OpenAPI document: 1.0.0
8943
+ * Contact: support@immutable.com
8944
+ *
8945
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
8946
+ * https://openapi-generator.tech
8947
+ * Do not edit the class manually.
8948
+ */
8949
+ /**
8950
+ * @export
8951
+ * @enum {string}
8952
+ */
8953
+ var ERC721ItemTypeEnum;
8954
+ (function (ERC721ItemTypeEnum) {
8955
+ ERC721ItemTypeEnum["Erc721"] = "ERC721";
8956
+ })(ERC721ItemTypeEnum || (ERC721ItemTypeEnum = {}));
8957
+
8958
+ /* tslint:disable */
8959
+ /* eslint-disable */
8960
+ /**
8961
+ * Immutable zkEVM API
8962
+ * Immutable Multi Rollup API
8963
+ *
8964
+ * The version of the OpenAPI document: 1.0.0
8965
+ * Contact: support@immutable.com
8966
+ *
8967
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
8968
+ * https://openapi-generator.tech
8969
+ * Do not edit the class manually.
8970
+ */
8971
+ /**
8972
+ * The status of the mint request
8973
+ * @export
8974
+ * @enum {string}
8975
+ */
8976
+ var MintRequestStatus;
8977
+ (function (MintRequestStatus) {
8978
+ MintRequestStatus["Pending"] = "pending";
8979
+ MintRequestStatus["Succeeded"] = "succeeded";
8980
+ MintRequestStatus["Failed"] = "failed";
8981
+ })(MintRequestStatus || (MintRequestStatus = {}));
8982
+
8983
+ /* tslint:disable */
8984
+ /* eslint-disable */
8985
+ /**
8986
+ * Immutable zkEVM API
8987
+ * Immutable Multi Rollup API
8988
+ *
8989
+ * The version of the OpenAPI document: 1.0.0
8990
+ * Contact: support@immutable.com
8991
+ *
8992
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
8993
+ * https://openapi-generator.tech
8994
+ * Do not edit the class manually.
8995
+ */
8996
+ /**
8997
+ * The contract type for an NFT
8998
+ * @export
8999
+ * @enum {string}
9000
+ */
9001
+ var NFTContractType;
9002
+ (function (NFTContractType) {
9003
+ NFTContractType["Erc721"] = "ERC721";
9004
+ })(NFTContractType || (NFTContractType = {}));
9005
+
9006
+ /* tslint:disable */
9007
+ /* eslint-disable */
9008
+ /**
9009
+ * Immutable zkEVM API
9010
+ * Immutable Multi Rollup API
9011
+ *
9012
+ * The version of the OpenAPI document: 1.0.0
9013
+ * Contact: support@immutable.com
9014
+ *
9015
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9016
+ * https://openapi-generator.tech
9017
+ * Do not edit the class manually.
9018
+ */
9019
+ /**
9020
+ * @export
9021
+ * @enum {string}
9022
+ */
9023
+ var NativeItemTypeEnum;
9024
+ (function (NativeItemTypeEnum) {
9025
+ NativeItemTypeEnum["Native"] = "NATIVE";
9026
+ NativeItemTypeEnum["Erc20"] = "ERC20";
9027
+ NativeItemTypeEnum["Erc721"] = "ERC721";
9028
+ NativeItemTypeEnum["Erc1155"] = "ERC1155";
9029
+ })(NativeItemTypeEnum || (NativeItemTypeEnum = {}));
9030
+
9031
+ /* tslint:disable */
9032
+ /* eslint-disable */
9033
+ /**
9034
+ * Immutable zkEVM API
9035
+ * Immutable Multi Rollup API
9036
+ *
9037
+ * The version of the OpenAPI document: 1.0.0
9038
+ * Contact: support@immutable.com
9039
+ *
9040
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9041
+ * https://openapi-generator.tech
9042
+ * Do not edit the class manually.
9043
+ */
9044
+ /**
9045
+ * @export
9046
+ * @enum {string}
9047
+ */
9048
+ var SaleFeeTypeEnum;
9049
+ (function (SaleFeeTypeEnum) {
9050
+ SaleFeeTypeEnum["Royalty"] = "ROYALTY";
9051
+ })(SaleFeeTypeEnum || (SaleFeeTypeEnum = {}));
9052
+
9053
+ /* tslint:disable */
9054
+ /* eslint-disable */
9055
+ /**
9056
+ * Immutable zkEVM API
9057
+ * Immutable Multi Rollup API
9058
+ *
9059
+ * The version of the OpenAPI document: 1.0.0
9060
+ * Contact: support@immutable.com
9061
+ *
9062
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9063
+ * https://openapi-generator.tech
9064
+ * Do not edit the class manually.
9065
+ */
9066
+ /**
9067
+ * The contract type for a token
9068
+ * @export
9069
+ * @enum {string}
9070
+ */
9071
+ var TokenContractType;
9072
+ (function (TokenContractType) {
9073
+ TokenContractType["Erc20"] = "ERC20";
9074
+ })(TokenContractType || (TokenContractType = {}));
9075
+
8664
9076
  class ImxApiClients {
8665
9077
  config;
8666
9078
  assetApi;
@@ -8724,7 +9136,7 @@ class MultiRollupApiClients {
8724
9136
  }
8725
9137
 
8726
9138
  // eslint-disable-next-line @typescript-eslint/naming-convention
8727
- const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.2.0' };
9139
+ const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.4.0-alpha.2' };
8728
9140
  const createConfig = ({ basePath, headers, }) => {
8729
9141
  if (!basePath.trim()) {
8730
9142
  throw Error('basePath can not be empty');
@@ -8904,7 +9316,7 @@ const flattenProperties = (properties) => {
8904
9316
  };
8905
9317
 
8906
9318
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
8907
- const SDK_VERSION = '1.2.0';
9319
+ const SDK_VERSION = '1.4.0-alpha.2';
8908
9320
  let initialised = false;
8909
9321
  const isInitialised = () => initialised;
8910
9322
  const getReferrer = () => {
@@ -9079,7 +9491,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
9079
9491
  chainID,
9080
9492
  coreContractAddress,
9081
9493
  registrationContractAddress,
9082
- sdkVersion: 'ts-immutable-sdk-1.2.0',
9494
+ sdkVersion: 'ts-immutable-sdk-1.4.0-alpha.2',
9083
9495
  });
9084
9496
  /**
9085
9497
  * Sets `sdkVersion` at the time of build
package/dist/x.js CHANGED
@@ -131,7 +131,7 @@ const flattenProperties = (properties) => {
131
131
  };
132
132
 
133
133
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
134
- const SDK_VERSION = '1.2.0';
134
+ const SDK_VERSION = '1.4.0-alpha.2';
135
135
  let initialised = false;
136
136
  const isInitialised = () => initialised;
137
137
  const getReferrer = () => {
@@ -270,7 +270,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
270
270
  chainID,
271
271
  coreContractAddress,
272
272
  registrationContractAddress,
273
- sdkVersion: 'ts-immutable-sdk-1.2.0',
273
+ sdkVersion: 'ts-immutable-sdk-1.4.0-alpha.2',
274
274
  });
275
275
  /**
276
276
  * Sets `sdkVersion` at the time of build
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@imtbl/sdk",
3
3
  "description": "Immutable Unified SDK",
4
- "version": "1.2.0",
4
+ "version": "1.4.0-alpha.2",
5
5
  "author": "Immutable",
6
6
  "browser": "./dist/index.browser.js",
7
7
  "bugs": "https://github.com/immutable/ts-immutable-sdk/issues",