@imtbl/sdk 2.0.4-alpha.8 → 2.1.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/index.browser.cdn.js +9 -9
- package/package.json +10 -10
|
@@ -88727,7 +88727,7 @@ var immutable = (() => {
|
|
|
88727
88727
|
(typeof p3 == "string" || typeof l5 == "string" || typeof l5 == "number" || typeof l5 == "boolean") && c4.push([p3, l5.toString()]);
|
|
88728
88728
|
}), c4;
|
|
88729
88729
|
};
|
|
88730
|
-
var kr = "2.0
|
|
88730
|
+
var kr = "2.1.0";
|
|
88731
88731
|
var Je = () => ir() ? "" : window.location.ancestorOrigins && window.location.ancestorOrigins.length > 0 ? new URL(window.location.ancestorOrigins[0]).hostname : document.referrer ? new URL(window.document.referrer).hostname : "";
|
|
88732
88732
|
var ze = () => {
|
|
88733
88733
|
if (ir()) return "";
|
|
@@ -91611,7 +91611,7 @@ Cause: ${o3.message}
|
|
|
91611
91611
|
this.config = e2, this.activitiesApi = new Xe2(e2.indexer), this.chainsApi = new Ze2(e2.indexer), this.collectionApi = new Je2(e2.indexer), this.nftOwnersApi = new st2(e2.indexer), this.nftsApi = new at(e2.indexer), this.ordersApi = new nt2(e2.orderBook), this.passportApi = new ot2(e2.passport), this.passportProfileApi = new it2(e2.passport), this.guardianApi = new et2(e2.passport);
|
|
91612
91612
|
}
|
|
91613
91613
|
};
|
|
91614
|
-
var un2 = { "x-sdk-version": "ts-immutable-sdk-2.0
|
|
91614
|
+
var un2 = { "x-sdk-version": "ts-immutable-sdk-2.1.0" };
|
|
91615
91615
|
var Z = ({ basePath: o3, headers: e2 }) => {
|
|
91616
91616
|
if (!o3.trim()) throw Error("basePath can not be empty");
|
|
91617
91617
|
let t3 = { ...un2, ...e2 || {} }, r9 = { basePath: o3, baseOptions: { headers: t3 } };
|
|
@@ -91630,7 +91630,7 @@ Cause: ${o3.message}
|
|
|
91630
91630
|
super(e2), this.code = t3, this.details = u7, this.link = h5, this.traceId = p3;
|
|
91631
91631
|
}
|
|
91632
91632
|
};
|
|
91633
|
-
var R2 = { sdkVersion: "ts-immutable-sdk-multi-rollup-api-client-2.0
|
|
91633
|
+
var R2 = { sdkVersion: "ts-immutable-sdk-multi-rollup-api-client-2.1.0" };
|
|
91634
91634
|
var c = (a2) => {
|
|
91635
91635
|
let { baseConfig: e2, basePath: t3, headers: u7 } = a2;
|
|
91636
91636
|
if (!t3.trim()) throw Error("basePath can not be empty");
|
|
@@ -119258,14 +119258,14 @@ Cause: ${o3.message}
|
|
|
119258
119258
|
};
|
|
119259
119259
|
var B = class extends ir2.Configuration {
|
|
119260
119260
|
};
|
|
119261
|
-
var ne3 = { "x-sdk-version": "ts-immutable-sdk-2.0
|
|
119261
|
+
var ne3 = { "x-sdk-version": "ts-immutable-sdk-2.1.0" };
|
|
119262
119262
|
var Qe3 = ({ coreContractAddress: t3, registrationContractAddress: e2, registrationV4ContractAddress: a2, chainID: f8, basePath: n6, headers: i3, sdkVersion: s2, baseConfig: o3 }) => {
|
|
119263
119263
|
if (!n6.trim()) throw Error("basePath can not be empty");
|
|
119264
119264
|
s2 && (ne3["x-sdk-version"] = s2), i3 = { ...i3 || {}, ...p(o3, { headers: i3 })?.headers || {}, ...ne3 };
|
|
119265
119265
|
let m3 = { basePath: n6, baseOptions: { headers: i3 } };
|
|
119266
119266
|
return { apiConfiguration: new B(m3), ethConfiguration: { coreContractAddress: t3, registrationContractAddress: e2, registrationV4ContractAddress: a2, chainID: f8 } };
|
|
119267
119267
|
};
|
|
119268
|
-
var ce3 = ({ basePath: t3, chainID: e2, coreContractAddress: a2, registrationContractAddress: f8, registrationV4ContractAddress: n6, baseConfig: i3 }) => Qe3({ basePath: t3, chainID: e2, coreContractAddress: a2, registrationContractAddress: f8, registrationV4ContractAddress: n6, sdkVersion: "ts-immutable-sdk-2.0
|
|
119268
|
+
var ce3 = ({ basePath: t3, chainID: e2, coreContractAddress: a2, registrationContractAddress: f8, registrationV4ContractAddress: n6, baseConfig: i3 }) => Qe3({ basePath: t3, chainID: e2, coreContractAddress: a2, registrationContractAddress: f8, registrationV4ContractAddress: n6, sdkVersion: "ts-immutable-sdk-2.1.0", baseConfig: i3 });
|
|
119269
119269
|
var Ye3 = ({ baseConfig: t3 }) => ce3({ basePath: "https://api.x.immutable.com", chainID: 1, coreContractAddress: "0x5FDCCA53617f4d2b9134B29090C87D01058e27e9", registrationContractAddress: "0x72a06bf2a1CE5e39cBA06c0CAb824960B587d64c", registrationV4ContractAddress: "0xac88a57943b5BBa1ecd931F8494cAd0B7F717590", baseConfig: t3 });
|
|
119270
119270
|
var de2 = ({ baseConfig: t3 }) => ce3({ basePath: "https://api.sandbox.x.immutable.com", chainID: 11155111, coreContractAddress: "0x2d5C349fD8464DA06a3f90b4B0E9195F3d1b7F98", registrationContractAddress: "0xDbA6129C02E69405622fAdc3d5A7f8d23eac3b97", registrationV4ContractAddress: "0xd1527c65c6287ec5ab816d328eb83bb4cb690e92", baseConfig: t3 });
|
|
119271
119271
|
var V3 = class {
|
|
@@ -128792,11 +128792,11 @@ Cause: ${o3.message}
|
|
|
128792
128792
|
try {
|
|
128793
128793
|
let r9 = new Contract(e2, walletContracts.mainModule.abi, n6), i3 = gi(t3), a2 = await r9.readNonce(i3);
|
|
128794
128794
|
if (typeof a2 == "bigint") return hi(i3, a2);
|
|
128795
|
+
throw new Error("Unexpected result from contract.nonce() call.");
|
|
128795
128796
|
} catch (r9) {
|
|
128796
128797
|
if (isError(r9, "BAD_DATA")) return BigInt(0);
|
|
128797
128798
|
throw r9;
|
|
128798
128799
|
}
|
|
128799
|
-
throw new Error("Unexpected result from contract.nonce() call.");
|
|
128800
128800
|
};
|
|
128801
128801
|
var Fe4 = (n6, e2, t3) => solidityPacked(["string", "uint256", "address", "bytes32"], [mi, n6, e2, t3]);
|
|
128802
128802
|
var Ge5 = async (n6, e2, t3, r9, i3) => {
|
|
@@ -129024,7 +129024,7 @@ Cause: ${o3.message}
|
|
|
129024
129024
|
let g3 = await _i(n6, t3, i3, a2, o3);
|
|
129025
129025
|
s2.addEvent("endBuildMetaTransactions");
|
|
129026
129026
|
let { nonce: h5 } = g3[0];
|
|
129027
|
-
if (
|
|
129027
|
+
if (typeof h5 > "u") throw new Error("Failed to retrieve nonce from the smart wallet");
|
|
129028
129028
|
let C5 = async () => {
|
|
129029
129029
|
await r9.validateEVMTransaction({ chainId: _5(Number(d3)), nonce: de3(h5), metaTransactions: g3, isBackgroundTransaction: c4 }), s2.addEvent("endValidateEVMTransaction");
|
|
129030
129030
|
}, w6 = async () => {
|
|
@@ -129037,7 +129037,7 @@ Cause: ${o3.message}
|
|
|
129037
129037
|
if (!n6.to) throw new u4(-32602, 'im_signEjectionTransaction requires a "to" field');
|
|
129038
129038
|
if (typeof n6.nonce > "u") throw new u4(-32602, 'im_signEjectionTransaction requires a "nonce" field');
|
|
129039
129039
|
if (!n6.chainId) throw new u4(-32602, 'im_signEjectionTransaction requires a "chainId" field');
|
|
129040
|
-
return [{ to: n6.to.toString(), data: n6.data, nonce: n6.nonce, value: n6.value, revertOnError: true }];
|
|
129040
|
+
return [{ to: n6.to.toString(), data: n6.data, nonce: n6.nonce ?? void 0, value: n6.value, revertOnError: true }];
|
|
129041
129041
|
};
|
|
129042
129042
|
var Ut4 = async ({ transactionRequest: n6, ethSigner: e2, zkEvmAddress: t3, flow: r9 }) => {
|
|
129043
129043
|
let i3 = await Pi3(n6);
|
|
@@ -143620,7 +143620,7 @@ Cause: ${o3.message}
|
|
|
143620
143620
|
maxFeePerGas: BigInt(15e9),
|
|
143621
143621
|
maxPriorityFeePerGas: BigInt(1e10)
|
|
143622
143622
|
};
|
|
143623
|
-
var Do = "2.0
|
|
143623
|
+
var Do = "2.1.0";
|
|
143624
143624
|
var at7 = () => false;
|
|
143625
143625
|
var Se8 = () => Do;
|
|
143626
143626
|
var ve9 = (r9, e2) => {
|
package/package.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@imtbl/sdk",
|
|
3
3
|
"description": "Immutable Typescript SDK",
|
|
4
|
-
"version": "2.0
|
|
4
|
+
"version": "2.1.0",
|
|
5
5
|
"author": "Immutable",
|
|
6
6
|
"bugs": "https://github.com/immutable/ts-immutable-sdk/issues",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@imtbl/blockchain-data": "2.0
|
|
9
|
-
"@imtbl/checkout-sdk": "2.0
|
|
10
|
-
"@imtbl/config": "2.0
|
|
11
|
-
"@imtbl/minting-backend": "2.0
|
|
12
|
-
"@imtbl/orderbook": "2.0
|
|
13
|
-
"@imtbl/passport": "2.0
|
|
14
|
-
"@imtbl/webhook": "2.0
|
|
15
|
-
"@imtbl/x-client": "2.0
|
|
16
|
-
"@imtbl/x-provider": "2.0
|
|
8
|
+
"@imtbl/blockchain-data": "2.1.0",
|
|
9
|
+
"@imtbl/checkout-sdk": "2.1.0",
|
|
10
|
+
"@imtbl/config": "2.1.0",
|
|
11
|
+
"@imtbl/minting-backend": "2.1.0",
|
|
12
|
+
"@imtbl/orderbook": "2.1.0",
|
|
13
|
+
"@imtbl/passport": "2.1.0",
|
|
14
|
+
"@imtbl/webhook": "2.1.0",
|
|
15
|
+
"@imtbl/x-client": "2.1.0",
|
|
16
|
+
"@imtbl/x-provider": "2.1.0"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"eslint": "^8.40.0",
|