tx · 3sosdhUbkoefVgdbTKq8N5PSTkeECtxXCz3HgDZRyiF5 3NBYw8rxLmTvyEdsvaYor8nHG6GJ4NjB2Aw: -0.01000000 Waves 2023.03.13 13:53 [2488154] smart account 3NBYw8rxLmTvyEdsvaYor8nHG6GJ4NjB2Aw > SELF 0.00000000 Waves
{ "type": 13, "id": "3sosdhUbkoefVgdbTKq8N5PSTkeECtxXCz3HgDZRyiF5", "fee": 1000000, "feeAssetId": null, "timestamp": 1678704974201, "version": 2, "chainId": 84, "sender": "3NBYw8rxLmTvyEdsvaYor8nHG6GJ4NjB2Aw", "senderPublicKey": "4NDsd3dGKXuKLCoSbYvcWCX276K9ShP75cs9HTBMLJEN", "proofs": [ "5n4nYrsXimtWh1nkDThGjDjYKAckpN6x65f8VRb4hyMXceJvfnxQZ7t1h5htMSW6TXSZ4xoGDsXEsZonBDiGnBaE" ], "script": "base64:BgIMCAISAwoBCBIDCgEIAgAFdGVhbXMBIIVjlaPziI6w3gwXjghOv5o/krsm2zrodo4W3BQiKkh+AAVXQVZFUwEAAgFpAQ1hc2ltaVRyYW5zZmVyAQ1yZWNlcGllbnRBZGRyBAZjYWxsZXIICAUBaQZjYWxsZXIFYnl0ZXMEB3JlY2l2ZXIJANkEAQUNcmVjZXBpZW50QWRkcgQGYW1vdW50CAkAkQMCCAUBaQhwYXltZW50cwAABmFtb3VudAkAzAgCCQEMSW50ZWdlckVudHJ5AgkArAICCQDYBAEFBmNhbGxlcgIJX3RyYW5zZmVyBQZhbW91bnQJAMwIAgkBC1N0cmluZ0VudHJ5AgkArAICCQDYBAEFBmNhbGxlcgIMX3RyYW5zZmVyX3RvBQ1yZWNlcGllbnRBZGRyCQDMCAIJAQ5TY3JpcHRUcmFuc2ZlcgMJAQdBZGRyZXNzAQUHcmVjaXZlcgUGYW1vdW50BQV0ZWFtcwUDbmlsAWkBDXdhdmVzVHJhbnNmZXIBDXJlY2VwaWVudEFkZHIEBmNhbGxlcggIBQFpBmNhbGxlcgVieXRlcwQHcmVjaXZlcgkA2QQBBQ1yZWNlcGllbnRBZGRyBAZhbW91bnQICQCRAwIIBQFpCHBheW1lbnRzAAAGYW1vdW50CQDMCAIJAQxJbnRlZ2VyRW50cnkCCQCsAgIJANgEAQUGY2FsbGVyAglfdHJhbnNmZXIFBmFtb3VudAkAzAgCCQELU3RyaW5nRW50cnkCCQCsAgIJANgEAQUGY2FsbGVyAgxfdHJhbnNmZXJfdG8FDXJlY2VwaWVudEFkZHIJAMwIAgkBDlNjcmlwdFRyYW5zZmVyAwkBB0FkZHJlc3MBBQdyZWNpdmVyBQZhbW91bnQFBHVuaXQFA25pbAChxn+Z", "height": 2488154, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HmmAm6GuWHs7aYstqE6RH2WdFoqw5442xUoP5bKbM5Mc Next: AEvc8aNwi5qx5q2Tg4M2xz2VZbpFnnyHQThvGXn9Lr7W Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let a = | |
4 | + | let a = base58'9yhJDfWjPpv6tFjWRD1AJyBQwausJf2ZdxzLn86Uknnq' | |
5 | 5 | ||
6 | - | let b = | |
6 | + | let b = base58'' | |
7 | 7 | ||
8 | - | let c = "price" | |
9 | - | ||
10 | - | let d = "sell" | |
11 | - | ||
12 | - | let e = 30 | |
13 | - | ||
14 | - | let f = base58'9yhJDfWjPpv6tFjWRD1AJyBQwausJf2ZdxzLn86Uknnq' | |
15 | - | ||
16 | - | let g = base58'' | |
17 | - | ||
18 | - | let h = "bid" | |
19 | - | ||
20 | - | let i = true | |
21 | - | ||
22 | - | let j = $Tuple4("OPEN", "CLOSED", "REWARDED", "CANCELED") | |
23 | - | ||
24 | - | let k = base58'3MvjAaDYHpS4A5K4CV3kZMMEH9m9JdBSvbq' | |
25 | - | ||
26 | - | func l (m) = { | |
27 | - | let n = assetInfo(m) | |
28 | - | if ($isInstanceOf(n, "Asset")) | |
29 | - | then { | |
30 | - | let o = n | |
31 | - | if (if ((o.decimals == 0)) | |
32 | - | then (o.quantity == 1) | |
33 | - | else false) | |
34 | - | then (o.reissuable == false) | |
35 | - | else false | |
36 | - | } | |
37 | - | else false | |
38 | - | } | |
39 | - | ||
40 | - | ||
41 | - | @Callable(p) | |
42 | - | func setPaused (q) = { | |
43 | - | let r = p.caller.bytes | |
44 | - | if ((q == "true")) | |
45 | - | then [StringEntry(q, ("true" + q))] | |
46 | - | else if ((i == false)) | |
47 | - | then [StringEntry(q, ("false" + q))] | |
48 | - | else nil | |
8 | + | @Callable(c) | |
9 | + | func asimiTransfer (d) = { | |
10 | + | let e = c.caller.bytes | |
11 | + | let f = fromBase58String(d) | |
12 | + | let g = c.payments[0].amount | |
13 | + | [IntegerEntry((toBase58String(e) + "_transfer"), g), StringEntry((toBase58String(e) + "_transfer_to"), d), ScriptTransfer(Address(f), g, a)] | |
49 | 14 | } | |
50 | 15 | ||
51 | 16 | ||
52 | 17 | ||
53 | - | @Callable(p) | |
54 | - | func createNft (q,s,t,u,v,w,x,y,z,A) = { | |
55 | - | let B = Issue(s, y, 1, 0, false) | |
56 | - | let C = calculateAssetId(B) | |
57 | - | let D = p.transactionId | |
58 | - | if ((q == "true")) | |
59 | - | then throw("function is paused for sometimes") | |
60 | - | else [B, ScriptTransfer(p.caller, 1, C), StringEntry(((toBase58String(C) + a) + "Owner"), toString(p.caller)), StringEntry(((toBase58String(C) + a) + "nft_type"), v), StringEntry(((toBase58String(C) + a) + "nft_tags"), w), StringEntry(((toBase58String(C) + a) + "nft_dAppAddress"), u), IntegerEntry(((toBase58String(C) + a) + "nft_selling_price"), x), StringEntry(((toBase58String(C) + a) + "nft_onSell"), z), StringEntry(((toBase58String(C) + a) + "nft_data"), A), StringEntry(((toBase58String(D) + a) + "issue_nft"), toBase58String(C))] | |
18 | + | @Callable(c) | |
19 | + | func wavesTransfer (d) = { | |
20 | + | let e = c.caller.bytes | |
21 | + | let f = fromBase58String(d) | |
22 | + | let g = c.payments[0].amount | |
23 | + | [IntegerEntry((toBase58String(e) + "_transfer"), g), StringEntry((toBase58String(e) + "_transfer_to"), d), ScriptTransfer(Address(f), g, unit)] | |
61 | 24 | } | |
62 | 25 | ||
63 | 26 |
github/deemru/w8io/026f985 21.23 ms ◑