one-ewallet-otc-ui 0.0.6 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -0
- package/dist/index.es.js +3779 -3766
- package/dist/index.umd.js +45 -45
- package/dist/style.css +1 -1
- package/dist/types/components/OTC/OtcModal.d.ts +2 -1
- package/dist/types/components/OTC/OtcModal.d.ts.map +1 -1
- package/dist/types/components/OTC/Withdraw.d.ts +2 -1
- package/dist/types/components/OTC/Withdraw.d.ts.map +1 -1
- package/dist/types/components/OTC/http.d.ts +1 -1
- package/dist/types/components/OTC/http.d.ts.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -99,6 +99,7 @@ function MyComponent() {
|
|
|
99
99
|
| `authToken` | `string` | ✅ | - | User authentication token |
|
|
100
100
|
| `userAddress` | `string` | ✅ | - | User Sui wallet address |
|
|
101
101
|
| `lang` | `'ZH' \| 'EN'` | ❌ | `'EN'` | Interface language |
|
|
102
|
+
| `channel` | `string` | ❌ | `'RWA'` |Interface channel |
|
|
102
103
|
|
|
103
104
|
### 4. Using Withdraw Component
|
|
104
105
|
|
|
@@ -149,6 +150,8 @@ function MyComponent() {
|
|
|
149
150
|
| `USDH_DECIMALS` | `number` | ✅ | - | USDH token decimal places |
|
|
150
151
|
| `onSubmit` | `(withdrawData: any, callback: () => void) => void` | ✅ | - | Withdrawal submit callback function |
|
|
151
152
|
| `lang` | `'ZH' \| 'EN'` | ❌ | `'EN'` | Interface language |
|
|
153
|
+
| `channel` | `string` | ❌ | `'RWA'` |Interface channel |
|
|
154
|
+
|
|
152
155
|
|
|
153
156
|
## 📝 Complete Example
|
|
154
157
|
|
|
@@ -189,6 +192,7 @@ const AppContent = () => {
|
|
|
189
192
|
authToken="your-auth-token"
|
|
190
193
|
userAddress="0x..."
|
|
191
194
|
lang="EN"
|
|
195
|
+
channel="RWA"
|
|
192
196
|
>
|
|
193
197
|
<button>OTC Trading</button>
|
|
194
198
|
</OtcModal>
|
|
@@ -202,6 +206,7 @@ const AppContent = () => {
|
|
|
202
206
|
USDH_DECIMALS={9}
|
|
203
207
|
onSubmit={handleWithdraw}
|
|
204
208
|
lang="EN"
|
|
209
|
+
channel="RWA"
|
|
205
210
|
>
|
|
206
211
|
<button>Withdraw</button>
|
|
207
212
|
</Withdraw>
|