Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 300
fix: scope keyring mapping to subject address#9749
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
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -20,6 +20,8 @@ export const keyringTransactionFixtures = { | ||
| senderAddress: 'sender-address', | ||
| bitcoinSubject: 'bc1qcj8v4ft5uvt59jjrxd856a48xegclwne78h0ye', | ||
| bitcoinOutput: 'bc1qc5tzsfpd3zjecma6529kanjtug69rf58mtfxmu', | ||
| solanaSubject: 'EsEduLCwNdAbJZ2oTr1wB1ymQw76NuwswWwG6imzQN7H', | ||
| solanaCounterparty: '8ekCy2jHHUbW2yeNGFWYJT9Hm9FW7SvZcZK66dSZCDiF', | ||
| }, | ||
| constants: { | ||
| uint256Max: | ||
| @@ -394,5 +396,121 @@ export const keyringTransactionFixtures = { | ||
| events: [], | ||
| } as never, | ||
| }, | ||
| // MultichainTransactionsController payload for a Solana→Base bridge source | ||
| // leg. First fungible in `from` is another party's USDC; the subject's | ||
| // outflow is SOL. | ||
| solanaBridgeSendWithForeignUsdc: { | ||
| subjectAddress: 'EsEduLCwNdAbJZ2oTr1wB1ymQw76NuwswWwG6imzQN7H', | ||
| transaction: { | ||
| account: '625152a4-4667-4328-99bd-b38db43658f5', | ||
| chain: SolScope.Mainnet, | ||
| events: [ | ||
| { | ||
| status: TransactionStatus.Confirmed, | ||
| timestamp: 1784776645, | ||
| }, | ||
| ], | ||
| fees: [ | ||
| { | ||
| asset: { | ||
| amount: '0.000005', | ||
| fungible: true, | ||
| type: `${SolScope.Mainnet}/slip44:501`, | ||
| unit: 'SOL', | ||
| }, | ||
| type: 'base', | ||
| }, | ||
| { | ||
| asset: { | ||
| amount: '0.000050564', | ||
| fungible: true, | ||
| type: `${SolScope.Mainnet}/slip44:501`, | ||
| unit: 'SOL', | ||
| }, | ||
| type: 'priority', | ||
| }, | ||
| ], | ||
| from: [ | ||
ContributorAuthor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Payload with multiple | ||
| { | ||
| address: '8ekCy2jHHUbW2yeNGFWYJT9Hm9FW7SvZcZK66dSZCDiF', | ||
| asset: { | ||
| amount: '0.069181', | ||
| fungible: true, | ||
| type: `${SolScope.Mainnet}/token:EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v`, | ||
| unit: 'USDC', | ||
| }, | ||
| }, | ||
| { | ||
| address: 'EsEduLCwNdAbJZ2oTr1wB1ymQw76NuwswWwG6imzQN7H', | ||
| asset: { | ||
| amount: '0.00531264', | ||
| fungible: true, | ||
| type: `${SolScope.Mainnet}/slip44:501`, | ||
| unit: 'SOL', | ||
| }, | ||
| }, | ||
| ], | ||
| id: '3Tph6Faw2YMshJt7pkCaCbTHTX4mYJLE6h72DR6Q4uDta9HmrNCfReXuDDPKUCbCxn7NUNALvgNjii19fKdgWBfA', | ||
| status: TransactionStatus.Confirmed, | ||
| timestamp: 1784776645, | ||
| to: [ | ||
| { | ||
| address: '8ekCy2jHHUbW2yeNGFWYJT9Hm9FW7SvZcZK66dSZCDiF', | ||
| asset: { | ||
| amount: '0.000892125', | ||
| fungible: true, | ||
| type: `${SolScope.Mainnet}/token:So11111111111111111111111111111111111111112`, | ||
| unit: '', | ||
| }, | ||
| }, | ||
| { | ||
| address: '2Gr2S7Nk7nbXzWkzGD1FSqvgHqdPnyN2rLJWsQnenP3w', | ||
| asset: { | ||
| amount: '0.069181', | ||
| fungible: true, | ||
| type: `${SolScope.Mainnet}/token:EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v`, | ||
| unit: 'USDC', | ||
| }, | ||
| }, | ||
| { | ||
| address: '2Gr2S7Nk7nbXzWkzGD1FSqvgHqdPnyN2rLJWsQnenP3w', | ||
| asset: { | ||
| amount: '0.00237336', | ||
| fungible: true, | ||
| type: `${SolScope.Mainnet}/slip44:501`, | ||
| unit: 'SOL', | ||
| }, | ||
| }, | ||
| { | ||
| address: '47YRE7eLAdYzvGqSH1XLg2o8xUtywk7sS5BKv1oR4Y7i', | ||
| asset: { | ||
| amount: '0.000007875', | ||
| fungible: true, | ||
| type: `${SolScope.Mainnet}/slip44:501`, | ||
| unit: 'SOL', | ||
| }, | ||
| }, | ||
| { | ||
| address: 'AyJKchXeuZgW8ZQ2uC2EvgPJXE9bKJRYmWs9gt3Ug8JP', | ||
| asset: { | ||
| amount: '0.00203928', | ||
| fungible: true, | ||
| type: `${SolScope.Mainnet}/slip44:501`, | ||
| unit: 'SOL', | ||
| }, | ||
| }, | ||
| { | ||
| address: '5pVN5XZB8cYBjNLFrsBCPWkCQBan5K5Mq2dWGzwPgGJV', | ||
| asset: { | ||
| amount: '0.000892125', | ||
| fungible: true, | ||
| type: `${SolScope.Mainnet}/slip44:501`, | ||
| unit: 'SOL', | ||
| }, | ||
| }, | ||
| ], | ||
| type: TransactionType.Send, | ||
| } as never, | ||
| }, | ||
| }, | ||
| }; | ||
Uh oh!
There was an error while loading. Please reload this page.
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.
Point of interest: filter
transaction.frombefore looking for the token