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.0; | |
contract Membership { | |
address owner; | |
address[] members; | |
function Membership() { | |
owner = 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.18; | |
/** | |
* All authorities must approved each defined action | |
* */ | |
contract MultiSignedContract { | |
address owner; | |
address[] authorities; | |
mapping (string => address[]) internal actions; |
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.18; | |
contract owned { | |
function owned() public { owner = msg.sender; } | |
address owner; | |
modifier onlyOwner { | |
require(msg.sender == 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
(()=>{ | |
// your logic here | |
function init() { | |
console.log(helpers.getBalance()) | |
} | |
const helpers = | |
{ |
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
/****************************************************** | |
* | |
* Calcula beneficio cada x segundos | |
* | |
* Este script solo funciona en la consola del navegador | |
* en cryptomkt.com | |
* | |
* init: se ejecuta una sola vez | |
* update: se ejecuta cada x segundos | |
* |
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
/****************************************************** | |
* | |
* Este script es experimental y sos el único responsable | |
* de lo que pase con tu dinero al usarlo. | |
* | |
* Este script solo funciona en la consola del navegador | |
* en cryptomkt.com | |
* | |
*******************************************************/ | |
cryptoapi = (()=>{ |
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
const cryptoapi = (()=>{ | |
function getBalance(currency = 'ARS') { | |
return window.balances.find(x=> x.currency_name === currency) | |
} | |
function getAvailableBalance(currency = 'ARS') { | |
return parseFloat(getBalance(currency).disponible).toFixed(2); |
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 init() { | |
const balance = helpers.getAvailableBalance() | |
console.log(`Balance disponible ${balance} ARS`) | |
} | |
function update() { | |
const coin = 'XLM' |
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
/****************************************************** | |
* | |
* Expone metodos para consultar balance y crear ordenes. | |
* | |
* Este script solo funciona en la consola del navegador | |
* en cryptomkt.com | |
* | |
* init: se ejecuta una sola vez | |
* update: se ejecuta cada x segundos | |
* |
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
/****************************************************** | |
* | |
* Expone metodos para crear stopLoss y takeProfit. | |
* | |
* Este script solo funciona en la consola del navegador | |
* en cryptomkt.com | |
* | |
*******************************************************/ | |
const cryptoapi = (()=>{ |
OlderNewer