@imtbl/sdk 1.19.2-alpha → 1.19.2-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 (40) hide show
  1. package/dist/blockchain_data.js +2 -2
  2. package/dist/browser/checkout/{BridgeWidget-24521d11.js → BridgeWidget-e20aae24.js} +1 -1
  3. package/dist/browser/checkout/{HorizontalMenu-actual-6612c0c3.js → HorizontalMenu-actual-575774d2.js} +1 -1
  4. package/dist/browser/checkout/{OnRampWidget-d264f707.js → OnRampWidget-66f6516f.js} +1 -1
  5. package/dist/browser/checkout/SaleWidget-661a9733.js +2 -0
  6. package/dist/browser/checkout/{SpendingCapHero-0db6d7ed.js → SpendingCapHero-ef4695ef.js} +1 -1
  7. package/dist/browser/checkout/{SwapWidget-2c06420c.js → SwapWidget-6f35a346.js} +1 -1
  8. package/dist/browser/checkout/{TopUpView-d9658bbd.js → TopUpView-4c41c2ba.js} +1 -1
  9. package/dist/browser/checkout/{WalletWidget-43fb112d.js → WalletWidget-a098915f.js} +1 -1
  10. package/dist/browser/checkout/{auto-track-a398bcd2.js → auto-track-2347c952.js} +1 -1
  11. package/dist/browser/checkout/{balance-124a9c3c.js → balance-8eece366.js} +1 -1
  12. package/dist/browser/checkout/{index-384fe7dd.js → index-291e03a6.js} +1 -1
  13. package/dist/browser/checkout/{index-e22be227.js → index-36e30a03.js} +1 -1
  14. package/dist/browser/checkout/index-454df514.js +1 -0
  15. package/dist/browser/checkout/{index-6e2b798d.js → index-670cc439.js} +1 -1
  16. package/dist/browser/checkout/{index-dcf79a29.js → index-68b39d4d.js} +1 -1
  17. package/dist/browser/checkout/{index-5327f330.js → index-9a484e52.js} +1 -1
  18. package/dist/browser/checkout/{index-bc84abbd.js → index-a55bea1a.js} +1 -1
  19. package/dist/browser/checkout/{index-80d8482d.js → index-c9bcb679.js} +2 -2
  20. package/dist/browser/checkout/{index.umd-4fe7c784.js → index.umd-d7a104a3.js} +1 -1
  21. package/dist/browser/checkout/{retry-21d3107e.js → retry-90e79a4a.js} +1 -1
  22. package/dist/browser/checkout/sdk.js +4 -4
  23. package/dist/browser/checkout/widgets-esm.js +1 -1
  24. package/dist/browser/checkout/widgets.js +4 -4
  25. package/dist/checkout.d.ts +213 -573
  26. package/dist/checkout.js +4 -4
  27. package/dist/config.js +1 -1
  28. package/dist/index.browser.js +13 -13
  29. package/dist/index.browser.js.map +1 -1
  30. package/dist/index.cjs +51 -61
  31. package/dist/index.d.ts +1158 -1712
  32. package/dist/index.js +52 -62
  33. package/dist/orderbook.js +1 -1
  34. package/dist/passport.d.ts +478 -838
  35. package/dist/passport.js +4 -4
  36. package/dist/x.d.ts +103 -657
  37. package/dist/x.js +47 -58
  38. package/package.json +1 -1
  39. package/dist/browser/checkout/SaleWidget-82dbc082.js +0 -2
  40. package/dist/browser/checkout/index-9ed7d230.js +0 -1
@@ -546,573 +546,6 @@ declare class Web3Provider extends JsonRpcProvider {
546
546
  send(method: string, params: Array<any>): Promise<any>;
547
547
  }
548
548
 
