2018-03-28 08:36:08 -04:00
|
|
|
import 'bootstrap';
|
|
|
|
import 'bootstrap/dist/css/bootstrap.min.css';
|
|
|
|
import './dapp.css';
|
|
|
|
|
2018-03-28 10:16:06 -04:00
|
|
|
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
|
|
|
|
2018-04-02 10:02:54 -04:00
|
|
|
import ContractUI from './contract-ui.js';
|
2018-03-29 19:26:33 -04:00
|
|
|
|
2018-04-02 10:02:54 -04:00
|
|
|
__embarkContext.execWhenReady(function(){
|
|
|
|
|
2018-04-02 13:42:43 -04:00
|
|
|
let contractUI = new ContractUI( web3,
|
|
|
|
'Identity',
|
|
|
|
Identity,
|
2018-04-02 10:02:54 -04:00
|
|
|
'https://raw.githubusercontent.com/status-im/contracts/contracts-ui-demo/contracts/identity/IdentityFactory.sol');
|
2018-03-29 19:26:33 -04:00
|
|
|
|
2018-04-02 10:02:54 -04:00
|
|
|
contractUI.buildFunctionSection($('#functions'), $('#constructor'));
|
|
|
|
contractUI.buildSourceCodeSection($('#contract'));
|
2018-03-29 19:26:33 -04:00
|
|
|
});
|