tx · 7X4ZbTvZzPEyZbQV5sX7pk5ydzTf6qjfJxK9NfsQ5BL9 3NBYw8rxLmTvyEdsvaYor8nHG6GJ4NjB2Aw: -0.01000000 Waves 2023.02.27 14:03 [2468034] smart account 3NBYw8rxLmTvyEdsvaYor8nHG6GJ4NjB2Aw > SELF 0.00000000 Waves
{ "type": 13, "id": "7X4ZbTvZzPEyZbQV5sX7pk5ydzTf6qjfJxK9NfsQ5BL9", "fee": 1000000, "feeAssetId": null, "timestamp": 1677496000431, "version": 2, "chainId": 84, "sender": "3NBYw8rxLmTvyEdsvaYor8nHG6GJ4NjB2Aw", "senderPublicKey": "4NDsd3dGKXuKLCoSbYvcWCX276K9ShP75cs9HTBMLJEN", "proofs": [ "2kRbCoxDR1PsBppr81nHAYSMqrqnmDSQdg9KUUaiRX1XHXuGpBpKUyat5Awp4VnBwCyvuiWCjwe77FAE6g2GuUkC" ], "script": "base64:BgIHCAISAwoBCAIABXRlYW1zASCFY5Wj84iOsN4MF44ITr+aP5K7Jts66HaOFtwUIipIfgAFV0FWRVMBAAEBaQENYXNpbWlUcmFuc2ZlcgENcmVjZXBpZW50QWRkcgQGY2FsbGVyCAgFAWkGY2FsbGVyBWJ5dGVzBAdyZWNpdmVyCQDZBAEFDXJlY2VwaWVudEFkZHIEBmFtb3VudAgJAJEDAggFAWkIcGF5bWVudHMAAAZhbW91bnQEEXJlY2VwaWVudF9wYXltZW50CQBoAgkAaQIFBmFtb3VudADoBwDPBwQMcGxhdGZvcm1fZmVlCQBoAgkAaQIFBmFtb3VudADoBwAZCQDMCAIJAQxJbnRlZ2VyRW50cnkCCQCsAgIJANgEAQUGY2FsbGVyAglfdHJhbnNmZXIFBmFtb3VudAkAzAgCCQELU3RyaW5nRW50cnkCAgxwbGF0Zm9ybV9mZWUJAKQDAQUMcGxhdGZvcm1fZmVlCQDMCAIJAQtTdHJpbmdFbnRyeQIJAKwCAgkA2AQBBQZjYWxsZXICDF90cmFuc2Zlcl90bwUNcmVjZXBpZW50QWRkcgkAzAgCCQEOU2NyaXB0VHJhbnNmZXIDCQEHQWRkcmVzcwEFB3JlY2l2ZXIFEXJlY2VwaWVudF9wYXltZW50BQR1bml0BQNuaWwAJUvjzw==", "height": 2468034, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8xJoa4kK1gpcJYi8QjgXasuUDAJE6oEpTzKKmdiStmXh Next: 683QPBqnFVeVoogWCR1EYbD2PNR95jnasSiaxdbAgT7R Diff:
Old | New | Differences | |
---|---|---|---|
6 | 6 | let b = base58'' | |
7 | 7 | ||
8 | 8 | @Callable(c) | |
9 | - | func | |
9 | + | func asimiTransfer (d) = { | |
10 | 10 | let e = c.caller.bytes | |
11 | 11 | let f = fromBase58String(d) | |
12 | 12 | let g = c.payments[0].amount | |
13 | 13 | let h = ((g / 1000) * 975) | |
14 | 14 | let i = ((g / 1000) * 25) | |
15 | - | if ((c.payments[0].assetId == unit)) | |
16 | - | then [IntegerEntry((toBase58String(e) + "_transfer"), g), StringEntry("platform_fee", toString(i)), StringEntry((toBase58String(e) + "_transfer_to"), d), ScriptTransfer(Address(f), h, unit)] | |
17 | - | else if ((c.payments[0].assetId == a)) | |
18 | - | then [IntegerEntry((toBase58String(e) + "_transfer"), g), StringEntry("platform_fee", toString(i)), StringEntry((toBase58String(e) + "_transfer_to"), d), ScriptTransfer(Address(f), h, a)] | |
19 | - | else nil | |
15 | + | [IntegerEntry((toBase58String(e) + "_transfer"), g), StringEntry("platform_fee", toString(i)), StringEntry((toBase58String(e) + "_transfer_to"), d), ScriptTransfer(Address(f), h, unit)] | |
20 | 16 | } | |
21 | 17 | ||
22 | 18 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = base58'9yhJDfWjPpv6tFjWRD1AJyBQwausJf2ZdxzLn86Uknnq' | |
5 | 5 | ||
6 | 6 | let b = base58'' | |
7 | 7 | ||
8 | 8 | @Callable(c) | |
9 | - | func | |
9 | + | func asimiTransfer (d) = { | |
10 | 10 | let e = c.caller.bytes | |
11 | 11 | let f = fromBase58String(d) | |
12 | 12 | let g = c.payments[0].amount | |
13 | 13 | let h = ((g / 1000) * 975) | |
14 | 14 | let i = ((g / 1000) * 25) | |
15 | - | if ((c.payments[0].assetId == unit)) | |
16 | - | then [IntegerEntry((toBase58String(e) + "_transfer"), g), StringEntry("platform_fee", toString(i)), StringEntry((toBase58String(e) + "_transfer_to"), d), ScriptTransfer(Address(f), h, unit)] | |
17 | - | else if ((c.payments[0].assetId == a)) | |
18 | - | then [IntegerEntry((toBase58String(e) + "_transfer"), g), StringEntry("platform_fee", toString(i)), StringEntry((toBase58String(e) + "_transfer_to"), d), ScriptTransfer(Address(f), h, a)] | |
19 | - | else nil | |
15 | + | [IntegerEntry((toBase58String(e) + "_transfer"), g), StringEntry("platform_fee", toString(i)), StringEntry((toBase58String(e) + "_transfer_to"), d), ScriptTransfer(Address(f), h, unit)] | |
20 | 16 | } | |
21 | 17 | ||
22 | 18 |
github/deemru/w8io/169f3d6 30.16 ms ◑