Skip to content

Commit 322df9d

Browse files
Merge pull request #251 from AlphaWallet/add-ptokens-and-dforce-usdx
Add ptokens and dforce usdx
2 parents 055783b + 535889d commit 322df9d

File tree

8 files changed

+319
-1
lines changed

8 files changed

+319
-1
lines changed

examples/erc20/DeFi/DDEX/guide.en.shtml

Lines changed: 35 additions & 0 deletions
Large diffs are not rendered by default.

examples/erc20/DeFi/DDEX/pDAI.xml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE token [
3+
<!ENTITY style SYSTEM "../shared.css">
4+
<!ENTITY guide.en SYSTEM "guide.en.shtml">
5+
]>
6+
<ts:token xmlns="http://www.w3.org/1999/xhtml"
7+
xmlns:ts="http://tokenscript.org/2019/05/tokenscript"
8+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
9+
custodian="false"
10+
xsi:schemaLocation="http://tokenscript.org/2019/05/tokenscript"
11+
>
12+
<ts:name>
13+
<ts:string xml:lang="en">DDEX pDAI</ts:string>
14+
</ts:name>
15+
<ts:contract interface="erc20" name="pDAI">
16+
<ts:address network="1">0x6f9D718CaF76055E697AdfFD5E9f9f94753a7501</ts:address> <!--mainnet-->
17+
</ts:contract>
18+
19+
<ts:origins>
20+
<!-- Define the contract which holds the token that the user will use -->
21+
<ts:ethereum contract="pDAI"> <!-- as above ts:contract name -->
22+
</ts:ethereum>
23+
</ts:origins>
24+
25+
<ts:cards>
26+
27+
<ts:token-card>
28+
<ts:view-iconified/>
29+
<ts:view>
30+
</ts:view>
31+
</ts:token-card>
32+
33+
<ts:action>
34+
<ts:name>
35+
<ts:string xml:lang="en">Guide</ts:string>
36+
</ts:name>
37+
<style type="text/css">&style;</style>
38+
<ts:view xml:lang="en">&guide.en;</ts:view>
39+
</ts:action>
40+
41+
</ts:cards>
42+
<ts:attribute-types>
43+
<!-- placeholder for future functions -->
44+
<ts:attribute-type id="symbol" syntax="1.3.6.1.4.1.1466.115.121.1.26">
45+
<ts:origins>
46+
<ts:ethereum as="utf8" function="symbol">
47+
</ts:ethereum>
48+
</ts:origins>
49+
</ts:attribute-type>
50+
</ts:attribute-types>
51+
</ts:token>

examples/erc20/DeFi/DDEX/pETH.xml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE token [
3+
<!ENTITY style SYSTEM "../shared.css">
4+
<!ENTITY guide.en SYSTEM "guide.en.shtml">
5+
]>
6+
<ts:token xmlns="http://www.w3.org/1999/xhtml"
7+
xmlns:ts="http://tokenscript.org/2019/05/tokenscript"
8+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
9+
custodian="false"
10+
xsi:schemaLocation="http://tokenscript.org/2019/05/tokenscript"
11+
>
12+
<ts:name>
13+
<ts:string xml:lang="en">DDEX pETH</ts:string>
14+
</ts:name>
15+
<ts:contract interface="erc20" name="pETH">
16+
<ts:address network="1">0x26F5f49E3bb3626b53E4573F07F8587F010019B5</ts:address> <!--mainnet-->
17+
</ts:contract>
18+
19+
<ts:origins>
20+
<!-- Define the contract which holds the token that the user will use -->
21+
<ts:ethereum contract="pETH"> <!-- as above ts:contract name -->
22+
</ts:ethereum>
23+
</ts:origins>
24+
25+
<ts:cards>
26+
27+
<ts:token-card>
28+
<ts:view-iconified/>
29+
<ts:view>
30+
</ts:view>
31+
</ts:token-card>
32+
33+
<ts:action>
34+
<ts:name>
35+
<ts:string xml:lang="en">Guide</ts:string>
36+
</ts:name>
37+
<style type="text/css">&style;</style>
38+
<ts:view xml:lang="en">&guide.en;</ts:view>
39+
</ts:action>
40+
41+
</ts:cards>
42+
<ts:attribute-types>
43+
<!-- placeholder for future functions -->
44+
<ts:attribute-type id="symbol" syntax="1.3.6.1.4.1.1466.115.121.1.26">
45+
<ts:origins>
46+
<ts:ethereum as="utf8" function="symbol">
47+
</ts:ethereum>
48+
</ts:origins>
49+
</ts:attribute-type>
50+
</ts:attribute-types>
51+
</ts:token>

