tx · EvN6hmusa3tRNqPWBcGf53Z63wBvFAphHg5htwhaQ4Bm
3NCEnW5hTnRQ7J9TFQsHS4W92f54PCCWQvN: -0.01500000 Waves
2019.07.25 15:21 [601569] smart account 3NCEnW5hTnRQ7J9TFQsHS4W92f54PCCWQvN > SELF 0.00000000 Waves
{
"type": 13,
"id": "EvN6hmusa3tRNqPWBcGf53Z63wBvFAphHg5htwhaQ4Bm",
"fee": 1500000,
"feeAssetId": null,
"timestamp": 1564057328740,
"version": 1,
"sender": "3NCEnW5hTnRQ7J9TFQsHS4W92f54PCCWQvN",
"senderPublicKey": "8PUyJHGVRUxhY118c4H5isGCGLYgRBmcSzNYooDAqwh",
"proofs": [
"peDLFNyWS22uY2boQUCPC9MtRQbqBSJe2ktyXFnSB1fPEgosLTHxF2EXve8xoaoef8CojfqPrxRL5Cg1bX2CPZi"
],
"script": "base64:AAIDAAAAAAAAAAAAAAAAAAAAAgAAAAFpAQAAAAdnZXRMb2NrAAAAAQAAAAhsb2NrTmFtZQQAAAACb2sEAAAAByRtYXRjaDAJAAQcAAAAAgUAAAAEdGhpcwUAAAAIbG9ja05hbWUDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAACkJ5dGVWZWN0b3IEAAAAAXQFAAAAByRtYXRjaDAJAAAAAAAAAgUAAAABdAgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAAEVW5pdAUAAAAHJG1hdGNoMAYDBQAAAAJvawkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAAIbG9ja05hbWUICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMFAAAAA25pbAkAAAIAAAABAgAAABlBbHJlYWR5IGxvY2tlZCBieSBhbm90aGVyAAAAAWkBAAAAC3JlbGVhc2VMb2NrAAAAAQAAAAhsb2NrTmFtZQQAAAACb2sEAAAAByRtYXRjaDAJAAQcAAAAAgUAAAAEdGhpcwUAAAAIbG9ja05hbWUDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAACkJ5dGVWZWN0b3IEAAAAAXQFAAAAByRtYXRjaDAJAAAAAAAAAgUAAAABdAgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAAEVW5pdAUAAAAHJG1hdGNoMAcDBQAAAAJvawkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAAIbG9ja05hbWUIBQAAAAR0aGlzAAAABWJ5dGVzBQAAAANuaWwJAAACAAAAAQIAAAARTG9ja2VkIGJ5IGFub3RoZXIAAAAAMujS4g==",
"chainId": 84,
"height": 601569,
"spentComplexity": 0
}
View: original | compacted
Prev: Hcsw6mWxJA2Np2NKEUjp5wiwo8B128bnhpCuAxS7W1ZZ
Next: 9WBeRwUDqtTWgfcrZXsgxMm9uAsBew3bh41YGR2K3omv
Diff:
Old | New | | Differences |
---|
7 | 7 | | func getLock (lockName) = { |
---|
8 | 8 | | let ok = match getBinary(this, lockName) { |
---|
9 | 9 | | case t: ByteVector => |
---|
10 | | - | if ((t == i.caller.bytes)) |
---|
11 | | - | then true |
---|
12 | | - | else (t == this.bytes) |
---|
| 10 | + | (t == i.caller.bytes) |
---|
13 | 11 | | case Unit => |
---|
14 | 12 | | true |
---|
15 | 13 | | } |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | 7 | | func getLock (lockName) = { |
---|
8 | 8 | | let ok = match getBinary(this, lockName) { |
---|
9 | 9 | | case t: ByteVector => |
---|
10 | | - | if ((t == i.caller.bytes)) |
---|
11 | | - | then true |
---|
12 | | - | else (t == this.bytes) |
---|
| 10 | + | (t == i.caller.bytes) |
---|
13 | 11 | | case Unit => |
---|
14 | 12 | | true |
---|
15 | 13 | | } |
---|
16 | 14 | | if (ok) |
---|
17 | 15 | | then WriteSet([DataEntry(lockName, i.caller.bytes)]) |
---|
18 | 16 | | else throw("Already locked by another") |
---|
19 | 17 | | } |
---|
20 | 18 | | |
---|
21 | 19 | | |
---|
22 | 20 | | |
---|
23 | 21 | | @Callable(i) |
---|
24 | 22 | | func releaseLock (lockName) = { |
---|
25 | 23 | | let ok = match getBinary(this, lockName) { |
---|
26 | 24 | | case t: ByteVector => |
---|
27 | 25 | | (t == i.caller.bytes) |
---|
28 | 26 | | case Unit => |
---|
29 | 27 | | false |
---|
30 | 28 | | } |
---|
31 | 29 | | if (ok) |
---|
32 | 30 | | then WriteSet([DataEntry(lockName, this.bytes)]) |
---|
33 | 31 | | else throw("Locked by another") |
---|
34 | 32 | | } |
---|
35 | 33 | | |
---|
36 | 34 | | |
---|