tx · DiW3TagaiMbx7c1wnTqADunUQThscKpmdF9e1Hu2ny5F
3MqQhA21mw1UHWmdGMV9M9xQL1cpC93LF8o: -0.01000000 Waves
2022.04.27 14:36 [2026837] smart account 3MqQhA21mw1UHWmdGMV9M9xQL1cpC93LF8o > SELF 0.00000000 Waves
{
"type": 13,
"id": "DiW3TagaiMbx7c1wnTqADunUQThscKpmdF9e1Hu2ny5F",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1651059408132,
"version": 2,
"chainId": 84,
"sender": "3MqQhA21mw1UHWmdGMV9M9xQL1cpC93LF8o",
"senderPublicKey": "E3TwKTkJRoqHq8mpKDYP1GvftP8ECfnCUT5atXuMXq53",
"proofs": [
"2mX93PQcEkKyARbvVXk3UpLScQ83e3rPvGGcn8sSavTeAnGNzFC7YMN3McHP3BDAbj9gKiEuxofA7MDAAF7aDiM9"
],
"script": "base64:AAIFAAAAAAAAAAgIAhIECgIICAAAAAEBAAAAC2lzUGF5bWVudE9rAAAAAQAAAAFpBAAAABFhY2NlcHRhYmxlQXNzZXRJZAEAAAAgrZ1IFoWReWfvw0p6hpnR3VDpBUk85P5AREeM4YPEwvQDCQAAZgAAAAIAAAAAAAAPQkAJAAGQAAAAAQgFAAAAAWkAAAAIcGF5bWVudHMJAAACAAAAAQIAAAAUUGF5bWVudCBub3QgYXR0YWNoZWQEAAAAAXAJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAEAAAAByRtYXRjaDAIBQAAAAFwAAAAB2Fzc2V0SWQDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAACkJ5dGVWZWN0b3IEAAAAB2Fzc2V0SWQFAAAAByRtYXRjaDADCQAAAAAAAAIFAAAAB2Fzc2V0SWQFAAAAEWFjY2VwdGFibGVBc3NldElkCQAAZwAAAAIIBQAAAAFwAAAABmFtb3VudAAAAAAAAA9CQAcJAABnAAAAAggFAAAAAXAAAAAGYW1vdW50AAAAAAAAD0JAAAAAAQAAAAFpAQAAAAtjb29yZGluYXRlcwAAAAIAAAAEdmVyaQAAAAJ4eQQAAAAKY3VycmVudEtleQkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBAAAAAZ3YWxsZXQJAAEsAAAAAgkAASwAAAACCQABLAAAAAIFAAAACmN1cnJlbnRLZXkCAAAAAV8FAAAAAnh5AgAAAAJfYwQAAAAHaXNFbXB0eQkABB0AAAACBQAAAAR0aGlzBQAAAAZ3YWxsZXQDCQEAAAALaXNQYXltZW50T2sAAAABBQAAAAFpCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIFAAAABndhbGxldAUAAAAEdmVyaQUAAAADbmlsCQAAAgAAAAECAAAAHVdyb25nIHBheW1lbnQgYW1vdW50IG9yIGFzc2V0AAAAAFWh4DQ=",
"height": 2026837,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 5k5PqdfkH1QugWjRDaputAZC6jiFFfAfZn2HzDdGPUuM
Next: UBBBTCY1ZPVXyxpn12VjXXTjk48yYV4pUNvhMe7ArtK
Diff:
Old | New | | Differences |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | func a (b) = { |
---|
5 | 5 | | let c = base58'CgidgEMbCKXXErgJXVyZCFRaK8SBNA73Jg8mNXALtVKh' |
---|
6 | | - | if ((1000000 >= size(b.payments))) |
---|
| 6 | + | if ((1000000 > size(b.payments))) |
---|
7 | 7 | | then throw("Payment not attached") |
---|
8 | 8 | | else { |
---|
9 | 9 | | let d = b.payments[0] |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | func a (b) = { |
---|
5 | 5 | | let c = base58'CgidgEMbCKXXErgJXVyZCFRaK8SBNA73Jg8mNXALtVKh' |
---|
6 | | - | if ((1000000 >= size(b.payments))) |
---|
| 6 | + | if ((1000000 > size(b.payments))) |
---|
7 | 7 | | then throw("Payment not attached") |
---|
8 | 8 | | else { |
---|
9 | 9 | | let d = b.payments[0] |
---|
10 | 10 | | let e = d.assetId |
---|
11 | 11 | | if ($isInstanceOf(e, "ByteVector")) |
---|
12 | 12 | | then { |
---|
13 | 13 | | let f = e |
---|
14 | 14 | | if ((f == c)) |
---|
15 | 15 | | then (d.amount >= 1000000) |
---|
16 | 16 | | else false |
---|
17 | 17 | | } |
---|
18 | 18 | | else (d.amount >= 1000000) |
---|
19 | 19 | | } |
---|
20 | 20 | | } |
---|
21 | 21 | | |
---|
22 | 22 | | |
---|
23 | 23 | | @Callable(b) |
---|
24 | 24 | | func coordinates (g,h) = { |
---|
25 | 25 | | let i = toBase58String(b.caller.bytes) |
---|
26 | 26 | | let j = (((i + "_") + h) + "_c") |
---|
27 | 27 | | let k = getString(this, j) |
---|
28 | 28 | | if (a(b)) |
---|
29 | 29 | | then [StringEntry(j, g)] |
---|
30 | 30 | | else throw("Wrong payment amount or asset") |
---|
31 | 31 | | } |
---|
32 | 32 | | |
---|
33 | 33 | | |
---|