Skip to content

Commit

Permalink
chore(deployments): deploy arcana v2 on manta test
Browse files Browse the repository at this point in the history
  • Loading branch information
noyyyy committed Oct 26, 2023
1 parent f10337e commit 4eeedf9
Show file tree
Hide file tree
Showing 6 changed files with 1,837 additions and 0 deletions.
34 changes: 34 additions & 0 deletions packages/dev/deploy/mantaTest/001_deploy_p12ArcanaV2.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
import { DeployFunction } from 'hardhat-deploy/types';
import { keccak256, parseEther, stringToBytes } from 'viem';

const func: DeployFunction = async function ({ deployments, getNamedAccounts }) {
const { deploy, execute, get } = deployments;

const { deployer } = await getNamedAccounts();

await deploy('P12ArcanaV2', {
from: deployer,
args: [],
log: true,
proxy: {
proxyContract: 'ERC1967Proxy',
proxyArgs: ['{implementation}', '{data}'],
execute: {
init: {
methodName: 'initialize',
args: [deployer],
},
},
},
deterministicDeployment: keccak256(stringToBytes('P12Arcana')),
});

if ((await get('P12ArcanaV2')).numDeployments === 1) {
await execute('P12ArcanaV2', { from: deployer, log: true }, 'setPublicationFee', parseEther('0.0012'));
await execute('P12ArcanaV2', { from: deployer, log: true }, 'setProofAmount', parseEther('0.0036'));
}
};

func.tags = ['P12ArcanaV2'];

export default func;
1 change: 1 addition & 0 deletions packages/dev/deployments/mantaTest/.chainId
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3441005
Loading

0 comments on commit 4eeedf9

Please sign in to comment.