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:AAIFAAAAAAAAALsIAhIDCgEBEgASABoRCgJhMRILR2xvYmFsU3RvcmUaDAoCYTISBk51bWJlchoLCgJhMxIFc3RvcmUaDAoCYTQSBmRlbGV0ZRoLCgJhNRIFd3JpdGUaCQoCYTYSA3ZhbBoNCgJhNxIHJG1hdGNoMBoHCgJhOBIBaxoNCgJhORIHJG1hdGNoMRoHCgJiMRIBdhoHCgJiMhIBaRoJCgJiMxIDbnVtGggKAmI0EgJ0eBoMCgJiNRIGdmVyaWZ5AAAABAAAAAACYTECAAAABmdsb2JhbAEAAAACYTIAAAABAAAAAmEzCQABLAAAAAIFAAAAAmEzAgAAAAdfbnVtYmVyAQAAAAJhNAAAAAEAAAACYTMJAQAAAAtEZWxldGVFbnRyeQAAAAEFAAAAAmEzAQAAAAJhNQAAAAIAAAACYTMAAAACYTYEAAAAAmE3BQAAAAJhMwMJAAABAAAAAgUAAAACYTcCAAAABlN0cmluZwQAAAACYTgFAAAAAmE3BAAAAAJhOQUAAAACYTYDCQAAAQAAAAIFAAAAAmE5AgAAAAZTdHJpbmcEAAAAAmIxBQAA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View: original | compacted Prev: AexWrJU9znwkyP4VJLUVwWtSdXrEyVGMxP8uAF2tX6fe Next: none Diff:
OldNewDifferences
3434
3535
3636 @Callable(i)
37-func clear (num) = [delete(Number(GlobalStore))]
37+func clear () = [delete(Number(GlobalStore))]
3838
3939
4040
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let GlobalStore = "global"
55
66 func Number (store) = (store + "_number")
77
88
99 func delete (store) = DeleteEntry(store)
1010
1111
1212 func write (store,val) = match store {
1313 case k: String =>
1414 match val {
1515 case v: String =>
1616 StringEntry(k, v)
1717 case v: Int =>
1818 IntegerEntry(k, v)
1919 case v: Boolean =>
2020 BooleanEntry(k, v)
2121 case v: ByteVector =>
2222 BinaryEntry(k, v)
2323 case _ =>
2424 throw("Value should be String|Integer|Boolean|ByteVector")
2525 }
2626 case _ =>
2727 throw("store should be defined")
2828 }
2929
3030
3131 @Callable(i)
3232 func store (num) = [write(Number(GlobalStore), num)]
3333
3434
3535
3636 @Callable(i)
37-func clear (num) = [delete(Number(GlobalStore))]
37+func clear () = [delete(Number(GlobalStore))]
3838
3939
4040
4141 @Callable(i)
4242 func retrieve () = throw("To retrieve stored number, use the Waves node REST API /addresses/data/[address]?key=global_number")
4343
4444
4545 @Verifier(tx)
4646 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
4747

github/deemru/w8io/169f3d6 
23.22 ms