tx · G52xitCUHPpR4wDVjxeAJBvMMEMMg4s1KDcjuDRRTpqP 3MtkCfhJSAZ6P2bsBM2DdpurZ7S1vepUvrc: -0.01400000 Waves 2019.09.27 18:15 [694987] smart account 3MtkCfhJSAZ6P2bsBM2DdpurZ7S1vepUvrc > SELF 0.00000000 Waves
{ "type": 13, "id": "G52xitCUHPpR4wDVjxeAJBvMMEMMg4s1KDcjuDRRTpqP", "fee": 1400000, "feeAssetId": null, "timestamp": 1569597429000, "version": 1, "sender": "3MtkCfhJSAZ6P2bsBM2DdpurZ7S1vepUvrc", "senderPublicKey": "5M8TjFdQ2hPL23uw5RrCvaES2qU4NpCtn68zqTyiYm2E", "proofs": [ "4SVpgCn9E7BEppneW8ihNyetkYmSmQXfYaPmGSv1egfMv3WN3YwK6Mfv4ghaJiBPSzqEe8BxQpZgcrX7KYgdzsrT" ], "script": "base64:AAIDAAAAAAAAAAAAAAAEAAAAAAdXQVZFTEVUCQAAaAAAAAIJAABoAAAAAgAAAAAAAAAAZAAAAAAAAAAD6AAAAAAAAAAD6AAAAAAKQ09NTUlTU0lPTgkAAGkAAAACCQAAaAAAAAIAAAAAAAAAAAUFAAAAB1dBVkVMRVQAAAAAAAAAA+gAAAAAB3Rva2VuSUQCAAAALDR5c1plVXZ0QnJTVmdKOXYzTWZoM2JXRDJXTlBkNWtRODI3cGlvZ3dwTXg0AAAAAA1wbGF5ZXJTdG9yYWdlCQEAAAAcQGV4dHJVc2VyKGFkZHJlc3NGcm9tU3RyaW5nKQAAAAECAAAAIzNNeFphV0ptZHlwanY4TU12OFJQVHREcTRHTk1QZENpc0pQAAAAAQAAAAFpAQAAAANidXkAAAACAAAACHBsYXllcklEAAAAC3BhY2thZ2VOYW1lBAAAAAR0eElkCQACWAAAAAEIBQAAAAFpAAAADXRyYW5zYWN0aW9uSWQEAAAAA3BtdAkBAAAAB2V4dHJhY3QAAAABCAUAAAABaQAAAAdwYXltZW50BAAAAApwYXltZW50QW10CAUAAAADcG10AAAABmFt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cGxheWVyQWRkcmVzcwkBAAAAFGFkZHJlc3NGcm9tUHVibGljS2V5AAAAAQkAAlkAAAABBQAAAA5wbGF5ZXJQdWJLZXk1OAMFAAAADWJldE5vdEluV2F2ZXMJAAACAAAAAQIAAAAbQmV0IGFtb3VudCBtdXN0IGJlIGluIFdhdmVzAwUAAAANZmVlTm90SW5XYXZlcwkAAAIAAAABAgAAACJUcmFuc2FjdGlvbidzIGZlZSBtdXN0IGJlIGluIFdhdmVzBAAAABBwbGF5ZXJBZGRyZXNzU3RyCQAEJQAAAAEFAAAADXBsYXllckFkZHJlc3MEAAAADXBheW1lbnRTdW1TdHIJAAGkAAAAAQUAAAAKcGF5bWVudFN1bQQAAAANZ2FtZVdhbGxldFN0cgkBAAAAEUBleHRyTmF0aXZlKDEwNTMpAAAAAgUAAAANcGxheWVyU3RvcmFnZQkAASwAAAACBQAAAAhwbGF5ZXJJRAIAAAAIX2FkZHJlc3MEAAAAEWdhbWVXYWxsZXRBZGRyZXNzCQEAAAAcQGV4dHJVc2VyKGFkZHJlc3NGcm9tU3RyaW5nKQAAAAEFAAAADWdhbWVXYWxsZXRTdHIEAAAADnRva2Vuc1RyYW5zZmVyCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMFAAAAEWdhbWVXYWxsZXRBZGRyZXNzAAAAAAAAAAAFCQABmwAAAAEFAAAAB3Rva2VuSUQFAAAAA25pbAkBAAAAC1RyYW5zZmVyU2V0AAAAAQUAAAAOdG9rZW5zVHJhbnNmZXIAAAAAy+EJQg==", "chainId": 84, "height": 694987, "spentComplexity": 0 } View: original | compacted Prev: B85n3erU3UowaFcoqhty2NnDXjf4iLSGguNSW9Yax4z3 Next: 3i6NAMFjn1pdukWv4zXM2zyecVDQLSUgfgrQ7BGxV9tU Diff:
Old | New | Differences | |
---|---|---|---|
37 | 37 | let t = toString(s) | |
38 | 38 | let u = toString(k) | |
39 | 39 | let v = getStringValue(d, (f + "_address")) | |
40 | - | if ((1 == 1)) | |
41 | - | then throw(("Player game Wallet = " + v)) | |
42 | - | else { | |
43 | - | let w = addressFromStringValue(v) | |
44 | - | let x = [ScriptTransfer(w, 5, toBytes(c))] | |
45 | - | TransferSet(x) | |
46 | - | } | |
40 | + | let w = addressFromStringValue(v) | |
41 | + | let x = [ScriptTransfer(w, 5, toBytes(c))] | |
42 | + | TransferSet(x) | |
47 | 43 | } | |
48 | 44 | } | |
49 | 45 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = ((100 * 1000) * 1000) | |
5 | 5 | ||
6 | 6 | let b = ((5 * a) / 1000) | |
7 | 7 | ||
8 | 8 | let c = "4ysZeUvtBrSVgJ9v3Mfh3bWD2WNPd5kQ827piogwpMx4" | |
9 | 9 | ||
10 | 10 | let d = addressFromStringValue("3MxZaWJmdypjv8MMv8RPTtDq4GNMPdCisJP") | |
11 | 11 | ||
12 | 12 | @Callable(e) | |
13 | 13 | func buy (f,g) = { | |
14 | 14 | let h = toBase58String(e.transactionId) | |
15 | 15 | let i = extract(e.payment) | |
16 | 16 | let j = i.amount | |
17 | 17 | let k = ((j - b) / a) | |
18 | 18 | let l = isDefined(getStringValue(this, g)) | |
19 | 19 | if (!(l)) | |
20 | 20 | then throw("This package doesn't exist anymore") | |
21 | 21 | else { | |
22 | 22 | let m = split(g, "_") | |
23 | 23 | let n = parseIntValue(m[0]) | |
24 | 24 | let o = parseIntValue(getStringValue(this, g)) | |
25 | 25 | if ((k != o)) | |
26 | 26 | then throw(((("Donation amount should be " + toString(o)) + " Waves, but we got ") + toString(k))) | |
27 | 27 | else { | |
28 | 28 | let p = isDefined(i.assetId) | |
29 | 29 | let q = isDefined(i.assetId) | |
30 | 30 | let r = toBase58String(e.callerPublicKey) | |
31 | 31 | let s = addressFromPublicKey(fromBase58String(r)) | |
32 | 32 | if (p) | |
33 | 33 | then throw("Bet amount must be in Waves") | |
34 | 34 | else if (q) | |
35 | 35 | then throw("Transaction's fee must be in Waves") | |
36 | 36 | else { | |
37 | 37 | let t = toString(s) | |
38 | 38 | let u = toString(k) | |
39 | 39 | let v = getStringValue(d, (f + "_address")) | |
40 | - | if ((1 == 1)) | |
41 | - | then throw(("Player game Wallet = " + v)) | |
42 | - | else { | |
43 | - | let w = addressFromStringValue(v) | |
44 | - | let x = [ScriptTransfer(w, 5, toBytes(c))] | |
45 | - | TransferSet(x) | |
46 | - | } | |
40 | + | let w = addressFromStringValue(v) | |
41 | + | let x = [ScriptTransfer(w, 5, toBytes(c))] | |
42 | + | TransferSet(x) | |
47 | 43 | } | |
48 | 44 | } | |
49 | 45 | } | |
50 | 46 | } | |
51 | 47 | ||
52 | 48 |
github/deemru/w8io/026f985 31.53 ms ◑