tx · H6b8WoUq4HnKDu52GJpuaSn5F3TzigTej9yr2ua9TxgS 3N6fTzqTSR5TgnERgXCu6QdBXko9hCefzP5: -0.00200000 Waves 2023.03.05 01:13 [2475908] smart account 3N6fTzqTSR5TgnERgXCu6QdBXko9hCefzP5 > SELF 0.00000000 Waves
{ "type": 13, "id": "H6b8WoUq4HnKDu52GJpuaSn5F3TzigTej9yr2ua9TxgS", "fee": 200000, "feeAssetId": null, "timestamp": 1677968068345, "version": 2, "chainId": 84, "sender": "3N6fTzqTSR5TgnERgXCu6QdBXko9hCefzP5", "senderPublicKey": "HgH8MfpuURJBWAr8E3KbVp9C2NYiXi3H4WnsJJq5xVqG", "proofs": [ "2czjwukPKGZLAgP5TLLZ6xhecnuQvSLvFSYzPLE1hC4wW3tR16zQ1WkFDdeP4Ebx7aHo21qQ8CKubwNMVSmpSy7o" ], "script": "base64:BgIPCAISBQoDCAgIEgQKAggIBQAOY29sbGVjdGlvbk5hbWUJARFAZXh0ck5hdGl2ZSgxMDUzKQIFBHRoaXMCDmNvbGxlY3Rpb25OYW1lAAZzeW1ib2wJARFAZXh0ck5hdGl2ZSgxMDUzKQIFBHRoaXMCBnN5bWJvbAALZGVzY3JpcHRpb24JARFAZXh0ck5hdGl2ZSgxMDUzKQIFBHRoaXMCC2Rlc2NyaXB0aW9uAAt0b3RhbEFtb3VudAkBEUBleHRyTmF0aXZlKDEwNTApAgUEdGhpcwILdG90YWxBbW91bnQBDXRyYW5zZmVyT3JOb3QCAnRvB2Fzc2V0SWQDCQAAAgUCdG8FBHRoaXMJAQtTdHJpbmdFbnRyeQICDtC60L7RgdGC0YvQu9GMAg7QutC+0YHRgtGL0LvRjAkBDlNjcmlwdFRyYW5zZmVyAwUCdG8AAQUHYXNzZXRJZAIBaQEEaW5pdAMOY29sbGVjdGlvbk5hbWUGc3ltYm9sC2Rlc2NyaXB0aW9uAwkAAAIIBQFpBmNhbGxlcgUEdGhpcwkAzAgCCQELU3RyaW5nRW50cnkCAg5jb2xsZWN0aW9uTmFtZQUOY29sbGVjdGlvbk5hbWUJAMwIAgkBC1N0cmluZ0VudHJ5AgIGc3ltYm9sBQZzeW1ib2wJAMwIAgkBC1N0cmluZ0VudHJ5AgILZGVzY3JpcHRpb24FC2Rlc2NyaXB0aW9uCQDMCAIJAQxJbnRlZ2VyRW50cnkCAgt0b3RhbEFtb3VudAAABQNuaWwJAAIBAglvbmx5IGRBcHABaQEEbWludAICdG8IdG9rZW5VUkkDCQAAAggFAWkGY2FsbGVyBQR0aGlzBAd0b2tlbklkCQBkAgULdG90YWxBbW91bnQAAQQHcHJlTmFtZQkArAICCQCsAgIFBnN5bWJvbAIBIwkApAMBBQd0b2tlbklkBARuYW1lAwkAZwIAEAkAsQIBBQdwcmVOYW1lBQdwcmVOYW1lCQCkAwEFB3Rva2VuSWQEBWFzc2V0CQDDCAcFBG5hbWUJAKwCAgkArAICAgV7dXJpOgUIdG9rZW5VUkkCAX0AAQAABwUEdW5pdAUGaGVpZ2h0BAdhc3NldElkCQC4CAEFBWFzc2V0BAl0b0FkZHJlc3MJAQdBZGRyZXNzAQkA2QQBBQJ0bwQIdHJhbnNmZXIJAQ10cmFuc2Zlck9yTm90AgUJdG9BZGRyZXNzBQdhc3NldElkAwkAAAIFCHRyYW5zZmVyBQh0cmFuc2ZlcgkAzAgCBQVhc3NldAkAzAgCBQh0cmFuc2ZlcgkAzAgCCQEMSW50ZWdlckVudHJ5AgILdG90YWxBbW91bnQFB3Rva2VuSWQJAMwIAgkBC1N0cmluZ0VudHJ5AgUEbmFtZQUIdG9rZW5VUkkFA25pbAkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAgECCW9ubHkgZEFwcAB4Bqtb", "height": 2475908, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: 8gLCjCwsrxczhhPWSXnE3WBxeVF5UQPDcnoZYj6bp4PU Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 6 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let a = getStringValue(this, "collectionName") | |
5 | + | ||
6 | + | let b = getStringValue(this, "symbol") | |
7 | + | ||
8 | + | let c = getStringValue(this, "description") | |
9 | + | ||
10 | + | let d = getIntegerValue(this, "totalAmount") | |
11 | + | ||
12 | + | func e (f,g) = if ((f == this)) | |
13 | + | then StringEntry("костыль", "костыль") | |
14 | + | else ScriptTransfer(f, 1, g) | |
15 | + | ||
16 | + | ||
17 | + | @Callable(h) | |
18 | + | func init (a,b,c) = if ((h.caller == this)) | |
19 | + | then [StringEntry("collectionName", a), StringEntry("symbol", b), StringEntry("description", c), IntegerEntry("totalAmount", 0)] | |
20 | + | else throw("only dApp") | |
21 | + | ||
22 | + | ||
23 | + | ||
24 | + | @Callable(h) | |
25 | + | func mint (f,i) = if ((h.caller == this)) | |
26 | + | then { | |
27 | + | let j = (d + 1) | |
28 | + | let k = ((b + "#") + toString(j)) | |
29 | + | let l = if ((16 >= size(k))) | |
30 | + | then k | |
31 | + | else toString(j) | |
32 | + | let m = Issue(l, (("{uri:" + i) + "}"), 1, 0, false, unit, height) | |
33 | + | let g = calculateAssetId(m) | |
34 | + | let n = Address(fromBase58String(f)) | |
35 | + | let o = e(n, g) | |
36 | + | if ((o == o)) | |
37 | + | then [m, o, IntegerEntry("totalAmount", j), StringEntry(l, i)] | |
38 | + | else throw("Strict value is not equal to itself.") | |
39 | + | } | |
40 | + | else throw("only dApp") | |
41 | + | ||
42 | + |
github/deemru/w8io/169f3d6 17.57 ms ◑