Skip to content

Commit f249bea

Browse files
jamesANZWeiwu Zhang
authored and
Weiwu Zhang
committed
change all TokenScripts to match 2019/10
1 parent 26fde6a commit f249bea

File tree

26 files changed

+39
-39
lines changed

26 files changed

+39
-39
lines changed

examples/EntryToken/EntryToken.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
<!ENTITY icon.en SYSTEM "icon.en.shtml">
66
<!ENTITY style SYSTEM "shared.css">
77
]>
8-
<ts:token xmlns:ts="http://tokenscript.org/2019/05/tokenscript"
8+
<ts:token xmlns:ts="http://tokenscript.org/2019/10/tokenscript"
99
xmlns="http://www.w3.org/1999/xhtml"
1010
xmlns:xml="http://www.w3.org/XML/1998/namespace"
11-
xsi:schemaLocation="http://tokenscript.org/2019/05/tokenscript"
11+
xsi:schemaLocation="http://tokenscript.org/2019/10/tokenscript"
1212
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1313
custodian="false"
1414
>

examples/EntryToken/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ help:
2323
# XML Validation
2424
# if INVALID, run validation again with xmllint to get meaningful error
2525
# then delete the canonicalized file
26-
-xmlstarlet val --xsd http://tokenscript.org/2019/05/tokenscript/tokenscript.xsd $@ || (mv $@ [email protected]; xmllint --noout --schema http://tokenscript.org/2019/05/tokenscript/tokenscript.xsd [email protected])
26+
-xmlstarlet val --xsd http://tokenscript.org/2019/10/tokenscript/tokenscript.xsd $@ || (mv $@ [email protected]; xmllint --noout --schema http://tokenscript.org/2019/10/tokenscript/tokenscript.xsd [email protected])
2727

2828
%.tsml: %.canonicalized.xml
2929
ifeq (,$(KEYSTORE))

examples/action/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ help:
2323
# XML Validation
2424
# if INVALID, run validation again with xmllint to get meaningful error
2525
# then delete the canonicalized file
26-
-xmlstarlet val --xsd http://tokenscript.org/2019/05/tokenscript/tokenscript.xsd $@ || (mv $@ [email protected]; xmllint --noout --schema http://tokenscript.org/2019/05/tokenscript/tokenscript.xsd [email protected])
26+
-xmlstarlet val --xsd http://tokenscript.org/2019/10/tokenscript/tokenscript.xsd $@ || (mv $@ [email protected]; xmllint --noout --schema http://tokenscript.org/2019/10/tokenscript/tokenscript.xsd [email protected])
2727

2828
%.tsml: %.canonicalized.xml
2929
ifeq (,$(KEYSTORE))

examples/action/XDAI-bridge.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<!ENTITY style SYSTEM "shared.css">
44
<!ENTITY xdai-bridge.en SYSTEM "xdai-bridge.en.shtml">
55
]>
6-
<ts:action xmlns:ts="http://tokenscript.org/2019/05/tokenscript"
6+
<ts:action xmlns:ts="http://tokenscript.org/2019/10/tokenscript"
77
xmlns="http://www.w3.org/1999/xhtml"
88
xmlns:xml="http://www.w3.org/XML/1998/namespace"
99
>

examples/devcon5-nft/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ help:
2323
# XML Validation
2424
# if INVALID, run validation again with xmllint to get meaningful error
2525
# then delete the canonicalized file
26-
-xmlstarlet val --xsd ../../schema/tokenscript.xsd $@ || (mv $@ [email protected]; xmllint --noout --schema ../../schema/tokenscript.xsd [email protected])
26+
-xmlstarlet val --xsd http://tokenscript.org/2019/10/tokenscript/tokenscript.xsd $@ || (mv $@ [email protected]; xmllint --noout --schema http://tokenscript.org/2019/10/tokenscript/tokenscript.xsd [email protected])
2727

2828
%.tsml: %.canonicalized.xml
2929
ifeq (,$(KEYSTORE))

examples/erc20/AlphaWallet-Discovery-Token/ALP.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
<!ENTITY style SYSTEM "shared.css">
44
<!ENTITY discover.en SYSTEM "discover.en.shtml">
55
]>
6-
<ts:token xmlns:ts="http://tokenscript.org/2019/05/tokenscript"
6+
<ts:token xmlns:ts="http://tokenscript.org/2019/10/tokenscript"
77
xmlns="http://www.w3.org/1999/xhtml"
88
xmlns:xml="http://www.w3.org/XML/1998/namespace"
9-
xsi:schemaLocation="http://tokenscript.org/2019/05/tokenscript"
9+
xsi:schemaLocation="http://tokenscript.org/2019/10/tokenscript"
1010
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1111
custodian="false"
1212
>

