tx · Gy7Y5SYuuvQe2xccvSYvgv5c4VnwGC4oGwqWieDQ4zFE

3N9ZoipEVJyQhhijNYxkcomvgGrrEeDhPvN:  -0.01000000 Waves

2023.01.21 14:19 [2414669] smart account 3N9ZoipEVJyQhhijNYxkcomvgGrrEeDhPvN > SELF 0.00000000 Waves

{ "type": 13, "id": "Gy7Y5SYuuvQe2xccvSYvgv5c4VnwGC4oGwqWieDQ4zFE", "fee": 1000000, "feeAssetId": null, "timestamp": 1674299965719, "version": 2, "chainId": 84, "sender": "3N9ZoipEVJyQhhijNYxkcomvgGrrEeDhPvN", "senderPublicKey": "2Gtgx295VLiew3CzXqh9eXfFZBTEpDW2nLsrJZ1C4i9J", "proofs": [ "22xgCqquUCYWv6d3jVKRqsr226z3RGiMpxXmEfiVJmfCPNF2ZUDvibiApu7SLe2mNKLohYZxDWMtQkN911XReMd4" ], "script": "base64:AAIFAAAAAAAAACMIAhIGCgQIBAgEEgMKAQgSBwoFCAgIAQgSAwoBCBIECgIICAAAAAwAAAAAD2V4dGVybmFsT3JhY2xlcwkABEwAAAACAgAAACMzTjlRWm5YZnU4b0doc3ZaOUJkaXpOdVZKUDd0clh5TVVwNQkABEwAAAACAgAAACMzTkQ2ZVdjTWlHTVgxNVg0SDRXbUdUVGROd0xodFdoUTJEUgUAAAADbmlsAQAAABR0cnlHZXRTdHJpbmdFeHRlcm5hbAAAAAIAAAAHYWRkcmVzcwAAAANrZXkEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAHYWRkcmVzcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWECAAAAAAEAAAAVdHJ5R2V0SW50ZWdlckV4dGVybmFsAAAAAgAAAAdhZGRyZXNzAAAAA2tleQQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAdhZGRyZXNzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYgU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AgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkAASwAAAACCQABLAAAAAICAAAAA3R4XwUAAAAEdHhJZAIAAAAIX290aGVySWQFAAAACW90aGVyVHhJZAUAAAADbmlsAAAAAA/QTzo=", "height": 2414669, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: H6mJ7TjZEhbmP9jg2zUQMiQKMUQTMJeEm5viKyvzCmvf Next: AKSCSCJwTuswKBcAoWTagfNTz3b4aryhS7wPvLvP53Et Diff:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4+let externalOracles = ["3N9QZnXfu8oGhsvZ9BdizNuVJP7trXyMUp5", "3ND6eWcMiGMX15X4H4WmGTTdNwLhtWhQ2DR"]
5+
46 func tryGetStringExternal (address,key) = match getString(address, key) {
57 case a: String =>
68 a
5658 }
5759
5860
61+func checkKey (key,value) = {
62+ func checkIfKeyExist (acc,externalOracle) = match value {
63+ case b: String =>
64+ let result = tryGetStringExternal(addressFromStringValue(externalOracle), key)
65+ if ((result != value))
66+ then throw(("String Key not matching in " + externalOracle))
67+ else true
68+ case b: Int =>
69+ let result = tryGetIntegerExternal(addressFromStringValue(externalOracle), key)
70+ if ((result != value))
71+ then throw(("Integer Key not matching in " + externalOracle))
72+ else true
73+ case _ =>
74+ throw("Invalid Value!")
75+ }
76+
77+ let $l = externalOracles
78+ let $s = size($l)
79+ let $acc0 = true
80+ func $f0_1 ($a,$i) = if (($i >= $s))
81+ then $a
82+ else checkIfKeyExist($a, $l[$i])
83+
84+ func $f0_2 ($a,$i) = if (($i >= $s))
85+ then $a
86+ else throw("List size exceeds 5")
87+
88+ $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5)
89+ }
90+
91+
5992 @Callable(i)
60-func initiateAssets (nativeAsset,nativeAssetReissueable,otherChainAsset,otherChainAssetReissueable) = if ((tryGetString(nativeAssetKey(nativeAsset)) != ""))
61- then throw("Native Asset already listed!")
62- else if ((tryGetString(otherChainAssetKey(otherChainAsset)) != ""))
63- then throw("Other Asset already listed!")
64- else [StringEntry(nativeAssetKey(nativeAsset), otherChainAsset), StringEntry(otherChainAssetKey(otherChainAsset), nativeAsset), BooleanEntry(reissueable(nativeAsset), nativeAssetReissueable), BooleanEntry(reissueable(otherChainAsset), otherChainAssetReissueable)]
93+func initiateAssets (nativeAsset,nativeAssetReissueable,otherChainAsset,otherChainAssetReissueable) = if ((i.caller != this))
94+ then throw("Only the owner dapp can add additional assets!")
95+ else if ((tryGetString(nativeAssetKey(nativeAsset)) != ""))
96+ then throw("Native Asset already listed!")
97+ else if ((tryGetString(otherChainAssetKey(otherChainAsset)) != ""))
98+ then throw("Other Asset already listed!")
99+ else [StringEntry(nativeAssetKey(nativeAsset), otherChainAsset), StringEntry(otherChainAssetKey(otherChainAsset), nativeAsset), BooleanEntry(reissueable(nativeAsset), nativeAssetReissueable), BooleanEntry(reissueable(otherChainAsset), otherChainAssetReissueable)]
65100
66101
67102
88123 then true
89124 else (tryGetString((("tx_" + txId) + "_dest")) != ""))
90125 then throw((txId + " is already stored!"))
91- else if ((i.caller != this))
92- then throw("Dirty hacker")
93- else [StringEntry((("tx_" + txId) + "_dest"), destination), StringEntry((("tx_" + txId) + "_status"), "UNPROCESSED"), StringEntry((("tx_" + txId) + "_assetId"), assetId), StringEntry((("tx_" + txId) + "_assetId_to_receive"), assetIdToReceive), IntegerEntry((("tx_" + txId) + "_amount"), amount)]
126+ else {
127+ let destCheck = checkKey((("tx_" + txId) + "_dest"), destination)
128+ let statusCheck = checkKey((("tx_" + txId) + "_status"), "UNPROCESSED")
129+ let assetIdCheck = checkKey((("tx_" + txId) + "_assetId"), assetId)
130+ let assetId_to_receiveCheck = checkKey((("tx_" + txId) + "_assetId_to_receive"), assetIdToReceive)
131+ let amountCheck = checkKey((("tx_" + txId) + "_amount"), amount)
132+ if (!(if (if (if (if (destCheck)
133+ then statusCheck
134+ else false)
135+ then assetIdCheck
136+ else false)
137+ then assetId_to_receiveCheck
138+ else false)
139+ then amountCheck
140+ else false))
141+ then throw("Dirty hacker!")
142+ else [StringEntry((("tx_" + txId) + "_dest"), destination), StringEntry((("tx_" + txId) + "_status"), "UNPROCESSED"), StringEntry((("tx_" + txId) + "_assetId"), assetId), StringEntry((("tx_" + txId) + "_assetId_to_receive"), assetIdToReceive), IntegerEntry((("tx_" + txId) + "_amount"), amount)]
143+ }
94144
95145
96146
120170
121171
122172 @Callable(i)
123-func finalizeOutgoingTx (txId,otherTxId) = if ((tryGetString((("tx_" + txId) + "_otherId")) != ""))
124- then throw((txId + " is already fully processed!"))
125- else if ((i.caller != this))
126- then throw("Dirty hacker!")
127- else [StringEntry((("tx_" + txId) + "_status"), "PROCESSED"), StringEntry((("tx_" + txId) + "_otherId"), otherTxId)]
173+func finalizeOutgoingTx (txId,otherTxId) = {
174+ let destCheck = checkKey((("tx_" + txId) + "_otherId"), otherTxId)
175+ let statusCheck = checkKey((("tx_" + txId) + "_status"), "PROCESSED")
176+ if ((tryGetString((("tx_" + txId) + "_otherId")) != ""))
177+ then throw((txId + " is already fully processed!"))
178+ else if (!(if (destCheck)
179+ then statusCheck
180+ else false))
181+ then throw("Dirty hacker!")
182+ else [StringEntry((("tx_" + txId) + "_status"), "PROCESSED"), StringEntry((("tx_" + txId) + "_otherId"), otherTxId)]
183+ }
128184
129185
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4+let externalOracles = ["3N9QZnXfu8oGhsvZ9BdizNuVJP7trXyMUp5", "3ND6eWcMiGMX15X4H4WmGTTdNwLhtWhQ2DR"]
5+
46 func tryGetStringExternal (address,key) = match getString(address, key) {
57 case a: String =>
68 a
79 case _ =>
810 ""
911 }
1012
1113
1214 func tryGetIntegerExternal (address,key) = match getInteger(address, key) {
1315 case b: Int =>
1416 b
1517 case _ =>
1618 0
1719 }
1820
1921
2022 func tryGetString (key) = tryGetStringExternal(this, key)
2123
2224
2325 func tryGetInteger (key) = tryGetIntegerExternal(this, key)
2426
2527
2628 func tryGetBoolean (key) = match getBoolean(this, key) {
2729 case b: Boolean =>
2830 b
2931 case _ =>
3032 false
3133 }
3234
3335
3436 func assetIdToString (assetId) = toBase58String(value(assetId))
3537
3638
3739 func nativeAssetKey (nativeAsset) = ("nativeAsset_" + nativeAsset)
3840
3941
4042 func otherChainAssetKey (otherChainAsset) = ("otherChainAsset_" + otherChainAsset)
4143
4244
4345 func reissueable (asset) = ("reissueable_" + asset)
4446
4547
4648 func validatePayment (payment) = {
4749 let pmt = value(payment)
4850 if (!(isDefined(pmt.assetId)))
4951 then throw("It needs to be an asset")
5052 else {
5153 let assetDetails = value(assetInfo(value(pmt.assetId)))
5254 if ((1 > pmt.amount))
5355 then throw("You didnt attached a payment!")
5456 else assetIdToString(pmt.assetId)
5557 }
5658 }
5759
5860
61+func checkKey (key,value) = {
62+ func checkIfKeyExist (acc,externalOracle) = match value {
63+ case b: String =>
64+ let result = tryGetStringExternal(addressFromStringValue(externalOracle), key)
65+ if ((result != value))
66+ then throw(("String Key not matching in " + externalOracle))
67+ else true
68+ case b: Int =>
69+ let result = tryGetIntegerExternal(addressFromStringValue(externalOracle), key)
70+ if ((result != value))
71+ then throw(("Integer Key not matching in " + externalOracle))
72+ else true
73+ case _ =>
74+ throw("Invalid Value!")
75+ }
76+
77+ let $l = externalOracles
78+ let $s = size($l)
79+ let $acc0 = true
80+ func $f0_1 ($a,$i) = if (($i >= $s))
81+ then $a
82+ else checkIfKeyExist($a, $l[$i])
83+
84+ func $f0_2 ($a,$i) = if (($i >= $s))
85+ then $a
86+ else throw("List size exceeds 5")
87+
88+ $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5)
89+ }
90+
91+
5992 @Callable(i)
60-func initiateAssets (nativeAsset,nativeAssetReissueable,otherChainAsset,otherChainAssetReissueable) = if ((tryGetString(nativeAssetKey(nativeAsset)) != ""))
61- then throw("Native Asset already listed!")
62- else if ((tryGetString(otherChainAssetKey(otherChainAsset)) != ""))
63- then throw("Other Asset already listed!")
64- else [StringEntry(nativeAssetKey(nativeAsset), otherChainAsset), StringEntry(otherChainAssetKey(otherChainAsset), nativeAsset), BooleanEntry(reissueable(nativeAsset), nativeAssetReissueable), BooleanEntry(reissueable(otherChainAsset), otherChainAssetReissueable)]
93+func initiateAssets (nativeAsset,nativeAssetReissueable,otherChainAsset,otherChainAssetReissueable) = if ((i.caller != this))
94+ then throw("Only the owner dapp can add additional assets!")
95+ else if ((tryGetString(nativeAssetKey(nativeAsset)) != ""))
96+ then throw("Native Asset already listed!")
97+ else if ((tryGetString(otherChainAssetKey(otherChainAsset)) != ""))
98+ then throw("Other Asset already listed!")
99+ else [StringEntry(nativeAssetKey(nativeAsset), otherChainAsset), StringEntry(otherChainAssetKey(otherChainAsset), nativeAsset), BooleanEntry(reissueable(nativeAsset), nativeAssetReissueable), BooleanEntry(reissueable(otherChainAsset), otherChainAssetReissueable)]
65100
66101
67102
68103 @Callable(i)
69104 func initiateOutGoingTx (destination) = {
70105 let payment = i.payments
71106 if ((size(payment) != 1))
72107 then throw("Invalid payment added!")
73108 else if ((1 > payment[0].amount))
74109 then throw("Invalid amount added!")
75110 else {
76111 let assetId = validatePayment(payment[0])
77112 let specifiqueData = if (tryGetBoolean(reissueable(assetId)))
78113 then [Burn(fromBase58String(assetId), payment[0].amount), StringEntry((("tx_" + toBase58String(i.transactionId)) + "_asset_to_receive"), tryGetString(otherChainAssetKey(assetId)))]
79114 else [StringEntry((("tx_" + toBase58String(i.transactionId)) + "_asset_to_receive"), tryGetString(nativeAssetKey(assetId)))]
80115 ([StringEntry((("tx_" + toBase58String(i.transactionId)) + "_dest"), destination), StringEntry((("tx_" + toBase58String(i.transactionId)) + "_status"), "UNPROCESSED")] ++ specifiqueData)
81116 }
82117 }
83118
84119
85120
86121 @Callable(i)
87122 func storeDataIncomingTx (txId,destination,assetId,amount,assetIdToReceive) = if (if ((tryGetString((("tx_" + txId) + "_status")) != ""))
88123 then true
89124 else (tryGetString((("tx_" + txId) + "_dest")) != ""))
90125 then throw((txId + " is already stored!"))
91- else if ((i.caller != this))
92- then throw("Dirty hacker")
93- else [StringEntry((("tx_" + txId) + "_dest"), destination), StringEntry((("tx_" + txId) + "_status"), "UNPROCESSED"), StringEntry((("tx_" + txId) + "_assetId"), assetId), StringEntry((("tx_" + txId) + "_assetId_to_receive"), assetIdToReceive), IntegerEntry((("tx_" + txId) + "_amount"), amount)]
126+ else {
127+ let destCheck = checkKey((("tx_" + txId) + "_dest"), destination)
128+ let statusCheck = checkKey((("tx_" + txId) + "_status"), "UNPROCESSED")
129+ let assetIdCheck = checkKey((("tx_" + txId) + "_assetId"), assetId)
130+ let assetId_to_receiveCheck = checkKey((("tx_" + txId) + "_assetId_to_receive"), assetIdToReceive)
131+ let amountCheck = checkKey((("tx_" + txId) + "_amount"), amount)
132+ if (!(if (if (if (if (destCheck)
133+ then statusCheck
134+ else false)
135+ then assetIdCheck
136+ else false)
137+ then assetId_to_receiveCheck
138+ else false)
139+ then amountCheck
140+ else false))
141+ then throw("Dirty hacker!")
142+ else [StringEntry((("tx_" + txId) + "_dest"), destination), StringEntry((("tx_" + txId) + "_status"), "UNPROCESSED"), StringEntry((("tx_" + txId) + "_assetId"), assetId), StringEntry((("tx_" + txId) + "_assetId_to_receive"), assetIdToReceive), IntegerEntry((("tx_" + txId) + "_amount"), amount)]
143+ }
94144
95145
96146
97147 @Callable(i)
98148 func releaseIncomingTx (txId) = {
99149 let status = tryGetString((("tx_" + txId) + "_status"))
100150 if ((status == ""))
101151 then throw("No such txid found!")
102152 else if ((status == "PROCESSED"))
103153 then throw("Already processed!")
104154 else {
105155 let assetIdToReceive = tryGetString((("tx_" + txId) + "_assetId_to_receive"))
106156 let destination = tryGetString((("tx_" + txId) + "_dest"))
107157 let amount = tryGetInteger((("tx_" + txId) + "_amount"))
108158 let assetId = tryGetString((("tx_" + txId) + "_assetId"))
109159 let specifiqueData = if (tryGetBoolean(reissueable(assetIdToReceive)))
110160 then if ((tryGetString(nativeAssetKey(assetId)) != assetIdToReceive))
111161 then throw("RE: Skipping tx, corrupt data!")
112162 else [Reissue(fromBase58String(assetIdToReceive), amount, true)]
113163 else if ((tryGetString(otherChainAssetKey(assetId)) != assetIdToReceive))
114164 then throw("URE: Skipping tx, corrupt data!")
115165 else nil
116166 (specifiqueData ++ [ScriptTransfer(addressFromStringValue(destination), amount, fromBase58String(assetIdToReceive)), StringEntry((("tx_" + txId) + "_status"), "PROCESSED"), StringEntry((("tx_" + txId) + "_otherId"), toBase58String(i.transactionId))])
117167 }
118168 }
119169
120170
121171
122172 @Callable(i)
123-func finalizeOutgoingTx (txId,otherTxId) = if ((tryGetString((("tx_" + txId) + "_otherId")) != ""))
124- then throw((txId + " is already fully processed!"))
125- else if ((i.caller != this))
126- then throw("Dirty hacker!")
127- else [StringEntry((("tx_" + txId) + "_status"), "PROCESSED"), StringEntry((("tx_" + txId) + "_otherId"), otherTxId)]
173+func finalizeOutgoingTx (txId,otherTxId) = {
174+ let destCheck = checkKey((("tx_" + txId) + "_otherId"), otherTxId)
175+ let statusCheck = checkKey((("tx_" + txId) + "_status"), "PROCESSED")
176+ if ((tryGetString((("tx_" + txId) + "_otherId")) != ""))
177+ then throw((txId + " is already fully processed!"))
178+ else if (!(if (destCheck)
179+ then statusCheck
180+ else false))
181+ then throw("Dirty hacker!")
182+ else [StringEntry((("tx_" + txId) + "_status"), "PROCESSED"), StringEntry((("tx_" + txId) + "_otherId"), otherTxId)]
183+ }
128184
129185

github/deemru/w8io/169f3d6 
34.88 ms