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