Skip to content

Commit

Permalink
chore: deploy on testnet
Browse files Browse the repository at this point in the history
  • Loading branch information
noyyyy committed Jan 9, 2024
1 parent c1a4e9a commit e4168fd
Show file tree
Hide file tree
Showing 9 changed files with 2,402 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"eslint.validate": ["javascript", "javascriptreact"],
"typescript.tsdk": "node_modules/typescript/lib",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
"source.fixAll.eslint": "explicit"
},
"solidity.remappingsUnix": ["@openzeppelin/=node_modules/@openzeppelin/", "@uniswap/=node_modules/@uniswap"]
}
31 changes: 31 additions & 0 deletions packages/dev/deploy/bnbTest/002_deploy_bridgeV2 copy.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import { DeployFunction } from 'hardhat-deploy/types';
import { keccak256, stringToBytes } from 'viem';

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

const { deployer } = await getNamedAccounts();

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

await execute('GalxeBadgeReceiverV2', { from: deployer, log: true }, 'updateDstValidity', 20736, true);
};

func.tags = ['GalxeBadgeReceiverV2'];

export default func;
19 changes: 19 additions & 0 deletions packages/dev/deploy/bnbTest/003_deploy_mockStarNFT.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { DeployFunction } from 'hardhat-deploy/types';
import { keccak256, stringToBytes } from 'viem';

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

const { deployer } = await getNamedAccounts();

await deploy('StarNFT', {
from: deployer,
args: [],
log: true,
deterministicDeployment: keccak256(stringToBytes('GalxeBadgeReceiverV2')),
});
};

func.tags = ['MockStarNFT'];

export default func;
Loading

0 comments on commit e4168fd

Please sign in to comment.