tx · F5wxi4XnZwhcThWNNhDoXYHcEkWroURbSZU8AYavqVtF 3N5iryEj86a3pY3nwLsqXfPbQ2jAn78pXjn: -0.01000000 Waves 2019.10.18 19:20 [725673] smart account 3N5iryEj86a3pY3nwLsqXfPbQ2jAn78pXjn > SELF 0.00000000 Waves
{ "type": 13, "id": "F5wxi4XnZwhcThWNNhDoXYHcEkWroURbSZU8AYavqVtF", "fee": 1000000, "feeAssetId": null, "timestamp": 1571415661937, "version": 1, "sender": "3N5iryEj86a3pY3nwLsqXfPbQ2jAn78pXjn", "senderPublicKey": "CZSf2oXBBDdW225HUCvmBXCt2zxEcFAciefw1CE4UyNt", "proofs": [ "4ZceKknja5VVH1KLRspzkWwXLYuwoefgCV9abtfa4AC8c9b7zCKbpZv2dy36BSwJBaG4D6Umpsnzx385Gyj6mubT" ], "script": "base64:AAIDAAAAAAAAAAYIARIAEgAAAAAEAAAAAAZpc3N1ZXIJAQAAAAdBZGRyZXNzAAAAAQEAAAAKMHNA6BgrVo5j4gAAAAAHYXNzZXRJZAEAAAAgVa8F3KfcsjaG5bdAZm3jcIPTyVszBC54bWpEjtXcznYBAAAACnJhbmRvbWl6ZXIAAAABAAAAA2ludgQAAAAKdWx0aW1vSm9nbwQAAAAHJG1hdGNoMAkABBwAAAACBQAAAAR0aGlzAgAAAAp1bHRpbW9Kb2dvAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAApCeXRlVmVjdG9yBAAAAAFzBQAAAAckbWF0Y2gwBQAAAAFzAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAARVbml0BAAAAAFhBQAAAAckbWF0Y2gwAQAAAApBcG9zdGFzV0JUCQEAAAAFdGhyb3cAAAAABAAAAARyYW5kCQAAywAAAAIJAADLAAAAAgkAAMsAAAACCQAAywAAAAIJAADLAAAAAgUAAAAKdWx0aW1vSm9nbwgFAAAAA2ludgAAAA10cmFuc2FjdGlvbklkCAUAAAADaW52AAAAD2NhbGxlclB1YmxpY0tleQgFAAAACWxh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AAAgIAAAAKdWx0aW1vSm9nbwUAAAAIcmFuZGhhc2gFAAAAA25pbAMJAABmAAAAAgAAAAAAAAAB9AkAAGoAAAACCQAEsQAAAAEFAAAACHJhbmRoYXNoAAAAAAAAAAPoCQEAAAAMU2NyaXB0UmVzdWx0AAAAAgUAAAARZ3JhdmFVbHRpbWFKb2dhZGEFAAAACXRyYW5zZmVyZQkBAAAADFNjcmlwdFJlc3VsdAAAAAIFAAAAEWdyYXZhVWx0aW1hSm9nYWRhCQEAAAALVHJhbnNmZXJTZXQAAAABBQAAAANuaWwAAAACAAAAA2ludgEAAAAFbG90dG8AAAAACQEAAAAJYXBvc3RhV0JUAAAAAQUAAAADaW52AAAAA2ludgEAAAAHZGVmYXVsdAAAAAAJAQAAAAlhcG9zdGFXQlQAAAABBQAAAANpbnYAAAAA8xEeqg==", "chainId": 84, "height": 725673, "spentComplexity": 0 } View: original | compacted Prev: none Next: 9gQ5g32XP6kVTR7s4J4WErBzmX3zLy7FfkbmXycUwrvH Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 3 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let a = Address(base58'3issuerAddress') | |
5 | + | ||
6 | + | let b = base58'6mUSqVGteY6pQitcbXFzJd2C7r85dn31pdHS9LzEuxQu' | |
7 | + | ||
8 | + | func c (d) = { | |
9 | + | let e = { | |
10 | + | let f = getBinary(this, "ultimoJogo") | |
11 | + | if ($isInstanceOf(f, "ByteVector")) | |
12 | + | then { | |
13 | + | let g = f | |
14 | + | g | |
15 | + | } | |
16 | + | else if ($isInstanceOf(f, "Unit")) | |
17 | + | then { | |
18 | + | let h = f | |
19 | + | base58'4gEivd7cGhPHTZ' | |
20 | + | } | |
21 | + | else throw() | |
22 | + | } | |
23 | + | let i = (((((e + d.transactionId) + d.callerPublicKey) + lastBlock.generationSignature) + toBytes(lastBlock.timestamp)) + toBytes(lastBlock.height)) | |
24 | + | sha256(i) | |
25 | + | } | |
26 | + | ||
27 | + | ||
28 | + | func j (d) = { | |
29 | + | let k = assetBalance(this, b) | |
30 | + | let l = extract(d.payment) | |
31 | + | if (isDefined(d.payment)) | |
32 | + | then throw("Você não pode apostar com Waves.") | |
33 | + | else if ((l.assetId != b)) | |
34 | + | then throw("Você deve fazer o pagamento em SendToken") | |
35 | + | else if ((l.amount > k)) | |
36 | + | then throw(("O pagamento deve ser menor que " + toString(k))) | |
37 | + | else { | |
38 | + | let m = c(d) | |
39 | + | let n = TransferSet([ScriptTransfer(d.caller, ((l.amount * 190) / 100), b)]) | |
40 | + | let o = WriteSet([DataEntry("ultimoJogo", m)]) | |
41 | + | if ((500 > (toInt(m) % 1000))) | |
42 | + | then ScriptResult(o, n) | |
43 | + | else ScriptResult(o, TransferSet(nil)) | |
44 | + | } | |
45 | + | } | |
46 | + | ||
47 | + | ||
48 | + | @Callable(d) | |
49 | + | func lotto () = j(d) | |
50 | + | ||
51 | + | ||
52 | + | ||
53 | + | @Callable(d) | |
54 | + | func default () = j(d) | |
55 | + | ||
56 | + |
github/deemru/w8io/169f3d6 17.77 ms ◑