tx · 5tU35vRSBPDi5vGrkhHBpMwJaEVAWcr6oTrPngY5rEf9

3N7nsMd1zzkmKmQFTRuAtUHRchJocKbNyyA:  -0.01000000 Waves

2019.06.27 14:54 [560505] smart account 3N7nsMd1zzkmKmQFTRuAtUHRchJocKbNyyA > SELF 0.00000000 Waves

{ "type": 13, "id": "5tU35vRSBPDi5vGrkhHBpMwJaEVAWcr6oTrPngY5rEf9", "fee": 1000000, "feeAssetId": null, "timestamp": 1561636444547, "version": 1, "sender": "3N7nsMd1zzkmKmQFTRuAtUHRchJocKbNyyA", "senderPublicKey": "49jCAx3nnNQ9Xj5xUXwhjy5czmt1AWLHMYf6PxxjFzip", "proofs": [ "2VFc9e3RsyGyMX2KUcrKPKLipCVS4Q9MPH9hdKxnzz1noXnsS9iqiwYXSB4oHVBcfmpFygB4NhdK2vNbMSijVtqW" ], "script": "base64:AgQAAAARZW1wbG95ZWVQdWJsaWNLZXkBAAAAIOhJV7T3E/sDzyx0gkPLAHSn7un5Ex1h6AiuiE07fmJaBAAAAA5vd25lclB1YmxpY0tleQEAAAAgLs9qIqF/gFv4H5JpbGM4G2/jXU6IPL5XKgU/j2tvSm0EAAAADmNvbXBhbnlBc3NldElEAQAAACDzuvEcY7lmVpwQTbK1RUBOWABWYh6eWrhgnGMBFaaCsgQAAAAOd2l0aGRyYXdBbW91bnQAAAAAAA7msoAEAAAADm51bU9mV2l0aGRyYXdzAAAAAAAAAAAEBAAAAA1wcmVtaXVtQnVkZ2V0AAAAAAA7msoABAAAAAR0aGlzCQEAAAAHZXh0cmFjdAAAAAEIBQAAAAJ0eAAAAAZzZW5kZXIEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNUcmFuc2ZlclRyYW5zYWN0aW9uBAAAAAF0BQAAAAckbWF0Y2gwBAAAAAlmcm9tT3duZXIJAAH0AAAAAwgFAAAAAXQAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAF0AAAABnByb29mc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cm9vZnMAAAAAAAAAAAAFAAAADm93bmVyUHVibGljS2V5B2m/2yg=", "chainId": 84, "height": 560505, "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 2 #-}
2+{-# CONTENT_TYPE EXPRESSION #-}
3+let employeePublicKey = base58'GdkT8KewPT7fZGtCmmPx94SqTzSpMuhnpBVdaQaq5PSR'
4+let ownerPublicKey = base58'49jCAx3nnNQ9Xj5xUXwhjy5czmt1AWLHMYf6PxxjFzip'
5+let companyAssetID = base58'HQRQNF5iq1yAvSDqTvK8JC2D3dfn8tkkWPdBmDez2Riq'
6+let withdrawAmount = 250000000
7+let numOfWithdraws = 4
8+let premiumBudget = 1000000000
9+let this = extract(tx.sender)
10+match tx {
11+ case t: TransferTransaction =>
12+ let fromOwner = sigVerify(t.bodyBytes, t.proofs[0], ownerPublicKey)
13+ if (fromOwner)
14+ then true
15+ else {
16+ let fromEmployee = sigVerify(t.bodyBytes, t.proofs[0], employeePublicKey)
17+ if (fromEmployee)
18+ then {
19+ let attempt = (numOfWithdraws - (assetBalance(t.sender, companyAssetID) / withdrawAmount))
20+ let keyName = ("dates" + toString(attempt))
21+ let targetDate = if (isDefined(getInteger(this, keyName)))
22+ then extract(getInteger(this, keyName))
23+ else throw("Incorrect witdraw attempt or missing key on Smart account state")
24+ if (if ((t.timestamp >= targetDate))
25+ then (t.amount == withdrawAmount)
26+ else false)
27+ then (t.assetId == companyAssetID)
28+ else false
29+ }
30+ else false
31+ }
32+ case s: DataTransaction|SetScriptTransaction =>
33+ sigVerify(s.bodyBytes, s.proofs[0], ownerPublicKey)
34+ case _ =>
35+ false
36+}

github/deemru/w8io/169f3d6 
14.85 ms