From ab52e7269dc3eafa57ff6142c23d0ebba8868edd Mon Sep 17 00:00:00 2001 From: fede erbes Date: Thu, 18 Jan 2024 13:22:09 +0000 Subject: [PATCH] chore: make content_type type optional --- hooks/inscriptions/useInscriptionExecute.ts | 2 +- hooks/inscriptions/useInscriptionFees.ts | 2 +- transactions/bitcoin/types.ts | 2 +- transactions/inscriptionMint.ts | 4 ++-- types/api/ordinals/index.ts | 2 +- types/api/xverseInscribe/inscription.ts | 4 ++-- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/hooks/inscriptions/useInscriptionExecute.ts b/hooks/inscriptions/useInscriptionExecute.ts index 57405314..be954b62 100644 --- a/hooks/inscriptions/useInscriptionExecute.ts +++ b/hooks/inscriptions/useInscriptionExecute.ts @@ -13,7 +13,7 @@ type Props = { changeAddress: string; contentString?: string; contentBase64?: string; - contentType: string; + contentType?: string; feeRate: number; network: NetworkType; serviceFee?: number; diff --git a/hooks/inscriptions/useInscriptionFees.ts b/hooks/inscriptions/useInscriptionFees.ts index 1fc4de19..c1a03519 100644 --- a/hooks/inscriptions/useInscriptionFees.ts +++ b/hooks/inscriptions/useInscriptionFees.ts @@ -16,7 +16,7 @@ type CommitValueBreakdown = { type Props = { addressUtxos: UTXO[] | undefined; content: string; - contentType: string; + contentType?: string; feeRate: number; revealAddress: string; finalInscriptionValue?: number; diff --git a/transactions/bitcoin/types.ts b/transactions/bitcoin/types.ts index 4d6c193b..b991e1be 100644 --- a/transactions/bitcoin/types.ts +++ b/transactions/bitcoin/types.ts @@ -72,7 +72,7 @@ export type IOInscription = { offset: number; fromAddress: string; number: number; - contentType: string; + contentType?: string; }; export type IOSatribute = { diff --git a/transactions/inscriptionMint.ts b/transactions/inscriptionMint.ts index 398fa70c..4f97f18d 100644 --- a/transactions/inscriptionMint.ts +++ b/transactions/inscriptionMint.ts @@ -25,7 +25,7 @@ export enum InscriptionErrorCode { type EstimateProps = { addressUtxos: UTXO[]; content: string; - contentType: string; + contentType?: string; revealAddress: string; feeRate: number; finalInscriptionValue?: number; @@ -55,7 +55,7 @@ type ExecuteProps = { addressUtxos: UTXO[]; contentString?: string; contentBase64?: string; - contentType: string; + contentType?: string; revealAddress: string; feeRate: number; finalInscriptionValue?: number; diff --git a/types/api/ordinals/index.ts b/types/api/ordinals/index.ts index e4190322..a654e3eb 100644 --- a/types/api/ordinals/index.ts +++ b/types/api/ordinals/index.ts @@ -18,7 +18,7 @@ export interface Inscription { sat_rarity: string; sat_coinbase_height: number; mime_type: string; - content_type: string; + content_type?: string; content_length: number; timestamp: number; tx_id: string; diff --git a/types/api/xverseInscribe/inscription.ts b/types/api/xverseInscribe/inscription.ts index 37599be6..8bde361b 100644 --- a/types/api/xverseInscribe/inscription.ts +++ b/types/api/xverseInscribe/inscription.ts @@ -3,7 +3,7 @@ export type InscriptionCostEstimateRequest = { feeRate: number; inscriptionValue: number; contentLength: number; - contentType: string; + contentType?: string; repetitions?: number; }; @@ -19,7 +19,7 @@ type InscriptionCreateOrderBaseRequest = { feeRate: number; revealAddress: string; inscriptionValue?: number; - contentType: string; + contentType?: string; repetitions?: number; appServiceFee?: number; appServiceFeeAddress?: string;