Appearance
Your ABI library
Your ABI library, at the bottom of the rail, holds ABIs you add yourself, for contracts no registry has verified, under names your queries use.
A query uses one by name, as with { abi: 'Vault' } after its source. The rail lists each entry with how many items it has.
Adding an ABI
Press Add ABI. Give the ABI a name, then paste or drop the document it came in. Read a contract nobody has verified walks through it, from a compiler's artifact to a query's rows. You can paste, drop or choose with Choose file…:
- a JSON ABI, an array of functions and events
- a compiler artifact from Foundry, Hardhat or Truffle
- a Solidity
metadata.json - a saved Etherscan response
- a JSON array of signatures, as
["function totalAssets() view returns (uint256)"]
The dialog says what it recognised, such as "Compiler artifact for Vault — 3 items". When the document carries a name, the dialog fills in the name from it. Only the ABI is kept. The rest of the document is not sent.
A name is letters, digits, _, . or -, up to 64 characters. Case matters, because the name is what you write in queries. A name already in your library turns Add ABI into Replace. Queries that use the name then read the new contents. Runs already made keep the ABI they ran with. If the dialog cannot read your library, it tells you that it did not check the name. If the name is already in your library, the upload replaces that ABI.
An entry
Click an entry to see it: how many items it has, when you uploaded it, and every function, event and error in it.
- Insert writes its reference,
with { abi: 'Vault' }, at the editor's cursor. - Rename gives it a new name. You must change queries that use the old name to use the new one. Runs already made stay as they are.
- Replace contents keeps the name and takes a new document, as Add does.
- Delete… asks first. Queries that use it stop resolving it, with CQL2008. Runs already made keep their results.
See also
- Read a contract nobody has verified — from an artifact to a query's rows.
- Finding a contract's ABI — where CQL looks before your library.