tx · Ai8emGQdLjv5i7HcbBdC4N7oumXUzkbtLHuCaycaYJNy 3MuocfPorcMAUnSc35WpLgUKFQJKm6RC55Z: -0.00900000 Waves 2022.07.06 21:02 [2128160] smart account 3MuocfPorcMAUnSc35WpLgUKFQJKm6RC55Z > SELF 0.00000000 Waves
{ "type": 13, "id": "Ai8emGQdLjv5i7HcbBdC4N7oumXUzkbtLHuCaycaYJNy", "fee": 900000, "feeAssetId": null, "timestamp": 1657130515790, "version": 2, "chainId": 84, "sender": "3MuocfPorcMAUnSc35WpLgUKFQJKm6RC55Z", "senderPublicKey": "B9LahpBYmTXMH24nttq3q9Dss7BEyDSaC8UFgCCwRgsi", "proofs": [ "3JHmMDKHihiW6yLjDWtgv2ysRD4yPSx9WatTPLLWumT5QVx5D3SKPfDmDtWm3irqgBiCZBm587WibBAwY6pMEhux" ], "script": "base64:AAIFAAAAAAAAAA8IAhIAEgMKAQgSBAoCCAgAAAAWAAAAABRtb25zdGVySXNzdWVyQWRkcmVzcwEAAAAaAVSHXYnEznMVzCVLWBzQOwCthPUxvrxCD2MAAAAAEG1heENoaWxkc0NhbkhhdmUAAAAAAAAAAAAAAAAAEGRlbGF5Rm9yQnJlZWRpbmcAAAAAAAAAAAEAAAAAD0JyZWVkaW5nU3RhcnRlZAIAAAAQQlJFRURJTkdfU1RBUlRFRAAAAAAQQnJlZWRpbmdGaW5pc2hlZAIAAAARQlJFRURJTkdfRklOSVNIRUQAAAAABG51bGwCAAAABG51bGwAAAAAEXRvdGFsQnJlZWRlZENvdW50AgAAABJfdG90YWxCcmVlZGVkQ291bnQBAAAADmdldE51bWJlckJ5S2V5AAAAAQAAAANrZXkJAQAAAAt2YWx1ZU9yRWxzZQAAAAIJAAQaAAAAAgUAAAAEdGhpcwUAAAADa2V5AAAAAAAAAAAAAQAAAA5nZXRTdHJpbmdCeUtleQAAAAEAAAADa2V5CQEAAAALdmFsdWVPckVsc2UAAAACCQAEHQAAAAIFAAAABHRoaXMFAAAAA2tleQIAA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AUAAAAHYXNzZXRJZAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQACWAAAAAEFAAAAB2Fzc2V0SWQJAAJYAAAAAQUAAAAHYXNzZXRJZAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQACWAAAAAEIBQAAAAFpAAAADXRyYW5zYWN0aW9uSWQJAAJYAAAAAQUAAAAHYXNzZXRJZAUAAAADbmlsCQAAAgAAAAECAAAAJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgAAAAAHiMkP", "height": 2128160, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: VHgE58kH9Rhhaw2CuHQqzXbEYEezcLAfyRG3d48JtWi Next: BWFf8oST9Bw67RZ37ChE2cLZd4Js5qNR4cQ2idL4zhQD Diff:
Old | New | Differences | |
---|---|---|---|
133 | 133 | let ai = getStringValue(this, C(toString(Y.caller), x)) | |
134 | 134 | throw(("The monster was breeded and claimed already, here is the folowing: " + ai)) | |
135 | 135 | } | |
136 | - | else if ((ah > height)) | |
137 | - | then throw((((("Breeding is not finished yet " + toString((ah - height))) + " blocks remaining, it will take around ") + toString((ah - height))) + " minutes")) | |
138 | - | else { | |
139 | - | let aj = J(x, ah) | |
140 | - | let ak = (("{\"genotype\": \"" + aj) + "\", \"crossbreeding\": true}") | |
141 | - | let al = (("https://ipfs.io/ipfs/bafybeidwsupz24ozr244breub5obhl5dxh22xr3wu7xumm4mlf7tgmocvi/" + aj) + ".png") | |
142 | - | let am = "artefacts" | |
143 | - | let m = { | |
144 | - | let an = invoke(Address(a), "createNFT", [aj, ak, al, am], nil) | |
145 | - | if ($isInstanceOf(an, "String")) | |
136 | + | else if ((ag == "")) | |
137 | + | then throw("You havent monsters to claim") | |
138 | + | else if ((ah > height)) | |
139 | + | then throw((((("Breeding is not finished yet " + toString((ah - height))) + " blocks remaining, it will take around ") + toString((ah - height))) + " minutes")) | |
140 | + | else { | |
141 | + | let aj = J(x, ah) | |
142 | + | let ak = (("{\"genotype\": \"" + aj) + "\", \"crossbreeding\": true}") | |
143 | + | let al = (("https://ipfs.io/ipfs/bafybeidwsupz24ozr244breub5obhl5dxh22xr3wu7xumm4mlf7tgmocvi/" + aj) + ".png") | |
144 | + | let am = "artefacts" | |
145 | + | let m = { | |
146 | + | let an = invoke(Address(a), "createNFT", [aj, ak, al, am], nil) | |
147 | + | if ($isInstanceOf(an, "String")) | |
148 | + | then { | |
149 | + | let ao = an | |
150 | + | fromBase58String(ao) | |
151 | + | } | |
152 | + | else throw("something went wrong during the creation of NFT") | |
153 | + | } | |
154 | + | if ((m == m)) | |
146 | 155 | then { | |
147 | - | let ao = an | |
148 | - | fromBase58String(ao) | |
156 | + | let N = j(w(x, 1)) | |
157 | + | let O = j(w(x, 2)) | |
158 | + | [StringEntry(V, e), DeleteEntry((z(toString(Y.caller), Y.transactionId) + d)), StringEntry((V + e), ae), StringEntry(af, toBase58String(m)), StringEntry(toBase58String(m), af), StringEntry(toBase58String(m), toBase58String(m)), IntegerEntry(g, (k() + 1)), ScriptTransfer(Y.caller, 1, m), ScriptTransfer(Y.caller, 1, fromBase58String(N)), ScriptTransfer(Y.caller, 1, fromBase58String(O))] | |
149 | 159 | } | |
150 | - | else throw(" | |
160 | + | else throw("Strict value is not equal to itself.") | |
151 | 161 | } | |
152 | - | if ((m == m)) | |
153 | - | then { | |
154 | - | let N = j(w(x, 1)) | |
155 | - | let O = j(w(x, 2)) | |
156 | - | [StringEntry(V, e), StringEntry((V + e), ae), StringEntry(af, toBase58String(m)), StringEntry(toBase58String(m), af), StringEntry(toBase58String(m), toBase58String(m)), IntegerEntry(g, (k() + 1)), ScriptTransfer(Y.caller, 1, m), ScriptTransfer(Y.caller, 1, fromBase58String(N)), ScriptTransfer(Y.caller, 1, fromBase58String(O))] | |
157 | - | } | |
158 | - | else throw("Strict value is not equal to itself.") | |
159 | - | } | |
160 | 162 | } | |
161 | 163 | ||
162 | 164 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = base58'3N2Fq3xoRamZ62SFkonL1kcSs9womjpF7KQ' | |
5 | 5 | ||
6 | 6 | let b = 0 | |
7 | 7 | ||
8 | 8 | let c = 1 | |
9 | 9 | ||
10 | 10 | let d = "BREEDING_STARTED" | |
11 | 11 | ||
12 | 12 | let e = "BREEDING_FINISHED" | |
13 | 13 | ||
14 | 14 | let f = "null" | |
15 | 15 | ||
16 | 16 | let g = "_totalBreededCount" | |
17 | 17 | ||
18 | 18 | func h (i) = valueOrElse(getInteger(this, i), 0) | |
19 | 19 | ||
20 | 20 | ||
21 | 21 | func j (i) = valueOrElse(getString(this, i), "") | |
22 | 22 | ||
23 | 23 | ||
24 | 24 | func k () = valueOrElse(getInteger(this, g), 0) | |
25 | 25 | ||
26 | 26 | ||
27 | 27 | func l (m) = { | |
28 | 28 | let n = valueOrElse(getString(Address(a), m), f) | |
29 | 29 | let o = valueOrElse(getString(this, m), f) | |
30 | 30 | if ((n != f)) | |
31 | 31 | then true | |
32 | 32 | else (o != f) | |
33 | 33 | } | |
34 | 34 | ||
35 | 35 | ||
36 | 36 | func p (m) = { | |
37 | 37 | let q = (("asset_" + m) + "_children") | |
38 | 38 | q | |
39 | 39 | } | |
40 | 40 | ||
41 | 41 | ||
42 | 42 | func r (s,t) = { | |
43 | 43 | let u = split(value(assetInfo(s)).name, "") | |
44 | 44 | let v = split(value(assetInfo(t)).name, "") | |
45 | 45 | true | |
46 | 46 | } | |
47 | 47 | ||
48 | 48 | ||
49 | 49 | func w (x,y) = ((("inittx_" + toBase58String(x)) + "_parent") + toString(y)) | |
50 | 50 | ||
51 | 51 | ||
52 | 52 | func z (A,x) = (((A + "_") + toBase58String(x)) + "_status_") | |
53 | 53 | ||
54 | 54 | ||
55 | 55 | func B (A,x) = (((A + "_") + toBase58String(x)) + "_fh") | |
56 | 56 | ||
57 | 57 | ||
58 | 58 | func C (A,x) = (((A + "_") + toBase58String(x)) + "_di") | |
59 | 59 | ||
60 | 60 | ||
61 | 61 | func D (E,x,F,G) = { | |
62 | 62 | let H = value(blockInfoByHeight((F - 1))) | |
63 | 63 | let I = sha256_16Kb((x + value(H.vrf))) | |
64 | 64 | (toInt(I, G) % E) | |
65 | 65 | } | |
66 | 66 | ||
67 | 67 | ||
68 | 68 | func J (x,K) = { | |
69 | 69 | let L = D(4, x, K, 11) | |
70 | 70 | let M = if ((L == 0)) | |
71 | 71 | then "Y" | |
72 | 72 | else if ((L == 1)) | |
73 | 73 | then "G" | |
74 | 74 | else if ((L == 2)) | |
75 | 75 | then "B" | |
76 | 76 | else "R" | |
77 | 77 | let N = fromBase58String(j(w(x, 1))) | |
78 | 78 | let O = fromBase58String(j(w(x, 2))) | |
79 | 79 | let P = split(value(assetInfo(N)).name, "") | |
80 | 80 | let Q = split(value(assetInfo(O)).name, "") | |
81 | 81 | let R = ((((("MONSTER-" + M) + "-") + P[2]) + "-") + Q[2]) | |
82 | 82 | R | |
83 | 83 | } | |
84 | 84 | ||
85 | 85 | ||
86 | 86 | func S (T) = (("stats_" + T) + "_amount") | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | func U (V) = valueOrElse(getString(this, V), "") | |
90 | 90 | ||
91 | 91 | ||
92 | 92 | func W (X) = valueOrElse(getInteger(this, X), 0) | |
93 | 93 | ||
94 | 94 | ||
95 | 95 | @Callable(Y) | |
96 | 96 | func startMonsterBreeding () = { | |
97 | 97 | let Z = value(Y.payments[0]) | |
98 | 98 | let aa = value(Y.payments[1]) | |
99 | 99 | let ab = toBase58String(value(Z.assetId)) | |
100 | 100 | let ac = toBase58String(value(aa.assetId)) | |
101 | 101 | if (if ((Z.amount != 1)) | |
102 | 102 | then true | |
103 | 103 | else (aa.amount != 1)) | |
104 | 104 | then throw("NFT is not attached") | |
105 | 105 | else if (!(if (l(ab)) | |
106 | 106 | then l(ac) | |
107 | 107 | else false)) | |
108 | 108 | then throw("You need to attach 2 valid NFT-monsters.") | |
109 | 109 | else if (if ((h(p(ab)) > b)) | |
110 | 110 | then true | |
111 | 111 | else (h(p(ac)) > b)) | |
112 | 112 | then throw("One monster can be used for breeding only once in its lifetime.") | |
113 | 113 | else { | |
114 | 114 | let ad = r(fromBase58String(ab), fromBase58String(ac)) | |
115 | 115 | if (!(ad)) | |
116 | 116 | then throw("These monsters cannot be breeded") | |
117 | 117 | else [IntegerEntry(p(ab), 1), IntegerEntry(p(ac), 1), StringEntry(w(Y.transactionId, 1), ab), StringEntry(w(Y.transactionId, 2), ac), StringEntry(z(toString(Y.caller), Y.transactionId), d), StringEntry((z(toString(Y.caller), Y.transactionId) + d), toBase58String(Y.transactionId)), IntegerEntry(B(toString(Y.caller), Y.transactionId), (height + c))] | |
118 | 118 | } | |
119 | 119 | } | |
120 | 120 | ||
121 | 121 | ||
122 | 122 | ||
123 | 123 | @Callable(Y) | |
124 | 124 | func finishMonsterBreeding (ae) = { | |
125 | 125 | let x = fromBase58String(ae) | |
126 | 126 | let V = z(toString(Y.caller), x) | |
127 | 127 | let X = B(toString(Y.caller), x) | |
128 | 128 | let af = C(toString(Y.caller), x) | |
129 | 129 | let ag = U(V) | |
130 | 130 | let ah = W(X) | |
131 | 131 | if ((ag == e)) | |
132 | 132 | then { | |
133 | 133 | let ai = getStringValue(this, C(toString(Y.caller), x)) | |
134 | 134 | throw(("The monster was breeded and claimed already, here is the folowing: " + ai)) | |
135 | 135 | } | |
136 | - | else if ((ah > height)) | |
137 | - | then throw((((("Breeding is not finished yet " + toString((ah - height))) + " blocks remaining, it will take around ") + toString((ah - height))) + " minutes")) | |
138 | - | else { | |
139 | - | let aj = J(x, ah) | |
140 | - | let ak = (("{\"genotype\": \"" + aj) + "\", \"crossbreeding\": true}") | |
141 | - | let al = (("https://ipfs.io/ipfs/bafybeidwsupz24ozr244breub5obhl5dxh22xr3wu7xumm4mlf7tgmocvi/" + aj) + ".png") | |
142 | - | let am = "artefacts" | |
143 | - | let m = { | |
144 | - | let an = invoke(Address(a), "createNFT", [aj, ak, al, am], nil) | |
145 | - | if ($isInstanceOf(an, "String")) | |
136 | + | else if ((ag == "")) | |
137 | + | then throw("You havent monsters to claim") | |
138 | + | else if ((ah > height)) | |
139 | + | then throw((((("Breeding is not finished yet " + toString((ah - height))) + " blocks remaining, it will take around ") + toString((ah - height))) + " minutes")) | |
140 | + | else { | |
141 | + | let aj = J(x, ah) | |
142 | + | let ak = (("{\"genotype\": \"" + aj) + "\", \"crossbreeding\": true}") | |
143 | + | let al = (("https://ipfs.io/ipfs/bafybeidwsupz24ozr244breub5obhl5dxh22xr3wu7xumm4mlf7tgmocvi/" + aj) + ".png") | |
144 | + | let am = "artefacts" | |
145 | + | let m = { | |
146 | + | let an = invoke(Address(a), "createNFT", [aj, ak, al, am], nil) | |
147 | + | if ($isInstanceOf(an, "String")) | |
148 | + | then { | |
149 | + | let ao = an | |
150 | + | fromBase58String(ao) | |
151 | + | } | |
152 | + | else throw("something went wrong during the creation of NFT") | |
153 | + | } | |
154 | + | if ((m == m)) | |
146 | 155 | then { | |
147 | - | let ao = an | |
148 | - | fromBase58String(ao) | |
156 | + | let N = j(w(x, 1)) | |
157 | + | let O = j(w(x, 2)) | |
158 | + | [StringEntry(V, e), DeleteEntry((z(toString(Y.caller), Y.transactionId) + d)), StringEntry((V + e), ae), StringEntry(af, toBase58String(m)), StringEntry(toBase58String(m), af), StringEntry(toBase58String(m), toBase58String(m)), IntegerEntry(g, (k() + 1)), ScriptTransfer(Y.caller, 1, m), ScriptTransfer(Y.caller, 1, fromBase58String(N)), ScriptTransfer(Y.caller, 1, fromBase58String(O))] | |
149 | 159 | } | |
150 | - | else throw(" | |
160 | + | else throw("Strict value is not equal to itself.") | |
151 | 161 | } | |
152 | - | if ((m == m)) | |
153 | - | then { | |
154 | - | let N = j(w(x, 1)) | |
155 | - | let O = j(w(x, 2)) | |
156 | - | [StringEntry(V, e), StringEntry((V + e), ae), StringEntry(af, toBase58String(m)), StringEntry(toBase58String(m), af), StringEntry(toBase58String(m), toBase58String(m)), IntegerEntry(g, (k() + 1)), ScriptTransfer(Y.caller, 1, m), ScriptTransfer(Y.caller, 1, fromBase58String(N)), ScriptTransfer(Y.caller, 1, fromBase58String(O))] | |
157 | - | } | |
158 | - | else throw("Strict value is not equal to itself.") | |
159 | - | } | |
160 | 162 | } | |
161 | 163 | ||
162 | 164 | ||
163 | 165 | ||
164 | 166 | @Callable(Y) | |
165 | 167 | func issueNFTs (ap,ak) = if ((Y.caller.bytes != this.bytes)) | |
166 | 168 | then throw("Only Owner Has Permission") | |
167 | 169 | else { | |
168 | 170 | let al = "https://ipfs.io/ipfs/bafybeidwsupz24ozr244breub5obhl5dxh22xr3wu7xumm4mlf7tgmocvi/display.png" | |
169 | 171 | let am = "artefacts" | |
170 | 172 | let m = { | |
171 | 173 | let an = invoke(Address(a), "createNFT", [ap, ak, al, am], nil) | |
172 | 174 | if ($isInstanceOf(an, "String")) | |
173 | 175 | then { | |
174 | 176 | let ao = an | |
175 | 177 | fromBase58String(ao) | |
176 | 178 | } | |
177 | 179 | else throw("something went wrong during the creation of NFT") | |
178 | 180 | } | |
179 | 181 | if ((m == m)) | |
180 | 182 | then [StringEntry(toBase58String(m), toBase58String(m)), StringEntry(toBase58String(Y.transactionId), toBase58String(m))] | |
181 | 183 | else throw("Strict value is not equal to itself.") | |
182 | 184 | } | |
183 | 185 | ||
184 | 186 |
github/deemru/w8io/169f3d6 35.64 ms ◑