Skip to content
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

Open
wants to merge 4 commits into
base: next
Choose a base branch
from

Conversation

RanGojo
Copy link
Member

@RanGojo RanGojo commented Aug 29, 2023

No description provided.

Copy link
Collaborator

@yeager-eren yeager-eren left a 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';
Copy link
Collaborator

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 &&
Copy link
Collaborator

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,
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants