tx · 2w8iJnTuhU5C8iwpPVLCaxofMDUiDqZKYV9Fx67Gp5hV

3N2D6tJAXzcTDgUiTWmcdCHd6ctYwNENuBn:  -0.01000000 Waves

2022.11.02 09:13 [2299107] smart account 3N2D6tJAXzcTDgUiTWmcdCHd6ctYwNENuBn > SELF 0.00000000 Waves

{ "type": 13, "id": "2w8iJnTuhU5C8iwpPVLCaxofMDUiDqZKYV9Fx67Gp5hV", "fee": 1000000, "feeAssetId": null, "timestamp": 1667369671641, "version": 2, "chainId": 84, "sender": "3N2D6tJAXzcTDgUiTWmcdCHd6ctYwNENuBn", "senderPublicKey": "Cq4RbcVcQJpCWyHiACDqUf2PbU8PaX949Dun9wRSeDzE", "proofs": [ "fdD5X6MMYuLZs7UDNwJ5dRAysbgvmqE2BqH5hVxFvSs97EVeeuaPaTMFkfqgxKp4iuri5KCN6VDvGyvd8Z5Eksb" ], "script": "base64:AAIDAAAAAAAAAAsIARIHCgUIAQEIAQAAAAAAAAABAAAAAWkBAAAAB3NlbGxhcnQAAAAFAAAABWFydElkAAAABVByaWNlAAAAB21heE1pbnQAAAAHYXNzZXRJZAAAAAhCbG9ja0VuZAQAAAAFbmZ0SWQJAAJYAAAAAQgFAAAAAWkAAAANdHJhbnNhY3Rpb25JZAQAAAAJZW5kSGVpZ2h0CAUAAAAJbGFzdEJsb2NrAAAABmhlaWdodAQAAAADcG10CQEAAAAHZXh0cmFjdAAAAAEIBQAAAAFpAAAAB3BheW1lbnQJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIFAAAABW5mdElkBQAAAAllbmRIZWlnaHQJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgUAAAAFbmZ0SWQCAAAACl9vcmdhbml6ZXIJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACBQAAAAVuZnRJZAIAAAAMX2xvdF9hc3NldElkAwkBAAAACWlzRGVmaW5lZAAAAAEIBQAAAANwbXQAAAAHYXNzZXRJZAkAAlgAAAABCQEAAAAFdmFsdWUAAAABCAUAAAADcG10AAAAB2Fzc2V0SWQCAAAABVdBVkVTCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIFAAAABW5mdElkAgAAAAtfbG90X2Ftb3VudAgFAAAAA3BtdAAAAAZhbW91bnQJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgUAAAAFbmZ0SWQCAAAAC19zdGFydFByaWNlBQAAAAVQcmljZQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACBQAAAAVuZnRJZAIAAAANX3ByaWNlQXNzZXRJZAUAAAAHYXNzZXRJZAUAAAADbmlsAAAAAJDaQJE=", "height": 2299107, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: AwmD1VSDeLiiGkanKpCSH7z8Dk2tXBaFhA2VvYEUj9ed Next: CDZRCw1VCKPaAQJVRVQbwctsfmBJ9U5vKNH5L2H5MnL4 Full:
OldNewDifferences
1-{-# STDLIB_VERSION 5 #-}
1+{-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let a = base58''
54
6-let b = base58''
75
8-let c = base58''
9-
10-let d = base58''
11-
12-let e = [""]
13-
14-func f (g) = {
15- let h = getInteger(this, g)
16- if ($isInstanceOf(h, "Int"))
17- then {
18- let i = h
19- i
20- }
21- else 0
6+@Callable(a)
7+func sellart (b,c,d,e,f) = {
8+ let g = toBase58String(a.transactionId)
9+ let h = lastBlock.height
10+ let i = extract(a.payment)
11+ WriteSet([DataEntry(g, h), DataEntry((g + "_organizer"), toBase58String(a.caller.bytes)), DataEntry((g + "_lot_assetId"), if (isDefined(i.assetId))
12+ then toBase58String(value(i.assetId))
13+ else "WAVES"), DataEntry((g + "_lot_amount"), i.amount), DataEntry((g + "_startPrice"), c), DataEntry((g + "_priceAssetId"), e)])
2214 }
2315
24-
25-func j (g) = {
26- let h = getBoolean(Address(d), g)
27- if ($isInstanceOf(h, "Boolean"))
28- then {
29- let i = h
30- i
31- }
32- else false
33- }
34-
35-
36-func k (l) = {
37- let h = addressFromString(l)
38- if ($isInstanceOf(h, "Address"))
39- then {
40- let m = h
41- true
42- }
43- else false
44- }
45-
46-
47-func n (g) = {
48- let h = getString(this, g)
49- if ($isInstanceOf(h, "String"))
50- then {
51- let m = h
52- m
53- }
54- else ""
55- }
56-
57-
58-func o (p) = if ((indexOf(e, p) != unit))
59- then 4
60- else 1
61-
62-
63-@Callable(q)
64-func addgatewayKey (p,r) = if ((q.caller != this))
65- then throw("admin only")
66- else {
67- let s = (("key_" + r) + "_refererAddress")
68- if ((n(s) == ""))
69- then [StringEntry(s, p), StringEntry(((("address_" + p) + "_refererKey_") + r), r)]
70- else throw((("The ref key \"" + r) + "\" is already registered"))
71- }
72-
73-
74-
75-@Callable(q)
76-func gatewayreward (t) = {
77- let u = toString(q.originCaller)
78- if (if ((q.caller.bytes != b))
79- then (q.caller.bytes != c)
80- else false)
81- then throw("This method can be called only by farming and incubator dApps")
82- else if (if ((t == ""))
83- then (n((("address_" + u) + "_referedBy")) == "")
84- else false)
85- then nil
86- else if (j(("gateway_" + u)))
87- then nil
88- else {
89- let v = {
90- let h = getString(this, (("key_" + t) + "_refererAddress"))
91- if ($isInstanceOf(h, "String"))
92- then {
93- let w = h
94- w
95- }
96- else t
97- }
98- let x = {
99- let h = getString(this, (("address_" + u) + "_referedBy"))
100- if ($isInstanceOf(h, "String"))
101- then {
102- let w = h
103- w
104- }
105- else v
106- }
107- let y = (q.payments[0].amount * o(x))
108- if ((addressFromString(x) == unit))
109- then nil
110- else {
111- let z = addressFromStringValue(x)
112- let A = addressFromStringValue(u)
113- let B = y
114- let C = (("address_" + x) + "_earnedReward")
115- let D = (((("referer_" + x) + "_referal_") + u) + "_deliveredReward")
116- if ((x == u))
117- then nil
118- else [StringEntry((("address_" + u) + "_referedBy"), x), IntegerEntry(C, (f(C) + B)), IntegerEntry(D, (f(D) + B)), IntegerEntry((((("referer_" + x) + "_referal_") + u) + "_amount"), (f((((("referer_" + x) + "_referal_") + u) + "_amount")) + 1)), ScriptTransfer(z, B, c)]
119- }
120- }
121- }
122-
123-
124-@Verifier(E)
125-func F () = sigVerify(E.bodyBytes, E.proofs[0], E.senderPublicKey)
12616

github/deemru/w8io/026f985 
22.13 ms