tx · BpufVR9UDVtFuVTm6gaps7rZxTvqyQnoaVxYR5QTEnNK

3N7CSaNQyh22JX6irCXdMCuftWJsqaXWGQE:  -0.10500000 Waves

2019.08.08 16:45 [622062] smart account 3N7CSaNQyh22JX6irCXdMCuftWJsqaXWGQE > SELF 0.00000000 Waves

{ "type": 13, "id": "BpufVR9UDVtFuVTm6gaps7rZxTvqyQnoaVxYR5QTEnNK", "fee": 10500000, "feeAssetId": null, "timestamp": 1565271923415, "version": 1, "sender": "3N7CSaNQyh22JX6irCXdMCuftWJsqaXWGQE", "senderPublicKey": "HY8Qy31uRu7gAFf4mhvMkwJRXTMVKuFLcbAKeRHc6X7d", "proofs": [ "5CwTis6aD4gt23bR7oSJp1CjD2kyxy3gp23CX5xbUKA7tXCUyeXZyVsmxY4TyuwctmMEDSVXLpeZLRFpSiKhEo7o", "2rgH1mUGPqDV6nkjUWDcaFQPXU49pv6kjc7enxs44mDbTTzGdogSYUMFhoJm9FAp5YbAjp17SW6A3wCpzzZC1zmN", "4ZAiLwbuCtPC3FHZq6y6varmDd1XKHcwjLqMX3tBH2iGxj2mtb1XEqeiHZPUAWs6pdbC7SbFRM7ibgp23Fyt863N" ], "script": "base64:AwQAAAAObWF0Y2hlckFkZHJlc3MJAQAAABFhZGRyZXNzRnJvbVN0cmluZwAAAAECAAAAIzNNczhmU2ZBeEJMRGpLdk5WZ0FDUnpRb0JMQ3RDV3h0YXd1BAAAABBtYXRjaGVyUHVibGljS2V5AQAAACBThDuRiQKq/0TcMlLglZN11ZQJlziVeFsi3R5LSjzVTwQAAAAOZ2F0ZXdheUFkZHJlc3MJAQAAABFhZGRyZXNzRnJvbVN0cmluZwAAAAECAAAAIzNNcmh0enY5S0V0ang0bUc0N294Z2phaEhLVzMzb1RudEVWBAAAABB3aGl0ZWxpc3RBZGRyZXNzCQEAAAARYWRkcmVzc0Zyb21TdHJpbmcAAAABAgAAACMzTjZEd1d4VDgybkdKVXdCd2Q3TDUxNHIydTcxZ3I3V2h3Sg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1V3MD Next: DXmTLS7nNvUz1pdfVuHeHo8N3Zq5tc4dxLv8FWp7h4iy Diff:
OldNewDifferences
1212 let pAddress4 = addressFromString("3MtVCmN9MZbWf9qxiMFoEPBrdc2fLp3SvuC")
1313 let pAddress5 = addressFromString("3MuWG8gsTK4RQBsm97sMCuUXW99JvRxwYSg")
1414 let validState = 1000
15-let ver = "2.0.1-testnet"
15+let ver = "2.0.2-testnet"
1616 match tx {
1717 case o: Order =>
1818 if (sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey))
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
15-let ver = "2.0.1-testnet"
15+let ver = "2.0.2-testnet"
1616 match tx {
1717 case o: Order =>
1818 if (sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey))
1919 then (o.matcherPublicKey == matcherPublicKey)
2020 else false
2121 case tx: TransferTransaction =>
2222 if (!(sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)))
2323 then throw("Transaction must be signed by owner")
2424 else {
2525 let userState = getInteger(extract(whitelistAddress), toBase58String(tx.sender.bytes))
2626 if (!(isDefined(userState)))
2727 then throw("Address not in whitelist")
2828 else if ((userState != validState))
2929 then throw("User not in valid state")
3030 else if (!(isDefined(tx.assetId)))
3131 then {
3232 let key = (toBase58String(tx.sender.bytes) + "_WAVES")
3333 let minAmount = getInteger(extract(whitelistAddress), key)
3434 if (isDefined(minAmount))
3535 then {
3636 let curBalance = wavesBalance(extract(tx.sender))
3737 if ((extract(minAmount) > (curBalance - tx.amount)))
3838 then throw("Unable to send such amount (type=2)")
3939 else true
4040 }
4141 else {
4242 let keyOverall = "res_WAVES"
4343 let minAmountOverall = getInteger(extract(whitelistAddress), keyOverall)
4444 if (isDefined(minAmountOverall))
4545 then {
4646 let curBalance = wavesBalance(extract(tx.sender))
4747 if ((extract(minAmountOverall) > (curBalance - tx.amount)))
4848 then throw("Unable to send such amount (type=1)")
4949 else true
5050 }
5151 else true
5252 }
5353 }
5454 else if ((tx.assetId == gatewayControlAssetAddress))
5555 then (tx.recipient == gatewayAddress)
5656 else {
5757 let white1List = toBase58String(tx.sender.bytes)
5858 let assetTxt = toBase58String(extract(tx.assetId))
5959 let white1ListAsset = ((white1List + "_") + assetTxt)
6060 let white1ListOverall = ("res_" + assetTxt)
6161 let white1ListAssetEntry = getInteger(extract(whitelistAddress), white1ListAsset)
6262 if (!(isDefined(white1ListAssetEntry)))
6363 then {
6464 let white1ListOverallEntry = getInteger(extract(whitelistAddress), white1ListOverall)
6565 if (!(isDefined(white1ListOverallEntry)))
6666 then true
6767 else {
6868 let cur1Balance = assetBalance(tx.sender, tx.assetId)
6969 if ((extract(white1ListOverallEntry) > (cur1Balance - tx.amount)))
7070 then throw("Unable to send such amount (type=1)")
7171 else true
7272 }
7373 }
7474 else {
7575 let cur1Balance = assetBalance(tx.sender, tx.assetId)
7676 if ((extract(white1ListAssetEntry) > (cur1Balance - tx.amount)))
7777 then throw("Unable to send such amount (type=2)")
7878 else true
7979 }
8080 }
8181 }
8282 case tx: SetScriptTransaction =>
8383 let pKey1Signed = if (isDefined(getInteger(extract(pAddress1), toBase58String(tx.id))))
8484 then 1
8585 else 0
8686 let pKey2Signed = if (isDefined(getInteger(extract(pAddress2), toBase58String(tx.id))))
8787 then 1
8888 else 0
8989 let pKey3Signed = if (isDefined(getInteger(extract(pAddress3), toBase58String(tx.id))))
9090 then 1
9191 else 0
9292 let pKey4Signed = if (isDefined(getInteger(extract(pAddress4), toBase58String(tx.id))))
9393 then 1
9494 else 0
9595 let pKey5Signed = if (isDefined(getInteger(extract(pAddress5), toBase58String(tx.id))))
9696 then 1
9797 else 0
9898 (((((pKey1Signed + pKey2Signed) + pKey3Signed) + pKey4Signed) + pKey5Signed) >= 3)
9999 case tx: LeaseTransaction =>
100100 false
101101 case tx: SponsorFeeTransaction =>
102102 false
103103 case tx: MassTransferTransaction =>
104104 false
105105 case tx: IssueTransaction =>
106106 false
107107 case tx: ReissueTransaction =>
108108 false
109109 case tx: BurnTransaction =>
110110 false
111111 case tx: ExchangeTransaction =>
112112 false
113113 case tx: InvokeScriptTransaction =>
114114 match tx.payment {
115115 case a: AttachedPayment =>
116116 match getInteger(dAppWhitelistAddress, toBase58String(addressFromRecipient(tx.dApp).bytes)) {
117117 case unused: Int =>
118118 true
119119 case _ =>
120120 false
121121 }
122122 case _ =>
123123 true
124124 }
125125 case _ =>
126126 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
127127 }

github/deemru/w8io/169f3d6 
34.71 ms