0xtrails 0.4.1 → 0.4.3
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/aave.d.ts.map +1 -1
- package/dist/{ccip-Bc-mZIIK.js → ccip-C9CA3tIi.js} +5 -5
- package/dist/{index-BWGjgMLm.js → index-CNB57v0n.js} +15676 -15527
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +501 -474
- package/dist/intents.d.ts +1 -1
- package/dist/intents.d.ts.map +1 -1
- package/dist/morpho.d.ts.map +1 -1
- package/dist/mutations.d.ts +2 -2
- package/dist/mutations.d.ts.map +1 -1
- package/dist/prepareSend.d.ts.map +1 -1
- package/dist/trails.d.ts +9 -10
- package/dist/trails.d.ts.map +1 -1
- package/dist/transactionIntent/deposits/depositOrchestrator.d.ts +3 -2
- package/dist/transactionIntent/deposits/depositOrchestrator.d.ts.map +1 -1
- package/dist/transactionIntent/deposits/gaslessDeposit.d.ts +1 -1
- package/dist/transactionIntent/deposits/gaslessDeposit.d.ts.map +1 -1
- package/dist/transactionIntent/deposits/standardDeposit.d.ts +3 -2
- package/dist/transactionIntent/deposits/standardDeposit.d.ts.map +1 -1
- package/dist/transactionIntent/handlers/crossChain.d.ts +1 -1
- package/dist/transactionIntent/handlers/crossChain.d.ts.map +1 -1
- package/dist/transactionIntent/handlers/sameChainSameToken.d.ts +3 -2
- package/dist/transactionIntent/handlers/sameChainSameToken.d.ts.map +1 -1
- package/dist/transactionIntent/quote/quoteHelpers.d.ts.map +1 -1
- package/dist/transactionIntent/types.d.ts +1 -1
- package/dist/transactionIntent/types.d.ts.map +1 -1
- package/dist/widget/components/FeeOptions.d.ts +2 -1
- package/dist/widget/components/FeeOptions.d.ts.map +1 -1
- package/dist/widget/components/PoolDeposit.d.ts.map +1 -1
- package/dist/widget/hooks/useQuote.d.ts +31 -1
- package/dist/widget/hooks/useQuote.d.ts.map +1 -1
- package/dist/widget/hooks/useSendForm.d.ts +1 -1
- package/dist/widget/hooks/useSendForm.d.ts.map +1 -1
- package/dist/widget/index.js +1 -1
- package/package.json +7 -7
- package/src/aave.ts +1 -0
- package/src/index.ts +1 -1
- package/src/intents.ts +2 -2
- package/src/morpho.ts +3 -2
- package/src/mutations.ts +53 -5
- package/src/prepareSend.ts +16 -1
- package/src/trails.ts +57 -65
- package/src/transactionIntent/deposits/depositOrchestrator.ts +4 -1
- package/src/transactionIntent/deposits/gaslessDeposit.ts +89 -44
- package/src/transactionIntent/deposits/standardDeposit.ts +198 -39
- package/src/transactionIntent/handlers/crossChain.ts +84 -9
- package/src/transactionIntent/handlers/sameChainSameToken.ts +54 -12
- package/src/transactionIntent/quote/quoteHelpers.ts +4 -11
- package/src/transactionIntent/types.ts +1 -1
- package/src/widget/components/FeeOptions.tsx +2 -1
- package/src/widget/components/PoolDeposit.tsx +68 -4
- package/src/widget/hooks/useDebugScreens.ts +11 -11
- package/src/widget/hooks/useQuote.ts +37 -2
- package/src/widget/hooks/useSendForm.ts +2 -2
package/dist/aave.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aave.d.ts","sourceRoot":"","sources":["../src/aave.ts"],"names":[],"mappings":"AAEA,OAAO,EAAsB,KAAK,YAAY,EAAE,MAAM,MAAM,CAAA;AAuB5D,wBAAgB,mCAAmC,CACjD,OAAO,EAAE,MAAM,GACd,MAAM,GAAG,IAAI,CAEf;AAGD,MAAM,WAAW,IAAI;IACnB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,CAAA;IAChB,OAAO,EAAE,MAAM,CAAA;IACf,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE;QACL,MAAM,EAAE,MAAM,CAAA;QACd,IAAI,EAAE,MAAM,CAAA;QACZ,OAAO,EAAE,MAAM,CAAA;QACf,QAAQ,EAAE,MAAM,CAAA;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AAM,CAAA;CACpC;AAED,wBAAgB,YAAY;;;;EAsI3B;AAED;;;;;;GAMG;AACH,wBAAgB,4BAA4B,CAC1C,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,EAAE,EAAE,MAAM,GACT,KAAK,MAAM,EAAE,CAkBf;AAGD,eAAO,MAAM,2BAA2B,GACtC,cAAc,YAAY,EAC1B,MAAM,IAAI,EACV,QAAQ,MAAM,8BAgDf,CAAA;AAED,eAAe,YAAY,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ai as b, aj as x, ak as F, al as S, am as $, an as O, ao as E, ap as D, aq as w, ar as C, as as R, at as G, au as I, av as y, aw as L, ax as M, ay as m, az as T, aA as v, aB as H, aC as j, aD as B, aE as A, aF as U } from "./index-CNB57v0n.js";
|
|
2
2
|
function _(a) {
|
|
3
|
-
const { abi: r, data: e } = a, s = b(e, 0, 4), t = r.find((n) => n.type === "function" && s === x(
|
|
3
|
+
const { abi: r, data: e } = a, s = b(e, 0, 4), t = r.find((n) => n.type === "function" && s === x(F(n)));
|
|
4
4
|
if (!t)
|
|
5
5
|
throw new S(s, {
|
|
6
6
|
docsPath: "/docs/contract/decodeFunctionData"
|
|
@@ -15,14 +15,14 @@ function k(a) {
|
|
|
15
15
|
const { abi: r, errorName: e, args: s } = a;
|
|
16
16
|
let t = r[0];
|
|
17
17
|
if (e) {
|
|
18
|
-
const d =
|
|
18
|
+
const d = O({ abi: r, args: s, name: e });
|
|
19
19
|
if (!d)
|
|
20
20
|
throw new E(e, { docsPath: p });
|
|
21
21
|
t = d;
|
|
22
22
|
}
|
|
23
23
|
if (t.type !== "error")
|
|
24
24
|
throw new E(void 0, { docsPath: p });
|
|
25
|
-
const n =
|
|
25
|
+
const n = F(t), o = x(n);
|
|
26
26
|
let c = "0x";
|
|
27
27
|
if (s && s.length > 0) {
|
|
28
28
|
if (!t.inputs)
|
|
@@ -36,7 +36,7 @@ function z(a) {
|
|
|
36
36
|
const { abi: r, functionName: e, result: s } = a;
|
|
37
37
|
let t = r[0];
|
|
38
38
|
if (e) {
|
|
39
|
-
const o =
|
|
39
|
+
const o = O({ abi: r, name: e });
|
|
40
40
|
if (!o)
|
|
41
41
|
throw new R(e, { docsPath: h });
|
|
42
42
|
t = o;
|