tx · 5WAPtDmHTURR8nrV2Wk86aPpUp9ZfBNmfZQhLbB8p4Na 3Mvjrd9jd9BEQvHoiHnPKR2WqtZnvxopDcx: -0.10000000 Waves 2022.04.08 20:38 [1999894] smart account 3Mvjrd9jd9BEQvHoiHnPKR2WqtZnvxopDcx > SELF 0.00000000 Waves
{ "type": 13, "id": "5WAPtDmHTURR8nrV2Wk86aPpUp9ZfBNmfZQhLbB8p4Na", "fee": 10000000, "feeAssetId": null, "timestamp": 1649439548722, "version": 2, "chainId": 84, "sender": "3Mvjrd9jd9BEQvHoiHnPKR2WqtZnvxopDcx", "senderPublicKey": "B37Jiw5CgfjxqxYgkAGeJpTmiCa4Cb6a9mh9fynZppFR", "proofs": [ "5ALx96iTiMJYPyNaLhdmVcFdizCuUPR4vCjDxjptoFyXZBUjxPi68USzz6JYkjJTDmRAddsYeQxLiXBM71nyZ9wB" ], "script": "base64:AAIFAAAAAAAAAAQIAhIAAAAAAAAAAAEAAAABaQEAAAAQY3JlYXRlTXV0aHVUb2tlbgAAAAADCQAAAAAAAAIIBQAAAAFpAAAABmNhbGxlcgUAAAAEdGhpcwQAAAAFaXNzdWUJAARCAAAABQIAAAAETEtSVAIAAAArQSB0ZXN0IHRva2VuIGJ5IEsuTXV0aHUgZm9yIHRlc3RpbmcgcHVycG9zZQAAAAAXSHboAAAAAAAAAAAAAwcEAAAAAmlkCQAEOAAAAAEFAAAABWlzc3VlCQAFFAAAAAIJAARMAAAAAgUAAAAFaXNzdWUJAARMAAAAAgkBAAAAC0JpbmFyeUVudHJ5AAAAAgIAAAACaWQFAAAAAmlkBQAAAANuaWwFAAAABHVuaXQJAAACAAAAAQIAAAAUVG9rZW4gYWxyZWFkeSBpc3N1ZWQAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleZ8bWRw=", "height": 1999894, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BoSSMeVvA8NFKB5dHSXzQNm5GmmXxcQ95Se2evdgFVos Next: EQcHPLm8dctLmTrRBKKAzynJnyoa61my9Tko9ynRRnLJ Diff:
Old | New | Differences | |
---|---|---|---|
6 | 6 | @Callable(a) | |
7 | 7 | func createMuthuToken () = if ((a.caller == this)) | |
8 | 8 | then { | |
9 | - | let b = Issue(" | |
9 | + | let b = Issue("LKRT", "A test token by K.Muthu for testing purpose", 100000000000, 3, false) | |
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 | - | ||
17 | - | @Callable(a) | |
18 | - | func giveTokens (d,e) = { | |
19 | - | let f = { | |
20 | - | let g = getBinary(this, "id") | |
21 | - | if ($isInstanceOf(g, "ByteVector")) | |
22 | - | then { | |
23 | - | let c = g | |
24 | - | c | |
25 | - | } | |
26 | - | else throw("Can't find Assest ID") | |
27 | - | } | |
28 | - | if (if ((a.caller == this)) | |
29 | - | then (assetBalance(this, f) >= e) | |
30 | - | else false) | |
31 | - | then [IntegerEntry(toBase58String(d), e), ScriptTransfer(Address(d), e, f)] | |
32 | - | else throw("Can't call or not enough balance") | |
33 | - | } | |
34 | - | ||
35 | - | ||
36 | - | @Verifier(h) | |
37 | - | func i () = sigVerify(h.bodyBytes, h.proofs[0], h.senderPublicKey) | |
16 | + | @Verifier(d) | |
17 | + | func e () = sigVerify(d.bodyBytes, d.proofs[0], d.senderPublicKey) | |
38 | 18 |
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 | - | let b = Issue(" | |
9 | + | let b = Issue("LKRT", "A test token by K.Muthu for testing purpose", 100000000000, 3, false) | |
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 | - | ||
17 | - | @Callable(a) | |
18 | - | func giveTokens (d,e) = { | |
19 | - | let f = { | |
20 | - | let g = getBinary(this, "id") | |
21 | - | if ($isInstanceOf(g, "ByteVector")) | |
22 | - | then { | |
23 | - | let c = g | |
24 | - | c | |
25 | - | } | |
26 | - | else throw("Can't find Assest ID") | |
27 | - | } | |
28 | - | if (if ((a.caller == this)) | |
29 | - | then (assetBalance(this, f) >= e) | |
30 | - | else false) | |
31 | - | then [IntegerEntry(toBase58String(d), e), ScriptTransfer(Address(d), e, f)] | |
32 | - | else throw("Can't call or not enough balance") | |
33 | - | } | |
34 | - | ||
35 | - | ||
36 | - | @Verifier(h) | |
37 | - | func i () = sigVerify(h.bodyBytes, h.proofs[0], h.senderPublicKey) | |
16 | + | @Verifier(d) | |
17 | + | func e () = sigVerify(d.bodyBytes, d.proofs[0], d.senderPublicKey) | |
38 | 18 |
github/deemru/w8io/026f985 25.29 ms ◑