diff --git a/example/src/components/EtchRunes/index.tsx b/example/src/components/EtchRunes/index.tsx index 221af7b..6251f99 100644 --- a/example/src/components/EtchRunes/index.tsx +++ b/example/src/components/EtchRunes/index.tsx @@ -17,6 +17,9 @@ const EtchRunes = ({ addresses, network }: Props) => { const [divisibility, setDivisibility] = useState(''); const [amount, setAmount] = useState(''); const [mintCap, setMintCap] = useState(''); + const [delegateInscription, setDelegateInscription] = useState(''); + const [inscriptionContentType, setInscriptionContentType] = useState(''); + const [inscriptionContent, setInscriptionContent] = useState(''); const ordinalsAddress = useMemo( () => addresses.find((a) => a.purpose === AddressPurpose.Ordinals)?.address || '', @@ -35,6 +38,14 @@ const EtchRunes = ({ addresses, network }: Props) => { symbol: symbol || undefined, premine: preMine || undefined, divisibility: +divisibility || undefined, + delegateInscriptionId: delegateInscription || undefined, + inscriptionDetails: + inscriptionContent && inscriptionContentType + ? { + contentBase64: inscriptionContent, + contentType: inscriptionContentType, + } + : undefined, terms: amount || mintCap ? { @@ -61,6 +72,14 @@ const EtchRunes = ({ addresses, network }: Props) => { destinationAddress: ordinalsAddress, symbol: symbol || undefined, premine: preMine || undefined, + delegateInscriptionId: delegateInscription || undefined, + inscriptionDetails: + inscriptionContent && inscriptionContentType + ? { + contentBase64: inscriptionContent, + contentType: inscriptionContentType, + } + : undefined, terms: amount || mintCap ? { @@ -111,6 +130,30 @@ const EtchRunes = ({ addresses, network }: Props) => {

Symbol

setSymbol(e.target.value)} /> +
+

Delegate inscription

+ setDelegateInscription(e.target.value)} + /> +
+
+

Inscription Content

+ setInscriptionContent(e.target.value)} + /> +
+
+

Inscription Content type

+ setInscriptionContentType(e.target.value)} + /> +

Divisibility

{ setTotalSize(response.result.totalSize); } else { console.error(response.error); - alert('Error Fetching Estimate. See console for details.'); + alert(`Error estimating ${runeName} mint. See console for details.`); } }; @@ -56,7 +56,7 @@ const MintRunes = ({ addresses, network }: Props) => { setFundTxId(response.result.fundTransactionId); } else { console.error(response.error); - alert('Error sending BTC. See console for details.'); + alert(`Error executing ${runeName} mint. See console for details.`); } };