examples/erc20/AlphaWallet-Discovery-Token/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ help:
2323
# XML Validation
2424
# if INVALID, run validation again with xmllint to get meaningful error
2525
# then delete the canonicalized file
26-
-xmlstarlet val --xsd http://tokenscript.org/2019/05/tokenscript/tokenscript.xsd $@ || (mv $@ [email protected]; xmllint --noout --schema http://tokenscript.org/2019/05/tokenscript/tokenscript.xsd [email protected])
26+
-xmlstarlet val --xsd http://tokenscript.org/2019/10/tokenscript/tokenscript.xsd $@ || (mv $@ [email protected]; xmllint --noout --schema http://tokenscript.org/2019/10/tokenscript/tokenscript.xsd [email protected])
2727

2828
%.tsml: %.canonicalized.xml
2929
ifeq (,$(KEYSTORE))

examples/erc20/DAI/DAI.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
<!ENTITY style SYSTEM "shared.css">
44
<!ENTITY dai-bridge.en SYSTEM "dai-bridge.en.shtml">
55
]>
6-
<ts:token xmlns:ts="http://tokenscript.org/2019/05/tokenscript"
6+
<ts:token xmlns:ts="http://tokenscript.org/2019/10/tokenscript"
77
xmlns="http://www.w3.org/1999/xhtml"
88
xmlns:xml="http://www.w3.org/XML/1998/namespace"
9-
xsi:schemaLocation="http://tokenscript.org/2019/05/tokenscript"
9+
xsi:schemaLocation="http://tokenscript.org/2019/10/tokenscript"
1010
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1111
custodian="false"
1212
>

examples/erc20/DAI/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ help:
2323
# XML Validation
2424
# if INVALID, run validation again with xmllint to get meaningful error
2525
# then delete the canonicalized file
26-
-xmlstarlet val --xsd http://tokenscript.org/2019/05/tokenscript/tokenscript.xsd $@ || (mv $@ [email protected]; xmllint --noout --schema http://tokenscript.org/2019/05/tokenscript/tokenscript.xsd [email protected])
26+
-xmlstarlet val --xsd http://tokenscript.org/2019/10/tokenscript/tokenscript.xsd $@ || (mv $@ [email protected]; xmllint --noout --schema http://tokenscript.org/2019/10/tokenscript/tokenscript.xsd [email protected])
2727

2828
%.tsml: %.canonicalized.xml
2929
ifeq (,$(KEYSTORE))

examples/erc20/DeFi/Compound/cBAT.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
<!ENTITY redeem.en SYSTEM "withdraw.en.shtml">
66
<!ENTITY enable.en SYSTEM "enable.en.shtml">
77
]>
8-
<ts:token xmlns:ts="http://tokenscript.org/2019/05/tokenscript"
8+
<ts:token xmlns:ts="http://tokenscript.org/2019/10/tokenscript"
99
xmlns="http://www.w3.org/1999/xhtml"
1010
xmlns:xml="http://www.w3.org/XML/1998/namespace"
11-
xsi:schemaLocation="http://tokenscript.org/2019/05/tokenscript"
11+
xsi:schemaLocation="http://tokenscript.org/2019/10/tokenscript"
1212
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1313
custodian="false"
1414
>

examples/erc20/DeFi/Compound/cDAI.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
<!ENTITY withdraw.en SYSTEM "withdraw.en.shtml">
66
<!ENTITY enable.en SYSTEM "enable.en.shtml">
77
]>
8-
<ts:token xmlns:ts="http://tokenscript.org/2019/05/tokenscript"
8+
<ts:token xmlns:ts="http://tokenscript.org/2019/10/tokenscript"
99
xmlns="http://www.w3.org/1999/xhtml"
1010
xmlns:xml="http://www.w3.org/XML/1998/namespace"
11-
xsi:schemaLocation="http://tokenscript.org/2019/05/tokenscript"
11+
xsi:schemaLocation="http://tokenscript.org/2019/10/tokenscript"
1212
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1313
custodian="false"
1414
>

examples/erc20/DeFi/Compound/cETH.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
<!ENTITY mint.en SYSTEM "supply.en.shtml">
55
<!ENTITY redeem.en SYSTEM "withdraw.en.shtml">
66
]>
7-
<ts:token xmlns:ts="http://tokenscript.org/2019/05/tokenscript"
7+
<ts:token xmlns:ts="http://tokenscript.org/2019/10/tokenscript"
88
xmlns="http://www.w3.org/1999/xhtml"
99
xmlns:xml="http://www.w3.org/XML/1998/namespace"
10-
xsi:schemaLocation="http://tokenscript.org/2019/05/tokenscript"
10+
xsi:schemaLocation="http://tokenscript.org/2019/10/tokenscript"
1111
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1212
custodian="false"
1313
>

