-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* implements DexHunter integration component * minor formatting update to disconnect wallet button * updates disconnect wallet ui * adds env vars for github workflows * updates marketplace recaptcha endpoint map * updates @newm.io/cardano-dapp-wallet-connector package * displays newm balance in wallet ui * implements usd conversion amounts for marketplace wallet * updates studio auth/recaptcha header logic * updates wallet ui for all apps * removes unnecessary env vars from workflows * resolves linting error * gets tests passing * updates dexhunter tools env var * updates passed dexhunter swap modal props * removes errant code * reverts marketplace local port * minor update to swap modal * misc updates * resolves linting error
- Loading branch information
Showing
48 changed files
with
21,150 additions
and
12,936 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,9 @@ export const NEWM_MARKETPLACE_TERMS_OF_SERVICE_URL = ""; | |
export const NEWM_SUPPORT_EMAIL = "[email protected]"; | ||
export const NEWM_TELEGRAM_URL = "https://t.me/NEWMofficial"; | ||
export const NEWM_X_URL = "https://twitter.com/projectNEWM"; | ||
export const NEWM_POLICY_ID = | ||
"682fe60c9918842b3323c43b5144bc3d52a23bd2fb81345560d73f63"; | ||
export const NEWM_ASSET_NAME = "4e45574d"; | ||
|
||
/** | ||
* Map of grid column size for displaying artists based | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
import { | ||
GetAdaUsdConversionResponse, | ||
GetNewmUsdConversionResponse, | ||
} from "@newm-web/types"; | ||
import { newmApi } from "../../api"; | ||
import { setToastMessage } from "../../modules/ui"; | ||
|
||
export const extendedApi = newmApi.injectEndpoints({ | ||
endpoints: (build) => ({ | ||
getAdaUsdConversionRate: build.query<GetAdaUsdConversionResponse, void>({ | ||
async onQueryStarted(body, { dispatch, queryFulfilled }) { | ||
try { | ||
await queryFulfilled; | ||
} catch (error) { | ||
dispatch( | ||
setToastMessage({ | ||
message: "An error occurred fetching ADA/USD conversion rate", | ||
severity: "error", | ||
}) | ||
); | ||
} | ||
}, | ||
|
||
query: (body) => ({ | ||
method: "GET", | ||
url: "/v1/cardano/prices/ada", | ||
}), | ||
}), | ||
getNewmUsdConversionRate: build.query<GetNewmUsdConversionResponse, void>({ | ||
async onQueryStarted(body, { dispatch, queryFulfilled }) { | ||
try { | ||
await queryFulfilled; | ||
} catch (error) { | ||
dispatch( | ||
setToastMessage({ | ||
message: "An error occurred fetching NEWM/USD conversion rate", | ||
severity: "error", | ||
}) | ||
); | ||
} | ||
}, | ||
|
||
query: (body) => ({ | ||
method: "GET", | ||
url: "/v1/cardano/prices/newm", | ||
}), | ||
}), | ||
}), | ||
}); | ||
|
||
export const { | ||
useGetAdaUsdConversionRateQuery, | ||
useGetNewmUsdConversionRateQuery, | ||
} = extendedApi; | ||
|
||
export default extendedApi; |
Oops, something went wrong.