tx · Bw3JLekjAGF36zWz6Nv6ty1EEQpo3EnoPFiGs2KZo1ok
3MrAr1PgXYYPi8hSBif9z4dHSDkUkaL8VHS: -0.01400000 Waves
2021.08.17 19:01 [1662546] smart account 3MrAr1PgXYYPi8hSBif9z4dHSDkUkaL8VHS > SELF 0.00000000 Waves
{
"type": 13,
"id": "Bw3JLekjAGF36zWz6Nv6ty1EEQpo3EnoPFiGs2KZo1ok",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1629216113000,
"version": 2,
"chainId": 84,
"sender": "3MrAr1PgXYYPi8hSBif9z4dHSDkUkaL8VHS",
"senderPublicKey": "4Jye1zP9d4RPVyK435sPSyfLahkhcYHaP8GzMZcGTCuE",
"proofs": [
"jsjRhk2pBRYQqq5NvkVU1aW7ALKzC6J5CKjaMNuJJzA9Ntw8BpHLvdP8nwWXimDCDKFXkW3JpnotCoutQjsBGQD"
],
"script": "base64:AAIFAAAAAAAAALsIAhIDCgEBEgASABoRCgJhMRILR2xvYmFsU3RvcmUaDAoCYTISBk51bWJlchoLCgJhMxIFc3RvcmUaDAoCYTQSBmRlbGV0ZRoLCgJhNRIFd3JpdGUaCQoCYTYSA3ZhbBoNCgJhNxIHJG1hdGNoMBoHCgJhOBIBaxoNCgJhORIHJG1hdGNoMRoHCgJiMRIBdhoHCgJiMhIBaRoJCgJiMxIDbnVtGggKAmI0EgJ0eBoMCgJiNRIGdmVyaWZ5AAAABAAAAAACYTECAAAABmdsb2JhbAEAAAACYTIAAAABAAAAAmEzCQABLAAAAAIFAAAAAmEzAgAAAAdfbnVtYmVyAQAAAAJhNAAAAAEAAAACYTMJAQAAAAtEZWxldGVFbnRyeQAAAAEFAAAAAmEzAQAAAAJhNQAAAAIAAAACYTMAAAACYTYEAAAAAmE3BQAAAAJhMwMJAAABAAAAAgUAAAACYTcCAAAABlN0cmluZwQAAAACYTgFAAAAAmE3BAAAAAJhOQUAAAACYTYDCQAAAQAAAAIFAAAAAmE5AgAAAAZTdHJpbmcEAAA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"spentComplexity": 0
}
View: original | compacted
Prev: AexWrJU9znwkyP4VJLUVwWtSdXrEyVGMxP8uAF2tX6fe
Next: none
Diff:
Old | New | | Differences |
---|
34 | 34 | | |
---|
35 | 35 | | |
---|
36 | 36 | | @Callable(i) |
---|
37 | | - | func clear (num) = [delete(Number(GlobalStore))] |
---|
| 37 | + | func clear () = [delete(Number(GlobalStore))] |
---|
38 | 38 | | |
---|
39 | 39 | | |
---|
40 | 40 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let GlobalStore = "global" |
---|
5 | 5 | | |
---|
6 | 6 | | func Number (store) = (store + "_number") |
---|
7 | 7 | | |
---|
8 | 8 | | |
---|
9 | 9 | | func delete (store) = DeleteEntry(store) |
---|
10 | 10 | | |
---|
11 | 11 | | |
---|
12 | 12 | | func write (store,val) = match store { |
---|
13 | 13 | | case k: String => |
---|
14 | 14 | | match val { |
---|
15 | 15 | | case v: String => |
---|
16 | 16 | | StringEntry(k, v) |
---|
17 | 17 | | case v: Int => |
---|
18 | 18 | | IntegerEntry(k, v) |
---|
19 | 19 | | case v: Boolean => |
---|
20 | 20 | | BooleanEntry(k, v) |
---|
21 | 21 | | case v: ByteVector => |
---|
22 | 22 | | BinaryEntry(k, v) |
---|
23 | 23 | | case _ => |
---|
24 | 24 | | throw("Value should be String|Integer|Boolean|ByteVector") |
---|
25 | 25 | | } |
---|
26 | 26 | | case _ => |
---|
27 | 27 | | throw("store should be defined") |
---|
28 | 28 | | } |
---|
29 | 29 | | |
---|
30 | 30 | | |
---|
31 | 31 | | @Callable(i) |
---|
32 | 32 | | func store (num) = [write(Number(GlobalStore), num)] |
---|
33 | 33 | | |
---|
34 | 34 | | |
---|
35 | 35 | | |
---|
36 | 36 | | @Callable(i) |
---|
37 | | - | func clear (num) = [delete(Number(GlobalStore))] |
---|
| 37 | + | func clear () = [delete(Number(GlobalStore))] |
---|
38 | 38 | | |
---|
39 | 39 | | |
---|
40 | 40 | | |
---|
41 | 41 | | @Callable(i) |
---|
42 | 42 | | func retrieve () = throw("To retrieve stored number, use the Waves node REST API /addresses/data/[address]?key=global_number") |
---|
43 | 43 | | |
---|
44 | 44 | | |
---|
45 | 45 | | @Verifier(tx) |
---|
46 | 46 | | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
47 | 47 | | |
---|