Add Chainflip exchange provider (#1807) (#1970)

* Add Chainflip exchange provider (#1807)

* feat: add Chainflip exchange provider

feat: add chainflip provider (fetchLimits and fetchRate)
feat: add createTrade
feat: add icon
feat: add swap status
feat: add FLIP to list
feat: add to transaction list, with target amount
feat: update receivedAmount with real values
style: dart formatting
feat: update received amount
chore: cleanup space and typo

* fix: use correct retryDurationInBlocks

* feat: use secrets for api key

---------

Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>

* Add secrets to workflow

* revert boostfee change

* minor ui fix [skip ci]

---------

Co-authored-by: David Cumps <david@cumps.be>
This commit is contained in:
Omar Hatem 2025-01-24 20:17:37 +02:00 committed by GitHub
parent 199ada3fa9
commit 9cda2c99e7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
21 changed files with 413 additions and 21 deletions

View file

@ -16,6 +16,7 @@ abstract class TradeFilterStoreBase with Store {
displaySimpleSwap = true,
displayTrocador = true,
displayExolix = true,
displayChainflip = true,
displayThorChain = true,
displayLetsExchange = true,
displayStealthEx = true;
@ -41,6 +42,9 @@ abstract class TradeFilterStoreBase with Store {
@observable
bool displayExolix;
@observable
bool displayChainflip;
@observable
bool displayThorChain;
@ -56,7 +60,8 @@ abstract class TradeFilterStoreBase with Store {
displaySideShift &&
displaySimpleSwap &&
displayTrocador &&
displayExolix &&
displayExolix &&
displayChainflip &&
displayThorChain &&
displayLetsExchange &&
displayStealthEx;
@ -85,11 +90,15 @@ abstract class TradeFilterStoreBase with Store {
case ExchangeProviderDescription.exolix:
displayExolix = !displayExolix;
break;
case ExchangeProviderDescription.chainflip:
displayChainflip = !displayChainflip;
break;
case ExchangeProviderDescription.thorChain:
displayThorChain = !displayThorChain;
break;
case ExchangeProviderDescription.letsExchange:
displayLetsExchange = !displayLetsExchange;
break;
case ExchangeProviderDescription.stealthEx:
displayStealthEx = !displayStealthEx;
break;
@ -102,6 +111,7 @@ abstract class TradeFilterStoreBase with Store {
displaySimpleSwap = false;
displayTrocador = false;
displayExolix = false;
displayChainflip = false;
displayThorChain = false;
displayLetsExchange = false;
displayStealthEx = false;
@ -113,6 +123,7 @@ abstract class TradeFilterStoreBase with Store {
displaySimpleSwap = true;
displayTrocador = true;
displayExolix = true;
displayChainflip = true;
displayThorChain = true;
displayLetsExchange = true;
displayStealthEx = true;
@ -141,6 +152,8 @@ abstract class TradeFilterStoreBase with Store {
item.trade.provider == ExchangeProviderDescription.simpleSwap) ||
(displayTrocador && item.trade.provider == ExchangeProviderDescription.trocador) ||
(displayExolix && item.trade.provider == ExchangeProviderDescription.exolix) ||
(displayChainflip &&
item.trade.provider == ExchangeProviderDescription.chainflip) ||
(displayThorChain &&
item.trade.provider == ExchangeProviderDescription.thorChain) ||
(displayLetsExchange &&