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