tx · Huj8U4pda59oypqYfpm2Yck5SPxp7XYZvSQuN1XEpwwS

3N7eEzkCtBoWaNRe4ZuTPrChbnjBLKDb9Bx:  -0.01000000 Waves

2023.05.28 14:44 [2597774] smart account 3N7eEzkCtBoWaNRe4ZuTPrChbnjBLKDb9Bx > SELF 0.00000000 Waves

{ "type": 13, "id": "Huj8U4pda59oypqYfpm2Yck5SPxp7XYZvSQuN1XEpwwS", "fee": 1000000, "feeAssetId": null, "timestamp": 1685274276948, "version": 2, "chainId": 84, "sender": "3N7eEzkCtBoWaNRe4ZuTPrChbnjBLKDb9Bx", "senderPublicKey": "2NK7BrUZMvnHzAoHnJfz3FuDBP5zYUNoxshB49AH2kbc", "proofs": [ "5LxF3fdZzoGhsyq5ghtAdwEZrnbX3QmNajDue2JDP17VCFXsQy6P6o6eDifaLQqpN4tx9vwtJuLjH5tHyTu31cJf" ], "script": "base64:BgIJCAISABIDCgEBAAIBaQENdG9rZW5Jc3N1YW5jZQAEBG5hbWUCCkJlYnJhVG9rZW4EDmxlbmRlc2NyaXB0aW9uAg9CZWJyYSBieSBLcmluZ2UECHF1YW50aXR5AICt4gQECGRlY2ltYWxzAAAEDGlzUmVpc3N1YWJsZQYECmFzc2V0QmVicmEJAMMIBwUEbmFtZQUObGVuZGVzY3JpcHRpb24FCHF1YW50aXR5BQhkZWNpbWFscwUMaXNSZWlzc3VhYmxlBQR1bml0AAAEB2Fzc2V0SWQJALgIAQUKYXNzZXRCZWJyYQQJa25ld1Rva2VuAgVUb2tlbgQIbmV3VG9rZW4JARN2YWx1ZU9yRXJyb3JNZXNzYWdlAgkAnQgCBQR0aGlzBQlrbmV3VG9rZW4CGUJlYnJhVG9rZW4gaXMgbm90IGRlZmluZWQECXJlY2lwaWVudAgFAWkGY2FsbGVyCQDMCAIFCmFzc2V0QmVicmEJAMwIAgkBC1N0cmluZ0VudHJ5AgUJa25ld1Rva2VuBQhuZXdUb2tlbgkAzAgCCQEOU2NyaXB0VHJhbnNmZXIDBQlyZWNpcGllbnQA0A8FB2Fzc2V0SWQFA25pbAFpAQ10b2tlblRyYW5zZmVyAQZhbW91bnQECXJlY2lwaWVudAkA2AQBCAgFAWkGY2FsbGVyBWJ5dGVzBQNuaWwBAnR4AQZ2ZXJpZnkACQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V5QXeZCA==", "height": 2597774, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: E42CmHak6pQ53PTAtt1uLXrNPfu8nMMe7amDSmjhPXU4 Next: 8ynsf8TJY22koQMP3obUDcmtMZEg37jUKzdJ4foLg8bb Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let separator = "/"
54
6-let kLastIterationLen = "lastIterationLen"
7-
8-let kIterationsCount = "iterationsCount"
9-
10-let kIncrementCounter = "incrementCounter"
11-
12-let kCurrentBalance = "currentBalance"
13-
14-let kIsActive = "isActive"
15-
16-let MAX_INCREMENT = 96
17-
18-let currentLastIterationLen = valueOrErrorMessage(getInteger(this, kLastIterationLen), "Last iteration store read error")
19-
20-let currentIterationsCount = valueOrErrorMessage(getInteger(this, kIterationsCount), "Iteration store read error")
21-
22-let currentIncrementCounter = valueOrErrorMessage(getInteger(this, kIncrementCounter), "Increment store read error")
23-
24-let currentBalance = valueOrErrorMessage(getInteger(this, kCurrentBalance), "Balance store read error")
25-
26-let range = valueOrErrorMessage(getInteger(this, "usersCounter"), "Range store read error")
27-
28-let isActiveStatus = valueOrElse(getBoolean(this, kIsActive), false)
295
306 @Callable(i)
31-func enableMassIncrement (key) = if (isActiveStatus)
32- then throw("Function blocked")
33- else {
34- let iterationsCount = fraction(1, range, MAX_INCREMENT)
35- let lastIterationLen = (range % MAX_INCREMENT)
36- let currentBalanceBefore = getStringValue(this, ((key + separator) + toString((range - 1))))
37- let valueArray = split(currentBalanceBefore, separator)
38- let currentBalanceInt = (parseIntValue(valueArray[1]) + 1)
39-[IntegerEntry(kLastIterationLen, lastIterationLen), IntegerEntry(kIterationsCount, iterationsCount), IntegerEntry(kIncrementCounter, 0), IntegerEntry(kCurrentBalance, currentBalanceInt)]
40- }
7+func tokenIssuance () = {
8+ let name = "BebraToken"
9+ let lendescription = "Bebra by Kringe"
10+ let quantity = 10000000
11+ let decimals = 0
12+ let isReissuable = true
13+ let assetBebra = Issue(name, lendescription, quantity, decimals, isReissuable, unit, 0)
14+ let assetId = calculateAssetId(assetBebra)
15+ let knewToken = "Token"
16+ let newToken = valueOrErrorMessage(getString(this, knewToken), "BebraToken is not defined")
17+ let recipient = i.caller
18+[assetBebra, StringEntry(knewToken, newToken), ScriptTransfer(recipient, 2000, assetId)]
19+ }
4120
4221
4322
4423 @Callable(i)
45-func massIncrement (key) = if ((currentIterationsCount != 0))
46- then {
47- let res1 = reentrantInvoke(this, "incrementStore", [MAX_INCREMENT, key], nil)
48- if ((res1 == res1))
49- then [IntegerEntry(kIncrementCounter, (currentIncrementCounter + MAX_INCREMENT)), IntegerEntry(kIterationsCount, (currentIterationsCount - 1)), BooleanEntry(kIsActive, true)]
50- else throw("Strict value is not equal to itself.")
51- }
52- else if (if ((currentIterationsCount == 0))
53- then (currentLastIterationLen != 0)
54- else false)
55- then {
56- let res2 = reentrantInvoke(this, "incrementStore", [currentLastIterationLen, key], nil)
57- if ((res2 == res2))
58- then [IntegerEntry(kIncrementCounter, (currentIncrementCounter + currentLastIterationLen)), IntegerEntry(kLastIterationLen, 0), BooleanEntry(kIsActive, false)]
59- else throw("Strict value is not equal to itself.")
60- }
61- else throw("Storage is incremented")
24+func tokenTransfer (amount) = {
25+ let recipient = toBase58String(i.caller.bytes)
26+ nil
27+ }
6228
6329
64-
65-@Callable(i)
66-func incrementStore (range,key) = if ((range >= 0))
67- then {
68- let storeValue = ((toString(i.originCaller) + separator) + toString(currentBalance))
69- let res = invoke(this, "incrementStore", [(range - 1), key], nil)
70- if ((res == res))
71- then [StringEntry(((key + separator) + toString((range + currentIncrementCounter))), storeValue)]
72- else throw("Strict value is not equal to itself.")
73- }
74- else nil
75-
30+@Verifier(tx)
31+func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
7632

github/deemru/w8io/026f985 
30.57 ms