tx · Eje9D2U45MC68NKGQFGEKxGRziai73Ak6ejdi76erDsm 3Mvjrd9jd9BEQvHoiHnPKR2WqtZnvxopDcx: -1.00900000 Waves 2022.04.06 23:07 [1997166] smart account 3Mvjrd9jd9BEQvHoiHnPKR2WqtZnvxopDcx > SELF 0.00000000 Waves
{ "type": 13, "id": "Eje9D2U45MC68NKGQFGEKxGRziai73Ak6ejdi76erDsm", "fee": 100900000, "feeAssetId": null, "timestamp": 1649275642793, "version": 2, "chainId": 84, "sender": "3Mvjrd9jd9BEQvHoiHnPKR2WqtZnvxopDcx", "senderPublicKey": "B37Jiw5CgfjxqxYgkAGeJpTmiCa4Cb6a9mh9fynZppFR", "proofs": [ "33igtb9YC8SV3wuYh1Fcq4niYjommYsR8fnNckMpzQhfrFZ5poEYgUqUZpZ83qGdQaDziKgW1ZuhRdYx7DewJPk8" ], "script": "base64:AAIFAAAAAAAAAAoIAhIAEgQKAgIBAAAAAAAAAAIAAAABaQEAAAAQY3JlYXRlTXV0aHVUb2tlbgAAAAADCQAAAAAAAAIIBQAAAAFpAAAABmNhbGxlcgUAAAAEdGhpcwQAAAAFaXNzdWUJAARCAAAABQIAAAAFTVVUSFUCAAAAF0EgdGVzdCB0b2tlbiBieSBLLk11dGh1AAAAAAAAAYagAAAAAAAAAAACBgQAAAACaWQJAAQ4AAAAAQUAAAAFaXNzdWUJAAUUAAAAAgkABEwAAAACBQAAAAVpc3N1ZQkABEwAAAACCQEAAAALQmluYXJ5RW50cnkAAAACAgAAAAJpZAUAAAACaWQFAAAAA25pbAUAAAAEdW5pdAkAAAIAAAABAgAAABRUb2tlbiBhbHJlYWR5IGlzc3VlZAAAAAFpAQAAAApnaXZlVG9rZW5zAAAAAgAAAAdhZGRyZXNzAAAABmFtb3VudAQAAAAHYXNzZXRJRAQAAAAHJG1hdGNoMAkABBwAAAACBQAAAAR0aGlzAgAAAAJpZAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAKQnl0ZVZlY3RvcgQAAAACaWQFAAAAByRtYXRjaDAFAAAAAmlkCQAAAgAAAAECAAAAFENhbid0IGZpbmQgQXNzZXN0IElEAwMJAAAAAAAAAggFAAAAAWkAAAAGY2FsbGVyBQAAAAR0aGlzCQAAZwAAAAIJAAPwAAAAAgUAAAAEdGhpcwUAAAAHYXNzZXRJRAUAAAAGYW1vdW50BwkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgkAAlgAAAABBQAAAAdhZGRyZXNzBQAAAAZhbW91bnQJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwkBAAAAB0FkZHJlc3MAAAABBQAAAAdhZGRyZXNzBQAAAAZhbW91bnQFAAAAB2Fzc2V0SUQFAAAAA25pbAkAAAIAAAABAgAAACBDYW4ndCBjYWxsIG9yIG5vdCBlbm91Z2ggYmFsYW5jZQAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5rbWLrg==", "height": 1997166, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BUkATxQA4GqH7itNNGhY8V4HnggxEkofvX1uAa8KFxpe Next: BoSSMeVvA8NFKB5dHSXzQNm5GmmXxcQ95Se2evdgFVos Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | ||
5 | 5 | ||
6 | 6 | @Callable(a) | |
7 | 7 | func createMuthuToken () = if ((a.caller == this)) | |
8 | 8 | then { | |
9 | 9 | let b = Issue("MUTHU", "A test token by K.Muthu", 100000, 2, true) | |
10 | 10 | let c = calculateAssetId(b) | |
11 | 11 | $Tuple2([b, BinaryEntry("id", c)], unit) | |
12 | 12 | } | |
13 | 13 | else throw("Token already issued") | |
14 | 14 | ||
15 | 15 | ||
16 | 16 | ||
17 | 17 | @Callable(a) | |
18 | 18 | func giveTokens (d,e) = { | |
19 | 19 | let f = { | |
20 | 20 | let g = getBinary(this, "id") | |
21 | 21 | if ($isInstanceOf(g, "ByteVector")) | |
22 | 22 | then { | |
23 | 23 | let c = g | |
24 | 24 | c | |
25 | 25 | } | |
26 | 26 | else throw("Can't find Assest ID") | |
27 | 27 | } | |
28 | 28 | if (if ((a.caller == this)) | |
29 | 29 | then (assetBalance(this, f) >= e) | |
30 | 30 | else false) | |
31 | 31 | then [IntegerEntry(toBase58String(d), e), ScriptTransfer(Address(d), e, f)] | |
32 | 32 | else throw("Can't call or not enough balance") | |
33 | 33 | } | |
34 | 34 | ||
35 | 35 | ||
36 | 36 | @Verifier(h) | |
37 | 37 | func i () = sigVerify(h.bodyBytes, h.proofs[0], h.senderPublicKey) | |
38 | 38 |
github/deemru/w8io/169f3d6 41.69 ms ◑