mirror of
https://github.com/status-im/contracts.git
synced 2025-02-24 04:28:51 +00:00
Initial commit of UI
This commit is contained in:
parent
69dd4fd55d
commit
fa33b59d94
0
app/dapp.css
Normal file
0
app/dapp.css
Normal file
26
app/dapp.js
Normal file
26
app/dapp.js
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
import 'bootstrap';
|
||||||
|
import 'bootstrap/dist/css/bootstrap.min.css';
|
||||||
|
import EmbarkJS from 'Embark/EmbarkJS';
|
||||||
|
import IdentityFactory from 'Embark/contracts/IdentityFactory';
|
||||||
|
|
||||||
|
import './dapp.css';
|
||||||
|
|
||||||
|
|
||||||
|
$(function(){
|
||||||
|
|
||||||
|
$("#btnCreateIdentity").on('click', async function() {
|
||||||
|
console.log(IdentityFactory.options.address);
|
||||||
|
console.log("Test3");
|
||||||
|
web3.eth.getAccounts()
|
||||||
|
.then(accounts => console.log(accounts))
|
||||||
|
//.then(accounts => IdentityFactory.methods.createIdentity().send({from: accounts[0], gasLimit: 5000000}))
|
||||||
|
// .then((tx) => console.log(tx.events));
|
||||||
|
|
||||||
|
// test
|
||||||
|
// addToLog("#blockchain", "SimpleStorage.methods.set(value).send({from: web3.eth.defaultAccount})");
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
});
|
61
app/index.html
Normal file
61
app/index.html
Normal file
@ -0,0 +1,61 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<title>Embark - SimpleStorage Demo</title>
|
||||||
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js"></script>
|
||||||
|
<script src="js/dapp.js"></script>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
</head>
|
||||||
|
<body class="container-fluid">
|
||||||
|
<h3>Identity <small>contracts</small></h3>
|
||||||
|
<ul class="nav nav-tabs" role="tablist" id="myTabs">
|
||||||
|
<li role="presentation" class="active"><a href="#factory" role="tab" data-toggle="tab">Factory</a></li>
|
||||||
|
<li role="presentation"><a href="#identity" role="tab" data-toggle="tab">Identity</a></li>
|
||||||
|
<li role="presentation"><a href="#recovery" role="tab" data-toggle="tab">Recovery</a></li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<div class="tab-content">
|
||||||
|
<div role="tabpanel" class="tab-pane active" id="factory">
|
||||||
|
|
||||||
|
<h3>1. Create an Identity</h3>
|
||||||
|
<div class="form-group form-inline">
|
||||||
|
<button class="get btn btn-primary" id="btnCreateIdentity">Create an Identity</button>
|
||||||
|
<div>
|
||||||
|
Identity Address: <span class="identityAddress"></span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<h3>2. Set Kernel</h3>
|
||||||
|
<div class="form-group form-inline">
|
||||||
|
<button class="get btn btn-primary" disabled>Create an UpdatedIdentityKernel</button>
|
||||||
|
<div>
|
||||||
|
UpdatedIdentityKernel Address: <span class="identityAddress"></span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group form-inline">
|
||||||
|
<button class="get btn btn-primary" disabled>Register a New Kernel</button>
|
||||||
|
<div>
|
||||||
|
Identity Addresss: <span class="identityAddress"></span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<h3>3. Contract Calls </h3>
|
||||||
|
<p>Javascript calls being made: </p>
|
||||||
|
<div class="logs">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div role="tabpanel" class="tab-pane" id="identity">
|
||||||
|
<div class="error alert alert-danger" role="alert">TODO</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div role="tabpanel" class="tab-pane" id="recovery">
|
||||||
|
<div class="error alert alert-danger" role="alert">TODO</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"default": {
|
"default": {
|
||||||
"enabled": true,
|
"enabled": false,
|
||||||
"provider": "whisper",
|
"provider": "whisper",
|
||||||
"available_providers": ["whisper", "orbit"],
|
"available_providers": ["whisper", "orbit"],
|
||||||
"connection": {
|
"connection": {
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"default": {
|
"default": {
|
||||||
"versions": {
|
"versions": {
|
||||||
"web3.js": "1.0.0-beta",
|
"web3.js": "1.0.0-beta",
|
||||||
"solc": "0.4.17"
|
"solc": "0.4.21"
|
||||||
},
|
},
|
||||||
"deployment": {
|
"deployment": {
|
||||||
"host": "localhost",
|
"host": "localhost",
|
||||||
@ -29,7 +29,7 @@
|
|||||||
"TestContract": { "deploy": false },
|
"TestContract": { "deploy": false },
|
||||||
"UpdatedIdentityKernel": { "deploy": false },
|
"UpdatedIdentityKernel": { "deploy": false },
|
||||||
"Identity": { "gas": 5000000 },
|
"Identity": { "gas": 5000000 },
|
||||||
"IdentityFactory": { "deploy": false },
|
"IdentityFactory": { "args": ["0x00"] },
|
||||||
"IdentityKernel": { "gas": 5000000 }
|
"IdentityKernel": { "gas": 5000000 }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,10 @@
|
|||||||
{
|
{
|
||||||
"contracts": ["contracts/**"],
|
"contracts": ["contracts/**"],
|
||||||
|
"app": {
|
||||||
|
"js/dapp.js": ["app/dapp.js"],
|
||||||
|
"index.html": "app/index.html",
|
||||||
|
"images/": ["app/images/**"]
|
||||||
|
},
|
||||||
"buildDir": "dist/",
|
"buildDir": "dist/",
|
||||||
"config": "config/",
|
"config": "config/",
|
||||||
"plugins": {
|
"plugins": {
|
||||||
|
@ -16,8 +16,10 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://github.com/status-im/contracts#readme",
|
"homepage": "https://github.com/status-im/contracts#readme",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"solidity-coverage": "^0.4.4",
|
"bootstrap": "^3.3.7",
|
||||||
"elliptic": "^6.4.0"
|
"elliptic": "^6.4.0",
|
||||||
|
"jquery": "^3.3.1",
|
||||||
|
"solidity-coverage": "^0.4.4"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"elliptic-curve": "^0.1.0",
|
"elliptic-curve": "^0.1.0",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user