549
- /**
550
- * An ERC20 token
551
- */
552
- interface ERC20Token$1 {
553
- type: 'ERC20';
554
- tokenAddress: string;
555
- }
556
- /**
557
- * An ERC721 token
558
- */
559
- interface ERC721Token {
560
- type: 'ERC721';
561
- tokenId: string;
562
- tokenAddress: string;
563
- }
564
- /**
565
- * An ETH token
566
- */
567
- interface ETHToken$1 {
568
- type: 'ETH';
569
- }
570
- /**
571
- * An amount of ETH token of unit Wei
572
- */
573
- interface ETHAmount$1 extends ETHToken$1 {
574
- /**
575
- * An amount in unit Wei
576
- */
577
- amount: string;
578
- }
579
- /**
580
- * The token details and amount of ERC20 token units
581
- */
582
- interface ERC20Amount$1 extends ERC20Token$1 {
583
- /**
584
- * An amount in units for the given ERC20 token
585
- */
586
- amount: string;
587
- }
588
- /**
589
- * Union type that represents all token types
590
- */
591
- declare type AnyToken = ETHToken$1 | ERC721Token | ERC20Token$1;
592
- /**
593
- * Union type that represents all token type amounts
594
- */
595
- declare type TokenAmount = ETHAmount$1 | ERC20Amount$1 | ERC721Token;
596
- /**
597
- * Union type that represents exchange token type amounts
598
- */
599
- declare type ExchangeTokenAmount$1 = ETHAmount$1 | ERC20Amount$1;
600
-
601
- /**
602
- * Immutable X API
603
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
604
- *
605
- * The version of the OpenAPI document: 3.0
606
- * Contact: support@immutable.com
607
- *
608
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
609
- * https://openapi-generator.tech
610
- * Do not edit the class manually.
611
- */
612
- /**
613
- *
614
- * @export
615
- * @interface CancelOrderResponse
616
- */
617
- interface CancelOrderResponse$1 {
618
- /**
619
- * ID of the cancelled order
620
- * @type {number}
621
- * @memberof CancelOrderResponse
622
- */
623
- 'order_id': number;
624
- /**
625
- * New status of the order
626
- * @type {string}
627
- * @memberof CancelOrderResponse
628
- */
629
- 'status': string;
630
- }
631
-
632
- /**
633
- * Immutable X API
634
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
635
- *
636
- * The version of the OpenAPI document: 3.0
637
- * Contact: support@immutable.com
638
- *
639
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
640
- * https://openapi-generator.tech
641
- * Do not edit the class manually.
642
- */
643
- /**
644
- *
645
- * @export
646
- * @interface FeeEntry
647
- */
648
- interface FeeEntry$1 {
649
- /**
650
- *
651
- * @type {string}
652
- * @memberof FeeEntry
653
- */
654
- 'address'?: string;
655
- /**
656
- *
657
- * @type {number}
658
- * @memberof FeeEntry
659
- */
660
- 'fee_percentage'?: number;
661
- }
662
-
663
- /**
664
- * Immutable X API
665
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
666
- *
667
- * The version of the OpenAPI document: 3.0
668
- * Contact: support@immutable.com
669
- *
670
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
671
- * https://openapi-generator.tech
672
- * Do not edit the class manually.
673
- */
674
- /**
675
- *
676
- * @export
677
- * @interface CreateOrderResponse
678
- */
679
- interface CreateOrderResponse$1 {
680
- /**
681
- * ID of the created order
682
- * @type {number}
683
- * @memberof CreateOrderResponse
684
- */
685
- 'order_id': number;
686
- /**
687
- * Request ID as a reference for an asynchronous order creation request
688
- * @type {string}
689
- * @memberof CreateOrderResponse
690
- */
691
- 'request_id'?: string;
692
- /**
693
- * Status of the created order
694
- * @type {string}
695
- * @memberof CreateOrderResponse
696
- */
697
- 'status': string;
698
- /**
699
- * Timestamp of the created order
700
- * @type {number}
701
- * @memberof CreateOrderResponse
702
- */
703
- 'time': number;
704
- }
705
-
706
- /**
707
- * Immutable X API
708
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
709
- *
710
- * The version of the OpenAPI document: 3.0
711
- * Contact: support@immutable.com
712
- *
713
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
714
- * https://openapi-generator.tech
715
- * Do not edit the class manually.
716
- */
717
- /**
718
- *
719
- * @export
720
- * @interface CreateTradeResponse
721
- */
722
- interface CreateTradeResponse$1 {
723
- /**
724
- * Request ID as a reference for an asynchronous trade creation request
725
- * @type {string}
726
- * @memberof CreateTradeResponse
727
- */
728
- 'request_id'?: string;
729
- /**
730
- * Current status of trade
731
- * @type {string}
732
- * @memberof CreateTradeResponse
733
- */
734
- 'status': string;
735
- /**
736
- * ID of trade within Immutable X
737
- * @type {number}
738
- * @memberof CreateTradeResponse
739
- */
740
- 'trade_id': number;
741
- }
742
-
743
- /**
744
- * Immutable X API
745
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
746
- *
747
- * The version of the OpenAPI document: 3.0
748
- * Contact: support@immutable.com
749
- *
750
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
751
- * https://openapi-generator.tech
752
- * Do not edit the class manually.
753
- */
754
- /**
755
- *
756
- * @export
757
- * @interface CreateTransferResponse
758
- */
759
- interface CreateTransferResponse {
760
- /**
761
- * List of transfer IDs
762
- * @type {Array<number>}
763
- * @memberof CreateTransferResponse
764
- */
765
- 'transfer_ids': Array<number>;
766
- }
767
-
768
- /**
769
- * Immutable X API
770
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
771
- *
772
- * The version of the OpenAPI document: 3.0
773
- * Contact: support@immutable.com
774
- *
775
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
776
- * https://openapi-generator.tech
777
- * Do not edit the class manually.
778
- */
779
- /**
780
- *
781
- * @export
782
- * @interface CreateTransferResponseV1
783
- */
784
- interface CreateTransferResponseV1$2 {
785
- /**
786
- * [deprecated] Sent signature
787
- * @type {string}
788
- * @memberof CreateTransferResponseV1
789
- */
790
- 'sent_signature': string;
791
- /**
792
- * [deprecated] The status of transfer
793
- * @type {string}
794
- * @memberof CreateTransferResponseV1
795
- */
796
- 'status': string;
797
- /**
798
- * [deprecated] Time of the transfer
799
- * @type {number}
800
- * @memberof CreateTransferResponseV1
801
- */
802
- 'time': number;
803
- /**
804
- * ID of the transfer
805
- * @type {number}
806
- * @memberof CreateTransferResponseV1
807
- */
808
- 'transfer_id': number;
809
- }
810
-
811
- /**
812
- * Immutable X API
813
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
814
- *
815
- * The version of the OpenAPI document: 3.0
816
- * Contact: support@immutable.com
817
- *
818
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
819
- * https://openapi-generator.tech
820
- * Do not edit the class manually.
821
- */
822
- /**
823
- *
824
- * @export
825
- * @interface CreateWithdrawalResponse
826
- */
827
- interface CreateWithdrawalResponse$1 {
828
- /**
829
- * Status of the withdrawal
830
- * @type {string}
831
- * @memberof CreateWithdrawalResponse
832
- */
833
- 'status': string;
834
- /**
835
- * Time of the withdrawal
836
- * @type {number}
837
- * @memberof CreateWithdrawalResponse
838
- */
839
- 'time': number;
840
- /**
841
- * ID of the withdrawal
842
- * @type {number}
843
- * @memberof CreateWithdrawalResponse
844
- */
845
- 'withdrawal_id': number;
846
- }
847
-
848
- /**
849
- * Immutable X API
850
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
851
- *
852
- * The version of the OpenAPI document: 3.0
853
- * Contact: support@immutable.com
854
- *
855
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
856
- * https://openapi-generator.tech
857
- * Do not edit the class manually.
858
- */
859
- /**
860
- *
861
- * @export
862
- * @interface GetSignableCancelOrderRequest
863
- */
864
- interface GetSignableCancelOrderRequest$1 {
865
- /**
866
- * ID of the order to be cancelled
867
- * @type {number}
868
- * @memberof GetSignableCancelOrderRequest
869
- */
870
- 'order_id': number;
871
- }
872
-
873
- /**
874
- * Immutable X API
875
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
876
- *
877
- * The version of the OpenAPI document: 3.0
878
- * Contact: support@immutable.com
879
- *
880
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
881
- * https://openapi-generator.tech
882
- * Do not edit the class manually.
883
- */
884
-
885
- /**
886
- *
887
- * @export
888
- * @interface GetSignableTradeRequest
889
- */
890
- interface GetSignableTradeRequest$1 {
891
- /**
892
- * ExpirationTimestamp in Unix time in hours. Note: will be rounded down to the nearest hour
893
- * @type {number}
894
- * @memberof GetSignableTradeRequest
895
- */
896
- 'expiration_timestamp'?: number;
897
- /**
898
- * Inclusion of either maker or taker fees
899
- * @type {Array<FeeEntry>}
900
- * @memberof GetSignableTradeRequest
901
- */
902
- 'fees'?: Array<FeeEntry$1>;
903
- /**
904
- * The ID of the maker order involved
905
- * @type {number}
906
- * @memberof GetSignableTradeRequest
907
- */
908
- 'order_id': number;
909
- /**
910
- * Ethereum address of the submitting user
911
- * @type {string}
912
- * @memberof GetSignableTradeRequest
913
- */
914
- 'user': string;
915
- }
916
-
917
- /**
918
- * Immutable X API
919
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
920
- *
921
- * The version of the OpenAPI document: 3.0
922
- * Contact: support@immutable.com
923
- *
924
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
925
- * https://openapi-generator.tech
926
- * Do not edit the class manually.
927
- */
928
- /**
929
- *
930
- * @export
931
- * @interface RegisterUserResponse
932
- */
933
- interface RegisterUserResponse$1 {
934
- /**
935
- * Immutable signature authorising registration
936
- * @type {string}
937
- * @memberof RegisterUserResponse
938
- */
939
- 'tx_hash': string;
940
- }
941
-
942
- /**
943
- * Parameter required to create an Order
944
- */
945
- interface UnsignedOrderRequest {
946
- /**
947
- * The amount of tokens that will be bought for this order
948
- */
949
- buy: TokenAmount;
950
- /**
951
- * The amount of tokens that will be sold for this order
952
- */
953
- sell: TokenAmount;
954
- /**
955
- * ExpirationTimestamp in Unix time. Note: will be rounded down to the nearest hour
956
- */
957
- expiration_timestamp?: number;
958
- /**
959
- * Inclusion of either maker or taker fees
960
- */
961
- fees?: Array<FeeEntry$1>;
962
- }
963
- /**
964
- * Parameter required to create a Transfer
965
- */
966
- declare type UnsignedTransferRequest = TokenAmount & {
967
- /**
968
- * Ethereum address of the receiving user
969
- */
970
- receiver: string;
971
- };
972
- /**
973
- * Parameter required to create a Transfer
974
- */
975
- declare type UnsignedExchangeTransferRequest$1 = ExchangeTokenAmount$1 & {
976
- /**
977
- * Ethereum address of the receiving user
978
- */
979
- receiver: string;
980
- /**
981
- * Exchange transaction ID
982
- */
983
- transactionID: string;
984
- };
985
-
986
- /**
987
- * Parameter required to create a batchNftTransfer
988
- */
989
- interface NftTransferDetails {
990
- /**
991
- * Ethereum address of the receiving user
992
- */
993
- receiver: string;
994
- /**
995
- * The token ID
996
- */
997
- tokenId: string;
998
- /**
999
- * The token contract address
1000
- */
1001
- tokenAddress: string;
1002
- }
1003
-
1004
- interface IMXProvider {
1005
- /**
1006
- * Get the Signer address
1007
- *
1008
- * @return {Promise<string>} Returns a promise that resolves with the signer's address
1009
- */
1010
- getAddress(): Promise<string>;
1011
- /**
1012
- * Register a User to Immutable X if they are not already registered
1013
- *
1014
- * @return {Promise<RegisterUserResponse>} Returns a promise that resolves with the user registration response
1015
- */
1016
- registerOffchain(): Promise<RegisterUserResponse$1>;
1017
- /**
1018
- * Checks if a User is registered off-chain
1019
- *
1020
- * @return {Promise<boolean>} Returns a promise that resolves with true if the User is registered with IMX, false otherwise
1021
- */
1022
- isRegisteredOffchain(): Promise<boolean>;
1023
- /**
1024
- * Checks if a User is registered on-chain
1025
- *
1026
- * @return {Promise<boolean>} Returns a promise that resolves with true if the User is registered, false otherwise
1027
- */
1028
- isRegisteredOnchain(): Promise<boolean>;
1029
- /**
1030
- * Create an Order
1031
- *
1032
- * @param {UnsignedOrderRequest} request The unsigned order request to create an order
1033
- * @return {Promise<CreateOrderResponse>} Returns a promise that resolves with the created Order
1034
- */
1035
- createOrder(request: UnsignedOrderRequest): Promise<CreateOrderResponse$1>;
1036
- /**
1037
- * Cancel an Order
1038
- *
1039
- * @param {GetSignableCancelOrderRequest} request The signable cancel order request
1040
- * @return {Promise<CancelOrderResponse>} Returns a promise that resolves with the cancelled Order
1041
- */
1042
- cancelOrder(request: GetSignableCancelOrderRequest$1): Promise<CancelOrderResponse$1>;
1043
- /**
1044
- * Create a Trade
1045
- *
1046
- * @param {GetSignableTradeRequest} request The signable trade request
1047
- * @return {Promise<CreateTradeResponse>} Returns a promise that resolves with the created Trade
1048
- */
1049
- createTrade(request: GetSignableTradeRequest$1): Promise<CreateTradeResponse$1>;
1050
- /**
1051
- * Create a new Transfer request
1052
- *
1053
- * @param {UnsignedTransferRequest} request The unsigned transfer request
1054
- * @return {Promise<CreateTransferResponseV1>} Returns a promise that resolves with the created Transfer
1055
- */
1056
- transfer(request: UnsignedTransferRequest): Promise<CreateTransferResponseV1$2>;
1057
- /**
1058
- * Create a batch of NFT transfer requests
1059
- *
1060
- * @param {Array<NftTransferDetails>} request An array of NFT transfer details
1061
- * @return {Promise<CreateTransferResponse>} Resolves a promise that resolves with the list of Transfer IDs
1062
- */
1063
- batchNftTransfer(request: Array<NftTransferDetails>): Promise<CreateTransferResponse>;
1064
- /**
1065
- * Create a new Exchange transaction
1066
- *
1067
- * @param {UnsignedExchangeTransferRequest} request The unsigned exchange transfer request
1068
- * @return {Promise<CreateTransferResponseV1>} Returns a promise that resolves with the created Exchange Transaction
1069
- */
1070
- exchangeTransfer(request: UnsignedExchangeTransferRequest$1): Promise<CreateTransferResponseV1$2>;
1071
- /**
1072
- * Deposit either ETH, ERC20 or ERC721 tokens
1073
- *
1074
- * @param {TokenAmount} request The token type amount in its corresponding unit
1075
- * @return {Promise<TransactionResponse>} Returns a promise that resolves with the transaction
1076
- */
1077
- deposit(deposit: TokenAmount): Promise<TransactionResponse>;
1078
- /**
1079
- * Create a Withdrawal
1080
- *
1081
- * @param {TokenAmount} request The token type amount in its corresponding unit
1082
- * @return {Promise<CreateWithdrawalResponse>} Returns a promise that resolves with the created Withdrawal
1083
- */
1084
- prepareWithdrawal(request: TokenAmount): Promise<CreateWithdrawalResponse$1>;
1085
- /**
1086
- * Completes a Withdrawal
1087
- *
1088
- * @param {string} starkPublicKey The stark public key
1089
- * @param {AnyToken} token The token to withdraw
1090
- * @return {Promise<TransactionResponse>} Returns a promise that resolves with the transaction
1091
- */
1092
- completeWithdrawal(starkPublicKey: string, token: AnyToken): Promise<TransactionResponse>;
1093
- }
1094
-
1095
- declare enum Environment {
1096
- PRODUCTION = "production",
1097
- SANDBOX = "sandbox"
1098
- }
1099
- declare class ImmutableConfiguration {
1100
- readonly environment: Environment;
1101
- readonly rateLimitingKey?: string;
1102
- readonly apiKey?: string;
1103
- readonly publishableKey?: string;
1104
- constructor(options: {
1105
- environment: Environment;
1106
- rateLimitingKey?: string;
1107
- apiKey?: string;
1108
- publishableKey?: string;
1109
- });
1110
- }
1111
- interface ModuleConfiguration<T> {
1112
- baseConfig: ImmutableConfiguration;
1113
- overrides?: T;
1114
- }
1115
-
1116
549
  // TypeScript Version: 4.7
