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 |
---|
11 | 11 | | |
---|
12 | 12 | | let e = fromBase58String(d) |
---|
13 | 13 | | |
---|
14 | | - | @Callable(f) |
---|
| 14 | + | let f = fromBase58String(getStringValue(b)) |
---|
| 15 | + | |
---|
| 16 | + | @Callable(g) |
---|
15 | 17 | | func issueNewBull () = if ((getBoolean(a) != unit)) |
---|
16 | 18 | | then throw(("New BULL EGG is already issued and its asset id is: " + getStringValue(b))) |
---|
17 | 19 | | else { |
---|
18 | | - | let g = Issue("Bull Egg", "Utility and Reward token @ Duck Riders clan. The eggiest token in the world.", 100000, 8, true, unit, 0) |
---|
19 | | - | let h = calculateAssetId(g) |
---|
20 | | - | [g, StringEntry(b, toBase58String(h))] |
---|
| 20 | + | let h = Issue("Bull Egg", "Utility and Reward token @ Duck Riders clan. The eggiest token in the world.", 100000, 8, true, unit, 0) |
---|
| 21 | + | let i = calculateAssetId(h) |
---|
| 22 | + | [h, StringEntry(b, toBase58String(i))] |
---|
21 | 23 | | } |
---|
22 | 24 | | |
---|
23 | 25 | | |
---|
24 | 26 | | |
---|
25 | | - | @Callable(f) |
---|
26 | | - | func reissueBull (i) = if ((f.callerPublicKey != e)) |
---|
| 27 | + | @Callable(g) |
---|
| 28 | + | func reissueBull (j) = if ((g.callerPublicKey != e)) |
---|
27 | 29 | | then throw("Master only!") |
---|
28 | | - | else if ((1 > i)) |
---|
| 30 | + | else if ((1 > j)) |
---|
29 | 31 | | then throw("WTF!") |
---|
30 | 32 | | else { |
---|
31 | | - | let j = base58'EUNzgdPinhbvxEwRDxakAU7EB9QHupsUXYB8TTXdjnSS' |
---|
32 | | - | let k = Reissue(j, i, true) |
---|
33 | | - | [k, ScriptTransfer(f.caller, i, j)] |
---|
| 33 | + | let k = Reissue(f, j, true) |
---|
| 34 | + | [k, ScriptTransfer(g.caller, j, f)] |
---|
34 | 35 | | } |
---|
35 | 36 | | |
---|
36 | 37 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let a = "wasInited" |
---|
5 | 5 | | |
---|
6 | 6 | | let b = "newBull_assetId" |
---|
7 | 7 | | |
---|
8 | 8 | | let c = "3N4duLpvP27yhjCuwK2b7fgQvr8qjHhmPvs" |
---|
9 | 9 | | |
---|
10 | 10 | | let d = "FjH5YfknhbRhutjqZ2gk1dBcmY9fSorA9HVh1AvQTQ9U" |
---|
11 | 11 | | |
---|
12 | 12 | | let e = fromBase58String(d) |
---|
13 | 13 | | |
---|
14 | | - | @Callable(f) |
---|
| 14 | + | let f = fromBase58String(getStringValue(b)) |
---|
| 15 | + | |
---|
| 16 | + | @Callable(g) |
---|
15 | 17 | | func issueNewBull () = if ((getBoolean(a) != unit)) |
---|
16 | 18 | | then throw(("New BULL EGG is already issued and its asset id is: " + getStringValue(b))) |
---|
17 | 19 | | else { |
---|
18 | | - | let g = Issue("Bull Egg", "Utility and Reward token @ Duck Riders clan. The eggiest token in the world.", 100000, 8, true, unit, 0) |
---|
19 | | - | let h = calculateAssetId(g) |
---|
20 | | - | [g, StringEntry(b, toBase58String(h))] |
---|
| 20 | + | let h = Issue("Bull Egg", "Utility and Reward token @ Duck Riders clan. The eggiest token in the world.", 100000, 8, true, unit, 0) |
---|
| 21 | + | let i = calculateAssetId(h) |
---|
| 22 | + | [h, StringEntry(b, toBase58String(i))] |
---|
21 | 23 | | } |
---|
22 | 24 | | |
---|
23 | 25 | | |
---|
24 | 26 | | |
---|
25 | | - | @Callable(f) |
---|
26 | | - | func reissueBull (i) = if ((f.callerPublicKey != e)) |
---|
| 27 | + | @Callable(g) |
---|
| 28 | + | func reissueBull (j) = if ((g.callerPublicKey != e)) |
---|
27 | 29 | | then throw("Master only!") |
---|
28 | | - | else if ((1 > i)) |
---|
| 30 | + | else if ((1 > j)) |
---|
29 | 31 | | then throw("WTF!") |
---|
30 | 32 | | else { |
---|
31 | | - | let j = base58'EUNzgdPinhbvxEwRDxakAU7EB9QHupsUXYB8TTXdjnSS' |
---|
32 | | - | let k = Reissue(j, i, true) |
---|
33 | | - | [k, ScriptTransfer(f.caller, i, j)] |
---|
| 33 | + | let k = Reissue(f, j, true) |
---|
| 34 | + | [k, ScriptTransfer(g.caller, j, f)] |
---|
34 | 35 | | } |
---|
35 | 36 | | |
---|
36 | 37 | | |
---|
37 | 38 | | @Verifier(l) |
---|
38 | 39 | | func m () = sigVerify(l.bodyBytes, l.proofs[0], l.senderPublicKey) |
---|
39 | 40 | | |
---|