Skip to content

Commit

Permalink
Update docs to reflect the latest Keyspace
Browse files Browse the repository at this point in the history
  • Loading branch information
niran committed Dec 3, 2024
1 parent 7c5e747 commit 8e67716
Show file tree
Hide file tree
Showing 8 changed files with 181 additions and 276 deletions.
211 changes: 93 additions & 118 deletions abis/SmartWallet.json
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,42 @@
],
"stateMutability": "view"
},
{
"type": "function",
"name": "hookIsNewConfigValid",
"inputs": [
{
"name": "newConfig",
"type": "tuple",
"internalType": "struct ConfigLib.Config",
"components": [
{
"name": "nonce",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "data",
"type": "bytes",
"internalType": "bytes"
}
]
},
{
"name": "authorizationProof",
"type": "bytes",
"internalType": "bytes"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "implementation",
Expand Down Expand Up @@ -447,41 +483,6 @@
],
"stateMutability": "view"
},
{
"type": "function",
"name": "preconfirmConfig",
"inputs": [
{
"name": "confirmedConfigHashIndex",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "newConfig",
"type": "tuple",
"internalType": "struct ConfigLib.Config",
"components": [
{
"name": "nonce",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "data",
"type": "bytes",
"internalType": "bytes"
}
]
},
{
"name": "authorizationProof",
"type": "bytes",
"internalType": "bytes"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "proxiableUUID",
Expand Down Expand Up @@ -536,7 +537,7 @@
]
},
{
"name": "authorizationProof",
"name": "authorizeAndValidateProof",
"type": "bytes",
"internalType": "bytes"
}
Expand All @@ -562,36 +563,6 @@
"outputs": [],
"stateMutability": "payable"
},
{
"type": "function",
"name": "validateConfigUpdateHook",
"inputs": [
{
"name": "newConfig",
"type": "tuple",
"internalType": "struct ConfigLib.Config",
"components": [
{
"name": "nonce",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "data",
"type": "bytes",
"internalType": "bytes"
}
]
},
{
"name": "authorizationProof",
"type": "bytes",
"internalType": "bytes"
}
],
"outputs": [],
"stateMutability": "view"
},
{
"type": "function",
"name": "validateUserOp",
Expand Down Expand Up @@ -697,19 +668,6 @@
],
"anonymous": false
},
{
"type": "event",
"name": "KeystoreConfigPreconfirmed",
"inputs": [
{
"name": "configHash",
"type": "bytes32",
"indexed": true,
"internalType": "bytes32"
}
],
"anonymous": false
},
{
"type": "event",
"name": "KeystoreConfigSet",
Expand Down Expand Up @@ -738,38 +696,28 @@
},
{
"type": "error",
"name": "BlockHashMismatch",
"name": "BeaconRootDoesNotMatch",
"inputs": [
{
"name": "l1Blockhash",
"name": "expected",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "expectedL1BlockHash",
"name": "actual",
"type": "bytes32",
"internalType": "bytes32"
}
]
},
{
"type": "error",
"name": "ConfirmedConfigHashNotFound",
"name": "BeaconRootsOracleCallFailed",
"inputs": [
{
"name": "confirmedConfigHashIndex",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "preConfirmedConfigHashAtIndex",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "expectedConfirmedConfigHash",
"type": "bytes32",
"internalType": "bytes32"
"name": "callData",
"type": "bytes",
"internalType": "bytes"
}
]
},
Expand All @@ -796,24 +744,13 @@
},
{
"type": "error",
"name": "InitialNonceIsNotZero",
"name": "ExecutionBlockHashMerkleProofFailed",
"inputs": []
},
{
"type": "error",
"name": "InvalidBlockHeader",
"inputs": [
{
"name": "blockHeaderHash",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "blockHash",
"type": "bytes32",
"internalType": "bytes32"
}
]
"name": "InitialNonceIsNotZero",
"inputs": []
},
{
"type": "error",
Expand Down Expand Up @@ -844,14 +781,30 @@
},
{
"type": "error",
"name": "InvalidKeystoreConfigUpdate",
"inputs": []
"name": "InvalidL2BlockHeader",
"inputs": [
{
"name": "blockHeaderHash",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "blockHash",
"type": "bytes32",
"internalType": "bytes32"
}
]
},
{
"type": "error",
"name": "InvalidL2OutputRootPreimages",
"inputs": []
},
{
"type": "error",
"name": "InvalidNewKeystoreConfig",
"inputs": []
},
{
"type": "error",
"name": "InvalidNonceKey",
Expand All @@ -874,11 +827,38 @@
}
]
},
{
"type": "error",
"name": "InvalidProofType",
"inputs": [
{
"name": "proofType",
"type": "uint8",
"internalType": "uint8"
}
]
},
{
"type": "error",
"name": "KeystoreAlreadyInitialized",
"inputs": []
},
{
"type": "error",
"name": "L1BlockHashMismatch",
"inputs": [
{
"name": "l1Blockhash",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "expectedL1BlockHash",
"type": "bytes32",
"internalType": "bytes32"
}
]
},
{
"type": "error",
"name": "NonceNotIncrementedByOne",
Expand All @@ -895,11 +875,6 @@
}
]
},
{
"type": "error",
"name": "NotOnMasterChain",
"inputs": []
},
{
"type": "error",
"name": "NotOnReplicaChain",
Expand Down Expand Up @@ -933,7 +908,7 @@
},
{
"type": "error",
"name": "UnauthorizedKeystoreConfigUpdate",
"name": "UnauthorizedNewKeystoreConfig",
"inputs": []
},
{
Expand Down
24 changes: 0 additions & 24 deletions abis/SmartWalletFactory.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,30 +58,6 @@
],
"stateMutability": "view"
},
{
"type": "function",
"name": "getAddressByHash",
"inputs": [
{
"name": "initialConfigHash",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "nonce",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "implementation",
Expand Down
Loading

0 comments on commit 8e67716

Please sign in to comment.