examples/erc20/DeFi/Compound/cREP.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
<!ENTITY redeem.en SYSTEM "withdraw.en.shtml">
66
<!ENTITY enable.en SYSTEM "enable.en.shtml">
77
]>
8-
<ts:token xmlns:ts="http://tokenscript.org/2019/05/tokenscript"
8+
<ts:token xmlns:ts="http://tokenscript.org/2019/10/tokenscript"
99
xmlns="http://www.w3.org/1999/xhtml"
1010
xmlns:xml="http://www.w3.org/XML/1998/namespace"
11-
xsi:schemaLocation="http://tokenscript.org/2019/05/tokenscript"
11+
xsi:schemaLocation="http://tokenscript.org/2019/10/tokenscript"
1212
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1313
custodian="false"
1414
>

examples/erc20/DeFi/Compound/cUSDC.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
<!ENTITY redeem.en SYSTEM "withdraw.en.shtml">
66
<!ENTITY enable.en SYSTEM "enable.en.shtml">
77
]>
8-
<ts:token xmlns:ts="http://tokenscript.org/2019/05/tokenscript"
8+
<ts:token xmlns:ts="http://tokenscript.org/2019/10/tokenscript"
99
xmlns="http://www.w3.org/1999/xhtml"
1010
xmlns:xml="http://www.w3.org/XML/1998/namespace"
11-
xsi:schemaLocation="http://tokenscript.org/2019/05/tokenscript"
11+
xsi:schemaLocation="http://tokenscript.org/2019/10/tokenscript"
1212
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1313
custodian="false"
1414
>

examples/erc20/DeFi/Compound/cWBTC.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
<!ENTITY redeem.en SYSTEM "withdraw.en.shtml">
66
<!ENTITY enable.en SYSTEM "enable.en.shtml">
77
]>
8-
<ts:token xmlns:ts="http://tokenscript.org/2019/05/tokenscript"
8+
<ts:token xmlns:ts="http://tokenscript.org/2019/10/tokenscript"
99
xmlns="http://www.w3.org/1999/xhtml"
1010
xmlns:xml="http://www.w3.org/XML/1998/namespace"
11-
xsi:schemaLocation="http://tokenscript.org/2019/05/tokenscript"
11+
xsi:schemaLocation="http://tokenscript.org/2019/10/tokenscript"
1212
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1313
custodian="false"
1414
>

examples/erc20/DeFi/Compound/cZRX.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
<!ENTITY redeem.en SYSTEM "withdraw.en.shtml">
66
<!ENTITY enable.en SYSTEM "enable.en.shtml">
77
]>
8-
<ts:token xmlns:ts="http://tokenscript.org/2019/05/tokenscript"
8+
<ts:token xmlns:ts="http://tokenscript.org/2019/10/tokenscript"
99
xmlns="http://www.w3.org/1999/xhtml"
1010
xmlns:xml="http://www.w3.org/XML/1998/namespace"
11-
xsi:schemaLocation="http://tokenscript.org/2019/05/tokenscript"
11+
xsi:schemaLocation="http://tokenscript.org/2019/10/tokenscript"
1212
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1313
custodian="false"
1414
>

examples/erc20/DeFi/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ help:
2323
# XML Validation
2424
# if INVALID, run validation again with xmllint to get meaningful error
2525
# then delete the canonicalized file
26-
-xmlstarlet val --xsd http://tokenscript.org/2019/05/tokenscript/tokenscript.xsd $@ || (mv $@ [email protected]; xmllint --noout --schema http://tokenscript.org/2019/05/tokenscript/tokenscript.xsd [email protected])
26+
-xmlstarlet val --xsd http://tokenscript.org/2019/10/tokenscript/tokenscript.xsd $@ || (mv $@ [email protected]; xmllint --noout --schema http://tokenscript.org/2019/10/tokenscript/tokenscript.xsd [email protected])
2727

2828
%.tsml: %.canonicalized.xml
2929
ifeq (,$(KEYSTORE))

examples/erc20/DeFi/iDAI/iDAI.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
<!ENTITY withdraw.en SYSTEM "withdraw.en.shtml">
66
<!ENTITY enable.en SYSTEM "enable.en.shtml">
77
]>
8-
<ts:token xmlns:ts="http://tokenscript.org/2019/05/tokenscript"
8+
<ts:token xmlns:ts="http://tokenscript.org/2019/10/tokenscript"
99
xmlns="http://www.w3.org/1999/xhtml"
1010
xmlns:xml="http://www.w3.org/XML/1998/namespace"
11-
xsi:schemaLocation="http://tokenscript.org/2019/05/tokenscript"
11+
xsi:schemaLocation="http://tokenscript.org/2019/10/tokenscript"
1212
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1313
custodian="false"
1414
>

