tx · 31GxSwSmiVzH3wLTdCjjLf2WZjKuRhXvejftbzSt2Dqb 3N8M61KCm8G72mK8PjacFbnnxdbFsyqQDeT: -0.01400000 Waves 2019.06.23 13:23 [554562] smart account 3N8M61KCm8G72mK8PjacFbnnxdbFsyqQDeT > SELF 0.00000000 Waves
{ "type": 13, "id": "31GxSwSmiVzH3wLTdCjjLf2WZjKuRhXvejftbzSt2Dqb", "fee": 1400000, "feeAssetId": null, "timestamp": 1561285463671, "version": 1, "sender": "3N8M61KCm8G72mK8PjacFbnnxdbFsyqQDeT", "senderPublicKey": "Bhyvkx4xdbEi4KPJNZSzx9gZgzgyLEsavuj2kYSt7SST", "proofs": [ "5i1UMEBSV9PkRVZkA2LauocB1s9MDZyKCuETyX3eJT3kQmBcUNz7SRJUdQ4Qi3J7dLvAbfiY8vMNxhFqdoXetcvB" ], "script": "base64:AAIDAAAAAAAAAAAAAAACAAAAABZFcnJvck9ubHlXYXZlc0FjY2VwdGVkAgAAABllcnJvcl9vbmx5X3dhdmVzX2FjY2VwdGVkAAAAAAlwdWJsaWNLZXkBAAAAGgFUyizbHfX10DqIle41wD/n3rZAR7k35/dEAAAAAwAAAAFpAQAAAA9HZW5lcmF0ZVJhbmRJbnQAAAACAAAABmdhbWVJZAAAAAdyc2FTaWduBAAAAAtyc2FTaWdWYWxpZAkAAfQAAAADCQACWQAAAAEFAAAABmdhbWVJZAkAAlkAAAABBQAAAAdyc2FTaWduCAUAAAABaQAAAA9jYWxsZXJQdWJsaWNLZXkDBQAAAAtyc2FTaWdWYWxpZAQAAAAEcmFuZAkAAGoAAAACCQAEsQAAAAEJAAH3AAAAAQkAAZsAAAABBQAAAAdyc2FTaWduAAAAAAAAAAAGCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACAgAAAARvcmlnCQAEsQAAAAEJAAH3AAAAAQkAAZsAAAABBQAAAAdyc2FTaWduCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACA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jdXJyZW50QW1vdW50CAUAAAADcG10AAAABmFtb3VudAkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAARYXVjdGlvbkxhc3RCaWRLZXkAAAAAAAAAAAAJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIFAAAAD2F1Y3Rpb25Pd25lcktleQUAAAALb3duZXJXYWxsZXQJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIFAAAAEGF1Y3Rpb25BbW91bnRLZXkIBQAAAANwbXQAAAAGYW1vdW50CQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACBQAAABFhdWN0aW9uQXNzZXRJZEtleQUAAAAHYXNzZXRJZAkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAAOdXNlckJhbGFuY2VLZXkFAAAACW5ld0Ftb3VudAkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAASYXVjdGlvbklzQWN0aXZlS2V5BgkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAAWYXVjdGlvbkxhc3RCaWRPd25lcktleQIAAAAACQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACBQAAABBsYXN0QXVjdGlvbklkS2V5BQAAAAJpZAUAAAADbmlsAAAAAM9b0WE=", "chainId": 84, "height": 554562, "spentComplexity": 0 } View: original | compacted Prev: 3pbwjFKrugYpYNLRanttfLq4FhvuyJEqtHS3BicsKHoA Next: 23uNSTdLVq9AJYdPTqaUC1sWqEtuiRFqzz63v1XtuaHh Diff:
Old | New | Differences | |
---|---|---|---|
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "error_only_waves_accepted" | |
5 | 5 | ||
6 | - | let b = | |
6 | + | let b = base58'3N8M61KCm8G72mK8PjacFbnnxdbFsyqQDeT' | |
7 | 7 | ||
8 | 8 | @Callable(c) | |
9 | 9 | func GenerateRandInt (d,e) = { |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "error_only_waves_accepted" | |
5 | 5 | ||
6 | - | let b = | |
6 | + | let b = base58'3N8M61KCm8G72mK8PjacFbnnxdbFsyqQDeT' | |
7 | 7 | ||
8 | 8 | @Callable(c) | |
9 | 9 | func GenerateRandInt (d,e) = { | |
10 | 10 | let f = sigVerify(fromBase58String(d), fromBase58String(e), c.callerPublicKey) | |
11 | 11 | if (f) | |
12 | 12 | then { | |
13 | 13 | let g = (toInt(sha256(toBytes(e))) % 6) | |
14 | 14 | WriteSet([DataEntry("orig", toInt(sha256(toBytes(e)))), DataEntry("rand", g)]) | |
15 | 15 | } | |
16 | 16 | else throw("Invalid RSA signature") | |
17 | 17 | } | |
18 | 18 | ||
19 | 19 | ||
20 | 20 | ||
21 | 21 | @Callable(c) | |
22 | 22 | func SetData (h,i) = if ((h == "hello")) | |
23 | 23 | then throw("NONONON!!") | |
24 | 24 | else WriteSet([DataEntry(h, i)]) | |
25 | 25 | ||
26 | 26 | ||
27 | 27 | ||
28 | 28 | @Callable(c) | |
29 | 29 | func bet (j) = { | |
30 | 30 | let k = "last_auction_id" | |
31 | 31 | let l = { | |
32 | 32 | let m = getInteger(this, k) | |
33 | 33 | if ($isInstanceOf(m, "Int")) | |
34 | 34 | then { | |
35 | 35 | let n = m | |
36 | 36 | n | |
37 | 37 | } | |
38 | 38 | else 0 | |
39 | 39 | } | |
40 | 40 | let o = (l + 1) | |
41 | 41 | let p = toString(o) | |
42 | 42 | let q = toBase58String(c.caller.bytes) | |
43 | 43 | let r = value(c.payment) | |
44 | 44 | if (isDefined(r.assetId)) | |
45 | 45 | then throw(a) | |
46 | 46 | else { | |
47 | 47 | let s = toBase58String(value(r.assetId)) | |
48 | 48 | let t = (("auction_" + p) + "_duration") | |
49 | 49 | let u = (("auction_" + p) + "_min_bid") | |
50 | 50 | let v = (("auction_" + p) + "_last_bid") | |
51 | 51 | let w = (("auction_" + p) + "_last_bid_owner") | |
52 | 52 | let x = (("auction_" + p) + "_owner") | |
53 | 53 | let y = (("auction_" + p) + "_amount") | |
54 | 54 | let z = (("auction_" + p) + "_asset_id") | |
55 | 55 | let A = (("auction_" + p) + "_is_active") | |
56 | 56 | let B = ((("balance_" + q) + "_") + s) | |
57 | 57 | let C = { | |
58 | 58 | let m = getInteger(this, B) | |
59 | 59 | if ($isInstanceOf(m, "Int")) | |
60 | 60 | then { | |
61 | 61 | let n = m | |
62 | 62 | n | |
63 | 63 | } | |
64 | 64 | else 0 | |
65 | 65 | } | |
66 | 66 | let D = (C + r.amount) | |
67 | 67 | WriteSet([DataEntry(v, 0), DataEntry(x, q), DataEntry(y, r.amount), DataEntry(z, s), DataEntry(B, D), DataEntry(A, true), DataEntry(w, ""), DataEntry(k, o)]) | |
68 | 68 | } | |
69 | 69 | } | |
70 | 70 | ||
71 | 71 |
github/deemru/w8io/169f3d6 62.95 ms ◑