Skip to content

Commit 9876fde

Browse files
committed
populate with sample contracts and info
1 parent 2157ef9 commit 9876fde

File tree

6 files changed

+62
-75
lines changed

6 files changed

+62
-75
lines changed

examples/AliPay/Hotel/Hotel.xml

Lines changed: 15 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
22
<!DOCTYPE token [
3-
<!ENTITY Airline.en SYSTEM "Hotel.en.shtml">
3+
<!ENTITY Hotel.en SYSTEM "Hotel.en.shtml">
44
<!ENTITY style SYSTEM "../shared.css">
55
]>
66
<ts:token xmlns:ts="http://tokenscript.org/2019/10/tokenscript"
@@ -12,29 +12,29 @@
1212
>
1313
<ts:name>
1414
<ts:plurals xml:lang="en">
15-
<ts:string quantity="one">Ticket</ts:string>
16-
<ts:string quantity="other">Tickets</ts:string>
15+
<ts:string quantity="one">Reservation</ts:string>
16+
<ts:string quantity="other">Reservations</ts:string>
1717
</ts:plurals>
1818
</ts:name>
1919

20-
<ts:contract name="Airline" interface="erc721">
21-
<ts:address network="100">0x6060c2bc6bcd71b528e9669ccac0faf17824e3cd</ts:address>
20+
<ts:contract name="Hotel" interface="erc721">
21+
<ts:address network="100">0x1391f80f4b7c5e88ae8354b9c1094236f89c8274</ts:address>
2222
</ts:contract>
2323

2424
<ts:origins>
2525
<!-- Define the contract which holds the token that the user will use -->
26-
<ts:ethereum contract="Airline">
26+
<ts:ethereum contract="Hotel">
2727
</ts:ethereum>
2828
</ts:origins>
2929

3030
<ts:cards>
3131
<ts:token-card>
3232
<style type="text/css">&style;</style>
3333
<ts:view-iconified xml:lang="en">
34-
&Airline.en;
34+
&Hotel.en;
3535
</ts:view-iconified>
3636
<ts:view xml:lang="en">
37-
&Airline.en;
37+
&Hotel.en;
3838
</ts:view>
3939
</ts:token-card>
4040
</ts:cards>
@@ -77,38 +77,16 @@
7777
<ts:token-id bitmask="00000000000000000000000000000000000000FF000000000000000000000000" as="uint">
7878
<ts:mapping>
7979
<ts:option key="1">
80-
<ts:value xml:lang="en">Shanghai Pudong Airport</ts:value>
80+
<ts:value xml:lang="en">Hilton Resorts</ts:value>
8181
</ts:option>
8282
<ts:option key="2">
83-
<ts:value xml:lang="en">London Heathrow Airport</ts:value>
83+
<ts:value xml:lang="en">Trump Tower</ts:value>
8484
</ts:option>
8585
</ts:mapping>
8686
</ts:token-id>
8787
</ts:origins>
8888
</ts:attribute-type>
8989

90-
<ts:attribute-type id="countryA" syntax="1.3.6.1.4.1.1466.115.121.1.26">
91-
<!-- Intentionally avoid using countryName
92-
(SYNTAX 1.3.6.1.4.1.1466.115.121.1.11) per RFC 4519
93-
CountryName is two-characters long, not 3-characters.
94-
-->
95-
<ts:name>
96-
<ts:string xml:lang="en">From</ts:string>
97-
</ts:name>
98-
<ts:origins>
99-
<ts:token-id bitmask="0000000000000000000000000000000000000000FFFFFF000000000000000000" as="utf8"/>
100-
</ts:origins>
101-
</ts:attribute-type>
102-
103-
<ts:attribute-type id="countryB" syntax="1.3.6.1.4.1.1466.115.121.1.26">
104-
<ts:name>
105-
<ts:string xml:lang="en">To</ts:string>
106-
</ts:name>
107-
<ts:origins>
108-
<ts:token-id bitmask="0000000000000000000000000000000000000000000000FFFFFF000000000000" as="utf8"/>
109-
</ts:origins>
110-
</ts:attribute-type>
111-
11290
<ts:attribute-type id="category" syntax="1.3.6.1.4.1.1466.115.121.1.15">
11391
<ts:name>
11492
<ts:string xml:lang="en">Cat</ts:string>
@@ -119,7 +97,10 @@
11997
<ts:token-id bitmask="000000000000000000000000000000000000000000000000000000FF00000000" as="uint">
12098
<ts:mapping>
12199
<ts:option key="1">
122-
<ts:value xml:lang="en">Business Class</ts:value>
100+
<ts:value xml:lang="en">Executive Suite</ts:value>
101+
</ts:option>
102+
<ts:option key="2">
103+
<ts:value xml:lang="en">Deluxe Suite</ts:value>
123104
</ts:option>
124105
</ts:mapping>
125106
</ts:token-id>
@@ -140,7 +121,7 @@
140121
<ts:string>Redeemed</ts:string>
141122
</ts:name>
142123
<ts:origins>
143-
<ts:ethereum function="redeemed" contract="Airline" as="bool">
124+
<ts:ethereum function="redeemed" contract="Hotel" as="bool">
144125
<ts:data>
145126
<ts:uint256 ref="tokenId"/>
146127
</ts:data>

