Skip to content
Permalink
Browse files

config truffle for deployment and test

  • Loading branch information...
thanhson1085 committed Feb 20, 2018
1 parent ad6006b commit dc58825be950d19e1c0306f726d0ec04084e7cb9
Showing with 2,054 additions and 137 deletions.
  1. +3 −122 .gitignore
  2. +1 −1 contracts/Migrations.sol
  3. +1 −1 contracts/MultiSigWallet.sol
  4. +3 −11 contracts/TomoTokenSale.sol
  5. +2,027 −0 package-lock.json
  6. +19 −2 truffle.js
@@ -1,124 +1,5 @@
################################################
############### .gitignore ##################
################################################
#
# This file is only relevant if you are using git.
#
# Files which match the splat patterns below will
# be ignored by git. This keeps random crap and
# sensitive credentials from being uploaded to
# your repository. It allows you to configure your
# app for your machine without accidentally
# committing settings which will smash the local
# settings of other developers on your team.
#
# Some reasonable defaults are included below,
# but, of course, you should modify/extend/prune
# to fit your needs!
################################################




################################################
# Local Configuration
#
# Explicitly ignore files which contain:
#
# 1. Sensitive information you'd rather not push to
# your git repository.
# e.g., your personal API keys or passwords.
#
# 2. Environment-specific configuration
# Basically, anything that would be annoying
# to have to change every time you do a
# `git pull`
# e.g., your local development database, or
# the S3 bucket you're using for file uploads
# development.
#
################################################

config/local.js





################################################
# Dependencies
#
# When releasing a production app, you may
# consider including your node_modules and
# bower_components directory in your git repo,
# but during development, its best to exclude it,
# since different developers may be working on
# different kernels, where dependencies would
# need to be recompiled anyway.
#
# More on that here about node_modules dir:
# http://www.futurealoof.com/posts/nodemodules-in-git.html
# (credit Mikeal Rogers, @mikeal)
#
# About bower_components dir, you can see this:
# http://addyosmani.com/blog/checking-in-front-end-dependencies/
# (credit Addy Osmani, @addyosmani)
#
################################################

node_modules
bower_components




################################################
# Sails.js / Waterline / Grunt
#
# Files generated by Sails and Grunt, or related
# tasks and adapters.
################################################
.tmp
dump.rdb





################################################
# Node.js / NPM
#
# Common files generated by Node, NPM, and the
# related ecosystem.
################################################
lib-cov
*.seed
*.log
*.out
*.pid
npm-debug.log





################################################
# Miscellaneous
#
# Common files generated by text editors,
# operating systems, file systems, etc.
################################################

*~
*#
.DS_STORE
.netbeans
nbproject
.idea
.node_history


assets/js/admin.js
assets/js/privateSale.js
.*sw*
.env
node_modules
build/

@@ -1,4 +1,4 @@
pragma solidity ^0.4.18;
pragma solidity ^0.4.19;

contract Migrations {
address public owner;
@@ -1,4 +1,4 @@
pragma solidity 0.4.18;
pragma solidity 0.4.19;


/// @title Multisignature wallet - Allows multiple parties to agree on transactions before execution.
@@ -1,4 +1,4 @@
pragma solidity 0.4.18;
pragma solidity 0.4.19;

// ================= Ownable Contract start =============================
/*
@@ -72,25 +72,17 @@ contract ERC20 {
// ================= Standard Token Contract start ======================
contract StandardToken is ERC20, SafeMath {

/**
* @dev Fix for the ERC20 short address attack.
*/
modifier onlyPayloadSize(uint size) {
require(msg.data.length >= size + 4) ;
_;
}

mapping(address => uint) balances;
mapping (address => mapping (address => uint)) allowed;

function transfer(address _to, uint _value) onlyPayloadSize(2 * 32) returns (bool success){
function transfer(address _to, uint _value) returns (bool success){
balances[msg.sender] = safeSubtract(balances[msg.sender], _value);
balances[_to] = safeAdd(balances[_to], _value);
Transfer(msg.sender, _to, _value);
return true;
}

function transferFrom(address _from, address _to, uint _value) onlyPayloadSize(3 * 32) returns (bool success) {
function transferFrom(address _from, address _to, uint _value) returns (bool success) {
var _allowance = allowed[_from][msg.sender];

balances[_to] = safeAdd(balances[_to], _value);
Oops, something went wrong.

0 comments on commit dc58825

Please sign in to comment.
You can’t perform that action at this time.