/* Lotter Smart Contract in DVM-BASIC
This lottery smart contract will give lottery wins every xth try.
*/
Function Lottery(value Uint64) Uint64
10 dim deposit_count,winner as Uint64
20 L…
Function Initialize() Uint64
01 DIM txid, test owner as String
// 02 LET txid = TXID()
03 LET owner = SIGNER()
20 STORE("owner", owner) // Owner excutors the transfers unless custom…
/* DEROMultisig
Multisig concept implementation on DVM-BASIC
by @plrspro
Structure:
There are three main logical units in this contract
wallet, transaction and signer
1. wallet internal ac…
/* DEROMultisig
Multisig concept implementation on DVM-BASIC
by @plrspro
Structure:
There are three main logical units in this contract
wallet, transaction and signer
1. wallet internal ac…
Function Initialize() Uint64
01 DIM txid, test owner as String
// 02 LET txid = TXID()
03 LET owner = SIGNER()
20 STORE("owner", owner) // Owner excutors the transfers unless custom…
Function InitializePrivate() Uint64
01 DIM txid, test owner as String
// 02 LET txid = TXID()
03 LET owner = SIGNER()
20 STORE("owner", owner) // Owner excutors the transfers unless…
Function InitializePrivate() Uint64
01 DIM txid, test owner as String
02 LET txid = TXID()
03 LET owner = SIGNER()
20 STORE(txid, owner) // Owner excutors the transfers unless custo…
/*
Private Intailized Function. Assign values to the blockchain to the stored privately.
*/
Function InitializePrivate(c Uint64, m Uint64, c Uint64, a Uint64) Uint64
10 STORE("owner", SIGNER())
2…
/* Lottery Smart Contract Example in DVM-BASIC.
This lottery smart contract will give lottery wins on every second try in following default contract.
Make depost transaction to this SCID to play lo…