-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: remove accounts, use account & rename chains and wallets (#137
) * refactor: rename accounts and chains * chore: update docs * fix: doc build failed --------- Co-authored-by: yutingzhao1991 <[email protected]>
- Loading branch information
1 parent
2b6936d
commit a81b4c9
Showing
43 changed files
with
612 additions
and
279 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
packages/wagmi/src/wagmi-provider/methods/addNameToAccount.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import type { Account } from '@ant-design/web3-common'; | ||
import { fetchEnsName } from '@wagmi/core'; | ||
|
||
export async function addNameToAccount(account: Account, chainId?: number): Promise<Account> { | ||
const name = await fetchEnsName({ | ||
address: account.address as `0x${string}`, | ||
chainId, | ||
}); | ||
return { | ||
...account, | ||
name: name ?? undefined, | ||
}; | ||
} |
17 changes: 0 additions & 17 deletions
17
packages/wagmi/src/wagmi-provider/methods/addNameToAccounts.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
export * from './addNameToAccounts'; | ||
export * from './addNameToAccount'; | ||
export * from './getNFTMetadata'; |
Oops, something went wrong.