tx · 9ojzsroAi3MUvS9cTpiv339ATH3gzfxVrYBtkog5QZMi

3MvFWdf5NgnMVSprWTkEP1okPo1pDgqLH76:  -0.05000000 Waves

2020.10.05 11:40 [1207035] smart account 3MvFWdf5NgnMVSprWTkEP1okPo1pDgqLH76 > SELF 0.00000000 Waves

{ "type": 13, "id": "9ojzsroAi3MUvS9cTpiv339ATH3gzfxVrYBtkog5QZMi", "fee": 5000000, "feeAssetId": null, "timestamp": 1601887234638, "version": 2, "chainId": 84, "sender": "3MvFWdf5NgnMVSprWTkEP1okPo1pDgqLH76", "senderPublicKey": "7qQJSjnWatmsj6R3ztxN7Z8dnfhozBHpLwKYKgpSKWMd", "proofs": [ "3darTR81YxXSBQvhYqJFmYDaC5fn66Mr7zZ6m2ku5W6eFNSgNPpiJNtU5kbv5Y7vWTYUFd1kNXxSx1Z1cwcmNqW", "WN7ZGQePXr8HjnuLGjwM4PfKnYDwjXGvwRt9Xm5wHkNypbqUwaP4ZxwmFdTTeuSP12pj5H6myrbvGtfauRCQByi" ], "script": "base64:AAIDAAAAAAAAAAQIARIAAAAAAwAAAAALYWxpY2VQdWJLZXkBAAAAIGWMWL1xS8UM0sunKVizh4wfr9liEBCLf8kf/FHCLjtAAAAAAAlib2JQdWJLZXkBAAAAIFWhIQjZ0p7zX1Aax7DUrjRyF/IFaG7tPly3lj9wpgMYAAAAAAxjb29wZXJQdWJLZXkBAAAAIH6pV/Zr5KzU7mhyJG84bHzs5/S+RkxIN29Q/qRoYgpmAAAAAQAAAAFpAQAAAAhwdXJjaGFzZQAAAAAEAAAAA3BtdAkBAAAAB2V4dHJhY3QAAAABCAUAAAABaQAAAAdwYXltZW50AwkBAAAACWlzRGVmaW5lZAAAAAEIBQAAAANwbXQAAAAHYXNzZXRJZAkAAAIAAAABAgAAACBjYW4gdXNlIFdBVkVTIG9ubHkgYXQgdGhlIG1vbWVudAQAAAAPY3VzdG9tZXJBZGRyZXNzCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMEAAAABXByaWNlBAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMCAAAAE2l0ZW1fQV9jb3Vwb25fcHJpY2UDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQAAAAAAAAAAAAMJAABmAAAAAgUAAAAFcHJpY2UIBQAAAANwbXQAAAAGYW1vdW50CQAAAgAAAAECAAAALnB1cmNoYXNlIGFtb3VudCBjYW5ub3QgYmUgbGVzcyB0aGFuIGl0ZW0gcHJpY2UDCQAAZgAAAAIIBQAAAANwbXQAAAAGYW1vdW50BQAAAAVwcmljZQkAAAIAAAABAgAAADBwdXJjaGFzZSBhbW91bnQgY2Fubm90IGJlIGhpZ2hlciB0aGFuIGl0ZW0gcHJpY2UJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgIAAAAgc3RhdHVzOnB1cmNoYXNlX2l0ZW1fQV9jdXN0b21lcl8FAAAAD2N1c3RvbWVyQWRkcmVzcwIAAAAJY29uZmlybWVkCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAICAAAAH3ByaWNlOnB1cmNoYXNlX2l0ZW1fQV9jdXN0b21lcl8FAAAAD2N1c3RvbWVyQWRkcmVzcwUAAAAFcHJpY2UFAAAAA25pbAAAAACaIMkL", "height": 1207035, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: t3D15JsUrDF3KM6M8h7VkgdTXPDpdkQjMkqXSLGRfJf Next: none Diff:
OldNewDifferences
3232 }
3333
3434
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 (if (u)
117- then true
118- else v)
119- then true
120- else w
121- }
122-
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
1010 @Callable(d)
1111 func purchase () = {
1212 let e = extract(d.payment)
1313 if (isDefined(e.assetId))
1414 then throw("can use WAVES only at the moment")
1515 else {
1616 let f = toBase58String(d.caller.bytes)
1717 let g = {
1818 let h = getInteger(this, "item_A_coupon_price")
1919 if ($isInstanceOf(h, "Int"))
2020 then {
2121 let i = h
2222 i
2323 }
2424 else 0
2525 }
2626 if ((g > e.amount))
2727 then throw("purchase amount cannot be less than item price")
2828 else if ((e.amount > g))
2929 then throw("purchase amount cannot be higher than item price")
3030 else WriteSet([DataEntry(("status:purchase_item_A_customer_" + f), "confirmed"), DataEntry(("price:purchase_item_A_customer_" + f), g)])
3131 }
3232 }
3333
3434
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 (if (u)
117- then true
118- else v)
119- then true
120- else w
121- }
122-

github/deemru/w8io/169f3d6 
26.68 ms