Skip to content

Commit c875be3

Browse files
andrewhong5297tmm
andauthored
add input names (#286)
* add input names * feat: use csv to generate names * chore: changeset --------- Co-authored-by: Tom Meagher <[email protected]>
1 parent 52b9ba4 commit c875be3

File tree

7 files changed

+30111
-169
lines changed

7 files changed

+30111
-169
lines changed

.changeset/upset-tables-divide.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"abitype": patch
3+
---
4+
5+
Updated ABI parameter named tuple generation to use most common parameter names from Dune query.

packages/abitype/src/abi.ts

Lines changed: 0 additions & 153 deletions
Original file line numberDiff line numberDiff line change
@@ -245,156 +245,3 @@ export type TypedData = Pretty<
245245
[_ in TypedDataType]?: never
246246
}
247247
>
248-
249-
////////////////////////////////////////////////////////////////////////////////////////////////////
250-
251-
// update lookup with `pnpm node scripts/genAbiParameterNameLookup.ts`
252-
// biome-ignore format: no formatting
253-
export interface AbiParameterTupleNameLookup<type> extends Record<string, [type]> {
254-
_data: [_data: type]
255-
a: [a: type]
256-
account: [account: type]
257-
accounts: [accounts: type]
258-
address: [address: type]
259-
addresses: [addresses: type]
260-
admin: [admin: type]
261-
allowFailure: [allowFailure: type]
262-
allowed: [allowed: type]
263-
amount: [amount: type]
264-
approved: [approved: type]
265-
approver: [approver: type]
266-
ask: [ask: type]
267-
asset: [asset: type]
268-
assets: [assets: type]
269-
authority: [authority: type]
270-
available: [available: type]
271-
b: [b: type]
272-
balance: [balance: type]
273-
bid: [bid: type]
274-
buffer: [buffer: type]
275-
c: [c: type]
276-
call: [call: type]
277-
callData: [callData: type]
278-
caller: [caller: type]
279-
calls: [calls: type]
280-
clone: [clone: type]
281-
coinType: [coinType: type]
282-
count: [count: type]
283-
currency: [currency: type]
284-
d: [d: type]
285-
data: [data: type]
286-
deadline: [deadline: type]
287-
decimals: [decimals: type]
288-
dest: [dest: type]
289-
divisor: [divisor: type]
290-
dns: [dns: type]
291-
dst: [dst: type]
292-
e: [e: type]
293-
endTime: [endTime: type]
294-
ens: [ens: type]
295-
errorData: [errorData: type]
296-
f: [f: type]
297-
failures: [failures: type]
298-
from: [from: type]
299-
funder: [funder: type]
300-
g: [g: type]
301-
gateway: [gateway: type]
302-
gateways: [gateways: type]
303-
guy: [guy: type]
304-
h: [h: type]
305-
hash: [hash: type]
306-
hashes: [hashes: type]
307-
i: [i: type]
308-
id: [id: type]
309-
ids: [ids: type]
310-
idsLength: [idsLength: type]
311-
implementation: [implementation: type]
312-
index: [index: type]
313-
interfaceId: [interfaceId: type]
314-
j: [j: type]
315-
k: [k: type]
316-
key: [key: type]
317-
l: [l: type]
318-
label: [label: type]
319-
length: [length: type]
320-
limit: [limit: type]
321-
m: [m: type]
322-
market: [market: type]
323-
memo: [memo: type]
324-
message: [message: type]
325-
n: [n: type]
326-
name: [name: type]
327-
needed: [needed: type]
328-
new: [new: type]
329-
next: [next: type]
330-
nextOwner: [nextOwner: type]
331-
node: [node: type]
332-
nonce: [nonce: type]
333-
nonceKey: [nonceKey: type]
334-
numerator: [numerator: type]
335-
o: [o: type]
336-
offerer: [offerer: type]
337-
old: [old: type]
338-
operator: [operator: type]
339-
order: [order: type]
340-
orders: [orders: type]
341-
owner: [owner: type]
342-
p: [p: type]
343-
policyId: [policyId: type]
344-
policyType: [policyType: type]
345-
previous: [previous: type]
346-
previousOwner: [previousOwner: type]
347-
price: [price: type]
348-
primary: [primary: type]
349-
proposer: [proposer: type]
350-
q: [q: type]
351-
queries: [queries: type]
352-
quoteToken: [quoteToken: type]
353-
r: [r: type]
354-
receiver: [receiver: type]
355-
recipient: [recipient: type]
356-
refund: [refund: type]
357-
required: [required: type]
358-
resolvedName: [resolvedName: type]
359-
resolver: [resolver: type]
360-
responses: [responses: type]
361-
restricted: [restricted: type]
362-
returnData: [returnData: type]
363-
reverseName: [reverseName: type]
364-
reverseResolver: [reverseResolver: type]
365-
s: [s: type]
366-
secs: [secs: type]
367-
selector: [selector: type]
368-
sender: [sender: type]
369-
shares: [shares: type]
370-
signature: [signature: type]
371-
signer: [signer: type]
372-
source: [source: type]
373-
src: [src: type]
374-
startTime: [startTime: type]
375-
status: [status: type]
376-
success: [success: type]
377-
symbol: [symbol: type]
378-
t: [t: type]
379-
target: [target: type]
380-
timestamp: [timestamp: type]
381-
to: [to: type]
382-
token: [token: type]
383-
tokenId: [tokenId: type]
384-
ttl: [ttl: type]
385-
u: [u: type]
386-
updater: [updater: type]
387-
user: [user: type]
388-
v: [v: type]
389-
value: [value: type]
390-
values: [values: type]
391-
valuesLength: [valuesLength: type]
392-
version: [version: type]
393-
w: [w: type]
394-
wad: [wad: type]
395-
weth: [weth: type]
396-
x: [x: type]
397-
y: [y: type]
398-
z: [z: type]
399-
zone: [zone: type]
400-
}

0 commit comments

Comments
 (0)