tx · FqfkjaPqqTE3FvVt5u87djsWJk9m6Txz4RRSTfrdrKNn

3MudoQDrftH1ko8mqmVrCGzZdfbxwp4S1VT:  -0.01000000 Waves

2019.09.09 04:30 [667875] smart account 3MudoQDrftH1ko8mqmVrCGzZdfbxwp4S1VT > SELF 0.00000000 Waves

{ "type": 13, "id": "FqfkjaPqqTE3FvVt5u87djsWJk9m6Txz4RRSTfrdrKNn", "fee": 1000000, "feeAssetId": null, "timestamp": 1567992537675, "version": 1, "sender": "3MudoQDrftH1ko8mqmVrCGzZdfbxwp4S1VT", "senderPublicKey": "782odmxJZG6YvTj533N39KECa2DMHvWmb3iEtfsDs95v", "proofs": [ "2JA1geeSQiBfJsVbpw8fCGNwgzhjLZggGhdx3sGPZTssSC9odyFQkVCBysQ79S58v34Yj8SAxKeMkKn254itC3wx" ], "script": "base64:AAIDAAAAAAAAAAAAAAAIAAAAAAxUWENPVU5URVJLRVkCAAAAByRUWF9OVU0AAAAABlRPUFRYUwIAAAAIJFRPUF9UWFMAAAAABk1pbkFtdAAAAAAAAAAABQAAAAAHV0FWRUxFVAkAAGgAAAACCQAAaAAAAAIAAAAAAAAAAGQAAAAAAAAAA+gAAAAAAAAAA+gAAAAACkNPTU1JU1NJT04JAABpAAAAAgkAAGgAAAACAAAAAAAAAAAFBQAAAAdXQVZFTEVUAAAAAAAAAAPoAQAAAA5JbmNyZW1lbnRUeE51bQAAAAEAAAAEdHhJZAQAAAAFdHhOdW0EAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwUAAAAMVFhDT1VOVEVSS0VZAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAA251bQUAAAAHJG1hdGNoMAUAAAADbnVtAAAAAAAAAAAACQAAZAAAAAIFAAAABXR4TnVtAAAAAAAAAAABAQAAAAZnZXRBbXQAAAABAAAABXR4TnVtBAAAAAdEYXRhU3RyCQEAAAARQGV4dHJOYXRpdmUoMTA1MykAAAACBQAAAAR0aGlzBQAAAAV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tCZXQgYW1vdW50IG11c3QgYmUgaW4gV2F2ZXMDBQAAAA1mZWVOb3RJbldhdmVzCQAAAgAAAAECAAAAIlRyYW5zYWN0aW9uJ3MgZmVlIG11c3QgYmUgaW4gV2F2ZXMEAAAAEHBsYXllckFkZHJlc3NTdHIJAAQlAAAAAQUAAAANcGxheWVyQWRkcmVzcwQAAAANcGF5bWVudFN1bVN0cgkAAaQAAAABBQAAAApwYXltZW50U3VtBAAAAAh0eE51bVN0cgkAAaQAAAABBQAAAAV0eE51bQQAAAANdG9UaGVNb29uRGF0YQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAAIdHhOdW1TdHIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgUAAAAHbWVzc2FnZQIAAAABXwUAAAAQcGxheWVyQWRkcmVzc1N0cgIAAAABXwUAAAANcGF5bWVudFN1bVN0cgkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAAGVE9QVFhTCQEAAAAJZ2V0VG9wVHhzAAAAAgUAAAAIdHhOdW1TdHIFAAAACnBheW1lbnRTdW0FAAAAA25pbAkBAAAACFdyaXRlU2V0AAAAAQUAAAANdG9UaGVNb29uRGF0YQAAAABhpXZg", "chainId": 84, "height": 667875, "spentComplexity": 0 } View: original | compacted Prev: none Next: BjtG6mwJeVypEE8NVd2zBqnvjqduLpNQJaVzb2RM9qpG Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 3 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+let TXCOUNTERKEY = "$TX_NUM"
5+
6+let TOPTXS = "$TOP_TXS"
7+
8+let MinAmt = 5
9+
10+let WAVELET = ((100 * 1000) * 1000)
11+
12+let COMMISSION = ((5 * WAVELET) / 1000)
13+
14+func IncrementTxNum (txId) = {
15+ let txNum = match getInteger(this, TXCOUNTERKEY) {
16+ case num: Int =>
17+ num
18+ case _ =>
19+ 0
20+ }
21+ (txNum + 1)
22+ }
23+
24+
25+func getAmt (txNum) = {
26+ let DataStr = getStringValue(this, txNum)
27+ let Data = split(DataStr, "_")
28+ parseIntValue(Data[2])
29+ }
30+
31+
32+func getTopTxs (txNum,paymentSum) = {
33+ let topStrExist = isDefined(getString(this, TOPTXS))
34+ if (topStrExist)
35+ then {
36+ let topTxs = getStringValue(this, TOPTXS)
37+ let topTxsList = split(topTxs, "_")
38+ let s1Str = topTxsList[0]
39+ let s2Str = topTxsList[1]
40+ let s3Str = topTxsList[2]
41+ let s4Str = topTxsList[3]
42+ let s5Str = topTxsList[4]
43+ let s6Str = topTxsList[5]
44+ let s7Str = topTxsList[6]
45+ let s8Str = topTxsList[7]
46+ let s9Str = topTxsList[8]
47+ let s10Str = topTxsList[9]
48+ if ((paymentSum >= getAmt(s10Str)))
49+ then if ((paymentSum >= getAmt(s9Str)))
50+ then if ((paymentSum >= getAmt(s8Str)))
51+ then if ((paymentSum >= getAmt(s7Str)))
52+ then if ((paymentSum >= getAmt(s6Str)))
53+ then if ((paymentSum >= getAmt(s5Str)))
54+ then if ((paymentSum >= getAmt(s4Str)))
55+ then if ((paymentSum >= getAmt(s3Str)))
56+ then if ((paymentSum >= getAmt(s2Str)))
57+ then if ((paymentSum >= getAmt(s1Str)))
58+ then ((((((((((((((((((txNum + "_") + s1Str) + "_") + s2Str) + "_") + s3Str) + "_") + s4Str) + "_") + s5Str) + "_") + s6Str) + "_") + s7Str) + "_") + s8Str) + "_") + s9Str)
59+ else ((((((((((((((((((s1Str + "_") + txNum) + "_") + s2Str) + "_") + s3Str) + "_") + s4Str) + "_") + s5Str) + "_") + s6Str) + "_") + s7Str) + "_") + s8Str) + "_") + s9Str)
60+ else ((((((((((((((((((s1Str + "_") + s2Str) + "_") + txNum) + "_") + s3Str) + "_") + s4Str) + "_") + s5Str) + "_") + s6Str) + "_") + s7Str) + "_") + s8Str) + "_") + s9Str)
61+ else ((((((((((((((((((s1Str + "_") + s2Str) + "_") + s3Str) + "_") + txNum) + "_") + s4Str) + "_") + s5Str) + "_") + s6Str) + "_") + s7Str) + "_") + s8Str) + "_") + s9Str)
62+ else ((((((((((((((((((s1Str + "_") + s2Str) + "_") + s3Str) + "_") + s4Str) + "_") + txNum) + "_") + s5Str) + "_") + s6Str) + "_") + s7Str) + "_") + s8Str) + "_") + s9Str)
63+ else ((((((((((((((((((s1Str + "_") + s2Str) + "_") + s3Str) + "_") + s4Str) + "_") + s5Str) + "_") + txNum) + "_") + s6Str) + "_") + s7Str) + "_") + s8Str) + "_") + s9Str)
64+ else ((((((((((((((((((s1Str + "_") + s2Str) + "_") + s3Str) + "_") + s4Str) + "_") + s5Str) + "_") + s6Str) + "_") + txNum) + "_") + s7Str) + "_") + s8Str) + "_") + s9Str)
65+ else ((((((((((((((((((s1Str + "_") + s2Str) + "_") + s3Str) + "_") + s4Str) + "_") + s5Str) + "_") + s6Str) + "_") + s7Str) + "_") + txNum) + "_") + s8Str) + "_") + s9Str)
66+ else ((((((((((((((((((s1Str + "_") + s2Str) + "_") + s3Str) + "_") + s4Str) + "_") + s5Str) + "_") + s6Str) + "_") + s7Str) + "_") + s8Str) + "_") + txNum) + "_") + s9Str)
67+ else ((((((((((((((((((s1Str + "_") + s2Str) + "_") + s3Str) + "_") + s4Str) + "_") + s5Str) + "_") + s6Str) + "_") + s7Str) + "_") + s8Str) + "_") + s9Str) + "_") + txNum)
68+ else topTxs
69+ }
70+ else (txNum + "_0_0_0_0_0_0_0_0_0")
71+ }
72+
73+
74+@Callable(i)
75+func send (message) = {
76+ let txId = toBase58String(i.transactionId)
77+ let txNum = IncrementTxNum(txId)
78+ let pmt = extract(i.payment)
79+ let paymentAmt = pmt.amount
80+ let paymentSum = (paymentAmt / WAVELET)
81+ if ((MinAmt > (paymentSum - COMMISSION)))
82+ then throw((("Donation amount should be at least " + toString(MinAmt)) + " Waves"))
83+ else {
84+ let betNotInWaves = isDefined(pmt.assetId)
85+ let feeNotInWaves = isDefined(pmt.assetId)
86+ let playerPubKey58 = toBase58String(i.callerPublicKey)
87+ let playerAddress = addressFromPublicKey(fromBase58String(playerPubKey58))
88+ if (betNotInWaves)
89+ then throw("Bet amount must be in Waves")
90+ else if (feeNotInWaves)
91+ then throw("Transaction's fee must be in Waves")
92+ else {
93+ let playerAddressStr = toString(playerAddress)
94+ let paymentSumStr = toString(paymentSum)
95+ let txNumStr = toString(txNum)
96+ let toTheMoonData = [DataEntry(txNumStr, ((((message + "_") + playerAddressStr) + "_") + paymentSumStr)), DataEntry(TOPTXS, getTopTxs(txNumStr, paymentSum))]
97+ WriteSet(toTheMoonData)
98+ }
99+ }
100+ }
101+
102+

github/deemru/w8io/169f3d6 
24.85 ms