mirror of
https://github.com/status-im/contracts.git
synced 2025-02-23 12:08:47 +00:00
20 lines
693 B
JavaScript
20 lines
693 B
JavaScript
import 'bootstrap';
|
|
import 'bootstrap/dist/css/bootstrap.min.css';
|
|
import './dapp.css';
|
|
|
|
import EmbarkJS from 'Embark/EmbarkJS';
|
|
import Identity from 'Embark/contracts/Identity';
|
|
|
|
import ContractUI from './contract-ui.js';
|
|
|
|
__embarkContext.execWhenReady(function(){
|
|
|
|
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'));
|
|
});
|