tx · H9wVYAkyxVazSsacyfk1L7MpNAyDkmUDUttX2kDAwuua

3Mr97MBt1TwRZHBK8R1EFDz8S8mxui5U4zB:  -0.01400000 Waves

2021.06.01 04:06 [1550609] smart account 3Mr97MBt1TwRZHBK8R1EFDz8S8mxui5U4zB > SELF 0.00000000 Waves

{ "type": 13, "id": "H9wVYAkyxVazSsacyfk1L7MpNAyDkmUDUttX2kDAwuua", "fee": 1400000, "feeAssetId": null, "timestamp": 1622509650057, "version": 2, "chainId": 84, "sender": "3Mr97MBt1TwRZHBK8R1EFDz8S8mxui5U4zB", "senderPublicKey": "CQ7vntBAYh2QZcKcqiiyEnQWWXsr98ysDptD23Wgxmvb", "proofs": [ "3N63gX3jbwQgnoDd6q2Zrb1S5X6FCDpmpGHCiL17sgcH53ksjLrNxgFZQf3s9s8uJAP5JKMvXvSbC2HYTSguVNg4" ], "script": "base64:AAIEAAAAAAAAAAkIAhIDCgEBEgAAAAAFAAAAAAhraXR0ZW5JZAIAAAAsR3VvYmNIdlc5V3FvdG5rR1VqN0prcGNiWHRnVmZCMzdUQTRKa2dTajlRYmIBAAAAD2dldFJhbmRvbU51bWJlcgAAAAQAAAAIdmFyaWFudHMAAAAEdHhJZAAAABRoYXRjaGluZ0ZpbmlzaEhlaWdodAAAAAZvZmZzZXQEAAAAD3JhbmRvbVNlZWRCbG9jawkBAAAABXZhbHVlAAAAAQkAA+0AAAABCQAAZQAAAAIFAAAAFGhhdGNoaW5nRmluaXNoSGVpZ2h0AAAAAAAAAAABBAAAAApyYW5kb21IYXNoCQAB9wAAAAEJAADLAAAAAgUAAAAEdHhJZAkBAAAABXZhbHVlAAAAAQgFAAAAD3JhbmRvbVNlZWRCbG9jawAAAAN2cmYJAABqAAAAAgkABLIAAAACBQAAAApyYW5kb21IYXNoCQAAaAAAAAIFAAAABm9mZnNldAAAAAAAAAAACAUAAAAIdmFyaWFudHMBAAAACmdlbmVyYXRpb24AAAABAAAAA251bQMDCQAAZgAAAAIFAAAAA251bQAA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lTmZ0CQAETAAAAAIFAAAAC25mdFRyYW5zZmVyCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAAJYAAAAAQkBAAAABXZhbHVlAAAAAQUAAAAKaXNzdWVOZnRJZAUAAAAIZ2VuZUNvZGUJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAICAAAADWlzc3VlUXVhbnRpdHkFAAAAC25ld1F1YW50aXR5BQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleRu+Up8=", "height": 1550609, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 45ZZNqrw9UT9PdNW6d36kFL8WQmotksgYCw4TSW8LfHo Next: 31Li9KkucfFGWok6WYQ8cSQz8dtqEgFVrF9YqpivZn61 Diff:
OldNewDifferences
126126 let z = Issue("Kitten(=^・^=)", ("generation:" + y), 1, 0, false)
127127 let A = calculateAssetId(z)
128128 let B = lastBlock.height
129- let C = b(2, A, B, 0)
129+ let C = b(100, A, B, 0)
130130 if ((j == 0))
131131 then throw(((("blockHeight:" + toString(B)) + "/typeRandom:") + toString(C)))
132132 else {
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "GuobcHvW9WqotnkGUj7JkpcbXtgVfB37TA4JkgSj9Qbb"
55
66 func b (c,d,e,f) = {
77 let g = value(blockInfoByHeight((e - 1)))
88 let h = sha256((d + value(g.vrf)))
99 (toInt(h, (f * 8)) % c)
1010 }
1111
1212
1313 func i (j) = if (if ((j > 0))
1414 then true
1515 else (300 >= j))
1616 then "G1"
1717 else if (if ((j > 300))
1818 then true
1919 else (1000 >= j))
2020 then "G2"
2121 else "G3"
2222
2323
2424 func k () = {
2525 let l = lastBlock.timestamp
2626 let m = toString(l)
2727 let n = takeRight(m, 2)
2828 let o = parseIntValue(n)
2929 if ((o == 0))
3030 then "II-II-II-II"
3131 else if (if ((o > 0))
3232 then (3 >= o)
3333 else false)
3434 then "BB-BB-BB-BB"
3535 else if (if ((o > 3))
3636 then (8 >= o)
3737 else false)
3838 then "CC-CC-CC-CC"
3939 else if (if ((o > 8))
4040 then (15 >= o)
4141 else false)
4242 then "DD-DD-DD-DD"
4343 else if (if ((o > 15))
4444 then (24 >= o)
4545 else false)
4646 then "EE-EE-EE-EE"
4747 else if (if ((o > 24))
4848 then (35 >= o)
4949 else false)
5050 then "FF-FF-FF-FF"
5151 else if (if ((o > 35))
5252 then (48 >= o)
5353 else false)
5454 then "GG-GG-GG-GG"
5555 else if (if ((o > 48))
5656 then (51 >= o)
5757 else false)
5858 then "AA-AA-AA-AA"
5959 else "HH-HH-HH-HH"
6060 }
6161
6262
6363 func p (j) = {
6464 let l = lastBlock.timestamp
6565 let m = toString(l)
6666 let n = takeRight(m, 2)
6767 let o = parseIntValue(n)
6868 if ((o == 0))
6969 then "II-II-II-II"
7070 else if (if ((o > 0))
7171 then (3 >= o)
7272 else false)
7373 then "BB-BB-BB-BB"
7474 else if (if ((o > 3))
7575 then (8 >= o)
7676 else false)
7777 then "CC-CC-CC-CC"
7878 else if (if ((o > 8))
7979 then (15 >= o)
8080 else false)
8181 then "DD-DD-DD-DD"
8282 else if (if ((o > 15))
8383 then (24 >= o)
8484 else false)
8585 then "EE-EE-EE-EE"
8686 else if (if ((o > 24))
8787 then (35 >= o)
8888 else false)
8989 then "FF-FF-FF-FF"
9090 else if (if ((o > 35))
9191 then (48 >= o)
9292 else false)
9393 then "GG-GG-GG-GG"
9494 else if (if ((o > 48))
9595 then (51 >= o)
9696 else false)
9797 then "AA-AA-AA-AA"
9898 else "HH-HH-HH-HH"
9999 }
100100
101101
102102 @Callable(q)
103103 func testKitten (j) = {
104104 let r = q.payments[0]
105105 let s = toBase58String(value(r.assetId))
106106 if ((s != a))
107107 then throw("Please send Kitten token.")
108108 else {
109109 let t = r.amount
110110 if ((t > 300))
111111 then throw("Amount of Kitten tokens sent is 3 tokens.")
112112 else if ((300 > t))
113113 then throw("Amount of Kitten tokens sent is 3 tokens.")
114114 else {
115115 let u = {
116116 let v = getInteger(this, "issueQuantity")
117117 if ($isInstanceOf(v, "Int"))
118118 then {
119119 let w = v
120120 w
121121 }
122122 else 0
123123 }
124124 let x = (u + 1)
125125 let y = i(x)
126126 let z = Issue("Kitten(=^・^=)", ("generation:" + y), 1, 0, false)
127127 let A = calculateAssetId(z)
128128 let B = lastBlock.height
129- let C = b(2, A, B, 0)
129+ let C = b(100, A, B, 0)
130130 if ((j == 0))
131131 then throw(((("blockHeight:" + toString(B)) + "/typeRandom:") + toString(C)))
132132 else {
133133 let D = p(C)
134134 [z, ScriptTransfer(q.caller, 1, A), StringEntry(toBase58String(value(A)), D), IntegerEntry("issueQuantity", x)]
135135 }
136136 }
137137 }
138138 }
139139
140140
141141
142142 @Callable(q)
143143 func giveBirthKitten () = {
144144 let r = q.payments[0]
145145 let s = toBase58String(value(r.assetId))
146146 if ((s != a))
147147 then throw("Please send Kitten token.")
148148 else {
149149 let t = r.amount
150150 let u = {
151151 let v = getInteger(this, "issueQuantity")
152152 if ($isInstanceOf(v, "Int"))
153153 then {
154154 let w = v
155155 w
156156 }
157157 else 0
158158 }
159159 let x = (u + 1)
160160 let y = i(x)
161161 if ((t > 300))
162162 then throw("Amount of Kitten tokens sent is 3 tokens.")
163163 else if ((300 > t))
164164 then throw("Amount of Kitten tokens sent is 3 tokens.")
165165 else {
166166 let z = Issue("Kitten(=^・^=)", ("generation:" + y), 1, 0, false)
167167 let A = calculateAssetId(z)
168168 let E = ScriptTransfer(q.caller, 1, A)
169169 let D = k()
170170 [z, E, StringEntry(toBase58String(value(A)), D), IntegerEntry("issueQuantity", x)]
171171 }
172172 }
173173 }
174174
175175
176176 @Verifier(F)
177177 func G () = sigVerify(F.bodyBytes, F.proofs[0], F.senderPublicKey)
178178

github/deemru/w8io/026f985 
35.26 ms