This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pragma solidity ^0.4.20; | |
| contract Main { | |
| uint public xxx; | |
| event TestEvent ( | |
| uint value | |
| ); | |
| function Main() public { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pragma solidity ^0.4.0; | |
| contract StoreSomeData { | |
| uint storedData; | |
| event Hello( | |
| uint value | |
| ); | |
| function set(uint i) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Mar 22 10:21:19 dev.mywish.io java[13309]: 2018-03-22-10:21:19.0861 INFO [blockchain] Try connect block hash: c92fce, number: 326906 | |
| Mar 22 10:21:19 dev.mywish.io java[13309]: 2018-03-22-10:21:19.0861 INFO [blockchain] Start try connect | |
| Mar 22 10:21:19 dev.mywish.io java[13309]: 2018-03-22-10:21:19.0861 INFO [blockchain] get current state | |
| Mar 22 10:21:19 dev.mywish.io java[13309]: 2018-03-22-10:21:19.0867 INFO [blockchain] execute start | |
| Mar 22 10:21:19 dev.mywish.io java[13309]: 2018-03-22-10:21:19.0867 INFO [blockexecutor] applyBlock: block: [326906] tx.list: [2] | |
| Mar 22 10:21:19 dev.mywish.io java[13309]: 2018-03-22-10:21:19.0868 INFO [blockexecutor] apply block: [326906] tx: [1] | |
| Mar 22 10:21:19 dev.mywish.io java[13309]: 2018-03-22-10:21:19.0871 INFO [execute] Execute transaction 21 522a899be590988d599108945888f904d592da70eba1a910cc061a98609b3e13 | |
| Mar 22 10:21:19 dev.mywish.io java[13309]: 2018-03-22-10:21:19.0871 INFO [execute] Paying: txGasCost: [3000000], gasPrice: [1], gasLimit: [3000000] | |
| Mar 22 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const HDWalletProvider = require("truffle-hdwallet-provider"); | |
| const keys = ["ce2eab51c7c428...", "46c36f1970dcf37ec..."]; | |
| module.exports = { | |
| networks: { | |
| ropsten: { | |
| provider: () => new HDWalletProvider(keys, "https://ropsten.infura.io/uJhP7KE..."), | |
| network_id: 3, | |
| gas: 4500000, | |
| gasPrice: 40000000000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pragma solidity 0.4.20; | |
| import "zeppelin-solidity/contracts/ownership/Ownable.sol"; | |
| import "zeppelin-solidity/contracts/token/ERC20/BurnableToken.sol"; | |
| import "zeppelin-solidity/contracts/token/ERC20/StandardToken.sol"; | |
| contract FaceterToken is Ownable, BurnableToken, StandardToken { | |
| string public constant name = "Faceter Token"; | |
| string public constant symbol = "FACE"; | |
| uint8 public constant decimals = 18; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let FaceterToken = artifacts.require("./FaceterToken.sol"); | |
| let FaceterTokenLockV2 = artifacts.require("./FaceterTokenLockV2.sol"); | |
| let toNumber = (value, decimals) => value.slice(0, value.length-decimals) + "." + value.slice(value.length-decimals); | |
| let getTime = () => new Promise(next => web3.eth.getBlock("latest", (err, block) => next(block.timestamp))); | |
| let incTime = seconds => new Promise(next => | |
| web3.currentProvider.sendAsync({jsonrpc: "2.0", method: "evm_increaseTime", params: [seconds], id: 0}, () => | |
| web3.currentProvider.sendAsync({jsonrpc: "2.0", method: "evm_mine", id: 0}, next) | |
| ) | |
| ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let FaceterToken = artifacts.require("./FaceterToken.sol"); | |
| let FaceterTokenLock = artifacts.require("./FaceterTokenLockV2.sol"); | |
| let toNumber = (value, decimals) => value.slice(0, value.length-decimals) + "." + value.slice(value.length-decimals); | |
| let getTime = () => new Promise(next => web3.eth.getBlock("latest", (err, block) => next(block.timestamp))); | |
| let incTime = seconds => new Promise(next => | |
| web3.currentProvider.sendAsync({jsonrpc: "2.0", method: "evm_increaseTime", params: [seconds], id: 0}, () => | |
| web3.currentProvider.sendAsync({jsonrpc: "2.0", method: "evm_mine", id: 0}, next) | |
| ) | |
| ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let chai = require("chai"); | |
| let chaiAsPromised = require("chai-as-promised"); | |
| chai.use(chaiAsPromised); | |
| chai.should(); | |
| const LastWillNotify = artifacts.require("./LastWillNotify.sol"); | |
| const incTime = seconds => new Promise(next => | |
| web3.currentProvider.sendAsync({jsonrpc: "2.0", method: "evm_increaseTime", params: [seconds], id: 0}, () => | |
| web3.currentProvider.sendAsync({jsonrpc: "2.0", method: "evm_mine", id: 0}, next) | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| web3.utils = web3._extend.utils; | |
| const BigNumber = require("bignumber.js"); | |
| const TheAbyssDAICO = artifacts.require("TheAbyssDAICO"); | |
| const AbyssToken = artifacts.require("AbyssToken"); | |
| const incTime = seconds => new Promise(next => | |
| web3.currentProvider.sendAsync({jsonrpc: "2.0", method: "evm_increaseTime", params: [seconds], id: 0}, () => | |
| web3.currentProvider.sendAsync({jsonrpc: "2.0", method: "evm_mine", id: 0}, next) | |
| ) | |
| ); | |
| const getTime = () => new Promise(next => web3.eth.getBlock("latest", (err, block) => next(block.timestamp))); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const TheAbyssDAICO = artifacts.require("TheAbyssDAICO"); | |
| const AbyssToken = artifacts.require("AbyssToken"); | |
| const PollManagedFund = artifacts.require("PollManagedFund"); | |
| const ReservationFund = artifacts.require("ReservationFund"); | |
| module.exports = (deployer, _, accounts) => { | |
| let abyssToken; | |
| let pollManagedFund; | |
| let reservationFund; | |
| let theAbyssDAICO; |
OlderNewer