tx · 8fY3U4PxoLoqrroMGTdBH1AsNyHh46iSPkuWz7cF2wQT 3MucnifgqjCVTQDsVvyBbDfUYL4NzUJme6c: -0.01400000 Waves 2022.02.04 14:02 [1908777] smart account 3MucnifgqjCVTQDsVvyBbDfUYL4NzUJme6c > SELF 0.00000000 Waves
{ "type": 13, "id": "8fY3U4PxoLoqrroMGTdBH1AsNyHh46iSPkuWz7cF2wQT", "fee": 1400000, "feeAssetId": null, "timestamp": 1643972652604, "version": 2, "chainId": 84, "sender": "3MucnifgqjCVTQDsVvyBbDfUYL4NzUJme6c", "senderPublicKey": "5VeehaC8J2hY5k7GyMevtfCSC4on8kxpPvqqQqNe5erh", "proofs": [ "3wWu7xsJhgk8cQdALo9NQ4xNTzvuLEarT7D8CaGwtaA5UXri4zcpXD2EEwcsxqQi3iANuYkR7YbqGtR932v7t4Qo" ], "script": "base64:AAIFAAAAAAAAAA4IAhIAEggKBggBAQEBAQAAACQAAAAABnBhcmFtcwkBAAAAEUBleHRyTmF0aXZlKDEwNjIpAAAAAQIAAAAjM04yalphSDFqTFo1dWhLa05pazZnZUE1N0h6TUd3OThpZ1IAAAAADWtleUluaXRWMURvbmUCAAAADGluaXRfdjFfZG9uZQAAAAAKa2V5VG9rZW5JZAIAAAAHdG9rZW5JZAAAAAAba2V5SW5pdGlhbENoYXJDcmVhdGlvblN0YXRzAgAAABhpbml0aWFsQ2hhckNyZWF0aW9uU3RhdHMAAAAACXNlcGFyYXRvcgIAAAABXwAAAAAHa2V5TmFtZQIAAAAEbmFtZQAAAAAGa2V5U2V4AgAAAANzZXgAAAAAB2tleVJhbmsCAAAABHJhbmsAAAAAEGtleUhlYWx0aEN1cnJlbnQCAAAADWhlYWx0aEN1cnJlbnQAAAAADGtleUhlYWx0aE1heAIAAAAJaGVhbHRoTWF4AAAAABNrZXlNaW5IZWFsdGhQZXJSYW5rAgAAABBtaW5IZWFsdGhQZXJSYW5rAAAAABNrZXlNYXhIZWFsdGhQZXJSYW5rAgAAABBtY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2VyRW50cnkAAAACCQEAAAAEd2l0aAAAAAIFAAAACGtleVRlcnJhBQAAAAljaGFySWRTdHIFAAAABXRlcnJhCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQEAAAAEd2l0aAAAAAIFAAAAEmtleU1pblRlcnJhUGVyUmFuawUAAAAJY2hhcklkU3RyCQEAAAANcGFyc2VJbnRWYWx1ZQAAAAEJAAGRAAAAAgUAAAAMaW5pdGlhbFN0YXRzAAAAAAAAAAARCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQEAAAAEd2l0aAAAAAIFAAAAEmtleU1heFRlcnJhUGVyUmFuawUAAAAJY2hhcklkU3RyBQAAAAV0ZXJyYQkABEwAAAACBQAAAAljaGFySXNzdWUJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyAAAAAAAAAAABBQAAAAZjaGFySWQFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5zLneeA==", "height": 1908777, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Zqv9AQM9HfxAzK254JMMKKUoQDmyDZRouZHFUdyXfZY Next: 6doU2TaYYFtraANVnmJ7Enj7kESUSa95mmgCxNunVgvR Diff:
Old | New | Differences | |
---|---|---|---|
77 | 77 | ||
78 | 78 | @Callable(P) | |
79 | 79 | func testRand () = { | |
80 | - | let Q = L(100, P.transactionId, 0) | |
81 | - | [IntegerEntry("testRand", Q)] | |
80 | + | let Q = L(1, P.transactionId, 0) | |
81 | + | let R = L(1, P.transactionId, 1) | |
82 | + | let S = L(1, P.transactionId, 2) | |
83 | + | let T = L(1, P.transactionId, 3) | |
84 | + | let U = L(1, P.transactionId, 4) | |
85 | + | let V = L(1, P.transactionId, 5) | |
86 | + | let W = L(1, P.transactionId, 6) | |
87 | + | let X = L(1, P.transactionId, 7) | |
88 | + | [IntegerEntry("testRand", Q), IntegerEntry("testRand2", R), IntegerEntry("testRand3", S), IntegerEntry("testRand4", T), IntegerEntry("testRand5", U), IntegerEntry("testRand6", V), IntegerEntry("testRand7", W), IntegerEntry("testRand8", X)] | |
82 | 89 | } | |
83 | 90 | ||
84 | 91 | ||
85 | 92 | ||
86 | 93 | @Callable(P) | |
87 | - | func create ( | |
88 | - | let | |
89 | - | let | |
90 | - | if (if ((parseIntValue( | |
94 | + | func create (Y,Z,aa,ab,ac,ad) = { | |
95 | + | let ae = split(getStringValue(a, d), e) | |
96 | + | let af = size(Y) | |
97 | + | if (if ((parseIntValue(ae[0]) > af)) | |
91 | 98 | then true | |
92 | - | else ( | |
99 | + | else (af > parseIntValue(ae[1]))) | |
93 | 100 | then throw("Char name size not valid") | |
94 | - | else if (if (contains( | |
101 | + | else if (if (contains(Y, " ")) | |
95 | 102 | then true | |
96 | - | else contains( | |
103 | + | else contains(Y, e)) | |
97 | 104 | then throw((("Whitespaces or " + e) + " not allowed")) | |
98 | - | else if (if (( | |
99 | - | then ( | |
105 | + | else if (if ((Z != 1)) | |
106 | + | then (Z != 2) | |
100 | 107 | else false) | |
101 | 108 | then throw("Somethings wrong with char sex") | |
102 | - | else if (if (if (if (if (if (if (if (if (if (if (if (if (if (if ((((( | |
109 | + | else if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (((((aa + ab) + ac) + ad) != 14)) | |
103 | 110 | then true | |
104 | - | else (2 > | |
111 | + | else (2 > aa)) | |
105 | 112 | then true | |
106 | - | else ( | |
113 | + | else (aa > 5)) | |
107 | 114 | then true | |
108 | - | else (2 > | |
115 | + | else (2 > ab)) | |
109 | 116 | then true | |
110 | - | else ( | |
117 | + | else (ab > 5)) | |
111 | 118 | then true | |
112 | - | else (2 > | |
119 | + | else (2 > ac)) | |
113 | 120 | then true | |
114 | - | else ( | |
121 | + | else (ac > 5)) | |
115 | 122 | then true | |
116 | - | else (2 > | |
123 | + | else (2 > ad)) | |
117 | 124 | then true | |
118 | - | else ( | |
125 | + | else (ad > 5)) | |
119 | 126 | then true | |
120 | - | else ( | |
127 | + | else (aa == ab)) | |
121 | 128 | then true | |
122 | - | else ( | |
129 | + | else (aa == ac)) | |
123 | 130 | then true | |
124 | - | else ( | |
131 | + | else (aa == ad)) | |
125 | 132 | then true | |
126 | - | else ( | |
133 | + | else (ab == ac)) | |
127 | 134 | then true | |
128 | - | else ( | |
135 | + | else (ab == ad)) | |
129 | 136 | then true | |
130 | - | else ( | |
137 | + | else (ac == ad)) | |
131 | 138 | then throw("Elem spec issue") | |
132 | 139 | else { | |
133 | - | let | |
134 | - | let | |
135 | - | let | |
136 | - | [StringEntry(I(f, | |
140 | + | let ag = Issue(Y, "", 1, 0, false, unit, 0) | |
141 | + | let ah = calculateAssetId(ag) | |
142 | + | let ai = toBase58String(ah) | |
143 | + | [StringEntry(I(f, ai), Y), IntegerEntry(I(g, ai), Z), IntegerEntry(I(h, ai), 1), IntegerEntry(I(i, ai), parseIntValue(ae[2])), IntegerEntry(I(j, ai), parseIntValue(ae[2])), IntegerEntry(I(k, ai), parseIntValue(ae[3])), IntegerEntry(I(l, ai), parseIntValue(ae[4])), IntegerEntry(I(m, ai), parseIntValue(ae[5])), IntegerEntry(I(n, ai), parseIntValue(ae[6])), IntegerEntry(I(o, ai), parseIntValue(ae[7])), IntegerEntry(I(p, ai), parseIntValue(ae[8])), IntegerEntry(I(q, ai), parseIntValue(ae[8])), IntegerEntry(I(r, ai), parseIntValue(ae[9])), IntegerEntry(I(s, ai), parseIntValue(ae[10])), IntegerEntry(I(t, ai), parseIntValue(ae[11])), IntegerEntry(I(u, ai), parseIntValue(ae[12])), IntegerEntry(I(v, ai), parseIntValue(ae[13])), IntegerEntry(I(w, ai), aa), IntegerEntry(I(x, ai), parseIntValue(ae[14])), IntegerEntry(I(y, ai), aa), IntegerEntry(I(z, ai), ab), IntegerEntry(I(A, ai), parseIntValue(ae[15])), IntegerEntry(I(B, ai), ab), IntegerEntry(I(C, ai), ac), IntegerEntry(I(D, ai), parseIntValue(ae[16])), IntegerEntry(I(E, ai), ac), IntegerEntry(I(F, ai), ad), IntegerEntry(I(G, ai), parseIntValue(ae[17])), IntegerEntry(I(H, ai), ad), ag, ScriptTransfer(P.caller, 1, ah)] | |
137 | 144 | } | |
138 | 145 | } | |
139 | 146 | ||
140 | 147 | ||
141 | - | @Verifier( | |
142 | - | func | |
148 | + | @Verifier(aj) | |
149 | + | func ak () = sigVerify(aj.bodyBytes, aj.proofs[0], aj.senderPublicKey) | |
143 | 150 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = addressFromStringValue("3N2jZaH1jLZ5uhKkNik6geA57HzMGw98igR") | |
5 | 5 | ||
6 | 6 | let b = "init_v1_done" | |
7 | 7 | ||
8 | 8 | let c = "tokenId" | |
9 | 9 | ||
10 | 10 | let d = "initialCharCreationStats" | |
11 | 11 | ||
12 | 12 | let e = "_" | |
13 | 13 | ||
14 | 14 | let f = "name" | |
15 | 15 | ||
16 | 16 | let g = "sex" | |
17 | 17 | ||
18 | 18 | let h = "rank" | |
19 | 19 | ||
20 | 20 | let i = "healthCurrent" | |
21 | 21 | ||
22 | 22 | let j = "healthMax" | |
23 | 23 | ||
24 | 24 | let k = "minHealthPerRank" | |
25 | 25 | ||
26 | 26 | let l = "maxHealthPerRank" | |
27 | 27 | ||
28 | 28 | let m = "healthRegen" | |
29 | 29 | ||
30 | 30 | let n = "minHealthRegenPerRank" | |
31 | 31 | ||
32 | 32 | let o = "maxHealthRegenPerRank" | |
33 | 33 | ||
34 | 34 | let p = "manaCurrent" | |
35 | 35 | ||
36 | 36 | let q = "manaMax" | |
37 | 37 | ||
38 | 38 | let r = "minManaPerRank" | |
39 | 39 | ||
40 | 40 | let s = "maxManaPerRank" | |
41 | 41 | ||
42 | 42 | let t = "manaRegen" | |
43 | 43 | ||
44 | 44 | let u = "minManaRegenPerRank" | |
45 | 45 | ||
46 | 46 | let v = "maxManaRegenPerRank" | |
47 | 47 | ||
48 | 48 | let w = "pyro" | |
49 | 49 | ||
50 | 50 | let x = "minPyroPerRank" | |
51 | 51 | ||
52 | 52 | let y = "maxPyroPerRank" | |
53 | 53 | ||
54 | 54 | let z = "aero" | |
55 | 55 | ||
56 | 56 | let A = "minAeroPerRank" | |
57 | 57 | ||
58 | 58 | let B = "maxAeroPerRank" | |
59 | 59 | ||
60 | 60 | let C = "aqua" | |
61 | 61 | ||
62 | 62 | let D = "minAquaPerRank" | |
63 | 63 | ||
64 | 64 | let E = "maxAquaPerRank" | |
65 | 65 | ||
66 | 66 | let F = "terra" | |
67 | 67 | ||
68 | 68 | let G = "minTerraPerRank" | |
69 | 69 | ||
70 | 70 | let H = "maxTerraPerRank" | |
71 | 71 | ||
72 | 72 | func I (J,K) = ((J + e) + K) | |
73 | 73 | ||
74 | 74 | ||
75 | 75 | func L (M,N,O) = (toInt(sha256_16Kb((value(value(blockInfoByHeight(height)).vrf) + N)), O) % M) | |
76 | 76 | ||
77 | 77 | ||
78 | 78 | @Callable(P) | |
79 | 79 | func testRand () = { | |
80 | - | let Q = L(100, P.transactionId, 0) | |
81 | - | [IntegerEntry("testRand", Q)] | |
80 | + | let Q = L(1, P.transactionId, 0) | |
81 | + | let R = L(1, P.transactionId, 1) | |
82 | + | let S = L(1, P.transactionId, 2) | |
83 | + | let T = L(1, P.transactionId, 3) | |
84 | + | let U = L(1, P.transactionId, 4) | |
85 | + | let V = L(1, P.transactionId, 5) | |
86 | + | let W = L(1, P.transactionId, 6) | |
87 | + | let X = L(1, P.transactionId, 7) | |
88 | + | [IntegerEntry("testRand", Q), IntegerEntry("testRand2", R), IntegerEntry("testRand3", S), IntegerEntry("testRand4", T), IntegerEntry("testRand5", U), IntegerEntry("testRand6", V), IntegerEntry("testRand7", W), IntegerEntry("testRand8", X)] | |
82 | 89 | } | |
83 | 90 | ||
84 | 91 | ||
85 | 92 | ||
86 | 93 | @Callable(P) | |
87 | - | func create ( | |
88 | - | let | |
89 | - | let | |
90 | - | if (if ((parseIntValue( | |
94 | + | func create (Y,Z,aa,ab,ac,ad) = { | |
95 | + | let ae = split(getStringValue(a, d), e) | |
96 | + | let af = size(Y) | |
97 | + | if (if ((parseIntValue(ae[0]) > af)) | |
91 | 98 | then true | |
92 | - | else ( | |
99 | + | else (af > parseIntValue(ae[1]))) | |
93 | 100 | then throw("Char name size not valid") | |
94 | - | else if (if (contains( | |
101 | + | else if (if (contains(Y, " ")) | |
95 | 102 | then true | |
96 | - | else contains( | |
103 | + | else contains(Y, e)) | |
97 | 104 | then throw((("Whitespaces or " + e) + " not allowed")) | |
98 | - | else if (if (( | |
99 | - | then ( | |
105 | + | else if (if ((Z != 1)) | |
106 | + | then (Z != 2) | |
100 | 107 | else false) | |
101 | 108 | then throw("Somethings wrong with char sex") | |
102 | - | else if (if (if (if (if (if (if (if (if (if (if (if (if (if (if ((((( | |
109 | + | else if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (((((aa + ab) + ac) + ad) != 14)) | |
103 | 110 | then true | |
104 | - | else (2 > | |
111 | + | else (2 > aa)) | |
105 | 112 | then true | |
106 | - | else ( | |
113 | + | else (aa > 5)) | |
107 | 114 | then true | |
108 | - | else (2 > | |
115 | + | else (2 > ab)) | |
109 | 116 | then true | |
110 | - | else ( | |
117 | + | else (ab > 5)) | |
111 | 118 | then true | |
112 | - | else (2 > | |
119 | + | else (2 > ac)) | |
113 | 120 | then true | |
114 | - | else ( | |
121 | + | else (ac > 5)) | |
115 | 122 | then true | |
116 | - | else (2 > | |
123 | + | else (2 > ad)) | |
117 | 124 | then true | |
118 | - | else ( | |
125 | + | else (ad > 5)) | |
119 | 126 | then true | |
120 | - | else ( | |
127 | + | else (aa == ab)) | |
121 | 128 | then true | |
122 | - | else ( | |
129 | + | else (aa == ac)) | |
123 | 130 | then true | |
124 | - | else ( | |
131 | + | else (aa == ad)) | |
125 | 132 | then true | |
126 | - | else ( | |
133 | + | else (ab == ac)) | |
127 | 134 | then true | |
128 | - | else ( | |
135 | + | else (ab == ad)) | |
129 | 136 | then true | |
130 | - | else ( | |
137 | + | else (ac == ad)) | |
131 | 138 | then throw("Elem spec issue") | |
132 | 139 | else { | |
133 | - | let | |
134 | - | let | |
135 | - | let | |
136 | - | [StringEntry(I(f, | |
140 | + | let ag = Issue(Y, "", 1, 0, false, unit, 0) | |
141 | + | let ah = calculateAssetId(ag) | |
142 | + | let ai = toBase58String(ah) | |
143 | + | [StringEntry(I(f, ai), Y), IntegerEntry(I(g, ai), Z), IntegerEntry(I(h, ai), 1), IntegerEntry(I(i, ai), parseIntValue(ae[2])), IntegerEntry(I(j, ai), parseIntValue(ae[2])), IntegerEntry(I(k, ai), parseIntValue(ae[3])), IntegerEntry(I(l, ai), parseIntValue(ae[4])), IntegerEntry(I(m, ai), parseIntValue(ae[5])), IntegerEntry(I(n, ai), parseIntValue(ae[6])), IntegerEntry(I(o, ai), parseIntValue(ae[7])), IntegerEntry(I(p, ai), parseIntValue(ae[8])), IntegerEntry(I(q, ai), parseIntValue(ae[8])), IntegerEntry(I(r, ai), parseIntValue(ae[9])), IntegerEntry(I(s, ai), parseIntValue(ae[10])), IntegerEntry(I(t, ai), parseIntValue(ae[11])), IntegerEntry(I(u, ai), parseIntValue(ae[12])), IntegerEntry(I(v, ai), parseIntValue(ae[13])), IntegerEntry(I(w, ai), aa), IntegerEntry(I(x, ai), parseIntValue(ae[14])), IntegerEntry(I(y, ai), aa), IntegerEntry(I(z, ai), ab), IntegerEntry(I(A, ai), parseIntValue(ae[15])), IntegerEntry(I(B, ai), ab), IntegerEntry(I(C, ai), ac), IntegerEntry(I(D, ai), parseIntValue(ae[16])), IntegerEntry(I(E, ai), ac), IntegerEntry(I(F, ai), ad), IntegerEntry(I(G, ai), parseIntValue(ae[17])), IntegerEntry(I(H, ai), ad), ag, ScriptTransfer(P.caller, 1, ah)] | |
137 | 144 | } | |
138 | 145 | } | |
139 | 146 | ||
140 | 147 | ||
141 | - | @Verifier( | |
142 | - | func | |
148 | + | @Verifier(aj) | |
149 | + | func ak () = sigVerify(aj.bodyBytes, aj.proofs[0], aj.senderPublicKey) | |
143 | 150 |
github/deemru/w8io/169f3d6 117.51 ms ◑