* ➕ 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>
15 lines
438 B
TypeScript
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/')
|
|
}
|