tx · Ei2LzZ2Ef7x7rAmmrNbW8cnxEnqS2DEVw1m2PLKkcGJX

3N7DPtYPCwXnG6pDTNGwXwrxJAQhgVmWqyb:  -0.01000000 Waves

2020.04.24 10:11 [968416] smart account 3N7DPtYPCwXnG6pDTNGwXwrxJAQhgVmWqyb > SELF 0.00000000 Waves

{ "type": 13, "id": "Ei2LzZ2Ef7x7rAmmrNbW8cnxEnqS2DEVw1m2PLKkcGJX", "fee": 1000000, "feeAssetId": null, "timestamp": 1587712378360, "version": 1, "sender": "3N7DPtYPCwXnG6pDTNGwXwrxJAQhgVmWqyb", "senderPublicKey": "B4q1hG8ff4DEwGWRdDUVV5CyY9NbSHhukeHQnq1GmezC", "proofs": [ "5sQdtc1e5WLJRUgYoBnX5aQDR9G944y42Ydb2mbChYUHjzzx8eNShU14Gnpom1tC4pEVYJQNQqCg1qLs6jUwpBgw" ], "script": "base64:AAIDAAAAAAAAABsIARINCgsICAEBAQgICAgBCBIICgYBAQEBAQEAAAAvAAAAABdyZXNjdWVUaW1lQ29uZGl0aW9uTGVzcwIAAAAEbGVzcwAAAAAXcmVzY3VlVGltZUNvbmRpdGlvbk1vcmUCAAAABG1vcmUAAAAAIHJlc2N1ZVRpbWVDYXRlZ29yeVZlcnlQcm9kdWN0aXZlAgAAAA52ZXJ5UHJvZHVjdGl2ZQAAAAAccmVzY3VlVGltZUNhdGVnb3J5UHJvZHVjdGl2ZQIAAAAKcHJvZHVjdGl2ZQAAAAAZcmVzY3VlVGltZUNhdGVnb3J5TmV1dHJhbAIAAAAHbmV1dHJhbAAAAAAdcmVzY3VlVGltZUNhdGVnb3J5RGlzdHJhY3RpbmcCAAAAC2Rpc3RyYWN0aW5nAAAAACFyZXNjdWVUaW1lQ2F0ZWdvcnlWZXJ5RGlzdHJhY3RpbmcCAAAAD3ZlcnlEaXN0cmFjdGluZwAAAAANc3RhdHVzUGVuZGluZwIAAAAHcGVuZGluZwAAAAAMc3RhdHVzQWN0aXZlAgAAAAZhY3RpdmU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pbmcFAAAAD3ZlcnlEaXN0cmFjdGluZwkABEwAAAACCQEAAAAWc2V0Q2F0ZWdvcnlSZWNvcmRWYWx1ZQAAAAMFAAAABGRhdGUFAAAAIXJlc2N1ZVRpbWVDYXRlZ29yeVZlcnlEaXN0cmFjdGluZwUAAAAPdmVyeURpc3RyYWN0aW5nCQAETAAAAAIJAQAAAB1zZXRSZWN1ZXRpbWVSZWNvcmRTdGF0dXNWYWx1ZQAAAAYFAAAABGRhdGUFAAAADnZlcnlQcm9kdWN0aXZlBQAAAApwcm9kdWN0aXZlBQAAAAduZXV0cmFsBQAAAAtkaXN0cmFjdGluZwUAAAAPdmVyeURpc3RyYWN0aW5nBQAAAANuaWwAAAAAFuXuPA==", "chainId": 84, "height": 968416, "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
OldNewDifferences
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 adminAccountPublicKey = base58'GtDLBooknaE8G983yMjhygiyhmpR5tebBScKPw277tj9'
47+
48+let userAccountPublicKey = base58'BNPWfnwQQaiG9SxwTXqNi5sRA5oAU2M4QvQUAoGrnNbf'
49+
50+let goalAccountPublicKey = base58'B4q1hG8ff4DEwGWRdDUVV5CyY9NbSHhukeHQnq1GmezC'
51+
52+func throwUndefinedError () = throw("undefinedError")
53+
54+
55+func throwOutdatedGoalError () = throw("outdatedGoalError")
56+
57+
58+func throwNotActiveGoalError () = throw("notActiveGoalError")
59+
60+
61+func throwIsNotAdminCallerError () = throw("isNotAdminCallerError")
62+
63+
64+func throwIsNotUserCallerError () = throw("isNotUserCallerError")
65+
66+
67+func throwIsNotGoalCallerError () = throw("isNotGoalCallerError")
68+
69+
70+func getIntegerRecordOr (accountAddress,key,default) = if (isDefined(getInteger(this, key)))
71+ then getIntegerValue(this, key)
72+ else default
73+
74+
75+func getIntegerRecord (accountAddress,key) = getIntegerValue(this, key)
76+
77+
78+func setIntegerRecord (key,value) = DataEntry(key, value)
79+
80+
81+func getStringOr (accountAddress,key,default) = if (isDefined(getInteger(this, key)))
82+ then getStringValue(this, key)
83+ else default
84+
85+
86+func getStringRecord (accountAddress,key) = getStringValue(this, key)
87+
88+
89+func setStringRecord (key,value) = DataEntry(key, value)
90+
91+
92+func getBooleanRecord (accountAddress,key) = getBooleanValue(this, key)
93+
94+
95+func setBooleanRecord (key,value) = DataEntry(key, value)
96+
97+
98+func getBinaryRecord (accountAddress,key) = getBinaryValue(this, key)
99+
100+
101+func setBinaryRecord (key,value) = DataEntry(key, value)
102+
103+
104+func isRecordDefined (key) = if (if (if (isDefined(getBinary(this, key)))
105+ then true
106+ else isDefined(getString(this, key)))
107+ then true
108+ else isDefined(getBoolean(this, key)))
109+ then true
110+ else isDefined(getInteger(this, key))
111+
112+
113+func setRecuetimeRecordStatusValue (date,veryProductive,productive,neutral,distracting,veryDistracting) = {
114+ let recordStatusKey = (("record_<" + toString(date)) + ">")
115+ let rescueTimeConditionAmount = getIntegerRecordOr(this, "rescueTimeConditionAmount", 0)
116+ let rescueTimeCondition = getStringRecord(this, "rescueTimeCondition")
117+ let rescueTimeCategory = getStringRecord(this, "rescueTimeCategory")
118+ let statusValue = if ((rescueTimeCondition == rescueTimeConditionLess))
119+ then if ((rescueTimeCategory == rescueTimeCategoryVeryProductive))
120+ then (rescueTimeConditionAmount >= veryProductive)
121+ else if ((rescueTimeCategory == rescueTimeCategoryProductive))
122+ then (rescueTimeConditionAmount >= productive)
123+ else if ((rescueTimeCategory == rescueTimeCategoryNeutral))
124+ then (rescueTimeConditionAmount >= neutral)
125+ else if ((rescueTimeCategory == rescueTimeCategoryDistracting))
126+ then (rescueTimeConditionAmount >= distracting)
127+ else (rescueTimeConditionAmount >= veryDistracting)
128+ else if ((rescueTimeCategory == rescueTimeCategoryVeryProductive))
129+ then (veryProductive >= rescueTimeConditionAmount)
130+ else if ((rescueTimeCategory == rescueTimeCategoryProductive))
131+ then (productive >= rescueTimeConditionAmount)
132+ else if ((rescueTimeCategory == rescueTimeCategoryNeutral))
133+ then (neutral >= rescueTimeConditionAmount)
134+ else if ((rescueTimeCategory == rescueTimeCategoryDistracting))
135+ then (distracting >= rescueTimeConditionAmount)
136+ else (veryDistracting >= rescueTimeConditionAmount)
137+ setBooleanRecord(recordStatusKey, statusValue)
138+ }
139+
140+
141+func getCategoryRecordKey (date,rescueTimeCategoryVeryProductive) = (((("record_<" + toString(date)) + ">__category_<") + rescueTimeCategoryVeryProductive) + ">")
142+
143+
144+func setCategoryRecordValue (date,category,value) = setIntegerRecord(getCategoryRecordKey(date, category), value)
145+
146+
147+func isAdminCaller (callerPublicKey) = {
148+ let callerAccountPubKey = toBase58String(callerPublicKey)
149+ let adminAccountPubKey = toBase58String(adminAccountPublicKey)
150+ if ((callerAccountPubKey == adminAccountPubKey))
151+ then true
152+ else false
153+ }
154+
155+
156+func isUserCaller (callerPublicKey) = {
157+ let callerAccountPubKey = toBase58String(callerPublicKey)
158+ let userAccountPubKey = toBase58String(userAccountPublicKey)
159+ if ((callerAccountPubKey == userAccountPubKey))
160+ then true
161+ else false
162+ }
163+
164+
165+func isGoalCaller (callerPublicKey) = {
166+ let callerAccountPubKey = toBase58String(callerPublicKey)
167+ let goalAccountPubKey = toBase58String(goalAccountPublicKey)
168+ if ((callerAccountPubKey == goalAccountPubKey))
169+ then true
170+ else false
171+ }
172+
173+
174+@Callable(i)
175+func setup (name,description,startDate,endDate,rescueTimeConditionAmount,rescueTimeCondition,rescueTimeCategory,trackDays,attempsCount,bet,betAsset) = {
176+ let isNotAdminCaller = !(isAdminCaller(i.callerPublicKey))
177+ if (isNotAdminCaller)
178+ then throwIsNotAdminCallerError()
179+ else WriteSet([setStringRecord("status", statusActive), setStringRecord("name", name), setStringRecord("description", description), setIntegerRecord("startDate", startDate), setIntegerRecord("endDate", endDate), setIntegerRecord("rescueTimeConditionAmount", rescueTimeConditionAmount), setStringRecord("rescueTimeCondition", rescueTimeCondition), setStringRecord("rescueTimeCategory", rescueTimeCategory), setStringRecord("trackDays", trackDays), setStringRecord("attempsCount", attempsCount), setIntegerRecord("failedAttemptsCount", 0), setIntegerRecord("bet", bet), setStringRecord("betAsset", betAsset)])
180+ }
181+
182+
183+
184+@Callable(i)
185+func addRecord (date,veryProductive,productive,neutral,distracting,veryDistracting) = {
186+ let startDateTimestamp = getIntegerRecordOr(this, "startDate", 0)
187+ let endDateTimestamp = getIntegerRecordOr(this, "endDate", 0)
188+ let isOutdatedGoal = if ((startDateTimestamp > date))
189+ then (date > endDateTimestamp)
190+ else false
191+ let isNotActiveStatus = (getStringRecord(this, "status") != statusPending)
192+ let isNotAdminCaller = !(isAdminCaller(i.callerPublicKey))
193+ if (isNotAdminCaller)
194+ then throwIsNotAdminCallerError()
195+ else if (isOutdatedGoal)
196+ then throwOutdatedGoalError()
197+ else if (isNotActiveStatus)
198+ then throwNotActiveGoalError()
199+ 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)])
200+ }
201+
202+

github/deemru/w8io/026f985 
22.38 ms