Skip to content
This repository has been archived by the owner on Mar 12, 2024. It is now read-only.

Commit

Permalink
chore(contracts): generate artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
ZzzzHui committed Jul 26, 2023
1 parent f235ea2 commit c5ffaa6
Show file tree
Hide file tree
Showing 33 changed files with 4,902 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"contractName": "Create2",
"sourceName": "@openzeppelin/contracts/utils/Create2.sol",
"abi": [],
"bytecode": "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220ffd2a503893922a87603a7a06ebe2fb025d7c4a9d50a7cc9a617375be65742c864736f6c63430008130033",
"deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220ffd2a503893922a87603a7a06ebe2fb025d7c4a9d50a7cc9a617375be65742c864736f6c63430008130033",
"linkReferences": {},
"deployedLinkReferences": {},
"devdoc": {
"details": "Helper to make usage of the `CREATE2` EVM opcode easier and safer. `CREATE2` can be used to compute in advance the address where a smart contract will be deployed, which allows for interesting new mechanisms known as 'counterfactual interactions'. See the https://eips.ethereum.org/EIPS/eip-1014#motivation[EIP] for more information.",
"kind": "dev",
"methods": {},
"version": 1
},
"userdoc": {
"kind": "user",
"methods": {},
"version": 1
},
"evm": {
"gasEstimates": {
"creation": {
"codeDepositCost": "17200",
"executionCost": "103",
"totalCost": "17303"
},
"internal": {
"computeAddress(bytes32,bytes32)": "infinite",
"computeAddress(bytes32,bytes32,address)": "infinite",
"deploy(uint256,bytes32,bytes memory)": "infinite"
}
},
"methodIdentifiers": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"contractName": "ERC165",
"sourceName": "@openzeppelin/contracts/utils/introspection/ERC165.sol",
"abi": [
{
"inputs": [
{
"internalType": "bytes4",
"name": "interfaceId",
"type": "bytes4"
}
],
"name": "supportsInterface",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
}
],
"bytecode": "0x",
"deployedBytecode": "0x",
"linkReferences": {},
"deployedLinkReferences": {},
"devdoc": {
"details": "Implementation of the {IERC165} interface. Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check for the additional interface id that will be supported. For example: ```solidity function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); } ``` Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.",
"kind": "dev",
"methods": {
"supportsInterface(bytes4)": {
"details": "See {IERC165-supportsInterface}."
}
},
"version": 1
},
"userdoc": {
"kind": "user",
"methods": {},
"version": 1
},
"evm": {
"gasEstimates": null,
"methodIdentifiers": {
"supportsInterface(bytes4)": "01ffc9a7"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"contractName": "IERC165",
"sourceName": "@openzeppelin/contracts/utils/introspection/IERC165.sol",
"abi": [
{
"inputs": [
{
"internalType": "bytes4",
"name": "interfaceId",
"type": "bytes4"
}
],
"name": "supportsInterface",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
}
],
"bytecode": "0x",
"deployedBytecode": "0x",
"linkReferences": {},
"deployedLinkReferences": {},
"devdoc": {
"details": "Interface of the ERC165 standard, as defined in the https://eips.ethereum.org/EIPS/eip-165[EIP]. Implementers can declare support of contract interfaces, which can then be queried by others ({ERC165Checker}). For an implementation, see {ERC165}.",
"kind": "dev",
"methods": {
"supportsInterface(bytes4)": {
"details": "Returns true if this contract implements the interface defined by `interfaceId`. See the corresponding https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] to learn more about how these ids are created. This function call must use less than 30 000 gas."
}
},
"version": 1
},
"userdoc": {
"kind": "user",
"methods": {},
"version": 1
},
"evm": {
"gasEstimates": null,
"methodIdentifiers": {
"supportsInterface(bytes4)": "01ffc9a7"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"contractName": "CanonicalMachine",
"sourceName": "contracts/common/CanonicalMachine.sol",
"abi": [],
"bytecode": "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212203d7e192b542bfb85cfe584e7f25a2425a0f19d1d9021bca59f3554d5c9ccb53664736f6c63430008130033",
"deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212203d7e192b542bfb85cfe584e7f25a2425a0f19d1d9021bca59f3554d5c9ccb53664736f6c63430008130033",
"linkReferences": {},
"deployedLinkReferences": {},
"devdoc": {
"kind": "dev",
"methods": {},
"stateVariables": {
"INPUT_MAX_SIZE": {
"details": "The offset and size fields use up the extra 64 bytes."
}
},
"title": "Canonical Machine Constants Library",
"version": 1
},
"userdoc": {
"kind": "user",
"methods": {},
"notice": "Defines several constants related to the reference implementation of the RISC-V machine that runs Linux, also known as the \"Cartesi Machine\".",
"version": 1
},
"evm": {
"gasEstimates": {
"creation": {
"codeDepositCost": "17200",
"executionCost": "103",
"totalCost": "17303"
},
"internal": {
"getIntraMemoryRangePosition(uint64,CanonicalMachine.Log2Size)": "infinite",
"uint64OfSize(CanonicalMachine.Log2Size)": "infinite"
}
},
"methodIdentifiers": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"contractName": "InputEncoding",
"sourceName": "contracts/common/InputEncoding.sol",
"abi": [],
"bytecode": "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122052c9294e14ad0d7af3b28793e98bdf1f36d52b655d8aac5f52b0172be7b3d64f64736f6c63430008130033",
"deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122052c9294e14ad0d7af3b28793e98bdf1f36d52b655d8aac5f52b0172be7b3d64f64736f6c63430008130033",
"linkReferences": {},
"deployedLinkReferences": {},
"devdoc": {
"kind": "dev",
"methods": {},
"version": 1
},
"userdoc": {
"kind": "user",
"methods": {},
"notice": "Defines the encoding of inputs added by core trustless and permissionless contracts, such as portals and relays.",
"version": 1
},
"evm": {
"gasEstimates": {
"creation": {
"codeDepositCost": "17200",
"executionCost": "103",
"totalCost": "17303"
},
"internal": {
"encodeBatchERC1155Deposit(contract IERC1155,address,uint256[] calldata,uint256[] calldata,bytes calldata,bytes calldata)": "infinite",
"encodeDAppAddressRelay(address)": "infinite",
"encodeERC20Deposit(bool,contract IERC20,address,uint256,bytes calldata)": "infinite",
"encodeERC721Deposit(contract IERC721,address,uint256,bytes calldata,bytes calldata)": "infinite",
"encodeEtherDeposit(address,uint256,bytes calldata)": "infinite",
"encodeSingleERC1155Deposit(contract IERC1155,address,uint256,uint256,bytes calldata,bytes calldata)": "infinite"
}
},
"methodIdentifiers": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"contractName": "OutputEncoding",
"sourceName": "contracts/common/OutputEncoding.sol",
"abi": [],
"bytecode": "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220a0889a07609d393dec91b7233f5c3d12462e781897f35fb3a2e24fb430efdfe164736f6c63430008130033",
"deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220a0889a07609d393dec91b7233f5c3d12462e781897f35fb3a2e24fb430efdfe164736f6c63430008130033",
"linkReferences": {},
"deployedLinkReferences": {},
"devdoc": {
"kind": "dev",
"methods": {},
"title": "Output Encoding Library",
"version": 1
},
"userdoc": {
"kind": "user",
"methods": {},
"notice": "Defines the encoding of outputs generated by the off-chain machine.",
"version": 1
},
"evm": {
"gasEstimates": {
"creation": {
"codeDepositCost": "17200",
"executionCost": "103",
"totalCost": "17303"
},
"internal": {
"encodeNotice(bytes calldata)": "infinite",
"encodeVoucher(address,bytes calldata)": "infinite"
}
},
"methodIdentifiers": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
{
"contractName": "AbstractConsensus",
"sourceName": "contracts/consensus/AbstractConsensus.sol",
"abi": [
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "application",
"type": "address"
}
],
"name": "ApplicationJoined",
"type": "event"
},
{
"inputs": [
{
"internalType": "address",
"name": "_dapp",
"type": "address"
},
{
"internalType": "bytes",
"name": "_proofContext",
"type": "bytes"
}
],
"name": "getClaim",
"outputs": [
{
"internalType": "bytes32",
"name": "epochHash_",
"type": "bytes32"
},
{
"internalType": "uint256",
"name": "firstInputIndex_",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "lastInputIndex_",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "join",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
],
"bytecode": "0x",
"deployedBytecode": "0x",
"linkReferences": {},
"deployedLinkReferences": {},
"devdoc": {
"events": {
"ApplicationJoined(address)": {
"details": "MUST be triggered on a successful call to `join`.",
"params": {
"application": "The application"
}
}
},
"kind": "dev",
"methods": {
"getClaim(address,bytes)": {
"params": {
"_dapp": "The DApp address",
"_proofContext": "Data for retrieving the desired claim"
},
"returns": {
"epochHash_": "The claimed epoch hash",
"firstInputIndex_": "The index of the first input of the epoch in the input box",
"lastInputIndex_": "The index of the last input of the epoch in the input box"
}
}
},
"title": "Abstract Consensus",
"version": 1
},
"userdoc": {
"events": {
"ApplicationJoined(address)": {
"notice": "An application has joined the consensus' validation set."
}
},
"kind": "user",
"methods": {
"getClaim(address,bytes)": {
"notice": "Get a specific claim regarding a specific DApp. The encoding of `_proofContext` might vary depending on the implementation."
},
"join()": {
"notice": "Emits an `ApplicationJoined` event with the message sender."
}
},
"notice": "An abstract contract that partially implements `IConsensus`.",
"version": 1
},
"evm": {
"gasEstimates": null,
"methodIdentifiers": {
"getClaim(address,bytes)": "d79a8240",
"join()": "b688a363"
}
}
}
Loading

0 comments on commit c5ffaa6

Please sign in to comment.