FSM skeleton

This commit is contained in:
jl777
2018-07-31 19:19:33 -11:00
parent c8624d4024
commit 7137a0223e
9 changed files with 113 additions and 60 deletions

30
src/cc/CCfsm.h Normal file
View File

@@ -0,0 +1,30 @@
/******************************************************************************
* 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_FSM_H
#define CC_FSM_H
#include "CCinclude.h"
#define EVAL_FSM 0xe7
bool FSMValidate(struct CCcontract_info *cp,Eval* eval,const CTransaction &tx);
std::string FSMlist(uint64_t txfee);
std::string FSMinfo(uint64_t txfee,uint256 fsmtxid);
std::string FSMcreate(uint64_t txfee,std::string name,std::string states);
#endif