You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: TIPS/tip-3.md
+96-2Lines changed: 96 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,100 @@ DOOAR DEX.
14
14
15
15
## Motivation
16
16
17
-
We have previously used TokenScript template.
17
+
We have previously used TokenScript templates via a launchpad API, however these are limited to providing simple functions
18
+
for tokens that do not have a TokenScript associated with them. In many circumstances, it makes sense to have these cards
19
+
enabled for all tokens by default. Transfer functions are the perfect example of this. In other scenarios these cards
20
+
should be disabled by default and enabled by TokenScript developers that want to add some pre-bundled cards to their
21
+
project.
18
22
19
-
## Specification
23
+
## Specification
24
+
25
+
To support this EIP we introduce two main concepts into the TokenScript engine:
26
+
27
+
- Bundled Cards
28
+
- Virtual TokenScripts
29
+
30
+
### Bundled Cards
31
+
32
+
Bundled cards are based on TokenScript templates. They are pre-compiled .tsml files with cards that can be combined
33
+
with any tokenscript. Due to name collisions, these cards should be self-contained, and only reference the host TokenScripts
34
+
origin contracts. This imposes additional requirements, including tokenscript XML schema changes to allow `ts:selections` and named `ts:transactions` to be placed inside `ts:card`.
35
+
36
+
A set of bundled TokenScript cards might look like this:
0 commit comments