Add launchpad link to collection creation results (#10)
This commit is contained in:
parent
e2a802f2b7
commit
ddbdbd35ab
@ -8,6 +8,7 @@ NEXT_PUBLIC_SG721_CODE_ID=1
|
|||||||
NEXT_PUBLIC_API_URL=https://
|
NEXT_PUBLIC_API_URL=https://
|
||||||
NEXT_PUBLIC_BLOCK_EXPLORER_URL=https://testnet-explorer.publicawesome.dev/stargaze
|
NEXT_PUBLIC_BLOCK_EXPLORER_URL=https://testnet-explorer.publicawesome.dev/stargaze
|
||||||
NEXT_PUBLIC_NETWORK=testnet
|
NEXT_PUBLIC_NETWORK=testnet
|
||||||
|
NEXT_PUBLIC_STARGAZE_WEBSITE_URL=https://testnet.publicawesome.dev
|
||||||
NEXT_PUBLIC_WEBSITE_URL=https://
|
NEXT_PUBLIC_WEBSITE_URL=https://
|
||||||
|
|
||||||
NEXT_PUBLIC_S3_BUCKET= # TODO
|
NEXT_PUBLIC_S3_BUCKET= # TODO
|
||||||
|
1
env.d.ts
vendored
1
env.d.ts
vendored
@ -22,6 +22,7 @@ declare namespace NodeJS {
|
|||||||
readonly NEXT_PUBLIC_API_URL: string
|
readonly NEXT_PUBLIC_API_URL: string
|
||||||
readonly NEXT_PUBLIC_BLOCK_EXPLORER_URL: string
|
readonly NEXT_PUBLIC_BLOCK_EXPLORER_URL: string
|
||||||
readonly NEXT_PUBLIC_NETWORK: string
|
readonly NEXT_PUBLIC_NETWORK: string
|
||||||
|
readonly NEXT_PUBLIC_STARGAZE_WEBSITE_URL: string
|
||||||
readonly NEXT_PUBLIC_WEBSITE_URL: string
|
readonly NEXT_PUBLIC_WEBSITE_URL: string
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -29,7 +29,7 @@ import { useEffect, useRef, useState } from 'react'
|
|||||||
import { toast } from 'react-hot-toast'
|
import { toast } from 'react-hot-toast'
|
||||||
import { upload } from 'services/upload'
|
import { upload } from 'services/upload'
|
||||||
import { compareFileArrays } from 'utils/compareFileArrays'
|
import { compareFileArrays } from 'utils/compareFileArrays'
|
||||||
import { MINTER_CODE_ID, SG721_CODE_ID, WHITELIST_CODE_ID } from 'utils/constants'
|
import { MINTER_CODE_ID, SG721_CODE_ID, STARGAZE_URL, WHITELIST_CODE_ID } from 'utils/constants'
|
||||||
import { withMetadata } from 'utils/layout'
|
import { withMetadata } from 'utils/layout'
|
||||||
import { links } from 'utils/links'
|
import { links } from 'utils/links'
|
||||||
|
|
||||||
@ -436,6 +436,15 @@ const CollectionCreationPage: NextPage = () => {
|
|||||||
>
|
>
|
||||||
{transactionHash}
|
{transactionHash}
|
||||||
</Anchor>
|
</Anchor>
|
||||||
|
<Button className="mt-2">
|
||||||
|
<Anchor
|
||||||
|
className="text-white"
|
||||||
|
external
|
||||||
|
href={`${STARGAZE_URL}/launchpad/${minterContractAddress as string}`}
|
||||||
|
>
|
||||||
|
View on Launchpad
|
||||||
|
</Anchor>
|
||||||
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
</Alert>
|
</Alert>
|
||||||
</Conditional>
|
</Conditional>
|
||||||
|
@ -4,6 +4,7 @@ export const WHITELIST_CODE_ID = parseInt(process.env.NEXT_PUBLIC_WHITELIST_CODE
|
|||||||
|
|
||||||
export const PINATA_ENDPOINT_URL = process.env.NEXT_PUBLIC_PINATA_ENDPOINT_URL
|
export const PINATA_ENDPOINT_URL = process.env.NEXT_PUBLIC_PINATA_ENDPOINT_URL
|
||||||
export const NETWORK = process.env.NEXT_PUBLIC_NETWORK
|
export const NETWORK = process.env.NEXT_PUBLIC_NETWORK
|
||||||
|
export const STARGAZE_URL = process.env.NEXT_PUBLIC_STARGAZE_WEBSITE_URL
|
||||||
|
|
||||||
export const BLOCK_EXPLORER_URL = process.env.NEXT_PUBLIC_BLOCK_EXPLORER_URL
|
export const BLOCK_EXPLORER_URL = process.env.NEXT_PUBLIC_BLOCK_EXPLORER_URL
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user