tx · G6wbpu9aYKwpAfW8ZCPaFgcFa4Hz9wkfHCZSyeE7KMeL 3Mtboet1j3v4V2z1MS2bTj4QgM2ED3F1LV3: -0.01000000 Waves 2020.04.25 15:36 [970215] smart account 3Mtboet1j3v4V2z1MS2bTj4QgM2ED3F1LV3 > SELF 0.00000000 Waves
{ "type": 13, "id": "G6wbpu9aYKwpAfW8ZCPaFgcFa4Hz9wkfHCZSyeE7KMeL", "fee": 1000000, "feeAssetId": null, "timestamp": 1587818258775, "version": 1, "sender": "3Mtboet1j3v4V2z1MS2bTj4QgM2ED3F1LV3", "senderPublicKey": "FPEdjBMLFQ9GFL68cJThu3rbDi3yLMnuubni6KKTBZLv", "proofs": [ "2oK1jst9Ar3nFc5KUBd7NgS8TKwj9yy2w6HKtwm5FLrRjAQcA1XmDD6Uq2pRAoVzCUeRKaHegP8U1dPWPGkaD3vi" ], "script": "base64:AAIDAAAAAAAAABsIARINCgsICAEBAQgICAgBCBIICgYBAQEBAQEAAABCAAAAABdyZXNjdWVUaW1lQ29uZGl0aW9uTGVzcwIAAAAEbGVzcwAAAAAXcmVzY3VlVGltZUNvbmRpdGlvbk1vcmUCAAAABG1vcmUAAAAAIHJlc2N1ZVRpbWVDYXRlZ29yeVZlcnlQcm9kdWN0aXZlAgAAAA52ZXJ5UHJvZHVjdGl2ZQAAAAAccmVzY3VlVGltZUNhdGVnb3J5UHJvZHVjdGl2ZQIAAAAKcHJvZHVjdGl2ZQAAAAAZcmVzY3VlVGltZUNhdGVnb3J5TmV1dHJhbAIAAAAHbmV1dHJhbAAAAAAdcmVzY3VlVGltZUNhdGVnb3J5RGlzdHJhY3RpbmcCAAAAC2Rpc3RyYWN0aW5nAAAAACFyZXNjdWVUaW1lQ2F0ZWdvcnlWZXJ5RGlzdHJhY3RpbmcCAAAAD3ZlcnlEaXN0cmFjdGluZwAAAAANc3RhdHVzUGVuZGluZwIAAAAHcGVuZGluZwAAAAAMc3RhdHVzQWN0aXZlAgAAAAZhY3RpdmUAA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 84, "height": 970215, "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 3 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let rescueTimeConditionLess = "less" | |
5 | + | ||
6 | + | let rescueTimeConditionMore = "more" | |
7 | + | ||
8 | + | let rescueTimeCategoryVeryProductive = "veryProductive" | |
9 | + | ||
10 | + | let rescueTimeCategoryProductive = "productive" | |
11 | + | ||
12 | + | let rescueTimeCategoryNeutral = "neutral" | |
13 | + | ||
14 | + | let rescueTimeCategoryDistracting = "distracting" | |
15 | + | ||
16 | + | let rescueTimeCategoryVeryDistracting = "veryDistracting" | |
17 | + | ||
18 | + | let statusPending = "pending" | |
19 | + | ||
20 | + | let statusActive = "active" | |
21 | + | ||
22 | + | let statusPause = "pause" | |
23 | + | ||
24 | + | let statusSuccess = "success" | |
25 | + | ||
26 | + | let statusFail = "fail" | |
27 | + | ||
28 | + | let integrationServicesRescueTime = "rescueTime" | |
29 | + | ||
30 | + | let weekDayMonday = "monday" | |
31 | + | ||
32 | + | let weekDayTuesday = "tuesday" | |
33 | + | ||
34 | + | let weekDayWednesday = "wednesday" | |
35 | + | ||
36 | + | let weekDayThursday = "thursday" | |
37 | + | ||
38 | + | let weekDayFriday = "friday" | |
39 | + | ||
40 | + | let weekDaySaturday = "saturday" | |
41 | + | ||
42 | + | let weekDaySunday = "sunday" | |
43 | + | ||
44 | + | let statusKey = "status" | |
45 | + | ||
46 | + | let nameKey = "name" | |
47 | + | ||
48 | + | let descriptionKey = "description" | |
49 | + | ||
50 | + | let startDateKey = "startDate" | |
51 | + | ||
52 | + | let endDateKey = "endDate" | |
53 | + | ||
54 | + | let rescueTimeConditionAmountKey = "rescueTimeConditionAmount" | |
55 | + | ||
56 | + | let rescueTimeConditionKey = "rescueTimeCondition" | |
57 | + | ||
58 | + | let rescueTimeCategoryKey = "rescueTimeCategory" | |
59 | + | ||
60 | + | let trackDaysKey = "trackDays" | |
61 | + | ||
62 | + | let attempsCountKey = "attempsCount" | |
63 | + | ||
64 | + | let failedAttemptsCountKey = "failedAttemptsCount" | |
65 | + | ||
66 | + | let betKey = "bet" | |
67 | + | ||
68 | + | let betAssetIdKey = "betAssetId" | |
69 | + | ||
70 | + | let adminAccountPublicKey = base58'GtDLBooknaE8G983yMjhygiyhmpR5tebBScKPw277tj9' | |
71 | + | ||
72 | + | let userAccountPublicKey = base58'BNPWfnwQQaiG9SxwTXqNi5sRA5oAU2M4QvQUAoGrnNbf' | |
73 | + | ||
74 | + | let goalAccountPublicKey = base58'FPEdjBMLFQ9GFL68cJThu3rbDi3yLMnuubni6KKTBZLv' | |
75 | + | ||
76 | + | func throwUndefinedError () = throw("undefinedError") | |
77 | + | ||
78 | + | ||
79 | + | func throwOutdatedGoalError () = throw("outdatedGoalError") | |
80 | + | ||
81 | + | ||
82 | + | func throwNotActiveGoalError () = throw("notActiveGoalError") | |
83 | + | ||
84 | + | ||
85 | + | func throwGoalRecordAlreadyAddedError () = throw("goalRecordAlreadyAdded") | |
86 | + | ||
87 | + | ||
88 | + | func throwIsNotAdminCallerError () = throw("isNotAdminCallerError") | |
89 | + | ||
90 | + | ||
91 | + | func throwIsNotUserCallerError () = throw("isNotUserCallerError") | |
92 | + | ||
93 | + | ||
94 | + | func throwIsNotGoalCallerError () = throw("isNotGoalCallerError") | |
95 | + | ||
96 | + | ||
97 | + | let noPaymentError = "noPaymentError" | |
98 | + | ||
99 | + | func throwUnsupportedEventPaymentAssetError (expectedAsset,receivedAsset) = throw((((("unsupportedEventPaymentAssetError" + ",") + toBase58String(expectedAsset)) + ",") + toBase58String(receivedAsset))) | |
100 | + | ||
101 | + | ||
102 | + | func throwInsufficientPaymentError (expectedPaymentAmount,receivedPaymentAmount) = throw((((("insufficientPaymentError" + ",") + toString(expectedPaymentAmount)) + ",") + toString(receivedPaymentAmount))) | |
103 | + | ||
104 | + | ||
105 | + | func getIntegerRecordOr (accountAddress,key,default) = if (isDefined(getInteger(this, key))) | |
106 | + | then getIntegerValue(this, key) | |
107 | + | else default | |
108 | + | ||
109 | + | ||
110 | + | func getIntegerRecord (accountAddress,key) = getIntegerValue(this, key) | |
111 | + | ||
112 | + | ||
113 | + | func setIntegerRecord (key,value) = DataEntry(key, value) | |
114 | + | ||
115 | + | ||
116 | + | func getStringOr (accountAddress,key,default) = if (isDefined(getInteger(this, key))) | |
117 | + | then getStringValue(this, key) | |
118 | + | else default | |
119 | + | ||
120 | + | ||
121 | + | func getStringRecord (accountAddress,key) = getStringValue(this, key) | |
122 | + | ||
123 | + | ||
124 | + | func setStringRecord (key,value) = DataEntry(key, value) | |
125 | + | ||
126 | + | ||
127 | + | func getBooleanRecord (accountAddress,key) = getBooleanValue(this, key) | |
128 | + | ||
129 | + | ||
130 | + | func setBooleanRecord (key,value) = DataEntry(key, value) | |
131 | + | ||
132 | + | ||
133 | + | func getBinaryRecord (accountAddress,key) = getBinaryValue(this, key) | |
134 | + | ||
135 | + | ||
136 | + | func setBinaryRecord (key,value) = DataEntry(key, value) | |
137 | + | ||
138 | + | ||
139 | + | func isRecordDefined (key) = if (if (if (isDefined(getBinary(this, key))) | |
140 | + | then true | |
141 | + | else isDefined(getString(this, key))) | |
142 | + | then true | |
143 | + | else isDefined(getBoolean(this, key))) | |
144 | + | then true | |
145 | + | else isDefined(getInteger(this, key)) | |
146 | + | ||
147 | + | ||
148 | + | func getPayment (i) = valueOrErrorMessage(i.payment, noPaymentError) | |
149 | + | ||
150 | + | ||
151 | + | func getPaymentAssetId (payment) = match payment.assetId { | |
152 | + | case assetId: ByteVector => | |
153 | + | assetId | |
154 | + | case assetId: Unit => | |
155 | + | fromBase58String("WAVES") | |
156 | + | case _ => | |
157 | + | throw() | |
158 | + | } | |
159 | + | ||
160 | + | ||
161 | + | func getCategoryRecordKey (date,rescueTimeCategoryVeryProductive) = (((("record_<" + toString(date)) + ">__category_<") + rescueTimeCategoryVeryProductive) + ">") | |
162 | + | ||
163 | + | ||
164 | + | func getRecordStatusKey (date) = (("record_<" + toString(date)) + ">") | |
165 | + | ||
166 | + | ||
167 | + | func setCategoryRecordValue (date,category,value) = setIntegerRecord(getCategoryRecordKey(date, category), value) | |
168 | + | ||
169 | + | ||
170 | + | func isAdminCaller (callerPublicKey) = { | |
171 | + | let callerAccountPubKey = toBase58String(callerPublicKey) | |
172 | + | let adminAccountPubKey = toBase58String(adminAccountPublicKey) | |
173 | + | if ((callerAccountPubKey == adminAccountPubKey)) | |
174 | + | then true | |
175 | + | else false | |
176 | + | } | |
177 | + | ||
178 | + | ||
179 | + | func isUserCaller (callerPublicKey) = { | |
180 | + | let callerAccountPubKey = toBase58String(callerPublicKey) | |
181 | + | let userAccountPubKey = toBase58String(userAccountPublicKey) | |
182 | + | if ((callerAccountPubKey == userAccountPubKey)) | |
183 | + | then true | |
184 | + | else false | |
185 | + | } | |
186 | + | ||
187 | + | ||
188 | + | func isGoalCaller (callerPublicKey) = { | |
189 | + | let callerAccountPubKey = toBase58String(callerPublicKey) | |
190 | + | let goalAccountPubKey = toBase58String(goalAccountPublicKey) | |
191 | + | if ((callerAccountPubKey == goalAccountPubKey)) | |
192 | + | then true | |
193 | + | else false | |
194 | + | } | |
195 | + | ||
196 | + | ||
197 | + | func setRecuetimeRecordStatusValue (date,veryProductive,productive,neutral,distracting,veryDistracting) = { | |
198 | + | let recordStatusKey = getRecordStatusKey(date) | |
199 | + | let rescueTimeConditionAmount = getIntegerRecordOr(this, rescueTimeConditionAmountKey, 0) | |
200 | + | let rescueTimeCondition = getStringRecord(this, rescueTimeConditionKey) | |
201 | + | let rescueTimeCategory = getStringRecord(this, rescueTimeCategoryKey) | |
202 | + | let statusValue = if ((rescueTimeCondition == rescueTimeConditionLess)) | |
203 | + | then if ((rescueTimeCategory == rescueTimeCategoryVeryProductive)) | |
204 | + | then (rescueTimeConditionAmount >= veryProductive) | |
205 | + | else if ((rescueTimeCategory == rescueTimeCategoryProductive)) | |
206 | + | then (rescueTimeConditionAmount >= productive) | |
207 | + | else if ((rescueTimeCategory == rescueTimeCategoryNeutral)) | |
208 | + | then (rescueTimeConditionAmount >= neutral) | |
209 | + | else if ((rescueTimeCategory == rescueTimeCategoryDistracting)) | |
210 | + | then (rescueTimeConditionAmount >= distracting) | |
211 | + | else (rescueTimeConditionAmount >= veryDistracting) | |
212 | + | else if ((rescueTimeCategory == rescueTimeCategoryVeryProductive)) | |
213 | + | then (veryProductive >= rescueTimeConditionAmount) | |
214 | + | else if ((rescueTimeCategory == rescueTimeCategoryProductive)) | |
215 | + | then (productive >= rescueTimeConditionAmount) | |
216 | + | else if ((rescueTimeCategory == rescueTimeCategoryNeutral)) | |
217 | + | then (neutral >= rescueTimeConditionAmount) | |
218 | + | else if ((rescueTimeCategory == rescueTimeCategoryDistracting)) | |
219 | + | then (distracting >= rescueTimeConditionAmount) | |
220 | + | else (veryDistracting >= rescueTimeConditionAmount) | |
221 | + | setBooleanRecord(recordStatusKey, statusValue) | |
222 | + | } | |
223 | + | ||
224 | + | ||
225 | + | @Callable(i) | |
226 | + | func setup (name,description,startDate,endDate,rescueTimeConditionAmount,rescueTimeCondition,rescueTimeCategory,trackDays,attempsCount,bet,betAssetId) = { | |
227 | + | let payment = getPayment(i) | |
228 | + | let paymentAmount = payment.amount | |
229 | + | let paymentAssetId = getPaymentAssetId(payment) | |
230 | + | let isNotUserCaller = !(isUserCaller(i.callerPublicKey)) | |
231 | + | let isNotSupportedPaymentAsset = (paymentAssetId != fromBase58String(betAssetId)) | |
232 | + | let isInsufficientPayment = (paymentAmount != bet) | |
233 | + | if (isNotSupportedPaymentAsset) | |
234 | + | then throwUnsupportedEventPaymentAssetError(fromBase58String(betAssetId), paymentAssetId) | |
235 | + | else if (isInsufficientPayment) | |
236 | + | then throwInsufficientPaymentError(bet, paymentAmount) | |
237 | + | else if (isNotUserCaller) | |
238 | + | then throwIsNotUserCallerError() | |
239 | + | else WriteSet([setStringRecord(statusKey, statusActive), setStringRecord(nameKey, name), setStringRecord(descriptionKey, description), setIntegerRecord(startDateKey, startDate), setIntegerRecord(endDateKey, endDate), setIntegerRecord(rescueTimeConditionAmountKey, rescueTimeConditionAmount), setStringRecord(rescueTimeConditionKey, rescueTimeCondition), setStringRecord(rescueTimeCategoryKey, rescueTimeCategory), setStringRecord(trackDaysKey, trackDays), setStringRecord(attempsCountKey, attempsCount), setIntegerRecord(failedAttemptsCountKey, 0), setIntegerRecord(betKey, bet), setStringRecord(betAssetIdKey, betAssetId)]) | |
240 | + | } | |
241 | + | ||
242 | + | ||
243 | + | ||
244 | + | @Callable(i) | |
245 | + | func addRecord (date,veryProductive,productive,neutral,distracting,veryDistracting) = { | |
246 | + | let recordStatusKey = getRecordStatusKey(date) | |
247 | + | let startDateTimestamp = getIntegerRecordOr(this, "startDate", 0) | |
248 | + | let endDateTimestamp = getIntegerRecordOr(this, "endDate", 0) | |
249 | + | let isOutdatedGoal = if ((startDateTimestamp > date)) | |
250 | + | then (date > endDateTimestamp) | |
251 | + | else false | |
252 | + | let isNotActiveStatus = (getStringRecord(this, "status") != statusActive) | |
253 | + | let isNotAdminCaller = !(isAdminCaller(i.callerPublicKey)) | |
254 | + | let isGoalRecordAlreadyAdded = isRecordDefined(recordStatusKey) | |
255 | + | if (isNotAdminCaller) | |
256 | + | then throwIsNotAdminCallerError() | |
257 | + | else if (isOutdatedGoal) | |
258 | + | then throwOutdatedGoalError() | |
259 | + | else if (isNotActiveStatus) | |
260 | + | then throwNotActiveGoalError() | |
261 | + | else if (isGoalRecordAlreadyAdded) | |
262 | + | then throwGoalRecordAlreadyAddedError() | |
263 | + | else WriteSet([setCategoryRecordValue(date, rescueTimeCategoryVeryProductive, veryProductive), setCategoryRecordValue(date, rescueTimeCategoryProductive, productive), setCategoryRecordValue(date, rescueTimeCategoryNeutral, neutral), setCategoryRecordValue(date, rescueTimeCategoryDistracting, distracting), setCategoryRecordValue(date, rescueTimeCategoryVeryDistracting, veryDistracting), setCategoryRecordValue(date, rescueTimeCategoryVeryDistracting, veryDistracting), setRecuetimeRecordStatusValue(date, veryProductive, productive, neutral, distracting, veryDistracting)]) | |
264 | + | } | |
265 | + | ||
266 | + |
github/deemru/w8io/026f985 22.77 ms ◑