tx · HcDAfdbXaXvidJmrYuxMnLurVgFjt2CGfbcmL4pox1Go

3MutmaPPwkdgnBpfTr6u6pkRt64xvKi4BQM:  -0.01000000 Waves

2019.07.02 12:11 [567577] smart account 3MutmaPPwkdgnBpfTr6u6pkRt64xvKi4BQM > SELF 0.00000000 Waves

{ "type": 13, "id": "HcDAfdbXaXvidJmrYuxMnLurVgFjt2CGfbcmL4pox1Go", "fee": 1000000, "feeAssetId": null, "timestamp": 1562058670541, "version": 1, "sender": "3MutmaPPwkdgnBpfTr6u6pkRt64xvKi4BQM", "senderPublicKey": "GLMpvCp5dFLe6JaLtqng1pAc8pnCMLTb8GFrMtEWcbKt", "proofs": [ "2Yuz7p7qS2mnJVNzTqFz8mABP62HJH3nzBFf5ThQR2AiC55zAL9zR8gyZULo4D7sCK1cTELAqPnXPBVsUcu9iMW" ], "script": "base64:AAIDAAAAAAAAAAAAAAAGAAAAAAtvd25lclB1YktleQEAAAAg49TjMgtsnrBYu12Qlkj2fS/EVt/2a0kLbz4e5amujDcBAAAADmdldE51bWJlckJ5S2V5AAAAAQAAAANrZXkEAAAAA251bQQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQAAAAAAAAAAAAUAAAADbnVtAQAAAA9nZXRLZXlJdGVtUHJpY2UAAAABAAAABGl0ZW0JAAEsAAAAAgUAAAAEaXRlbQIAAAAGX3ByaWNlAQAAABFnZXRWYWx1ZUl0ZW1QcmljZQAAAAEAAAAEaXRlbQkBAAAADmdldE51bWJlckJ5S2V5AAAAAQkBAAAAD2dldEtleUl0ZW1QcmljZQAAAAEFAAAABGl0ZW0BAAAAFWdldEtleVVzZXJJdGVtQ291bnRlcgAAAAIAAAAEdXNlcgAAAARpdGVtCQABLAAAAAIJAAEsAAAAAgkAASwAAAACBQAAAARpdGVtAgAAAAFfBQAAAAR1c2VyAgAA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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 a = base58'GLMpvCp5dFLe6JaLtqng1pAc8pnCMLTb8GFrMtEWcbKt'
5+
6+func b (c) = {
7+ let d = {
8+ let e = getInteger(this, c)
9+ if ($isInstanceOf(e, "Int"))
10+ then {
11+ let f = e
12+ f
13+ }
14+ else 0
15+ }
16+ d
17+ }
18+
19+
20+func g (h) = (h + "_price")
21+
22+
23+func i (h) = b(g(h))
24+
25+
26+func j (k,h) = (((h + "_") + k) + "_cnt")
27+
28+
29+func l (k,h) = b(j(k, h))
30+
31+
32+@Callable(m)
33+func purchase (h) = {
34+ let n = extract(m.payment)
35+ if (isDefined(n.assetId))
36+ then throw("can use WAVES only at the moment")
37+ else {
38+ let o = toBase58String(m.caller.bytes)
39+ let p = i(h)
40+ if ((p > n.amount))
41+ then throw("purchase amount cannot be less than item price")
42+ else if ((n.amount > p))
43+ then throw("purchase amount cannot be higher than item price")
44+ else WriteSet([DataEntry(j(o, h), (l(o, h) + 1))])
45+ }
46+ }
47+
48+

github/deemru/w8io/169f3d6 
22.37 ms