Feature: allow for custom IOU (TrustLine) xApp binding (button)
Opened this issue · 1 comments
WietseWind commented
Right now, if the curated assets are like this:
If the xApp identifier is not null:
... We render Buy & Sell buttons:
Addition
If xapp_custom
is given, with:
- xapp_identifier
- title
![Screenshot 2023-12-22 at 10 51 59](https://private-user-images.githubusercontent.com/4756161/292492358-10e81c3e-8f0a-487f-a32b-355c6e754f64.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE3MDg1NzMsIm5iZiI6MTcyMTcwODI3MywicGF0aCI6Ii80NzU2MTYxLzI5MjQ5MjM1OC0xMGU4MWMzZS04ZjBhLTQ4N2YtYTMyYi0zNTVjNmU3NTRmNjQucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcyMyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MjNUMDQxNzUzWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MWM4YWRiYzU5Yjc1MWRiZTU5N2E5MjJhZTdhNWM3ZmFmNDhmYWU0NWEzNjY2OTc1YmE5ODRmMGU3NDBiODUxMiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.W1466iaj6306-hdTKkuc3jv0N2w-5fta5iiglg9nX8Q)
We will render one (one) extra button. Either it'll be the only one, or combined with the regular xApp identifier, there will be three buttons.
- The
xapp_custom
button comes first. - The icon will be the xApp icon
- The title will be as given
- It opens the given xApp with the same entry params as the existing buy/sell buttons
![image](https://private-user-images.githubusercontent.com/4756161/292492750-15be2e36-56c2-4af6-aabe-fc6316d9ea0e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE3MDg1NzMsIm5iZiI6MTcyMTcwODI3MywicGF0aCI6Ii80NzU2MTYxLzI5MjQ5Mjc1MC0xNWJlMmUzNi01NmMyLTRhZjYtYWFiZS1mYzYzMTZkOWVhMGUucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcyMyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MjNUMDQxNzUzWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9Y2IwZjM0NmYwYTdjMzdkNjFhNjg3NWZmYmI1ZTk2OTM4Mzk2NjJmM2E0NzIzNTI0NTg4NjA0M2FiMzBiMjM3MyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.sgpLnA-QsWtCH7ag112qmf-th6XsglNq6_5A22GgjNo)
WietseWind commented
Goal: Teleporter/cross chain IOU swaps xApp