@imtbl/sdk 1.26.2-alpha.2 → 1.26.3
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/blockchain_data.d.ts +58 -2
- package/dist/blockchain_data.js +158 -108
- package/dist/browser/checkout/sdk.js +4 -4
- package/dist/checkout.d.ts +30 -95
- package/dist/checkout.js +160 -110
- package/dist/config.js +1 -1
- package/dist/index.browser.js +4 -4
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +195 -138
- package/dist/index.d.ts +88 -97
- package/dist/index.js +195 -138
- package/dist/orderbook.js +1 -1
- package/dist/passport.d.ts +30 -95
- package/dist/passport.js +45 -118
- package/dist/x.d.ts +30 -95
- package/dist/x.js +24 -24
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -4980,12 +4980,6 @@ interface GetPrimarySaleOKBody {
|
|
|
4980
4980
|
* @interface Project
|
|
4981
4981
|
*/
|
|
4982
4982
|
interface Project {
|
|
4983
|
-
/**
|
|
4984
|
-
* API key for the project. This is only for zkevm project. This API is not for increasing rate limit yet.
|
|
4985
|
-
* @type {string}
|
|
4986
|
-
* @memberof Project
|
|
4987
|
-
*/
|
|
4988
|
-
'api_key'?: string;
|
|
4989
4983
|
/**
|
|
4990
4984
|
* The project ChainType
|
|
4991
4985
|
* @type {string}
|
|
@@ -4993,73 +4987,13 @@ interface Project {
|
|
|
4993
4987
|
*/
|
|
4994
4988
|
'chain_type'?: string;
|
|
4995
4989
|
/**
|
|
4996
|
-
* The
|
|
4997
|
-
* @type {string}
|
|
4998
|
-
* @memberof Project
|
|
4999
|
-
*/
|
|
5000
|
-
'collection_limit_expires_at': string;
|
|
5001
|
-
/**
|
|
5002
|
-
* The total monthly collection limit
|
|
5003
|
-
* @type {number}
|
|
5004
|
-
* @memberof Project
|
|
5005
|
-
*/
|
|
5006
|
-
'collection_monthly_limit': number;
|
|
5007
|
-
/**
|
|
5008
|
-
* The number of collection remaining in the current period
|
|
5009
|
-
* @type {number}
|
|
5010
|
-
* @memberof Project
|
|
5011
|
-
*/
|
|
5012
|
-
'collection_remaining': number;
|
|
5013
|
-
/**
|
|
5014
|
-
* The company name
|
|
5015
|
-
* @type {string}
|
|
5016
|
-
* @memberof Project
|
|
5017
|
-
*/
|
|
5018
|
-
'company_name': string;
|
|
5019
|
-
/**
|
|
5020
|
-
* The project contact email (must be registered as a developer account with Immutable at https://hub.immutable.com)
|
|
4990
|
+
* The project group ID
|
|
5021
4991
|
* @type {string}
|
|
5022
4992
|
* @memberof Project
|
|
5023
4993
|
*/
|
|
5024
|
-
'
|
|
5025
|
-
/**
|
|
5026
|
-
* The environment ID
|
|
5027
|
-
* @type {string}
|
|
5028
|
-
* @memberof Project
|
|
5029
|
-
*/
|
|
5030
|
-
'environment_id'?: string;
|
|
5031
|
-
/**
|
|
5032
|
-
* The user environment name correlating to this project
|
|
5033
|
-
* @type {string}
|
|
5034
|
-
* @memberof Project
|
|
5035
|
-
*/
|
|
5036
|
-
'environment_name'?: string;
|
|
5037
|
-
/**
|
|
5038
|
-
* The project ID
|
|
5039
|
-
* @type {number}
|
|
5040
|
-
* @memberof Project
|
|
5041
|
-
*/
|
|
5042
|
-
'id': number;
|
|
5043
|
-
/**
|
|
5044
|
-
* The current period expiry date for mint operation limit
|
|
5045
|
-
* @type {string}
|
|
5046
|
-
* @memberof Project
|
|
5047
|
-
*/
|
|
5048
|
-
'mint_limit_expires_at': string;
|
|
5049
|
-
/**
|
|
5050
|
-
* The total monthly mint operation limit
|
|
5051
|
-
* @type {number}
|
|
5052
|
-
* @memberof Project
|
|
5053
|
-
*/
|
|
5054
|
-
'mint_monthly_limit': number;
|
|
5055
|
-
/**
|
|
5056
|
-
* The number of mint operation remaining in the current period
|
|
5057
|
-
* @type {number}
|
|
5058
|
-
* @memberof Project
|
|
5059
|
-
*/
|
|
5060
|
-
'mint_remaining': number;
|
|
4994
|
+
'id': string;
|
|
5061
4995
|
/**
|
|
5062
|
-
* The project name
|
|
4996
|
+
* The project group name
|
|
5063
4997
|
* @type {string}
|
|
5064
4998
|
* @memberof Project
|
|
5065
4999
|
*/
|
|
@@ -5070,24 +5004,6 @@ interface Project {
|
|
|
5070
5004
|
* @memberof Project
|
|
5071
5005
|
*/
|
|
5072
5006
|
'org_id'?: string;
|
|
5073
|
-
/**
|
|
5074
|
-
* Project group id
|
|
5075
|
-
* @type {string}
|
|
5076
|
-
* @memberof Project
|
|
5077
|
-
*/
|
|
5078
|
-
'project_group_id'?: string;
|
|
5079
|
-
/**
|
|
5080
|
-
* The public publishable_key for the project
|
|
5081
|
-
* @type {string}
|
|
5082
|
-
* @memberof Project
|
|
5083
|
-
*/
|
|
5084
|
-
'publishable_key'?: string;
|
|
5085
|
-
/**
|
|
5086
|
-
* The public publishable_key created time
|
|
5087
|
-
* @type {string}
|
|
5088
|
-
* @memberof Project
|
|
5089
|
-
*/
|
|
5090
|
-
'publishable_key_created_at'?: string;
|
|
5091
5007
|
}
|
|
5092
5008
|
|
|
5093
5009
|
/**
|
|
@@ -6510,7 +6426,7 @@ interface GetSignableWithdrawalResponseV2 {
|
|
|
6510
6426
|
*/
|
|
6511
6427
|
'asset_id': string;
|
|
6512
6428
|
/**
|
|
6513
|
-
*
|
|
6429
|
+
* Expiration timestamp for this withdrawal
|
|
6514
6430
|
* @type {number}
|
|
6515
6431
|
* @memberof GetSignableWithdrawalResponseV2
|
|
6516
6432
|
*/
|
|
@@ -6811,6 +6727,25 @@ interface ListDepositsResponse {
|
|
|
6811
6727
|
*/
|
|
6812
6728
|
type MintToken = Token$2;
|
|
6813
6729
|
|
|
6730
|
+
/**
|
|
6731
|
+
* Immutable X API
|
|
6732
|
+
* Immutable X API
|
|
6733
|
+
*
|
|
6734
|
+
* The version of the OpenAPI document: 3.0.0
|
|
6735
|
+
* Contact: support@immutable.com
|
|
6736
|
+
*
|
|
6737
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
6738
|
+
* https://openapi-generator.tech
|
|
6739
|
+
* Do not edit the class manually.
|
|
6740
|
+
*/
|
|
6741
|
+
|
|
6742
|
+
/**
|
|
6743
|
+
* @type MintTokenOAIGen
|
|
6744
|
+
* Details of the asset which has been minted
|
|
6745
|
+
* @export
|
|
6746
|
+
*/
|
|
6747
|
+
type MintTokenOAIGen = MintToken;
|
|
6748
|
+
|
|
6814
6749
|
/**
|
|
6815
6750
|
* Immutable X API
|
|
6816
6751
|
* Immutable X API
|
|
@@ -6849,10 +6784,10 @@ interface Mint$2 {
|
|
|
6849
6784
|
'timestamp': string;
|
|
6850
6785
|
/**
|
|
6851
6786
|
*
|
|
6852
|
-
* @type {
|
|
6787
|
+
* @type {MintTokenOAIGen}
|
|
6853
6788
|
* @memberof Mint
|
|
6854
6789
|
*/
|
|
6855
|
-
'token':
|
|
6790
|
+
'token': MintTokenOAIGen;
|
|
6856
6791
|
/**
|
|
6857
6792
|
* Sequential ID of transaction in Immutable X
|
|
6858
6793
|
* @type {number}
|
|
@@ -12504,8 +12439,8 @@ interface WithdrawalsApiListWithdrawalsRequest$1 {
|
|
|
12504
12439
|
*/
|
|
12505
12440
|
declare class WithdrawalsApi$1 extends BaseAPI {
|
|
12506
12441
|
/**
|
|
12507
|
-
* Creates a withdrawal. Use https://docs.x.immutable.com/reference
|
|
12508
|
-
* @summary Creates a withdrawal
|
|
12442
|
+
* Creates a withdrawal. Use https://docs.x.immutable.com/reference/#/operations/getSignableWithdrawal to get request body params. This endpoint will be deprecated once StarkEx contract gets upgraded to v4, check https://docs.immutable.com/x/reference/#/operations/createWithdrawalV2.
|
|
12443
|
+
* @summary Creates a withdrawal
|
|
12509
12444
|
* @param {WithdrawalsApiCreateWithdrawalRequest} requestParameters Request parameters.
|
|
12510
12445
|
* @param {*} [options] Override http request option.
|
|
12511
12446
|
* @throws {RequiredError}
|
|
@@ -12513,8 +12448,8 @@ declare class WithdrawalsApi$1 extends BaseAPI {
|
|
|
12513
12448
|
*/
|
|
12514
12449
|
createWithdrawal(requestParameters: WithdrawalsApiCreateWithdrawalRequest, options?: AxiosRequestConfig): Promise<AxiosResponse<CreateWithdrawalResponse, any>>;
|
|
12515
12450
|
/**
|
|
12516
|
-
* Creates a withdrawal. Use https://docs.
|
|
12517
|
-
* @summary Creates a withdrawal of a token for
|
|
12451
|
+
* Creates a withdrawal. Use https://docs.immutable.com/x/reference/#/operations/getSignableWithdrawalV2 to get request body params.
|
|
12452
|
+
* @summary Creates a withdrawal of a token for when StarkEx contract that is higher than v3
|
|
12518
12453
|
* @param {WithdrawalsApiCreateWithdrawalV2Request} requestParameters Request parameters.
|
|
12519
12454
|
* @param {*} [options] Override http request option.
|
|
12520
12455
|
* @throws {RequiredError}
|
|
@@ -12522,7 +12457,7 @@ declare class WithdrawalsApi$1 extends BaseAPI {
|
|
|
12522
12457
|
*/
|
|
12523
12458
|
createWithdrawalV2(requestParameters: WithdrawalsApiCreateWithdrawalV2Request, options?: AxiosRequestConfig): Promise<AxiosResponse<CreateWithdrawalResponse, any>>;
|
|
12524
12459
|
/**
|
|
12525
|
-
* Gets details of a signable withdrawal
|
|
12460
|
+
* Gets details of a signable withdrawal. This endpoint will be deprecated once StarkEx contract gets upgraded to v4, check https://docs.immutable.com/x/reference/#/operations/getSignableWithdrawalV2.
|
|
12526
12461
|
* @summary Gets details of a signable withdrawal
|
|
12527
12462
|
* @param {WithdrawalsApiGetSignableWithdrawalRequest} requestParameters Request parameters.
|
|
12528
12463
|
* @param {*} [options] Override http request option.
|
|
@@ -13368,6 +13303,31 @@ interface Activity$1 {
|
|
|
13368
13303
|
'blockchain_metadata': BlockchainMetadata$1 | null;
|
|
13369
13304
|
}
|
|
13370
13305
|
|
|
13306
|
+
/**
|
|
13307
|
+
* Immutable zkEVM API
|
|
13308
|
+
* Immutable Multi Rollup API
|
|
13309
|
+
*
|
|
13310
|
+
* The version of the OpenAPI document: 1.0.0
|
|
13311
|
+
* Contact: support@immutable.com
|
|
13312
|
+
*
|
|
13313
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
13314
|
+
* https://openapi-generator.tech
|
|
13315
|
+
* Do not edit the class manually.
|
|
13316
|
+
*/
|
|
13317
|
+
/**
|
|
13318
|
+
* The verification status for a given contract
|
|
13319
|
+
* @export
|
|
13320
|
+
* @enum {string}
|
|
13321
|
+
*/
|
|
13322
|
+
declare const AssetVerificationStatus: {
|
|
13323
|
+
readonly Pending: "pending";
|
|
13324
|
+
readonly Verified: "verified";
|
|
13325
|
+
readonly Unverified: "unverified";
|
|
13326
|
+
readonly Spam: "spam";
|
|
13327
|
+
readonly Inactive: "inactive";
|
|
13328
|
+
};
|
|
13329
|
+
type AssetVerificationStatus = typeof AssetVerificationStatus[keyof typeof AssetVerificationStatus];
|
|
13330
|
+
|
|
13371
13331
|
/**
|
|
13372
13332
|
* Immutable zkEVM API
|
|
13373
13333
|
* Immutable Multi Rollup API
|
|
@@ -13511,6 +13471,12 @@ interface Collection$1 {
|
|
|
13511
13471
|
* @memberof Collection
|
|
13512
13472
|
*/
|
|
13513
13473
|
'base_uri': string | null;
|
|
13474
|
+
/**
|
|
13475
|
+
*
|
|
13476
|
+
* @type {AssetVerificationStatus}
|
|
13477
|
+
* @memberof Collection
|
|
13478
|
+
*/
|
|
13479
|
+
'verification_status': AssetVerificationStatus;
|
|
13514
13480
|
/**
|
|
13515
13481
|
* When the collection was first indexed
|
|
13516
13482
|
* @type {string}
|
|
@@ -13735,7 +13701,7 @@ interface MintAsset$1 {
|
|
|
13735
13701
|
*/
|
|
13736
13702
|
'owner_address': string;
|
|
13737
13703
|
/**
|
|
13738
|
-
* An `uint256` token id as string.
|
|
13704
|
+
* An optional `uint256` token id as string. It is recommended to omit token_id for more efficient minting
|
|
13739
13705
|
* @type {string}
|
|
13740
13706
|
* @memberof MintAsset
|
|
13741
13707
|
*/
|
|
@@ -14323,6 +14289,12 @@ interface Token$1 {
|
|
|
14323
14289
|
* @memberof Token
|
|
14324
14290
|
*/
|
|
14325
14291
|
'name': string | null;
|
|
14292
|
+
/**
|
|
14293
|
+
*
|
|
14294
|
+
* @type {AssetVerificationStatus}
|
|
14295
|
+
* @memberof Token
|
|
14296
|
+
*/
|
|
14297
|
+
'verification_status': AssetVerificationStatus;
|
|
14326
14298
|
/**
|
|
14327
14299
|
* When the collection was last updated
|
|
14328
14300
|
* @type {string}
|
|
@@ -14591,11 +14563,18 @@ interface NFTOwner$1 {
|
|
|
14591
14563
|
*/
|
|
14592
14564
|
'account_address': string;
|
|
14593
14565
|
/**
|
|
14594
|
-
* The quantity of owned tokens (uint256 as string)
|
|
14566
|
+
* (deprecated - use balance instead) The quantity of owned tokens (uint256 as string)
|
|
14595
14567
|
* @type {string}
|
|
14596
14568
|
* @memberof NFTOwner
|
|
14569
|
+
* @deprecated
|
|
14597
14570
|
*/
|
|
14598
14571
|
'quantity': string;
|
|
14572
|
+
/**
|
|
14573
|
+
* The amount of owned tokens (uint256 as string)
|
|
14574
|
+
* @type {string}
|
|
14575
|
+
* @memberof NFTOwner
|
|
14576
|
+
*/
|
|
14577
|
+
'balance': string;
|
|
14599
14578
|
/**
|
|
14600
14579
|
* When the NFT owner was last updated
|
|
14601
14580
|
* @type {string}
|
|
@@ -15144,6 +15123,12 @@ interface CollectionsApiListCollectionsRequest$1 {
|
|
|
15144
15123
|
* @memberof CollectionsApiListCollections
|
|
15145
15124
|
*/
|
|
15146
15125
|
readonly contractAddress?: Array<string>;
|
|
15126
|
+
/**
|
|
15127
|
+
* List of verification status to filter by
|
|
15128
|
+
* @type {Array<AssetVerificationStatus>}
|
|
15129
|
+
* @memberof CollectionsApiListCollections
|
|
15130
|
+
*/
|
|
15131
|
+
readonly verificationStatus?: Array<AssetVerificationStatus>;
|
|
15147
15132
|
/**
|
|
15148
15133
|
* Datetime to use as the oldest updated timestamp
|
|
15149
15134
|
* @type {string}
|
|
@@ -15700,6 +15685,12 @@ interface TokensApiListERC20TokensRequest {
|
|
|
15700
15685
|
* @memberof TokensApiListERC20Tokens
|
|
15701
15686
|
*/
|
|
15702
15687
|
readonly fromUpdatedAt?: string;
|
|
15688
|
+
/**
|
|
15689
|
+
* List of verification status to filter by
|
|
15690
|
+
* @type {Array<AssetVerificationStatus>}
|
|
15691
|
+
* @memberof TokensApiListERC20Tokens
|
|
15692
|
+
*/
|
|
15693
|
+
readonly verificationStatus?: Array<AssetVerificationStatus>;
|
|
15703
15694
|
/**
|
|
15704
15695
|
* Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
15705
15696
|
* @type {string}
|