tx · 7dw243iftePXfMDpQxdGPSdRqN44TvbhwepwqhHjE134

3N4EFimhkN5F5mh7kUkL9tuTFRxMa4kmvpN:  -0.01400000 Waves

2020.10.07 16:43 [1210226] smart account 3N4EFimhkN5F5mh7kUkL9tuTFRxMa4kmvpN > SELF 0.00000000 Waves

{ "type": 13, "id": "7dw243iftePXfMDpQxdGPSdRqN44TvbhwepwqhHjE134", "fee": 1400000, "feeAssetId": null, "timestamp": 1602077885000, "version": 1, "sender": "3N4EFimhkN5F5mh7kUkL9tuTFRxMa4kmvpN", "senderPublicKey": "GFK7PYB6cXjs4wEDvwEwkzcx1NxSS7QwXSxy7JmaBcXk", "proofs": [], "script": "base64:AwQAAAALYWRkcmVzc0Jvb2sJAQAAAAdBZGRyZXNzAAAAAQEAAAAaAVRWgdR5NBM7vuJoxo7QLI34uXJ2wFdvAd4EAAAAE3doaXRlbGlzdEFkZHJlc3NLZXkCAAAAEHdoaXRlbGlzdEFkZHJlc3MEAAAAF2RBcHBXaGl0ZWxpc3RBZGRyZXNzS2V5AgAAABRkQXBwV2hpdGVsaXN0QWRkcmVzcwQAAAARbWF0Y2hlckFkZHJlc3NLZXkCAAAADm1hdGNoZXJBZGRyZXNzBAAAABFnYXRld2F5QWRkcmVzc0tleQIAAAAOZ2F0ZXdheUFkZHJlc3MEAAAAFmdhdGV3YXlDb250cm9sQXNzZXRLZXkCAAAAE2dhdGV3YXlDb250cm9sQXNzZXQEAAAACnZhbGlkU3RhdGUAAAAAAAAAA+gEAAAAA3ZlcgIAAAAFNS4wLjQEAAAACnByb3RlY3RvcjABAAAAIOs0AsfYmDaU6YPwW72zJ3uwcQlYqm5qxCuhonIChTUnBAAAAApwcm90ZWN0b3IxAQAAACD/z8eBD8+wEio+asqwp+Q3C8kIkStDm8P5OWSM1UxFJQQAAAAKcHJvdGVjdG9yMgEAAAAgX+1zoOIXlB5TV2BM0ijDaqvNjxdFFjxJ41TJfJExdEMEAAAACnByb3RlY3RvcjMBAAAAIPS636AxxD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awAAAAEFAAAAF2RBcHBXaGl0ZWxpc3RBZGRyZXNzS2V5CQACWAAAAAEICQAEJAAAAAEIBQAAAAJ0eAAAAARkQXBwAAAABWJ5dGVzAwkAAAEAAAACBQAAAAckbWF0Y2gyAgAAAANJbnQGBwYJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5jjQRhw==", "chainId": 84, "height": 1210226, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BYtvQTtxgeJjtiSmZ3EE71Uf8wKUmhBKdjFGRffkvqPi Next: AVBDScsJMvWMBwFaw9fUBN8kFrQZnvpcb9rNEfghEA1B Diff:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# CONTENT_TYPE EXPRESSION #-}
3-let addressBook = Address(base58'3N6DwWxT82nGJUwBwd7L514r2u71gr7WhwJ')
3+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.3"
10+let ver = "5.0.4"
11+let protector0 = base58'Gq8oqv19zNXKzz4QoYE8o6wgobbtmfiLBm1DD8zmfawx'
12+let protector1 = base58'JDaizZSMrRZnaZVFQzdixsxoZUnBirfyap3F4zfVmHWt'
13+let protector2 = base58'7TTjchn9fUMdgBn5TMqer3YGdUr61djeokuqGAtxAjke'
14+let protector3 = base58'HUKkWXsC7xzSncw7EDb5NPsXKFx5VJq82hUMgB1G7ELK'
15+let protector4 = base58'E9rAmSbNdH2F3dYffqTSbvRA96pX1HBYWbAHQrNJu2Ej'
1116 func getAddressFromBook (key) = match getString(addressBook, key) {
1217 case a: String =>
1318 Address(fromBase58String(a))
98103 let pAddress6 = getAddressFromBook("pAddress6")
99104 let pAddress7 = getAddressFromBook("pAddress7")
100105 let pAddress8 = getAddressFromBook("pAddress8")
101- let pKey1Signed = if (isDefined(getInteger(pAddress1, txId)))
106+ let pKey1Signed = if (if (isDefined(getInteger(pAddress1, txId)))
107+ then true
108+ else sigVerify(tx.bodyBytes, tx.proofs[0], protector0))
102109 then 1
103110 else 0
104- let pKey2Signed = if (isDefined(getInteger(pAddress2, txId)))
111+ let pKey2Signed = if (if (isDefined(getInteger(pAddress2, txId)))
112+ then true
113+ else sigVerify(tx.bodyBytes, tx.proofs[0], protector1))
105114 then 1
106115 else 0
107- let pKey3Signed = if (isDefined(getInteger(pAddress3, txId)))
116+ let pKey3Signed = if (if (isDefined(getInteger(pAddress3, txId)))
117+ then true
118+ else sigVerify(tx.bodyBytes, tx.proofs[0], protector2))
108119 then 1
109120 else 0
110- let pKey4Signed = if (isDefined(getInteger(pAddress4, txId)))
111- then 1
112- else 0
113- let pKey5Signed = if (isDefined(getInteger(pAddress5, txId)))
114- then 1
115- else 0
116- let pKey6Signed = if (isDefined(getInteger(pAddress6, txId)))
117- then 1
118- else 0
119- let pKey7Signed = if (isDefined(getInteger(pAddress7, txId)))
120- then 1
121- else 0
122- let pKey8Signed = if (isDefined(getInteger(pAddress8, txId)))
123- then 1
124- else 0
125- ((((((((pKey1Signed + pKey2Signed) + pKey3Signed) + pKey4Signed) + pKey5Signed) + pKey6Signed) + pKey7Signed) + pKey8Signed) >= 3)
121+ (((pKey1Signed + pKey2Signed) + pKey3Signed) >= 3)
126122 case _: LeaseTransaction =>
127123 false
128124 case _: SponsorFeeTransaction =>
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# CONTENT_TYPE EXPRESSION #-}
3-let addressBook = Address(base58'3N6DwWxT82nGJUwBwd7L514r2u71gr7WhwJ')
3+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.3"
10+let ver = "5.0.4"
11+let protector0 = base58'Gq8oqv19zNXKzz4QoYE8o6wgobbtmfiLBm1DD8zmfawx'
12+let protector1 = base58'JDaizZSMrRZnaZVFQzdixsxoZUnBirfyap3F4zfVmHWt'
13+let protector2 = base58'7TTjchn9fUMdgBn5TMqer3YGdUr61djeokuqGAtxAjke'
14+let protector3 = base58'HUKkWXsC7xzSncw7EDb5NPsXKFx5VJq82hUMgB1G7ELK'
15+let protector4 = base58'E9rAmSbNdH2F3dYffqTSbvRA96pX1HBYWbAHQrNJu2Ej'
1116 func getAddressFromBook (key) = match getString(addressBook, key) {
1217 case a: String =>
1318 Address(fromBase58String(a))
1419 case _ =>
1520 throw("#008 no key")
1621 }
1722
1823 func getAssetFromAddressBook () = match getString(extract(addressBook), gatewayControlAssetKey) {
1924 case a: String =>
2025 toBytes(a)
2126 case _ =>
2227 throw("#009 no key")
2328 }
2429
2530 match tx {
2631 case o: Order =>
2732 if (sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey))
2833 then (addressFromPublicKey(o.matcherPublicKey) == getAddressFromBook(matcherAddressKey))
2934 else false
3035 case tx: TransferTransaction =>
3136 if (!(sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)))
3237 then throw("#001 Transaction must be signed by owner")
3338 else {
3439 let userState = getInteger(getAddressFromBook(whitelistAddressKey), toBase58String(tx.sender.bytes))
3540 if (!(isDefined(userState)))
3641 then throw("#002 Address not in whitelist")
3742 else if ((userState != validState))
3843 then throw("#003 User not in valid state")
3944 else if (!(isDefined(tx.assetId)))
4045 then {
4146 let key = (toBase58String(tx.sender.bytes) + "_WAVES")
4247 let minAmount = getInteger(getAddressFromBook(whitelistAddressKey), key)
4348 if (isDefined(minAmount))
4449 then {
4550 let curBalance = wavesBalance(extract(tx.sender))
4651 if ((extract(minAmount) > (curBalance - tx.amount)))
4752 then throw("#004 Unable to send such amount (type=2)")
4853 else true
4954 }
5055 else {
5156 let keyOverall = "res_WAVES"
5257 let minAmountOverall = getInteger(getAddressFromBook(whitelistAddressKey), keyOverall)
5358 if (isDefined(minAmountOverall))
5459 then {
5560 let curBalance = wavesBalance(extract(tx.sender))
5661 if ((extract(minAmountOverall) > (curBalance - tx.amount)))
5762 then throw("#005 Unable to send such amount (type=1)")
5863 else true
5964 }
6065 else true
6166 }
6267 }
6368 else if ((tx.assetId == getAssetFromAddressBook()))
6469 then (tx.recipient == getAddressFromBook(gatewayAddressKey))
6570 else {
6671 let white1List = toBase58String(tx.sender.bytes)
6772 let assetTxt = toBase58String(extract(tx.assetId))
6873 let white1ListAsset = ((white1List + "_") + assetTxt)
6974 let white1ListOverall = ("res_" + assetTxt)
7075 let white1ListAssetEntry = getInteger(getAddressFromBook(whitelistAddressKey), white1ListAsset)
7176 if (!(isDefined(white1ListAssetEntry)))
7277 then {
7378 let white1ListOverallEntry = getInteger(getAddressFromBook(whitelistAddressKey), white1ListOverall)
7479 if (!(isDefined(white1ListOverallEntry)))
7580 then true
7681 else {
7782 let cur1Balance = assetBalance(tx.sender, tx.assetId)
7883 if ((extract(white1ListOverallEntry) > (cur1Balance - tx.amount)))
7984 then throw("#006 Unable to send such amount (type=1)")
8085 else true
8186 }
8287 }
8388 else {
8489 let cur1Balance = assetBalance(tx.sender, tx.assetId)
8590 if ((extract(white1ListAssetEntry) > (cur1Balance - tx.amount)))
8691 then throw("#007 Unable to send such amount (type=2)")
8792 else true
8893 }
8994 }
9095 }
9196 case tx: SetScriptTransaction =>
9297 let txId = toBase58String(tx.id)
9398 let pAddress1 = getAddressFromBook("pAddress1")
9499 let pAddress2 = getAddressFromBook("pAddress2")
95100 let pAddress3 = getAddressFromBook("pAddress3")
96101 let pAddress4 = getAddressFromBook("pAddress4")
97102 let pAddress5 = getAddressFromBook("pAddress5")
98103 let pAddress6 = getAddressFromBook("pAddress6")
99104 let pAddress7 = getAddressFromBook("pAddress7")
100105 let pAddress8 = getAddressFromBook("pAddress8")
101- let pKey1Signed = if (isDefined(getInteger(pAddress1, txId)))
106+ let pKey1Signed = if (if (isDefined(getInteger(pAddress1, txId)))
107+ then true
108+ else sigVerify(tx.bodyBytes, tx.proofs[0], protector0))
102109 then 1
103110 else 0
104- let pKey2Signed = if (isDefined(getInteger(pAddress2, txId)))
111+ let pKey2Signed = if (if (isDefined(getInteger(pAddress2, txId)))
112+ then true
113+ else sigVerify(tx.bodyBytes, tx.proofs[0], protector1))
105114 then 1
106115 else 0
107- let pKey3Signed = if (isDefined(getInteger(pAddress3, txId)))
116+ let pKey3Signed = if (if (isDefined(getInteger(pAddress3, txId)))
117+ then true
118+ else sigVerify(tx.bodyBytes, tx.proofs[0], protector2))
108119 then 1
109120 else 0
110- let pKey4Signed = if (isDefined(getInteger(pAddress4, txId)))
111- then 1
112- else 0
113- let pKey5Signed = if (isDefined(getInteger(pAddress5, txId)))
114- then 1
115- else 0
116- let pKey6Signed = if (isDefined(getInteger(pAddress6, txId)))
117- then 1
118- else 0
119- let pKey7Signed = if (isDefined(getInteger(pAddress7, txId)))
120- then 1
121- else 0
122- let pKey8Signed = if (isDefined(getInteger(pAddress8, txId)))
123- then 1
124- else 0
125- ((((((((pKey1Signed + pKey2Signed) + pKey3Signed) + pKey4Signed) + pKey5Signed) + pKey6Signed) + pKey7Signed) + pKey8Signed) >= 3)
121+ (((pKey1Signed + pKey2Signed) + pKey3Signed) >= 3)
126122 case _: LeaseTransaction =>
127123 false
128124 case _: SponsorFeeTransaction =>
129125 false
130126 case _: MassTransferTransaction =>
131127 false
132128 case _: IssueTransaction =>
133129 false
134130 case _: ReissueTransaction =>
135131 false
136132 case _: BurnTransaction =>
137133 false
138134 case _: ExchangeTransaction =>
139135 false
140136 case tx: InvokeScriptTransaction =>
141137 match tx.payment {
142138 case _: AttachedPayment =>
143139 match getInteger(getAddressFromBook(dAppWhitelistAddressKey), toBase58String(addressFromRecipient(tx.dApp).bytes)) {
144140 case _: Int =>
145141 true
146142 case _ =>
147143 false
148144 }
149145 case _ =>
150146 true
151147 }
152148 case _ =>
153149 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
154150 }

github/deemru/w8io/169f3d6 
36.71 ms