Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Smart Contracts #14

Open
spacecrypto opened this issue Jun 15, 2021 · 1 comment
Open

Smart Contracts #14

spacecrypto opened this issue Jun 15, 2021 · 1 comment

Comments

@spacecrypto
Copy link
Collaborator

Create a solution to enable Smart Contracts on the Marscoin blockchain.

@AyzeLYC
Copy link
Contributor

AyzeLYC commented Nov 7, 2021

Smart contracts instructions list ( example ) :

Functions :

FUNC name <==> C++ int / double / float / string -- create a new function with the value specified
IF() <==> C++ if -- if something condition something then something
RIF() <==> C++ if something return something
IFELSE() <==> C++ if something then else something
RIFELSE() <==> C++ if something return something then else something
RRIFELSE() <==> C++ if something return something then else return something
FOR() <==> C++ for -- for something condition something then

DEL() <==> C++ func = 0 -- set the value of a function from it's value to 0

Internet :

CNCT() <==> C++ socket.socket.connect("server address");
RECV() <==> C++ socket.socket.recv("receive from");
SEND() <==> C++ socket.socket.send("datas to send");

DWLD() <==> C++ socket.socket.connect("server address"); socket.socket.send("{'datas': 'dwld', 'options': {'command': 'download command', 'hash': 'optional'}}") INTERNET.recvdDatas = socket.socket.recv() -- download a specific file with some options

Mathematics :

CALC() <==> Calcul something with some given datas

ADD <==> C++ + -- something + something
REMV() <==> C++ - -- something - something
MULTIP() <==> C++ * -- something * something
DIVD() <==> C++ / -- something / something
POWR() <==> C++ ^ -- something ^ something

SMALR() <==> C++ < -- something smaller than something
BIGR() <==> C++ > -- something bigger than something

VEQUAL() <==> C++ = -- variable = something

PEQUAL() <==> C++ += -- variable += something, variable = variable + something
REQUAL() <==> C++ -= -- variable -= something, variable = variable - something
DEQUAL() <==> C++ /= -- variable /= something, variable = variable / something
MEQUAL() <==> C++ *= -- variable *= something, variable = variable * something
EEQUAL() <==> C++ ^= -- variable ^= something, variable = variable ^ something

ISEQUAL() <==> C++ == -- in the instruction if something equal to something
NEQUAL() <==> C++ != -- in the instruction if something not equal to something

Network :

STOR() <==> Store some datas inside the NFC Chain -- create a new nfc inside the nfc chain
MODIF() <==> Modify some datas inside the NFC Chain -- if an nfc is sent some someone to someone else
DELT() <==> Delete some datas inside the NFC Chain -- if an nfc is burned

Wallet :

ATOK() <==> Ask tokens to a specific address
STOK() <==> Send tokens to a specific address
SMSG() <==> Send message to a specific address

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants