tx · 8nVtXiwgnLk9Du9wyqRUDvv2Vrw1NUPqWNk4BcarnXPd
3MqQhA21mw1UHWmdGMV9M9xQL1cpC93LF8o: -0.01000000 Waves
2022.04.27 15:05 [2026867] smart account 3MqQhA21mw1UHWmdGMV9M9xQL1cpC93LF8o > SELF 0.00000000 Waves
{
"type": 13,
"id": "8nVtXiwgnLk9Du9wyqRUDvv2Vrw1NUPqWNk4BcarnXPd",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1651061170388,
"version": 2,
"chainId": 84,
"sender": "3MqQhA21mw1UHWmdGMV9M9xQL1cpC93LF8o",
"senderPublicKey": "E3TwKTkJRoqHq8mpKDYP1GvftP8ECfnCUT5atXuMXq53",
"proofs": [
"4FoEZCCPgp4U5gpvG2meQjBHVP6aXup8i7198dYYLhRwnLNMjuApe44gfAfsf4KB7sGnnYxMr2sxTfdMRs57EqgH"
],
"script": "base64:AAIFAAAAAAAAAAgIAhIECgIICAAAAAEBAAAAC2lzUGF5bWVudE9rAAAAAQAAAAFpBAAAABFhY2NlcHRhYmxlQXNzZXRJZAEAAAAgrZ1IFoWReWfvw0p6hpnR3VDpBUk85P5AREeM4YPEwvQDCQAAAAAAAAIJAAGQAAAAAQgFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAJAAACAAAAAQIAAAAUUGF5bWVudCBub3QgYXR0YWNoZWQEAAAAAXAJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAEAAAAByRtYXRjaDAIBQAAAAFwAAAAB2Fzc2V0SWQDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAACkJ5dGVWZWN0b3IEAAAAB2Fzc2V0SWQFAAAAByRtYXRjaDADCQAAAAAAAAIFAAAAB2Fzc2V0SWQFAAAAEWFjY2VwdGFibGVBc3NldElkCQAAAAAAAAIIBQAAAAFwAAAABmFtb3VudAAAAAAAAA9CQAcJAAACAAAAAQIAAAATV3JvbmcgcGF5bWVudCBhc3NldAAAAAEAAAABaQEAAAALY29vcmRpbmF0ZXMAAAACAAAABHZlcmkAAAACeHkEAAAABnBpeGVscwEAAAAgLTcTgdMkN12f4W9209EPk+8sLPTdia1cSlbofMkBchsEAAAACmN1cnJlbnRLZXkJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAAGd2FsbGV0CQABLAAAAAIJAAEsAAAAAgkAASwAAAACBQAAAApjdXJyZW50S2V5AgAAAAFfBQAAAAJ4eQIAAAACX2MEAAAAB2lzRW1wdHkJAAQdAAAAAgUAAAAEdGhpcwUAAAAGd2FsbGV0AwkBAAAAC2lzUGF5bWVudE9rAAAAAQUAAAABaQkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACBQAAAAZ3YWxsZXQFAAAABHZlcmkJAARMAAAAAgkBAAAAB1JlaXNzdWUAAAADBQAAAAZwaXhlbHMAAAAAAAX14QAGBQAAAANuaWwJAAACAAAAAQIAAAAdV3JvbmcgcGF5bWVudCBhbW91bnQgb3IgYXNzZXQAAAAAbuSHYg==",
"height": 2026867,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 7zAAWgQAZUaxCn5zcSgUvLCBd5mKooM2EwyLvqehvkdN
Next: FcN3ewuPpMj5Umtd3kYhm8mbzQoFu3j6TiG3akEb2wqE
Diff:
Old | New | | Differences |
---|
21 | 21 | | |
---|
22 | 22 | | @Callable(i) |
---|
23 | 23 | | func coordinates (veri,xy) = { |
---|
| 24 | + | let pixels = base58'43W4FcqA1rEpSmUGHoGiXvpSLfhadws9LS5j3SJsKxxS' |
---|
24 | 25 | | let currentKey = toBase58String(i.caller.bytes) |
---|
25 | 26 | | let wallet = (((currentKey + "_") + xy) + "_c") |
---|
26 | 27 | | let isEmpty = getString(this, wallet) |
---|
27 | 28 | | if (isPaymentOk(i)) |
---|
28 | | - | then [StringEntry(wallet, veri)] |
---|
| 29 | + | then [StringEntry(wallet, veri), Reissue(pixels, 100000000, true)] |
---|
29 | 30 | | else throw("Wrong payment amount or asset") |
---|
30 | 31 | | } |
---|
31 | 32 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | func isPaymentOk (i) = { |
---|
5 | 5 | | let acceptableAssetId = base58'CgidgEMbCKXXErgJXVyZCFRaK8SBNA73Jg8mNXALtVKh' |
---|
6 | 6 | | if ((size(i.payments) == 0)) |
---|
7 | 7 | | then throw("Payment not attached") |
---|
8 | 8 | | else { |
---|
9 | 9 | | let p = i.payments[0] |
---|
10 | 10 | | match p.assetId { |
---|
11 | 11 | | case assetId: ByteVector => |
---|
12 | 12 | | if ((assetId == acceptableAssetId)) |
---|
13 | 13 | | then (p.amount == 1000000) |
---|
14 | 14 | | else false |
---|
15 | 15 | | case _ => |
---|
16 | 16 | | throw("Wrong payment asset") |
---|
17 | 17 | | } |
---|
18 | 18 | | } |
---|
19 | 19 | | } |
---|
20 | 20 | | |
---|
21 | 21 | | |
---|
22 | 22 | | @Callable(i) |
---|
23 | 23 | | func coordinates (veri,xy) = { |
---|
| 24 | + | let pixels = base58'43W4FcqA1rEpSmUGHoGiXvpSLfhadws9LS5j3SJsKxxS' |
---|
24 | 25 | | let currentKey = toBase58String(i.caller.bytes) |
---|
25 | 26 | | let wallet = (((currentKey + "_") + xy) + "_c") |
---|
26 | 27 | | let isEmpty = getString(this, wallet) |
---|
27 | 28 | | if (isPaymentOk(i)) |
---|
28 | | - | then [StringEntry(wallet, veri)] |
---|
| 29 | + | then [StringEntry(wallet, veri), Reissue(pixels, 100000000, true)] |
---|
29 | 30 | | else throw("Wrong payment amount or asset") |
---|
30 | 31 | | } |
---|
31 | 32 | | |
---|
32 | 33 | | |
---|