Update IBC denoms

This commit is contained in:
Serkan Reis 2023-08-07 12:59:23 +03:00
parent fe1cfe884c
commit 6d0b21ec59
4 changed files with 25 additions and 25 deletions

View File

@ -1,11 +1,11 @@
import { import {
OPEN_EDITION_FACTORY_ADDRESS, OPEN_EDITION_FACTORY_ADDRESS,
OPEN_EDITION_IBC_ATOM_FACTORY_ADDRESS, OPEN_EDITION_IBC_ATOM_FACTORY_ADDRESS,
OPEN_EDITION_IBC_FRENZ_FACTORY_ADDRESS, OPEN_EDITION_IBC_FRNZ_FACTORY_ADDRESS,
OPEN_EDITION_IBC_USDC_FACTORY_ADDRESS, OPEN_EDITION_IBC_USDC_FACTORY_ADDRESS,
OPEN_EDITION_UPDATABLE_FACTORY_ADDRESS, OPEN_EDITION_UPDATABLE_FACTORY_ADDRESS,
OPEN_EDITION_UPDATABLE_IBC_ATOM_FACTORY_ADDRESS, OPEN_EDITION_UPDATABLE_IBC_ATOM_FACTORY_ADDRESS,
OPEN_EDITION_UPDATABLE_IBC_FRENZ_FACTORY_ADDRESS, OPEN_EDITION_UPDATABLE_IBC_FRNZ_FACTORY_ADDRESS,
OPEN_EDITION_UPDATABLE_IBC_USDC_FACTORY_ADDRESS, OPEN_EDITION_UPDATABLE_IBC_USDC_FACTORY_ADDRESS,
VENDING_FACTORY_ADDRESS, VENDING_FACTORY_ADDRESS,
VENDING_FACTORY_FLEX_ADDRESS, VENDING_FACTORY_FLEX_ADDRESS,
@ -22,7 +22,7 @@ import {
} from 'utils/constants' } from 'utils/constants'
import type { TokenInfo } from './token' import type { TokenInfo } from './token'
import { ibcAtom, ibcFrenz, ibcUsdc, stars } from './token' import { ibcAtom, ibcFrnz, ibcUsdc, stars } from './token'
export interface MinterInfo { export interface MinterInfo {
id: string id: string
@ -74,17 +74,17 @@ export const openEditionUpdatableIbcUsdcMinter: MinterInfo = {
updatable: true, updatable: true,
} }
export const openEditionIbcFrenzMinter: MinterInfo = { export const openEditionIbcFrnzMinter: MinterInfo = {
id: 'open-edition-ibc-frenz-minter', id: 'open-edition-ibc-frnz-minter',
factoryAddress: OPEN_EDITION_IBC_FRENZ_FACTORY_ADDRESS, factoryAddress: OPEN_EDITION_IBC_FRNZ_FACTORY_ADDRESS,
supportedToken: ibcFrenz, supportedToken: ibcFrnz,
updatable: false, updatable: false,
} }
export const openEditionUpdatableIbcFrenzMinter: MinterInfo = { export const openEditionUpdatableIbcFrnzMinter: MinterInfo = {
id: 'open-edition-updatable-ibc-frenz-minter', id: 'open-edition-updatable-ibc-frnz-minter',
factoryAddress: OPEN_EDITION_UPDATABLE_IBC_FRENZ_FACTORY_ADDRESS, factoryAddress: OPEN_EDITION_UPDATABLE_IBC_FRNZ_FACTORY_ADDRESS,
supportedToken: ibcFrenz, supportedToken: ibcFrnz,
updatable: true, updatable: true,
} }
@ -93,8 +93,8 @@ export const openEditionMinterList = [
openEditionUpdatableStarsMinter, openEditionUpdatableStarsMinter,
openEditionUpdatableIbcAtomMinter, openEditionUpdatableIbcAtomMinter,
openEditionIbcAtomMinter, openEditionIbcAtomMinter,
openEditionIbcFrenzMinter, openEditionIbcFrnzMinter,
openEditionUpdatableIbcFrenzMinter, openEditionUpdatableIbcFrnzMinter,
openEditionIbcUsdcMinter, openEditionIbcUsdcMinter,
openEditionUpdatableIbcUsdcMinter, openEditionUpdatableIbcUsdcMinter,
] ]

View File

@ -16,23 +16,23 @@ export const stars: TokenInfo = {
export const ibcAtom: TokenInfo = { export const ibcAtom: TokenInfo = {
id: 'ibc-atom', id: 'ibc-atom',
denom: 'ibc/atom', denom: 'ibc/27394FB092D2ECCD56123C74F36E4C1F926001CEADA9CA97EA622B25F41E5EB2',
displayName: 'ATOM', displayName: 'ATOM',
decimalPlaces: 6, decimalPlaces: 6,
} }
export const ibcUsdc: TokenInfo = { export const ibcUsdc: TokenInfo = {
id: 'ibc-usdc', id: 'ibc-usdc',
denom: 'ibc/usdc', denom: 'ibc/D189335C6E4A68B513C10AB227BF1C1D38C746766278BA3EEB4FB14124F1D858',
displayName: 'USDC', displayName: 'USDC',
decimalPlaces: 6, decimalPlaces: 6,
} }
export const ibcFrenz: TokenInfo = { export const ibcFrnz: TokenInfo = {
id: 'ibc-frenz', id: 'ibc-frnz',
denom: 'ibc/frenz', denom: 'ibc/7FA7EC64490E3BDE5A1A28CBE73CC0AD22522794957BC891C46321E3A6074DB9',
displayName: 'FRENZ', displayName: 'FRNZ',
decimalPlaces: 6, decimalPlaces: 6,
} }
export const tokensList = [stars, ibcAtom, ibcUsdc, ibcFrenz] export const tokensList = [stars, ibcAtom, ibcUsdc, ibcFrnz]

4
env.d.ts vendored
View File

@ -40,8 +40,8 @@ declare namespace NodeJS {
readonly NEXT_PUBLIC_OPEN_EDITION_UPDATABLE_IBC_ATOM_FACTORY_ADDRESS: string readonly NEXT_PUBLIC_OPEN_EDITION_UPDATABLE_IBC_ATOM_FACTORY_ADDRESS: string
readonly NEXT_PUBLIC_OPEN_EDITION_IBC_USDC_FACTORY_ADDRESS: string readonly NEXT_PUBLIC_OPEN_EDITION_IBC_USDC_FACTORY_ADDRESS: string
readonly NEXT_PUBLIC_OPEN_EDITION_UPDATABLE_IBC_USDC_FACTORY_ADDRESS: string readonly NEXT_PUBLIC_OPEN_EDITION_UPDATABLE_IBC_USDC_FACTORY_ADDRESS: string
readonly NEXT_PUBLIC_OPEN_EDITION_IBC_FRENZ_FACTORY_ADDRESS: string readonly NEXT_PUBLIC_OPEN_EDITION_IBC_FRNZ_FACTORY_ADDRESS: string
readonly NEXT_PUBLIC_OPEN_EDITION_UPDATABLE_IBC_FRENZ_FACTORY_ADDRESS: string readonly NEXT_PUBLIC_OPEN_EDITION_UPDATABLE_IBC_FRNZ_FACTORY_ADDRESS: string
readonly NEXT_PUBLIC_OPEN_EDITION_MINTER_CODE_ID: string readonly NEXT_PUBLIC_OPEN_EDITION_MINTER_CODE_ID: string
readonly NEXT_PUBLIC_BASE_FACTORY_ADDRESS: string readonly NEXT_PUBLIC_BASE_FACTORY_ADDRESS: string
readonly NEXT_PUBLIC_BASE_FACTORY_UPDATABLE_ADDRESS: string readonly NEXT_PUBLIC_BASE_FACTORY_UPDATABLE_ADDRESS: string

View File

@ -35,9 +35,9 @@ export const OPEN_EDITION_UPDATABLE_IBC_ATOM_FACTORY_ADDRESS =
export const OPEN_EDITION_IBC_USDC_FACTORY_ADDRESS = process.env.NEXT_PUBLIC_OPEN_EDITION_IBC_USDC_FACTORY_ADDRESS export const OPEN_EDITION_IBC_USDC_FACTORY_ADDRESS = process.env.NEXT_PUBLIC_OPEN_EDITION_IBC_USDC_FACTORY_ADDRESS
export const OPEN_EDITION_UPDATABLE_IBC_USDC_FACTORY_ADDRESS = export const OPEN_EDITION_UPDATABLE_IBC_USDC_FACTORY_ADDRESS =
process.env.NEXT_PUBLIC_OPEN_EDITION_UPDATABLE_IBC_USDC_FACTORY_ADDRESS process.env.NEXT_PUBLIC_OPEN_EDITION_UPDATABLE_IBC_USDC_FACTORY_ADDRESS
export const OPEN_EDITION_IBC_FRENZ_FACTORY_ADDRESS = process.env.NEXT_PUBLIC_OPEN_EDITION_IBC_FRENZ_FACTORY_ADDRESS export const OPEN_EDITION_IBC_FRNZ_FACTORY_ADDRESS = process.env.NEXT_PUBLIC_OPEN_EDITION_IBC_FRNZ_FACTORY_ADDRESS
export const OPEN_EDITION_UPDATABLE_IBC_FRENZ_FACTORY_ADDRESS = export const OPEN_EDITION_UPDATABLE_IBC_FRNZ_FACTORY_ADDRESS =
process.env.NEXT_PUBLIC_OPEN_EDITION_UPDATABLE_IBC_FRENZ_FACTORY_ADDRESS process.env.NEXT_PUBLIC_OPEN_EDITION_UPDATABLE_IBC_FRNZ_FACTORY_ADDRESS
export const OPEN_EDITION_MINTER_CODE_ID = parseInt(process.env.NEXT_PUBLIC_OPEN_EDITION_MINTER_CODE_ID, 10) export const OPEN_EDITION_MINTER_CODE_ID = parseInt(process.env.NEXT_PUBLIC_OPEN_EDITION_MINTER_CODE_ID, 10)
export const SG721_NAME_ADDRESS = process.env.NEXT_PUBLIC_SG721_NAME_ADDRESS export const SG721_NAME_ADDRESS = process.env.NEXT_PUBLIC_SG721_NAME_ADDRESS
export const BASE_MINTER_CODE_ID = parseInt(process.env.NEXT_PUBLIC_VENDING_MINTER_CODE_ID, 10) export const BASE_MINTER_CODE_ID = parseInt(process.env.NEXT_PUBLIC_VENDING_MINTER_CODE_ID, 10)