@subsquid/evm-typegen 4.6.0 → 5.0.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/lib/abi.support.d.ts +3 -0
- package/lib/abi.support.d.ts.map +1 -0
- package/lib/abi.support.js +9 -0
- package/lib/abi.support.js.map +1 -0
- package/lib/description.d.ts +76 -0
- package/lib/description.d.ts.map +1 -0
- package/lib/description.js +156 -0
- package/lib/description.js.map +1 -0
- package/lib/main.js +36 -35
- package/lib/main.js.map +1 -1
- package/lib/multicall.d.ts +17 -13
- package/lib/multicall.d.ts.map +1 -1
- package/lib/multicall.js +9 -7
- package/lib/multicall.js.map +1 -1
- package/lib/typegen.d.ts +8 -23
- package/lib/typegen.d.ts.map +1 -1
- package/lib/typegen.js +267 -187
- package/lib/typegen.js.map +1 -1
- package/package.json +9 -9
- package/src/abi.support.ts +2 -0
- package/src/description.ts +221 -0
- package/src/main.ts +195 -194
- package/src/multicall.ts +171 -159
- package/src/typegen.ts +276 -227
- package/lib/util/types.d.ts +0 -3
- package/lib/util/types.d.ts.map +0 -1
- package/lib/util/types.js +0 -46
- package/lib/util/types.js.map +0 -1
- package/src/util/types.ts +0 -54
package/lib/typegen.js
CHANGED
|
@@ -1,233 +1,313 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
10
24
|
};
|
|
11
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
26
|
exports.Typegen = void 0;
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
const
|
|
27
|
+
const util_internal_code_printer_1 = require("@subsquid/util-internal-code-printer");
|
|
28
|
+
const fs = __importStar(require("node:fs"));
|
|
29
|
+
const description_1 = require("./description");
|
|
16
30
|
class Typegen {
|
|
17
|
-
constructor(dest, abi, basename, log) {
|
|
18
|
-
this.abi = abi;
|
|
31
|
+
constructor(dest, abi, basename, log, natspec) {
|
|
19
32
|
this.log = log;
|
|
20
|
-
this.
|
|
33
|
+
this.modules = new Set();
|
|
34
|
+
// Earlier versions of typegen emitted a single `${basename}.ts` file
|
|
35
|
+
// alongside the output dir. The current layout is a directory
|
|
36
|
+
// (`${basename}/index.ts` etc.). When TypeScript resolves
|
|
37
|
+
// `import './abi/foo'` it prefers `foo.ts` over `foo/index.ts`, so
|
|
38
|
+
// a stale legacy file would silently shadow the freshly generated
|
|
39
|
+
// module — builds keep passing against the old contents. Detect and
|
|
40
|
+
// remove the legacy file before we lay down the new directory.
|
|
41
|
+
const legacy = dest.path(`${basename}.ts`);
|
|
42
|
+
if (fs.existsSync(legacy) && fs.statSync(legacy).isFile()) {
|
|
43
|
+
log.warn(`removing stale ${legacy} from a previous typegen layout`);
|
|
44
|
+
fs.unlinkSync(legacy);
|
|
45
|
+
}
|
|
46
|
+
this.dest = dest.child(basename);
|
|
47
|
+
this.contract = (0, description_1.describe)(abi, natspec);
|
|
21
48
|
}
|
|
22
49
|
async generate() {
|
|
23
|
-
this.
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
this.
|
|
50
|
+
if (this.contract.events.length > 0) {
|
|
51
|
+
this.generateEvents();
|
|
52
|
+
this.modules.add('events');
|
|
53
|
+
}
|
|
54
|
+
if (this.contract.functions.length > 0) {
|
|
55
|
+
this.generateFunctions();
|
|
56
|
+
this.modules.add('functions');
|
|
57
|
+
}
|
|
28
58
|
this.generateContract();
|
|
29
|
-
this.
|
|
30
|
-
this.generateFunctionTypes();
|
|
31
|
-
await this.out.write();
|
|
32
|
-
this.log.info(`saved ${this.out.file}`);
|
|
59
|
+
this.writeIndex();
|
|
33
60
|
}
|
|
34
61
|
generateEvents() {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
62
|
+
const out = new TypeModuleOutput(this.dest.path('events.ts'));
|
|
63
|
+
out.import('support', 'event');
|
|
64
|
+
out.import('support', 'EventParams', 'EParams', true);
|
|
65
|
+
for (let i = 0; i < this.contract.events.length; i++) {
|
|
66
|
+
if (i > 0)
|
|
67
|
+
out.line();
|
|
68
|
+
out.printEvent(this.contract.events[i]);
|
|
38
69
|
}
|
|
39
|
-
|
|
40
|
-
this.
|
|
41
|
-
for (let e of events) {
|
|
42
|
-
this.out.line(`${this.getPropName(e)}: event("${this.topic0(e)}", "${this.signature(e)}", {${this.toTypes(e.inputs)}}),`);
|
|
43
|
-
}
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
topic0(e) {
|
|
47
|
-
return `0x${(0, evm_abi_1.keccak256)(this.signature(e)).toString('hex')}`;
|
|
48
|
-
}
|
|
49
|
-
toTypes(inputs) {
|
|
50
|
-
return inputs.map((input, idx) => (0, types_1.getType)(input, idx)).join(', ');
|
|
70
|
+
out.write();
|
|
71
|
+
this.log.info(`saved ${out.file}`);
|
|
51
72
|
}
|
|
52
73
|
generateFunctions() {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
74
|
+
const out = new TypeModuleOutput(this.dest.path('functions.ts'));
|
|
75
|
+
out.import('support', 'FunctionArguments', undefined, true);
|
|
76
|
+
out.import('support', 'FunctionReturn', undefined, true);
|
|
77
|
+
for (let i = 0; i < this.contract.functions.length; i++) {
|
|
78
|
+
if (i > 0)
|
|
79
|
+
out.line();
|
|
80
|
+
out.printFunction(this.contract.functions[i]);
|
|
56
81
|
}
|
|
57
|
-
|
|
58
|
-
this.
|
|
59
|
-
for (let f of functions) {
|
|
60
|
-
let returnType = '';
|
|
61
|
-
if (f.outputs?.length === 1) {
|
|
62
|
-
returnType = (0, types_1.getType)({ ...f.outputs[0], name: undefined });
|
|
63
|
-
}
|
|
64
|
-
if (f.outputs?.length > 1) {
|
|
65
|
-
returnType = `{${this.toTypes(f.outputs)}}`;
|
|
66
|
-
}
|
|
67
|
-
const funType = f.stateMutability === 'view' || f.stateMutability === 'pure' ? 'viewFun' : 'fun';
|
|
68
|
-
this.out.line(`${this.getPropName(f)}: ${funType}("${this.functionSelector(f)}", "${this.signature(f)}", {${this.toTypes(f.inputs)}}, ${returnType}),`);
|
|
69
|
-
}
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
functionSelector(f) {
|
|
73
|
-
const sighash = this.signature(f);
|
|
74
|
-
return `0x${(0, evm_abi_1.keccak256)(sighash).slice(0, 4).toString('hex')}`;
|
|
82
|
+
out.write();
|
|
83
|
+
this.log.info(`saved ${out.file}`);
|
|
75
84
|
}
|
|
76
85
|
generateContract() {
|
|
77
|
-
this.
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
86
|
+
const viewFns = this.contract.functions.filter((f) => f.outputs.length > 0);
|
|
87
|
+
const out = new TypeModuleOutput(this.dest.path('contract.ts'));
|
|
88
|
+
out.import('support', 'ContractBase');
|
|
89
|
+
for (const f of viewFns) {
|
|
90
|
+
out.importFrom('./functions.js', { name: f.key });
|
|
91
|
+
if (f.inputs.length > 0) {
|
|
92
|
+
out.importFrom('./functions.js', { name: f.paramsTypeName, type: true });
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
out.line('export class Contract extends ContractBase {');
|
|
96
|
+
out.indentation(() => {
|
|
97
|
+
for (let i = 0; i < viewFns.length; i++) {
|
|
98
|
+
const f = viewFns[i];
|
|
99
|
+
if (i > 0)
|
|
100
|
+
out.line();
|
|
101
|
+
const argNames = f.inputs.map((a) => a.name);
|
|
102
|
+
const argList = f.inputs
|
|
103
|
+
.map((a) => `${a.name}: ${f.paramsTypeName}[${JSON.stringify(a.name)}]`)
|
|
104
|
+
.join(', ');
|
|
105
|
+
out.line(`${f.key}(${argList}) {`);
|
|
106
|
+
out.indentation(() => {
|
|
107
|
+
const argsObj = argNames.length === 0 ? '{}' : `{${argNames.join(', ')}}`;
|
|
108
|
+
out.line(`return this.eth_call(${f.key}, ${argsObj})`);
|
|
109
|
+
});
|
|
110
|
+
out.line('}');
|
|
94
111
|
}
|
|
95
112
|
});
|
|
113
|
+
out.line('}');
|
|
114
|
+
out.write();
|
|
115
|
+
this.log.info(`saved ${out.file}`);
|
|
96
116
|
}
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
117
|
+
writeIndex() {
|
|
118
|
+
const out = new util_internal_code_printer_1.FileOutput(this.dest.path('index.ts'));
|
|
119
|
+
for (const m of this.modules) {
|
|
120
|
+
out.line(`export * as ${m} from './${m}.js'`);
|
|
100
121
|
}
|
|
101
|
-
|
|
102
|
-
|
|
122
|
+
out.line();
|
|
123
|
+
out.line(`export { Contract } from './contract.js'`);
|
|
124
|
+
out.write();
|
|
125
|
+
this.log.info(`saved ${out.file}`);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
exports.Typegen = Typegen;
|
|
129
|
+
const EVM_CODEC_MODULE = '@subsquid/evm-codec';
|
|
130
|
+
const SUPPORT_MODULE = '../abi.support.js';
|
|
131
|
+
const BUCKETS = {
|
|
132
|
+
evmCodec: EVM_CODEC_MODULE,
|
|
133
|
+
support: SUPPORT_MODULE,
|
|
134
|
+
};
|
|
135
|
+
class TypeModuleOutput extends util_internal_code_printer_1.FileOutput {
|
|
136
|
+
constructor(file) {
|
|
137
|
+
super(file);
|
|
138
|
+
// Seeded so evm-codec + abi.support always appear first in the output.
|
|
139
|
+
this.imports = new Map([
|
|
140
|
+
[EVM_CODEC_MODULE, []],
|
|
141
|
+
[SUPPORT_MODULE, []],
|
|
142
|
+
]);
|
|
143
|
+
this.lazy(() => {
|
|
144
|
+
let printed = 0;
|
|
145
|
+
for (const [from, imps] of this.imports) {
|
|
146
|
+
printed += this.printImports(from, imps);
|
|
147
|
+
}
|
|
148
|
+
if (printed > 0)
|
|
149
|
+
this.line();
|
|
150
|
+
});
|
|
103
151
|
}
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
.map((param) => this.canonicalType(param))
|
|
107
|
-
.join(',')})`;
|
|
152
|
+
import(bucket, name, alias, type = false) {
|
|
153
|
+
this.importFrom(BUCKETS[bucket], { name, alias, type });
|
|
108
154
|
}
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
return `'${this.signature(item)}'`;
|
|
155
|
+
importFrom(from, imp) {
|
|
156
|
+
let list = this.imports.get(from);
|
|
157
|
+
if (!list) {
|
|
158
|
+
list = [];
|
|
159
|
+
this.imports.set(from, list);
|
|
115
160
|
}
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
161
|
+
list.push(imp);
|
|
162
|
+
}
|
|
163
|
+
printImports(from, imports) {
|
|
164
|
+
if (imports.length === 0)
|
|
165
|
+
return 0;
|
|
166
|
+
const seen = new Set();
|
|
167
|
+
const values = [];
|
|
168
|
+
const types = [];
|
|
169
|
+
for (const imp of imports) {
|
|
170
|
+
const key = `${imp.type ? 't' : 'v'}:${imp.name}:${imp.alias || ''}`;
|
|
171
|
+
if (seen.has(key))
|
|
172
|
+
continue;
|
|
173
|
+
seen.add(key);
|
|
174
|
+
(imp.type ? types : values).push(imp);
|
|
120
175
|
}
|
|
176
|
+
const fmt = (list) => list
|
|
177
|
+
.map((i) => (i.alias ? `${i.name} as ${i.alias}` : i.name))
|
|
178
|
+
.sort()
|
|
179
|
+
.join(', ');
|
|
180
|
+
if (values.length > 0)
|
|
181
|
+
this.line(`import { ${fmt(values)} } from '${from}'`);
|
|
182
|
+
if (types.length > 0)
|
|
183
|
+
this.line(`import type { ${fmt(types)} } from '${from}'`);
|
|
184
|
+
return (values.length > 0 ? 1 : 0) + (types.length > 0 ? 1 : 0);
|
|
121
185
|
}
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
186
|
+
printDoc(signature, docs) {
|
|
187
|
+
const docLines = [];
|
|
188
|
+
if (docs?.notice)
|
|
189
|
+
docLines.push(docs.notice);
|
|
190
|
+
if (docs?.dev)
|
|
191
|
+
docLines.push(`@dev ${docs.dev}`);
|
|
192
|
+
if (docLines.length === 0) {
|
|
193
|
+
this.line(`/** ${signature} */`);
|
|
125
194
|
}
|
|
126
195
|
else {
|
|
127
|
-
|
|
196
|
+
this.line('/**');
|
|
197
|
+
this.line(` * ${signature}`);
|
|
198
|
+
this.line(' *');
|
|
199
|
+
for (const l of docLines)
|
|
200
|
+
this.line(` * ${l}`);
|
|
201
|
+
this.line(' */');
|
|
128
202
|
}
|
|
129
203
|
}
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
204
|
+
printEvent(e) {
|
|
205
|
+
this.printDoc(e.signature, e.docs);
|
|
206
|
+
if (e.inputs.length === 0) {
|
|
207
|
+
this.line(`export const ${e.key} = event('${e.topic}', {})`);
|
|
133
208
|
}
|
|
134
209
|
else {
|
|
135
|
-
|
|
210
|
+
this.line(`export const ${e.key} = event('${e.topic}', {`);
|
|
211
|
+
this.indentation(() => {
|
|
212
|
+
for (const f of e.inputs)
|
|
213
|
+
this.printFieldDsl(f, ',');
|
|
214
|
+
});
|
|
215
|
+
this.line('})');
|
|
136
216
|
}
|
|
217
|
+
this.line(`export type ${e.typeName} = EParams<typeof ${e.key}>`);
|
|
137
218
|
}
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
const
|
|
143
|
-
const
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
if (this.getOverloads(e) === 1) {
|
|
148
|
-
return `${this.capitalize(e.name)}EventArgs`;
|
|
219
|
+
printFunction(f) {
|
|
220
|
+
this.import('support', 'func');
|
|
221
|
+
this.printDoc(f.signature, f.docs);
|
|
222
|
+
const prefix = `export const ${f.key} = func('${f.selector}', `;
|
|
223
|
+
const hasInputs = f.inputs.length > 0;
|
|
224
|
+
const hasOutputs = f.outputs.length > 0;
|
|
225
|
+
const singleReturn = f.outputs.length === 1;
|
|
226
|
+
if (!hasInputs && !hasOutputs) {
|
|
227
|
+
this.line(`${prefix}{})`);
|
|
149
228
|
}
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
}
|
|
153
|
-
generateEventTypes() {
|
|
154
|
-
const events = this.getEvents();
|
|
155
|
-
if (events.length == 0) {
|
|
156
|
-
return;
|
|
229
|
+
else if (!hasInputs && singleReturn) {
|
|
230
|
+
this.printTypeDsl(`${prefix}{}, `, f.outputs[0].type, ')');
|
|
157
231
|
}
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
232
|
+
else if (!hasInputs) {
|
|
233
|
+
this.import('evmCodec', 'struct');
|
|
234
|
+
this.line(`${prefix}{}, struct({`);
|
|
235
|
+
this.indentation(() => {
|
|
236
|
+
for (const o of f.outputs)
|
|
237
|
+
this.printFieldDsl(o, ',');
|
|
238
|
+
});
|
|
239
|
+
this.line('}))');
|
|
163
240
|
}
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
241
|
+
else {
|
|
242
|
+
this.line(`${prefix}{`);
|
|
243
|
+
this.indentation(() => {
|
|
244
|
+
for (const inp of f.inputs)
|
|
245
|
+
this.printFieldDsl(inp, ',');
|
|
246
|
+
});
|
|
247
|
+
if (!hasOutputs) {
|
|
248
|
+
this.line('})');
|
|
249
|
+
}
|
|
250
|
+
else if (singleReturn) {
|
|
251
|
+
this.printTypeDsl('}, ', f.outputs[0].type, ')');
|
|
252
|
+
}
|
|
253
|
+
else {
|
|
254
|
+
this.import('evmCodec', 'struct');
|
|
255
|
+
this.line('}, struct({');
|
|
256
|
+
this.indentation(() => {
|
|
257
|
+
for (const o of f.outputs)
|
|
258
|
+
this.printFieldDsl(o, ',');
|
|
259
|
+
});
|
|
260
|
+
this.line('}))');
|
|
261
|
+
}
|
|
168
262
|
}
|
|
169
|
-
|
|
170
|
-
|
|
263
|
+
this.line(`export type ${f.paramsTypeName} = FunctionArguments<typeof ${f.key}>`);
|
|
264
|
+
this.line(`export type ${f.returnTypeName} = FunctionReturn<typeof ${f.key}>`);
|
|
171
265
|
}
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
266
|
+
printFieldDsl(f, end) {
|
|
267
|
+
if (f.doc)
|
|
268
|
+
this.line(`/** ${f.doc} */`);
|
|
269
|
+
const start = `${propKey(f.name)}: `;
|
|
270
|
+
if (f.indexed) {
|
|
271
|
+
this.import('support', 'indexed');
|
|
272
|
+
this.printTypeDsl(`${start}indexed(`, f.type, `)${end}`);
|
|
175
273
|
return;
|
|
176
274
|
}
|
|
177
|
-
this.
|
|
178
|
-
this.out.line(`/// Function types`);
|
|
179
|
-
for (let f of functions) {
|
|
180
|
-
const propName = this.getPropNameGetter(f);
|
|
181
|
-
const [args, ret] = this.toFunctionTypes(f);
|
|
182
|
-
this.out.line(`export type ${args} = FunctionArguments<typeof functions${propName}>`);
|
|
183
|
-
this.out.line(`export type ${ret} = FunctionReturn<typeof functions${propName}>`);
|
|
184
|
-
this.out.line();
|
|
185
|
-
}
|
|
275
|
+
this.printTypeDsl(start, f.type, end);
|
|
186
276
|
}
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
277
|
+
printTypeDsl(start, type, end) {
|
|
278
|
+
switch (type.kind) {
|
|
279
|
+
case 'primitive':
|
|
280
|
+
this.import('evmCodec', type.name);
|
|
281
|
+
this.line(start + type.name + end);
|
|
282
|
+
return;
|
|
283
|
+
case 'array':
|
|
284
|
+
this.import('evmCodec', 'array');
|
|
285
|
+
this.printTypeDsl(`${start}array(`, type.item, `)${end}`);
|
|
286
|
+
return;
|
|
287
|
+
case 'fixedArray':
|
|
288
|
+
this.import('evmCodec', 'fixedSizeArray');
|
|
289
|
+
this.printTypeDsl(`${start}fixedSizeArray(`, type.item, `, ${type.size})${end}`);
|
|
290
|
+
return;
|
|
291
|
+
case 'tuple': {
|
|
292
|
+
this.import('evmCodec', 'struct');
|
|
293
|
+
if (type.fields.length === 0) {
|
|
294
|
+
this.line(`${start}struct({})${end}`);
|
|
295
|
+
return;
|
|
296
|
+
}
|
|
297
|
+
this.line(`${start}struct({`);
|
|
298
|
+
this.indentation(() => {
|
|
299
|
+
for (const f of type.fields)
|
|
300
|
+
this.printFieldDsl(f, ',');
|
|
301
|
+
});
|
|
302
|
+
this.line(`})${end}`);
|
|
303
|
+
return;
|
|
304
|
+
}
|
|
198
305
|
}
|
|
199
|
-
return overloads;
|
|
200
|
-
}
|
|
201
|
-
getFunctions() {
|
|
202
|
-
return this.abi.filter((f) => f.type === 'function');
|
|
203
|
-
}
|
|
204
|
-
getEvents() {
|
|
205
|
-
return this.abi.filter((f) => f.type === 'event');
|
|
206
306
|
}
|
|
207
307
|
}
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
__metadata("design:returntype", Object)
|
|
214
|
-
], Typegen.prototype, "functionOverloads", null);
|
|
215
|
-
__decorate([
|
|
216
|
-
util_internal_1.def,
|
|
217
|
-
__metadata("design:type", Function),
|
|
218
|
-
__metadata("design:paramtypes", []),
|
|
219
|
-
__metadata("design:returntype", Object)
|
|
220
|
-
], Typegen.prototype, "eventOverloads", null);
|
|
221
|
-
__decorate([
|
|
222
|
-
util_internal_1.def,
|
|
223
|
-
__metadata("design:type", Function),
|
|
224
|
-
__metadata("design:paramtypes", []),
|
|
225
|
-
__metadata("design:returntype", Array)
|
|
226
|
-
], Typegen.prototype, "getFunctions", null);
|
|
227
|
-
__decorate([
|
|
228
|
-
util_internal_1.def,
|
|
229
|
-
__metadata("design:type", Function),
|
|
230
|
-
__metadata("design:paramtypes", []),
|
|
231
|
-
__metadata("design:returntype", Array)
|
|
232
|
-
], Typegen.prototype, "getEvents", null);
|
|
308
|
+
function propKey(name) {
|
|
309
|
+
if (/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(name))
|
|
310
|
+
return name;
|
|
311
|
+
return JSON.stringify(name);
|
|
312
|
+
}
|
|
233
313
|
//# sourceMappingURL=typegen.js.map
|
package/lib/typegen.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typegen.js","sourceRoot":"","sources":["../src/typegen.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,2DAA6C;AAC7C,+CAA6C;AAC7C,wCAAsC;AAItC,MAAa,OAAO;IAGlB,YACE,IAAY,EACJ,GAAQ,EAChB,QAAgB,EACR,GAAW;QAFX,QAAG,GAAH,GAAG,CAAK;QAER,QAAG,GAAH,GAAG,CAAQ;QAE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gBACrB,OAAM;YACV,CAAC;QACL,CAAC;IACL,CAAC;CACJ;AAED,SAAS,OAAO,CAAC,IAAY;IACzB,IAAI,4BAA4B,CAAC,IAAI,CAAC,IAAI,CAAC;QAAE,OAAO,IAAI,CAAA;IACxD,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAA;AAC/B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@subsquid/evm-typegen",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"description": "CLI for generating typescript types and decode implementations for evm logs",
|
|
5
5
|
"license": "GPL-3.0-or-later",
|
|
6
|
-
"repository": "git@github.com:subsquid/squid.git",
|
|
6
|
+
"repository": "git@github.com:subsquid/squid-sdk.git",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
9
9
|
},
|
|
@@ -16,20 +16,20 @@
|
|
|
16
16
|
"squid-evm-typegen": "bin/run.js"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@subsquid/http-client": "^1.8.
|
|
20
|
-
"@subsquid/logger": "^1.
|
|
21
|
-
"@subsquid/util-internal": "^3.
|
|
19
|
+
"@subsquid/http-client": "^1.8.1",
|
|
20
|
+
"@subsquid/logger": "^1.6.0",
|
|
21
|
+
"@subsquid/util-internal": "^3.3.0",
|
|
22
22
|
"@subsquid/util-internal-code-printer": "^1.2.2",
|
|
23
23
|
"@subsquid/util-internal-commander": "^1.4.0",
|
|
24
|
-
"@subsquid/evm-codec": "^0.
|
|
25
|
-
"@subsquid/evm-abi": "^0.
|
|
24
|
+
"@subsquid/evm-codec": "^1.0.0",
|
|
25
|
+
"@subsquid/evm-abi": "^1.0.0",
|
|
26
26
|
"commander": "^11.1.0",
|
|
27
27
|
"fastest-levenshtein": "^1.0.16"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@types/node": "^
|
|
30
|
+
"@types/node": "^24.0.0",
|
|
31
31
|
"abitype": "^1.0.4",
|
|
32
|
-
"typescript": "
|
|
32
|
+
"typescript": "5.5.4"
|
|
33
33
|
},
|
|
34
34
|
"scripts": {
|
|
35
35
|
"build": "rm -rf lib && tsc"
|