-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(wallets): make wallet provider blockchains prop optional #345
base: next
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've put my comments on your approach but I'm against to make the wallets-react
dependent on rango-chains
.
First, If we are adding rango-chains
to react
, it should be added to core
since it can be used separately as well.
Second and the main one, our wallets
already support for passing the list of blockchains so the library user should pass the data and use rango-chains
if the user want. (For our use case it should be on embedded
)
import type { ProviderContext, ProviderProps } from './types'; | ||
import type { WalletType } from '@rango-dev/wallets-shared'; | ||
|
||
import { allSupportedBlockchains } from 'rango-chains'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dependency hasn't been added to package.json
props.allBlockChains.length && | ||
props.autoConnect && | ||
!autoConnectInitiated.current; | ||
// props.allBlockChains && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No commented code.
} from './rango'; | ||
import type { | ||
StdBlockchainInfo, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This comment should be written on rango-types
, but as we talked I will put it here.
Is there any standard for what we need here? or it's only our convention and how we structure the code?
if there is no actual standard, I suggest to don't use Std
prefix since std
can be misleading for people.
BlockchainInfo
would works for what we do here.
No description provided.