tx · B4aZPSHXihFqetkCTxWkNp8BxGJzmQJKqnEjE92os9ZL
3MpUDmnN27gMSxHDEFQLW75epUMECTHDn6E: -0.01400000 Waves
2020.11.26 10:48 [1282103] smart account 3MpUDmnN27gMSxHDEFQLW75epUMECTHDn6E > SELF 0.00000000 Waves
{
"type": 13,
"id": "B4aZPSHXihFqetkCTxWkNp8BxGJzmQJKqnEjE92os9ZL",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1606376997312,
"version": 2,
"chainId": 84,
"sender": "3MpUDmnN27gMSxHDEFQLW75epUMECTHDn6E",
"senderPublicKey": "FJk5n9i5ysYBtjvPcos6iKm98yzpxms3gECZgg6Y8Bt1",
"proofs": [
"4J8fj5GmaRhRtZWWubCdcbfRJoPnxF3BbnW7NifhhoXY4BvRTFZyf84WJ7uvBJCWhpK42mKLj3ad6zk2g7iVNHxn"
],
"script": "base64:AAIEAAAAAAAAAAcIAhIDCgEIAAAABAAAAAAFZGVsYXkAAAAAAAAAAAoAAAAADGFtb3VudFRvR2l2ZQAAAAACVAvkAAAAAAAHYXNzZXRJZAEAAAAg6KVqvMp3QvJwYTI1Sk9Fg7m5HuWZZxfDcerZC6EEresBAAAAD2dldEludGVnZXJCeUtleQAAAAEAAAADa2V5BAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhCQAAZQAAAAIFAAAABmhlaWdodAUAAAAFZGVsYXkAAAABAAAAAWkBAAAAB2dldFNpZ24AAAABAAAABGFkZHIEAAAADmxhc3RDYWxsSGVpZ2h0CQEAAAAPZ2V0SW50ZWdlckJ5S2V5AAAAAQUAAAAEYWRkcgQAAAAGY2FuR2V0CQAAZwAAAAIJAABlAAAAAgUAAAAGaGVpZ2h0BQAAAA5sYXN0Q2FsbEhlaWdodAUAAAAFZGVsYXkDBQAAAAZjYW5HZXQJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIFAAAABGFkZHIFAAAABmhlaWdodAkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCQEAAAAHQWRkcmVzcwAAAAEJAAJZAAAAAQUAAAAEYWRkcgUAAAAMYW1vdW50VG9HaXZlBQAAAAdhc3NldElkBQAAAANuaWwJAAACAAAAAQIAAAAjWW91IGNhbm5vdCBnZXQgU0lHTiBUb2tlbiBhZ2FpbiB5ZXQAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAXSW52b2tlU2NyaXB0VHJhbnNhY3Rpb24EAAAAA2ludgUAAAAHJG1hdGNoMAYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAFFNldFNjcmlwdFRyYW5zYWN0aW9uBAAAAANzc3QFAAAAByRtYXRjaDAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5B10camg=",
"height": 1282103,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: HKYJZqd3zbkAVpp3NfUuw2uSiXtq7WCXB28HQnWUv1u7
Next: 9zFfuwXYhxftvMUKMfMpShTHHE1YwBazWcSgFtv5Ee8H
Diff:
Old | New | | Differences |
---|
20 | 20 | | |
---|
21 | 21 | | @Callable(h) |
---|
22 | 22 | | func getSign (i) = { |
---|
23 | | - | let j = toString(addressFromPublicKey(h.callerPublicKey)) |
---|
24 | | - | let k = d(j) |
---|
25 | | - | let l = ((height - k) >= a) |
---|
26 | | - | if (l) |
---|
27 | | - | then [IntegerEntry(j, height), ScriptTransfer(Address(fromBase58String(i)), b, c)] |
---|
| 23 | + | let j = d(i) |
---|
| 24 | + | let k = ((height - j) >= a) |
---|
| 25 | + | if (k) |
---|
| 26 | + | then [IntegerEntry(i, height), ScriptTransfer(Address(fromBase58String(i)), b, c)] |
---|
28 | 27 | | else throw("You cannot get SIGN Token again yet") |
---|
29 | 28 | | } |
---|
30 | 29 | | |
---|
31 | 30 | | |
---|
32 | | - | @Verifier(m) |
---|
33 | | - | func n () = { |
---|
34 | | - | let f = m |
---|
| 31 | + | @Verifier(l) |
---|
| 32 | + | func m () = { |
---|
| 33 | + | let f = l |
---|
35 | 34 | | if ($isInstanceOf(f, "InvokeScriptTransaction")) |
---|
36 | 35 | | then { |
---|
37 | | - | let o = f |
---|
| 36 | + | let n = f |
---|
38 | 37 | | true |
---|
39 | 38 | | } |
---|
40 | 39 | | else if ($isInstanceOf(f, "SetScriptTransaction")) |
---|
41 | 40 | | then { |
---|
42 | | - | let p = f |
---|
43 | | - | sigVerify(m.bodyBytes, m.proofs[0], m.senderPublicKey) |
---|
| 41 | + | let o = f |
---|
| 42 | + | sigVerify(l.bodyBytes, l.proofs[0], l.senderPublicKey) |
---|
44 | 43 | | } |
---|
45 | 44 | | else false |
---|
46 | 45 | | } |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 4 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let a = 10 |
---|
5 | 5 | | |
---|
6 | 6 | | let b = 10000000000 |
---|
7 | 7 | | |
---|
8 | 8 | | let c = base58'Gf9t8FA4H3ssoZPCwrg3KwUFCci8zuUFP9ssRsUY3s6a' |
---|
9 | 9 | | |
---|
10 | 10 | | func d (e) = { |
---|
11 | 11 | | let f = getInteger(this, e) |
---|
12 | 12 | | if ($isInstanceOf(f, "Int")) |
---|
13 | 13 | | then { |
---|
14 | 14 | | let g = f |
---|
15 | 15 | | g |
---|
16 | 16 | | } |
---|
17 | 17 | | else (height - a) |
---|
18 | 18 | | } |
---|
19 | 19 | | |
---|
20 | 20 | | |
---|
21 | 21 | | @Callable(h) |
---|
22 | 22 | | func getSign (i) = { |
---|
23 | | - | let j = toString(addressFromPublicKey(h.callerPublicKey)) |
---|
24 | | - | let k = d(j) |
---|
25 | | - | let l = ((height - k) >= a) |
---|
26 | | - | if (l) |
---|
27 | | - | then [IntegerEntry(j, height), ScriptTransfer(Address(fromBase58String(i)), b, c)] |
---|
| 23 | + | let j = d(i) |
---|
| 24 | + | let k = ((height - j) >= a) |
---|
| 25 | + | if (k) |
---|
| 26 | + | then [IntegerEntry(i, height), ScriptTransfer(Address(fromBase58String(i)), b, c)] |
---|
28 | 27 | | else throw("You cannot get SIGN Token again yet") |
---|
29 | 28 | | } |
---|
30 | 29 | | |
---|
31 | 30 | | |
---|
32 | | - | @Verifier(m) |
---|
33 | | - | func n () = { |
---|
34 | | - | let f = m |
---|
| 31 | + | @Verifier(l) |
---|
| 32 | + | func m () = { |
---|
| 33 | + | let f = l |
---|
35 | 34 | | if ($isInstanceOf(f, "InvokeScriptTransaction")) |
---|
36 | 35 | | then { |
---|
37 | | - | let o = f |
---|
| 36 | + | let n = f |
---|
38 | 37 | | true |
---|
39 | 38 | | } |
---|
40 | 39 | | else if ($isInstanceOf(f, "SetScriptTransaction")) |
---|
41 | 40 | | then { |
---|
42 | | - | let p = f |
---|
43 | | - | sigVerify(m.bodyBytes, m.proofs[0], m.senderPublicKey) |
---|
| 41 | + | let o = f |
---|
| 42 | + | sigVerify(l.bodyBytes, l.proofs[0], l.senderPublicKey) |
---|
44 | 43 | | } |
---|
45 | 44 | | else false |
---|
46 | 45 | | } |
---|
47 | 46 | | |
---|