Commit 069ee0fb authored by Maurelian's avatar Maurelian Committed by Kelvin Fichter

refactor(contracts): remove Queue container

The ChainStorageContainer-CTC-queue contract was removed from the
CTC in a previous commit. This commit removes some code that was
no longer necessary as a result of that change, including the
deployment script.
parent 7f1337d2
...@@ -119,14 +119,6 @@ contract CanonicalTransactionChain is ICanonicalTransactionChain, Lib_AddressRes ...@@ -119,14 +119,6 @@ contract CanonicalTransactionChain is ICanonicalTransactionChain, Lib_AddressRes
return IChainStorageContainer(resolve("ChainStorageContainer-CTC-batches")); return IChainStorageContainer(resolve("ChainStorageContainer-CTC-batches"));
} }
/**
* Accesses the queue storage container.
* @return Reference to the queue storage container.
*/
function queue() public view returns (IChainStorageContainer) {
return IChainStorageContainer(resolve("ChainStorageContainer-CTC-queue"));
}
/** /**
* Retrieves the total number of elements submitted. * Retrieves the total number of elements submitted.
* @return _totalElements Total submitted elements. * @return _totalElements Total submitted elements.
......
...@@ -81,12 +81,6 @@ interface ICanonicalTransactionChain { ...@@ -81,12 +81,6 @@ interface ICanonicalTransactionChain {
*/ */
function batches() external view returns (IChainStorageContainer); function batches() external view returns (IChainStorageContainer);
/**
* Accesses the queue storage container.
* @return Reference to the queue storage container.
*/
function queue() external view returns (IChainStorageContainer);
/** /**
* Retrieves the total number of elements submitted. * Retrieves the total number of elements submitted.
* @return _totalElements Total submitted elements. * @return _totalElements Total submitted elements.
......
/* Imports: External */
import { DeployFunction } from 'hardhat-deploy/dist/types'
/* Imports: Internal */
import {
deployAndRegister,
getDeployedContract,
} from '../src/hardhat-deploy-ethers'
const deployFn: DeployFunction = async (hre) => {
const Lib_AddressManager = await getDeployedContract(
hre,
'Lib_AddressManager'
)
await deployAndRegister({
hre,
name: 'ChainStorageContainer-CTC-queue',
contract: 'ChainStorageContainer',
args: [Lib_AddressManager.address, 'CanonicalTransactionChain'],
})
}
deployFn.tags = ['ChainStorageContainer_ctc_queue', 'upgrade']
export default deployFn
...@@ -123,11 +123,6 @@ describe('L1CrossDomainMessenger', () => { ...@@ -123,11 +123,6 @@ describe('L1CrossDomainMessenger', () => {
batches.address batches.address
) )
await AddressManager.setAddress(
'ChainStorageContainer-CTC-queue',
queue.address
)
await AddressManager.setAddress( await AddressManager.setAddress(
'CanonicalTransactionChain', 'CanonicalTransactionChain',
CanonicalTransactionChain.address CanonicalTransactionChain.address
......
...@@ -66,11 +66,6 @@ describe('[GAS BENCHMARK] Depositing via the standard bridge', () => { ...@@ -66,11 +66,6 @@ describe('[GAS BENCHMARK] Depositing via the standard bridge', () => {
batches.address batches.address
) )
await AddressManager.setAddress(
'ChainStorageContainer-CTC-queue',
queue.address
)
await AddressManager.setAddress( await AddressManager.setAddress(
'CanonicalTransactionChain', 'CanonicalTransactionChain',
CanonicalTransactionChain.address CanonicalTransactionChain.address
......
...@@ -102,11 +102,6 @@ describe('[GAS BENCHMARK] CanonicalTransactionChain', () => { ...@@ -102,11 +102,6 @@ describe('[GAS BENCHMARK] CanonicalTransactionChain', () => {
batches.address batches.address
) )
await AddressManager.setAddress(
'ChainStorageContainer-CTC-queue',
queue.address
)
await AddressManager.setAddress( await AddressManager.setAddress(
'CanonicalTransactionChain', 'CanonicalTransactionChain',
CanonicalTransactionChain.address CanonicalTransactionChain.address
......
...@@ -125,11 +125,6 @@ describe('CanonicalTransactionChain', () => { ...@@ -125,11 +125,6 @@ describe('CanonicalTransactionChain', () => {
batches.address batches.address
) )
await AddressManager.setAddress(
'ChainStorageContainer-CTC-queue',
queue.address
)
await AddressManager.setAddress( await AddressManager.setAddress(
'CanonicalTransactionChain', 'CanonicalTransactionChain',
CanonicalTransactionChain.address CanonicalTransactionChain.address
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment