Files

42 lines
1.0 KiB
TeX

\section{Smart Contract ABI}
\begin{lstlisting}[caption=Experience Registry ABI (Simplified)]
[
{
"type": "function",
"name": "updateLibrary",
"inputs": [
{"name": "_merkleRoot", "type": "bytes32"},
{"name": "_ipfsCID", "type": "string"},
{"name": "_proof", "type": "bytes32[]"}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "getLatestLibrary",
"inputs": [],
"outputs": [
{"name": "merkleRoot", "type": "bytes32"},
{"name": "ipfsCID", "type": "string"},
{"name": "arweaveID", "type": "string"},
{"name": "version", "type": "uint256"},
{"name": "timestamp", "type": "uint256"}
],
"stateMutability": "view"
},
{
"type": "event",
"name": "LibraryUpdated",
"inputs": [
{"indexed": true, "name": "version", "type": "uint256"},
{"indexed": false, "name": "merkleRoot", "type": "bytes32"},
{"indexed": false, "name": "ipfsCID", "type": "string"}
]
}
]
\end{lstlisting}