Skip to content

Instantly share code, notes, and snippets.

@gnidan
Last active January 3, 2020 19:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gnidan/53a4594ad1970f49a374c5e809dd70b4 to your computer and use it in GitHub Desktop.
Save gnidan/53a4594ad1970f49a374c5e809dd70b4 to your computer and use it in GitHub Desktop.
Eth2 / Truffle Sketching
@startuml
actor User
participant TestingFramework
User -> TestingFramework : begin test
activate TestingFramework
create control EE
TestingFramework -> EE : load EE
EE --> TestingFramework : OK
TestingFramework --\ ProofBackend : record state transition
TestingFramework -> EE : deploy smart contract
activate EE
create control SmartContract
EE -> SmartContract : deploy
SmartContract --> EE : OK
EE --> TestingFramework : OK
deactivate EE
TestingFramework --\ ProofBackend : record state transition
TestingFramework -> EE : send transaction
activate EE
EE -> SmartContract : run code
activate SmartContract
SmartContract --> EE : OK (incl. updated key/values)
deactivate SmartContract
EE --> TestingFramework : OK
deactivate EE
TestingFramework --\ ProofBackend : record state transition
participant ProofBackend
participant MemoryMap
database DBProxy
TestingFramework --> User : OK
deactivate TestingFramework
@enduml
@gnidan
Copy link
Author

gnidan commented Jan 3, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment