tx · Ddjn6f6shy9Hh1GnawgUucDcNCN9np8dMhE517RrGa2L

3NCEnW5hTnRQ7J9TFQsHS4W92f54PCCWQvN:  -0.01000000 Waves

2019.07.24 23:44 [600606] smart account 3NCEnW5hTnRQ7J9TFQsHS4W92f54PCCWQvN > SELF 0.00000000 Waves

{ "type": 13, "id": "Ddjn6f6shy9Hh1GnawgUucDcNCN9np8dMhE517RrGa2L", "fee": 1000000, "feeAssetId": null, "timestamp": 1564000832210, "version": 1, "sender": "3NCEnW5hTnRQ7J9TFQsHS4W92f54PCCWQvN", "senderPublicKey": "8PUyJHGVRUxhY118c4H5isGCGLYgRBmcSzNYooDAqwh", "proofs": [ "61mPbLWbEwDwk8sfrHfv7FRq8pZoQcuv8TXs8HJxAawmRgkmbk9y2NJyJgEM2ebV2dZzrwvxbEYLumo99zZmua8s" ], "script": "base64:AAIDAAAAAAAAAAAAAAAAAAAAAgAAAAFpAQAAAAdnZXRMb2NrAAAAAQAAAAhsb2NrTmFtZQQAAAACb2sEAAAAByRtYXRjaDAJAAQcAAAAAgUAAAAEdGhpcwUAAAAIbG9ja05hbWUDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAACkJ5dGVWZWN0b3IEAAAAAXQFAAAAByRtYXRjaDADCQEAAAACIT0AAAACBQAAAAF0CAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBgkAAAAAAAACBQAAAAF0CAUAAAAEdGhpcwAAAAVieXRlcwQAAAAEVW5pdAUAAAAHJG1hdGNoMAYDBQAAAAJvawkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAAIbG9ja05hbWUICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMFAAAAA25pbAkAAAIAAAABAgAAABlBbHJlYWR5IGxvY2tlZCBieSBhbm90aGVyAAAAAWkBAAAAC3JlbGVhc2VMb2NrAAAAAQAAAAhsb2NrTmFtZQQAAAACb2sEAAAAByRtYXRjaDAJAAQcAAAAAgUAAAAEdGhpcwUAAAAIbG9ja05hbWUDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAACkJ5dGVWZWN0b3IEAAAAAXQFAAAAByRtYXRjaDAJAAAAAAAAAgUAAAABdAgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAAEVW5pdAUAAAAHJG1hdGNoMAcDBQAAAAJvawkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAAIbG9ja05hbWUIBQAAAAR0aGlzAAAABWJ5dGVzBQAAAANuaWwJAAACAAAAAQIAAAARTG9ja2VkIGJ5IGFub3RoZXIAAAAA/t55kA==", "chainId": 84, "height": 600606, "spentComplexity": 0 } View: original | compacted Prev: none Next: Hcsw6mWxJA2Np2NKEUjp5wiwo8B128bnhpCuAxS7W1ZZ Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 3 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+
5+
6+@Callable(a)
7+func getLock (b) = {
8+ let c = {
9+ let d = getBinary(this, b)
10+ if ($isInstanceOf(d, "ByteVector"))
11+ then {
12+ let e = d
13+ if ((e != a.caller.bytes))
14+ then true
15+ else (e == this.bytes)
16+ }
17+ else {
18+ let f = d
19+ true
20+ }
21+ }
22+ if (c)
23+ then WriteSet([DataEntry(b, a.caller.bytes)])
24+ else throw("Already locked by another")
25+ }
26+
27+
28+
29+@Callable(a)
30+func releaseLock (b) = {
31+ let c = {
32+ let d = getBinary(this, b)
33+ if ($isInstanceOf(d, "ByteVector"))
34+ then {
35+ let e = d
36+ (e == a.caller.bytes)
37+ }
38+ else {
39+ let f = d
40+ false
41+ }
42+ }
43+ if (c)
44+ then WriteSet([DataEntry(b, this.bytes)])
45+ else throw("Locked by another")
46+ }
47+
48+

github/deemru/w8io/026f985 
17.72 ms