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(i)
77 func createMuthuToken () = if ((i.caller == this))
88 then {
9- let issue = Issue("MUTHU", "A test token by K.Muthu", 100000, 3, true)
9+ let issue = Issue("LKRT", "A test token by K.Muthu for testing purpose", 100000000000, 3, false)
1010 let id = calculateAssetId(issue)
1111 $Tuple2([issue, BinaryEntry("id", id)], unit)
1212 }
1313 else throw("Token already issued")
14-
15-
16-
17-@Callable(i)
18-func giveTokens (address,amount) = {
19- let assetID = match getBinary(this, "id") {
20- case id: ByteVector =>
21- id
22- case _ =>
23- throw("Can't find Assest ID")
24- }
25- if (if ((i.caller == this))
26- then (assetBalance(this, assetID) >= amount)
27- else false)
28- then [IntegerEntry(toBase58String(address), amount), ScriptTransfer(Address(address), amount, assetID)]
29- else throw("Can't call or not enough balance")
30- }
3114
3215
3316 @Verifier(tx)
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(i)
77 func createMuthuToken () = if ((i.caller == this))
88 then {
9- let issue = Issue("MUTHU", "A test token by K.Muthu", 100000, 3, true)
9+ let issue = Issue("LKRT", "A test token by K.Muthu for testing purpose", 100000000000, 3, false)
1010 let id = calculateAssetId(issue)
1111 $Tuple2([issue, BinaryEntry("id", id)], unit)
1212 }
1313 else throw("Token already issued")
14-
15-
16-
17-@Callable(i)
18-func giveTokens (address,amount) = {
19- let assetID = match getBinary(this, "id") {
20- case id: ByteVector =>
21- id
22- case _ =>
23- throw("Can't find Assest ID")
24- }
25- if (if ((i.caller == this))
26- then (assetBalance(this, assetID) >= amount)
27- else false)
28- then [IntegerEntry(toBase58String(address), amount), ScriptTransfer(Address(address), amount, assetID)]
29- else throw("Can't call or not enough balance")
30- }
3114
3215
3316 @Verifier(tx)
3417 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
3518

github/deemru/w8io/026f985 
20.61 ms