@leather.io/models 0.15.0 → 0.16.0
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/.turbo/turbo-build.log +4 -4
- package/CHANGELOG.md +7 -0
- package/dist/index.d.ts +9 -7
- package/package.json +1 -1
- package/src/index.ts +1 -0
- package/src/settings.model.ts +10 -0
- package/src/types.ts +0 -7
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @leather.io/models@0.
|
|
2
|
+
> @leather.io/models@0.16.0 build /home/runner/work/mono/mono/packages/models
|
|
3
3
|
> tsup
|
|
4
4
|
|
|
5
5
|
CLI Building entry: src/index.ts
|
|
@@ -10,7 +10,7 @@ CLI Target: es2022
|
|
|
10
10
|
ESM Build start
|
|
11
11
|
ESM dist/index.js 9.10 KB
|
|
12
12
|
ESM dist/index.js.map 18.12 KB
|
|
13
|
-
ESM ⚡️ Build success in
|
|
13
|
+
ESM ⚡️ Build success in 22ms
|
|
14
14
|
DTS Build start
|
|
15
|
-
DTS ⚡️ Build success in
|
|
16
|
-
DTS dist/index.d.ts
|
|
15
|
+
DTS ⚡️ Build success in 1676ms
|
|
16
|
+
DTS dist/index.d.ts 16.02 KB
|
package/CHANGELOG.md
CHANGED
|
@@ -24,6 +24,13 @@
|
|
|
24
24
|
* devDependencies
|
|
25
25
|
* @leather.io/eslint-config bumped to 0.7.0
|
|
26
26
|
|
|
27
|
+
## [0.16.0](https://github.com/leather-io/mono/compare/@leather.io/models-v0.15.0...@leather.io/models-v0.16.0) (2024-09-24)
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
### Features
|
|
31
|
+
|
|
32
|
+
* settings security, closes leather-io/issues[#304](https://github.com/leather-io/mono/issues/304) ([936fa26](https://github.com/leather-io/mono/commit/936fa2674ad1ae4342ec7aa70290005867816b6b))
|
|
33
|
+
|
|
27
34
|
## [0.15.0](https://github.com/leather-io/mono/compare/@leather.io/models-v0.14.0...@leather.io/models-v0.15.0) (2024-09-20)
|
|
28
35
|
|
|
29
36
|
|
package/dist/index.d.ts
CHANGED
|
@@ -187,12 +187,6 @@ declare enum BtcFeeType {
|
|
|
187
187
|
}
|
|
188
188
|
|
|
189
189
|
type Blockchain = LiteralUnion<'bitcoin' | 'stacks', string>;
|
|
190
|
-
type AccountDisplayPreference = 'ns' | 'tr' | 'bns' | 'stacks';
|
|
191
|
-
interface AccountDisplayPreferenceInfo {
|
|
192
|
-
type: AccountDisplayPreference;
|
|
193
|
-
blockchain: Blockchain;
|
|
194
|
-
name: string;
|
|
195
|
-
}
|
|
196
190
|
|
|
197
191
|
interface StacksFeeEstimate {
|
|
198
192
|
fee: Money;
|
|
@@ -374,6 +368,14 @@ type NetworkConfiguration = z.infer<typeof networkConfigurationSchema>;
|
|
|
374
368
|
declare const defaultCurrentNetwork: NetworkConfiguration;
|
|
375
369
|
declare const defaultNetworksKeyedById: Record<WalletDefaultNetworkConfigurationIds, NetworkConfiguration>;
|
|
376
370
|
|
|
371
|
+
type AccountDisplayPreference = 'native-segwit' | 'taproot' | 'bns' | 'stacks';
|
|
372
|
+
interface AccountDisplayPreferenceInfo {
|
|
373
|
+
type: AccountDisplayPreference;
|
|
374
|
+
blockchain: Blockchain;
|
|
375
|
+
name: string;
|
|
376
|
+
}
|
|
377
|
+
type AnalyticsPreference = 'consent-given' | 'rejects-tracking';
|
|
378
|
+
|
|
377
379
|
interface BitcoinTransactionIssuance {
|
|
378
380
|
asset_id: string;
|
|
379
381
|
is_reissuance: boolean;
|
|
@@ -461,4 +463,4 @@ interface UtxoItem {
|
|
|
461
463
|
value: number;
|
|
462
464
|
}
|
|
463
465
|
|
|
464
|
-
export { type AccountDisplayPreference, type AccountDisplayPreferenceInfo, type AllowAdditionalProperties, type AverageBitcoinFeeRates, BESTINSLOT_API_BASE_URL_MAINNET, BESTINSLOT_API_BASE_URL_TESTNET, BITCOIN_API_BASE_URL_MAINNET, BITCOIN_API_BASE_URL_SIGNET, BITCOIN_API_BASE_URL_TESTNET, type BaseCryptoAssetBalance, type BaseCryptoAssetInfo, type BitcoinChainConfig, type BitcoinNetworkModes, type BitcoinTransactionVectorInput, type BitcoinTransactionVectorOutput, type BitcoinTx, type BitcoinUnit, type BitcoinUnitInfo, type BitcoinUnitSymbol, type Blockchain, type Brc20CryptoAssetInfo, type BtcCryptoAssetBalance, type BtcCryptoAssetInfo, BtcFeeType, ChainID, type CryptoAssetBalance, type CryptoCurrency, type Currency, type DefaultNetworkConfigurations, type Entries, FeeCalculationTypes, FeeTypes, type Fees, type FiatCurrency, type FtTransfer, HIRO_API_BASE_URL_MAINNET, HIRO_API_BASE_URL_MAINNET_EXTENDED, HIRO_API_BASE_URL_NAKAMOTO_TESTNET, HIRO_API_BASE_URL_TESTNET, HIRO_API_BASE_URL_TESTNET_EXTENDED, HIRO_INSCRIPTIONS_API_URL, type Inscription, type InscriptionCryptoAssetInfo, type InscriptionMimeType, type LiteralUnion, type MarketData, type Money, type NetworkConfiguration, type NetworkModes, type NumType, type RuneCryptoAssetInfo, STX20_API_BASE_URL_MAINNET, type Sip10CryptoAssetInfo, type Sip9CryptoAssetInfo, type Src20CryptoAssetInfo, type StacksChainConfig, type StacksFeeEstimate, type StacksTx, type StacksTxStatus, type StampCryptoAssetInfo, type Stx20CryptoAssetInfo, type StxCryptoAssetBalance, type StxCryptoAssetInfo, type StxTransfer, type SupportedBlockchains, type UtxoItem, type ValueOf, WalletDefaultNetworkConfigurationIds, bitcoinNetworkModesSchema, btcTxTimeMap, createCryptoAssetBalance, createInscription, createMarketData, createMarketPair, defaultCurrentNetwork, defaultNetworksKeyedById, formatMarketPair, networkConfigurationSchema, networkModes, testnetModes, whenInscriptionMimeType };
|
|
466
|
+
export { type AccountDisplayPreference, type AccountDisplayPreferenceInfo, type AllowAdditionalProperties, type AnalyticsPreference, type AverageBitcoinFeeRates, BESTINSLOT_API_BASE_URL_MAINNET, BESTINSLOT_API_BASE_URL_TESTNET, BITCOIN_API_BASE_URL_MAINNET, BITCOIN_API_BASE_URL_SIGNET, BITCOIN_API_BASE_URL_TESTNET, type BaseCryptoAssetBalance, type BaseCryptoAssetInfo, type BitcoinChainConfig, type BitcoinNetworkModes, type BitcoinTransactionVectorInput, type BitcoinTransactionVectorOutput, type BitcoinTx, type BitcoinUnit, type BitcoinUnitInfo, type BitcoinUnitSymbol, type Blockchain, type Brc20CryptoAssetInfo, type BtcCryptoAssetBalance, type BtcCryptoAssetInfo, BtcFeeType, ChainID, type CryptoAssetBalance, type CryptoCurrency, type Currency, type DefaultNetworkConfigurations, type Entries, FeeCalculationTypes, FeeTypes, type Fees, type FiatCurrency, type FtTransfer, HIRO_API_BASE_URL_MAINNET, HIRO_API_BASE_URL_MAINNET_EXTENDED, HIRO_API_BASE_URL_NAKAMOTO_TESTNET, HIRO_API_BASE_URL_TESTNET, HIRO_API_BASE_URL_TESTNET_EXTENDED, HIRO_INSCRIPTIONS_API_URL, type Inscription, type InscriptionCryptoAssetInfo, type InscriptionMimeType, type LiteralUnion, type MarketData, type Money, type NetworkConfiguration, type NetworkModes, type NumType, type RuneCryptoAssetInfo, STX20_API_BASE_URL_MAINNET, type Sip10CryptoAssetInfo, type Sip9CryptoAssetInfo, type Src20CryptoAssetInfo, type StacksChainConfig, type StacksFeeEstimate, type StacksTx, type StacksTxStatus, type StampCryptoAssetInfo, type Stx20CryptoAssetInfo, type StxCryptoAssetBalance, type StxCryptoAssetInfo, type StxTransfer, type SupportedBlockchains, type UtxoItem, type ValueOf, WalletDefaultNetworkConfigurationIds, bitcoinNetworkModesSchema, btcTxTimeMap, createCryptoAssetBalance, createInscription, createMarketData, createMarketPair, defaultCurrentNetwork, defaultNetworksKeyedById, formatMarketPair, networkConfigurationSchema, networkModes, testnetModes, whenInscriptionMimeType };
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@leather.io/models",
|
|
3
3
|
"author": "Leather.io contact@leather.io",
|
|
4
4
|
"description": "Leather models and types",
|
|
5
|
-
"version": "0.
|
|
5
|
+
"version": "0.16.0",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://github.com/leather-io/mono/tree/dev/packages/models",
|
|
8
8
|
"repository": {
|
package/src/index.ts
CHANGED
|
@@ -12,6 +12,7 @@ export * from './types.utils';
|
|
|
12
12
|
export * from './money.model';
|
|
13
13
|
export * from './network/network.model';
|
|
14
14
|
export * from './network/network.schema';
|
|
15
|
+
export * from './settings.model';
|
|
15
16
|
export * from './transactions/bitcoin-transaction.model';
|
|
16
17
|
export * from './transactions/stacks-transaction.model';
|
|
17
18
|
export * from './utxo.model';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Blockchain } from './types';
|
|
2
|
+
|
|
3
|
+
export type AccountDisplayPreference = 'native-segwit' | 'taproot' | 'bns' | 'stacks';
|
|
4
|
+
export interface AccountDisplayPreferenceInfo {
|
|
5
|
+
type: AccountDisplayPreference;
|
|
6
|
+
blockchain: Blockchain;
|
|
7
|
+
name: string;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export type AnalyticsPreference = 'consent-given' | 'rejects-tracking';
|
package/src/types.ts
CHANGED
|
@@ -1,10 +1,3 @@
|
|
|
1
1
|
import { LiteralUnion } from './types.utils';
|
|
2
2
|
|
|
3
3
|
export type Blockchain = LiteralUnion<'bitcoin' | 'stacks', string>;
|
|
4
|
-
|
|
5
|
-
export type AccountDisplayPreference = 'ns' | 'tr' | 'bns' | 'stacks';
|
|
6
|
-
export interface AccountDisplayPreferenceInfo {
|
|
7
|
-
type: AccountDisplayPreference;
|
|
8
|
-
blockchain: Blockchain;
|
|
9
|
-
name: string;
|
|
10
|
-
}
|