tx · 2ksdtFhQQjHZYSs5BE7czUftTf94LAshu9mbxnqP21fZ

3MyfNP96hxGP1BwNsWHuTNHuTiBiEWdm7mH:  -0.01400000 Waves

2019.09.25 12:59 [691713] smart account 3MyfNP96hxGP1BwNsWHuTNHuTiBiEWdm7mH > SELF 0.00000000 Waves

{ "type": 13, "id": "2ksdtFhQQjHZYSs5BE7czUftTf94LAshu9mbxnqP21fZ", "fee": 1400000, "feeAssetId": null, "timestamp": 1569405600293, "version": 1, "sender": "3MyfNP96hxGP1BwNsWHuTNHuTiBiEWdm7mH", "senderPublicKey": "F1CXEKCB4kBs5PVuinmoNQeUTUzLb7dbimeBfUpM2iTV", "proofs": [ "5kn5U68wyFKVZn9WQ9v7s1Jcd2nyryqSQEU39Wgf2k2iB9VcMSVRCQQFEZwdxdL9SrV9qhJFy8CgYsVF3NWDWGWw" ], "script": "base64:AAIDAAAAAAAAAAAAAAAAAAAAAgAAAApjb250ZXh0T2JqAQAAAAxvcmFjbGVVcGRhdGUAAAABAAAADWFkZHJlc3NTdHJpbmcEAAAAB2FkZHJlc3MJAQAAABxAZXh0clVzZXIoYWRkcmVzc0Zyb21TdHJpbmcpAAAAAQUAAAANYWRkcmVzc1N0cmluZwQAAAAMYW1vdW50VG9rZW5BBAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAAB2FkZHJlc3MCAAAADGFtb3VudFRva2VuQQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAFzBQAAAAckbWF0Y2gwBgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAEVW5pdAQAAAABdQUAAAAHJG1hdGNoMAkAAAIAAAABAgAAABphbW91bnRUb2tlbkEgaXNuJ3QgZGVmaWVuZAkBAAAABXRocm93AAAAAAQAAAAMYW1vdW50VG9rZW5CBAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAAB2FkZHJlc3MCAAAADGFtb3VudFRva2VuQgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAA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QIAAAAJd2l0aGRyYXduCQAAAAAAAAIFAAAADGFtb3VudFRva2VuQgIAAAAJd2l0aGRyYXduBwkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAANYWRkcmVzc1N0cmluZwcFAAAAA25pbAkAAAIAAAABAgAAAA1vcmFjbGUgcmVqZWN0AAAAAJcbRrA=", "chainId": 84, "height": 691713, "spentComplexity": 0 } View: original | compacted Prev: GsqBTyMgPBMJ6dEvXVhirBKcjDW5mB5LvqRMK3aCA4U9 Next: none Diff:
OldNewDifferences
154154 }
155155
156156
157+
158+@Callable(a)
159+func oracleDelete (b) = {
160+ let c = addressFromStringValue(b)
161+ let d = {
162+ let e = getString(c, "amountTokenA")
163+ if ($isInstanceOf(e, "String"))
164+ then {
165+ let f = e
166+ f
167+ }
168+ else if ($isInstanceOf(e, "Unit"))
169+ then {
170+ let g = e
171+ throw("amountTokenA isn't defiend")
172+ }
173+ else throw()
174+ }
175+ let h = {
176+ let e = getString(c, "amountTokenB")
177+ if ($isInstanceOf(e, "String"))
178+ then {
179+ let f = e
180+ f
181+ }
182+ else if ($isInstanceOf(e, "Unit"))
183+ then {
184+ let g = e
185+ throw("amountTokenB isn't defiend")
186+ }
187+ else throw()
188+ }
189+ if (if ((d == "withdrawn"))
190+ then (h == "withdrawn")
191+ else false)
192+ then WriteSet([DataEntry(b, false)])
193+ else throw("oracle reject")
194+ }
195+
196+
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(a)
77 func oracleUpdate (b) = {
88 let c = addressFromStringValue(b)
99 let d = {
1010 let e = getInteger(c, "amountTokenA")
1111 if ($isInstanceOf(e, "Int"))
1212 then {
1313 let f = e
1414 true
1515 }
1616 else if ($isInstanceOf(e, "Unit"))
1717 then {
1818 let g = e
1919 throw("amountTokenA isn't defiend")
2020 }
2121 else throw()
2222 }
2323 let h = {
2424 let e = getInteger(c, "amountTokenB")
2525 if ($isInstanceOf(e, "Int"))
2626 then {
2727 let f = e
2828 true
2929 }
3030 else if ($isInstanceOf(e, "Unit"))
3131 then {
3232 let g = e
3333 throw("amountTokenB isn't defiend")
3434 }
3535 else throw()
3636 }
3737 let i = {
3838 let e = getString(c, "assetIdTokenA")
3939 if ($isInstanceOf(e, "String"))
4040 then {
4141 let f = e
4242 true
4343 }
4444 else if ($isInstanceOf(e, "Unit"))
4545 then {
4646 let g = e
4747 throw("assetIdTokenA isn't defiend")
4848 }
4949 else throw()
5050 }
5151 let j = {
5252 let e = getString(c, "assetIdTokenB")
5353 if ($isInstanceOf(e, "String"))
5454 then {
5555 let f = e
5656 true
5757 }
5858 else if ($isInstanceOf(e, "Unit"))
5959 then {
6060 let g = e
6161 throw("assetIdTokenB isn't defiend")
6262 }
6363 else throw()
6464 }
6565 let k = {
6666 let e = getInteger(c, "comission")
6767 if ($isInstanceOf(e, "Int"))
6868 then {
6969 let f = e
7070 true
7171 }
7272 else if ($isInstanceOf(e, "Unit"))
7373 then {
7474 let g = e
7575 throw("comission isn't defiend")
7676 }
7777 else throw()
7878 }
7979 let l = {
8080 let e = getInteger(c, "exchange_count")
8181 if ($isInstanceOf(e, "Int"))
8282 then {
8383 let f = e
8484 true
8585 }
8686 else if ($isInstanceOf(e, "Unit"))
8787 then {
8888 let g = e
8989 throw("exchange_count isn't defiend")
9090 }
9191 else throw()
9292 }
9393 let m = {
9494 let e = getBoolean(c, "fundA")
9595 if ($isInstanceOf(e, "Boolean"))
9696 then {
9797 let f = e
9898 true
9999 }
100100 else if ($isInstanceOf(e, "Unit"))
101101 then {
102102 let g = e
103103 throw("fundA isn't defiend")
104104 }
105105 else throw()
106106 }
107107 let n = {
108108 let e = getBoolean(c, "fundB")
109109 if ($isInstanceOf(e, "Boolean"))
110110 then {
111111 let f = e
112112 true
113113 }
114114 else if ($isInstanceOf(e, "Unit"))
115115 then {
116116 let g = e
117117 throw("fundB isn't defiend")
118118 }
119119 else throw()
120120 }
121121 let o = {
122122 let e = getString(c, "owner")
123123 if ($isInstanceOf(e, "String"))
124124 then {
125125 let f = e
126126 true
127127 }
128128 else if ($isInstanceOf(e, "Unit"))
129129 then {
130130 let g = e
131131 throw("owner isn't defiend")
132132 }
133133 else throw()
134134 }
135135 if (if (if (if (if (if (if (if (if (d)
136136 then h
137137 else false)
138138 then i
139139 else false)
140140 then j
141141 else false)
142142 then k
143143 else false)
144144 then l
145145 else false)
146146 then m
147147 else false)
148148 then n
149149 else false)
150150 then o
151151 else false)
152152 then WriteSet([DataEntry(b, true)])
153153 else throw("oracle reject")
154154 }
155155
156156
157+
158+@Callable(a)
159+func oracleDelete (b) = {
160+ let c = addressFromStringValue(b)
161+ let d = {
162+ let e = getString(c, "amountTokenA")
163+ if ($isInstanceOf(e, "String"))
164+ then {
165+ let f = e
166+ f
167+ }
168+ else if ($isInstanceOf(e, "Unit"))
169+ then {
170+ let g = e
171+ throw("amountTokenA isn't defiend")
172+ }
173+ else throw()
174+ }
175+ let h = {
176+ let e = getString(c, "amountTokenB")
177+ if ($isInstanceOf(e, "String"))
178+ then {
179+ let f = e
180+ f
181+ }
182+ else if ($isInstanceOf(e, "Unit"))
183+ then {
184+ let g = e
185+ throw("amountTokenB isn't defiend")
186+ }
187+ else throw()
188+ }
189+ if (if ((d == "withdrawn"))
190+ then (h == "withdrawn")
191+ else false)
192+ then WriteSet([DataEntry(b, false)])
193+ else throw("oracle reject")
194+ }
195+
196+

github/deemru/w8io/026f985 
24.91 ms