import { GenerativeToken } from "../types/entities/GenerativeToken" ; import { User } from "../types/entities/User" ; import { GenerativeTokenMetadata } from "../types/Metadata" ; export function getGenerativeTokenUrl ( generative ) { return generative . slug ? `/generative/slug/${ generative . slug }` : `/generative/${ generative . id }` ; } export function getGenerativeTokenMarketplaceUrl ( generative ) { return `/marketplace/generative/${ generative . id }` ; } /**
 * Some "fake" data to be use for a fake Generative Token
 */ export const fakeGenerativeToken = { id : 0 , name : "FXHASH Generative Logo" , metadata : { name : "FXHASH Generative Logo" , description : "This Generative Token is the first GT minted on fxhash.\n\nIt also servers as the actual logo of the platform. It represents the generative processes driving fxhash tokens. Generative Tokens are fed with a unique hash to produce unique outputs based on the hash — they are functions with a hash as single input.\n\nThe growth that comes out of the text is driven by a \"Dividing-Aggregating Walkers\" (DAW) algorithm. The hash drives all the DAW settings, as well as a mutation factor which is responsible for changes in each Walker parameters as they divide.\n\nSome iterations will produce very simple outputs whereas others might be more chaotic.\n\nPiece by @ciphrd for fxhash" , childrenDescription : "Unique iteration of the first Generative Token minted on fxhash.\n\nIt also servers as the actual logo of the platform. It represents the generative processes driving fxhash tokens. Generative Tokens are fed with a unique hash to produce unique outputs based on the hash — they are functions with a hash as single input.\n\nThe growth that comes out of the text is driven by a \"Dividing-Aggregating Walkers\" (DAW) algorithm. The hash drives all the DAW settings, as well as a mutation factor which is responsible for changes in each Walker parameters as they divide.\n\nSome iterations will produce very simple outputs whereas others might be more chaotic.\n\nPiece by @ciphrd for fxhash" , tags : [ "fxhash" , "logo" , "first" , "mycelium" , "walkers" , "dividing" ] , artifactUri : "ipfs://QmV17ZnUHxwjHRjVT3mHMPs4oNfFtA2bAHxq3C4HNkvZtM" , displayUri : "ipfs://QmW6WBRx5M69kPx6CbSjsS4fcTVy21117pwwsU8iAMhBqX" , thumbnailUri : "ipfs://QmWiqH6gw8vZT4VZ58gLCSNRxumJTVfJpe6q6mCZGzRNCo" , generativeUri : "ipfs://Qmc4tMDF2ff8efhi7ybAZTWucQXbuUk9z7DozAUfFgWDZB" , authenticityHash : "4e1f469734487086a67ee25ba1d5e4edd0346c449533505055b74f62f7fd66fe" , symbol : "FXGEN" , decimals : 0 } as GenerativeTokenMetadata , price : 100.5 , originalSupply : 600 , supply : 256 , balance : 0 , enabled : true , author : { id : "tz1fepn7jZsCYBqCDhpM63hzh9g2Ytqk4Tpv" , name : "fxhash" , avatarUri : "ipfs://QmURUAU4YPa6Wwco3JSVrcN7WfCrFBZH7hY51BLrc87WjM" } as User , } ;