tx · FbJMNP2pZ4MC7Hoq9hfgRQBQvfFqrGe1pDr9d5ZZjLta

3Mrhtzv9KEtjx4mG47oxgjahHKW33oTntEV:  -1.00400000 Waves

2019.08.08 18:41 [622176] smart asset 3Mrhtzv9KEtjx4mG47oxgjahHKW33oTntEV > SELF 0.000000 TXRP

{ "type": 15, "id": "FbJMNP2pZ4MC7Hoq9hfgRQBQvfFqrGe1pDr9d5ZZjLta", "fee": 100400000, "feeAssetId": null, "timestamp": 1565278821039, "version": 1, "sender": "3Mrhtzv9KEtjx4mG47oxgjahHKW33oTntEV", "senderPublicKey": "DANkK8NJhJ9K7AHbve8QzKkbyvJzr5pbttLhba7d9BGm", "proofs": [ "WffFQKsG2QBNC2stgrj4mNhsDPunniUFHZ14Bxp658YLjXFVe4uMQX2yo17wzsYW1i6c9NddJ77J96USd22jW6F" ], "assetId": "HUdXNRE4VcCx64PCPYwh6KL2cxvRaKcR8bXe3Ar9fG4p", "script": "base64:AwQAAAAObWF0Y2hlckFkZHJlc3MJAQAAABFhZGRyZXNzRnJvbVN0cmluZwAAAAECAAAAIzNNczhmU2ZBeEJMRGpLdk5WZ0FDUnpRb0JMQ3RDV3h0YXd1BAAAABBtYXRjaGVyUHVibGljS2V5AQAAACBThDuRiQKq/0TcMlLglZN11ZQJlziVeFsi3R5LSjzVTwQAAAAOZ2F0ZXdheUFkZHJlc3MJAQAAABFhZGRyZXNzRnJvbVN0cmluZwAAAAECAAAAIzNNcmh0enY5S0V0ang0bUc0N294Z2phaEhLVzMzb1RudEVWBAAAABB3aGl0ZWxpc3RBZGRyZXNzCQEAAAARYWRkcmVzc0Zyb21TdHJpbmcAAAABAgAAACMzTjZEd1d4VDgybkdKVXdCd2Q3TDUxNHIydTcxZ3I3V2h3SgQAAAAUZEFwcFdoaXRlbGlzdEFkZHJlc3MJAQAAAAdBZGRyZXNzAAAAAQEAAAAaAVR+ZQJfWyfFbW//7FjY3Cz3zzwo/8TmrxYEAAAAGmdhdGV3YXlDb250cm9sQ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E92ZXJhbGwDCQEAAAABIQAAAAEJAQAAAAlpc0RlZmluZWQAAAABBQAAABZ3aGl0ZTFMaXN0T3ZlcmFsbEVudHJ5BgQAAAALY3VyMUJhbGFuY2UJAAPrAAAAAggFAAAAAnR4AAAABnNlbmRlcgUAAAAHYXNzZXRJZAMJAABmAAAAAgkBAAAAB2V4dHJhY3QAAAABBQAAABZ3aGl0ZTFMaXN0T3ZlcmFsbEVudHJ5CQAAZQAAAAIFAAAAC2N1cjFCYWxhbmNlCAUAAAAHcGF5bWVudAAAAAZhbW91bnQJAAACAAAAAQIAAAAjVW5hYmxlIHRvIHNlbmQgc3VjaCBhbW91bnQgKHR5cGU9MSkGBAAAAAtjdXIxQmFsYW5jZQkAA+sAAAACCAUAAAACdHgAAAAGc2VuZGVyBQAAAAdhc3NldElkAwkAAGYAAAACCQEAAAAHZXh0cmFjdAAAAAEFAAAAFHdoaXRlMUxpc3RBc3NldEVudHJ5CQAAZQAAAAIFAAAAC2N1cjFCYWxhbmNlCAUAAAAHcGF5bWVudAAAAAZhbW91bnQJAAACAAAAAQIAAAAjVW5hYmxlIHRvIHNlbmQgc3VjaCBhbW91bnQgKHR5cGU9MikGBwfNUMWy", "chainId": 84, "height": 622176, "spentComplexity": 0 } View: original | compacted Prev: GMMhKUU76PpgDBTWs7PaEVDBitEAsfHGuTkncsMvEvao Next: pKJSXnDaCsdg8LkY5etmdcE2xBwksHf9738VYHZTSzb Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# CONTENT_TYPE EXPRESSION #-}
33 let matcherAddress = addressFromString("3Ms8fSfAxBLDjKvNVgACRzQoBLCtCWxtawu")
44 let matcherPublicKey = base58'6d1nbhBxLCxjUyL9xXcX2VVxj2kcKiYny7VqH4FwbApv'
55 let gatewayAddress = addressFromString("3Mrhtzv9KEtjx4mG47oxgjahHKW33oTntEV")
66 let whitelistAddress = addressFromString("3N6DwWxT82nGJUwBwd7L514r2u71gr7WhwJ")
77 let dAppWhitelistAddress = Address(base58'3N1SPvLZgv6FMfe5WNUtnPzt3okYxcJhYnR')
88 let gatewayControlAssetAddress = base58'3w8UGTKzu3YvwRrvWeDuXkUVxdg1RuX1VCy6QRw86Fw4'
99 let pAddress1 = addressFromString("3NCVDaT1ASbRd42hBSw4EG6ojGVRGtvMiz1")
1010 let pAddress2 = addressFromString("3Ms2kTAxdrcXDxwedfbNjSi6ewGCUqt3heZ")
1111 let pAddress3 = addressFromString("3N6ognm7xnQSFiownS1Df1LacJUQXvfDFLe")
1212 let pAddress4 = addressFromString("3MtVCmN9MZbWf9qxiMFoEPBrdc2fLp3SvuC")
1313 let pAddress5 = addressFromString("3MuWG8gsTK4RQBsm97sMCuUXW99JvRxwYSg")
1414 let validState = 1000
1515 let ver = "2.0.0-testnet"
1616 match tx {
1717 case tx: MassTransferTransaction =>
1818 false
1919 case tx: TransferTransaction =>
2020 let isDAppAllowed = match getInteger(dAppWhitelistAddress, toBase58String(tx.sender.bytes)) {
2121 case a: Int =>
2222 a
2323 case _ =>
2424 -255
2525 }
2626 if ((isDAppAllowed != -255))
2727 then true
2828 else if (if ((tx.sender != gatewayAddress))
2929 then (tx.recipient != gatewayAddress)
3030 else false)
3131 then throw("Only transactions with a gateway are allowed")
3232 else if ((tx.sender == gatewayAddress))
3333 then true
3434 else {
3535 let white1List = toBase58String(tx.sender.bytes)
3636 let assetTxt = toBase58String(extract(tx.assetId))
3737 let white1ListAsset = ((white1List + "_") + assetTxt)
3838 let white1ListOverall = ("res_" + assetTxt)
3939 let white1ListEntry = getInteger(extract(whitelistAddress), white1List)
4040 if (!(isDefined(white1ListEntry)))
4141 then throw("The sender's address is not in the white list")
4242 else if ((white1ListEntry != validState))
4343 then throw("Sender is not in valid state")
4444 else {
4545 let white1ListAssetEntry = getInteger(extract(whitelistAddress), white1ListAsset)
4646 if (!(isDefined(white1ListAssetEntry)))
4747 then {
4848 let white1ListOverallEntry = getInteger(extract(whitelistAddress), white1ListOverall)
4949 if (!(isDefined(white1ListOverallEntry)))
5050 then true
5151 else {
5252 let cur1Balance = assetBalance(tx.sender, tx.assetId)
5353 if ((extract(white1ListOverallEntry) > (cur1Balance - tx.amount)))
5454 then throw("Unable to send such amount (type=1)")
5555 else true
5656 }
5757 }
5858 else {
5959 let cur1Balance = assetBalance(tx.sender, tx.assetId)
6060 if ((extract(white1ListAssetEntry) > (cur1Balance - tx.amount)))
6161 then throw("Unable to send such amount (type=2)")
6262 else true
6363 }
6464 }
6565 }
6666 case tx: ExchangeTransaction =>
6767 if ((tx.sender != matcherAddress))
6868 then throw("Incorrect matcher address")
6969 else {
7070 let outcoming1Account = tx.buyOrder.sender
7171 let outcoming2Account = tx.sellOrder.sender
7272 let white1List = toBase58String(outcoming1Account.bytes)
7373 let white2List = toBase58String(outcoming2Account.bytes)
7474 let white1ListEntry = getInteger(extract(whitelistAddress), toBase58String(outcoming1Account.bytes))
7575 let white2ListEntry = getInteger(extract(whitelistAddress), toBase58String(outcoming2Account.bytes))
7676 if (!(isDefined(white1ListEntry)))
7777 then throw((("User " + white1List) + " not in white list"))
7878 else if ((white1ListEntry != validState))
7979 then throw((("User " + white1List) + " not in valid state"))
8080 else if (!(isDefined(white2ListEntry)))
8181 then throw((("User " + white2List) + " not in white list"))
8282 else if ((white2ListEntry != validState))
8383 then throw((("User " + white2List) + " not in valid state"))
8484 else true
8585 }
8686 case tx: SetAssetScriptTransaction =>
8787 let pKey1Signed = if (isDefined(getInteger(extract(pAddress1), toBase58String(tx.id))))
8888 then 1
8989 else 0
9090 let pKey2Signed = if (isDefined(getInteger(extract(pAddress2), toBase58String(tx.id))))
9191 then 1
9292 else 0
9393 let pKey3Signed = if (isDefined(getInteger(extract(pAddress3), toBase58String(tx.id))))
9494 then 1
9595 else 0
9696 let pKey4Signed = if (isDefined(getInteger(extract(pAddress4), toBase58String(tx.id))))
9797 then 1
9898 else 0
9999 let pKey5Signed = if (isDefined(getInteger(extract(pAddress5), toBase58String(tx.id))))
100100 then 1
101101 else 0
102102 (((((pKey1Signed + pKey2Signed) + pKey3Signed) + pKey4Signed) + pKey5Signed) >= 3)
103103 case tx: BurnTransaction =>
104104 (tx.sender == gatewayAddress)
105105 case tx: ReissueTransaction =>
106106 (tx.sender == gatewayAddress)
107107 case tx: InvokeScriptTransaction =>
108108 let isDAppAllowed = match getInteger(dAppWhitelistAddress, toBase58String(addressFromRecipient(tx.dApp).bytes)) {
109109 case a: Int =>
110110 a
111111 case _ =>
112112 -255
113113 }
114114 if ((isDAppAllowed != -255))
115115 then {
116116 let white1List = toBase58String(tx.sender.bytes)
117117 let isPaymentExist = match tx.payment {
118118 case a: AttachedPayment =>
119119 true
120120 case _ =>
121121 false
122122 }
123123 if ((isPaymentExist == false))
124124 then true
125125 else {
126126 let payment = extract(tx.payment)
127127 let assetId = extract(payment.assetId)
128128 let assetTxt = toBase58String(assetId)
129129 let white1ListAsset = ((white1List + "_") + assetTxt)
130130 let white1ListOverall = ("res_" + assetTxt)
131131 let white1ListEntry = getInteger(extract(whitelistAddress), white1List)
132132 if (!(isDefined(white1ListEntry)))
133133 then throw("The sender's address is not in the white list")
134134 else if ((white1ListEntry != validState))
135135 then throw("Sender is not in valid state")
136136 else {
137137 let white1ListAssetEntry = getInteger(extract(whitelistAddress), white1ListAsset)
138138 if (!(isDefined(white1ListAssetEntry)))
139139 then {
140140 let white1ListOverallEntry = getInteger(extract(whitelistAddress), white1ListOverall)
141141 if (!(isDefined(white1ListOverallEntry)))
142142 then true
143143 else {
144144 let cur1Balance = assetBalance(tx.sender, assetId)
145145 if ((extract(white1ListOverallEntry) > (cur1Balance - payment.amount)))
146146 then throw("Unable to send such amount (type=1)")
147147 else true
148148 }
149149 }
150150 else {
151151 let cur1Balance = assetBalance(tx.sender, assetId)
152152 if ((extract(white1ListAssetEntry) > (cur1Balance - payment.amount)))
153153 then throw("Unable to send such amount (type=2)")
154154 else true
155155 }
156156 }
157157 }
158158 }
159159 else false
160160 case _ =>
161161 false
162162 }

github/deemru/w8io/169f3d6 
33.99 ms