]>
Commit | Line | Data |
---|---|---|
c926780f | 1 | /****************************************************************************** |
2 | * Copyright © 2014-2018 The SuperNET Developers. * | |
3 | * * | |
4 | * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * | |
5 | * the top-level directory of this distribution for the individual copyright * | |
6 | * holder information and the developer policies on copyright and licensing. * | |
7 | * * | |
8 | * Unless otherwise agreed in a custom licensing agreement, no part of the * | |
9 | * SuperNET software, including this file may be copied, modified, propagated * | |
10 | * or distributed except according to the terms contained in the LICENSE file * | |
11 | * * | |
12 | * Removal or modification of this copyright notice is prohibited. * | |
13 | * * | |
14 | ******************************************************************************/ | |
15 | ||
16 | ||
1afe09ff | 17 | #ifndef CC_GATEWAYS_H |
18 | #define CC_GATEWAYS_H | |
c926780f | 19 | |
20 | #include "CCinclude.h" | |
7f9283e5 | 21 | #include "../merkleblock.h" |
c926780f | 22 | |
4ecaf167 | 23 | bool GatewaysValidate(struct CCcontract_info *cp,Eval* eval,const CTransaction &tx, uint32_t nIn, bool fulfilled); |
3515c101 | 24 | 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); |
e5a5dadb | 25 | 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); |
7f9283e5 | 26 | std::string GatewaysClaim(uint64_t txfee,uint256 bindtxid,std::string refcoin,uint256 deposittxid,CPubKey destpub,int64_t amount); |
3515c101 | 27 | std::string GatewaysWithdraw(uint64_t txfee,uint256 bindtxid,std::string refcoin,std::vector<uint8_t> withdrawpub,int64_t amount); |
e3cd34a4 | 28 | UniValue GatewaysPendingWithdraws(uint256 bindtxid,std::string refcoin); |
6bde696a | 29 | std::string GatewaysMarkdone(uint64_t txfee,uint256 withdrawtxid); |
c926780f | 30 | |
31 | // CCcustom | |
a463f033 | 32 | UniValue GatewaysInfo(uint256 bindtxid); |
33 | UniValue GatewaysList(); | |
c926780f | 34 | |
35 | #endif |