Skip to content

Commit

Permalink
fix: fix rc4 (#196)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xCardinalError authored Sep 29, 2023
1 parent e4a0801 commit ace1da9
Show file tree
Hide file tree
Showing 3 changed files with 96 additions and 260 deletions.
4 changes: 2 additions & 2 deletions scripts/deploy_oracle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ interface DeployedData {
staking: DeployedContract;
postageStamp: DeployedContract;
priceOracle: DeployedContract;
oracle: DeployedContract;
redistribution: DeployedContract;
};
}

Expand All @@ -45,7 +45,7 @@ try {
staking: {} as DeployedContract,
postageStamp: {} as DeployedContract,
priceOracle: {} as DeployedContract,
oracle: {} as DeployedContract,
redistribution: {} as DeployedContract,
},
} as DeployedData;
}
Expand Down
14 changes: 7 additions & 7 deletions scripts/deploy_staking.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ interface DeployedData {
staking: DeployedContract;
postageStamp: DeployedContract;
priceOracle: DeployedContract;
oracle: DeployedContract;
redistribution: DeployedContract;
};
}

Expand All @@ -45,7 +45,7 @@ try {
staking: {} as DeployedContract,
postageStamp: {} as DeployedContract,
priceOracle: {} as DeployedContract,
oracle: {} as DeployedContract,
redistribution: {} as DeployedContract,
},
} as DeployedData;
}
Expand Down Expand Up @@ -102,11 +102,11 @@ async function main() {
// Add metadata for Bee Node
const deployed = await JSON.parse(JSON.stringify(config.deployedData).toString());
const stakeABI = await require('../artifacts/src/Staking.sol/StakeRegistry.json');
deployed['contracts']['priceOracle']['abi'] = stakeABI.abi;
deployed['contracts']['priceOracle']['bytecode'] = stakeABI.bytecode.toString();
deployed['contracts']['priceOracle']['address'] = stake.address;
deployed['contracts']['priceOracle']['block'] = deploymentReceipt.blockNumber;
deployed['contracts']['priceOracle']['url'] = config.url + stake.address;
deployed['contracts']['staking']['abi'] = stakeABI.abi;
deployed['contracts']['staking']['bytecode'] = stakeABI.bytecode.toString();
deployed['contracts']['staking']['address'] = stake.address;
deployed['contracts']['staking']['block'] = deploymentReceipt.blockNumber;
deployed['contracts']['staking']['url'] = config.url + stake.address;

// TODO role in redistribution is needed to be changed to current staking once its deployed

Expand Down
Loading

0 comments on commit ace1da9

Please sign in to comment.