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