Skip to content

Commit

Permalink
➕🪛Adding in more dvn options for testing (#271)
Browse files Browse the repository at this point in the history
  • Loading branch information
sirarthurmoney authored Jan 27, 2024
1 parent 1da00d4 commit f4e2de7
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
30 changes: 30 additions & 0 deletions tests/ua-devtools-evm-hardhat-test/deploy/001_bootstrap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,34 @@ const deploy: DeployFunction = async ({ getUnnamedAccounts, deployments, network
],
})

await deployments.delete('DVN_Opt2')
const dvn_Opt2 = await deployments.deploy('DVN_Opt2', {
contract: 'DVN',
from: deployer,
args: [
network.config.eid, // vid
[sendUln302.address], // messageLibs
priceFeed.address, // priceFeed
[deployer], // signers
1, // quorum
[deployer], // admins
],
})

await deployments.delete('DVN_Opt3')
const dvn_Opt3 = await deployments.deploy('DVN_Opt3', {
contract: 'DVN',
from: deployer,
args: [
network.config.eid, // vid
[sendUln302.address], // messageLibs
priceFeed.address, // priceFeed
[deployer], // signers
1, // quorum
[deployer], // admins
],
})

await deployments.delete('DVNFeeLib')
const dvnFeeLib = await deployments.deploy('DVNFeeLib', {
from: deployer,
Expand All @@ -165,6 +193,8 @@ const deploy: DeployFunction = async ({ getUnnamedAccounts, deployments, network
Executor: executor.address,
ExecutorFeeLib: executorFeeLib.address,
DVN: dvn.address,
DVN_Opt2: dvn_Opt2.address,
DVN_Opt3: dvn_Opt3.address,
DVNFeeLib: dvnFeeLib.address,
})
}
Expand Down
6 changes: 6 additions & 0 deletions tests/ua-devtools-evm-hardhat-test/test/__utils__/endpoint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ export const ethReceiveUln2_Opt2 = { eid: EndpointId.ETHEREUM_V2_MAINNET, contra
export const ethSendUln2_Opt2 = { eid: EndpointId.ETHEREUM_V2_MAINNET, contractName: 'SendUln302_Opt2' }
export const ethExecutor = { eid: EndpointId.ETHEREUM_V2_MAINNET, contractName: 'Executor' }
export const ethDvn = { eid: EndpointId.ETHEREUM_V2_MAINNET, contractName: 'DVN' }
export const ethDvn_Opt2 = { eid: EndpointId.ETHEREUM_V2_MAINNET, contractName: 'DVN_Opt2' }
export const ethDvn_Opt3 = { eid: EndpointId.ETHEREUM_V2_MAINNET, contractName: 'DVN_Opt3' }
export const avaxEndpoint = { eid: EndpointId.AVALANCHE_V2_MAINNET, contractName: 'EndpointV2' }
export const avaxReceiveUln = { eid: EndpointId.AVALANCHE_V2_MAINNET, contractName: 'ReceiveUln302' }
export const avaxSendUln = { eid: EndpointId.AVALANCHE_V2_MAINNET, contractName: 'SendUln302' }
Expand All @@ -46,6 +48,8 @@ export const avaxReceiveUln2_Opt2 = { eid: EndpointId.AVALANCHE_V2_MAINNET, cont
export const avaxSendUln2_Opt2 = { eid: EndpointId.AVALANCHE_V2_MAINNET, contractName: 'SendUln302_Opt2' }
export const avaxExecutor = { eid: EndpointId.AVALANCHE_V2_MAINNET, contractName: 'Executor' }
export const avaxDvn = { eid: EndpointId.AVALANCHE_V2_MAINNET, contractName: 'DVN' }
export const avaxDvn_Opt2 = { eid: EndpointId.AVALANCHE_V2_MAINNET, contractName: 'DVN_Opt2' }
export const avaxDvn_Opt3 = { eid: EndpointId.AVALANCHE_V2_MAINNET, contractName: 'DVN_Opt3' }
export const bscEndpoint = { eid: EndpointId.BSC_V2_MAINNET, contractName: 'EndpointV2' }
export const bscReceiveUln = { eid: EndpointId.BSC_V2_MAINNET, contractName: 'ReceiveUln302' }
export const bscSendUln = { eid: EndpointId.BSC_V2_MAINNET, contractName: 'SendUln302' }
Expand All @@ -54,6 +58,8 @@ export const bscReceiveUln2_Opt2 = { eid: EndpointId.BSC_V2_MAINNET, contractNam
export const bscSendUln2_Opt2 = { eid: EndpointId.BSC_V2_MAINNET, contractName: 'SendUln302_Opt2' }
export const bscExecutor = { eid: EndpointId.BSC_V2_MAINNET, contractName: 'Executor' }
export const bscDvn = { eid: EndpointId.BSC_V2_MAINNET, contractName: 'DVN' }
export const bscDvn_Opt2 = { eid: EndpointId.BSC_V2_MAINNET, contractName: 'DVN_Opt2' }
export const bscDvn_Opt3 = { eid: EndpointId.BSC_V2_MAINNET, contractName: 'DVN_Opt3' }

export const MAX_MESSAGE_SIZE = 10000 // match on-chain value

Expand Down

0 comments on commit f4e2de7

Please sign in to comment.