forked from zcash/zcash
-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #64 from jl777/dev
update dev
- Loading branch information
Showing
70 changed files
with
11,173 additions
and
180 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
|
||
for f in $(git diff --name-only --diff-filter=U | cat); do | ||
echo "Resolve conflict in $f ..." | ||
git checkout --theirs $f | ||
done | ||
|
||
for f in $(git diff --name-only --diff-filter=U | cat); do | ||
echo "Adding file $f ..." | ||
git add $f | ||
done | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/bash | ||
./komodo-cli -ac_name=MGNX $1 $2 $3 $4 $5 $6 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/bash | ||
./komodo-cli -ac_name=PGT $1 $2 $3 $4 $5 $6 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/bash | ||
./komodo-cli -ac_name=PIRATE $1 $2 $3 $4 $5 $6 |
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
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/****************************************************************************** | ||
* Copyright © 2014-2018 The SuperNET Developers. * | ||
* * | ||
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * | ||
* the top-level directory of this distribution for the individual copyright * | ||
* holder information and the developer policies on copyright and licensing. * | ||
* * | ||
* Unless otherwise agreed in a custom licensing agreement, no part of the * | ||
* SuperNET software, including this file may be copied, modified, propagated * | ||
* or distributed except according to the terms contained in the LICENSE file * | ||
* * | ||
* Removal or modification of this copyright notice is prohibited. * | ||
* * | ||
******************************************************************************/ | ||
|
||
|
||
#ifndef CC_GATEWAYS_H | ||
#define CC_GATEWAYS_H | ||
|
||
#include "CCinclude.h" | ||
#include "../merkleblock.h" | ||
|
||
bool GatewaysValidate(struct CCcontract_info *cp,Eval* eval,const CTransaction &tx); | ||
std::string GatewaysBind(uint64_t txfee,std::string coin,uint256 tokenid,int64_t totalsupply,uint256 oracletxid,uint8_t M,uint8_t N,std::vector<CPubKey> pubkeys); | ||
std::string GatewaysDeposit(uint64_t txfee,uint256 bindtxid,int32_t height,std::string refcoin,uint256 cointxid,int32_t claimvout,std::string deposithex,std::vector<uint8_t>proof,CPubKey destpub,int64_t amount); | ||
std::string GatewaysClaim(uint64_t txfee,uint256 bindtxid,std::string refcoin,uint256 deposittxid,CPubKey destpub,int64_t amount); | ||
std::string GatewaysWithdraw(uint64_t txfee,uint256 bindtxid,std::string refcoin,std::vector<uint8_t> withdrawpub,int64_t amount); | ||
UniValue GatewaysPendingWithdraws(uint256 bindtxid,std::string refcoin); | ||
std::string GatewaysMarkdone(uint64_t txfee,uint256 withdrawtxid,std::string refcoin,uint256 cointxid); | ||
std::string GatewaysMultisig(uint64_t txfee,std::string refcoin,uint256 bindtxid,uint256 withdrawtxid,char *txidaddr); | ||
|
||
// CCcustom | ||
UniValue GatewaysInfo(uint256 bindtxid); | ||
UniValue GatewaysList(); | ||
|
||
#endif |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/****************************************************************************** | ||
* Copyright © 2014-2018 The SuperNET Developers. * | ||
* * | ||
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * | ||
* the top-level directory of this distribution for the individual copyright * | ||
* holder information and the developer policies on copyright and licensing. * | ||
* * | ||
* Unless otherwise agreed in a custom licensing agreement, no part of the * | ||
* SuperNET software, including this file may be copied, modified, propagated * | ||
* or distributed except according to the terms contained in the LICENSE file * | ||
* * | ||
* Removal or modification of this copyright notice is prohibited. * | ||
* * | ||
******************************************************************************/ | ||
|
||
|
||
#ifndef CC_MOFN_H | ||
#define CC_MOFN_H | ||
|
||
#include "CCinclude.h" | ||
|
||
#define EVAL_MOFN 0xea | ||
|
||
bool MofNValidate(struct CCcontract_info *cp,Eval* eval,const CTransaction &tx); | ||
|
||
// CCcustom | ||
UniValue MofNInfo(); | ||
|
||
#endif |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/****************************************************************************** | ||
* Copyright © 2014-2018 The SuperNET Developers. * | ||
* * | ||
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * | ||
* the top-level directory of this distribution for the individual copyright * | ||
* holder information and the developer policies on copyright and licensing. * | ||
* * | ||
* Unless otherwise agreed in a custom licensing agreement, no part of the * | ||
* SuperNET software, including this file may be copied, modified, propagated * | ||
* or distributed except according to the terms contained in the LICENSE file * | ||
* * | ||
* Removal or modification of this copyright notice is prohibited. * | ||
* * | ||
******************************************************************************/ | ||
|
||
|
||
#ifndef CC_ORACLES_H | ||
#define CC_ORACLES_H | ||
|
||
#include "CCinclude.h" | ||
|
||
bool OraclesValidate(struct CCcontract_info *cp,Eval* eval,const CTransaction &tx); | ||
std::string OracleCreate(int64_t txfee,std::string name,std::string description,std::string format); | ||
std::string OracleRegister(int64_t txfee,uint256 oracletxid,int64_t datafee); | ||
std::string OracleSubscribe(int64_t txfee,uint256 oracletxid,CPubKey publisher,int64_t amount); | ||
std::string OracleData(int64_t txfee,uint256 oracletxid,std::vector <uint8_t> data); | ||
|
||
// CCcustom | ||
UniValue OracleDataSamples(uint256 reforacletxid,uint256 batontxid,int32_t num); | ||
UniValue OracleInfo(uint256 origtxid); | ||
UniValue OraclesList(); | ||
|
||
#endif |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/****************************************************************************** | ||
* Copyright © 2014-2018 The SuperNET Developers. * | ||
* * | ||
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * | ||
* the top-level directory of this distribution for the individual copyright * | ||
* holder information and the developer policies on copyright and licensing. * | ||
* * | ||
* Unless otherwise agreed in a custom licensing agreement, no part of the * | ||
* SuperNET software, including this file may be copied, modified, propagated * | ||
* or distributed except according to the terms contained in the LICENSE file * | ||
* * | ||
* Removal or modification of this copyright notice is prohibited. * | ||
* * | ||
******************************************************************************/ | ||
|
||
|
||
#ifndef CC_PAYMENTS_H | ||
#define CC_PAYMENTS_H | ||
|
||
#include "CCinclude.h" | ||
|
||
bool PaymentsValidate(struct CCcontract_info *cp,Eval* eval,const CTransaction &tx); | ||
|
||
// CCcustom | ||
UniValue PaymentsInfo(); | ||
|
||
#endif |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/****************************************************************************** | ||
* Copyright © 2014-2018 The SuperNET Developers. * | ||
* * | ||
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * | ||
* the top-level directory of this distribution for the individual copyright * | ||
* holder information and the developer policies on copyright and licensing. * | ||
* * | ||
* Unless otherwise agreed in a custom licensing agreement, no part of the * | ||
* SuperNET software, including this file may be copied, modified, propagated * | ||
* or distributed except according to the terms contained in the LICENSE file * | ||
* * | ||
* Removal or modification of this copyright notice is prohibited. * | ||
* * | ||
******************************************************************************/ | ||
|
||
|
||
#ifndef CC_PEGS_H | ||
#define CC_PEGS_H | ||
|
||
#include "CCinclude.h" | ||
|
||
bool PegsValidate(struct CCcontract_info *cp,Eval* eval,const CTransaction &tx); | ||
|
||
// CCcustom | ||
UniValue PegsInfo(); | ||
|
||
#endif |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/****************************************************************************** | ||
* Copyright © 2014-2018 The SuperNET Developers. * | ||
* * | ||
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * | ||
* the top-level directory of this distribution for the individual copyright * | ||
* holder information and the developer policies on copyright and licensing. * | ||
* * | ||
* Unless otherwise agreed in a custom licensing agreement, no part of the * | ||
* SuperNET software, including this file may be copied, modified, propagated * | ||
* or distributed except according to the terms contained in the LICENSE file * | ||
* * | ||
* Removal or modification of this copyright notice is prohibited. * | ||
* * | ||
******************************************************************************/ | ||
|
||
|
||
#ifndef CC_PRICES_H | ||
#define CC_PRICES_H | ||
|
||
#include "CCinclude.h" | ||
|
||
bool PricesValidate(struct CCcontract_info *cp,Eval* eval,const CTransaction &tx); | ||
|
||
// CCcustom | ||
UniValue PricesList(); | ||
UniValue PricesInfo(uint256 fundingtxid); | ||
UniValue PricesStatus(uint64_t txfee,uint256 refbettoken,uint256 fundingtxid,uint256 bettxid); | ||
std::string PricesCreateFunding(uint64_t txfee,uint256 bettoken,uint256 oracletxid,uint64_t margin,uint64_t mode,uint256 longtoken,uint256 shorttoken,int32_t maxleverage,int64_t funding,std::vector<CPubKey> pubkeys); | ||
std::string PricesAddFunding(uint64_t txfee,uint256 bettoken,uint256 fundingtxid,int64_t amount); | ||
std::string PricesBet(uint64_t txfee,uint256 bettoken,uint256 fundingtxid,int64_t amount,int32_t leverage); | ||
std::string PricesFinish(uint64_t txfee,uint256 bettoken,uint256 fundingtxid,uint256 bettxid); | ||
|
||
|
||
#endif |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/****************************************************************************** | ||
* Copyright © 2014-2018 The SuperNET Developers. * | ||
* * | ||
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * | ||
* the top-level directory of this distribution for the individual copyright * | ||
* holder information and the developer policies on copyright and licensing. * | ||
* * | ||
* Unless otherwise agreed in a custom licensing agreement, no part of the * | ||
* SuperNET software, including this file may be copied, modified, propagated * | ||
* or distributed except according to the terms contained in the LICENSE file * | ||
* * | ||
* Removal or modification of this copyright notice is prohibited. * | ||
* * | ||
******************************************************************************/ | ||
|
||
|
||
#ifndef CC_TRIGGERS_H | ||
#define CC_TRIGGERS_H | ||
|
||
#include "CCinclude.h" | ||
|
||
bool TriggersValidate(struct CCcontract_info *cp,Eval* eval,const CTransaction &tx); | ||
|
||
// CCcustom | ||
UniValue TriggersInfo(); | ||
|
||
#endif |
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
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
Oops, something went wrong.