File tree Expand file tree Collapse file tree 5 files changed +643
-244
lines changed Expand file tree Collapse file tree 5 files changed +643
-244
lines changed Original file line number Diff line number Diff line change 1+ {
2+ "types" : {
3+ "types" : [
4+ {
5+ "id" : 0 ,
6+ "type" : {
7+ "def" : {
8+ "sequence" : {
9+ "type" : 1
10+ }
11+ }
12+ }
13+ },
14+ {
15+ "id" : 1 ,
16+ "type" : {
17+ "def" : {
18+ "primitive" : " u8"
19+ }
20+ }
21+ },
22+ {
23+ "id" : 2 ,
24+ "type" : {
25+ "def" : {
26+ "primitive" : " u128"
27+ }
28+ }
29+ },
30+ {
31+ "id" : 3 ,
32+ "type" : {
33+ "def" : {
34+ "primitive" : " bool"
35+ }
36+ }
37+ },
38+ {
39+ "id" : 4 ,
40+ "type" : {
41+ "path" : [
42+ " Option"
43+ ],
44+ "params" : [
45+ {
46+ "name" : " T" ,
47+ "type" : 2
48+ }
49+ ],
50+ "def" : {
51+ "variant" : {
52+ "variants" : [
53+ {
54+ "name" : " None" ,
55+ "index" : 0
56+ },
57+ {
58+ "name" : " Some" ,
59+ "fields" : [
60+ {
61+ "type" : 2
62+ }
63+ ],
64+ "index" : 1
65+ }
66+ ]
67+ }
68+ }
69+ }
70+ },
71+ {
72+ "id" : 5 ,
73+ "type" : {
74+ "path" : [
75+ " Option"
76+ ],
77+ "params" : [
78+ {
79+ "name" : " T" ,
80+ "type" : 6
81+ }
82+ ],
83+ "def" : {
84+ "variant" : {
85+ "variants" : [
86+ {
87+ "name" : " None" ,
88+ "index" : 0
89+ },
90+ {
91+ "name" : " Some" ,
92+ "fields" : [
93+ {
94+ "type" : 6
95+ }
96+ ],
97+ "index" : 1
98+ }
99+ ]
100+ }
101+ }
102+ }
103+ },
104+ {
105+ "id" : 6 ,
106+ "type" : {
107+ "def" : {
108+ "tuple" : [
109+ 2 ,
110+ 2
111+ ]
112+ }
113+ }
114+ },
115+ {
116+ "id" : 7 ,
117+ "type" : {
118+ "def" : {
119+ "sequence" : {
120+ "type" : 8
121+ }
122+ }
123+ }
124+ },
125+ {
126+ "id" : 8 ,
127+ "type" : {
128+ "def" : {
129+ "tuple" : [
130+ 0 ,
131+ 0
132+ ]
133+ }
134+ }
135+ },
136+ {
137+ "id" : 9 ,
138+ "type" : {
139+ "path" : [
140+ " Option"
141+ ],
142+ "params" : [
143+ {
144+ "name" : " T" ,
145+ "type" : 10
146+ }
147+ ],
148+ "def" : {
149+ "variant" : {
150+ "variants" : [
151+ {
152+ "name" : " None" ,
153+ "index" : 0
154+ },
155+ {
156+ "name" : " Some" ,
157+ "fields" : [
158+ {
159+ "type" : 10
160+ }
161+ ],
162+ "index" : 1
163+ }
164+ ]
165+ }
166+ }
167+ }
168+ },
169+ {
170+ "id" : 10 ,
171+ "type" : {
172+ "path" : [
173+ " metadata_gen" ,
174+ " AssetInfo"
175+ ],
176+ "def" : {
177+ "composite" : {
178+ "fields" : [
179+ {
180+ "name" : " asset_id" ,
181+ "type" : 0 ,
182+ "typeName" : " AssetId"
183+ },
184+ {
185+ "name" : " name" ,
186+ "type" : 0 ,
187+ "typeName" : " alloc::vec::Vec<u8>"
188+ },
189+ {
190+ "name" : " symbol" ,
191+ "type" : 0 ,
192+ "typeName" : " alloc::vec::Vec<u8>"
193+ },
194+ {
195+ "name" : " decimals" ,
196+ "type" : 1 ,
197+ "typeName" : " u8"
198+ }
199+ ]
200+ }
201+ }
202+ }
203+ }
204+ ]
205+ },
206+ "extension_fns" : [
207+ [
208+ " 17401483330909459524" ,
209+ 0 ,
210+ {
211+ "name" : " quote_price_tokens_for_exact_tokens" ,
212+ "inputs" : [
213+ {
214+ "name" : " asset1" ,
215+ "ty" : 0
216+ },
217+ {
218+ "name" : " asset2" ,
219+ "ty" : 0
220+ },
221+ {
222+ "name" : " amount" ,
223+ "ty" : 2
224+ },
225+ {
226+ "name" : " include_fee" ,
227+ "ty" : 3
228+ }
229+ ],
230+ "output" : 4
231+ }
232+ ],
233+ [
234+ " 17401483330909459524" ,
235+ 1 ,
236+ {
237+ "name" : " quote_price_exact_tokens_for_tokens" ,
238+ "inputs" : [
239+ {
240+ "name" : " asset1" ,
241+ "ty" : 0
242+ },
243+ {
244+ "name" : " asset2" ,
245+ "ty" : 0
246+ },
247+ {
248+ "name" : " amount" ,
249+ "ty" : 2
250+ },
251+ {
252+ "name" : " include_fee" ,
253+ "ty" : 3
254+ }
255+ ],
256+ "output" : 4
257+ }
258+ ],
259+ [
260+ " 17401483330909459524" ,
261+ 2 ,
262+ {
263+ "name" : " get_liquidity_pool" ,
264+ "inputs" : [
265+ {
266+ "name" : " asset1" ,
267+ "ty" : 0
268+ },
269+ {
270+ "name" : " asset2" ,
271+ "ty" : 0
272+ }
273+ ],
274+ "output" : 5
275+ }
276+ ],
277+ [
278+ " 17401483330909459524" ,
279+ 3 ,
280+ {
281+ "name" : " list_pools" ,
282+ "inputs" : [],
283+ "output" : 7
284+ }
285+ ],
286+ [
287+ " 17401483330909459524" ,
288+ 4 ,
289+ {
290+ "name" : " asset_info" ,
291+ "inputs" : [
292+ {
293+ "name" : " asset" ,
294+ "ty" : 0
295+ }
296+ ],
297+ "output" : 9
298+ }
299+ ]
300+ ],
301+ "entrypoints" : [
302+ {
303+ "name" : " entrypoint_quote_price_exact_tokens_for_tokens" ,
304+ "inputs" : [
305+ {
306+ "name" : " asset1" ,
307+ "ty" : 0
308+ },
309+ {
310+ "name" : " asset2" ,
311+ "ty" : 0
312+ },
313+ {
314+ "name" : " amount" ,
315+ "ty" : 2
316+ }
317+ ],
318+ "output" : 4
319+ },
320+ {
321+ "name" : " entrypoint_quote_price_tokens_for_exact_tokens" ,
322+ "inputs" : [
323+ {
324+ "name" : " asset1" ,
325+ "ty" : 0
326+ },
327+ {
328+ "name" : " asset2" ,
329+ "ty" : 0
330+ },
331+ {
332+ "name" : " amount" ,
333+ "ty" : 2
334+ }
335+ ],
336+ "output" : 4
337+ },
338+ {
339+ "name" : " entrypoint_get_liquidity_pool" ,
340+ "inputs" : [
341+ {
342+ "name" : " asset1" ,
343+ "ty" : 0
344+ },
345+ {
346+ "name" : " asset2" ,
347+ "ty" : 0
348+ }
349+ ],
350+ "output" : 5
351+ },
352+ {
353+ "name" : " entrypoint_list_pools" ,
354+ "inputs" : [],
355+ "output" : 7
356+ },
357+ {
358+ "name" : " entrypoint_asset_info" ,
359+ "inputs" : [
360+ {
361+ "name" : " asset" ,
362+ "ty" : 0
363+ }
364+ ],
365+ "output" : 9
366+ }
367+ ]
368+ }
You can’t perform that action at this time.
0 commit comments