Skip to content

Commit

Permalink
update contract settings, update subgraph WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
Rekard0 committed Sep 7, 2023
1 parent e865947 commit 7aaf3ac
Show file tree
Hide file tree
Showing 16 changed files with 1,028 additions and 68 deletions.
5 changes: 4 additions & 1 deletion packages/contracts/deploy/02_setup/10_setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {

await deploy(PLUGIN_SETUP_CONTRACT_NAME, {
from: deployer,
args: [],
args: [
'0xf868169bde323f45005e476287f4c76411a610f8',
'0x073b8528bcfbb2454c8fa792558aa4a1e64c613b',
],
log: true,
});
};
Expand Down
9 changes: 6 additions & 3 deletions packages/contracts/deploy/02_setup/11_setup_conclude.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import {PLUGIN_SETUP_CONTRACT_NAME} from '../../plugin-settings';
import {MyPluginSetup__factory, MyPlugin__factory} from '../../typechain';
import {
VocdoniVoting__factory,
VocdoniVotingSetup__factory,
} from '../../typechain';
import {DeployFunction} from 'hardhat-deploy/types';
import {HardhatRuntimeEnvironment} from 'hardhat/types';
import {setTimeout} from 'timers/promises';
Expand All @@ -11,11 +14,11 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
const {deployments, network} = hre;

const setupDeployment = await deployments.get(PLUGIN_SETUP_CONTRACT_NAME);
const setup = MyPluginSetup__factory.connect(
const setup = VocdoniVotingSetup__factory.connect(
setupDeployment.address,
deployer
);
const implementation = MyPlugin__factory.connect(
const implementation = VocdoniVoting__factory.connect(
await setup.implementation(),
deployer
);
Expand Down
Loading

0 comments on commit 7aaf3ac

Please sign in to comment.