tx · t3D15JsUrDF3KM6M8h7VkgdTXPDpdkQjMkqXSLGRfJf

3MvFWdf5NgnMVSprWTkEP1okPo1pDgqLH76:  -0.01400000 Waves

2020.10.02 13:03 [1202784] smart account 3MvFWdf5NgnMVSprWTkEP1okPo1pDgqLH76 > SELF 0.00000000 Waves

{ "type": 13, "id": "t3D15JsUrDF3KM6M8h7VkgdTXPDpdkQjMkqXSLGRfJf", "fee": 1400000, "feeAssetId": null, "timestamp": 1601633005952, "version": 2, "chainId": 84, "sender": "3MvFWdf5NgnMVSprWTkEP1okPo1pDgqLH76", "senderPublicKey": "7qQJSjnWatmsj6R3ztxN7Z8dnfhozBHpLwKYKgpSKWMd", "proofs": [ "2khFA98zGGLHcUmLxWxUM8Z2zgfbxvnzA8TFmh4GEmwsjF76xTaobro6eyMPid7QUFA4dVQJgHnEJWeqYCTrNTqj", "5knGeMLbgA4DDTLPw9bPWy3Hxhgu3CwZ6KYwDwtkK3Phat32N6n12Wbj5CgubiCszVS74dt2WDTNLyoTATgJUMGk" ], "script": "base64:AAIDAAAAAAAAAAQIARIAAAAAAwAAAAALYWxpY2VQdWJLZXkBAAAAIGWMWL1xS8UM0sunKVizh4wfr9liEBCLf8kf/FHCLjtAAAAAAAlib2JQdWJLZXkBAAAAIFWhIQjZ0p7zX1Aax7DUrjRyF/IFaG7tPly3lj9wpgMYAAAAAAxjb29wZXJQdWJLZXkBAAAAIH6pV/Zr5KzU7mhyJG84bHzs5/S+RkxIN29Q/qRoYgpmAAAAAQAAAAFpAQAAAAhwdXJjaGFzZQAAAAAEAAAAA3BtdAkBAAAAB2V4dHJhY3QAAAABCAUAAAABaQAAAAdwYXltZW50AwkBAAAACWlzRGVmaW5lZAAAAAEIBQAAAANwbXQAAAAHYXNzZXRJZAkAAAIAAAABAgAAACBjYW4gdXNlIFdBVkVTIG9ubHkgYXQgdGhlIG1vbWVudAQAAAAPY3VzdG9tZXJBZGRyZXNzCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAA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HY29vcGVyMgcGAwUAAAAGYWxpY2UxBQAAAAdjb29wZXIzBwYDBQAAAAZhbGljZTIFAAAAB2Nvb3BlcjEHBgMFAAAABmFsaWNlMgUAAAAHY29vcGVyMwcGAwUAAAAGYWxpY2UzBQAAAAdjb29wZXIxBwYDBQAAAAZhbGljZTMFAAAAB2Nvb3BlcjIHBAAAAAxib2JBbmRDb29wZXIDAwMDAwMFAAAAB2Nvb3BlcjEFAAAABGJvYjIHBgMFAAAAB2Nvb3BlcjEFAAAABGJvYjMHBgMFAAAAB2Nvb3BlcjIFAAAABGJvYjEHBgMFAAAAB2Nvb3BlcjIFAAAABGJvYjMHBgMFAAAAB2Nvb3BlcjMFAAAABGJvYjEHBgMFAAAAB2Nvb3BlcjMFAAAABGJvYjIHBAAAAAckbWF0Y2gwBQAAAAJ0eAMDBQAAAAthbGljZUFuZEJvYgYFAAAADmFsaWNlQW5kQ29vcGVyBgUAAAAMYm9iQW5kQ29vcGVyB+i6Lw==", "height": 1202784, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3T6LRUadpf5YnqUk5heWCGeewaQQBVj4mqQZ38wSvqb6 Next: 9ojzsroAi3MUvS9cTpiv339ATH3gzfxVrYBtkog5QZMi Diff:
OldNewDifferences
77
88 let c = base58'9XS9277UP5uChd1k1JU2T3mgZzvAooJf8yciGGrqGWK7'
99
10+@Callable(d)
11+func purchase () = {
12+ let e = extract(d.payment)
13+ if (isDefined(e.assetId))
14+ then throw("can use WAVES only at the moment")
15+ else {
16+ let f = toBase58String(d.caller.bytes)
17+ let g = {
18+ let h = getInteger(this, "item_A_coupon_price")
19+ if ($isInstanceOf(h, "Int"))
20+ then {
21+ let i = h
22+ i
23+ }
24+ else 0
25+ }
26+ if ((g > e.amount))
27+ then throw("purchase amount cannot be less than item price")
28+ else if ((e.amount > g))
29+ then throw("purchase amount cannot be higher than item price")
30+ else WriteSet([DataEntry(("status:purchase_item_A_customer_" + f), "confirmed"), DataEntry(("price:purchase_item_A_customer_" + f), g)])
31+ }
32+ }
1033
11-@Verifier(d)
12-func e () = {
13- let f = sigVerify(d.bodyBytes, d.proofs[0], a)
14- let g = sigVerify(d.bodyBytes, d.proofs[1], a)
15- let h = sigVerify(d.bodyBytes, d.proofs[2], a)
16- let i = sigVerify(d.bodyBytes, d.proofs[0], b)
17- let j = sigVerify(d.bodyBytes, d.proofs[1], b)
18- let k = sigVerify(d.bodyBytes, d.proofs[2], b)
19- let l = sigVerify(d.bodyBytes, d.proofs[0], c)
20- let m = sigVerify(d.bodyBytes, d.proofs[1], c)
21- let n = sigVerify(d.bodyBytes, d.proofs[2], c)
22- let o = if (if (if (if (if (if (f)
23- then j
24- else false)
25- then true
26- else if (f)
27- then k
28- else false)
29- then true
30- else if (g)
31- then i
32- else false)
33- then true
34- else if (g)
35- then k
36- else false)
37- then true
38- else if (h)
39- then i
40- else false)
41- then true
42- else if (h)
43- then j
44- else false
45- let p = if (if (if (if (if (if (f)
46- then m
47- else false)
48- then true
49- else if (f)
50- then n
51- else false)
52- then true
53- else if (g)
54- then l
55- else false)
56- then true
57- else if (g)
58- then n
59- else false)
60- then true
61- else if (h)
62- then l
63- else false)
64- then true
65- else if (h)
66- then m
67- else false
68- let q = if (if (if (if (if (if (l)
69- then j
34+
35+@Verifier(j)
36+func k () = {
37+ let l = sigVerify(j.bodyBytes, j.proofs[0], a)
38+ let m = sigVerify(j.bodyBytes, j.proofs[1], a)
39+ let n = sigVerify(j.bodyBytes, j.proofs[2], a)
40+ let o = sigVerify(j.bodyBytes, j.proofs[0], b)
41+ let p = sigVerify(j.bodyBytes, j.proofs[1], b)
42+ let q = sigVerify(j.bodyBytes, j.proofs[2], b)
43+ let r = sigVerify(j.bodyBytes, j.proofs[0], c)
44+ let s = sigVerify(j.bodyBytes, j.proofs[1], c)
45+ let t = sigVerify(j.bodyBytes, j.proofs[2], c)
46+ let u = if (if (if (if (if (if (l)
47+ then p
7048 else false)
7149 then true
7250 else if (l)
73- then k
51+ then q
7452 else false)
7553 then true
7654 else if (m)
77- then i
55+ then o
7856 else false)
7957 then true
8058 else if (m)
81- then k
59+ then q
8260 else false)
8361 then true
8462 else if (n)
85- then i
63+ then o
8664 else false)
8765 then true
8866 else if (n)
89- then j
67+ then p
9068 else false
91- let r = d
92- if (if (o)
69+ let v = if (if (if (if (if (if (l)
70+ then s
71+ else false)
9372 then true
94- else p)
73+ else if (l)
74+ then t
75+ else false)
9576 then true
96- else q
77+ else if (m)
78+ then r
79+ else false)
80+ then true
81+ else if (m)
82+ then t
83+ else false)
84+ then true
85+ else if (n)
86+ then r
87+ else false)
88+ then true
89+ else if (n)
90+ then s
91+ else false
92+ let w = if (if (if (if (if (if (r)
93+ then p
94+ else false)
95+ then true
96+ else if (r)
97+ then q
98+ else false)
99+ then true
100+ else if (s)
101+ then o
102+ else false)
103+ then true
104+ else if (s)
105+ then q
106+ else false)
107+ then true
108+ else if (t)
109+ then o
110+ else false)
111+ then true
112+ else if (t)
113+ then p
114+ else false
115+ let h = j
116+ if (if (u)
117+ then true
118+ else v)
119+ then true
120+ else w
97121 }
98122
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = base58'7qQJSjnWatmsj6R3ztxN7Z8dnfhozBHpLwKYKgpSKWMd'
55
66 let b = base58'6mGA9LY4CmJFmQjCd2owynzAriXsRbtGrV7nKoimiuLs'
77
88 let c = base58'9XS9277UP5uChd1k1JU2T3mgZzvAooJf8yciGGrqGWK7'
99
10+@Callable(d)
11+func purchase () = {
12+ let e = extract(d.payment)
13+ if (isDefined(e.assetId))
14+ then throw("can use WAVES only at the moment")
15+ else {
16+ let f = toBase58String(d.caller.bytes)
17+ let g = {
18+ let h = getInteger(this, "item_A_coupon_price")
19+ if ($isInstanceOf(h, "Int"))
20+ then {
21+ let i = h
22+ i
23+ }
24+ else 0
25+ }
26+ if ((g > e.amount))
27+ then throw("purchase amount cannot be less than item price")
28+ else if ((e.amount > g))
29+ then throw("purchase amount cannot be higher than item price")
30+ else WriteSet([DataEntry(("status:purchase_item_A_customer_" + f), "confirmed"), DataEntry(("price:purchase_item_A_customer_" + f), g)])
31+ }
32+ }
1033
11-@Verifier(d)
12-func e () = {
13- let f = sigVerify(d.bodyBytes, d.proofs[0], a)
14- let g = sigVerify(d.bodyBytes, d.proofs[1], a)
15- let h = sigVerify(d.bodyBytes, d.proofs[2], a)
16- let i = sigVerify(d.bodyBytes, d.proofs[0], b)
17- let j = sigVerify(d.bodyBytes, d.proofs[1], b)
18- let k = sigVerify(d.bodyBytes, d.proofs[2], b)
19- let l = sigVerify(d.bodyBytes, d.proofs[0], c)
20- let m = sigVerify(d.bodyBytes, d.proofs[1], c)
21- let n = sigVerify(d.bodyBytes, d.proofs[2], c)
22- let o = if (if (if (if (if (if (f)
23- then j
24- else false)
25- then true
26- else if (f)
27- then k
28- else false)
29- then true
30- else if (g)
31- then i
32- else false)
33- then true
34- else if (g)
35- then k
36- else false)
37- then true
38- else if (h)
39- then i
40- else false)
41- then true
42- else if (h)
43- then j
44- else false
45- let p = if (if (if (if (if (if (f)
46- then m
47- else false)
48- then true
49- else if (f)
50- then n
51- else false)
52- then true
53- else if (g)
54- then l
55- else false)
56- then true
57- else if (g)
58- then n
59- else false)
60- then true
61- else if (h)
62- then l
63- else false)
64- then true
65- else if (h)
66- then m
67- else false
68- let q = if (if (if (if (if (if (l)
69- then j
34+
35+@Verifier(j)
36+func k () = {
37+ let l = sigVerify(j.bodyBytes, j.proofs[0], a)
38+ let m = sigVerify(j.bodyBytes, j.proofs[1], a)
39+ let n = sigVerify(j.bodyBytes, j.proofs[2], a)
40+ let o = sigVerify(j.bodyBytes, j.proofs[0], b)
41+ let p = sigVerify(j.bodyBytes, j.proofs[1], b)
42+ let q = sigVerify(j.bodyBytes, j.proofs[2], b)
43+ let r = sigVerify(j.bodyBytes, j.proofs[0], c)
44+ let s = sigVerify(j.bodyBytes, j.proofs[1], c)
45+ let t = sigVerify(j.bodyBytes, j.proofs[2], c)
46+ let u = if (if (if (if (if (if (l)
47+ then p
7048 else false)
7149 then true
7250 else if (l)
73- then k
51+ then q
7452 else false)
7553 then true
7654 else if (m)
77- then i
55+ then o
7856 else false)
7957 then true
8058 else if (m)
81- then k
59+ then q
8260 else false)
8361 then true
8462 else if (n)
85- then i
63+ then o
8664 else false)
8765 then true
8866 else if (n)
89- then j
67+ then p
9068 else false
91- let r = d
92- if (if (o)
69+ let v = if (if (if (if (if (if (l)
70+ then s
71+ else false)
9372 then true
94- else p)
73+ else if (l)
74+ then t
75+ else false)
9576 then true
96- else q
77+ else if (m)
78+ then r
79+ else false)
80+ then true
81+ else if (m)
82+ then t
83+ else false)
84+ then true
85+ else if (n)
86+ then r
87+ else false)
88+ then true
89+ else if (n)
90+ then s
91+ else false
92+ let w = if (if (if (if (if (if (r)
93+ then p
94+ else false)
95+ then true
96+ else if (r)
97+ then q
98+ else false)
99+ then true
100+ else if (s)
101+ then o
102+ else false)
103+ then true
104+ else if (s)
105+ then q
106+ else false)
107+ then true
108+ else if (t)
109+ then o
110+ else false)
111+ then true
112+ else if (t)
113+ then p
114+ else false
115+ let h = j
116+ if (if (u)
117+ then true
118+ else v)
119+ then true
120+ else w
97121 }
98122

github/deemru/w8io/026f985 
22.72 ms