diff --git a/.env.example b/.env.example index 29d3ca6..538335d 100644 --- a/.env.example +++ b/.env.example @@ -11,6 +11,10 @@ NEXT_PUBLIC_BASE_MINTER_CODE_ID=2598 NEXT_PUBLIC_VENDING_FACTORY_ADDRESS="stars18h7ugh8eaug7wr0w4yjw0ls5s937z35pnkg935ucsek2y9xl3gaqqk4jtx" NEXT_PUBLIC_VENDING_FACTORY_UPDATABLE_ADDRESS="stars1h65nms9gwg4vdktyqj84tu50gwlm34e0eczl5w2ezllxuzfxy9esa9qlt0" NEXT_PUBLIC_VENDING_FACTORY_FLEX_ADDRESS="stars1hvu2ghqkcnvhtj2fc6wuazxt4dqcftslp2rwkkkcxy269a35a9pq60ug2q" +NEXT_PUBLIC_VENDING_IBC_ATOM_FACTORY_ADDRESS="stars1sqweqcxlf2f7qhf27gn5naqusk5q52fkzewmy63c4sglvle3s7ls6k828e" +NEXT_PUBLIC_VENDING_IBC_ATOM_UPDATABLE_FACTORY_ADDRESS="stars1sqweqcxlf2f7qhf27gn5naqusk5q52fkzewmy63c4sglvle3s7ls6k828e" +NEXT_PUBLIC_VENDING_IBC_USDC_FACTORY_ADDRESS="stars1sqweqcxlf2f7qhf27gn5naqusk5q52fkzewmy63c4sglvle3s7ls6k828e" +NEXT_PUBLIC_VENDING_IBC_USDC_UPDATABLE_FACTORY_ADDRESS="stars1sqweqcxlf2f7qhf27gn5naqusk5q52fkzewmy63c4sglvle3s7ls6k828e" NEXT_PUBLIC_BASE_FACTORY_ADDRESS="stars1a45hcxty3spnmm2f0papl8v4dk5ew29s4syhn4efte8u5haex99qlkrtnx" NEXT_PUBLIC_BASE_FACTORY_UPDATABLE_ADDRESS="stars100xegx2syry4tclkmejjwxk4nfqahvcqhm9qxut5wxuzhj5d9qfsh5nmym" NEXT_PUBLIC_OPEN_EDITION_FACTORY_ADDRESS="stars1sqweqcxlf2f7qhf27gn5naqusk5q52fkzewmy63c4sglvle3s7ls6k828e" diff --git a/config/minter.ts b/config/minter.ts index d191f14..b7d359f 100644 --- a/config/minter.ts +++ b/config/minter.ts @@ -7,6 +7,12 @@ import { OPEN_EDITION_UPDATABLE_IBC_ATOM_FACTORY_ADDRESS, OPEN_EDITION_UPDATABLE_IBC_FRENZ_FACTORY_ADDRESS, OPEN_EDITION_UPDATABLE_IBC_USDC_FACTORY_ADDRESS, + VENDING_FACTORY_ADDRESS, + VENDING_FACTORY_UPDATABLE_ADDRESS, + VENDING_IBC_ATOM_FACTORY_ADDRESS, + VENDING_IBC_ATOM_UPDATABLE_FACTORY_ADDRESS, + VENDING_IBC_USDC_FACTORY_ADDRESS, + VENDING_IBC_USDC_UPDATABLE_FACTORY_ADDRESS, } from 'utils/constants' import type { TokenInfo } from './token' @@ -85,3 +91,54 @@ export const openEditionMinterList = [ openEditionIbcUsdcMinter, openEditionUpdatableIbcUsdcMinter, ] + +export const vendingStarsMinter: MinterInfo = { + id: 'vending-stars-minter', + factoryAddress: VENDING_FACTORY_ADDRESS, + supportedToken: stars, + updatable: false, +} + +export const vendingUpdatableStarsMinter: MinterInfo = { + id: 'vending-updatable-stars-minter', + factoryAddress: VENDING_FACTORY_UPDATABLE_ADDRESS, + supportedToken: stars, + updatable: true, +} + +export const vendingIbcAtomMinter: MinterInfo = { + id: 'vending-ibc-atom-minter', + factoryAddress: VENDING_IBC_ATOM_FACTORY_ADDRESS, + supportedToken: ibcAtom, + updatable: false, +} + +export const vendingUpdatableIbcAtomMinter: MinterInfo = { + id: 'vending-updatable-ibc-atom-minter', + factoryAddress: VENDING_IBC_ATOM_UPDATABLE_FACTORY_ADDRESS, + supportedToken: ibcAtom, + updatable: true, +} + +export const vendingIbcUsdcMinter: MinterInfo = { + id: 'vending-ibc-usdc-minter', + factoryAddress: VENDING_IBC_USDC_FACTORY_ADDRESS, + supportedToken: ibcUsdc, + updatable: false, +} + +export const vendingUpdatableIbcUsdcMinter: MinterInfo = { + id: 'vending-updatable-ibc-usdc-minter', + factoryAddress: VENDING_IBC_USDC_UPDATABLE_FACTORY_ADDRESS, + supportedToken: ibcUsdc, + updatable: true, +} + +export const vendingMinterList = [ + vendingStarsMinter, + vendingUpdatableStarsMinter, + vendingIbcAtomMinter, + vendingUpdatableIbcAtomMinter, + vendingIbcUsdcMinter, + vendingUpdatableIbcUsdcMinter, +] diff --git a/env.d.ts b/env.d.ts index 72e2935..1325002 100644 --- a/env.d.ts +++ b/env.d.ts @@ -23,6 +23,10 @@ declare namespace NodeJS { readonly NEXT_PUBLIC_VENDING_MINTER_CODE_ID: string readonly NEXT_PUBLIC_VENDING_MINTER_FLEX_CODE_ID: string readonly NEXT_PUBLIC_VENDING_FACTORY_ADDRESS: string + readonly NEXT_PUBLIC_VENDING_IBC_ATOM_FACTORY_ADDRESS: string + readonly NEXT_PUBLIC_VENDING_IBC_ATOM_UPDATABLE_FACTORY_ADDRESS: string + readonly NEXT_PUBLIC_VENDING_IBC_USDC_FACTORY_ADDRESS: string + readonly NEXT_PUBLIC_VENDING_IBC_USDC_UPDATABLE_FACTORY_ADDRESS: string readonly NEXT_PUBLIC_OPEN_EDITION_FACTORY_ADDRESS: string readonly NEXT_PUBLIC_OPEN_EDITION_UPDATABLE_FACTORY_ADDRESS: string readonly NEXT_PUBLIC_OPEN_EDITION_IBC_ATOM_FACTORY_ADDRESS: string diff --git a/utils/constants.ts b/utils/constants.ts index 2f0e607..01b8a8a 100644 --- a/utils/constants.ts +++ b/utils/constants.ts @@ -12,6 +12,12 @@ export const VENDING_MINTER_FLEX_CODE_ID = parseInt(process.env.NEXT_PUBLIC_VEND export const VENDING_FACTORY_ADDRESS = process.env.NEXT_PUBLIC_VENDING_FACTORY_ADDRESS export const VENDING_FACTORY_UPDATABLE_ADDRESS = process.env.NEXT_PUBLIC_VENDING_FACTORY_UPDATABLE_ADDRESS export const VENDING_FACTORY_FLEX_ADDRESS = process.env.NEXT_PUBLIC_VENDING_FACTORY_FLEX_ADDRESS +export const VENDING_IBC_ATOM_FACTORY_ADDRESS = process.env.NEXT_PUBLIC_VENDING_IBC_ATOM_FACTORY_ADDRESS +export const VENDING_IBC_ATOM_UPDATABLE_FACTORY_ADDRESS = + process.env.NEXT_PUBLIC_VENDING_IBC_ATOM_UPDATABLE_FACTORY_ADDRESS +export const VENDING_IBC_USDC_FACTORY_ADDRESS = process.env.NEXT_PUBLIC_VENDING_IBC_USDC_FACTORY_ADDRESS +export const VENDING_IBC_USDC_UPDATABLE_FACTORY_ADDRESS = + process.env.NEXT_PUBLIC_VENDING_IBC_USDC_UPDATABLE_FACTORY_ADDRESS export const BASE_FACTORY_ADDRESS = process.env.NEXT_PUBLIC_BASE_FACTORY_ADDRESS export const BASE_FACTORY_UPDATABLE_ADDRESS = process.env.NEXT_PUBLIC_BASE_FACTORY_UPDATABLE_ADDRESS export const OPEN_EDITION_FACTORY_ADDRESS = process.env.NEXT_PUBLIC_OPEN_EDITION_FACTORY_ADDRESS