-
Notifications
You must be signed in to change notification settings - Fork 69
Expand file tree
/
Copy patherc20.canonicalized.xml
More file actions
33 lines (32 loc) · 1.42 KB
/
erc20.canonicalized.xml
File metadata and controls
33 lines (32 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<ts:token xmlns="http://www.w3.org/1999/xhtml" xmlns:ts="http://tokenscript.org/2019/10/tokenscript" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" custodian="false" xsi:schemaLocation="http://tokenscript.org/2019/10/tokenscript/tokenscript.xsd">
<ts:name>
<ts:plurals xml:lang="en"> <!-- other languages "es"=Spanish "zh"=Chinese ... -->
<ts:string quantity="one">Token</ts:string>
<ts:string quantity="other">Tokens</ts:string>
</ts:plurals>
<!--ts:plurals xml:lang="fr">
<ts:string quantity="one">###</ts:string>
<ts:string quantity="other">###</ts:string>
</ts:plurals-->
</ts:name>
<ts:contract interface="erc20" name="YOUR_ERC20_TOKEN_NAME">
<ts:address network="1">0xYOUR_CONTRACT_ADDRESS_HERE</ts:address> <!--mainnet-->
<!--ts:address network="3">0x###</ts:address--> <!--test networks if desired etc-->
</ts:contract>
<ts:origins>
<!-- Define the contract which holds the token that the user will use -->
<ts:ethereum contract="YOUR_ERC20_TOKEN_NAME"> <!-- as above ts:contract name -->
</ts:ethereum>
</ts:origins>
<ts:cards>
</ts:cards>
<ts:attribute-types>
<!-- placeholder for future functions -->
<ts:attribute-type id="symbol" syntax="1.3.6.1.4.1.1466.115.121.1.26">
<ts:origins>
<ts:ethereum as="utf8" function="symbol">
</ts:ethereum>
</ts:origins>
</ts:attribute-type>
</ts:attribute-types>
</ts:token>