@graphprotocol/hypergraph 0.11.3 → 0.12.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/typesync-studio/dist/assets/{authenticate-callback-DWhsU9D1.js → authenticate-callback-DffCNmxZ.js} +1 -1
- package/dist/typesync-studio/dist/assets/{authenticate-callback-BV2rlMr8.js.map → authenticate-callback-DffCNmxZ.js.map} +1 -1
- package/dist/typesync-studio/dist/assets/{ccip-B3C_8i6v.js → ccip-BJ7g8YE6.js} +1 -1
- package/dist/typesync-studio/dist/assets/{ccip-BbFvINjv.js.map → ccip-BJ7g8YE6.js.map} +1 -1
- package/dist/typesync-studio/dist/assets/{index-B6KrPHmh.js → index-B5RxXGeM.js} +111 -111
- package/dist/typesync-studio/dist/assets/{index-aqIlSDjR.js.map → index-B5RxXGeM.js.map} +1 -1
- package/dist/typesync-studio/dist/assets/{index-aSyX5aYK.js → index-CHTDYpLG.js} +1 -1
- package/dist/typesync-studio/dist/assets/index-CHTDYpLG.js.map +1 -0
- package/dist/typesync-studio/dist/index.html +1 -1
- package/package.json +2 -2
- package/dist/typesync-studio/dist/assets/authenticate-callback-BV2rlMr8.js +0 -29
- package/dist/typesync-studio/dist/assets/ccip-BbFvINjv.js +0 -167
- package/dist/typesync-studio/dist/assets/index-BVtd9x2J.js +0 -13117
- package/dist/typesync-studio/dist/assets/index-BVtd9x2J.js.map +0 -1
- package/dist/typesync-studio/dist/assets/index-aqIlSDjR.js +0 -224
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
<title>Graph Protocol | Hypergraph TypeSync</title>
|
|
22
22
|
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
|
23
23
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
|
24
|
-
<script type="module" crossorigin src="/assets/index-
|
|
24
|
+
<script type="module" crossorigin src="/assets/index-B5RxXGeM.js"></script>
|
|
25
25
|
<link rel="stylesheet" crossorigin href="/assets/index-BY93eSrW.css">
|
|
26
26
|
</head>
|
|
27
27
|
<body class="h-full w-full">
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphprotocol/hypergraph",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.0",
|
|
4
4
|
"description": "SDK for building performant, type-safe, local-first dapps on top of The Graph ecosystem knowledge graphs.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"@effect/platform-node": "^0.96.1",
|
|
42
42
|
"@effect/printer": "^0.45.0",
|
|
43
43
|
"@effect/printer-ansi": "^0.45.0",
|
|
44
|
-
"@geoprotocol/geo-sdk": "^0.
|
|
44
|
+
"@geoprotocol/geo-sdk": "^0.2.0",
|
|
45
45
|
"@noble/ciphers": "^1.3.0",
|
|
46
46
|
"@noble/curves": "^1.9.7",
|
|
47
47
|
"@noble/hashes": "^1.8.0",
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { R as c, u as o, a as r, r as p, j as u, S as i, N as s } from "./index-aqIlSDjR.js";
|
|
2
|
-
i({
|
|
3
|
-
ciphertext: s,
|
|
4
|
-
nonce: s
|
|
5
|
-
});
|
|
6
|
-
function m() {
|
|
7
|
-
const {
|
|
8
|
-
ciphertext: t,
|
|
9
|
-
nonce: e
|
|
10
|
-
} = c.useSearch(),
|
|
11
|
-
{
|
|
12
|
-
processConnectAuthSuccess: a
|
|
13
|
-
} = o(),
|
|
14
|
-
n = r();
|
|
15
|
-
return p.useEffect(() => {
|
|
16
|
-
a({
|
|
17
|
-
storage: localStorage,
|
|
18
|
-
ciphertext: t,
|
|
19
|
-
nonce: e
|
|
20
|
-
}), n({
|
|
21
|
-
to: "/",
|
|
22
|
-
replace: !0
|
|
23
|
-
});
|
|
24
|
-
}, [t, e, a, n]), u.jsx("div", {
|
|
25
|
-
children: "Authenticating …"
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
export { m as component };
|
|
29
|
-
//# sourceMappingURL=authenticate-callback-BV2rlMr8.js.map
|
|
@@ -1,167 +0,0 @@
|
|
|
1
|
-
import { d7 as p, d8 as m, d9 as w, da as k, db as b, dc as L, dd as O, de as R, df as E, dg as x, dh as y, di as M } from "./index-aqIlSDjR.js";
|
|
2
|
-
class S extends p {
|
|
3
|
-
constructor({
|
|
4
|
-
callbackSelector: s,
|
|
5
|
-
cause: e,
|
|
6
|
-
data: o,
|
|
7
|
-
extraData: n,
|
|
8
|
-
sender: c,
|
|
9
|
-
urls: t
|
|
10
|
-
}) {
|
|
11
|
-
super(e.shortMessage || "An error occurred while fetching for an offchain result.", {
|
|
12
|
-
cause: e,
|
|
13
|
-
metaMessages: [...(e.metaMessages || []), e.metaMessages?.length ? "" : [], "Offchain Gateway Call:", t && [" Gateway URL(s):", ...t.map(d => ` ${m(d)}`)], ` Sender: ${c}`, ` Data: ${o}`, ` Callback selector: ${s}`, ` Extra data: ${n}`].flat(),
|
|
14
|
-
name: "OffchainLookupError"
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
class $ extends p {
|
|
19
|
-
constructor({
|
|
20
|
-
result: s,
|
|
21
|
-
url: e
|
|
22
|
-
}) {
|
|
23
|
-
super("Offchain gateway response is malformed. Response data must be a hex value.", {
|
|
24
|
-
metaMessages: [`Gateway URL: ${m(e)}`, `Response: ${w(s)}`],
|
|
25
|
-
name: "OffchainLookupResponseMalformedError"
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
class q extends p {
|
|
30
|
-
constructor({
|
|
31
|
-
sender: s,
|
|
32
|
-
to: e
|
|
33
|
-
}) {
|
|
34
|
-
super("Reverted sender address does not match target contract address (`to`).", {
|
|
35
|
-
metaMessages: [`Contract address: ${e}`, `OffchainLookup sender address: ${s}`],
|
|
36
|
-
name: "OffchainLookupSenderMismatchError"
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
const A = "0x556f1830",
|
|
41
|
-
T = {
|
|
42
|
-
name: "OffchainLookup",
|
|
43
|
-
type: "error",
|
|
44
|
-
inputs: [{
|
|
45
|
-
name: "sender",
|
|
46
|
-
type: "address"
|
|
47
|
-
}, {
|
|
48
|
-
name: "urls",
|
|
49
|
-
type: "string[]"
|
|
50
|
-
}, {
|
|
51
|
-
name: "callData",
|
|
52
|
-
type: "bytes"
|
|
53
|
-
}, {
|
|
54
|
-
name: "callbackFunction",
|
|
55
|
-
type: "bytes4"
|
|
56
|
-
}, {
|
|
57
|
-
name: "extraData",
|
|
58
|
-
type: "bytes"
|
|
59
|
-
}]
|
|
60
|
-
};
|
|
61
|
-
async function D(i, {
|
|
62
|
-
blockNumber: s,
|
|
63
|
-
blockTag: e,
|
|
64
|
-
data: o,
|
|
65
|
-
to: n
|
|
66
|
-
}) {
|
|
67
|
-
const {
|
|
68
|
-
args: c
|
|
69
|
-
} = k({
|
|
70
|
-
data: o,
|
|
71
|
-
abi: [T]
|
|
72
|
-
}),
|
|
73
|
-
[t, d, f, a, r] = c,
|
|
74
|
-
{
|
|
75
|
-
ccipRead: l
|
|
76
|
-
} = i,
|
|
77
|
-
h = l && typeof l?.request == "function" ? l.request : C;
|
|
78
|
-
try {
|
|
79
|
-
if (!b(n, t)) throw new q({
|
|
80
|
-
sender: t,
|
|
81
|
-
to: n
|
|
82
|
-
});
|
|
83
|
-
const u = d.includes(L) ? await O({
|
|
84
|
-
data: f,
|
|
85
|
-
ccipRequest: h
|
|
86
|
-
}) : await h({
|
|
87
|
-
data: f,
|
|
88
|
-
sender: t,
|
|
89
|
-
urls: d
|
|
90
|
-
}),
|
|
91
|
-
{
|
|
92
|
-
data: g
|
|
93
|
-
} = await R(i, {
|
|
94
|
-
blockNumber: s,
|
|
95
|
-
blockTag: e,
|
|
96
|
-
data: E([a, x([{
|
|
97
|
-
type: "bytes"
|
|
98
|
-
}, {
|
|
99
|
-
type: "bytes"
|
|
100
|
-
}], [u, r])]),
|
|
101
|
-
to: n
|
|
102
|
-
});
|
|
103
|
-
return g;
|
|
104
|
-
} catch (u) {
|
|
105
|
-
throw new S({
|
|
106
|
-
callbackSelector: a,
|
|
107
|
-
cause: u,
|
|
108
|
-
data: o,
|
|
109
|
-
extraData: r,
|
|
110
|
-
sender: t,
|
|
111
|
-
urls: d
|
|
112
|
-
});
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
async function C({
|
|
116
|
-
data: i,
|
|
117
|
-
sender: s,
|
|
118
|
-
urls: e
|
|
119
|
-
}) {
|
|
120
|
-
let o = new Error("An unknown error occurred.");
|
|
121
|
-
for (let n = 0; n < e.length; n++) {
|
|
122
|
-
const c = e[n],
|
|
123
|
-
t = c.includes("{data}") ? "GET" : "POST",
|
|
124
|
-
d = t === "POST" ? {
|
|
125
|
-
data: i,
|
|
126
|
-
sender: s
|
|
127
|
-
} : void 0,
|
|
128
|
-
f = t === "POST" ? {
|
|
129
|
-
"Content-Type": "application/json"
|
|
130
|
-
} : {};
|
|
131
|
-
try {
|
|
132
|
-
const a = await fetch(c.replace("{sender}", s.toLowerCase()).replace("{data}", i), {
|
|
133
|
-
body: JSON.stringify(d),
|
|
134
|
-
headers: f,
|
|
135
|
-
method: t
|
|
136
|
-
});
|
|
137
|
-
let r;
|
|
138
|
-
if (a.headers.get("Content-Type")?.startsWith("application/json") ? r = (await a.json()).data : r = await a.text(), !a.ok) {
|
|
139
|
-
o = new y({
|
|
140
|
-
body: d,
|
|
141
|
-
details: r?.error ? w(r.error) : a.statusText,
|
|
142
|
-
headers: a.headers,
|
|
143
|
-
status: a.status,
|
|
144
|
-
url: c
|
|
145
|
-
});
|
|
146
|
-
continue;
|
|
147
|
-
}
|
|
148
|
-
if (!M(r)) {
|
|
149
|
-
o = new $({
|
|
150
|
-
result: r,
|
|
151
|
-
url: c
|
|
152
|
-
});
|
|
153
|
-
continue;
|
|
154
|
-
}
|
|
155
|
-
return r;
|
|
156
|
-
} catch (a) {
|
|
157
|
-
o = new y({
|
|
158
|
-
body: d,
|
|
159
|
-
details: a.message,
|
|
160
|
-
url: c
|
|
161
|
-
});
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
throw o;
|
|
165
|
-
}
|
|
166
|
-
export { C as ccipRequest, D as offchainLookup, T as offchainLookupAbiItem, A as offchainLookupSignature };
|
|
167
|
-
//# sourceMappingURL=ccip-BbFvINjv.js.map
|