tx · Ht4VWuSAs8h3NaPi3hCsQY5mTzuRuYs22qjWXgNhxMyf

3MrAr1PgXYYPi8hSBif9z4dHSDkUkaL8VHS:  -0.01000000 Waves

2021.08.17 18:12 [1662506] smart account 3MrAr1PgXYYPi8hSBif9z4dHSDkUkaL8VHS > SELF 0.00000000 Waves

{ "type": 13, "id": "Ht4VWuSAs8h3NaPi3hCsQY5mTzuRuYs22qjWXgNhxMyf", "fee": 1000000, "feeAssetId": null, "timestamp": 1629213223700, "version": 2, "chainId": 84, "sender": "3MrAr1PgXYYPi8hSBif9z4dHSDkUkaL8VHS", "senderPublicKey": "4Jye1zP9d4RPVyK435sPSyfLahkhcYHaP8GzMZcGTCuE", "proofs": [ "3EooydfN6qfgC2cF4BCG1NkmFLgCitiFMWcTHjVDRxS17g2WrByX8zCDhjzF2ni5nZ8MphXUDkcV67zeCgZpvbZ6" ], "script": "base64:AAIFAAAAAAAAAUsIAhIAGhEKAmExEgtHbG9iYWxTdG9yZRoQCgJhMhIKRXZlbnRTdG9yZRoaCgJhMxIUT3duZXJTZXRDdXJyZW50SW5kZXgaCwoCYTQSBXN0b3JlGhUKAmE1Eg9Pd25lclNldEJ5SW5kZXgaCwoCYTYSBWluZGV4GhMKAmE3Eg1UcmFuc2FjdGlvbklkGg4KAmE4EghPbGRPd25lchoOCgJhORIITmV3T3duZXIaCwoCYjESBU93bmVyGg4KAmIyEghvd25lclNldBoOCgJiMxIIb2xkT3duZXIaDgoCYjQSCG5ld093bmVyGg0KAmI1EgckbWF0Y2gwGgcKAmI2EgFpGg0KAmI3Egdpc093bmVyGgwKAmI4EgZjYWxsZXIaBwoCYjkSAXYaCwoCYzESBW93bmVyGggKAmMyEgJ0eBoMCgJjMxIGdmVyaWZ5AAAACgAAAAACYTECAAAABmdsb2JhbAAAAAACYTICAAAABWV2ZW50AQAAAAJhMwAAAAEAAAACYTQJAAEsAAAAAgUAAAACYTICAAAAEV9vd25lclNldF9jdXJyZW50AQAAAAJhNQAAAAIAAAACY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NgEAAAAEaW5pdAAAAAAEAAAAAmMxCAUAAAACYjYAAAAGY2FsbGVyCQEAAAACYjIAAAACBQAAAAR1bml0CAUAAAACYjYAAAAGY2FsbGVyAAAAAQAAAAJjMgEAAAACYzMAAAAACQAB9AAAAAMIBQAAAAJjMgAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAmMyAAAABnByb29mcwAAAAAAAAAAAAgFAAAAAmMyAAAAD3NlbmRlclB1YmxpY0tleY0hD94=", "height": 1662506, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: 7AVsx83Usaz4EtCNwNrXbRN9DaBF6aEXJUtTTRkCagbX Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 5 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+let GlobalStore = "global"
5+
6+let EventStore = "event"
7+
8+func OwnerSetCurrentIndex (store) = (EventStore + "_ownerSet_current")
9+
10+
11+func OwnerSetByIndex (store,index) = (((store + "ownerSet[") + toString(index)) + "]")
12+
13+
14+func TransactionId (store) = (store + "_tx")
15+
16+
17+func OldOwner (store) = (store + "_oldOwner")
18+
19+
20+func NewOwner (store) = (store + "_newOwner")
21+
22+
23+func Owner (store) = (store + "_owner")
24+
25+
26+func ownerSet (oldOwner,newOwner) = {
27+ let index = match getInteger(OwnerSetCurrentIndex(EventStore)) {
28+ case i: Int =>
29+ (i + 1)
30+ case _ =>
31+ 0
32+ }
33+[BinaryEntry(Owner(GlobalStore), newOwner.bytes), IntegerEntry(OwnerSetCurrentIndex(EventStore), index), BinaryEntry(OldOwner(OwnerSetByIndex(EventStore, index)), newOwner.bytes), BinaryEntry(NewOwner(OwnerSetByIndex(EventStore, index)), newOwner.bytes)]
34+ }
35+
36+
37+func isOwner (caller) = match getBinary(Owner(GlobalStore)) {
38+ case v: ByteVector =>
39+ (v == caller.bytes)
40+ case _ =>
41+ false
42+}
43+
44+
45+@Callable(i)
46+func init () = {
47+ let owner = i.caller
48+ ownerSet(unit, i.caller)
49+ }
50+
51+
52+@Verifier(tx)
53+func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
54+

github/deemru/w8io/169f3d6 
23.45 ms