diff --git a/example/package-lock.json b/example/package-lock.json index bdf1f37..852f613 100644 --- a/example/package-lock.json +++ b/example/package-lock.json @@ -20,10 +20,10 @@ } }, "..": { - "version": "2.4.0", + "version": "2.4.1", "license": "ISC", "dependencies": { - "@sats-connect/core": "0.0.11", + "@sats-connect/core": "0.0.15-c57ac78", "@sats-connect/make-default-provider-config": "0.0.5", "@sats-connect/ui": "0.0.6" }, 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.`); } }; diff --git a/package-lock.json b/package-lock.json index ac06851..e101ca6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "2.4.1", "license": "ISC", "dependencies": { - "@sats-connect/core": "0.0.11", + "@sats-connect/core": "0.0.15-c57ac78", "@sats-connect/make-default-provider-config": "0.0.5", "@sats-connect/ui": "0.0.6" }, @@ -1715,15 +1715,18 @@ ] }, "node_modules/@sats-connect/core": { - "version": "0.0.11", - "resolved": "https://registry.npmjs.org/@sats-connect/core/-/core-0.0.11.tgz", - "integrity": "sha512-KeX0vdJ0aIpavpt/X8ZTlcoGzF/5vcuIoaeN/CV8KyjFuok/nFG6FY874uknI+p2SBQUv2okd0dqBj1YcQIfGQ==", + "version": "0.0.15-c57ac78", + "resolved": "https://registry.npmjs.org/@sats-connect/core/-/core-0.0.15-c57ac78.tgz", + "integrity": "sha512-M8xygpBCYkWTx6S0g+dcXhQr0NfX6wNVobdjCJ+9GJrNb8mGhq2c6wOGS26+9qEQJRNaGRty0JgIG/lKmCfAnA==", "dependencies": { "axios": "1.6.8", "bitcoin-address-validation": "2.2.3", "buffer": "6.0.3", "jsontokens": "4.0.1", "lodash.omit": "4.5.0" + }, + "peerDependencies": { + "valibot": "0.33.2" } }, "node_modules/@sats-connect/make-default-provider-config": { @@ -6002,6 +6005,12 @@ "node": ">=10.12.0" } }, + "node_modules/valibot": { + "version": "0.33.2", + "resolved": "https://registry.npmjs.org/valibot/-/valibot-0.33.2.tgz", + "integrity": "sha512-ZpFWuI+bs5+PP66q4zVFn4e4t/s5jmMw5iPBZmGUoi8iQqXyU9YY/BLCAyk62Z/bNS8qdUNBEyx52952qdqW3w==", + "peer": true + }, "node_modules/walker": { "version": "1.0.8", "resolved": "https://registry.npmjs.org/walker/-/walker-1.0.8.tgz", diff --git a/package.json b/package.json index 471cc50..a134595 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ ] }, "dependencies": { - "@sats-connect/core": "0.0.11", + "@sats-connect/core": "0.0.15-c57ac78", "@sats-connect/make-default-provider-config": "0.0.5", "@sats-connect/ui": "0.0.6" },