2023-07-27 14:26:51 +00:00
|
|
|
import {
|
|
|
|
OPEN_EDITION_FACTORY_ADDRESS,
|
|
|
|
OPEN_EDITION_IBC_ATOM_FACTORY_ADDRESS,
|
2023-08-07 09:59:23 +00:00
|
|
|
OPEN_EDITION_IBC_FRNZ_FACTORY_ADDRESS,
|
2023-07-30 18:11:37 +00:00
|
|
|
OPEN_EDITION_IBC_USDC_FACTORY_ADDRESS,
|
|
|
|
OPEN_EDITION_UPDATABLE_FACTORY_ADDRESS,
|
|
|
|
OPEN_EDITION_UPDATABLE_IBC_ATOM_FACTORY_ADDRESS,
|
2023-08-07 09:59:23 +00:00
|
|
|
OPEN_EDITION_UPDATABLE_IBC_FRNZ_FACTORY_ADDRESS,
|
2023-07-30 18:11:37 +00:00
|
|
|
OPEN_EDITION_UPDATABLE_IBC_USDC_FACTORY_ADDRESS,
|
2023-08-01 08:14:22 +00:00
|
|
|
VENDING_FACTORY_ADDRESS,
|
2023-08-06 13:53:02 +00:00
|
|
|
VENDING_FACTORY_FLEX_ADDRESS,
|
2023-08-01 08:14:22 +00:00
|
|
|
VENDING_FACTORY_UPDATABLE_ADDRESS,
|
2023-08-06 13:53:02 +00:00
|
|
|
VENDING_FACTORY_UPDATABLE_FLEX_ADDRESS,
|
2023-08-01 08:14:22 +00:00
|
|
|
VENDING_IBC_ATOM_FACTORY_ADDRESS,
|
2023-08-06 13:53:02 +00:00
|
|
|
VENDING_IBC_ATOM_FACTORY_FLEX_ADDRESS,
|
2023-08-01 08:14:22 +00:00
|
|
|
VENDING_IBC_ATOM_UPDATABLE_FACTORY_ADDRESS,
|
2023-08-06 13:53:02 +00:00
|
|
|
VENDING_IBC_ATOM_UPDATABLE_FACTORY_FLEX_ADDRESS,
|
2023-08-01 08:14:22 +00:00
|
|
|
VENDING_IBC_USDC_FACTORY_ADDRESS,
|
2023-08-06 13:53:02 +00:00
|
|
|
VENDING_IBC_USDC_FACTORY_FLEX_ADDRESS,
|
2023-08-01 08:14:22 +00:00
|
|
|
VENDING_IBC_USDC_UPDATABLE_FACTORY_ADDRESS,
|
2023-08-06 13:53:02 +00:00
|
|
|
VENDING_IBC_USDC_UPDATABLE_FACTORY_FLEX_ADDRESS,
|
2023-07-27 14:26:51 +00:00
|
|
|
} from 'utils/constants'
|
|
|
|
|
|
|
|
import type { TokenInfo } from './token'
|
2023-08-07 09:59:23 +00:00
|
|
|
import { ibcAtom, ibcFrnz, ibcUsdc, stars } from './token'
|
2023-07-27 14:26:51 +00:00
|
|
|
|
|
|
|
export interface MinterInfo {
|
|
|
|
id: string
|
|
|
|
factoryAddress: string
|
|
|
|
supportedToken: TokenInfo
|
2023-07-30 18:11:37 +00:00
|
|
|
updatable?: boolean
|
2023-08-06 13:53:02 +00:00
|
|
|
flexible?: boolean
|
2023-07-27 14:26:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export const openEditionStarsMinter: MinterInfo = {
|
|
|
|
id: 'open-edition-stars-minter',
|
|
|
|
factoryAddress: OPEN_EDITION_FACTORY_ADDRESS,
|
|
|
|
supportedToken: stars,
|
2023-07-30 18:11:37 +00:00
|
|
|
updatable: false,
|
|
|
|
}
|
|
|
|
|
|
|
|
export const openEditionUpdatableStarsMinter: MinterInfo = {
|
2023-07-31 09:25:57 +00:00
|
|
|
id: 'open-edition-updatable-stars-minter',
|
2023-07-30 18:11:37 +00:00
|
|
|
factoryAddress: OPEN_EDITION_UPDATABLE_FACTORY_ADDRESS,
|
|
|
|
supportedToken: stars,
|
|
|
|
updatable: true,
|
2023-07-27 14:26:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export const openEditionIbcAtomMinter: MinterInfo = {
|
|
|
|
id: 'open-edition-ibc-atom-minter',
|
|
|
|
factoryAddress: OPEN_EDITION_IBC_ATOM_FACTORY_ADDRESS,
|
|
|
|
supportedToken: ibcAtom,
|
2023-07-30 18:11:37 +00:00
|
|
|
updatable: false,
|
|
|
|
}
|
|
|
|
|
|
|
|
export const openEditionUpdatableIbcAtomMinter: MinterInfo = {
|
2023-07-31 09:25:57 +00:00
|
|
|
id: 'open-edition-updatable-ibc-atom-minter',
|
2023-07-30 18:11:37 +00:00
|
|
|
factoryAddress: OPEN_EDITION_UPDATABLE_IBC_ATOM_FACTORY_ADDRESS,
|
|
|
|
supportedToken: ibcAtom,
|
|
|
|
updatable: true,
|
|
|
|
}
|
|
|
|
|
|
|
|
export const openEditionIbcUsdcMinter: MinterInfo = {
|
|
|
|
id: 'open-edition-ibc-usdc-minter',
|
|
|
|
factoryAddress: OPEN_EDITION_IBC_USDC_FACTORY_ADDRESS,
|
|
|
|
supportedToken: ibcUsdc,
|
|
|
|
updatable: false,
|
|
|
|
}
|
|
|
|
|
|
|
|
export const openEditionUpdatableIbcUsdcMinter: MinterInfo = {
|
2023-07-31 09:25:57 +00:00
|
|
|
id: 'open-edition-updatable-ibc-usdc-minter',
|
2023-07-30 18:11:37 +00:00
|
|
|
factoryAddress: OPEN_EDITION_UPDATABLE_IBC_USDC_FACTORY_ADDRESS,
|
|
|
|
supportedToken: ibcUsdc,
|
2023-07-31 13:49:35 +00:00
|
|
|
updatable: true,
|
2023-07-27 14:26:51 +00:00
|
|
|
}
|
|
|
|
|
2023-08-07 09:59:23 +00:00
|
|
|
export const openEditionIbcFrnzMinter: MinterInfo = {
|
|
|
|
id: 'open-edition-ibc-frnz-minter',
|
|
|
|
factoryAddress: OPEN_EDITION_IBC_FRNZ_FACTORY_ADDRESS,
|
|
|
|
supportedToken: ibcFrnz,
|
2023-07-30 18:11:37 +00:00
|
|
|
updatable: false,
|
|
|
|
}
|
|
|
|
|
2023-08-07 09:59:23 +00:00
|
|
|
export const openEditionUpdatableIbcFrnzMinter: MinterInfo = {
|
|
|
|
id: 'open-edition-updatable-ibc-frnz-minter',
|
|
|
|
factoryAddress: OPEN_EDITION_UPDATABLE_IBC_FRNZ_FACTORY_ADDRESS,
|
|
|
|
supportedToken: ibcFrnz,
|
2023-07-30 18:11:37 +00:00
|
|
|
updatable: true,
|
2023-07-27 14:26:51 +00:00
|
|
|
}
|
|
|
|
|
2023-07-31 09:25:57 +00:00
|
|
|
export const openEditionMinterList = [
|
|
|
|
openEditionStarsMinter,
|
|
|
|
openEditionUpdatableStarsMinter,
|
|
|
|
openEditionUpdatableIbcAtomMinter,
|
|
|
|
openEditionIbcAtomMinter,
|
2023-08-07 09:59:23 +00:00
|
|
|
openEditionIbcFrnzMinter,
|
|
|
|
openEditionUpdatableIbcFrnzMinter,
|
2023-07-31 09:25:57 +00:00
|
|
|
openEditionIbcUsdcMinter,
|
|
|
|
openEditionUpdatableIbcUsdcMinter,
|
|
|
|
]
|
2023-08-01 08:14:22 +00:00
|
|
|
|
|
|
|
export const vendingStarsMinter: MinterInfo = {
|
|
|
|
id: 'vending-stars-minter',
|
|
|
|
factoryAddress: VENDING_FACTORY_ADDRESS,
|
|
|
|
supportedToken: stars,
|
|
|
|
updatable: false,
|
2023-08-06 13:53:02 +00:00
|
|
|
flexible: false,
|
2023-08-01 08:14:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export const vendingUpdatableStarsMinter: MinterInfo = {
|
|
|
|
id: 'vending-updatable-stars-minter',
|
|
|
|
factoryAddress: VENDING_FACTORY_UPDATABLE_ADDRESS,
|
|
|
|
supportedToken: stars,
|
|
|
|
updatable: true,
|
2023-08-06 13:53:02 +00:00
|
|
|
flexible: false,
|
2023-08-01 08:14:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export const vendingIbcAtomMinter: MinterInfo = {
|
|
|
|
id: 'vending-ibc-atom-minter',
|
|
|
|
factoryAddress: VENDING_IBC_ATOM_FACTORY_ADDRESS,
|
|
|
|
supportedToken: ibcAtom,
|
|
|
|
updatable: false,
|
2023-08-06 13:53:02 +00:00
|
|
|
flexible: false,
|
2023-08-01 08:14:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export const vendingUpdatableIbcAtomMinter: MinterInfo = {
|
|
|
|
id: 'vending-updatable-ibc-atom-minter',
|
|
|
|
factoryAddress: VENDING_IBC_ATOM_UPDATABLE_FACTORY_ADDRESS,
|
|
|
|
supportedToken: ibcAtom,
|
|
|
|
updatable: true,
|
2023-08-06 13:53:02 +00:00
|
|
|
flexible: false,
|
2023-08-01 08:14:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export const vendingIbcUsdcMinter: MinterInfo = {
|
|
|
|
id: 'vending-ibc-usdc-minter',
|
|
|
|
factoryAddress: VENDING_IBC_USDC_FACTORY_ADDRESS,
|
|
|
|
supportedToken: ibcUsdc,
|
|
|
|
updatable: false,
|
2023-08-06 13:53:02 +00:00
|
|
|
flexible: false,
|
2023-08-01 08:14:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export const vendingUpdatableIbcUsdcMinter: MinterInfo = {
|
|
|
|
id: 'vending-updatable-ibc-usdc-minter',
|
|
|
|
factoryAddress: VENDING_IBC_USDC_UPDATABLE_FACTORY_ADDRESS,
|
|
|
|
supportedToken: ibcUsdc,
|
|
|
|
updatable: true,
|
2023-08-06 13:53:02 +00:00
|
|
|
flexible: false,
|
2023-08-01 08:14:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export const vendingMinterList = [
|
|
|
|
vendingStarsMinter,
|
|
|
|
vendingUpdatableStarsMinter,
|
|
|
|
vendingIbcAtomMinter,
|
|
|
|
vendingUpdatableIbcAtomMinter,
|
|
|
|
vendingIbcUsdcMinter,
|
|
|
|
vendingUpdatableIbcUsdcMinter,
|
|
|
|
]
|
2023-08-06 13:53:02 +00:00
|
|
|
|
|
|
|
export const flexibleVendingStarsMinter: MinterInfo = {
|
|
|
|
id: 'flexible-vending-stars-minter',
|
|
|
|
factoryAddress: VENDING_FACTORY_FLEX_ADDRESS,
|
|
|
|
supportedToken: stars,
|
|
|
|
updatable: false,
|
|
|
|
flexible: true,
|
|
|
|
}
|
|
|
|
|
|
|
|
export const flexibleVendingUpdatableStarsMinter: MinterInfo = {
|
|
|
|
id: 'flexible-vending-updatable-stars-minter',
|
|
|
|
factoryAddress: VENDING_FACTORY_UPDATABLE_FLEX_ADDRESS,
|
|
|
|
supportedToken: stars,
|
|
|
|
updatable: true,
|
|
|
|
flexible: true,
|
|
|
|
}
|
|
|
|
|
|
|
|
export const flexibleVendingIbcAtomMinter: MinterInfo = {
|
|
|
|
id: 'flexible-vending-ibc-atom-minter',
|
|
|
|
factoryAddress: VENDING_IBC_ATOM_FACTORY_FLEX_ADDRESS,
|
|
|
|
supportedToken: ibcAtom,
|
|
|
|
updatable: false,
|
|
|
|
flexible: true,
|
|
|
|
}
|
|
|
|
|
|
|
|
export const flexibleVendingUpdatableIbcAtomMinter: MinterInfo = {
|
|
|
|
id: 'flexible-vending-updatable-ibc-atom-minter',
|
|
|
|
factoryAddress: VENDING_IBC_ATOM_UPDATABLE_FACTORY_FLEX_ADDRESS,
|
|
|
|
supportedToken: ibcAtom,
|
|
|
|
updatable: true,
|
|
|
|
flexible: true,
|
|
|
|
}
|
|
|
|
|
|
|
|
export const flexibleVendingIbcUsdcMinter: MinterInfo = {
|
|
|
|
id: 'flexible-vending-ibc-usdc-minter',
|
|
|
|
factoryAddress: VENDING_IBC_USDC_FACTORY_FLEX_ADDRESS,
|
|
|
|
supportedToken: ibcUsdc,
|
|
|
|
updatable: false,
|
|
|
|
flexible: true,
|
|
|
|
}
|
|
|
|
|
|
|
|
export const flexibleVendingUpdatableIbcUsdcMinter: MinterInfo = {
|
|
|
|
id: 'flexible-vending-updatable-ibc-usdc-minter',
|
|
|
|
factoryAddress: VENDING_IBC_USDC_UPDATABLE_FACTORY_FLEX_ADDRESS,
|
|
|
|
supportedToken: ibcUsdc,
|
|
|
|
updatable: true,
|
|
|
|
flexible: true,
|
|
|
|
}
|
|
|
|
|
|
|
|
export const flexibleVendingMinterList = [
|
|
|
|
flexibleVendingStarsMinter,
|
|
|
|
flexibleVendingUpdatableStarsMinter,
|
|
|
|
flexibleVendingIbcAtomMinter,
|
|
|
|
flexibleVendingUpdatableIbcAtomMinter,
|
|
|
|
flexibleVendingIbcUsdcMinter,
|
|
|
|
flexibleVendingUpdatableIbcUsdcMinter,
|
|
|
|
]
|