tx · E1xZGc2XgTUvRHF92TPa6tR3upNpEZou7hrYJwNe8Cbu

3N3JpthsbxKMqVpDA6tpoE8Z1ZZiLnQhQB2:  -0.01400000 Waves

2021.01.12 14:38 [1350190] smart account 3N3JpthsbxKMqVpDA6tpoE8Z1ZZiLnQhQB2 > SELF 0.00000000 Waves

{ "type": 13, "id": "E1xZGc2XgTUvRHF92TPa6tR3upNpEZou7hrYJwNe8Cbu", "fee": 1400000, "feeAssetId": null, "timestamp": 1610451555000, "version": 1, "sender": "3N3JpthsbxKMqVpDA6tpoE8Z1ZZiLnQhQB2", "senderPublicKey": "6hzQgH5AzZrYdyBQJYRypWDTJ2enJKA9HqTKPiyv73e6", "proofs": [ "yNZuRoE3v44HRF3P2ycDYQyRW2LjtPGPZuhpcXnDXNC1AhVm6tdRhd5BVEzQDqGchp6Luf1cMxRsCFegG6q4Car" ], "script": "base64:BAQAAAALZGlnaWxpcmFQYXkBAAAAID0HOFHYXYpCB2C8RjDY8m3ndBlb8WihoYLw1tvHVwgrBAAAAAxzcG9uc29yVG9rZW4BAAAAIF0xC+0nwtqd1CxX9Y/+nUsawhMMb0TR82Wj5My6EPg+BAAAAAxwYXltZW50VG9rZW4BAAAAINUa1XJy5UC96rHuuRV8oDs9miGKfVUIoeiwBqYZd/niBAAAAApwcm94eVdhdmVzAQAAACALvZdwHed5WebRs21jKDRN9242fzutjnj6yaz93a9NdwQAAAAGYmFubmVkAAAAAAAABiY4BAAAAApLWUNQZW5kaW5nAAAAAAAAAAAABAAAAA10cmFuc2ZlckJsb2NrAAAAAAAAAABkBAAAAAxwYXltZW50QmxvY2sAAAAAAAAAAMgEAAAACWZ1bmRCbG9jawAAAAAAAAABLAQAAAAQcGF5bWVudEZ1bmRCbG9jawAAAAAAAAABkAQAAAAKdXBwZXJCbG9jawAAAAAAAAAB9AQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAA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succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 4 #-}
2+{-# CONTENT_TYPE EXPRESSION #-}
3+let digiliraPay = base58'57EFni8M1XesEurFh3c4jnpLExP2PCPd5TRrwMjePAT4'
4+let sponsorToken = base58'7GnHzTaDe3YbDiCD9rueHiSfPB7hdanPpN4Ab79fJGtD'
5+let paymentToken = base58'FLsa9hfu1jvXC6jhDP2x6DHHQHK2qiKPtS7D74ZFNsE1'
6+let proxyWaves = base58'nqAJcPZzdav7orQg3U78Nno2eF4J9bmeBbU2WtPaYkv'
7+let banned = 403000
8+let KYCPending = 0
9+let transferBlock = 100
10+let paymentBlock = 200
11+let fundBlock = 300
12+let paymentFundBlock = 400
13+let upperBlock = 500
14+match tx {
15+ case w: TransferTransaction =>
16+ let myStatus = getInteger(addressFromPublicKey(digiliraPay), toBase58String(w.sender.bytes))
17+ let isUser = getInteger(addressFromPublicKey(digiliraPay), toBase58String(addressFromRecipient(w.recipient).bytes))
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))
22+ if (isDefined(isUser))
23+ then if (isDefined(feeToken))
24+ then if ((feeToken == sponsorToken))
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
36+ else if ((feeToken == paymentToken))
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)))
69+ then 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
81+ case x: Order|LeaseTransaction|BurnTransaction =>
82+ false
83+ case t: DataTransaction|ExchangeTransaction|SetScriptTransaction =>
84+ sigVerify(t.bodyBytes, t.proofs[1], digiliraPay)
85+ case mtt: MassTransferTransaction =>
86+ false
87+ case _ =>
88+ true
89+}

github/deemru/w8io/026f985 
18.79 ms