Media protocol contracts
Switch branches/tags
Nothing to show
Clone or download
Latest commit f52adb2 Mar 29, 2018
Permalink
Failed to load latest commit information.
contracts limiting contract Mar 29, 2018
docs initial release Mar 14, 2018
migrations limiting contract Mar 29, 2018
test limiting contract Mar 29, 2018
MediaProtocol.iml initial release Mar 14, 2018
README.md initial release Mar 14, 2018
package.json limiting contract Mar 29, 2018
truffle.js initial release Mar 14, 2018

README.md

Getting started

Install dependencies and Truffle:

yarn global add truffle
yarn install

Inside source directory, install zeppelin solidity library:

npm init
npm install zeppelin-solidity

Ropsten network uses the mnemonic defined in truffle.js. This must correspond with the mnemonic set in MetaMask, and the account must have an Ethereum balance. Then run:

yarn run migrate

Updates

Contract source

  • Copy updated json to ccserver/src/main/resources/contracts

  • Run update_contracts.sh in ccserver folder

  • Copy to ccapp/assets/contracts/MediaCoin.json

  • Update ABI in publisher-portal/.../Publish.js

Contract address

  • Update ccapp/assets/config/config.json
  • Update ccserver/src/main/scala/ccserver/service/blockchain/BlockchainAdapter.scala
  • Update publisher-portal/.../Publish.js