Skip to content

Commit

Permalink
Initial Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
anedge committed Oct 31, 2017
0 parents commit b306343
Show file tree
Hide file tree
Showing 16 changed files with 983 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -0,0 +1 @@
./node_modules
287 changes: 287 additions & 0 deletions build/contracts/BasicToken.json
@@ -0,0 +1,287 @@
{
"contract_name": "BasicToken",
"abi": [
{
"constant": true,
"inputs": [],
"name": "name",
"outputs": [
{
"name": "",
"type": "string"
}
],
"payable": false,
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "bountyAccount",
"outputs": [
{
"name": "",
"type": "address"
}
],
"payable": false,
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "totalSupply",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_account",
"type": "address"
},
{
"name": "_value",
"type": "uint256"
}
],
"name": "escrowAmount",
"outputs": [],
"payable": false,
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "decimals",
"outputs": [
{
"name": "",
"type": "uint8"
}
],
"payable": false,
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_owner",
"type": "address"
},
{
"name": "_value",
"type": "uint256"
}
],
"name": "newTokens",
"outputs": [],
"payable": false,
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_value",
"type": "uint256"
}
],
"name": "burnTokens",
"outputs": [
{
"name": "success",
"type": "bool"
}
],
"payable": false,
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "",
"type": "address"
}
],
"name": "balanceOf",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "owner",
"outputs": [
{
"name": "",
"type": "address"
}
],
"payable": false,
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "symbol",
"outputs": [
{
"name": "",
"type": "string"
}
],
"payable": false,
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_to",
"type": "address"
},
{
"name": "_value",
"type": "uint256"
}
],
"name": "transfer",
"outputs": [],
"payable": false,
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "",
"type": "address"
}
],
"name": "frozenAccount",
"outputs": [
{
"name": "",
"type": "bool"
}
],
"payable": false,
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "reserveAccount",
"outputs": [
{
"name": "",
"type": "address"
}
],
"payable": false,
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_account",
"type": "address"
},
{
"name": "_frozen",
"type": "bool"
}
],
"name": "freezeAccount",
"outputs": [],
"payable": false,
"type": "function"
},
{
"inputs": [],
"payable": false,
"type": "constructor"
},
{
"payable": false,
"type": "fallback"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "_from",
"type": "address"
},
{
"indexed": false,
"name": "_value",
"type": "uint256"
}
],
"name": "Burn",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"name": "_account",
"type": "address"
},
{
"indexed": false,
"name": "_frozen",
"type": "bool"
}
],
"name": "FrozenFunds",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "_from",
"type": "address"
},
{
"indexed": true,
"name": "_to",
"type": "address"
},
{
"indexed": false,
"name": "_value",
"type": "uint256"
}
],
"name": "Transfer",
"type": "event"
}
],
"unlinked_binary": "0x6060604052341561000f57600080fd5b5b5b60008054600160a060020a03191633600160a060020a03161790555b6aa56fa5b99019a5c80000006001819055600160a060020a03331660009081526007602052604090205561006c64010000000061086661007282021704565b5b610181565b60028054600160a060020a0319908116720ee4243e16b8f0f41e55badc3ee899b476ada1179091556003805490911672301e2d3dbe5511c7d893e86d80abe2a4b049931790556001546064906019025b0460048190556064906007025b04600590815560048054600154600160a060020a03338116600081815260076020526040808220959094039094559454600354821684528284208190558454039384905560028054821684529282902084905591549091169291600080516020610b5e833981519152915190815260200160405180910390a3600354600554600160a060020a0391821691331690600080516020610b5e8339815191529060405190815260200160405180910390a35b565b6109ce806101906000396000f300606060405236156100cd5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100e0578063131740931461016b57806318160ddd1461019a5780632a8014ca146101bf578063313ce567146101e35780634c985dfb1461020c5780636d1b229d1461023057806370a082311461025a5780638da5cb5b1461028b57806395d89b41146102ba578063a9059cbb14610345578063b414d4b614610369578063dc184e701461039c578063e724529c146103cb575b34156100d857600080fd5b5b600080fd5b005b34156100eb57600080fd5b6100f36103f1565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156101305780820151818401525b602001610117565b50505050905090810190601f16801561015d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561017657600080fd5b61017e610428565b604051600160a060020a03909116815260200160405180910390f35b34156101a557600080fd5b6101ad610437565b60405190815260200160405180910390f35b34156101ca57600080fd5b6100de600160a060020a036004351660243561043d565b005b34156101ee57600080fd5b6101f6610474565b60405160ff909116815260200160405180910390f35b341561021757600080fd5b6100de600160a060020a0360043516602435610479565b005b341561023b57600080fd5b610246600435610521565b604051901515815260200160405180910390f35b341561026557600080fd5b6101ad600160a060020a0360043516610601565b60405190815260200160405180910390f35b341561029657600080fd5b61017e610613565b604051600160a060020a03909116815260200160405180910390f35b34156102c557600080fd5b6100f3610622565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156101305780820151818401525b602001610117565b50505050905090810190601f16801561015d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561035057600080fd5b6100de600160a060020a0360043516602435610659565b005b341561037457600080fd5b610246600160a060020a0360043516610669565b604051901515815260200160405180910390f35b34156103a757600080fd5b61017e61067e565b604051600160a060020a03909116815260200160405180910390f35b34156103d657600080fd5b6100de600160a060020a0360043516602435151561068d565b005b60408051908101604052600781527f56616c6f72656d00000000000000000000000000000000000000000000000000602082015281565b600354600160a060020a031681565b60015481565b60005433600160a060020a0390811691161461045857600080fd5b61046333838361071b565b61046e82600161068d565b5b5b5050565b601281565b60005433600160a060020a0390811691161461049457600080fd5b600160a060020a0382166000908152600760205260409020546104bd908263ffffffff61083516565b600160a060020a0383166000908152600760205260409020556001546104e9908263ffffffff61083516565b600155600160a060020a038083169030166000805160206109838339815191528360405190815260200160405180910390a35b5b5050565b6000805433600160a060020a0390811691161461053d57600080fd5b600160a060020a03331660009081526007602052604090205482901161056257600080fd5b600160a060020a03331660009081526007602052604090205461058b908363ffffffff61083516565b600160a060020a0333166000908152600760205260409020556001546105b7908363ffffffff61084f16565b600155600160a060020a0333167fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca58360405190815260200160405180910390a25060015b5b919050565b60076020526000908152604090205481565b600054600160a060020a031681565b60408051908101604052600381527f564c520000000000000000000000000000000000000000000000000000000000602082015281565b61046e33838361071b565b5b5050565b60066020526000908152604090205460ff1681565b600254600160a060020a031681565b60005433600160a060020a039081169116146106a857600080fd5b600160a060020a03821660009081526006602052604090819020805460ff19168315151790557f48335238b4855f35377ed80f164e8c6f3c366e54ac00b96a6402d4a9814a03a5908390839051600160a060020a039092168252151560208201526040908101905180910390a15b5b5050565b600160a060020a03831660009081526007602052604090205481901161074057600080fd5b600160a060020a03831660009081526006602052604090205460ff161561076657600080fd5b600160a060020a03821660009081526006602052604090205460ff161561078c57600080fd5b600160a060020a0383166000908152600760205260409020546107b5908263ffffffff61084f16565b600160a060020a0380851660009081526007602052604080822093909355908416815220546107ea908263ffffffff61083516565b600160a060020a03808416600081815260076020526040908190209390935591908516906000805160206109838339815191529084905190815260200160405180910390a35b505050565b60008282018381101561084457fe5b8091505b5092915050565b60008282111561085b57fe5b508082035b92915050565b6002805473ffffffffffffffffffffffffffffffffffffffff19908116720ee4243e16b8f0f41e55badc3ee899b476ada1179091556003805490911672301e2d3dbe5511c7d893e86d80abe2a4b049931790556001546064906019025b0460048190556064906007025b04600590815560048054600154600160a060020a03338116600081815260076020526040808220959094039094559454600354821684528284208190558454039384905560028054821684529282902084905591549091169291600080516020610983833981519152915190815260200160405180910390a3600354600554600160a060020a03918216913316906000805160206109838339815191529060405190815260200160405180910390a35b5600ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa165627a7a72305820f2fb34ef8a0c8f363edddea6e183969d5e9a99f1cb05e6dcb77720e106064bda0029ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
"networks": {},
"schema_version": "0.0.5",
"updated_at": 1509347240995
}
66 changes: 66 additions & 0 deletions build/contracts/Migrations.json
@@ -0,0 +1,66 @@
{
"contract_name": "Migrations",
"abi": [
{
"constant": false,
"inputs": [
{
"name": "new_address",
"type": "address"
}
],
"name": "upgrade",
"outputs": [],
"payable": false,
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "last_completed_migration",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "owner",
"outputs": [
{
"name": "",
"type": "address"
}
],
"payable": false,
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "completed",
"type": "uint256"
}
],
"name": "setCompleted",
"outputs": [],
"payable": false,
"type": "function"
},
{
"inputs": [],
"payable": false,
"type": "constructor"
}
],
"unlinked_binary": "0x6060604052341561000f57600080fd5b5b60008054600160a060020a03191633600160a060020a03161790555b5b6101e58061003c6000396000f300606060405263ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416630900f010811461005e578063445df0ac1461007f5780638da5cb5b146100a4578063fdacd576146100d3575b600080fd5b341561006957600080fd5b61007d600160a060020a03600435166100eb565b005b341561008a57600080fd5b610092610182565b60405190815260200160405180910390f35b34156100af57600080fd5b6100b7610188565b604051600160a060020a03909116815260200160405180910390f35b34156100de57600080fd5b61007d600435610197565b005b6000805433600160a060020a039081169116141561017c5781905080600160a060020a031663fdacd5766001546040517c010000000000000000000000000000000000000000000000000000000063ffffffff84160281526004810191909152602401600060405180830381600087803b151561016757600080fd5b6102c65a03f1151561017857600080fd5b5050505b5b5b5050565b60015481565b600054600160a060020a031681565b60005433600160a060020a03908116911614156101b45760018190555b5b5b505600a165627a7a7230582052a54148a8569aa50cb818a633acc2d6da82363ef1abf9cb0c42e51e5f8541a10029",
"networks": {},
"schema_version": "0.0.5",
"updated_at": 1509347312650
}

0 comments on commit b306343

Please sign in to comment.