@argent/x-shared 1.74.1 → 1.75.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.cjs +1 -1
- package/dist/index.js +212 -209
- package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/modular.js +5 -5
- package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/weierstrass.cjs +1 -1
- package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/weierstrass.js +13 -14
- package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/sha3.cjs +1 -1
- package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/sha3.js +3 -3
- package/dist/node_modules/.pnpm/@noble_hashes@1.5.0/node_modules/@noble/hashes/esm/sha3.cjs +1 -1
- package/dist/node_modules/.pnpm/@noble_hashes@1.5.0/node_modules/@noble/hashes/esm/sha3.js +3 -3
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getValue.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getValue.js +1 -1
- package/dist/node_modules/.pnpm/micro-starknet@0.2.3/node_modules/micro-starknet/lib/esm/index.js +6 -6
- package/dist/src/chains/starknet/address.cjs +1 -1
- package/dist/src/chains/starknet/address.js +17 -17
- package/dist/src/chains/starknet/services/deploymentData/findImplementationForAccount.js +1 -1
- package/dist/src/chains/starknet/services/deploymentData/getAccountClassHash.js +1 -1
- package/dist/src/features/defiDecomposition/helpers/computeCollateralizedDebtPositionsUsdValue.cjs +1 -1
- package/dist/src/features/defiDecomposition/helpers/computeCollateralizedDebtPositionsUsdValue.js +27 -27
- package/dist/src/features/defiDecomposition/helpers/computeConcentratedLiquidityPositionsUsdValue.cjs +1 -1
- package/dist/src/features/defiDecomposition/helpers/computeConcentratedLiquidityPositionsUsdValue.js +22 -22
- package/dist/src/features/defiDecomposition/helpers/computeDelegatedTokensPositionsUsdValue.cjs +1 -1
- package/dist/src/features/defiDecomposition/helpers/computeDelegatedTokensPositionsUsdValue.js +14 -14
- package/dist/src/features/defiDecomposition/helpers/computeStakingPositionsUsdValue.cjs +1 -1
- package/dist/src/features/defiDecomposition/helpers/computeStakingPositionsUsdValue.js +9 -9
- package/dist/src/features/defiDecomposition/helpers/computeStrkDelegatedStakingPositionsUsdValue.cjs +1 -1
- package/dist/src/features/defiDecomposition/helpers/computeStrkDelegatedStakingPositionsUsdValue.js +13 -13
- package/dist/src/features/defiDecomposition/helpers/parseCollateralizedDebtPositions.cjs +1 -1
- package/dist/src/features/defiDecomposition/helpers/parseCollateralizedDebtPositions.js +24 -25
- package/dist/src/features/simulation/activity/normalize.cjs +1 -1
- package/dist/src/features/simulation/activity/normalize.js +12 -13
- package/dist/src/features/simulation/activity/schema.cjs +1 -1
- package/dist/src/features/simulation/activity/schema.js +6 -6
- package/dist/src/features/simulation/activity/utils/createNativeActivity.cjs +1 -1
- package/dist/src/features/simulation/activity/utils/createNativeActivity.js +22 -24
- package/dist/src/features/simulation/activity/utils/getAnyActivityTitle.cjs +1 -1
- package/dist/src/features/simulation/activity/utils/getAnyActivityTitle.js +11 -12
- package/dist/src/features/simulation/activity/utils/hasDelegationActivity.cjs +1 -1
- package/dist/src/features/simulation/activity/utils/hasDelegationActivity.js +2 -8
- package/dist/src/features/simulation/activity/utils/isAddMultisigSignersActivity.cjs +1 -1
- package/dist/src/features/simulation/activity/utils/isAddMultisigSignersActivity.js +4 -8
- package/dist/src/features/simulation/activity/utils/isChangeMultisigThresholdActivity.cjs +1 -1
- package/dist/src/features/simulation/activity/utils/isChangeMultisigThresholdActivity.js +4 -8
- package/dist/src/features/simulation/activity/utils/isMulticallWithDeploymentActivity.cjs +1 -1
- package/dist/src/features/simulation/activity/utils/isMulticallWithDeploymentActivity.js +3 -9
- package/dist/src/features/simulation/activity/utils/isRejectOnChainActivity.cjs +1 -1
- package/dist/src/features/simulation/activity/utils/isRejectOnChainActivity.js +15 -19
- package/dist/src/features/simulation/activity/utils/isRemoveMultisigSignersActivity.cjs +1 -1
- package/dist/src/features/simulation/activity/utils/isRemoveMultisigSignersActivity.js +4 -8
- package/dist/src/features/simulation/activity/utils/isSwapActivity.cjs +1 -1
- package/dist/src/features/simulation/activity/utils/isSwapActivity.js +9 -16
- package/dist/src/features/simulation/activity/utils/isUpgradeActivity.cjs +1 -1
- package/dist/src/features/simulation/activity/utils/isUpgradeActivity.js +4 -8
- package/dist/src/features/simulation/fees/schema.cjs +1 -1
- package/dist/src/features/simulation/fees/schema.d.ts +16 -0
- package/dist/src/features/simulation/fees/schema.js +8 -6
- package/dist/src/features/simulation/transactionReview/getErrorMessageAndLabelFromSimulation.cjs +1 -1
- package/dist/src/features/simulation/transactionReview/getErrorMessageAndLabelFromSimulation.js +10 -11
- package/dist/src/features/simulation/transactionReview/schema.cjs +1 -1
- package/dist/src/features/simulation/transactionReview/schema.d.ts +23 -0
- package/dist/src/features/simulation/transactionReview/schema.js +21 -19
- package/dist/src/features/swap/services/SwapTransactionService.cjs +1 -1
- package/dist/src/features/swap/services/SwapTransactionService.js +46 -49
- package/dist/src/http/HttpService.cjs +1 -1
- package/dist/src/http/HttpService.js +55 -55
- package/dist/src/knownDapps/utils/getDapplandUrl.cjs +1 -1
- package/dist/src/knownDapps/utils/getDapplandUrl.js +6 -8
- package/dist/src/nfts/BackendNftService.cjs +1 -1
- package/dist/src/nfts/BackendNftService.js +18 -19
- package/dist/src/tokens/service/implementation.cjs +1 -1
- package/dist/src/tokens/service/implementation.js +12 -12
- package/dist/src/tokens/service/types/backend.model.js +1 -1
- package/dist/src/transactions/estimate/utils.cjs +1 -1
- package/dist/src/transactions/estimate/utils.d.ts +33 -0
- package/dist/src/transactions/estimate/utils.js +80 -76
- package/dist/src/transactions/service/implementation.cjs +1 -1
- package/dist/src/transactions/service/implementation.d.ts +4 -0
- package/dist/src/transactions/service/implementation.js +89 -96
- package/dist/src/transactions/service/utils.cjs +1 -1
- package/dist/src/transactions/service/utils.d.ts +2 -3
- package/dist/src/transactions/service/utils.js +12 -11
- package/dist/src/transactions/transactionVersion.cjs +1 -1
- package/dist/src/transactions/transactionVersion.d.ts +2 -0
- package/dist/src/transactions/transactionVersion.js +12 -10
- package/dist/src/utils/base58.js +5 -5
- package/dist/src/utils/number/abbreviateNumber.d.ts +2 -1
- package/dist/src/utils/readFileAsString.cjs +1 -1
- package/dist/src/utils/readFileAsString.js +3 -6
- package/package.json +23 -23
- package/dist/node_modules/.pnpm/@starknet-io_types-js@0.7.7/node_modules/@starknet-io/types-js/dist/esm/api/nonspec.cjs +0 -1
- package/dist/node_modules/.pnpm/@starknet-io_types-js@0.7.7/node_modules/@starknet-io/types-js/dist/esm/api/nonspec.js +0 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../../../chains/starknet/address.cjs"),s=e=>e.type==="multicall"&&"calls"in e.details&&e.details.calls?.some(l=>l?.details?.type==="deploy"&&t.isEqualAddress(l?.details.contractAddress||"",e.wallet));exports.isMulticallWithDeploymentActivity=s;
|
|
@@ -1,11 +1,5 @@
|
|
|
1
|
-
import { isEqualAddress as
|
|
2
|
-
const
|
|
3
|
-
var t;
|
|
4
|
-
return s.type === "multicall" && "calls" in s.details && ((t = s.details.calls) == null ? void 0 : t.some((e) => {
|
|
5
|
-
var d;
|
|
6
|
-
return ((d = e == null ? void 0 : e.details) == null ? void 0 : d.type) === "deploy" && o((e == null ? void 0 : e.details.contractAddress) || "", s.wallet);
|
|
7
|
-
}));
|
|
8
|
-
};
|
|
1
|
+
import { isEqualAddress as s } from "../../../../chains/starknet/address.js";
|
|
2
|
+
const d = (l) => l.type === "multicall" && "calls" in l.details && l.details.calls?.some((e) => e?.details?.type === "deploy" && s(e?.details.contractAddress || "", l.wallet));
|
|
9
3
|
export {
|
|
10
|
-
|
|
4
|
+
d as isMulticallWithDeploymentActivity
|
|
11
5
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("../../../../chains/starknet/address.cjs"),l=require("../../../../chains/starknet/constants.cjs");function f(t){const s=u(t),n=o(t);return s||n}const u=t=>{if(!t.actions?.length)return!1;const s=t.actions[0];if(s.name!=="ERC20_transfer")return!1;let n,i,a,r;return s.defaultProperties&&s.defaultProperties.forEach(e=>{e.type==="token_address"&&e.token.address===l.ETH_TOKEN_ADDRESS&&(i=!0),e.type==="calldata"&&(n=e.calldata[0])}),s.properties.length>1&&s.properties.forEach(e=>{e.type==="amount"&&e.label==="ERC20_transfer_amount"&&e.amount==="0"&&(a=!0),e.type==="address"&&e.label==="ERC20_transfer_recipient"&&c.isEqualAddress(e.address,n)&&(r=!0)}),i&&a&&r},o=t=>!!("meta"in t&&t.meta?.title?.includes("On-chain rejection"));exports.isRejectOnChainActivity=f;
|
|
@@ -1,26 +1,22 @@
|
|
|
1
|
-
import { isEqualAddress as
|
|
2
|
-
import { ETH_TOKEN_ADDRESS as
|
|
3
|
-
function
|
|
4
|
-
const
|
|
5
|
-
return
|
|
1
|
+
import { isEqualAddress as f } from "../../../../chains/starknet/address.js";
|
|
2
|
+
import { ETH_TOKEN_ADDRESS as c } from "../../../../chains/starknet/constants.js";
|
|
3
|
+
function R(t) {
|
|
4
|
+
const s = l(t), n = o(t);
|
|
5
|
+
return s || n;
|
|
6
6
|
}
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
if (!((f = s.actions) != null && f.length))
|
|
7
|
+
const l = (t) => {
|
|
8
|
+
if (!t.actions?.length)
|
|
10
9
|
return !1;
|
|
11
|
-
const
|
|
12
|
-
if (
|
|
10
|
+
const s = t.actions[0];
|
|
11
|
+
if (s.name !== "ERC20_transfer")
|
|
13
12
|
return !1;
|
|
14
13
|
let n, i, a, r;
|
|
15
|
-
return
|
|
16
|
-
e.type === "token_address" && e.token.address ===
|
|
17
|
-
}),
|
|
18
|
-
e.type === "amount" && e.label === "ERC20_transfer_amount" && e.amount === "0" && (a = !0), e.type === "address" && e.label === "ERC20_transfer_recipient" &&
|
|
14
|
+
return s.defaultProperties && s.defaultProperties.forEach((e) => {
|
|
15
|
+
e.type === "token_address" && e.token.address === c && (i = !0), e.type === "calldata" && (n = e.calldata[0]);
|
|
16
|
+
}), s.properties.length > 1 && s.properties.forEach((e) => {
|
|
17
|
+
e.type === "amount" && e.label === "ERC20_transfer_amount" && e.amount === "0" && (a = !0), e.type === "address" && e.label === "ERC20_transfer_recipient" && f(e.address, n) && (r = !0);
|
|
19
18
|
}), i && a && r;
|
|
20
|
-
},
|
|
21
|
-
var t, n;
|
|
22
|
-
return !!("meta" in s && (n = (t = s.meta) == null ? void 0 : t.title) != null && n.includes("On-chain rejection"));
|
|
23
|
-
};
|
|
19
|
+
}, o = (t) => !!("meta" in t && t.meta?.title?.includes("On-chain rejection"));
|
|
24
20
|
export {
|
|
25
|
-
|
|
21
|
+
R as isRejectOnChainActivity
|
|
26
22
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function n(e,t){const i=r(e),s=o(e,t);return i||s}const r=e=>{
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function n(e,t){const i=r(e),s=o(e,t);return i||s}const r=e=>{if(!e.actions?.length)return!1;const t=e.actions[0];if(t.name!=="account_multisig_remove_signers")return!1;if(t.defaultProperties){for(const i of t.defaultProperties)if(i.type==="calldata"&&i.entrypoint==="remove_signers")return!0}return!1},o=(e,t)=>!!("meta"in e&&e.meta?.title?.includes(t("transactionTitle.removeOwner")));exports.isRemoveMultisigSignersActivity=n;
|
|
@@ -3,22 +3,18 @@ function o(e, t) {
|
|
|
3
3
|
return i || s;
|
|
4
4
|
}
|
|
5
5
|
const n = (e) => {
|
|
6
|
-
|
|
7
|
-
if (!((i = e.actions) != null && i.length))
|
|
6
|
+
if (!e.actions?.length)
|
|
8
7
|
return !1;
|
|
9
8
|
const t = e.actions[0];
|
|
10
9
|
if (t.name !== "account_multisig_remove_signers")
|
|
11
10
|
return !1;
|
|
12
11
|
if (t.defaultProperties) {
|
|
13
|
-
for (const
|
|
14
|
-
if (
|
|
12
|
+
for (const i of t.defaultProperties)
|
|
13
|
+
if (i.type === "calldata" && i.entrypoint === "remove_signers")
|
|
15
14
|
return !0;
|
|
16
15
|
}
|
|
17
16
|
return !1;
|
|
18
|
-
}, r = (e, t) =>
|
|
19
|
-
var i, s;
|
|
20
|
-
return !!("meta" in e && (s = (i = e.meta) == null ? void 0 : i.title) != null && s.includes(t("transactionTitle.removeOwner")));
|
|
21
|
-
};
|
|
17
|
+
}, r = (e, t) => !!("meta" in e && e.meta?.title?.includes(t("transactionTitle.removeOwner")));
|
|
22
18
|
export {
|
|
23
19
|
o as isRemoveMultisigSignersActivity
|
|
24
20
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function n(e,s){const t=r(e),a=u(e,s);return t||a}const r=e=>{if(!e.actions?.length)return!1;const s=["multi_route_swap","Jediswap_swap","Avnu_swap","multi_multihop_swap","swap"];return e.actions.some(t=>!s.includes(t.name)||!t.defaultProperties?!1:t.defaultProperties.some(i=>i.type==="calldata"&&i.entrypoint?.toLowerCase().includes("swap")))},u=(e,s)=>!!("meta"in e&&e.meta?.title?.includes(s("transactionTitle.swap")));exports.isSwapActivity=n;
|
|
@@ -1,26 +1,19 @@
|
|
|
1
|
-
function
|
|
2
|
-
const t =
|
|
3
|
-
return t ||
|
|
1
|
+
function u(e, s) {
|
|
2
|
+
const t = i(e), a = r(e, s);
|
|
3
|
+
return t || a;
|
|
4
4
|
}
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
if (!((t = e.actions) != null && t.length))
|
|
5
|
+
const i = (e) => {
|
|
6
|
+
if (!e.actions?.length)
|
|
8
7
|
return !1;
|
|
9
|
-
const
|
|
8
|
+
const s = [
|
|
10
9
|
"multi_route_swap",
|
|
11
10
|
"Jediswap_swap",
|
|
12
11
|
"Avnu_swap",
|
|
13
12
|
"multi_multihop_swap",
|
|
14
13
|
"swap"
|
|
15
14
|
];
|
|
16
|
-
return e.actions.some((
|
|
17
|
-
|
|
18
|
-
return n.type === "calldata" && ((i = n.entrypoint) == null ? void 0 : i.toLowerCase().includes("swap"));
|
|
19
|
-
}));
|
|
20
|
-
}, u = (e, a) => {
|
|
21
|
-
var t, s;
|
|
22
|
-
return !!("meta" in e && (s = (t = e.meta) == null ? void 0 : t.title) != null && s.includes(a("transactionTitle.swap")));
|
|
23
|
-
};
|
|
15
|
+
return e.actions.some((t) => !s.includes(t.name) || !t.defaultProperties ? !1 : t.defaultProperties.some((n) => n.type === "calldata" && n.entrypoint?.toLowerCase().includes("swap")));
|
|
16
|
+
}, r = (e, s) => !!("meta" in e && e.meta?.title?.includes(s("transactionTitle.swap")));
|
|
24
17
|
export {
|
|
25
|
-
|
|
18
|
+
u as isSwapActivity
|
|
26
19
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function i(e,t){const r=n(e),a=s(e,t);return r||a}const n=e=>{
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function i(e,t){const r=n(e),a=s(e,t);return r||a}const n=e=>{if(!e.actions?.length)return!1;const t=e.actions[0];if(t.name!=="account_upgrade")return!1;if(t.defaultProperties){for(const r of t.defaultProperties)if(r.type==="calldata"&&r.entrypoint==="upgrade")return!0}return!1},s=(e,t)=>!!("meta"in e&&e.meta?.title?.includes(t("accountUpgrade.upgradeAccount")));exports.isUpgradeActivity=i;
|
|
@@ -3,22 +3,18 @@ function i(e, t) {
|
|
|
3
3
|
return r || n;
|
|
4
4
|
}
|
|
5
5
|
const a = (e) => {
|
|
6
|
-
|
|
7
|
-
if (!((r = e.actions) != null && r.length))
|
|
6
|
+
if (!e.actions?.length)
|
|
8
7
|
return !1;
|
|
9
8
|
const t = e.actions[0];
|
|
10
9
|
if (t.name !== "account_upgrade")
|
|
11
10
|
return !1;
|
|
12
11
|
if (t.defaultProperties) {
|
|
13
|
-
for (const
|
|
14
|
-
if (
|
|
12
|
+
for (const r of t.defaultProperties)
|
|
13
|
+
if (r.type === "calldata" && r.entrypoint === "upgrade")
|
|
15
14
|
return !0;
|
|
16
15
|
}
|
|
17
16
|
return !1;
|
|
18
|
-
}, s = (e, t) =>
|
|
19
|
-
var r, n;
|
|
20
|
-
return !!("meta" in e && (n = (r = e.meta) == null ? void 0 : r.title) != null && n.includes(t("accountUpgrade.upgradeAccount")));
|
|
21
|
-
};
|
|
17
|
+
}, s = (e, t) => !!("meta" in e && e.meta?.title?.includes(t("accountUpgrade.upgradeAccount")));
|
|
22
18
|
export {
|
|
23
19
|
i as isUpgradeActivity
|
|
24
20
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("zod"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("zod"),m=require("../../../chains/starknet/address.cjs"),t=e.z.object({gasConsumed:e.z.bigint(),gasPrice:e.z.bigint()}),a=e.z.object({type:e.z.literal("native"),feeTokenAddress:m.addressSchema,l1Gas:t,l2Gas:t,l1DataGas:t,overallFee:e.z.bigint().optional(),tip:e.z.bigint().optional()}),i=e.z.object({type:e.z.literal("paymaster"),feeTokenAddress:m.addressSchema,maxFee:e.z.bigint(),overallFee:e.z.bigint(),tip:e.z.bigint().optional()}),n=e.z.discriminatedUnion("type",[a,i]),s=e.z.object({type:e.z.literal("native"),transactions:a.omit({type:!0}),deployment:a.omit({type:!0}).optional()}),o=e.z.object({type:e.z.literal("paymaster"),transactions:i.omit({type:!0}),deployment:i.omit({type:!0}).optional()}),c=e.z.discriminatedUnion("type",[s,o]),r=e.z.object({native:s.omit({type:!0}),paymaster:o.omit({type:!0}).optional()});exports.estimatedFeeSchema=n;exports.estimatedFeesSchema=c;exports.feeEstimationResultSchema=r;exports.nativeEstimatedFeeSchema=a;exports.nativeEstimatedFeesSchema=s;exports.paymasterEstimatedFeeSchema=i;exports.paymasterEstimatedFeesSchema=o;exports.resourceBoundsSchema=t;
|
|
@@ -21,12 +21,14 @@ export declare const nativeEstimatedFeeSchema: z.ZodObject<{
|
|
|
21
21
|
gasPrice: z.ZodBigInt;
|
|
22
22
|
}, z.core.$strip>;
|
|
23
23
|
overallFee: z.ZodOptional<z.ZodBigInt>;
|
|
24
|
+
tip: z.ZodOptional<z.ZodBigInt>;
|
|
24
25
|
}, z.core.$strip>;
|
|
25
26
|
export declare const paymasterEstimatedFeeSchema: z.ZodObject<{
|
|
26
27
|
type: z.ZodLiteral<"paymaster">;
|
|
27
28
|
feeTokenAddress: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodTransform<`0x${string}`, string>>;
|
|
28
29
|
maxFee: z.ZodBigInt;
|
|
29
30
|
overallFee: z.ZodBigInt;
|
|
31
|
+
tip: z.ZodOptional<z.ZodBigInt>;
|
|
30
32
|
}, z.core.$strip>;
|
|
31
33
|
export declare const estimatedFeeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
32
34
|
type: z.ZodLiteral<"native">;
|
|
@@ -44,11 +46,13 @@ export declare const estimatedFeeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
44
46
|
gasPrice: z.ZodBigInt;
|
|
45
47
|
}, z.core.$strip>;
|
|
46
48
|
overallFee: z.ZodOptional<z.ZodBigInt>;
|
|
49
|
+
tip: z.ZodOptional<z.ZodBigInt>;
|
|
47
50
|
}, z.core.$strip>, z.ZodObject<{
|
|
48
51
|
type: z.ZodLiteral<"paymaster">;
|
|
49
52
|
feeTokenAddress: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodTransform<`0x${string}`, string>>;
|
|
50
53
|
maxFee: z.ZodBigInt;
|
|
51
54
|
overallFee: z.ZodBigInt;
|
|
55
|
+
tip: z.ZodOptional<z.ZodBigInt>;
|
|
52
56
|
}, z.core.$strip>]>;
|
|
53
57
|
export type EstimatedFee = z.infer<typeof estimatedFeeSchema>;
|
|
54
58
|
export declare const nativeEstimatedFeesSchema: z.ZodObject<{
|
|
@@ -68,6 +72,7 @@ export declare const nativeEstimatedFeesSchema: z.ZodObject<{
|
|
|
68
72
|
gasPrice: z.ZodBigInt;
|
|
69
73
|
}, z.core.$strip>;
|
|
70
74
|
overallFee: z.ZodOptional<z.ZodBigInt>;
|
|
75
|
+
tip: z.ZodOptional<z.ZodBigInt>;
|
|
71
76
|
}, z.core.$strip>;
|
|
72
77
|
deployment: z.ZodOptional<z.ZodObject<{
|
|
73
78
|
feeTokenAddress: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodTransform<`0x${string}`, string>>;
|
|
@@ -84,6 +89,7 @@ export declare const nativeEstimatedFeesSchema: z.ZodObject<{
|
|
|
84
89
|
gasPrice: z.ZodBigInt;
|
|
85
90
|
}, z.core.$strip>;
|
|
86
91
|
overallFee: z.ZodOptional<z.ZodBigInt>;
|
|
92
|
+
tip: z.ZodOptional<z.ZodBigInt>;
|
|
87
93
|
}, z.core.$strip>>;
|
|
88
94
|
}, z.core.$strip>;
|
|
89
95
|
export declare const paymasterEstimatedFeesSchema: z.ZodObject<{
|
|
@@ -91,11 +97,13 @@ export declare const paymasterEstimatedFeesSchema: z.ZodObject<{
|
|
|
91
97
|
transactions: z.ZodObject<{
|
|
92
98
|
feeTokenAddress: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodTransform<`0x${string}`, string>>;
|
|
93
99
|
overallFee: z.ZodBigInt;
|
|
100
|
+
tip: z.ZodOptional<z.ZodBigInt>;
|
|
94
101
|
maxFee: z.ZodBigInt;
|
|
95
102
|
}, z.core.$strip>;
|
|
96
103
|
deployment: z.ZodOptional<z.ZodObject<{
|
|
97
104
|
feeTokenAddress: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodTransform<`0x${string}`, string>>;
|
|
98
105
|
overallFee: z.ZodBigInt;
|
|
106
|
+
tip: z.ZodOptional<z.ZodBigInt>;
|
|
99
107
|
maxFee: z.ZodBigInt;
|
|
100
108
|
}, z.core.$strip>>;
|
|
101
109
|
}, z.core.$strip>;
|
|
@@ -116,6 +124,7 @@ export declare const estimatedFeesSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
116
124
|
gasPrice: z.ZodBigInt;
|
|
117
125
|
}, z.core.$strip>;
|
|
118
126
|
overallFee: z.ZodOptional<z.ZodBigInt>;
|
|
127
|
+
tip: z.ZodOptional<z.ZodBigInt>;
|
|
119
128
|
}, z.core.$strip>;
|
|
120
129
|
deployment: z.ZodOptional<z.ZodObject<{
|
|
121
130
|
feeTokenAddress: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodTransform<`0x${string}`, string>>;
|
|
@@ -132,17 +141,20 @@ export declare const estimatedFeesSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
132
141
|
gasPrice: z.ZodBigInt;
|
|
133
142
|
}, z.core.$strip>;
|
|
134
143
|
overallFee: z.ZodOptional<z.ZodBigInt>;
|
|
144
|
+
tip: z.ZodOptional<z.ZodBigInt>;
|
|
135
145
|
}, z.core.$strip>>;
|
|
136
146
|
}, z.core.$strip>, z.ZodObject<{
|
|
137
147
|
type: z.ZodLiteral<"paymaster">;
|
|
138
148
|
transactions: z.ZodObject<{
|
|
139
149
|
feeTokenAddress: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodTransform<`0x${string}`, string>>;
|
|
140
150
|
overallFee: z.ZodBigInt;
|
|
151
|
+
tip: z.ZodOptional<z.ZodBigInt>;
|
|
141
152
|
maxFee: z.ZodBigInt;
|
|
142
153
|
}, z.core.$strip>;
|
|
143
154
|
deployment: z.ZodOptional<z.ZodObject<{
|
|
144
155
|
feeTokenAddress: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodTransform<`0x${string}`, string>>;
|
|
145
156
|
overallFee: z.ZodBigInt;
|
|
157
|
+
tip: z.ZodOptional<z.ZodBigInt>;
|
|
146
158
|
maxFee: z.ZodBigInt;
|
|
147
159
|
}, z.core.$strip>>;
|
|
148
160
|
}, z.core.$strip>]>;
|
|
@@ -173,6 +185,7 @@ export declare const feeEstimationResultSchema: z.ZodObject<{
|
|
|
173
185
|
gasPrice: z.ZodBigInt;
|
|
174
186
|
}, z.core.$strip>;
|
|
175
187
|
overallFee: z.ZodOptional<z.ZodBigInt>;
|
|
188
|
+
tip: z.ZodOptional<z.ZodBigInt>;
|
|
176
189
|
}, z.core.$strip>;
|
|
177
190
|
deployment: z.ZodOptional<z.ZodObject<{
|
|
178
191
|
feeTokenAddress: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodTransform<`0x${string}`, string>>;
|
|
@@ -189,17 +202,20 @@ export declare const feeEstimationResultSchema: z.ZodObject<{
|
|
|
189
202
|
gasPrice: z.ZodBigInt;
|
|
190
203
|
}, z.core.$strip>;
|
|
191
204
|
overallFee: z.ZodOptional<z.ZodBigInt>;
|
|
205
|
+
tip: z.ZodOptional<z.ZodBigInt>;
|
|
192
206
|
}, z.core.$strip>>;
|
|
193
207
|
}, z.core.$strip>;
|
|
194
208
|
paymaster: z.ZodOptional<z.ZodObject<{
|
|
195
209
|
transactions: z.ZodObject<{
|
|
196
210
|
feeTokenAddress: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodTransform<`0x${string}`, string>>;
|
|
197
211
|
overallFee: z.ZodBigInt;
|
|
212
|
+
tip: z.ZodOptional<z.ZodBigInt>;
|
|
198
213
|
maxFee: z.ZodBigInt;
|
|
199
214
|
}, z.core.$strip>;
|
|
200
215
|
deployment: z.ZodOptional<z.ZodObject<{
|
|
201
216
|
feeTokenAddress: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodTransform<`0x${string}`, string>>;
|
|
202
217
|
overallFee: z.ZodBigInt;
|
|
218
|
+
tip: z.ZodOptional<z.ZodBigInt>;
|
|
203
219
|
maxFee: z.ZodBigInt;
|
|
204
220
|
}, z.core.$strip>>;
|
|
205
221
|
}, z.core.$strip>>;
|
|
@@ -9,14 +9,16 @@ const t = e.object({
|
|
|
9
9
|
l1Gas: t,
|
|
10
10
|
l2Gas: t,
|
|
11
11
|
l1DataGas: t,
|
|
12
|
-
overallFee: e.bigint().optional()
|
|
12
|
+
overallFee: e.bigint().optional(),
|
|
13
13
|
// overall fee computed by backend
|
|
14
|
+
tip: e.bigint().optional()
|
|
14
15
|
}), i = e.object({
|
|
15
16
|
type: e.literal("paymaster"),
|
|
16
17
|
feeTokenAddress: o,
|
|
17
18
|
maxFee: e.bigint(),
|
|
18
|
-
overallFee: e.bigint()
|
|
19
|
-
|
|
19
|
+
overallFee: e.bigint(),
|
|
20
|
+
tip: e.bigint().optional()
|
|
21
|
+
}), p = e.discriminatedUnion("type", [
|
|
20
22
|
a,
|
|
21
23
|
i
|
|
22
24
|
]), s = e.object({
|
|
@@ -27,7 +29,7 @@ const t = e.object({
|
|
|
27
29
|
type: e.literal("paymaster"),
|
|
28
30
|
transactions: i.omit({ type: !0 }),
|
|
29
31
|
deployment: i.omit({ type: !0 }).optional()
|
|
30
|
-
}),
|
|
32
|
+
}), c = e.discriminatedUnion("type", [
|
|
31
33
|
s,
|
|
32
34
|
n
|
|
33
35
|
]), l = e.object({
|
|
@@ -35,8 +37,8 @@ const t = e.object({
|
|
|
35
37
|
paymaster: n.omit({ type: !0 }).optional()
|
|
36
38
|
});
|
|
37
39
|
export {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
+
p as estimatedFeeSchema,
|
|
41
|
+
c as estimatedFeesSchema,
|
|
40
42
|
l as feeEstimationResultSchema,
|
|
41
43
|
a as nativeEstimatedFeeSchema,
|
|
42
44
|
s as nativeEstimatedFeesSchema,
|
package/dist/src/features/simulation/transactionReview/getErrorMessageAndLabelFromSimulation.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./getMessageFromSimulationError.cjs"),c=require("./schema.cjs"),g=require("../../../transactions/getPrettyRcpError.cjs");function u(t){if(!t)return;const o=t.transactions?.flatMap(a=>c.isTransactionSimulationError(a)?a.simulationError:!1),r=o?.[o.length-1];if(!r)return;const n=l.getMessageFromSimulationError(r),s=r.message||r.error,e=g.getPrettyRpcError(s),i=e||r.label;return{message:e?s:n,label:i}}exports.getErrorMessageAndLabelFromSimulation=u;
|
package/dist/src/features/simulation/transactionReview/getErrorMessageAndLabelFromSimulation.js
CHANGED
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
import { getMessageFromSimulationError as
|
|
2
|
-
import { isTransactionSimulationError as
|
|
3
|
-
import { getPrettyRpcError as
|
|
4
|
-
function
|
|
5
|
-
|
|
6
|
-
if (!e)
|
|
1
|
+
import { getMessageFromSimulationError as m } from "./getMessageFromSimulationError.js";
|
|
2
|
+
import { isTransactionSimulationError as l } from "./schema.js";
|
|
3
|
+
import { getPrettyRpcError as c } from "../../../transactions/getPrettyRcpError.js";
|
|
4
|
+
function p(t) {
|
|
5
|
+
if (!t)
|
|
7
6
|
return;
|
|
8
|
-
const
|
|
7
|
+
const s = t.transactions?.flatMap((a) => l(a) ? a.simulationError : !1), r = s?.[s.length - 1];
|
|
9
8
|
if (!r)
|
|
10
9
|
return;
|
|
11
|
-
const
|
|
10
|
+
const n = m(r), e = r.message || r.error, o = c(e), i = o || r.label;
|
|
12
11
|
return {
|
|
13
|
-
message:
|
|
14
|
-
label:
|
|
12
|
+
message: o ? e : n,
|
|
13
|
+
label: i
|
|
15
14
|
};
|
|
16
15
|
}
|
|
17
16
|
export {
|
|
18
|
-
|
|
17
|
+
p as getErrorMessageAndLabelFromSimulation
|
|
19
18
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("zod"),d=require("../warning/schema.cjs"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("zod"),d=require("../warning/schema.cjs"),B=require("../fees/schema.cjs"),t=require("../../../chains/starknet/address.cjs"),D=e.z.object({name:e.z.string(),url:e.z.string(),position:e.z.number()}),i=e.z.object({address:e.z.string(),name:e.z.string(),symbol:e.z.string().optional(),decimals:e.z.number().optional(),unknown:e.z.boolean(),iconUrl:e.z.string().optional(),type:e.z.string()}),s=e.z.discriminatedUnion("type",[e.z.object({type:e.z.literal("amount"),label:e.z.string(),token:i,amount:e.z.string(),usd:e.z.string(),editable:e.z.boolean()}),e.z.object({type:e.z.literal("address"),label:e.z.string(),address:e.z.string(),addressName:e.z.string().optional(),verified:e.z.boolean().optional()}),e.z.object({type:e.z.literal("timestamp"),label:e.z.string(),value:e.z.string()}),e.z.object({type:e.z.literal("token_address"),label:e.z.string(),token:i}),e.z.object({type:e.z.literal("calldata"),label:e.z.string(),entrypoint:e.z.string(),calldata:e.z.array(e.z.string())}),e.z.object({type:e.z.literal("class_hash"),label:e.z.string(),classHash:e.z.string()}),e.z.object({type:e.z.literal("text"),label:e.z.string(),text:e.z.string()}),e.z.object({type:e.z.literal("nft"),label:e.z.string(),token:i})]),u=e.z.object({name:e.z.string(),properties:e.z.array(s),defaultProperties:e.z.array(s).optional()}),g=e.z.union([e.z.literal("verified"),e.z.literal("neutral"),e.z.literal("partial"),e.z.literal("warn")]),b=e.z.object({unknown_token:e.z.unknown().optional(),date_of_addition:e.z.string().optional(),contract_address:t.addressSchema.optional(),reason:e.z.string().optional(),value:e.z.any().optional()}),r=e.z.object({reason:d.reasonsSchema,details:b.optional(),severity:d.severitySchema}),S=e.z.object({assessment:g,warnings:e.z.array(r).optional(),assessmentReasons:e.z.array(e.z.string()).optional(),assessmentDetails:e.z.object({contract_address:e.z.string()}).optional(),action:u}),h=e.z.object({name:e.z.string(),description:e.z.string(),logoUrl:e.z.string().optional(),iconUrl:e.z.string().optional(),argentVerified:e.z.boolean(),links:e.z.array(D)}),y=e.z.object({assessment:e.z.union([e.z.literal("verified"),e.z.literal("neutral"),e.z.literal("partial"),e.z.literal("warn")]),warnings:e.z.array(r).optional(),assessmentDetails:e.z.object({contract_address:e.z.string()}).optional(),targetedDapp:h.optional(),reviews:e.z.array(S)}).optional(),j=e.z.object({banner:e.z.string().nullable().optional(),preview:e.z.string().nullable().optional(),full:e.z.string().nullable().optional(),original:e.z.string().nullable().optional()}),F=e.z.object({twitter:e.z.string().optional(),external:e.z.string().optional(),discord:e.z.string().optional()}),l=e.z.object({address:t.addressSchemaArgentBackend,decimals:e.z.number().optional(),symbol:e.z.string().optional(),name:e.z.string(),description:e.z.string().optional(),type:e.z.string().optional(),usdValue:e.z.string().optional(),iconUrl:e.z.string().optional(),unknown:e.z.boolean().optional(),imageUrls:j.optional(),links:F.optional()}),U=e.z.object({tokenAddress:t.addressSchemaArgentBackend,owner:t.addressSchemaArgentBackend,spender:t.addressSchemaArgentBackend,value:e.z.string().optional(),approvalForAll:e.z.boolean(),details:l.optional()}),R=e.z.object({tokenAddress:t.addressSchemaArgentBackend,from:t.addressSchemaArgentBackend,to:t.addressSchemaArgentBackend,tokenId:e.z.string().optional(),value:e.z.string().optional(),details:l.optional()}),n=e.z.union([e.z.string(),e.z.number(),e.z.bigint()]).transform(a=>parseInt(a.toString(),10)),c=e.z.object({address:t.addressSchemaArgentBackend,unknown:e.z.boolean(),type:e.z.literal("ERC20")}),o=e.z.object({maxAmount:n,maxPricePerUnit:n}),f=e.z.object({l1Gas:o,l1DataGas:o,l2Gas:o}),k=e.z.object({token:c,overallFee:n,maxFee:n,defaultTip:n.optional()}),z=e.z.object({overallFee:n,resourceBounds:f,unit:e.z.string().transform(a=>a.toUpperCase()).pipe(e.z.literal("FRI")),token:c,defaultTip:n.optional()}),v=z.or(k),N=e.z.object({type:e.z.string(),label:e.z.string(),tokenId:e.z.string().optional(),value:e.z.string().optional(),usdValue:e.z.string().optional(),token:l,sent:e.z.boolean().optional(),tokenIdDetails:e.z.object({name:e.z.string().optional(),description:e.z.string().optional(),imageUrls:j.optional()}).optional()}),P=e.z.object({approvals:e.z.array(U).optional(),transfers:e.z.array(R).optional(),calculatedNonce:e.z.string().optional(),feeEstimation:z,feeEstimations:e.z.array(v),summary:e.z.array(N).optional()}),_=e.z.object({label:e.z.string().optional(),code:e.z.number().optional(),message:e.z.string().optional(),error:e.z.string().optional()}),w=e.z.object({reviewOfTransaction:y,simulation:P,simulationError:e.z.undefined().optional()}),E=e.z.object({reviewOfTransaction:y,simulation:e.z.undefined().optional(),simulationError:_}),A=w.or(E),m=e.z.object({subsidiseDeployment:e.z.boolean(),subsidiseTransaction:e.z.boolean()}),T=e.z.object({name:e.z.string().optional(),shouldShow:e.z.boolean().optional()}),p=e.z.array(T),O=e.z.object({transactions:e.z.array(A).optional(),canSubsidise:e.z.boolean().optional(),subsidyStatus:m.optional(),promotions:p.optional()}),x=e.z.object({transactions:e.z.array(A).optional(),canSubsidise:e.z.boolean().optional(),subsidyStatus:m.optional(),enrichedFeeEstimation:e.z.array(B.estimatedFeesSchema).optional(),isBackendDown:e.z.boolean().default(!1).optional(),promotions:p.optional()});function G(a){return w.safeParse(a).success}function I(a){return E.safeParse(a).success}exports.actionSchema=u;exports.assessmentSchema=g;exports.enrichedSimulateAndReviewSchema=x;exports.feeEstimationGasSchema=o;exports.feeEstimationNativeOrPaymasterSchema=v;exports.feeEstimationResourceBoundSchema=f;exports.feeEstimationSchema=z;exports.isNotTransactionSimulationError=G;exports.isTransactionSimulationError=I;exports.paymasterFeeEstimationSchema=k;exports.paymasterFeeTokenSchema=c;exports.promotionSchema=T;exports.promotionsSchema=p;exports.propertySchema=s;exports.reviewSchema=S;exports.simulateAndReviewSchema=O;exports.subsidyStatusSchema=m;exports.targetedDappSchema=h;exports.warningDetailsSchema=b;exports.warningSchema=r;
|
|
@@ -576,6 +576,7 @@ export declare const paymasterFeeEstimationSchema: z.ZodObject<{
|
|
|
576
576
|
}, z.core.$strip>;
|
|
577
577
|
overallFee: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, string | number | bigint>>;
|
|
578
578
|
maxFee: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, string | number | bigint>>;
|
|
579
|
+
defaultTip: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, string | number | bigint>>>;
|
|
579
580
|
}, z.core.$strip>;
|
|
580
581
|
export declare const feeEstimationSchema: z.ZodObject<{
|
|
581
582
|
overallFee: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, string | number | bigint>>;
|
|
@@ -599,6 +600,7 @@ export declare const feeEstimationSchema: z.ZodObject<{
|
|
|
599
600
|
unknown: z.ZodBoolean;
|
|
600
601
|
type: z.ZodLiteral<"ERC20">;
|
|
601
602
|
}, z.core.$strip>;
|
|
603
|
+
defaultTip: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, string | number | bigint>>>;
|
|
602
604
|
}, z.core.$strip>;
|
|
603
605
|
export declare const feeEstimationNativeOrPaymasterSchema: z.ZodUnion<[z.ZodObject<{
|
|
604
606
|
overallFee: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, string | number | bigint>>;
|
|
@@ -622,6 +624,7 @@ export declare const feeEstimationNativeOrPaymasterSchema: z.ZodUnion<[z.ZodObje
|
|
|
622
624
|
unknown: z.ZodBoolean;
|
|
623
625
|
type: z.ZodLiteral<"ERC20">;
|
|
624
626
|
}, z.core.$strip>;
|
|
627
|
+
defaultTip: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, string | number | bigint>>>;
|
|
625
628
|
}, z.core.$strip>, z.ZodObject<{
|
|
626
629
|
token: z.ZodObject<{
|
|
627
630
|
address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
@@ -630,6 +633,7 @@ export declare const feeEstimationNativeOrPaymasterSchema: z.ZodUnion<[z.ZodObje
|
|
|
630
633
|
}, z.core.$strip>;
|
|
631
634
|
overallFee: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, string | number | bigint>>;
|
|
632
635
|
maxFee: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, string | number | bigint>>;
|
|
636
|
+
defaultTip: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, string | number | bigint>>>;
|
|
633
637
|
}, z.core.$strip>]>;
|
|
634
638
|
declare const summarySchema: z.ZodObject<{
|
|
635
639
|
type: z.ZodString;
|
|
@@ -753,6 +757,7 @@ declare const simulationSchema: z.ZodObject<{
|
|
|
753
757
|
unknown: z.ZodBoolean;
|
|
754
758
|
type: z.ZodLiteral<"ERC20">;
|
|
755
759
|
}, z.core.$strip>;
|
|
760
|
+
defaultTip: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, string | number | bigint>>>;
|
|
756
761
|
}, z.core.$strip>;
|
|
757
762
|
feeEstimations: z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
758
763
|
overallFee: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, string | number | bigint>>;
|
|
@@ -776,6 +781,7 @@ declare const simulationSchema: z.ZodObject<{
|
|
|
776
781
|
unknown: z.ZodBoolean;
|
|
777
782
|
type: z.ZodLiteral<"ERC20">;
|
|
778
783
|
}, z.core.$strip>;
|
|
784
|
+
defaultTip: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, string | number | bigint>>>;
|
|
779
785
|
}, z.core.$strip>, z.ZodObject<{
|
|
780
786
|
token: z.ZodObject<{
|
|
781
787
|
address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
@@ -784,6 +790,7 @@ declare const simulationSchema: z.ZodObject<{
|
|
|
784
790
|
}, z.core.$strip>;
|
|
785
791
|
overallFee: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, string | number | bigint>>;
|
|
786
792
|
maxFee: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, string | number | bigint>>;
|
|
793
|
+
defaultTip: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, string | number | bigint>>>;
|
|
787
794
|
}, z.core.$strip>]>>;
|
|
788
795
|
summary: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
789
796
|
type: z.ZodString;
|
|
@@ -1091,6 +1098,7 @@ declare const transactionSimulationSchema: z.ZodObject<{
|
|
|
1091
1098
|
unknown: z.ZodBoolean;
|
|
1092
1099
|
type: z.ZodLiteral<"ERC20">;
|
|
1093
1100
|
}, z.core.$strip>;
|
|
1101
|
+
defaultTip: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, string | number | bigint>>>;
|
|
1094
1102
|
}, z.core.$strip>;
|
|
1095
1103
|
feeEstimations: z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
1096
1104
|
overallFee: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, string | number | bigint>>;
|
|
@@ -1114,6 +1122,7 @@ declare const transactionSimulationSchema: z.ZodObject<{
|
|
|
1114
1122
|
unknown: z.ZodBoolean;
|
|
1115
1123
|
type: z.ZodLiteral<"ERC20">;
|
|
1116
1124
|
}, z.core.$strip>;
|
|
1125
|
+
defaultTip: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, string | number | bigint>>>;
|
|
1117
1126
|
}, z.core.$strip>, z.ZodObject<{
|
|
1118
1127
|
token: z.ZodObject<{
|
|
1119
1128
|
address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
@@ -1122,6 +1131,7 @@ declare const transactionSimulationSchema: z.ZodObject<{
|
|
|
1122
1131
|
}, z.core.$strip>;
|
|
1123
1132
|
overallFee: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, string | number | bigint>>;
|
|
1124
1133
|
maxFee: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, string | number | bigint>>;
|
|
1134
|
+
defaultTip: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, string | number | bigint>>>;
|
|
1125
1135
|
}, z.core.$strip>]>>;
|
|
1126
1136
|
summary: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1127
1137
|
type: z.ZodString;
|
|
@@ -1610,6 +1620,7 @@ declare const transactionSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1610
1620
|
unknown: z.ZodBoolean;
|
|
1611
1621
|
type: z.ZodLiteral<"ERC20">;
|
|
1612
1622
|
}, z.core.$strip>;
|
|
1623
|
+
defaultTip: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, string | number | bigint>>>;
|
|
1613
1624
|
}, z.core.$strip>;
|
|
1614
1625
|
feeEstimations: z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
1615
1626
|
overallFee: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, string | number | bigint>>;
|
|
@@ -1633,6 +1644,7 @@ declare const transactionSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1633
1644
|
unknown: z.ZodBoolean;
|
|
1634
1645
|
type: z.ZodLiteral<"ERC20">;
|
|
1635
1646
|
}, z.core.$strip>;
|
|
1647
|
+
defaultTip: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, string | number | bigint>>>;
|
|
1636
1648
|
}, z.core.$strip>, z.ZodObject<{
|
|
1637
1649
|
token: z.ZodObject<{
|
|
1638
1650
|
address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
@@ -1641,6 +1653,7 @@ declare const transactionSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1641
1653
|
}, z.core.$strip>;
|
|
1642
1654
|
overallFee: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, string | number | bigint>>;
|
|
1643
1655
|
maxFee: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, string | number | bigint>>;
|
|
1656
|
+
defaultTip: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, string | number | bigint>>>;
|
|
1644
1657
|
}, z.core.$strip>]>>;
|
|
1645
1658
|
summary: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1646
1659
|
type: z.ZodString;
|
|
@@ -2144,6 +2157,7 @@ export declare const simulateAndReviewSchema: z.ZodObject<{
|
|
|
2144
2157
|
unknown: z.ZodBoolean;
|
|
2145
2158
|
type: z.ZodLiteral<"ERC20">;
|
|
2146
2159
|
}, z.core.$strip>;
|
|
2160
|
+
defaultTip: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, string | number | bigint>>>;
|
|
2147
2161
|
}, z.core.$strip>;
|
|
2148
2162
|
feeEstimations: z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
2149
2163
|
overallFee: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, string | number | bigint>>;
|
|
@@ -2167,6 +2181,7 @@ export declare const simulateAndReviewSchema: z.ZodObject<{
|
|
|
2167
2181
|
unknown: z.ZodBoolean;
|
|
2168
2182
|
type: z.ZodLiteral<"ERC20">;
|
|
2169
2183
|
}, z.core.$strip>;
|
|
2184
|
+
defaultTip: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, string | number | bigint>>>;
|
|
2170
2185
|
}, z.core.$strip>, z.ZodObject<{
|
|
2171
2186
|
token: z.ZodObject<{
|
|
2172
2187
|
address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
@@ -2175,6 +2190,7 @@ export declare const simulateAndReviewSchema: z.ZodObject<{
|
|
|
2175
2190
|
}, z.core.$strip>;
|
|
2176
2191
|
overallFee: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, string | number | bigint>>;
|
|
2177
2192
|
maxFee: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, string | number | bigint>>;
|
|
2193
|
+
defaultTip: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, string | number | bigint>>>;
|
|
2178
2194
|
}, z.core.$strip>]>>;
|
|
2179
2195
|
summary: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2180
2196
|
type: z.ZodString;
|
|
@@ -2673,6 +2689,7 @@ export declare const enrichedSimulateAndReviewSchema: z.ZodObject<{
|
|
|
2673
2689
|
unknown: z.ZodBoolean;
|
|
2674
2690
|
type: z.ZodLiteral<"ERC20">;
|
|
2675
2691
|
}, z.core.$strip>;
|
|
2692
|
+
defaultTip: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, string | number | bigint>>>;
|
|
2676
2693
|
}, z.core.$strip>;
|
|
2677
2694
|
feeEstimations: z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
2678
2695
|
overallFee: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, string | number | bigint>>;
|
|
@@ -2696,6 +2713,7 @@ export declare const enrichedSimulateAndReviewSchema: z.ZodObject<{
|
|
|
2696
2713
|
unknown: z.ZodBoolean;
|
|
2697
2714
|
type: z.ZodLiteral<"ERC20">;
|
|
2698
2715
|
}, z.core.$strip>;
|
|
2716
|
+
defaultTip: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, string | number | bigint>>>;
|
|
2699
2717
|
}, z.core.$strip>, z.ZodObject<{
|
|
2700
2718
|
token: z.ZodObject<{
|
|
2701
2719
|
address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
@@ -2704,6 +2722,7 @@ export declare const enrichedSimulateAndReviewSchema: z.ZodObject<{
|
|
|
2704
2722
|
}, z.core.$strip>;
|
|
2705
2723
|
overallFee: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, string | number | bigint>>;
|
|
2706
2724
|
maxFee: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, string | number | bigint>>;
|
|
2725
|
+
defaultTip: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, string | number | bigint>>>;
|
|
2707
2726
|
}, z.core.$strip>]>>;
|
|
2708
2727
|
summary: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2709
2728
|
type: z.ZodString;
|
|
@@ -2954,6 +2973,7 @@ export declare const enrichedSimulateAndReviewSchema: z.ZodObject<{
|
|
|
2954
2973
|
gasPrice: z.ZodBigInt;
|
|
2955
2974
|
}, z.core.$strip>;
|
|
2956
2975
|
overallFee: z.ZodOptional<z.ZodBigInt>;
|
|
2976
|
+
tip: z.ZodOptional<z.ZodBigInt>;
|
|
2957
2977
|
}, z.core.$strip>;
|
|
2958
2978
|
deployment: z.ZodOptional<z.ZodObject<{
|
|
2959
2979
|
feeTokenAddress: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodTransform<`0x${string}`, string>>;
|
|
@@ -2970,17 +2990,20 @@ export declare const enrichedSimulateAndReviewSchema: z.ZodObject<{
|
|
|
2970
2990
|
gasPrice: z.ZodBigInt;
|
|
2971
2991
|
}, z.core.$strip>;
|
|
2972
2992
|
overallFee: z.ZodOptional<z.ZodBigInt>;
|
|
2993
|
+
tip: z.ZodOptional<z.ZodBigInt>;
|
|
2973
2994
|
}, z.core.$strip>>;
|
|
2974
2995
|
}, z.core.$strip>, z.ZodObject<{
|
|
2975
2996
|
type: z.ZodLiteral<"paymaster">;
|
|
2976
2997
|
transactions: z.ZodObject<{
|
|
2977
2998
|
feeTokenAddress: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodTransform<`0x${string}`, string>>;
|
|
2978
2999
|
overallFee: z.ZodBigInt;
|
|
3000
|
+
tip: z.ZodOptional<z.ZodBigInt>;
|
|
2979
3001
|
maxFee: z.ZodBigInt;
|
|
2980
3002
|
}, z.core.$strip>;
|
|
2981
3003
|
deployment: z.ZodOptional<z.ZodObject<{
|
|
2982
3004
|
feeTokenAddress: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodTransform<`0x${string}`, string>>;
|
|
2983
3005
|
overallFee: z.ZodBigInt;
|
|
3006
|
+
tip: z.ZodOptional<z.ZodBigInt>;
|
|
2984
3007
|
maxFee: z.ZodBigInt;
|
|
2985
3008
|
}, z.core.$strip>>;
|
|
2986
3009
|
}, z.core.$strip>]>>>;
|