@imtbl/sdk 0.24.1 → 0.26.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 +382 -0
- package/dist/blockchain_data.js +584 -44
- package/dist/browser/checkout.js +2 -2
- package/dist/checkout_sdk.d.ts +2 -1
- package/dist/checkout_sdk.js +728 -75
- package/dist/checkout_widgets.js +1 -1
- 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 +734 -81
- package/dist/index.d.ts +534 -15
- package/dist/index.js +734 -81
- package/dist/orderbook.d.ts +142 -12
- package/dist/orderbook.js +124 -24
- package/dist/passport.js +293 -11
- package/package.json +1 -1
package/dist/passport.js
CHANGED
|
@@ -606,12 +606,13 @@ const CollectionsApiAxiosParamCreator = function (configuration) {
|
|
|
606
606
|
* List all collections
|
|
607
607
|
* @summary List all collections
|
|
608
608
|
* @param {string} chainName The name of chain
|
|
609
|
+
* @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
|
|
609
610
|
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
610
611
|
* @param {number} [pageSize] Maximum number of items to return
|
|
611
612
|
* @param {*} [options] Override http request option.
|
|
612
613
|
* @throws {RequiredError}
|
|
613
614
|
*/
|
|
614
|
-
listCollections: async (chainName, pageCursor, pageSize, options = {}) => {
|
|
615
|
+
listCollections: async (chainName, fromUpdatedAt, pageCursor, pageSize, options = {}) => {
|
|
615
616
|
// verify required parameter 'chainName' is not null or undefined
|
|
616
617
|
assertParamExists$1('listCollections', 'chainName', chainName);
|
|
617
618
|
const localVarPath = `/v1/chains/{chain_name}/collections`
|
|
@@ -625,6 +626,11 @@ const CollectionsApiAxiosParamCreator = function (configuration) {
|
|
|
625
626
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
626
627
|
const localVarHeaderParameter = {};
|
|
627
628
|
const localVarQueryParameter = {};
|
|
629
|
+
if (fromUpdatedAt !== undefined) {
|
|
630
|
+
localVarQueryParameter['from_updated_at'] = (fromUpdatedAt instanceof Date) ?
|
|
631
|
+
fromUpdatedAt.toISOString() :
|
|
632
|
+
fromUpdatedAt;
|
|
633
|
+
}
|
|
628
634
|
if (pageCursor !== undefined) {
|
|
629
635
|
localVarQueryParameter['page_cursor'] = pageCursor;
|
|
630
636
|
}
|
|
@@ -709,7 +715,7 @@ const CollectionsApiAxiosParamCreator = function (configuration) {
|
|
|
709
715
|
const localVarHeaderParameter = {};
|
|
710
716
|
const localVarQueryParameter = {};
|
|
711
717
|
// authentication ImmutableApiKey required
|
|
712
|
-
await setApiKeyToObject(localVarHeaderParameter, "
|
|
718
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-immutable-api-Key", configuration);
|
|
713
719
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
714
720
|
setSearchParams$1(localVarUrlObj, localVarQueryParameter);
|
|
715
721
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -745,13 +751,14 @@ const CollectionsApiFp = function (configuration) {
|
|
|
745
751
|
* List all collections
|
|
746
752
|
* @summary List all collections
|
|
747
753
|
* @param {string} chainName The name of chain
|
|
754
|
+
* @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
|
|
748
755
|
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
749
756
|
* @param {number} [pageSize] Maximum number of items to return
|
|
750
757
|
* @param {*} [options] Override http request option.
|
|
751
758
|
* @throws {RequiredError}
|
|
752
759
|
*/
|
|
753
|
-
async listCollections(chainName, pageCursor, pageSize, options) {
|
|
754
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listCollections(chainName, pageCursor, pageSize, options);
|
|
760
|
+
async listCollections(chainName, fromUpdatedAt, pageCursor, pageSize, options) {
|
|
761
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listCollections(chainName, fromUpdatedAt, pageCursor, pageSize, options);
|
|
755
762
|
return createRequestFunction$1(localVarAxiosArgs, globalAxios$1, BASE_PATH$1, configuration);
|
|
756
763
|
},
|
|
757
764
|
/**
|
|
@@ -810,7 +817,7 @@ class CollectionsApi extends BaseAPI$1 {
|
|
|
810
817
|
* @memberof CollectionsApi
|
|
811
818
|
*/
|
|
812
819
|
listCollections(requestParameters, options) {
|
|
813
|
-
return CollectionsApiFp(this.configuration).listCollections(requestParameters.chainName, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
820
|
+
return CollectionsApiFp(this.configuration).listCollections(requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
814
821
|
}
|
|
815
822
|
/**
|
|
816
823
|
* List collections by NFT owner account address
|
|
@@ -900,6 +907,53 @@ const NftOwnersApiAxiosParamCreator = function (configuration) {
|
|
|
900
907
|
options: localVarRequestOptions,
|
|
901
908
|
};
|
|
902
909
|
},
|
|
910
|
+
/**
|
|
911
|
+
* List owners by contract address
|
|
912
|
+
* @summary List owners by contract address
|
|
913
|
+
* @param {string} contractAddress The address of contract
|
|
914
|
+
* @param {string} chainName The name of chain
|
|
915
|
+
* @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
|
|
916
|
+
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
917
|
+
* @param {number} [pageSize] Maximum number of items to return
|
|
918
|
+
* @param {*} [options] Override http request option.
|
|
919
|
+
* @throws {RequiredError}
|
|
920
|
+
*/
|
|
921
|
+
listOwnersByContractAddress: async (contractAddress, chainName, fromUpdatedAt, pageCursor, pageSize, options = {}) => {
|
|
922
|
+
// verify required parameter 'contractAddress' is not null or undefined
|
|
923
|
+
assertParamExists$1('listOwnersByContractAddress', 'contractAddress', contractAddress);
|
|
924
|
+
// verify required parameter 'chainName' is not null or undefined
|
|
925
|
+
assertParamExists$1('listOwnersByContractAddress', 'chainName', chainName);
|
|
926
|
+
const localVarPath = `/v1/chains/{chain_name}/collections/{contract_address}/owners`
|
|
927
|
+
.replace(`{${"contract_address"}}`, encodeURIComponent(String(contractAddress)))
|
|
928
|
+
.replace(`{${"chain_name"}}`, encodeURIComponent(String(chainName)));
|
|
929
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
930
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$1);
|
|
931
|
+
let baseOptions;
|
|
932
|
+
if (configuration) {
|
|
933
|
+
baseOptions = configuration.baseOptions;
|
|
934
|
+
}
|
|
935
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
936
|
+
const localVarHeaderParameter = {};
|
|
937
|
+
const localVarQueryParameter = {};
|
|
938
|
+
if (fromUpdatedAt !== undefined) {
|
|
939
|
+
localVarQueryParameter['from_updated_at'] = (fromUpdatedAt instanceof Date) ?
|
|
940
|
+
fromUpdatedAt.toISOString() :
|
|
941
|
+
fromUpdatedAt;
|
|
942
|
+
}
|
|
943
|
+
if (pageCursor !== undefined) {
|
|
944
|
+
localVarQueryParameter['page_cursor'] = pageCursor;
|
|
945
|
+
}
|
|
946
|
+
if (pageSize !== undefined) {
|
|
947
|
+
localVarQueryParameter['page_size'] = pageSize;
|
|
948
|
+
}
|
|
949
|
+
setSearchParams$1(localVarUrlObj, localVarQueryParameter);
|
|
950
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
951
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
952
|
+
return {
|
|
953
|
+
url: toPathString$1(localVarUrlObj),
|
|
954
|
+
options: localVarRequestOptions,
|
|
955
|
+
};
|
|
956
|
+
},
|
|
903
957
|
};
|
|
904
958
|
};
|
|
905
959
|
/**
|
|
@@ -924,6 +978,21 @@ const NftOwnersApiFp = function (configuration) {
|
|
|
924
978
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listNFTOwners(contractAddress, tokenId, chainName, pageCursor, pageSize, options);
|
|
925
979
|
return createRequestFunction$1(localVarAxiosArgs, globalAxios$1, BASE_PATH$1, configuration);
|
|
926
980
|
},
|
|
981
|
+
/**
|
|
982
|
+
* List owners by contract address
|
|
983
|
+
* @summary List owners by contract address
|
|
984
|
+
* @param {string} contractAddress The address of contract
|
|
985
|
+
* @param {string} chainName The name of chain
|
|
986
|
+
* @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
|
|
987
|
+
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
988
|
+
* @param {number} [pageSize] Maximum number of items to return
|
|
989
|
+
* @param {*} [options] Override http request option.
|
|
990
|
+
* @throws {RequiredError}
|
|
991
|
+
*/
|
|
992
|
+
async listOwnersByContractAddress(contractAddress, chainName, fromUpdatedAt, pageCursor, pageSize, options) {
|
|
993
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listOwnersByContractAddress(contractAddress, chainName, fromUpdatedAt, pageCursor, pageSize, options);
|
|
994
|
+
return createRequestFunction$1(localVarAxiosArgs, globalAxios$1, BASE_PATH$1, configuration);
|
|
995
|
+
},
|
|
927
996
|
};
|
|
928
997
|
};
|
|
929
998
|
/**
|
|
@@ -944,6 +1013,17 @@ class NftOwnersApi extends BaseAPI$1 {
|
|
|
944
1013
|
listNFTOwners(requestParameters, options) {
|
|
945
1014
|
return NftOwnersApiFp(this.configuration).listNFTOwners(requestParameters.contractAddress, requestParameters.tokenId, requestParameters.chainName, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
946
1015
|
}
|
|
1016
|
+
/**
|
|
1017
|
+
* List owners by contract address
|
|
1018
|
+
* @summary List owners by contract address
|
|
1019
|
+
* @param {NftOwnersApiListOwnersByContractAddressRequest} requestParameters Request parameters.
|
|
1020
|
+
* @param {*} [options] Override http request option.
|
|
1021
|
+
* @throws {RequiredError}
|
|
1022
|
+
* @memberof NftOwnersApi
|
|
1023
|
+
*/
|
|
1024
|
+
listOwnersByContractAddress(requestParameters, options) {
|
|
1025
|
+
return NftOwnersApiFp(this.configuration).listOwnersByContractAddress(requestParameters.contractAddress, requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
1026
|
+
}
|
|
947
1027
|
}
|
|
948
1028
|
|
|
949
1029
|
/* tslint:disable */
|
|
@@ -1002,17 +1082,106 @@ const NftsApiAxiosParamCreator = function (configuration) {
|
|
|
1002
1082
|
options: localVarRequestOptions,
|
|
1003
1083
|
};
|
|
1004
1084
|
},
|
|
1085
|
+
/**
|
|
1086
|
+
* List all NFT owners on a chain
|
|
1087
|
+
* @summary List all NFT owners
|
|
1088
|
+
* @param {string} chainName The name of chain
|
|
1089
|
+
* @param {string} fromUpdatedAt Datetime to use as the oldest updated timestamp
|
|
1090
|
+
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
1091
|
+
* @param {number} [pageSize] Maximum number of items to return
|
|
1092
|
+
* @param {*} [options] Override http request option.
|
|
1093
|
+
* @throws {RequiredError}
|
|
1094
|
+
*/
|
|
1095
|
+
listAllNFTOwners: async (chainName, fromUpdatedAt, pageCursor, pageSize, options = {}) => {
|
|
1096
|
+
// verify required parameter 'chainName' is not null or undefined
|
|
1097
|
+
assertParamExists$1('listAllNFTOwners', 'chainName', chainName);
|
|
1098
|
+
// verify required parameter 'fromUpdatedAt' is not null or undefined
|
|
1099
|
+
assertParamExists$1('listAllNFTOwners', 'fromUpdatedAt', fromUpdatedAt);
|
|
1100
|
+
const localVarPath = `/v1/chains/{chain_name}/nft-owners`
|
|
1101
|
+
.replace(`{${"chain_name"}}`, encodeURIComponent(String(chainName)));
|
|
1102
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1103
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$1);
|
|
1104
|
+
let baseOptions;
|
|
1105
|
+
if (configuration) {
|
|
1106
|
+
baseOptions = configuration.baseOptions;
|
|
1107
|
+
}
|
|
1108
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1109
|
+
const localVarHeaderParameter = {};
|
|
1110
|
+
const localVarQueryParameter = {};
|
|
1111
|
+
if (fromUpdatedAt !== undefined) {
|
|
1112
|
+
localVarQueryParameter['from_updated_at'] = (fromUpdatedAt instanceof Date) ?
|
|
1113
|
+
fromUpdatedAt.toISOString() :
|
|
1114
|
+
fromUpdatedAt;
|
|
1115
|
+
}
|
|
1116
|
+
if (pageCursor !== undefined) {
|
|
1117
|
+
localVarQueryParameter['page_cursor'] = pageCursor;
|
|
1118
|
+
}
|
|
1119
|
+
if (pageSize !== undefined) {
|
|
1120
|
+
localVarQueryParameter['page_size'] = pageSize;
|
|
1121
|
+
}
|
|
1122
|
+
setSearchParams$1(localVarUrlObj, localVarQueryParameter);
|
|
1123
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1124
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1125
|
+
return {
|
|
1126
|
+
url: toPathString$1(localVarUrlObj),
|
|
1127
|
+
options: localVarRequestOptions,
|
|
1128
|
+
};
|
|
1129
|
+
},
|
|
1130
|
+
/**
|
|
1131
|
+
* List all NFTs on a chain
|
|
1132
|
+
* @summary List all NFTs
|
|
1133
|
+
* @param {string} chainName The name of chain
|
|
1134
|
+
* @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
|
|
1135
|
+
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
1136
|
+
* @param {number} [pageSize] Maximum number of items to return
|
|
1137
|
+
* @param {*} [options] Override http request option.
|
|
1138
|
+
* @throws {RequiredError}
|
|
1139
|
+
*/
|
|
1140
|
+
listAllNFTs: async (chainName, fromUpdatedAt, pageCursor, pageSize, options = {}) => {
|
|
1141
|
+
// verify required parameter 'chainName' is not null or undefined
|
|
1142
|
+
assertParamExists$1('listAllNFTs', 'chainName', chainName);
|
|
1143
|
+
const localVarPath = `/v1/chains/{chain_name}/nfts`
|
|
1144
|
+
.replace(`{${"chain_name"}}`, encodeURIComponent(String(chainName)));
|
|
1145
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1146
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$1);
|
|
1147
|
+
let baseOptions;
|
|
1148
|
+
if (configuration) {
|
|
1149
|
+
baseOptions = configuration.baseOptions;
|
|
1150
|
+
}
|
|
1151
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1152
|
+
const localVarHeaderParameter = {};
|
|
1153
|
+
const localVarQueryParameter = {};
|
|
1154
|
+
if (fromUpdatedAt !== undefined) {
|
|
1155
|
+
localVarQueryParameter['from_updated_at'] = (fromUpdatedAt instanceof Date) ?
|
|
1156
|
+
fromUpdatedAt.toISOString() :
|
|
1157
|
+
fromUpdatedAt;
|
|
1158
|
+
}
|
|
1159
|
+
if (pageCursor !== undefined) {
|
|
1160
|
+
localVarQueryParameter['page_cursor'] = pageCursor;
|
|
1161
|
+
}
|
|
1162
|
+
if (pageSize !== undefined) {
|
|
1163
|
+
localVarQueryParameter['page_size'] = pageSize;
|
|
1164
|
+
}
|
|
1165
|
+
setSearchParams$1(localVarUrlObj, localVarQueryParameter);
|
|
1166
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1167
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1168
|
+
return {
|
|
1169
|
+
url: toPathString$1(localVarUrlObj),
|
|
1170
|
+
options: localVarRequestOptions,
|
|
1171
|
+
};
|
|
1172
|
+
},
|
|
1005
1173
|
/**
|
|
1006
1174
|
* List NFTs by contract address
|
|
1007
1175
|
* @summary List NFTs by contract address
|
|
1008
1176
|
* @param {string} contractAddress Contract address
|
|
1009
1177
|
* @param {string} chainName The name of chain
|
|
1178
|
+
* @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
|
|
1010
1179
|
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
1011
1180
|
* @param {number} [pageSize] Maximum number of items to return
|
|
1012
1181
|
* @param {*} [options] Override http request option.
|
|
1013
1182
|
* @throws {RequiredError}
|
|
1014
1183
|
*/
|
|
1015
|
-
listNFTs: async (contractAddress, chainName, pageCursor, pageSize, options = {}) => {
|
|
1184
|
+
listNFTs: async (contractAddress, chainName, fromUpdatedAt, pageCursor, pageSize, options = {}) => {
|
|
1016
1185
|
// verify required parameter 'contractAddress' is not null or undefined
|
|
1017
1186
|
assertParamExists$1('listNFTs', 'contractAddress', contractAddress);
|
|
1018
1187
|
// verify required parameter 'chainName' is not null or undefined
|
|
@@ -1029,6 +1198,11 @@ const NftsApiAxiosParamCreator = function (configuration) {
|
|
|
1029
1198
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1030
1199
|
const localVarHeaderParameter = {};
|
|
1031
1200
|
const localVarQueryParameter = {};
|
|
1201
|
+
if (fromUpdatedAt !== undefined) {
|
|
1202
|
+
localVarQueryParameter['from_updated_at'] = (fromUpdatedAt instanceof Date) ?
|
|
1203
|
+
fromUpdatedAt.toISOString() :
|
|
1204
|
+
fromUpdatedAt;
|
|
1205
|
+
}
|
|
1032
1206
|
if (pageCursor !== undefined) {
|
|
1033
1207
|
localVarQueryParameter['page_cursor'] = pageCursor;
|
|
1034
1208
|
}
|
|
@@ -1110,18 +1284,47 @@ const NftsApiFp = function (configuration) {
|
|
|
1110
1284
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getNFT(contractAddress, tokenId, chainName, options);
|
|
1111
1285
|
return createRequestFunction$1(localVarAxiosArgs, globalAxios$1, BASE_PATH$1, configuration);
|
|
1112
1286
|
},
|
|
1287
|
+
/**
|
|
1288
|
+
* List all NFT owners on a chain
|
|
1289
|
+
* @summary List all NFT owners
|
|
1290
|
+
* @param {string} chainName The name of chain
|
|
1291
|
+
* @param {string} fromUpdatedAt Datetime to use as the oldest updated timestamp
|
|
1292
|
+
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
1293
|
+
* @param {number} [pageSize] Maximum number of items to return
|
|
1294
|
+
* @param {*} [options] Override http request option.
|
|
1295
|
+
* @throws {RequiredError}
|
|
1296
|
+
*/
|
|
1297
|
+
async listAllNFTOwners(chainName, fromUpdatedAt, pageCursor, pageSize, options) {
|
|
1298
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listAllNFTOwners(chainName, fromUpdatedAt, pageCursor, pageSize, options);
|
|
1299
|
+
return createRequestFunction$1(localVarAxiosArgs, globalAxios$1, BASE_PATH$1, configuration);
|
|
1300
|
+
},
|
|
1301
|
+
/**
|
|
1302
|
+
* List all NFTs on a chain
|
|
1303
|
+
* @summary List all NFTs
|
|
1304
|
+
* @param {string} chainName The name of chain
|
|
1305
|
+
* @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
|
|
1306
|
+
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
1307
|
+
* @param {number} [pageSize] Maximum number of items to return
|
|
1308
|
+
* @param {*} [options] Override http request option.
|
|
1309
|
+
* @throws {RequiredError}
|
|
1310
|
+
*/
|
|
1311
|
+
async listAllNFTs(chainName, fromUpdatedAt, pageCursor, pageSize, options) {
|
|
1312
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listAllNFTs(chainName, fromUpdatedAt, pageCursor, pageSize, options);
|
|
1313
|
+
return createRequestFunction$1(localVarAxiosArgs, globalAxios$1, BASE_PATH$1, configuration);
|
|
1314
|
+
},
|
|
1113
1315
|
/**
|
|
1114
1316
|
* List NFTs by contract address
|
|
1115
1317
|
* @summary List NFTs by contract address
|
|
1116
1318
|
* @param {string} contractAddress Contract address
|
|
1117
1319
|
* @param {string} chainName The name of chain
|
|
1320
|
+
* @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
|
|
1118
1321
|
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
1119
1322
|
* @param {number} [pageSize] Maximum number of items to return
|
|
1120
1323
|
* @param {*} [options] Override http request option.
|
|
1121
1324
|
* @throws {RequiredError}
|
|
1122
1325
|
*/
|
|
1123
|
-
async listNFTs(contractAddress, chainName, pageCursor, pageSize, options) {
|
|
1124
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listNFTs(contractAddress, chainName, pageCursor, pageSize, options);
|
|
1326
|
+
async listNFTs(contractAddress, chainName, fromUpdatedAt, pageCursor, pageSize, options) {
|
|
1327
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listNFTs(contractAddress, chainName, fromUpdatedAt, pageCursor, pageSize, options);
|
|
1125
1328
|
return createRequestFunction$1(localVarAxiosArgs, globalAxios$1, BASE_PATH$1, configuration);
|
|
1126
1329
|
},
|
|
1127
1330
|
/**
|
|
@@ -1159,6 +1362,28 @@ class NftsApi extends BaseAPI$1 {
|
|
|
1159
1362
|
getNFT(requestParameters, options) {
|
|
1160
1363
|
return NftsApiFp(this.configuration).getNFT(requestParameters.contractAddress, requestParameters.tokenId, requestParameters.chainName, options).then((request) => request(this.axios, this.basePath));
|
|
1161
1364
|
}
|
|
1365
|
+
/**
|
|
1366
|
+
* List all NFT owners on a chain
|
|
1367
|
+
* @summary List all NFT owners
|
|
1368
|
+
* @param {NftsApiListAllNFTOwnersRequest} requestParameters Request parameters.
|
|
1369
|
+
* @param {*} [options] Override http request option.
|
|
1370
|
+
* @throws {RequiredError}
|
|
1371
|
+
* @memberof NftsApi
|
|
1372
|
+
*/
|
|
1373
|
+
listAllNFTOwners(requestParameters, options) {
|
|
1374
|
+
return NftsApiFp(this.configuration).listAllNFTOwners(requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
1375
|
+
}
|
|
1376
|
+
/**
|
|
1377
|
+
* List all NFTs on a chain
|
|
1378
|
+
* @summary List all NFTs
|
|
1379
|
+
* @param {NftsApiListAllNFTsRequest} requestParameters Request parameters.
|
|
1380
|
+
* @param {*} [options] Override http request option.
|
|
1381
|
+
* @throws {RequiredError}
|
|
1382
|
+
* @memberof NftsApi
|
|
1383
|
+
*/
|
|
1384
|
+
listAllNFTs(requestParameters, options) {
|
|
1385
|
+
return NftsApiFp(this.configuration).listAllNFTs(requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
1386
|
+
}
|
|
1162
1387
|
/**
|
|
1163
1388
|
* List NFTs by contract address
|
|
1164
1389
|
* @summary List NFTs by contract address
|
|
@@ -1168,7 +1393,7 @@ class NftsApi extends BaseAPI$1 {
|
|
|
1168
1393
|
* @memberof NftsApi
|
|
1169
1394
|
*/
|
|
1170
1395
|
listNFTs(requestParameters, options) {
|
|
1171
|
-
return NftsApiFp(this.configuration).listNFTs(requestParameters.contractAddress, requestParameters.chainName, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
1396
|
+
return NftsApiFp(this.configuration).listNFTs(requestParameters.contractAddress, requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
1172
1397
|
}
|
|
1173
1398
|
/**
|
|
1174
1399
|
* List NFTs by account address
|
|
@@ -1202,6 +1427,40 @@ class NftsApi extends BaseAPI$1 {
|
|
|
1202
1427
|
*/
|
|
1203
1428
|
const OrdersApiAxiosParamCreator = function (configuration) {
|
|
1204
1429
|
return {
|
|
1430
|
+
/**
|
|
1431
|
+
* Cancel one or more orders
|
|
1432
|
+
* @summary Cancel one or more orders
|
|
1433
|
+
* @param {string} chainName
|
|
1434
|
+
* @param {CancelOrdersRequestBody} cancelOrdersRequestBody
|
|
1435
|
+
* @param {*} [options] Override http request option.
|
|
1436
|
+
* @throws {RequiredError}
|
|
1437
|
+
*/
|
|
1438
|
+
cancelOrders: async (chainName, cancelOrdersRequestBody, options = {}) => {
|
|
1439
|
+
// verify required parameter 'chainName' is not null or undefined
|
|
1440
|
+
assertParamExists$1('cancelOrders', 'chainName', chainName);
|
|
1441
|
+
// verify required parameter 'cancelOrdersRequestBody' is not null or undefined
|
|
1442
|
+
assertParamExists$1('cancelOrders', 'cancelOrdersRequestBody', cancelOrdersRequestBody);
|
|
1443
|
+
const localVarPath = `/v1/chains/{chain_name}/orders/cancel`
|
|
1444
|
+
.replace(`{${"chain_name"}}`, encodeURIComponent(String(chainName)));
|
|
1445
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1446
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$1);
|
|
1447
|
+
let baseOptions;
|
|
1448
|
+
if (configuration) {
|
|
1449
|
+
baseOptions = configuration.baseOptions;
|
|
1450
|
+
}
|
|
1451
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
1452
|
+
const localVarHeaderParameter = {};
|
|
1453
|
+
const localVarQueryParameter = {};
|
|
1454
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1455
|
+
setSearchParams$1(localVarUrlObj, localVarQueryParameter);
|
|
1456
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1457
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1458
|
+
localVarRequestOptions.data = serializeDataIfNeeded$1(cancelOrdersRequestBody, localVarRequestOptions, configuration);
|
|
1459
|
+
return {
|
|
1460
|
+
url: toPathString$1(localVarUrlObj),
|
|
1461
|
+
options: localVarRequestOptions,
|
|
1462
|
+
};
|
|
1463
|
+
},
|
|
1205
1464
|
/**
|
|
1206
1465
|
* Create a listing
|
|
1207
1466
|
* @summary Create a listing
|
|
@@ -1455,6 +1714,18 @@ const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
1455
1714
|
const OrdersApiFp = function (configuration) {
|
|
1456
1715
|
const localVarAxiosParamCreator = OrdersApiAxiosParamCreator(configuration);
|
|
1457
1716
|
return {
|
|
1717
|
+
/**
|
|
1718
|
+
* Cancel one or more orders
|
|
1719
|
+
* @summary Cancel one or more orders
|
|
1720
|
+
* @param {string} chainName
|
|
1721
|
+
* @param {CancelOrdersRequestBody} cancelOrdersRequestBody
|
|
1722
|
+
* @param {*} [options] Override http request option.
|
|
1723
|
+
* @throws {RequiredError}
|
|
1724
|
+
*/
|
|
1725
|
+
async cancelOrders(chainName, cancelOrdersRequestBody, options) {
|
|
1726
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.cancelOrders(chainName, cancelOrdersRequestBody, options);
|
|
1727
|
+
return createRequestFunction$1(localVarAxiosArgs, globalAxios$1, BASE_PATH$1, configuration);
|
|
1728
|
+
},
|
|
1458
1729
|
/**
|
|
1459
1730
|
* Create a listing
|
|
1460
1731
|
* @summary Create a listing
|
|
@@ -1547,6 +1818,17 @@ const OrdersApiFp = function (configuration) {
|
|
|
1547
1818
|
* @extends {BaseAPI}
|
|
1548
1819
|
*/
|
|
1549
1820
|
class OrdersApi extends BaseAPI$1 {
|
|
1821
|
+
/**
|
|
1822
|
+
* Cancel one or more orders
|
|
1823
|
+
* @summary Cancel one or more orders
|
|
1824
|
+
* @param {OrdersApiCancelOrdersRequest} requestParameters Request parameters.
|
|
1825
|
+
* @param {*} [options] Override http request option.
|
|
1826
|
+
* @throws {RequiredError}
|
|
1827
|
+
* @memberof OrdersApi
|
|
1828
|
+
*/
|
|
1829
|
+
cancelOrders(requestParameters, options) {
|
|
1830
|
+
return OrdersApiFp(this.configuration).cancelOrders(requestParameters.chainName, requestParameters.cancelOrdersRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
1831
|
+
}
|
|
1550
1832
|
/**
|
|
1551
1833
|
* Create a listing
|
|
1552
1834
|
* @summary Create a listing
|
|
@@ -1785,7 +2067,7 @@ class MultiRollupApiClients {
|
|
|
1785
2067
|
}
|
|
1786
2068
|
|
|
1787
2069
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
1788
|
-
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-0.
|
|
2070
|
+
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-0.26.0' };
|
|
1789
2071
|
const createConfig = ({ basePath, headers, }) => {
|
|
1790
2072
|
if (!basePath.trim()) {
|
|
1791
2073
|
throw Error('basePath can not be empty');
|
|
@@ -1841,7 +2123,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
|
|
|
1841
2123
|
chainID,
|
|
1842
2124
|
coreContractAddress,
|
|
1843
2125
|
registrationContractAddress,
|
|
1844
|
-
sdkVersion: 'ts-immutable-sdk-0.
|
|
2126
|
+
sdkVersion: 'ts-immutable-sdk-0.26.0',
|
|
1845
2127
|
});
|
|
1846
2128
|
/**
|
|
1847
2129
|
* Sets `sdkVersion` at the time of build
|
package/package.json
CHANGED