@bestinslot/wallet-kit 0.13.0 → 0.13.1
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-HcqAUOXv.js} +898 -896
- package/dist/browser.js +5 -5
- package/dist/core.js +5 -5
- package/dist/{mint-Dm67SjcM.js → mint-A-bG5QIH.js} +148 -136
- package/dist/node.js +4 -4
- package/dist/react.js +1 -1
- package/dist/{register-browser-providers-BTO9Kyf2.js → register-browser-providers-DoWxih1t.js} +1 -1
- package/dist/types/core/helpers.d.ts +18 -1
- package/dist/types/core/mint.d.ts +18 -2
- 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';
|
|
@@ -184,6 +185,19 @@ export declare function sendMultiInscriptionWithBuffer(inscriptionIds: string[],
|
|
|
184
185
|
* @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
186
|
*/
|
|
186
187
|
export declare function sendInscriptionAll(inscriptionId: string, targetWallet: WalletInfo, targetPostage: number | null, feeRate: number, dryRun: boolean, signFunc: SignFunction): Promise<SendInscriptionResult>;
|
|
188
|
+
export interface InscriptionUTXODetails {
|
|
189
|
+
satpoint: string;
|
|
190
|
+
value: number;
|
|
191
|
+
script_type: 'pubkeyhash' | 'scripthash' | 'witness_v0_keyhash' | 'witness_v0_scripthash' | 'witness_v1_taproot' | 'pubkey' | 'anchor' | 'witness_unknown' | 'nulldata' | 'multisig' | 'nonstandard';
|
|
192
|
+
block_height: number | null;
|
|
193
|
+
utxo: string;
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* Locates an inscription's UTXO on `inscriptionAddr`. Searches `ordinalUtxos` when given.
|
|
197
|
+
* Otherwise an inscription created by the saved extra transactions resolves from them
|
|
198
|
+
* directly, and any other inscription is looked up in the backend's `ordinal_utxos` list.
|
|
199
|
+
*/
|
|
200
|
+
export declare function getInscriptionDetails(inscriptionId: string, inscriptionAddr: string, ordinalUtxos?: APIOrdinalUtxoInfo[]): Promise<InscriptionUTXODetails | null>;
|
|
187
201
|
/**
|
|
188
202
|
* 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
203
|
*
|
|
@@ -329,10 +343,11 @@ interface SendInscriptionFeeRateResult {
|
|
|
329
343
|
* @param targetPostage - postage amount in satoshis to include in the target output
|
|
330
344
|
* @param extraOutputUtxos - array of extra output UTXOs to include in the transaction, each with its associated wallet information and value
|
|
331
345
|
* @param feeRate - fee rate in sat/vbyte to use for the transaction
|
|
346
|
+
* @param fetchedCardinalUtxos - the payer's `fetchCardinalUtxos` response to fund from in place of a new fetch
|
|
332
347
|
*
|
|
333
348
|
* @returns an object containing the transaction ID, unsigned transaction hex, and calculated transaction fee
|
|
334
349
|
*/
|
|
335
|
-
export declare function sendInscriptionToOpReturnWithExtraInputsAndExtraOutputFeeRate(inscriptionId: string, extraInputUtxos: UtxoInfoWithWallet[], targetWallet: WalletInfo, targetPostage: number, extraOutputUtxos: OutputUtxoInfo[], feeRate: number): Promise<SendInscriptionFeeRateResult>;
|
|
350
|
+
export declare function sendInscriptionToOpReturnWithExtraInputsAndExtraOutputFeeRate(inscriptionId: string, extraInputUtxos: UtxoInfoWithWallet[], targetWallet: WalletInfo, targetPostage: number, extraOutputUtxos: OutputUtxoInfo[], feeRate: number, fetchedCardinalUtxos?: APIUtxoInfo[]): Promise<SendInscriptionFeeRateResult>;
|
|
336
351
|
/**
|
|
337
352
|
* 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
353
|
*
|
|
@@ -357,8 +372,9 @@ export declare function mintWithExtraInputInCommitAll(inscriptionDetails: Inscri
|
|
|
357
372
|
* @param postage - postage amount in satoshis to use for the transactions
|
|
358
373
|
* @param paymentAddr - address to send the payment to (if payment is not null)
|
|
359
374
|
* @param payment - amount to pay (if payment is not null)
|
|
375
|
+
* @param fetchedCardinalUtxos - the payer's `fetchCardinalUtxos` response to fund the commit from in place of a new fetch
|
|
360
376
|
*
|
|
361
377
|
* @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
378
|
*/
|
|
363
|
-
export declare function mintWithExtraInputInCommitFeeRate(inscriptionDetails: InscriptionDetails, extraInputUtxos: UtxoInfoWithWallet[], feeRate: number, postage: number | null, paymentAddr: string | null, payment: number | null): Promise<InscribeCheckFeesResult>;
|
|
379
|
+
export declare function mintWithExtraInputInCommitFeeRate(inscriptionDetails: InscriptionDetails, extraInputUtxos: UtxoInfoWithWallet[], feeRate: number, postage: number | null, paymentAddr: string | null, payment: number | null, fetchedCardinalUtxos?: APIUtxoInfo[]): Promise<InscribeCheckFeesResult>;
|
|
364
380
|
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-A-bG5QIH.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