tx · 6YTo15aEUVCsjbLSpswT5qnHzKrcVS1ZAmpETzZVGJoq

3MxJx6npysQdoyyxLsCCb3Yg8fTeH3gEQQd:  -0.01000000 Waves

2023.12.04 00:49 [2871019] smart account 3MxJx6npysQdoyyxLsCCb3Yg8fTeH3gEQQd > SELF 0.00000000 Waves

{ "type": 13, "id": "6YTo15aEUVCsjbLSpswT5qnHzKrcVS1ZAmpETzZVGJoq", "fee": 1000000, "feeAssetId": null, "timestamp": 1701640256635, "version": 2, "chainId": 84, "sender": "3MxJx6npysQdoyyxLsCCb3Yg8fTeH3gEQQd", "senderPublicKey": "EEhsp9Jd5MwVmYJMGAZJL3tTb5KcurTz8Aw7wksZuw3e", "proofs": [ "3qXcHCCndKyRMfiR9c99HBsWbWaTi6Qhm3UqPST2CaL49DSUnT5E9s7izNZrZoBAdJ7fUjFRiWVMGc7yCVLgSkKu", "y4rg5yAnF95z5VAPNi3ifvyF5DKrRbbTHx9xo7xrXmwx8CGGDHbWxMWN795i8SaVCAW76rYUmDtQ3oTCRK1CDiW" ], "script": "base64:AAIDAAAAAAAAAAQIARIAAAAAAAAAAAEAAAABaQEAAAAIcHVyY2hhc2UAAAAABAAAAANwbXQJAQAAAAdleHRyYWN0AAAAAQgFAAAAAWkAAAAHcGF5bWVudAMJAQAAAAlpc0RlZmluZWQAAAABCAUAAAADcG10AAAAB2Fzc2V0SWQJAAACAAAAAQIAAAAgY2FuIHVzZSBXQVZFUyBvbmx5IGF0IHRoZSBtb21lbnQEAAAAD2N1c3RvbWVyQWRkcmVzcwkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBAAAAAVwcmljZQQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzAgAAABNpdGVtX0FfY291cG9uX3ByaWNlAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAADCQAAZgAAAAIFAAAABXByaWNlCAUAAAADcG10AAAABmFtb3VudAkAAAIAAAABAgAAAC5wdXJjaGFzZSBhbW91bnQgY2Fubm90IGJlIGxlc3MgdGhhbiBpdGVtIHByaWNlAwkAAGYAAAACCAUAAAADcG10AAAABmFtb3VudAUAAAAFcHJpY2UJAAACAAAAAQIAAAAwcHVyY2hhc2UgYW1vdW50IGNhbm5vdCBiZSBoaWdoZXIgdGhhbiBpdGVtIHByaWNlCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAICAAAAIHN0YXR1czpwdXJjaGFzZV9pdGVtX0FfY3VzdG9tZXJfBQAAAA9jdXN0b21lckFkZHJlc3MCAAAACWNvbmZpcm1lZAkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACAgAAAB9wcmljZTpwdXJjaGFzZV9pdGVtX0FfY3VzdG9tZXJfBQAAAA9jdXN0b21lckFkZHJlc3MFAAAABXByaWNlBQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAUU2V0U2NyaXB0VHJhbnNhY3Rpb24EAAAAAWQFAAAAByRtYXRjaDAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAA9EYXRhVHJhbnNhY3Rpb24EAAAAAWQFAAAAByRtYXRjaDAGAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNUcmFuc2ZlclRyYW5zYWN0aW9uBAAAAAFkBQAAAAckbWF0Y2gwBgfznwaL", "height": 2871019, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8W9xax8GYjSzgveTNBtiF1nrXxrEQspL2nQLNWmi7cdG Next: Af5JgqvPxpTq4kFasVhPmeWSDvJdshakYPTub2Epugrf Diff:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let a = base58'FgdjGJ4tLFiavKEKf4WkWwkgvU8ARWP1WYZfmUrXo4CY'
54
6-let b = base58'EEhsp9Jd5MwVmYJMGAZJL3tTb5KcurTz8Aw7wksZuw3e'
75
8-let c = base58'6SdykacJeMCbeNvVJY71gWMJeXt9ZT44X4KexwZxHEYz'
9-
10-@Callable(d)
6+@Callable(a)
117 func purchase () = {
12- let e = extract(d.payment)
13- if (isDefined(e.assetId))
8+ let b = extract(a.payment)
9+ if (isDefined(b.assetId))
1410 then throw("can use WAVES only at the moment")
1511 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"))
12+ let c = toBase58String(a.caller.bytes)
13+ let d = {
14+ let e = getInteger(this, "item_A_coupon_price")
15+ if ($isInstanceOf(e, "Int"))
2016 then {
21- let i = h
22- i
17+ let f = e
18+ f
2319 }
2420 else 0
2521 }
26- if ((g > e.amount))
22+ if ((d > b.amount))
2723 then throw("purchase amount cannot be less than item price")
28- else if ((e.amount > g))
24+ else if ((b.amount > d))
2925 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)])
26+ else WriteSet([DataEntry(("status:purchase_item_A_customer_" + c), "confirmed"), DataEntry(("price:purchase_item_A_customer_" + c), d)])
3127 }
3228 }
3329
3430
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
48- else false)
49- then true
50- else if (l)
51- then q
52- else false)
53- then true
54- else if (m)
55- then o
56- else false)
57- then true
58- else if (m)
59- then q
60- else false)
61- then true
62- else if (n)
63- then o
64- else false)
65- then true
66- else if (n)
67- then p
68- else false
69- let v = if (if (if (if (if (if (l)
70- then s
71- else false)
72- then true
73- else if (l)
74- then t
75- else false)
76- then true
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 ($isInstanceOf(h, "SetScriptTransaction"))
31+@Verifier(g)
32+func h () = {
33+ let e = g
34+ if ($isInstanceOf(e, "SetScriptTransaction"))
11735 then {
118- let x = h
119- if (if (u)
120- then true
121- else w)
122- then true
123- else v
36+ let i = e
37+ sigVerify(g.bodyBytes, g.proofs[0], g.senderPublicKey)
12438 }
125- else if ($isInstanceOf(h, "DataTransaction"))
39+ else if ($isInstanceOf(e, "DataTransaction"))
12640 then {
127- let x = h
128- if (if (u)
129- then true
130- else w)
131- then true
132- else v
41+ let i = e
42+ true
13343 }
134- else if ($isInstanceOf(h, "TransferTransaction"))
44+ else if ($isInstanceOf(e, "TransferTransaction"))
13545 then {
136- let x = h
137- if (if (u)
138- then true
139- else w)
140- then true
141- else v
46+ let i = e
47+ true
14248 }
14349 else false
14450 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let a = base58'FgdjGJ4tLFiavKEKf4WkWwkgvU8ARWP1WYZfmUrXo4CY'
54
6-let b = base58'EEhsp9Jd5MwVmYJMGAZJL3tTb5KcurTz8Aw7wksZuw3e'
75
8-let c = base58'6SdykacJeMCbeNvVJY71gWMJeXt9ZT44X4KexwZxHEYz'
9-
10-@Callable(d)
6+@Callable(a)
117 func purchase () = {
12- let e = extract(d.payment)
13- if (isDefined(e.assetId))
8+ let b = extract(a.payment)
9+ if (isDefined(b.assetId))
1410 then throw("can use WAVES only at the moment")
1511 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"))
12+ let c = toBase58String(a.caller.bytes)
13+ let d = {
14+ let e = getInteger(this, "item_A_coupon_price")
15+ if ($isInstanceOf(e, "Int"))
2016 then {
21- let i = h
22- i
17+ let f = e
18+ f
2319 }
2420 else 0
2521 }
26- if ((g > e.amount))
22+ if ((d > b.amount))
2723 then throw("purchase amount cannot be less than item price")
28- else if ((e.amount > g))
24+ else if ((b.amount > d))
2925 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)])
26+ else WriteSet([DataEntry(("status:purchase_item_A_customer_" + c), "confirmed"), DataEntry(("price:purchase_item_A_customer_" + c), d)])
3127 }
3228 }
3329
3430
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
48- else false)
49- then true
50- else if (l)
51- then q
52- else false)
53- then true
54- else if (m)
55- then o
56- else false)
57- then true
58- else if (m)
59- then q
60- else false)
61- then true
62- else if (n)
63- then o
64- else false)
65- then true
66- else if (n)
67- then p
68- else false
69- let v = if (if (if (if (if (if (l)
70- then s
71- else false)
72- then true
73- else if (l)
74- then t
75- else false)
76- then true
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 ($isInstanceOf(h, "SetScriptTransaction"))
31+@Verifier(g)
32+func h () = {
33+ let e = g
34+ if ($isInstanceOf(e, "SetScriptTransaction"))
11735 then {
118- let x = h
119- if (if (u)
120- then true
121- else w)
122- then true
123- else v
36+ let i = e
37+ sigVerify(g.bodyBytes, g.proofs[0], g.senderPublicKey)
12438 }
125- else if ($isInstanceOf(h, "DataTransaction"))
39+ else if ($isInstanceOf(e, "DataTransaction"))
12640 then {
127- let x = h
128- if (if (u)
129- then true
130- else w)
131- then true
132- else v
41+ let i = e
42+ true
13343 }
134- else if ($isInstanceOf(h, "TransferTransaction"))
44+ else if ($isInstanceOf(e, "TransferTransaction"))
13545 then {
136- let x = h
137- if (if (u)
138- then true
139- else w)
140- then true
141- else v
46+ let i = e
47+ true
14248 }
14349 else false
14450 }
14551

github/deemru/w8io/3ef1775 
42.65 ms