-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(circom): Light client fix next sync committee bug
- Loading branch information
Showing
21 changed files
with
771 additions
and
376 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
141 changes: 141 additions & 0 deletions
141
beacon-light-client/circom/scripts/light_client/light_client.abi.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,141 @@ | ||
[ | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "bytes32", | ||
"name": "__optimistic_header_root", | ||
"type": "bytes32" | ||
}, | ||
{ | ||
"internalType": "bytes32", | ||
"name": "__finalized_header_root", | ||
"type": "bytes32" | ||
}, | ||
{ | ||
"internalType": "bytes32", | ||
"name": "__execution_state_root", | ||
"type": "bytes32" | ||
} | ||
], | ||
"stateMutability": "nonpayable", | ||
"type": "constructor" | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "execution_state_root", | ||
"outputs": [ | ||
{ | ||
"internalType": "bytes32", | ||
"name": "", | ||
"type": "bytes32" | ||
} | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "finalized_header_root", | ||
"outputs": [ | ||
{ | ||
"internalType": "bytes32", | ||
"name": "", | ||
"type": "bytes32" | ||
} | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"components": [ | ||
{ | ||
"internalType": "bytes32", | ||
"name": "attested_header_root", | ||
"type": "bytes32" | ||
}, | ||
{ | ||
"internalType": "bytes32", | ||
"name": "finalized_header_root", | ||
"type": "bytes32" | ||
}, | ||
{ | ||
"internalType": "bytes32", | ||
"name": "finalized_execution_state_root", | ||
"type": "bytes32" | ||
}, | ||
{ | ||
"internalType": "uint256[2]", | ||
"name": "a", | ||
"type": "uint256[2]" | ||
}, | ||
{ | ||
"internalType": "uint256[2][2]", | ||
"name": "b", | ||
"type": "uint256[2][2]" | ||
}, | ||
{ | ||
"internalType": "uint256[2]", | ||
"name": "c", | ||
"type": "uint256[2]" | ||
} | ||
], | ||
"internalType": "struct BeaconLightClient.LightClientUpdate", | ||
"name": "update", | ||
"type": "tuple" | ||
} | ||
], | ||
"name": "light_client_update", | ||
"outputs": [], | ||
"stateMutability": "payable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "optimistic_header_root", | ||
"outputs": [ | ||
{ | ||
"internalType": "bytes32", | ||
"name": "", | ||
"type": "bytes32" | ||
} | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "uint256[2]", | ||
"name": "a", | ||
"type": "uint256[2]" | ||
}, | ||
{ | ||
"internalType": "uint256[2][2]", | ||
"name": "b", | ||
"type": "uint256[2][2]" | ||
}, | ||
{ | ||
"internalType": "uint256[2]", | ||
"name": "c", | ||
"type": "uint256[2]" | ||
}, | ||
{ | ||
"internalType": "uint256[2]", | ||
"name": "input", | ||
"type": "uint256[2]" | ||
} | ||
], | ||
"name": "verifyProof", | ||
"outputs": [ | ||
{ | ||
"internalType": "bool", | ||
"name": "r", | ||
"type": "bool" | ||
} | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
} | ||
] |
Oops, something went wrong.