tx · DHkKr8kwXs5UfkGLkHFz333E6oKJmcjfqcwsAJN8NpRN 3N2jZaH1jLZ5uhKkNik6geA57HzMGw98igR: -0.01400000 Waves 2022.02.04 14:31 [1908806] smart account 3N2jZaH1jLZ5uhKkNik6geA57HzMGw98igR > SELF 0.00000000 Waves
{ "type": 13, "id": "DHkKr8kwXs5UfkGLkHFz333E6oKJmcjfqcwsAJN8NpRN", "fee": 1400000, "feeAssetId": null, "timestamp": 1643974301859, "version": 2, "chainId": 84, "sender": "3N2jZaH1jLZ5uhKkNik6geA57HzMGw98igR", "senderPublicKey": "338kWhdMVS1kk4YdFkpjpePY3tEnRszY2J1fyRnnWUXw", "proofs": [ "4vxbUkYW9PbGAmCWA3wjucBWSAa6a1EANcEkSthijCB2Sn2H2ivD31C96NRPgNssJpdDu1pPmptMZ2jgF5H1YCAP" ], "script": "base64:AAIFAAAAAAAAAAYIAhIAEgAAAAAHAAAAAAlzZXBhcmF0b3ICAAAAAV8AAAAAC3YxVG9rZW5OYW1lAgAAAAlUaGUgVG9rZW4AAAAAC3YxVG9rZW5EZXNjAgAAAAAAAAAAGnYxSW5pdGlhbENoYXJDcmVhdGlvblN0YXRzCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAICAAAAATQFAAAACXNlcGFyYXRvcgIAAAACMjAFAAAACXNlcGFyYXRvcgIAAAAEMTAwMAUAAAAJc2VwYXJhdG9yAgAAAAMxM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AAAAAAAIBgUAAAAEdW5pdAAAAAAAAAAAAAQAAAAHdG9rZW5JZAkAAlgAAAABCQAEOAAAAAEFAAAACnRva2VuSXNzdWUJAARMAAAAAgkBAAAADEJvb2xlYW5FbnRyeQAAAAIFAAAADWtleUluaXRWMURvbmUGCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIFAAAACmtleVRva2VuSWQFAAAAB3Rva2VuSWQJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgUAAAAba2V5SW5pdGlhbENoYXJDcmVhdGlvblN0YXRzBQAAABp2MUluaXRpYWxDaGFyQ3JlYXRpb25TdGF0cwkABEwAAAACBQAAAAp0b2tlbklzc3VlBQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tlefMlKX4=", "height": 1908806, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4AAVo8x7yJ3WdFKQznoKLFGzbgtonGJ7Mz4u1zyAN1g5 Next: none Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let separator = "_" | |
5 | 5 | ||
6 | 6 | let v1TokenName = "The Token" | |
7 | 7 | ||
8 | 8 | let v1TokenDesc = "" | |
9 | 9 | ||
10 | 10 | let v1InitialCharCreationStats = (((((((((((((((((((((((((((((((((("4" + separator) + "20") + separator) + "1000") + separator) + "100") + separator) + "200") + separator) + "100") + separator) + "10") + separator) + "20") + separator) + "500") + separator) + "50") + separator) + "100") + separator) + "100") + separator) + "10") + separator) + "20") + separator) + "1") + separator) + "1") + separator) + "1") + separator) + "1") | |
11 | 11 | ||
12 | 12 | let keyInitV1Done = "init_v1_done" | |
13 | 13 | ||
14 | 14 | let keyTokenId = "tokenId" | |
15 | 15 | ||
16 | 16 | let keyInitialCharCreationStats = "initialCharCreationStats" | |
17 | 17 | ||
18 | 18 | @Callable(i) | |
19 | 19 | func clear () = { | |
20 | 20 | let tokenId = fromBase58String(getStringValue(keyTokenId)) | |
21 | 21 | [Burn(tokenId, assetBalance(this, tokenId)), DeleteEntry(keyInitV1Done)] | |
22 | 22 | } | |
23 | 23 | ||
24 | 24 | ||
25 | 25 | ||
26 | 26 | @Callable(i) | |
27 | 27 | func initV1 () = if (valueOrElse(getBoolean(this, keyInitV1Done), false)) | |
28 | 28 | then throw("Init v1 done already") | |
29 | 29 | else { | |
30 | 30 | let tokenIssue = Issue(v1TokenName, v1TokenDesc, 1, 8, true, unit, 0) | |
31 | 31 | let tokenId = toBase58String(calculateAssetId(tokenIssue)) | |
32 | 32 | [BooleanEntry(keyInitV1Done, true), StringEntry(keyTokenId, tokenId), StringEntry(keyInitialCharCreationStats, v1InitialCharCreationStats), tokenIssue] | |
33 | 33 | } | |
34 | 34 | ||
35 | 35 | ||
36 | 36 | @Verifier(tx) | |
37 | 37 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
38 | 38 |
github/deemru/w8io/169f3d6 42.03 ms ◑