tx · 8mABNpEkjoeGqc2327UzuizLsYrVkyrDnA5ZRmn6CBwg

3N9AtuEqvsBXZhUfw11ZemhyFbKVTUo9Pi4:  -0.01000000 Waves

2022.11.19 13:00 [2323850] smart account 3N9AtuEqvsBXZhUfw11ZemhyFbKVTUo9Pi4 > SELF 0.00000000 Waves

{ "type": 13, "id": "8mABNpEkjoeGqc2327UzuizLsYrVkyrDnA5ZRmn6CBwg", "fee": 1000000, "feeAssetId": null, "timestamp": 1668852073170, "version": 2, "chainId": 84, "sender": "3N9AtuEqvsBXZhUfw11ZemhyFbKVTUo9Pi4", "senderPublicKey": "9Qta8MVC69yzT9Kqfsbjt5D2JZzxY1errdkrVZgQEHga", "proofs": [ "3pqEFC2P6q21YyxHTxLKyJzyNjin3kcB8FaiQ6HfjaFzjKaZ7kJkN8zLfbJD1NHBKTVDBQmy2z8yBaeau2WQrPXp" ], "script": "base64:BgIECAISAAABAWkBBHVzZG4AAwkBAiE9AggFAWkGY2FsbGVyBQR0aGlzCQACAQIRb25seSBhZG1pbiBjYW4gZG8EAXIJAPwHBAkBB0FkZHJlc3MBARoBV3US3ZOCD1veJXYVOctJ1R9TKAnE6HFeJwIVd2l0aGRyYXdWZXN0ZWRBbGxVU0ROCQDMCAIHCQDMCAIGBQNuaWwFA25pbAMJAAACBQFyBQFyBQNuaWwJAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4AfORQaw==", "height": 2323850, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8YwXbpmugyuGS2yD65J3AqbiftNgiG7AUpMRGzJNeYJa Next: 7onvg98nZYhWHU9w2iUta5E6wKqg2LneFLS6LWge4fgu Full:
OldNewDifferences
1-{-# STDLIB_VERSION 3 #-}
1+{-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let answersCount = 20
5-
6-let answers = ["It is certain.", "It is decidedly so.", "Without a doubt.", "Yes - definitely.", "You may rely on it.", "As I see it, yes.", "Most likely.", "Outlook good.", "Yes.", "Signs point to yes.", "Reply hazy, try again.", "Ask again later.", "Better not tell you now.", "Cannot predict now.", "Concentrate and ask again.", "Don't count on it.", "My reply is no.", "My sources say no.", "Outlook not so good.", "Very doubtful."]
7-
8-func getAnswer (question,previousAnswer) = {
9- let hash = sha256(toBytes((question + previousAnswer)))
10- let index = toInt(hash)
11-answers[(index % answersCount)]
12- }
13-
14-
15-func getPreviousAnswer (address) = match getString(this, (address + "_a")) {
16- case a: String =>
17- a
18- case _ =>
19- address
20-}
214
225
236 @Callable(i)
24-func tellme (question) = {
25- let callerAddress = toBase58String(i.caller.bytes)
26- let answer = getAnswer(question, getPreviousAnswer(callerAddress))
27- WriteSet([DataEntry((callerAddress + "_q"), question), DataEntry((callerAddress + "_a"), answer)])
28- }
7+func usdn () = if ((i.caller != this))
8+ then throw("only admin can do")
9+ else {
10+ let r = invoke(Address(base58'3PCbvPVQfSvVu88ip8Fm5YjwJhjEYk1Txhk'), "withdrawVestedAllUSDN", [false, true], nil)
11+ if ((r == r))
12+ then nil
13+ else throw("Strict value is not equal to itself.")
14+ }
2915
3016

github/deemru/w8io/026f985 
36.51 ms