Skip to content

Commit

Permalink
feat!: remove history factory
Browse files Browse the repository at this point in the history
  • Loading branch information
guidanoli committed Nov 27, 2023
1 parent cc3ae5c commit 69bee53
Show file tree
Hide file tree
Showing 17 changed files with 6 additions and 1,841 deletions.
6 changes: 6 additions & 0 deletions onchain/rollups/.changeset/gorgeous-onions-count.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@cartesi/rollups": major
---

Removed `HistoryFactory` and `IHistoryFactory`.
These contracts is no longer be necessary for the new `Authority` contract.
50 changes: 0 additions & 50 deletions onchain/rollups/contracts/history/HistoryFactory.sol

This file was deleted.

46 changes: 0 additions & 46 deletions onchain/rollups/contracts/history/IHistoryFactory.sol

This file was deleted.

1 change: 0 additions & 1 deletion onchain/rollups/deploy/02_factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ const func: DeployFunction = async (hre: HardhatRuntimeEnvironment) => {
const { Bitmask, MerkleV2 } = await deployments.all();

await deployments.deploy("AuthorityFactory", opts);
await deployments.deploy("HistoryFactory", opts);

await deployments.deploy("CartesiDAppFactory", {
...opts,
Expand Down
183 changes: 0 additions & 183 deletions onchain/rollups/deployments/arbitrum/HistoryFactory.json

This file was deleted.

183 changes: 0 additions & 183 deletions onchain/rollups/deployments/arbitrum_goerli/HistoryFactory.json

This file was deleted.

183 changes: 0 additions & 183 deletions onchain/rollups/deployments/mainnet/HistoryFactory.json

This file was deleted.

183 changes: 0 additions & 183 deletions onchain/rollups/deployments/optimism/HistoryFactory.json

This file was deleted.

183 changes: 0 additions & 183 deletions onchain/rollups/deployments/optimism_goerli/HistoryFactory.json

This file was deleted.

183 changes: 0 additions & 183 deletions onchain/rollups/deployments/sepolia/HistoryFactory.json

This file was deleted.

91 changes: 0 additions & 91 deletions onchain/rollups/export/abi/arbitrum.json
Original file line number Diff line number Diff line change
Expand Up @@ -957,97 +957,6 @@
"type": "function"
}
]
},
"HistoryFactory": {
"address": "0x1f158b5320BBf677FdA89F9a438df99BbE560A26",
"abi": [
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "historyOwner",
"type": "address"
},
{
"indexed": false,
"internalType": "contract History",
"name": "history",
"type": "address"
}
],
"name": "HistoryCreated",
"type": "event"
},
{
"inputs": [
{
"internalType": "address",
"name": "_historyOwner",
"type": "address"
},
{
"internalType": "bytes32",
"name": "_salt",
"type": "bytes32"
}
],
"name": "calculateHistoryAddress",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_historyOwner",
"type": "address"
},
{
"internalType": "bytes32",
"name": "_salt",
"type": "bytes32"
}
],
"name": "newHistory",
"outputs": [
{
"internalType": "contract History",
"name": "",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_historyOwner",
"type": "address"
}
],
"name": "newHistory",
"outputs": [
{
"internalType": "contract History",
"name": "",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "function"
}
]
}
}
}
91 changes: 0 additions & 91 deletions onchain/rollups/export/abi/arbitrum_goerli.json
Original file line number Diff line number Diff line change
Expand Up @@ -573,97 +573,6 @@
}
]
},
"HistoryFactory": {
"address": "0x1f158b5320BBf677FdA89F9a438df99BbE560A26",
"abi": [
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "historyOwner",
"type": "address"
},
{
"indexed": false,
"internalType": "contract History",
"name": "history",
"type": "address"
}
],
"name": "HistoryCreated",
"type": "event"
},
{
"inputs": [
{
"internalType": "address",
"name": "_historyOwner",
"type": "address"
},
{
"internalType": "bytes32",
"name": "_salt",
"type": "bytes32"
}
],
"name": "calculateHistoryAddress",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_historyOwner",
"type": "address"
},
{
"internalType": "bytes32",
"name": "_salt",
"type": "bytes32"
}
],
"name": "newHistory",
"outputs": [
{
"internalType": "contract History",
"name": "",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_historyOwner",
"type": "address"
}
],
"name": "newHistory",
"outputs": [
{
"internalType": "contract History",
"name": "",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "function"
}
]
},
"InputBox": {
"address": "0x59b22D57D4f067708AB0c00552767405926dc768",
"abi": [
Expand Down
Loading

0 comments on commit 69bee53

Please sign in to comment.