examples/erc20/DeFi/DDEX/pUSDT.xml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE token [
3+
<!ENTITY style SYSTEM "../shared.css">
4+
<!ENTITY guide.en SYSTEM "guide.en.shtml">
5+
]>
6+
<ts:token xmlns="http://www.w3.org/1999/xhtml"
7+
xmlns:ts="http://tokenscript.org/2019/05/tokenscript"
8+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
9+
custodian="false"
10+
xsi:schemaLocation="http://tokenscript.org/2019/05/tokenscript"
11+
>
12+
<ts:name>
13+
<ts:string xml:lang="en">DDEX pUSDT</ts:string>
14+
</ts:name>
15+
<ts:contract interface="erc20" name="pUSDT">
16+
<ts:address network="1">0x7a6aAB486A2Bed37c7Cd523Eb60B3A42533f8906</ts:address> <!--mainnet-->
17+
</ts:contract>
18+
19+
<ts:origins>
20+
<!-- Define the contract which holds the token that the user will use -->
21+
<ts:ethereum contract="pUSDT"> <!-- as above ts:contract name -->
22+
</ts:ethereum>
23+
</ts:origins>
24+
25+
<ts:cards>
26+
27+
<ts:token-card>
28+
<ts:view-iconified/>
29+
<ts:view>
30+
</ts:view>
31+
</ts:token-card>
32+
33+
<ts:action>
34+
<ts:name>
35+
<ts:string xml:lang="en">Guide</ts:string>
36+
</ts:name>
37+
<style type="text/css">&style;</style>
38+
<ts:view xml:lang="en">&guide.en;</ts:view>
39+
</ts:action>
40+
41+
</ts:cards>
42+
<ts:attribute-types>
43+
<!-- placeholder for future functions -->
44+
<ts:attribute-type id="symbol" syntax="1.3.6.1.4.1.1466.115.121.1.26">
45+
<ts:origins>
46+
<ts:ethereum as="utf8" function="symbol">
47+
</ts:ethereum>
48+
</ts:origins>
49+
</ts:attribute-type>
50+
</ts:attribute-types>
51+
</ts:token>

examples/erc20/DeFi/dForce/USDx.xml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE token [
3+
<!ENTITY style SYSTEM "../shared.css">
4+
<!ENTITY guide.en SYSTEM "guide.en.shtml">
5+
<!ENTITY moreInfo.en SYSTEM "moreInfo.en.shtml">
6+
]>
7+
<ts:token xmlns="http://www.w3.org/1999/xhtml"
8+
xmlns:ts="http://tokenscript.org/2019/05/tokenscript"
9+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
custodian="false"
11+
xsi:schemaLocation="http://tokenscript.org/2019/05/tokenscript"
12+
>
13+
<ts:name>
14+
<ts:string xml:lang="en">dForce USDx</ts:string>
15+
</ts:name>
16+
<ts:contract interface="erc20" name="USDx">
17+
<ts:address network="1">0xeb269732ab75A6fD61Ea60b06fE994cD32a83549</ts:address> <!--mainnet-->
18+
</ts:contract>
19+
20+
<ts:origins>
21+
<!-- Define the contract which holds the token that the user will use -->
22+
<ts:ethereum contract="USDx"> <!-- as above ts:contract name -->
23+
</ts:ethereum>
24+
</ts:origins>
25+
26+
<ts:cards>
27+
28+
<ts:token-card>
29+
<ts:view-iconified/>
30+
<ts:view>
31+
</ts:view>
32+
</ts:token-card>
33+
34+
<ts:action>
35+
<ts:name>
36+
<ts:string xml:lang="en">Guide</ts:string>
37+
</ts:name>
38+
<style type="text/css">&style;</style>
39+
<ts:view xml:lang="en">&guide.en;</ts:view>
40+
</ts:action>
41+
42+
<ts:action>
43+
<ts:name>
44+
<ts:string xml:lang="en">More info</ts:string>
45+
</ts:name>
46+
<style type="text/css">&style;</style>
47+
<ts:view xml:lang="en">&moreInfo.en;</ts:view>
48+
</ts:action>
49+
50+
</ts:cards>
51+
<ts:attribute-types>
52+
<!-- placeholder for future functions -->
53+
<ts:attribute-type id="symbol" syntax="1.3.6.1.4.1.1466.115.121.1.26">
54+
<ts:origins>
55+
<ts:ethereum as="utf8" function="symbol">
56+
</ts:ethereum>
57+
</ts:origins>
58+
</ts:attribute-type>
59+
</ts:attribute-types>
60+
</ts:token>

examples/erc20/DeFi/dForce/guide.en.shtml

Lines changed: 35 additions & 0 deletions
Large diffs are not rendered by default.

examples/erc20/DeFi/dForce/moreInfo.en.shtml

Lines changed: 35 additions & 0 deletions
Large diffs are not rendered by default.

resources/fast-token-onboarding/sign.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ NAME='YOUR COMPANY NAME'
33
KEYSTORE_FILE=./YOUR_KEY_FILE.p12 # of your domain
44
# set .p12 password in last line of xmlsectool command below
55

6-
TOKEN_FILE=erc20.canonicalized.xml # or erc721.canonicalized.xml
6+
TOKEN_FILE=USDx.xml # or erc721.canonicalized.xml
77
SIGNATURE_ALGORITHM=rsa-sha256 # or ecdsa-sha256
88

99
echo "Signing xml with $KEYSTORE_FILE..."

0 commit comments

Comments
 (0)