tx · AVBDScsJMvWMBwFaw9fUBN8kFrQZnvpcb9rNEfghEA1B

3N4EFimhkN5F5mh7kUkL9tuTFRxMa4kmvpN:  -0.01400000 Waves

2020.10.07 17:26 [1210269] smart account 3N4EFimhkN5F5mh7kUkL9tuTFRxMa4kmvpN > SELF 0.00000000 Waves

{ "type": 13, "id": "AVBDScsJMvWMBwFaw9fUBN8kFrQZnvpcb9rNEfghEA1B", "fee": 1400000, "feeAssetId": null, "timestamp": 1602080745743, "version": 1, "sender": "3N4EFimhkN5F5mh7kUkL9tuTFRxMa4kmvpN", "senderPublicKey": "GFK7PYB6cXjs4wEDvwEwkzcx1NxSS7QwXSxy7JmaBcXk", "proofs": [], "script": "base64:AwQAAAALYWRkcmVzc0Jvb2sJAQAAAAdBZGRyZXNzAAAAAQEAAAAaAVRWgdR5NBM7vuJoxo7QLI34uXJ2wFdvAd4EAAAAE3doaXRlbGlzdEFkZHJlc3NLZXkCAAAAEHdoaXRlbGlzdEFkZHJlc3MEAAAAF2RBcHBXaGl0ZWxpc3RBZGRyZXNzS2V5AgAAABRkQXBwV2hpdGVsaXN0QWRkcmVzcwQAAAARbWF0Y2hlckFkZHJlc3NLZXkCAAAADm1hdGNoZXJBZGRyZXNzBAAAABFnYXRld2F5QWRkcmVzc0tleQIAAAAOZ2F0ZXdheUFkZHJlc3MEAAAAFmdhdGV3YXlDb250cm9sQXNzZXRLZXkCAAAAE2dhdGV3YXlDb250cm9sQXNzZXQEAAAACnZhbGlkU3RhdGUAAAAAAAAAA+gEAAAAA3ZlcgIAAAAFNS4wLjUEAAAACnByb3RlY3RvcjABAAAAIOs0AsfYmDaU6YPwW72zJ3uwcQlYqm5qxCuhonIChTUnBAAAAApwcm90ZWN0b3IxAQAAACD/z8eBD8+wEio+asqwp+Q3C8kIkStDm8P5OWSM1UxFJQQAAAAKcHJvdGVjdG9yMgEAAAAgX+1zoOIXlB5TV2BM0ijDaqvNjxdFFjxJ41TJfJExdEMEAAAACnByb3RlY3RvcjMBA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dRqN44TvbhwepwqhHjE134 Next: 44HpmrpB3GLiR4e7TPwDexfMUbps4r2JVNNajLRH5fmW Diff:
OldNewDifferences
77 let gatewayAddressKey = "gatewayAddress"
88 let gatewayControlAssetKey = "gatewayControlAsset"
99 let validState = 1000
10-let ver = "5.0.4"
10+let ver = "5.0.5"
1111 let protector0 = base58'Gq8oqv19zNXKzz4QoYE8o6wgobbtmfiLBm1DD8zmfawx'
1212 let protector1 = base58'JDaizZSMrRZnaZVFQzdixsxoZUnBirfyap3F4zfVmHWt'
1313 let protector2 = base58'7TTjchn9fUMdgBn5TMqer3YGdUr61djeokuqGAtxAjke'
9898 let pAddress1 = getAddressFromBook("pAddress1")
9999 let pAddress2 = getAddressFromBook("pAddress2")
100100 let pAddress3 = getAddressFromBook("pAddress3")
101- let pAddress4 = getAddressFromBook("pAddress4")
102- let pAddress5 = getAddressFromBook("pAddress5")
103- let pAddress6 = getAddressFromBook("pAddress6")
104- let pAddress7 = getAddressFromBook("pAddress7")
105- let pAddress8 = getAddressFromBook("pAddress8")
106101 let pKey1Signed = if (if (isDefined(getInteger(pAddress1, txId)))
107102 then true
108103 else sigVerify(tx.bodyBytes, tx.proofs[0], protector0))
110105 else 0
111106 let pKey2Signed = if (if (isDefined(getInteger(pAddress2, txId)))
112107 then true
113- else sigVerify(tx.bodyBytes, tx.proofs[0], protector1))
108+ else sigVerify(tx.bodyBytes, tx.proofs[1], protector1))
114109 then 1
115110 else 0
116111 let pKey3Signed = if (if (isDefined(getInteger(pAddress3, txId)))
117112 then true
118- else sigVerify(tx.bodyBytes, tx.proofs[0], protector2))
113+ else sigVerify(tx.bodyBytes, tx.proofs[2], protector2))
119114 then 1
120115 else 0
121116 (((pKey1Signed + pKey2Signed) + pKey3Signed) >= 3)
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# CONTENT_TYPE EXPRESSION #-}
33 let addressBook = Address(base58'3MwoVRAPfC2NKuuYJKHVAVtUFhq8MyTEfQh')
44 let whitelistAddressKey = "whitelistAddress"
55 let dAppWhitelistAddressKey = "dAppWhitelistAddress"
66 let matcherAddressKey = "matcherAddress"
77 let gatewayAddressKey = "gatewayAddress"
88 let gatewayControlAssetKey = "gatewayControlAsset"
99 let validState = 1000
10-let ver = "5.0.4"
10+let ver = "5.0.5"
1111 let protector0 = base58'Gq8oqv19zNXKzz4QoYE8o6wgobbtmfiLBm1DD8zmfawx'
1212 let protector1 = base58'JDaizZSMrRZnaZVFQzdixsxoZUnBirfyap3F4zfVmHWt'
1313 let protector2 = base58'7TTjchn9fUMdgBn5TMqer3YGdUr61djeokuqGAtxAjke'
1414 let protector3 = base58'HUKkWXsC7xzSncw7EDb5NPsXKFx5VJq82hUMgB1G7ELK'
1515 let protector4 = base58'E9rAmSbNdH2F3dYffqTSbvRA96pX1HBYWbAHQrNJu2Ej'
1616 func getAddressFromBook (key) = match getString(addressBook, key) {
1717 case a: String =>
1818 Address(fromBase58String(a))
1919 case _ =>
2020 throw("#008 no key")
2121 }
2222
2323 func getAssetFromAddressBook () = match getString(extract(addressBook), gatewayControlAssetKey) {
2424 case a: String =>
2525 toBytes(a)
2626 case _ =>
2727 throw("#009 no key")
2828 }
2929
3030 match tx {
3131 case o: Order =>
3232 if (sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey))
3333 then (addressFromPublicKey(o.matcherPublicKey) == getAddressFromBook(matcherAddressKey))
3434 else false
3535 case tx: TransferTransaction =>
3636 if (!(sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)))
3737 then throw("#001 Transaction must be signed by owner")
3838 else {
3939 let userState = getInteger(getAddressFromBook(whitelistAddressKey), toBase58String(tx.sender.bytes))
4040 if (!(isDefined(userState)))
4141 then throw("#002 Address not in whitelist")
4242 else if ((userState != validState))
4343 then throw("#003 User not in valid state")
4444 else if (!(isDefined(tx.assetId)))
4545 then {
4646 let key = (toBase58String(tx.sender.bytes) + "_WAVES")
4747 let minAmount = getInteger(getAddressFromBook(whitelistAddressKey), key)
4848 if (isDefined(minAmount))
4949 then {
5050 let curBalance = wavesBalance(extract(tx.sender))
5151 if ((extract(minAmount) > (curBalance - tx.amount)))
5252 then throw("#004 Unable to send such amount (type=2)")
5353 else true
5454 }
5555 else {
5656 let keyOverall = "res_WAVES"
5757 let minAmountOverall = getInteger(getAddressFromBook(whitelistAddressKey), keyOverall)
5858 if (isDefined(minAmountOverall))
5959 then {
6060 let curBalance = wavesBalance(extract(tx.sender))
6161 if ((extract(minAmountOverall) > (curBalance - tx.amount)))
6262 then throw("#005 Unable to send such amount (type=1)")
6363 else true
6464 }
6565 else true
6666 }
6767 }
6868 else if ((tx.assetId == getAssetFromAddressBook()))
6969 then (tx.recipient == getAddressFromBook(gatewayAddressKey))
7070 else {
7171 let white1List = toBase58String(tx.sender.bytes)
7272 let assetTxt = toBase58String(extract(tx.assetId))
7373 let white1ListAsset = ((white1List + "_") + assetTxt)
7474 let white1ListOverall = ("res_" + assetTxt)
7575 let white1ListAssetEntry = getInteger(getAddressFromBook(whitelistAddressKey), white1ListAsset)
7676 if (!(isDefined(white1ListAssetEntry)))
7777 then {
7878 let white1ListOverallEntry = getInteger(getAddressFromBook(whitelistAddressKey), white1ListOverall)
7979 if (!(isDefined(white1ListOverallEntry)))
8080 then true
8181 else {
8282 let cur1Balance = assetBalance(tx.sender, tx.assetId)
8383 if ((extract(white1ListOverallEntry) > (cur1Balance - tx.amount)))
8484 then throw("#006 Unable to send such amount (type=1)")
8585 else true
8686 }
8787 }
8888 else {
8989 let cur1Balance = assetBalance(tx.sender, tx.assetId)
9090 if ((extract(white1ListAssetEntry) > (cur1Balance - tx.amount)))
9191 then throw("#007 Unable to send such amount (type=2)")
9292 else true
9393 }
9494 }
9595 }
9696 case tx: SetScriptTransaction =>
9797 let txId = toBase58String(tx.id)
9898 let pAddress1 = getAddressFromBook("pAddress1")
9999 let pAddress2 = getAddressFromBook("pAddress2")
100100 let pAddress3 = getAddressFromBook("pAddress3")
101- let pAddress4 = getAddressFromBook("pAddress4")
102- let pAddress5 = getAddressFromBook("pAddress5")
103- let pAddress6 = getAddressFromBook("pAddress6")
104- let pAddress7 = getAddressFromBook("pAddress7")
105- let pAddress8 = getAddressFromBook("pAddress8")
106101 let pKey1Signed = if (if (isDefined(getInteger(pAddress1, txId)))
107102 then true
108103 else sigVerify(tx.bodyBytes, tx.proofs[0], protector0))
109104 then 1
110105 else 0
111106 let pKey2Signed = if (if (isDefined(getInteger(pAddress2, txId)))
112107 then true
113- else sigVerify(tx.bodyBytes, tx.proofs[0], protector1))
108+ else sigVerify(tx.bodyBytes, tx.proofs[1], protector1))
114109 then 1
115110 else 0
116111 let pKey3Signed = if (if (isDefined(getInteger(pAddress3, txId)))
117112 then true
118- else sigVerify(tx.bodyBytes, tx.proofs[0], protector2))
113+ else sigVerify(tx.bodyBytes, tx.proofs[2], protector2))
119114 then 1
120115 else 0
121116 (((pKey1Signed + pKey2Signed) + pKey3Signed) >= 3)
122117 case _: LeaseTransaction =>
123118 false
124119 case _: SponsorFeeTransaction =>
125120 false
126121 case _: MassTransferTransaction =>
127122 false
128123 case _: IssueTransaction =>
129124 false
130125 case _: ReissueTransaction =>
131126 false
132127 case _: BurnTransaction =>
133128 false
134129 case _: ExchangeTransaction =>
135130 false
136131 case tx: InvokeScriptTransaction =>
137132 match tx.payment {
138133 case _: AttachedPayment =>
139134 match getInteger(getAddressFromBook(dAppWhitelistAddressKey), toBase58String(addressFromRecipient(tx.dApp).bytes)) {
140135 case _: Int =>
141136 true
142137 case _ =>
143138 false
144139 }
145140 case _ =>
146141 true
147142 }
148143 case _ =>
149144 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
150145 }

github/deemru/w8io/169f3d6 
38.25 ms