@imtbl/sdk 0.35.7-alpha → 0.35.8
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 +694 -155
- package/dist/blockchain_data.js +624 -131
- package/dist/browser/checkout/sdk.js +6 -6
- package/dist/checkout.js +625 -132
- package/dist/immutablex_client.js +1 -1
- package/dist/index.browser.js +10 -10
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +627 -134
- package/dist/index.d.ts +694 -155
- package/dist/index.js +627 -134
- package/dist/passport.js +256 -98
- package/package.json +1 -1
package/dist/checkout.js
CHANGED
|
@@ -17727,15 +17727,13 @@ const ActivitiesApiAxiosParamCreator = function (configuration) {
|
|
|
17727
17727
|
* @param {string} [tokenId] An `uint256` token id as string
|
|
17728
17728
|
* @param {string} [accountAddress] The account address activity contains
|
|
17729
17729
|
* @param {ActivityType} [activityType] The activity type
|
|
17730
|
-
* @param {string} [fromIndexedAt] From indexed at including given date
|
|
17731
|
-
* @param {string} [toIndexedAt] To indexed at including given date
|
|
17732
17730
|
* @param {string} [transactionHash] The transaction hash of activity
|
|
17733
17731
|
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
17734
17732
|
* @param {number} [pageSize] Maximum number of items to return
|
|
17735
17733
|
* @param {*} [options] Override http request option.
|
|
17736
17734
|
* @throws {RequiredError}
|
|
17737
17735
|
*/
|
|
17738
|
-
listActivities: async (chainName, contractAddress, tokenId, accountAddress, activityType,
|
|
17736
|
+
listActivities: async (chainName, contractAddress, tokenId, accountAddress, activityType, transactionHash, pageCursor, pageSize, options = {}) => {
|
|
17739
17737
|
// verify required parameter 'chainName' is not null or undefined
|
|
17740
17738
|
assertParamExists('listActivities', 'chainName', chainName);
|
|
17741
17739
|
const localVarPath = `/v1/chains/{chain_name}/activities`
|
|
@@ -17761,16 +17759,6 @@ const ActivitiesApiAxiosParamCreator = function (configuration) {
|
|
|
17761
17759
|
if (activityType !== undefined) {
|
|
17762
17760
|
localVarQueryParameter['activity_type'] = activityType;
|
|
17763
17761
|
}
|
|
17764
|
-
if (fromIndexedAt !== undefined) {
|
|
17765
|
-
localVarQueryParameter['from_indexed_at'] = (fromIndexedAt instanceof Date) ?
|
|
17766
|
-
fromIndexedAt.toISOString() :
|
|
17767
|
-
fromIndexedAt;
|
|
17768
|
-
}
|
|
17769
|
-
if (toIndexedAt !== undefined) {
|
|
17770
|
-
localVarQueryParameter['to_indexed_at'] = (toIndexedAt instanceof Date) ?
|
|
17771
|
-
toIndexedAt.toISOString() :
|
|
17772
|
-
toIndexedAt;
|
|
17773
|
-
}
|
|
17774
17762
|
if (transactionHash !== undefined) {
|
|
17775
17763
|
localVarQueryParameter['transaction_hash'] = transactionHash;
|
|
17776
17764
|
}
|
|
@@ -17788,6 +17776,61 @@ const ActivitiesApiAxiosParamCreator = function (configuration) {
|
|
|
17788
17776
|
options: localVarRequestOptions,
|
|
17789
17777
|
};
|
|
17790
17778
|
},
|
|
17779
|
+
/**
|
|
17780
|
+
* List activities sorted by updated_at timestamp ascending, useful for time based data replication
|
|
17781
|
+
* @summary List history of activities
|
|
17782
|
+
* @param {string} chainName The name of chain
|
|
17783
|
+
* @param {string} fromUpdatedAt From indexed at including given date
|
|
17784
|
+
* @param {string} [toUpdatedAt] To indexed at including given date
|
|
17785
|
+
* @param {string} [contractAddress] The contract address of the collection
|
|
17786
|
+
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
17787
|
+
* @param {number} [pageSize] Maximum number of items to return
|
|
17788
|
+
* @param {*} [options] Override http request option.
|
|
17789
|
+
* @throws {RequiredError}
|
|
17790
|
+
*/
|
|
17791
|
+
listActivityHistory: async (chainName, fromUpdatedAt, toUpdatedAt, contractAddress, pageCursor, pageSize, options = {}) => {
|
|
17792
|
+
// verify required parameter 'chainName' is not null or undefined
|
|
17793
|
+
assertParamExists('listActivityHistory', 'chainName', chainName);
|
|
17794
|
+
// verify required parameter 'fromUpdatedAt' is not null or undefined
|
|
17795
|
+
assertParamExists('listActivityHistory', 'fromUpdatedAt', fromUpdatedAt);
|
|
17796
|
+
const localVarPath = `/v1/chains/{chain_name}/activity-history`
|
|
17797
|
+
.replace(`{${"chain_name"}}`, encodeURIComponent(String(chainName)));
|
|
17798
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
17799
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
17800
|
+
let baseOptions;
|
|
17801
|
+
if (configuration) {
|
|
17802
|
+
baseOptions = configuration.baseOptions;
|
|
17803
|
+
}
|
|
17804
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
17805
|
+
const localVarHeaderParameter = {};
|
|
17806
|
+
const localVarQueryParameter = {};
|
|
17807
|
+
if (fromUpdatedAt !== undefined) {
|
|
17808
|
+
localVarQueryParameter['from_updated_at'] = (fromUpdatedAt instanceof Date) ?
|
|
17809
|
+
fromUpdatedAt.toISOString() :
|
|
17810
|
+
fromUpdatedAt;
|
|
17811
|
+
}
|
|
17812
|
+
if (toUpdatedAt !== undefined) {
|
|
17813
|
+
localVarQueryParameter['to_updated_at'] = (toUpdatedAt instanceof Date) ?
|
|
17814
|
+
toUpdatedAt.toISOString() :
|
|
17815
|
+
toUpdatedAt;
|
|
17816
|
+
}
|
|
17817
|
+
if (contractAddress !== undefined) {
|
|
17818
|
+
localVarQueryParameter['contract_address'] = contractAddress;
|
|
17819
|
+
}
|
|
17820
|
+
if (pageCursor !== undefined) {
|
|
17821
|
+
localVarQueryParameter['page_cursor'] = pageCursor;
|
|
17822
|
+
}
|
|
17823
|
+
if (pageSize !== undefined) {
|
|
17824
|
+
localVarQueryParameter['page_size'] = pageSize;
|
|
17825
|
+
}
|
|
17826
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
17827
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17828
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
17829
|
+
return {
|
|
17830
|
+
url: toPathString(localVarUrlObj),
|
|
17831
|
+
options: localVarRequestOptions,
|
|
17832
|
+
};
|
|
17833
|
+
},
|
|
17791
17834
|
};
|
|
17792
17835
|
};
|
|
17793
17836
|
/**
|
|
@@ -17817,16 +17860,30 @@ const ActivitiesApiFp = function (configuration) {
|
|
|
17817
17860
|
* @param {string} [tokenId] An `uint256` token id as string
|
|
17818
17861
|
* @param {string} [accountAddress] The account address activity contains
|
|
17819
17862
|
* @param {ActivityType} [activityType] The activity type
|
|
17820
|
-
* @param {string} [fromIndexedAt] From indexed at including given date
|
|
17821
|
-
* @param {string} [toIndexedAt] To indexed at including given date
|
|
17822
17863
|
* @param {string} [transactionHash] The transaction hash of activity
|
|
17823
17864
|
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
17824
17865
|
* @param {number} [pageSize] Maximum number of items to return
|
|
17825
17866
|
* @param {*} [options] Override http request option.
|
|
17826
17867
|
* @throws {RequiredError}
|
|
17827
17868
|
*/
|
|
17828
|
-
async listActivities(chainName, contractAddress, tokenId, accountAddress, activityType,
|
|
17829
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listActivities(chainName, contractAddress, tokenId, accountAddress, activityType,
|
|
17869
|
+
async listActivities(chainName, contractAddress, tokenId, accountAddress, activityType, transactionHash, pageCursor, pageSize, options) {
|
|
17870
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listActivities(chainName, contractAddress, tokenId, accountAddress, activityType, transactionHash, pageCursor, pageSize, options);
|
|
17871
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
17872
|
+
},
|
|
17873
|
+
/**
|
|
17874
|
+
* List activities sorted by updated_at timestamp ascending, useful for time based data replication
|
|
17875
|
+
* @summary List history of activities
|
|
17876
|
+
* @param {string} chainName The name of chain
|
|
17877
|
+
* @param {string} fromUpdatedAt From indexed at including given date
|
|
17878
|
+
* @param {string} [toUpdatedAt] To indexed at including given date
|
|
17879
|
+
* @param {string} [contractAddress] The contract address of the collection
|
|
17880
|
+
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
17881
|
+
* @param {number} [pageSize] Maximum number of items to return
|
|
17882
|
+
* @param {*} [options] Override http request option.
|
|
17883
|
+
* @throws {RequiredError}
|
|
17884
|
+
*/
|
|
17885
|
+
async listActivityHistory(chainName, fromUpdatedAt, toUpdatedAt, contractAddress, pageCursor, pageSize, options) {
|
|
17886
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listActivityHistory(chainName, fromUpdatedAt, toUpdatedAt, contractAddress, pageCursor, pageSize, options);
|
|
17830
17887
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
17831
17888
|
},
|
|
17832
17889
|
};
|
|
@@ -17856,7 +17913,17 @@ const ActivitiesApiFactory = function (configuration, basePath, axios) {
|
|
|
17856
17913
|
* @throws {RequiredError}
|
|
17857
17914
|
*/
|
|
17858
17915
|
listActivities(requestParameters, options) {
|
|
17859
|
-
return localVarFp.listActivities(requestParameters.chainName, requestParameters.contractAddress, requestParameters.tokenId, requestParameters.accountAddress, requestParameters.activityType, requestParameters.
|
|
17916
|
+
return localVarFp.listActivities(requestParameters.chainName, requestParameters.contractAddress, requestParameters.tokenId, requestParameters.accountAddress, requestParameters.activityType, requestParameters.transactionHash, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(axios, basePath));
|
|
17917
|
+
},
|
|
17918
|
+
/**
|
|
17919
|
+
* List activities sorted by updated_at timestamp ascending, useful for time based data replication
|
|
17920
|
+
* @summary List history of activities
|
|
17921
|
+
* @param {ActivitiesApiListActivityHistoryRequest} requestParameters Request parameters.
|
|
17922
|
+
* @param {*} [options] Override http request option.
|
|
17923
|
+
* @throws {RequiredError}
|
|
17924
|
+
*/
|
|
17925
|
+
listActivityHistory(requestParameters, options) {
|
|
17926
|
+
return localVarFp.listActivityHistory(requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.toUpdatedAt, requestParameters.contractAddress, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(axios, basePath));
|
|
17860
17927
|
},
|
|
17861
17928
|
};
|
|
17862
17929
|
};
|
|
@@ -17887,7 +17954,18 @@ class ActivitiesApi extends BaseAPI {
|
|
|
17887
17954
|
* @memberof ActivitiesApi
|
|
17888
17955
|
*/
|
|
17889
17956
|
listActivities(requestParameters, options) {
|
|
17890
|
-
return ActivitiesApiFp(this.configuration).listActivities(requestParameters.chainName, requestParameters.contractAddress, requestParameters.tokenId, requestParameters.accountAddress, requestParameters.activityType, requestParameters.
|
|
17957
|
+
return ActivitiesApiFp(this.configuration).listActivities(requestParameters.chainName, requestParameters.contractAddress, requestParameters.tokenId, requestParameters.accountAddress, requestParameters.activityType, requestParameters.transactionHash, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
17958
|
+
}
|
|
17959
|
+
/**
|
|
17960
|
+
* List activities sorted by updated_at timestamp ascending, useful for time based data replication
|
|
17961
|
+
* @summary List history of activities
|
|
17962
|
+
* @param {ActivitiesApiListActivityHistoryRequest} requestParameters Request parameters.
|
|
17963
|
+
* @param {*} [options] Override http request option.
|
|
17964
|
+
* @throws {RequiredError}
|
|
17965
|
+
* @memberof ActivitiesApi
|
|
17966
|
+
*/
|
|
17967
|
+
listActivityHistory(requestParameters, options) {
|
|
17968
|
+
return ActivitiesApiFp(this.configuration).listActivityHistory(requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.toUpdatedAt, requestParameters.contractAddress, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
17891
17969
|
}
|
|
17892
17970
|
}
|
|
17893
17971
|
|
|
@@ -18409,8 +18487,8 @@ const MetadataApiAxiosParamCreator = function (configuration) {
|
|
|
18409
18487
|
};
|
|
18410
18488
|
},
|
|
18411
18489
|
/**
|
|
18412
|
-
* Get a list of metadata
|
|
18413
|
-
* @summary Get a list of metadata
|
|
18490
|
+
* Get a list of metadata from the given contract
|
|
18491
|
+
* @summary Get a list of metadata from the given contract
|
|
18414
18492
|
* @param {string} chainName The name of chain
|
|
18415
18493
|
* @param {string} contractAddress The address of metadata contract
|
|
18416
18494
|
* @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
|
|
@@ -18455,6 +18533,49 @@ const MetadataApiAxiosParamCreator = function (configuration) {
|
|
|
18455
18533
|
options: localVarRequestOptions,
|
|
18456
18534
|
};
|
|
18457
18535
|
},
|
|
18536
|
+
/**
|
|
18537
|
+
* Get a list of metadata from the given chain
|
|
18538
|
+
* @summary Get a list of metadata from the given chain
|
|
18539
|
+
* @param {string} chainName The name of chain
|
|
18540
|
+
* @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
|
|
18541
|
+
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
18542
|
+
* @param {number} [pageSize] Maximum number of items to return
|
|
18543
|
+
* @param {*} [options] Override http request option.
|
|
18544
|
+
* @throws {RequiredError}
|
|
18545
|
+
*/
|
|
18546
|
+
listMetadataForChain: async (chainName, fromUpdatedAt, pageCursor, pageSize, options = {}) => {
|
|
18547
|
+
// verify required parameter 'chainName' is not null or undefined
|
|
18548
|
+
assertParamExists('listMetadataForChain', 'chainName', chainName);
|
|
18549
|
+
const localVarPath = `/v1/chains/{chain_name}/metadata`
|
|
18550
|
+
.replace(`{${"chain_name"}}`, encodeURIComponent(String(chainName)));
|
|
18551
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
18552
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
18553
|
+
let baseOptions;
|
|
18554
|
+
if (configuration) {
|
|
18555
|
+
baseOptions = configuration.baseOptions;
|
|
18556
|
+
}
|
|
18557
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
18558
|
+
const localVarHeaderParameter = {};
|
|
18559
|
+
const localVarQueryParameter = {};
|
|
18560
|
+
if (fromUpdatedAt !== undefined) {
|
|
18561
|
+
localVarQueryParameter['from_updated_at'] = (fromUpdatedAt instanceof Date) ?
|
|
18562
|
+
fromUpdatedAt.toISOString() :
|
|
18563
|
+
fromUpdatedAt;
|
|
18564
|
+
}
|
|
18565
|
+
if (pageCursor !== undefined) {
|
|
18566
|
+
localVarQueryParameter['page_cursor'] = pageCursor;
|
|
18567
|
+
}
|
|
18568
|
+
if (pageSize !== undefined) {
|
|
18569
|
+
localVarQueryParameter['page_size'] = pageSize;
|
|
18570
|
+
}
|
|
18571
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
18572
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
18573
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
18574
|
+
return {
|
|
18575
|
+
url: toPathString(localVarUrlObj),
|
|
18576
|
+
options: localVarRequestOptions,
|
|
18577
|
+
};
|
|
18578
|
+
},
|
|
18458
18579
|
/**
|
|
18459
18580
|
* Refresh stacked metadata
|
|
18460
18581
|
* @summary Refresh stacked metadata
|
|
@@ -18558,8 +18679,8 @@ const MetadataApiFp = function (configuration) {
|
|
|
18558
18679
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
18559
18680
|
},
|
|
18560
18681
|
/**
|
|
18561
|
-
* Get a list of metadata
|
|
18562
|
-
* @summary Get a list of metadata
|
|
18682
|
+
* Get a list of metadata from the given contract
|
|
18683
|
+
* @summary Get a list of metadata from the given contract
|
|
18563
18684
|
* @param {string} chainName The name of chain
|
|
18564
18685
|
* @param {string} contractAddress The address of metadata contract
|
|
18565
18686
|
* @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
|
|
@@ -18572,6 +18693,20 @@ const MetadataApiFp = function (configuration) {
|
|
|
18572
18693
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listMetadata(chainName, contractAddress, fromUpdatedAt, pageCursor, pageSize, options);
|
|
18573
18694
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
18574
18695
|
},
|
|
18696
|
+
/**
|
|
18697
|
+
* Get a list of metadata from the given chain
|
|
18698
|
+
* @summary Get a list of metadata from the given chain
|
|
18699
|
+
* @param {string} chainName The name of chain
|
|
18700
|
+
* @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
|
|
18701
|
+
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
18702
|
+
* @param {number} [pageSize] Maximum number of items to return
|
|
18703
|
+
* @param {*} [options] Override http request option.
|
|
18704
|
+
* @throws {RequiredError}
|
|
18705
|
+
*/
|
|
18706
|
+
async listMetadataForChain(chainName, fromUpdatedAt, pageCursor, pageSize, options) {
|
|
18707
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listMetadataForChain(chainName, fromUpdatedAt, pageCursor, pageSize, options);
|
|
18708
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
18709
|
+
},
|
|
18575
18710
|
/**
|
|
18576
18711
|
* Refresh stacked metadata
|
|
18577
18712
|
* @summary Refresh stacked metadata
|
|
@@ -18618,8 +18753,8 @@ const MetadataApiFactory = function (configuration, basePath, axios) {
|
|
|
18618
18753
|
return localVarFp.getMetadata(requestParameters.chainName, requestParameters.contractAddress, requestParameters.metadataId, options).then((request) => request(axios, basePath));
|
|
18619
18754
|
},
|
|
18620
18755
|
/**
|
|
18621
|
-
* Get a list of metadata
|
|
18622
|
-
* @summary Get a list of metadata
|
|
18756
|
+
* Get a list of metadata from the given contract
|
|
18757
|
+
* @summary Get a list of metadata from the given contract
|
|
18623
18758
|
* @param {MetadataApiListMetadataRequest} requestParameters Request parameters.
|
|
18624
18759
|
* @param {*} [options] Override http request option.
|
|
18625
18760
|
* @throws {RequiredError}
|
|
@@ -18627,6 +18762,16 @@ const MetadataApiFactory = function (configuration, basePath, axios) {
|
|
|
18627
18762
|
listMetadata(requestParameters, options) {
|
|
18628
18763
|
return localVarFp.listMetadata(requestParameters.chainName, requestParameters.contractAddress, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(axios, basePath));
|
|
18629
18764
|
},
|
|
18765
|
+
/**
|
|
18766
|
+
* Get a list of metadata from the given chain
|
|
18767
|
+
* @summary Get a list of metadata from the given chain
|
|
18768
|
+
* @param {MetadataApiListMetadataForChainRequest} requestParameters Request parameters.
|
|
18769
|
+
* @param {*} [options] Override http request option.
|
|
18770
|
+
* @throws {RequiredError}
|
|
18771
|
+
*/
|
|
18772
|
+
listMetadataForChain(requestParameters, options) {
|
|
18773
|
+
return localVarFp.listMetadataForChain(requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(axios, basePath));
|
|
18774
|
+
},
|
|
18630
18775
|
/**
|
|
18631
18776
|
* Refresh stacked metadata
|
|
18632
18777
|
* @summary Refresh stacked metadata
|
|
@@ -18668,8 +18813,8 @@ class MetadataApi extends BaseAPI {
|
|
|
18668
18813
|
return MetadataApiFp(this.configuration).getMetadata(requestParameters.chainName, requestParameters.contractAddress, requestParameters.metadataId, options).then((request) => request(this.axios, this.basePath));
|
|
18669
18814
|
}
|
|
18670
18815
|
/**
|
|
18671
|
-
* Get a list of metadata
|
|
18672
|
-
* @summary Get a list of metadata
|
|
18816
|
+
* Get a list of metadata from the given contract
|
|
18817
|
+
* @summary Get a list of metadata from the given contract
|
|
18673
18818
|
* @param {MetadataApiListMetadataRequest} requestParameters Request parameters.
|
|
18674
18819
|
* @param {*} [options] Override http request option.
|
|
18675
18820
|
* @throws {RequiredError}
|
|
@@ -18678,6 +18823,17 @@ class MetadataApi extends BaseAPI {
|
|
|
18678
18823
|
listMetadata(requestParameters, options) {
|
|
18679
18824
|
return MetadataApiFp(this.configuration).listMetadata(requestParameters.chainName, requestParameters.contractAddress, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
18680
18825
|
}
|
|
18826
|
+
/**
|
|
18827
|
+
* Get a list of metadata from the given chain
|
|
18828
|
+
* @summary Get a list of metadata from the given chain
|
|
18829
|
+
* @param {MetadataApiListMetadataForChainRequest} requestParameters Request parameters.
|
|
18830
|
+
* @param {*} [options] Override http request option.
|
|
18831
|
+
* @throws {RequiredError}
|
|
18832
|
+
* @memberof MetadataApi
|
|
18833
|
+
*/
|
|
18834
|
+
listMetadataForChain(requestParameters, options) {
|
|
18835
|
+
return MetadataApiFp(this.configuration).listMetadataForChain(requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
18836
|
+
}
|
|
18681
18837
|
/**
|
|
18682
18838
|
* Refresh stacked metadata
|
|
18683
18839
|
* @summary Refresh stacked metadata
|
|
@@ -18721,6 +18877,49 @@ class MetadataApi extends BaseAPI {
|
|
|
18721
18877
|
*/
|
|
18722
18878
|
const NftOwnersApiAxiosParamCreator = function (configuration) {
|
|
18723
18879
|
return {
|
|
18880
|
+
/**
|
|
18881
|
+
* List all NFT owners on a chain
|
|
18882
|
+
* @summary List all NFT owners
|
|
18883
|
+
* @param {string} chainName The name of chain
|
|
18884
|
+
* @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
|
|
18885
|
+
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
18886
|
+
* @param {number} [pageSize] Maximum number of items to return
|
|
18887
|
+
* @param {*} [options] Override http request option.
|
|
18888
|
+
* @throws {RequiredError}
|
|
18889
|
+
*/
|
|
18890
|
+
listAllNFTOwners: async (chainName, fromUpdatedAt, pageCursor, pageSize, options = {}) => {
|
|
18891
|
+
// verify required parameter 'chainName' is not null or undefined
|
|
18892
|
+
assertParamExists('listAllNFTOwners', 'chainName', chainName);
|
|
18893
|
+
const localVarPath = `/v1/chains/{chain_name}/nft-owners`
|
|
18894
|
+
.replace(`{${"chain_name"}}`, encodeURIComponent(String(chainName)));
|
|
18895
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
18896
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
18897
|
+
let baseOptions;
|
|
18898
|
+
if (configuration) {
|
|
18899
|
+
baseOptions = configuration.baseOptions;
|
|
18900
|
+
}
|
|
18901
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
18902
|
+
const localVarHeaderParameter = {};
|
|
18903
|
+
const localVarQueryParameter = {};
|
|
18904
|
+
if (fromUpdatedAt !== undefined) {
|
|
18905
|
+
localVarQueryParameter['from_updated_at'] = (fromUpdatedAt instanceof Date) ?
|
|
18906
|
+
fromUpdatedAt.toISOString() :
|
|
18907
|
+
fromUpdatedAt;
|
|
18908
|
+
}
|
|
18909
|
+
if (pageCursor !== undefined) {
|
|
18910
|
+
localVarQueryParameter['page_cursor'] = pageCursor;
|
|
18911
|
+
}
|
|
18912
|
+
if (pageSize !== undefined) {
|
|
18913
|
+
localVarQueryParameter['page_size'] = pageSize;
|
|
18914
|
+
}
|
|
18915
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
18916
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
18917
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
18918
|
+
return {
|
|
18919
|
+
url: toPathString(localVarUrlObj),
|
|
18920
|
+
options: localVarRequestOptions,
|
|
18921
|
+
};
|
|
18922
|
+
},
|
|
18724
18923
|
/**
|
|
18725
18924
|
* List NFT owners by token ID
|
|
18726
18925
|
* @summary List NFT owners by token ID
|
|
@@ -18822,6 +19021,20 @@ const NftOwnersApiAxiosParamCreator = function (configuration) {
|
|
|
18822
19021
|
const NftOwnersApiFp = function (configuration) {
|
|
18823
19022
|
const localVarAxiosParamCreator = NftOwnersApiAxiosParamCreator(configuration);
|
|
18824
19023
|
return {
|
|
19024
|
+
/**
|
|
19025
|
+
* List all NFT owners on a chain
|
|
19026
|
+
* @summary List all NFT owners
|
|
19027
|
+
* @param {string} chainName The name of chain
|
|
19028
|
+
* @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
|
|
19029
|
+
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
19030
|
+
* @param {number} [pageSize] Maximum number of items to return
|
|
19031
|
+
* @param {*} [options] Override http request option.
|
|
19032
|
+
* @throws {RequiredError}
|
|
19033
|
+
*/
|
|
19034
|
+
async listAllNFTOwners(chainName, fromUpdatedAt, pageCursor, pageSize, options) {
|
|
19035
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listAllNFTOwners(chainName, fromUpdatedAt, pageCursor, pageSize, options);
|
|
19036
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
19037
|
+
},
|
|
18825
19038
|
/**
|
|
18826
19039
|
* List NFT owners by token ID
|
|
18827
19040
|
* @summary List NFT owners by token ID
|
|
@@ -18861,6 +19074,16 @@ const NftOwnersApiFp = function (configuration) {
|
|
|
18861
19074
|
const NftOwnersApiFactory = function (configuration, basePath, axios) {
|
|
18862
19075
|
const localVarFp = NftOwnersApiFp(configuration);
|
|
18863
19076
|
return {
|
|
19077
|
+
/**
|
|
19078
|
+
* List all NFT owners on a chain
|
|
19079
|
+
* @summary List all NFT owners
|
|
19080
|
+
* @param {NftOwnersApiListAllNFTOwnersRequest} requestParameters Request parameters.
|
|
19081
|
+
* @param {*} [options] Override http request option.
|
|
19082
|
+
* @throws {RequiredError}
|
|
19083
|
+
*/
|
|
19084
|
+
listAllNFTOwners(requestParameters, options) {
|
|
19085
|
+
return localVarFp.listAllNFTOwners(requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(axios, basePath));
|
|
19086
|
+
},
|
|
18864
19087
|
/**
|
|
18865
19088
|
* List NFT owners by token ID
|
|
18866
19089
|
* @summary List NFT owners by token ID
|
|
@@ -18890,6 +19113,17 @@ const NftOwnersApiFactory = function (configuration, basePath, axios) {
|
|
|
18890
19113
|
* @extends {BaseAPI}
|
|
18891
19114
|
*/
|
|
18892
19115
|
class NftOwnersApi extends BaseAPI {
|
|
19116
|
+
/**
|
|
19117
|
+
* List all NFT owners on a chain
|
|
19118
|
+
* @summary List all NFT owners
|
|
19119
|
+
* @param {NftOwnersApiListAllNFTOwnersRequest} requestParameters Request parameters.
|
|
19120
|
+
* @param {*} [options] Override http request option.
|
|
19121
|
+
* @throws {RequiredError}
|
|
19122
|
+
* @memberof NftOwnersApi
|
|
19123
|
+
*/
|
|
19124
|
+
listAllNFTOwners(requestParameters, options) {
|
|
19125
|
+
return NftOwnersApiFp(this.configuration).listAllNFTOwners(requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
19126
|
+
}
|
|
18893
19127
|
/**
|
|
18894
19128
|
* List NFT owners by token ID
|
|
18895
19129
|
* @summary List NFT owners by token ID
|
|
@@ -18970,51 +19204,6 @@ const NftsApiAxiosParamCreator = function (configuration) {
|
|
|
18970
19204
|
options: localVarRequestOptions,
|
|
18971
19205
|
};
|
|
18972
19206
|
},
|
|
18973
|
-
/**
|
|
18974
|
-
* List all NFT owners on a chain
|
|
18975
|
-
* @summary List all NFT owners
|
|
18976
|
-
* @param {string} chainName The name of chain
|
|
18977
|
-
* @param {string} fromUpdatedAt Datetime to use as the oldest updated timestamp
|
|
18978
|
-
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
18979
|
-
* @param {number} [pageSize] Maximum number of items to return
|
|
18980
|
-
* @param {*} [options] Override http request option.
|
|
18981
|
-
* @throws {RequiredError}
|
|
18982
|
-
*/
|
|
18983
|
-
listAllNFTOwners: async (chainName, fromUpdatedAt, pageCursor, pageSize, options = {}) => {
|
|
18984
|
-
// verify required parameter 'chainName' is not null or undefined
|
|
18985
|
-
assertParamExists('listAllNFTOwners', 'chainName', chainName);
|
|
18986
|
-
// verify required parameter 'fromUpdatedAt' is not null or undefined
|
|
18987
|
-
assertParamExists('listAllNFTOwners', 'fromUpdatedAt', fromUpdatedAt);
|
|
18988
|
-
const localVarPath = `/v1/chains/{chain_name}/nft-owners`
|
|
18989
|
-
.replace(`{${"chain_name"}}`, encodeURIComponent(String(chainName)));
|
|
18990
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
18991
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
18992
|
-
let baseOptions;
|
|
18993
|
-
if (configuration) {
|
|
18994
|
-
baseOptions = configuration.baseOptions;
|
|
18995
|
-
}
|
|
18996
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
18997
|
-
const localVarHeaderParameter = {};
|
|
18998
|
-
const localVarQueryParameter = {};
|
|
18999
|
-
if (fromUpdatedAt !== undefined) {
|
|
19000
|
-
localVarQueryParameter['from_updated_at'] = (fromUpdatedAt instanceof Date) ?
|
|
19001
|
-
fromUpdatedAt.toISOString() :
|
|
19002
|
-
fromUpdatedAt;
|
|
19003
|
-
}
|
|
19004
|
-
if (pageCursor !== undefined) {
|
|
19005
|
-
localVarQueryParameter['page_cursor'] = pageCursor;
|
|
19006
|
-
}
|
|
19007
|
-
if (pageSize !== undefined) {
|
|
19008
|
-
localVarQueryParameter['page_size'] = pageSize;
|
|
19009
|
-
}
|
|
19010
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
19011
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
19012
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
19013
|
-
return {
|
|
19014
|
-
url: toPathString(localVarUrlObj),
|
|
19015
|
-
options: localVarRequestOptions,
|
|
19016
|
-
};
|
|
19017
|
-
},
|
|
19018
19207
|
/**
|
|
19019
19208
|
* List all NFTs on a chain
|
|
19020
19209
|
* @summary List all NFTs
|
|
@@ -19172,20 +19361,6 @@ const NftsApiFp = function (configuration) {
|
|
|
19172
19361
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getNFT(contractAddress, tokenId, chainName, options);
|
|
19173
19362
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
19174
19363
|
},
|
|
19175
|
-
/**
|
|
19176
|
-
* List all NFT owners on a chain
|
|
19177
|
-
* @summary List all NFT owners
|
|
19178
|
-
* @param {string} chainName The name of chain
|
|
19179
|
-
* @param {string} fromUpdatedAt Datetime to use as the oldest updated timestamp
|
|
19180
|
-
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
19181
|
-
* @param {number} [pageSize] Maximum number of items to return
|
|
19182
|
-
* @param {*} [options] Override http request option.
|
|
19183
|
-
* @throws {RequiredError}
|
|
19184
|
-
*/
|
|
19185
|
-
async listAllNFTOwners(chainName, fromUpdatedAt, pageCursor, pageSize, options) {
|
|
19186
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listAllNFTOwners(chainName, fromUpdatedAt, pageCursor, pageSize, options);
|
|
19187
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
19188
|
-
},
|
|
19189
19364
|
/**
|
|
19190
19365
|
* List all NFTs on a chain
|
|
19191
19366
|
* @summary List all NFTs
|
|
@@ -19249,16 +19424,6 @@ const NftsApiFactory = function (configuration, basePath, axios) {
|
|
|
19249
19424
|
getNFT(requestParameters, options) {
|
|
19250
19425
|
return localVarFp.getNFT(requestParameters.contractAddress, requestParameters.tokenId, requestParameters.chainName, options).then((request) => request(axios, basePath));
|
|
19251
19426
|
},
|
|
19252
|
-
/**
|
|
19253
|
-
* List all NFT owners on a chain
|
|
19254
|
-
* @summary List all NFT owners
|
|
19255
|
-
* @param {NftsApiListAllNFTOwnersRequest} requestParameters Request parameters.
|
|
19256
|
-
* @param {*} [options] Override http request option.
|
|
19257
|
-
* @throws {RequiredError}
|
|
19258
|
-
*/
|
|
19259
|
-
listAllNFTOwners(requestParameters, options) {
|
|
19260
|
-
return localVarFp.listAllNFTOwners(requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(axios, basePath));
|
|
19261
|
-
},
|
|
19262
19427
|
/**
|
|
19263
19428
|
* List all NFTs on a chain
|
|
19264
19429
|
* @summary List all NFTs
|
|
@@ -19309,17 +19474,6 @@ class NftsApi extends BaseAPI {
|
|
|
19309
19474
|
getNFT(requestParameters, options) {
|
|
19310
19475
|
return NftsApiFp(this.configuration).getNFT(requestParameters.contractAddress, requestParameters.tokenId, requestParameters.chainName, options).then((request) => request(this.axios, this.basePath));
|
|
19311
19476
|
}
|
|
19312
|
-
/**
|
|
19313
|
-
* List all NFT owners on a chain
|
|
19314
|
-
* @summary List all NFT owners
|
|
19315
|
-
* @param {NftsApiListAllNFTOwnersRequest} requestParameters Request parameters.
|
|
19316
|
-
* @param {*} [options] Override http request option.
|
|
19317
|
-
* @throws {RequiredError}
|
|
19318
|
-
* @memberof NftsApi
|
|
19319
|
-
*/
|
|
19320
|
-
listAllNFTOwners(requestParameters, options) {
|
|
19321
|
-
return NftsApiFp(this.configuration).listAllNFTOwners(requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
19322
|
-
}
|
|
19323
19477
|
/**
|
|
19324
19478
|
* List all NFTs on a chain
|
|
19325
19479
|
* @summary List all NFTs
|
|
@@ -19549,7 +19703,10 @@ const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
19549
19703
|
* @param {OrderStatusName} [status] Order status to filter by
|
|
19550
19704
|
* @param {string} [sellItemContractAddress] Sell item contract address to filter by
|
|
19551
19705
|
* @param {string} [buyItemContractAddress] Buy item contract address to filter by
|
|
19706
|
+
* @param {string} [accountAddress] The account address of the user who created the listing
|
|
19707
|
+
* @param {string} [sellItemMetadataId] The metadata_id of the sell item
|
|
19552
19708
|
* @param {string} [sellItemTokenId] Sell item token identifier to filter by
|
|
19709
|
+
* @param {string} [fromUpdatedAt] From updated at including given date
|
|
19553
19710
|
* @param {number} [pageSize] Maximum number of orders to return per page
|
|
19554
19711
|
* @param {ListListingsSortByEnum} [sortBy] Order field to sort by
|
|
19555
19712
|
* @param {ListListingsSortDirectionEnum} [sortDirection] Ascending or descending direction for sort
|
|
@@ -19557,7 +19714,7 @@ const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
19557
19714
|
* @param {*} [options] Override http request option.
|
|
19558
19715
|
* @throws {RequiredError}
|
|
19559
19716
|
*/
|
|
19560
|
-
listListings: async (chainName, status, sellItemContractAddress, buyItemContractAddress, sellItemTokenId, pageSize, sortBy, sortDirection, pageCursor, options = {}) => {
|
|
19717
|
+
listListings: async (chainName, status, sellItemContractAddress, buyItemContractAddress, accountAddress, sellItemMetadataId, sellItemTokenId, fromUpdatedAt, pageSize, sortBy, sortDirection, pageCursor, options = {}) => {
|
|
19561
19718
|
// verify required parameter 'chainName' is not null or undefined
|
|
19562
19719
|
assertParamExists('listListings', 'chainName', chainName);
|
|
19563
19720
|
const localVarPath = `/v1/chains/{chain_name}/orders/listings`
|
|
@@ -19580,9 +19737,20 @@ const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
19580
19737
|
if (buyItemContractAddress !== undefined) {
|
|
19581
19738
|
localVarQueryParameter['buy_item_contract_address'] = buyItemContractAddress;
|
|
19582
19739
|
}
|
|
19740
|
+
if (accountAddress !== undefined) {
|
|
19741
|
+
localVarQueryParameter['account_address'] = accountAddress;
|
|
19742
|
+
}
|
|
19743
|
+
if (sellItemMetadataId !== undefined) {
|
|
19744
|
+
localVarQueryParameter['sell_item_metadata_id'] = sellItemMetadataId;
|
|
19745
|
+
}
|
|
19583
19746
|
if (sellItemTokenId !== undefined) {
|
|
19584
19747
|
localVarQueryParameter['sell_item_token_id'] = sellItemTokenId;
|
|
19585
19748
|
}
|
|
19749
|
+
if (fromUpdatedAt !== undefined) {
|
|
19750
|
+
localVarQueryParameter['from_updated_at'] = (fromUpdatedAt instanceof Date) ?
|
|
19751
|
+
fromUpdatedAt.toISOString() :
|
|
19752
|
+
fromUpdatedAt;
|
|
19753
|
+
}
|
|
19586
19754
|
if (pageSize !== undefined) {
|
|
19587
19755
|
localVarQueryParameter['page_size'] = pageSize;
|
|
19588
19756
|
}
|
|
@@ -19608,6 +19776,7 @@ const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
19608
19776
|
* @summary List all trades
|
|
19609
19777
|
* @param {string} chainName
|
|
19610
19778
|
* @param {string} [accountAddress]
|
|
19779
|
+
* @param {string} [fromIndexedAt] From indexed at including given date
|
|
19611
19780
|
* @param {number} [pageSize] Maximum number of trades to return per page
|
|
19612
19781
|
* @param {ListTradesSortByEnum} [sortBy] Trade field to sort by
|
|
19613
19782
|
* @param {ListTradesSortDirectionEnum} [sortDirection] Ascending or descending direction for sort
|
|
@@ -19615,7 +19784,7 @@ const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
19615
19784
|
* @param {*} [options] Override http request option.
|
|
19616
19785
|
* @throws {RequiredError}
|
|
19617
19786
|
*/
|
|
19618
|
-
listTrades: async (chainName, accountAddress, pageSize, sortBy, sortDirection, pageCursor, options = {}) => {
|
|
19787
|
+
listTrades: async (chainName, accountAddress, fromIndexedAt, pageSize, sortBy, sortDirection, pageCursor, options = {}) => {
|
|
19619
19788
|
// verify required parameter 'chainName' is not null or undefined
|
|
19620
19789
|
assertParamExists('listTrades', 'chainName', chainName);
|
|
19621
19790
|
const localVarPath = `/v1/chains/{chain_name}/trades`
|
|
@@ -19632,6 +19801,11 @@ const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
19632
19801
|
if (accountAddress !== undefined) {
|
|
19633
19802
|
localVarQueryParameter['account_address'] = accountAddress;
|
|
19634
19803
|
}
|
|
19804
|
+
if (fromIndexedAt !== undefined) {
|
|
19805
|
+
localVarQueryParameter['from_indexed_at'] = (fromIndexedAt instanceof Date) ?
|
|
19806
|
+
fromIndexedAt.toISOString() :
|
|
19807
|
+
fromIndexedAt;
|
|
19808
|
+
}
|
|
19635
19809
|
if (pageSize !== undefined) {
|
|
19636
19810
|
localVarQueryParameter['page_size'] = pageSize;
|
|
19637
19811
|
}
|
|
@@ -19728,7 +19902,10 @@ const OrdersApiFp = function (configuration) {
|
|
|
19728
19902
|
* @param {OrderStatusName} [status] Order status to filter by
|
|
19729
19903
|
* @param {string} [sellItemContractAddress] Sell item contract address to filter by
|
|
19730
19904
|
* @param {string} [buyItemContractAddress] Buy item contract address to filter by
|
|
19905
|
+
* @param {string} [accountAddress] The account address of the user who created the listing
|
|
19906
|
+
* @param {string} [sellItemMetadataId] The metadata_id of the sell item
|
|
19731
19907
|
* @param {string} [sellItemTokenId] Sell item token identifier to filter by
|
|
19908
|
+
* @param {string} [fromUpdatedAt] From updated at including given date
|
|
19732
19909
|
* @param {number} [pageSize] Maximum number of orders to return per page
|
|
19733
19910
|
* @param {ListListingsSortByEnum} [sortBy] Order field to sort by
|
|
19734
19911
|
* @param {ListListingsSortDirectionEnum} [sortDirection] Ascending or descending direction for sort
|
|
@@ -19736,8 +19913,8 @@ const OrdersApiFp = function (configuration) {
|
|
|
19736
19913
|
* @param {*} [options] Override http request option.
|
|
19737
19914
|
* @throws {RequiredError}
|
|
19738
19915
|
*/
|
|
19739
|
-
async listListings(chainName, status, sellItemContractAddress, buyItemContractAddress, sellItemTokenId, pageSize, sortBy, sortDirection, pageCursor, options) {
|
|
19740
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listListings(chainName, status, sellItemContractAddress, buyItemContractAddress, sellItemTokenId, pageSize, sortBy, sortDirection, pageCursor, options);
|
|
19916
|
+
async listListings(chainName, status, sellItemContractAddress, buyItemContractAddress, accountAddress, sellItemMetadataId, sellItemTokenId, fromUpdatedAt, pageSize, sortBy, sortDirection, pageCursor, options) {
|
|
19917
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listListings(chainName, status, sellItemContractAddress, buyItemContractAddress, accountAddress, sellItemMetadataId, sellItemTokenId, fromUpdatedAt, pageSize, sortBy, sortDirection, pageCursor, options);
|
|
19741
19918
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
19742
19919
|
},
|
|
19743
19920
|
/**
|
|
@@ -19745,6 +19922,7 @@ const OrdersApiFp = function (configuration) {
|
|
|
19745
19922
|
* @summary List all trades
|
|
19746
19923
|
* @param {string} chainName
|
|
19747
19924
|
* @param {string} [accountAddress]
|
|
19925
|
+
* @param {string} [fromIndexedAt] From indexed at including given date
|
|
19748
19926
|
* @param {number} [pageSize] Maximum number of trades to return per page
|
|
19749
19927
|
* @param {ListTradesSortByEnum} [sortBy] Trade field to sort by
|
|
19750
19928
|
* @param {ListTradesSortDirectionEnum} [sortDirection] Ascending or descending direction for sort
|
|
@@ -19752,8 +19930,8 @@ const OrdersApiFp = function (configuration) {
|
|
|
19752
19930
|
* @param {*} [options] Override http request option.
|
|
19753
19931
|
* @throws {RequiredError}
|
|
19754
19932
|
*/
|
|
19755
|
-
async listTrades(chainName, accountAddress, pageSize, sortBy, sortDirection, pageCursor, options) {
|
|
19756
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listTrades(chainName, accountAddress, pageSize, sortBy, sortDirection, pageCursor, options);
|
|
19933
|
+
async listTrades(chainName, accountAddress, fromIndexedAt, pageSize, sortBy, sortDirection, pageCursor, options) {
|
|
19934
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listTrades(chainName, accountAddress, fromIndexedAt, pageSize, sortBy, sortDirection, pageCursor, options);
|
|
19757
19935
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
19758
19936
|
},
|
|
19759
19937
|
};
|
|
@@ -19823,7 +20001,7 @@ const OrdersApiFactory = function (configuration, basePath, axios) {
|
|
|
19823
20001
|
* @throws {RequiredError}
|
|
19824
20002
|
*/
|
|
19825
20003
|
listListings(requestParameters, options) {
|
|
19826
|
-
return localVarFp.listListings(requestParameters.chainName, requestParameters.status, requestParameters.sellItemContractAddress, requestParameters.buyItemContractAddress, requestParameters.sellItemTokenId, requestParameters.pageSize, requestParameters.sortBy, requestParameters.sortDirection, requestParameters.pageCursor, options).then((request) => request(axios, basePath));
|
|
20004
|
+
return localVarFp.listListings(requestParameters.chainName, requestParameters.status, requestParameters.sellItemContractAddress, requestParameters.buyItemContractAddress, requestParameters.accountAddress, requestParameters.sellItemMetadataId, requestParameters.sellItemTokenId, requestParameters.fromUpdatedAt, requestParameters.pageSize, requestParameters.sortBy, requestParameters.sortDirection, requestParameters.pageCursor, options).then((request) => request(axios, basePath));
|
|
19827
20005
|
},
|
|
19828
20006
|
/**
|
|
19829
20007
|
* List all trades
|
|
@@ -19833,7 +20011,7 @@ const OrdersApiFactory = function (configuration, basePath, axios) {
|
|
|
19833
20011
|
* @throws {RequiredError}
|
|
19834
20012
|
*/
|
|
19835
20013
|
listTrades(requestParameters, options) {
|
|
19836
|
-
return localVarFp.listTrades(requestParameters.chainName, requestParameters.accountAddress, requestParameters.pageSize, requestParameters.sortBy, requestParameters.sortDirection, requestParameters.pageCursor, options).then((request) => request(axios, basePath));
|
|
20014
|
+
return localVarFp.listTrades(requestParameters.chainName, requestParameters.accountAddress, requestParameters.fromIndexedAt, requestParameters.pageSize, requestParameters.sortBy, requestParameters.sortDirection, requestParameters.pageCursor, options).then((request) => request(axios, basePath));
|
|
19837
20015
|
},
|
|
19838
20016
|
};
|
|
19839
20017
|
};
|
|
@@ -19908,7 +20086,7 @@ class OrdersApi extends BaseAPI {
|
|
|
19908
20086
|
* @memberof OrdersApi
|
|
19909
20087
|
*/
|
|
19910
20088
|
listListings(requestParameters, options) {
|
|
19911
|
-
return OrdersApiFp(this.configuration).listListings(requestParameters.chainName, requestParameters.status, requestParameters.sellItemContractAddress, requestParameters.buyItemContractAddress, requestParameters.sellItemTokenId, requestParameters.pageSize, requestParameters.sortBy, requestParameters.sortDirection, requestParameters.pageCursor, options).then((request) => request(this.axios, this.basePath));
|
|
20089
|
+
return OrdersApiFp(this.configuration).listListings(requestParameters.chainName, requestParameters.status, requestParameters.sellItemContractAddress, requestParameters.buyItemContractAddress, requestParameters.accountAddress, requestParameters.sellItemMetadataId, requestParameters.sellItemTokenId, requestParameters.fromUpdatedAt, requestParameters.pageSize, requestParameters.sortBy, requestParameters.sortDirection, requestParameters.pageCursor, options).then((request) => request(this.axios, this.basePath));
|
|
19912
20090
|
}
|
|
19913
20091
|
/**
|
|
19914
20092
|
* List all trades
|
|
@@ -19919,7 +20097,7 @@ class OrdersApi extends BaseAPI {
|
|
|
19919
20097
|
* @memberof OrdersApi
|
|
19920
20098
|
*/
|
|
19921
20099
|
listTrades(requestParameters, options) {
|
|
19922
|
-
return OrdersApiFp(this.configuration).listTrades(requestParameters.chainName, requestParameters.accountAddress, requestParameters.pageSize, requestParameters.sortBy, requestParameters.sortDirection, requestParameters.pageCursor, options).then((request) => request(this.axios, this.basePath));
|
|
20100
|
+
return OrdersApiFp(this.configuration).listTrades(requestParameters.chainName, requestParameters.accountAddress, requestParameters.fromIndexedAt, requestParameters.pageSize, requestParameters.sortBy, requestParameters.sortDirection, requestParameters.pageCursor, options).then((request) => request(this.axios, this.basePath));
|
|
19923
20101
|
}
|
|
19924
20102
|
}
|
|
19925
20103
|
/**
|
|
@@ -20040,6 +20218,50 @@ const PassportApiAxiosParamCreator = function (configuration) {
|
|
|
20040
20218
|
options: localVarRequestOptions,
|
|
20041
20219
|
};
|
|
20042
20220
|
},
|
|
20221
|
+
/**
|
|
20222
|
+
* Get a contract abi by contract address and method id
|
|
20223
|
+
* @summary Get a contract abi
|
|
20224
|
+
* @param {string} chainName
|
|
20225
|
+
* @param {string} contractAddress contract address
|
|
20226
|
+
* @param {string} methodId method id
|
|
20227
|
+
* @param {*} [options] Override http request option.
|
|
20228
|
+
* @throws {RequiredError}
|
|
20229
|
+
*/
|
|
20230
|
+
getContractAbi: async (chainName, contractAddress, methodId, options = {}) => {
|
|
20231
|
+
// verify required parameter 'chainName' is not null or undefined
|
|
20232
|
+
assertParamExists('getContractAbi', 'chainName', chainName);
|
|
20233
|
+
// verify required parameter 'contractAddress' is not null or undefined
|
|
20234
|
+
assertParamExists('getContractAbi', 'contractAddress', contractAddress);
|
|
20235
|
+
// verify required parameter 'methodId' is not null or undefined
|
|
20236
|
+
assertParamExists('getContractAbi', 'methodId', methodId);
|
|
20237
|
+
const localVarPath = `/v1/chains/{chain_name}/passport/transaction-metadata`
|
|
20238
|
+
.replace(`{${"chain_name"}}`, encodeURIComponent(String(chainName)));
|
|
20239
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
20240
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
20241
|
+
let baseOptions;
|
|
20242
|
+
if (configuration) {
|
|
20243
|
+
baseOptions = configuration.baseOptions;
|
|
20244
|
+
}
|
|
20245
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
20246
|
+
const localVarHeaderParameter = {};
|
|
20247
|
+
const localVarQueryParameter = {};
|
|
20248
|
+
// authentication BearerAuth required
|
|
20249
|
+
// http bearer authentication required
|
|
20250
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
20251
|
+
if (contractAddress !== undefined) {
|
|
20252
|
+
localVarQueryParameter['contract_address'] = contractAddress;
|
|
20253
|
+
}
|
|
20254
|
+
if (methodId !== undefined) {
|
|
20255
|
+
localVarQueryParameter['method_id'] = methodId;
|
|
20256
|
+
}
|
|
20257
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
20258
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
20259
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
20260
|
+
return {
|
|
20261
|
+
url: toPathString(localVarUrlObj),
|
|
20262
|
+
options: localVarRequestOptions,
|
|
20263
|
+
};
|
|
20264
|
+
},
|
|
20043
20265
|
/**
|
|
20044
20266
|
* Get all the Ethereum linked addresses for a user based on its userId
|
|
20045
20267
|
* @summary Get Ethereum linked addresses for a user
|
|
@@ -20140,6 +20362,19 @@ const PassportApiFp = function (configuration) {
|
|
|
20140
20362
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createCounterfactualAddressDeprecated(createCounterfactualAddressRequestDeprecated, options);
|
|
20141
20363
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
20142
20364
|
},
|
|
20365
|
+
/**
|
|
20366
|
+
* Get a contract abi by contract address and method id
|
|
20367
|
+
* @summary Get a contract abi
|
|
20368
|
+
* @param {string} chainName
|
|
20369
|
+
* @param {string} contractAddress contract address
|
|
20370
|
+
* @param {string} methodId method id
|
|
20371
|
+
* @param {*} [options] Override http request option.
|
|
20372
|
+
* @throws {RequiredError}
|
|
20373
|
+
*/
|
|
20374
|
+
async getContractAbi(chainName, contractAddress, methodId, options) {
|
|
20375
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getContractAbi(chainName, contractAddress, methodId, options);
|
|
20376
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
20377
|
+
},
|
|
20143
20378
|
/**
|
|
20144
20379
|
* Get all the Ethereum linked addresses for a user based on its userId
|
|
20145
20380
|
* @summary Get Ethereum linked addresses for a user
|
|
@@ -20192,6 +20427,16 @@ const PassportApiFactory = function (configuration, basePath, axios) {
|
|
|
20192
20427
|
createCounterfactualAddressDeprecated(requestParameters, options) {
|
|
20193
20428
|
return localVarFp.createCounterfactualAddressDeprecated(requestParameters.createCounterfactualAddressRequestDeprecated, options).then((request) => request(axios, basePath));
|
|
20194
20429
|
},
|
|
20430
|
+
/**
|
|
20431
|
+
* Get a contract abi by contract address and method id
|
|
20432
|
+
* @summary Get a contract abi
|
|
20433
|
+
* @param {PassportApiGetContractAbiRequest} requestParameters Request parameters.
|
|
20434
|
+
* @param {*} [options] Override http request option.
|
|
20435
|
+
* @throws {RequiredError}
|
|
20436
|
+
*/
|
|
20437
|
+
getContractAbi(requestParameters, options) {
|
|
20438
|
+
return localVarFp.getContractAbi(requestParameters.chainName, requestParameters.contractAddress, requestParameters.methodId, options).then((request) => request(axios, basePath));
|
|
20439
|
+
},
|
|
20195
20440
|
/**
|
|
20196
20441
|
* Get all the Ethereum linked addresses for a user based on its userId
|
|
20197
20442
|
* @summary Get Ethereum linked addresses for a user
|
|
@@ -20243,6 +20488,17 @@ class PassportApi extends BaseAPI {
|
|
|
20243
20488
|
createCounterfactualAddressDeprecated(requestParameters, options) {
|
|
20244
20489
|
return PassportApiFp(this.configuration).createCounterfactualAddressDeprecated(requestParameters.createCounterfactualAddressRequestDeprecated, options).then((request) => request(this.axios, this.basePath));
|
|
20245
20490
|
}
|
|
20491
|
+
/**
|
|
20492
|
+
* Get a contract abi by contract address and method id
|
|
20493
|
+
* @summary Get a contract abi
|
|
20494
|
+
* @param {PassportApiGetContractAbiRequest} requestParameters Request parameters.
|
|
20495
|
+
* @param {*} [options] Override http request option.
|
|
20496
|
+
* @throws {RequiredError}
|
|
20497
|
+
* @memberof PassportApi
|
|
20498
|
+
*/
|
|
20499
|
+
getContractAbi(requestParameters, options) {
|
|
20500
|
+
return PassportApiFp(this.configuration).getContractAbi(requestParameters.chainName, requestParameters.contractAddress, requestParameters.methodId, options).then((request) => request(this.axios, this.basePath));
|
|
20501
|
+
}
|
|
20246
20502
|
/**
|
|
20247
20503
|
* Get all the Ethereum linked addresses for a user based on its userId
|
|
20248
20504
|
* @summary Get Ethereum linked addresses for a user
|
|
@@ -20547,6 +20803,125 @@ class Configuration {
|
|
|
20547
20803
|
}
|
|
20548
20804
|
}
|
|
20549
20805
|
|
|
20806
|
+
/* tslint:disable */
|
|
20807
|
+
/* eslint-disable */
|
|
20808
|
+
/**
|
|
20809
|
+
* Immutable zkEVM API
|
|
20810
|
+
* Immutable Multi Rollup API
|
|
20811
|
+
*
|
|
20812
|
+
* The version of the OpenAPI document: 1.0.0
|
|
20813
|
+
* Contact: support@immutable.com
|
|
20814
|
+
*
|
|
20815
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
20816
|
+
* https://openapi-generator.tech
|
|
20817
|
+
* Do not edit the class manually.
|
|
20818
|
+
*/
|
|
20819
|
+
const APIError400AllOfCodeEnum = {
|
|
20820
|
+
ValidationError: 'VALIDATION_ERROR'
|
|
20821
|
+
};
|
|
20822
|
+
|
|
20823
|
+
/* tslint:disable */
|
|
20824
|
+
/* eslint-disable */
|
|
20825
|
+
/**
|
|
20826
|
+
* Immutable zkEVM API
|
|
20827
|
+
* Immutable Multi Rollup API
|
|
20828
|
+
*
|
|
20829
|
+
* The version of the OpenAPI document: 1.0.0
|
|
20830
|
+
* Contact: support@immutable.com
|
|
20831
|
+
*
|
|
20832
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
20833
|
+
* https://openapi-generator.tech
|
|
20834
|
+
* Do not edit the class manually.
|
|
20835
|
+
*/
|
|
20836
|
+
const APIError401AllOfCodeEnum = {
|
|
20837
|
+
UnauthorisedRequest: 'UNAUTHORISED_REQUEST'
|
|
20838
|
+
};
|
|
20839
|
+
|
|
20840
|
+
/* tslint:disable */
|
|
20841
|
+
/* eslint-disable */
|
|
20842
|
+
/**
|
|
20843
|
+
* Immutable zkEVM API
|
|
20844
|
+
* Immutable Multi Rollup API
|
|
20845
|
+
*
|
|
20846
|
+
* The version of the OpenAPI document: 1.0.0
|
|
20847
|
+
* Contact: support@immutable.com
|
|
20848
|
+
*
|
|
20849
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
20850
|
+
* https://openapi-generator.tech
|
|
20851
|
+
* Do not edit the class manually.
|
|
20852
|
+
*/
|
|
20853
|
+
const APIError403AllOfCodeEnum = {
|
|
20854
|
+
AuthenticationError: 'AUTHENTICATION_ERROR'
|
|
20855
|
+
};
|
|
20856
|
+
|
|
20857
|
+
/* tslint:disable */
|
|
20858
|
+
/* eslint-disable */
|
|
20859
|
+
/**
|
|
20860
|
+
* Immutable zkEVM API
|
|
20861
|
+
* Immutable Multi Rollup API
|
|
20862
|
+
*
|
|
20863
|
+
* The version of the OpenAPI document: 1.0.0
|
|
20864
|
+
* Contact: support@immutable.com
|
|
20865
|
+
*
|
|
20866
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
20867
|
+
* https://openapi-generator.tech
|
|
20868
|
+
* Do not edit the class manually.
|
|
20869
|
+
*/
|
|
20870
|
+
const APIError404AllOfCodeEnum = {
|
|
20871
|
+
ResourceNotFound: 'RESOURCE_NOT_FOUND'
|
|
20872
|
+
};
|
|
20873
|
+
|
|
20874
|
+
/* tslint:disable */
|
|
20875
|
+
/* eslint-disable */
|
|
20876
|
+
/**
|
|
20877
|
+
* Immutable zkEVM API
|
|
20878
|
+
* Immutable Multi Rollup API
|
|
20879
|
+
*
|
|
20880
|
+
* The version of the OpenAPI document: 1.0.0
|
|
20881
|
+
* Contact: support@immutable.com
|
|
20882
|
+
*
|
|
20883
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
20884
|
+
* https://openapi-generator.tech
|
|
20885
|
+
* Do not edit the class manually.
|
|
20886
|
+
*/
|
|
20887
|
+
const APIError429AllOfCodeEnum = {
|
|
20888
|
+
TooManyRequestsError: 'TOO_MANY_REQUESTS_ERROR'
|
|
20889
|
+
};
|
|
20890
|
+
|
|
20891
|
+
/* tslint:disable */
|
|
20892
|
+
/* eslint-disable */
|
|
20893
|
+
/**
|
|
20894
|
+
* Immutable zkEVM API
|
|
20895
|
+
* Immutable Multi Rollup API
|
|
20896
|
+
*
|
|
20897
|
+
* The version of the OpenAPI document: 1.0.0
|
|
20898
|
+
* Contact: support@immutable.com
|
|
20899
|
+
*
|
|
20900
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
20901
|
+
* https://openapi-generator.tech
|
|
20902
|
+
* Do not edit the class manually.
|
|
20903
|
+
*/
|
|
20904
|
+
const APIError500AllOfCodeEnum = {
|
|
20905
|
+
InternalServerError: 'INTERNAL_SERVER_ERROR'
|
|
20906
|
+
};
|
|
20907
|
+
|
|
20908
|
+
/* tslint:disable */
|
|
20909
|
+
/* eslint-disable */
|
|
20910
|
+
/**
|
|
20911
|
+
* Immutable zkEVM API
|
|
20912
|
+
* Immutable Multi Rollup API
|
|
20913
|
+
*
|
|
20914
|
+
* The version of the OpenAPI document: 1.0.0
|
|
20915
|
+
* Contact: support@immutable.com
|
|
20916
|
+
*
|
|
20917
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
20918
|
+
* https://openapi-generator.tech
|
|
20919
|
+
* Do not edit the class manually.
|
|
20920
|
+
*/
|
|
20921
|
+
const APIError501AllOfCodeEnum = {
|
|
20922
|
+
NotImplementedError: 'NOT_IMPLEMENTED_ERROR'
|
|
20923
|
+
};
|
|
20924
|
+
|
|
20550
20925
|
/* tslint:disable */
|
|
20551
20926
|
/* eslint-disable */
|
|
20552
20927
|
/**
|
|
@@ -20631,7 +21006,25 @@ const CancelledOrderStatusCancellationTypeEnum = {
|
|
|
20631
21006
|
* @enum {string}
|
|
20632
21007
|
*/
|
|
20633
21008
|
const CollectionContractType = {
|
|
20634
|
-
Erc721: 'ERC721'
|
|
21009
|
+
Erc721: 'ERC721',
|
|
21010
|
+
Erc1155: 'ERC1155'
|
|
21011
|
+
};
|
|
21012
|
+
|
|
21013
|
+
/* tslint:disable */
|
|
21014
|
+
/* eslint-disable */
|
|
21015
|
+
/**
|
|
21016
|
+
* Immutable zkEVM API
|
|
21017
|
+
* Immutable Multi Rollup API
|
|
21018
|
+
*
|
|
21019
|
+
* The version of the OpenAPI document: 1.0.0
|
|
21020
|
+
* Contact: support@immutable.com
|
|
21021
|
+
*
|
|
21022
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
21023
|
+
* https://openapi-generator.tech
|
|
21024
|
+
* Do not edit the class manually.
|
|
21025
|
+
*/
|
|
21026
|
+
const ERC1155ItemTypeEnum = {
|
|
21027
|
+
Erc1155: 'ERC1155'
|
|
20635
21028
|
};
|
|
20636
21029
|
|
|
20637
21030
|
/* tslint:disable */
|
|
@@ -20647,7 +21040,7 @@ const CollectionContractType = {
|
|
|
20647
21040
|
* https://openapi-generator.tech
|
|
20648
21041
|
* Do not edit the class manually.
|
|
20649
21042
|
*/
|
|
20650
|
-
const
|
|
21043
|
+
const ERC20ItemTypeEnum = {
|
|
20651
21044
|
Erc20: 'ERC20'
|
|
20652
21045
|
};
|
|
20653
21046
|
|
|
@@ -20664,7 +21057,7 @@ const ERC20ItemItemTypeEnum = {
|
|
|
20664
21057
|
* https://openapi-generator.tech
|
|
20665
21058
|
* Do not edit the class manually.
|
|
20666
21059
|
*/
|
|
20667
|
-
const
|
|
21060
|
+
const ERC721ItemTypeEnum = {
|
|
20668
21061
|
Erc721: 'ERC721'
|
|
20669
21062
|
};
|
|
20670
21063
|
|
|
@@ -20699,7 +21092,7 @@ const ExpiredOrderStatusNameEnum = {
|
|
|
20699
21092
|
* Do not edit the class manually.
|
|
20700
21093
|
*/
|
|
20701
21094
|
const FailedOrderCancellationReasonCodeEnum = {
|
|
20702
|
-
|
|
21095
|
+
Filled: 'FILLED'
|
|
20703
21096
|
};
|
|
20704
21097
|
|
|
20705
21098
|
/* tslint:disable */
|
|
@@ -20715,7 +21108,7 @@ const FailedOrderCancellationReasonCodeEnum = {
|
|
|
20715
21108
|
* https://openapi-generator.tech
|
|
20716
21109
|
* Do not edit the class manually.
|
|
20717
21110
|
*/
|
|
20718
|
-
const
|
|
21111
|
+
const FeeTypeEnum = {
|
|
20719
21112
|
Royalty: 'ROYALTY',
|
|
20720
21113
|
MakerEcosystem: 'MAKER_ECOSYSTEM',
|
|
20721
21114
|
TakerEcosystem: 'TAKER_ECOSYSTEM',
|
|
@@ -20739,6 +21132,23 @@ const FilledOrderStatusNameEnum = {
|
|
|
20739
21132
|
Filled: 'FILLED'
|
|
20740
21133
|
};
|
|
20741
21134
|
|
|
21135
|
+
/* tslint:disable */
|
|
21136
|
+
/* eslint-disable */
|
|
21137
|
+
/**
|
|
21138
|
+
* Immutable zkEVM API
|
|
21139
|
+
* Immutable Multi Rollup API
|
|
21140
|
+
*
|
|
21141
|
+
* The version of the OpenAPI document: 1.0.0
|
|
21142
|
+
* Contact: support@immutable.com
|
|
21143
|
+
*
|
|
21144
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
21145
|
+
* https://openapi-generator.tech
|
|
21146
|
+
* Do not edit the class manually.
|
|
21147
|
+
*/
|
|
21148
|
+
const GetContractAbiResTransactionTypeEnum = {
|
|
21149
|
+
Erc20Approve: 'ERC20_APPROVE'
|
|
21150
|
+
};
|
|
21151
|
+
|
|
20742
21152
|
/* tslint:disable */
|
|
20743
21153
|
/* eslint-disable */
|
|
20744
21154
|
/**
|
|
@@ -20756,6 +21166,30 @@ const InactiveOrderStatusNameEnum = {
|
|
|
20756
21166
|
Inactive: 'INACTIVE'
|
|
20757
21167
|
};
|
|
20758
21168
|
|
|
21169
|
+
/* tslint:disable */
|
|
21170
|
+
/* eslint-disable */
|
|
21171
|
+
/**
|
|
21172
|
+
* Immutable zkEVM API
|
|
21173
|
+
* Immutable Multi Rollup API
|
|
21174
|
+
*
|
|
21175
|
+
* The version of the OpenAPI document: 1.0.0
|
|
21176
|
+
* Contact: support@immutable.com
|
|
21177
|
+
*
|
|
21178
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
21179
|
+
* https://openapi-generator.tech
|
|
21180
|
+
* Do not edit the class manually.
|
|
21181
|
+
*/
|
|
21182
|
+
/**
|
|
21183
|
+
* The status of the mint request
|
|
21184
|
+
* @export
|
|
21185
|
+
* @enum {string}
|
|
21186
|
+
*/
|
|
21187
|
+
const MintRequestStatus = {
|
|
21188
|
+
Pending: 'pending',
|
|
21189
|
+
Succeeded: 'succeeded',
|
|
21190
|
+
Failed: 'failed'
|
|
21191
|
+
};
|
|
21192
|
+
|
|
20759
21193
|
/* tslint:disable */
|
|
20760
21194
|
/* eslint-disable */
|
|
20761
21195
|
/**
|
|
@@ -20791,8 +21225,28 @@ const NFTContractType = {
|
|
|
20791
21225
|
* https://openapi-generator.tech
|
|
20792
21226
|
* Do not edit the class manually.
|
|
20793
21227
|
*/
|
|
20794
|
-
const
|
|
20795
|
-
Native: 'NATIVE'
|
|
21228
|
+
const NativeItemTypeEnum = {
|
|
21229
|
+
Native: 'NATIVE',
|
|
21230
|
+
Erc20: 'ERC20',
|
|
21231
|
+
Erc721: 'ERC721',
|
|
21232
|
+
Erc1155: 'ERC1155'
|
|
21233
|
+
};
|
|
21234
|
+
|
|
21235
|
+
/* tslint:disable */
|
|
21236
|
+
/* eslint-disable */
|
|
21237
|
+
/**
|
|
21238
|
+
* Immutable zkEVM API
|
|
21239
|
+
* Immutable Multi Rollup API
|
|
21240
|
+
*
|
|
21241
|
+
* The version of the OpenAPI document: 1.0.0
|
|
21242
|
+
* Contact: support@immutable.com
|
|
21243
|
+
*
|
|
21244
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
21245
|
+
* https://openapi-generator.tech
|
|
21246
|
+
* Do not edit the class manually.
|
|
21247
|
+
*/
|
|
21248
|
+
const OrderTypeEnum = {
|
|
21249
|
+
Listing: 'LISTING'
|
|
20796
21250
|
};
|
|
20797
21251
|
|
|
20798
21252
|
/* tslint:disable */
|
|
@@ -20911,6 +21365,13 @@ const TokenContractType = {
|
|
|
20911
21365
|
|
|
20912
21366
|
var index = /*#__PURE__*/Object.freeze({
|
|
20913
21367
|
__proto__: null,
|
|
21368
|
+
APIError400AllOfCodeEnum: APIError400AllOfCodeEnum,
|
|
21369
|
+
APIError401AllOfCodeEnum: APIError401AllOfCodeEnum,
|
|
21370
|
+
APIError403AllOfCodeEnum: APIError403AllOfCodeEnum,
|
|
21371
|
+
APIError404AllOfCodeEnum: APIError404AllOfCodeEnum,
|
|
21372
|
+
APIError429AllOfCodeEnum: APIError429AllOfCodeEnum,
|
|
21373
|
+
APIError500AllOfCodeEnum: APIError500AllOfCodeEnum,
|
|
21374
|
+
APIError501AllOfCodeEnum: APIError501AllOfCodeEnum,
|
|
20914
21375
|
ActiveOrderStatusNameEnum: ActiveOrderStatusNameEnum,
|
|
20915
21376
|
ActivitiesApi: ActivitiesApi,
|
|
20916
21377
|
ActivitiesApiAxiosParamCreator: ActivitiesApiAxiosParamCreator,
|
|
@@ -20929,12 +21390,14 @@ var index = /*#__PURE__*/Object.freeze({
|
|
|
20929
21390
|
CollectionsApiFactory: CollectionsApiFactory,
|
|
20930
21391
|
CollectionsApiFp: CollectionsApiFp,
|
|
20931
21392
|
Configuration: Configuration,
|
|
20932
|
-
|
|
20933
|
-
|
|
21393
|
+
ERC1155ItemTypeEnum: ERC1155ItemTypeEnum,
|
|
21394
|
+
ERC20ItemTypeEnum: ERC20ItemTypeEnum,
|
|
21395
|
+
ERC721ItemTypeEnum: ERC721ItemTypeEnum,
|
|
20934
21396
|
ExpiredOrderStatusNameEnum: ExpiredOrderStatusNameEnum,
|
|
20935
21397
|
FailedOrderCancellationReasonCodeEnum: FailedOrderCancellationReasonCodeEnum,
|
|
20936
|
-
|
|
21398
|
+
FeeTypeEnum: FeeTypeEnum,
|
|
20937
21399
|
FilledOrderStatusNameEnum: FilledOrderStatusNameEnum,
|
|
21400
|
+
GetContractAbiResTransactionTypeEnum: GetContractAbiResTransactionTypeEnum,
|
|
20938
21401
|
InactiveOrderStatusNameEnum: InactiveOrderStatusNameEnum,
|
|
20939
21402
|
ListListingsSortByEnum: ListListingsSortByEnum$1,
|
|
20940
21403
|
ListListingsSortDirectionEnum: ListListingsSortDirectionEnum$1,
|
|
@@ -20944,8 +21407,9 @@ var index = /*#__PURE__*/Object.freeze({
|
|
|
20944
21407
|
MetadataApiAxiosParamCreator: MetadataApiAxiosParamCreator,
|
|
20945
21408
|
MetadataApiFactory: MetadataApiFactory,
|
|
20946
21409
|
MetadataApiFp: MetadataApiFp,
|
|
21410
|
+
MintRequestStatus: MintRequestStatus,
|
|
20947
21411
|
NFTContractType: NFTContractType,
|
|
20948
|
-
|
|
21412
|
+
NativeItemTypeEnum: NativeItemTypeEnum,
|
|
20949
21413
|
NftOwnersApi: NftOwnersApi,
|
|
20950
21414
|
NftOwnersApiAxiosParamCreator: NftOwnersApiAxiosParamCreator,
|
|
20951
21415
|
NftOwnersApiFactory: NftOwnersApiFactory,
|
|
@@ -20955,6 +21419,7 @@ var index = /*#__PURE__*/Object.freeze({
|
|
|
20955
21419
|
NftsApiFactory: NftsApiFactory,
|
|
20956
21420
|
NftsApiFp: NftsApiFp,
|
|
20957
21421
|
OrderStatusName: OrderStatusName,
|
|
21422
|
+
OrderTypeEnum: OrderTypeEnum,
|
|
20958
21423
|
OrdersApi: OrdersApi,
|
|
20959
21424
|
OrdersApiAxiosParamCreator: OrdersApiAxiosParamCreator,
|
|
20960
21425
|
OrdersApiFactory: OrdersApiFactory,
|
|
@@ -20992,7 +21457,7 @@ class APIError extends Error {
|
|
|
20992
21457
|
|
|
20993
21458
|
/* eslint-disable implicit-arrow-linebreak */
|
|
20994
21459
|
const defaultHeaders = {
|
|
20995
|
-
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.35.
|
|
21460
|
+
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.35.8',
|
|
20996
21461
|
};
|
|
20997
21462
|
/**
|
|
20998
21463
|
* createAPIConfiguration to create a custom Configuration
|
|
@@ -21113,6 +21578,20 @@ class BlockchainData {
|
|
|
21113
21578
|
throw formatError(err);
|
|
21114
21579
|
});
|
|
21115
21580
|
}
|
|
21581
|
+
/**
|
|
21582
|
+
* List activities sorted by updated_at timestamp ascending, useful for time based data replication
|
|
21583
|
+
* @param request - the request object containing the parameters to be provided in the API request
|
|
21584
|
+
* @returns a promise that resolves with a list of activities
|
|
21585
|
+
* @throws {@link index.APIError}
|
|
21586
|
+
*/
|
|
21587
|
+
async listActivityHistory(request) {
|
|
21588
|
+
return await this.activities
|
|
21589
|
+
.listActivityHistory(request)
|
|
21590
|
+
.then((res) => res.data)
|
|
21591
|
+
.catch((err) => {
|
|
21592
|
+
throw formatError(err);
|
|
21593
|
+
});
|
|
21594
|
+
}
|
|
21116
21595
|
/**
|
|
21117
21596
|
* Get a single activity by ID
|
|
21118
21597
|
* @param request - the request object containing the parameters to be provided in the API request
|
|
@@ -21170,7 +21649,7 @@ class BlockchainData {
|
|
|
21170
21649
|
});
|
|
21171
21650
|
}
|
|
21172
21651
|
/**
|
|
21173
|
-
* Get collection by contract address
|
|
21652
|
+
* Get a collection by contract address
|
|
21174
21653
|
* @param request - the request object containing the parameters to be provided in the API request
|
|
21175
21654
|
* @returns a promise that resolves with a single collection
|
|
21176
21655
|
* @throws {@link index.APIError}
|
|
@@ -21274,7 +21753,7 @@ class BlockchainData {
|
|
|
21274
21753
|
* @throws {@link index.APIError}
|
|
21275
21754
|
*/
|
|
21276
21755
|
async listAllNFTOwners(request) {
|
|
21277
|
-
return await this.
|
|
21756
|
+
return await this.nftOwners
|
|
21278
21757
|
.listAllNFTOwners(request)
|
|
21279
21758
|
.then((res) => res.data)
|
|
21280
21759
|
.catch((err) => {
|
|
@@ -21337,6 +21816,20 @@ class BlockchainData {
|
|
|
21337
21816
|
throw formatError(err);
|
|
21338
21817
|
});
|
|
21339
21818
|
}
|
|
21819
|
+
/**
|
|
21820
|
+
* List NFT Metadata by chain
|
|
21821
|
+
* @param request - the request object containing the parameters to be provided in the API request
|
|
21822
|
+
* @returns a promise that resolves with a list of Metadata
|
|
21823
|
+
* @throws {@link index.APIError}
|
|
21824
|
+
*/
|
|
21825
|
+
async listNFTMetadataByChain(request) {
|
|
21826
|
+
return await this.metadata
|
|
21827
|
+
.listMetadataForChain(request)
|
|
21828
|
+
.then((res) => res.data)
|
|
21829
|
+
.catch((err) => {
|
|
21830
|
+
throw formatError(err);
|
|
21831
|
+
});
|
|
21832
|
+
}
|
|
21340
21833
|
/**
|
|
21341
21834
|
* Refresh collection metadata
|
|
21342
21835
|
* @param request - the request object containing the parameters to be provided in the API request
|
|
@@ -22269,7 +22762,7 @@ const GAS_OVERRIDES = {
|
|
|
22269
22762
|
maxPriorityFeePerGas: BigNumber$1.from(101e9),
|
|
22270
22763
|
};
|
|
22271
22764
|
|
|
22272
|
-
const SDK_VERSION_MARKER = '0.35.
|
|
22765
|
+
const SDK_VERSION_MARKER = '0.35.8';
|
|
22273
22766
|
// This SDK version is replaced by the `yarn build` command ran on the root level
|
|
22274
22767
|
const globalPackageVersion = () => SDK_VERSION_MARKER;
|
|
22275
22768
|
|