Skip to content

Commit

Permalink
feat: deploy sepolia (#230)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xCardinalError authored Oct 31, 2023
1 parent c4719f3 commit 139980e
Show file tree
Hide file tree
Showing 18 changed files with 7,179 additions and 246 deletions.
File renamed without changes.
1 change: 0 additions & 1 deletion deploy/main/011_deploy_state_changes.ts

This file was deleted.

2 changes: 1 addition & 1 deletion deploy/test/000_deploy_test_token.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const func: DeployFunction = async function ({ deployments, getNamedAccounts, ne

// We deploy new token if there is no token
if (!(token = await getOrNull('TestToken'))) {
const argsToken = ['gBZZ', 'gBZZ', '1250000000000000000000000'];
const argsToken = ['sBZZ', 'sBZZ', '1250000000000000000000000'];
token = await deploy('TestToken', {
from: deployer,
args: argsToken,
Expand Down
2 changes: 1 addition & 1 deletion deploy/test/009_deploy_local_data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const func: DeployFunction = async function ({ deployments, network, config }) {

if (fileName.length == 0 || !fs.existsSync(fileName)) {
fileName = network.name + '_deployed.json';
if (network.name == 'pretestnet') {
if (network.name == 'pretestnet' || network.name == 'sepolia') {
fileName = 'testnet_deployed.json';
}
}
Expand Down
12 changes: 6 additions & 6 deletions deploy/test/010_deploy_verify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,41 +10,41 @@ const func: DeployFunction = async function ({ deployments, network }) {

// Verify TestNet token
const token = await get('TestToken');
const argsToken = ['gBZZ', 'gBZZ', '1250000000000000000000000'];
const argsToken = ['sBZZ', 'sBZZ', '1250000000000000000000000'];

log('Verifying...');
log('TestToken');
await verify(token.address, argsToken);
log('----------------------------------------------------');

// Verify postageStamp
const postageStamp = await get('PostageStamp');
const argsStamp = [token.address, 16];

log('Verifying...');
log('PostageStamp');
await verify(postageStamp.address, argsStamp);
log('----------------------------------------------------');

// Verify oracle
const priceOracle = await get('PriceOracle');
const argsOracle = [postageStamp.address];

log('Verifying...');
log('PriceOracle');
await verify(priceOracle.address, argsOracle);
log('----------------------------------------------------');

// Verify staking
const staking = await get('StakeRegistry');
const argStaking = [token.address, swarmNetworkID];

log('Verifying...');
log('Staking');
await verify(staking.address, argStaking);
log('----------------------------------------------------');

// Verify redistribution
const redistribution = await get('Redistribution');
const argRedistribution = [staking.address, postageStamp.address, priceOracle.address];

log('Verifying...');
log('Redistribution');
await verify(redistribution.address, argRedistribution);
log('----------------------------------------------------');
}
Expand Down
17 changes: 0 additions & 17 deletions deploy/test/011_deploy_state_changes.ts

This file was deleted.

1 change: 1 addition & 0 deletions deployments/sepolia/.chainId
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
11155111
Loading

0 comments on commit 139980e

Please sign in to comment.