tx · 58EFmVD9z9GzdLW3JaMjYHTbuuyGtJz4VfP8Q73naWhG
3N3k8kYqD1uZA9G5LxEPirYd2Ftpswpn9mC: -0.00600000 Waves
2022.06.18 15:31 [2101820] smart account 3N3k8kYqD1uZA9G5LxEPirYd2Ftpswpn9mC > SELF 0.00000000 Waves
{
"type": 13,
"id": "58EFmVD9z9GzdLW3JaMjYHTbuuyGtJz4VfP8Q73naWhG",
"fee": 600000,
"feeAssetId": null,
"timestamp": 1655555465577,
"version": 2,
"chainId": 84,
"sender": "3N3k8kYqD1uZA9G5LxEPirYd2Ftpswpn9mC",
"senderPublicKey": "9W3FE2ufeMnkDdNiMMaE3x3X4nvSy1fftLMvf18Lv45R",
"proofs": [
"26kwnqq2jkc3CfgPqAgXgiHjBXahJYUDz9qPhK5atsehMsyLjJpN17nAV8nQPXN9uDpRtjAwQEBD2qTYLgSYFRhQ"
],
"script": "base64:AAIFAAAAAAAAAAkIAhIAEgMKAQEAAAAGAAAAAAprRWdnSXNzdWVkAgAAAAl3YXNJbml0ZWQAAAAACGtBc3NldElkAgAAAA9uZXdCdWxsX2Fzc2V0SWQAAAAABm1hc3RlcgIAAAAjM040ZHVMcHZQMjd5aGpDdXdLMmI3ZmdRdnI4cWpIaG1QdnMAAAAADm1BY2NQS2V5U3RyaW5nAgAAACxGakg1WWZrbmhiUmh1dGpxWjJnazFkQmNtWTlmU29yQTlIVmgxQXZRVFE5VQAAAAAIbUFjY1BLZXkJAAJZAAAAAQUAAAAObUFjY1BLZXlTdHJpbmcAAAAABXRva2VuCQACWQAAAAEJAQAAABFAZXh0ck5hdGl2ZSgxMDU4KQAAAAEFAAAACGtBc3NldElkAAAAAgAAAAFpAQAAAAxpc3N1ZU5ld0J1bGwAAAAAAwkBAAAAAiE9AAAAAgkABCAAAAABBQAAAAprRWdnSXNzdWVkBQAAAAR1bml0CQAAAgAAAAEJAAEsAAAAAgIAAAA0TmV3IEJVTEwgRUdHIGlzIGFscmVhZHkgaXNzdWVkIGFuZCBpdHMgYXNzZXQgaWQgaXM6IAkBAAAAEUBleHRyTmF0aXZlKDEwNTgpAAAAAQUAAAAIa0Fzc2V0SWQEAAAAB25ld0J1bGwJAARDAAAABwIAAAAIQnVsbCBFZ2cCAAAATFV0aWxpdHkgYW5kIFJld2FyZCB0b2tlbiBAIER1Y2sgUmlkZXJzIGNsYW4uIFRoZSBlZ2dpZXN0IHRva2VuIGluIHRoZSB3b3JsZC4AAAAAAAABhqAAAAAAAAAAAAgGBQAAAAR1bml0AAAAAAAAAAAABAAAAAluZXdCdWxsSWQJAAQ4AAAAAQUAAAAHbmV3QnVsbAkABEwAAAACBQAAAAduZXdCdWxsCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIFAAAACGtBc3NldElkCQACWAAAAAEFAAAACW5ld0J1bGxJZAUAAAADbmlsAAAAAWkBAAAAC3JlaXNzdWVCdWxsAAAAAQAAAAZhbW91bnQDCQEAAAACIT0AAAACCAUAAAABaQAAAA9jYWxsZXJQdWJsaWNLZXkFAAAACG1BY2NQS2V5CQAAAgAAAAECAAAADE1hc3RlciBvbmx5IQMJAABmAAAAAgAAAAAAAAAAAQUAAAAGYW1vdW50CQAAAgAAAAECAAAABFdURiEEAAAAB3JlaXNzdWUJAQAAAAdSZWlzc3VlAAAAAwUAAAAFdG9rZW4FAAAABmFtb3VudAYJAARMAAAAAgUAAAAHcmVpc3N1ZQkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIFAAAABmFtb3VudAUAAAAFdG9rZW4FAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V58iUL3g==",
"height": 2101820,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 4DfEcJpCJizjRVhdQLXCLZ39Djk67b4YKMdGfxmM7Fne
Next: none
Diff:
Old | New | | Differences |
---|
10 | 10 | | let mAccPKeyString = "FjH5YfknhbRhutjqZ2gk1dBcmY9fSorA9HVh1AvQTQ9U" |
---|
11 | 11 | | |
---|
12 | 12 | | let mAccPKey = fromBase58String(mAccPKeyString) |
---|
| 13 | + | |
---|
| 14 | + | let token = fromBase58String(getStringValue(kAssetId)) |
---|
13 | 15 | | |
---|
14 | 16 | | @Callable(i) |
---|
15 | 17 | | func issueNewBull () = if ((getBoolean(kEggIssued) != unit)) |
---|
|
28 | 30 | | else if ((1 > amount)) |
---|
29 | 31 | | then throw("WTF!") |
---|
30 | 32 | | else { |
---|
31 | | - | let token = base58'EUNzgdPinhbvxEwRDxakAU7EB9QHupsUXYB8TTXdjnSS' |
---|
32 | 33 | | let reissue = Reissue(token, amount, true) |
---|
33 | 34 | | [reissue, ScriptTransfer(i.caller, amount, token)] |
---|
34 | 35 | | } |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let kEggIssued = "wasInited" |
---|
5 | 5 | | |
---|
6 | 6 | | let kAssetId = "newBull_assetId" |
---|
7 | 7 | | |
---|
8 | 8 | | let master = "3N4duLpvP27yhjCuwK2b7fgQvr8qjHhmPvs" |
---|
9 | 9 | | |
---|
10 | 10 | | let mAccPKeyString = "FjH5YfknhbRhutjqZ2gk1dBcmY9fSorA9HVh1AvQTQ9U" |
---|
11 | 11 | | |
---|
12 | 12 | | let mAccPKey = fromBase58String(mAccPKeyString) |
---|
| 13 | + | |
---|
| 14 | + | let token = fromBase58String(getStringValue(kAssetId)) |
---|
13 | 15 | | |
---|
14 | 16 | | @Callable(i) |
---|
15 | 17 | | func issueNewBull () = if ((getBoolean(kEggIssued) != unit)) |
---|
16 | 18 | | then throw(("New BULL EGG is already issued and its asset id is: " + getStringValue(kAssetId))) |
---|
17 | 19 | | else { |
---|
18 | 20 | | let newBull = Issue("Bull Egg", "Utility and Reward token @ Duck Riders clan. The eggiest token in the world.", 100000, 8, true, unit, 0) |
---|
19 | 21 | | let newBullId = calculateAssetId(newBull) |
---|
20 | 22 | | [newBull, StringEntry(kAssetId, toBase58String(newBullId))] |
---|
21 | 23 | | } |
---|
22 | 24 | | |
---|
23 | 25 | | |
---|
24 | 26 | | |
---|
25 | 27 | | @Callable(i) |
---|
26 | 28 | | func reissueBull (amount) = if ((i.callerPublicKey != mAccPKey)) |
---|
27 | 29 | | then throw("Master only!") |
---|
28 | 30 | | else if ((1 > amount)) |
---|
29 | 31 | | then throw("WTF!") |
---|
30 | 32 | | else { |
---|
31 | | - | let token = base58'EUNzgdPinhbvxEwRDxakAU7EB9QHupsUXYB8TTXdjnSS' |
---|
32 | 33 | | let reissue = Reissue(token, amount, true) |
---|
33 | 34 | | [reissue, ScriptTransfer(i.caller, amount, token)] |
---|
34 | 35 | | } |
---|
35 | 36 | | |
---|
36 | 37 | | |
---|
37 | 38 | | @Verifier(tx) |
---|
38 | 39 | | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
39 | 40 | | |
---|