@bestinslot/wallet-kit 0.14.3 → 0.14.4
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/README.md +1 -0
- package/dist/{balances-DYYM7kpl.js → balances-dy0nN0Ig.js} +1 -1
- package/dist/browser.js +55 -51
- package/dist/core.js +40 -34
- package/dist/{mint-CSk_3TfL.js → mint-eUvlNox0.js} +3577 -3458
- package/dist/node.js +353 -341
- package/dist/react.js +4 -4
- package/dist/{register-browser-providers-BdTwEVwB.js → register-browser-providers-Bl1hHaZO.js} +22 -22
- package/dist/types/api/helpers.d.ts +3 -0
- package/dist/types/api/wallet.d.ts +2 -2
- package/dist/types/core/bis-providers.d.ts +54 -0
- package/dist/types/core/bis.d.ts +2 -0
- package/dist/types/core/bis_swap.d.ts +1 -1
- package/dist/types/core/chain-providers.d.ts +140 -0
- package/dist/types/core/helpers.d.ts +56 -31
- package/dist/types/core/mint.d.ts +10 -9
- package/dist/types/core/providers.d.ts +2 -2
- package/dist/types/core/store-network.d.ts +8 -0
- package/dist/types/core.d.ts +2 -0
- package/dist/vue.js +3 -3
- package/package.json +1 -1
|
@@ -78,8 +78,8 @@ export declare function getPaymentWallet(): BISWallet | undefined;
|
|
|
78
78
|
*/
|
|
79
79
|
export declare function getSignFn(provider: BISWalletProvider): SignFunction;
|
|
80
80
|
/**
|
|
81
|
-
* Signs a message using the currently connected wallet provider, then verifies
|
|
82
|
-
*
|
|
81
|
+
* Signs a message using the currently connected wallet provider, then verifies its BIP-322
|
|
82
|
+
* signature. Returns the signature, or throws if signing or verification fails.
|
|
83
83
|
*
|
|
84
84
|
* @param message The message to sign.
|
|
85
85
|
* @param walletType The wallet purpose to sign with ('payment' | 'ordinals' | 'all').
|
|
@@ -51,6 +51,14 @@ export type EndpointsConfig = {
|
|
|
51
51
|
* @throws {Error} If a key is unknown or a value is not an absolute http(s) URL.
|
|
52
52
|
*/
|
|
53
53
|
export declare function setEndpoints(config: EndpointsConfig): void;
|
|
54
|
+
/**
|
|
55
|
+
* Checks that a value is an absolute http(s) URL.
|
|
56
|
+
*
|
|
57
|
+
* @param label The setting the value belongs to, used as the error prefix.
|
|
58
|
+
* @param value The URL to check.
|
|
59
|
+
* @throws {Error} If the value is not a valid URL or uses another protocol.
|
|
60
|
+
*/
|
|
61
|
+
export declare function assertHttpUrl(label: string, value: string): void;
|
|
54
62
|
/**
|
|
55
63
|
* Returns the effective base URLs for a network: the defaults with any
|
|
56
64
|
* {@link setEndpoints} overrides applied. Testnet has no `sequencerRead`,
|
package/dist/types/core.d.ts
CHANGED
|
@@ -6,6 +6,8 @@ export * as balances from './api/balances';
|
|
|
6
6
|
export * from './api/helpers';
|
|
7
7
|
export { getEndpoints, getNetwork, setEndpoints, setNetwork, subscribeToNetwork, } from './core/store-network';
|
|
8
8
|
export type { Endpoints, EndpointsConfig } from './core/store-network';
|
|
9
|
+
export { getProviders, setProviders } from './core/chain-providers';
|
|
10
|
+
export type { NetworkProviders, ProvidersConfig } from './core/chain-providers';
|
|
9
11
|
export type { PaymentOpts } from './types/common';
|
|
10
12
|
export * as bitcoinjs from 'bitcoinjs-lib';
|
|
11
13
|
export * as Buff from '@cmdcode/buff-utils';
|
package/dist/vue.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref as s, onScopeDispose as u, watch as i } from "vue";
|
|
2
|
-
import { e as r,
|
|
3
|
-
function
|
|
2
|
+
import { e as r, Z as c, l as a } from "./mint-eUvlNox0.js";
|
|
3
|
+
function w() {
|
|
4
4
|
const o = s(r()), t = c((e) => {
|
|
5
5
|
o.value !== e && (o.value = e);
|
|
6
6
|
});
|
|
@@ -9,5 +9,5 @@ function n() {
|
|
|
9
9
|
}), o;
|
|
10
10
|
}
|
|
11
11
|
export {
|
|
12
|
-
|
|
12
|
+
w as useNetwork
|
|
13
13
|
};
|
package/package.json
CHANGED