23/04/2019
30/04/2019
-
wen ico? wen moon?
impl
spec
describe
and it
blocks provided by mocha, and assert
from NodeJs core.Hands-on: Truffle Set Up
Hands-on: Truffle Set Up
A finite-state machine (FSM) or finite-state automaton (FSA, plural: automata), finite automaton, or simply a state machine, is a mathematical model of computation. It is an abstract machine that can be in exactly one of a finite number of states at any given time. The FSM can change from one state to another in response to some external inputs; the change from one state to another is called a transition. An FSM is defined by a list of its states, its initial state, and the conditions for each transition.
— Wikipedia
A Scilla smart contract (and in general most smart contracts that you see today) are stateful systems. This basically means that a smart contract at any point of time can be said to be in a particular "state". This "state" for instance can be a set of variables (and its current value) or say map (in the case of ERC20 token contract) that stores which user owns how many tokens. A state transition is a function that allows users to change the state of the contract. For instance, the transfer state transition function will allow users to transfer tokens from one user to another and hence changing the map.
— Amrit Kumar
addCar()
function,
and asserted that it did indeed add a new Car
object,
and that the right values were stored in the contractconsole.log()
, or otherwise output to STDOUT,
and you pipe that to a file on disk, and
look through that when you wish to discover how your server has (mis)behavedbefore
block, in order to set up the state of the contract prior to running testsCars
smart contractCars
contract instead of the regular one.-
-
-
-
Lifelong Learning Institute & SkillsFutureSG, Chainstack & Acronis, BitTemple, NBC'19, Spartan, StartupToken, EngineersSG, CryptoJobsList, and Blockchain&DApps
23/04/2019
30/04/2019
Keyboard shortcuts
↑, ←, Pg Up, k | Go to previous slide |
↓, →, Pg Dn, Space, j | Go to next slide |
Home | Go to first slide |
End | Go to last slide |
Number + Return | Go to specific slide |
b / m / f | Toggle blackout / mirrored / fullscreen mode |
c | Clone slideshow |
p | Toggle presenter mode |
t | Restart the presentation timer |
?, h | Toggle this help |
Esc | Back to slideshow |