examples/erc20/WETH/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ help:
2323
# XML Validation
2424
# if INVALID, run validation again with xmllint to get meaningful error
2525
# then delete the canonicalized file
26-
-xmlstarlet val --xsd http://tokenscript.org/2019/05/tokenscript/tokenscript.xsd $@ || (mv $@ [email protected]; xmllint --noout --schema http://tokenscript.org/2019/05/tokenscript/tokenscript.xsd [email protected])
26+
-xmlstarlet val --xsd http://tokenscript.org/2019/10/tokenscript/tokenscript.xsd $@ || (mv $@ [email protected]; xmllint --noout --schema http://tokenscript.org/2019/10/tokenscript/tokenscript.xsd [email protected])
2727

2828
%.tsml: %.canonicalized.xml
2929
ifeq (,$(KEYSTORE))

examples/erc20/WETH/WETH.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
<!ENTITY wrap.en SYSTEM "weth-wrap.en.shtml">
55
<!ENTITY unwrap.en SYSTEM "weth-unwrap.en.shtml">
66
]>
7-
<ts:token xmlns:ts="http://tokenscript.org/2019/05/tokenscript"
7+
<ts:token xmlns:ts="http://tokenscript.org/2019/10/tokenscript"
88
xmlns="http://www.w3.org/1999/xhtml"
99
xmlns:xml="http://www.w3.org/XML/1998/namespace"
10-
xsi:schemaLocation="http://tokenscript.org/2019/05/tokenscript"
10+
xsi:schemaLocation="http://tokenscript.org/2019/10/tokenscript"
1111
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1212
custodian="false"
1313
>

examples/fifa/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ help:
2323
# XML Validation
2424
# if failed, run validation again with xmllint to get meaningful error
2525
# then delete the canonicalized file
26-
-xmlstarlet val --xsd http://tokenscript.org/2019/05/tokenscript/tokenscript.xsd $@ || (xmllint --noout --schema http://tokenscript.org/2019/05/tokenscript/tokenscript.xsd $@; rm $@)
26+
-xmlstarlet val --xsd http://tokenscript.org/2019/10/tokenscript/tokenscript.xsd $@ || (xmllint --noout --schema http://tokenscript.org/2019/10/tokenscript/tokenscript.xsd $@; rm $@)
2727

2828
%.tsml: %.canonicalized.xml
2929
ifeq (,$(KEYSTORE))

examples/fifa/fifa.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
<!ENTITY fifa.en SYSTEM "fifa.en.shtml">
44
<!ENTITY style SYSTEM "shared.css">
55
]>
6-
<ts:token xmlns:ts="http://tokenscript.org/2019/05/tokenscript"
6+
<ts:token xmlns:ts="http://tokenscript.org/2019/10/tokenscript"
77
xmlns="http://www.w3.org/1999/xhtml"
88
xmlns:xml="http://www.w3.org/XML/1998/namespace"
9-
xsi:schemaLocation="http://tokenscript.org/2019/05/tokenscript"
9+
xsi:schemaLocation="http://tokenscript.org/2019/10/tokenscript"
1010
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1111
custodian="false"
1212
>

resources/fast-token-onboarding/erc20.canonicalized.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<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">
1+
<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">
22
<ts:name>
33
<ts:plurals xml:lang="en"> <!-- other languages "es"=Spanish "zh"=Chinese ... -->
44
<ts:string quantity="one">Token</ts:string>

resources/fast-token-onboarding/erc721.canonicalized.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<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">
1+
<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">
22
<ts:name>
33
<ts:plurals xml:lang="en"> <!-- other languages "es"=Spanish "zh"=Chinese ... -->
44
<ts:string quantity="one">Token</ts:string>

schema/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44

55
If you have a TokenScript file which includes an older version of the schema, you can refer to it with a link instead of referencing the file directly.
66

7-
Example: `http://tokenscript.org/2019/05/tokenscript` for the May version of the schema.
7+
Example: `http://tokenscript.org/2019/10/tokenscript` for the May version of the schema.

tutorial/Step 4: Signing and publishing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Do a `make`. It will validate EntryToken.xml. It should pass if you haven't chan
3636
# XML Canonicalization
3737
xmlstarlet c14n EntryToken.xml > EntryToken.canonicalized.xml
3838
# XML Validation
39-
-xmlstarlet val --xsd http://tokenscript.org/2019/05/tokenscript/tokenscript.xsd $@ || (mv $@ [email protected]; xmllint --noout --schema http://tokenscript.org/2019/05/tokenscript/tokenscript.xsd [email protected])
39+
-xmlstarlet val --xsd http://tokenscript.org/2019/10/tokenscript/tokenscript.xsd $@ || (mv $@ [email protected]; xmllint --noout --schema http://tokenscript.org/2019/10/tokenscript/tokenscript.xsd [email protected])
4040

4141
** If the file has errors, it will produce a file named EntryToken.canonicalized.xml.FAILED which you can use for debugging **
4242

0 commit comments

Comments
 (0)