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

Commit

Permalink
chore(contracts): prepack
Browse files Browse the repository at this point in the history
  • Loading branch information
guidanoli committed Jul 18, 2023
1 parent d7156f5 commit 1f7a6bd
Show file tree
Hide file tree
Showing 7 changed files with 451 additions and 66 deletions.
102 changes: 95 additions & 7 deletions onchain/rollups/abi/contracts/dapp/CartesiDApp.sol/CartesiDApp.json
Original file line number Diff line number Diff line change
Expand Up @@ -118,12 +118,12 @@
"components": [
{
"internalType": "uint64",
"name": "inputIndex",
"name": "inputIndexWithinEpoch",
"type": "uint64"
},
{
"internalType": "uint64",
"name": "outputIndex",
"name": "outputIndexWithinInput",
"type": "uint64"
},
{
Expand All @@ -148,7 +148,95 @@
},
{
"internalType": "bytes32[]",
"name": "keccakInHashesSiblings",
"name": "outputHashInOutputHashesSiblings",
"type": "bytes32[]"
},
{
"internalType": "bytes32[]",
"name": "outputHashesInEpochSiblings",
"type": "bytes32[]"
}
],
"internalType": "struct OutputValidityProof",
"name": "validity",
"type": "tuple"
},
{
"internalType": "bytes",
"name": "context",
"type": "bytes"
}
],
"internalType": "struct Proof",
"name": "_proof",
"type": "tuple"
}
],
"name": "executeVoucher",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_destination",
"type": "address"
},
{
"internalType": "uint256",
"name": "_value",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "_payload",
"type": "bytes"
},
{
"components": [
{
"components": [
{
"internalType": "uint64",
"name": "inputIndexWithinEpoch",
"type": "uint64"
},
{
"internalType": "uint64",
"name": "outputIndexWithinInput",
"type": "uint64"
},
{
"internalType": "bytes32",
"name": "outputHashesRootHash",
"type": "bytes32"
},
{
"internalType": "bytes32",
"name": "vouchersEpochRootHash",
"type": "bytes32"
},
{
"internalType": "bytes32",
"name": "noticesEpochRootHash",
"type": "bytes32"
},
{
"internalType": "bytes32",
"name": "machineStateHash",
"type": "bytes32"
},
{
"internalType": "bytes32[]",
"name": "outputHashInOutputHashesSiblings",
"type": "bytes32[]"
},
{
Expand Down Expand Up @@ -399,12 +487,12 @@
"components": [
{
"internalType": "uint64",
"name": "inputIndex",
"name": "inputIndexWithinEpoch",
"type": "uint64"
},
{
"internalType": "uint64",
"name": "outputIndex",
"name": "outputIndexWithinInput",
"type": "uint64"
},
{
Expand All @@ -429,7 +517,7 @@
},
{
"internalType": "bytes32[]",
"name": "keccakInHashesSiblings",
"name": "outputHashInOutputHashesSiblings",
"type": "bytes32[]"
},
{
Expand Down Expand Up @@ -473,7 +561,7 @@
},
{
"internalType": "uint256",
"name": "_outputIndex",
"name": "_outputIndexWithinInput",
"type": "uint256"
}
],
Expand Down
102 changes: 95 additions & 7 deletions onchain/rollups/abi/contracts/dapp/ICartesiDApp.sol/ICartesiDApp.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@
"components": [
{
"internalType": "uint64",
"name": "inputIndex",
"name": "inputIndexWithinEpoch",
"type": "uint64"
},
{
"internalType": "uint64",
"name": "outputIndex",
"name": "outputIndexWithinInput",
"type": "uint64"
},
{
Expand All @@ -73,7 +73,95 @@
},
{
"internalType": "bytes32[]",
"name": "keccakInHashesSiblings",
"name": "outputHashInOutputHashesSiblings",
"type": "bytes32[]"
},
{
"internalType": "bytes32[]",
"name": "outputHashesInEpochSiblings",
"type": "bytes32[]"
}
],
"internalType": "struct OutputValidityProof",
"name": "validity",
"type": "tuple"
},
{
"internalType": "bytes",
"name": "context",
"type": "bytes"
}
],
"internalType": "struct Proof",
"name": "_proof",
"type": "tuple"
}
],
"name": "executeVoucher",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_destination",
"type": "address"
},
{
"internalType": "uint256",
"name": "_value",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "_payload",
"type": "bytes"
},
{
"components": [
{
"components": [
{
"internalType": "uint64",
"name": "inputIndexWithinEpoch",
"type": "uint64"
},
{
"internalType": "uint64",
"name": "outputIndexWithinInput",
"type": "uint64"
},
{
"internalType": "bytes32",
"name": "outputHashesRootHash",
"type": "bytes32"
},
{
"internalType": "bytes32",
"name": "vouchersEpochRootHash",
"type": "bytes32"
},
{
"internalType": "bytes32",
"name": "noticesEpochRootHash",
"type": "bytes32"
},
{
"internalType": "bytes32",
"name": "machineStateHash",
"type": "bytes32"
},
{
"internalType": "bytes32[]",
"name": "outputHashInOutputHashesSiblings",
"type": "bytes32[]"
},
{
Expand Down Expand Up @@ -160,12 +248,12 @@
"components": [
{
"internalType": "uint64",
"name": "inputIndex",
"name": "inputIndexWithinEpoch",
"type": "uint64"
},
{
"internalType": "uint64",
"name": "outputIndex",
"name": "outputIndexWithinInput",
"type": "uint64"
},
{
Expand All @@ -190,7 +278,7 @@
},
{
"internalType": "bytes32[]",
"name": "keccakInHashesSiblings",
"name": "outputHashInOutputHashesSiblings",
"type": "bytes32[]"
},
{
Expand Down Expand Up @@ -234,7 +322,7 @@
},
{
"internalType": "uint256",
"name": "_outputIndex",
"name": "_outputIndexWithinInput",
"type": "uint256"
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"contractName": "OutputEncoding",
"sourceName": "contracts/common/OutputEncoding.sol",
"abi": [],
"bytecode": "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220cbe9d20648f9b42b2d1cf1ad905d232b346d1bf5c19dc2ed14347d8f4d1b0cd864736f6c63430008130033",
"deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220cbe9d20648f9b42b2d1cf1ad905d232b346d1bf5c19dc2ed14347d8f4d1b0cd864736f6c63430008130033",
"bytecode": "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212204f13d23f84dd394c6373e453822af3da4cc04e2830bcd4b4bcf12177be76cdcd64736f6c63430008130033",
"deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212204f13d23f84dd394c6373e453822af3da4cc04e2830bcd4b4bcf12177be76cdcd64736f6c63430008130033",
"linkReferences": {},
"deployedLinkReferences": {},
"devdoc": {
Expand All @@ -27,7 +27,7 @@
},
"internal": {
"encodeNotice(bytes calldata)": "infinite",
"encodeVoucher(address,bytes calldata)": "infinite"
"encodeVoucher(address,uint256,bytes calldata)": "infinite"
}
},
"methodIdentifiers": {}
Expand Down
Loading

0 comments on commit 1f7a6bd

Please sign in to comment.