@verified-network/verified-sdk 2.2.2 → 2.2.4
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/contract/index.js
CHANGED
|
@@ -411,6 +411,7 @@ class VerifiedContract {
|
|
|
411
411
|
try {
|
|
412
412
|
const meeClient = await (0, abstractjs_1.createMeeClient)({
|
|
413
413
|
account: nexusAccount,
|
|
414
|
+
apiKey: constants_1.PaymasterConstants.MEE_API_KEY,
|
|
414
415
|
});
|
|
415
416
|
const transactionInstruction = await nexusAccount.build({
|
|
416
417
|
type: "default",
|
|
@@ -546,7 +547,7 @@ class VerifiedContract {
|
|
|
546
547
|
}
|
|
547
548
|
else {
|
|
548
549
|
//call contract through normal ether.js
|
|
549
|
-
console.log("gassless not supported will use ethers");
|
|
550
|
+
console.log("gassless not supported will use ethers...");
|
|
550
551
|
return await this.callFunctionWithEthers(functionName, ...args);
|
|
551
552
|
}
|
|
552
553
|
}
|
|
@@ -580,6 +581,7 @@ class VerifiedContract {
|
|
|
580
581
|
};
|
|
581
582
|
const meeClient = await (0, abstractjs_1.createMeeClient)({
|
|
582
583
|
account: nexusAccount,
|
|
584
|
+
apiKey: constants_1.PaymasterConstants.MEE_API_KEY,
|
|
583
585
|
});
|
|
584
586
|
const transactionInstruction = await nexusAccount.build({
|
|
585
587
|
type: "default",
|
|
@@ -604,12 +606,12 @@ class VerifiedContract {
|
|
|
604
606
|
}
|
|
605
607
|
catch (err) {
|
|
606
608
|
if ((_a = err === null || err === void 0 ? void 0 : err.message) === null || _a === void 0 ? void 0 : _a.includes("fn is not a function")) {
|
|
607
|
-
|
|
609
|
+
console.error(`Function ${functionName} not found in contract's ABI`);
|
|
608
610
|
}
|
|
609
611
|
else if ((_b = err === null || err === void 0 ? void 0 : err.message) === null || _b === void 0 ? void 0 : _b.includes("code=INVALID_ARGUMENT")) {
|
|
610
|
-
|
|
612
|
+
console.error(`Invalid arguments type`);
|
|
611
613
|
}
|
|
612
|
-
|
|
614
|
+
console.error((err === null || err === void 0 ? void 0 : err.message) || "getQuote failed.");
|
|
613
615
|
}
|
|
614
616
|
}
|
|
615
617
|
}
|
package/dist/utils/constants.js
CHANGED
|
@@ -6,6 +6,7 @@ exports.PaymasterConstants = {
|
|
|
6
6
|
MAX_WAITING_ROUND: 10, //number of rounds gassless transactions will wait to fetch receipt. Note: each round is 6 seconds, so 10 for example is 1 minute
|
|
7
7
|
BUNDLER_URL_FIRST_SECTION: "https://bundler.biconomy.io/api/v2",
|
|
8
8
|
GENERAL_PAYMASTER_URL: "https://paymaster.biconomy.io/api/v1",
|
|
9
|
+
MEE_API_KEY: "mee_XGE8XYuTujTdkB4sohJMHv",
|
|
9
10
|
BICONOMY_REVERT_TOPIC: "0x1c4fada7374c0a9ee8841fc38afe82932dc0f8e69012e927f061a8bae611a201",
|
|
10
11
|
//ethereum sepolia
|
|
11
12
|
11155111: {
|