tx · BYtvQTtxgeJjtiSmZ3EE71Uf8wKUmhBKdjFGRffkvqPi

3N4EFimhkN5F5mh7kUkL9tuTFRxMa4kmvpN:  -0.01400000 Waves

2020.10.07 14:01 [1210059] smart account 3N4EFimhkN5F5mh7kUkL9tuTFRxMa4kmvpN > SELF 0.00000000 Waves

{ "type": 13, "id": "BYtvQTtxgeJjtiSmZ3EE71Uf8wKUmhBKdjFGRffkvqPi", "fee": 1400000, "feeAssetId": null, "timestamp": 1602068405771, "version": 1, "sender": "3N4EFimhkN5F5mh7kUkL9tuTFRxMa4kmvpN", "senderPublicKey": "GFK7PYB6cXjs4wEDvwEwkzcx1NxSS7QwXSxy7JmaBcXk", "proofs": [], "script": "base64:AwQAAAALYWRkcmVzc0Jvb2sJAQAAAAdBZGRyZXNzAAAAAQEAAAAaAVSy4ps+uwlECTaFaLiWJr0yF21GhUEUIDUEAAAAE3doaXRlbGlzdEFkZHJlc3NLZXkCAAAAEHdoaXRlbGlzdEFkZHJlc3MEAAAAF2RBcHBXaGl0ZWxpc3RBZGRyZXNzS2V5AgAAABRkQXBwV2hpdGVsaXN0QWRkcmVzcwQAAAARbWF0Y2hlckFkZHJlc3NLZXkCAAAADm1hdGNoZXJBZGRyZXNzBAAAABFnYXRld2F5QWRkcmVzc0tleQIAAAAOZ2F0ZXdheUFkZHJlc3MEAAAAFmdhdGV3YXlDb250cm9sQXNzZXRLZXkCAAAAE2dhdGV3YXlDb250cm9sQXNzZXQEAAAACnZhbGlkU3RhdGUAAAAAAAAAA+gEAAAAA3ZlcgIAAAAFNS4wLjMKAQAAABJnZXRBZGRyZXNzRnJvbUJvb2sAAAABAAAAA2tleQQAAAAHJG1hdGNoMAkABB0AAAACBQAAAAthZGRyZXNzQm9vawUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWEFAAAAByRtYXRjaDAJAQAAAAdBZGRyZXNzAAAAAQkAAlkAAAABBQAAAAFhCQAAAgAAAAECAAA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WF0Y2gxAgAAAA9BdHRhY2hlZFBheW1lbnQEAAAAByRtYXRjaDIJAAQaAAAAAgkBAAAAEmdldEFkZHJlc3NGcm9tQm9vawAAAAEFAAAAF2RBcHBXaGl0ZWxpc3RBZGRyZXNzS2V5CQACWAAAAAEICQAEJAAAAAEIBQAAAAJ0eAAAAARkQXBwAAAABWJ5dGVzAwkAAAEAAAACBQAAAAckbWF0Y2gyAgAAAANJbnQGBwYJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V590QyIA==", "chainId": 84, "height": 1210059, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: C94QWUQWHN3ZGTSug4Fzx8V858V6nZC4QkhKU5qgjQUP Next: 7dw243iftePXfMDpQxdGPSdRqN44TvbhwepwqhHjE134 Diff:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# CONTENT_TYPE EXPRESSION #-}
3-let addressBook = Address(base58'3MwoVRAPfC2NKuuYJKHVAVtUFhq8MyTEfQh')
3+let addressBook = Address(base58'3N6DwWxT82nGJUwBwd7L514r2u71gr7WhwJ')
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.2"
10+let ver = "5.0.3"
1111 func getAddressFromBook (key) = match getString(addressBook, key) {
1212 case a: String =>
1313 Address(fromBase58String(a))
1414 case _ =>
15- throw("no key")
15+ throw("#008 no key")
1616 }
1717
1818 func getAssetFromAddressBook () = match getString(extract(addressBook), gatewayControlAssetKey) {
1919 case a: String =>
2020 toBytes(a)
2121 case _ =>
22- throw("no key")
22+ throw("#009 no key")
2323 }
2424
2525 match tx {
2929 else false
3030 case tx: TransferTransaction =>
3131 if (!(sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)))
32- then throw("Transaction must be signed by owner")
32+ then throw("#001 Transaction must be signed by owner")
3333 else {
3434 let userState = getInteger(getAddressFromBook(whitelistAddressKey), toBase58String(tx.sender.bytes))
3535 if (!(isDefined(userState)))
36- then throw("Address not in whitelist")
36+ then throw("#002 Address not in whitelist")
3737 else if ((userState != validState))
38- then throw("User not in valid state")
38+ then throw("#003 User not in valid state")
3939 else if (!(isDefined(tx.assetId)))
4040 then {
4141 let key = (toBase58String(tx.sender.bytes) + "_WAVES")
4444 then {
4545 let curBalance = wavesBalance(extract(tx.sender))
4646 if ((extract(minAmount) > (curBalance - tx.amount)))
47- then throw("Unable to send such amount (type=2)")
47+ then throw("#004 Unable to send such amount (type=2)")
4848 else true
4949 }
5050 else {
5454 then {
5555 let curBalance = wavesBalance(extract(tx.sender))
5656 if ((extract(minAmountOverall) > (curBalance - tx.amount)))
57- then throw("Unable to send such amount (type=1)")
57+ then throw("#005 Unable to send such amount (type=1)")
5858 else true
5959 }
6060 else true
7676 else {
7777 let cur1Balance = assetBalance(tx.sender, tx.assetId)
7878 if ((extract(white1ListOverallEntry) > (cur1Balance - tx.amount)))
79- then throw("Unable to send such amount (type=1)")
79+ then throw("#006 Unable to send such amount (type=1)")
8080 else true
8181 }
8282 }
8383 else {
8484 let cur1Balance = assetBalance(tx.sender, tx.assetId)
8585 if ((extract(white1ListAssetEntry) > (cur1Balance - tx.amount)))
86- then throw("Unable to send such amount (type=2)")
86+ then throw("#007 Unable to send such amount (type=2)")
8787 else true
8888 }
8989 }
123123 then 1
124124 else 0
125125 ((((((((pKey1Signed + pKey2Signed) + pKey3Signed) + pKey4Signed) + pKey5Signed) + pKey6Signed) + pKey7Signed) + pKey8Signed) >= 3)
126- case tx: LeaseTransaction =>
126+ case _: LeaseTransaction =>
127127 false
128- case tx: SponsorFeeTransaction =>
128+ case _: SponsorFeeTransaction =>
129129 false
130- case tx: MassTransferTransaction =>
130+ case _: MassTransferTransaction =>
131131 false
132- case tx: IssueTransaction =>
132+ case _: IssueTransaction =>
133133 false
134- case tx: ReissueTransaction =>
134+ case _: ReissueTransaction =>
135135 false
136- case tx: BurnTransaction =>
136+ case _: BurnTransaction =>
137137 false
138- case tx: ExchangeTransaction =>
138+ case _: ExchangeTransaction =>
139139 false
140140 case tx: InvokeScriptTransaction =>
141141 match tx.payment {
142- case a: AttachedPayment =>
142+ case _: AttachedPayment =>
143143 match getInteger(getAddressFromBook(dAppWhitelistAddressKey), toBase58String(addressFromRecipient(tx.dApp).bytes)) {
144- case unused: Int =>
144+ case _: Int =>
145145 true
146146 case _ =>
147147 false
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# CONTENT_TYPE EXPRESSION #-}
3-let addressBook = Address(base58'3MwoVRAPfC2NKuuYJKHVAVtUFhq8MyTEfQh')
3+let addressBook = Address(base58'3N6DwWxT82nGJUwBwd7L514r2u71gr7WhwJ')
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.2"
10+let ver = "5.0.3"
1111 func getAddressFromBook (key) = match getString(addressBook, key) {
1212 case a: String =>
1313 Address(fromBase58String(a))
1414 case _ =>
15- throw("no key")
15+ throw("#008 no key")
1616 }
1717
1818 func getAssetFromAddressBook () = match getString(extract(addressBook), gatewayControlAssetKey) {
1919 case a: String =>
2020 toBytes(a)
2121 case _ =>
22- throw("no key")
22+ throw("#009 no key")
2323 }
2424
2525 match tx {
2626 case o: Order =>
2727 if (sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey))
2828 then (addressFromPublicKey(o.matcherPublicKey) == getAddressFromBook(matcherAddressKey))
2929 else false
3030 case tx: TransferTransaction =>
3131 if (!(sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)))
32- then throw("Transaction must be signed by owner")
32+ then throw("#001 Transaction must be signed by owner")
3333 else {
3434 let userState = getInteger(getAddressFromBook(whitelistAddressKey), toBase58String(tx.sender.bytes))
3535 if (!(isDefined(userState)))
36- then throw("Address not in whitelist")
36+ then throw("#002 Address not in whitelist")
3737 else if ((userState != validState))
38- then throw("User not in valid state")
38+ then throw("#003 User not in valid state")
3939 else if (!(isDefined(tx.assetId)))
4040 then {
4141 let key = (toBase58String(tx.sender.bytes) + "_WAVES")
4242 let minAmount = getInteger(getAddressFromBook(whitelistAddressKey), key)
4343 if (isDefined(minAmount))
4444 then {
4545 let curBalance = wavesBalance(extract(tx.sender))
4646 if ((extract(minAmount) > (curBalance - tx.amount)))
47- then throw("Unable to send such amount (type=2)")
47+ then throw("#004 Unable to send such amount (type=2)")
4848 else true
4949 }
5050 else {
5151 let keyOverall = "res_WAVES"
5252 let minAmountOverall = getInteger(getAddressFromBook(whitelistAddressKey), keyOverall)
5353 if (isDefined(minAmountOverall))
5454 then {
5555 let curBalance = wavesBalance(extract(tx.sender))
5656 if ((extract(minAmountOverall) > (curBalance - tx.amount)))
57- then throw("Unable to send such amount (type=1)")
57+ then throw("#005 Unable to send such amount (type=1)")
5858 else true
5959 }
6060 else true
6161 }
6262 }
6363 else if ((tx.assetId == getAssetFromAddressBook()))
6464 then (tx.recipient == getAddressFromBook(gatewayAddressKey))
6565 else {
6666 let white1List = toBase58String(tx.sender.bytes)
6767 let assetTxt = toBase58String(extract(tx.assetId))
6868 let white1ListAsset = ((white1List + "_") + assetTxt)
6969 let white1ListOverall = ("res_" + assetTxt)
7070 let white1ListAssetEntry = getInteger(getAddressFromBook(whitelistAddressKey), white1ListAsset)
7171 if (!(isDefined(white1ListAssetEntry)))
7272 then {
7373 let white1ListOverallEntry = getInteger(getAddressFromBook(whitelistAddressKey), white1ListOverall)
7474 if (!(isDefined(white1ListOverallEntry)))
7575 then true
7676 else {
7777 let cur1Balance = assetBalance(tx.sender, tx.assetId)
7878 if ((extract(white1ListOverallEntry) > (cur1Balance - tx.amount)))
79- then throw("Unable to send such amount (type=1)")
79+ then throw("#006 Unable to send such amount (type=1)")
8080 else true
8181 }
8282 }
8383 else {
8484 let cur1Balance = assetBalance(tx.sender, tx.assetId)
8585 if ((extract(white1ListAssetEntry) > (cur1Balance - tx.amount)))
86- then throw("Unable to send such amount (type=2)")
86+ then throw("#007 Unable to send such amount (type=2)")
8787 else true
8888 }
8989 }
9090 }
9191 case tx: SetScriptTransaction =>
9292 let txId = toBase58String(tx.id)
9393 let pAddress1 = getAddressFromBook("pAddress1")
9494 let pAddress2 = getAddressFromBook("pAddress2")
9595 let pAddress3 = getAddressFromBook("pAddress3")
9696 let pAddress4 = getAddressFromBook("pAddress4")
9797 let pAddress5 = getAddressFromBook("pAddress5")
9898 let pAddress6 = getAddressFromBook("pAddress6")
9999 let pAddress7 = getAddressFromBook("pAddress7")
100100 let pAddress8 = getAddressFromBook("pAddress8")
101101 let pKey1Signed = if (isDefined(getInteger(pAddress1, txId)))
102102 then 1
103103 else 0
104104 let pKey2Signed = if (isDefined(getInteger(pAddress2, txId)))
105105 then 1
106106 else 0
107107 let pKey3Signed = if (isDefined(getInteger(pAddress3, txId)))
108108 then 1
109109 else 0
110110 let pKey4Signed = if (isDefined(getInteger(pAddress4, txId)))
111111 then 1
112112 else 0
113113 let pKey5Signed = if (isDefined(getInteger(pAddress5, txId)))
114114 then 1
115115 else 0
116116 let pKey6Signed = if (isDefined(getInteger(pAddress6, txId)))
117117 then 1
118118 else 0
119119 let pKey7Signed = if (isDefined(getInteger(pAddress7, txId)))
120120 then 1
121121 else 0
122122 let pKey8Signed = if (isDefined(getInteger(pAddress8, txId)))
123123 then 1
124124 else 0
125125 ((((((((pKey1Signed + pKey2Signed) + pKey3Signed) + pKey4Signed) + pKey5Signed) + pKey6Signed) + pKey7Signed) + pKey8Signed) >= 3)
126- case tx: LeaseTransaction =>
126+ case _: LeaseTransaction =>
127127 false
128- case tx: SponsorFeeTransaction =>
128+ case _: SponsorFeeTransaction =>
129129 false
130- case tx: MassTransferTransaction =>
130+ case _: MassTransferTransaction =>
131131 false
132- case tx: IssueTransaction =>
132+ case _: IssueTransaction =>
133133 false
134- case tx: ReissueTransaction =>
134+ case _: ReissueTransaction =>
135135 false
136- case tx: BurnTransaction =>
136+ case _: BurnTransaction =>
137137 false
138- case tx: ExchangeTransaction =>
138+ case _: ExchangeTransaction =>
139139 false
140140 case tx: InvokeScriptTransaction =>
141141 match tx.payment {
142- case a: AttachedPayment =>
142+ case _: AttachedPayment =>
143143 match getInteger(getAddressFromBook(dAppWhitelistAddressKey), toBase58String(addressFromRecipient(tx.dApp).bytes)) {
144- case unused: Int =>
144+ case _: Int =>
145145 true
146146 case _ =>
147147 false
148148 }
149149 case _ =>
150150 true
151151 }
152152 case _ =>
153153 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
154154 }

github/deemru/w8io/169f3d6 
102.96 ms