@imtbl/sdk 1.52.0 → 1.52.1-alpha.1
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-T7u5Hp0U.js → blockchain_data-DBBTvmmb.js} +2 -2
- package/dist/blockchain_data.d.ts +34 -3202
- package/dist/blockchain_data.js +3 -3
- package/dist/browser/checkout/{AddFundsWidget-DuG1OWEM.js → AddFundsWidget-SdKqlUUr.js} +124 -49
- package/dist/browser/checkout/{BridgeWidget-2D-8F1Vq.js → BridgeWidget-Bx1DFMXg.js} +11 -9
- package/dist/browser/checkout/{CheckoutWidget-Bvnur5WZ.js → CheckoutWidget-B1pE8Gc2.js} +81 -35
- package/dist/browser/checkout/{OnRampWidget-B4UV_TYW.js → OnRampWidget-bmvseWX-.js} +20 -12
- package/dist/browser/checkout/{SaleWidget-BQMUaWlZ.js → SaleWidget-Ddos1DHm.js} +9 -9
- package/dist/browser/checkout/{SpendingCapHero-BsQQYO_D.js → SpendingCapHero-BKdEyvIl.js} +1 -1
- package/dist/browser/checkout/{SwapWidget-BK7sTJ6u.js → SwapWidget-CrEzJos9.js} +12 -10
- package/dist/browser/checkout/{TextInputForm-Cy6sTMjr.js → TextInputForm-BvZsFFRK.js} +1 -1
- package/dist/browser/checkout/{TopUpView-Dw-JH0Q5.js → TopUpView-CojeMjuL.js} +1 -1
- package/dist/browser/checkout/{WalletWidget-t6i1V-G5.js → WalletWidget-DcoX5T7s.js} +7 -6
- package/dist/browser/checkout/{auto-track-CMv29U8a.js → auto-track-CPy9e41Q.js} +1 -1
- package/dist/browser/checkout/{balance-Dt4oB1G1.js → balance-_0wiNzA1.js} +2 -2
- package/dist/browser/checkout/{index-D2zks65E.js → index-2yp2sttp.js} +2 -2
- package/dist/browser/checkout/{index-BRzBLTux.js → index-4LGmzy2P.js} +1 -1
- package/dist/browser/checkout/{index-Zraoakam.js → index-BjnD8v8p.js} +1 -1
- package/dist/browser/checkout/{index-DmXFGYTM.js → index-BpduNNVl.js} +1 -1
- package/dist/browser/checkout/{index-D4zR0DRy.js → index-CPLIXtyA.js} +1 -1
- package/dist/browser/checkout/{index-CMBbtkDe.js → index-CcR4tO_g.js} +1 -1
- package/dist/browser/checkout/{index-5qc7Vsg4.js → index-DnQfQojQ.js} +63 -46
- package/dist/browser/checkout/{index-DwTyassh.js → index-Dv7_L5sJ.js} +1 -1
- package/dist/browser/checkout/{index.umd-CCwq6cRd.js → index.umd-LRNZ8nMO.js} +1 -1
- package/dist/browser/checkout/{retry-C_l6vh-l.js → retry-TNKwGgHJ.js} +1 -1
- package/dist/browser/checkout/sdk.js +5 -5
- package/dist/browser/checkout/widgets-esm.js +1 -1
- package/dist/browser/checkout/widgets.js +279 -128
- package/dist/{checkout-DxDRj3k-.js → checkout-BoEdWIoM.js} +7 -6
- package/dist/checkout.d.ts +38 -10
- package/dist/checkout.js +5 -5
- package/dist/{config-Dj7PQqL4.js → config-4V88kddG.js} +1 -1
- package/dist/config.js +1 -1
- package/dist/{index-8m8-bJcZ.js → index-5q3Doq32.js} +1 -1
- package/dist/{index-1bjDCdo5.js → index-CAL1gWlu.js} +4 -4
- package/dist/{index-XxjQ6oVx.js → index-D0T-P8dM.js} +53 -53
- package/dist/{index-D4eU2e1C.js → index-DDE1ZfXv.js} +1 -1
- package/dist/{index-BxF866Mh.js → index-Dg5cqGBu.js} +1 -1
- package/dist/{index-snMwBaY-.js → index-Dqva106f.js} +1 -1
- package/dist/index.browser.js +5 -5
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +66 -61
- package/dist/index.d.ts +266 -3404
- package/dist/index.js +14 -14
- package/dist/{minting_backend-DfBB5ptf.js → minting_backend-x7gO9bio.js} +3 -3
- package/dist/minting_backend.d.ts +312 -228
- package/dist/minting_backend.js +5 -5
- package/dist/{orderbook-CnmzmGtG.js → orderbook-BUiL0rqz.js} +1 -1
- package/dist/orderbook.js +2 -2
- package/dist/{passport-B8WhzCZf.js → passport-DGaas7w4.js} +10 -6
- package/dist/passport.d.ts +3 -1
- package/dist/passport.js +4 -4
- package/dist/{webhook-DzAoMhRT.js → webhook-Be5S01dB.js} +1 -1
- package/dist/webhook.js +2 -2
- package/dist/{x-DbbHwlbW.js → x-7ExOXsHk.js} +3 -3
- package/dist/x.js +4 -4
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -216,7 +216,7 @@ const flattenProperties$1 = (properties) => {
|
|
|
216
216
|
};
|
|
217
217
|
|
|
218
218
|
// WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
|
|
219
|
-
const SDK_VERSION$1 = '1.52.
|
|
219
|
+
const SDK_VERSION$1 = '1.52.1-alpha.1';
|
|
220
220
|
const getFrameParentDomain$1 = () => {
|
|
221
221
|
if (isNode$1()) {
|
|
222
222
|
return '';
|
|
@@ -14654,7 +14654,7 @@ class MultiRollupApiClients {
|
|
|
14654
14654
|
}
|
|
14655
14655
|
|
|
14656
14656
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
14657
|
-
const defaultHeaders$2 = { 'x-sdk-version': 'ts-immutable-sdk-1.52.
|
|
14657
|
+
const defaultHeaders$2 = { 'x-sdk-version': 'ts-immutable-sdk-1.52.1-alpha.1' };
|
|
14658
14658
|
const createConfig$1 = ({ basePath, headers, }) => {
|
|
14659
14659
|
if (!basePath.trim()) {
|
|
14660
14660
|
throw Error('basePath can not be empty');
|
|
@@ -14726,7 +14726,7 @@ class APIError extends Error {
|
|
|
14726
14726
|
|
|
14727
14727
|
/* eslint-disable implicit-arrow-linebreak */
|
|
14728
14728
|
const defaultHeaders$1 = {
|
|
14729
|
-
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.52.
|
|
14729
|
+
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.52.1-alpha.1',
|
|
14730
14730
|
};
|
|
14731
14731
|
/**
|
|
14732
14732
|
* createAPIConfiguration to create a custom Configuration
|
|
@@ -14845,12 +14845,12 @@ class BlockchainData {
|
|
|
14845
14845
|
* @throws {@link index.APIError}
|
|
14846
14846
|
*/
|
|
14847
14847
|
async listActivities(request) {
|
|
14848
|
-
return await this.activities
|
|
14848
|
+
return (await this.activities
|
|
14849
14849
|
.listActivities(request)
|
|
14850
14850
|
.then((res) => res.data)
|
|
14851
14851
|
.catch((err) => {
|
|
14852
14852
|
throw formatError$1(err);
|
|
14853
|
-
});
|
|
14853
|
+
}));
|
|
14854
14854
|
}
|
|
14855
14855
|
/**
|
|
14856
14856
|
* List activities sorted by updated_at timestamp ascending, useful for time based data replication
|
|
@@ -14859,12 +14859,12 @@ class BlockchainData {
|
|
|
14859
14859
|
* @throws {@link index.APIError}
|
|
14860
14860
|
*/
|
|
14861
14861
|
async listActivityHistory(request) {
|
|
14862
|
-
return await this.activities
|
|
14862
|
+
return (await this.activities
|
|
14863
14863
|
.listActivityHistory(request)
|
|
14864
14864
|
.then((res) => res.data)
|
|
14865
14865
|
.catch((err) => {
|
|
14866
14866
|
throw formatError$1(err);
|
|
14867
|
-
});
|
|
14867
|
+
}));
|
|
14868
14868
|
}
|
|
14869
14869
|
/**
|
|
14870
14870
|
* Get a single activity by ID
|
|
@@ -14873,12 +14873,12 @@ class BlockchainData {
|
|
|
14873
14873
|
* @throws {@link index.APIError}
|
|
14874
14874
|
*/
|
|
14875
14875
|
async getActivity(request) {
|
|
14876
|
-
return await this.activities
|
|
14876
|
+
return (await this.activities
|
|
14877
14877
|
.getActivity(request)
|
|
14878
14878
|
.then((res) => res.data)
|
|
14879
14879
|
.catch((err) => {
|
|
14880
14880
|
throw formatError$1(err);
|
|
14881
|
-
});
|
|
14881
|
+
}));
|
|
14882
14882
|
}
|
|
14883
14883
|
/**
|
|
14884
14884
|
* List supported chains
|
|
@@ -14887,12 +14887,12 @@ class BlockchainData {
|
|
|
14887
14887
|
* @throws {@link index.APIError}
|
|
14888
14888
|
*/
|
|
14889
14889
|
async listChains(request) {
|
|
14890
|
-
return await this.chains
|
|
14890
|
+
return (await this.chains
|
|
14891
14891
|
.listChains(request)
|
|
14892
14892
|
.then((res) => res.data)
|
|
14893
14893
|
.catch((err) => {
|
|
14894
14894
|
throw formatError$1(err);
|
|
14895
|
-
});
|
|
14895
|
+
}));
|
|
14896
14896
|
}
|
|
14897
14897
|
/**
|
|
14898
14898
|
* List all collections
|
|
@@ -14901,12 +14901,12 @@ class BlockchainData {
|
|
|
14901
14901
|
* @throws {@link index.APIError}
|
|
14902
14902
|
*/
|
|
14903
14903
|
async listCollections(request) {
|
|
14904
|
-
return await this.collections
|
|
14904
|
+
return (await this.collections
|
|
14905
14905
|
.listCollections(request)
|
|
14906
14906
|
.then((res) => res.data)
|
|
14907
14907
|
.catch((err) => {
|
|
14908
14908
|
throw formatError$1(err);
|
|
14909
|
-
});
|
|
14909
|
+
}));
|
|
14910
14910
|
}
|
|
14911
14911
|
/**
|
|
14912
14912
|
* List collections by NFT owner
|
|
@@ -14915,12 +14915,12 @@ class BlockchainData {
|
|
|
14915
14915
|
* @throws {@link index.APIError}
|
|
14916
14916
|
*/
|
|
14917
14917
|
async listCollectionsByNFTOwner(request) {
|
|
14918
|
-
return await this.collections
|
|
14918
|
+
return (await this.collections
|
|
14919
14919
|
.listCollectionsByNFTOwner(request)
|
|
14920
14920
|
.then((res) => res.data)
|
|
14921
14921
|
.catch((err) => {
|
|
14922
14922
|
throw formatError$1(err);
|
|
14923
|
-
});
|
|
14923
|
+
}));
|
|
14924
14924
|
}
|
|
14925
14925
|
/**
|
|
14926
14926
|
* Get a collection by contract address
|
|
@@ -14929,12 +14929,12 @@ class BlockchainData {
|
|
|
14929
14929
|
* @throws {@link index.APIError}
|
|
14930
14930
|
*/
|
|
14931
14931
|
async getCollection(request) {
|
|
14932
|
-
return await this.collections
|
|
14932
|
+
return (await this.collections
|
|
14933
14933
|
.getCollection(request)
|
|
14934
14934
|
.then((res) => res.data)
|
|
14935
14935
|
.catch((err) => {
|
|
14936
14936
|
throw formatError$1(err);
|
|
14937
|
-
});
|
|
14937
|
+
}));
|
|
14938
14938
|
}
|
|
14939
14939
|
/**
|
|
14940
14940
|
* Get NFT by token ID
|
|
@@ -14943,12 +14943,12 @@ class BlockchainData {
|
|
|
14943
14943
|
* @throws {@link index.APIError}
|
|
14944
14944
|
*/
|
|
14945
14945
|
async getNFT(request) {
|
|
14946
|
-
return await this.nfts
|
|
14946
|
+
return (await this.nfts
|
|
14947
14947
|
.getNFT(request)
|
|
14948
14948
|
.then((res) => res.data)
|
|
14949
14949
|
.catch((err) => {
|
|
14950
14950
|
throw formatError$1(err);
|
|
14951
|
-
});
|
|
14951
|
+
}));
|
|
14952
14952
|
}
|
|
14953
14953
|
/**
|
|
14954
14954
|
* List NFTs by contract address
|
|
@@ -14957,12 +14957,12 @@ class BlockchainData {
|
|
|
14957
14957
|
* @throws {@link index.APIError}
|
|
14958
14958
|
*/
|
|
14959
14959
|
async listNFTs(request) {
|
|
14960
|
-
return await this.nfts
|
|
14960
|
+
return (await this.nfts
|
|
14961
14961
|
.listNFTs(request)
|
|
14962
14962
|
.then((res) => res.data)
|
|
14963
14963
|
.catch((err) => {
|
|
14964
14964
|
throw formatError$1(err);
|
|
14965
|
-
});
|
|
14965
|
+
}));
|
|
14966
14966
|
}
|
|
14967
14967
|
/**
|
|
14968
14968
|
* List NFTs by account address
|
|
@@ -14971,12 +14971,12 @@ class BlockchainData {
|
|
|
14971
14971
|
* @throws {@link index.APIError}
|
|
14972
14972
|
*/
|
|
14973
14973
|
async listNFTsByAccountAddress(request) {
|
|
14974
|
-
return await this.nfts
|
|
14974
|
+
return (await this.nfts
|
|
14975
14975
|
.listNFTsByAccountAddress(request)
|
|
14976
14976
|
.then((res) => res.data)
|
|
14977
14977
|
.catch((err) => {
|
|
14978
14978
|
throw formatError$1(err);
|
|
14979
|
-
});
|
|
14979
|
+
}));
|
|
14980
14980
|
}
|
|
14981
14981
|
/**
|
|
14982
14982
|
* List All NFTs on a chain
|
|
@@ -14985,12 +14985,12 @@ class BlockchainData {
|
|
|
14985
14985
|
* @throws {@link index.APIError}
|
|
14986
14986
|
*/
|
|
14987
14987
|
async listAllNFTs(request) {
|
|
14988
|
-
return await this.nfts
|
|
14988
|
+
return (await this.nfts
|
|
14989
14989
|
.listAllNFTs(request)
|
|
14990
14990
|
.then((res) => res.data)
|
|
14991
14991
|
.catch((err) => {
|
|
14992
14992
|
throw formatError$1(err);
|
|
14993
|
-
});
|
|
14993
|
+
}));
|
|
14994
14994
|
}
|
|
14995
14995
|
/**
|
|
14996
14996
|
* Create a mint request to mint a set of NFTs for a given collection
|
|
@@ -14999,12 +14999,12 @@ class BlockchainData {
|
|
|
14999
14999
|
* @throws {@link index.APIError}
|
|
15000
15000
|
*/
|
|
15001
15001
|
async createMintRequest(request) {
|
|
15002
|
-
return await this.nfts
|
|
15002
|
+
return (await this.nfts
|
|
15003
15003
|
.createMintRequest(request)
|
|
15004
15004
|
.then((res) => res.data)
|
|
15005
15005
|
.catch((err) => {
|
|
15006
15006
|
throw formatError$1(err);
|
|
15007
|
-
});
|
|
15007
|
+
}));
|
|
15008
15008
|
}
|
|
15009
15009
|
/**
|
|
15010
15010
|
* List all mint requests for a given contract address
|
|
@@ -15013,12 +15013,12 @@ class BlockchainData {
|
|
|
15013
15013
|
* @throws {@link index.APIError}
|
|
15014
15014
|
*/
|
|
15015
15015
|
async listMintRequests(request) {
|
|
15016
|
-
return await this.nfts
|
|
15016
|
+
return (await this.nfts
|
|
15017
15017
|
.listMintRequests(request)
|
|
15018
15018
|
.then((res) => res.data)
|
|
15019
15019
|
.catch((err) => {
|
|
15020
15020
|
throw formatError$1(err);
|
|
15021
|
-
});
|
|
15021
|
+
}));
|
|
15022
15022
|
}
|
|
15023
15023
|
/**
|
|
15024
15024
|
* Retrieve the status of a single mint request identified by its reference ID
|
|
@@ -15027,12 +15027,12 @@ class BlockchainData {
|
|
|
15027
15027
|
* @throws {@link index.APIError}
|
|
15028
15028
|
*/
|
|
15029
15029
|
async getMintRequest(request) {
|
|
15030
|
-
return await this.nfts
|
|
15030
|
+
return (await this.nfts
|
|
15031
15031
|
.getMintRequest(request)
|
|
15032
15032
|
.then((res) => res.data)
|
|
15033
15033
|
.catch((err) => {
|
|
15034
15034
|
throw formatError$1(err);
|
|
15035
|
-
});
|
|
15035
|
+
}));
|
|
15036
15036
|
}
|
|
15037
15037
|
/**
|
|
15038
15038
|
* List NFT owners by token ID
|
|
@@ -15041,12 +15041,12 @@ class BlockchainData {
|
|
|
15041
15041
|
* @throws {@link index.APIError}
|
|
15042
15042
|
*/
|
|
15043
15043
|
async listNFTOwners(request) {
|
|
15044
|
-
return await this.nftOwners
|
|
15044
|
+
return (await this.nftOwners
|
|
15045
15045
|
.listNFTOwners(request)
|
|
15046
15046
|
.then((res) => res.data)
|
|
15047
15047
|
.catch((err) => {
|
|
15048
15048
|
throw formatError$1(err);
|
|
15049
|
-
});
|
|
15049
|
+
}));
|
|
15050
15050
|
}
|
|
15051
15051
|
/**
|
|
15052
15052
|
* List NFT owners by contract address
|
|
@@ -15055,12 +15055,12 @@ class BlockchainData {
|
|
|
15055
15055
|
* @throws {@link index.APIError}
|
|
15056
15056
|
*/
|
|
15057
15057
|
async listNFTOwnersByContractAddress(request) {
|
|
15058
|
-
return await this.nftOwners
|
|
15058
|
+
return (await this.nftOwners
|
|
15059
15059
|
.listOwnersByContractAddress(request)
|
|
15060
15060
|
.then((res) => res.data)
|
|
15061
15061
|
.catch((err) => {
|
|
15062
15062
|
throw formatError$1(err);
|
|
15063
|
-
});
|
|
15063
|
+
}));
|
|
15064
15064
|
}
|
|
15065
15065
|
/**
|
|
15066
15066
|
* List All NFT owners on a chain
|
|
@@ -15069,12 +15069,12 @@ class BlockchainData {
|
|
|
15069
15069
|
* @throws {@link index.APIError}
|
|
15070
15070
|
*/
|
|
15071
15071
|
async listAllNFTOwners(request) {
|
|
15072
|
-
return await this.nftOwners
|
|
15072
|
+
return (await this.nftOwners
|
|
15073
15073
|
.listAllNFTOwners(request)
|
|
15074
15074
|
.then((res) => res.data)
|
|
15075
15075
|
.catch((err) => {
|
|
15076
15076
|
throw formatError$1(err);
|
|
15077
|
-
});
|
|
15077
|
+
}));
|
|
15078
15078
|
}
|
|
15079
15079
|
/**
|
|
15080
15080
|
* List ERC20 Token contracts
|
|
@@ -15083,12 +15083,12 @@ class BlockchainData {
|
|
|
15083
15083
|
* @throws {@link index.APIError}
|
|
15084
15084
|
*/
|
|
15085
15085
|
async listTokens(request) {
|
|
15086
|
-
return await this.tokens
|
|
15086
|
+
return (await this.tokens
|
|
15087
15087
|
.listERC20Tokens(request)
|
|
15088
15088
|
.then((res) => res.data)
|
|
15089
15089
|
.catch((err) => {
|
|
15090
15090
|
throw formatError$1(err);
|
|
15091
|
-
});
|
|
15091
|
+
}));
|
|
15092
15092
|
}
|
|
15093
15093
|
/**
|
|
15094
15094
|
* Get details for an ERC20 Token by contract address
|
|
@@ -15097,12 +15097,12 @@ class BlockchainData {
|
|
|
15097
15097
|
* @throws {@link index.APIError}
|
|
15098
15098
|
*/
|
|
15099
15099
|
async getToken(request) {
|
|
15100
|
-
return await this.tokens
|
|
15100
|
+
return (await this.tokens
|
|
15101
15101
|
.getERC20Token(request)
|
|
15102
15102
|
.then((res) => res.data)
|
|
15103
15103
|
.catch((err) => {
|
|
15104
15104
|
throw formatError$1(err);
|
|
15105
|
-
});
|
|
15105
|
+
}));
|
|
15106
15106
|
}
|
|
15107
15107
|
/**
|
|
15108
15108
|
* Get metadata by ID
|
|
@@ -15111,12 +15111,12 @@ class BlockchainData {
|
|
|
15111
15111
|
* @throws {@link index.APIError}
|
|
15112
15112
|
*/
|
|
15113
15113
|
async getMetadata(request) {
|
|
15114
|
-
return await this.metadata
|
|
15114
|
+
return (await this.metadata
|
|
15115
15115
|
.getMetadata(request)
|
|
15116
15116
|
.then((res) => res.data)
|
|
15117
15117
|
.catch((err) => {
|
|
15118
15118
|
throw formatError$1(err);
|
|
15119
|
-
});
|
|
15119
|
+
}));
|
|
15120
15120
|
}
|
|
15121
15121
|
/**
|
|
15122
15122
|
* List NFT Metadata by contract address
|
|
@@ -15125,12 +15125,12 @@ class BlockchainData {
|
|
|
15125
15125
|
* @throws {@link index.APIError}
|
|
15126
15126
|
*/
|
|
15127
15127
|
async listNFTMetadataByContractAddress(request) {
|
|
15128
|
-
return await this.metadata
|
|
15128
|
+
return (await this.metadata
|
|
15129
15129
|
.listMetadata(request)
|
|
15130
15130
|
.then((res) => res.data)
|
|
15131
15131
|
.catch((err) => {
|
|
15132
15132
|
throw formatError$1(err);
|
|
15133
|
-
});
|
|
15133
|
+
}));
|
|
15134
15134
|
}
|
|
15135
15135
|
/**
|
|
15136
15136
|
* List NFT Metadata by chain
|
|
@@ -15139,12 +15139,12 @@ class BlockchainData {
|
|
|
15139
15139
|
* @throws {@link index.APIError}
|
|
15140
15140
|
*/
|
|
15141
15141
|
async listNFTMetadataByChain(request) {
|
|
15142
|
-
return await this.metadata
|
|
15142
|
+
return (await this.metadata
|
|
15143
15143
|
.listMetadataForChain(request)
|
|
15144
15144
|
.then((res) => res.data)
|
|
15145
15145
|
.catch((err) => {
|
|
15146
15146
|
throw formatError$1(err);
|
|
15147
|
-
});
|
|
15147
|
+
}));
|
|
15148
15148
|
}
|
|
15149
15149
|
/**
|
|
15150
15150
|
* Refresh collection metadata
|
|
@@ -15153,12 +15153,12 @@ class BlockchainData {
|
|
|
15153
15153
|
* @throws {@link index.APIError}
|
|
15154
15154
|
*/
|
|
15155
15155
|
async refreshCollectionMetadata(request) {
|
|
15156
|
-
return await this.collections
|
|
15156
|
+
return (await this.collections
|
|
15157
15157
|
.refreshCollectionMetadata(request)
|
|
15158
15158
|
.then((res) => res.data)
|
|
15159
15159
|
.catch((err) => {
|
|
15160
15160
|
throw formatError$1(err);
|
|
15161
|
-
});
|
|
15161
|
+
}));
|
|
15162
15162
|
}
|
|
15163
15163
|
/**
|
|
15164
15164
|
* Refresh metadata for specific NFTs
|
|
@@ -15167,12 +15167,12 @@ class BlockchainData {
|
|
|
15167
15167
|
* @throws {@link index.APIError}
|
|
15168
15168
|
*/
|
|
15169
15169
|
async refreshNFTMetadata(request) {
|
|
15170
|
-
return await this.metadata
|
|
15170
|
+
return (await this.metadata
|
|
15171
15171
|
.refreshNFTMetadataByTokenID(request)
|
|
15172
15172
|
.then((res) => res.data)
|
|
15173
15173
|
.catch((err) => {
|
|
15174
15174
|
throw formatError$1(err);
|
|
15175
|
-
});
|
|
15175
|
+
}));
|
|
15176
15176
|
}
|
|
15177
15177
|
/**
|
|
15178
15178
|
* Refresh metadata by ID. This will refresh metadata for all NFTs that reference the given metadata ID.
|
|
@@ -15181,12 +15181,12 @@ class BlockchainData {
|
|
|
15181
15181
|
* @throws {@link index.APIError}
|
|
15182
15182
|
*/
|
|
15183
15183
|
async refreshStackedMetadata(request) {
|
|
15184
|
-
return await this.metadata
|
|
15184
|
+
return (await this.metadata
|
|
15185
15185
|
.refreshMetadataByID(request)
|
|
15186
15186
|
.then((res) => res.data)
|
|
15187
15187
|
.catch((err) => {
|
|
15188
15188
|
throw formatError$1(err);
|
|
15189
|
-
});
|
|
15189
|
+
}));
|
|
15190
15190
|
}
|
|
15191
15191
|
}
|
|
15192
15192
|
|
|
@@ -15200,7 +15200,7 @@ var blockchain_data = /*#__PURE__*/Object.freeze({
|
|
|
15200
15200
|
/* eslint-disable @typescript-eslint/naming-convention */
|
|
15201
15201
|
class ApiConfiguration extends index$2.Configuration {
|
|
15202
15202
|
}
|
|
15203
|
-
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.52.
|
|
15203
|
+
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.52.1-alpha.1' };
|
|
15204
15204
|
/**
|
|
15205
15205
|
* @dev use createImmutableXConfiguration instead
|
|
15206
15206
|
*/
|
|
@@ -15241,7 +15241,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
|
|
|
15241
15241
|
coreContractAddress,
|
|
15242
15242
|
registrationContractAddress,
|
|
15243
15243
|
registrationV4ContractAddress,
|
|
15244
|
-
sdkVersion: 'ts-immutable-sdk-1.52.
|
|
15244
|
+
sdkVersion: 'ts-immutable-sdk-1.52.1-alpha.1',
|
|
15245
15245
|
baseConfig,
|
|
15246
15246
|
});
|
|
15247
15247
|
const production = ({ baseConfig }) => createImmutableXConfiguration({
|
|
@@ -28868,7 +28868,7 @@ class AuthManager {
|
|
|
28868
28868
|
return user || this.login();
|
|
28869
28869
|
}
|
|
28870
28870
|
async loginCallback() {
|
|
28871
|
-
return withPassportError(async () => this.userManager.
|
|
28871
|
+
return withPassportError(async () => { await this.userManager.signinCallback(); }, PassportErrorType.AUTHENTICATION_ERROR);
|
|
28872
28872
|
}
|
|
28873
28873
|
/**
|
|
28874
28874
|
* loginWithDeviceFlow
|
|
@@ -31729,11 +31729,12 @@ class Passport {
|
|
|
31729
31729
|
* @param options.useCachedSession = false - If true, and no active session exists, then the user will not be
|
|
31730
31730
|
* prompted to log in and the Promise will resolve with a null value.
|
|
31731
31731
|
* @param options.anonymousId - If provided, Passport internal metrics will be enriched with this value.
|
|
31732
|
+
* @param options.useSilentLogin - If true, and no active session exists, then the user will not be prompted to log in. Instead, we will attempt to authenticate the user silently. This approach will fail if the user does not have an active session with the authentication server, or if user input is required (for example, consent is required).
|
|
31732
31733
|
* @returns {Promise<UserProfile | null>} the user profile if the user is logged in, otherwise null
|
|
31733
31734
|
*/
|
|
31734
31735
|
async login(options) {
|
|
31735
31736
|
return withMetricsAsync(async () => {
|
|
31736
|
-
const { useCachedSession = false } = options || {};
|
|
31737
|
+
const { useCachedSession = false, useSilentLogin } = options || {};
|
|
31737
31738
|
let user = null;
|
|
31738
31739
|
try {
|
|
31739
31740
|
user = await this.authManager.getUser();
|
|
@@ -31747,7 +31748,10 @@ class Passport {
|
|
|
31747
31748
|
}
|
|
31748
31749
|
logger$f.warn('Failed to retrieve a cached user session', error);
|
|
31749
31750
|
}
|
|
31750
|
-
if (!user &&
|
|
31751
|
+
if (!user && useSilentLogin) {
|
|
31752
|
+
user = await this.authManager.forceUserRefresh();
|
|
31753
|
+
}
|
|
31754
|
+
else if (!user && !useCachedSession) {
|
|
31751
31755
|
user = await this.authManager.login(options?.anonymousId);
|
|
31752
31756
|
}
|
|
31753
31757
|
if (user) {
|
|
@@ -53308,7 +53312,7 @@ const flattenProperties = (properties) => {
|
|
|
53308
53312
|
};
|
|
53309
53313
|
|
|
53310
53314
|
// WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
|
|
53311
|
-
const SDK_VERSION = '1.52.
|
|
53315
|
+
const SDK_VERSION = '1.52.1-alpha.1';
|
|
53312
53316
|
const getFrameParentDomain = () => {
|
|
53313
53317
|
if (isNode()) {
|
|
53314
53318
|
return '';
|
|
@@ -57671,6 +57675,7 @@ var OrchestrationEventType;
|
|
|
57671
57675
|
OrchestrationEventType["REQUEST_BRIDGE"] = "request-bridge";
|
|
57672
57676
|
OrchestrationEventType["REQUEST_ONRAMP"] = "request-onramp";
|
|
57673
57677
|
OrchestrationEventType["REQUEST_ADD_FUNDS"] = "request-add-funds";
|
|
57678
|
+
OrchestrationEventType["REQUEST_GO_BACK"] = "request-go-back";
|
|
57674
57679
|
})(OrchestrationEventType || (OrchestrationEventType = {}));
|
|
57675
57680
|
|
|
57676
57681
|
/**
|
|
@@ -57731,7 +57736,6 @@ var AddFundsEventType;
|
|
|
57731
57736
|
AddFundsEventType["REQUEST_BRIDGE"] = "request-bridge";
|
|
57732
57737
|
AddFundsEventType["REQUEST_ONRAMP"] = "request-onramp";
|
|
57733
57738
|
AddFundsEventType["REQUEST_SWAP"] = "request-swap";
|
|
57734
|
-
AddFundsEventType["GO_BACK"] = "go-back";
|
|
57735
57739
|
})(AddFundsEventType || (AddFundsEventType = {}));
|
|
57736
57740
|
|
|
57737
57741
|
/**
|
|
@@ -58702,7 +58706,7 @@ const IMMUTABLE_ZKVEM_GAS_OVERRIDES = {
|
|
|
58702
58706
|
maxPriorityFeePerGas: ethers.BigNumber.from(10e9),
|
|
58703
58707
|
};
|
|
58704
58708
|
|
|
58705
|
-
const SDK_VERSION_MARKER = '1.52.
|
|
58709
|
+
const SDK_VERSION_MARKER = '1.52.1-alpha.1';
|
|
58706
58710
|
// This SDK version is replaced by the `yarn build` command ran on the root level
|
|
58707
58711
|
const globalPackageVersion = () => SDK_VERSION_MARKER;
|
|
58708
58712
|
|
|
@@ -63457,6 +63461,7 @@ var PostMessageHandlerEventType;
|
|
|
63457
63461
|
PostMessageHandlerEventType["PROVIDER_UPDATED"] = "IMTBL_PROVIDER_UPDATED";
|
|
63458
63462
|
PostMessageHandlerEventType["EIP_6963_EVENT"] = "IMTBL_EIP_6963_EVENT";
|
|
63459
63463
|
PostMessageHandlerEventType["WIDGET_EVENT"] = "IMTBL_CHECKOUT_WIDGET_EVENT";
|
|
63464
|
+
PostMessageHandlerEventType["WIDGET_PROVIDER_EVENT"] = "IMTBL_WIDGET_PROVIDER_EVENT";
|
|
63460
63465
|
})(PostMessageHandlerEventType || (PostMessageHandlerEventType = {}));
|
|
63461
63466
|
|
|
63462
63467
|
class PostMessageHandler {
|