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