@@ -79,15 +79,15 @@ VITE_BTC_SERVICE_ORIGIN=https://btc-test.app
79
79
80
80
``` shell
81
81
# Create a CKB empty rgbpp lock cell to launch RGB++ xUDT assets later
82
- npx ts-node xudt/launch/1-prepare-launch.ts
82
+ npx tsx xudt/launch/1-prepare-launch.ts
83
83
```
84
84
#### 2. Launch RGB++ xUDT on BTC
85
85
86
86
> [ !TIP]
87
87
> Please make sure the ` 1-prepare-launch.ts ` has been run and the corresponding CKB transaction has been committed.
88
88
89
89
``` shell
90
- npx ts-node xudt/launch/2-launch-rgbpp.ts
90
+ npx tsx xudt/launch/2-launch-rgbpp.ts
91
91
```
92
92
93
93
When the command is executed successfully, the ** RGB++ Asset type script args** will appear in the output log
@@ -99,27 +99,27 @@ When the command is executed successfully, the **RGB++ Asset type script args**
99
99
> The ** RGB++ Asset type script args** in the above should be set to the ` xudtTypeArgs ` .
100
100
101
101
``` shell
102
- npx ts-node xudt/launch/3-distribute-rgbpp.ts
102
+ npx tsx xudt/launch/3-distribute-rgbpp.ts
103
103
```
104
104
105
105
### RGB++ xUDT Transfer and Leap
106
106
107
107
#### 1. Leap xUDT from CKB to BTC
108
108
109
109
``` shell
110
- npx ts-node xudt/1-ckb-leap-btc.ts
110
+ npx tsx xudt/1-ckb-leap-btc.ts
111
111
```
112
112
113
113
#### 2. Transfer RGB++ xUDT on BTC with Queue Service
114
114
115
115
``` shell
116
- npx ts-node xudt/2-btc-transfer.ts
116
+ npx tsx xudt/2-btc-transfer.ts
117
117
```
118
118
119
119
#### 3. Leap RGB++ xUDT from BTC to CKB with Queue Service
120
120
121
121
``` shell
122
- npx ts-node xudt/3-btc-leap-ckb.ts
122
+ npx tsx xudt/3-btc-leap-ckb.ts
123
123
```
124
124
125
125
#### 4. Unlock xUDT BTC time cells on CKB
@@ -131,7 +131,7 @@ However, you can still manually unlock the spore BTC time cell through the follo
131
131
Warning: Wait at least 6 BTC confirmation blocks to unlock the BTC time cells after 3-btc-leap-ckb.ts
132
132
133
133
``` shell
134
- npx ts-node xudt/4-unlock-btc-time.ts
134
+ npx tsx xudt/4-unlock-btc-time.ts
135
135
```
136
136
137
137
## RGB++ Spore Examples
@@ -146,10 +146,10 @@ npx ts-node xudt/4-unlock-btc-time.ts
146
146
147
147
``` shell
148
148
# Create a CKB empty rgbpp lock cell to create cluster later
149
- npx ts-node spore/launch/1-prepare-cluster.ts
149
+ npx tsx spore/launch/1-prepare-cluster.ts
150
150
151
151
# Create a cluster cell with rgbpp lock
152
- npx ts-node spore/launch/2-create-cluster.ts
152
+ npx tsx spore/launch/2-create-cluster.ts
153
153
```
154
154
155
155
When the commands are executed successfully, the ** clusterId** and ** cluster rgbpp lock args** will appear in the output log
@@ -161,21 +161,21 @@ When the commands are executed successfully, the **clusterId** and **cluster rgb
161
161
> The ** clusterId** in the above should be set to the ` clusterId ` and the ** cluster rgbpp lock args** should be set to the ` clusterRgbppLockArgs ` .
162
162
163
163
``` shell
164
- npx ts-node spore/launch/3-create-spores.ts
164
+ npx tsx spore/launch/3-create-spores.ts
165
165
```
166
166
167
167
### Transfer and Leap Spore
168
168
169
169
#### 1. Transfer RGB++ Spore on BTC with Queue Service
170
170
171
171
``` shell
172
- npx ts-node spore/4-transfer-spore.ts
172
+ npx tsx spore/4-transfer-spore.ts
173
173
```
174
174
175
175
#### 2. Leap RGB++ Spore from BTC to CKB
176
176
177
177
``` shell
178
- npx ts-node spore/5-leap-spore-to-ckb.ts
178
+ npx tsx spore/5-leap-spore-to-ckb.ts
179
179
```
180
180
181
181
#### 3. Unlock Spore BTC time cells on CKB
@@ -187,13 +187,13 @@ However, you can still manually unlock the spore BTC time cell through the follo
187
187
** Warning: Wait at least 6 BTC confirmation blocks to unlock the BTC time cells after 5-leap-spore-to-ckb.ts**
188
188
189
189
``` shell
190
- npx ts-node spore/6-unlock-btc-time-cell.ts
190
+ npx tsx spore/6-unlock-btc-time-cell.ts
191
191
```
192
192
193
193
#### 4. Leap Spore from CKB to BTC
194
194
195
195
``` shell
196
- npx ts-node spore/7-leap-spore-to-btc.ts
196
+ npx tsx spore/7-leap-spore-to-btc.ts
197
197
```
198
198
199
199
## FAQ
0 commit comments