File tree Expand file tree Collapse file tree 3 files changed +11
-8
lines changed
examples/erc20/DeFiMoneyMarket Expand file tree Collapse file tree 3 files changed +11
-8
lines changed Original file line number Diff line number Diff line change 6
6
<!ENTITY enable.en SYSTEM " enable.en.js" >
7
7
]>
8
8
<ts : token xmlns : ts =" http://tokenscript.org/2020/06/tokenscript"
9
- xmlns =" http://www.w3.org/1999/xhtml"
9
+ xmlns : ethereum =" urn:ethereum:constantinople"
10
+ xmlns : xhtml =" http://www.w3.org/1999/xhtml"
10
11
xmlns : xml =" http://www.w3.org/XML/1998/namespace"
11
12
xsi : schemaLocation =" http://tokenscript.org/2020/06/tokenscript http://tokenscript.org/2020/06/tokenscript.xsd"
12
13
xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
157
158
<ts : string xml : lang =" en" >Token Decimals</ts : string >
158
159
</ts : label >
159
160
<ts : origins >
160
- <ts : ethereum function =" decimals" contract =" mDAI" as =" uint" >
161
- </ts : ethereum >
161
+ <ethereum : call function =" decimals" contract =" mDAI" as =" uint" >
162
+ </ethereum : call >
162
163
</ts : origins >
163
164
</ts : attribute-type >
164
165
Original file line number Diff line number Diff line change 6
6
<!ENTITY enable.en SYSTEM " enable.en.js" >
7
7
]>
8
8
<ts : token xmlns : ts =" http://tokenscript.org/2020/06/tokenscript"
9
- xmlns =" http://www.w3.org/1999/xhtml"
9
+ xmlns : ethereum =" urn:ethereum:constantinople"
10
+ xmlns : xhtml =" http://www.w3.org/1999/xhtml"
10
11
xmlns : xml =" http://www.w3.org/XML/1998/namespace"
11
12
xsi : schemaLocation =" http://tokenscript.org/2020/06/tokenscript http://tokenscript.org/2020/06/tokenscript.xsd"
12
13
xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
42
43
</ts : attribute-type >
43
44
<ts : transaction >
44
45
<ethereum : call function =" mintViaEther" contract =" mETH" as =" uint" >
45
- <ts : value ref =" mintAmount" />
46
+ <ethereum : ether ref =" mintAmount" />
46
47
</ethereum : call >
47
48
</ts : transaction >
48
49
<ts : view xml : lang =" en" >
112
113
<ts : string xml : lang =" en" >Exchange Rate</ts : string >
113
114
</ts : label >
114
115
<ts : origins >
115
- <ts : ethereum function =" getCurrentExchangeRate" contract =" mETH" as =" uint" >
116
- </ts : ethereum >
116
+ <ethereum : call function =" getCurrentExchangeRate" contract =" mETH" as =" uint" >
117
+ </ethereum : call >
117
118
</ts : origins >
118
119
</ts : attribute-type >
119
120
Original file line number Diff line number Diff line change 6
6
<!ENTITY enable.en SYSTEM " enable.en.js" >
7
7
]>
8
8
<ts : token xmlns : ts =" http://tokenscript.org/2020/06/tokenscript"
9
- xmlns =" http://www.w3.org/1999/xhtml"
9
+ xmlns : ethereum =" urn:ethereum:constantinople"
10
+ xmlns : xhtml =" http://www.w3.org/1999/xhtml"
10
11
xmlns : xml =" http://www.w3.org/XML/1998/namespace"
11
12
xsi : schemaLocation =" http://tokenscript.org/2020/06/tokenscript http://tokenscript.org/2020/06/tokenscript.xsd"
12
13
xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
You can’t perform that action at this time.
0 commit comments