examples/AliPay/Pickup/Airline.xml renamed to examples/AliPay/Pickup/Pickup.xml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
22
<!DOCTYPE token [
3-
<!ENTITY Airline.en SYSTEM "Airline.en.shtml">
3+
<!ENTITY Pickup.en SYSTEM "Pickup.en.shtml">
44
<!ENTITY style SYSTEM "../shared.css">
55
]>
66
<ts:token xmlns:ts="http://tokenscript.org/2019/10/tokenscript"
@@ -17,24 +17,24 @@
1717
</ts:plurals>
1818
</ts:name>
1919

20-
<ts:contract name="Airline" interface="erc721">
21-
<ts:address network="100">0x6060c2bc6bcd71b528e9669ccac0faf17824e3cd</ts:address>
20+
<ts:contract name="Pickup" interface="erc721">
21+
<ts:address network="100">0x5e8c614cac6d140fbd5a454f41a1d5dc5da1a218</ts:address>
2222
</ts:contract>
2323

2424
<ts:origins>
2525
<!-- Define the contract which holds the token that the user will use -->
26-
<ts:ethereum contract="Airline">
26+
<ts:ethereum contract="Pickup">
2727
</ts:ethereum>
2828
</ts:origins>
2929

3030
<ts:cards>
3131
<ts:token-card>
3232
<style type="text/css">&style;</style>
3333
<ts:view-iconified xml:lang="en">
34-
&Airline.en;
34+
&Pickup.en;
3535
</ts:view-iconified>
3636
<ts:view xml:lang="en">
37-
&Airline.en;
37+
&Pickup.en;
3838
</ts:view>
3939
</ts:token-card>
4040
</ts:cards>
@@ -119,7 +119,10 @@
119119
<ts:token-id bitmask="000000000000000000000000000000000000000000000000000000FF00000000" as="uint">
120120
<ts:mapping>
121121
<ts:option key="1">
122-
<ts:value xml:lang="en">Business Class</ts:value>
122+
<ts:value xml:lang="en">Silver cabs</ts:value>
123+
</ts:option>
124+
<ts:option key="2">
125+
<ts:value xml:lang="en">Presidential limo</ts:value>
123126
</ts:option>
124127
</ts:mapping>
125128
</ts:token-id>
@@ -140,7 +143,7 @@
140143
<ts:string>Redeemed</ts:string>
141144
</ts:name>
142145
<ts:origins>
143-
<ts:ethereum function="redeemed" contract="Airline" as="bool">
146+
<ts:ethereum function="redeemed" contract="Pickup" as="bool">
144147
<ts:data>
145148
<ts:uint256 ref="tokenId"/>
146149
</ts:data>

examples/AliPay/Summit/Summit.xml

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
22
<!DOCTYPE token [
3-
<!ENTITY Airline.en SYSTEM "Summit.en.shtml">
3+
<!ENTITY Summit.en SYSTEM "Summit.en.shtml">
44
<!ENTITY style SYSTEM "../shared.css">
55
]>
66
<ts:token xmlns:ts="http://tokenscript.org/2019/10/tokenscript"
@@ -17,24 +17,24 @@
1717
</ts:plurals>
1818
</ts:name>
1919

20-
<ts:contract name="Airline" interface="erc721">
21-
<ts:address network="100">0x6060c2bc6bcd71b528e9669ccac0faf17824e3cd</ts:address>
20+
<ts:contract name="Summit" interface="erc721">
21+
<ts:address network="100">0x6b2c1f4f903ce8df4e52e153e4d0a103030787c0</ts:address>
2222
</ts:contract>
2323

2424
<ts:origins>
2525
<!-- Define the contract which holds the token that the user will use -->
26-
<ts:ethereum contract="Airline">
26+
<ts:ethereum contract="Summit">
2727
</ts:ethereum>
2828
</ts:origins>
2929

