-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path4-time_window.arl
More file actions
31 lines (25 loc) · 1.28 KB
/
4-time_window.arl
File metadata and controls
31 lines (25 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
archetype time_window
variable creation : date = now
entry payback_after_period () {
///////////////////////////////////////////////////////////////////
// //
// FIXME: implement the following execution conditions: //
// ** contract balance must be positive //
// ** the call to the contract must be after the creation date //
// plus 5 minutes and 10 seconds //
// ** the effect of the contract balance is to transfer balance //
// to caller //
// //
///////////////////////////////////////////////////////////////////
}
// Solution at the following address:
// https://completium.com/docs/contract/tuto/archetype-datedur
// (ctrl+click to follow link)
// Commands to DEPLOY contract (in Terminal window below):
// cd tutorial
// completium-cli deploy 4-time_window.arl --amount 5tz
// Command to CALL the contract (in Terminal window below):
// completium-cli call 4-time_window --entry payback_after_period
// Command to VIEW the contract in BETTER CALL DEV
// (ctrl+click the generated URL)
// completium-cli show contract 4-time_window