tx · 2SWcmdCYC3mdBhQAnxoMvd6SbyBoULeRfXS49wR2arFx

3MxqKwurkP77Ch4YU4nqeRmvKUfUQjrSkTp:  -0.01400000 Waves

2021.01.25 11:59 [1368819] smart account 3MxqKwurkP77Ch4YU4nqeRmvKUfUQjrSkTp > SELF 0.00000000 Waves

{ "type": 13, "id": "2SWcmdCYC3mdBhQAnxoMvd6SbyBoULeRfXS49wR2arFx", "fee": 1400000, "feeAssetId": null, "timestamp": 1611565142000, "version": 2, "chainId": 84, "sender": "3MxqKwurkP77Ch4YU4nqeRmvKUfUQjrSkTp", "senderPublicKey": "5HL6Pec7uBHK6WcEjzgWku78zrBjNswXjZ1QG4uWxc2M", "proofs": [ "47cWM5T6maUWEphsCmpa7RqDEfzhkT3gm13tsFTHNFyAZpuC2JL98r1JAKitVhuUF6RNp5REnbAZNyqs6WrKD9Tb", "7b71v4rHAMu7VkbHQm5TW9psFmudRW2NAGSwDxXjXNjypUYr6cDDKpcWPJdau6oyhNdSkSC2RaeyN891SWoJNmq" ], "script": "base64:BAQAAAALZGlnaWxpcmFQYXkBAAAAID0HOFHYXYpCB2C8RjDY8m3ndBlb8WihoYLw1tvHVwgrBAAAAAxzcG9uc29yVG9rZW4BAAAAIF0xC+0nwtqd1CxX9Y/+nUsawhMMb0TR82Wj5My6EPg+BAAAAAxwYXltZW50VG9rZW4BAAAAINUa1XJy5UC96rHuuRV8oDs9miGKfVUIoeiwBqYZd/niBAAAAApwcm94eVdhdmVzAQAAACALvZdwHed5WebRs21jKDRN9242fzutjnj6yaz93a9NdwQAAAAGYmFubmVkAAAAAAAABiY4BAAAAApLWUNQZW5kaW5nAAAAAAAAAAAABAAAABBub25GdW5naWJsZUJsb2NrAAAAAAAAAABkBAAAAA10cmFuc2ZlckJsb2NrAAAAAAAAAABkBAAAAAxwYXltZW50QmxvY2sAAAAAAAAAAMgEAAAACWZ1bmRCbG9jawAAAAAAAAABLAQAAAAQcGF5bWVudEZ1bmRCbG9jawAAAAAAAAABkA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ByRtYXRjaDACAAAAD0RhdGFUcmFuc2FjdGlvbgYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE0V4Y2hhbmdlVHJhbnNhY3Rpb24GCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAFFNldFNjcmlwdFRyYW5zYWN0aW9uBAAAAAF0BQAAAAckbWF0Y2gwCQAB9AAAAAMIBQAAAAF0AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAABdAAAAAZwcm9vZnMAAAAAAAAAAAEFAAAAC2RpZ2lsaXJhUGF5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABdNYXNzVHJhbnNmZXJUcmFuc2FjdGlvbgQAAAADbXR0BQAAAAckbWF0Y2gwBwbt/UuB", "height": 1368819, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: AxqWKzYuNNFDRGiQBBxm5cKqPtbQwtH5jLM6kjTFcd17 Next: none Diff:
OldNewDifferences
66 let proxyWaves = base58'nqAJcPZzdav7orQg3U78Nno2eF4J9bmeBbU2WtPaYkv'
77 let banned = 403000
88 let KYCPending = 0
9+let nonFungibleBlock = 100
910 let transferBlock = 100
1011 let paymentBlock = 200
1112 let fundBlock = 300
2425 then if ((feeToken == sponsorToken))
2526 then if (isDefined(isAsset))
2627 then if ((isAsset == banned))
27- then throw("Can not transfer this asset 1")
28+ then throw("This asset cannot be transfered.")
2829 else if (if ((valueOrElse(isAsset, banned) >= transferBlock))
2930 then (upperBlock >= valueOrElse(isAsset, banned))
3031 else false)
3132 then if ((valueOrElse(isUser, 0) >= valueOrElse(isAsset, banned)))
3233 then true
33- else throw("This asset has special requirements 2")
34- else throw("Can not transfer this asset 1")
34+ else throw("To transfer this asset user permission must be set correctly.")
35+ else throw("Transfer is not available right now.")
3536 else true
3637 else if ((feeToken == paymentToken))
3738 then if ((w.recipient == addressFromPublicKey(digiliraPay)))
7071 else throw("This asset has special requirements 1")
7172 else true
7273 else if (isDefined(isAsset))
73- then throw("cant transfer")
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.")
7479 else if (isDefined(feeToken))
7580 then if ((feeToken == sponsorToken))
7681 then throw("Cannot use this token for none DigiliraPay users transfers.")
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'
66 let proxyWaves = base58'nqAJcPZzdav7orQg3U78Nno2eF4J9bmeBbU2WtPaYkv'
77 let banned = 403000
88 let KYCPending = 0
9+let nonFungibleBlock = 100
910 let transferBlock = 100
1011 let paymentBlock = 200
1112 let fundBlock = 300
1213 let paymentFundBlock = 400
1314 let upperBlock = 500
1415 match tx {
1516 case w: TransferTransaction =>
1617 let myStatus = getInteger(addressFromPublicKey(digiliraPay), toBase58String(w.sender.bytes))
1718 let isUser = getInteger(addressFromPublicKey(digiliraPay), toBase58String(addressFromRecipient(w.recipient).bytes))
1819 let feeToken = w.feeAssetId
1920 let feeAmount = w.fee
2021 let asset = valueOrElse(w.assetId, proxyWaves)
2122 let isAsset = getInteger(addressFromPublicKey(digiliraPay), toBase58String(asset))
2223 if (isDefined(isUser))
2324 then if (isDefined(feeToken))
2425 then if ((feeToken == sponsorToken))
2526 then if (isDefined(isAsset))
2627 then if ((isAsset == banned))
27- then throw("Can not transfer this asset 1")
28+ then throw("This asset cannot be transfered.")
2829 else if (if ((valueOrElse(isAsset, banned) >= transferBlock))
2930 then (upperBlock >= valueOrElse(isAsset, banned))
3031 else false)
3132 then if ((valueOrElse(isUser, 0) >= valueOrElse(isAsset, banned)))
3233 then true
33- else throw("This asset has special requirements 2")
34- else throw("Can not transfer this asset 1")
34+ else throw("To transfer this asset user permission must be set correctly.")
35+ else throw("Transfer is not available right now.")
3536 else true
3637 else if ((feeToken == paymentToken))
3738 then if ((w.recipient == addressFromPublicKey(digiliraPay)))
3839 then if ((myStatus == KYCPending))
3940 then throw("KYC Pending")
4041 else if ((myStatus == banned))
4142 then throw("Account Banned Can't Operate")
4243 else if ((feeAmount > 10))
4344 then throw("Not Allowed")
4445 else if ((isAsset == banned))
4546 then throw("Can not transfer this asset 3")
4647 else if (if (if ((valueOrElse(isAsset, banned) >= paymentBlock))
4748 then (fundBlock >= valueOrElse(isAsset, banned))
4849 else false)
4950 then true
5051 else if ((valueOrElse(isAsset, banned) >= paymentFundBlock))
5152 then (upperBlock >= valueOrElse(isAsset, banned))
5253 else false)
5354 then if ((valueOrElse(myStatus, 0) >= valueOrElse(isAsset, banned)))
5455 then true
5556 else throw("This asset has special requirements 2")
5657 else throw("Can not transfer this asset 4")
5758 else throw("Unfortunately you can only use this token for payments")
5859 else if (isDefined(isAsset))
5960 then if ((isAsset == banned))
6061 then throw("Can not transfer this asset 5")
6162 else if ((valueOrElse(isUser, 0) >= valueOrElse(isAsset, banned)))
6263 then true
6364 else throw("This asset has special requirements 5")
6465 else true
6566 else if (isDefined(isAsset))
6667 then if ((valueOrElse(isAsset, 0) == banned))
6768 then throw("Can not transfer this asset")
6869 else if ((valueOrElse(isUser, 0) >= valueOrElse(isAsset, banned)))
6970 then true
7071 else throw("This asset has special requirements 1")
7172 else true
7273 else if (isDefined(isAsset))
73- then throw("cant transfer")
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.")
7479 else if (isDefined(feeToken))
7580 then if ((feeToken == sponsorToken))
7681 then throw("Cannot use this token for none DigiliraPay users transfers.")
7782 else if ((feeToken == paymentToken))
7883 then throw("Unfortunately you can only use this token for payments")
7984 else true
8085 else true
8186 case x: Order|LeaseTransaction|BurnTransaction =>
8287 false
8388 case t: DataTransaction|ExchangeTransaction|SetScriptTransaction =>
8489 sigVerify(t.bodyBytes, t.proofs[1], digiliraPay)
8590 case mtt: MassTransferTransaction =>
8691 false
8792 case _ =>
8893 true
8994 }

github/deemru/w8io/026f985 
41.96 ms