tx · FF9Lxo7BPoKaumaVeejVQCsHWAzjEND4WBbeTeMowSwB 3MvjAaDYHpS4A5K4CV3kZMMEH9m9JdBSvbq: -0.01000000 Waves 2022.11.04 08:57 [2301975] smart account 3MvjAaDYHpS4A5K4CV3kZMMEH9m9JdBSvbq > SELF 0.00000000 Waves
{ "type": 13, "id": "FF9Lxo7BPoKaumaVeejVQCsHWAzjEND4WBbeTeMowSwB", "fee": 1000000, "feeAssetId": null, "timestamp": 1667541422698, "version": 2, "chainId": 84, "sender": "3MvjAaDYHpS4A5K4CV3kZMMEH9m9JdBSvbq", "senderPublicKey": "H6UqxUDcJamDRg1uykVcWMn4zhAMTV7i1nfPq1moLWmJ", "proofs": [ "jxZeWgYf2uv1Vuy7bGGxSvFyhHZLcAyDNb1bfGwZZH3yh7X2WmS5vMgV5yuL55FnhsuQenf55WHE4B89egoMejr" ], "script": "base64:AAIFAAAAAAAAABwIAhILCgkICAgICAEICAgSBgoECAgBCBIDCgEIAAAAAQAAAAAFd2F2ZXMBAAAAAAAAAAMAAAABaQEAAAAHYWRkSXRlbQAAAAkAAAAIbmZ0X25hbWUAAAAJbmZ0X293bmVyAAAAD25mdF9kQXBwQWRkcmVzcwAAAAhuZnRfdHlwZQAAAAhuZnRfdGFncwAAABFuZnRfc2VsbGluZ19wcmljZQAAAA9uZnRfZGVzY3JpcHRpb24AAAAKbmZ0X29uU2VsbAAAAAhuZnRfZGF0YQQAAAAGY2FsbGVyCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMEAAAABWFydElkCQACWAAAAAEIBQAAAAFpAAAADXRyYW5zYWN0aW9uSWQEAAAABWFzc2V0CQAEQwAAAAcFAAAACG5mdF9uYW1lBQAAAA9uZnRfZGVzY3JpcHRpb24AAAAAAAAAAAEAAAAAAAAAAAAHBQAAAAR1bml0AAAAAAAAAAAABAAAAAdhc3NldElkCQAEOAAAAAEFAAAABWFzc2V0CQAETAAAAAIJAQAAAAtTdHJpbmdFbnRye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W1vdW50BQAAAAR1bml0CQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgAAAAAAAAAAAQUAAAAHYXNzZXRJZAUAAAADbmlsAAAAAWkBAAAACWRlbGV0ZU5mdAAAAAEAAAAFbmZ0SWQEAAAABmNhbGxlcgkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBAAAAAR0eElECAUAAAABaQAAAA10cmFuc2FjdGlvbklkBAAAAAdhc3NldElkAQAAACBdNkmyak1dS+OsqZ64kFhMa1wwLlkMlSJOhlfx/DL+3QkABEwAAAACCQEAAAAEQnVybgAAAAIFAAAAB2Fzc2V0SWQAAAAAAAAAAAEFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V51Niwjg==", "height": 2301975, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Cm1TrcRzMfzkC4Yiyq736U233uPTK72Er1T9QURjUZva Next: 3GL2TEST8UuB7fHo91qWEkmHdWuajL9UkevG3ae296XH Diff:
Old | New | Differences | |
---|---|---|---|
5 | 5 | ||
6 | 6 | @Callable(b) | |
7 | 7 | func addItem (c,d,e,f,g,h,i,j,k) = { | |
8 | - | let l = Issue(c, i, 1, 0, false, unit, 0) | |
9 | - | let m = calculateAssetId(l) | |
10 | - | [StringEntry("nft_name", c), StringEntry("nft_owner", d), StringEntry("nft_dAppAddress", e), StringEntry("nft_type", f), StringEntry("nft_tags", g), IntegerEntry("nft_selling_price", h), StringEntry("nft_description", i), StringEntry("nft_onSell", j), StringEntry("nft_data", k), l, ScriptTransfer(b.caller, 1, m)] | |
8 | + | let l = toBase58String(b.caller.bytes) | |
9 | + | let m = toBase58String(b.transactionId) | |
10 | + | let n = Issue(c, i, 1, 0, false, unit, 0) | |
11 | + | let o = calculateAssetId(n) | |
12 | + | [StringEntry(((("nft_name_" + m) + "_") + l), c), StringEntry(((("nft_owner" + m) + "_") + l), d), StringEntry(((("nft_dAppAddress" + m) + "_") + l), e), StringEntry(((("nft_type" + m) + "_") + l), f), StringEntry(((("nft_tags" + m) + "_") + l), g), IntegerEntry(((("nft_selling_price" + m) + "_") + l), h), StringEntry(((("nft_description" + m) + "_") + l), i), StringEntry(((("nft_onSell" + m) + "_") + l), j), StringEntry(((("nft_data" + m) + "_") + l), k), n, ScriptTransfer(b.caller, 1, o)] | |
11 | 13 | } | |
12 | 14 | ||
13 | 15 | ||
14 | 16 | ||
15 | 17 | @Callable(b) | |
16 | - | func BuyItem ( | |
17 | - | let | |
18 | - | let | |
19 | - | let | |
20 | - | [StringEntry("nft_id", | |
18 | + | func BuyItem (p,q,r,s) = { | |
19 | + | let t = b.payments | |
20 | + | let o = fromBase58String(p) | |
21 | + | let u = Address(fromBase58String(q)) | |
22 | + | [StringEntry("nft_id", p), StringEntry("asset_ownerAddress", q), IntegerEntry("paid_for_asset", r), StringEntry("real_issuer_nft_tx_id", s), ScriptTransfer(u, r, unit), ScriptTransfer(b.caller, 1, o)] | |
21 | 23 | } | |
22 | 24 | ||
23 | 25 | ||
24 | 26 | ||
25 | 27 | @Callable(b) | |
26 | - | func deleteNft ( | |
27 | - | let | |
28 | - | let | |
29 | - | let | |
30 | - | [Burn( | |
28 | + | func deleteNft (v) = { | |
29 | + | let l = toBase58String(b.caller.bytes) | |
30 | + | let w = b.transactionId | |
31 | + | let o = base58'7Grvr2X6DWc4M5kGYhBLeWH9R56AEHgdzNnxCBGDDu7r' | |
32 | + | [Burn(o, 1)] | |
31 | 33 | } | |
32 | 34 | ||
33 | 35 | ||
34 | - | @Verifier( | |
35 | - | func | |
36 | + | @Verifier(x) | |
37 | + | func y () = sigVerify(x.bodyBytes, x.proofs[0], x.senderPublicKey) | |
36 | 38 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = base58'' | |
5 | 5 | ||
6 | 6 | @Callable(b) | |
7 | 7 | func addItem (c,d,e,f,g,h,i,j,k) = { | |
8 | - | let l = Issue(c, i, 1, 0, false, unit, 0) | |
9 | - | let m = calculateAssetId(l) | |
10 | - | [StringEntry("nft_name", c), StringEntry("nft_owner", d), StringEntry("nft_dAppAddress", e), StringEntry("nft_type", f), StringEntry("nft_tags", g), IntegerEntry("nft_selling_price", h), StringEntry("nft_description", i), StringEntry("nft_onSell", j), StringEntry("nft_data", k), l, ScriptTransfer(b.caller, 1, m)] | |
8 | + | let l = toBase58String(b.caller.bytes) | |
9 | + | let m = toBase58String(b.transactionId) | |
10 | + | let n = Issue(c, i, 1, 0, false, unit, 0) | |
11 | + | let o = calculateAssetId(n) | |
12 | + | [StringEntry(((("nft_name_" + m) + "_") + l), c), StringEntry(((("nft_owner" + m) + "_") + l), d), StringEntry(((("nft_dAppAddress" + m) + "_") + l), e), StringEntry(((("nft_type" + m) + "_") + l), f), StringEntry(((("nft_tags" + m) + "_") + l), g), IntegerEntry(((("nft_selling_price" + m) + "_") + l), h), StringEntry(((("nft_description" + m) + "_") + l), i), StringEntry(((("nft_onSell" + m) + "_") + l), j), StringEntry(((("nft_data" + m) + "_") + l), k), n, ScriptTransfer(b.caller, 1, o)] | |
11 | 13 | } | |
12 | 14 | ||
13 | 15 | ||
14 | 16 | ||
15 | 17 | @Callable(b) | |
16 | - | func BuyItem ( | |
17 | - | let | |
18 | - | let | |
19 | - | let | |
20 | - | [StringEntry("nft_id", | |
18 | + | func BuyItem (p,q,r,s) = { | |
19 | + | let t = b.payments | |
20 | + | let o = fromBase58String(p) | |
21 | + | let u = Address(fromBase58String(q)) | |
22 | + | [StringEntry("nft_id", p), StringEntry("asset_ownerAddress", q), IntegerEntry("paid_for_asset", r), StringEntry("real_issuer_nft_tx_id", s), ScriptTransfer(u, r, unit), ScriptTransfer(b.caller, 1, o)] | |
21 | 23 | } | |
22 | 24 | ||
23 | 25 | ||
24 | 26 | ||
25 | 27 | @Callable(b) | |
26 | - | func deleteNft ( | |
27 | - | let | |
28 | - | let | |
29 | - | let | |
30 | - | [Burn( | |
28 | + | func deleteNft (v) = { | |
29 | + | let l = toBase58String(b.caller.bytes) | |
30 | + | let w = b.transactionId | |
31 | + | let o = base58'7Grvr2X6DWc4M5kGYhBLeWH9R56AEHgdzNnxCBGDDu7r' | |
32 | + | [Burn(o, 1)] | |
31 | 33 | } | |
32 | 34 | ||
33 | 35 | ||
34 | - | @Verifier( | |
35 | - | func | |
36 | + | @Verifier(x) | |
37 | + | func y () = sigVerify(x.bodyBytes, x.proofs[0], x.senderPublicKey) | |
36 | 38 |
github/deemru/w8io/026f985 43.03 ms ◑