tx · F5piSAY7RwaFox5DAbd11EdFuxD7AgEQo1N6pxi4Ms3r 3Mu9qAjmg8fVTxxpwPZnBAH948ujt4m6Xvk: -0.01000000 Waves 2021.10.14 18:58 [1746150] smart account 3Mu9qAjmg8fVTxxpwPZnBAH948ujt4m6Xvk > SELF 0.00000000 Waves
{ "type": 13, "id": "F5piSAY7RwaFox5DAbd11EdFuxD7AgEQo1N6pxi4Ms3r", "fee": 1000000, "feeAssetId": null, "timestamp": 1634227134378, "version": 2, "chainId": 84, "sender": "3Mu9qAjmg8fVTxxpwPZnBAH948ujt4m6Xvk", "senderPublicKey": "8v9pmcXqHz9DTc5k1Z8duTYyDwykFxN3EzdZ9WAn3KXJ", "proofs": [ "yT7zt1PchkNmdWmQdnxTRTZLT7YFtcgdZYmc6GY7mdqPhNbnP78Xaghc6NpB5J8HRZuQ59yC3o6iv1xo5BQR85v" ], "script": "base64:AAIDAAAAAAAAAAgIARIECgIBAQAAAAIBAAAACnJhbmRvbWl6ZXIAAAABAAAAA2ludgQAAAAIbGFzdFBsYXkEAAAAByRtYXRjaDAJAAQcAAAAAgUAAAAEdGhpcwIAAAAIbGFzdFBsYXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAACkJ5dGVWZWN0b3IEAAAAAXMFAAAAByRtYXRjaDAFAAAAAXMDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABFVuaXQBAAAADFdhdmVzTG90dG9WMgkAAAIAAAABAgAAAAtNYXRjaCBlcnJvcgQAAAAEcmFuZAkAAMsAAAACCQAAywAAAAIJAADLAAAAAgkAAMsAAAACCQAAywAAAAIFAAAACGxhc3RQbGF5CAUAAAADaW52AAAADXRyYW5zYWN0aW9uSWQIBQAAAANpbnYAAAAPY2FsbGVyUHVibGljS2V5CAUAAAAJbGFzdEJsb2NrAAAAE2dlbmVyYXRpb25TaWduYXR1cmUJAAGaAAAAAQgFAAAACWxhc3RCbG9jawAAAAl0aW1lc3RhbXAJAAGaAAAAAQgFAAAACWxhc3RC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plcgAAAAEFAAAAA2ludgQAAAAEcmFuZAkAAGoAAAACCQAEsQAAAAEFAAAACHJhbmRoYXNoAAAAAAAAAABlBAAAAA13cml0ZUxhc3RQbGF5CQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACAgAAAAhsYXN0UGxheQUAAAAEcmFuZAkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgIAAAAHbGFzdGJldAkAASwAAAACCQABLAAAAAIJAAGkAAAAAQUAAAAKZ3Vlc3NTdGFydAIAAAABXwkAAaQAAAABBQAAAAhndWVzc0VuZAUAAAADbmlsAwMJAABmAAAAAgUAAAAIZ3Vlc3NFbmQFAAAABHJhbmQJAABmAAAAAgUAAAAEcmFuZAUAAAAKZ3Vlc3NTdGFydAcJAQAAAAxTY3JpcHRSZXN1bHQAAAACBQAAAA13cml0ZUxhc3RQbGF5CQEAAAALVHJhbnNmZXJTZXQAAAABCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAANpbnYAAAAGY2FsbGVyCQAAaQAAAAIJAABoAAAAAggFAAAAB3BheW1lbnQAAAAGYW1vdW50AAAAAAAAAAC+AAAAAAAAAABkBQAAAAR1bml0BQAAAANuaWwJAQAAAAxTY3JpcHRSZXN1bHQAAAACBQAAAA13cml0ZUxhc3RQbGF5CQEAAAALVHJhbnNmZXJTZXQAAAABBQAAAANuaWwAAAABAAAAA2ludgEAAAAJemVybzJoZXJvAAAAAgAAAApndWVzc1N0YXJ0AAAACGd1ZXNzRW5kCQEAAAAKc3RhcnRMb3R0bwAAAAMFAAAAA2ludgUAAAAKZ3Vlc3NTdGFydAUAAAAIZ3Vlc3NFbmQAAAAAnzvmaQ==", "height": 1746150, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3xQfeiWp54XmH3v7wLVBVUivtM9AM9DZFametgosYMeV Next: 7V2dyp9oNZPAGjFinKLfGDdnXdMa9mEpVE3oD4UuvhAJ Diff:
Old | New | Differences | |
---|---|---|---|
35 | 35 | then throw("guessStart and guessEnd Must be in between 0-100") | |
36 | 36 | else { | |
37 | 37 | let l = a(b) | |
38 | - | let f = (toInt(l) % | |
38 | + | let f = (toInt(l) % 101) | |
39 | 39 | let m = WriteSet([DataEntry("lastPlay", f), DataEntry("lastbet", ((toString(h) + "_") + toString(i)))]) | |
40 | 40 | if (if ((i > f)) | |
41 | 41 | then (f > h) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | func a (b) = { | |
5 | 5 | let c = { | |
6 | 6 | let d = getBinary(this, "lastPlay") | |
7 | 7 | if ($isInstanceOf(d, "ByteVector")) | |
8 | 8 | then { | |
9 | 9 | let e = d | |
10 | 10 | e | |
11 | 11 | } | |
12 | 12 | else if ($isInstanceOf(d, "Unit")) | |
13 | 13 | then base58'2ee4oFDYriWJ9EMeR' | |
14 | 14 | else throw("Match error") | |
15 | 15 | } | |
16 | 16 | let f = (((((c + b.transactionId) + b.callerPublicKey) + lastBlock.generationSignature) + toBytes(lastBlock.timestamp)) + toBytes(lastBlock.height)) | |
17 | 17 | sha256(f) | |
18 | 18 | } | |
19 | 19 | ||
20 | 20 | ||
21 | 21 | func g (b,h,i) = { | |
22 | 22 | let j = (wavesBalance(this) / 100) | |
23 | 23 | let k = extract(b.payment) | |
24 | 24 | if (!(isDefined(b.payment))) | |
25 | 25 | then throw("Should be with Payment in Waves") | |
26 | 26 | else if (isDefined(k.assetId)) | |
27 | 27 | then throw("Payment should be in Waves") | |
28 | 28 | else if ((k.amount > j)) | |
29 | 29 | then throw(("Payment should be less than " + toString(j))) | |
30 | 30 | else if ((0 > h)) | |
31 | 31 | then throw("guessStart and guessEnd Must be in between 0-100") | |
32 | 32 | else if ((i > 100)) | |
33 | 33 | then throw("guessStart and guessEnd Must be in between 0-100") | |
34 | 34 | else if ((h > i)) | |
35 | 35 | then throw("guessStart and guessEnd Must be in between 0-100") | |
36 | 36 | else { | |
37 | 37 | let l = a(b) | |
38 | - | let f = (toInt(l) % | |
38 | + | let f = (toInt(l) % 101) | |
39 | 39 | let m = WriteSet([DataEntry("lastPlay", f), DataEntry("lastbet", ((toString(h) + "_") + toString(i)))]) | |
40 | 40 | if (if ((i > f)) | |
41 | 41 | then (f > h) | |
42 | 42 | else false) | |
43 | 43 | then ScriptResult(m, TransferSet([ScriptTransfer(b.caller, ((k.amount * 190) / 100), unit)])) | |
44 | 44 | else ScriptResult(m, TransferSet(nil)) | |
45 | 45 | } | |
46 | 46 | } | |
47 | 47 | ||
48 | 48 | ||
49 | 49 | @Callable(b) | |
50 | 50 | func zero2hero (h,i) = g(b, h, i) | |
51 | 51 | ||
52 | 52 |
github/deemru/w8io/169f3d6 33.71 ms ◑