@bestinslot/wallet-kit 0.13.0 → 0.13.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{balances-_-oF5kR6.js → balances-CvlQK3uA.js} +1875 -1866
- package/dist/browser.js +5 -5
- package/dist/core.js +5 -5
- package/dist/{mint-Dm67SjcM.js → mint-C_wN10-d.js} +208 -195
- package/dist/node.js +4 -4
- package/dist/react.js +1 -1
- package/dist/{register-browser-providers-BTO9Kyf2.js → register-browser-providers-J2bm6PEo.js} +1 -1
- package/dist/types/core/helpers.d.ts +18 -1
- package/dist/types/core/mint.d.ts +23 -5
- package/dist/vue.js +1 -1
- package/package.json +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { APIOrdinalUtxoInfo, APIUtxoInfo } from '../core/helpers';
|
|
1
2
|
import { SignFunction, SignResponse } from '../provider/api';
|
|
2
3
|
import { PaymentOpts } from '../types/common';
|
|
3
4
|
import { InscribeFees, InscribeMultipleResult, InscribeResult, SendInscriptionResult, InscriptionDetails } from '../types/inscription';
|
|
@@ -126,9 +127,10 @@ export declare function mintWithReclaimsAll(inscriptionDetails: InscriptionDetai
|
|
|
126
127
|
/**
|
|
127
128
|
* Estimates the fees for a reclaim mint by building the unsigned reclaim
|
|
128
129
|
* commit tx (Task 1) and a fee-sizing reveal tx offline, without signing or
|
|
129
|
-
* broadcasting. Mirrors mintWithExtraInputInCommitFeeRate.
|
|
130
|
+
* broadcasting. Mirrors mintWithExtraInputInCommitFeeRate. `fetchedCardinalUtxos`, the
|
|
131
|
+
* payer's `fetchCardinalUtxos` response, funds the commit in place of a new fetch.
|
|
130
132
|
*/
|
|
131
|
-
export declare function mintWithReclaimsCheckFees(inscriptionDetails: InscriptionDetails, reclaimInputs: ReclaimInput[], feeRate: number, postage: number | null): Promise<{
|
|
133
|
+
export declare function mintWithReclaimsCheckFees(inscriptionDetails: InscriptionDetails, reclaimInputs: ReclaimInput[], feeRate: number, postage: number | null, fetchedCardinalUtxos?: APIUtxoInfo[]): Promise<{
|
|
132
134
|
unsigned_commit_tx_hex: string;
|
|
133
135
|
signed_reveal_tx_hex: string;
|
|
134
136
|
inscription_id: string;
|
|
@@ -184,6 +186,19 @@ export declare function sendMultiInscriptionWithBuffer(inscriptionIds: string[],
|
|
|
184
186
|
* @returns an object containing the transaction ID, signed transaction hex, vout index of the output containing the inscription, and the value of the output containing the inscription
|
|
185
187
|
*/
|
|
186
188
|
export declare function sendInscriptionAll(inscriptionId: string, targetWallet: WalletInfo, targetPostage: number | null, feeRate: number, dryRun: boolean, signFunc: SignFunction): Promise<SendInscriptionResult>;
|
|
189
|
+
export interface InscriptionUTXODetails {
|
|
190
|
+
satpoint: string;
|
|
191
|
+
value: number;
|
|
192
|
+
script_type: 'pubkeyhash' | 'scripthash' | 'witness_v0_keyhash' | 'witness_v0_scripthash' | 'witness_v1_taproot' | 'pubkey' | 'anchor' | 'witness_unknown' | 'nulldata' | 'multisig' | 'nonstandard';
|
|
193
|
+
block_height: number | null;
|
|
194
|
+
utxo: string;
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* Locates an inscription's UTXO on `inscriptionAddr`. Searches `ordinalUtxos` when given.
|
|
198
|
+
* Otherwise an inscription created by the saved extra transactions resolves from them
|
|
199
|
+
* directly, and any other inscription is looked up in the backend's `ordinal_utxos` list.
|
|
200
|
+
*/
|
|
201
|
+
export declare function getInscriptionDetails(inscriptionId: string, inscriptionAddr: string, ordinalUtxos?: APIOrdinalUtxoInfo[]): Promise<InscriptionUTXODetails | null>;
|
|
187
202
|
/**
|
|
188
203
|
* Sends multiple inscriptions in one transaction with a buffer output and returns the fee paid for the transaction. This is used for batch minting or batch sending when the user wants to know the fee before actually sending the transaction.
|
|
189
204
|
*
|
|
@@ -251,10 +266,11 @@ interface InscribeCheckFeesResult {
|
|
|
251
266
|
* @param postage - postage amount in satoshis to use for the transactions
|
|
252
267
|
* @param paymentAddr - address to send the payment to (if payment is not null)
|
|
253
268
|
* @param payment - amount to pay (if payment is not null)
|
|
269
|
+
* @param fetchedCardinalUtxos - the payer's `fetchCardinalUtxos` response to fund the commit from in place of a new fetch
|
|
254
270
|
*
|
|
255
271
|
* @returns an object containing the estimated commit fee, reveal fee, total fee, unsigned commit transaction hex, signed reveal transaction hex, inscription ID, and postage used
|
|
256
272
|
*/
|
|
257
|
-
export declare function mintAllCheckFees(inscriptionDetails: InscriptionDetails, feeRate: number, postage: number | null, paymentAddr: string | null, payment: number | null): Promise<InscribeCheckFeesResult>;
|
|
273
|
+
export declare function mintAllCheckFees(inscriptionDetails: InscriptionDetails, feeRate: number, postage: number | null, paymentAddr: string | null, payment: number | null, fetchedCardinalUtxos?: APIUtxoInfo[]): Promise<InscribeCheckFeesResult>;
|
|
258
274
|
/**
|
|
259
275
|
* Sends an inscription to a target address using an OP_RETURN output. This function builds a transaction that spends the inscription UTXO and creates an OP_RETURN output with the inscription data, along with a target output with the specified postage. It then signs and broadcasts the transaction. If dryRun is true, it returns the signed transaction hex without broadcasting.
|
|
260
276
|
*
|
|
@@ -329,10 +345,11 @@ interface SendInscriptionFeeRateResult {
|
|
|
329
345
|
* @param targetPostage - postage amount in satoshis to include in the target output
|
|
330
346
|
* @param extraOutputUtxos - array of extra output UTXOs to include in the transaction, each with its associated wallet information and value
|
|
331
347
|
* @param feeRate - fee rate in sat/vbyte to use for the transaction
|
|
348
|
+
* @param fetchedCardinalUtxos - the payer's `fetchCardinalUtxos` response to fund from in place of a new fetch
|
|
332
349
|
*
|
|
333
350
|
* @returns an object containing the transaction ID, unsigned transaction hex, and calculated transaction fee
|
|
334
351
|
*/
|
|
335
|
-
export declare function sendInscriptionToOpReturnWithExtraInputsAndExtraOutputFeeRate(inscriptionId: string, extraInputUtxos: UtxoInfoWithWallet[], targetWallet: WalletInfo, targetPostage: number, extraOutputUtxos: OutputUtxoInfo[], feeRate: number): Promise<SendInscriptionFeeRateResult>;
|
|
352
|
+
export declare function sendInscriptionToOpReturnWithExtraInputsAndExtraOutputFeeRate(inscriptionId: string, extraInputUtxos: UtxoInfoWithWallet[], targetWallet: WalletInfo, targetPostage: number, extraOutputUtxos: OutputUtxoInfo[], feeRate: number, fetchedCardinalUtxos?: APIUtxoInfo[]): Promise<SendInscriptionFeeRateResult>;
|
|
336
353
|
/**
|
|
337
354
|
* Mints an inscription with extra input UTXOs included in the commit transaction. This function builds and signs the commit and reveal transactions for minting an inscription, while allowing the user to include additional input UTXOs in the commit transaction. This can be useful in cases where the user wants to fund the commit transaction with specific UTXOs or needs to include additional inputs for other reasons. The function retrieves the connected wallets, builds and signs the transactions, validates them, and broadcasts them to the network. If dryRun is true, it returns the signed transaction hex without broadcasting.
|
|
338
355
|
*
|
|
@@ -357,8 +374,9 @@ export declare function mintWithExtraInputInCommitAll(inscriptionDetails: Inscri
|
|
|
357
374
|
* @param postage - postage amount in satoshis to use for the transactions
|
|
358
375
|
* @param paymentAddr - address to send the payment to (if payment is not null)
|
|
359
376
|
* @param payment - amount to pay (if payment is not null)
|
|
377
|
+
* @param fetchedCardinalUtxos - the payer's `fetchCardinalUtxos` response to fund the commit from in place of a new fetch
|
|
360
378
|
*
|
|
361
379
|
* @returns an object containing the estimated commit fee, reveal fee, total fee, unsigned commit transaction hex, signed reveal transaction hex, inscription ID, and postage used
|
|
362
380
|
*/
|
|
363
|
-
export declare function mintWithExtraInputInCommitFeeRate(inscriptionDetails: InscriptionDetails, extraInputUtxos: UtxoInfoWithWallet[], feeRate: number, postage: number | null, paymentAddr: string | null, payment: number | null): Promise<InscribeCheckFeesResult>;
|
|
381
|
+
export declare function mintWithExtraInputInCommitFeeRate(inscriptionDetails: InscriptionDetails, extraInputUtxos: UtxoInfoWithWallet[], feeRate: number, postage: number | null, paymentAddr: string | null, payment: number | null, fetchedCardinalUtxos?: APIUtxoInfo[]): Promise<InscribeCheckFeesResult>;
|
|
364
382
|
export {};
|
package/dist/vue.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as s, onScopeDispose as i, watch as u } from "vue";
|
|
2
|
-
import { d as r, R as c, i as a } from "./mint-
|
|
2
|
+
import { d as r, R as c, i as a } from "./mint-C_wN10-d.js";
|
|
3
3
|
function w() {
|
|
4
4
|
const e = s(r()), t = c((o) => {
|
|
5
5
|
e.value !== o && (e.value = o);
|
package/package.json
CHANGED