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:AAIFAAAAAAAAACMIAhIGCgQIBAgEEgMKAQgSBwoFCAgIAQgSAwoBCBIECgIICAAAAAwAAAAAD2V4dGVybmFsT3JhY2xlcwkABEwAAAACAgAAACMzTjlRWm5YZnU4b0doc3ZaOUJkaXpOdVZKUDd0clh5TVVwNQkABEwAAAACAgAAACMzTkQ2ZVdjTWlHTVgxNVg0SDRXbUdUVGROd0xodFdoUTJEUgUAAAADbmlsAQAAABR0cnlHZXRTdHJpbmdFeHRlcm5hbAAAAAIAAAAHYWRkcmVzcwAAAANrZXkEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAHYWRkcmVzcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWECAAAAAAEAAAAVdHJ5R2V0SW50ZWdlckV4dGVybmFsAAAAAgAAAAdhZGRyZXNzAAAAA2tleQQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAdhZGRyZXNzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYgUA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gkBAAAAC1N0cmluZ0VudHJ5AAAAAgkAASwAAAACCQABLAAAAAICAAAAA3R4XwUAAAAEdHhJZAIAAAAIX290aGVySWQFAAAACW90aGVyVHhJZAUAAAADbmlsAAAAAA/QTzo=", "height": 2414669, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: H6mJ7TjZEhbmP9jg2zUQMiQKMUQTMJeEm5viKyvzCmvf Next: AKSCSCJwTuswKBcAoWTagfNTz3b4aryhS7wPvLvP53Et Diff:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let externalOracles = ["3N9QZnXfu8oGhsvZ9BdizNuVJP7trXyMUp5", "3ND6eWcMiGMX15X4H4WmGTTdNwLhtWhQ2DR"] | |
5 | + | ||
4 | 6 | func tryGetStringExternal (address,key) = match getString(address, key) { | |
5 | 7 | case a: String => | |
6 | 8 | a | |
56 | 58 | } | |
57 | 59 | ||
58 | 60 | ||
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 | + | ||
59 | 92 | @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)] | |
65 | 100 | ||
66 | 101 | ||
67 | 102 | ||
88 | 123 | then true | |
89 | 124 | else (tryGetString((("tx_" + txId) + "_dest")) != "")) | |
90 | 125 | 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 | + | } | |
94 | 144 | ||
95 | 145 | ||
96 | 146 | ||
120 | 170 | ||
121 | 171 | ||
122 | 172 | @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 | + | } | |
128 | 184 | ||
129 | 185 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let externalOracles = ["3N9QZnXfu8oGhsvZ9BdizNuVJP7trXyMUp5", "3ND6eWcMiGMX15X4H4WmGTTdNwLhtWhQ2DR"] | |
5 | + | ||
4 | 6 | func tryGetStringExternal (address,key) = match getString(address, key) { | |
5 | 7 | case a: String => | |
6 | 8 | a | |
7 | 9 | case _ => | |
8 | 10 | "" | |
9 | 11 | } | |
10 | 12 | ||
11 | 13 | ||
12 | 14 | func tryGetIntegerExternal (address,key) = match getInteger(address, key) { | |
13 | 15 | case b: Int => | |
14 | 16 | b | |
15 | 17 | case _ => | |
16 | 18 | 0 | |
17 | 19 | } | |
18 | 20 | ||
19 | 21 | ||
20 | 22 | func tryGetString (key) = tryGetStringExternal(this, key) | |
21 | 23 | ||
22 | 24 | ||
23 | 25 | func tryGetInteger (key) = tryGetIntegerExternal(this, key) | |
24 | 26 | ||
25 | 27 | ||
26 | 28 | func tryGetBoolean (key) = match getBoolean(this, key) { | |
27 | 29 | case b: Boolean => | |
28 | 30 | b | |
29 | 31 | case _ => | |
30 | 32 | false | |
31 | 33 | } | |
32 | 34 | ||
33 | 35 | ||
34 | 36 | func assetIdToString (assetId) = toBase58String(value(assetId)) | |
35 | 37 | ||
36 | 38 | ||
37 | 39 | func nativeAssetKey (nativeAsset) = ("nativeAsset_" + nativeAsset) | |
38 | 40 | ||
39 | 41 | ||
40 | 42 | func otherChainAssetKey (otherChainAsset) = ("otherChainAsset_" + otherChainAsset) | |
41 | 43 | ||
42 | 44 | ||
43 | 45 | func reissueable (asset) = ("reissueable_" + asset) | |
44 | 46 | ||
45 | 47 | ||
46 | 48 | func validatePayment (payment) = { | |
47 | 49 | let pmt = value(payment) | |
48 | 50 | if (!(isDefined(pmt.assetId))) | |
49 | 51 | then throw("It needs to be an asset") | |
50 | 52 | else { | |
51 | 53 | let assetDetails = value(assetInfo(value(pmt.assetId))) | |
52 | 54 | if ((1 > pmt.amount)) | |
53 | 55 | then throw("You didnt attached a payment!") | |
54 | 56 | else assetIdToString(pmt.assetId) | |
55 | 57 | } | |
56 | 58 | } | |
57 | 59 | ||
58 | 60 | ||
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 | + | ||
59 | 92 | @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)] | |
65 | 100 | ||
66 | 101 | ||
67 | 102 | ||
68 | 103 | @Callable(i) | |
69 | 104 | func initiateOutGoingTx (destination) = { | |
70 | 105 | let payment = i.payments | |
71 | 106 | if ((size(payment) != 1)) | |
72 | 107 | then throw("Invalid payment added!") | |
73 | 108 | else if ((1 > payment[0].amount)) | |
74 | 109 | then throw("Invalid amount added!") | |
75 | 110 | else { | |
76 | 111 | let assetId = validatePayment(payment[0]) | |
77 | 112 | let specifiqueData = if (tryGetBoolean(reissueable(assetId))) | |
78 | 113 | then [Burn(fromBase58String(assetId), payment[0].amount), StringEntry((("tx_" + toBase58String(i.transactionId)) + "_asset_to_receive"), tryGetString(otherChainAssetKey(assetId)))] | |
79 | 114 | else [StringEntry((("tx_" + toBase58String(i.transactionId)) + "_asset_to_receive"), tryGetString(nativeAssetKey(assetId)))] | |
80 | 115 | ([StringEntry((("tx_" + toBase58String(i.transactionId)) + "_dest"), destination), StringEntry((("tx_" + toBase58String(i.transactionId)) + "_status"), "UNPROCESSED")] ++ specifiqueData) | |
81 | 116 | } | |
82 | 117 | } | |
83 | 118 | ||
84 | 119 | ||
85 | 120 | ||
86 | 121 | @Callable(i) | |
87 | 122 | func storeDataIncomingTx (txId,destination,assetId,amount,assetIdToReceive) = if (if ((tryGetString((("tx_" + txId) + "_status")) != "")) | |
88 | 123 | then true | |
89 | 124 | else (tryGetString((("tx_" + txId) + "_dest")) != "")) | |
90 | 125 | 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 | + | } | |
94 | 144 | ||
95 | 145 | ||
96 | 146 | ||
97 | 147 | @Callable(i) | |
98 | 148 | func releaseIncomingTx (txId) = { | |
99 | 149 | let status = tryGetString((("tx_" + txId) + "_status")) | |
100 | 150 | if ((status == "")) | |
101 | 151 | then throw("No such txid found!") | |
102 | 152 | else if ((status == "PROCESSED")) | |
103 | 153 | then throw("Already processed!") | |
104 | 154 | else { | |
105 | 155 | let assetIdToReceive = tryGetString((("tx_" + txId) + "_assetId_to_receive")) | |
106 | 156 | let destination = tryGetString((("tx_" + txId) + "_dest")) | |
107 | 157 | let amount = tryGetInteger((("tx_" + txId) + "_amount")) | |
108 | 158 | let assetId = tryGetString((("tx_" + txId) + "_assetId")) | |
109 | 159 | let specifiqueData = if (tryGetBoolean(reissueable(assetIdToReceive))) | |
110 | 160 | then if ((tryGetString(nativeAssetKey(assetId)) != assetIdToReceive)) | |
111 | 161 | then throw("RE: Skipping tx, corrupt data!") | |
112 | 162 | else [Reissue(fromBase58String(assetIdToReceive), amount, true)] | |
113 | 163 | else if ((tryGetString(otherChainAssetKey(assetId)) != assetIdToReceive)) | |
114 | 164 | then throw("URE: Skipping tx, corrupt data!") | |
115 | 165 | else nil | |
116 | 166 | (specifiqueData ++ [ScriptTransfer(addressFromStringValue(destination), amount, fromBase58String(assetIdToReceive)), StringEntry((("tx_" + txId) + "_status"), "PROCESSED"), StringEntry((("tx_" + txId) + "_otherId"), toBase58String(i.transactionId))]) | |
117 | 167 | } | |
118 | 168 | } | |
119 | 169 | ||
120 | 170 | ||
121 | 171 | ||
122 | 172 | @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 | + | } | |
128 | 184 | ||
129 | 185 |
github/deemru/w8io/169f3d6 34.88 ms ◑