@jaw.id/ui 1.2.1 → 1.2.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/ccip-Cv7Gq-9l.js +146 -0
- package/dist/components/FeeTokenSelector/index.d.ts +3 -0
- package/dist/components/FeeTokenSelector/index.d.ts.map +1 -1
- package/dist/components/PermissionDialog/index.d.ts.map +1 -1
- package/dist/components/TransactionDialog/index.d.ts.map +1 -1
- package/dist/hooks/useGasEstimation.d.ts.map +1 -1
- package/dist/index.js +5795 -48704
- package/dist/{localBatchGatewayRequest-5ZaE1WvO.js → localBatchGatewayRequest-CPuG8OVP.js} +1022 -928
- package/dist/react/ReactUIHandler.d.ts.map +1 -1
- package/dist/{smartAccount-DYk6CqRF.js → smartAccount-Dz-QWL0Y.js} +3403 -2988
- package/package.json +4 -4
- package/dist/ccip-BzdqKpq_.js +0 -137
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jaw.id/ui",
|
|
3
3
|
"description": "Pre-built React dialogs for JAW.id",
|
|
4
|
-
"version": "1.2.
|
|
4
|
+
"version": "1.2.3",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"sideEffects": [
|
|
@@ -85,9 +85,9 @@
|
|
|
85
85
|
"react-dom": ">=18.0.0"
|
|
86
86
|
},
|
|
87
87
|
"dependencies": {
|
|
88
|
-
"@jaw.id/core": "1.0.
|
|
88
|
+
"@jaw.id/core": "1.0.4",
|
|
89
89
|
"@hookform/resolvers": "^5.2.2",
|
|
90
|
-
"@justaname.id/sdk": "^0.
|
|
90
|
+
"@justaname.id/sdk": "^0.3.0",
|
|
91
91
|
"@radix-ui/react-accordion": "^1.2.12",
|
|
92
92
|
"@radix-ui/react-avatar": "^1.1.10",
|
|
93
93
|
"@radix-ui/react-checkbox": "^1.3.3",
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
"tailwind-merge": "^3.3.1",
|
|
109
109
|
"tailwindcss-animate": "^1.0.7",
|
|
110
110
|
"@shazow/whatsabi": "^0.26.0",
|
|
111
|
-
"viem": "^2.
|
|
111
|
+
"viem": "^2.48.0",
|
|
112
112
|
"zod": "^4.1.12"
|
|
113
113
|
},
|
|
114
114
|
"devDependencies": {
|
package/dist/ccip-BzdqKpq_.js
DELETED
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
import { Ft as e, Qn as t, Ut as n, X as r, Xn as i, dn as a, gn as o, i as s, nn as c, rn as l, t as u } from "./localBatchGatewayRequest-5ZaE1WvO.js";
|
|
2
|
-
//#region ../../node_modules/viem/_esm/errors/ccip.js
|
|
3
|
-
var d = class extends i {
|
|
4
|
-
constructor({ callbackSelector: e, cause: t, data: r, extraData: i, sender: a, urls: o }) {
|
|
5
|
-
super(t.shortMessage || "An error occurred while fetching for an offchain result.", {
|
|
6
|
-
cause: t,
|
|
7
|
-
metaMessages: [
|
|
8
|
-
...t.metaMessages || [],
|
|
9
|
-
t.metaMessages?.length ? "" : [],
|
|
10
|
-
"Offchain Gateway Call:",
|
|
11
|
-
o && [" Gateway URL(s):", ...o.map((e) => ` ${n(e)}`)],
|
|
12
|
-
` Sender: ${a}`,
|
|
13
|
-
` Data: ${r}`,
|
|
14
|
-
` Callback selector: ${e}`,
|
|
15
|
-
` Extra data: ${i}`
|
|
16
|
-
].flat(),
|
|
17
|
-
name: "OffchainLookupError"
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
}, f = class extends i {
|
|
21
|
-
constructor({ result: e, url: t }) {
|
|
22
|
-
super("Offchain gateway response is malformed. Response data must be a hex value.", {
|
|
23
|
-
metaMessages: [`Gateway URL: ${n(t)}`, `Response: ${c(e)}`],
|
|
24
|
-
name: "OffchainLookupResponseMalformedError"
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
}, p = class extends i {
|
|
28
|
-
constructor({ sender: e, to: t }) {
|
|
29
|
-
super("Reverted sender address does not match target contract address (`to`).", {
|
|
30
|
-
metaMessages: [`Contract address: ${t}`, `OffchainLookup sender address: ${e}`],
|
|
31
|
-
name: "OffchainLookupSenderMismatchError"
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
}, m = "0x556f1830", h = {
|
|
35
|
-
name: "OffchainLookup",
|
|
36
|
-
type: "error",
|
|
37
|
-
inputs: [
|
|
38
|
-
{
|
|
39
|
-
name: "sender",
|
|
40
|
-
type: "address"
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
name: "urls",
|
|
44
|
-
type: "string[]"
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
name: "callData",
|
|
48
|
-
type: "bytes"
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
name: "callbackFunction",
|
|
52
|
-
type: "bytes4"
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
name: "extraData",
|
|
56
|
-
type: "bytes"
|
|
57
|
-
}
|
|
58
|
-
]
|
|
59
|
-
};
|
|
60
|
-
async function g(e, { blockNumber: t, blockTag: n, data: i, to: c }) {
|
|
61
|
-
let { args: f } = l({
|
|
62
|
-
data: i,
|
|
63
|
-
abi: [h]
|
|
64
|
-
}), [m, g, v, y, b] = f, { ccipRead: x } = e, S = x && typeof x?.request == "function" ? x.request : _;
|
|
65
|
-
try {
|
|
66
|
-
if (!r(c, m)) throw new p({
|
|
67
|
-
sender: m,
|
|
68
|
-
to: c
|
|
69
|
-
});
|
|
70
|
-
let { data: i } = await s(e, {
|
|
71
|
-
blockNumber: t,
|
|
72
|
-
blockTag: n,
|
|
73
|
-
data: o([y, a([{ type: "bytes" }, { type: "bytes" }], [g.includes("x-batch-gateway:true") ? await u({
|
|
74
|
-
data: v,
|
|
75
|
-
ccipRequest: S
|
|
76
|
-
}) : await S({
|
|
77
|
-
data: v,
|
|
78
|
-
sender: m,
|
|
79
|
-
urls: g
|
|
80
|
-
}), b])]),
|
|
81
|
-
to: c
|
|
82
|
-
});
|
|
83
|
-
return i;
|
|
84
|
-
} catch (e) {
|
|
85
|
-
throw new d({
|
|
86
|
-
callbackSelector: y,
|
|
87
|
-
cause: e,
|
|
88
|
-
data: i,
|
|
89
|
-
extraData: b,
|
|
90
|
-
sender: m,
|
|
91
|
-
urls: g
|
|
92
|
-
});
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
async function _({ data: n, sender: r, urls: i }) {
|
|
96
|
-
let a = /* @__PURE__ */ Error("An unknown error occurred.");
|
|
97
|
-
for (let o = 0; o < i.length; o++) {
|
|
98
|
-
let s = i[o], l = s.includes("{data}") ? "GET" : "POST", u = l === "POST" ? {
|
|
99
|
-
data: n,
|
|
100
|
-
sender: r
|
|
101
|
-
} : void 0, d = l === "POST" ? { "Content-Type": "application/json" } : {};
|
|
102
|
-
try {
|
|
103
|
-
let i = await fetch(s.replace("{sender}", r.toLowerCase()).replace("{data}", n), {
|
|
104
|
-
body: JSON.stringify(u),
|
|
105
|
-
headers: d,
|
|
106
|
-
method: l
|
|
107
|
-
}), o;
|
|
108
|
-
if (o = i.headers.get("Content-Type")?.startsWith("application/json") ? (await i.json()).data : await i.text(), !i.ok) {
|
|
109
|
-
a = new e({
|
|
110
|
-
body: u,
|
|
111
|
-
details: o?.error ? c(o.error) : i.statusText,
|
|
112
|
-
headers: i.headers,
|
|
113
|
-
status: i.status,
|
|
114
|
-
url: s
|
|
115
|
-
});
|
|
116
|
-
continue;
|
|
117
|
-
}
|
|
118
|
-
if (!t(o)) {
|
|
119
|
-
a = new f({
|
|
120
|
-
result: o,
|
|
121
|
-
url: s
|
|
122
|
-
});
|
|
123
|
-
continue;
|
|
124
|
-
}
|
|
125
|
-
return o;
|
|
126
|
-
} catch (t) {
|
|
127
|
-
a = new e({
|
|
128
|
-
body: u,
|
|
129
|
-
details: t.message,
|
|
130
|
-
url: s
|
|
131
|
-
});
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
throw a;
|
|
135
|
-
}
|
|
136
|
-
//#endregion
|
|
137
|
-
export { g as offchainLookup, m as offchainLookupSignature };
|