Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/upset-tables-divide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"abitype": patch
---

Updated ABI parameter named tuple generation to use most common parameter names from Dune query.
153 changes: 0 additions & 153 deletions packages/abitype/src/abi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -245,156 +245,3 @@ export type TypedData = Pretty<
[_ in TypedDataType]?: never
}
>

////////////////////////////////////////////////////////////////////////////////////////////////////

// update lookup with `pnpm node scripts/genAbiParameterNameLookup.ts`
// biome-ignore format: no formatting
export interface AbiParameterTupleNameLookup<type> extends Record<string, [type]> {
_data: [_data: type]
a: [a: type]
account: [account: type]
accounts: [accounts: type]
address: [address: type]
addresses: [addresses: type]
admin: [admin: type]
allowFailure: [allowFailure: type]
allowed: [allowed: type]
amount: [amount: type]
approved: [approved: type]
approver: [approver: type]
ask: [ask: type]
asset: [asset: type]
assets: [assets: type]
authority: [authority: type]
available: [available: type]
b: [b: type]
balance: [balance: type]
bid: [bid: type]
buffer: [buffer: type]
c: [c: type]
call: [call: type]
callData: [callData: type]
caller: [caller: type]
calls: [calls: type]
clone: [clone: type]
coinType: [coinType: type]
count: [count: type]
currency: [currency: type]
d: [d: type]
data: [data: type]
deadline: [deadline: type]
decimals: [decimals: type]
dest: [dest: type]
divisor: [divisor: type]
dns: [dns: type]
dst: [dst: type]
e: [e: type]
endTime: [endTime: type]
ens: [ens: type]
errorData: [errorData: type]
f: [f: type]
failures: [failures: type]
from: [from: type]
funder: [funder: type]
g: [g: type]
gateway: [gateway: type]
gateways: [gateways: type]
guy: [guy: type]
h: [h: type]
hash: [hash: type]
hashes: [hashes: type]
i: [i: type]
id: [id: type]
ids: [ids: type]
idsLength: [idsLength: type]
implementation: [implementation: type]
index: [index: type]
interfaceId: [interfaceId: type]
j: [j: type]
k: [k: type]
key: [key: type]
l: [l: type]
label: [label: type]
length: [length: type]
limit: [limit: type]
m: [m: type]
market: [market: type]
memo: [memo: type]
message: [message: type]
n: [n: type]
name: [name: type]
needed: [needed: type]
new: [new: type]
next: [next: type]
nextOwner: [nextOwner: type]
node: [node: type]
nonce: [nonce: type]
nonceKey: [nonceKey: type]
numerator: [numerator: type]
o: [o: type]
offerer: [offerer: type]
old: [old: type]
operator: [operator: type]
order: [order: type]
orders: [orders: type]
owner: [owner: type]
p: [p: type]
policyId: [policyId: type]
policyType: [policyType: type]
previous: [previous: type]
previousOwner: [previousOwner: type]
price: [price: type]
primary: [primary: type]
proposer: [proposer: type]
q: [q: type]
queries: [queries: type]
quoteToken: [quoteToken: type]
r: [r: type]
receiver: [receiver: type]
recipient: [recipient: type]
refund: [refund: type]
required: [required: type]
resolvedName: [resolvedName: type]
resolver: [resolver: type]
responses: [responses: type]
restricted: [restricted: type]
returnData: [returnData: type]
reverseName: [reverseName: type]
reverseResolver: [reverseResolver: type]
s: [s: type]
secs: [secs: type]
selector: [selector: type]
sender: [sender: type]
shares: [shares: type]
signature: [signature: type]
signer: [signer: type]
source: [source: type]
src: [src: type]
startTime: [startTime: type]
status: [status: type]
success: [success: type]
symbol: [symbol: type]
t: [t: type]
target: [target: type]
timestamp: [timestamp: type]
to: [to: type]
token: [token: type]
tokenId: [tokenId: type]
ttl: [ttl: type]
u: [u: type]
updater: [updater: type]
user: [user: type]
v: [v: type]
value: [value: type]
values: [values: type]
valuesLength: [valuesLength: type]
version: [version: type]
w: [w: type]
wad: [wad: type]
weth: [weth: type]
x: [x: type]
y: [y: type]
z: [z: type]
zone: [zone: type]
}
Loading
Loading