1117
550
  type AxiosHeaderValue = AxiosHeaders | string | string[] | number | boolean | null;
1118
551
 
@@ -4614,7 +4047,7 @@ interface FeeInfo {
4614
4047
  * @export
4615
4048
  * @interface CreateTradeResponse
4616
4049
  */
4617
- interface CreateTradeResponse {
4050
+ interface CreateTradeResponse$1 {
4618
4051
  /**
4619
4052
  * Request ID as a reference for an asynchronous trade creation request
4620
4053
  * @type {string}
@@ -4807,6 +4240,31 @@ interface CreateTransferRequestV1 {
4807
4240
  'stark_signature': string;
4808
4241
  }
4809
4242
 
4243
+ /**
4244
+ * Immutable X API
4245
+ * Immutable X API
4246
+ *
4247
+ * The version of the OpenAPI document: 3.0.0
4248
+ * Contact: support@immutable.com
4249
+ *
4250
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
4251
+ * https://openapi-generator.tech
4252
+ * Do not edit the class manually.
4253
+ */
4254
+ /**
4255
+ *
4256
+ * @export
4257
+ * @interface CreateTransferResponse
4258
+ */
4259
+ interface CreateTransferResponse {
4260
+ /**
4261
+ * List of transfer IDs
4262
+ * @type {Array<number>}
4263
+ * @memberof CreateTransferResponse
4264
+ */
4265
+ 'transfer_ids': Array<number>;
4266
+ }
4267
+
4810
4268
  /**
4811
4269
  * Immutable X API
4812
4270
  * Immutable X API
@@ -6111,7 +5569,7 @@ interface Project {
6111
5569
  * @export
6112
5570
  * @interface GetSignableCancelOrderRequest
6113
5571
  */
6114
- interface GetSignableCancelOrderRequest {
5572
+ interface GetSignableCancelOrderRequest$1 {
6115
5573
  /**
6116
5574
  * ID of the order to be cancelled
6117
5575
  * @type {number}
@@ -6669,7 +6127,7 @@ interface GetSignableRegistrationResponse {
6669
6127
  * @export
6670
6128
  * @interface GetSignableTradeRequest
6671
6129
  */
6672
- interface GetSignableTradeRequest {
6130
+ interface GetSignableTradeRequest$1 {
6673
6131
  /**
6674
6132
  * ExpirationTimestamp in Unix time in hours. Note: will be rounded down to the nearest hour
6675
6133
  * @type {number}
@@ -12042,7 +11500,7 @@ interface OrdersApiGetSignableCancelOrderV3Request {
12042
11500
  * @type {GetSignableCancelOrderRequest}
12043
11501
  * @memberof OrdersApiGetSignableCancelOrderV3
12044
11502
  */
12045
- readonly getSignableCancelOrderRequest: GetSignableCancelOrderRequest;
11503
+ readonly getSignableCancelOrderRequest: GetSignableCancelOrderRequest$1;
12046
11504
  }
12047
11505
  /**
12048
11506
  * Request parameters for getSignableOrder operation in OrdersApi.
@@ -12632,7 +12090,7 @@ interface TradesApiGetSignableTradeRequest {
12632
12090
  * @type {GetSignableTradeRequest}
12633
12091
  * @memberof TradesApiGetSignableTrade
12634
12092
  */
12635
- readonly getSignableTradeRequest: GetSignableTradeRequest;
12093
+ readonly getSignableTradeRequest: GetSignableTradeRequest$1;
12636
12094
  }
12637
12095
  /**
12638
12096
  * Request parameters for getTradeV3 operation in TradesApi.
@@ -12735,7 +12193,7 @@ declare class TradesApi$1 extends BaseAPI {
12735
12193
  * @throws {RequiredError}
12736
12194
  * @memberof TradesApi
12737
12195
  */
12738
- createTradeV3(requestParameters: TradesApiCreateTradeV3Request, options?: AxiosRequestConfig): Promise<AxiosResponse<CreateTradeResponse, any>>;
12196
+ createTradeV3(requestParameters: TradesApiCreateTradeV3Request, options?: AxiosRequestConfig): Promise<AxiosResponse<CreateTradeResponse$1, any>>;
12739
12197
  /**
12740
12198
  * Generate a signable trade message (V3)
12741
12199
  * @summary Generate a signable trade message (V3)
@@ -13486,6 +12944,27 @@ declare class ImxApiClients {
13486
12944
  constructor(config: ImmutableAPIConfiguration);
13487
12945
  }
13488
12946
 
12947
+ declare enum Environment {
12948
+ PRODUCTION = "production",
12949
+ SANDBOX = "sandbox"
12950
+ }
12951
+ declare class ImmutableConfiguration {
12952
+ readonly environment: Environment;
12953
+ readonly rateLimitingKey?: string;
12954
+ readonly apiKey?: string;
12955
+ readonly publishableKey?: string;
12956
+ constructor(options: {
12957
+ environment: Environment;
12958
+ rateLimitingKey?: string;
12959
+ apiKey?: string;
12960
+ publishableKey?: string;
12961
+ });
12962
+ }
12963
+ interface ModuleConfiguration<T> {
12964
+ baseConfig: ImmutableConfiguration;
12965
+ overrides?: T;
12966
+ }
12967
+
13489
12968
  declare class ApiConfiguration extends Configuration {
13490
12969
  }
13491
12970
  interface EthConfiguration {
@@ -13552,6 +13031,14 @@ interface ERC20Token {
13552
13031
  type: 'ERC20';
13553
13032
  tokenAddress: string;
13554
13033
  }
13034
+ /**
13035
+ * An ERC721 token
13036
+ */
13037
+ interface ERC721Token {
13038
+ type: 'ERC721';
13039
+ tokenId: string;
13040
+ tokenAddress: string;
13041
+ }
13555
13042
  /**
13556
13043
  * An ETH token
13557
13044
  */
@@ -13576,11 +13063,49 @@ interface ERC20Amount extends ERC20Token {
13576
13063
  */
13577
13064
  amount: string;
13578
13065
  }
13066
+ /**
13067
+ * Union type that represents all token types
13068
+ */
13069
+ type AnyToken = ETHToken | ERC721Token | ERC20Token;
13070
+ /**
13071
+ * Union type that represents all token type amounts
13072
+ */
13073
+ type TokenAmount = ETHAmount | ERC20Amount | ERC721Token;
13579
13074
  /**
13580
13075
  * Union type that represents exchange token type amounts
13581
13076
  */
13582
13077
  type ExchangeTokenAmount = ETHAmount | ERC20Amount;
13583
13078
 
13079
+ /**
13080
+ * Parameter required to create an Order
13081
+ */
13082
+ interface UnsignedOrderRequest {
13083
+ /**
13084
+ * The amount of tokens that will be bought for this order
13085
+ */
13086
+ buy: TokenAmount;
13087
+ /**
13088
+ * The amount of tokens that will be sold for this order
13089
+ */
13090
+ sell: TokenAmount;
13091
+ /**
13092
+ * ExpirationTimestamp in Unix time. Note: will be rounded down to the nearest hour
13093
+ */
13094
+ expiration_timestamp?: number;
13095
+ /**
13096
+ * Inclusion of either maker or taker fees
13097
+ */
13098
+ fees?: Array<FeeEntry>;
13099
+ }
13100
+ /**
13101
+ * Parameter required to create a Transfer
13102
+ */
13103
+ type UnsignedTransferRequest = TokenAmount & {
13104
+ /**
13105
+ * Ethereum address of the receiving user
13106
+ */
13107
+ receiver: string;
13108
+ };
13584
13109
  /**
13585
13110
  * Parameter required to Mint tokens
13586
13111
  */
@@ -13599,6 +13124,24 @@ type UnsignedExchangeTransferRequest = ExchangeTokenAmount & {
13599
13124
  transactionID: string;
13600
13125
  };
13601
13126
 
13127
+ /**
13128
+ * Parameter required to create a batchNftTransfer
13129
+ */
13130
+ interface NftTransferDetails {
13131
+ /**
13132
+ * Ethereum address of the receiving user
13133
+ */
13134
+ receiver: string;
13135
+ /**
13136
+ * The token ID
13137
+ */
13138
+ tokenId: string;
13139
+ /**
13140
+ * The token contract address
13141
+ */
13142
+ tokenAddress: string;
13143
+ }
13144
+
13602
13145
  /**
13603
13146
  * Need to specifically export the classes and interfaces from the generated
13604
13147
  * clients imx object for rollup to bundle them correctly.
@@ -13679,6 +13222,8 @@ interface CreatePrimarySaleNotFoundBody extends CreatePrimarySaleNotFoundBody$1
13679
13222
  }
13680
13223
  interface CreatePrimarySaleUnauthorizedBody extends CreatePrimarySaleUnauthorizedBody$1 {
13681
13224
  }
13225
+ interface CreateTradeResponse extends CreateTradeResponse$1 {
13226
+ }
13682
13227
  interface CreateTransferResponseV1 extends CreateTransferResponseV1$1 {
13683
13228
  }
13684
13229
  interface DepositsApiGetDepositRequest extends DepositsApiGetDepositRequest$1 {
@@ -13691,6 +13236,10 @@ interface ExchangesApiGetExchangeRequest extends ExchangesApiGetExchangeRequest$
13691
13236
  }
13692
13237
  interface ExchangesApiGetExchangesRequest extends ExchangesApiGetExchangesRequest$1 {
13693
13238
  }
13239
+ interface GetSignableCancelOrderRequest extends GetSignableCancelOrderRequest$1 {
13240
+ }
13241
+ interface GetSignableTradeRequest extends GetSignableTradeRequest$1 {
13242
+ }
13694
13243
  interface MetadataApiGetMetadataSchemaRequest extends MetadataApiGetMetadataSchemaRequest$1 {
13695
13244
  }
13696
13245
  interface MetadataSchemaRequest extends MetadataSchemaRequest$1 {
@@ -14128,6 +13677,97 @@ declare class IMXClient {
14128
13677
  rejectPrimarySale(ethSigner: Signer, primarySaleId: number): Promise<RejectPrimarySaleBadRequestBody | RejectPrimarySaleForbiddenBody | RejectPrimarySaleNotFoundBody | RejectPrimarySaleOKBody | RejectPrimarySaleUnauthorizedBody>;
14129
13678
  }
14130
13679
 
13680
+ interface IMXProvider {
13681
+ /**
13682
+ * Get the Signer address
13683
+ *
13684
+ * @return {Promise<string>} Returns a promise that resolves with the signer's address
13685
+ */
13686
+ getAddress(): Promise<string>;
13687
+ /**
13688
+ * Register a User to Immutable X if they are not already registered
13689
+ *
13690
+ * @return {Promise<imx.RegisterUserResponse>} Returns a promise that resolves with the user registration response
13691
+ */
13692
+ registerOffchain(): Promise<RegisterUserResponse>;
13693
+ /**
13694
+ * Checks if a User is registered off-chain
13695
+ *
13696
+ * @return {Promise<boolean>} Returns a promise that resolves with true if the User is registered with IMX, false otherwise
13697
+ */
13698
+ isRegisteredOffchain(): Promise<boolean>;
13699
+ /**
13700
+ * Checks if a User is registered on-chain
13701
+ *
13702
+ * @return {Promise<boolean>} Returns a promise that resolves with true if the User is registered, false otherwise
13703
+ */
13704
+ isRegisteredOnchain(): Promise<boolean>;
13705
+ /**
13706
+ * Create an Order
13707
+ *
13708
+ * @param {UnsignedOrderRequest} request The unsigned order request to create an order
13709
+ * @return {Promise<CreateOrderResponse>} Returns a promise that resolves with the created Order
13710
+ */
13711
+ createOrder(request: UnsignedOrderRequest): Promise<CreateOrderResponse>;
13712
+ /**
13713
+ * Cancel an Order
13714
+ *
13715
+ * @param {GetSignableCancelOrderRequest} request The signable cancel order request
13716
+ * @return {Promise<CancelOrderResponse>} Returns a promise that resolves with the cancelled Order
13717
+ */
13718
+ cancelOrder(request: GetSignableCancelOrderRequest): Promise<CancelOrderResponse>;
13719
+ /**
13720
+ * Create a Trade
13721
+ *
13722
+ * @param {GetSignableTradeRequest} request The signable trade request
13723
+ * @return {Promise<CreateTradeResponse>} Returns a promise that resolves with the created Trade
13724
+ */
13725
+ createTrade(request: GetSignableTradeRequest): Promise<CreateTradeResponse>;
13726
+ /**
13727
+ * Create a new Transfer request
13728
+ *
13729
+ * @param {UnsignedTransferRequest} request The unsigned transfer request
13730
+ * @return {Promise<imx.CreateTransferResponseV1>} Returns a promise that resolves with the created Transfer
13731
+ */
13732
+ transfer(request: UnsignedTransferRequest): Promise<CreateTransferResponseV1$1>;
13733
+ /**
13734
+ * Create a batch of NFT transfer requests
13735
+ *
13736
+ * @param {Array<NftTransferDetails>} request An array of NFT transfer details
13737
+ * @return {Promise<CreateTransferResponse>} Resolves a promise that resolves with the list of Transfer IDs
13738
+ */
13739
+ batchNftTransfer(request: Array<NftTransferDetails>): Promise<CreateTransferResponse>;
13740
+ /**
13741
+ * Create a new Exchange transaction
13742
+ *
13743
+ * @param {UnsignedExchangeTransferRequest} request The unsigned exchange transfer request
13744
+ * @return {Promise<imx.CreateTransferResponseV1>} Returns a promise that resolves with the created Exchange Transaction
13745
+ */
13746
+ exchangeTransfer(request: UnsignedExchangeTransferRequest): Promise<CreateTransferResponseV1$1>;
13747
+ /**
13748
+ * Deposit either ETH, ERC20 or ERC721 tokens
13749
+ *
13750
+ * @param {TokenAmount} request The token type amount in its corresponding unit
13751
+ * @return {Promise<TransactionResponse>} Returns a promise that resolves with the transaction
13752
+ */
13753
+ deposit(deposit: TokenAmount): Promise<TransactionResponse>;
13754
+ /**
13755
+ * Create a Withdrawal
13756
+ *
13757
+ * @param {TokenAmount} request The token type amount in its corresponding unit
13758
+ * @return {Promise<CreateWithdrawalResponse>} Returns a promise that resolves with the created Withdrawal
13759
+ */
13760
+ prepareWithdrawal(request: TokenAmount): Promise<CreateWithdrawalResponse>;
13761
+ /**
13762
+ * Completes a Withdrawal
13763
+ *
13764
+ * @param {string} starkPublicKey The stark public key
13765
+ * @param {AnyToken} token The token to withdraw
13766
+ * @return {Promise<TransactionResponse>} Returns a promise that resolves with the transaction
13767
+ */
13768
+ completeWithdrawal(starkPublicKey: string, token: AnyToken): Promise<TransactionResponse>;
13769
+ }
13770
+
14131
13771
  type UserProfile = {
14132
13772
  email?: string;
14133
13773
  nickname?: string;