File tree 2 files changed +34
-0
lines changed
2 files changed +34
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @ant-design/web3-common ' : minor
3
+ ---
4
+
5
+ feat: add coomon token type, add chain vm type
Original file line number Diff line number Diff line change @@ -34,9 +34,27 @@ export type BalanceMetadata = {
34
34
symbol ?: string ;
35
35
} ;
36
36
37
+ export enum ChainType {
38
+ /**
39
+ * Ethereum virtual machine and EVM compatible chains
40
+ */
41
+ EVM = 'EVM' ,
42
+
43
+ /**
44
+ * Solana virtual machine
45
+ */
46
+ SVM = 'SVM' ,
47
+
48
+ /**
49
+ * Bitcoin chain
50
+ */
51
+ Bitcoin = 'Bitcoin' ,
52
+ }
53
+
37
54
export interface Chain {
38
55
id : ChainIds | number ;
39
56
name : string ;
57
+ type ?: ChainType ;
40
58
icon ?: React . ReactNode ;
41
59
browser ?: {
42
60
icon ?: React . ReactNode ;
@@ -258,3 +276,14 @@ export interface Locale {
258
276
export interface UniversalEIP6963Config {
259
277
autoAddInjectedWallets ?: boolean ;
260
278
}
279
+
280
+ export type Token = {
281
+ name : string ;
282
+ symbol : string ;
283
+ icon : React . ReactNode ;
284
+ decimal : number ;
285
+ availableChains : {
286
+ chain : Chain ;
287
+ contract : string ;
288
+ } [ ] ;
289
+ } ;
You can’t perform that action at this time.
0 commit comments