tx · DZ9jDKKaJrG7mQJ1zWptjaxHzoNYoBBJNUN1CAY8GdRu

3N811QVyYfAmEniotGqxACKT1vJKjcqbSFs:  -0.01400000 Waves

2021.01.28 09:45 [1372999] smart account 3N811QVyYfAmEniotGqxACKT1vJKjcqbSFs > SELF 0.00000000 Waves

{ "type": 13, "id": "DZ9jDKKaJrG7mQJ1zWptjaxHzoNYoBBJNUN1CAY8GdRu", "fee": 1400000, "feeAssetId": null, "timestamp": 1611816332000, "version": 1, "sender": "3N811QVyYfAmEniotGqxACKT1vJKjcqbSFs", "senderPublicKey": "FfBzkWdWgC3w8kkGRFTcMaLmjrfmGVDtKbMHxsVPDbXd", "proofs": [ "5Xaipf2MTijpKdC4aYV9Gmgq2FFD7uGE8gZWBpDuarn7tPA4nqWaNTY8NTXgQ9Z5GDjcZdrMQoUDWMNqt3gPcgXB" ], "script": "base64:BAQAAAALZGlnaWxpcmFQYXkBAAAAID0HOFHYXYpCB2C8RjDY8m3ndBlb8WihoYLw1tvHVwgrBAAAAAxzcG9uc29yVG9rZW4BAAAAIF0xC+0nwtqd1CxX9Y/+nUsawhMMb0TR82Wj5My6EPg+BAAAAAxwYXltZW50VG9rZW4BAAAAINUa1XJy5UC96rHuuRV8oDs9miGKfVUIoeiwBqYZd/niBAAAAApwcm94eVdhdmVzAQAAACALvZdwHed5WebRs21jKDRN9242fzutjnj6yaz93a9NdwQAAAAGYmFubmVkAAAAAAAABiY4BAAAAApLWUNQZW5kaW5nAAAAAAAAAAAABAAAABBub25GdW5naWJsZUJsb2NrAAAAAAAAAABkBAAAAA10cmFuc2ZlckJsb2NrAAAAAAAAAABkBAAAAAxwYXltZW50QmxvY2sAAAAAAAAAAMgEAAAACWZ1bmRCbG9jawAAAAAAAAABLAQAAAAQcGF5bWVudEZ1bmRCbG9jawAAAAAAAAABkAQAAAAKdXBwZXJCbG9jawAAAAAAAAAB9AQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAA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nNhY3Rpb24GCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAFFNldFNjcmlwdFRyYW5zYWN0aW9uBAAAAAF0BQAAAAckbWF0Y2gwCQAB9AAAAAMIBQAAAAF0AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAABdAAAAAZwcm9vZnMAAAAAAAAAAAEFAAAAC2RpZ2lsaXJhUGF5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABdNYXNzVHJhbnNmZXJUcmFuc2FjdGlvbgQAAAADbXR0BQAAAAckbWF0Y2gwBwbt/UuB", "chainId": 84, "height": 1372999, "applicationStatus": "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 nonFungibleBlock = 100
10+let transferBlock = 100
11+let paymentBlock = 200
12+let fundBlock = 300
13+let paymentFundBlock = 400
14+let upperBlock = 500
15+match tx {
16+ case w: TransferTransaction =>
17+ let myStatus = getInteger(addressFromPublicKey(digiliraPay), toBase58String(w.sender.bytes))
18+ let isUser = getInteger(addressFromPublicKey(digiliraPay), toBase58String(addressFromRecipient(w.recipient).bytes))
19+ let feeToken = w.feeAssetId
20+ let feeAmount = w.fee
21+ let asset = valueOrElse(w.assetId, proxyWaves)
22+ let isAsset = getInteger(addressFromPublicKey(digiliraPay), toBase58String(asset))
23+ if (isDefined(isUser))
24+ then if (isDefined(feeToken))
25+ then if ((feeToken == sponsorToken))
26+ then if (isDefined(isAsset))
27+ then if ((isAsset == banned))
28+ then throw("This asset cannot be transfered.")
29+ else if (if ((valueOrElse(isAsset, banned) >= transferBlock))
30+ then (upperBlock >= valueOrElse(isAsset, banned))
31+ else false)
32+ then if ((valueOrElse(isUser, 0) >= valueOrElse(isAsset, banned)))
33+ then true
34+ else throw("To transfer this asset user permission must be set correctly.")
35+ else throw("Transfer is not available right now.")
36+ else true
37+ else if ((feeToken == paymentToken))
38+ then if ((w.recipient == addressFromPublicKey(digiliraPay)))
39+ then if ((myStatus == KYCPending))
40+ then throw("KYC Pending")
41+ else if ((myStatus == banned))
42+ then throw("Account Banned Can't Operate")
43+ else if ((feeAmount > 10))
44+ then throw("Not Allowed")
45+ else if ((isAsset == banned))
46+ then throw("Can not transfer this asset 3")
47+ else if (if (if ((valueOrElse(isAsset, banned) >= paymentBlock))
48+ then (fundBlock >= valueOrElse(isAsset, banned))
49+ else false)
50+ then true
51+ else if ((valueOrElse(isAsset, banned) >= paymentFundBlock))
52+ then (upperBlock >= valueOrElse(isAsset, banned))
53+ else false)
54+ then if ((valueOrElse(myStatus, 0) >= valueOrElse(isAsset, banned)))
55+ then true
56+ else throw("This asset has special requirements 2")
57+ else throw("Can not transfer this asset 4")
58+ else throw("Unfortunately you can only use this token for payments")
59+ else if (isDefined(isAsset))
60+ then if ((isAsset == banned))
61+ then throw("Can not transfer this asset 5")
62+ else if ((valueOrElse(isUser, 0) >= valueOrElse(isAsset, banned)))
63+ then true
64+ else throw("This asset has special requirements 5")
65+ else true
66+ else if (isDefined(isAsset))
67+ then if ((valueOrElse(isAsset, 0) == banned))
68+ then throw("Can not transfer this asset")
69+ else if ((valueOrElse(isUser, 0) >= valueOrElse(isAsset, banned)))
70+ then true
71+ else throw("This asset has special requirements 1")
72+ else true
73+ else if (isDefined(isAsset))
74+ then if (if ((valueOrElse(isAsset, banned) >= transferBlock))
75+ then (fundBlock >= valueOrElse(isAsset, banned))
76+ else false)
77+ then true
78+ else throw("Cannot transfer this token to none DigiliraPay users.")
79+ else if (isDefined(feeToken))
80+ then if ((feeToken == sponsorToken))
81+ then throw("Cannot use this token for none DigiliraPay users transfers.")
82+ else if ((feeToken == paymentToken))
83+ then throw("Unfortunately you can only use this token for payments")
84+ else true
85+ else true
86+ case x: Order|LeaseTransaction|BurnTransaction =>
87+ false
88+ case t: DataTransaction|ExchangeTransaction|SetScriptTransaction =>
89+ sigVerify(t.bodyBytes, t.proofs[1], digiliraPay)
90+ case mtt: MassTransferTransaction =>
91+ false
92+ case _ =>
93+ true
94+}

github/deemru/w8io/169f3d6 
14.78 ms