tx · GHwgUu4v4ZLnHSZAiErCHDGnyFugohjo6EfANK7GtBoz 3MxVYj6ScMArhAamy7nB6b342kh1Pso1LTn: -0.00200000 Waves 2023.03.20 19:41 [2498584] smart account 3MxVYj6ScMArhAamy7nB6b342kh1Pso1LTn > SELF 0.00000000 Waves
{ "type": 13, "id": "GHwgUu4v4ZLnHSZAiErCHDGnyFugohjo6EfANK7GtBoz", "fee": 200000, "feeAssetId": null, "timestamp": 1679330503764, "version": 2, "chainId": 84, "sender": "3MxVYj6ScMArhAamy7nB6b342kh1Pso1LTn", "senderPublicKey": "CZeucjRLCKrkiP9zuj9KbLe23Wv9DywFzHBqNDnte51B", "proofs": [ "51ek1wnYfLhdjqyVY379r5fgcpvfbDS2oBCepSGaPHESXFpthrZJ8RAqoNtZRjr5LCu6C6VWvDCBovVcNTGC4iho" ], "script": "base64:BgIcCAISBAoCCAgSBAoCCAESBgoECAgICBIECgIICAgADmNvbGxlY3Rpb25OYW1lCQERQGV4dHJOYXRpdmUoMTA1OCkBAg5jb2xsZWN0aW9uTmFtZQAGc3ltYm9sCQERQGV4dHJOYXRpdmUoMTA1OCkBAgZzeW1ib2wAC2Rlc2NyaXB0aW9uCQERQGV4dHJOYXRpdmUoMTA1OCkBAgtkZXNjcmlwdGlvbgALdG90YWxBbW91bnQJARFAZXh0ck5hdGl2ZSgxMDU1KQECC3RvdGFsQW1vdW50AAdiYXNlVVJJCQERQGV4dHJOYXRpdmUoMTA1OCkBAgdiYXNlVVJJAAhkQXBwSnNvbgkBB0FkZHJlc3MBCQDZBAECIzNNckdhWlZSaGtuRUdmSEoxOXR0VVBObkRSb0ZxY0hoVk43AQxvbmx5SW50ZXJuYWwBBmNhbGxlcgMJAAACBQZjYWxsZXIFBHRoaXMFBHVuaXQJAAIBAhJPbmx5IGludGVybmFsIGNhbGwBDXRyYW5zZmVyT3JOb3QCAnRvB2Fzc2V0SWQDCQAAAgUCdG8FBHRoaXMJAQtTdHJpbmdFbnRyeQICBHNtdGgCBH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YW1lBQRqc29uAAEAAAcFBHVuaXQFBmhlaWdodAQHYXNzZXRJZAkAuAgBBQVhc3NldAQJdG9BZGRyZXNzCQEHQWRkcmVzcwEJANkEAQUCdG8ECHRyYW5zZmVyCQENdHJhbnNmZXJPck5vdAIFCXRvQWRkcmVzcwUHYXNzZXRJZAMJAAACBQh0cmFuc2ZlcgUIdHJhbnNmZXIJAMwIAgUFYXNzZXQJAMwIAgUIdHJhbnNmZXIJAMwIAgkBDEludGVnZXJFbnRyeQICC3RvdGFsQW1vdW50BQd0b2tlbklkCQDMCAIJAQtTdHJpbmdFbnRyeQIFBG5hbWUFCHRva2VuVVJJBQNuaWwJAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4Ai0mKEA==", "height": 2498584, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 49dQDxF8KEWPjmmQQc1vUr6995Kb7EZFJ8v2SzPmWXY4 Next: FCmDoaxe2X3rEjUgCsfGCZgqHm83KNQzTNtREgAQGs7h Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let a = getStringValue("collectionName") | |
5 | + | ||
6 | + | let b = getStringValue("symbol") | |
7 | + | ||
8 | + | let c = getStringValue("description") | |
9 | + | ||
10 | + | let d = getIntegerValue("totalAmount") | |
11 | + | ||
12 | + | let e = getStringValue("baseURI") | |
13 | + | ||
14 | + | let f = Address(fromBase58String("3MrGaZVRhknEGfHJ19ttUPNnDRoFqcHhVN7")) | |
15 | + | ||
16 | + | func g (h) = if ((h == this)) | |
17 | + | then unit | |
18 | + | else throw("Only internal call") | |
4 | 19 | ||
5 | 20 | ||
6 | - | @Callable(a) | |
7 | - | func setString (b,c) = [StringEntry(b, c)] | |
21 | + | func i (j,k) = if ((j == this)) | |
22 | + | then StringEntry("smth", "smth") | |
23 | + | else ScriptTransfer(j, 1, k) | |
24 | + | ||
25 | + | ||
26 | + | @Callable(l) | |
27 | + | func setString (m,n) = [StringEntry(m, n)] | |
8 | 28 | ||
9 | 29 | ||
10 | 30 | ||
11 | - | @Callable(a) | |
12 | - | func setInt (b,c) = [IntegerEntry(b, c)] | |
31 | + | @Callable(l) | |
32 | + | func setInt (m,n) = [IntegerEntry(m, n)] | |
33 | + | ||
34 | + | ||
35 | + | ||
36 | + | @Callable(l) | |
37 | + | func init (o,p,q,r) = valueOrElse(g(l.caller), [StringEntry("collectionName", o), StringEntry("symbol", p), StringEntry("description", q), IntegerEntry("totalAmount", 0), StringEntry("baseURI", r)]) | |
38 | + | ||
39 | + | ||
40 | + | ||
41 | + | @Callable(l) | |
42 | + | func mint (j,s) = { | |
43 | + | let t = (d + 1) | |
44 | + | let u = ((b + "#") + toString(t)) | |
45 | + | let v = if ((16 >= size(u))) | |
46 | + | then u | |
47 | + | else toString(t) | |
48 | + | let w = { | |
49 | + | let x = invoke(f, "makeJSON", [["tokenURI"], [s]], nil) | |
50 | + | if ($isInstanceOf(x, "String")) | |
51 | + | then x | |
52 | + | else throw(($getType(x) + " couldn't be cast to String")) | |
53 | + | } | |
54 | + | let y = Issue(v, w, 1, 0, false, unit, height) | |
55 | + | let k = calculateAssetId(y) | |
56 | + | let z = Address(fromBase58String(j)) | |
57 | + | let A = i(z, k) | |
58 | + | if ((A == A)) | |
59 | + | then [y, A, IntegerEntry("totalAmount", t), StringEntry(v, s)] | |
60 | + | else throw("Strict value is not equal to itself.") | |
61 | + | } | |
13 | 62 | ||
14 | 63 |
github/deemru/w8io/169f3d6 26.12 ms ◑