tx · 6Pxj4RNycfnfknmUtGfDT5pCbYakMbYPaDckqcmEDQiT 3Mvqg45GNNEhYssByz8tT6BECpZd8wKyuki: -0.00100000 Waves 2024.07.05 19:50 [3180960] smart account 3Mvqg45GNNEhYssByz8tT6BECpZd8wKyuki > SELF 0.00000000 Waves
{ "type": 13, "id": "6Pxj4RNycfnfknmUtGfDT5pCbYakMbYPaDckqcmEDQiT", "fee": 100000, "feeAssetId": null, "timestamp": 1720198255220, "version": 2, "chainId": 84, "sender": "3Mvqg45GNNEhYssByz8tT6BECpZd8wKyuki", "senderPublicKey": "Em3xR3qCDVUJh4RYP61j2iaMKdEHYvyYEA4kmBMKQHLd", "proofs": [ "56zXjLBC7DMis9Xh9VJS7hYtnFCSrQLFxKJY3iPxiY1RHk1nPpv6MAVfGTaBgPmmARN1vDx4G6BH7tJvL2JyHnKz" ], "script": "base64:BgIHCAISAwoBCAQADGFuc3dlcnNDb3VudAAUAAdhbnN3ZXJzCQDMCAICDkl0IGlzIGNlcnRhaW4uCQDMCAICE0l0IGlzIGRlY2lkZWRseSBzby4JAMwIAgIQV2l0aG91dCBhIGRvdWJ0LgkAzAgCAhFZZXMgLSBkZWZpbml0ZWx5LgkAzAgCAhNZb3UgbWF5IHJlbHkgb24gaXQuCQDMCAICEUFzIEkgc2VlIGl0LCB5ZXMuCQDMCAICDE1vc3QgbGlrZWx5LgkAzAgCAg1PdXRsb29rIGdvb2QuCQDMCAICBFllcy4JAMwIAgITU2lnbnMgcG9pbnQgdG8geWVzLgkAzAgCAhZSZXBseSBoYXp5LCB0cnkgYWdhaW4uCQDMCAICEEFzayBhZ2FpbiBsYXRlci4JAMwIAgIYQmV0dGVyIG5vdCB0ZWxsIHlvdSBub3cuCQDMCAICE0Nhbm5vdCBwcmVkaWN0IG5vdy4JAMwIAgIaQ29uY2VudHJhdGUgYW5kIGFzayBhZ2Fpbi4JAMwIAgISRG9uJ3QgY291bnQgb24gaXQuCQDMCAICD015IHJlcGx5IGlzIG5vLgkAzAgCAhJNeSBzb3VyY2VzIHNheSBuby4JAMwIAgIUT3V0bG9vayBub3Qgc28gZ29vZC4JAMwIAgIOVmVyeSBkb3VidGZ1bC4FA25pbAEJZ2V0QW5zd2VyAghxdWVzdGlvbg5wcmV2aW91c0Fuc3dlcgQEaGFzaAkA9wMBCQCbAwEJAKwCAgUIcXVlc3Rpb24FDnByZXZpb3VzQW5zd2VyBAVpbmRleAkAsQkBBQRoYXNoCQCRAwIFB2Fuc3dlcnMJAGoCBQVpbmRleAUMYW5zd2Vyc0NvdW50ARFnZXRQcmV2aW91c0Fuc3dlcgEHYWRkcmVzcwQHJG1hdGNoMAkAnQgCBQR0aGlzCQCsAgIFB2FkZHJlc3MCAl9hAwkAAQIFByRtYXRjaDACBlN0cmluZwQBYQUHJG1hdGNoMAUBYQUHYWRkcmVzcwEBaQEGdGVsbG1lAQhxdWVzdGlvbgQNY2FsbGVyQWRkcmVzcwkA2AQBCAgFAWkGY2FsbGVyBWJ5dGVzBAZhbnN3ZXIJAQlnZXRBbnN3ZXICBQhxdWVzdGlvbgkBEWdldFByZXZpb3VzQW5zd2VyAQUNY2FsbGVyQWRkcmVzcwkAzAgCCQELU3RyaW5nRW50cnkCCQCsAgIFDWNhbGxlckFkZHJlc3MCAl9xBQhxdWVzdGlvbgkAzAgCCQELU3RyaW5nRW50cnkCCQCsAgIFDWNhbGxlckFkZHJlc3MCAl9hBQZhbnN3ZXIFA25pbACcB1sg", "height": 3180960, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CMBEqtG374rPsE7jJhjsXjQLKcq5tjgJXsRFxGCoAGXA Next: BmerCmHPTxMrQ3qi7wznssXqoNcTfjMQigDYsR7aATWJ Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let a = 20 | |
5 | + | ||
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 | + | ||
8 | + | func c (d,e) = { | |
9 | + | let f = sha256(toBytes((d + e))) | |
10 | + | let g = toInt(f) | |
11 | + | b[(g % a)] | |
12 | + | } | |
4 | 13 | ||
5 | 14 | ||
6 | - | @Callable(a) | |
7 | - | func helloWorld (b) = [StringEntry("answer", ("Hello World! Hello, " + b))] | |
15 | + | func h (i) = { | |
16 | + | let j = getString(this, (i + "_a")) | |
17 | + | if ($isInstanceOf(j, "String")) | |
18 | + | then { | |
19 | + | let k = j | |
20 | + | k | |
21 | + | } | |
22 | + | else i | |
23 | + | } | |
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 | + | } | |
8 | 32 | ||
9 | 33 |
github/deemru/w8io/03bedc9 31.68 ms ◑![]()