tx · 4DfEcJpCJizjRVhdQLXCLZ39Djk67b4YKMdGfxmM7Fne 3N3k8kYqD1uZA9G5LxEPirYd2Ftpswpn9mC: -0.00600000 Waves 2022.06.18 15:23 [2101813] smart account 3N3k8kYqD1uZA9G5LxEPirYd2Ftpswpn9mC > SELF 0.00000000 Waves
{ "type": 13, "id": "4DfEcJpCJizjRVhdQLXCLZ39Djk67b4YKMdGfxmM7Fne", "fee": 600000, "feeAssetId": null, "timestamp": 1655554999622, "version": 2, "chainId": 84, "sender": "3N3k8kYqD1uZA9G5LxEPirYd2Ftpswpn9mC", "senderPublicKey": "9W3FE2ufeMnkDdNiMMaE3x3X4nvSy1fftLMvf18Lv45R", "proofs": [ "5o3SbpAnbWJEpPXyb3hh2hnYNw5uUEGsyjm5RRGujxrnoEbEdzjuNxV4z4FiVt2oys6yD9S57kLov3g2ej1K64vy" ], "script": "base64:AAIFAAAAAAAAAAkIAhIAEgMKAQEAAAAFAAAAAAprRWdnSXNzdWVkAgAAAAl3YXNJbml0ZWQAAAAACGtBc3NldElkAgAAAA9uZXdCdWxsX2Fzc2V0SWQAAAAABm1hc3RlcgIAAAAjM040ZHVMcHZQMjd5aGpDdXdLMmI3ZmdRdnI4cWpIaG1QdnMAAAAADm1BY2NQS2V5U3RyaW5nAgAAACxGakg1WWZrbmhiUmh1dGpxWjJnazFkQmNtWTlmU29yQTlIVmgxQXZRVFE5VQAAAAAIbUFjY1BLZXkJAAJZAAAAAQUAAAAObUFjY1BLZXlTdHJpbmcAAAACAAAAAWkBAAAADGlzc3VlTmV3QnVsbAAAAAADCQEAAAACIT0AAAACCQAEIAAAAAEFAAAACmtFZ2dJc3N1ZWQFAAAABHVuaXQJAAACAAAAAQkAASwAAAACAgAAADROZXcgQlVMTCBFR0cgaXMgYWxyZWFkeSBpc3N1ZWQgYW5kIGl0cyBhc3NldCBpZCBpczogCQEAAAARQGV4dHJOYXRpdmUoMTA1OCkAAAABBQAAAAhrQXNzZXRJZAQAAAAHbmV3QnVsbAkABEMAAAAHAgAAAAhCdWxsIEVnZwIAAABMVXRpbGl0eSBhbmQgUmV3YXJkIHRva2VuIEAgRHVjayBSaWRlcnMgY2xhbi4gVGhlIGVnZ2llc3QgdG9rZW4gaW4gdGhlIHdvcmxkLgAAAAAAAAGGoAAAAAAAAAAACAYFAAAABHVuaXQAAAAAAAAAAAAEAAAACW5ld0J1bGxJZAkABDgAAAABBQAAAAduZXdCdWxsCQAETAAAAAIFAAAAB25ld0J1bGwJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgUAAAAIa0Fzc2V0SWQJAAJYAAAAAQUAAAAJbmV3QnVsbElkBQAAAANuaWwAAAABaQEAAAALcmVpc3N1ZUJ1bGwAAAABAAAABmFtb3VudAMJAQAAAAIhPQAAAAIIBQAAAAFpAAAAD2NhbGxlclB1YmxpY0tleQUAAAAIbUFjY1BLZXkJAAACAAAAAQIAAAAMTWFzdGVyIG9ubHkhAwkAAGYAAAACAAAAAAAAAAABBQAAAAZhbW91bnQJAAACAAAAAQIAAAAEV1RGIQQAAAAFdG9rZW4BAAAAIMgrey9ekhq7epfTXGY/Y20AXgKm4rTMXFBCaX6auZknBAAAAAdyZWlzc3VlCQEAAAAHUmVpc3N1ZQAAAAMFAAAABXRva2VuBQAAAAZhbW91bnQGCQAETAAAAAIFAAAAB3JlaXNzdWUJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyBQAAAAZhbW91bnQFAAAABXRva2VuBQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleQfhsQ8=", "height": 2101813, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7dekVY7vbVv9zyP8BYShqG1GKJA1Lk1Woj5DPb8BUgTH Next: 58EFmVD9z9GzdLW3JaMjYHTbuuyGtJz4VfP8Q73naWhG Diff:
Old | New | Differences | |
---|---|---|---|
28 | 28 | else if ((1 > amount)) | |
29 | 29 | then throw("WTF!") | |
30 | 30 | else { | |
31 | - | let token = | |
31 | + | let token = base58'EUNzgdPinhbvxEwRDxakAU7EB9QHupsUXYB8TTXdjnSS' | |
32 | 32 | let reissue = Reissue(token, amount, true) | |
33 | - | [reissue, ScriptTransfer(i.caller, amount, | |
33 | + | [reissue, ScriptTransfer(i.caller, amount, token)] | |
34 | 34 | } | |
35 | 35 | ||
36 | 36 |
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 | 13 | ||
14 | 14 | @Callable(i) | |
15 | 15 | func issueNewBull () = if ((getBoolean(kEggIssued) != unit)) | |
16 | 16 | then throw(("New BULL EGG is already issued and its asset id is: " + getStringValue(kAssetId))) | |
17 | 17 | else { | |
18 | 18 | let newBull = Issue("Bull Egg", "Utility and Reward token @ Duck Riders clan. The eggiest token in the world.", 100000, 8, true, unit, 0) | |
19 | 19 | let newBullId = calculateAssetId(newBull) | |
20 | 20 | [newBull, StringEntry(kAssetId, toBase58String(newBullId))] | |
21 | 21 | } | |
22 | 22 | ||
23 | 23 | ||
24 | 24 | ||
25 | 25 | @Callable(i) | |
26 | 26 | func reissueBull (amount) = if ((i.callerPublicKey != mAccPKey)) | |
27 | 27 | then throw("Master only!") | |
28 | 28 | else if ((1 > amount)) | |
29 | 29 | then throw("WTF!") | |
30 | 30 | else { | |
31 | - | let token = | |
31 | + | let token = base58'EUNzgdPinhbvxEwRDxakAU7EB9QHupsUXYB8TTXdjnSS' | |
32 | 32 | let reissue = Reissue(token, amount, true) | |
33 | - | [reissue, ScriptTransfer(i.caller, amount, | |
33 | + | [reissue, ScriptTransfer(i.caller, amount, token)] | |
34 | 34 | } | |
35 | 35 | ||
36 | 36 | ||
37 | 37 | @Verifier(tx) | |
38 | 38 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
39 | 39 |
github/deemru/w8io/169f3d6 39.90 ms ◑