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/niBAAAAAZiYW5uZWQAAAAAAAAGJjgEAAAACktZQ1BlbmRpbmcAAAAAAAAAAAAEAAAADXRyYW5zZmVyQmxvY2sAAAAAAAAAAGQEAAAADHBheW1lbnRCbG9jawAAAAAAAAAAyAQAAAAJZnVuZEJsb2NrAAAAAAAAAAEsBAAAABBwYXltZW50RnVuZEJsb2NrAAAAAAAAAAGQBAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATVHJhbnNmZXJUcmFuc2FjdGlvbgQAAA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667eH Next: GLE2YhFVnbpNhQ2o65fTe7iZL18dUmatcDaQUVBHdt2C Diff:
OldNewDifferences
33 let digiliraPay = base58'57EFni8M1XesEurFh3c4jnpLExP2PCPd5TRrwMjePAT4'
44 let sponsorToken = base58'7GnHzTaDe3YbDiCD9rueHiSfPB7hdanPpN4Ab79fJGtD'
55 let paymentToken = base58'FLsa9hfu1jvXC6jhDP2x6DHHQHK2qiKPtS7D74ZFNsE1'
6-let banned = 403
6+let banned = 403000
77 let KYCPending = 0
8+let transferBlock = 100
9+let paymentBlock = 200
10+let fundBlock = 300
11+let paymentFundBlock = 400
812 match tx {
913 case w: TransferTransaction =>
1014 let myStatus = getInteger(addressFromPublicKey(digiliraPay), toBase58String(w.sender.bytes))
3842 then throw("Can not transfer this asset")
3943 else if ((valueOrElse(isUser, 0) >= valueOrElse(isAsset, banned)))
4044 then true
41- else throw("This asset has special requirements")
45+ else throw("This asset has special requirements 2")
4246 else true
4347 else if (isDefined(isAsset))
4448 then if ((valueOrElse(isAsset, 0) == banned))
4549 then throw("Can not transfer this asset")
4650 else if ((valueOrElse(isUser, 0) >= valueOrElse(isAsset, banned)))
4751 then true
48- else throw("This asset has special requirements")
52+ else throw("This asset has special requirements 1")
4953 else true
5054 else if (isDefined(feeToken))
5155 then if ((feeToken == sponsorToken))
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# CONTENT_TYPE EXPRESSION #-}
33 let digiliraPay = base58'57EFni8M1XesEurFh3c4jnpLExP2PCPd5TRrwMjePAT4'
44 let sponsorToken = base58'7GnHzTaDe3YbDiCD9rueHiSfPB7hdanPpN4Ab79fJGtD'
55 let paymentToken = base58'FLsa9hfu1jvXC6jhDP2x6DHHQHK2qiKPtS7D74ZFNsE1'
6-let banned = 403
6+let banned = 403000
77 let KYCPending = 0
8+let transferBlock = 100
9+let paymentBlock = 200
10+let fundBlock = 300
11+let paymentFundBlock = 400
812 match tx {
913 case w: TransferTransaction =>
1014 let myStatus = getInteger(addressFromPublicKey(digiliraPay), toBase58String(w.sender.bytes))
1115 let isUser = getInteger(addressFromPublicKey(digiliraPay), toBase58String(addressFromRecipient(w.recipient).bytes))
1216 let feeToken = w.feeAssetId
1317 let feeAmount = w.fee
1418 let asset = value(w.assetId)
1519 let isAsset = getInteger(addressFromPublicKey(digiliraPay), toBase58String(asset))
1620 if (isDefined(isUser))
1721 then if (isDefined(feeToken))
1822 then if ((feeToken == sponsorToken))
1923 then if (isDefined(isAsset))
2024 then if ((isAsset == banned))
2125 then throw("Can not transfer this asset")
2226 else if ((valueOrElse(isUser, 0) >= valueOrElse(isAsset, banned)))
2327 then true
2428 else true
2529 else throw(toBase58String(asset))
2630 else if ((feeToken == paymentToken))
2731 then if ((w.recipient == addressFromPublicKey(digiliraPay)))
2832 then if ((myStatus == KYCPending))
2933 then throw("KYC Pending")
3034 else if ((myStatus == banned))
3135 then throw("Account Banned")
3236 else if ((feeAmount > 10))
3337 then throw("Not Allowed")
3438 else true
3539 else throw("Unfortunately you can only use this token for payments")
3640 else if (isDefined(isAsset))
3741 then if ((isAsset == banned))
3842 then throw("Can not transfer this asset")
3943 else if ((valueOrElse(isUser, 0) >= valueOrElse(isAsset, banned)))
4044 then true
41- else throw("This asset has special requirements")
45+ else throw("This asset has special requirements 2")
4246 else true
4347 else if (isDefined(isAsset))
4448 then if ((valueOrElse(isAsset, 0) == banned))
4549 then throw("Can not transfer this asset")
4650 else if ((valueOrElse(isUser, 0) >= valueOrElse(isAsset, banned)))
4751 then true
48- else throw("This asset has special requirements")
52+ else throw("This asset has special requirements 1")
4953 else true
5054 else if (isDefined(feeToken))
5155 then if ((feeToken == sponsorToken))
5256 then throw("Cannot use this token for none DigiliraPay users transfers.")
5357 else if ((feeToken == paymentToken))
5458 then throw("Unfortunately you can only use this token for payments")
5559 else true
5660 else true
5761 case x: Order|LeaseTransaction|BurnTransaction =>
5862 false
5963 case t: DataTransaction|ExchangeTransaction|SetScriptTransaction =>
6064 sigVerify(t.bodyBytes, t.proofs[1], digiliraPay)
6165 case mtt: MassTransferTransaction =>
6266 false
6367 case _ =>
6468 true
6569 }

github/deemru/w8io/169f3d6 
45.11 ms