tx · Eft2EKFKhJr8sEaffv4LiG9hY9Vo5LjpL8bCTwVJNDhG

3N3sVqNviLW8oXtNFids96WheCPVhVH6MxY:  -0.01000000 Waves

2019.06.24 15:29 [556168] smart account 3N3sVqNviLW8oXtNFids96WheCPVhVH6MxY > SELF 0.00000000 Waves

{ "type": 13, "id": "Eft2EKFKhJr8sEaffv4LiG9hY9Vo5LjpL8bCTwVJNDhG", "fee": 1000000, "feeAssetId": null, "timestamp": 1561379369980, "version": 1, "sender": "3N3sVqNviLW8oXtNFids96WheCPVhVH6MxY", "senderPublicKey": "1wL7DuULCyVDWMe1JNaLWiTTEcWUinaWX8h82hgH8k2", "proofs": [ "2nnuTLhMvXkyWuMEgbdeFbQ26Vwd8wB14qyJy1AFhrjJBeTiz6EXU1bJDNWMd7wAEL985JMJhmCuee7vdrg9k53k" ], "script": "base64:AwQAAAARZW1wbG95ZWVQdWJsaWNLZXkBAAAAIOhJV7T3E/sDzyx0gkPLAHSn7un5Ex1h6AiuiE07fmJaBAAAAA5vd25lclB1YmxpY0tleQEAAAAgLs9qIqF/gFv4H5JpbGM4G2/jXU6IPL5XKgU/j2tvSm0EAAAADmNvbXBhbnlBc3NldElEAQAAACDzuvEcY7lmVpwQTbK1RUBOWABWYh6eWrhgnGMBFaaCsgQAAAAOd2l0aGRyYXdBbW91bnQAAAAAAA7msoAEAAAADm51bU9mV2l0aGRyYXdzAAAAAAAAAAAEBAAAAA1wcmVtaXVtQnVkZ2V0AAAAAAA7msoABAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATVHJhbnNmZXJUcmFuc2FjdGlvbgQAAAABdAUAAAAHJG1hdGNoMAQAAAAJZnJvbU93bmVyCQAB9AAAAAMIBQAAAAF0AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAABdAAAAAZwcm9vZnMAAAAAAAAAAAAFAAAADm93bmVyUHVibGljS2V5AwUAAAAJZnJvbU93bmVyBgQAAAAMZnJvbUV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ev: none Next: GJrMwgyTHdJ8LnCsW3LCACfG4G3mDYixFdZen5XYbKyb Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 3 #-}
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+match tx {
10+ case t: TransferTransaction =>
11+ let fromOwner = sigVerify(t.bodyBytes, t.proofs[0], ownerPublicKey)
12+ if (fromOwner)
13+ then true
14+ else {
15+ let fromEmployee = sigVerify(t.bodyBytes, t.proofs[0], employeePublicKey)
16+ if (fromEmployee)
17+ then {
18+ let dates = if (isDefined(getString(this, "dates")))
19+ then extract(getString(this, "dates"))
20+ else throw("No withdraw date specified")
21+ let attempt = (numOfWithdraws - (assetBalance(t.sender, companyAssetID) / withdrawAmount))
22+ let targetDate = parseIntValue(split(dates, ",")[attempt])
23+ if (if ((t.timestamp >= targetDate))
24+ then (t.amount == withdrawAmount)
25+ else false)
26+ then (t.assetId == companyAssetID)
27+ else false
28+ }
29+ else false
30+ }
31+ case s: DataTransaction|SetScriptTransaction =>
32+ sigVerify(s.bodyBytes, s.proofs[0], ownerPublicKey)
33+ case _ =>
34+ false
35+}

github/deemru/w8io/169f3d6 
32.69 ms