tx · 4Jq1vJLz9Yr3MV2zKezdtBdM9oHKV95ck8TjqKcpF2p2

3N7Gg64FJ3ESaqn41qu1ete7zmzbmoP1AAV:  -0.01000000 Waves

2021.12.11 21:13 [1829921] smart account 3N7Gg64FJ3ESaqn41qu1ete7zmzbmoP1AAV > SELF 0.00000000 Waves

{ "type": 13, "id": "4Jq1vJLz9Yr3MV2zKezdtBdM9oHKV95ck8TjqKcpF2p2", "fee": 1000000, "feeAssetId": null, "timestamp": 1639246398308, "version": 2, "chainId": 84, "sender": "3N7Gg64FJ3ESaqn41qu1ete7zmzbmoP1AAV", "senderPublicKey": "5amLtMwixiEesBDKPy9dkFWntG2fNxhTs5n69JbQE9F7", "proofs": [ "SELb4a6j7BNVZy1SmcUvrRN1SAgs2wMJ66wMgqSuBm4iE1LNinikKLCUEPd29qysSFYajufze9GXb4VkZgKbuz2" ], "script": "base64:AAIFAAAAAAAAAAsIAhIAEgMKAQgSAAAAAAMAAAAABXRva2VuAQAAACDnOZgLkNAqR859hHqstm3f+W8Ysf2b79oIcjd5zepeZgAAAAAHYWlyZHJvcAkBAAAAB0FkZHJlc3MAAAABAQAAABoBVL5fGbDUbkI0fER3ZA37DWC9GkZHGFznigAAAAAKdGVhbUFkcmVzcwkBAAAAB0FkZHJlc3MAAAABAQAAABoBVAAmCU/IrzTjRqRT1pNRXalTwMQKQXJi2gAAAAMAAAABaQEAAAAFcmVzZXQAAAAACQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAAFYnVybnQAAAAAAAAAAAAJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAICAAAAB2Ryb3BwZWQAAAAAAAAAAAAJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAICAAAACHRlYW1naWZ0AAAAAAAAAAAACQAETAAAAAIJAQAAAAxJbnRlZ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gkAASwAAAACCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMCAAAABF9idXkFAAAABG1lc3MFAAAAA25pbAAAAAAdVT0K", "height": 1829921, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: GZBXMGoGGfhso1RoFvizUwrFNtXiPCVceEKnTx5k2nma Next: DCreqYr21LwHDX35H1TZ2QjQMo41tLsVpZG76JhRAmzz Diff:
OldNewDifferences
119119 }
120120 let i = assetBalance(b, a)
121121 let y = 1000
122- let z = 1
123- let A = 10
122+ let z = (1 * 100000000)
123+ let A = (2 * 100000000)
124124 let o = Address(d.caller.bytes)
125125 let B = if ((i >= y))
126126 then true
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = base58'GZc7eKnq2KJwqetRmUzSqr2ZaCGseDZufSocz83sUNoo'
55
66 let b = Address(base58'3N7Gg64FJ3ESaqn41qu1ete7zmzbmoP1AAV')
77
88 let c = Address(base58'3MovsLjXpJr9HD2vBqmAf7Gze6jwuRxX1fX')
99
1010 @Callable(d)
1111 func reset () = [DeleteEntry(toBase58String(d.caller.bytes)), IntegerEntry("burnt", 0), IntegerEntry("dropped", 0), IntegerEntry("teamgift", 0), IntegerEntry("burningstage", 0)]
1212
1313
1414
1515 @Callable(d)
1616 func call (e) = {
1717 let f = {
1818 let g = blockInfoByHeight(height)
1919 if ($isInstanceOf(g, "BlockInfo"))
2020 then {
2121 let h = g
2222 h.timestamp
2323 }
2424 else throw("Can't find block")
2525 }
2626 let i = assetBalance(b, a)
2727 let j = {
2828 let g = getInteger("burningstage")
2929 if ($isInstanceOf(g, "Int"))
3030 then {
3131 let k = g
3232 if (if ((getIntegerValue("burningstage") == 0))
3333 then (f > 1639131654752)
3434 else false)
3535 then fraction(i, 10, 100)
3636 else 0
3737 }
3838 else throw("no burningstage")
3939 }
4040 let l = 1000
4141 let m = 10
4242 let n = fromBase58String(e)
4343 let o = Address(d.caller.bytes)
4444 let p = 1639230864311
4545 let q = if ((i > l))
4646 then true
4747 else throw("not enough")
4848 if ((q == q))
4949 then {
5050 let r = {
5151 let g = transferTransactionById(n)
5252 if ($isInstanceOf(g, "TransferTransaction"))
5353 then {
5454 let s = g
5555 true
5656 }
5757 else false
5858 }
5959 let t = {
6060 let g = transferTransactionById(n)
6161 if ($isInstanceOf(g, "TransferTransaction"))
6262 then {
6363 let s = g
6464 s.timestamp
6565 }
6666 else 9999999999999
6767 }
6868 let u = {
6969 let g = transferTransactionById(n)
7070 if ($isInstanceOf(g, "TransferTransaction"))
7171 then {
7272 let s = g
7373 s.sender
7474 }
7575 else b
7676 }
7777 let v = if ((take(valueOrElse(getString(toBase58String(d.caller.bytes)), ""), 8) == "received"))
7878 then true
7979 else false
8080 let w = if (if (if ((t > p))
8181 then true
8282 else (o != u))
8383 then true
8484 else v)
8585 then false
8686 else true
8787 let x = if (r)
8888 then if ((t > p))
8989 then ("transaction is out of time range: " + toString(t))
9090 else ("" + (if ((o != u))
9191 then ((("it is incorrect sender: " + toString(o)) + " / ") + toString(u))
9292 else ("" + (if (v)
9393 then getStringValue(toBase58String(d.caller.bytes))
9494 else ("" + (if (w)
9595 then ("received in " + toString(f))
9696 else ""))))))
9797 else "cant find transaction"
9898 if (w)
9999 then if ((j > 0))
100100 then [ScriptTransfer(o, l, a), ScriptTransfer(c, m, a), StringEntry(toBase58String(d.caller.bytes), x), IntegerEntry("dropped", (getIntegerValue("dropped") + l)), IntegerEntry("teamgift", (getIntegerValue("teamgift") + m))]
101101 else [ScriptTransfer(o, l, a), ScriptTransfer(c, m, a), StringEntry(toBase58String(d.caller.bytes), x), IntegerEntry("dropped", (getIntegerValue("dropped") + l)), IntegerEntry("teamgift", (getIntegerValue("teamgift") + m))]
102102 else [StringEntry(toBase58String(d.caller.bytes), x)]
103103 }
104104 else throw("Strict value is not equal to itself.")
105105 }
106106
107107
108108
109109 @Callable(d)
110110 func buy () = {
111111 let f = {
112112 let g = blockInfoByHeight(height)
113113 if ($isInstanceOf(g, "BlockInfo"))
114114 then {
115115 let h = g
116116 h.timestamp
117117 }
118118 else throw("Can't find block")
119119 }
120120 let i = assetBalance(b, a)
121121 let y = 1000
122- let z = 1
123- let A = 10
122+ let z = (1 * 100000000)
123+ let A = (2 * 100000000)
124124 let o = Address(d.caller.bytes)
125125 let B = if ((i >= y))
126126 then true
127127 else false
128128 let C = valueOrElse(getString(toBase58String(d.caller.bytes)), "")
129129 let D = if ((take(C, 8) == "received"))
130130 then true
131131 else false
132132 let E = if (if (D)
133133 then (size(split(C, "|")) == 1)
134134 else false)
135135 then 0
136136 else if (if (D)
137137 then (size(split(C, "|")) == 2)
138138 else false)
139139 then 1
140140 else 2
141141 let F = if ((E == 0))
142142 then z
143143 else if ((E == 1))
144144 then A
145145 else 0
146146 let G = if ((size(d.payments) == 1))
147147 then if (if (!(isDefined(d.payments[0].assetId)))
148148 then (d.payments[0].amount >= F)
149149 else false)
150150 then true
151151 else false
152152 else false
153153 let H = if (!(D))
154154 then "not prooved for buy"
155155 else ("" + (if (!(G))
156156 then "not enough payment"
157157 else ("" + (if (!(B))
158158 then "ballance empty "
159159 else ""))))
160160 let I = split(C, "|")
161161 let J = if (D)
162162 then I[0]
163163 else ("" + (if ((E == 0))
164164 then "|bought1"
165165 else ("" + (if ((E == 1))
166166 then "|bought1|bought2"
167167 else ""))))
168168 let K = if (if (if (B)
169169 then D
170170 else false)
171171 then G
172172 else false)
173173 then true
174174 else false
175175 if (K)
176176 then [StringEntry(toBase58String(d.caller.bytes), J), ScriptTransfer(c, F, unit), ScriptTransfer(o, y, a)]
177177 else [StringEntry((toBase58String(d.caller.bytes) + "_buy"), H)]
178178 }
179179
180180

github/deemru/w8io/026f985 
26.32 ms