Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Contract deployer update + prod example script update #16

Merged
merged 1 commit into from
Aug 16, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions eth-contracts/migrations/4_staking.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ module.exports = (deployer, network, accounts) => {
// const networkId = Registry.network_id
const config = contractConfig[network]
const treasuryAddress = config.treasuryAddress || accounts[0]
const versionerAddress = config.versionerAddress || accounts[0]

const token = await AudiusToken.deployed()
let staking = await deployer.deploy(Staking)
Expand All @@ -37,10 +36,12 @@ module.exports = (deployer, network, accounts) => {
['address', 'address'],
[token.address, treasuryAddress])

let contractDeployer = accounts[0]

// Initialize staking proxy
await ownedUpgradeabilityProxy.upgradeToAndCall(
staking.address,
initializeData,
{ from: versionerAddress })
{ from: contractDeployer })
})
}
4 changes: 2 additions & 2 deletions libs/examples/prod_initializeVersions.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ const serviceTypeList = ['discovery-provider', 'creator-node', 'content-service'
const dataWeb3ProviderEndpoint = 'https://core.poa.network:443'
const ethWeb3ProviderEndpoint = 'https://mainnet.infura.io/v3/c569c6faf4f14d15a49d0044e7ddd668'
const dataRegistryAddress = '0xC611C82150b56E6e4Ec5973AcAbA8835Dd0d75A2'
const ethRegistryAddress = '0x53CFeD846d43BbF4C092f5a5c6F618515Ae137C1'
const ethTokenAddress = '0x65ca91574256b2c194a964e340e8b0a802e17ec6'
const ethRegistryAddress = '0xb2be26Ca062c5D74964921B80DE6cfa28D9A36c0'
const ethTokenAddress = '0xADEf65C0f6a30Dcb5f88Eb8653BBFe09Bf99864f'
let latestVersionStr = '0.1.0'

const isServer = true
Expand Down