tx · HecthGiU9SLjia3QGp2zrLXCpjsk2pmXxMbesGVoxXNz 3N4Kzbxu521DHPxcgrmZ4XUqN2kF6TqLTzs: -0.01000000 Waves 2023.08.14 13:50 [2710137] smart account 3N4Kzbxu521DHPxcgrmZ4XUqN2kF6TqLTzs > SELF 0.00000000 Waves
{ "type": 13, "id": "HecthGiU9SLjia3QGp2zrLXCpjsk2pmXxMbesGVoxXNz", "fee": 1000000, "feeAssetId": null, "timestamp": 1692010244318, "version": 2, "chainId": 84, "sender": "3N4Kzbxu521DHPxcgrmZ4XUqN2kF6TqLTzs", "senderPublicKey": "8yQuxvQ2qLzXJrgbKZHbsfnNNjuU5wfHheyVujdALGsF", "proofs": [ "u1JVhnjQ9UKGVSegJeiejYYXASTUsDKnAmB4j9yYtj5B6MZ6XTiZxVkiFSXmKFgLSZKrn6BbJgbBHZqzJu1W3ku" ], "script": "base64:BgIKCAISBAoCCAESAAACAWkBC2luaXRMb3R0ZXJ5Agtsb3R0ZXJ5TmFtZRJsb3R0ZXJ5RmluYWxIZWlnaHQDCQECIT0CCAUBaQZjYWxsZXIFBHRoaXMJAAIBAgphZG1pbiBvbmx5CQDMCAIJAQxCb29sZWFuRW50cnkCAhBsb3R0ZXJ5SXNTdGFydGVkBgkAzAgCCQELU3RyaW5nRW50cnkCAhJjdXJyZW50TG90dGVyeU5hbWUFC2xvdHRlcnlOYW1lCQDMCAIJAQxJbnRlZ2VyRW50cnkCCQC5CQIJAMwIAgULbG90dGVyeU5hbWUJAMwIAgISbG90dGVyeUZpbmFsSGVpZ2h0BQNuaWwCAV8FEmxvdHRlcnlGaW5hbEhlaWdodAUDbmlsAWkBBGNhbGwABAVhc3NldAkAwwgHAgVBc3NldAIAAAEAAAYFBHVuaXQAAAQHYXNzZXRJZAkAuAgBBQVhc3NldAkAzAgCCQELQmluYXJ5RW50cnkCAgNiaW4BAAkAzAgCCQEMQm9vbGVhbkVudHJ5AgIEYm9vbAYJAMwIAgkBDEludGVnZXJFbnRyeQICA2ludAABCQDMCAIJAQtTdHJpbmdFbnRyeQICA3N0cgIACQDMCAIJAQtEZWxldGVFbnRyeQECA3N0cgkAzAgCBQVhc3NldAkAzAgCCQEHUmVpc3N1ZQMFB2Fzc2V0SWQAAQcJAMwIAgkBBEJ1cm4CBQdhc3NldElkAAEJAMwIAgkBDlNjcmlwdFRyYW5zZmVyAwgFAWkGY2FsbGVyAAEFB2Fzc2V0SWQFA25pbAECdHgBBnZlcmlmeQAJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAIBQJ0eA9zZW5kZXJQdWJsaWNLZXno2MW3", "height": 2710137, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: 3LqjGX6MqULSyNeuek8CE5ZfV33HgyyskZA8ZZzqL9vg Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 6 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | ||
5 | + | ||
6 | + | @Callable(i) | |
7 | + | func initLottery (lotteryName,lotteryFinalHeight) = if ((i.caller != this)) | |
8 | + | then throw("admin only") | |
9 | + | else [BooleanEntry("lotteryIsStarted", true), StringEntry("currentLotteryName", lotteryName), IntegerEntry(makeString([lotteryName, "lotteryFinalHeight"], "_"), lotteryFinalHeight)] | |
10 | + | ||
11 | + | ||
12 | + | ||
13 | + | @Callable(i) | |
14 | + | func call () = { | |
15 | + | let asset = Issue("Asset", "", 1, 0, true, unit, 0) | |
16 | + | let assetId = calculateAssetId(asset) | |
17 | + | [BinaryEntry("bin", base58''), BooleanEntry("bool", true), IntegerEntry("int", 1), StringEntry("str", ""), DeleteEntry("str"), asset, Reissue(assetId, 1, false), Burn(assetId, 1), ScriptTransfer(i.caller, 1, assetId)] | |
18 | + | } | |
19 | + | ||
20 | + | ||
21 | + | @Verifier(tx) | |
22 | + | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
23 | + |
github/deemru/w8io/169f3d6 14.27 ms ◑