tx · DgmvYyPA3Cs95LgwSaXGC96cGhTocztK2ECmgEh4WcHF 3NCdhfVF5hReR1548UPgrg39DNmB6kuypfK: -0.01400000 Waves 2019.09.10 15:22 [670012] smart account 3NCdhfVF5hReR1548UPgrg39DNmB6kuypfK > SELF 0.00000000 Waves
{ "type": 13, "id": "DgmvYyPA3Cs95LgwSaXGC96cGhTocztK2ECmgEh4WcHF", "fee": 1400000, "feeAssetId": null, "timestamp": 1568118188883, "version": 1, "sender": "3NCdhfVF5hReR1548UPgrg39DNmB6kuypfK", "senderPublicKey": "GQeJWCTgxvB4oLfb4o7NUbHojmG964yx9DYbyxg9mgZp", "proofs": [ "5UN8woQfLdnqVKqpKyHwzNGngLjmC6zwQNzRH1km3tjcLB9zJHfTnXHDs6tAiL5NdFC8ddv437MU6toFmB5jnp4Q" ], "script": "base64:AAIDAAAAAAAAAAAAAAABAAAAAAtiYW5rQWRkcmVzcwIAAAAjM010VEd6OGFERGRYaFZkNUpkY25VRlZuWXlOSkNjVXNFeDUAAAACAAAAAWkBAAAACHJlZ2lzdGVyAAAAAAQAAAAHYWRkcmVzcwkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzAwkBAAAACWlzRGVmaW5lZAAAAAEJAAQdAAAAAgUAAAAEdGhpcwUAAAAHYWRkcmVzcwkAAAIAAAABAgAAAA5hbHJlYWR5IGV4aXN0cwkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAAHYWRkcmVzcwIAAAADcmVnBQAAAANuaWwAAAABaQEAAAAIdHJ5VG9XaW4AAAABAAAABHR4aWQDCQEAAAAJaXNEZWZpbmVkAAAAAQkABB0AAAACBQAAAAR0aGlzBQAAAAR0eGlkCQAAAgAAAAECAAAAEVR4IGFscmVhZHkgZXhpc3RzBAAAAAJ0eAkAA+4AAAABCQACWQAAAAEFAAAABHR4aWQEAAAAA3R0eAQAAAAHJG1hdGNoMAUAAAACdHgDCQA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exity": 0 } View: original | compacted Prev: 4iEAVjbrx4FCrUT1oBPqqip5mdxLMRqdNqXuahLixfy7 Next: A3eJEYT2qatrn3uZgLfGzzbTLCN4sbL2uYBZ1C9Qs83m Diff:
Old | New | Differences | |
---|---|---|---|
47 | 47 | else throw("Bad block") | |
48 | 48 | } | |
49 | 49 | let n = ((toInt(sha256((f.id + toBytes(l)))) % 100) == 0) | |
50 | - | throw(toString(( | |
50 | + | throw(((toString((toInt(sha256((f.id + toBytes(l)))) % 100)) + " ") + toString(toInt(sha256((f.id + toBytes(l))))))) | |
51 | 51 | } | |
52 | 52 | ||
53 | 53 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "3MtTGz8aDDdXhVd5JdcnUFVnYyNJCcUsEx5" | |
5 | 5 | ||
6 | 6 | @Callable(b) | |
7 | 7 | func register () = { | |
8 | 8 | let c = toBase58String(b.caller.bytes) | |
9 | 9 | if (isDefined(getString(this, c))) | |
10 | 10 | then throw("already exists") | |
11 | 11 | else WriteSet([DataEntry(c, "reg")]) | |
12 | 12 | } | |
13 | 13 | ||
14 | 14 | ||
15 | 15 | ||
16 | 16 | @Callable(b) | |
17 | 17 | func tryToWin (d) = if (isDefined(getString(this, d))) | |
18 | 18 | then throw("Tx already exists") | |
19 | 19 | else { | |
20 | 20 | let e = transferTransactionById(fromBase58String(d)) | |
21 | 21 | let f = { | |
22 | 22 | let g = e | |
23 | 23 | if ($isInstanceOf(g, "TransferTransaction")) | |
24 | 24 | then { | |
25 | 25 | let h = g | |
26 | 26 | h | |
27 | 27 | } | |
28 | 28 | else throw("Not transfer transaction") | |
29 | 29 | } | |
30 | 30 | let i = (toString(addressFromRecipient(f.recipient)) == a) | |
31 | 31 | let j = { | |
32 | 32 | let g = transactionHeightById(f.id) | |
33 | 33 | if ($isInstanceOf(g, "Int")) | |
34 | 34 | then { | |
35 | 35 | let k = g | |
36 | 36 | (k + 1) | |
37 | 37 | } | |
38 | 38 | else throw("Bad height") | |
39 | 39 | } | |
40 | 40 | let l = { | |
41 | 41 | let g = blockInfoByHeight(j) | |
42 | 42 | if ($isInstanceOf(g, "BlockInfo")) | |
43 | 43 | then { | |
44 | 44 | let m = g | |
45 | 45 | m.timestamp | |
46 | 46 | } | |
47 | 47 | else throw("Bad block") | |
48 | 48 | } | |
49 | 49 | let n = ((toInt(sha256((f.id + toBytes(l)))) % 100) == 0) | |
50 | - | throw(toString(( | |
50 | + | throw(((toString((toInt(sha256((f.id + toBytes(l)))) % 100)) + " ") + toString(toInt(sha256((f.id + toBytes(l))))))) | |
51 | 51 | } | |
52 | 52 | ||
53 | 53 |
github/deemru/w8io/026f985 23.61 ms ◑