3030
<ts:cards>
3131
<ts:token-card>
3232
<style type="text/css">&style;</style>
3333
<ts:view-iconified xml:lang="en">
34-
&Airline.en;
34+
&Summit.en;
3535
</ts:view-iconified>
3636
<ts:view xml:lang="en">
37-
&Airline.en;
37+
&Summit.en;
3838
</ts:view>
3939
</ts:token-card>
4040
</ts:cards>
@@ -77,10 +77,10 @@
7777
<ts:token-id bitmask="00000000000000000000000000000000000000FF000000000000000000000000" as="uint">
7878
<ts:mapping>
7979
<ts:option key="1">
80-
<ts:value xml:lang="en">Shanghai Pudong Airport</ts:value>
80+
<ts:value xml:lang="en">MGM Grand</ts:value>
8181
</ts:option>
8282
<ts:option key="2">
83-
<ts:value xml:lang="en">London Heathrow Airport</ts:value>
83+
<ts:value xml:lang="en">ICC centre</ts:value>
8484
</ts:option>
8585
</ts:mapping>
8686
</ts:token-id>
@@ -119,7 +119,10 @@
119119
<ts:token-id bitmask="000000000000000000000000000000000000000000000000000000FF00000000" as="uint">
120120
<ts:mapping>
121121
<ts:option key="1">
122-
<ts:value xml:lang="en">Business Class</ts:value>
122+
<ts:value xml:lang="en">Speaker pass</ts:value>
123+
</ts:option>
124+
<ts:option key="2">
125+
<ts:value xml:lang="en">Volunteer pass</ts:value>
123126
</ts:option>
124127
</ts:mapping>
125128
</ts:token-id>
@@ -140,7 +143,7 @@
140143
<ts:string>Redeemed</ts:string>
141144
</ts:name>
142145
<ts:origins>
143-
<ts:ethereum function="redeemed" contract="Airline" as="bool">
146+
<ts:ethereum function="redeemed" contract="Summit" as="bool">
144147
<ts:data>
145148
<ts:uint256 ref="tokenId"/>
146149
</ts:data>

examples/AliPay/Tour Package A/TourA.xml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
22
<!DOCTYPE token [
3-
<!ENTITY Airline.en SYSTEM "TourA.en.shtml">
3+
<!ENTITY TourA.en SYSTEM "TourA.en.shtml">
44
<!ENTITY style SYSTEM "../shared.css">
55
]>
66
<ts:token xmlns:ts="http://tokenscript.org/2019/10/tokenscript"
@@ -17,24 +17,24 @@
1717
</ts:plurals>
1818
</ts:name>
1919

20-
<ts:contract name="Airline" interface="erc721">
21-
<ts:address network="100">0x6060c2bc6bcd71b528e9669ccac0faf17824e3cd</ts:address>
20+
<ts:contract name="TourA" interface="erc721">
21+
<ts:address network="100">0xec78db1c7244854420a2d8d8d8349c646ac60e06</ts:address>
2222
</ts:contract>
2323

2424
<ts:origins>
2525
<!-- Define the contract which holds the token that the user will use -->
26-
<ts:ethereum contract="Airline">
26+
<ts:ethereum contract="TourA">
2727
</ts:ethereum>
2828
</ts:origins>
2929

3030
<ts:cards>
3131
<ts:token-card>
3232
<style type="text/css">&style;</style>
3333
<ts:view-iconified xml:lang="en">
34-
&Airline.en;
34+
&TourA.en;
3535
</ts:view-iconified>
3636
<ts:view xml:lang="en">
37-
&Airline.en;
37+
&TourA.en;
3838
</ts:view>
3939
</ts:token-card>
4040
</ts:cards>
@@ -59,7 +59,7 @@
5959
<ts:token-id bitmask="000000000000000000000000000000000000FF00000000000000000000000000" as="uint">
6060
<ts:mapping>
6161
<ts:option key="1">
62-
<ts:value xml:lang="en">Shanghai</ts:value>
62+
<ts:value xml:lang="en">Wellington</ts:value>
6363
</ts:option>
6464
<ts:option key="2">
6565
<ts:value xml:lang="en">London</ts:value>
@@ -77,10 +77,10 @@
7777
<ts:token-id bitmask="00000000000000000000000000000000000000FF000000000000000000000000" as="uint">
7878
<ts:mapping>
7979
<ts:option key="1">
80-
<ts:value xml:lang="en">Shanghai Pudong Airport</ts:value>
80+
<ts:value xml:lang="en">Seven wonders of the world</ts:value>
8181
</ts:option>
8282
<ts:option key="2">
83-
<ts:value xml:lang="en">London Heathrow Airport</ts:value>
83+
<ts:value xml:lang="en">Red Rocks</ts:value>
8484
</ts:option>
8585
</ts:mapping>
8686
</ts:token-id>
@@ -119,7 +119,7 @@
119119
<ts:token-id bitmask="000000000000000000000000000000000000000000000000000000FF00000000" as="uint">
120120
<ts:mapping>
121121
<ts:option key="1">
122-
<ts:value xml:lang="en">Business Class</ts:value>
122+
<ts:value xml:lang="en">Great explorer</ts:value>
123123
</ts:option>
124124
</ts:mapping>
125125
</ts:token-id>
@@ -140,7 +140,7 @@
140140
<ts:string>Redeemed</ts:string>
141141
</ts:name>
142142
<ts:origins>
143-
<ts:ethereum function="redeemed" contract="Airline" as="bool">
143+
<ts:ethereum function="redeemed" contract="TourA" as="bool">
144144
<ts:data>
145145
<ts:uint256 ref="tokenId"/>
146146
</ts:data>

