tx · EQKzPHKVshzZLt6L95799BVQRzXW5yvewxrqr4pkA6Cr 3MsU428UzSefm85q7jvBsRV66Du7E72xEkL: -0.01000000 Waves 2022.06.09 15:34 [2088843] smart account 3MsU428UzSefm85q7jvBsRV66Du7E72xEkL > SELF 0.00000000 Waves
{ "type": 13, "id": "EQKzPHKVshzZLt6L95799BVQRzXW5yvewxrqr4pkA6Cr", "fee": 1000000, "feeAssetId": null, "timestamp": 1654778083237, "version": 2, "chainId": 84, "sender": "3MsU428UzSefm85q7jvBsRV66Du7E72xEkL", "senderPublicKey": "58FFoU7LCj1DKboVntQXuE3KQDpf92NouXncN5b4vY8U", "proofs": [ "3SiEkFWxunXAGzkGSYzJx5oySYWEqf8rEtQQP86AwTUK1igpi4NiHor2h32TxaXE4UonhwqjY6GUBzugvVxm1D6P" ], "script": "base64:AAIFAAAAAAAAAAsIAhIDCgEBEgASAAAAAAIAAAAABUFTU0VUAQAAACAtNxOB0yQ3XZ/hb3bT0Q+T7yws9N2JrVxKVuh8yQFyGwAAAAANUkVXQVJEX0FNT1VOVAAAAAAXSHboAAAAAAMAAAABaQEAAAAFc3Rha2UAAAABAAAABmFtb3VudAQAAAAJJHQwMjMyMzA3CQAFFAAAAAIICQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAAAAAABmFtb3VudAgJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAAAAAHYXNzZXRJZAQAAAAJcG10QW1vdW50CAUAAAAJJHQwMjMyMzA3AAAAAl8xBAAAAApwbXRBc3NldElkCAUAAAAJJHQwMjMyMzA3AAAAAl8yAwMDCQAAAAAAAAIJAAGQAAAAAQgFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAJAQAAAAIhPQAAAAIFAAAACnBtdEFzc2V0SWQFAAAABUFTU0VUBwkAAGcAAAACAAAAAAAAAAAABQAAAAlwbXRBbW91bnQHCQAAAgAAAAECAAAAFHNlbmQgcGl4ZWxzIHRvIHN0YWtlBAAAAApjdXJyZW50S2V5CQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMEAAAAD2dldFN0YWtlZEFtb3VudAkBAAAAC3ZhbHVlT3JFbHNlAAAAAgkABBoAAAACBQAAAAR0aGlzCQABLAAAAAIFAAAACmN1cnJlbnRLZXkCAAAAB19zdGFrZWQAAAAAAAAAAAAEAAAAC3RvdGFsU3Rha2VkCQAAZAAAAAIFAAAAD2dldFN0YWtlZEFtb3VudAUAAAAJcG10QW1vdW50CQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACBQAAAApjdXJyZW50S2V5AgAAAAFfCQABpAAAAAEFAAAABmhlaWdodAIAAAAHX3N0YWtlZAUAAAALdG90YWxTdGFrZWQFAAAAA25pbAAAAAFpAQAAAAh3aXRoZHJhdwAAAAAJAAACAAAAAQIAAAAEdGVzdAAAAAFpAQAAAAtjbGFpbVJld2FyZAAAAAAJAAACAAAAAQIAAAAEdGVzdAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5sYUNrg==", "height": 2088843, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: E2RtV7cpPyFqqAF1FtMYk1dDKcVBCVwDtqgCUSk8Qsmi Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 5 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let a = base58'43W4FcqA1rEpSmUGHoGiXvpSLfhadws9LS5j3SJsKxxS' | |
5 | + | ||
6 | + | let b = 100000000000 | |
7 | + | ||
8 | + | @Callable(c) | |
9 | + | func stake (d) = { | |
10 | + | let e = $Tuple2(c.payments[0].amount, c.payments[0].assetId) | |
11 | + | let f = e._1 | |
12 | + | let g = e._2 | |
13 | + | if (if (if ((size(c.payments) == 0)) | |
14 | + | then (g != a) | |
15 | + | else false) | |
16 | + | then (0 >= f) | |
17 | + | else false) | |
18 | + | then throw("send pixels to stake") | |
19 | + | else { | |
20 | + | let h = toBase58String(c.caller.bytes) | |
21 | + | let i = valueOrElse(getInteger(this, (h + "_staked")), 0) | |
22 | + | let j = (i + f) | |
23 | + | [IntegerEntry((((h + "_") + toString(height)) + "_staked"), j)] | |
24 | + | } | |
25 | + | } | |
26 | + | ||
27 | + | ||
28 | + | ||
29 | + | @Callable(c) | |
30 | + | func withdraw () = throw("test") | |
31 | + | ||
32 | + | ||
33 | + | ||
34 | + | @Callable(c) | |
35 | + | func claimReward () = throw("test") | |
36 | + | ||
37 | + | ||
38 | + | @Verifier(k) | |
39 | + | func l () = sigVerify(k.bodyBytes, k.proofs[0], k.senderPublicKey) | |
40 | + |
github/deemru/w8io/026f985 18.92 ms ◑