tx · F5PsEtvvJg1C2iPrvTK4dt82uRD4BmLSsUDqZrX5GoBV

3N3g65CCfo5tnrZDjihFr9UhkHnRjbDzCju:  -0.01400000 Waves

2020.08.07 12:46 [1121838] smart account 3N3g65CCfo5tnrZDjihFr9UhkHnRjbDzCju > SELF 0.00000000 Waves

{ "type": 13, "id": "F5PsEtvvJg1C2iPrvTK4dt82uRD4BmLSsUDqZrX5GoBV", "fee": 1400000, "feeAssetId": null, "timestamp": 1596793597286, "version": 1, "sender": "3N3g65CCfo5tnrZDjihFr9UhkHnRjbDzCju", "senderPublicKey": "CoXzXqCP8Ytsd1arTVqoqxwXg6SAjFKr9RszYAXVb3Fq", "proofs": [ "5sEpbLN1CmQMXS7hJyUbRrSjYh6Madgubfqccks4ENM9EDL3xNULwtQmiDsrivR1CUBPYTpYrUBLDyDGppfT2AVf" ], "script": "base64:AAIDAAAAAAAAAAwIARIDCgEIEgMKAQgAAAAAAAAAAgAAAApjb250ZXh0T2JqAQAAAAxvcmFjbGVVcGRhdGUAAAABAAAADWFkZHJlc3NTdHJpbmcEAAAAB2FkZHJlc3MJAQAAABxAZXh0clVzZXIoYWRkcmVzc0Zyb21TdHJpbmcpAAAAAQUAAAANYWRkcmVzc1N0cmluZwQAAAAMYW1vdW50VG9rZW5BBAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAAB2FkZHJlc3MCAAAADGFtb3VudFRva2VuQQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAFzBQAAAAckbWF0Y2gwBgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAEVW5pdAQAAAABdQUAAAAHJG1hdGNoMAkAAAIAAAABAgAAABphbW91bnRUb2tlbkEgaXNuJ3QgZGVmaWVuZAkBAAAABXRocm93AAAAAAQAAAAMYW1vdW50VG9rZW5CBAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAAB2FkZHJlc3MCAAAADGFtb3VudFRva2VuQgMJAAABAAAAAgUAAAAHJG1hdGNoMAIA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3VudFRva2VuQQIAAAAJd2l0aGRyYXduCQAAAAAAAAIFAAAADGFtb3VudFRva2VuQgIAAAAJd2l0aGRyYXduBwkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAANYWRkcmVzc1N0cmluZwcFAAAAA25pbAkAAAIAAAABAgAAAA1vcmFjbGUgcmVqZWN0AAAAAIahl3I=", "chainId": 84, "height": 1121838, "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 3 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+
5+
6+@Callable(a)
7+func oracleUpdate (b) = {
8+ let c = addressFromStringValue(b)
9+ let d = {
10+ let e = getInteger(c, "amountTokenA")
11+ if ($isInstanceOf(e, "Int"))
12+ then {
13+ let f = e
14+ true
15+ }
16+ else if ($isInstanceOf(e, "Unit"))
17+ then {
18+ let g = e
19+ throw("amountTokenA isn't defiend")
20+ }
21+ else throw()
22+ }
23+ let h = {
24+ let e = getInteger(c, "amountTokenB")
25+ if ($isInstanceOf(e, "Int"))
26+ then {
27+ let f = e
28+ true
29+ }
30+ else if ($isInstanceOf(e, "Unit"))
31+ then {
32+ let g = e
33+ throw("amountTokenB isn't defiend")
34+ }
35+ else throw()
36+ }
37+ let i = {
38+ let e = getString(c, "assetIdTokenA")
39+ if ($isInstanceOf(e, "String"))
40+ then {
41+ let f = e
42+ true
43+ }
44+ else if ($isInstanceOf(e, "Unit"))
45+ then {
46+ let g = e
47+ throw("assetIdTokenA isn't defiend")
48+ }
49+ else throw()
50+ }
51+ let j = {
52+ let e = getString(c, "assetIdTokenB")
53+ if ($isInstanceOf(e, "String"))
54+ then {
55+ let f = e
56+ true
57+ }
58+ else if ($isInstanceOf(e, "Unit"))
59+ then {
60+ let g = e
61+ throw("assetIdTokenB isn't defiend")
62+ }
63+ else throw()
64+ }
65+ let k = {
66+ let e = getInteger(c, "comission")
67+ if ($isInstanceOf(e, "Int"))
68+ then {
69+ let f = e
70+ true
71+ }
72+ else if ($isInstanceOf(e, "Unit"))
73+ then {
74+ let g = e
75+ throw("comission isn't defiend")
76+ }
77+ else throw()
78+ }
79+ let l = {
80+ let e = getInteger(c, "exchange_count")
81+ if ($isInstanceOf(e, "Int"))
82+ then {
83+ let f = e
84+ true
85+ }
86+ else if ($isInstanceOf(e, "Unit"))
87+ then {
88+ let g = e
89+ throw("exchange_count isn't defiend")
90+ }
91+ else throw()
92+ }
93+ let m = {
94+ let e = getBoolean(c, "fundA")
95+ if ($isInstanceOf(e, "Boolean"))
96+ then {
97+ let f = e
98+ true
99+ }
100+ else if ($isInstanceOf(e, "Unit"))
101+ then {
102+ let g = e
103+ throw("fundA isn't defiend")
104+ }
105+ else throw()
106+ }
107+ let n = {
108+ let e = getBoolean(c, "fundB")
109+ if ($isInstanceOf(e, "Boolean"))
110+ then {
111+ let f = e
112+ true
113+ }
114+ else if ($isInstanceOf(e, "Unit"))
115+ then {
116+ let g = e
117+ throw("fundB isn't defiend")
118+ }
119+ else throw()
120+ }
121+ let o = {
122+ let e = getString(c, "owner")
123+ if ($isInstanceOf(e, "String"))
124+ then {
125+ let f = e
126+ true
127+ }
128+ else if ($isInstanceOf(e, "Unit"))
129+ then {
130+ let g = e
131+ throw("owner isn't defiend")
132+ }
133+ else throw()
134+ }
135+ if (if (if (if (if (if (if (if (if (d)
136+ then h
137+ else false)
138+ then i
139+ else false)
140+ then j
141+ else false)
142+ then k
143+ else false)
144+ then l
145+ else false)
146+ then m
147+ else false)
148+ then n
149+ else false)
150+ then o
151+ else false)
152+ then WriteSet([DataEntry(b, true)])
153+ else throw("oracle reject")
154+ }
155+
156+
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/169f3d6 
20.55 ms