Skip to content

Add ptokens and dforce usdx #251

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 4, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions examples/erc20/DeFi/DDEX/guide.en.shtml

Large diffs are not rendered by default.

51 changes: 51 additions & 0 deletions examples/erc20/DeFi/DDEX/pDAI.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE token [
<!ENTITY style SYSTEM "../shared.css">
<!ENTITY guide.en SYSTEM "guide.en.shtml">
]>
<ts:token xmlns="http://www.w3.org/1999/xhtml"
xmlns:ts="http://tokenscript.org/2019/05/tokenscript"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
custodian="false"
xsi:schemaLocation="http://tokenscript.org/2019/05/tokenscript"
>
<ts:name>
<ts:string xml:lang="en">DDEX pDAI</ts:string>
</ts:name>
<ts:contract interface="erc20" name="pDAI">
<ts:address network="1">0x6f9D718CaF76055E697AdfFD5E9f9f94753a7501</ts:address> <!--mainnet-->
</ts:contract>

<ts:origins>
<!-- Define the contract which holds the token that the user will use -->
<ts:ethereum contract="pDAI"> <!-- as above ts:contract name -->
</ts:ethereum>
</ts:origins>

<ts:cards>

<ts:token-card>
<ts:view-iconified/>
<ts:view>
</ts:view>
</ts:token-card>

<ts:action>
<ts:name>
<ts:string xml:lang="en">Guide</ts:string>
</ts:name>
<style type="text/css">&style;</style>
<ts:view xml:lang="en">&guide.en;</ts:view>
</ts:action>

</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>
51 changes: 51 additions & 0 deletions examples/erc20/DeFi/DDEX/pETH.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE token [
<!ENTITY style SYSTEM "../shared.css">
<!ENTITY guide.en SYSTEM "guide.en.shtml">
]>
<ts:token xmlns="http://www.w3.org/1999/xhtml"
xmlns:ts="http://tokenscript.org/2019/05/tokenscript"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
custodian="false"
xsi:schemaLocation="http://tokenscript.org/2019/05/tokenscript"
>
<ts:name>
<ts:string xml:lang="en">DDEX pETH</ts:string>
</ts:name>
<ts:contract interface="erc20" name="pETH">
<ts:address network="1">0x26F5f49E3bb3626b53E4573F07F8587F010019B5</ts:address> <!--mainnet-->
</ts:contract>

<ts:origins>
<!-- Define the contract which holds the token that the user will use -->
<ts:ethereum contract="pETH"> <!-- as above ts:contract name -->
</ts:ethereum>
</ts:origins>

<ts:cards>

<ts:token-card>
<ts:view-iconified/>
<ts:view>
</ts:view>
</ts:token-card>

<ts:action>
<ts:name>
<ts:string xml:lang="en">Guide</ts:string>
</ts:name>
<style type="text/css">&style;</style>
<ts:view xml:lang="en">&guide.en;</ts:view>
</ts:action>

</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>
51 changes: 51 additions & 0 deletions examples/erc20/DeFi/DDEX/pUSDT.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE token [
<!ENTITY style SYSTEM "../shared.css">
<!ENTITY guide.en SYSTEM "guide.en.shtml">
]>
<ts:token xmlns="http://www.w3.org/1999/xhtml"
xmlns:ts="http://tokenscript.org/2019/05/tokenscript"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
custodian="false"
xsi:schemaLocation="http://tokenscript.org/2019/05/tokenscript"
>
<ts:name>
<ts:string xml:lang="en">DDEX pUSDT</ts:string>
</ts:name>
<ts:contract interface="erc20" name="pUSDT">
<ts:address network="1">0x7a6aAB486A2Bed37c7Cd523Eb60B3A42533f8906</ts:address> <!--mainnet-->
</ts:contract>

<ts:origins>
<!-- Define the contract which holds the token that the user will use -->
<ts:ethereum contract="pUSDT"> <!-- as above ts:contract name -->
</ts:ethereum>
</ts:origins>

<ts:cards>

<ts:token-card>
<ts:view-iconified/>
<ts:view>
</ts:view>
</ts:token-card>

<ts:action>
<ts:name>
<ts:string xml:lang="en">Guide</ts:string>
</ts:name>
<style type="text/css">&style;</style>
<ts:view xml:lang="en">&guide.en;</ts:view>
</ts:action>

</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>
60 changes: 60 additions & 0 deletions examples/erc20/DeFi/dForce/USDx.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE token [
<!ENTITY style SYSTEM "../shared.css">
<!ENTITY guide.en SYSTEM "guide.en.shtml">
<!ENTITY moreInfo.en SYSTEM "moreInfo.en.shtml">
]>
<ts:token xmlns="http://www.w3.org/1999/xhtml"
xmlns:ts="http://tokenscript.org/2019/05/tokenscript"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
custodian="false"
xsi:schemaLocation="http://tokenscript.org/2019/05/tokenscript"
>
<ts:name>
<ts:string xml:lang="en">dForce USDx</ts:string>
</ts:name>
<ts:contract interface="erc20" name="USDx">
<ts:address network="1">0xeb269732ab75A6fD61Ea60b06fE994cD32a83549</ts:address> <!--mainnet-->
</ts:contract>

<ts:origins>
<!-- Define the contract which holds the token that the user will use -->
<ts:ethereum contract="USDx"> <!-- as above ts:contract name -->
</ts:ethereum>
</ts:origins>

<ts:cards>

<ts:token-card>
<ts:view-iconified/>
<ts:view>
</ts:view>
</ts:token-card>

<ts:action>
<ts:name>
<ts:string xml:lang="en">Guide</ts:string>
</ts:name>
<style type="text/css">&style;</style>
<ts:view xml:lang="en">&guide.en;</ts:view>
</ts:action>

<ts:action>
<ts:name>
<ts:string xml:lang="en">More info</ts:string>
</ts:name>
<style type="text/css">&style;</style>
<ts:view xml:lang="en">&moreInfo.en;</ts:view>
</ts:action>

</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>
35 changes: 35 additions & 0 deletions examples/erc20/DeFi/dForce/guide.en.shtml

Large diffs are not rendered by default.

35 changes: 35 additions & 0 deletions examples/erc20/DeFi/dForce/moreInfo.en.shtml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/fast-token-onboarding/sign.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ NAME='YOUR COMPANY NAME'
KEYSTORE_FILE=./YOUR_KEY_FILE.p12 # of your domain
# set .p12 password in last line of xmlsectool command below

TOKEN_FILE=erc20.canonicalized.xml # or erc721.canonicalized.xml
TOKEN_FILE=USDx.xml # or erc721.canonicalized.xml
SIGNATURE_ALGORITHM=rsa-sha256 # or ecdsa-sha256

echo "Signing xml with $KEYSTORE_FILE..."
Expand Down