tx · 1BXfbex8h15PAv3D9m5cQCTTbbFT7vmboQ44665QTqV

3N9ZoipEVJyQhhijNYxkcomvgGrrEeDhPvN:  -0.01000000 Waves

2023.02.14 01:09 [2448431] smart account 3N9ZoipEVJyQhhijNYxkcomvgGrrEeDhPvN > SELF 0.00000000 Waves

{ "type": 13, "id": "1BXfbex8h15PAv3D9m5cQCTTbbFT7vmboQ44665QTqV", "fee": 1000000, "feeAssetId": null, "timestamp": 1676326204208, "version": 2, "chainId": 84, "sender": "3N9ZoipEVJyQhhijNYxkcomvgGrrEeDhPvN", "senderPublicKey": "2Gtgx295VLiew3CzXqh9eXfFZBTEpDW2nLsrJZ1C4i9J", "proofs": [ "RDALH3dkCfvXBQsnh2PVdgmwHDXcAmA85stNHsskoSkGtdteCzdVQdsxH8dMH1oxBSTxa4fx5XQeXbYdLYV3cz5" ], "script": "base64:AAIFAAAAAAAAACUIAhIICgYIBAQIBAQSAwoBCBIHCgUICAgBCBIDCgEIEgQKAggIAAAAEAAAAAAPZXh0ZXJuYWxPcmFjbGVzCQAETAAAAAICAAAAIzNOOVFablhmdThvR2hzdlo5QmRpek51VkpQN3RyWHlNVXA1CQAETAAAAAICAAAAIzNORDZlV2NNaUdNWDE1WDRINFdtR1RUZE53TGh0V2hRMkRSBQAAAANuaWwAAAAAA2ZlZQAAAAAAAAAAAQAAAAAIZmVlU2NhbGUAAAAAAAAAA+gBAAAAFHRyeUdldFN0cmluZ0V4dGVybmFsAAAAAgAAAAdhZGRyZXNzAAAAA2tleQQAAAAHJG1hdGNoMAkABB0AAAACBQAAAAdhZGRyZXNzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQIAAAAAAQAAABV0cnlHZXRJbnRlZ2VyRXh0ZXJuYWwAAAACAAAAB2FkZHJlc3MAAAADa2V5BAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAAB2FkZHJlc3MFAAAAA2tleQMJAA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kBAAAACGNoZWNrS2V5AAAAAgkAASwAAAACCQABLAAAAAICAAAAA3R4XwUAAAAEdHhJZAIAAAAHX3N0YXR1cwIAAAAJUFJPQ0VTU0VEAwkBAAAAAiE9AAAAAgkBAAAADHRyeUdldFN0cmluZwAAAAEJAAEsAAAAAgkAASwAAAACAgAAAAN0eF8FAAAABHR4SWQCAAAACF9vdGhlcklkAgAAAAAJAAACAAAAAQkAASwAAAACBQAAAAR0eElkAgAAABwgaXMgYWxyZWFkeSBmdWxseSBwcm9jZXNzZWQhAwkBAAAAASEAAAABAwUAAAAJZGVzdENoZWNrBQAAAAtzdGF0dXNDaGVjawcJAAACAAAAAQIAAAANRGlydHkgaGFja2VyIQQAAAAHYXNzZXRJZAkBAAAADHRyeUdldFN0cmluZwAAAAEJAAEsAAAAAgkAASwAAAACAgAAAAN0eF8FAAAABHR4SWQCAAAACF9hc3NldElkBAAAAAZhbW91bnQJAQAAAA10cnlHZXRJbnRlZ2VyAAAAAQkAASwAAAACCQABLAAAAAICAAAAA3R4XwUAAAAEdHhJZAIAAAAHX2Ftb3VudAkABE4AAAACCQEAAAAMcmV3YXJkT3JhY2xlAAAAAgUAAAAHYXNzZXRJZAUAAAAGYW1vdW50CQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAAEsAAAAAgkAASwAAAACAgAAAAN0eF8FAAAABHR4SWQCAAAAB19zdGF0dXMCAAAACVBST0NFU1NFRAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQABLAAAAAIJAAEsAAAAAgIAAAADdHhfBQAAAAR0eElkAgAAAAhfb3RoZXJJZAUAAAAJb3RoZXJUeElkBQAAAANuaWwAAAAAb720rQ==", "height": 2448431, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: AKSCSCJwTuswKBcAoWTagfNTz3b4aryhS7wPvLvP53Et Next: 9FFkng3XP6xTD1hA7GuxUxHYFiLqfZsKcVSShLDTSbxk Diff:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let externalOracles = ["3XU3GMn2vqXgU2fveHUjUyiuyJcnnqM1GfS", "3XXBF69T1dgvM3sKZAscWU6i5arR7Xj6b1w"]
4+let externalOracles = ["3N9QZnXfu8oGhsvZ9BdizNuVJP7trXyMUp5", "3ND6eWcMiGMX15X4H4WmGTTdNwLhtWhQ2DR"]
55
66 let fee = 1
77
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let externalOracles = ["3XU3GMn2vqXgU2fveHUjUyiuyJcnnqM1GfS", "3XXBF69T1dgvM3sKZAscWU6i5arR7Xj6b1w"]
4+let externalOracles = ["3N9QZnXfu8oGhsvZ9BdizNuVJP7trXyMUp5", "3ND6eWcMiGMX15X4H4WmGTTdNwLhtWhQ2DR"]
55
66 let fee = 1
77
88 let feeScale = 1000
99
1010 func tryGetStringExternal (address,key) = match getString(address, key) {
1111 case a: String =>
1212 a
1313 case _ =>
1414 ""
1515 }
1616
1717
1818 func tryGetIntegerExternal (address,key) = match getInteger(address, key) {
1919 case b: Int =>
2020 b
2121 case _ =>
2222 0
2323 }
2424
2525
2626 func tryGetString (key) = tryGetStringExternal(this, key)
2727
2828
2929 func tryGetInteger (key) = tryGetIntegerExternal(this, key)
3030
3131
3232 func tryGetBoolean (key) = match getBoolean(this, key) {
3333 case b: Boolean =>
3434 b
3535 case _ =>
3636 false
3737 }
3838
3939
4040 func assetIdToString (assetId) = toBase58String(value(assetId))
4141
4242
4343 func nativeAssetKey (nativeAsset) = ("nativeAsset_" + nativeAsset)
4444
4545
4646 func otherChainAssetKey (otherChainAsset) = ("otherChainAsset_" + otherChainAsset)
4747
4848
4949 func tnAsset (assetId) = ("tn_asset_" + assetId)
5050
5151
5252 func reissueable (asset) = ("reissueable_" + asset)
5353
5454
5555 func validatePayment (payment) = {
5656 let pmt = value(payment)
5757 if (!(isDefined(pmt.assetId)))
5858 then throw("It needs to be an asset")
5959 else {
6060 let assetDetails = value(assetInfo(value(pmt.assetId)))
6161 if ((1 > pmt.amount))
6262 then throw("You didnt attached a payment!")
6363 else assetIdToString(pmt.assetId)
6464 }
6565 }
6666
6767
6868 func rewardOracle (assetId,baseAmount) = {
6969 let reward = fraction(baseAmount, fee, feeScale, DOWN)
7070 let rewardForOracle = fraction(reward, 1, size(externalOracles), DOWN)
7171 func calculatePayout (acc,externalOracle) = (acc ++ [ScriptTransfer(addressFromStringValue(externalOracle), rewardForOracle, fromBase58String(assetId))])
7272
7373 let $l = externalOracles
7474 let $s = size($l)
7575 let $acc0 = nil
7676 func $f0_1 ($a,$i) = if (($i >= $s))
7777 then $a
7878 else calculatePayout($a, $l[$i])
7979
8080 func $f0_2 ($a,$i) = if (($i >= $s))
8181 then $a
8282 else throw("List size exceeds 5")
8383
8484 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5)
8585 }
8686
8787
8888 func checkKey (key,value) = {
8989 func checkIfKeyExist (acc,externalOracle) = match value {
9090 case b: String =>
9191 let result = tryGetStringExternal(addressFromStringValue(externalOracle), key)
9292 if ((result != value))
9393 then throw(("String Key not matching in " + externalOracle))
9494 else true
9595 case b: Int =>
9696 let result = tryGetIntegerExternal(addressFromStringValue(externalOracle), key)
9797 if ((result != value))
9898 then throw(("Integer Key not matching in " + externalOracle))
9999 else true
100100 case _ =>
101101 throw("Invalid Value!")
102102 }
103103
104104 let $l = externalOracles
105105 let $s = size($l)
106106 let $acc0 = true
107107 func $f0_1 ($a,$i) = if (($i >= $s))
108108 then $a
109109 else checkIfKeyExist($a, $l[$i])
110110
111111 func $f0_2 ($a,$i) = if (($i >= $s))
112112 then $a
113113 else throw("List size exceeds 5")
114114
115115 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5)
116116 }
117117
118118
119119 @Callable(i)
120120 func initiateAssets (nativeAsset,nativeAssetReissueable,nativeAssetTN,otherChainAsset,otherChainAssetReissueable,otherChainAssetTN) = if ((i.caller != this))
121121 then throw("Only the owner dapp can add additional assets!")
122122 else if ((tryGetString(nativeAssetKey(nativeAsset)) != ""))
123123 then throw("Native Asset already listed!")
124124 else if ((tryGetString(otherChainAssetKey(otherChainAsset)) != ""))
125125 then throw("Other Asset already listed!")
126126 else [StringEntry(nativeAssetKey(nativeAsset), otherChainAsset), StringEntry(otherChainAssetKey(otherChainAsset), nativeAsset), BooleanEntry(reissueable(nativeAsset), nativeAssetReissueable), BooleanEntry(reissueable(otherChainAsset), otherChainAssetReissueable), BooleanEntry(tnAsset(nativeAsset), nativeAssetTN), BooleanEntry(tnAsset(otherChainAsset), otherChainAssetTN)]
127127
128128
129129
130130 @Callable(i)
131131 func initiateOutGoingTx (destination) = {
132132 let payment = i.payments
133133 if ((size(payment) != 1))
134134 then throw("Invalid payment added!")
135135 else if ((1 > payment[0].amount))
136136 then throw("Invalid amount added!")
137137 else {
138138 let assetId = validatePayment(payment[0])
139139 let specifiqueData = if (tryGetBoolean(reissueable(assetId)))
140140 then [Burn(fromBase58String(assetId), payment[0].amount), StringEntry((("tx_" + toBase58String(i.transactionId)) + "_asset_to_receive"), tryGetString(otherChainAssetKey(assetId)))]
141141 else [StringEntry((("tx_" + toBase58String(i.transactionId)) + "_asset_to_receive"), tryGetString(nativeAssetKey(assetId)))]
142142 ([StringEntry((("tx_" + toBase58String(i.transactionId)) + "_dest"), destination), StringEntry((("tx_" + toBase58String(i.transactionId)) + "_status"), "UNPROCESSED")] ++ specifiqueData)
143143 }
144144 }
145145
146146
147147
148148 @Callable(i)
149149 func storeDataIncomingTx (txId,destination,assetId,amount,assetIdToReceive) = if (if ((tryGetString((("tx_" + txId) + "_status")) != ""))
150150 then true
151151 else (tryGetString((("tx_" + txId) + "_dest")) != ""))
152152 then throw((txId + " is already stored!"))
153153 else {
154154 let destCheck = checkKey((("tx_" + txId) + "_dest"), destination)
155155 let statusCheck = checkKey((("tx_" + txId) + "_status"), "UNPROCESSED")
156156 let assetIdCheck = checkKey((("tx_" + txId) + "_assetId"), assetId)
157157 let assetId_to_receiveCheck = checkKey((("tx_" + txId) + "_assetId_to_receive"), assetIdToReceive)
158158 let amountCheck = checkKey((("tx_" + txId) + "_amount"), amount)
159159 if (!(if (if (if (if (destCheck)
160160 then statusCheck
161161 else false)
162162 then assetIdCheck
163163 else false)
164164 then assetId_to_receiveCheck
165165 else false)
166166 then amountCheck
167167 else false))
168168 then throw("Dirty hacker!")
169169 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)]
170170 }
171171
172172
173173
174174 @Callable(i)
175175 func releaseIncomingTx (txId) = {
176176 let status = tryGetString((("tx_" + txId) + "_status"))
177177 if ((status == ""))
178178 then throw("No such txid found!")
179179 else if ((status == "PROCESSED"))
180180 then throw("Already processed!")
181181 else {
182182 let assetIdToReceive = tryGetString((("tx_" + txId) + "_assetId_to_receive"))
183183 let destination = tryGetString((("tx_" + txId) + "_dest"))
184184 let amount = tryGetInteger((("tx_" + txId) + "_amount"))
185185 let assetId = tryGetString((("tx_" + txId) + "_assetId"))
186186 let specifiqueData = if (tryGetBoolean(reissueable(assetIdToReceive)))
187187 then if ((tryGetString(nativeAssetKey(assetId)) != assetIdToReceive))
188188 then throw("RE: Skipping tx, corrupt data!")
189189 else [Reissue(fromBase58String(assetIdToReceive), amount, true)]
190190 else if ((tryGetString(otherChainAssetKey(assetId)) != assetIdToReceive))
191191 then throw("URE: Skipping tx, corrupt data!")
192192 else nil
193193 ((rewardOracle(assetIdToReceive, amount) ++ specifiqueData) ++ [ScriptTransfer(addressFromStringValue(destination), amount, fromBase58String(assetIdToReceive)), StringEntry((("tx_" + txId) + "_status"), "PROCESSED"), StringEntry((("tx_" + txId) + "_otherId"), toBase58String(i.transactionId))])
194194 }
195195 }
196196
197197
198198
199199 @Callable(i)
200200 func finalizeOutgoingTx (txId,otherTxId) = {
201201 let destCheck = checkKey((("tx_" + txId) + "_otherId"), otherTxId)
202202 let statusCheck = checkKey((("tx_" + txId) + "_status"), "PROCESSED")
203203 if ((tryGetString((("tx_" + txId) + "_otherId")) != ""))
204204 then throw((txId + " is already fully processed!"))
205205 else if (!(if (destCheck)
206206 then statusCheck
207207 else false))
208208 then throw("Dirty hacker!")
209209 else {
210210 let assetId = tryGetString((("tx_" + txId) + "_assetId"))
211211 let amount = tryGetInteger((("tx_" + txId) + "_amount"))
212212 (rewardOracle(assetId, amount) ++ [StringEntry((("tx_" + txId) + "_status"), "PROCESSED"), StringEntry((("tx_" + txId) + "_otherId"), otherTxId)])
213213 }
214214 }
215215
216216

github/deemru/w8io/169f3d6 
54.17 ms