Clean up before initial release

This commit is contained in:
Serkan Reis 2023-02-23 15:22:55 +03:00
parent a45384ba07
commit 6a8cf279a2
8 changed files with 18 additions and 16 deletions

View File

@ -151,14 +151,14 @@ export const BadgeActions = ({ badgeHubContractAddress, badgeId, badgeHubMessage
id: 'pubkey',
name: 'pubkey',
title: 'Pubkey',
subtitle: 'The public key for the badge',
subtitle: 'The public key to check whether it can be used to mint a badge',
})
const privateKeyState = useInputState({
id: 'privateKey',
name: 'privateKey',
title: 'Private Key',
subtitle: 'The private key to claim the badge with',
subtitle: 'The private key that was generated during badge creation',
})
const nftState = useInputState({

View File

@ -26,7 +26,7 @@ export const BY_KEY_ACTION_LIST: ActionListItem[] = [
{
id: 'edit_badge',
name: 'Edit Badge',
description: `Edit the badge with the specified ID`,
description: `Edit badge metadata for the badge with the specified ID`,
},
{
id: 'purge_owners',
@ -41,7 +41,7 @@ export const BY_KEY_ACTION_LIST: ActionListItem[] = [
{
id: 'airdrop_by_key',
name: 'Airdrop by Key',
description: `Mint badges to a list of specified addresses`,
description: `Airdrop badges to a list of specified addresses`,
},
]
@ -49,7 +49,7 @@ export const BY_KEYS_ACTION_LIST: ActionListItem[] = [
{
id: 'edit_badge',
name: 'Edit Badge',
description: `Edit the badge with the specified ID`,
description: `Edit badge metadata for the badge with the specified ID`,
},
{
id: 'add_keys',
@ -69,7 +69,7 @@ export const BY_KEYS_ACTION_LIST: ActionListItem[] = [
{
id: 'mint_by_keys',
name: 'Mint by Keys',
description: `Mint a new badge with a whitelisted public key and corresponding signature`,
description: `Mint a new badge with a whitelisted private key`,
},
]
@ -77,7 +77,7 @@ export const BY_MINTER_ACTION_LIST: ActionListItem[] = [
{
id: 'edit_badge',
name: 'Edit Badge',
description: `Edit the badge with the specified ID`,
description: `Edit badge metadata for the badge with the specified ID`,
},
{
id: 'purge_owners',

View File

@ -30,7 +30,7 @@ export const EXECUTE_LIST: ExecuteListItem[] = [
{
id: 'edit_badge',
name: 'Edit Badge',
description: `Edit the badge with the specified ID`,
description: ` Edit badge metadata for the badge with the specified ID`,
},
// {
// id: 'add_keys',

View File

@ -63,7 +63,7 @@ const BadgeCreationPage: NextPage = () => {
id: 'key',
name: 'key',
title: 'Public Key',
subtitle: 'The public key generated for the badge',
subtitle: 'One part of the key pair to be utilized for post-creation access control',
})
const performBadgeCreationChecks = () => {
@ -184,7 +184,7 @@ const BadgeCreationPage: NextPage = () => {
const checkBadgeDetails = () => {
if (!badgeDetails) throw new Error('Please fill out the required fields')
if (keyState.value === '' || !createdBadgeKey) throw new Error('Please generate a key')
if (keyState.value === '' || !createdBadgeKey) throw new Error('Please generate a public key')
if (badgeDetails.external_url) {
try {
const url = new URL(badgeDetails.external_url)

View File

@ -164,8 +164,8 @@ const BadgeHubExecutePage: NextPage = () => {
const keyState = useInputState({
id: 'key',
name: 'key',
title: 'Key',
subtitle: 'The key generated for the badge',
title: 'Public Key',
subtitle: 'One part of the key pair to be utilized for post-creation access control',
})
const ownerState = useInputState({
@ -535,7 +535,7 @@ const BadgeHubExecutePage: NextPage = () => {
<section className="py-6 px-12 space-y-4">
<NextSeo title="Execute Badge Hub Contract" />
<ContractPageHeader
description="The Badge Hub contract is where event organizers create, mint, or edit badges."
description="The Badge Hub contract dashboard is where event organizers create, mint, or edit badges."
link={links.Documentation}
title="Badge Hub Contract"
/>

View File

@ -86,7 +86,7 @@ const BadgeHubInstantiatePage: NextPage = () => {
<form className="py-6 px-12 space-y-4" onSubmit={mutate}>
<NextSeo title="Instantiate Badge Hub Contract" />
<ContractPageHeader
description="The badge-hub contract is where event organizers create, mint, or edit badges."
description="The badge-hub contract dashboard is where event organizers create, mint, or edit badges."
link={links.Documentation}
title="Badge Hub Contract"
/>

View File

@ -92,7 +92,7 @@ const BadgeHubMigratePage: NextPage = () => {
<section className="py-6 px-12 space-y-4">
<NextSeo title="Migrate Badge Hub Contract" />
<ContractPageHeader
description="The Badge Hub contract is where event organizers create, mint, or edit badges."
description="The Badge Hub contract dashboard is where event organizers create, mint, or edit badges."
link={links.Documentation}
title="Badge Hub Contract"
/>

View File

@ -40,6 +40,7 @@ const BadgeHubQueryPage: NextPage = () => {
name: 'id',
title: 'ID',
subtitle: 'The ID of the badge',
defaultValue: 1,
})
const pubkeyState = useInputState({
@ -68,6 +69,7 @@ const BadgeHubQueryPage: NextPage = () => {
name: 'pagination-limit',
title: 'Pagination Limit (optional)',
subtitle: 'The number of items to return (max: 30)',
defaultValue: 5,
})
const [type, setType] = useState<QueryType>('config')
@ -125,7 +127,7 @@ const BadgeHubQueryPage: NextPage = () => {
<section className="py-6 px-12 space-y-4">
<NextSeo title="Query Badge Hub Contract" />
<ContractPageHeader
description="The Badge Hub contract is where event organizers create, mint, or edit badges."
description="The Badge Hub contract dashboard is where event organizers create, mint, or edit badges."
link={links.Documentation}
title="Badge Hub Contract"
/>