tx · 3oNCBFjQMnmTnunyA1kAQLWHBs86KukQmBBsa9WovEpd 3N9cKCHp6ZLMgz7rRgF8Q8DEt8zbtd1Ht7F: -0.01000000 Waves 2023.01.25 09:28 [2420145] smart account 3N9cKCHp6ZLMgz7rRgF8Q8DEt8zbtd1Ht7F > SELF 0.00000000 Waves
{ "type": 13, "id": "3oNCBFjQMnmTnunyA1kAQLWHBs86KukQmBBsa9WovEpd", "fee": 1000000, "feeAssetId": null, "timestamp": 1674628180320, "version": 2, "chainId": 84, "sender": "3N9cKCHp6ZLMgz7rRgF8Q8DEt8zbtd1Ht7F", "senderPublicKey": "3V22YUj3GF4AeBxdWx8rgGdG4groE4W6P2s4sAkshe7R", "proofs": [ "23NXaGNj6yJUk6fU8Cuzfm5eyBHdcxt192MFHqGrr3Y4EFVEkRX3Ng3HgNBLC4n9kJqoGyNZE4Hi8Do3jL3UuU7K" ], "script": "base64:BgIICAISBAoCCAgLAAlzZXBhcmF0b3ICAV8ABGtCdXkCA2J1eQAGa1ByaWNlAgVwcmljZQAFa1NlbGwCBHNlbGwABXRlYW1zASCFY5Wj84iOsN4MF44ITr+aP5K7Jts66HaOFtwUIipIfgAFV0FWRVMBAAASbWF4QXVjdGlvbkR1cmF0aW9uAAcABGtCaWQCA2JpZAAMc3RhdHVzRm9yTkZUCQCWCgQCBE9QRU4CBkNMT1NFRAIIUkVXQVJERUQCCENBTkNFTEVEAAtkQXBwQWRkcmVzcwEaAVRKuE9s3sLak+30julKNvjVT3+V1VVbXaABBWlzTmZ0AQdhc3NldElkBAckbWF0Y2gwCQDsBwEFB2Fzc2V0SWQDCQABAgUHJG1hdGNoMAIFQXNzZXQEBXRva2VuBQckbWF0Y2gwAwMJAAACCAUFdG9rZW4IZGVjaW1hbHMAAAkAAAIIBQV0b2tlbghxdWFudGl0eQABBwkAAAIIBQV0b2tlbgpyZWlzc3VhYmxlBwcHAQFpARJtYW51YWxGdW5kVHJhbnNmZXICDXJlY2VwaWVudEFkZHIHbWVzc2FnZQQGY2FsbGVyCAgFAWkGY2FsbGVyBWJ5dGVzBAdyZWNpdmVyCQDZBAEFDXJlY2VwaWVudEFkZHIEBmFtb3VudAgJAJEDAggFAWkIcGF5bWVudHMAAAZhbW91bnQDCQAAAgkApAMBCAkAkQMCCAUBaQhwYXltZW50cwAABmFtb3VudAIFdGVhbXMJAMwIAgkBDEludGVnZXJFbnRyeQIJAKwCAgkA2AQBBQZjYWxsZXICCV90cmFuc2ZlcgUGYW1vdW50CQDMCAIJAQtTdHJpbmdFbnRyeQIJAKwCAgkA2AQBBQZjYWxsZXICDF90cmFuc2Zlcl90bwUNcmVjZXBpZW50QWRkcgkAzAgCCQEOU2NyaXB0VHJhbnNmZXIDCQEHQWRkcmVzcwEFB3JlY2l2ZXIFBmFtb3VudAUFdGVhbXMFA25pbAkAzAgCCQEMSW50ZWdlckVudHJ5AgkArAICCQDYBAEFBmNhbGxlcgIJX3RyYW5zZmVyBQZhbW91bnQJAMwIAgkBC1N0cmluZ0VudHJ5AgkArAICCQDYBAEFBmNhbGxlcgIMX3RyYW5zZmVyX3RvBQ1yZWNlcGllbnRBZGRyCQDMCAIJAQ5TY3JpcHRUcmFuc2ZlcgMJAQdBZGRyZXNzAQUHcmVjaXZlcgUGYW1vdW50BQVXQVZFUwUDbmlsACXUTEQ=", "height": 2420145, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Hne5cTa2cRgMWwoBgsJv3tkLk9jUkpDURcu3XnBWV9af Next: Art9FffGceW1LGbuWwYPRnTywyMSNa4z66W9RxitxnBQ Diff:
Old | New | Differences | |
---|---|---|---|
41 | 41 | let r = o.caller.bytes | |
42 | 42 | let s = fromBase58String(p) | |
43 | 43 | let t = o.payments[0].amount | |
44 | - | if ((toString(t) == "")) | |
45 | - | then throw("Payment is not attached or empty") | |
46 | - | else if ((o.payments[0].assetId == f)) | |
47 | - | then [IntegerEntry((toBase58String(r) + "_transfer"), t), StringEntry((toBase58String(r) + "_transfer_to"), p), ScriptTransfer(Address(s), t, f)] | |
48 | - | else [IntegerEntry((toBase58String(r) + "_transfer"), t), StringEntry((toBase58String(r) + "_transfer_to"), p), ScriptTransfer(Address(s), t, e)] | |
44 | + | if ((toString(o.payments[0].amount) == "teams")) | |
45 | + | then [IntegerEntry((toBase58String(r) + "_transfer"), t), StringEntry((toBase58String(r) + "_transfer_to"), p), ScriptTransfer(Address(s), t, e)] | |
46 | + | else [IntegerEntry((toBase58String(r) + "_transfer"), t), StringEntry((toBase58String(r) + "_transfer_to"), p), ScriptTransfer(Address(s), t, f)] | |
49 | 47 | } | |
50 | 48 | ||
51 | 49 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "_" | |
5 | 5 | ||
6 | 6 | let b = "buy" | |
7 | 7 | ||
8 | 8 | let c = "price" | |
9 | 9 | ||
10 | 10 | let d = "sell" | |
11 | 11 | ||
12 | 12 | let e = base58'9yhJDfWjPpv6tFjWRD1AJyBQwausJf2ZdxzLn86Uknnq' | |
13 | 13 | ||
14 | 14 | let f = base58'' | |
15 | 15 | ||
16 | 16 | let g = 7 | |
17 | 17 | ||
18 | 18 | let h = "bid" | |
19 | 19 | ||
20 | 20 | let i = $Tuple4("OPEN", "CLOSED", "REWARDED", "CANCELED") | |
21 | 21 | ||
22 | 22 | let j = base58'3MvjAaDYHpS4A5K4CV3kZMMEH9m9JdBSvbq' | |
23 | 23 | ||
24 | 24 | func k (l) = { | |
25 | 25 | let m = assetInfo(l) | |
26 | 26 | if ($isInstanceOf(m, "Asset")) | |
27 | 27 | then { | |
28 | 28 | let n = m | |
29 | 29 | if (if ((n.decimals == 0)) | |
30 | 30 | then (n.quantity == 1) | |
31 | 31 | else false) | |
32 | 32 | then (n.reissuable == false) | |
33 | 33 | else false | |
34 | 34 | } | |
35 | 35 | else false | |
36 | 36 | } | |
37 | 37 | ||
38 | 38 | ||
39 | 39 | @Callable(o) | |
40 | 40 | func manualFundTransfer (p,q) = { | |
41 | 41 | let r = o.caller.bytes | |
42 | 42 | let s = fromBase58String(p) | |
43 | 43 | let t = o.payments[0].amount | |
44 | - | if ((toString(t) == "")) | |
45 | - | then throw("Payment is not attached or empty") | |
46 | - | else if ((o.payments[0].assetId == f)) | |
47 | - | then [IntegerEntry((toBase58String(r) + "_transfer"), t), StringEntry((toBase58String(r) + "_transfer_to"), p), ScriptTransfer(Address(s), t, f)] | |
48 | - | else [IntegerEntry((toBase58String(r) + "_transfer"), t), StringEntry((toBase58String(r) + "_transfer_to"), p), ScriptTransfer(Address(s), t, e)] | |
44 | + | if ((toString(o.payments[0].amount) == "teams")) | |
45 | + | then [IntegerEntry((toBase58String(r) + "_transfer"), t), StringEntry((toBase58String(r) + "_transfer_to"), p), ScriptTransfer(Address(s), t, e)] | |
46 | + | else [IntegerEntry((toBase58String(r) + "_transfer"), t), StringEntry((toBase58String(r) + "_transfer_to"), p), ScriptTransfer(Address(s), t, f)] | |
49 | 47 | } | |
50 | 48 | ||
51 | 49 |
github/deemru/w8io/169f3d6 37.48 ms ◑