contracts/app/dapp.js

20 lines
693 B
JavaScript
Raw Normal View History

2018-03-28 08:36:08 -04:00
import 'bootstrap';
import 'bootstrap/dist/css/bootstrap.min.css';
import './dapp.css';
import EmbarkJS from 'Embark/EmbarkJS';
2018-04-02 13:42:43 -04:00
import Identity from 'Embark/contracts/Identity';
2018-03-28 08:36:08 -04:00
import ContractUI from './contract-ui.js';
__embarkContext.execWhenReady(function(){
2018-04-02 13:42:43 -04:00
let contractUI = new ContractUI( web3,
'Identity',
Identity,
'https://raw.githubusercontent.com/status-im/contracts/contracts-ui-demo/contracts/identity/IdentityFactory.sol');
contractUI.buildFunctionSection($('#functions'), $('#constructor'));
contractUI.buildSourceCodeSection($('#contract'));
});