]>
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_ORACLES_H |
18 | #define CC_ORACLES_H | |
c926780f | 19 | |
20 | #include "CCinclude.h" | |
21 | ||
8a727a26 | 22 | bool OraclesValidate(struct CCcontract_info *cp,Eval* eval,const CTransaction &tx, uint32_t nIn); |
366625ca | 23 | std::string OracleCreate(int64_t txfee,std::string name,std::string description,std::string format); |
24 | std::string OracleRegister(int64_t txfee,uint256 oracletxid,int64_t datafee); | |
25 | std::string OracleSubscribe(int64_t txfee,uint256 oracletxid,CPubKey publisher,int64_t amount); | |
26 | std::string OracleData(int64_t txfee,uint256 oracletxid,std::vector <uint8_t> data); | |
c926780f | 27 | |
28 | // CCcustom | |
26ca942e | 29 | UniValue OracleDataSamples(uint256 reforacletxid,uint256 batontxid,int32_t num); |
366625ca | 30 | UniValue OracleInfo(uint256 origtxid); |
31 | UniValue OraclesList(); | |
c926780f | 32 | |
33 | #endif |