examples/AliPay/Tour Package B/TourB.xml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
22
<!DOCTYPE token [
3-
<!ENTITY Airline.en SYSTEM "TourB.en.shtml">
3+
<!ENTITY TourB.en SYSTEM "TourB.en.shtml">
44
<!ENTITY style SYSTEM "../shared.css">
55
]>
66
<ts:token xmlns:ts="http://tokenscript.org/2019/10/tokenscript"
@@ -17,24 +17,24 @@
1717
</ts:plurals>
1818
</ts:name>
1919

20-
<ts:contract name="Airline" interface="erc721">
21-
<ts:address network="100">0x6060c2bc6bcd71b528e9669ccac0faf17824e3cd</ts:address>
20+
<ts:contract name="TourB" interface="erc721">
21+
<ts:address network="100">0xb0732d2e1805e13de5388e7e8ddf3485a76107e2</ts:address>
2222
</ts:contract>
2323

2424
<ts:origins>
2525
<!-- Define the contract which holds the token that the user will use -->
26-
<ts:ethereum contract="Airline">
26+
<ts:ethereum contract="TourB">
2727
</ts:ethereum>
2828
</ts:origins>
2929

3030
<ts:cards>
3131
<ts:token-card>
3232
<style type="text/css">&style;</style>
3333
<ts:view-iconified xml:lang="en">
34-
&Airline.en;
34+
&TourB.en;
3535
</ts:view-iconified>
3636
<ts:view xml:lang="en">
37-
&Airline.en;
37+
&TourB.en;
3838
</ts:view>
3939
</ts:token-card>
4040
</ts:cards>
@@ -59,10 +59,10 @@
5959
<ts:token-id bitmask="000000000000000000000000000000000000FF00000000000000000000000000" as="uint">
6060
<ts:mapping>
6161
<ts:option key="1">
62-
<ts:value xml:lang="en">Shanghai</ts:value>
62+
<ts:value xml:lang="en">Sydney</ts:value>
6363
</ts:option>
6464
<ts:option key="2">
65-
<ts:value xml:lang="en">London</ts:value>
65+
<ts:value xml:lang="en">Fiji</ts:value>
6666
</ts:option>
6767
</ts:mapping>
6868
</ts:token-id>
@@ -77,10 +77,10 @@
7777
<ts:token-id bitmask="00000000000000000000000000000000000000FF000000000000000000000000" as="uint">
7878
<ts:mapping>
7979
<ts:option key="1">
80-
<ts:value xml:lang="en">Shanghai Pudong Airport</ts:value>
80+
<ts:value xml:lang="en">Great get away HQ</ts:value>
8181
</ts:option>
8282
<ts:option key="2">
83-
<ts:value xml:lang="en">London Heathrow Airport</ts:value>
83+
<ts:value xml:lang="en">Figure 8 Pools</ts:value>
8484
</ts:option>
8585
</ts:mapping>
8686
</ts:token-id>
@@ -119,7 +119,7 @@
119119
<ts:token-id bitmask="000000000000000000000000000000000000000000000000000000FF00000000" as="uint">
120120
<ts:mapping>
121121
<ts:option key="1">
122-
<ts:value xml:lang="en">Business Class</ts:value>
122+
<ts:value xml:lang="en">VIP pass</ts:value>
123123
</ts:option>
124124
</ts:mapping>
125125
</ts:token-id>
@@ -140,7 +140,7 @@
140140
<ts:string>Redeemed</ts:string>
141141
</ts:name>
142142
<ts:origins>
143-
<ts:ethereum function="redeemed" contract="Airline" as="bool">
143+
<ts:ethereum function="redeemed" contract="TourB" as="bool">
144144
<ts:data>
145145
<ts:uint256 ref="tokenId"/>
146146
</ts:data>

0 commit comments

Comments
 (0)