Skip to content

Instantly share code, notes, and snippets.

View Sowmayjain's full-sized avatar
🎯
Focusing

Sowmay Jain Sowmayjain

🎯
Focusing
View GitHub Profile
@Sowmayjain
Sowmayjain / MoatCoin Board Application
Created February 11, 2018 19:22
The smart contract helps to keep a record of MoatCoin Board Application
pragma solidity ^0.4.18;
contract Board {
// mapping of address with their and storing the time
mapping(address => uint) public Members;
// array of addresses of all the moatcoin application
address[] public ApplyArr;
@Sowmayjain
Sowmayjain / MoatFund ABI
Created February 21, 2018 18:42
Smart Contract ABI of MoatFund
[
{
"constant": false,
"inputs": [
{
"name": "tokenAddress",
"type": "address"
},
{
"name": "amount",
@Sowmayjain
Sowmayjain / MoatToken ABI
Created February 21, 2018 18:44
Smart Contract ABI of MoatToken
[
{
"constant": false,
"inputs": [
{
"name": "tokenAddress",
"type": "address"
},
{
"name": "amount",
@Sowmayjain
Sowmayjain / MoatBoard ABI
Created February 21, 2018 18:47
Smart Contract ABI of MoatBoard
[
{
"constant": true,
"inputs": [
{
"name": "",
"type": "uint256"
}
],
"name": "proposals",
@Sowmayjain
Sowmayjain / index.css
Created February 22, 2018 10:13
Dapp css file
body {
background-color:#F0F0F0;
padding: 2em;
font-family: 'Raleway','Source Sans Pro', 'Arial';
}
.container {
width: 50%;
margin: 0 auto;
}
label {
@Sowmayjain
Sowmayjain / index.html
Created February 22, 2018 10:12
Dapp HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>MTC Dapp</title>
<link rel="stylesheet" type="text/css" href="css/index.css">
</head>
[
{
"constant": false,
"inputs": [
{
"name": "tokenAddress",
"type": "address"
},
{
"name": "amount",
[
{
"constant": false,
"inputs": [
{
"name": "tokenAddress",
"type": "address"
},
{
"name": "amount",
[
{
"constant": true,
"inputs": [
{
"name": "",
"type": "uint256"
}
],
"name": "proposals",
[
{
"constant": true,
"inputs": [
{
"name": "",
"type": "uint256"
}
],
"name": "proposals",