@rhinestone/shared-configs 1.7.16 → 1.7.17
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/configs/chains.json +26 -1
- package/dist/scripts/__tests__/validation.test.js +132 -10
- package/dist/scripts/generate.js +25 -5
- package/dist/scripts/validation.d.ts +32 -2
- package/dist/scripts/validation.d.ts.map +1 -1
- package/dist/scripts/validation.js +269 -1
- package/dist/src/__tests__/chainFactsClient.test.d.ts +2 -0
- package/dist/src/__tests__/chainFactsClient.test.d.ts.map +1 -0
- package/dist/src/__tests__/chainFactsClient.test.js +460 -0
- package/dist/src/chainFactsClient.d.ts +57 -0
- package/dist/src/chainFactsClient.d.ts.map +1 -0
- package/dist/src/chainFactsClient.js +295 -0
- package/dist/src/chains.d.ts +3 -1
- package/dist/src/chains.d.ts.map +1 -1
- package/dist/src/chains.js +26 -1
- package/dist/src/generated/abis.d.ts +4 -0
- package/dist/src/generated/abis.d.ts.map +1 -1
- package/dist/src/generated/abis.js +82 -0
- package/dist/src/generated/chainFactsKey.d.ts +5 -0
- package/dist/src/generated/chainFactsKey.d.ts.map +1 -0
- package/dist/src/generated/chainFactsKey.js +19 -0
- package/dist/src/generated/packageVersion.d.ts +3 -0
- package/dist/src/generated/packageVersion.d.ts.map +1 -0
- package/dist/src/generated/packageVersion.js +6 -0
- package/dist/src/index.d.ts +6 -3
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +6 -1
- package/dist/src/types.d.ts +13 -1
- package/dist/src/types.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,295 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.createChainFactsClient = createChainFactsClient;
|
|
7
|
+
const chains_json_1 = __importDefault(require("../configs/chains.json"));
|
|
8
|
+
const chainFactsKey_1 = require("./generated/chainFactsKey");
|
|
9
|
+
const packageVersion_1 = require("./generated/packageVersion");
|
|
10
|
+
const bundledChainRegistry = chains_json_1.default;
|
|
11
|
+
const DEFAULT_FETCH_TIMEOUT_MS = 5_000;
|
|
12
|
+
const BUNDLED_SNAPSHOT = {
|
|
13
|
+
chains: bundledChainRegistry,
|
|
14
|
+
source: "bundled",
|
|
15
|
+
version: null,
|
|
16
|
+
};
|
|
17
|
+
// Registry keys are chain ids consumers index by directly, so they must be
|
|
18
|
+
// canonical positive integers — no leading zeros, which would let "01" and "1"
|
|
19
|
+
// both address chain 1.
|
|
20
|
+
const CHAIN_ID_KEY = /^[1-9][0-9]*$/;
|
|
21
|
+
function isObject(value) {
|
|
22
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
23
|
+
}
|
|
24
|
+
// Enough to tell chain facts from some other JSON that happens to be keyed by
|
|
25
|
+
// chain id (the mainnets/providers blobs are, so a misconfigured URL would
|
|
26
|
+
// otherwise be accepted), and no more.
|
|
27
|
+
//
|
|
28
|
+
// Exhaustive field and enum validation runs once at build time, in yeet's
|
|
29
|
+
// generator (scripts/validation.ts), where the data and the type unions ship in
|
|
30
|
+
// the same version. Repeating it here would be both redundant and wrong: an
|
|
31
|
+
// unknown settlement layer at build time means the unions need updating, but at
|
|
32
|
+
// read time it just means an older consumer is reading a newer artifact, which
|
|
33
|
+
// has to keep working — that's the whole point of the project. Integrity and
|
|
34
|
+
// provenance are the artifact signature's job.
|
|
35
|
+
function looksLikeChainEntry(value) {
|
|
36
|
+
return (isObject(value) &&
|
|
37
|
+
typeof value.name === "string" &&
|
|
38
|
+
Array.isArray(value.tokens));
|
|
39
|
+
}
|
|
40
|
+
function isChainRegistry(value) {
|
|
41
|
+
if (!isObject(value))
|
|
42
|
+
return false;
|
|
43
|
+
const entries = Object.entries(value);
|
|
44
|
+
return (entries.length > 0 &&
|
|
45
|
+
entries.every(([id, entry]) => CHAIN_ID_KEY.test(id) && looksLikeChainEntry(entry)));
|
|
46
|
+
}
|
|
47
|
+
// Both sides are release versions produced by the same pipeline, so a numeric
|
|
48
|
+
// x.y.z comparison is enough; a pre-release suffix (-alpha.N) is ignored, since
|
|
49
|
+
// pre-release tags never publish to the facts CDN.
|
|
50
|
+
//
|
|
51
|
+
// Returns false when either version is unparseable rather than treating it as
|
|
52
|
+
// stale: an odd version string is a pipeline bug to observe, not a reason to
|
|
53
|
+
// stop taking chain updates, and the signature already establishes provenance.
|
|
54
|
+
function isOlderRelease(candidate, baseline) {
|
|
55
|
+
const parse = (v) => {
|
|
56
|
+
const parts = v.split("-")[0].split(".");
|
|
57
|
+
if (parts.length !== 3)
|
|
58
|
+
return null;
|
|
59
|
+
const nums = parts.map((p) => Number(p));
|
|
60
|
+
return nums.every((n) => Number.isInteger(n) && n >= 0) ? nums : null;
|
|
61
|
+
};
|
|
62
|
+
const a = parse(candidate);
|
|
63
|
+
const b = parse(baseline);
|
|
64
|
+
if (!a || !b)
|
|
65
|
+
return false;
|
|
66
|
+
for (let i = 0; i < 3; i += 1) {
|
|
67
|
+
if (a[i] !== b[i])
|
|
68
|
+
return a[i] < b[i];
|
|
69
|
+
}
|
|
70
|
+
return false;
|
|
71
|
+
}
|
|
72
|
+
// ── Signature verification ───────────────────────────────────────────────────
|
|
73
|
+
const P256_COORDINATE_BYTES = 32;
|
|
74
|
+
function base64ToBytes(base64) {
|
|
75
|
+
// atob, not Buffer: available in browsers, Node >= 16, Bun and Deno alike.
|
|
76
|
+
const binary = atob(base64.replace(/\s+/g, ""));
|
|
77
|
+
const bytes = new Uint8Array(binary.length);
|
|
78
|
+
for (let i = 0; i < binary.length; i += 1)
|
|
79
|
+
bytes[i] = binary.charCodeAt(i);
|
|
80
|
+
return bytes;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Converts a DER/ASN.1 ECDSA signature to the fixed-width r‖s form WebCrypto
|
|
84
|
+
* requires.
|
|
85
|
+
*
|
|
86
|
+
* KMS `Sign` with ECDSA_SHA_256 returns DER — `30 <len> 02 <rlen> r 02 <slen> s`,
|
|
87
|
+
* ~70-72 bytes and variable — while `crypto.subtle.verify` expects exactly 64
|
|
88
|
+
* bytes of raw r‖s for P-256. Passing DER through does NOT throw; it just
|
|
89
|
+
* returns false for every signature. So this conversion is the difference
|
|
90
|
+
* between a working verifier and one that silently rejects every legitimate
|
|
91
|
+
* artifact (confirmed empirically before writing it).
|
|
92
|
+
*
|
|
93
|
+
* Each INTEGER is minimally encoded and signed, so r/s may carry a leading 0x00
|
|
94
|
+
* when the high bit is set, or be shorter than 32 bytes when leading zeroes were
|
|
95
|
+
* dropped. Both normalise to a left-padded 32 bytes.
|
|
96
|
+
*/
|
|
97
|
+
function derToRawEcdsaSignature(der) {
|
|
98
|
+
let offset = 0;
|
|
99
|
+
const nextByte = () => {
|
|
100
|
+
if (offset >= der.length)
|
|
101
|
+
throw new Error("signature truncated");
|
|
102
|
+
return der[offset++];
|
|
103
|
+
};
|
|
104
|
+
if (nextByte() !== 0x30)
|
|
105
|
+
throw new Error("signature is not a DER SEQUENCE");
|
|
106
|
+
// Sequence length: short form, or long form (0x80 | number-of-length-bytes).
|
|
107
|
+
let sequenceLength = nextByte();
|
|
108
|
+
if (sequenceLength & 0x80) {
|
|
109
|
+
const lengthBytes = sequenceLength & 0x7f;
|
|
110
|
+
sequenceLength = 0;
|
|
111
|
+
for (let i = 0; i < lengthBytes; i += 1) {
|
|
112
|
+
sequenceLength = (sequenceLength << 8) | nextByte();
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
if (offset + sequenceLength !== der.length) {
|
|
116
|
+
throw new Error("DER sequence length does not match signature length");
|
|
117
|
+
}
|
|
118
|
+
const readCoordinate = () => {
|
|
119
|
+
if (nextByte() !== 0x02)
|
|
120
|
+
throw new Error("expected a DER INTEGER");
|
|
121
|
+
const length = nextByte();
|
|
122
|
+
if (offset + length > der.length) {
|
|
123
|
+
throw new Error("DER INTEGER overruns the signature");
|
|
124
|
+
}
|
|
125
|
+
let bytes = der.subarray(offset, offset + length);
|
|
126
|
+
offset += length;
|
|
127
|
+
while (bytes.length > 0 && bytes[0] === 0x00)
|
|
128
|
+
bytes = bytes.subarray(1);
|
|
129
|
+
if (bytes.length > P256_COORDINATE_BYTES) {
|
|
130
|
+
throw new Error("DER INTEGER wider than the P-256 coordinate size");
|
|
131
|
+
}
|
|
132
|
+
const padded = new Uint8Array(P256_COORDINATE_BYTES);
|
|
133
|
+
padded.set(bytes, P256_COORDINATE_BYTES - bytes.length);
|
|
134
|
+
return padded;
|
|
135
|
+
};
|
|
136
|
+
const r = readCoordinate();
|
|
137
|
+
const s = readCoordinate();
|
|
138
|
+
const raw = new Uint8Array(P256_COORDINATE_BYTES * 2);
|
|
139
|
+
raw.set(r, 0);
|
|
140
|
+
raw.set(s, P256_COORDINATE_BYTES);
|
|
141
|
+
return raw;
|
|
142
|
+
}
|
|
143
|
+
async function verifyArtifactSignature(publicKeyBase64, signatureBase64, payloadBytes) {
|
|
144
|
+
const key = await crypto.subtle.importKey("spki", base64ToBytes(publicKeyBase64), { name: "ECDSA", namedCurve: "P-256" }, false, ["verify"]);
|
|
145
|
+
return crypto.subtle.verify({ name: "ECDSA", hash: "SHA-256" }, key, derToRawEcdsaSignature(base64ToBytes(signatureBase64)), payloadBytes);
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* Reads chain facts remote-first, falling back to the registry bundled with
|
|
149
|
+
* this package at publish time. Reads never throw — a failed or malformed
|
|
150
|
+
* fetch leaves the previous tier in place, so callers always get a usable
|
|
151
|
+
* registry. `getSnapshot().source` reports which tier served it, so consumers
|
|
152
|
+
* can alert on having run bundled for longer than expected.
|
|
153
|
+
*/
|
|
154
|
+
function createChainFactsClient(options = {}) {
|
|
155
|
+
const { onError } = options;
|
|
156
|
+
// Explicit null means "disable"; omitted (or undefined) means "take the
|
|
157
|
+
// published default". `??` alone cannot express that — it treats null and
|
|
158
|
+
// undefined alike — so null is checked first.
|
|
159
|
+
const remoteUrl = options.remoteUrl === null
|
|
160
|
+
? null
|
|
161
|
+
: (options.remoteUrl ?? chainFactsKey_1.CHAIN_FACTS_LATEST_URL);
|
|
162
|
+
const publicKey = options.publicKey === null
|
|
163
|
+
? null
|
|
164
|
+
: (options.publicKey ?? chainFactsKey_1.CHAIN_FACTS_PUBLIC_KEY);
|
|
165
|
+
const fetchTimeoutMs = options.fetchTimeoutMs ?? DEFAULT_FETCH_TIMEOUT_MS;
|
|
166
|
+
let snapshot = BUNDLED_SNAPSHOT;
|
|
167
|
+
// A caller's logging hook must never break the never-throws contract.
|
|
168
|
+
function report(error, phase) {
|
|
169
|
+
try {
|
|
170
|
+
onError?.(error, phase);
|
|
171
|
+
}
|
|
172
|
+
catch (hookError) {
|
|
173
|
+
console.error("[chainFactsClient] onError callback threw", hookError);
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
async function fetchRemote() {
|
|
177
|
+
if (!remoteUrl)
|
|
178
|
+
return null;
|
|
179
|
+
if (!publicKey) {
|
|
180
|
+
// Fail closed rather than reading unverified: the payload checks are only
|
|
181
|
+
// structural, so without a key there is nothing establishing that these
|
|
182
|
+
// facts came from the release pipeline.
|
|
183
|
+
report(new Error("remoteUrl is set but publicKey is not — refusing to read chain facts unverified; serving bundled"), "config");
|
|
184
|
+
return null;
|
|
185
|
+
}
|
|
186
|
+
// The timeout must cover the body reads as well as the headers — otherwise a
|
|
187
|
+
// remote that stalls mid-body is unbounded.
|
|
188
|
+
const controller = new AbortController();
|
|
189
|
+
const timeout = setTimeout(() => controller.abort(), fetchTimeoutMs);
|
|
190
|
+
let payloadBytes;
|
|
191
|
+
let signatureBase64;
|
|
192
|
+
try {
|
|
193
|
+
const get = async (url) => {
|
|
194
|
+
const response = await fetch(url, { signal: controller.signal });
|
|
195
|
+
if (!response.ok) {
|
|
196
|
+
throw new Error(`chain facts fetch failed for ${url}: ${response.status} ${response.statusText}`);
|
|
197
|
+
}
|
|
198
|
+
return response;
|
|
199
|
+
};
|
|
200
|
+
// Detached signature, fetched in parallel with the artifact it covers.
|
|
201
|
+
const [payloadResponse, signatureResponse] = await Promise.all([
|
|
202
|
+
get(remoteUrl),
|
|
203
|
+
get(`${remoteUrl}.sig`),
|
|
204
|
+
]);
|
|
205
|
+
payloadBytes = new Uint8Array(await payloadResponse.arrayBuffer());
|
|
206
|
+
signatureBase64 = await signatureResponse.text();
|
|
207
|
+
}
|
|
208
|
+
catch (error) {
|
|
209
|
+
report(error, "fetch");
|
|
210
|
+
return null;
|
|
211
|
+
}
|
|
212
|
+
finally {
|
|
213
|
+
clearTimeout(timeout);
|
|
214
|
+
}
|
|
215
|
+
// Verify before parsing, over the exact bytes served. Nothing downstream
|
|
216
|
+
// touches the payload until the signature checks out.
|
|
217
|
+
try {
|
|
218
|
+
const verified = await verifyArtifactSignature(publicKey, signatureBase64, payloadBytes);
|
|
219
|
+
if (!verified)
|
|
220
|
+
throw new Error("signature did not verify");
|
|
221
|
+
}
|
|
222
|
+
catch (error) {
|
|
223
|
+
report(error, "verify");
|
|
224
|
+
return null;
|
|
225
|
+
}
|
|
226
|
+
let body;
|
|
227
|
+
try {
|
|
228
|
+
body = JSON.parse(new TextDecoder().decode(payloadBytes));
|
|
229
|
+
}
|
|
230
|
+
catch (error) {
|
|
231
|
+
report(error, "parse");
|
|
232
|
+
return null;
|
|
233
|
+
}
|
|
234
|
+
if (!isObject(body) ||
|
|
235
|
+
typeof body.version !== "string" ||
|
|
236
|
+
!isChainRegistry(body.chains)) {
|
|
237
|
+
report(new Error("chain facts payload has no version or an unusable chains registry"), "parse");
|
|
238
|
+
return null;
|
|
239
|
+
}
|
|
240
|
+
// A signature proves provenance, not freshness: a previous release's
|
|
241
|
+
// artifact stays validly signed forever. So if the CDN publish fails while
|
|
242
|
+
// the npm publish succeeds, a consumer that bumps gets a bundled registry
|
|
243
|
+
// newer than `latest.json` — and a valid remote snapshot would otherwise
|
|
244
|
+
// override it, hiding the change behind a *successful* read.
|
|
245
|
+
//
|
|
246
|
+
// Compared by VERSION, not by chain-id set: an artifact can carry every
|
|
247
|
+
// chain id and still be older, because a facts change is often a new token,
|
|
248
|
+
// quoter, or native-token detail on an EXISTING chain. Both versions come
|
|
249
|
+
// from the same release pipeline — the artifact version IS the package
|
|
250
|
+
// version — so comparing them is meaningful rather than an assumption about
|
|
251
|
+
// arbitrary strings. Equal is accepted: that is the steady state.
|
|
252
|
+
const chains = body.chains;
|
|
253
|
+
if (isOlderRelease(body.version, packageVersion_1.PACKAGE_VERSION)) {
|
|
254
|
+
report(new Error(`chain facts ${body.version} is older than this package's bundled registry (${packageVersion_1.PACKAGE_VERSION}) — treating as stale and keeping bundled data`), "stale");
|
|
255
|
+
return null;
|
|
256
|
+
}
|
|
257
|
+
return { version: body.version, chains };
|
|
258
|
+
}
|
|
259
|
+
async function fetchAndInstall() {
|
|
260
|
+
const payload = await fetchRemote();
|
|
261
|
+
if (!payload)
|
|
262
|
+
return false;
|
|
263
|
+
snapshot = {
|
|
264
|
+
chains: payload.chains,
|
|
265
|
+
source: "remote",
|
|
266
|
+
version: payload.version,
|
|
267
|
+
};
|
|
268
|
+
return true;
|
|
269
|
+
}
|
|
270
|
+
// Concurrent refreshes share one fetch. Without this, overlapping calls can
|
|
271
|
+
// install out of order — A reads v1, B reads v2 and installs it, then A
|
|
272
|
+
// resolves and puts v1 back — which would hide a newly added chain from a
|
|
273
|
+
// running service until some later refresh happened to win. A periodic timer
|
|
274
|
+
// plus an on-demand refresh is enough to hit that, so it is not theoretical.
|
|
275
|
+
// Serialising also avoids fetching the same artifact twice.
|
|
276
|
+
//
|
|
277
|
+
// This orders installs within a process; it does not make the artifact
|
|
278
|
+
// monotonic across CloudFront edges, where a later read can legitimately
|
|
279
|
+
// return an older `latest.json`. That is inherent to a CDN and self-corrects
|
|
280
|
+
// on the next refresh; ruling it out would need an ordering assumption about
|
|
281
|
+
// version strings that the format does not currently guarantee.
|
|
282
|
+
let inFlight = null;
|
|
283
|
+
return {
|
|
284
|
+
refresh() {
|
|
285
|
+
if (!inFlight) {
|
|
286
|
+
inFlight = fetchAndInstall().finally(() => {
|
|
287
|
+
inFlight = null;
|
|
288
|
+
});
|
|
289
|
+
}
|
|
290
|
+
return inFlight;
|
|
291
|
+
},
|
|
292
|
+
getSnapshot: () => snapshot,
|
|
293
|
+
getChainRegistry: () => snapshot.chains,
|
|
294
|
+
};
|
|
295
|
+
}
|
package/dist/src/chains.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { PegGroup, ProviderName, SettlementLayer, SupportedChain, SwapQuoter, SwapQuoterConfig, VmType } from "./types";
|
|
1
|
+
import type { ChainNetwork, PegGroup, ProviderName, SettlementLayer, SupportedChain, SwapQuoter, SwapQuoterConfig, VmType } from "./types";
|
|
2
2
|
interface Token {
|
|
3
3
|
/** EVM: 0x-prefixed hex. SVM: base58 SPL mint. TVM: base58 (T-prefixed). */
|
|
4
4
|
address: string;
|
|
@@ -19,6 +19,8 @@ interface NativeToken {
|
|
|
19
19
|
interface Chain {
|
|
20
20
|
name: string;
|
|
21
21
|
vmType: VmType;
|
|
22
|
+
/** Whether this chain is a mainnet or a testnet. */
|
|
23
|
+
network: ChainNetwork;
|
|
22
24
|
/** CAIP-2 chain identifier; populated for non-eip155 chains only. */
|
|
23
25
|
caip2?: string;
|
|
24
26
|
/** True for virtual chains (e.g. HyperCore) that settle on another chain. */
|
package/dist/src/chains.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chains.d.ts","sourceRoot":"","sources":["../../src/chains.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,eAAe,EAAE,cAAc,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"chains.d.ts","sourceRoot":"","sources":["../../src/chains.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,YAAY,EAAE,eAAe,EAAE,cAAc,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAE3I,UAAU,KAAK;IACb,4EAA4E;IAC5E,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,UAAU,WAAW;IACnB,oFAAoF;IACpF,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,UAAU,KAAK;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,oDAAoD;IACpD,OAAO,EAAE,YAAY,CAAC;IACtB,qEAAqE;IACrE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,6EAA6E;IAC7E,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,WAAW,EAAE,WAAW,CAAC;IACzB,kBAAkB,EAAE,WAAW,CAAC;IAChC,MAAM,EAAE,KAAK,EAAE,CAAC;IAChB,gBAAgB,EAAE,eAAe,EAAE,CAAC;IACpC,SAAS,EAAE,YAAY,EAAE,CAAC;IAC1B,WAAW,EAAE,UAAU,EAAE,CAAC;IAC1B,gBAAgB,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,UAAU,EAAE,gBAAgB,CAAC,CAAC,CAAC;CAClE;AAED,QAAA,MAAM,MAAM,EAAE,MAAM,CAAC,cAAc,EAAE,KAAK,CAg0CzC,CAAC;AAEF,OAAO,EAAE,MAAM,EAAE,CAAC;AAClB,YAAY,EAAE,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,CAAC"}
|
package/dist/src/chains.js
CHANGED
|
@@ -9,6 +9,7 @@ const chains = {
|
|
|
9
9
|
"decimals": 18,
|
|
10
10
|
"symbol": "ETH"
|
|
11
11
|
},
|
|
12
|
+
"network": "mainnet",
|
|
12
13
|
"settlementLayers": [
|
|
13
14
|
"ACROSS",
|
|
14
15
|
"ECO",
|
|
@@ -79,6 +80,7 @@ const chains = {
|
|
|
79
80
|
"decimals": 18,
|
|
80
81
|
"symbol": "ETH"
|
|
81
82
|
},
|
|
83
|
+
"network": "mainnet",
|
|
82
84
|
"settlementLayers": [
|
|
83
85
|
"ACROSS",
|
|
84
86
|
"ECO",
|
|
@@ -157,6 +159,7 @@ const chains = {
|
|
|
157
159
|
"decimals": 18,
|
|
158
160
|
"symbol": "BNB"
|
|
159
161
|
},
|
|
162
|
+
"network": "mainnet",
|
|
160
163
|
"settlementLayers": [
|
|
161
164
|
"ACROSS",
|
|
162
165
|
"ECO",
|
|
@@ -215,6 +218,7 @@ const chains = {
|
|
|
215
218
|
"decimals": 18,
|
|
216
219
|
"symbol": "XDAI"
|
|
217
220
|
},
|
|
221
|
+
"network": "mainnet",
|
|
218
222
|
"settlementLayers": [
|
|
219
223
|
"RELAY",
|
|
220
224
|
"NEAR",
|
|
@@ -253,6 +257,7 @@ const chains = {
|
|
|
253
257
|
"decimals": 18,
|
|
254
258
|
"symbol": "ETH"
|
|
255
259
|
},
|
|
260
|
+
"network": "mainnet",
|
|
256
261
|
"settlementLayers": [
|
|
257
262
|
"ACROSS",
|
|
258
263
|
"ECO",
|
|
@@ -322,6 +327,7 @@ const chains = {
|
|
|
322
327
|
"decimals": 18,
|
|
323
328
|
"symbol": "POL"
|
|
324
329
|
},
|
|
330
|
+
"network": "mainnet",
|
|
325
331
|
"settlementLayers": [
|
|
326
332
|
"ACROSS",
|
|
327
333
|
"ECO",
|
|
@@ -384,6 +390,7 @@ const chains = {
|
|
|
384
390
|
"decimals": 18,
|
|
385
391
|
"symbol": "MON"
|
|
386
392
|
},
|
|
393
|
+
"network": "mainnet",
|
|
387
394
|
"settlementLayers": [
|
|
388
395
|
"ACROSS",
|
|
389
396
|
"RELAY",
|
|
@@ -443,6 +450,7 @@ const chains = {
|
|
|
443
450
|
"decimals": 18,
|
|
444
451
|
"symbol": "S"
|
|
445
452
|
},
|
|
453
|
+
"network": "mainnet",
|
|
446
454
|
"settlementLayers": [
|
|
447
455
|
"ECO",
|
|
448
456
|
"RELAY",
|
|
@@ -483,6 +491,7 @@ const chains = {
|
|
|
483
491
|
"decimals": 18,
|
|
484
492
|
"symbol": "HYPE"
|
|
485
493
|
},
|
|
494
|
+
"network": "mainnet",
|
|
486
495
|
"settlementLayers": [
|
|
487
496
|
"ACROSS",
|
|
488
497
|
"ECO",
|
|
@@ -531,6 +540,7 @@ const chains = {
|
|
|
531
540
|
"decimals": 18,
|
|
532
541
|
"symbol": "HYPE"
|
|
533
542
|
},
|
|
543
|
+
"network": "mainnet",
|
|
534
544
|
"settlementLayers": [],
|
|
535
545
|
"swapQuoters": [],
|
|
536
546
|
"tokens": [
|
|
@@ -559,6 +569,7 @@ const chains = {
|
|
|
559
569
|
"decimals": 18,
|
|
560
570
|
"symbol": "ETH"
|
|
561
571
|
},
|
|
572
|
+
"network": "mainnet",
|
|
562
573
|
"settlementLayers": [
|
|
563
574
|
"ACROSS",
|
|
564
575
|
"RELAY"
|
|
@@ -617,6 +628,7 @@ const chains = {
|
|
|
617
628
|
"decimals": 18,
|
|
618
629
|
"symbol": "ETH"
|
|
619
630
|
},
|
|
631
|
+
"network": "mainnet",
|
|
620
632
|
"settlementLayers": [
|
|
621
633
|
"ACROSS",
|
|
622
634
|
"RELAY"
|
|
@@ -670,6 +682,7 @@ const chains = {
|
|
|
670
682
|
"decimals": 18,
|
|
671
683
|
"symbol": "ETH"
|
|
672
684
|
},
|
|
685
|
+
"network": "mainnet",
|
|
673
686
|
"settlementLayers": [
|
|
674
687
|
"ACROSS",
|
|
675
688
|
"ECO",
|
|
@@ -729,6 +742,7 @@ const chains = {
|
|
|
729
742
|
"decimals": 18,
|
|
730
743
|
"symbol": "XPL"
|
|
731
744
|
},
|
|
745
|
+
"network": "mainnet",
|
|
732
746
|
"settlementLayers": [
|
|
733
747
|
"ACROSS",
|
|
734
748
|
"ECO",
|
|
@@ -738,7 +752,8 @@ const chains = {
|
|
|
738
752
|
],
|
|
739
753
|
"swapQuoterConfig": {},
|
|
740
754
|
"swapQuoters": [
|
|
741
|
-
"0x"
|
|
755
|
+
"0x",
|
|
756
|
+
"fynd"
|
|
742
757
|
],
|
|
743
758
|
"tokens": [
|
|
744
759
|
{
|
|
@@ -770,6 +785,7 @@ const chains = {
|
|
|
770
785
|
"decimals": 18,
|
|
771
786
|
"symbol": "XPL"
|
|
772
787
|
},
|
|
788
|
+
"network": "testnet",
|
|
773
789
|
"settlementLayers": [
|
|
774
790
|
"ECO"
|
|
775
791
|
],
|
|
@@ -812,6 +828,7 @@ const chains = {
|
|
|
812
828
|
"decimals": 18,
|
|
813
829
|
"symbol": "ETH"
|
|
814
830
|
},
|
|
831
|
+
"network": "mainnet",
|
|
815
832
|
"settlementLayers": [
|
|
816
833
|
"ACROSS",
|
|
817
834
|
"ECO",
|
|
@@ -882,6 +899,7 @@ const chains = {
|
|
|
882
899
|
"decimals": 18,
|
|
883
900
|
"symbol": "AVAX"
|
|
884
901
|
},
|
|
902
|
+
"network": "mainnet",
|
|
885
903
|
"settlementLayers": [
|
|
886
904
|
"ACROSS",
|
|
887
905
|
"RELAY",
|
|
@@ -955,6 +973,7 @@ const chains = {
|
|
|
955
973
|
"decimals": 18,
|
|
956
974
|
"symbol": "ETH"
|
|
957
975
|
},
|
|
976
|
+
"network": "testnet",
|
|
958
977
|
"settlementLayers": [
|
|
959
978
|
"ACROSS",
|
|
960
979
|
"ECO",
|
|
@@ -1016,6 +1035,7 @@ const chains = {
|
|
|
1016
1035
|
"decimals": 18,
|
|
1017
1036
|
"symbol": "ETH"
|
|
1018
1037
|
},
|
|
1038
|
+
"network": "testnet",
|
|
1019
1039
|
"settlementLayers": [
|
|
1020
1040
|
"ACROSS",
|
|
1021
1041
|
"ECO",
|
|
@@ -1067,6 +1087,7 @@ const chains = {
|
|
|
1067
1087
|
"decimals": 18,
|
|
1068
1088
|
"symbol": "ETH"
|
|
1069
1089
|
},
|
|
1090
|
+
"network": "mainnet",
|
|
1070
1091
|
"settlementLayers": [
|
|
1071
1092
|
"RELAY",
|
|
1072
1093
|
"RHINO"
|
|
@@ -1127,6 +1148,7 @@ const chains = {
|
|
|
1127
1148
|
"decimals": 18,
|
|
1128
1149
|
"symbol": "ETH"
|
|
1129
1150
|
},
|
|
1151
|
+
"network": "testnet",
|
|
1130
1152
|
"settlementLayers": [
|
|
1131
1153
|
"ACROSS",
|
|
1132
1154
|
"ECO",
|
|
@@ -1178,6 +1200,7 @@ const chains = {
|
|
|
1178
1200
|
"decimals": 18,
|
|
1179
1201
|
"symbol": "ETH"
|
|
1180
1202
|
},
|
|
1203
|
+
"network": "testnet",
|
|
1181
1204
|
"settlementLayers": [
|
|
1182
1205
|
"ACROSS",
|
|
1183
1206
|
"ECO",
|
|
@@ -1230,6 +1253,7 @@ const chains = {
|
|
|
1230
1253
|
"decimals": 6,
|
|
1231
1254
|
"symbol": "TRX"
|
|
1232
1255
|
},
|
|
1256
|
+
"network": "mainnet",
|
|
1233
1257
|
"settlementLayers": [
|
|
1234
1258
|
"RELAY",
|
|
1235
1259
|
"OFT",
|
|
@@ -1270,6 +1294,7 @@ const chains = {
|
|
|
1270
1294
|
"decimals": 9,
|
|
1271
1295
|
"symbol": "SOL"
|
|
1272
1296
|
},
|
|
1297
|
+
"network": "mainnet",
|
|
1273
1298
|
"settlementLayers": [
|
|
1274
1299
|
"RELAY",
|
|
1275
1300
|
"OFT",
|
|
@@ -8,12 +8,16 @@ declare const abiSignatures: {
|
|
|
8
8
|
readonly ecoAdapter: readonly ["function ADAPTER_TAG() pure returns (bytes12)", "function ARBITER() view returns (address)", "function EXECUTOR() view returns (address)", "function MULTICALL_HANDLER() view returns (address)", "function PORTAL() view returns (address)", "function _ROUTER() view returns (address)", "function eco_compact_handleClaim((address, (address, address, uint256, uint256, uint256, uint256, uint256, uint256[2][], uint256[2][], uint256, (bytes), (bytes), bytes), (bytes, bytes), uint256, bytes32[], bytes)) returns (bytes4)", "function eco_compact_handleClaim_exogenousChain_optimized(bytes) returns (bytes4)", "function eco_compact_handleClaim_notarizedChain_optimized(bytes) returns (bytes4)", "function eco_handleFill(((bytes32, uint64, address, uint256, (address, uint256)[], (address, bytes, uint256)[]), address, bytes32, bytes32, uint256, bytes32, bytes, uint256)) payable returns (bytes4)", "function eco_permit2_handleClaim((address, (address, address, uint256, uint256, uint256, uint256, uint256, uint256[2][], uint256[2][], uint256, (bytes), (bytes), bytes), (bytes, bytes))) returns (bytes4)", "function eco_permit2_handleClaim_optimized(bytes) returns (bytes4)", "function exlusivityCallback(uint256) view", "function handleCompact_ExogenousChain(address, (address, address, uint256, uint256, uint256, uint256, uint256, uint256[2][], uint256[2][], uint256, (bytes), (bytes), bytes), (bytes, bytes), bytes32[], uint256, bytes) returns (address, uint256)", "function handleCompact_NotarizedChain(address, (address, address, uint256, uint256, uint256, uint256, uint256, uint256[2][], uint256[2][], uint256, (bytes), (bytes), bytes), (bytes, bytes), bytes32[], bytes) returns (address, uint256)", "function handlePermit2(address, (address, address, uint256, uint256, uint256, uint256, uint256, uint256[2][], uint256[2][], uint256, (bytes), (bytes), bytes), (bytes, bytes)) returns (address, uint256)", "function prepareEcoExclusiveFlag(uint256)", "function qualificationHash(bytes) pure returns (bytes32)", "function semVer() view returns (bytes6)", "function semVerUnpacked() view returns (uint256, uint256, uint256)", "function settlementLayerSpender() view returns (address)", "function supportsInterface(bytes4) pure returns (bool)", "function version() view returns (bytes)"];
|
|
9
9
|
readonly emissary: readonly ["function implementation() view returns (address)", "function owner() view returns (address)", "function renounceOwnership()", "function transferOwnership(address)", "function upgradeTo(address)"];
|
|
10
10
|
readonly emissaryImpl: readonly ["function DOMAIN_SEPARATOR() view returns (bytes32)", "function eip712Domain() view returns (bytes1, string, string, uint256, address, bytes32, uint256[])", "function getConfig(address, uint8, address, bytes12) view returns (bytes)", "function setConfig(address, (uint8, address, uint8, uint8, address, bytes), (bytes, bytes, uint256, uint256, uint256[], uint256))", "function verifyClaim(address, bytes32, bytes32, bytes, bytes12) view returns (bytes4)"];
|
|
11
|
+
readonly intentExecutionPolicy: readonly ["function cancelOwnershipHandover() payable", "function checkAction(bytes32, address, address, uint256, bytes) view returns (uint256)", "function completeOwnershipHandover(address) payable", "function initializeWithMultiplexer(address, bytes32, bytes)", "function owner() view returns (address)", "function ownershipHandoverExpiresAt(address) view returns (uint256)", "function renounceOwnership() payable", "function requestOwnershipHandover() payable", "function setWhitelistedTargets((address, bool)[])", "function supportsInterface(bytes4) pure returns (bool)", "function transferOwnership(address) payable", "function whitelistedTargets(address) view returns (bool)"];
|
|
11
12
|
readonly intentExecutor: readonly ["function implementation() view returns (address)", "function owner() view returns (address)", "function renounceOwnership()", "function transferOwnership(address)", "function upgradeTo(address)"];
|
|
12
13
|
readonly intentExecutorAdapter: readonly ["function ADAPTER_TAG() pure returns (bytes12)", "function ARBITER() view returns (address)", "function _ROUTER() view returns (address)", "function handleFill_intentExecutor_executeMultichainOps(bytes) payable returns (bytes4)", "function handleFill_intentExecutor_executeSinglechainOps(bytes) payable returns (bytes4)", "function handleFill_intentExecutor_handleCompactTargetOps(bytes) payable returns (bytes4)", "function handleFill_intentExecutor_handlePermit2TargetOps(bytes) payable returns (bytes4)", "function semVer() view returns (bytes6)", "function semVerUnpacked() view returns (uint256, uint256, uint256)", "function settlementLayerSpender() view returns (address)", "function supportsInterface(bytes4) pure returns (bool)", "function version() view returns (bytes)"];
|
|
13
14
|
readonly intentExecutorAdapterGasRefund: readonly ["function ADAPTER_TAG() pure returns (bytes12)", "function ARBITER() view returns (address)", "function _ROUTER() view returns (address)", "function handleFill_intentExecutor_executeMultichainOps_gasRefund((address, uint256, bytes32[], uint256, (bytes), bytes), (address, uint256, uint256)) payable returns (bytes4)", "function handleFill_intentExecutor_executeSinglechainOps_gasRefund((address, uint256, (bytes), bytes), (address, uint256, uint256)) payable returns (bytes4)", "function semVer() view returns (bytes6)", "function semVerUnpacked() view returns (uint256, uint256, uint256)", "function settlementLayerSpender() view returns (address)", "function supportsInterface(bytes4) pure returns (bool)", "function version() view returns (bytes)"];
|
|
14
15
|
readonly intentExecutorImpl: readonly ["function LOCKTAG() view returns (bytes12)", "function SAMECHAIN_ARBITER() view returns (address)", "function eip712Domain() view returns (bytes1, string, string, uint256, address, bytes32, uint256[])", "function executeMultichainOps((address, uint256, bytes32[], uint256, (bytes), bytes))", "function executeMultichainOpsWithGasRefund_ERC20((address, uint256, bytes32[], uint256, (bytes), bytes), (address, uint256, uint256), address) returns (address, uint256)", "function executeMultichainOpsWithGasRefund_ETH((address, uint256, bytes32[], uint256, (bytes), bytes), uint256, address) returns (address, uint256)", "function executeOpsWithoutSignature(address, (bytes))", "function executePreClaimOpsWithCompactStub(address, (uint256, uint256, uint256), (bytes32[], uint128, uint256, bytes32, bytes32, bytes32, bytes32), (bytes), bytes) returns (bool, bool)", "function executePreClaimOpsWithPermit2Stub(address, (uint256, uint256), (bytes32, uint128, bytes32, bytes32, bytes32), (bytes), bytes) returns (bytes32)", "function executeSinglechainOps((address, uint256, (bytes), bytes))", "function executeSinglechainOpsWithGasRefund_ERC20((address, uint256, (bytes), bytes), (address, uint256, uint256), address) returns (address, uint256)", "function executeSinglechainOpsWithGasRefund_ETH((address, uint256, (bytes), bytes), uint256, address) returns (address, uint256)", "function executeTargetOpsWithCompactStub(address, address, (uint256, uint256, uint256), (address, bytes32[], uint256, bytes32, bytes32, bytes32, uint256, bytes32), (bytes), bytes) returns (bytes32)", "function executeTargetOpsWithPermit2Stub(address, (uint256, uint256), (address, address, uint128, uint256, bytes32, bytes32, bytes32, (uint256, bytes32)), (bytes), bytes) returns (bytes32)", "function getCostInToken(uint256, uint256, uint256, uint256) pure returns (uint256)", "function isCompactIntentNonceConsumed(uint256, address) view returns (bool)", "function isInitialized(address) view returns (bool)", "function isModuleType(uint256) pure returns (bool)", "function isPermit2IntentNonceConsumed(uint256, address) view returns (bool)", "function isStandaloneIntentNonceConsumed(uint256, address) view returns (bool)", "function onInstall(bytes)", "function onUninstall(bytes)"];
|
|
15
16
|
readonly multicallAdapter: readonly ["function ADAPTER_TAG() pure returns (bytes12)", "function ARBITER() view returns (address)", "function _ROUTER() view returns (address)", "function __encodeRelayerData(address) pure returns (bytes)", "function isContractDeployed(address) view returns (bool)", "function multiCall((address, uint256, bytes)[]) payable", "function multiCallWithDrainToken((address, uint256, bytes)[], uint256[2][], address) payable", "function multicall_handleFill((uint256[2][], uint256[2][], (address, uint256, bytes)[], address, uint256)) payable returns (bytes4)", "function multicall_handleJITClaim((uint256[2][], (address, uint256, bytes)[])) returns (bytes4)", "function multicall_handlePayable(uint256, (address, uint256, bytes)[]) payable returns (bytes4)", "function semVer() view returns (bytes6)", "function semVerUnpacked() view returns (uint256, uint256, uint256)", "function settlementLayerSpender() view returns (address)", "function supportsInterface(bytes4) pure returns (bool)", "function version() view returns (bytes)"];
|
|
16
17
|
readonly multicallHandler: readonly ["function drainLeftoverToken(address, address)", "function drainLeftoverTokens(address[], address)", "function handleTargetOpsMulticall((bytes))", "function withdrawAllWETH(address)", "function withdrawWETH(address, uint256)"];
|
|
18
|
+
readonly nexus: readonly ["function accountId() pure returns (string)", "function addDeposit() payable", "function checkERC7739Support(bytes32, bytes) view returns (bytes4)", "function eip712Domain() view returns (bytes1, string, string, uint256, address, bytes32, uint256[])", "function emergencyUninstallHook((address, uint256, bytes, uint256), bytes) payable", "function entryPoint() view returns (address)", "function execute(bytes32, bytes) payable", "function executeComposable((address, uint256, bytes4, (uint8, bytes, (uint8, bytes)[])[], (uint8, bytes)[])[]) payable", "function executeFromExecutor(bytes32, bytes) payable returns (bytes[])", "function executeUserOp((address, uint256, bytes, bytes, bytes32, uint256, bytes32, bytes, bytes), bytes32) payable", "function getActiveHook() view returns (address)", "function getDeposit() view returns (uint256)", "function getExecutorsPaginated(address, uint256) view returns (address[], address)", "function getFallbackHandlerBySelector(bytes4) view returns (bytes1, address)", "function getImplementation() view returns (address)", "function getRegistry() view returns (address)", "function getValidatorsPaginated(address, uint256) view returns (address[], address)", "function initializeAccount(bytes) payable", "function installModule(uint256, address, bytes) payable", "function isInitialized() view returns (bool)", "function isModuleInstalled(uint256, address, bytes) view returns (bool)", "function isValidSignature(bytes32, bytes) view returns (bytes4)", "function nonce(uint192) view returns (uint256)", "function proxiableUUID() view returns (bytes32)", "function setRegistry(address, address[], uint8) payable", "function supportsExecutionMode(bytes32) view returns (bool)", "function supportsModule(uint256) view returns (bool)", "function uninstallModule(uint256, address, bytes) payable", "function upgradeToAndCall(address, bytes) payable", "function validateUserOp((address, uint256, bytes, bytes, bytes32, uint256, bytes32, bytes, bytes), bytes32, uint256) returns (uint256)", "function withdrawDepositTo(address, uint256) payable"];
|
|
19
|
+
readonly nexusAccountFactory: readonly ["function ACCOUNT_IMPLEMENTATION() view returns (address)", "function addStake(address, uint32) payable", "function cancelOwnershipHandover() payable", "function completeOwnershipHandover(address) payable", "function computeAccountAddress(bytes, bytes32) view returns (address)", "function createAccount(bytes, bytes32) payable returns (address)", "function owner() view returns (address)", "function ownershipHandoverExpiresAt(address) view returns (uint256)", "function renounceOwnership() payable", "function requestOwnershipHandover() payable", "function transferOwnership(address) payable", "function unlockStake(address)", "function withdrawStake(address, address)"];
|
|
20
|
+
readonly nexusBootstrap: readonly ["function eip712Domain() view returns (bytes1, string, string, uint256, address, bytes32, uint256[])", "function getActiveHook() view returns (address)", "function getExecutorsPaginated(address, uint256) view returns (address[], address)", "function getFallbackHandlerBySelector(bytes4) view returns (bytes1, address)", "function getRegistry() view returns (address)", "function getValidatorsPaginated(address, uint256) view returns (address[], address)", "function initNexus((address, bytes)[], (address, bytes)[], (address, bytes), (address, bytes)[], (uint256, address, bytes)[], (address, address[], uint8)) payable", "function initNexusNoRegistry((address, bytes)[], (address, bytes)[], (address, bytes), (address, bytes)[], (uint256, address, bytes)[]) payable", "function initNexusScoped((address, bytes)[], (address, bytes), (address, address[], uint8)) payable", "function initNexusScopedNoRegistry((address, bytes)[], (address, bytes)) payable", "function initNexusWithDefaultValidator(bytes) payable", "function initNexusWithDefaultValidatorAndOtherModules(bytes, (address, bytes)[], (address, bytes)[], (address, bytes), (address, bytes)[], (uint256, address, bytes)[], (address, address[], uint8)) payable", "function initNexusWithDefaultValidatorAndOtherModulesNoRegistry(bytes, (address, bytes)[], (address, bytes)[], (address, bytes), (address, bytes)[], (uint256, address, bytes)[]) payable", "function initNexusWithSingleValidator(address, bytes, (address, address[], uint8)) payable", "function initNexusWithSingleValidatorNoRegistry(address, bytes) payable", "function installModule(uint256, address, bytes) payable", "function isModuleInstalled(uint256, address, bytes) view returns (bool)", "function uninstallModule(uint256, address, bytes) payable"];
|
|
17
21
|
readonly oftFeeAdapter: readonly ["function ADAPTER_TAG() pure returns (bytes12)", "function ARBITER() view returns (address)", "function _ROUTER() view returns (address)", "function handleFill_oftFee_sendNative(address, uint256) payable returns (bytes4)", "function semVer() view returns (bytes6)", "function semVerUnpacked() view returns (uint256, uint256, uint256)", "function settlementLayerSpender() view returns (address)", "function supportsInterface(bytes4) pure returns (bool)", "function version() view returns (bytes)"];
|
|
18
22
|
readonly oftProxy: readonly ["function OFT_ADAPTER() view returns (address)", "function OFT_TOKEN() view returns (address)", "function SLIPPAGE_TOLERANCE_BASIS_POINTS() view returns (uint256)", "function sendMax((uint32, bytes32), (uint256, uint256), uint256) payable"];
|
|
19
23
|
readonly paymaster: readonly ["function INTENT_EXECUTOR() view returns (address)", "function callbackAllowMaxAmount(address, uint256) payable", "function settleGasRefund(address, address, uint256, address)", "function settleGasRefund_requireCallback(address, address, uint256, address)"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"abis.d.ts","sourceRoot":"","sources":["../../../src/generated/abis.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"abis.d.ts","sourceRoot":"","sources":["../../../src/generated/abis.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8dT,CAAC;AAEX,OAAO,EAAE,aAAa,EAAE,CAAC;AACzB,MAAM,MAAM,eAAe,GAAG,OAAO,aAAa,CAAC"}
|
|
@@ -136,6 +136,20 @@ const abiSignatures = {
|
|
|
136
136
|
"function setConfig(address, (uint8, address, uint8, uint8, address, bytes), (bytes, bytes, uint256, uint256, uint256[], uint256))",
|
|
137
137
|
"function verifyClaim(address, bytes32, bytes32, bytes, bytes12) view returns (bytes4)"
|
|
138
138
|
],
|
|
139
|
+
"intentExecutionPolicy": [
|
|
140
|
+
"function cancelOwnershipHandover() payable",
|
|
141
|
+
"function checkAction(bytes32, address, address, uint256, bytes) view returns (uint256)",
|
|
142
|
+
"function completeOwnershipHandover(address) payable",
|
|
143
|
+
"function initializeWithMultiplexer(address, bytes32, bytes)",
|
|
144
|
+
"function owner() view returns (address)",
|
|
145
|
+
"function ownershipHandoverExpiresAt(address) view returns (uint256)",
|
|
146
|
+
"function renounceOwnership() payable",
|
|
147
|
+
"function requestOwnershipHandover() payable",
|
|
148
|
+
"function setWhitelistedTargets((address, bool)[])",
|
|
149
|
+
"function supportsInterface(bytes4) pure returns (bool)",
|
|
150
|
+
"function transferOwnership(address) payable",
|
|
151
|
+
"function whitelistedTargets(address) view returns (bool)"
|
|
152
|
+
],
|
|
139
153
|
"intentExecutor": [
|
|
140
154
|
"function implementation() view returns (address)",
|
|
141
155
|
"function owner() view returns (address)",
|
|
@@ -217,6 +231,74 @@ const abiSignatures = {
|
|
|
217
231
|
"function withdrawAllWETH(address)",
|
|
218
232
|
"function withdrawWETH(address, uint256)"
|
|
219
233
|
],
|
|
234
|
+
"nexus": [
|
|
235
|
+
"function accountId() pure returns (string)",
|
|
236
|
+
"function addDeposit() payable",
|
|
237
|
+
"function checkERC7739Support(bytes32, bytes) view returns (bytes4)",
|
|
238
|
+
"function eip712Domain() view returns (bytes1, string, string, uint256, address, bytes32, uint256[])",
|
|
239
|
+
"function emergencyUninstallHook((address, uint256, bytes, uint256), bytes) payable",
|
|
240
|
+
"function entryPoint() view returns (address)",
|
|
241
|
+
"function execute(bytes32, bytes) payable",
|
|
242
|
+
"function executeComposable((address, uint256, bytes4, (uint8, bytes, (uint8, bytes)[])[], (uint8, bytes)[])[]) payable",
|
|
243
|
+
"function executeFromExecutor(bytes32, bytes) payable returns (bytes[])",
|
|
244
|
+
"function executeUserOp((address, uint256, bytes, bytes, bytes32, uint256, bytes32, bytes, bytes), bytes32) payable",
|
|
245
|
+
"function getActiveHook() view returns (address)",
|
|
246
|
+
"function getDeposit() view returns (uint256)",
|
|
247
|
+
"function getExecutorsPaginated(address, uint256) view returns (address[], address)",
|
|
248
|
+
"function getFallbackHandlerBySelector(bytes4) view returns (bytes1, address)",
|
|
249
|
+
"function getImplementation() view returns (address)",
|
|
250
|
+
"function getRegistry() view returns (address)",
|
|
251
|
+
"function getValidatorsPaginated(address, uint256) view returns (address[], address)",
|
|
252
|
+
"function initializeAccount(bytes) payable",
|
|
253
|
+
"function installModule(uint256, address, bytes) payable",
|
|
254
|
+
"function isInitialized() view returns (bool)",
|
|
255
|
+
"function isModuleInstalled(uint256, address, bytes) view returns (bool)",
|
|
256
|
+
"function isValidSignature(bytes32, bytes) view returns (bytes4)",
|
|
257
|
+
"function nonce(uint192) view returns (uint256)",
|
|
258
|
+
"function proxiableUUID() view returns (bytes32)",
|
|
259
|
+
"function setRegistry(address, address[], uint8) payable",
|
|
260
|
+
"function supportsExecutionMode(bytes32) view returns (bool)",
|
|
261
|
+
"function supportsModule(uint256) view returns (bool)",
|
|
262
|
+
"function uninstallModule(uint256, address, bytes) payable",
|
|
263
|
+
"function upgradeToAndCall(address, bytes) payable",
|
|
264
|
+
"function validateUserOp((address, uint256, bytes, bytes, bytes32, uint256, bytes32, bytes, bytes), bytes32, uint256) returns (uint256)",
|
|
265
|
+
"function withdrawDepositTo(address, uint256) payable"
|
|
266
|
+
],
|
|
267
|
+
"nexusAccountFactory": [
|
|
268
|
+
"function ACCOUNT_IMPLEMENTATION() view returns (address)",
|
|
269
|
+
"function addStake(address, uint32) payable",
|
|
270
|
+
"function cancelOwnershipHandover() payable",
|
|
271
|
+
"function completeOwnershipHandover(address) payable",
|
|
272
|
+
"function computeAccountAddress(bytes, bytes32) view returns (address)",
|
|
273
|
+
"function createAccount(bytes, bytes32) payable returns (address)",
|
|
274
|
+
"function owner() view returns (address)",
|
|
275
|
+
"function ownershipHandoverExpiresAt(address) view returns (uint256)",
|
|
276
|
+
"function renounceOwnership() payable",
|
|
277
|
+
"function requestOwnershipHandover() payable",
|
|
278
|
+
"function transferOwnership(address) payable",
|
|
279
|
+
"function unlockStake(address)",
|
|
280
|
+
"function withdrawStake(address, address)"
|
|
281
|
+
],
|
|
282
|
+
"nexusBootstrap": [
|
|
283
|
+
"function eip712Domain() view returns (bytes1, string, string, uint256, address, bytes32, uint256[])",
|
|
284
|
+
"function getActiveHook() view returns (address)",
|
|
285
|
+
"function getExecutorsPaginated(address, uint256) view returns (address[], address)",
|
|
286
|
+
"function getFallbackHandlerBySelector(bytes4) view returns (bytes1, address)",
|
|
287
|
+
"function getRegistry() view returns (address)",
|
|
288
|
+
"function getValidatorsPaginated(address, uint256) view returns (address[], address)",
|
|
289
|
+
"function initNexus((address, bytes)[], (address, bytes)[], (address, bytes), (address, bytes)[], (uint256, address, bytes)[], (address, address[], uint8)) payable",
|
|
290
|
+
"function initNexusNoRegistry((address, bytes)[], (address, bytes)[], (address, bytes), (address, bytes)[], (uint256, address, bytes)[]) payable",
|
|
291
|
+
"function initNexusScoped((address, bytes)[], (address, bytes), (address, address[], uint8)) payable",
|
|
292
|
+
"function initNexusScopedNoRegistry((address, bytes)[], (address, bytes)) payable",
|
|
293
|
+
"function initNexusWithDefaultValidator(bytes) payable",
|
|
294
|
+
"function initNexusWithDefaultValidatorAndOtherModules(bytes, (address, bytes)[], (address, bytes)[], (address, bytes), (address, bytes)[], (uint256, address, bytes)[], (address, address[], uint8)) payable",
|
|
295
|
+
"function initNexusWithDefaultValidatorAndOtherModulesNoRegistry(bytes, (address, bytes)[], (address, bytes)[], (address, bytes), (address, bytes)[], (uint256, address, bytes)[]) payable",
|
|
296
|
+
"function initNexusWithSingleValidator(address, bytes, (address, address[], uint8)) payable",
|
|
297
|
+
"function initNexusWithSingleValidatorNoRegistry(address, bytes) payable",
|
|
298
|
+
"function installModule(uint256, address, bytes) payable",
|
|
299
|
+
"function isModuleInstalled(uint256, address, bytes) view returns (bool)",
|
|
300
|
+
"function uninstallModule(uint256, address, bytes) payable"
|
|
301
|
+
],
|
|
220
302
|
"oftFeeAdapter": [
|
|
221
303
|
"function ADAPTER_TAG() pure returns (bytes12)",
|
|
222
304
|
"function ARBITER() view returns (address)",
|