tx · 66kiwzM9iDbh6vfXRcvYqKoG8Thk2vGTqic2gZ1MLPoK

3NBK69gJ9bUCV8DABxanS2ha48decFyHaaU:  -0.01400000 Waves

2019.02.11 15:06 [490461] smart account 3NBK69gJ9bUCV8DABxanS2ha48decFyHaaU > SELF 0.00000000 Waves

{ "type": 13, "id": "66kiwzM9iDbh6vfXRcvYqKoG8Thk2vGTqic2gZ1MLPoK", "fee": 1400000, "feeAssetId": null, "timestamp": 1549886841604, "version": 1, "sender": "3NBK69gJ9bUCV8DABxanS2ha48decFyHaaU", "senderPublicKey": "7aCBaG1Dq8vPf5tb8bh39Qad1Wht71irZJdzZZF9BssD", "proofs": [ "552iU439Jy9K188dVVmqh4z8vE9sAAuEfhw9e9XCEc5fRaLsXYRSwLjASYJPmwJS6tjQbdhRRWxjaWywczapyZsd" ], "script": "base64:AQQAAAAGYXV0aG9yAgAAABVNYURhTWEgTGFicyBAZGFpZGFsb3MEAAAACG9uZVdhdmVzAAAAAAAF9eEABAAAAAtwYXllZEFtb3VudAkAAGgAAAACAAAAAAAAAAABBQAAAAhvbmVXYXZlcwQAAAAKcGF5ZWRUeEZlZQkAAGkAAAACBQAAAAhvbmVXYXZlcwAAAAAAAAAACgQAAAAJZGF0YVR4RmVlCQAAaQAAAAIFAAAACG9uZVdhdmVzAAAAAAAAAAAKBAAAAAZzcXVhcmUAAAAAAAAAADIEAAAACHN0YXJ0UG9zAAAAAAAAAAAABAAAAAZlbmRQb3MJAABpAAAAAgkAAGkAAAACCQAAaAAAAAIAAAAAAAAAA+gAAAAAAAAAA+gFAAAABnNxdWFyZQUAAAAGc3F1YXJlBAAAABFsYXN0SGVpZ2h0Rm9yU2FsZQAAAAAAAAeLzAQAAAAVYWRkcmVzc1RvUGF5UHVibGljS2V5AQAAACDjKn5wF7Z1moYRmbETHzMoKJwNrg/e0JKCxp1UMGSDawQAAAAMYWRkcmVzc1RvUGF5CQEAAAAUYWRkcmVzc0Zyb21QdWJsaWNLZXkAAAABBQAAABVh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lvbiBtZXRob2QEAAAAByRtYXRjaDEFAAAACXBheW1lbnRUeAMJAAABAAAAAgUAAAAHJG1hdGNoMQIAAAATVHJhbnNmZXJUcmFuc2FjdGlvbgQAAAAJcGF5bWVudFR4BQAAAAckbWF0Y2gxAwMDAwMFAAAAFmRhdGFUcmFuc2FjdGlvbklzVmFsaWQJAAAAAAAAAggFAAAACXBheW1lbnRUeAAAAAlyZWNpcGllbnQFAAAADGFkZHJlc3NUb1BheQcJAABnAAAAAggFAAAACXBheW1lbnRUeAAAAAZhbW91bnQJAABlAAAAAgUAAAAQcGF5ZWRBbW91bnRGaW5hbAUAAAAKcGF5ZWRUeEZlZQcJAQAAAAEhAAAAAQkBAAAACWlzRGVmaW5lZAAAAAEIBQAAAAlwYXltZW50VHgAAAAHYXNzZXRJZAcJAAH0AAAAAwgFAAAAAXQAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAF0AAAABnByb29mcwAAAAAAAAAAAAgFAAAACXBheW1lbnRUeAAAAA9zZW5kZXJQdWJsaWNLZXkHCQAAAAAAAAIIBQAAAAF0AAAAA2ZlZQUAAAAJZGF0YVR4RmVlBwcHGBPGsg==", "chainId": 84, "height": 490461, "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 1 #-}
2+{-# CONTENT_TYPE EXPRESSION #-}
3+let author = "MaDaMa Labs @daidalos"
4+let oneWaves = 100000000
5+let payedAmount = (1 * oneWaves)
6+let payedTxFee = (oneWaves / 10)
7+let dataTxFee = (oneWaves / 10)
8+let square = 50
9+let startPos = 0
10+let endPos = (((1000 * 1000) / square) / square)
11+let lastHeightForSale = 494540
12+let addressToPayPublicKey = base58'GHm8VfXMWTzSJfKhZ4DXDYBCUGcUXpgBXxhgJABuTK7x'
13+let addressToPay = addressFromPublicKey(addressToPayPublicKey)
14+let mePublicKey = base58'7aCBaG1Dq8vPf5tb8bh39Qad1Wht71irZJdzZZF9BssD'
15+let me = addressFromPublicKey(mePublicKey)
16+match tx {
17+ case t: DataTransaction =>
18+ let insertPos = extract(getInteger(t.data, "pos"))
19+ let copyright0 = "@tradisys_global validator for public DataTransaction method"
20+ let paymentTxId = extract(getString(t.data, "pTxId"))
21+ let satisfiesFormat = if (if (if (if (if ((size(t.data) == 4))
22+ then isDefined(getInteger(t.data, "pos"))
23+ else false)
24+ then isDefined(getString(t.data, toString(insertPos)))
25+ else false)
26+ then isDefined(getString(t.data, "pTxId"))
27+ else false)
28+ then isDefined(getBoolean(t.data, paymentTxId))
29+ else false)
30+ then (extract(getBoolean(t.data, paymentTxId)) == true)
31+ else false
32+ let validPos = if ((insertPos >= startPos))
33+ then (endPos >= insertPos)
34+ else false
35+ let posNotUsed = if (!(isDefined(getString(me, toString(insertPos)))))
36+ then true
37+ else (insertPos == endPos)
38+ let copyright1 = "@tradisys_global validator for public DataTransaction method"
39+ let txIdNotUsed = !(isDefined(getBoolean(me, paymentTxId)))
40+ let dataTransactionIsValid = if (if (if (satisfiesFormat)
41+ then validPos
42+ else false)
43+ then posNotUsed
44+ else false)
45+ then txIdNotUsed
46+ else false
47+ let copyright2 = "@tradisys_global validator for public DataTransaction method"
48+ let paymentTx = transactionById(fromBase58String(paymentTxId))
49+ let heightOfTx = extract(transactionHeightById(fromBase58String(paymentTxId)))
50+ let payedAmountFinal = if ((heightOfTx > lastHeightForSale))
51+ then payedAmount
52+ else ((payedAmount / 5) * 4)
53+ let copyright3 = "@tradisys_global validator for public DataTransaction method"
54+ match paymentTx {
55+ case paymentTx: TransferTransaction =>
56+ if (if (if (if (if (dataTransactionIsValid)
57+ then (paymentTx.recipient == addressToPay)
58+ else false)
59+ then (paymentTx.amount >= (payedAmountFinal - payedTxFee))
60+ else false)
61+ then !(isDefined(paymentTx.assetId))
62+ else false)
63+ then sigVerify(t.bodyBytes, t.proofs[0], paymentTx.senderPublicKey)
64+ else false)
65+ then (t.fee == dataTxFee)
66+ else false
67+ case _ =>
68+ false
69+ }
70+ case _ =>
71+ false
72+}

github/deemru/w8io/169f3d6 
17.44 ms