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:
OldNewDifferences
66 @Callable(a)
77 func createMuthuToken () = if ((a.caller == this))
88 then {
9- let b = Issue("MUTHU", "A test token by K.Muthu", 100000, 3, true)
9+ let b = Issue("LKRT", "A test token by K.Muthu for testing purpose", 100000000000, 3, false)
1010 let c = calculateAssetId(b)
1111 $Tuple2([b, BinaryEntry("id", c)], unit)
1212 }
1313 else throw("Token already issued")
1414
1515
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)
3818
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(a)
77 func createMuthuToken () = if ((a.caller == this))
88 then {
9- let b = Issue("MUTHU", "A test token by K.Muthu", 100000, 3, true)
9+ let b = Issue("LKRT", "A test token by K.Muthu for testing purpose", 100000000000, 3, false)
1010 let c = calculateAssetId(b)
1111 $Tuple2([b, BinaryEntry("id", c)], unit)
1212 }
1313 else throw("Token already issued")
1414
1515
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)
3818

github/deemru/w8io/026f985 
25.29 ms