-
Notifications
You must be signed in to change notification settings - Fork 0
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/solana tokens support #2
base: develop
Are you sure you want to change the base?
Conversation
8297904
to
e7745ec
Compare
9b341e3
to
704a865
Compare
d4befd9
to
28e6323
Compare
28e6323
to
395eb97
Compare
5ffead8
to
9fc214b
Compare
3e15b12
to
3459cf3
Compare
3459cf3
to
5caaea2
Compare
ad08d82
to
ef984ca
Compare
ef984ca
to
f812724
Compare
ddf9cef
to
9a1fd9b
Compare
9a1fd9b
to
64987a5
Compare
dd8f788
to
5c7a563
Compare
5c7a563
to
2fa49b3
Compare
dc8da6b
to
d9be258
Compare
9c75693
to
7a7c62c
Compare
e6d8ec3
to
547e3b5
Compare
6370e50
to
ddf7890
Compare
ddf7890
to
1a5d64f
Compare
6dbc379
to
67ffbd3
Compare
* add svgs * changeset * rename tokens svg * rename to proper id * fix SD svg icon * fix SD svg icon #2 * proper svg
67ffbd3
to
1d15700
Compare
1d15700
to
fc1bea1
Compare
fc1bea1
to
abded20
Compare
@@ -4,6 +4,7 @@ export const supportLinkByTokenType = { | |||
trc20: "https://support.ledger.com/article/360013062159-zd", | |||
asa: "https://support.ledger.com/article/360015896040-zd", | |||
nfts: "https://support.ledger.com/article/4404389453841-zd", | |||
// spl: "Solana spl tokens. TODO: to be defined", |
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.
missing support article link
@@ -153,6 +154,7 @@ export const urls = { | |||
}, | |||
solana: { | |||
staking: "https://support.ledger.com/article/4731749170461-zd", | |||
splTokenInfo: "Solana spl tokens link TODO: to be defined", |
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.
same
export default function SolanaAccountSubHeader({ account }: Props) { | ||
return ( | ||
<> | ||
{isTokenAccountFrozen(account) && ( |
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.
To check if it's the right position we want
@@ -129,11 +130,21 @@ export function fromAccountRaw(rawAccount: AccountRaw, fromRaw?: FromFamiliyRaw) | |||
fromRaw.assignFromAccountRaw(rawAccount, res); | |||
} | |||
|
|||
if (fromRaw?.assignFromTokenAccountRaw && res.subAccounts) { |
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.
We have to test migration of a previous account
* @param {TokenAccount} tokenAccount - The original token account object. | ||
* @param {TokenAccountRaw} tokenAccountRaw - The token account in its serialized form. | ||
*/ | ||
assignToTokenAccountRaw?: (tokenAccount: TokenAccount, tokenAccountRaw: TokenAccountRaw) => void; |
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 may not be useful, we don't have to do this with other token supporting integrations
@@ -54,6 +55,8 @@ addTokens(vechainTokens.map(convertVechainToken)); | |||
addTokens(jettonTokens.map(convertJettonToken)); | |||
// Filecoin tokens | |||
addTokens(filecoinTokens.map(convertERC20)); | |||
// Solana tokens | |||
addTokens(spltokens.map(convertSplTokens)); |
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.
We may need to implement token importer
@hedi-edelbloute Hi Hedi I see there is another PR into LL repository was created. |
Hello @mikhd ! I'm fine and hope it's the same for you 😄 Quentin is working to finish SPL token and pulled most of your work, was the PR complete on your side ? Priority fees PR introduced an issue on the Swap specifically, so we reverted. Quentin pulled priority fees work again, and is also trying to fix the swap issue, as fees seem to be too low without it for spl tokens We can discuss this in more details on discord |
Please let me know in discord if any help is required This PR had few remaining things to be completed
|
📝 Description
Details:
coin-solana solana
]LLD
,libs/coin-framework
,libs/ledgerjs/packages/types-live
]LLD
,LLM
]LLD
]LLM
,LLD
]LLM
]assignFromTokenAccountRaw
,assignToTokenAccountRaw
) for serialization of TokenAccount custom fields (like token "frozen" state) [libs/coin-framework
,libs/ledgerjs/packages/types-live
]bridge.integration.test.ts
[coin-solana solana
]coin-solana solana
]bridge.integration.test.ts
snapshot [LLC solana
]Screenshots
❓ Context
✅ Checklist
Pull Requests must pass the CI and be code reviewed. Set as Draft if the PR is not ready.
npx changeset
was attached.🧐 Checklist for the PR Reviewers