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: use squid to calculate route between two chains and tokens #2042

Merged
merged 42 commits into from
Nov 29, 2023

Conversation

juanmahidalgo
Copy link
Contributor

WIP

@coveralls
Copy link

coveralls commented Oct 18, 2023

Coverage Status

coverage: 43.473% (+2.6%) from 40.877%
when pulling c9703f5 on feat/squid-integration
into 09ddf55 on master.

"BASE_NAME": "/marketplace",
"NFT_SERVER_URL": "https://nft-api.decentraland.zone/v1",
"MARKETPLACE_SERVER_URL": "https://marketplace-api.decentraland.zone/v1",
"NETWORK": "mainnet",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this will be rollbacked, just for testing purposes and to not have to add the env query string to each path to override the env.

"select_token": "Selecciona una moneda",
"no_matches": "No hay coincidencias para {search}..."
},
"price_too_low": "Las transacciones de MANA solo están libres de tarifa de gas si el artículo tiene al menos 1 MANA. Para obtener este artículo, cambia tu red a Polygon para pagar la tarifa del gas con MATIC. {learn_more}",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"price_too_low": "Las transacciones de MANA solo están libres de tarifa de gas si el artículo tiene al menos 1 MANA. Para obtener este artículo, cambia tu red a Polygon para pagar la tarifa del gas con MATIC. {learn_more}",
"price_too_low": "Las transacciones de MANA solo están libres de tarifa de gas si el artículo cuesta al menos 1 MANA. Para obtener este artículo, cambia tu red a Polygon para pagar la tarifa del gas con MATIC. {learn_more}",

"no_matches": "No hay coincidencias para {search}..."
},
"price_too_low": "Las transacciones de MANA solo están libres de tarifa de gas si el artículo tiene al menos 1 MANA. Para obtener este artículo, cambia tu red a Polygon para pagar la tarifa del gas con MATIC. {learn_more}",
"remember_transaction_fee_covered": "Pague con Polygon MANA para que el DAO cubra las tarifas de gas (el artículo debe tener al menos 1 MANA).",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"remember_transaction_fee_covered": "Pague con Polygon MANA para que el DAO cubra las tarifas de gas (el artículo debe tener al menos 1 MANA).",
"remember_transaction_fee_covered": "Pague con Polygon MANA para que el DAO cubra las tarifas de gas (el artículo debe costar al menos 1 MANA).",

]
config.moduleNameMapper = {
'@dcl/single-sign-on-client': 'identity-obj-proxy',
'^react-native$': 'react-native-web',
Copy link
Contributor

@cyaiox cyaiox Nov 23, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it required react-native by @0xsquid?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no but it's the default value that cra has, so that's why I added.
Instead of doing that, I just updated the logic to spread the default values and andd the one I need (@dcl/single-sign-on-client)

)
}
} catch (error) {
console.log('error: ', error)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wild console.log appeared!

? order.price
: !isNFT(asset) && +asset.price > 0
? asset.price
: 1 //TODO: review this
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we raise an error/alert if there's no price for the asset?

@juanmahidalgo juanmahidalgo merged commit 648f853 into master Nov 29, 2023
7 checks passed
@juanmahidalgo juanmahidalgo deleted the feat/squid-integration branch November 29, 2023 12:08
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.

3 participants