tx · FqyjEYvywE8e6GKX4UhTgEYMt5bSGbLfwPrLps8Y4yBw

3N3PDiDHb1AJU8tTXJLcvoDNP29fdGNNWqs:  -0.05000000 Waves

2019.12.30 15:16 [831805] smart account 3N3PDiDHb1AJU8tTXJLcvoDNP29fdGNNWqs > SELF 0.00000000 Waves

{ "type": 13, "id": "FqyjEYvywE8e6GKX4UhTgEYMt5bSGbLfwPrLps8Y4yBw", "fee": 5000000, "feeAssetId": null, "timestamp": 1577708127303, "version": 1, "sender": "3N3PDiDHb1AJU8tTXJLcvoDNP29fdGNNWqs", "senderPublicKey": "5uHVezdnBEVjiWnLWW7VW2bPp8P5h6zdbha2dfHgHytt", "proofs": [ "4cyyKLTBxiRkGdsBP8LPfLV6kCisJhDWV58av7dCNEjwCYwB3xiqMXn9ik75A7HS1djBpWb9jgkHNcZbigNmLmDD" ], "script": "base64:AAIDAAAAAAAAADwIARIDCgEBEgUKAwgBCBIDCgEIEgQKAggIEgUKAwgICBIECgIICBIDCgEIEgMKAQgSBAoCCAQSBAoCCAEAAAAuAAAAAAROT05FAgAAAARub25lAAAAAAhGRUFUVVJFRAIAAAAIZmVhdHVyZWQAAAAABERBUFACAAAAAAAAAAADTU9EAgAAAANtb2QAAAAAClJFR0lTVEVSRUQCAAAACnJlZ2lzdGVyZWQAAAAAB0NSRUFUT1ICAAAAIzNNc1RMaXpFZzR2cU5nRDdaVmpoa1BhWmdzck4xMUpxekxKAAAAAApJTlBST0dSRVNTAgAAAAtpbiBwcm9ncmVzcwAAAAAJQ09NUExFVEVEAgAAAAljb21wbGV0ZWQAAAAAB1BFTkRJTkcCAAAAB3BlbmRpbmcAAAAACUlORElTUFVURQIAAAAKaW4gZGlzcHV0ZQAAAAAIUkVWSVNJT04CAAAACHJldmlzaW9uAAAAAApERUNSWUJFRkVFCQAAaQAAAAIAAAAAAAAAAAIAAAAAAAAAAGQAAAAACFdBVkVTTEVUAAAAAAAF9eEAAQAAAAtnZXRTdHJCeUtleQAAAAEAAAADa2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wkAAGYAAAACBQAAAApleHBpcmF0aW9uBQAAAAhkZWFkbGluZQkAAAIAAAABAgAAACZUaGUgZGVhZGxpbmUgY2FuIG9ubHkgYmUgbW92ZWQgZm9yd2FyZAkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkBAAAAFGdldEtleVRhc2tFeHBpcmF0aW9uAAAAAQUAAAAEdGFzawUAAAAIZGVhZGxpbmUFAAAAA25pbAAAAAB40Tzo", "chainId": 84, "height": 831805, "spentComplexity": 0 } View: original | compacted Prev: 8pusnTpWde81VZhmwuhcMRHT5BGYmUjKmXkPG1GucGiG Next: 56tjf7wUqNfMMZ6APKX7hqMjb98fzMEpkVgaw63kDvSb Diff:
OldNewDifferences
2424 let REVISION = "revision"
2525
2626 let DECRYBEFEE = (2 / 100)
27+
28+let WAVESLET = 100000000
2729
2830 func getStrByKey (key) = {
2931 let str = match getString(this, key) {
158160 let account = toBase58String(i.caller.bytes)
159161 let pmt = extract(i.payment)
160162 let pmtAmount = pmt.amount
161- let payment = (pmtAmount / (1 + DECRYBEFEE))
163+ let payment = (pmtAmount / ((1 * WAVESLET) + DECRYBEFEE))
162164 let commission = (pmtAmount - payment)
163165 if (isDefined(pmt.assetId))
164166 then throw("Can use waves only at the moment")
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let NONE = "none"
55
66 let FEATURED = "featured"
77
88 let DAPP = ""
99
1010 let MOD = "mod"
1111
1212 let REGISTERED = "registered"
1313
1414 let CREATOR = "3MsTLizEg4vqNgD7ZVjhkPaZgsrN11JqzLJ"
1515
1616 let INPROGRESS = "in progress"
1717
1818 let COMPLETED = "completed"
1919
2020 let PENDING = "pending"
2121
2222 let INDISPUTE = "in dispute"
2323
2424 let REVISION = "revision"
2525
2626 let DECRYBEFEE = (2 / 100)
27+
28+let WAVESLET = 100000000
2729
2830 func getStrByKey (key) = {
2931 let str = match getString(this, key) {
3032 case a: String =>
3133 a
3234 case _ =>
3335 NONE
3436 }
3537 str
3638 }
3739
3840
3941 func getNumberByKey (key) = {
4042 let num = match getInteger(this, key) {
4143 case a: Int =>
4244 a
4345 case _ =>
4446 0
4547 }
4648 num
4749 }
4850
4951
5052 func getKeyUserMessagesCnt (from,to) = ((("msg_cnt_" + from) + "_") + to)
5153
5254
5355 func getValueUserMessagesCnt (from,to) = getNumberByKey(getKeyUserMessagesCnt(from, to))
5456
5557
5658 func getKeyUserMessage (from,to,id) = ((((("msg_" + from) + "_") + to) + "_id:") + id)
5759
5860
5961 func getValueUserMessage (from,to,cnt) = getStrByKey(getKeyUserMessage(from, to, cnt))
6062
6163
6264 func getKeyUserMessageBlock (from,to,cnt) = ((((("block_msg_" + from) + "_") + to) + "_id:") + cnt)
6365
6466
6567 func getValueUserMessageBlock (from,to,cnt) = getStrByKey(getKeyUserMessageBlock(from, to, cnt))
6668
6769
6870 func getKeyTaskData (task) = ("datajson_" + task)
6971
7072
7173 func getValueTaskData (task) = getStrByKey(getKeyTaskData(task))
7274
7375
7476 func getKeyTaskAuthor (task) = ("author_" + task)
7577
7678
7779 func getValueTaskAuthor (task) = getStrByKey(getKeyTaskAuthor(task))
7880
7981
8082 func getKeyTaskBlock (task) = ("block_" + task)
8183
8284
8385 func getValueTaskBlock (task) = getNumberByKey(getKeyTaskBlock(task))
8486
8587
8688 func getKeyTaskBank (task) = ("bank_" + task)
8789
8890
8991 func getValueTaskBank (task) = getNumberByKey(getKeyTaskBank(task))
9092
9193
9294 func getKeyTaskFreelancer (task) = ("freelancer_" + task)
9395
9496
9597 func getValueTaskFreelancer (task) = getStrByKey(getKeyTaskFreelancer(task))
9698
9799
98100 func getKeyTaskStatus (task) = ("status_" + task)
99101
100102
101103 func getValueTaskStatus (task) = getStrByKey(getKeyTaskStatus(task))
102104
103105
104106 func getKeyTaskExpiration (task) = ("expiration_block_" + task)
105107
106108
107109 func getValueTaskExpiration (task) = getNumberByKey(getKeyTaskExpiration(task))
108110
109111
110112 func getKeyUserBio (account) = ("user_bio_" + account)
111113
112114
113115 func getValueUserBio (account) = getStrByKey(getKeyUserBio(account))
114116
115117
116118 func getKeyUserStatus (account) = ("user_sts_" + account)
117119
118120
119121 func getValueUserStatus (account) = getStrByKey(getKeyUserStatus(account))
120122
121123
122124 func getKeyUserBlock (account) = ("user_blk_" + account)
123125
124126
125127 func getKeyTaskReportComplete (freelancer,task,stage) = ((((("rc_" + task) + "_") + freelancer) + "_stage:") + stage)
126128
127129
128130 func getValueTaskReportComplete (freelancer,task,stage) = getStrByKey(getKeyTaskReportComplete(freelancer, task, stage))
129131
130132
131133 func getKeyTaskReportCompleteCnt (task,freelancer) = ((("rc_cnt_" + task) + "_") + freelancer)
132134
133135
134136 func getValueTaskReportCompleteCnt (task,freelancer) = getNumberByKey(getKeyTaskReportCompleteCnt(task, freelancer))
135137
136138
137139 func getKeyDecrybeBalance () = "decrybe_balance"
138140
139141
140142 func getValueDecrybeBalance () = getNumberByKey(getKeyDecrybeBalance())
141143
142144
143145 @Callable(i)
144146 func withdrawDecrybeBalance (amount) = {
145147 let account = toBase58String(i.caller.bytes)
146148 let balance = getValueDecrybeBalance()
147149 if ((account == CREATOR))
148150 then if ((balance >= amount))
149151 then TransferSet([ScriptTransfer(addressFromStringValue(account), amount, unit)])
150152 else throw(("You cannot withdraw an amount greater than " + toString(balance)))
151153 else throw("You can't do that")
152154 }
153155
154156
155157
156158 @Callable(i)
157159 func createTask (task,expiration,data) = {
158160 let account = toBase58String(i.caller.bytes)
159161 let pmt = extract(i.payment)
160162 let pmtAmount = pmt.amount
161- let payment = (pmtAmount / (1 + DECRYBEFEE))
163+ let payment = (pmtAmount / ((1 * WAVESLET) + DECRYBEFEE))
162164 let commission = (pmtAmount - payment)
163165 if (isDefined(pmt.assetId))
164166 then throw("Can use waves only at the moment")
165167 else if ((pmtAmount == 0))
166168 then throw("Amount must be higher then 0")
167169 else if ((getValueTaskAuthor(task) != NONE))
168170 then throw("Task already exist")
169171 else if ((getValueUserBio(account) == NONE))
170172 then throw("User not signup")
171173 else WriteSet([DataEntry(getKeyTaskAuthor(task), account), DataEntry(getKeyTaskBlock(task), height), DataEntry(getKeyTaskExpiration(task), (height + expiration)), DataEntry(getKeyTaskBank(task), payment), DataEntry(getKeyTaskStatus(task), FEATURED), DataEntry(getKeyTaskData(task), data), DataEntry(getKeyDecrybeBalance(), (getValueDecrybeBalance() + commission))])
172174 }
173175
174176
175177
176178 @Callable(i)
177179 func signUp (data) = {
178180 let account = toBase58String(i.caller.bytes)
179181 if ((getValueUserBio(account) != NONE))
180182 then throw("User already exist")
181183 else WriteSet([DataEntry(getKeyUserBio(account), data), DataEntry(getKeyUserBlock(account), height), DataEntry(getKeyUserStatus(account), REGISTERED)])
182184 }
183185
184186
185187
186188 @Callable(i)
187189 func hireFreelancer (task,freelancer) = {
188190 let account = toBase58String(i.caller.bytes)
189191 if ((getValueTaskData(task) == NONE))
190192 then throw("Task doesnt exist")
191193 else if ((getValueUserBio(account) == NONE))
192194 then throw("Customer not signup")
193195 else if ((getValueUserBio(freelancer) == NONE))
194196 then throw("Freelancer not signup")
195197 else if ((getValueTaskAuthor(task) != account))
196198 then throw("You're not author")
197199 else if ((getValueTaskStatus(task) == INPROGRESS))
198200 then throw("Freelancer is no longer required (the task is already in progress)")
199201 else if ((freelancer == account))
200202 then throw("You can't hire yourself")
201203 else WriteSet([DataEntry(getKeyTaskFreelancer(task), freelancer), DataEntry(getKeyTaskStatus(task), INPROGRESS)])
202204 }
203205
204206
205207
206208 @Callable(i)
207209 func sendMessage (task,to,message) = {
208210 let account = toBase58String(i.caller.bytes)
209211 let cnt = (getValueUserMessagesCnt(account, to) + 1)
210212 if ((getValueTaskData(task) == NONE))
211213 then throw("Task doesnt exist")
212214 else if ((account == to))
213215 then throw("You can't send messages to yourself")
214216 else if ((getValueUserBio(account) == NONE))
215217 then throw("Sender not signup")
216218 else if ((getValueUserBio(to) == NONE))
217219 then throw("Recipient not singup")
218220 else WriteSet([DataEntry(getKeyUserMessagesCnt(account, to), cnt), DataEntry(getKeyUserMessage(account, to, toString(cnt)), message), DataEntry(getKeyUserMessageBlock(account, to, toString(cnt)), height)])
219221 }
220222
221223
222224
223225 @Callable(i)
224226 func taskUpdate (task,data) = {
225227 let account = toBase58String(i.caller.bytes)
226228 if ((getValueTaskData(task) == NONE))
227229 then throw("Task doesnt exist")
228230 else if ((getValueTaskAuthor(task) != account))
229231 then throw("You're not author")
230232 else if ((getValueTaskStatus(task) == INPROGRESS))
231233 then throw("Editing tasks is not available after hiring a freelancer")
232234 else WriteSet([DataEntry(getKeyTaskData(task), data)])
233235 }
234236
235237
236238
237239 @Callable(i)
238240 func userUpdate (data) = {
239241 let account = toBase58String(i.caller.bytes)
240242 if ((getValueUserBio(account) == NONE))
241243 then throw("User not signup")
242244 else WriteSet([DataEntry(getKeyUserBio(account), data)])
243245 }
244246
245247
246248
247249 @Callable(i)
248250 func reportCompleteTask (task) = {
249251 let account = toBase58String(i.caller.bytes)
250252 let stage = (getValueTaskReportCompleteCnt(task, account) + 1)
251253 let taskCreator = getValueTaskAuthor(task)
252254 let status = getValueTaskStatus(task)
253255 let freelancerMessagesCnt = getValueUserMessagesCnt(account, taskCreator)
254256 let lastFreelancerMessage = getValueUserMessage(account, taskCreator, toString(freelancerMessagesCnt))
255257 if ((getValueTaskFreelancer(task) == account))
256258 then if ((status == INPROGRESS))
257259 then WriteSet([DataEntry(getKeyTaskReportComplete(account, task, toString(stage)), freelancerMessagesCnt), DataEntry(getKeyTaskStatus(task), PENDING)])
258260 else if ((status == COMPLETED))
259261 then throw("You've already been paid for your work")
260262 else throw("The work is awaiting approval")
261263 else if ((getValueTaskFreelancer(task) == NONE))
262264 then throw("Task freelancer doesnt exist")
263265 else if ((getValueTaskAuthor(task) == account))
264266 then throw("You are author")
265267 else throw("Error #1")
266268 }
267269
268270
269271
270272 @Callable(i)
271273 func acceptWork (task,complete) = {
272274 let account = toBase58String(i.caller.bytes)
273275 let creator = getValueTaskAuthor(task)
274276 let freelancer = getValueTaskFreelancer(task)
275277 let stage = getValueTaskReportCompleteCnt(task, freelancer)
276278 let status = getValueTaskStatus(task)
277279 let bank = getValueTaskBank(task)
278280 if ((account == creator))
279281 then if ((status == PENDING))
280282 then if (complete)
281283 then ScriptResult(WriteSet([DataEntry(getKeyTaskStatus(task), COMPLETED)]), TransferSet([ScriptTransfer(addressFromStringValue(freelancer), bank, unit)]))
282284 else WriteSet([DataEntry(getKeyTaskStatus(task), INPROGRESS)])
283285 else throw("Freelancer doesnt complete the task")
284286 else if ((getValueTaskData(task) == NONE))
285287 then throw("Task doesnt exist")
286288 else if ((getValueUserBio(account) == NONE))
287289 then throw("Sender not signup")
288290 else throw("You are not author")
289291 }
290292
291293
292294
293295 @Callable(i)
294296 func moveDeadline (task,deadline) = {
295297 let account = toBase58String(i.caller.bytes)
296298 let creator = getValueTaskAuthor(task)
297299 let expiration = getValueTaskExpiration(task)
298300 let status = getValueTaskStatus(task)
299301 if ((status != COMPLETED))
300302 then throw("The task is completed")
301303 else if ((status == INDISPUTE))
302304 then throw("You can't change the deadline at this time")
303305 else if ((account != creator))
304306 then throw("You are not author of the task")
305307 else if ((height > deadline))
306308 then throw("The deadline must be > the current block")
307309 else if ((expiration > deadline))
308310 then throw("The deadline can only be moved forward")
309311 else WriteSet([DataEntry(getKeyTaskExpiration(task), deadline)])
310312 }
311313
312314

github/deemru/w8io/026f985 
37.32 ms