forked from completium/try-archetype
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path3-rat_transfer.arl
More file actions
25 lines (20 loc) · 973 Bytes
/
3-rat_transfer.arl
File metadata and controls
25 lines (20 loc) · 973 Bytes
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
archetype rat_transfer
entry payback () {
//////////////////////////////////////////////////////////////////
// //
// FIXME: transfer 70% of the contract balance //
// to caller (aka. sender) //
// //
//////////////////////////////////////////////////////////////////
}
// Solution at the following address:
// https://completium.com/docs/contract/tuto/archetype-rattrans
// (ctrl+click to follow link)
// Commands to DEPLOY contract (in Terminal window below):
// cd tutorial
// completium-cli deploy 3-rat_transfer.arl
// Command to CALL the contract (in Terminal window below):
// completium-cli call 3-rat_transfer --entry payback --amount 10tz
// Command to VIEW the contract in BETTER CALL DEV
// (ctrl+click the generated URL)
// completium-cli show contract 3-rat_transfer