tx · 7ifC7Zpqm1hdNeRG4tMVadmqrB1yfKJXBowHtvpcZ9Ln
3N9cKCHp6ZLMgz7rRgF8Q8DEt8zbtd1Ht7F: -0.01000000 Waves
2023.01.25 08:45 [2420104] smart account 3N9cKCHp6ZLMgz7rRgF8Q8DEt8zbtd1Ht7F > SELF 0.00000000 Waves
{
"type": 13,
"id": "7ifC7Zpqm1hdNeRG4tMVadmqrB1yfKJXBowHtvpcZ9Ln",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1674625634183,
"version": 2,
"chainId": 84,
"sender": "3N9cKCHp6ZLMgz7rRgF8Q8DEt8zbtd1Ht7F",
"senderPublicKey": "3V22YUj3GF4AeBxdWx8rgGdG4groE4W6P2s4sAkshe7R",
"proofs": [
"YDDjyfxk1iCvKeiRwRdqqRTtvpvCb9xvaPkCffdUwW5JLhfQLmvPEGq1tyg3mZPGzEABQLWfivsaUEd49x5hU9F"
],
"script": "base64:BgIICAISBAoCCAgLAAlzZXBhcmF0b3ICAV8ABGtCdXkCA2J1eQAGa1ByaWNlAgVwcmljZQAFa1NlbGwCBHNlbGwABXRlYW1zASCFY5Wj84iOsN4MF44ITr+aP5K7Jts66HaOFtwUIipIfgAFV0FWRVMBAAASbWF4QXVjdGlvbkR1cmF0aW9uAAcABGtCaWQCA2JpZAAMc3RhdHVzRm9yTkZUCQCWCgQCBE9QRU4CBkNMT1NFRAIIUkVXQVJERUQCCENBTkNFTEVEAAtkQXBwQWRkcmVzcwEaAVRKuE9s3sLak+30julKNvjVT3+V1VVbXaABBWlzTmZ0AQdhc3NldElkBAckbWF0Y2gwCQDsBwEFB2Fzc2V0SWQDCQABAgUHJG1hdGNoMAIFQXNzZXQEBXRva2VuBQckbWF0Y2gwAwMJAAACCAUFdG9rZW4IZGVjaW1hbHMAAAkAAAIIBQV0b2tlbghxdWFudGl0eQABBwkAAAIIBQV0b2tlbgpyZWlzc3VhYmxlBwcHAQFpARJtYW51YWxGdW5kVHJhbnNmZXICDXJlY2VwaWVudEFkZHIHbWVzc2FnZQQGY2FsbGVyCAgFAWkGY2FsbGVyBWJ5dGVzBAdyZWNpdmVyCQDZBAEFDXJlY2VwaWVudEFkZHIEBmFtb3VudAgJAJEDAggFAWkIcGF5bWVudHMAAAZhbW91bnQDCQAAAgkApAMBBQZhbW91bnQCAAkAAgECIFBheW1lbnQgaXMgbm90IGF0dGFjaGVkIG9yIGVtcHR5AwkAAAIJAKQDAQUGYW1vdW50AgVXQVZFUwkAzAgCCQEMSW50ZWdlckVudHJ5AgkArAICCQDYBAEFBmNhbGxlcgIJX3RyYW5zZmVyBQZhbW91bnQJAMwIAgkBC1N0cmluZ0VudHJ5AgkArAICCQDYBAEFBmNhbGxlcgIMX3RyYW5zZmVyX3RvBQ1yZWNlcGllbnRBZGRyCQDMCAIJAQ5TY3JpcHRUcmFuc2ZlcgMJAQdBZGRyZXNzAQUHcmVjaXZlcgUGYW1vdW50BQR1bml0BQNuaWwJAMwIAgkBDEludGVnZXJFbnRyeQIJAKwCAgkA2AQBBQZjYWxsZXICCV90cmFuc2ZlcgUGYW1vdW50CQDMCAIJAQtTdHJpbmdFbnRyeQIJAKwCAgkA2AQBBQZjYWxsZXICDF90cmFuc2Zlcl90bwUNcmVjZXBpZW50QWRkcgkAzAgCCQEOU2NyaXB0VHJhbnNmZXIDCQEHQWRkcmVzcwEFB3JlY2l2ZXIFBmFtb3VudAUFdGVhbXMFA25pbADapXod",
"height": 2420104,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 2enx3TqAnFVefz5P4fy96NpVa8vwVqXPjo9SM9PhSc4W
Next: BB3RPJH8zHwmdRrJ58uVmvV7AkCHwyZJyfLQyEFX9qho
Diff:
Old | New | | Differences |
---|
11 | 11 | | |
---|
12 | 12 | | let teams = base58'9yhJDfWjPpv6tFjWRD1AJyBQwausJf2ZdxzLn86Uknnq' |
---|
13 | 13 | | |
---|
14 | | - | let waves = base58'' |
---|
| 14 | + | let WAVES = base58'' |
---|
15 | 15 | | |
---|
16 | 16 | | let maxAuctionDuration = 7 |
---|
17 | 17 | | |
---|
|
40 | 40 | | let amount = i.payments[0].amount |
---|
41 | 41 | | if ((toString(amount) == "")) |
---|
42 | 42 | | then throw("Payment is not attached or empty") |
---|
43 | | - | else if ((toString(amount) == "waves")) |
---|
| 43 | + | else if ((toString(amount) == "WAVES")) |
---|
44 | 44 | | then [IntegerEntry((toBase58String(caller) + "_transfer"), amount), StringEntry((toBase58String(caller) + "_transfer_to"), recepientAddr), ScriptTransfer(Address(reciver), amount, unit)] |
---|
45 | 45 | | else [IntegerEntry((toBase58String(caller) + "_transfer"), amount), StringEntry((toBase58String(caller) + "_transfer_to"), recepientAddr), ScriptTransfer(Address(reciver), amount, teams)] |
---|
46 | 46 | | } |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 6 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let separator = "_" |
---|
5 | 5 | | |
---|
6 | 6 | | let kBuy = "buy" |
---|
7 | 7 | | |
---|
8 | 8 | | let kPrice = "price" |
---|
9 | 9 | | |
---|
10 | 10 | | let kSell = "sell" |
---|
11 | 11 | | |
---|
12 | 12 | | let teams = base58'9yhJDfWjPpv6tFjWRD1AJyBQwausJf2ZdxzLn86Uknnq' |
---|
13 | 13 | | |
---|
14 | | - | let waves = base58'' |
---|
| 14 | + | let WAVES = base58'' |
---|
15 | 15 | | |
---|
16 | 16 | | let maxAuctionDuration = 7 |
---|
17 | 17 | | |
---|
18 | 18 | | let kBid = "bid" |
---|
19 | 19 | | |
---|
20 | 20 | | let statusForNFT = $Tuple4("OPEN", "CLOSED", "REWARDED", "CANCELED") |
---|
21 | 21 | | |
---|
22 | 22 | | let dAppAddress = base58'3MvjAaDYHpS4A5K4CV3kZMMEH9m9JdBSvbq' |
---|
23 | 23 | | |
---|
24 | 24 | | func isNft (assetId) = match assetInfo(assetId) { |
---|
25 | 25 | | case token: Asset => |
---|
26 | 26 | | if (if ((token.decimals == 0)) |
---|
27 | 27 | | then (token.quantity == 1) |
---|
28 | 28 | | else false) |
---|
29 | 29 | | then (token.reissuable == false) |
---|
30 | 30 | | else false |
---|
31 | 31 | | case _ => |
---|
32 | 32 | | false |
---|
33 | 33 | | } |
---|
34 | 34 | | |
---|
35 | 35 | | |
---|
36 | 36 | | @Callable(i) |
---|
37 | 37 | | func manualFundTransfer (recepientAddr,message) = { |
---|
38 | 38 | | let caller = i.caller.bytes |
---|
39 | 39 | | let reciver = fromBase58String(recepientAddr) |
---|
40 | 40 | | let amount = i.payments[0].amount |
---|
41 | 41 | | if ((toString(amount) == "")) |
---|
42 | 42 | | then throw("Payment is not attached or empty") |
---|
43 | | - | else if ((toString(amount) == "waves")) |
---|
| 43 | + | else if ((toString(amount) == "WAVES")) |
---|
44 | 44 | | then [IntegerEntry((toBase58String(caller) + "_transfer"), amount), StringEntry((toBase58String(caller) + "_transfer_to"), recepientAddr), ScriptTransfer(Address(reciver), amount, unit)] |
---|
45 | 45 | | else [IntegerEntry((toBase58String(caller) + "_transfer"), amount), StringEntry((toBase58String(caller) + "_transfer_to"), recepientAddr), ScriptTransfer(Address(reciver), amount, teams)] |
---|
46 | 46 | | } |
---|
47 | 47 | | |
---|
48 | 48 | | |
---|