tx · 83GsDA8yYuEj2ncaReeMuNm2aoxzEkhghE32ZSAcLsni 3Mvqg45GNNEhYssByz8tT6BECpZd8wKyuki: -0.00100000 Waves 2024.07.06 00:05 [3181222] smart account 3Mvqg45GNNEhYssByz8tT6BECpZd8wKyuki > SELF 0.00000000 Waves
{ "type": 13, "id": "83GsDA8yYuEj2ncaReeMuNm2aoxzEkhghE32ZSAcLsni", "fee": 100000, "feeAssetId": null, "timestamp": 1720213547277, "version": 2, "chainId": 84, "sender": "3Mvqg45GNNEhYssByz8tT6BECpZd8wKyuki", "senderPublicKey": "Em3xR3qCDVUJh4RYP61j2iaMKdEHYvyYEA4kmBMKQHLd", "proofs": [ "2uU6EP3c5nF8UaGJgyFTgSx4niaUtewvvYn53qDeNpgtNeXE1erur1aTwd8gJAJyxpoMbYzfJLoyzmr7AhtmR1Ab" ], "script": "base64:BgIICAISBAoCCAEAAQFpAQlzdG9yZURhdGECBm5ld0tleQhuZXdWYWx1ZQQEc2xvdAkAmggCBQR0aGlzBQZuZXdLZXkDCQEJaXNEZWZpbmVkAQUEc2xvdAkAAgECEktleSBhbHJlYWR5IGV4aXN0cwkAzAgCCQEMSW50ZWdlckVudHJ5AgUGbmV3S2V5BQhuZXdWYWx1ZQUDbmlsAQJ0eAEGdmVyaWZ5AAQHJG1hdGNoMAUCdHgDCQABAgUHJG1hdGNoMAIPRGF0YVRyYW5zYWN0aW9uBANkdHgFByRtYXRjaDAJAAIBAjFUaGlzIHRyYW5zYWN0aW9uIGlzIHByb2hpYml0ZWQgdG8gdGhlIGRBcHAgb3duZXIhCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V5RaU5gA==", "height": 3181222, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BmerCmHPTxMrQ3qi7wznssXqoNcTfjMQigDYsR7aATWJ Next: AyFGwsQDkFzXTv7fJXaiwFv9wCWJvd8PQbZCgKgVFbw9 Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let a = 20 | |
5 | 4 | ||
6 | - | let b = ["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 | 5 | ||
8 | - | func c (d,e) = { | |
9 | - | let f = sha256(toBytes((d + e))) | |
10 | - | let g = toInt(f) | |
11 | - | b[(g % a)] | |
6 | + | @Callable(a) | |
7 | + | func storeData (b,c) = { | |
8 | + | let d = getInteger(this, b) | |
9 | + | if (isDefined(d)) | |
10 | + | then throw("Key already exists") | |
11 | + | else [IntegerEntry(b, c)] | |
12 | 12 | } | |
13 | 13 | ||
14 | 14 | ||
15 | - | func h (i) = { | |
16 | - | let j = getString(this, (i + "_a")) | |
17 | - | if ($isInstanceOf(j, "String")) | |
15 | + | @Verifier(e) | |
16 | + | func f () = { | |
17 | + | let g = e | |
18 | + | if ($isInstanceOf(g, "DataTransaction")) | |
18 | 19 | then { | |
19 | - | let | |
20 | - | | |
20 | + | let h = g | |
21 | + | throw("This transaction is prohibited to the dApp owner!") | |
21 | 22 | } | |
22 | - | else | |
23 | + | else sigVerify(e.bodyBytes, e.proofs[0], e.senderPublicKey) | |
23 | 24 | } | |
24 | - | ||
25 | - | ||
26 | - | @Callable(l) | |
27 | - | func tellme (d) = { | |
28 | - | let m = toBase58String(l.caller.bytes) | |
29 | - | let n = c(d, h(m)) | |
30 | - | [StringEntry((m + "_q"), d), StringEntry((m + "_a"), n)] | |
31 | - | } | |
32 | - | ||
33 | 25 |
github/deemru/w8io/03bedc9 17.43 ms ◑![]()