tx · C8Nin9boEhQp29QKsS2rmdFna2ggR9w4D6z42mXjM1gi

3NAtXa4xfYy3teTxeJXWY4ZTD9KGpkyACHC:  -0.11000000 Waves

2022.04.26 21:56 [2025841] smart account 3NAtXa4xfYy3teTxeJXWY4ZTD9KGpkyACHC > SELF 0.00000000 Waves

{ "type": 13, "id": "C8Nin9boEhQp29QKsS2rmdFna2ggR9w4D6z42mXjM1gi", "fee": 11000000, "feeAssetId": null, "timestamp": 1650999402733, "version": 2, "chainId": 84, "sender": "3NAtXa4xfYy3teTxeJXWY4ZTD9KGpkyACHC", "senderPublicKey": "CKnmMfPcdFm7C2Sy6TJPDKmAfFg31Dev2KLMojF9gWwp", "proofs": [ "M1Fy4TPR42ir2qgDJ9UminYG2K4FG3xzyUk86YdPHSU9zUrXBAPaX8eAXXZSNf4vCgKwdnb7HGxMVKXq877o6DK" ], "script": "base64:AAIFAAAAAAAAABkIAhIDCgEBEgUKAwgICBIAEgASABIDCgEBAAAAEgAAAAAYbWF4VG9rZW5BbW91bnRGb3JQcmVzYWxlAAAAAAAAmJaAAAAAAAd0b2tlbklkAQAAACA1ijvaNyhGD+h/txUPAELWlOI9ZDTDfzaN+IgihjG0cwAAAAAJY2xhaW1BZGRyAQAAABoBVJbC74rYcvif26LO41st+yuak7E6uU2KbgAAAAADd3ZzAAAAAAAF9eEAAAAAAA50b2tlblVuaXRQcmljZQAAAAAAAAAABQAAAAALZGVub21pbmF0b3IAAAAAAACYloAAAAAAD2RlY2ltYWxzSW5Ub2tlbgAAAAAAAAAAZAEAAAANdHJ5R2V0SW50ZWdlcgAAAAEAAAADa2V5BAAAAAN2YWwEAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWIFAAAAByRtYXRjaDAFAAAAAWIAAAAAAAAAAAAFAAAAA3ZhbAEAAAAMdHJ5R2V0U3RyaW5nAAAAAQAAAANrZXkEAAAAA3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AAAACAgAAAA1wcmVzYWxlU3RhdHVzBwUAAAADbmlsAAAAAWkBAAAADXJlT3BlblByZXNhbGUAAAAAAwkBAAAAAiE9AAAAAggIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwgFAAAABHRoaXMAAAAFYnl0ZXMJAAACAAAAAQIAAAAiT25seSBPd25lciBDYW4gUmUtT3BlbiB0aGUgUHJlc2FsZQkABEwAAAACCQEAAAAMQm9vbGVhbkVudHJ5AAAAAgIAAAANcHJlc2FsZVN0YXR1cwYFAAAAA25pbAAAAAFpAQAAAAVjbGFpbQAAAAEAAAAGYW1vdW50AwkBAAAAAiE9AAAAAggIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwgFAAAABHRoaXMAAAAFYnl0ZXMJAAACAAAAAQIAAAAUT25seSBPd25lciBDYW4gQ2xhaW0JAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwkBAAAAB0FkZHJlc3MAAAABBQAAAAljbGFpbUFkZHIJAABoAAAAAgUAAAAGYW1vdW50BQAAAAN3dnMFAAAABHVuaXQFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V56TFl0g==", "height": 2025841, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CDYXmg9TCXzPHJD2PVHbkA9miDTQm8eezhHv9yEbzBXN Next: none Diff:
OldNewDifferences
213213 @Callable(y)
214214 func claim (D) = if ((y.caller.bytes != this.bytes))
215215 then throw("Only Owner Can Claim")
216- else [ScriptTransfer(Address(c), D, unit)]
216+ else [ScriptTransfer(Address(c), (D * d), unit)]
217217
218218
219219 @Verifier(P)
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = 10000000
55
66 let b = base58'4bzs2y3QjBq4GEMrNcydRLMX1ReRrJ223fxNXyqyNUXL'
77
88 let c = base58'3N3fEf4mmVyYcbeuHYmZvXuJjoXjH5WRuEV'
99
1010 let d = 100000000
1111
1212 let e = 5
1313
1414 let f = 10000000
1515
1616 let g = 100
1717
1818 func h (i) = {
1919 let j = {
2020 let k = getInteger(this, i)
2121 if ($isInstanceOf(k, "Int"))
2222 then {
2323 let l = k
2424 l
2525 }
2626 else 0
2727 }
2828 j
2929 }
3030
3131
3232 func m (i) = {
3333 let j = {
3434 let k = getString(this, i)
3535 if ($isInstanceOf(k, "String"))
3636 then {
3737 let l = k
3838 l
3939 }
4040 else ""
4141 }
4242 j
4343 }
4444
4545
4646 func n (i) = {
4747 let k = getBoolean(this, i)
4848 if ($isInstanceOf(k, "Boolean"))
4949 then {
5050 let l = k
5151 l
5252 }
5353 else false
5454 }
5555
5656
5757 func o (p) = {
5858 let j = h((p + "_tokenPresale"))
5959 j
6060 }
6161
6262
6363 func q () = {
6464 let j = {
6565 let k = getInteger(this, "remainingPresaleTokenAmount")
6666 if ($isInstanceOf(k, "Int"))
6767 then {
6868 let l = k
6969 l
7070 }
7171 else a
7272 }
7373 j
7474 }
7575
7676
7777 func r () = {
7878 let k = getBoolean(this, "presaleStatus")
7979 if ($isInstanceOf(k, "Boolean"))
8080 then {
8181 let l = k
8282 l
8383 }
8484 else true
8585 }
8686
8787
8888 func s () = {
8989 let j = {
9090 let k = getInteger(this, "totalNftCount")
9191 if ($isInstanceOf(k, "Int"))
9292 then {
9393 let l = k
9494 l
9595 }
9696 else 0
9797 }
9898 j
9999 }
100100
101101
102102 func t () = {
103103 let j = {
104104 let k = getInteger(this, "remainingNftCount")
105105 if ($isInstanceOf(k, "Int"))
106106 then {
107107 let l = k
108108 l
109109 }
110110 else 0
111111 }
112112 j
113113 }
114114
115115
116116 func u () = {
117117 let j = {
118118 let k = getString(this, "remainingNfts")
119119 if ($isInstanceOf(k, "String"))
120120 then {
121121 let l = k
122122 l
123123 }
124124 else ""
125125 }
126126 j
127127 }
128128
129129
130130 func v (w) = {
131131 let k = getBoolean(this, (w + "_soldOut"))
132132 if ($isInstanceOf(k, "Boolean"))
133133 then {
134134 let l = k
135135 l
136136 }
137137 else false
138138 }
139139
140140
141141 func x (y) = {
142142 let z = ((((y.transactionId + y.callerPublicKey) + lastBlock.generationSignature) + toBytes(lastBlock.timestamp)) + toBytes(lastBlock.height))
143143 sha256(z)
144144 }
145145
146146
147147 @Callable(y)
148148 func buyTokensFromPresale (A) = {
149149 let B = toBase58String(y.caller.bytes)
150150 let C = value(y.payments[0])
151151 let D = C.amount
152152 if (!(r()))
153153 then throw("Presale Stopped by the Owner")
154154 else if ((A > q()))
155155 then throw("Exceeded Remaining Token Amount Dedicated for Presale")
156156 else if (((fraction(A, e, f) * d) > D))
157157 then throw("Not enough payments in waves")
158158 else [IntegerEntry((B + "_tokenPresale"), (A + o(B))), IntegerEntry("remainingPresaleTokenAmount", (q() - A)), StringEntry((B + "_presaleAddresses"), B), ScriptTransfer(value(addressFromString(B)), (A * g), b)]
159159 }
160160
161161
162162
163163 @Callable(y)
164164 func mintNftByOwner (E,F,G) = {
165165 let B = toBase58String(y.caller.bytes)
166166 if ((y.caller != this))
167167 then throw("Only Dapp Owner Can Mint")
168168 else {
169169 let H = Issue(E, G, 1, 0, false)
170170 let w = calculateAssetId(H)
171171 let I = toBase58String(w)
172172 [H, StringEntry((I + "_assetId"), I), StringEntry((I + "_ownerAddr"), B), StringEntry(((I + "_collectionId_") + F), I), StringEntry("remainingNfts", ((u() + I) + "_")), IntegerEntry("totalNftCount", (s() + 1)), IntegerEntry("remainingNftCount", (t() + 1)), BooleanEntry((I + "_soldOut"), false)]
173173 }
174174 }
175175
176176
177177
178178 @Callable(y)
179179 func buyNftsFromPresale () = {
180180 let B = toBase58String(y.caller.bytes)
181181 if (!(r()))
182182 then throw("Presale Stopped by the Owner")
183183 else if ((t() == 0))
184184 then throw("Nfts are not available for buying - all are sold")
185185 else {
186186 let J = split(u(), "_")
187187 let K = t()
188188 let z = toInt(x(y))
189189 let L = (z % K)
190190 let M = J[L]
191191 let N = removeByIndex(J, L)
192192 let O = makeString(N, "_")
193193 [ScriptTransfer(value(addressFromString(B)), 1, fromBase58String(M)), StringEntry((M + "_ownerAddr"), B), IntegerEntry("remainingNftCount", (t() - 1)), StringEntry("remainingNfts", O), BooleanEntry((M + "_soldOut"), true)]
194194 }
195195 }
196196
197197
198198
199199 @Callable(y)
200200 func stopPresale () = if ((y.caller.bytes != this.bytes))
201201 then throw("Only Owner Can Stop the Presale")
202202 else [BooleanEntry("presaleStatus", false)]
203203
204204
205205
206206 @Callable(y)
207207 func reOpenPresale () = if ((y.caller.bytes != this.bytes))
208208 then throw("Only Owner Can Re-Open the Presale")
209209 else [BooleanEntry("presaleStatus", true)]
210210
211211
212212
213213 @Callable(y)
214214 func claim (D) = if ((y.caller.bytes != this.bytes))
215215 then throw("Only Owner Can Claim")
216- else [ScriptTransfer(Address(c), D, unit)]
216+ else [ScriptTransfer(Address(c), (D * d), unit)]
217217
218218
219219 @Verifier(P)
220220 func Q () = sigVerify(P.bodyBytes, P.proofs[0], P.senderPublicKey)
221221

github/deemru/w8io/026f985 
35.40 ms