This file contains 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
{ | |
"env": { | |
"buy_cost": 0.01, | |
"sell_cost": 0.01, | |
"max_volume": 10000, | |
"ticks_in_hour": 1, | |
"price_function": { | |
"type": "piecewise_linear", | |
"intervals": [ | |
[ |
This file contains 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
await deployer.deploy(FundFactory); | |
let factory = await FundFactory.deployed(); | |
let registry = FundRegistry.at(await factory.fundRegistry()); | |
await factory.createNewFund(owner, "S&P500 Index", 100, 20, 50, "S&P500 index, capital + dividends", {from: owner}); | |
await factory.createNewFund(owner, "Gold Investment", 20, 7, 80, "London gold fix in USD", {from: owner}); | |
await factory.createNewFund(owner, "US State Bonds", 5, 3, 100, "US 10-year Treasury Bonds", {from: owner}); |
This file contains 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
function createNewUserPortfolio( | |
uint[] _percent, | |
uint[] _investmentAmounts, | |
address[] _funds, | |
Period _period, | |
uint256 _amountToPay, | |
uint256 _durationInYears, | |
uint256 _aktStake | |
) payable public { | |
address _userAddress = msg.sender; |
This file contains 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.17; | |
import 'zeppelin-solidity/contracts/token/ERC721/ERC721Token.sol'; | |
import 'zeppelin-solidity/contracts/ownership/Ownable.sol'; | |
contract SubscriptionToken is ERC721Token, Ownable { | |
string public constant name_ = "SubscriptionToken"; | |
string public constant symbol_ = "SUB"; | |
uint256 private constant price = 0.1 ether; |
This file contains 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 'https://github.com/OpenZeppelin/zeppelin-solidity/contracts/token/ERC721/ERC721Token.sol'; | |
import 'https://github.com/OpenZeppelin/zeppelin-solidity/contracts/ownership/Ownable.sol'; | |
contract SubscriptionToken is ERC721Token, Ownable { | |
string public constant name_ = "SubscriptionToken"; | |
string public constant symbol_ = "SUB"; | |
This file contains 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
### Keybase proof | |
I hereby claim: | |
* I am johngriffin on github. | |
* I am johngriffin (https://keybase.io/johngriffin) on keybase. | |
* I have a public key ASCKSLMuSHTTun-J4yeG4TSHhJ8kZ4terOFxxS5fQYGjgwo | |
To claim this, I am signing this object: |
This file contains 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.17; | |
contract OpenSign{ | |
struct Document { | |
uint timestamp; | |
bytes ipfs_hash; | |
address[] signatures; | |
} | |
mapping(address => bytes[]) public users; |
This file contains 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
name: Test Bot for BeepBoop | |
description: A simple bot example for Beep Boop |
This file contains 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
FROM node:4.2-onbuild |
This file contains 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
var Botkit = require('botkit') | |
var token = process.env.SLACK_TOKEN | |
var controller = Botkit.slackbot({ | |
// reconnect to Slack RTM when connection goes bad | |
retry: Infinity, | |
debug: false | |
}) |
NewerOlder