tx · 5LhfzwWUGCgMW3tGbQTVcxvWdsEMuzUzEd3ZQxxNPP9Q 3MucnifgqjCVTQDsVvyBbDfUYL4NzUJme6c: -0.01400000 Waves 2022.02.04 14:15 [1908790] smart account 3MucnifgqjCVTQDsVvyBbDfUYL4NzUJme6c > SELF 0.00000000 Waves
{ "type": 13, "id": "5LhfzwWUGCgMW3tGbQTVcxvWdsEMuzUzEd3ZQxxNPP9Q", "fee": 1400000, "feeAssetId": null, "timestamp": 1643973380367, "version": 2, "chainId": 84, "sender": "3MucnifgqjCVTQDsVvyBbDfUYL4NzUJme6c", "senderPublicKey": "5VeehaC8J2hY5k7GyMevtfCSC4on8kxpPvqqQqNe5erh", "proofs": [ "4H5Srw9K6pXKKihpeaVeezctjQ9wdMNy3KLBHAA3fGDZkjonyvJgwam1GNDQCmB7VkWJWNnHqTWsyk4BiTvHvooz" ], "script": "base64:AAIFAAAAAAAAAA4IAhIAEggKBggBAQEBAQAAACQAAAAABnBhcmFtcwkBAAAAEUBleHRyTmF0aXZlKDEwNjIpAAAAAQIAAAAjM04yalphSDFqTFo1dWhLa05pazZnZUE1N0h6TUd3OThpZ1IAAAAADWtleUluaXRWMURvbmUCAAAADGluaXRfdjFfZG9uZQAAAAAKa2V5VG9rZW5JZAIAAAAHdG9rZW5JZAAAAAAba2V5SW5pdGlhbENoYXJDcmVhdGlvblN0YXRzAgAAABhpbml0aWFsQ2hhckNyZWF0aW9uU3RhdHMAAAAACXNlcGFyYXRvcgIAAAABXwAAAAAHa2V5TmFtZQIAAAAEbmFtZQAAAAAGa2V5U2V4AgAAAANzZXgAAAAAB2tleVJhbmsCAAAABHJhbmsAAAAAEGtleUhlYWx0aEN1cnJlbnQCAAAADWhlYWx0aEN1cnJlbnQAAAAADGtleUhlYWx0aE1heAIAAAAJaGVhbHRoTWF4AAAAABNrZXlNaW5IZWFsdGhQZXJSYW5rAgAAABBtaW5IZWFsdGhQZXJSYW5rAAAAABNrZXlNYXhIZWFsdGhQZXJSYW5rA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JAAGRAAAAAgUAAAAMaW5pdGlhbFN0YXRzAAAAAAAAAAAQCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQEAAAAEd2l0aAAAAAIFAAAAEWtleU1heEFxdWFQZXJSYW5rBQAAAAljaGFySWRTdHIFAAAABGFxdWEJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAQAAAAR3aXRoAAAAAgUAAAAIa2V5VGVycmEFAAAACWNoYXJJZFN0cgUAAAAFdGVycmEJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAQAAAAR3aXRoAAAAAgUAAAASa2V5TWluVGVycmFQZXJSYW5rBQAAAAljaGFySWRTdHIJAQAAAA1wYXJzZUludFZhbHVlAAAAAQkAAZEAAAACBQAAAAxpbml0aWFsU3RhdHMAAAAAAAAAABEJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAQAAAAR3aXRoAAAAAgUAAAASa2V5TWF4VGVycmFQZXJSYW5rBQAAAAljaGFySWRTdHIFAAAABXRlcnJhCQAETAAAAAIFAAAACWNoYXJJc3N1ZQkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIAAAAAAAAAAAEFAAAABmNoYXJJZAUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXlx3C1x", "height": 1908790, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5Zaa7v24V2RJdZTgxFpb4Tvp6GcdRGVZTXQbvxHYn6J4 Next: 6FWvGXepAcjVeZ6hV9FLHo1ZJnSF5ktAYfuBAKbREVg2 Diff:
Old | New | Differences | |
---|---|---|---|
77 | 77 | ||
78 | 78 | @Callable(i) | |
79 | 79 | func testRand () = { | |
80 | - | let rand = randInt( | |
81 | - | let rand2 = randInt( | |
82 | - | let rand3 = randInt( | |
83 | - | let rand4 = randInt( | |
84 | - | let rand5 = randInt( | |
85 | - | let rand6 = randInt( | |
86 | - | let rand7 = randInt( | |
87 | - | let rand8 = randInt( | |
80 | + | let rand = randInt(10, 20, i.transactionId, 0) | |
81 | + | let rand2 = randInt(10, 20, i.transactionId, 1) | |
82 | + | let rand3 = randInt(10, 20, i.transactionId, 2) | |
83 | + | let rand4 = randInt(10, 20, i.transactionId, 3) | |
84 | + | let rand5 = randInt(10, 20, i.transactionId, 4) | |
85 | + | let rand6 = randInt(10, 20, i.transactionId, 5) | |
86 | + | let rand7 = randInt(10, 20, i.transactionId, 6) | |
87 | + | let rand8 = randInt(10, 20, i.transactionId, 7) | |
88 | 88 | [IntegerEntry("testRand", rand), IntegerEntry("testRand2", rand2), IntegerEntry("testRand3", rand3), IntegerEntry("testRand4", rand4), IntegerEntry("testRand5", rand5), IntegerEntry("testRand6", rand6), IntegerEntry("testRand7", rand7), IntegerEntry("testRand8", rand8)] | |
89 | 89 | } | |
90 | 90 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let params = addressFromStringValue("3N2jZaH1jLZ5uhKkNik6geA57HzMGw98igR") | |
5 | 5 | ||
6 | 6 | let keyInitV1Done = "init_v1_done" | |
7 | 7 | ||
8 | 8 | let keyTokenId = "tokenId" | |
9 | 9 | ||
10 | 10 | let keyInitialCharCreationStats = "initialCharCreationStats" | |
11 | 11 | ||
12 | 12 | let separator = "_" | |
13 | 13 | ||
14 | 14 | let keyName = "name" | |
15 | 15 | ||
16 | 16 | let keySex = "sex" | |
17 | 17 | ||
18 | 18 | let keyRank = "rank" | |
19 | 19 | ||
20 | 20 | let keyHealthCurrent = "healthCurrent" | |
21 | 21 | ||
22 | 22 | let keyHealthMax = "healthMax" | |
23 | 23 | ||
24 | 24 | let keyMinHealthPerRank = "minHealthPerRank" | |
25 | 25 | ||
26 | 26 | let keyMaxHealthPerRank = "maxHealthPerRank" | |
27 | 27 | ||
28 | 28 | let keyHealthRegen = "healthRegen" | |
29 | 29 | ||
30 | 30 | let keyMinHealthRegenPerRank = "minHealthRegenPerRank" | |
31 | 31 | ||
32 | 32 | let keyMaxHealthRegenPerRank = "maxHealthRegenPerRank" | |
33 | 33 | ||
34 | 34 | let keyManaCurrent = "manaCurrent" | |
35 | 35 | ||
36 | 36 | let keyManaMax = "manaMax" | |
37 | 37 | ||
38 | 38 | let keyMinManaPerRank = "minManaPerRank" | |
39 | 39 | ||
40 | 40 | let keyMaxManaPerRank = "maxManaPerRank" | |
41 | 41 | ||
42 | 42 | let keyManaRegen = "manaRegen" | |
43 | 43 | ||
44 | 44 | let keyMinManaRegenPerRank = "minManaRegenPerRank" | |
45 | 45 | ||
46 | 46 | let keyMaxManaRegenPerRank = "maxManaRegenPerRank" | |
47 | 47 | ||
48 | 48 | let keyPyro = "pyro" | |
49 | 49 | ||
50 | 50 | let keyMinPyroPerRank = "minPyroPerRank" | |
51 | 51 | ||
52 | 52 | let keyMaxPyroPerRank = "maxPyroPerRank" | |
53 | 53 | ||
54 | 54 | let keyAero = "aero" | |
55 | 55 | ||
56 | 56 | let keyMinAeroPerRank = "minAeroPerRank" | |
57 | 57 | ||
58 | 58 | let keyMaxAeroPerRank = "maxAeroPerRank" | |
59 | 59 | ||
60 | 60 | let keyAqua = "aqua" | |
61 | 61 | ||
62 | 62 | let keyMinAquaPerRank = "minAquaPerRank" | |
63 | 63 | ||
64 | 64 | let keyMaxAquaPerRank = "maxAquaPerRank" | |
65 | 65 | ||
66 | 66 | let keyTerra = "terra" | |
67 | 67 | ||
68 | 68 | let keyMinTerraPerRank = "minTerraPerRank" | |
69 | 69 | ||
70 | 70 | let keyMaxTerraPerRank = "maxTerraPerRank" | |
71 | 71 | ||
72 | 72 | func with (str1,str2) = ((str1 + separator) + str2) | |
73 | 73 | ||
74 | 74 | ||
75 | 75 | func randInt (min,max,txId,nonce) = ((toInt(sha256_16Kb((value(value(blockInfoByHeight(height)).vrf) + txId)), nonce) % ((max - min) + 1)) + min) | |
76 | 76 | ||
77 | 77 | ||
78 | 78 | @Callable(i) | |
79 | 79 | func testRand () = { | |
80 | - | let rand = randInt( | |
81 | - | let rand2 = randInt( | |
82 | - | let rand3 = randInt( | |
83 | - | let rand4 = randInt( | |
84 | - | let rand5 = randInt( | |
85 | - | let rand6 = randInt( | |
86 | - | let rand7 = randInt( | |
87 | - | let rand8 = randInt( | |
80 | + | let rand = randInt(10, 20, i.transactionId, 0) | |
81 | + | let rand2 = randInt(10, 20, i.transactionId, 1) | |
82 | + | let rand3 = randInt(10, 20, i.transactionId, 2) | |
83 | + | let rand4 = randInt(10, 20, i.transactionId, 3) | |
84 | + | let rand5 = randInt(10, 20, i.transactionId, 4) | |
85 | + | let rand6 = randInt(10, 20, i.transactionId, 5) | |
86 | + | let rand7 = randInt(10, 20, i.transactionId, 6) | |
87 | + | let rand8 = randInt(10, 20, i.transactionId, 7) | |
88 | 88 | [IntegerEntry("testRand", rand), IntegerEntry("testRand2", rand2), IntegerEntry("testRand3", rand3), IntegerEntry("testRand4", rand4), IntegerEntry("testRand5", rand5), IntegerEntry("testRand6", rand6), IntegerEntry("testRand7", rand7), IntegerEntry("testRand8", rand8)] | |
89 | 89 | } | |
90 | 90 | ||
91 | 91 | ||
92 | 92 | ||
93 | 93 | @Callable(i) | |
94 | 94 | func create (name,sex,pyro,aero,aqua,terra) = { | |
95 | 95 | let initialStats = split(getStringValue(params, keyInitialCharCreationStats), separator) | |
96 | 96 | let nameSize = size(name) | |
97 | 97 | if (if ((parseIntValue(initialStats[0]) > nameSize)) | |
98 | 98 | then true | |
99 | 99 | else (nameSize > parseIntValue(initialStats[1]))) | |
100 | 100 | then throw("Char name size not valid") | |
101 | 101 | else if (if (contains(name, " ")) | |
102 | 102 | then true | |
103 | 103 | else contains(name, separator)) | |
104 | 104 | then throw((("Whitespaces or " + separator) + " not allowed")) | |
105 | 105 | else if (if ((sex != 1)) | |
106 | 106 | then (sex != 2) | |
107 | 107 | else false) | |
108 | 108 | then throw("Somethings wrong with char sex") | |
109 | 109 | else if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (((((pyro + aero) + aqua) + terra) != 14)) | |
110 | 110 | then true | |
111 | 111 | else (2 > pyro)) | |
112 | 112 | then true | |
113 | 113 | else (pyro > 5)) | |
114 | 114 | then true | |
115 | 115 | else (2 > aero)) | |
116 | 116 | then true | |
117 | 117 | else (aero > 5)) | |
118 | 118 | then true | |
119 | 119 | else (2 > aqua)) | |
120 | 120 | then true | |
121 | 121 | else (aqua > 5)) | |
122 | 122 | then true | |
123 | 123 | else (2 > terra)) | |
124 | 124 | then true | |
125 | 125 | else (terra > 5)) | |
126 | 126 | then true | |
127 | 127 | else (pyro == aero)) | |
128 | 128 | then true | |
129 | 129 | else (pyro == aqua)) | |
130 | 130 | then true | |
131 | 131 | else (pyro == terra)) | |
132 | 132 | then true | |
133 | 133 | else (aero == aqua)) | |
134 | 134 | then true | |
135 | 135 | else (aero == terra)) | |
136 | 136 | then true | |
137 | 137 | else (aqua == terra)) | |
138 | 138 | then throw("Elem spec issue") | |
139 | 139 | else { | |
140 | 140 | let charIssue = Issue(name, "", 1, 0, false, unit, 0) | |
141 | 141 | let charId = calculateAssetId(charIssue) | |
142 | 142 | let charIdStr = toBase58String(charId) | |
143 | 143 | [StringEntry(with(keyName, charIdStr), name), IntegerEntry(with(keySex, charIdStr), sex), IntegerEntry(with(keyRank, charIdStr), 1), IntegerEntry(with(keyHealthCurrent, charIdStr), parseIntValue(initialStats[2])), IntegerEntry(with(keyHealthMax, charIdStr), parseIntValue(initialStats[2])), IntegerEntry(with(keyMinHealthPerRank, charIdStr), parseIntValue(initialStats[3])), IntegerEntry(with(keyMaxHealthPerRank, charIdStr), parseIntValue(initialStats[4])), IntegerEntry(with(keyHealthRegen, charIdStr), parseIntValue(initialStats[5])), IntegerEntry(with(keyMinHealthRegenPerRank, charIdStr), parseIntValue(initialStats[6])), IntegerEntry(with(keyMaxHealthRegenPerRank, charIdStr), parseIntValue(initialStats[7])), IntegerEntry(with(keyManaCurrent, charIdStr), parseIntValue(initialStats[8])), IntegerEntry(with(keyManaMax, charIdStr), parseIntValue(initialStats[8])), IntegerEntry(with(keyMinManaPerRank, charIdStr), parseIntValue(initialStats[9])), IntegerEntry(with(keyMaxManaPerRank, charIdStr), parseIntValue(initialStats[10])), IntegerEntry(with(keyManaRegen, charIdStr), parseIntValue(initialStats[11])), IntegerEntry(with(keyMinManaRegenPerRank, charIdStr), parseIntValue(initialStats[12])), IntegerEntry(with(keyMaxManaRegenPerRank, charIdStr), parseIntValue(initialStats[13])), IntegerEntry(with(keyPyro, charIdStr), pyro), IntegerEntry(with(keyMinPyroPerRank, charIdStr), parseIntValue(initialStats[14])), IntegerEntry(with(keyMaxPyroPerRank, charIdStr), pyro), IntegerEntry(with(keyAero, charIdStr), aero), IntegerEntry(with(keyMinAeroPerRank, charIdStr), parseIntValue(initialStats[15])), IntegerEntry(with(keyMaxAeroPerRank, charIdStr), aero), IntegerEntry(with(keyAqua, charIdStr), aqua), IntegerEntry(with(keyMinAquaPerRank, charIdStr), parseIntValue(initialStats[16])), IntegerEntry(with(keyMaxAquaPerRank, charIdStr), aqua), IntegerEntry(with(keyTerra, charIdStr), terra), IntegerEntry(with(keyMinTerraPerRank, charIdStr), parseIntValue(initialStats[17])), IntegerEntry(with(keyMaxTerraPerRank, charIdStr), terra), charIssue, ScriptTransfer(i.caller, 1, charId)] | |
144 | 144 | } | |
145 | 145 | } | |
146 | 146 | ||
147 | 147 | ||
148 | 148 | @Verifier(tx) | |
149 | 149 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
150 | 150 |
github/deemru/w8io/169f3d6 63.36 ms ◑