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', id: 'pubkey',
name: 'pubkey', name: 'pubkey',
title: '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({ const privateKeyState = useInputState({
id: 'privateKey', id: 'privateKey',
name: 'privateKey', name: 'privateKey',
title: 'Private Key', 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({ const nftState = useInputState({

View File

@ -26,7 +26,7 @@ export const BY_KEY_ACTION_LIST: ActionListItem[] = [
{ {
id: 'edit_badge', id: 'edit_badge',
name: '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', id: 'purge_owners',
@ -41,7 +41,7 @@ export const BY_KEY_ACTION_LIST: ActionListItem[] = [
{ {
id: 'airdrop_by_key', id: 'airdrop_by_key',
name: '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', id: 'edit_badge',
name: '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', id: 'add_keys',
@ -69,7 +69,7 @@ export const BY_KEYS_ACTION_LIST: ActionListItem[] = [
{ {
id: 'mint_by_keys', id: 'mint_by_keys',
name: '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', id: 'edit_badge',
name: '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', id: 'purge_owners',

View File

@ -30,7 +30,7 @@ export const EXECUTE_LIST: ExecuteListItem[] = [
{ {
id: 'edit_badge', id: 'edit_badge',
name: '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', // id: 'add_keys',

View File

@ -63,7 +63,7 @@ const BadgeCreationPage: NextPage = () => {
id: 'key', id: 'key',
name: 'key', name: 'key',
title: 'Public 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 = () => { const performBadgeCreationChecks = () => {
@ -184,7 +184,7 @@ const BadgeCreationPage: NextPage = () => {
const checkBadgeDetails = () => { const checkBadgeDetails = () => {
if (!badgeDetails) throw new Error('Please fill out the required fields') 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) { if (badgeDetails.external_url) {
try { try {
const url = new URL(badgeDetails.external_url) const url = new URL(badgeDetails.external_url)

View File

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

View File

@ -86,7 +86,7 @@ const BadgeHubInstantiatePage: NextPage = () => {
<form className="py-6 px-12 space-y-4" onSubmit={mutate}> <form className="py-6 px-12 space-y-4" onSubmit={mutate}>
<NextSeo title="Instantiate Badge Hub Contract" /> <NextSeo title="Instantiate Badge Hub Contract" />
<ContractPageHeader <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} link={links.Documentation}
title="Badge Hub Contract" title="Badge Hub Contract"
/> />

View File

@ -92,7 +92,7 @@ const BadgeHubMigratePage: NextPage = () => {
<section className="py-6 px-12 space-y-4"> <section className="py-6 px-12 space-y-4">
<NextSeo title="Migrate Badge Hub Contract" /> <NextSeo title="Migrate Badge Hub Contract" />
<ContractPageHeader <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} link={links.Documentation}
title="Badge Hub Contract" title="Badge Hub Contract"
/> />

View File

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