mars-v2-frontend/src/utils/query.ts
Bob van der Helm 740e982956
Borrow modal adjustments (#128)
*   add Draggable

* 💄 Add martian red

* 🍱 Add Slider component

* 🔒 update yarn

* 🔥 remove unused components

* 🩹 fix graphql errors

* tidy: tailwind refactor

* set default port to 3001

* 🍱 add Divider and Container

* 🍱 add NumberInput

* allow left and right icon for button

* 🍱 add TokenInput, expand borrowModal

* update borrow modal, adjust modal component, remove container

* fix value change

* update svgs

---------

Co-authored-by: Linkie Link <linkielink.dev@gmail.com>
2023-03-22 15:12:19 +01:00

15 lines
438 B
TypeScript

export function getContractQuery(key: string, contractAddress: string, query: string) {
const contractKey = key.length > 0 ? `${key}: ` : ``
return `
${contractKey}contractQuery(contractAddress: "${contractAddress}", query: ${query})
`
}
export function denomToKey(denom: string) {
return denom.replace('ibc/', 'ibc_')
}
export function keyToDenom(key: string) {
return key.replace('ibc_', 'ibc/')
}