From 8474b1f02a112875086a66118fa57a1460b25a2d Mon Sep 17 00:00:00 2001 From: GitGuru7 <128375421+GitGuru7@users.noreply.github.com> Date: Fri, 23 Feb 2024 14:29:39 +0530 Subject: [PATCH] refactor: make bridge test generic --- test/{vaiBridge.ts => mintableTokenBridge.ts} | 6 +++--- test/{tokenBridgeAdmin.ts => multichainTokenBridgeAdmin.ts} | 4 ++-- .../{vaiTokenController.ts => multichainTokenController.ts} | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) rename test/{vaiBridge.ts => mintableTokenBridge.ts} (99%) rename test/{tokenBridgeAdmin.ts => multichainTokenBridgeAdmin.ts} (99%) rename test/{vaiTokenController.ts => multichainTokenController.ts} (98%) diff --git a/test/vaiBridge.ts b/test/mintableTokenBridge.ts similarity index 99% rename from test/vaiBridge.ts rename to test/mintableTokenBridge.ts index a54b6a7..748b0b9 100644 --- a/test/vaiBridge.ts +++ b/test/mintableTokenBridge.ts @@ -21,11 +21,11 @@ import { TokenBridgeController__factory, } from "../typechain"; -describe("VAI Bridge:", function () { +describe("Multichain Bridge:", function () { const localChainId = 1; const remoteChainId = 2; - const name = "VAI stablecoin"; - const symbol = "VAI"; + const name = "MultichainToken"; + const symbol = "MT"; const sharedDecimals = 8; const singleTransactionLimit = convertToUnit(10, 18); const maxDailyTransactionLimit = convertToUnit(100, 18); diff --git a/test/tokenBridgeAdmin.ts b/test/multichainTokenBridgeAdmin.ts similarity index 99% rename from test/tokenBridgeAdmin.ts rename to test/multichainTokenBridgeAdmin.ts index 291e1ac..03d7d31 100644 --- a/test/tokenBridgeAdmin.ts +++ b/test/multichainTokenBridgeAdmin.ts @@ -15,7 +15,7 @@ import { TokenBridgeAdmin, } from "../typechain"; -describe("Token Bridge Admin: ", function () { +describe("Multichain Token Bridge Admin: ", function () { const localChainId = 1; const remoteChainId = 2; const singleTransactionLimit = convertToUnit(10, 18); @@ -99,7 +99,7 @@ describe("Token Bridge Admin: ", function () { RemoteTokenFactory = await ethers.getContractFactory("MultichainToken"); accessControlManager = await accessControlManagerFactory.deploy(); - remoteToken = await RemoteTokenFactory.deploy(accessControlManager.address, "VAI StableCoin", "VAI"); + remoteToken = await RemoteTokenFactory.deploy(accessControlManager.address, "MultichainToken", "MT"); remoteEndpoint = await LZEndpointMock.deploy(remoteChainId); remoteOFT = await ProxyOFTV2Dest.deploy(remoteToken.address, 8, remoteEndpoint.address, AddressOne, true); diff --git a/test/vaiTokenController.ts b/test/multichainTokenController.ts similarity index 98% rename from test/vaiTokenController.ts rename to test/multichainTokenController.ts index 4b7ff55..65ac17e 100644 --- a/test/vaiTokenController.ts +++ b/test/multichainTokenController.ts @@ -6,7 +6,7 @@ import { SignerWithAddress } from "hardhat-deploy-ethers/signers"; import { AccessControlManager, MultichainToken, MultichainToken__factory } from "../typechain"; -describe("Token Controller: ", function () { +describe("Multichain Token Controller: ", function () { let tokenFactory: MultichainToken__factory, token: MultichainToken, acc2: SignerWithAddress, @@ -17,7 +17,7 @@ describe("Token Controller: ", function () { accessControlManager = await smock.fake("AccessControlManager"); accessControlManager.isAllowedToCall.returns(true); tokenFactory = await ethers.getContractFactory("MultichainToken"); - token = await tokenFactory.deploy(accessControlManager.address, "VAI StableCoin", "VAI"); + token = await tokenFactory.deploy(accessControlManager.address, "MultichainToken", "MT"); acc1 = (await ethers.getSigners())[0]; acc2 = (await ethers.getSigners())[1]; };