File tree Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Expand file tree Collapse file tree 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 = {
3434 symbol ?: string ;
3535} ;
3636
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+
3754export interface Chain {
3855 id : ChainIds | number ;
3956 name : string ;
57+ type ?: ChainType ;
4058 icon ?: React . ReactNode ;
4159 browser ?: {
4260 icon ?: React . ReactNode ;
@@ -258,3 +276,14 @@ export interface Locale {
258276export interface UniversalEIP6963Config {
259277 autoAddInjectedWallets ?: boolean ;
260278}
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