tx · 3sSDD33ikyJCCm2jSMudJZ7GsqPyzZBW4veLoSpdWyYZ 3N3HcmfU1kxFj1x7PdZNnGZhGRELxC9gVbr: -0.01400000 Waves 2021.01.05 14:27 [1340028] smart account 3N3HcmfU1kxFj1x7PdZNnGZhGRELxC9gVbr > SELF 0.00000000 Waves
{ "type": 13, "id": "3sSDD33ikyJCCm2jSMudJZ7GsqPyzZBW4veLoSpdWyYZ", "fee": 1400000, "feeAssetId": null, "timestamp": 1609846036549, "version": 2, "chainId": 84, "sender": "3N3HcmfU1kxFj1x7PdZNnGZhGRELxC9gVbr", "senderPublicKey": "CdPKZLUm4NiopSyscAvon7a9kzDkN2DomZqxEo1ba9ox", "proofs": [ "2Vuhgz19Hqqv2jiHe9eTVS2PCgdeE6GiRJLGnmw3M4nYtwUEZ6hVSJNYSfRJkpyW7bbti3DgpUHpaFdehWRafFnU", "3G31EXHTj4fqe9A1mmcb6gGSmUfbgKTuiCqzZcQ1BcQBZBL4oq3o4KuwmmmB3CPUJuJqrQ7CZ5pCg8SVeDqcgWYk" ], "script": "base64:BAQAAAALZGlnaWxpcmFQYXkBAAAAID0HOFHYXYpCB2C8RjDY8m3ndBlb8WihoYLw1tvHVwgrBAAAAAxzcG9uc29yVG9rZW4BAAAAIF0xC+0nwtqd1CxX9Y/+nUsawhMMb0TR82Wj5My6EPg+BAAAAAxwYXltZW50VG9rZW4BAAAAINUa1XJy5UC96rHuuRV8oDs9miGKfVUIoeiwBqYZd/niBAAAAApwcm94eVdhdmVzAQAAACALvZdwHed5WebRs21jKDRN9242fzutjnj6yaz93a9NdwQAAAAGYmFubmVkAAAAAAAABiY4BAAAAApLWUNQZW5kaW5nAAAAAAAAAAAABAAAAA10cmFuc2ZlckJsb2NrAAAAAAAAAABkBAAAAAxwYXltZW50QmxvY2sAAAAAAAAAAMgEAAAACWZ1bmRCbG9jawAAAAAAAAABLAQAAAAQcGF5bWVudEZ1bmRCbG9jawAAAAAAAAABkAQAAAAKdXBwZXJCbG9jaw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ZpbmVkAAAAAQUAAAAIZmVlVG9rZW4DCQAAAAAAAAIFAAAACGZlZVRva2VuBQAAAAxzcG9uc29yVG9rZW4JAAACAAAAAQIAAAA7Q2Fubm90IHVzZSB0aGlzIHRva2VuIGZvciBub25lIERpZ2lsaXJhUGF5IHVzZXJzIHRyYW5zZmVycy4DCQAAAAAAAAIFAAAACGZlZVRva2VuBQAAAAxwYXltZW50VG9rZW4JAAACAAAAAQIAAAA2VW5mb3J0dW5hdGVseSB5b3UgY2FuIG9ubHkgdXNlIHRoaXMgdG9rZW4gZm9yIHBheW1lbnRzBgYDAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAVPcmRlcgYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAEExlYXNlVHJhbnNhY3Rpb24GCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAD0J1cm5UcmFuc2FjdGlvbgQAAAABeAUAAAAHJG1hdGNoMAcDAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAA9EYXRhVHJhbnNhY3Rpb24GAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNFeGNoYW5nZVRyYW5zYWN0aW9uBgkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABRTZXRTY3JpcHRUcmFuc2FjdGlvbgQAAAABdAUAAAAHJG1hdGNoMAkAAfQAAAADCAUAAAABdAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAXQAAAAGcHJvb2ZzAAAAAAAAAAABBQAAAAtkaWdpbGlyYVBheQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAXTWFzc1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAA210dAUAAAAHJG1hdGNoMAcGnlaTmw==", "height": 1340028, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5kfijHSdfGWcdjiUPY3FMaLnM6y6ngBHMJgEc9SAGr6f Next: 7h9V9gezoiHv6SBeLyDVbcYGuZSBQZK9JRZsZFeZYQGf Diff:
Old | New | Differences | |
---|---|---|---|
65 | 65 | then true | |
66 | 66 | else throw("This asset has special requirements 1") | |
67 | 67 | else true | |
68 | - | else if (isDefined(feeToken)) | |
69 | - | then if ((feeToken == sponsorToken)) | |
70 | - | then throw("Cannot use this token for none DigiliraPay users transfers.") | |
71 | - | else if ((feeToken == paymentToken)) | |
72 | - | then throw("Unfortunately you can only use this token for payments") | |
73 | - | else true | |
74 | - | else true | |
68 | + | else if (isDefined(isAsset)) | |
69 | + | then throw("cant transfer") | |
70 | + | else if (isDefined(feeToken)) | |
71 | + | then if ((feeToken == sponsorToken)) | |
72 | + | then throw("Cannot use this token for none DigiliraPay users transfers.") | |
73 | + | else if ((feeToken == paymentToken)) | |
74 | + | then throw("Unfortunately you can only use this token for payments") | |
75 | + | else true | |
76 | + | else true | |
75 | 77 | case x: Order|LeaseTransaction|BurnTransaction => | |
76 | 78 | false | |
77 | 79 | case t: DataTransaction|ExchangeTransaction|SetScriptTransaction => |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# CONTENT_TYPE EXPRESSION #-} | |
3 | 3 | let digiliraPay = base58'57EFni8M1XesEurFh3c4jnpLExP2PCPd5TRrwMjePAT4' | |
4 | 4 | let sponsorToken = base58'7GnHzTaDe3YbDiCD9rueHiSfPB7hdanPpN4Ab79fJGtD' | |
5 | 5 | let paymentToken = base58'FLsa9hfu1jvXC6jhDP2x6DHHQHK2qiKPtS7D74ZFNsE1' | |
6 | 6 | let proxyWaves = base58'nqAJcPZzdav7orQg3U78Nno2eF4J9bmeBbU2WtPaYkv' | |
7 | 7 | let banned = 403000 | |
8 | 8 | let KYCPending = 0 | |
9 | 9 | let transferBlock = 100 | |
10 | 10 | let paymentBlock = 200 | |
11 | 11 | let fundBlock = 300 | |
12 | 12 | let paymentFundBlock = 400 | |
13 | 13 | let upperBlock = 500 | |
14 | 14 | match tx { | |
15 | 15 | case w: TransferTransaction => | |
16 | 16 | let myStatus = getInteger(addressFromPublicKey(digiliraPay), toBase58String(w.sender.bytes)) | |
17 | 17 | let isUser = getInteger(addressFromPublicKey(digiliraPay), toBase58String(addressFromRecipient(w.recipient).bytes)) | |
18 | 18 | let feeToken = w.feeAssetId | |
19 | 19 | let feeAmount = w.fee | |
20 | 20 | let asset = valueOrElse(w.assetId, proxyWaves) | |
21 | 21 | let isAsset = getInteger(addressFromPublicKey(digiliraPay), toBase58String(asset)) | |
22 | 22 | if (isDefined(isUser)) | |
23 | 23 | then if (isDefined(feeToken)) | |
24 | 24 | then if ((feeToken == sponsorToken)) | |
25 | 25 | then if (isDefined(isAsset)) | |
26 | 26 | then if ((isAsset == banned)) | |
27 | 27 | then throw("Can not transfer this asset 1") | |
28 | 28 | else if ((valueOrElse(isUser, 0) >= valueOrElse(isAsset, banned))) | |
29 | 29 | then true | |
30 | 30 | else throw("Can not transfer this asset 1") | |
31 | 31 | else true | |
32 | 32 | else if ((feeToken == paymentToken)) | |
33 | 33 | then if ((w.recipient == addressFromPublicKey(digiliraPay))) | |
34 | 34 | then if ((myStatus == KYCPending)) | |
35 | 35 | then throw("KYC Pending") | |
36 | 36 | else if ((myStatus == banned)) | |
37 | 37 | then throw("Account Banned Can't Operate") | |
38 | 38 | else if ((feeAmount > 10)) | |
39 | 39 | then throw("Not Allowed") | |
40 | 40 | else if ((isAsset == banned)) | |
41 | 41 | then throw("Can not transfer this asset 3") | |
42 | 42 | else if (if (if ((valueOrElse(isAsset, banned) >= paymentBlock)) | |
43 | 43 | then (fundBlock >= valueOrElse(isAsset, banned)) | |
44 | 44 | else false) | |
45 | 45 | then true | |
46 | 46 | else if ((valueOrElse(isAsset, banned) >= paymentFundBlock)) | |
47 | 47 | then (upperBlock >= valueOrElse(isAsset, banned)) | |
48 | 48 | else false) | |
49 | 49 | then if ((valueOrElse(isUser, 0) >= valueOrElse(isAsset, banned))) | |
50 | 50 | then true | |
51 | 51 | else throw("This asset has special requirements 2") | |
52 | 52 | else throw("Can not transfer this asset 4") | |
53 | 53 | else throw("Unfortunately you can only use this token for payments") | |
54 | 54 | else if (isDefined(isAsset)) | |
55 | 55 | then if ((isAsset == banned)) | |
56 | 56 | then throw("Can not transfer this asset 5") | |
57 | 57 | else if ((valueOrElse(myStatus, 0) >= valueOrElse(isAsset, banned))) | |
58 | 58 | then true | |
59 | 59 | else throw("This asset has special requirements 2") | |
60 | 60 | else true | |
61 | 61 | else if (isDefined(isAsset)) | |
62 | 62 | then if ((valueOrElse(isAsset, 0) == banned)) | |
63 | 63 | then throw("Can not transfer this asset") | |
64 | 64 | else if ((valueOrElse(isUser, 0) >= valueOrElse(isAsset, banned))) | |
65 | 65 | then true | |
66 | 66 | else throw("This asset has special requirements 1") | |
67 | 67 | else true | |
68 | - | else if (isDefined(feeToken)) | |
69 | - | then if ((feeToken == sponsorToken)) | |
70 | - | then throw("Cannot use this token for none DigiliraPay users transfers.") | |
71 | - | else if ((feeToken == paymentToken)) | |
72 | - | then throw("Unfortunately you can only use this token for payments") | |
73 | - | else true | |
74 | - | else true | |
68 | + | else if (isDefined(isAsset)) | |
69 | + | then throw("cant transfer") | |
70 | + | else if (isDefined(feeToken)) | |
71 | + | then if ((feeToken == sponsorToken)) | |
72 | + | then throw("Cannot use this token for none DigiliraPay users transfers.") | |
73 | + | else if ((feeToken == paymentToken)) | |
74 | + | then throw("Unfortunately you can only use this token for payments") | |
75 | + | else true | |
76 | + | else true | |
75 | 77 | case x: Order|LeaseTransaction|BurnTransaction => | |
76 | 78 | false | |
77 | 79 | case t: DataTransaction|ExchangeTransaction|SetScriptTransaction => | |
78 | 80 | sigVerify(t.bodyBytes, t.proofs[1], digiliraPay) | |
79 | 81 | case mtt: MassTransferTransaction => | |
80 | 82 | false | |
81 | 83 | case _ => | |
82 | 84 | true | |
83 | 85 | } |
github/deemru/w8io/169f3d6 32.44 ms ◑