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(i) |
---|
7 | 7 | | func createMuthuToken () = if ((i.caller == this)) |
---|
8 | 8 | | 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) |
---|
10 | 10 | | let id = calculateAssetId(issue) |
---|
11 | 11 | | $Tuple2([issue, BinaryEntry("id", id)], unit) |
---|
12 | 12 | | } |
---|
13 | 13 | | 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 | | - | } |
---|
31 | 14 | | |
---|
32 | 15 | | |
---|
33 | 16 | | @Verifier(tx) |
---|
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(i) |
---|
7 | 7 | | func createMuthuToken () = if ((i.caller == this)) |
---|
8 | 8 | | 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) |
---|
10 | 10 | | let id = calculateAssetId(issue) |
---|
11 | 11 | | $Tuple2([issue, BinaryEntry("id", id)], unit) |
---|
12 | 12 | | } |
---|
13 | 13 | | 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 | | - | } |
---|
31 | 14 | | |
---|
32 | 15 | | |
---|
33 | 16 | | @Verifier(tx) |
---|
34 | 17 | | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
35 | 18 | | |
---|