@imtbl/sdk 0.16.0-alpha.1 → 0.17.0
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 +151 -26
- package/dist/blockchain_data.js +106 -7
- package/dist/browser/checkout.js +2 -2
- package/dist/checkout_sdk.d.ts +218 -40
- package/dist/checkout_sdk.js +751 -297
- package/dist/checkout_widgets.js +1 -1
- package/dist/erc721.d.ts +40 -0
- package/dist/erc721.js +173 -1
- package/dist/erc721_mint_by_id.d.ts +14 -0
- package/dist/erc721_mint_by_id.js +165 -19
- package/dist/immutablex_client.js +1 -1
- package/dist/index.browser.js +14 -14
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +1213 -341
- package/dist/index.d.ts +415 -48
- package/dist/index.js +1198 -326
- package/dist/passport.js +77 -6
- package/package.json +6 -2
|
@@ -1,4 +1,86 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Immutable zkEVM API
|
|
3
|
+
* Immutable Multi Rollup API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: support@immutable.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
interface ConfigurationParameters {
|
|
13
|
+
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
14
|
+
username?: string;
|
|
15
|
+
password?: string;
|
|
16
|
+
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
17
|
+
basePath?: string;
|
|
18
|
+
baseOptions?: any;
|
|
19
|
+
formDataCtor?: new () => any;
|
|
20
|
+
}
|
|
21
|
+
declare class Configuration {
|
|
22
|
+
/**
|
|
23
|
+
* parameter for apiKey security
|
|
24
|
+
* @param name security name
|
|
25
|
+
* @memberof Configuration
|
|
26
|
+
*/
|
|
27
|
+
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
28
|
+
/**
|
|
29
|
+
* parameter for basic security
|
|
30
|
+
*
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof Configuration
|
|
33
|
+
*/
|
|
34
|
+
username?: string;
|
|
35
|
+
/**
|
|
36
|
+
* parameter for basic security
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof Configuration
|
|
40
|
+
*/
|
|
41
|
+
password?: string;
|
|
42
|
+
/**
|
|
43
|
+
* parameter for oauth2 security
|
|
44
|
+
* @param name security name
|
|
45
|
+
* @param scopes oauth2 scope
|
|
46
|
+
* @memberof Configuration
|
|
47
|
+
*/
|
|
48
|
+
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
49
|
+
/**
|
|
50
|
+
* override base path
|
|
51
|
+
*
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof Configuration
|
|
54
|
+
*/
|
|
55
|
+
basePath?: string;
|
|
56
|
+
/**
|
|
57
|
+
* base options for axios calls
|
|
58
|
+
*
|
|
59
|
+
* @type {any}
|
|
60
|
+
* @memberof Configuration
|
|
61
|
+
*/
|
|
62
|
+
baseOptions?: any;
|
|
63
|
+
/**
|
|
64
|
+
* The FormData constructor that will be used to create multipart form data
|
|
65
|
+
* requests. You can inject this here so that execution environments that
|
|
66
|
+
* do not support the FormData class can still run the generated client.
|
|
67
|
+
*
|
|
68
|
+
* @type {new () => FormData}
|
|
69
|
+
*/
|
|
70
|
+
formDataCtor?: new () => any;
|
|
71
|
+
constructor(param?: ConfigurationParameters);
|
|
72
|
+
/**
|
|
73
|
+
* Check if the given MIME is a JSON MIME.
|
|
74
|
+
* JSON MIME examples:
|
|
75
|
+
* application/json
|
|
76
|
+
* application/json; charset=UTF8
|
|
77
|
+
* APPLICATION/JSON
|
|
78
|
+
* application/vnd.company+json
|
|
79
|
+
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
80
|
+
* @return True if the given MIME is JSON, false otherwise.
|
|
81
|
+
*/
|
|
82
|
+
isJsonMime(mime: string): boolean;
|
|
83
|
+
}
|
|
2
84
|
|
|
3
85
|
/**
|
|
4
86
|
* Immutable zkEVM API
|
|
@@ -1657,6 +1739,37 @@ interface CollectionsApiListCollectionsRequest {
|
|
|
1657
1739
|
*/
|
|
1658
1740
|
readonly pageSize?: number;
|
|
1659
1741
|
}
|
|
1742
|
+
/**
|
|
1743
|
+
* Request parameters for listCollectionsByNFTOwner operation in CollectionsApi.
|
|
1744
|
+
* @export
|
|
1745
|
+
* @interface CollectionsApiListCollectionsByNFTOwnerRequest
|
|
1746
|
+
*/
|
|
1747
|
+
interface CollectionsApiListCollectionsByNFTOwnerRequest {
|
|
1748
|
+
/**
|
|
1749
|
+
* Account address
|
|
1750
|
+
* @type {string}
|
|
1751
|
+
* @memberof CollectionsApiListCollectionsByNFTOwner
|
|
1752
|
+
*/
|
|
1753
|
+
readonly accountAddress: string;
|
|
1754
|
+
/**
|
|
1755
|
+
* The name of chain
|
|
1756
|
+
* @type {string}
|
|
1757
|
+
* @memberof CollectionsApiListCollectionsByNFTOwner
|
|
1758
|
+
*/
|
|
1759
|
+
readonly chainName: string;
|
|
1760
|
+
/**
|
|
1761
|
+
* Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
1762
|
+
* @type {string}
|
|
1763
|
+
* @memberof CollectionsApiListCollectionsByNFTOwner
|
|
1764
|
+
*/
|
|
1765
|
+
readonly pageCursor?: string;
|
|
1766
|
+
/**
|
|
1767
|
+
* Maximum number of items to return
|
|
1768
|
+
* @type {number}
|
|
1769
|
+
* @memberof CollectionsApiListCollectionsByNFTOwner
|
|
1770
|
+
*/
|
|
1771
|
+
readonly pageSize?: number;
|
|
1772
|
+
}
|
|
1660
1773
|
|
|
1661
1774
|
/**
|
|
1662
1775
|
* Request parameters for listNFTOwners operation in NftOwnersApi.
|
|
@@ -1854,6 +1967,35 @@ declare class APIError extends Error {
|
|
|
1854
1967
|
constructor({ message, code, details, link, trace_id: traceId, }: OpenAPIError);
|
|
1855
1968
|
}
|
|
1856
1969
|
|
|
1970
|
+
declare enum Environment {
|
|
1971
|
+
PRODUCTION = "production",
|
|
1972
|
+
SANDBOX = "sandbox"
|
|
1973
|
+
}
|
|
1974
|
+
declare class ImmutableConfiguration {
|
|
1975
|
+
readonly environment: Environment;
|
|
1976
|
+
readonly apiKey?: string;
|
|
1977
|
+
constructor(options: {
|
|
1978
|
+
environment: Environment;
|
|
1979
|
+
apiKey?: string;
|
|
1980
|
+
});
|
|
1981
|
+
}
|
|
1982
|
+
interface ModuleConfiguration<T> {
|
|
1983
|
+
baseConfig: ImmutableConfiguration;
|
|
1984
|
+
overrides?: T;
|
|
1985
|
+
}
|
|
1986
|
+
|
|
1987
|
+
interface APIConfigurationParams {
|
|
1988
|
+
basePath: string;
|
|
1989
|
+
headers?: Record<string, string>;
|
|
1990
|
+
}
|
|
1991
|
+
interface BlockchainDataModuleConfiguration extends ModuleConfiguration<APIConfigurationParams> {
|
|
1992
|
+
}
|
|
1993
|
+
declare class BlockchainDataConfiguration {
|
|
1994
|
+
readonly apiConfig: Configuration;
|
|
1995
|
+
readonly baseConfig: ImmutableConfiguration;
|
|
1996
|
+
constructor({ baseConfig, overrides }: BlockchainDataModuleConfiguration);
|
|
1997
|
+
}
|
|
1998
|
+
|
|
1857
1999
|
declare class BlockchainData {
|
|
1858
2000
|
readonly config: BlockchainDataConfiguration;
|
|
1859
2001
|
private readonly activities;
|
|
@@ -1862,7 +2004,7 @@ declare class BlockchainData {
|
|
|
1862
2004
|
private readonly nfts;
|
|
1863
2005
|
private readonly nftOwners;
|
|
1864
2006
|
private readonly tokens;
|
|
1865
|
-
constructor(moduleConfig: BlockchainDataModuleConfiguration
|
|
2007
|
+
constructor(moduleConfig: BlockchainDataModuleConfiguration);
|
|
1866
2008
|
/**
|
|
1867
2009
|
* List all activities
|
|
1868
2010
|
* @param request - the request object containing the parameters to be provided in the API request
|
|
@@ -1891,6 +2033,13 @@ declare class BlockchainData {
|
|
|
1891
2033
|
* @throws {@link index.APIError}
|
|
1892
2034
|
*/
|
|
1893
2035
|
listCollections(request: CollectionsApiListCollectionsRequest): Promise<ListCollectionsResult>;
|
|
2036
|
+
/**
|
|
2037
|
+
* List collections by NFT owner
|
|
2038
|
+
* @param request - the request object containing the parameters to be provided in the API request
|
|
2039
|
+
* @returns a promise that resolves with a list of collections
|
|
2040
|
+
* @throws {@link index.APIError}
|
|
2041
|
+
*/
|
|
2042
|
+
listCollectionsByNFTOwner(request: CollectionsApiListCollectionsByNFTOwnerRequest): Promise<ListCollectionsResult>;
|
|
1894
2043
|
/**
|
|
1895
2044
|
* Get collection by contract address
|
|
1896
2045
|
* @param request - the request object containing the parameters to be provided in the API request
|
|
@@ -1942,30 +2091,6 @@ declare class BlockchainData {
|
|
|
1942
2091
|
getToken(request: TokensApiGetERC20TokenRequest): Promise<GetTokenResult>;
|
|
1943
2092
|
}
|
|
1944
2093
|
|
|
1945
|
-
declare enum Environment {
|
|
1946
|
-
PRODUCTION = "production",
|
|
1947
|
-
SANDBOX = "sandbox"
|
|
1948
|
-
}
|
|
1949
|
-
declare class ImmutableConfiguration {
|
|
1950
|
-
readonly environment: Environment;
|
|
1951
|
-
readonly apiKey?: string;
|
|
1952
|
-
constructor(options: {
|
|
1953
|
-
environment: Environment;
|
|
1954
|
-
apiKey?: string;
|
|
1955
|
-
});
|
|
1956
|
-
}
|
|
1957
|
-
interface ModuleConfiguration<T> {
|
|
1958
|
-
baseConfig: ImmutableConfiguration;
|
|
1959
|
-
overrides?: T;
|
|
1960
|
-
}
|
|
1961
|
-
|
|
1962
|
-
interface APIConfigurationParams {
|
|
1963
|
-
basePath: string;
|
|
1964
|
-
headers?: Record<string, string>;
|
|
1965
|
-
}
|
|
1966
|
-
interface BlockchainDataModuleConfiguration extends ModuleConfiguration<APIConfigurationParams> {
|
|
1967
|
-
}
|
|
1968
|
-
|
|
1969
2094
|
type ActivityType = ActivityType$1;
|
|
1970
2095
|
|
|
1971
2096
|
export { APIError, ActivityType, BlockchainData, BlockchainDataModuleConfiguration };
|
package/dist/blockchain_data.js
CHANGED
|
@@ -585,6 +585,47 @@ const CollectionsApiAxiosParamCreator = function (configuration) {
|
|
|
585
585
|
options: localVarRequestOptions,
|
|
586
586
|
};
|
|
587
587
|
},
|
|
588
|
+
/**
|
|
589
|
+
* List collections by NFT owner account address
|
|
590
|
+
* @summary List collections by NFT owner
|
|
591
|
+
* @param {string} accountAddress Account address
|
|
592
|
+
* @param {string} chainName The name of chain
|
|
593
|
+
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
594
|
+
* @param {number} [pageSize] Maximum number of items to return
|
|
595
|
+
* @param {*} [options] Override http request option.
|
|
596
|
+
* @throws {RequiredError}
|
|
597
|
+
*/
|
|
598
|
+
listCollectionsByNFTOwner: async (accountAddress, chainName, pageCursor, pageSize, options = {}) => {
|
|
599
|
+
// verify required parameter 'accountAddress' is not null or undefined
|
|
600
|
+
assertParamExists('listCollectionsByNFTOwner', 'accountAddress', accountAddress);
|
|
601
|
+
// verify required parameter 'chainName' is not null or undefined
|
|
602
|
+
assertParamExists('listCollectionsByNFTOwner', 'chainName', chainName);
|
|
603
|
+
const localVarPath = `/v1/chains/{chain_name}/accounts/{account_address}/collections`
|
|
604
|
+
.replace(`{${"account_address"}}`, encodeURIComponent(String(accountAddress)))
|
|
605
|
+
.replace(`{${"chain_name"}}`, encodeURIComponent(String(chainName)));
|
|
606
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
607
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
608
|
+
let baseOptions;
|
|
609
|
+
if (configuration) {
|
|
610
|
+
baseOptions = configuration.baseOptions;
|
|
611
|
+
}
|
|
612
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
613
|
+
const localVarHeaderParameter = {};
|
|
614
|
+
const localVarQueryParameter = {};
|
|
615
|
+
if (pageCursor !== undefined) {
|
|
616
|
+
localVarQueryParameter['page_cursor'] = pageCursor;
|
|
617
|
+
}
|
|
618
|
+
if (pageSize !== undefined) {
|
|
619
|
+
localVarQueryParameter['page_size'] = pageSize;
|
|
620
|
+
}
|
|
621
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
622
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
623
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
624
|
+
return {
|
|
625
|
+
url: toPathString(localVarUrlObj),
|
|
626
|
+
options: localVarRequestOptions,
|
|
627
|
+
};
|
|
628
|
+
},
|
|
588
629
|
};
|
|
589
630
|
};
|
|
590
631
|
/**
|
|
@@ -619,6 +660,20 @@ const CollectionsApiFp = function (configuration) {
|
|
|
619
660
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listCollections(chainName, pageCursor, pageSize, options);
|
|
620
661
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
621
662
|
},
|
|
663
|
+
/**
|
|
664
|
+
* List collections by NFT owner account address
|
|
665
|
+
* @summary List collections by NFT owner
|
|
666
|
+
* @param {string} accountAddress Account address
|
|
667
|
+
* @param {string} chainName The name of chain
|
|
668
|
+
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
669
|
+
* @param {number} [pageSize] Maximum number of items to return
|
|
670
|
+
* @param {*} [options] Override http request option.
|
|
671
|
+
* @throws {RequiredError}
|
|
672
|
+
*/
|
|
673
|
+
async listCollectionsByNFTOwner(accountAddress, chainName, pageCursor, pageSize, options) {
|
|
674
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listCollectionsByNFTOwner(accountAddress, chainName, pageCursor, pageSize, options);
|
|
675
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
676
|
+
},
|
|
622
677
|
};
|
|
623
678
|
};
|
|
624
679
|
/**
|
|
@@ -651,6 +706,19 @@ const CollectionsApiFactory = function (configuration, basePath, axios) {
|
|
|
651
706
|
listCollections(chainName, pageCursor, pageSize, options) {
|
|
652
707
|
return localVarFp.listCollections(chainName, pageCursor, pageSize, options).then((request) => request(axios, basePath));
|
|
653
708
|
},
|
|
709
|
+
/**
|
|
710
|
+
* List collections by NFT owner account address
|
|
711
|
+
* @summary List collections by NFT owner
|
|
712
|
+
* @param {string} accountAddress Account address
|
|
713
|
+
* @param {string} chainName The name of chain
|
|
714
|
+
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
715
|
+
* @param {number} [pageSize] Maximum number of items to return
|
|
716
|
+
* @param {*} [options] Override http request option.
|
|
717
|
+
* @throws {RequiredError}
|
|
718
|
+
*/
|
|
719
|
+
listCollectionsByNFTOwner(accountAddress, chainName, pageCursor, pageSize, options) {
|
|
720
|
+
return localVarFp.listCollectionsByNFTOwner(accountAddress, chainName, pageCursor, pageSize, options).then((request) => request(axios, basePath));
|
|
721
|
+
},
|
|
654
722
|
};
|
|
655
723
|
};
|
|
656
724
|
/**
|
|
@@ -682,6 +750,17 @@ class CollectionsApi extends BaseAPI {
|
|
|
682
750
|
listCollections(requestParameters, options) {
|
|
683
751
|
return CollectionsApiFp(this.configuration).listCollections(requestParameters.chainName, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
684
752
|
}
|
|
753
|
+
/**
|
|
754
|
+
* List collections by NFT owner account address
|
|
755
|
+
* @summary List collections by NFT owner
|
|
756
|
+
* @param {CollectionsApiListCollectionsByNFTOwnerRequest} requestParameters Request parameters.
|
|
757
|
+
* @param {*} [options] Override http request option.
|
|
758
|
+
* @throws {RequiredError}
|
|
759
|
+
* @memberof CollectionsApi
|
|
760
|
+
*/
|
|
761
|
+
listCollectionsByNFTOwner(requestParameters, options) {
|
|
762
|
+
return CollectionsApiFp(this.configuration).listCollectionsByNFTOwner(requestParameters.accountAddress, requestParameters.chainName, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
763
|
+
}
|
|
685
764
|
}
|
|
686
765
|
|
|
687
766
|
/* tslint:disable */
|
|
@@ -1320,6 +1399,7 @@ const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
1320
1399
|
* List all trades
|
|
1321
1400
|
* @summary List all trades
|
|
1322
1401
|
* @param {string} chainName
|
|
1402
|
+
* @param {string} [accountAddress]
|
|
1323
1403
|
* @param {number} [pageSize] Maximum number of trades to return per page
|
|
1324
1404
|
* @param {'created_at'} [sortBy] Trade field to sort by
|
|
1325
1405
|
* @param {'asc' | 'desc'} [sortDirection] Ascending or descending direction for sort
|
|
@@ -1327,7 +1407,7 @@ const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
1327
1407
|
* @param {*} [options] Override http request option.
|
|
1328
1408
|
* @throws {RequiredError}
|
|
1329
1409
|
*/
|
|
1330
|
-
listTrades: async (chainName, pageSize, sortBy, sortDirection, pageCursor, options = {}) => {
|
|
1410
|
+
listTrades: async (chainName, accountAddress, pageSize, sortBy, sortDirection, pageCursor, options = {}) => {
|
|
1331
1411
|
// verify required parameter 'chainName' is not null or undefined
|
|
1332
1412
|
assertParamExists('listTrades', 'chainName', chainName);
|
|
1333
1413
|
const localVarPath = `/v1/chains/{chain_name}/trades`
|
|
@@ -1341,6 +1421,9 @@ const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
1341
1421
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1342
1422
|
const localVarHeaderParameter = {};
|
|
1343
1423
|
const localVarQueryParameter = {};
|
|
1424
|
+
if (accountAddress !== undefined) {
|
|
1425
|
+
localVarQueryParameter['account_address'] = accountAddress;
|
|
1426
|
+
}
|
|
1344
1427
|
if (pageSize !== undefined) {
|
|
1345
1428
|
localVarQueryParameter['page_size'] = pageSize;
|
|
1346
1429
|
}
|
|
@@ -1441,6 +1524,7 @@ const OrdersApiFp = function (configuration) {
|
|
|
1441
1524
|
* List all trades
|
|
1442
1525
|
* @summary List all trades
|
|
1443
1526
|
* @param {string} chainName
|
|
1527
|
+
* @param {string} [accountAddress]
|
|
1444
1528
|
* @param {number} [pageSize] Maximum number of trades to return per page
|
|
1445
1529
|
* @param {'created_at'} [sortBy] Trade field to sort by
|
|
1446
1530
|
* @param {'asc' | 'desc'} [sortDirection] Ascending or descending direction for sort
|
|
@@ -1448,8 +1532,8 @@ const OrdersApiFp = function (configuration) {
|
|
|
1448
1532
|
* @param {*} [options] Override http request option.
|
|
1449
1533
|
* @throws {RequiredError}
|
|
1450
1534
|
*/
|
|
1451
|
-
async listTrades(chainName, pageSize, sortBy, sortDirection, pageCursor, options) {
|
|
1452
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listTrades(chainName, pageSize, sortBy, sortDirection, pageCursor, options);
|
|
1535
|
+
async listTrades(chainName, accountAddress, pageSize, sortBy, sortDirection, pageCursor, options) {
|
|
1536
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listTrades(chainName, accountAddress, pageSize, sortBy, sortDirection, pageCursor, options);
|
|
1453
1537
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1454
1538
|
},
|
|
1455
1539
|
};
|
|
@@ -1527,6 +1611,7 @@ const OrdersApiFactory = function (configuration, basePath, axios) {
|
|
|
1527
1611
|
* List all trades
|
|
1528
1612
|
* @summary List all trades
|
|
1529
1613
|
* @param {string} chainName
|
|
1614
|
+
* @param {string} [accountAddress]
|
|
1530
1615
|
* @param {number} [pageSize] Maximum number of trades to return per page
|
|
1531
1616
|
* @param {'created_at'} [sortBy] Trade field to sort by
|
|
1532
1617
|
* @param {'asc' | 'desc'} [sortDirection] Ascending or descending direction for sort
|
|
@@ -1534,8 +1619,8 @@ const OrdersApiFactory = function (configuration, basePath, axios) {
|
|
|
1534
1619
|
* @param {*} [options] Override http request option.
|
|
1535
1620
|
* @throws {RequiredError}
|
|
1536
1621
|
*/
|
|
1537
|
-
listTrades(chainName, pageSize, sortBy, sortDirection, pageCursor, options) {
|
|
1538
|
-
return localVarFp.listTrades(chainName, pageSize, sortBy, sortDirection, pageCursor, options).then((request) => request(axios, basePath));
|
|
1622
|
+
listTrades(chainName, accountAddress, pageSize, sortBy, sortDirection, pageCursor, options) {
|
|
1623
|
+
return localVarFp.listTrades(chainName, accountAddress, pageSize, sortBy, sortDirection, pageCursor, options).then((request) => request(axios, basePath));
|
|
1539
1624
|
},
|
|
1540
1625
|
};
|
|
1541
1626
|
};
|
|
@@ -1610,7 +1695,7 @@ class OrdersApi extends BaseAPI {
|
|
|
1610
1695
|
* @memberof OrdersApi
|
|
1611
1696
|
*/
|
|
1612
1697
|
listTrades(requestParameters, options) {
|
|
1613
|
-
return OrdersApiFp(this.configuration).listTrades(requestParameters.chainName, requestParameters.pageSize, requestParameters.sortBy, requestParameters.sortDirection, requestParameters.pageCursor, options).then((request) => request(this.axios, this.basePath));
|
|
1698
|
+
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));
|
|
1614
1699
|
}
|
|
1615
1700
|
}
|
|
1616
1701
|
|
|
@@ -2487,7 +2572,7 @@ class APIError extends Error {
|
|
|
2487
2572
|
|
|
2488
2573
|
/* eslint-disable implicit-arrow-linebreak */
|
|
2489
2574
|
const defaultHeaders = {
|
|
2490
|
-
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.
|
|
2575
|
+
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.0.0',
|
|
2491
2576
|
};
|
|
2492
2577
|
/**
|
|
2493
2578
|
* createAPIConfiguration to create a custom Configuration
|
|
@@ -2644,6 +2729,20 @@ class BlockchainData {
|
|
|
2644
2729
|
throw formatError(err);
|
|
2645
2730
|
});
|
|
2646
2731
|
}
|
|
2732
|
+
/**
|
|
2733
|
+
* List collections by NFT owner
|
|
2734
|
+
* @param request - the request object containing the parameters to be provided in the API request
|
|
2735
|
+
* @returns a promise that resolves with a list of collections
|
|
2736
|
+
* @throws {@link index.APIError}
|
|
2737
|
+
*/
|
|
2738
|
+
async listCollectionsByNFTOwner(request) {
|
|
2739
|
+
return await this.collections
|
|
2740
|
+
.listCollectionsByNFTOwner(request)
|
|
2741
|
+
.then((res) => res.data)
|
|
2742
|
+
.catch((err) => {
|
|
2743
|
+
throw formatError(err);
|
|
2744
|
+
});
|
|
2745
|
+
}
|
|
2647
2746
|
/**
|
|
2648
2747
|
* Get collection by contract address
|
|
2649
2748
|
* @param request - the request object containing the parameters to be provided in the API request
|