@imtbl/sdk 1.21.0 → 1.21.2-alpha
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 +72 -22
- package/dist/blockchain_data.js +276 -101
- package/dist/browser/checkout/{BridgeWidget-48ef95fb.js → BridgeWidget-050bb010.js} +1 -1
- package/dist/browser/checkout/{HorizontalMenu-actual-1b0aa351.js → HorizontalMenu-actual-254df9f7.js} +1 -1
- package/dist/browser/checkout/{OnRampWidget-1c87f5ac.js → OnRampWidget-84f16f28.js} +1 -1
- package/dist/browser/checkout/{SaleWidget-51e77b6f.js → SaleWidget-b493918f.js} +2 -2
- package/dist/browser/checkout/{SpendingCapHero-43d4d6a1.js → SpendingCapHero-c21b087f.js} +1 -1
- package/dist/browser/checkout/{SwapWidget-3040f466.js → SwapWidget-9190ea19.js} +1 -1
- package/dist/browser/checkout/{TopUpView-9237bc6c.js → TopUpView-5fed36e0.js} +1 -1
- package/dist/browser/checkout/{WalletWidget-b5e4f4d7.js → WalletWidget-ce8ba9a4.js} +1 -1
- package/dist/browser/checkout/{auto-track-dbd0e9c6.js → auto-track-d773ecc1.js} +1 -1
- package/dist/browser/checkout/{balance-3b1416a3.js → balance-faa2470f.js} +1 -1
- package/dist/browser/checkout/{index-d80910d5.js → index-43c6ad17.js} +1 -1
- package/dist/browser/checkout/index-46c773de.js +1 -0
- package/dist/browser/checkout/{index-383a69c3.js → index-4b5a276c.js} +1 -1
- package/dist/browser/checkout/{index-ebf766fc.js → index-70723ad3.js} +1 -1
- package/dist/browser/checkout/{index-f5dd3066.js → index-8d9a8e86.js} +1 -1
- package/dist/browser/checkout/{index-67abd982.js → index-a247827a.js} +3 -3
- package/dist/browser/checkout/{index-a4b63381.js → index-a45f92e4.js} +1 -1
- package/dist/browser/checkout/{index-8107ef81.js → index-a6bbe105.js} +1 -1
- package/dist/browser/checkout/{index.umd-b03c715d.js → index.umd-26384df2.js} +1 -1
- package/dist/browser/checkout/{retry-da82ba74.js → retry-5c1764e1.js} +1 -1
- package/dist/browser/checkout/sdk.js +4 -4
- package/dist/browser/checkout/widgets-esm.js +1 -1
- package/dist/browser/checkout/widgets.js +5 -5
- package/dist/checkout.d.ts +2 -0
- package/dist/checkout.js +278 -103
- package/dist/config.js +1 -1
- package/dist/index.browser.js +11 -28
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +286 -110
- package/dist/index.d.ts +83 -22
- package/dist/index.js +286 -110
- package/dist/orderbook.js +1 -1
- package/dist/passport.js +455 -78
- package/dist/x.d.ts +6 -1
- package/dist/x.js +5 -4
- package/package.json +1 -2
- package/dist/browser/checkout/index-a81361a5.js +0 -1
package/dist/index.js
CHANGED
|
@@ -17,7 +17,6 @@ import jwt_decode from 'jwt-decode';
|
|
|
17
17
|
import * as crypto from 'crypto';
|
|
18
18
|
import { Magic } from 'magic-sdk';
|
|
19
19
|
import { OpenIdExtension } from '@magic-ext/oidc';
|
|
20
|
-
import { generateLegacyStarkPrivateKey as generateLegacyStarkPrivateKey$1, createStarkSigner as createStarkSigner$1 } from '@imtbl/core-sdk';
|
|
21
20
|
import { StaticJsonRpcProvider, Web3Provider, JsonRpcProvider } from '@ethersproject/providers';
|
|
22
21
|
import { EventEmitter } from 'events';
|
|
23
22
|
import { walletContracts } from '@0xsequence/abi';
|
|
@@ -159,7 +158,7 @@ const flattenProperties$1 = (properties) => {
|
|
|
159
158
|
};
|
|
160
159
|
|
|
161
160
|
// WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
|
|
162
|
-
const SDK_VERSION$1 = '1.21.
|
|
161
|
+
const SDK_VERSION$1 = '1.21.2-alpha';
|
|
163
162
|
const getReferrer$1 = () => {
|
|
164
163
|
if (isNode$1()) {
|
|
165
164
|
return '';
|
|
@@ -9059,12 +9058,13 @@ const ActivitiesApiAxiosParamCreator = function (configuration) {
|
|
|
9059
9058
|
* @param {string} fromUpdatedAt From indexed at including given date
|
|
9060
9059
|
* @param {string} [toUpdatedAt] To indexed at including given date
|
|
9061
9060
|
* @param {string} [contractAddress] The contract address of the collection
|
|
9061
|
+
* @param {ActivityType} [activityType] The activity type
|
|
9062
9062
|
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
9063
9063
|
* @param {number} [pageSize] Maximum number of items to return
|
|
9064
9064
|
* @param {*} [options] Override http request option.
|
|
9065
9065
|
* @throws {RequiredError}
|
|
9066
9066
|
*/
|
|
9067
|
-
listActivityHistory: async (chainName, fromUpdatedAt, toUpdatedAt, contractAddress, pageCursor, pageSize, options = {}) => {
|
|
9067
|
+
listActivityHistory: async (chainName, fromUpdatedAt, toUpdatedAt, contractAddress, activityType, pageCursor, pageSize, options = {}) => {
|
|
9068
9068
|
// verify required parameter 'chainName' is not null or undefined
|
|
9069
9069
|
assertParamExists$2('listActivityHistory', 'chainName', chainName);
|
|
9070
9070
|
// verify required parameter 'fromUpdatedAt' is not null or undefined
|
|
@@ -9093,6 +9093,9 @@ const ActivitiesApiAxiosParamCreator = function (configuration) {
|
|
|
9093
9093
|
if (contractAddress !== undefined) {
|
|
9094
9094
|
localVarQueryParameter['contract_address'] = contractAddress;
|
|
9095
9095
|
}
|
|
9096
|
+
if (activityType !== undefined) {
|
|
9097
|
+
localVarQueryParameter['activity_type'] = activityType;
|
|
9098
|
+
}
|
|
9096
9099
|
if (pageCursor !== undefined) {
|
|
9097
9100
|
localVarQueryParameter['page_cursor'] = pageCursor;
|
|
9098
9101
|
}
|
|
@@ -9153,13 +9156,14 @@ const ActivitiesApiFp = function (configuration) {
|
|
|
9153
9156
|
* @param {string} fromUpdatedAt From indexed at including given date
|
|
9154
9157
|
* @param {string} [toUpdatedAt] To indexed at including given date
|
|
9155
9158
|
* @param {string} [contractAddress] The contract address of the collection
|
|
9159
|
+
* @param {ActivityType} [activityType] The activity type
|
|
9156
9160
|
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
9157
9161
|
* @param {number} [pageSize] Maximum number of items to return
|
|
9158
9162
|
* @param {*} [options] Override http request option.
|
|
9159
9163
|
* @throws {RequiredError}
|
|
9160
9164
|
*/
|
|
9161
|
-
async listActivityHistory(chainName, fromUpdatedAt, toUpdatedAt, contractAddress, pageCursor, pageSize, options) {
|
|
9162
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listActivityHistory(chainName, fromUpdatedAt, toUpdatedAt, contractAddress, pageCursor, pageSize, options);
|
|
9165
|
+
async listActivityHistory(chainName, fromUpdatedAt, toUpdatedAt, contractAddress, activityType, pageCursor, pageSize, options) {
|
|
9166
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listActivityHistory(chainName, fromUpdatedAt, toUpdatedAt, contractAddress, activityType, pageCursor, pageSize, options);
|
|
9163
9167
|
return createRequestFunction$2(localVarAxiosArgs, globalAxios$1, BASE_PATH$2, configuration);
|
|
9164
9168
|
},
|
|
9165
9169
|
};
|
|
@@ -9199,7 +9203,7 @@ const ActivitiesApiFactory = function (configuration, basePath, axios) {
|
|
|
9199
9203
|
* @throws {RequiredError}
|
|
9200
9204
|
*/
|
|
9201
9205
|
listActivityHistory(requestParameters, options) {
|
|
9202
|
-
return localVarFp.listActivityHistory(requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.toUpdatedAt, requestParameters.contractAddress, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(axios, basePath));
|
|
9206
|
+
return localVarFp.listActivityHistory(requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.toUpdatedAt, requestParameters.contractAddress, requestParameters.activityType, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(axios, basePath));
|
|
9203
9207
|
},
|
|
9204
9208
|
};
|
|
9205
9209
|
};
|
|
@@ -9241,7 +9245,7 @@ class ActivitiesApi extends BaseAPI$2 {
|
|
|
9241
9245
|
* @memberof ActivitiesApi
|
|
9242
9246
|
*/
|
|
9243
9247
|
listActivityHistory(requestParameters, options) {
|
|
9244
|
-
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));
|
|
9248
|
+
return ActivitiesApiFp(this.configuration).listActivityHistory(requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.toUpdatedAt, requestParameters.contractAddress, requestParameters.activityType, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
9245
9249
|
}
|
|
9246
9250
|
}
|
|
9247
9251
|
|
|
@@ -10451,7 +10455,7 @@ const NftsApiAxiosParamCreator = function (configuration) {
|
|
|
10451
10455
|
* @summary Mint NFTs
|
|
10452
10456
|
* @param {string} contractAddress The address of contract
|
|
10453
10457
|
* @param {string} chainName The name of chain
|
|
10454
|
-
* @param {CreateMintRequestRequest} createMintRequestRequest
|
|
10458
|
+
* @param {CreateMintRequestRequest} createMintRequestRequest Create Mint Request Body
|
|
10455
10459
|
* @param {*} [options] Override http request option.
|
|
10456
10460
|
* @throws {RequiredError}
|
|
10457
10461
|
*/
|
|
@@ -10491,7 +10495,7 @@ const NftsApiAxiosParamCreator = function (configuration) {
|
|
|
10491
10495
|
* @summary Get mint request by reference ID
|
|
10492
10496
|
* @param {string} contractAddress The address of contract
|
|
10493
10497
|
* @param {string} chainName The name of chain
|
|
10494
|
-
* @param {string} referenceId The
|
|
10498
|
+
* @param {string} referenceId The id of the mint request
|
|
10495
10499
|
* @param {*} [options] Override http request option.
|
|
10496
10500
|
* @throws {RequiredError}
|
|
10497
10501
|
*/
|
|
@@ -10762,7 +10766,7 @@ const NftsApiFp = function (configuration) {
|
|
|
10762
10766
|
* @summary Mint NFTs
|
|
10763
10767
|
* @param {string} contractAddress The address of contract
|
|
10764
10768
|
* @param {string} chainName The name of chain
|
|
10765
|
-
* @param {CreateMintRequestRequest} createMintRequestRequest
|
|
10769
|
+
* @param {CreateMintRequestRequest} createMintRequestRequest Create Mint Request Body
|
|
10766
10770
|
* @param {*} [options] Override http request option.
|
|
10767
10771
|
* @throws {RequiredError}
|
|
10768
10772
|
*/
|
|
@@ -10775,7 +10779,7 @@ const NftsApiFp = function (configuration) {
|
|
|
10775
10779
|
* @summary Get mint request by reference ID
|
|
10776
10780
|
* @param {string} contractAddress The address of contract
|
|
10777
10781
|
* @param {string} chainName The name of chain
|
|
10778
|
-
* @param {string} referenceId The
|
|
10782
|
+
* @param {string} referenceId The id of the mint request
|
|
10779
10783
|
* @param {*} [options] Override http request option.
|
|
10780
10784
|
* @throws {RequiredError}
|
|
10781
10785
|
*/
|
|
@@ -11216,6 +11220,7 @@ const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
11216
11220
|
* @param {string} chainName
|
|
11217
11221
|
* @param {OrderStatusName} [status] Order status to filter by
|
|
11218
11222
|
* @param {string} [sellItemContractAddress] Sell item contract address to filter by
|
|
11223
|
+
* @param {ListListingsBuyItemTypeEnum} [buyItemType] Buy item type to filter by
|
|
11219
11224
|
* @param {string} [buyItemContractAddress] Buy item contract address to filter by
|
|
11220
11225
|
* @param {string} [accountAddress] The account address of the user who created the listing
|
|
11221
11226
|
* @param {string} [sellItemMetadataId] The metadata_id of the sell item
|
|
@@ -11228,7 +11233,7 @@ const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
11228
11233
|
* @param {*} [options] Override http request option.
|
|
11229
11234
|
* @throws {RequiredError}
|
|
11230
11235
|
*/
|
|
11231
|
-
listListings: async (chainName, status, sellItemContractAddress, buyItemContractAddress, accountAddress, sellItemMetadataId, sellItemTokenId, fromUpdatedAt, pageSize, sortBy, sortDirection, pageCursor, options = {}) => {
|
|
11236
|
+
listListings: async (chainName, status, sellItemContractAddress, buyItemType, buyItemContractAddress, accountAddress, sellItemMetadataId, sellItemTokenId, fromUpdatedAt, pageSize, sortBy, sortDirection, pageCursor, options = {}) => {
|
|
11232
11237
|
// verify required parameter 'chainName' is not null or undefined
|
|
11233
11238
|
assertParamExists$2('listListings', 'chainName', chainName);
|
|
11234
11239
|
const localVarPath = `/v1/chains/{chain_name}/orders/listings`
|
|
@@ -11248,6 +11253,9 @@ const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
11248
11253
|
if (sellItemContractAddress !== undefined) {
|
|
11249
11254
|
localVarQueryParameter['sell_item_contract_address'] = sellItemContractAddress;
|
|
11250
11255
|
}
|
|
11256
|
+
if (buyItemType !== undefined) {
|
|
11257
|
+
localVarQueryParameter['buy_item_type'] = buyItemType;
|
|
11258
|
+
}
|
|
11251
11259
|
if (buyItemContractAddress !== undefined) {
|
|
11252
11260
|
localVarQueryParameter['buy_item_contract_address'] = buyItemContractAddress;
|
|
11253
11261
|
}
|
|
@@ -11415,6 +11423,7 @@ const OrdersApiFp = function (configuration) {
|
|
|
11415
11423
|
* @param {string} chainName
|
|
11416
11424
|
* @param {OrderStatusName} [status] Order status to filter by
|
|
11417
11425
|
* @param {string} [sellItemContractAddress] Sell item contract address to filter by
|
|
11426
|
+
* @param {ListListingsBuyItemTypeEnum} [buyItemType] Buy item type to filter by
|
|
11418
11427
|
* @param {string} [buyItemContractAddress] Buy item contract address to filter by
|
|
11419
11428
|
* @param {string} [accountAddress] The account address of the user who created the listing
|
|
11420
11429
|
* @param {string} [sellItemMetadataId] The metadata_id of the sell item
|
|
@@ -11427,8 +11436,8 @@ const OrdersApiFp = function (configuration) {
|
|
|
11427
11436
|
* @param {*} [options] Override http request option.
|
|
11428
11437
|
* @throws {RequiredError}
|
|
11429
11438
|
*/
|
|
11430
|
-
async listListings(chainName, status, sellItemContractAddress, buyItemContractAddress, accountAddress, sellItemMetadataId, sellItemTokenId, fromUpdatedAt, pageSize, sortBy, sortDirection, pageCursor, options) {
|
|
11431
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listListings(chainName, status, sellItemContractAddress, buyItemContractAddress, accountAddress, sellItemMetadataId, sellItemTokenId, fromUpdatedAt, pageSize, sortBy, sortDirection, pageCursor, options);
|
|
11439
|
+
async listListings(chainName, status, sellItemContractAddress, buyItemType, buyItemContractAddress, accountAddress, sellItemMetadataId, sellItemTokenId, fromUpdatedAt, pageSize, sortBy, sortDirection, pageCursor, options) {
|
|
11440
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listListings(chainName, status, sellItemContractAddress, buyItemType, buyItemContractAddress, accountAddress, sellItemMetadataId, sellItemTokenId, fromUpdatedAt, pageSize, sortBy, sortDirection, pageCursor, options);
|
|
11432
11441
|
return createRequestFunction$2(localVarAxiosArgs, globalAxios$1, BASE_PATH$2, configuration);
|
|
11433
11442
|
},
|
|
11434
11443
|
/**
|
|
@@ -11515,7 +11524,7 @@ const OrdersApiFactory = function (configuration, basePath, axios) {
|
|
|
11515
11524
|
* @throws {RequiredError}
|
|
11516
11525
|
*/
|
|
11517
11526
|
listListings(requestParameters, options) {
|
|
11518
|
-
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));
|
|
11527
|
+
return localVarFp.listListings(requestParameters.chainName, requestParameters.status, requestParameters.sellItemContractAddress, requestParameters.buyItemType, requestParameters.buyItemContractAddress, requestParameters.accountAddress, requestParameters.sellItemMetadataId, requestParameters.sellItemTokenId, requestParameters.fromUpdatedAt, requestParameters.pageSize, requestParameters.sortBy, requestParameters.sortDirection, requestParameters.pageCursor, options).then((request) => request(axios, basePath));
|
|
11519
11528
|
},
|
|
11520
11529
|
/**
|
|
11521
11530
|
* List all trades
|
|
@@ -11600,7 +11609,7 @@ let OrdersApi$2 = class OrdersApi extends BaseAPI$2 {
|
|
|
11600
11609
|
* @memberof OrdersApi
|
|
11601
11610
|
*/
|
|
11602
11611
|
listListings(requestParameters, options) {
|
|
11603
|
-
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));
|
|
11612
|
+
return OrdersApiFp(this.configuration).listListings(requestParameters.chainName, requestParameters.status, requestParameters.sellItemContractAddress, requestParameters.buyItemType, 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));
|
|
11604
11613
|
}
|
|
11605
11614
|
/**
|
|
11606
11615
|
* List all trades
|
|
@@ -11614,6 +11623,13 @@ let OrdersApi$2 = class OrdersApi extends BaseAPI$2 {
|
|
|
11614
11623
|
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));
|
|
11615
11624
|
}
|
|
11616
11625
|
};
|
|
11626
|
+
/**
|
|
11627
|
+
* @export
|
|
11628
|
+
*/
|
|
11629
|
+
const ListListingsBuyItemTypeEnum = {
|
|
11630
|
+
Native: 'NATIVE',
|
|
11631
|
+
Erc20: 'ERC20'
|
|
11632
|
+
};
|
|
11617
11633
|
/**
|
|
11618
11634
|
* @export
|
|
11619
11635
|
*/
|
|
@@ -11668,6 +11684,7 @@ const PassportApiAxiosParamCreator = function (configuration) {
|
|
|
11668
11684
|
* @param {string} chainName
|
|
11669
11685
|
* @param {CreateCounterfactualAddressRequest} createCounterfactualAddressRequest
|
|
11670
11686
|
* @param {*} [options] Override http request option.
|
|
11687
|
+
* @deprecated
|
|
11671
11688
|
* @throws {RequiredError}
|
|
11672
11689
|
*/
|
|
11673
11690
|
createCounterfactualAddress: async (chainName, createCounterfactualAddressRequest, options = {}) => {
|
|
@@ -11704,6 +11721,7 @@ const PassportApiAxiosParamCreator = function (configuration) {
|
|
|
11704
11721
|
* @summary Deprecated Create a counterfactual address
|
|
11705
11722
|
* @param {CreateCounterfactualAddressRequestDeprecated} createCounterfactualAddressRequestDeprecated
|
|
11706
11723
|
* @param {*} [options] Override http request option.
|
|
11724
|
+
* @deprecated
|
|
11707
11725
|
* @throws {RequiredError}
|
|
11708
11726
|
*/
|
|
11709
11727
|
createCounterfactualAddressDeprecated: async (createCounterfactualAddressRequestDeprecated, options = {}) => {
|
|
@@ -11770,22 +11788,20 @@ const PassportApiAxiosParamCreator = function (configuration) {
|
|
|
11770
11788
|
};
|
|
11771
11789
|
},
|
|
11772
11790
|
/**
|
|
11773
|
-
* Get
|
|
11774
|
-
* @summary Get a
|
|
11791
|
+
* Get all the Ethereum linked addresses for a user based on its userId
|
|
11792
|
+
* @summary Get Ethereum linked addresses for a user
|
|
11793
|
+
* @param {string} userId The user\'s userId
|
|
11775
11794
|
* @param {string} chainName
|
|
11776
|
-
* @param {string} contractAddress contract address
|
|
11777
|
-
* @param {string} methodId method id
|
|
11778
11795
|
* @param {*} [options] Override http request option.
|
|
11779
11796
|
* @throws {RequiredError}
|
|
11780
11797
|
*/
|
|
11781
|
-
|
|
11798
|
+
getLinkedAddresses: async (userId, chainName, options = {}) => {
|
|
11799
|
+
// verify required parameter 'userId' is not null or undefined
|
|
11800
|
+
assertParamExists$2('getLinkedAddresses', 'userId', userId);
|
|
11782
11801
|
// verify required parameter 'chainName' is not null or undefined
|
|
11783
|
-
assertParamExists$2('
|
|
11784
|
-
|
|
11785
|
-
|
|
11786
|
-
// verify required parameter 'methodId' is not null or undefined
|
|
11787
|
-
assertParamExists$2('getContractAbi', 'methodId', methodId);
|
|
11788
|
-
const localVarPath = `/v1/chains/{chain_name}/passport/transaction-metadata`
|
|
11802
|
+
assertParamExists$2('getLinkedAddresses', 'chainName', chainName);
|
|
11803
|
+
const localVarPath = `/v1/chains/{chain_name}/passport/users/{user_id}/linked-addresses`
|
|
11804
|
+
.replace(`{${"user_id"}}`, encodeURIComponent(String(userId)))
|
|
11789
11805
|
.replace(`{${"chain_name"}}`, encodeURIComponent(String(chainName)));
|
|
11790
11806
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11791
11807
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$2);
|
|
@@ -11799,12 +11815,6 @@ const PassportApiAxiosParamCreator = function (configuration) {
|
|
|
11799
11815
|
// authentication BearerAuth required
|
|
11800
11816
|
// http bearer authentication required
|
|
11801
11817
|
await setBearerAuthToObject$1(localVarHeaderParameter, configuration);
|
|
11802
|
-
if (contractAddress !== undefined) {
|
|
11803
|
-
localVarQueryParameter['contract_address'] = contractAddress;
|
|
11804
|
-
}
|
|
11805
|
-
if (methodId !== undefined) {
|
|
11806
|
-
localVarQueryParameter['method_id'] = methodId;
|
|
11807
|
-
}
|
|
11808
11818
|
setSearchParams$2(localVarUrlObj, localVarQueryParameter);
|
|
11809
11819
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11810
11820
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -11815,19 +11825,51 @@ const PassportApiAxiosParamCreator = function (configuration) {
|
|
|
11815
11825
|
},
|
|
11816
11826
|
/**
|
|
11817
11827
|
* Get all the Ethereum linked addresses for a user based on its userId
|
|
11818
|
-
* @summary Get Ethereum linked addresses for a user
|
|
11828
|
+
* @summary Deprecated Get Ethereum linked addresses for a user
|
|
11819
11829
|
* @param {string} userId The user\'s userId
|
|
11820
|
-
* @param {string} chainName
|
|
11821
11830
|
* @param {*} [options] Override http request option.
|
|
11831
|
+
* @deprecated
|
|
11822
11832
|
* @throws {RequiredError}
|
|
11823
11833
|
*/
|
|
11824
|
-
|
|
11834
|
+
getLinkedAddressesDeprecated: async (userId, options = {}) => {
|
|
11825
11835
|
// verify required parameter 'userId' is not null or undefined
|
|
11826
|
-
assertParamExists$2('
|
|
11836
|
+
assertParamExists$2('getLinkedAddressesDeprecated', 'userId', userId);
|
|
11837
|
+
const localVarPath = `/passport-mr/v1/users/{userId}/linked-addresses`
|
|
11838
|
+
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
11839
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11840
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$2);
|
|
11841
|
+
let baseOptions;
|
|
11842
|
+
if (configuration) {
|
|
11843
|
+
baseOptions = configuration.baseOptions;
|
|
11844
|
+
}
|
|
11845
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
11846
|
+
const localVarHeaderParameter = {};
|
|
11847
|
+
const localVarQueryParameter = {};
|
|
11848
|
+
// authentication BearerAuth required
|
|
11849
|
+
// http bearer authentication required
|
|
11850
|
+
await setBearerAuthToObject$1(localVarHeaderParameter, configuration);
|
|
11851
|
+
setSearchParams$2(localVarUrlObj, localVarQueryParameter);
|
|
11852
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11853
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
11854
|
+
return {
|
|
11855
|
+
url: toPathString$2(localVarUrlObj),
|
|
11856
|
+
options: localVarRequestOptions,
|
|
11857
|
+
};
|
|
11858
|
+
},
|
|
11859
|
+
/**
|
|
11860
|
+
* Get transaction metadata for a given encoded transaction
|
|
11861
|
+
* @summary Get transaction metadata
|
|
11862
|
+
* @param {string} chainName
|
|
11863
|
+
* @param {GetTransactionMetadataRequest} getTransactionMetadataRequest
|
|
11864
|
+
* @param {*} [options] Override http request option.
|
|
11865
|
+
* @throws {RequiredError}
|
|
11866
|
+
*/
|
|
11867
|
+
getTransactionMetadata: async (chainName, getTransactionMetadataRequest, options = {}) => {
|
|
11827
11868
|
// verify required parameter 'chainName' is not null or undefined
|
|
11828
|
-
assertParamExists$2('
|
|
11829
|
-
|
|
11830
|
-
|
|
11869
|
+
assertParamExists$2('getTransactionMetadata', 'chainName', chainName);
|
|
11870
|
+
// verify required parameter 'getTransactionMetadataRequest' is not null or undefined
|
|
11871
|
+
assertParamExists$2('getTransactionMetadata', 'getTransactionMetadataRequest', getTransactionMetadataRequest);
|
|
11872
|
+
const localVarPath = `/v1/chains/{chain_name}/passport/transaction-metadata`
|
|
11831
11873
|
.replace(`{${"chain_name"}}`, encodeURIComponent(String(chainName)));
|
|
11832
11874
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11833
11875
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$2);
|
|
@@ -11835,32 +11877,47 @@ const PassportApiAxiosParamCreator = function (configuration) {
|
|
|
11835
11877
|
if (configuration) {
|
|
11836
11878
|
baseOptions = configuration.baseOptions;
|
|
11837
11879
|
}
|
|
11838
|
-
const localVarRequestOptions = { method: '
|
|
11880
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
11839
11881
|
const localVarHeaderParameter = {};
|
|
11840
11882
|
const localVarQueryParameter = {};
|
|
11841
11883
|
// authentication BearerAuth required
|
|
11842
11884
|
// http bearer authentication required
|
|
11843
11885
|
await setBearerAuthToObject$1(localVarHeaderParameter, configuration);
|
|
11886
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
11844
11887
|
setSearchParams$2(localVarUrlObj, localVarQueryParameter);
|
|
11845
11888
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11846
11889
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
11890
|
+
localVarRequestOptions.data = serializeDataIfNeeded$2(getTransactionMetadataRequest, localVarRequestOptions, configuration);
|
|
11847
11891
|
return {
|
|
11848
11892
|
url: toPathString$2(localVarUrlObj),
|
|
11849
11893
|
options: localVarRequestOptions,
|
|
11850
11894
|
};
|
|
11851
11895
|
},
|
|
11852
11896
|
/**
|
|
11853
|
-
* Get
|
|
11854
|
-
* @summary
|
|
11855
|
-
* @param {string}
|
|
11897
|
+
* Get transaction metadata for a given encoded transaction
|
|
11898
|
+
* @summary Get transaction metadata
|
|
11899
|
+
* @param {string} chainName
|
|
11900
|
+
* @param {string} contractAddress The address of the contract intended for interaction with this transaction
|
|
11901
|
+
* @param {string} methodId The method ID of the contract intended for interaction with this transaction
|
|
11902
|
+
* @param {string} transactionId ID of the given transaction to be decoded
|
|
11903
|
+
* @param {string} transactionData Encoded transaction data
|
|
11856
11904
|
* @param {*} [options] Override http request option.
|
|
11905
|
+
* @deprecated
|
|
11857
11906
|
* @throws {RequiredError}
|
|
11858
11907
|
*/
|
|
11859
|
-
|
|
11860
|
-
// verify required parameter '
|
|
11861
|
-
assertParamExists$2('
|
|
11862
|
-
|
|
11863
|
-
|
|
11908
|
+
getTransactionMetadataDeprecated: async (chainName, contractAddress, methodId, transactionId, transactionData, options = {}) => {
|
|
11909
|
+
// verify required parameter 'chainName' is not null or undefined
|
|
11910
|
+
assertParamExists$2('getTransactionMetadataDeprecated', 'chainName', chainName);
|
|
11911
|
+
// verify required parameter 'contractAddress' is not null or undefined
|
|
11912
|
+
assertParamExists$2('getTransactionMetadataDeprecated', 'contractAddress', contractAddress);
|
|
11913
|
+
// verify required parameter 'methodId' is not null or undefined
|
|
11914
|
+
assertParamExists$2('getTransactionMetadataDeprecated', 'methodId', methodId);
|
|
11915
|
+
// verify required parameter 'transactionId' is not null or undefined
|
|
11916
|
+
assertParamExists$2('getTransactionMetadataDeprecated', 'transactionId', transactionId);
|
|
11917
|
+
// verify required parameter 'transactionData' is not null or undefined
|
|
11918
|
+
assertParamExists$2('getTransactionMetadataDeprecated', 'transactionData', transactionData);
|
|
11919
|
+
const localVarPath = `/v1/chains/{chain_name}/passport/transaction-metadata`
|
|
11920
|
+
.replace(`{${"chain_name"}}`, encodeURIComponent(String(chainName)));
|
|
11864
11921
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11865
11922
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$2);
|
|
11866
11923
|
let baseOptions;
|
|
@@ -11873,6 +11930,18 @@ const PassportApiAxiosParamCreator = function (configuration) {
|
|
|
11873
11930
|
// authentication BearerAuth required
|
|
11874
11931
|
// http bearer authentication required
|
|
11875
11932
|
await setBearerAuthToObject$1(localVarHeaderParameter, configuration);
|
|
11933
|
+
if (contractAddress !== undefined) {
|
|
11934
|
+
localVarQueryParameter['contract_address'] = contractAddress;
|
|
11935
|
+
}
|
|
11936
|
+
if (methodId !== undefined) {
|
|
11937
|
+
localVarQueryParameter['method_id'] = methodId;
|
|
11938
|
+
}
|
|
11939
|
+
if (transactionId !== undefined) {
|
|
11940
|
+
localVarQueryParameter['transaction_id'] = transactionId;
|
|
11941
|
+
}
|
|
11942
|
+
if (transactionData !== undefined) {
|
|
11943
|
+
localVarQueryParameter['transaction_data'] = transactionData;
|
|
11944
|
+
}
|
|
11876
11945
|
setSearchParams$2(localVarUrlObj, localVarQueryParameter);
|
|
11877
11946
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11878
11947
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -11896,6 +11965,7 @@ const PassportApiFp = function (configuration) {
|
|
|
11896
11965
|
* @param {string} chainName
|
|
11897
11966
|
* @param {CreateCounterfactualAddressRequest} createCounterfactualAddressRequest
|
|
11898
11967
|
* @param {*} [options] Override http request option.
|
|
11968
|
+
* @deprecated
|
|
11899
11969
|
* @throws {RequiredError}
|
|
11900
11970
|
*/
|
|
11901
11971
|
async createCounterfactualAddress(chainName, createCounterfactualAddressRequest, options) {
|
|
@@ -11907,6 +11977,7 @@ const PassportApiFp = function (configuration) {
|
|
|
11907
11977
|
* @summary Deprecated Create a counterfactual address
|
|
11908
11978
|
* @param {CreateCounterfactualAddressRequestDeprecated} createCounterfactualAddressRequestDeprecated
|
|
11909
11979
|
* @param {*} [options] Override http request option.
|
|
11980
|
+
* @deprecated
|
|
11910
11981
|
* @throws {RequiredError}
|
|
11911
11982
|
*/
|
|
11912
11983
|
async createCounterfactualAddressDeprecated(createCounterfactualAddressRequestDeprecated, options) {
|
|
@@ -11925,19 +11996,6 @@ const PassportApiFp = function (configuration) {
|
|
|
11925
11996
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createCounterfactualAddressV2(chainName, createCounterfactualAddressRequest, options);
|
|
11926
11997
|
return createRequestFunction$2(localVarAxiosArgs, globalAxios$1, BASE_PATH$2, configuration);
|
|
11927
11998
|
},
|
|
11928
|
-
/**
|
|
11929
|
-
* Get a contract abi by contract address and method id
|
|
11930
|
-
* @summary Get a contract abi
|
|
11931
|
-
* @param {string} chainName
|
|
11932
|
-
* @param {string} contractAddress contract address
|
|
11933
|
-
* @param {string} methodId method id
|
|
11934
|
-
* @param {*} [options] Override http request option.
|
|
11935
|
-
* @throws {RequiredError}
|
|
11936
|
-
*/
|
|
11937
|
-
async getContractAbi(chainName, contractAddress, methodId, options) {
|
|
11938
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getContractAbi(chainName, contractAddress, methodId, options);
|
|
11939
|
-
return createRequestFunction$2(localVarAxiosArgs, globalAxios$1, BASE_PATH$2, configuration);
|
|
11940
|
-
},
|
|
11941
11999
|
/**
|
|
11942
12000
|
* Get all the Ethereum linked addresses for a user based on its userId
|
|
11943
12001
|
* @summary Get Ethereum linked addresses for a user
|
|
@@ -11955,12 +12013,41 @@ const PassportApiFp = function (configuration) {
|
|
|
11955
12013
|
* @summary Deprecated Get Ethereum linked addresses for a user
|
|
11956
12014
|
* @param {string} userId The user\'s userId
|
|
11957
12015
|
* @param {*} [options] Override http request option.
|
|
12016
|
+
* @deprecated
|
|
11958
12017
|
* @throws {RequiredError}
|
|
11959
12018
|
*/
|
|
11960
12019
|
async getLinkedAddressesDeprecated(userId, options) {
|
|
11961
12020
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getLinkedAddressesDeprecated(userId, options);
|
|
11962
12021
|
return createRequestFunction$2(localVarAxiosArgs, globalAxios$1, BASE_PATH$2, configuration);
|
|
11963
12022
|
},
|
|
12023
|
+
/**
|
|
12024
|
+
* Get transaction metadata for a given encoded transaction
|
|
12025
|
+
* @summary Get transaction metadata
|
|
12026
|
+
* @param {string} chainName
|
|
12027
|
+
* @param {GetTransactionMetadataRequest} getTransactionMetadataRequest
|
|
12028
|
+
* @param {*} [options] Override http request option.
|
|
12029
|
+
* @throws {RequiredError}
|
|
12030
|
+
*/
|
|
12031
|
+
async getTransactionMetadata(chainName, getTransactionMetadataRequest, options) {
|
|
12032
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getTransactionMetadata(chainName, getTransactionMetadataRequest, options);
|
|
12033
|
+
return createRequestFunction$2(localVarAxiosArgs, globalAxios$1, BASE_PATH$2, configuration);
|
|
12034
|
+
},
|
|
12035
|
+
/**
|
|
12036
|
+
* Get transaction metadata for a given encoded transaction
|
|
12037
|
+
* @summary Get transaction metadata
|
|
12038
|
+
* @param {string} chainName
|
|
12039
|
+
* @param {string} contractAddress The address of the contract intended for interaction with this transaction
|
|
12040
|
+
* @param {string} methodId The method ID of the contract intended for interaction with this transaction
|
|
12041
|
+
* @param {string} transactionId ID of the given transaction to be decoded
|
|
12042
|
+
* @param {string} transactionData Encoded transaction data
|
|
12043
|
+
* @param {*} [options] Override http request option.
|
|
12044
|
+
* @deprecated
|
|
12045
|
+
* @throws {RequiredError}
|
|
12046
|
+
*/
|
|
12047
|
+
async getTransactionMetadataDeprecated(chainName, contractAddress, methodId, transactionId, transactionData, options) {
|
|
12048
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getTransactionMetadataDeprecated(chainName, contractAddress, methodId, transactionId, transactionData, options);
|
|
12049
|
+
return createRequestFunction$2(localVarAxiosArgs, globalAxios$1, BASE_PATH$2, configuration);
|
|
12050
|
+
},
|
|
11964
12051
|
};
|
|
11965
12052
|
};
|
|
11966
12053
|
/**
|
|
@@ -11975,6 +12062,7 @@ const PassportApiFactory = function (configuration, basePath, axios) {
|
|
|
11975
12062
|
* @summary Create a counterfactual address
|
|
11976
12063
|
* @param {PassportApiCreateCounterfactualAddressRequest} requestParameters Request parameters.
|
|
11977
12064
|
* @param {*} [options] Override http request option.
|
|
12065
|
+
* @deprecated
|
|
11978
12066
|
* @throws {RequiredError}
|
|
11979
12067
|
*/
|
|
11980
12068
|
createCounterfactualAddress(requestParameters, options) {
|
|
@@ -11985,6 +12073,7 @@ const PassportApiFactory = function (configuration, basePath, axios) {
|
|
|
11985
12073
|
* @summary Deprecated Create a counterfactual address
|
|
11986
12074
|
* @param {PassportApiCreateCounterfactualAddressDeprecatedRequest} requestParameters Request parameters.
|
|
11987
12075
|
* @param {*} [options] Override http request option.
|
|
12076
|
+
* @deprecated
|
|
11988
12077
|
* @throws {RequiredError}
|
|
11989
12078
|
*/
|
|
11990
12079
|
createCounterfactualAddressDeprecated(requestParameters, options) {
|
|
@@ -12000,16 +12089,6 @@ const PassportApiFactory = function (configuration, basePath, axios) {
|
|
|
12000
12089
|
createCounterfactualAddressV2(requestParameters, options) {
|
|
12001
12090
|
return localVarFp.createCounterfactualAddressV2(requestParameters.chainName, requestParameters.createCounterfactualAddressRequest, options).then((request) => request(axios, basePath));
|
|
12002
12091
|
},
|
|
12003
|
-
/**
|
|
12004
|
-
* Get a contract abi by contract address and method id
|
|
12005
|
-
* @summary Get a contract abi
|
|
12006
|
-
* @param {PassportApiGetContractAbiRequest} requestParameters Request parameters.
|
|
12007
|
-
* @param {*} [options] Override http request option.
|
|
12008
|
-
* @throws {RequiredError}
|
|
12009
|
-
*/
|
|
12010
|
-
getContractAbi(requestParameters, options) {
|
|
12011
|
-
return localVarFp.getContractAbi(requestParameters.chainName, requestParameters.contractAddress, requestParameters.methodId, options).then((request) => request(axios, basePath));
|
|
12012
|
-
},
|
|
12013
12092
|
/**
|
|
12014
12093
|
* Get all the Ethereum linked addresses for a user based on its userId
|
|
12015
12094
|
* @summary Get Ethereum linked addresses for a user
|
|
@@ -12025,11 +12104,33 @@ const PassportApiFactory = function (configuration, basePath, axios) {
|
|
|
12025
12104
|
* @summary Deprecated Get Ethereum linked addresses for a user
|
|
12026
12105
|
* @param {PassportApiGetLinkedAddressesDeprecatedRequest} requestParameters Request parameters.
|
|
12027
12106
|
* @param {*} [options] Override http request option.
|
|
12107
|
+
* @deprecated
|
|
12028
12108
|
* @throws {RequiredError}
|
|
12029
12109
|
*/
|
|
12030
12110
|
getLinkedAddressesDeprecated(requestParameters, options) {
|
|
12031
12111
|
return localVarFp.getLinkedAddressesDeprecated(requestParameters.userId, options).then((request) => request(axios, basePath));
|
|
12032
12112
|
},
|
|
12113
|
+
/**
|
|
12114
|
+
* Get transaction metadata for a given encoded transaction
|
|
12115
|
+
* @summary Get transaction metadata
|
|
12116
|
+
* @param {PassportApiGetTransactionMetadataRequest} requestParameters Request parameters.
|
|
12117
|
+
* @param {*} [options] Override http request option.
|
|
12118
|
+
* @throws {RequiredError}
|
|
12119
|
+
*/
|
|
12120
|
+
getTransactionMetadata(requestParameters, options) {
|
|
12121
|
+
return localVarFp.getTransactionMetadata(requestParameters.chainName, requestParameters.getTransactionMetadataRequest, options).then((request) => request(axios, basePath));
|
|
12122
|
+
},
|
|
12123
|
+
/**
|
|
12124
|
+
* Get transaction metadata for a given encoded transaction
|
|
12125
|
+
* @summary Get transaction metadata
|
|
12126
|
+
* @param {PassportApiGetTransactionMetadataDeprecatedRequest} requestParameters Request parameters.
|
|
12127
|
+
* @param {*} [options] Override http request option.
|
|
12128
|
+
* @deprecated
|
|
12129
|
+
* @throws {RequiredError}
|
|
12130
|
+
*/
|
|
12131
|
+
getTransactionMetadataDeprecated(requestParameters, options) {
|
|
12132
|
+
return localVarFp.getTransactionMetadataDeprecated(requestParameters.chainName, requestParameters.contractAddress, requestParameters.methodId, requestParameters.transactionId, requestParameters.transactionData, options).then((request) => request(axios, basePath));
|
|
12133
|
+
},
|
|
12033
12134
|
};
|
|
12034
12135
|
};
|
|
12035
12136
|
/**
|
|
@@ -12044,6 +12145,7 @@ class PassportApi extends BaseAPI$2 {
|
|
|
12044
12145
|
* @summary Create a counterfactual address
|
|
12045
12146
|
* @param {PassportApiCreateCounterfactualAddressRequest} requestParameters Request parameters.
|
|
12046
12147
|
* @param {*} [options] Override http request option.
|
|
12148
|
+
* @deprecated
|
|
12047
12149
|
* @throws {RequiredError}
|
|
12048
12150
|
* @memberof PassportApi
|
|
12049
12151
|
*/
|
|
@@ -12055,6 +12157,7 @@ class PassportApi extends BaseAPI$2 {
|
|
|
12055
12157
|
* @summary Deprecated Create a counterfactual address
|
|
12056
12158
|
* @param {PassportApiCreateCounterfactualAddressDeprecatedRequest} requestParameters Request parameters.
|
|
12057
12159
|
* @param {*} [options] Override http request option.
|
|
12160
|
+
* @deprecated
|
|
12058
12161
|
* @throws {RequiredError}
|
|
12059
12162
|
* @memberof PassportApi
|
|
12060
12163
|
*/
|
|
@@ -12072,17 +12175,6 @@ class PassportApi extends BaseAPI$2 {
|
|
|
12072
12175
|
createCounterfactualAddressV2(requestParameters, options) {
|
|
12073
12176
|
return PassportApiFp(this.configuration).createCounterfactualAddressV2(requestParameters.chainName, requestParameters.createCounterfactualAddressRequest, options).then((request) => request(this.axios, this.basePath));
|
|
12074
12177
|
}
|
|
12075
|
-
/**
|
|
12076
|
-
* Get a contract abi by contract address and method id
|
|
12077
|
-
* @summary Get a contract abi
|
|
12078
|
-
* @param {PassportApiGetContractAbiRequest} requestParameters Request parameters.
|
|
12079
|
-
* @param {*} [options] Override http request option.
|
|
12080
|
-
* @throws {RequiredError}
|
|
12081
|
-
* @memberof PassportApi
|
|
12082
|
-
*/
|
|
12083
|
-
getContractAbi(requestParameters, options) {
|
|
12084
|
-
return PassportApiFp(this.configuration).getContractAbi(requestParameters.chainName, requestParameters.contractAddress, requestParameters.methodId, options).then((request) => request(this.axios, this.basePath));
|
|
12085
|
-
}
|
|
12086
12178
|
/**
|
|
12087
12179
|
* Get all the Ethereum linked addresses for a user based on its userId
|
|
12088
12180
|
* @summary Get Ethereum linked addresses for a user
|
|
@@ -12099,12 +12191,36 @@ class PassportApi extends BaseAPI$2 {
|
|
|
12099
12191
|
* @summary Deprecated Get Ethereum linked addresses for a user
|
|
12100
12192
|
* @param {PassportApiGetLinkedAddressesDeprecatedRequest} requestParameters Request parameters.
|
|
12101
12193
|
* @param {*} [options] Override http request option.
|
|
12194
|
+
* @deprecated
|
|
12102
12195
|
* @throws {RequiredError}
|
|
12103
12196
|
* @memberof PassportApi
|
|
12104
12197
|
*/
|
|
12105
12198
|
getLinkedAddressesDeprecated(requestParameters, options) {
|
|
12106
12199
|
return PassportApiFp(this.configuration).getLinkedAddressesDeprecated(requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
|
|
12107
12200
|
}
|
|
12201
|
+
/**
|
|
12202
|
+
* Get transaction metadata for a given encoded transaction
|
|
12203
|
+
* @summary Get transaction metadata
|
|
12204
|
+
* @param {PassportApiGetTransactionMetadataRequest} requestParameters Request parameters.
|
|
12205
|
+
* @param {*} [options] Override http request option.
|
|
12206
|
+
* @throws {RequiredError}
|
|
12207
|
+
* @memberof PassportApi
|
|
12208
|
+
*/
|
|
12209
|
+
getTransactionMetadata(requestParameters, options) {
|
|
12210
|
+
return PassportApiFp(this.configuration).getTransactionMetadata(requestParameters.chainName, requestParameters.getTransactionMetadataRequest, options).then((request) => request(this.axios, this.basePath));
|
|
12211
|
+
}
|
|
12212
|
+
/**
|
|
12213
|
+
* Get transaction metadata for a given encoded transaction
|
|
12214
|
+
* @summary Get transaction metadata
|
|
12215
|
+
* @param {PassportApiGetTransactionMetadataDeprecatedRequest} requestParameters Request parameters.
|
|
12216
|
+
* @param {*} [options] Override http request option.
|
|
12217
|
+
* @deprecated
|
|
12218
|
+
* @throws {RequiredError}
|
|
12219
|
+
* @memberof PassportApi
|
|
12220
|
+
*/
|
|
12221
|
+
getTransactionMetadataDeprecated(requestParameters, options) {
|
|
12222
|
+
return PassportApiFp(this.configuration).getTransactionMetadataDeprecated(requestParameters.chainName, requestParameters.contractAddress, requestParameters.methodId, requestParameters.transactionId, requestParameters.transactionData, options).then((request) => request(this.axios, this.basePath));
|
|
12223
|
+
}
|
|
12108
12224
|
}
|
|
12109
12225
|
|
|
12110
12226
|
/* tslint:disable */
|
|
@@ -12611,6 +12727,23 @@ const ERC1155ItemTypeEnum$1 = {
|
|
|
12611
12727
|
Erc1155: 'ERC1155'
|
|
12612
12728
|
};
|
|
12613
12729
|
|
|
12730
|
+
/* tslint:disable */
|
|
12731
|
+
/* eslint-disable */
|
|
12732
|
+
/**
|
|
12733
|
+
* Immutable zkEVM API
|
|
12734
|
+
* Immutable Multi Rollup API
|
|
12735
|
+
*
|
|
12736
|
+
* The version of the OpenAPI document: 1.0.0
|
|
12737
|
+
* Contact: support@immutable.com
|
|
12738
|
+
*
|
|
12739
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12740
|
+
* https://openapi-generator.tech
|
|
12741
|
+
* Do not edit the class manually.
|
|
12742
|
+
*/
|
|
12743
|
+
const ERC20ApproveMetadataTransactionTypeEnum = {
|
|
12744
|
+
Erc20Approve: 'ERC20_APPROVE'
|
|
12745
|
+
};
|
|
12746
|
+
|
|
12614
12747
|
/* tslint:disable */
|
|
12615
12748
|
/* eslint-disable */
|
|
12616
12749
|
/**
|
|
@@ -12641,8 +12774,8 @@ const ERC20ItemTypeEnum$1 = {
|
|
|
12641
12774
|
* https://openapi-generator.tech
|
|
12642
12775
|
* Do not edit the class manually.
|
|
12643
12776
|
*/
|
|
12644
|
-
const
|
|
12645
|
-
|
|
12777
|
+
const ERC721ApproveMetadataTransactionTypeEnum = {
|
|
12778
|
+
Erc721Approve: 'ERC721_APPROVE'
|
|
12646
12779
|
};
|
|
12647
12780
|
|
|
12648
12781
|
/* tslint:disable */
|
|
@@ -12658,8 +12791,8 @@ const ERC721ItemTypeEnum$1 = {
|
|
|
12658
12791
|
* https://openapi-generator.tech
|
|
12659
12792
|
* Do not edit the class manually.
|
|
12660
12793
|
*/
|
|
12661
|
-
const
|
|
12662
|
-
|
|
12794
|
+
const ERC721ItemTypeEnum$1 = {
|
|
12795
|
+
Erc721: 'ERC721'
|
|
12663
12796
|
};
|
|
12664
12797
|
|
|
12665
12798
|
/* tslint:disable */
|
|
@@ -12675,8 +12808,8 @@ const ExpiredOrderStatusNameEnum = {
|
|
|
12675
12808
|
* https://openapi-generator.tech
|
|
12676
12809
|
* Do not edit the class manually.
|
|
12677
12810
|
*/
|
|
12678
|
-
const
|
|
12679
|
-
|
|
12811
|
+
const ExpiredOrderStatusNameEnum = {
|
|
12812
|
+
Expired: 'EXPIRED'
|
|
12680
12813
|
};
|
|
12681
12814
|
|
|
12682
12815
|
/* tslint:disable */
|
|
@@ -12692,11 +12825,8 @@ const FailedOrderCancellationReasonCodeEnum = {
|
|
|
12692
12825
|
* https://openapi-generator.tech
|
|
12693
12826
|
* Do not edit the class manually.
|
|
12694
12827
|
*/
|
|
12695
|
-
const
|
|
12696
|
-
|
|
12697
|
-
MakerEcosystem: 'MAKER_ECOSYSTEM',
|
|
12698
|
-
TakerEcosystem: 'TAKER_ECOSYSTEM',
|
|
12699
|
-
Protocol: 'PROTOCOL'
|
|
12828
|
+
const FailedOrderCancellationReasonCodeEnum = {
|
|
12829
|
+
Filled: 'FILLED'
|
|
12700
12830
|
};
|
|
12701
12831
|
|
|
12702
12832
|
/* tslint:disable */
|
|
@@ -12712,8 +12842,11 @@ const FeeTypeEnum = {
|
|
|
12712
12842
|
* https://openapi-generator.tech
|
|
12713
12843
|
* Do not edit the class manually.
|
|
12714
12844
|
*/
|
|
12715
|
-
const
|
|
12716
|
-
|
|
12845
|
+
const FeeTypeEnum = {
|
|
12846
|
+
Royalty: 'ROYALTY',
|
|
12847
|
+
MakerEcosystem: 'MAKER_ECOSYSTEM',
|
|
12848
|
+
TakerEcosystem: 'TAKER_ECOSYSTEM',
|
|
12849
|
+
Protocol: 'PROTOCOL'
|
|
12717
12850
|
};
|
|
12718
12851
|
|
|
12719
12852
|
/* tslint:disable */
|
|
@@ -12729,8 +12862,8 @@ const FilledOrderStatusNameEnum = {
|
|
|
12729
12862
|
* https://openapi-generator.tech
|
|
12730
12863
|
* Do not edit the class manually.
|
|
12731
12864
|
*/
|
|
12732
|
-
const
|
|
12733
|
-
|
|
12865
|
+
const FilledOrderStatusNameEnum = {
|
|
12866
|
+
Filled: 'FILLED'
|
|
12734
12867
|
};
|
|
12735
12868
|
|
|
12736
12869
|
/* tslint:disable */
|
|
@@ -12793,7 +12926,26 @@ const MintRequestStatus$1 = {
|
|
|
12793
12926
|
* @enum {string}
|
|
12794
12927
|
*/
|
|
12795
12928
|
const NFTContractType$1 = {
|
|
12796
|
-
Erc721: 'ERC721'
|
|
12929
|
+
Erc721: 'ERC721',
|
|
12930
|
+
Erc1155: 'ERC1155'
|
|
12931
|
+
};
|
|
12932
|
+
|
|
12933
|
+
/* tslint:disable */
|
|
12934
|
+
/* eslint-disable */
|
|
12935
|
+
/**
|
|
12936
|
+
* Immutable zkEVM API
|
|
12937
|
+
* Immutable Multi Rollup API
|
|
12938
|
+
*
|
|
12939
|
+
* The version of the OpenAPI document: 1.0.0
|
|
12940
|
+
* Contact: support@immutable.com
|
|
12941
|
+
*
|
|
12942
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12943
|
+
* https://openapi-generator.tech
|
|
12944
|
+
* Do not edit the class manually.
|
|
12945
|
+
*/
|
|
12946
|
+
const NFTSetApprovalForAllMetadataTransactionTypeEnum = {
|
|
12947
|
+
Erc721SetApprovalForAll: 'ERC721_SET_APPROVAL_FOR_ALL',
|
|
12948
|
+
Erc1155SetApprovalForAll: 'ERC1155_SET_APPROVAL_FOR_ALL'
|
|
12797
12949
|
};
|
|
12798
12950
|
|
|
12799
12951
|
/* tslint:disable */
|
|
@@ -12933,6 +13085,23 @@ const TokenContractType$1 = {
|
|
|
12933
13085
|
Erc20: 'ERC20'
|
|
12934
13086
|
};
|
|
12935
13087
|
|
|
13088
|
+
/* tslint:disable */
|
|
13089
|
+
/* eslint-disable */
|
|
13090
|
+
/**
|
|
13091
|
+
* Immutable zkEVM API
|
|
13092
|
+
* Immutable Multi Rollup API
|
|
13093
|
+
*
|
|
13094
|
+
* The version of the OpenAPI document: 1.0.0
|
|
13095
|
+
* Contact: support@immutable.com
|
|
13096
|
+
*
|
|
13097
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
13098
|
+
* https://openapi-generator.tech
|
|
13099
|
+
* Do not edit the class manually.
|
|
13100
|
+
*/
|
|
13101
|
+
const UnknownMetadataTransactionTypeEnum = {
|
|
13102
|
+
Unknown: 'UNKNOWN'
|
|
13103
|
+
};
|
|
13104
|
+
|
|
12936
13105
|
/* tslint:disable */
|
|
12937
13106
|
/* eslint-disable */
|
|
12938
13107
|
/**
|
|
@@ -12975,14 +13144,16 @@ var index$1 = /*#__PURE__*/Object.freeze({
|
|
|
12975
13144
|
CollectionsApiFp: CollectionsApiFp,
|
|
12976
13145
|
Configuration: Configuration$2,
|
|
12977
13146
|
ERC1155ItemTypeEnum: ERC1155ItemTypeEnum$1,
|
|
13147
|
+
ERC20ApproveMetadataTransactionTypeEnum: ERC20ApproveMetadataTransactionTypeEnum,
|
|
12978
13148
|
ERC20ItemTypeEnum: ERC20ItemTypeEnum$1,
|
|
13149
|
+
ERC721ApproveMetadataTransactionTypeEnum: ERC721ApproveMetadataTransactionTypeEnum,
|
|
12979
13150
|
ERC721ItemTypeEnum: ERC721ItemTypeEnum$1,
|
|
12980
13151
|
ExpiredOrderStatusNameEnum: ExpiredOrderStatusNameEnum,
|
|
12981
13152
|
FailedOrderCancellationReasonCodeEnum: FailedOrderCancellationReasonCodeEnum,
|
|
12982
13153
|
FeeTypeEnum: FeeTypeEnum,
|
|
12983
13154
|
FilledOrderStatusNameEnum: FilledOrderStatusNameEnum,
|
|
12984
|
-
GetContractAbiResTransactionTypeEnum: GetContractAbiResTransactionTypeEnum,
|
|
12985
13155
|
InactiveOrderStatusNameEnum: InactiveOrderStatusNameEnum,
|
|
13156
|
+
ListListingsBuyItemTypeEnum: ListListingsBuyItemTypeEnum,
|
|
12986
13157
|
ListListingsSortByEnum: ListListingsSortByEnum,
|
|
12987
13158
|
ListListingsSortDirectionEnum: ListListingsSortDirectionEnum,
|
|
12988
13159
|
ListTradesSortByEnum: ListTradesSortByEnum,
|
|
@@ -12993,6 +13164,7 @@ var index$1 = /*#__PURE__*/Object.freeze({
|
|
|
12993
13164
|
MetadataApiFp: MetadataApiFp,
|
|
12994
13165
|
MintRequestStatus: MintRequestStatus$1,
|
|
12995
13166
|
NFTContractType: NFTContractType$1,
|
|
13167
|
+
NFTSetApprovalForAllMetadataTransactionTypeEnum: NFTSetApprovalForAllMetadataTransactionTypeEnum,
|
|
12996
13168
|
NativeItemTypeEnum: NativeItemTypeEnum$1,
|
|
12997
13169
|
NftOwnersApi: NftOwnersApi,
|
|
12998
13170
|
NftOwnersApiAxiosParamCreator: NftOwnersApiAxiosParamCreator,
|
|
@@ -13019,7 +13191,8 @@ var index$1 = /*#__PURE__*/Object.freeze({
|
|
|
13019
13191
|
TokensApi: TokensApi$2,
|
|
13020
13192
|
TokensApiAxiosParamCreator: TokensApiAxiosParamCreator,
|
|
13021
13193
|
TokensApiFactory: TokensApiFactory,
|
|
13022
|
-
TokensApiFp: TokensApiFp
|
|
13194
|
+
TokensApiFp: TokensApiFp,
|
|
13195
|
+
UnknownMetadataTransactionTypeEnum: UnknownMetadataTransactionTypeEnum
|
|
13023
13196
|
});
|
|
13024
13197
|
|
|
13025
13198
|
/* tslint:disable */
|
|
@@ -13362,6 +13535,7 @@ var MintRequestStatus;
|
|
|
13362
13535
|
var NFTContractType;
|
|
13363
13536
|
(function (NFTContractType) {
|
|
13364
13537
|
NFTContractType["Erc721"] = "ERC721";
|
|
13538
|
+
NFTContractType["Erc1155"] = "ERC1155";
|
|
13365
13539
|
})(NFTContractType || (NFTContractType = {}));
|
|
13366
13540
|
|
|
13367
13541
|
/* tslint:disable */
|
|
@@ -13535,7 +13709,7 @@ class MultiRollupApiClients {
|
|
|
13535
13709
|
}
|
|
13536
13710
|
|
|
13537
13711
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
13538
|
-
const defaultHeaders$2 = { 'x-sdk-version': 'ts-immutable-sdk-1.21.
|
|
13712
|
+
const defaultHeaders$2 = { 'x-sdk-version': 'ts-immutable-sdk-1.21.2-alpha' };
|
|
13539
13713
|
const createConfig$1 = ({ basePath, headers, }) => {
|
|
13540
13714
|
if (!basePath.trim()) {
|
|
13541
13715
|
throw Error('basePath can not be empty');
|
|
@@ -13607,7 +13781,7 @@ class APIError extends Error {
|
|
|
13607
13781
|
|
|
13608
13782
|
/* eslint-disable implicit-arrow-linebreak */
|
|
13609
13783
|
const defaultHeaders$1 = {
|
|
13610
|
-
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.21.
|
|
13784
|
+
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.21.2-alpha',
|
|
13611
13785
|
};
|
|
13612
13786
|
/**
|
|
13613
13787
|
* createAPIConfiguration to create a custom Configuration
|
|
@@ -14081,7 +14255,7 @@ var blockchain_data = /*#__PURE__*/Object.freeze({
|
|
|
14081
14255
|
/* eslint-disable @typescript-eslint/naming-convention */
|
|
14082
14256
|
class ApiConfiguration extends index$2.Configuration {
|
|
14083
14257
|
}
|
|
14084
|
-
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.21.
|
|
14258
|
+
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.21.2-alpha' };
|
|
14085
14259
|
/**
|
|
14086
14260
|
* @dev use createImmutableXConfiguration instead
|
|
14087
14261
|
*/
|
|
@@ -14120,7 +14294,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
|
|
|
14120
14294
|
chainID,
|
|
14121
14295
|
coreContractAddress,
|
|
14122
14296
|
registrationContractAddress,
|
|
14123
|
-
sdkVersion: 'ts-immutable-sdk-1.21.
|
|
14297
|
+
sdkVersion: 'ts-immutable-sdk-1.21.2-alpha',
|
|
14124
14298
|
baseConfig,
|
|
14125
14299
|
});
|
|
14126
14300
|
const production = ({ baseConfig }) => createImmutableXConfiguration({
|
|
@@ -24710,8 +24884,8 @@ class MagicAdapter {
|
|
|
24710
24884
|
}
|
|
24711
24885
|
|
|
24712
24886
|
const getStarkSigner = async (signer) => withPassportError(async () => {
|
|
24713
|
-
const privateKey = await generateLegacyStarkPrivateKey
|
|
24714
|
-
return createStarkSigner
|
|
24887
|
+
const privateKey = await generateLegacyStarkPrivateKey(signer);
|
|
24888
|
+
return createStarkSigner(privateKey);
|
|
24715
24889
|
}, PassportErrorType.WALLET_CONNECTION_ERROR);
|
|
24716
24890
|
|
|
24717
24891
|
async function exchangeTransfer$1({ user, starkSigner, request, exchangesApi, }) {
|
|
@@ -45436,7 +45610,7 @@ const flattenProperties = (properties) => {
|
|
|
45436
45610
|
};
|
|
45437
45611
|
|
|
45438
45612
|
// WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
|
|
45439
|
-
const SDK_VERSION = '1.21.
|
|
45613
|
+
const SDK_VERSION = '1.21.2-alpha';
|
|
45440
45614
|
const getReferrer = () => {
|
|
45441
45615
|
if (isNode()) {
|
|
45442
45616
|
return '';
|
|
@@ -50631,7 +50805,7 @@ const IMMUTABLE_ZKVEM_GAS_OVERRIDES = {
|
|
|
50631
50805
|
maxPriorityFeePerGas: BigNumber$1.from(10e9),
|
|
50632
50806
|
};
|
|
50633
50807
|
|
|
50634
|
-
const SDK_VERSION_MARKER = '1.21.
|
|
50808
|
+
const SDK_VERSION_MARKER = '1.21.2-alpha';
|
|
50635
50809
|
// This SDK version is replaced by the `yarn build` command ran on the root level
|
|
50636
50810
|
const globalPackageVersion = () => SDK_VERSION_MARKER;
|
|
50637
50811
|
|
|
@@ -55870,7 +56044,9 @@ var x = /*#__PURE__*/Object.freeze({
|
|
|
55870
56044
|
generateStarkPrivateKey: generateStarkPrivateKey,
|
|
55871
56045
|
imxClientConfig: imxClientConfig,
|
|
55872
56046
|
imxClientCreateStarkSigner: createStarkSigner,
|
|
55873
|
-
imxClientGenerateLegacyStarkPrivateKey: generateLegacyStarkPrivateKey
|
|
56047
|
+
imxClientGenerateLegacyStarkPrivateKey: generateLegacyStarkPrivateKey,
|
|
56048
|
+
production: production,
|
|
56049
|
+
sandbox: sandbox
|
|
55874
56050
|
});
|
|
55875
56051
|
|
|
55876
56052
|
export { blockchain_data as blockchainData, checkout, config, orderbook, passport, x };
|