@leather.io/models 0.50.2 → 0.51.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 +7 -7
- package/CHANGELOG.md +7 -0
- package/dist/index.d.ts +50 -41
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/network/network.model.ts +4 -0
- package/src/swap/swap.model.ts +47 -40
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @leather.io/models@0.
|
|
2
|
+
> @leather.io/models@0.51.0 build /home/runner/work/mono/mono/packages/models
|
|
3
3
|
> tsdown
|
|
4
4
|
|
|
5
5
|
[34mℹ[39m tsdown [2mv0.16.5[22m powered by rolldown [2mv1.0.0-beta.50[22m
|
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
[34mℹ[39m entry: [34msrc/index.ts[39m
|
|
8
8
|
[34mℹ[39m tsconfig: [34mtsconfig.json[39m
|
|
9
9
|
[34mℹ[39m Build start
|
|
10
|
-
[34mℹ[39m [2mdist/[22m[1mindex.js[22m [2m22.
|
|
11
|
-
[34mℹ[39m [2mdist/[22mindex.js.map [
|
|
12
|
-
[34mℹ[39m [2mdist/[22mindex.d.ts.map [
|
|
13
|
-
[34mℹ[39m [2mdist/[22m[32m[1mindex.d.ts[22m[39m [
|
|
14
|
-
[34mℹ[39m 4 files, total:
|
|
15
|
-
[32m✔[39m Build complete in [
|
|
10
|
+
[34mℹ[39m [2mdist/[22m[1mindex.js[22m [2m22.88 kB[22m [2m│ gzip: 5.29 kB[22m
|
|
11
|
+
[34mℹ[39m [2mdist/[22mindex.js.map [2m50.72 kB[22m [2m│ gzip: 10.62 kB[22m
|
|
12
|
+
[34mℹ[39m [2mdist/[22mindex.d.ts.map [2m19.20 kB[22m [2m│ gzip: 7.38 kB[22m
|
|
13
|
+
[34mℹ[39m [2mdist/[22m[32m[1mindex.d.ts[22m[39m [2m50.16 kB[22m [2m│ gzip: 9.90 kB[22m
|
|
14
|
+
[34mℹ[39m 4 files, total: 142.95 kB
|
|
15
|
+
[32m✔[39m Build complete in [32m2197ms[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -36,6 +36,13 @@
|
|
|
36
36
|
* devDependencies
|
|
37
37
|
* @leather.io/prettier-config bumped to 0.9.0
|
|
38
38
|
|
|
39
|
+
## [0.51.0](https://github.com/leather-io/mono/compare/@leather.io/models-v0.50.2...@leather.io/models-v0.51.0) (2025-12-09)
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
### Features
|
|
43
|
+
|
|
44
|
+
* **services:** add swap quote execution constraints ([4b01f74](https://github.com/leather-io/mono/commit/4b01f7407c3bfcec660a31ed7de91e97aa252fc0))
|
|
45
|
+
|
|
39
46
|
## [0.50.2](https://github.com/leather-io/mono/compare/@leather.io/models-v0.50.1...@leather.io/models-v0.50.2) (2025-12-08)
|
|
40
47
|
|
|
41
48
|
|
package/dist/index.d.ts
CHANGED
|
@@ -670,6 +670,9 @@ declare const BESTINSLOT_API_BASE_URL_MAINNET = "https://leatherapi.bestinslot.x
|
|
|
670
670
|
declare const BESTINSLOT_API_BASE_URL_TESTNET = "https://leatherapi_testnet.bestinslot.xyz/v3";
|
|
671
671
|
declare const STX20_API_BASE_URL_MAINNET = "https://api.stx20.com/api/v1";
|
|
672
672
|
declare const BNS_V2_API_BASE_URL = "https://api.bnsv2.com";
|
|
673
|
+
declare const EMILY_API_BASE_URL_MAINNET = "https://sbtc-emily.com";
|
|
674
|
+
declare const EMILY_API_BASE_URL_TESTNET = "https://beta.sbtc-emily.com";
|
|
675
|
+
declare const EMILY_API_BASE_URL_DEVENV = "http://localhost:3031";
|
|
673
676
|
declare enum ChainId {
|
|
674
677
|
Testnet = 2147483648,
|
|
675
678
|
Mainnet = 1,
|
|
@@ -748,81 +751,87 @@ type EmailAddress = z.infer<typeof emailAddressSchema>;
|
|
|
748
751
|
//#region src/swap/swap.model.d.ts
|
|
749
752
|
type SwappableFungibleCryptoAsset = NativeCryptoAsset | Sip10Asset;
|
|
750
753
|
interface SwapAsset {
|
|
751
|
-
asset: SwappableFungibleCryptoAsset;
|
|
752
|
-
providerAssets: SwapProviderAsset[];
|
|
754
|
+
readonly asset: SwappableFungibleCryptoAsset;
|
|
755
|
+
readonly providerAssets: SwapProviderAsset[];
|
|
753
756
|
}
|
|
754
757
|
declare const swapProviderIds: readonly ["bitflow-sdk", "sbtc-bridge", "alex-sdk", "velar-sdk"];
|
|
755
758
|
type SwapProviderId = (typeof swapProviderIds)[number];
|
|
756
759
|
interface SwapProvider {
|
|
757
|
-
id: SwapProviderId;
|
|
758
|
-
isAggregator: boolean;
|
|
760
|
+
readonly id: SwapProviderId;
|
|
761
|
+
readonly isAggregator: boolean;
|
|
759
762
|
}
|
|
760
763
|
interface SwapProviderAsset {
|
|
761
|
-
providerId: SwapProviderId;
|
|
762
|
-
providerAssetId: string;
|
|
763
|
-
assetId: CryptoAssetId;
|
|
764
|
+
readonly providerId: SwapProviderId;
|
|
765
|
+
readonly providerAssetId: string;
|
|
766
|
+
readonly assetId: CryptoAssetId;
|
|
764
767
|
}
|
|
765
768
|
type SwapQuote = AlexSdkSwapQuote | VelarSdkSwapQuote | BitflowSdkSwapQuote | SbtcBridgeSwapQuote;
|
|
766
769
|
interface BaseSwapQuote {
|
|
767
|
-
executionType: SwapExecutionType;
|
|
768
|
-
providerId: SwapProviderId;
|
|
769
|
-
baseAsset: SwappableFungibleCryptoAsset;
|
|
770
|
-
targetAsset: SwappableFungibleCryptoAsset;
|
|
771
|
-
baseAmount: Money;
|
|
772
|
-
targetAmount: Money;
|
|
773
|
-
dexPath: SwapDex[];
|
|
774
|
-
assetPath: (NativeCryptoAsset | Sip10Asset)[];
|
|
775
|
-
|
|
770
|
+
readonly executionType: SwapExecutionType;
|
|
771
|
+
readonly providerId: SwapProviderId;
|
|
772
|
+
readonly baseAsset: SwappableFungibleCryptoAsset;
|
|
773
|
+
readonly targetAsset: SwappableFungibleCryptoAsset;
|
|
774
|
+
readonly baseAmount: Money;
|
|
775
|
+
readonly targetAmount: Money;
|
|
776
|
+
readonly dexPath: SwapDex[];
|
|
777
|
+
readonly assetPath: (NativeCryptoAsset | Sip10Asset)[];
|
|
778
|
+
readonly isExecutable: boolean;
|
|
779
|
+
readonly executionConstraints: ExecutionConstraint[];
|
|
780
|
+
readonly createdAt: Date;
|
|
781
|
+
}
|
|
782
|
+
interface ExecutionConstraint {
|
|
783
|
+
readonly reason: 'minimum-threshold-not-met' | 'maximum-threshold-exceeded';
|
|
784
|
+
readonly threshold: Money;
|
|
776
785
|
}
|
|
777
786
|
interface AlexSdkSwapQuote extends BaseSwapQuote {
|
|
778
|
-
providerId: 'alex-sdk';
|
|
779
|
-
providerQuoteData: {
|
|
787
|
+
readonly providerId: 'alex-sdk';
|
|
788
|
+
readonly providerQuoteData: {
|
|
780
789
|
baseProviderAssetId: string;
|
|
781
790
|
targetProviderAssetId: string;
|
|
782
791
|
alexSdkAmmRoute: unknown;
|
|
783
792
|
};
|
|
784
793
|
}
|
|
785
794
|
interface VelarSdkSwapQuote extends BaseSwapQuote {
|
|
786
|
-
providerId: 'velar-sdk';
|
|
795
|
+
readonly providerId: 'velar-sdk';
|
|
787
796
|
providerQuoteData: {
|
|
788
|
-
baseProviderAssetId: string;
|
|
789
|
-
targetProviderAssetId: string;
|
|
797
|
+
readonly baseProviderAssetId: string;
|
|
798
|
+
readonly targetProviderAssetId: string;
|
|
790
799
|
};
|
|
791
800
|
}
|
|
792
801
|
interface BitflowSdkSwapQuote extends BaseSwapQuote {
|
|
793
|
-
providerId: 'bitflow-sdk';
|
|
794
|
-
providerQuoteData: {
|
|
802
|
+
readonly providerId: 'bitflow-sdk';
|
|
803
|
+
readonly providerQuoteData: {
|
|
795
804
|
bitflowSdkSelectedSwapRoute: unknown;
|
|
796
805
|
};
|
|
797
806
|
}
|
|
798
807
|
interface SbtcBridgeSwapQuote extends BaseSwapQuote {
|
|
799
|
-
providerId: 'sbtc-bridge';
|
|
808
|
+
readonly providerId: 'sbtc-bridge';
|
|
800
809
|
}
|
|
801
810
|
interface SwapDex {
|
|
802
|
-
name: string;
|
|
803
|
-
url: string;
|
|
804
|
-
logo: string;
|
|
805
|
-
description: string;
|
|
811
|
+
readonly name: string;
|
|
812
|
+
readonly url: string;
|
|
813
|
+
readonly logo: string;
|
|
814
|
+
readonly description: string;
|
|
806
815
|
}
|
|
807
816
|
declare const swapExecutionTypes: readonly ["stacks-contract-call", "sbtc-bridge-transfer"];
|
|
808
817
|
type SwapExecutionType = (typeof swapExecutionTypes)[number];
|
|
809
818
|
interface BaseSwapExecutionData {
|
|
810
|
-
executionType: SwapExecutionType;
|
|
811
|
-
providerId: SwapProviderId;
|
|
812
|
-
quote: SwapQuote;
|
|
819
|
+
readonly executionType: SwapExecutionType;
|
|
820
|
+
readonly providerId: SwapProviderId;
|
|
821
|
+
readonly quote: SwapQuote;
|
|
813
822
|
}
|
|
814
823
|
interface StacksContractCallSwapExecutionData extends BaseSwapExecutionData {
|
|
815
|
-
executionType: 'stacks-contract-call';
|
|
816
|
-
quote: SwapQuote;
|
|
817
|
-
contractAddress: string;
|
|
818
|
-
contractName: string;
|
|
819
|
-
functionName: string;
|
|
820
|
-
functionArgs: unknown[];
|
|
821
|
-
postConditions: unknown[];
|
|
822
|
-
postConditionMode?: unknown;
|
|
824
|
+
readonly executionType: 'stacks-contract-call';
|
|
825
|
+
readonly quote: SwapQuote;
|
|
826
|
+
readonly contractAddress: string;
|
|
827
|
+
readonly contractName: string;
|
|
828
|
+
readonly functionName: string;
|
|
829
|
+
readonly functionArgs: unknown[];
|
|
830
|
+
readonly postConditions: unknown[];
|
|
831
|
+
readonly postConditionMode?: unknown;
|
|
823
832
|
}
|
|
824
833
|
interface SbtcBridgeTransferSwapExecutionData extends BaseSwapExecutionData {
|
|
825
|
-
executionType: 'sbtc-bridge-transfer';
|
|
834
|
+
readonly executionType: 'sbtc-bridge-transfer';
|
|
826
835
|
}
|
|
827
836
|
type SwapExecutionData = StacksContractCallSwapExecutionData | SbtcBridgeTransferSwapExecutionData;
|
|
828
837
|
//#endregion
|
|
@@ -1273,5 +1282,5 @@ declare function enrichPositionWithMetadata<T extends YieldPosition>(position: T
|
|
|
1273
1282
|
};
|
|
1274
1283
|
declare function getCategoryDisplayName(category: YieldProductCategory): string;
|
|
1275
1284
|
//#endregion
|
|
1276
|
-
export { AccountAddresses, AccountDisplayPreference, AccountDisplayPreferenceInfo, AccountId, AccountLevelActivity, Activity, ActivityLevel, ActivityLevels, ActivityType, AlexSdkSwapQuote, AllowAdditionalProperties, AnalyticsPreference, AppLevelActivity, 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_TESTNET3, BITCOIN_API_BASE_URL_TESTNET4, BNS_V2_API_BASE_URL, BaseActivity, BaseCryptoAsset, BaseCryptoAssetBalance, BaseNonFungibleCryptoAsset, BaseOnChainActivity, BasePooledStackingPosition, BaseSwapExecutionData, BaseSwapQuote, BaseTransactionFeeQuote, BaseWalletActivity, BaseYieldPosition, BaseYieldProduct, BitcoinAddress, BitcoinAddressInfo, BitcoinChainConfig, BitcoinNetwork, BitcoinNetworkModes, BitcoinTransaction, BitcoinTransactionFeeQuote, BitcoinTransactionVectorInput, BitcoinTransactionVectorOutput, BitcoinTransactionVin, BitcoinTransactionVout, BitcoinTx, BitcoinUnit, BitcoinUnitInfo, BitcoinUnitSymbol, BitflowAmmLpPosition, BitflowAmmStakingPosition, BitflowSdkSwapQuote, Blockchain, BnsName, BnsProfile, BnsProfileData, BnsProfileDataAddresses, Brc20Asset, BtcAsset, BtcBalance, BtcFeeType, ChainId, ConnectAppActivity, CryptoAsset, CryptoAssetBalance, CryptoAssetCategories, CryptoAssetCategory, CryptoAssetChain, CryptoAssetChains, CryptoAssetId, CryptoAssetProtocol, CryptoAssetProtocols, CryptoCurrency, Currency, DefaultNetworkConfigurations, DeploySmartContractActivity, EmailAddress, Entries, EvmTransactionFeeQuote, ExecuteSmartContractActivity, FastPoolPooledStackingPosition, FeeCalculationTypes, FeeTypes, Fees, FlatTransactionFeeQuote, FtTransfer, FungibleAssetId, FungibleCryptoAsset, FungibleCryptoAssetProtocol, FungibleCryptoAssetProtocols, GeneralActivity, GeneralActivityType, GeneralActivityTypes, GraniteV1BorrowPosition, GraniteV1CollateralAsset, GraniteV1EarnPosition, 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, HermeticaStaking, HermeticaUsdhStakingPosition, HistoricalPeriod, InscriptionAsset, InscriptionMimeType, LisaLiStxPosition, LisaLiquidStakingPosition, LisaLstHolding, LiteralUnion, LockAssetActivity, MarketData, MarketPriceHistory, MarketPriceSnapshot, Money, NativeCryptoAsset, NetworkConfiguration, NetworkModes, NonFungibleCryptoAsset, NonFungibleCryptoAssetProtocol, NonFungibleCryptoAssetProtocols, NumType, OnChainActivity, OnChainActivityStatus, OnChainActivityStatuses, OnChainActivityType, OnChainActivityTypes, OwnedUtxo, PooledStackingYieldProduct, Prettify, QuoteCurrency, ReceiveAssetActivity, ReplaceTypes, RuneAsset, STX20_API_BASE_URL_MAINNET, SbtcBridgeSwapQuote, SbtcBridgeTransferSwapExecutionData, SendAssetActivity, SignMessageActivity, Sip10Asset, Sip9Asset, Sip9AssetContent, Sip9Attribute, Sip9Collection, Sip9ContentType, Src20Asset, StackingDaoLstHolding, StackingDaoLstWithdrawal, StackingDaoPooledStackingPosition, StackingDaoReward, StackingDaoStStxBtcPosition, StackingDaoStStxPosition, StacksAddressInfo, StacksChainConfig, StacksContractCallSwapExecutionData, StacksFeeEstimate, StacksTransactionFeeQuote, StacksTx, StacksTxStatus, StampAsset, Stx20Asset, StxAsset, StxBalance, StxTransfer, SupportedBlockchains, SwapAsset, SwapAssetsActivity, SwapDex, SwapExecutionData, SwapExecutionType, SwapProvider, SwapProviderAsset, SwapProviderId, SwapQuote, SwappableFungibleCryptoAsset, TransactionErrorKey, TransactionFeeQuote, TransactionFeeQuoteType, TransactionFeeTier, TransactionFees, Utxo, UtxoId, ValueOf, VelarAmmLpPosition, VelarFarmPosition, VelarSdkSwapQuote, WalletActivity, WalletActivityType, WalletActivityTypes, WalletDefaultNetworkConfigurationIds, WalletId, XversePooledStackingPosition, YieldPosition, YieldProduct, YieldProductCategories, YieldProductCategory, YieldProductKey, YieldProductKeys, YieldProductToProviderMap, YieldProvider, YieldProviderKey, YieldProviderKeys, ZestBorrowAsset, ZestBorrowMarketPosition, accountAddressesSchema, accountDisplayPreferenceSchema, accountIdSchema, analyticsPreferenceSchema, bitcoinAddressInfoSchema, bitcoinNetworkModesSchema, bitcoinNetworkSchema, bitcoinNetworkToNetworkMode, bitcoinNetworks, bitcoinUnitSchema, bnsContractAddress, bnsContractName, btcTxTimeMap, createMarketData, createMarketPair, defaultCurrentNetwork, defaultNetworkConfigurationsSchema, defaultNetworksKeyedById, emailAddressSchema, enrichPositionWithMetadata, enrichPositionWithProduct, enrichPositionWithProvider, filterPositionsByCategory, filterPositionsByProduct, filterPositionsByProvider, formatMarketPair, getCategoryDisplayName, getCategoryForProduct, getPositionsInCategories, getProductsForProvider, getProductsInCategory, getProviderForProduct, groupPositionsByCategory, groupPositionsByProvider, hasPositionsInCategory, hasPositionsInProvider, historicalPeriods, inscriptionMimeTypes, isBitflowAmmLpPosition, isBitflowAmmStakingPosition, isBrc20Asset, isBtcAsset, isFungibleAsset, isGraniteBorrowPosition, isGraniteEarnPosition, isInscriptionAsset, isNativeAsset, isNonFungibleAsset, isProductInProvider, isRuneAsset, isSip10Asset, isSip9Asset, isSrc20Asset, isStackingDaoPooledPosition, isStackingDaoStStxBtcPosition, isStackingDaoStStxPosition, isStampAsset, isStx20Asset, isStxAsset, isSwappableAsset, isZestPosition, networkConfigurationSchema, networkModes, sip9ContentTypes, sortPositionsByApy, sortPositionsByBalance, sortPositionsByUpdateTime, stacksAddressInfoSchema, supportedBlockchains, swapExecutionTypes, swapProviderIds, testnetModes, transactionFeeQuoteType, transactionFeeTiers, walletIdSchema };
|
|
1285
|
+
export { AccountAddresses, AccountDisplayPreference, AccountDisplayPreferenceInfo, AccountId, AccountLevelActivity, Activity, ActivityLevel, ActivityLevels, ActivityType, AlexSdkSwapQuote, AllowAdditionalProperties, AnalyticsPreference, AppLevelActivity, 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_TESTNET3, BITCOIN_API_BASE_URL_TESTNET4, BNS_V2_API_BASE_URL, BaseActivity, BaseCryptoAsset, BaseCryptoAssetBalance, BaseNonFungibleCryptoAsset, BaseOnChainActivity, BasePooledStackingPosition, BaseSwapExecutionData, BaseSwapQuote, BaseTransactionFeeQuote, BaseWalletActivity, BaseYieldPosition, BaseYieldProduct, BitcoinAddress, BitcoinAddressInfo, BitcoinChainConfig, BitcoinNetwork, BitcoinNetworkModes, BitcoinTransaction, BitcoinTransactionFeeQuote, BitcoinTransactionVectorInput, BitcoinTransactionVectorOutput, BitcoinTransactionVin, BitcoinTransactionVout, BitcoinTx, BitcoinUnit, BitcoinUnitInfo, BitcoinUnitSymbol, BitflowAmmLpPosition, BitflowAmmStakingPosition, BitflowSdkSwapQuote, Blockchain, BnsName, BnsProfile, BnsProfileData, BnsProfileDataAddresses, Brc20Asset, BtcAsset, BtcBalance, BtcFeeType, ChainId, ConnectAppActivity, CryptoAsset, CryptoAssetBalance, CryptoAssetCategories, CryptoAssetCategory, CryptoAssetChain, CryptoAssetChains, CryptoAssetId, CryptoAssetProtocol, CryptoAssetProtocols, CryptoCurrency, Currency, DefaultNetworkConfigurations, DeploySmartContractActivity, EMILY_API_BASE_URL_DEVENV, EMILY_API_BASE_URL_MAINNET, EMILY_API_BASE_URL_TESTNET, EmailAddress, Entries, EvmTransactionFeeQuote, ExecuteSmartContractActivity, ExecutionConstraint, FastPoolPooledStackingPosition, FeeCalculationTypes, FeeTypes, Fees, FlatTransactionFeeQuote, FtTransfer, FungibleAssetId, FungibleCryptoAsset, FungibleCryptoAssetProtocol, FungibleCryptoAssetProtocols, GeneralActivity, GeneralActivityType, GeneralActivityTypes, GraniteV1BorrowPosition, GraniteV1CollateralAsset, GraniteV1EarnPosition, 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, HermeticaStaking, HermeticaUsdhStakingPosition, HistoricalPeriod, InscriptionAsset, InscriptionMimeType, LisaLiStxPosition, LisaLiquidStakingPosition, LisaLstHolding, LiteralUnion, LockAssetActivity, MarketData, MarketPriceHistory, MarketPriceSnapshot, Money, NativeCryptoAsset, NetworkConfiguration, NetworkModes, NonFungibleCryptoAsset, NonFungibleCryptoAssetProtocol, NonFungibleCryptoAssetProtocols, NumType, OnChainActivity, OnChainActivityStatus, OnChainActivityStatuses, OnChainActivityType, OnChainActivityTypes, OwnedUtxo, PooledStackingYieldProduct, Prettify, QuoteCurrency, ReceiveAssetActivity, ReplaceTypes, RuneAsset, STX20_API_BASE_URL_MAINNET, SbtcBridgeSwapQuote, SbtcBridgeTransferSwapExecutionData, SendAssetActivity, SignMessageActivity, Sip10Asset, Sip9Asset, Sip9AssetContent, Sip9Attribute, Sip9Collection, Sip9ContentType, Src20Asset, StackingDaoLstHolding, StackingDaoLstWithdrawal, StackingDaoPooledStackingPosition, StackingDaoReward, StackingDaoStStxBtcPosition, StackingDaoStStxPosition, StacksAddressInfo, StacksChainConfig, StacksContractCallSwapExecutionData, StacksFeeEstimate, StacksTransactionFeeQuote, StacksTx, StacksTxStatus, StampAsset, Stx20Asset, StxAsset, StxBalance, StxTransfer, SupportedBlockchains, SwapAsset, SwapAssetsActivity, SwapDex, SwapExecutionData, SwapExecutionType, SwapProvider, SwapProviderAsset, SwapProviderId, SwapQuote, SwappableFungibleCryptoAsset, TransactionErrorKey, TransactionFeeQuote, TransactionFeeQuoteType, TransactionFeeTier, TransactionFees, Utxo, UtxoId, ValueOf, VelarAmmLpPosition, VelarFarmPosition, VelarSdkSwapQuote, WalletActivity, WalletActivityType, WalletActivityTypes, WalletDefaultNetworkConfigurationIds, WalletId, XversePooledStackingPosition, YieldPosition, YieldProduct, YieldProductCategories, YieldProductCategory, YieldProductKey, YieldProductKeys, YieldProductToProviderMap, YieldProvider, YieldProviderKey, YieldProviderKeys, ZestBorrowAsset, ZestBorrowMarketPosition, accountAddressesSchema, accountDisplayPreferenceSchema, accountIdSchema, analyticsPreferenceSchema, bitcoinAddressInfoSchema, bitcoinNetworkModesSchema, bitcoinNetworkSchema, bitcoinNetworkToNetworkMode, bitcoinNetworks, bitcoinUnitSchema, bnsContractAddress, bnsContractName, btcTxTimeMap, createMarketData, createMarketPair, defaultCurrentNetwork, defaultNetworkConfigurationsSchema, defaultNetworksKeyedById, emailAddressSchema, enrichPositionWithMetadata, enrichPositionWithProduct, enrichPositionWithProvider, filterPositionsByCategory, filterPositionsByProduct, filterPositionsByProvider, formatMarketPair, getCategoryDisplayName, getCategoryForProduct, getPositionsInCategories, getProductsForProvider, getProductsInCategory, getProviderForProduct, groupPositionsByCategory, groupPositionsByProvider, hasPositionsInCategory, hasPositionsInProvider, historicalPeriods, inscriptionMimeTypes, isBitflowAmmLpPosition, isBitflowAmmStakingPosition, isBrc20Asset, isBtcAsset, isFungibleAsset, isGraniteBorrowPosition, isGraniteEarnPosition, isInscriptionAsset, isNativeAsset, isNonFungibleAsset, isProductInProvider, isRuneAsset, isSip10Asset, isSip9Asset, isSrc20Asset, isStackingDaoPooledPosition, isStackingDaoStStxBtcPosition, isStackingDaoStStxPosition, isStampAsset, isStx20Asset, isStxAsset, isSwappableAsset, isZestPosition, networkConfigurationSchema, networkModes, sip9ContentTypes, sortPositionsByApy, sortPositionsByBalance, sortPositionsByUpdateTime, stacksAddressInfoSchema, supportedBlockchains, swapExecutionTypes, swapProviderIds, testnetModes, transactionFeeQuoteType, transactionFeeTiers, walletIdSchema };
|
|
1277
1286
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/account.model.ts","../src/activity/activity-level.model.ts","../src/activity/activity-status.model.ts","../src/activity/activity-type.model.ts","../src/inscription-mime-type.model.ts","../src/types.utils.ts","../src/currencies.model.ts","../src/money.model.ts","../src/assets/sip9-asset.model.ts","../src/assets/asset.model.ts","../src/activity/activity.model.ts","../src/assets/asset-id.model.ts","../src/assets/asset-type-guards.ts","../src/balance.model.ts","../src/bitcoin.model.ts","../src/bns.model.ts","../src/fees/bitcoin-fees.model.ts","../src/types.ts","../src/fees/stacks-fees.model.ts","../src/fees/fees.model.ts","../src/fees/transaction-fees.model.ts","../src/market.model.ts","../src/network/network.schema.ts","../src/network/network.model.ts","../src/settings.model.ts","../src/swap/swap.model.ts","../src/transactions/bitcoin-transaction.model.ts","../src/transactions/stacks-transaction.model.ts","../src/transactions/transaction-error.model.ts","../src/utxo.model.ts","../src/yield/yield-provider.model.ts","../src/yield/yield-product.model.ts","../src/yield/yield-position.base.model.ts","../src/yield/providers/bitflow-position.model.ts","../src/yield/providers/granite-position.model.ts","../src/yield/providers/stacking-dao-position.model.ts","../src/yield/providers/zest-position.model.ts","../src/yield/providers/fast-pool-position.model.ts","../src/yield/providers/hermetica-position.model.ts","../src/yield/providers/lisa-position.model.ts","../src/yield/providers/velar-position.model.ts","../src/yield/providers/xverse-position.model.ts","../src/yield/yield-position.model.ts","../src/yield/helpers/yield.help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A,YACH,kBACV,OAAO,kBAAkB;A3CpIS,iB2CkJrB,wBAAA,C3ClJqB,SAAA,E2CmJxB,a3CnJwB,EAAA,EAAA,QAAA,E2CoJzB,Y3CpJyB,EAAA,CAAA,E2CqJlC,M3CrJkC,CAAA,MAAA,E2CqJnB,a3CrJmB,EAAA,CAAA;AAAA,iB2CuKrB,wBAAA,C3CvKqB,SAAA,E2CwKxB,a3CxKwB,EAAA,EAAA,QAAA,E2CyKzB,Y3CzKyB,EAAA,EAAA,UAAA,E2C0KvB,oB3C1KuB,EAAA,CAAA,E2C2KlC,a3C3KkC,EAAA;AAOxB,iB2C6KG,sBAAA,C3C3Kd,SAAA,E2C4KW,a3C5KX,EAAA,EAAA,QAAA,E2C6KU,gB3C7KV,CAAA,EAAA,OAAA;iB2CkLc,sBAAA,YACH,2BACD,0BACA;iBAMI,qCAAqC,yBACzC,aACA,gBACT;E3ChMiC,YAAA,E2CgMb,a3ChMa;CAAA;AAIvB,iB2CgMG,yB3C5Ld,CAAA,U2C4LkD,a3C5LlD,CAAA,CAAA,QAAA,E2C6LU,C3C7LV,EAAA,OAAA,E2C8LS,Y3C9LT,CAAA,E2C+LC,C3C/LD,GAAA;e2C+LoB;;iBAIN,qCAAqC,yBACzC,aACA,wBACD,eACR;gBAAoB;eAA4B;;iBAInC,sBAAA,WAAiC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/account.model.ts","../src/activity/activity-level.model.ts","../src/activity/activity-status.model.ts","../src/activity/activity-type.model.ts","../src/inscription-mime-type.model.ts","../src/types.utils.ts","../src/currencies.model.ts","../src/money.model.ts","../src/assets/sip9-asset.model.ts","../src/assets/asset.model.ts","../src/activity/activity.model.ts","../src/assets/asset-id.model.ts","../src/assets/asset-type-guards.ts","../src/balance.model.ts","../src/bitcoin.model.ts","../src/bns.model.ts","../src/fees/bitcoin-fees.model.ts","../src/types.ts","../src/fees/stacks-fees.model.ts","../src/fees/fees.model.ts","../src/fees/transaction-fees.model.ts","../src/market.model.ts","../src/network/network.schema.ts","../src/network/network.model.ts","../src/settings.model.ts","../src/swap/swap.model.ts","../src/transactions/bitcoin-transaction.model.ts","../src/transactions/stacks-transaction.model.ts","../src/transactions/transaction-error.model.ts","../src/utxo.model.ts","../src/yield/yield-provider.model.ts","../src/yield/yield-product.model.ts","../src/yield/yield-position.base.model.ts","../src/yield/providers/bitflow-position.model.ts","../src/yield/providers/granite-position.model.ts","../src/yield/providers/stacking-dao-position.model.ts","../src/yield/providers/zest-position.model.ts","../src/yield/providers/fast-pool-position.model.ts","../src/yield/providers/hermetica-position.model.ts","../src/yield/providers/lisa-position.model.ts","../src/yield/providers/velar-position.model.ts","../src/yield/providers/xverse-position.model.ts","../src/yield/yield-position.model.ts","../src/yield/helpers/yield.helpers.ts"],"sourcesContent":[],"mappings":";;;;;cAEa,gBAAc,CAAA,CAAA;;;cAId,iBAAe,CAAA,CAAA,gBAAA,CAAA,CAAA;EAJf,WAAA,aAEX;;;CAFyB,eAAA,CAAA,CAAA;AAAA,cAMd,wBANc,EAMU,CAAA,CAAA,SANV,CAAA;EAId,iBAAA,aAA4E;;;EAA7D,iCAAA,eAAA,YAAA,CAAA;;cASf,yBAAuB,CAAA,CAAA;;CATR,eAAA,CAAA;AAAA,cAaf,sBAbe,EAaO,CAAA,CAAA,SAbP,CAAA;EAEf,EAAA,mBAAA,YAKX,CAAA;;;;;;;;IALmC,4BAAA,eAAA,YAAA,CAAA;IAAA,iCAAA,eAAA,YAAA,CAAA;EAOxB,CAAA,eAAA,CAAA,CAAA;;;EAAuB,CAAA,eAAA,CAAA,CAAA;CAAA,eAAA,CAAA;AAIvB,KAMD,QAAA,GAAW,CAAA,CAAE,KAFvB,CAAA,OAEoC,cAFpC,CAAA;KAGU,SAAA,GAAY,CAAA,CAAE,aAAa;KAC3B,kBAAA,GAAqB,CAAA,CAAE,aAAa;KACpC,iBAAA,GAAoB,CAAA,CAAE,aAAa;KACnC,gBAAA,GAAmB,CAAA,CAAE,aAAa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6KU,gB3C7KV,CAAA,EAAA,OAAA;iB2CkLc,sBAAA,YACH,2BACD,0BACA;iBAMI,qCAAqC,yBACzC,aACA,gBACT;E3ChMiC,YAAA,E2CgMb,a3ChMa;CAAA;AAIvB,iB2CgMG,yB3C5Ld,CAAA,U2C4LkD,a3C5LlD,CAAA,CAAA,QAAA,E2C6LU,C3C7LV,EAAA,OAAA,E2C8LS,Y3C9LT,CAAA,E2C+LC,C3C/LD,GAAA;e2C+LoB;;iBAIN,qCAAqC,yBACzC,aACA,wBACD,eACR;gBAAoB;eAA4B;;iBAInC,sBAAA,WAAiC"}
|
package/dist/index.js
CHANGED
|
@@ -287,6 +287,9 @@ const BESTINSLOT_API_BASE_URL_MAINNET = "https://leatherapi.bestinslot.xyz/v3";
|
|
|
287
287
|
const BESTINSLOT_API_BASE_URL_TESTNET = "https://leatherapi_testnet.bestinslot.xyz/v3";
|
|
288
288
|
const STX20_API_BASE_URL_MAINNET = "https://api.stx20.com/api/v1";
|
|
289
289
|
const BNS_V2_API_BASE_URL = "https://api.bnsv2.com";
|
|
290
|
+
const EMILY_API_BASE_URL_MAINNET = "https://sbtc-emily.com";
|
|
291
|
+
const EMILY_API_BASE_URL_TESTNET = "https://beta.sbtc-emily.com";
|
|
292
|
+
const EMILY_API_BASE_URL_DEVENV = "http://localhost:3031";
|
|
290
293
|
let ChainId = /* @__PURE__ */ function(ChainId$1) {
|
|
291
294
|
ChainId$1[ChainId$1["Testnet"] = 2147483648] = "Testnet";
|
|
292
295
|
ChainId$1[ChainId$1["Mainnet"] = 1] = "Mainnet";
|
|
@@ -708,5 +711,5 @@ function getCategoryDisplayName(category) {
|
|
|
708
711
|
}
|
|
709
712
|
|
|
710
713
|
//#endregion
|
|
711
|
-
export { ActivityLevels, BESTINSLOT_API_BASE_URL_MAINNET, BESTINSLOT_API_BASE_URL_TESTNET, BITCOIN_API_BASE_URL_MAINNET, BITCOIN_API_BASE_URL_SIGNET, BITCOIN_API_BASE_URL_TESTNET3, BITCOIN_API_BASE_URL_TESTNET4, BNS_V2_API_BASE_URL, BtcFeeType, ChainId, CryptoAssetCategories, CryptoAssetChains, CryptoAssetProtocols, FeeCalculationTypes, FeeTypes, FungibleCryptoAssetProtocols, GeneralActivityTypes, 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, NonFungibleCryptoAssetProtocols, OnChainActivityStatuses, OnChainActivityTypes, STX20_API_BASE_URL_MAINNET, WalletActivityTypes, WalletDefaultNetworkConfigurationIds, YieldProductCategories, YieldProductKeys, YieldProductToProviderMap, YieldProviderKeys, accountAddressesSchema, accountDisplayPreferenceSchema, accountIdSchema, analyticsPreferenceSchema, bitcoinAddressInfoSchema, bitcoinNetworkModesSchema, bitcoinNetworkSchema, bitcoinNetworkToNetworkMode, bitcoinNetworks, bitcoinUnitSchema, bnsContractAddress, bnsContractName, btcTxTimeMap, createMarketData, createMarketPair, defaultCurrentNetwork, defaultNetworkConfigurationsSchema, defaultNetworksKeyedById, emailAddressSchema, enrichPositionWithMetadata, enrichPositionWithProduct, enrichPositionWithProvider, filterPositionsByCategory, filterPositionsByProduct, filterPositionsByProvider, formatMarketPair, getCategoryDisplayName, getCategoryForProduct, getPositionsInCategories, getProductsForProvider, getProductsInCategory, getProviderForProduct, groupPositionsByCategory, groupPositionsByProvider, hasPositionsInCategory, hasPositionsInProvider, historicalPeriods, inscriptionMimeTypes, isBitflowAmmLpPosition, isBitflowAmmStakingPosition, isBrc20Asset, isBtcAsset, isFungibleAsset, isGraniteBorrowPosition, isGraniteEarnPosition, isInscriptionAsset, isNativeAsset, isNonFungibleAsset, isProductInProvider, isRuneAsset, isSip10Asset, isSip9Asset, isSrc20Asset, isStackingDaoPooledPosition, isStackingDaoStStxBtcPosition, isStackingDaoStStxPosition, isStampAsset, isStx20Asset, isStxAsset, isSwappableAsset, isZestPosition, networkConfigurationSchema, networkModes, sip9ContentTypes, sortPositionsByApy, sortPositionsByBalance, sortPositionsByUpdateTime, stacksAddressInfoSchema, supportedBlockchains, swapExecutionTypes, swapProviderIds, testnetModes, transactionFeeQuoteType, transactionFeeTiers, walletIdSchema };
|
|
714
|
+
export { ActivityLevels, BESTINSLOT_API_BASE_URL_MAINNET, BESTINSLOT_API_BASE_URL_TESTNET, BITCOIN_API_BASE_URL_MAINNET, BITCOIN_API_BASE_URL_SIGNET, BITCOIN_API_BASE_URL_TESTNET3, BITCOIN_API_BASE_URL_TESTNET4, BNS_V2_API_BASE_URL, BtcFeeType, ChainId, CryptoAssetCategories, CryptoAssetChains, CryptoAssetProtocols, EMILY_API_BASE_URL_DEVENV, EMILY_API_BASE_URL_MAINNET, EMILY_API_BASE_URL_TESTNET, FeeCalculationTypes, FeeTypes, FungibleCryptoAssetProtocols, GeneralActivityTypes, 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, NonFungibleCryptoAssetProtocols, OnChainActivityStatuses, OnChainActivityTypes, STX20_API_BASE_URL_MAINNET, WalletActivityTypes, WalletDefaultNetworkConfigurationIds, YieldProductCategories, YieldProductKeys, YieldProductToProviderMap, YieldProviderKeys, accountAddressesSchema, accountDisplayPreferenceSchema, accountIdSchema, analyticsPreferenceSchema, bitcoinAddressInfoSchema, bitcoinNetworkModesSchema, bitcoinNetworkSchema, bitcoinNetworkToNetworkMode, bitcoinNetworks, bitcoinUnitSchema, bnsContractAddress, bnsContractName, btcTxTimeMap, createMarketData, createMarketPair, defaultCurrentNetwork, defaultNetworkConfigurationsSchema, defaultNetworksKeyedById, emailAddressSchema, enrichPositionWithMetadata, enrichPositionWithProduct, enrichPositionWithProvider, filterPositionsByCategory, filterPositionsByProduct, filterPositionsByProvider, formatMarketPair, getCategoryDisplayName, getCategoryForProduct, getPositionsInCategories, getProductsForProvider, getProductsInCategory, getProviderForProduct, groupPositionsByCategory, groupPositionsByProvider, hasPositionsInCategory, hasPositionsInProvider, historicalPeriods, inscriptionMimeTypes, isBitflowAmmLpPosition, isBitflowAmmStakingPosition, isBrc20Asset, isBtcAsset, isFungibleAsset, isGraniteBorrowPosition, isGraniteEarnPosition, isInscriptionAsset, isNativeAsset, isNonFungibleAsset, isProductInProvider, isRuneAsset, isSip10Asset, isSip9Asset, isSrc20Asset, isStackingDaoPooledPosition, isStackingDaoStStxBtcPosition, isStackingDaoStStxPosition, isStampAsset, isStx20Asset, isStxAsset, isSwappableAsset, isZestPosition, networkConfigurationSchema, networkModes, sip9ContentTypes, sortPositionsByApy, sortPositionsByBalance, sortPositionsByUpdateTime, stacksAddressInfoSchema, supportedBlockchains, swapExecutionTypes, swapProviderIds, testnetModes, transactionFeeQuoteType, transactionFeeTiers, walletIdSchema };
|
|
712
715
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["btcTxTimeMap: Record<keyof AverageBitcoinFeeRates, string>","networkMainnet: NetworkConfiguration","networkTestnet: NetworkConfiguration","networkTestnet4: NetworkConfiguration","networkSignet: NetworkConfiguration","networkSbtcTestnet: NetworkConfiguration","networkSbtcDevenv: NetworkConfiguration","networkDevnet: NetworkConfiguration","defaultCurrentNetwork: NetworkConfiguration","defaultNetworksKeyedById: Record<\n WalletDefaultNetworkConfigurationIds,\n NetworkConfiguration\n>","grouped: Partial<Record<YieldProviderKey, YieldPosition[]>>","grouped: Record<string, YieldPosition[]>"],"sources":["../src/account.model.ts","../src/activity/activity-level.model.ts","../src/activity/activity-status.model.ts","../src/activity/activity-type.model.ts","../src/assets/asset-type-guards.ts","../src/assets/asset.model.ts","../src/assets/sip9-asset.model.ts","../src/bitcoin.model.ts","../src/bns.model.ts","../src/fees/bitcoin-fees.model.ts","../src/fees/fees.model.ts","../src/fees/transaction-fees.model.ts","../src/inscription-mime-type.model.ts","../src/market.model.ts","../src/network/network.model.ts","../src/network/network.schema.ts","../src/settings.model.ts","../src/swap/swap.model.ts","../src/yield/yield-provider.model.ts","../src/yield/yield-product.model.ts","../src/yield/helpers/yield.helpers.ts"],"sourcesContent":["import { z } from 'zod';\n\nexport const walletIdSchema = z.object({\n fingerprint: z.string(),\n});\n\nexport const accountIdSchema = walletIdSchema.and(z.object({ accountIndex: z.number() }));\n\nexport const bitcoinAddressInfoSchema = z.object({\n taprootDescriptor: z.string(),\n nativeSegwitDescriptor: z.string(),\n zeroIndexTaprootPayerAddress: z.string().optional(),\n zeroIndexNativeSegwitPayerAddress: z.string().optional(),\n});\n\nexport const stacksAddressInfoSchema = z.object({\n stxAddress: z.string(),\n});\n\nexport const accountAddressesSchema = z.object({\n id: accountIdSchema,\n bitcoin: bitcoinAddressInfoSchema.optional(),\n stacks: stacksAddressInfoSchema.optional(),\n});\n\nexport type WalletId = z.infer<typeof walletIdSchema>;\nexport type AccountId = z.infer<typeof accountIdSchema>;\nexport type BitcoinAddressInfo = z.infer<typeof bitcoinAddressInfoSchema>;\nexport type StacksAddressInfo = z.infer<typeof stacksAddressInfoSchema>;\nexport type AccountAddresses = z.infer<typeof accountAddressesSchema>;\n","export const ActivityLevels = {\n account: 'account',\n app: 'app',\n} as const;\nexport type ActivityLevel = keyof typeof ActivityLevels;\n","export const OnChainActivityStatuses = {\n pending: 'pending',\n success: 'success',\n failed: 'failed',\n} as const;\nexport type OnChainActivityStatus = keyof typeof OnChainActivityStatuses;\n","export const OnChainActivityTypes = {\n deploySmartContract: 'deploySmartContract',\n executeSmartContract: 'executeSmartContract',\n lockAsset: 'lockAsset',\n sendAsset: 'sendAsset',\n receiveAsset: 'receiveAsset',\n swapAssets: 'swapAssets',\n} as const;\nexport type OnChainActivityType = keyof typeof OnChainActivityTypes;\n\nexport const WalletActivityTypes = {\n connectApp: 'connectApp',\n signMessage: 'signMessage',\n} as const;\nexport type WalletActivityType = keyof typeof WalletActivityTypes;\n\nexport const GeneralActivityTypes = {\n walletAdded: 'walletAdded',\n receiveAnnouncement: 'receiveAnnouncement',\n featureWaitlistNotification: 'featureWaitlistNotification',\n} as const;\nexport type GeneralActivityType = keyof typeof GeneralActivityTypes;\n\nexport type ActivityType = OnChainActivityType | WalletActivityType | GeneralActivityType;\n","import {\n Brc20Asset,\n BtcAsset,\n CryptoAsset,\n FungibleCryptoAsset,\n InscriptionAsset,\n NativeCryptoAsset,\n NonFungibleCryptoAsset,\n RuneAsset,\n Sip10Asset,\n Src20Asset,\n StampAsset,\n Stx20Asset,\n StxAsset,\n} from './asset.model';\nimport { Sip9Asset } from './sip9-asset.model';\n\nexport function isFungibleAsset(asset: CryptoAsset): asset is FungibleCryptoAsset {\n return asset.category === 'fungible';\n}\n\nexport function isNonFungibleAsset(asset: CryptoAsset): asset is NonFungibleCryptoAsset {\n return asset.category === 'nft';\n}\n\nexport function isBtcAsset(asset: CryptoAsset): asset is BtcAsset {\n return asset.protocol === 'nativeBtc';\n}\n\nexport function isStxAsset(asset: CryptoAsset): asset is StxAsset {\n return asset.protocol === 'nativeStx';\n}\n\nexport function isNativeAsset(asset: CryptoAsset): asset is NativeCryptoAsset {\n return isBtcAsset(asset) || isStxAsset(asset);\n}\n\nexport function isSip10Asset(asset: CryptoAsset): asset is Sip10Asset {\n return asset.protocol === 'sip10';\n}\n\nexport function isSwappableAsset(asset: CryptoAsset): asset is NativeCryptoAsset | Sip10Asset {\n return isNativeAsset(asset) || isSip10Asset(asset);\n}\n\nexport function isBrc20Asset(asset: CryptoAsset): asset is Brc20Asset {\n return asset.protocol === 'brc20';\n}\n\nexport function isSrc20Asset(asset: CryptoAsset): asset is Src20Asset {\n return asset.protocol === 'src20';\n}\n\nexport function isStx20Asset(asset: CryptoAsset): asset is Stx20Asset {\n return asset.protocol === 'stx20';\n}\n\nexport function isRuneAsset(asset: CryptoAsset): asset is RuneAsset {\n return asset.protocol === 'rune';\n}\n\nexport function isInscriptionAsset(asset: CryptoAsset): asset is InscriptionAsset {\n return asset.protocol === 'inscription';\n}\n\nexport function isStampAsset(asset: CryptoAsset): asset is StampAsset {\n return asset.protocol === 'stamp';\n}\n\nexport function isSip9Asset(asset: CryptoAsset): asset is Sip9Asset {\n return asset.protocol === 'sip9';\n}\n","import { InscriptionMimeType } from '../inscription-mime-type.model';\nimport { Sip9Asset } from './sip9-asset.model';\n\nexport const CryptoAssetChains = {\n bitcoin: 'bitcoin',\n stacks: 'stacks',\n} as const;\nexport const CryptoAssetCategories = {\n fungible: 'fungible',\n nft: 'nft',\n} as const;\nexport const FungibleCryptoAssetProtocols = {\n nativeBtc: 'nativeBtc',\n nativeStx: 'nativeStx',\n sip10: 'sip10',\n brc20: 'brc20',\n src20: 'src20',\n stx20: 'stx20',\n rune: 'rune',\n} as const;\nexport const NonFungibleCryptoAssetProtocols = {\n stamp: 'stamp',\n sip9: 'sip9',\n inscription: 'inscription',\n} as const;\nexport const CryptoAssetProtocols = {\n ...FungibleCryptoAssetProtocols,\n ...NonFungibleCryptoAssetProtocols,\n} as const;\n\nexport type CryptoAssetChain = keyof typeof CryptoAssetChains;\nexport type CryptoAssetCategory = keyof typeof CryptoAssetCategories;\nexport type FungibleCryptoAssetProtocol = keyof typeof FungibleCryptoAssetProtocols;\nexport type NonFungibleCryptoAssetProtocol = keyof typeof NonFungibleCryptoAssetProtocols;\nexport type CryptoAssetProtocol = FungibleCryptoAssetProtocol | NonFungibleCryptoAssetProtocol;\n\nexport interface BaseCryptoAsset {\n readonly chain: CryptoAssetChain;\n readonly category: CryptoAssetCategory;\n readonly protocol: CryptoAssetProtocol;\n}\n\n// Fungible asset types\ninterface BaseFungibleCryptoAsset extends BaseCryptoAsset {\n readonly category: 'fungible';\n readonly protocol: FungibleCryptoAssetProtocol;\n readonly symbol: string;\n readonly decimals: number;\n readonly hasMemo: boolean;\n}\nexport interface BtcAsset extends BaseFungibleCryptoAsset {\n readonly chain: 'bitcoin';\n readonly protocol: 'nativeBtc';\n readonly name: 'Bitcoin';\n readonly symbol: 'BTC';\n}\nexport interface StxAsset extends BaseFungibleCryptoAsset {\n readonly chain: 'stacks';\n readonly protocol: 'nativeStx';\n readonly name: 'Stacks';\n readonly symbol: 'STX';\n}\nexport interface Brc20Asset extends BaseFungibleCryptoAsset {\n readonly chain: 'bitcoin';\n readonly protocol: 'brc20';\n readonly symbol: string;\n}\nexport interface Src20Asset extends BaseFungibleCryptoAsset {\n readonly chain: 'bitcoin';\n readonly protocol: 'src20';\n readonly id: string;\n readonly symbol: string;\n readonly deploy_tx: string;\n readonly deploy_img: string;\n}\nexport interface RuneAsset extends BaseFungibleCryptoAsset {\n readonly chain: 'bitcoin';\n readonly protocol: 'rune';\n readonly spacedRuneName: string;\n readonly runeName: string;\n readonly symbol: string;\n}\nexport interface Sip10Asset extends BaseFungibleCryptoAsset {\n readonly chain: 'stacks';\n readonly protocol: 'sip10';\n readonly name: string;\n readonly canTransfer: boolean;\n readonly assetId: string;\n readonly contractId: string;\n readonly imageCanonicalUri: string;\n readonly symbol: string;\n}\nexport interface Stx20Asset extends BaseFungibleCryptoAsset {\n readonly chain: 'stacks';\n readonly protocol: 'stx20';\n readonly symbol: string;\n}\nexport type NativeCryptoAsset = BtcAsset | StxAsset;\nexport type FungibleCryptoAsset =\n | NativeCryptoAsset\n | Sip10Asset\n | Brc20Asset\n | Src20Asset\n | Stx20Asset\n | RuneAsset;\n\n// NFT asset types\nexport interface BaseNonFungibleCryptoAsset extends BaseCryptoAsset {\n readonly category: 'nft';\n readonly protocol: NonFungibleCryptoAssetProtocol;\n}\nexport interface InscriptionAsset extends BaseNonFungibleCryptoAsset {\n readonly chain: 'bitcoin';\n readonly protocol: 'inscription';\n readonly id: string;\n readonly mimeType: InscriptionMimeType;\n readonly number: number;\n readonly address: string;\n readonly title: string;\n readonly txid: string;\n readonly output: string;\n readonly offset: string;\n readonly preview: string;\n readonly src: string;\n readonly thumbnailSrc?: string;\n readonly value: string;\n readonly genesisBlockHash: string;\n readonly genesisTimestamp: number;\n readonly genesisBlockHeight: number;\n}\nexport interface StampAsset extends BaseNonFungibleCryptoAsset {\n readonly chain: 'bitcoin';\n readonly protocol: 'stamp';\n readonly stamp: number;\n readonly stampUrl: string;\n readonly stampExplorerUrl: string;\n readonly blockHeight: number;\n}\n\nexport type NonFungibleCryptoAsset = InscriptionAsset | StampAsset | Sip9Asset;\n\nexport type CryptoAsset = FungibleCryptoAsset | NonFungibleCryptoAsset;\n\nexport interface FungibleAssetId {\n protocol: FungibleCryptoAssetProtocol;\n id: string;\n}\n","import { Money } from '../money.model';\nimport { BaseNonFungibleCryptoAsset } from './asset.model';\n\nexport const sip9ContentTypes = [\n 'image/jpeg',\n 'image/jpg',\n 'image/png',\n 'image/gif',\n 'image/webp',\n 'image/svg+xml',\n 'image/bmp',\n 'image/tiff',\n 'image/avif',\n 'video/mp4',\n 'video/webm',\n 'video/mov',\n 'video/quicktime',\n 'video/avi',\n 'video/x-msvideo',\n 'video/ogg',\n 'audio/mpeg',\n 'audio/mp3',\n 'audio/wav',\n 'audio/x-wav',\n 'audio/ogg',\n 'audio/aac',\n 'audio/flac',\n 'audio/webm',\n 'model/gltf+json',\n 'model/gltf-binary',\n 'application/octet-stream',\n 'text/plain',\n 'text/html',\n 'text/markdown',\n 'application/pdf',\n 'application/json',\n 'text/javascript',\n 'application/javascript',\n 'application/zip',\n 'unknown',\n '',\n] as const;\n\nexport type Sip9ContentType = (typeof sip9ContentTypes)[number];\n\nexport interface Sip9Collection {\n name: string;\n collectionExplorerUrl: string;\n totalItems?: number;\n floorPrice?: Money;\n latestSale?: Money;\n}\n\nexport interface Sip9AssetContent {\n contentUrl: string;\n contentType: Sip9ContentType;\n}\n\nexport interface Sip9Attribute {\n traitType: string;\n value: any;\n rarityPercent?: number;\n}\n\nexport interface Sip9Asset extends BaseNonFungibleCryptoAsset {\n readonly chain: 'stacks';\n readonly protocol: 'sip9';\n readonly assetId: string;\n readonly contractId: string;\n readonly tokenId: number;\n readonly name: string;\n readonly description: string;\n readonly content: Sip9AssetContent;\n readonly attributes?: Sip9Attribute[];\n readonly collection?: Sip9Collection;\n readonly creator?: string;\n readonly rarityRank?: number;\n}\n","import { z } from 'zod';\n\n// Branded type for Bitcoin addresses\nexport type BitcoinAddress = string & { readonly __brand: unique symbol };\n\nexport const bitcoinUnitSchema = z.enum(['bitcoin', 'satoshi']);\nexport type BitcoinUnit = z.infer<typeof bitcoinUnitSchema>;\n\nexport type BitcoinUnitSymbol = 'BTC' | 'sat';\n\nexport interface BitcoinUnitInfo {\n name: BitcoinUnit;\n symbol: BitcoinUnitSymbol;\n decimal: string;\n}\n","export const bnsContractAddress = {\n mainnet: 'SP2QEZ06AGJ3RKJPBV14SY1V5BBFNAW33D96YPGZF',\n testnet: 'ST2QEZ06AGJ3RKJPBV14SY1V5BBFNAW33D9SZJQ0M',\n};\n\nexport const bnsContractName = 'BNS-V2';\n\nexport interface BnsName {\n owner: string;\n name: string;\n namespace: string;\n fullName: string;\n renewalHeight: number;\n registeredAtBlockNumber: number;\n}\n\nexport interface BnsProfile {\n bnsName: BnsName;\n profileData: BnsProfileData;\n}\n\nexport interface BnsProfileData {\n name?: string;\n bio?: string;\n website?: string;\n pfpUrl?: string;\n location?: string;\n addresses?: BnsProfileDataAddresses;\n}\n\nexport interface BnsProfileDataAddresses {\n bitcoinPayment?: string;\n bitcoinOrdinal?: string;\n solana?: string;\n ethereum?: string;\n}\n","import type BigNumber from 'bignumber.js';\n\nexport interface AverageBitcoinFeeRates {\n fastestFee: BigNumber;\n halfHourFee: BigNumber;\n hourFee: BigNumber;\n}\n\nexport const btcTxTimeMap: Record<keyof AverageBitcoinFeeRates, string> = {\n fastestFee: '~10 – 20min',\n halfHourFee: '~30 min',\n hourFee: '~1 hour+',\n};\n\nexport enum BtcFeeType {\n High = 'High',\n Standard = 'Standard',\n Low = 'Low',\n}\n","import { Blockchain } from '../types';\nimport { StacksFeeEstimate } from './stacks-fees.model';\n\nexport enum FeeTypes {\n Low,\n Middle,\n High,\n Custom,\n Unknown,\n}\n\nexport enum FeeCalculationTypes {\n Api = 'api',\n Default = 'default',\n DefaultSimulated = 'default-simulated',\n FeesCapped = 'fees-capped',\n TokenTransferSpecific = 'token-transfer-specific',\n}\n\nexport interface Fees {\n blockchain: Blockchain;\n estimates: StacksFeeEstimate[];\n calculation: FeeCalculationTypes;\n}\n","import { Money } from '../money.model';\nimport { Blockchain } from '../types';\n\nexport const transactionFeeTiers = ['low', 'standard', 'high'] as const;\nexport type TransactionFeeTier = (typeof transactionFeeTiers)[number];\n\nexport interface TransactionFees {\n readonly chain: Blockchain;\n readonly options: Record<TransactionFeeTier, TransactionFeeQuote>;\n}\n\nexport const transactionFeeQuoteType = [\n 'flat',\n 'bitcoinFeeRate',\n 'stacksFeeRate',\n 'evm1559',\n] as const;\nexport type TransactionFeeQuoteType = (typeof transactionFeeQuoteType)[number];\n\nexport interface BaseTransactionFeeQuote {\n readonly type: TransactionFeeQuoteType;\n readonly value: Money;\n}\n\nexport interface FlatTransactionFeeQuote extends BaseTransactionFeeQuote {\n readonly type: 'flat';\n}\n\nexport interface BitcoinTransactionFeeQuote extends BaseTransactionFeeQuote {\n readonly type: 'bitcoinFeeRate';\n readonly rate: number;\n readonly rateUnit: 'sats/vB';\n readonly estimatedTxSize: number;\n readonly sizeUnit: 'vB';\n}\n\nexport interface StacksTransactionFeeQuote extends BaseTransactionFeeQuote {\n readonly type: 'stacksFeeRate';\n readonly rate: number;\n readonly rateUnit: 'µSTX/byte';\n readonly estimatedTxSize: number;\n readonly sizeUnit: 'byte';\n}\n\nexport interface EvmTransactionFeeQuote extends BaseTransactionFeeQuote {\n readonly type: 'evm1559';\n readonly baseFeePerGas: Money;\n readonly priorityFeePerGas: Money;\n readonly gasLimit: number;\n}\n\nexport type TransactionFeeQuote =\n | FlatTransactionFeeQuote\n | BitcoinTransactionFeeQuote\n | StacksTransactionFeeQuote\n | EvmTransactionFeeQuote;\n","/**\n * Inscriptions contain arbitrary data. When retrieving an inscription, it should be\n * classified into one of the types below, indicating that the app can handle it\n * appropriately and securely. Inscriptions of types not ready to be handled by the\n * app should be classified as \"other\".\n */\nexport const inscriptionMimeTypes = [\n 'audio',\n 'gltf',\n 'html',\n 'image',\n 'svg',\n 'text',\n 'video',\n 'other',\n] as const;\n\nexport type InscriptionMimeType = (typeof inscriptionMimeTypes)[number];\n","import type { Currency, QuoteCurrency } from './currencies.model';\nimport type { Money } from './money.model';\n\ninterface MarketPair {\n readonly base: Currency;\n readonly quote: QuoteCurrency;\n}\n\nexport function createMarketPair(base: Currency, quote: QuoteCurrency): MarketPair {\n return Object.freeze({ base, quote });\n}\n\nexport function formatMarketPair({ base, quote }: MarketPair) {\n return `${base}/${quote}`;\n}\n\nexport interface MarketData {\n readonly pair: MarketPair;\n readonly price: Money;\n}\n\nexport function createMarketData(pair: MarketPair, price: Money): MarketData {\n if (pair.quote !== price.symbol)\n throw new Error('Cannot create market data when price does not match quote');\n return Object.freeze({ pair, price });\n}\n\nexport const historicalPeriods = ['1d', '1w', '1m', '3m', '6m', '1y'] as const;\nexport type HistoricalPeriod = (typeof historicalPeriods)[number];\n\nexport interface MarketPriceSnapshot {\n price: Money;\n timestamp: number;\n}\n\nexport interface MarketPriceHistory {\n period: HistoricalPeriod;\n changePercentage: number;\n prices: MarketPriceSnapshot[];\n}\n","import { z } from 'zod';\n\nimport { Blockchain } from '../types';\nimport { networkConfigurationSchema } from './network.schema';\n\nexport const HIRO_API_BASE_URL_MAINNET = 'https://api.hiro.so';\nexport const HIRO_API_BASE_URL_TESTNET = 'https://api.testnet.hiro.so';\nexport const HIRO_API_BASE_URL_NAKAMOTO_TESTNET = 'https://api.nakamoto.testnet.hiro.so';\n\nexport const HIRO_API_BASE_URL_MAINNET_EXTENDED = 'https://api.hiro.so/extended/v1';\nexport const HIRO_API_BASE_URL_TESTNET_EXTENDED = 'https://api.testnet.hiro.so/extended';\n\nexport const BITCOIN_API_BASE_URL_MAINNET = 'https://leather.mempool.space/api';\nexport const BITCOIN_API_BASE_URL_TESTNET3 = 'https://leather.mempool.space/testnet/api';\nexport const BITCOIN_API_BASE_URL_TESTNET4 = 'https://leather.mempool.space/testnet4/api';\nexport const BITCOIN_API_BASE_URL_SIGNET = 'https://mempool.space/signet/api';\n\nexport const BESTINSLOT_API_BASE_URL_MAINNET = 'https://leatherapi.bestinslot.xyz/v3';\nexport const BESTINSLOT_API_BASE_URL_TESTNET = 'https://leatherapi_testnet.bestinslot.xyz/v3';\n\nexport const STX20_API_BASE_URL_MAINNET = 'https://api.stx20.com/api/v1';\n\nexport const BNS_V2_API_BASE_URL = 'https://api.bnsv2.com';\n\n// Copied from @stacks/transactions to avoid dependencies\nexport enum ChainId {\n Testnet = 2147483648,\n Mainnet = 1,\n}\n\nexport enum WalletDefaultNetworkConfigurationIds {\n mainnet = 'mainnet',\n testnet = 'testnet',\n testnet4 = 'testnet4',\n signet = 'signet',\n sbtcTestnet = 'sbtcTestnet',\n sbtcDevenv = 'sbtcDevenv',\n devnet = 'devnet',\n}\n\nexport const defaultNetworkConfigurationsSchema = z.enum([\n 'mainnet',\n 'testnet',\n 'testnet4',\n 'signet',\n 'sbtcTestnet',\n 'sbtcDevenv',\n 'devnet',\n]);\nexport type DefaultNetworkConfigurations = z.infer<typeof defaultNetworkConfigurationsSchema>;\n\nexport const supportedBlockchains = ['stacks', 'bitcoin'] as const;\n\nexport type SupportedBlockchains = (typeof supportedBlockchains)[number];\n\nexport const networkModes = ['mainnet', 'testnet'] as const;\nexport const testnetModes = ['testnet', 'regtest', 'signet'] as const;\n\nexport const bitcoinNetworks = ['mainnet', 'testnet3', 'testnet4', 'regtest', 'signet'] as const;\nexport type BitcoinNetwork = (typeof bitcoinNetworks)[number];\n\nexport type NetworkModes = (typeof networkModes)[number];\ntype BitcoinTestnetModes = (typeof testnetModes)[number];\n\nexport function bitcoinNetworkToNetworkMode(network: BitcoinNetwork): BitcoinNetworkModes {\n switch (network) {\n case 'mainnet':\n return 'mainnet';\n case 'testnet3':\n return 'testnet';\n case 'testnet4':\n return 'testnet';\n case 'regtest':\n return 'regtest';\n case 'signet':\n return 'signet';\n default:\n // TODO: Needs exhaustive check. Cannot import 'assertUnreachable' since 'utils' package depends on 'models'.\n // Ideally this function should live in utils, but it's currently widely used in the extension.\n throw new Error(`Unhandled case: ${network}`);\n }\n}\n\nexport type BitcoinNetworkModes = NetworkModes | BitcoinTestnetModes;\n\ninterface BaseChainConfig {\n blockchain: Blockchain;\n}\n\nexport interface BitcoinChainConfig extends BaseChainConfig {\n blockchain: 'bitcoin';\n bitcoinUrl: string;\n bitcoinNetwork: BitcoinNetwork;\n mode: BitcoinNetworkModes;\n}\n\nexport interface StacksChainConfig extends BaseChainConfig {\n blockchain: 'stacks';\n url: string;\n /** The chainId of the network (or parent network if this is a subnet) */\n chainId: ChainId;\n /** An additional chainId for subnets. Indicated a subnet if defined and is mainly used for signing. */\n subnetChainId?: ChainId;\n}\n\nexport type NetworkConfiguration = z.infer<typeof networkConfigurationSchema>;\n\nconst networkMainnet: NetworkConfiguration = {\n id: WalletDefaultNetworkConfigurationIds.mainnet,\n name: 'Mainnet',\n chain: {\n stacks: {\n blockchain: 'stacks',\n chainId: ChainId.Mainnet,\n url: HIRO_API_BASE_URL_MAINNET,\n },\n bitcoin: {\n blockchain: 'bitcoin',\n bitcoinNetwork: 'mainnet',\n mode: 'mainnet',\n bitcoinUrl: BITCOIN_API_BASE_URL_MAINNET,\n },\n },\n};\n\nconst networkTestnet: NetworkConfiguration = {\n id: WalletDefaultNetworkConfigurationIds.testnet,\n name: 'Testnet3',\n chain: {\n stacks: {\n blockchain: 'stacks',\n chainId: ChainId.Testnet,\n url: HIRO_API_BASE_URL_TESTNET,\n },\n bitcoin: {\n blockchain: 'bitcoin',\n bitcoinNetwork: 'testnet3',\n mode: 'testnet',\n bitcoinUrl: BITCOIN_API_BASE_URL_TESTNET3,\n },\n },\n};\n\nconst networkTestnet4: NetworkConfiguration = {\n id: WalletDefaultNetworkConfigurationIds.testnet4,\n name: 'Testnet4',\n chain: {\n stacks: {\n blockchain: 'stacks',\n chainId: ChainId.Testnet,\n url: HIRO_API_BASE_URL_TESTNET,\n },\n bitcoin: {\n blockchain: 'bitcoin',\n bitcoinNetwork: 'testnet4',\n mode: 'testnet',\n bitcoinUrl: BITCOIN_API_BASE_URL_TESTNET4,\n },\n },\n};\n\nconst networkSignet: NetworkConfiguration = {\n id: WalletDefaultNetworkConfigurationIds.signet,\n name: 'Signet',\n chain: {\n stacks: {\n blockchain: 'stacks',\n chainId: ChainId.Testnet,\n url: HIRO_API_BASE_URL_TESTNET,\n },\n bitcoin: {\n blockchain: 'bitcoin',\n bitcoinNetwork: 'signet',\n mode: 'signet',\n bitcoinUrl: BITCOIN_API_BASE_URL_SIGNET,\n },\n },\n};\n\nconst networkSbtcTestnet: NetworkConfiguration = {\n id: WalletDefaultNetworkConfigurationIds.sbtcTestnet,\n name: 'sBTC Testnet',\n chain: {\n stacks: {\n blockchain: 'stacks',\n chainId: ChainId.Testnet,\n url: HIRO_API_BASE_URL_TESTNET,\n },\n bitcoin: {\n blockchain: 'bitcoin',\n bitcoinNetwork: 'regtest',\n mode: 'regtest',\n bitcoinUrl: 'https://beta.sbtc-mempool.tech/api/proxy',\n },\n },\n};\n\nconst networkSbtcDevenv: NetworkConfiguration = {\n id: WalletDefaultNetworkConfigurationIds.sbtcDevenv,\n name: 'sBTC Devenv',\n chain: {\n stacks: {\n blockchain: 'stacks',\n chainId: ChainId.Testnet,\n url: 'http://localhost:3999',\n },\n bitcoin: {\n blockchain: 'bitcoin',\n bitcoinNetwork: 'regtest',\n mode: 'regtest',\n bitcoinUrl: 'http://localhost:3000/api/proxy',\n },\n },\n};\n\nconst networkDevnet: NetworkConfiguration = {\n id: WalletDefaultNetworkConfigurationIds.devnet,\n name: 'Devnet',\n chain: {\n stacks: {\n blockchain: 'stacks',\n chainId: ChainId.Testnet,\n url: 'http://localhost:3999',\n },\n bitcoin: {\n blockchain: 'bitcoin',\n bitcoinNetwork: 'regtest',\n mode: 'regtest',\n bitcoinUrl: 'http://localhost:18443',\n },\n },\n};\n\nexport const defaultCurrentNetwork: NetworkConfiguration = networkMainnet;\n\nexport const defaultNetworksKeyedById: Record<\n WalletDefaultNetworkConfigurationIds,\n NetworkConfiguration\n> = {\n [WalletDefaultNetworkConfigurationIds.mainnet]: networkMainnet,\n [WalletDefaultNetworkConfigurationIds.testnet4]: networkTestnet4,\n [WalletDefaultNetworkConfigurationIds.testnet]: networkTestnet,\n [WalletDefaultNetworkConfigurationIds.signet]: networkSignet,\n [WalletDefaultNetworkConfigurationIds.sbtcTestnet]: networkSbtcTestnet,\n [WalletDefaultNetworkConfigurationIds.sbtcDevenv]: networkSbtcDevenv,\n [WalletDefaultNetworkConfigurationIds.devnet]: networkDevnet,\n};\n","import { z } from 'zod';\n\nimport { bitcoinNetworks, networkModes, testnetModes } from './network.model';\n\nexport const bitcoinNetworkModesSchema = z.enum([...networkModes, ...testnetModes]);\n\nexport const bitcoinNetworkSchema = z.enum([...bitcoinNetworks]);\n\nexport const networkConfigurationSchema = z.object({\n name: z.string(),\n id: z.string(),\n chain: z.object({\n bitcoin: z.object({\n blockchain: z.literal('bitcoin'),\n bitcoinUrl: z.string(),\n bitcoinNetwork: bitcoinNetworkSchema,\n mode: bitcoinNetworkModesSchema,\n }),\n stacks: z.object({\n blockchain: z.literal('stacks'),\n url: z.string(),\n chainId: z.number(),\n subnetChainId: z.number().optional(),\n }),\n }),\n});\n","import { z } from 'zod';\n\nimport { Blockchain } from './types';\n\nexport const accountDisplayPreferenceSchema = z.enum(['native-segwit', 'taproot', 'bns', 'stacks']);\nexport type AccountDisplayPreference = z.infer<typeof accountDisplayPreferenceSchema>;\n\nexport interface AccountDisplayPreferenceInfo {\n type: AccountDisplayPreference;\n blockchain: Blockchain;\n name: string;\n}\n\nexport const analyticsPreferenceSchema = z.enum(['consent-given', 'rejects-tracking']);\nexport type AnalyticsPreference = z.infer<typeof analyticsPreferenceSchema>;\n\nexport const emailAddressSchema = z.email({ error: 'Invalid email address' });\nexport type EmailAddress = z.infer<typeof emailAddressSchema>;\n","import { CryptoAssetId } from '../assets/asset-id.model';\nimport { NativeCryptoAsset, Sip10Asset } from '../assets/asset.model';\nimport { Money } from '../money.model';\n\nexport type SwappableFungibleCryptoAsset = NativeCryptoAsset | Sip10Asset;\n\nexport interface SwapAsset {\n asset: SwappableFungibleCryptoAsset;\n providerAssets: SwapProviderAsset[];\n}\n\nexport const swapProviderIds = ['bitflow-sdk', 'sbtc-bridge', 'alex-sdk', 'velar-sdk'] as const;\nexport type SwapProviderId = (typeof swapProviderIds)[number];\n\nexport interface SwapProvider {\n id: SwapProviderId;\n isAggregator: boolean;\n}\n\nexport interface SwapProviderAsset {\n providerId: SwapProviderId;\n providerAssetId: string;\n assetId: CryptoAssetId;\n}\n\nexport type SwapQuote =\n | AlexSdkSwapQuote\n | VelarSdkSwapQuote\n | BitflowSdkSwapQuote\n | SbtcBridgeSwapQuote;\n\nexport interface BaseSwapQuote {\n executionType: SwapExecutionType;\n providerId: SwapProviderId;\n baseAsset: SwappableFungibleCryptoAsset;\n targetAsset: SwappableFungibleCryptoAsset;\n baseAmount: Money;\n targetAmount: Money;\n dexPath: SwapDex[];\n assetPath: (NativeCryptoAsset | Sip10Asset)[];\n createdAt: Date;\n}\n\nexport interface AlexSdkSwapQuote extends BaseSwapQuote {\n providerId: 'alex-sdk';\n providerQuoteData: {\n baseProviderAssetId: string;\n targetProviderAssetId: string;\n alexSdkAmmRoute: unknown;\n };\n}\n\nexport interface VelarSdkSwapQuote extends BaseSwapQuote {\n providerId: 'velar-sdk';\n providerQuoteData: {\n baseProviderAssetId: string;\n targetProviderAssetId: string;\n };\n}\n\nexport interface BitflowSdkSwapQuote extends BaseSwapQuote {\n providerId: 'bitflow-sdk';\n providerQuoteData: {\n bitflowSdkSelectedSwapRoute: unknown;\n };\n}\n\nexport interface SbtcBridgeSwapQuote extends BaseSwapQuote {\n providerId: 'sbtc-bridge';\n}\n\nexport interface SwapDex {\n name: string;\n url: string;\n logo: string;\n description: string;\n}\n\nexport const swapExecutionTypes = ['stacks-contract-call', 'sbtc-bridge-transfer'] as const;\nexport type SwapExecutionType = (typeof swapExecutionTypes)[number];\n\nexport interface BaseSwapExecutionData {\n executionType: SwapExecutionType;\n providerId: SwapProviderId;\n quote: SwapQuote;\n}\nexport interface StacksContractCallSwapExecutionData extends BaseSwapExecutionData {\n executionType: 'stacks-contract-call';\n quote: SwapQuote;\n contractAddress: string;\n contractName: string;\n functionName: string;\n functionArgs: unknown[];\n postConditions: unknown[];\n postConditionMode?: unknown;\n}\nexport interface SbtcBridgeTransferSwapExecutionData extends BaseSwapExecutionData {\n executionType: 'sbtc-bridge-transfer';\n}\nexport type SwapExecutionData =\n | StacksContractCallSwapExecutionData\n | SbtcBridgeTransferSwapExecutionData;\n","export const YieldProviderKeys = {\n bitflow: 'bitflow',\n zest: 'zest',\n granite: 'granite',\n stackingDao: 'stackingdao',\n lisa: 'lisa',\n hermetica: 'hermetica',\n fastPool: 'fast-pool',\n xverse: 'xverse',\n velar: 'velar',\n} as const;\nexport type YieldProviderKey = (typeof YieldProviderKeys)[keyof typeof YieldProviderKeys];\n\nexport interface YieldProvider {\n readonly key: YieldProviderKey;\n readonly name: string;\n readonly logo: string;\n readonly url: string;\n}\n","import { YieldProviderKey, YieldProviderKeys } from './yield-provider.model';\n\nexport const YieldProductKeys = {\n bitflowAmmLp: 'bitflow-amm-lp',\n bitflowAmmStaking: 'bitflow-amm-staking',\n zestBorrowMarket: 'zest-borrow-market',\n graniteV1Earn: 'granite-v1-earn',\n graniteV1Borrow: 'granite-v1-borrow',\n stackingDaoStstx: 'stackingdao-ststx',\n stackingDaoStstxbtc: 'stackingdao-ststxbtc',\n stackingDaoPooledStacking: 'stackingdao-pooled-stacking',\n lisaListx: 'lisa-listx',\n lisaLiquidStaking: 'lisa-liquid-staking',\n hermeticaUsdhStaking: 'hermetica-usdh-staking',\n velarAmmLp: 'velar-amm-lp',\n velarPerps: 'velar-perps',\n velarAmmLpFarming: 'velar-amm-lp-farming',\n fastPoolPooledStacking: 'fast-pool-pooled-stacking',\n xversePooledStacking: 'xverse-pooled-stacking',\n} as const;\nexport type YieldProductKey = (typeof YieldProductKeys)[keyof typeof YieldProductKeys];\n\nexport const YieldProductCategories = {\n AMM: 'amm',\n LENDING: 'lending',\n LIQUID_STACKING: 'liquid-stacking',\n POOLED_STACKING: 'pooled-stacking',\n STAKING: 'staking',\n PERPS: 'perps',\n} as const;\nexport type YieldProductCategory =\n (typeof YieldProductCategories)[keyof typeof YieldProductCategories];\n\nexport const YieldProductToProviderMap = {\n [YieldProductKeys.bitflowAmmLp]: YieldProviderKeys.bitflow,\n [YieldProductKeys.bitflowAmmStaking]: YieldProviderKeys.bitflow,\n [YieldProductKeys.zestBorrowMarket]: YieldProviderKeys.zest,\n [YieldProductKeys.graniteV1Earn]: YieldProviderKeys.granite,\n [YieldProductKeys.graniteV1Borrow]: YieldProviderKeys.granite,\n [YieldProductKeys.stackingDaoStstx]: YieldProviderKeys.stackingDao,\n [YieldProductKeys.stackingDaoStstxbtc]: YieldProviderKeys.stackingDao,\n [YieldProductKeys.stackingDaoPooledStacking]: YieldProviderKeys.stackingDao,\n [YieldProductKeys.lisaListx]: YieldProviderKeys.lisa,\n [YieldProductKeys.lisaLiquidStaking]: YieldProviderKeys.lisa,\n [YieldProductKeys.hermeticaUsdhStaking]: YieldProviderKeys.hermetica,\n [YieldProductKeys.velarAmmLp]: YieldProviderKeys.velar,\n [YieldProductKeys.velarPerps]: YieldProviderKeys.velar,\n [YieldProductKeys.velarAmmLpFarming]: YieldProviderKeys.velar,\n [YieldProductKeys.fastPoolPooledStacking]: YieldProviderKeys.fastPool,\n [YieldProductKeys.xversePooledStacking]: YieldProviderKeys.xverse,\n} as const;\n\nexport type YieldProduct = BaseYieldProduct | PooledStackingYieldProduct;\n\nexport interface BaseYieldProduct {\n readonly key: YieldProductKey;\n readonly provider: YieldProviderKey;\n readonly category: YieldProductCategory;\n readonly name: string;\n readonly url: string;\n}\n\n// normalizes pooled stacking product data\nexport interface PooledStackingYieldProduct extends BaseYieldProduct {\n readonly category: 'pooled-stacking';\n readonly stackerCount: number;\n}\n","import type {\n BitflowAmmLpPosition,\n BitflowAmmStakingPosition,\n} from '../providers/bitflow-position.model';\nimport type {\n GraniteV1BorrowPosition,\n GraniteV1EarnPosition,\n} from '../providers/granite-position.model';\nimport type {\n StackingDaoPooledStackingPosition,\n StackingDaoStStxBtcPosition,\n StackingDaoStStxPosition,\n} from '../providers/stacking-dao-position.model';\nimport type { ZestBorrowMarketPosition } from '../providers/zest-position.model';\nimport type { YieldPosition } from '../yield-position.model';\nimport {\n YieldProduct,\n YieldProductCategories,\n YieldProductCategory,\n YieldProductKey,\n YieldProductKeys,\n YieldProductToProviderMap,\n} from '../yield-product.model';\nimport { YieldProvider, YieldProviderKey } from '../yield-provider.model';\n\nexport function isBitflowAmmLpPosition(pos: YieldPosition): pos is BitflowAmmLpPosition {\n return pos.product === YieldProductKeys.bitflowAmmLp;\n}\n\nexport function isBitflowAmmStakingPosition(pos: YieldPosition): pos is BitflowAmmStakingPosition {\n return pos.product === YieldProductKeys.bitflowAmmStaking;\n}\n\nexport function isZestPosition(pos: YieldPosition): pos is ZestBorrowMarketPosition {\n return pos.product === YieldProductKeys.zestBorrowMarket;\n}\n\nexport function isGraniteEarnPosition(pos: YieldPosition): pos is GraniteV1EarnPosition {\n return pos.product === YieldProductKeys.graniteV1Earn;\n}\n\nexport function isGraniteBorrowPosition(pos: YieldPosition): pos is GraniteV1BorrowPosition {\n return pos.product === YieldProductKeys.graniteV1Borrow;\n}\n\nexport function isStackingDaoStStxPosition(pos: YieldPosition): pos is StackingDaoStStxPosition {\n return pos.product === YieldProductKeys.stackingDaoStstx;\n}\n\nexport function isStackingDaoStStxBtcPosition(\n pos: YieldPosition\n): pos is StackingDaoStStxBtcPosition {\n return pos.product === YieldProductKeys.stackingDaoStstxbtc;\n}\n\nexport function isStackingDaoPooledPosition(\n pos: YieldPosition\n): pos is StackingDaoPooledStackingPosition {\n return pos.product === YieldProductKeys.stackingDaoPooledStacking;\n}\n\nexport function filterPositionsByProvider(\n positions: YieldPosition[],\n provider: YieldProviderKey\n): YieldPosition[] {\n return positions.filter(p => p.provider === provider);\n}\n\nexport function filterPositionsByProduct(\n positions: YieldPosition[],\n product: YieldProductKey\n): YieldPosition[] {\n return positions.filter(p => p.product === product);\n}\n\nexport function filterPositionsByCategory(\n positions: YieldPosition[],\n products: YieldProduct[],\n category: YieldProductCategory\n): YieldPosition[] {\n const productMap = new Map(products.map(p => [p.key, p]));\n return positions.filter(pos => productMap.get(pos.product)?.category === category);\n}\n\nexport function sortPositionsByBalance(\n positions: YieldPosition[],\n ascending = false\n): YieldPosition[] {\n return [...positions].sort((a, b) => {\n const diff = a.totalBalance.amount.comparedTo(b.totalBalance.amount);\n return ascending ? diff : -diff;\n });\n}\n\nexport function sortPositionsByApy(positions: YieldPosition[], ascending = false): YieldPosition[] {\n return [...positions].sort((a, b) => {\n const apyA = a.apy;\n const apyB = b.apy;\n return ascending ? apyA - apyB : apyB - apyA;\n });\n}\n\nexport function sortPositionsByUpdateTime(\n positions: YieldPosition[],\n ascending = false\n): YieldPosition[] {\n return [...positions].sort((a, b) => {\n const timeA = 'updatedAt' in a && a.updatedAt instanceof Date ? a.updatedAt.getTime() : 0;\n const timeB = 'updatedAt' in b && b.updatedAt instanceof Date ? b.updatedAt.getTime() : 0;\n return ascending ? timeA - timeB : timeB - timeA;\n });\n}\n\nexport function getProviderForProduct(product: YieldProductKey): YieldProviderKey {\n return YieldProductToProviderMap[product];\n}\n\nexport function getCategoryForProduct(product: YieldProduct): YieldProductCategory {\n return product.category;\n}\n\nexport function isProductInProvider(product: YieldProductKey, provider: YieldProviderKey): boolean {\n return YieldProductToProviderMap[product] === provider;\n}\n\nexport function getProductsForProvider(provider: YieldProviderKey): YieldProductKey[] {\n return Object.entries(YieldProductToProviderMap)\n .filter(([_, p]) => p === provider)\n .map(([product]) => product as YieldProductKey);\n}\n\nexport function getProductsInCategory(\n products: YieldProduct[],\n category: YieldProductCategory\n): YieldProduct[] {\n return products.filter(p => p.category === category);\n}\n\nexport function groupPositionsByProvider(\n positions: YieldPosition[]\n): Record<YieldProviderKey, YieldPosition[]> {\n const grouped: Partial<Record<YieldProviderKey, YieldPosition[]>> = {};\n\n for (const position of positions) {\n const provider = position.provider;\n if (!grouped[provider]) {\n grouped[provider] = [];\n }\n grouped[provider].push(position);\n }\n\n return grouped as Record<YieldProviderKey, YieldPosition[]>;\n}\n\nexport function groupPositionsByCategory(\n positions: YieldPosition[],\n products: YieldProduct[]\n): Record<string, YieldPosition[]> {\n const grouped: Record<string, YieldPosition[]> = {};\n const productMap = new Map(products.map(p => [p.key, p]));\n\n for (const position of positions) {\n const product = productMap.get(position.product);\n if (!product) continue;\n\n const category = product.category;\n if (!grouped[category]) {\n grouped[category] = [];\n }\n grouped[category].push(position);\n }\n\n return grouped;\n}\n\nexport function getPositionsInCategories(\n positions: YieldPosition[],\n products: YieldProduct[],\n categories: YieldProductCategory[]\n): YieldPosition[] {\n const categorySet = new Set(categories);\n const productMap = new Map(products.map(p => [p.key, p]));\n return positions.filter(pos => {\n const product = productMap.get(pos.product);\n return product && categorySet.has(product.category);\n });\n}\n\nexport function hasPositionsInProvider(\n positions: YieldPosition[],\n provider: YieldProviderKey\n): boolean {\n return positions.some(p => p.provider === provider);\n}\n\nexport function hasPositionsInCategory(\n positions: YieldPosition[],\n products: YieldProduct[],\n category: YieldProductCategory\n): boolean {\n const productMap = new Map(products.map(p => [p.key, p]));\n return positions.some(pos => productMap.get(pos.product)?.category === category);\n}\n\nexport function enrichPositionWithProvider<T extends YieldPosition>(\n position: T,\n provider: YieldProvider\n): T & { providerData: YieldProvider } {\n return { ...position, providerData: provider };\n}\n\nexport function enrichPositionWithProduct<T extends YieldPosition>(\n position: T,\n product: YieldProduct\n): T & { productData: YieldProduct } {\n return { ...position, productData: product };\n}\n\nexport function enrichPositionWithMetadata<T extends YieldPosition>(\n position: T,\n provider: YieldProvider,\n product: YieldProduct\n): T & { providerData: YieldProvider; productData: YieldProduct } {\n return { ...position, providerData: provider, productData: product };\n}\n\nexport function getCategoryDisplayName(category: YieldProductCategory): string {\n const displayNames: Record<YieldProductCategory, string> = {\n [YieldProductCategories.AMM]: 'Liquidity Pools',\n [YieldProductCategories.LENDING]: 'Lending & Borrowing',\n [YieldProductCategories.LIQUID_STACKING]: 'Liquid Stacking',\n [YieldProductCategories.POOLED_STACKING]: 'Pooled Stacking',\n [YieldProductCategories.STAKING]: 'Staking',\n [YieldProductCategories.PERPS]: 'Perpetuals',\n };\n return displayNames[category] || category;\n}\n"],"mappings":";;;AAEA,MAAa,iBAAiB,EAAE,OAAO,EACrC,aAAa,EAAE,QAAQ,EACxB,CAAC;AAEF,MAAa,kBAAkB,eAAe,IAAI,EAAE,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,CAAC,CAAC;AAEzF,MAAa,2BAA2B,EAAE,OAAO;CAC/C,mBAAmB,EAAE,QAAQ;CAC7B,wBAAwB,EAAE,QAAQ;CAClC,8BAA8B,EAAE,QAAQ,CAAC,UAAU;CACnD,mCAAmC,EAAE,QAAQ,CAAC,UAAU;CACzD,CAAC;AAEF,MAAa,0BAA0B,EAAE,OAAO,EAC9C,YAAY,EAAE,QAAQ,EACvB,CAAC;AAEF,MAAa,yBAAyB,EAAE,OAAO;CAC7C,IAAI;CACJ,SAAS,yBAAyB,UAAU;CAC5C,QAAQ,wBAAwB,UAAU;CAC3C,CAAC;;;;ACvBF,MAAa,iBAAiB;CAC5B,SAAS;CACT,KAAK;CACN;;;;ACHD,MAAa,0BAA0B;CACrC,SAAS;CACT,SAAS;CACT,QAAQ;CACT;;;;ACJD,MAAa,uBAAuB;CAClC,qBAAqB;CACrB,sBAAsB;CACtB,WAAW;CACX,WAAW;CACX,cAAc;CACd,YAAY;CACb;AAGD,MAAa,sBAAsB;CACjC,YAAY;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AM;GAC7B,uBAAuB,UAAU;GACjC,uBAAuB,kBAAkB;GACzC,uBAAuB,kBAAkB;GACzC,uBAAuB,UAAU;GACjC,uBAAuB,QAAQ;EACjC,CACmB,aAAa"}
|
|
1
|
+
{"version":3,"file":"index.js","names":["btcTxTimeMap: Record<keyof AverageBitcoinFeeRates, string>","networkMainnet: NetworkConfiguration","networkTestnet: NetworkConfiguration","networkTestnet4: NetworkConfiguration","networkSignet: NetworkConfiguration","networkSbtcTestnet: NetworkConfiguration","networkSbtcDevenv: NetworkConfiguration","networkDevnet: NetworkConfiguration","defaultCurrentNetwork: NetworkConfiguration","defaultNetworksKeyedById: Record<\n WalletDefaultNetworkConfigurationIds,\n NetworkConfiguration\n>","grouped: Partial<Record<YieldProviderKey, YieldPosition[]>>","grouped: Record<string, YieldPosition[]>"],"sources":["../src/account.model.ts","../src/activity/activity-level.model.ts","../src/activity/activity-status.model.ts","../src/activity/activity-type.model.ts","../src/assets/asset-type-guards.ts","../src/assets/asset.model.ts","../src/assets/sip9-asset.model.ts","../src/bitcoin.model.ts","../src/bns.model.ts","../src/fees/bitcoin-fees.model.ts","../src/fees/fees.model.ts","../src/fees/transaction-fees.model.ts","../src/inscription-mime-type.model.ts","../src/market.model.ts","../src/network/network.model.ts","../src/network/network.schema.ts","../src/settings.model.ts","../src/swap/swap.model.ts","../src/yield/yield-provider.model.ts","../src/yield/yield-product.model.ts","../src/yield/helpers/yield.helpers.ts"],"sourcesContent":["import { z } from 'zod';\n\nexport const walletIdSchema = z.object({\n fingerprint: z.string(),\n});\n\nexport const accountIdSchema = walletIdSchema.and(z.object({ accountIndex: z.number() }));\n\nexport const bitcoinAddressInfoSchema = z.object({\n taprootDescriptor: z.string(),\n nativeSegwitDescriptor: z.string(),\n zeroIndexTaprootPayerAddress: z.string().optional(),\n zeroIndexNativeSegwitPayerAddress: z.string().optional(),\n});\n\nexport const stacksAddressInfoSchema = z.object({\n stxAddress: z.string(),\n});\n\nexport const accountAddressesSchema = z.object({\n id: accountIdSchema,\n bitcoin: bitcoinAddressInfoSchema.optional(),\n stacks: stacksAddressInfoSchema.optional(),\n});\n\nexport type WalletId = z.infer<typeof walletIdSchema>;\nexport type AccountId = z.infer<typeof accountIdSchema>;\nexport type BitcoinAddressInfo = z.infer<typeof bitcoinAddressInfoSchema>;\nexport type StacksAddressInfo = z.infer<typeof stacksAddressInfoSchema>;\nexport type AccountAddresses = z.infer<typeof accountAddressesSchema>;\n","export const ActivityLevels = {\n account: 'account',\n app: 'app',\n} as const;\nexport type ActivityLevel = keyof typeof ActivityLevels;\n","export const OnChainActivityStatuses = {\n pending: 'pending',\n success: 'success',\n failed: 'failed',\n} as const;\nexport type OnChainActivityStatus = keyof typeof OnChainActivityStatuses;\n","export const OnChainActivityTypes = {\n deploySmartContract: 'deploySmartContract',\n executeSmartContract: 'executeSmartContract',\n lockAsset: 'lockAsset',\n sendAsset: 'sendAsset',\n receiveAsset: 'receiveAsset',\n swapAssets: 'swapAssets',\n} as const;\nexport type OnChainActivityType = keyof typeof OnChainActivityTypes;\n\nexport const WalletActivityTypes = {\n connectApp: 'connectApp',\n signMessage: 'signMessage',\n} as const;\nexport type WalletActivityType = keyof typeof WalletActivityTypes;\n\nexport const GeneralActivityTypes = {\n walletAdded: 'walletAdded',\n receiveAnnouncement: 'receiveAnnouncement',\n featureWaitlistNotification: 'featureWaitlistNotification',\n} as const;\nexport type GeneralActivityType = keyof typeof GeneralActivityTypes;\n\nexport type ActivityType = OnChainActivityType | WalletActivityType | GeneralActivityType;\n","import {\n Brc20Asset,\n BtcAsset,\n CryptoAsset,\n FungibleCryptoAsset,\n InscriptionAsset,\n NativeCryptoAsset,\n NonFungibleCryptoAsset,\n RuneAsset,\n Sip10Asset,\n Src20Asset,\n StampAsset,\n Stx20Asset,\n StxAsset,\n} from './asset.model';\nimport { Sip9Asset } from './sip9-asset.model';\n\nexport function isFungibleAsset(asset: CryptoAsset): asset is FungibleCryptoAsset {\n return asset.category === 'fungible';\n}\n\nexport function isNonFungibleAsset(asset: CryptoAsset): asset is NonFungibleCryptoAsset {\n return asset.category === 'nft';\n}\n\nexport function isBtcAsset(asset: CryptoAsset): asset is BtcAsset {\n return asset.protocol === 'nativeBtc';\n}\n\nexport function isStxAsset(asset: CryptoAsset): asset is StxAsset {\n return asset.protocol === 'nativeStx';\n}\n\nexport function isNativeAsset(asset: CryptoAsset): asset is NativeCryptoAsset {\n return isBtcAsset(asset) || isStxAsset(asset);\n}\n\nexport function isSip10Asset(asset: CryptoAsset): asset is Sip10Asset {\n return asset.protocol === 'sip10';\n}\n\nexport function isSwappableAsset(asset: CryptoAsset): asset is NativeCryptoAsset | Sip10Asset {\n return isNativeAsset(asset) || isSip10Asset(asset);\n}\n\nexport function isBrc20Asset(asset: CryptoAsset): asset is Brc20Asset {\n return asset.protocol === 'brc20';\n}\n\nexport function isSrc20Asset(asset: CryptoAsset): asset is Src20Asset {\n return asset.protocol === 'src20';\n}\n\nexport function isStx20Asset(asset: CryptoAsset): asset is Stx20Asset {\n return asset.protocol === 'stx20';\n}\n\nexport function isRuneAsset(asset: CryptoAsset): asset is RuneAsset {\n return asset.protocol === 'rune';\n}\n\nexport function isInscriptionAsset(asset: CryptoAsset): asset is InscriptionAsset {\n return asset.protocol === 'inscription';\n}\n\nexport function isStampAsset(asset: CryptoAsset): asset is StampAsset {\n return asset.protocol === 'stamp';\n}\n\nexport function isSip9Asset(asset: CryptoAsset): asset is Sip9Asset {\n return asset.protocol === 'sip9';\n}\n","import { InscriptionMimeType } from '../inscription-mime-type.model';\nimport { Sip9Asset } from './sip9-asset.model';\n\nexport const CryptoAssetChains = {\n bitcoin: 'bitcoin',\n stacks: 'stacks',\n} as const;\nexport const CryptoAssetCategories = {\n fungible: 'fungible',\n nft: 'nft',\n} as const;\nexport const FungibleCryptoAssetProtocols = {\n nativeBtc: 'nativeBtc',\n nativeStx: 'nativeStx',\n sip10: 'sip10',\n brc20: 'brc20',\n src20: 'src20',\n stx20: 'stx20',\n rune: 'rune',\n} as const;\nexport const NonFungibleCryptoAssetProtocols = {\n stamp: 'stamp',\n sip9: 'sip9',\n inscription: 'inscription',\n} as const;\nexport const CryptoAssetProtocols = {\n ...FungibleCryptoAssetProtocols,\n ...NonFungibleCryptoAssetProtocols,\n} as const;\n\nexport type CryptoAssetChain = keyof typeof CryptoAssetChains;\nexport type CryptoAssetCategory = keyof typeof CryptoAssetCategories;\nexport type FungibleCryptoAssetProtocol = keyof typeof FungibleCryptoAssetProtocols;\nexport type NonFungibleCryptoAssetProtocol = keyof typeof NonFungibleCryptoAssetProtocols;\nexport type CryptoAssetProtocol = FungibleCryptoAssetProtocol | NonFungibleCryptoAssetProtocol;\n\nexport interface BaseCryptoAsset {\n readonly chain: CryptoAssetChain;\n readonly category: CryptoAssetCategory;\n readonly protocol: CryptoAssetProtocol;\n}\n\n// Fungible asset types\ninterface BaseFungibleCryptoAsset extends BaseCryptoAsset {\n readonly category: 'fungible';\n readonly protocol: FungibleCryptoAssetProtocol;\n readonly symbol: string;\n readonly decimals: number;\n readonly hasMemo: boolean;\n}\nexport interface BtcAsset extends BaseFungibleCryptoAsset {\n readonly chain: 'bitcoin';\n readonly protocol: 'nativeBtc';\n readonly name: 'Bitcoin';\n readonly symbol: 'BTC';\n}\nexport interface StxAsset extends BaseFungibleCryptoAsset {\n readonly chain: 'stacks';\n readonly protocol: 'nativeStx';\n readonly name: 'Stacks';\n readonly symbol: 'STX';\n}\nexport interface Brc20Asset extends BaseFungibleCryptoAsset {\n readonly chain: 'bitcoin';\n readonly protocol: 'brc20';\n readonly symbol: string;\n}\nexport interface Src20Asset extends BaseFungibleCryptoAsset {\n readonly chain: 'bitcoin';\n readonly protocol: 'src20';\n readonly id: string;\n readonly symbol: string;\n readonly deploy_tx: string;\n readonly deploy_img: string;\n}\nexport interface RuneAsset extends BaseFungibleCryptoAsset {\n readonly chain: 'bitcoin';\n readonly protocol: 'rune';\n readonly spacedRuneName: string;\n readonly runeName: string;\n readonly symbol: string;\n}\nexport interface Sip10Asset extends BaseFungibleCryptoAsset {\n readonly chain: 'stacks';\n readonly protocol: 'sip10';\n readonly name: string;\n readonly canTransfer: boolean;\n readonly assetId: string;\n readonly contractId: string;\n readonly imageCanonicalUri: string;\n readonly symbol: string;\n}\nexport interface Stx20Asset extends BaseFungibleCryptoAsset {\n readonly chain: 'stacks';\n readonly protocol: 'stx20';\n readonly symbol: string;\n}\nexport type NativeCryptoAsset = BtcAsset | StxAsset;\nexport type FungibleCryptoAsset =\n | NativeCryptoAsset\n | Sip10Asset\n | Brc20Asset\n | Src20Asset\n | Stx20Asset\n | RuneAsset;\n\n// NFT asset types\nexport interface BaseNonFungibleCryptoAsset extends BaseCryptoAsset {\n readonly category: 'nft';\n readonly protocol: NonFungibleCryptoAssetProtocol;\n}\nexport interface InscriptionAsset extends BaseNonFungibleCryptoAsset {\n readonly chain: 'bitcoin';\n readonly protocol: 'inscription';\n readonly id: string;\n readonly mimeType: InscriptionMimeType;\n readonly number: number;\n readonly address: string;\n readonly title: string;\n readonly txid: string;\n readonly output: string;\n readonly offset: string;\n readonly preview: string;\n readonly src: string;\n readonly thumbnailSrc?: string;\n readonly value: string;\n readonly genesisBlockHash: string;\n readonly genesisTimestamp: number;\n readonly genesisBlockHeight: number;\n}\nexport interface StampAsset extends BaseNonFungibleCryptoAsset {\n readonly chain: 'bitcoin';\n readonly protocol: 'stamp';\n readonly stamp: number;\n readonly stampUrl: string;\n readonly stampExplorerUrl: string;\n readonly blockHeight: number;\n}\n\nexport type NonFungibleCryptoAsset = InscriptionAsset | StampAsset | Sip9Asset;\n\nexport type CryptoAsset = FungibleCryptoAsset | NonFungibleCryptoAsset;\n\nexport interface FungibleAssetId {\n protocol: FungibleCryptoAssetProtocol;\n id: string;\n}\n","import { Money } from '../money.model';\nimport { BaseNonFungibleCryptoAsset } from './asset.model';\n\nexport const sip9ContentTypes = [\n 'image/jpeg',\n 'image/jpg',\n 'image/png',\n 'image/gif',\n 'image/webp',\n 'image/svg+xml',\n 'image/bmp',\n 'image/tiff',\n 'image/avif',\n 'video/mp4',\n 'video/webm',\n 'video/mov',\n 'video/quicktime',\n 'video/avi',\n 'video/x-msvideo',\n 'video/ogg',\n 'audio/mpeg',\n 'audio/mp3',\n 'audio/wav',\n 'audio/x-wav',\n 'audio/ogg',\n 'audio/aac',\n 'audio/flac',\n 'audio/webm',\n 'model/gltf+json',\n 'model/gltf-binary',\n 'application/octet-stream',\n 'text/plain',\n 'text/html',\n 'text/markdown',\n 'application/pdf',\n 'application/json',\n 'text/javascript',\n 'application/javascript',\n 'application/zip',\n 'unknown',\n '',\n] as const;\n\nexport type Sip9ContentType = (typeof sip9ContentTypes)[number];\n\nexport interface Sip9Collection {\n name: string;\n collectionExplorerUrl: string;\n totalItems?: number;\n floorPrice?: Money;\n latestSale?: Money;\n}\n\nexport interface Sip9AssetContent {\n contentUrl: string;\n contentType: Sip9ContentType;\n}\n\nexport interface Sip9Attribute {\n traitType: string;\n value: any;\n rarityPercent?: number;\n}\n\nexport interface Sip9Asset extends BaseNonFungibleCryptoAsset {\n readonly chain: 'stacks';\n readonly protocol: 'sip9';\n readonly assetId: string;\n readonly contractId: string;\n readonly tokenId: number;\n readonly name: string;\n readonly description: string;\n readonly content: Sip9AssetContent;\n readonly attributes?: Sip9Attribute[];\n readonly collection?: Sip9Collection;\n readonly creator?: string;\n readonly rarityRank?: number;\n}\n","import { z } from 'zod';\n\n// Branded type for Bitcoin addresses\nexport type BitcoinAddress = string & { readonly __brand: unique symbol };\n\nexport const bitcoinUnitSchema = z.enum(['bitcoin', 'satoshi']);\nexport type BitcoinUnit = z.infer<typeof bitcoinUnitSchema>;\n\nexport type BitcoinUnitSymbol = 'BTC' | 'sat';\n\nexport interface BitcoinUnitInfo {\n name: BitcoinUnit;\n symbol: BitcoinUnitSymbol;\n decimal: string;\n}\n","export const bnsContractAddress = {\n mainnet: 'SP2QEZ06AGJ3RKJPBV14SY1V5BBFNAW33D96YPGZF',\n testnet: 'ST2QEZ06AGJ3RKJPBV14SY1V5BBFNAW33D9SZJQ0M',\n};\n\nexport const bnsContractName = 'BNS-V2';\n\nexport interface BnsName {\n owner: string;\n name: string;\n namespace: string;\n fullName: string;\n renewalHeight: number;\n registeredAtBlockNumber: number;\n}\n\nexport interface BnsProfile {\n bnsName: BnsName;\n profileData: BnsProfileData;\n}\n\nexport interface BnsProfileData {\n name?: string;\n bio?: string;\n website?: string;\n pfpUrl?: string;\n location?: string;\n addresses?: BnsProfileDataAddresses;\n}\n\nexport interface BnsProfileDataAddresses {\n bitcoinPayment?: string;\n bitcoinOrdinal?: string;\n solana?: string;\n ethereum?: string;\n}\n","import type BigNumber from 'bignumber.js';\n\nexport interface AverageBitcoinFeeRates {\n fastestFee: BigNumber;\n halfHourFee: BigNumber;\n hourFee: BigNumber;\n}\n\nexport const btcTxTimeMap: Record<keyof AverageBitcoinFeeRates, string> = {\n fastestFee: '~10 – 20min',\n halfHourFee: '~30 min',\n hourFee: '~1 hour+',\n};\n\nexport enum BtcFeeType {\n High = 'High',\n Standard = 'Standard',\n Low = 'Low',\n}\n","import { Blockchain } from '../types';\nimport { StacksFeeEstimate } from './stacks-fees.model';\n\nexport enum FeeTypes {\n Low,\n Middle,\n High,\n Custom,\n Unknown,\n}\n\nexport enum FeeCalculationTypes {\n Api = 'api',\n Default = 'default',\n DefaultSimulated = 'default-simulated',\n FeesCapped = 'fees-capped',\n TokenTransferSpecific = 'token-transfer-specific',\n}\n\nexport interface Fees {\n blockchain: Blockchain;\n estimates: StacksFeeEstimate[];\n calculation: FeeCalculationTypes;\n}\n","import { Money } from '../money.model';\nimport { Blockchain } from '../types';\n\nexport const transactionFeeTiers = ['low', 'standard', 'high'] as const;\nexport type TransactionFeeTier = (typeof transactionFeeTiers)[number];\n\nexport interface TransactionFees {\n readonly chain: Blockchain;\n readonly options: Record<TransactionFeeTier, TransactionFeeQuote>;\n}\n\nexport const transactionFeeQuoteType = [\n 'flat',\n 'bitcoinFeeRate',\n 'stacksFeeRate',\n 'evm1559',\n] as const;\nexport type TransactionFeeQuoteType = (typeof transactionFeeQuoteType)[number];\n\nexport interface BaseTransactionFeeQuote {\n readonly type: TransactionFeeQuoteType;\n readonly value: Money;\n}\n\nexport interface FlatTransactionFeeQuote extends BaseTransactionFeeQuote {\n readonly type: 'flat';\n}\n\nexport interface BitcoinTransactionFeeQuote extends BaseTransactionFeeQuote {\n readonly type: 'bitcoinFeeRate';\n readonly rate: number;\n readonly rateUnit: 'sats/vB';\n readonly estimatedTxSize: number;\n readonly sizeUnit: 'vB';\n}\n\nexport interface StacksTransactionFeeQuote extends BaseTransactionFeeQuote {\n readonly type: 'stacksFeeRate';\n readonly rate: number;\n readonly rateUnit: 'µSTX/byte';\n readonly estimatedTxSize: number;\n readonly sizeUnit: 'byte';\n}\n\nexport interface EvmTransactionFeeQuote extends BaseTransactionFeeQuote {\n readonly type: 'evm1559';\n readonly baseFeePerGas: Money;\n readonly priorityFeePerGas: Money;\n readonly gasLimit: number;\n}\n\nexport type TransactionFeeQuote =\n | FlatTransactionFeeQuote\n | BitcoinTransactionFeeQuote\n | StacksTransactionFeeQuote\n | EvmTransactionFeeQuote;\n","/**\n * Inscriptions contain arbitrary data. When retrieving an inscription, it should be\n * classified into one of the types below, indicating that the app can handle it\n * appropriately and securely. Inscriptions of types not ready to be handled by the\n * app should be classified as \"other\".\n */\nexport const inscriptionMimeTypes = [\n 'audio',\n 'gltf',\n 'html',\n 'image',\n 'svg',\n 'text',\n 'video',\n 'other',\n] as const;\n\nexport type InscriptionMimeType = (typeof inscriptionMimeTypes)[number];\n","import type { Currency, QuoteCurrency } from './currencies.model';\nimport type { Money } from './money.model';\n\ninterface MarketPair {\n readonly base: Currency;\n readonly quote: QuoteCurrency;\n}\n\nexport function createMarketPair(base: Currency, quote: QuoteCurrency): MarketPair {\n return Object.freeze({ base, quote });\n}\n\nexport function formatMarketPair({ base, quote }: MarketPair) {\n return `${base}/${quote}`;\n}\n\nexport interface MarketData {\n readonly pair: MarketPair;\n readonly price: Money;\n}\n\nexport function createMarketData(pair: MarketPair, price: Money): MarketData {\n if (pair.quote !== price.symbol)\n throw new Error('Cannot create market data when price does not match quote');\n return Object.freeze({ pair, price });\n}\n\nexport const historicalPeriods = ['1d', '1w', '1m', '3m', '6m', '1y'] as const;\nexport type HistoricalPeriod = (typeof historicalPeriods)[number];\n\nexport interface MarketPriceSnapshot {\n price: Money;\n timestamp: number;\n}\n\nexport interface MarketPriceHistory {\n period: HistoricalPeriod;\n changePercentage: number;\n prices: MarketPriceSnapshot[];\n}\n","import { z } from 'zod';\n\nimport { Blockchain } from '../types';\nimport { networkConfigurationSchema } from './network.schema';\n\nexport const HIRO_API_BASE_URL_MAINNET = 'https://api.hiro.so';\nexport const HIRO_API_BASE_URL_TESTNET = 'https://api.testnet.hiro.so';\nexport const HIRO_API_BASE_URL_NAKAMOTO_TESTNET = 'https://api.nakamoto.testnet.hiro.so';\n\nexport const HIRO_API_BASE_URL_MAINNET_EXTENDED = 'https://api.hiro.so/extended/v1';\nexport const HIRO_API_BASE_URL_TESTNET_EXTENDED = 'https://api.testnet.hiro.so/extended';\n\nexport const BITCOIN_API_BASE_URL_MAINNET = 'https://leather.mempool.space/api';\nexport const BITCOIN_API_BASE_URL_TESTNET3 = 'https://leather.mempool.space/testnet/api';\nexport const BITCOIN_API_BASE_URL_TESTNET4 = 'https://leather.mempool.space/testnet4/api';\nexport const BITCOIN_API_BASE_URL_SIGNET = 'https://mempool.space/signet/api';\n\nexport const BESTINSLOT_API_BASE_URL_MAINNET = 'https://leatherapi.bestinslot.xyz/v3';\nexport const BESTINSLOT_API_BASE_URL_TESTNET = 'https://leatherapi_testnet.bestinslot.xyz/v3';\n\nexport const STX20_API_BASE_URL_MAINNET = 'https://api.stx20.com/api/v1';\n\nexport const BNS_V2_API_BASE_URL = 'https://api.bnsv2.com';\n\nexport const EMILY_API_BASE_URL_MAINNET = 'https://sbtc-emily.com';\nexport const EMILY_API_BASE_URL_TESTNET = 'https://beta.sbtc-emily.com';\nexport const EMILY_API_BASE_URL_DEVENV = 'http://localhost:3031';\n\n// Copied from @stacks/transactions to avoid dependencies\nexport enum ChainId {\n Testnet = 2147483648,\n Mainnet = 1,\n}\n\nexport enum WalletDefaultNetworkConfigurationIds {\n mainnet = 'mainnet',\n testnet = 'testnet',\n testnet4 = 'testnet4',\n signet = 'signet',\n sbtcTestnet = 'sbtcTestnet',\n sbtcDevenv = 'sbtcDevenv',\n devnet = 'devnet',\n}\n\nexport const defaultNetworkConfigurationsSchema = z.enum([\n 'mainnet',\n 'testnet',\n 'testnet4',\n 'signet',\n 'sbtcTestnet',\n 'sbtcDevenv',\n 'devnet',\n]);\nexport type DefaultNetworkConfigurations = z.infer<typeof defaultNetworkConfigurationsSchema>;\n\nexport const supportedBlockchains = ['stacks', 'bitcoin'] as const;\n\nexport type SupportedBlockchains = (typeof supportedBlockchains)[number];\n\nexport const networkModes = ['mainnet', 'testnet'] as const;\nexport const testnetModes = ['testnet', 'regtest', 'signet'] as const;\n\nexport const bitcoinNetworks = ['mainnet', 'testnet3', 'testnet4', 'regtest', 'signet'] as const;\nexport type BitcoinNetwork = (typeof bitcoinNetworks)[number];\n\nexport type NetworkModes = (typeof networkModes)[number];\ntype BitcoinTestnetModes = (typeof testnetModes)[number];\n\nexport function bitcoinNetworkToNetworkMode(network: BitcoinNetwork): BitcoinNetworkModes {\n switch (network) {\n case 'mainnet':\n return 'mainnet';\n case 'testnet3':\n return 'testnet';\n case 'testnet4':\n return 'testnet';\n case 'regtest':\n return 'regtest';\n case 'signet':\n return 'signet';\n default:\n // TODO: Needs exhaustive check. Cannot import 'assertUnreachable' since 'utils' package depends on 'models'.\n // Ideally this function should live in utils, but it's currently widely used in the extension.\n throw new Error(`Unhandled case: ${network}`);\n }\n}\n\nexport type BitcoinNetworkModes = NetworkModes | BitcoinTestnetModes;\n\ninterface BaseChainConfig {\n blockchain: Blockchain;\n}\n\nexport interface BitcoinChainConfig extends BaseChainConfig {\n blockchain: 'bitcoin';\n bitcoinUrl: string;\n bitcoinNetwork: BitcoinNetwork;\n mode: BitcoinNetworkModes;\n}\n\nexport interface StacksChainConfig extends BaseChainConfig {\n blockchain: 'stacks';\n url: string;\n /** The chainId of the network (or parent network if this is a subnet) */\n chainId: ChainId;\n /** An additional chainId for subnets. Indicated a subnet if defined and is mainly used for signing. */\n subnetChainId?: ChainId;\n}\n\nexport type NetworkConfiguration = z.infer<typeof networkConfigurationSchema>;\n\nconst networkMainnet: NetworkConfiguration = {\n id: WalletDefaultNetworkConfigurationIds.mainnet,\n name: 'Mainnet',\n chain: {\n stacks: {\n blockchain: 'stacks',\n chainId: ChainId.Mainnet,\n url: HIRO_API_BASE_URL_MAINNET,\n },\n bitcoin: {\n blockchain: 'bitcoin',\n bitcoinNetwork: 'mainnet',\n mode: 'mainnet',\n bitcoinUrl: BITCOIN_API_BASE_URL_MAINNET,\n },\n },\n};\n\nconst networkTestnet: NetworkConfiguration = {\n id: WalletDefaultNetworkConfigurationIds.testnet,\n name: 'Testnet3',\n chain: {\n stacks: {\n blockchain: 'stacks',\n chainId: ChainId.Testnet,\n url: HIRO_API_BASE_URL_TESTNET,\n },\n bitcoin: {\n blockchain: 'bitcoin',\n bitcoinNetwork: 'testnet3',\n mode: 'testnet',\n bitcoinUrl: BITCOIN_API_BASE_URL_TESTNET3,\n },\n },\n};\n\nconst networkTestnet4: NetworkConfiguration = {\n id: WalletDefaultNetworkConfigurationIds.testnet4,\n name: 'Testnet4',\n chain: {\n stacks: {\n blockchain: 'stacks',\n chainId: ChainId.Testnet,\n url: HIRO_API_BASE_URL_TESTNET,\n },\n bitcoin: {\n blockchain: 'bitcoin',\n bitcoinNetwork: 'testnet4',\n mode: 'testnet',\n bitcoinUrl: BITCOIN_API_BASE_URL_TESTNET4,\n },\n },\n};\n\nconst networkSignet: NetworkConfiguration = {\n id: WalletDefaultNetworkConfigurationIds.signet,\n name: 'Signet',\n chain: {\n stacks: {\n blockchain: 'stacks',\n chainId: ChainId.Testnet,\n url: HIRO_API_BASE_URL_TESTNET,\n },\n bitcoin: {\n blockchain: 'bitcoin',\n bitcoinNetwork: 'signet',\n mode: 'signet',\n bitcoinUrl: BITCOIN_API_BASE_URL_SIGNET,\n },\n },\n};\n\nconst networkSbtcTestnet: NetworkConfiguration = {\n id: WalletDefaultNetworkConfigurationIds.sbtcTestnet,\n name: 'sBTC Testnet',\n chain: {\n stacks: {\n blockchain: 'stacks',\n chainId: ChainId.Testnet,\n url: HIRO_API_BASE_URL_TESTNET,\n },\n bitcoin: {\n blockchain: 'bitcoin',\n bitcoinNetwork: 'regtest',\n mode: 'regtest',\n bitcoinUrl: 'https://beta.sbtc-mempool.tech/api/proxy',\n },\n },\n};\n\nconst networkSbtcDevenv: NetworkConfiguration = {\n id: WalletDefaultNetworkConfigurationIds.sbtcDevenv,\n name: 'sBTC Devenv',\n chain: {\n stacks: {\n blockchain: 'stacks',\n chainId: ChainId.Testnet,\n url: 'http://localhost:3999',\n },\n bitcoin: {\n blockchain: 'bitcoin',\n bitcoinNetwork: 'regtest',\n mode: 'regtest',\n bitcoinUrl: 'http://localhost:3000/api/proxy',\n },\n },\n};\n\nconst networkDevnet: NetworkConfiguration = {\n id: WalletDefaultNetworkConfigurationIds.devnet,\n name: 'Devnet',\n chain: {\n stacks: {\n blockchain: 'stacks',\n chainId: ChainId.Testnet,\n url: 'http://localhost:3999',\n },\n bitcoin: {\n blockchain: 'bitcoin',\n bitcoinNetwork: 'regtest',\n mode: 'regtest',\n bitcoinUrl: 'http://localhost:18443',\n },\n },\n};\n\nexport const defaultCurrentNetwork: NetworkConfiguration = networkMainnet;\n\nexport const defaultNetworksKeyedById: Record<\n WalletDefaultNetworkConfigurationIds,\n NetworkConfiguration\n> = {\n [WalletDefaultNetworkConfigurationIds.mainnet]: networkMainnet,\n [WalletDefaultNetworkConfigurationIds.testnet4]: networkTestnet4,\n [WalletDefaultNetworkConfigurationIds.testnet]: networkTestnet,\n [WalletDefaultNetworkConfigurationIds.signet]: networkSignet,\n [WalletDefaultNetworkConfigurationIds.sbtcTestnet]: networkSbtcTestnet,\n [WalletDefaultNetworkConfigurationIds.sbtcDevenv]: networkSbtcDevenv,\n [WalletDefaultNetworkConfigurationIds.devnet]: networkDevnet,\n};\n","import { z } from 'zod';\n\nimport { bitcoinNetworks, networkModes, testnetModes } from './network.model';\n\nexport const bitcoinNetworkModesSchema = z.enum([...networkModes, ...testnetModes]);\n\nexport const bitcoinNetworkSchema = z.enum([...bitcoinNetworks]);\n\nexport const networkConfigurationSchema = z.object({\n name: z.string(),\n id: z.string(),\n chain: z.object({\n bitcoin: z.object({\n blockchain: z.literal('bitcoin'),\n bitcoinUrl: z.string(),\n bitcoinNetwork: bitcoinNetworkSchema,\n mode: bitcoinNetworkModesSchema,\n }),\n stacks: z.object({\n blockchain: z.literal('stacks'),\n url: z.string(),\n chainId: z.number(),\n subnetChainId: z.number().optional(),\n }),\n }),\n});\n","import { z } from 'zod';\n\nimport { Blockchain } from './types';\n\nexport const accountDisplayPreferenceSchema = z.enum(['native-segwit', 'taproot', 'bns', 'stacks']);\nexport type AccountDisplayPreference = z.infer<typeof accountDisplayPreferenceSchema>;\n\nexport interface AccountDisplayPreferenceInfo {\n type: AccountDisplayPreference;\n blockchain: Blockchain;\n name: string;\n}\n\nexport const analyticsPreferenceSchema = z.enum(['consent-given', 'rejects-tracking']);\nexport type AnalyticsPreference = z.infer<typeof analyticsPreferenceSchema>;\n\nexport const emailAddressSchema = z.email({ error: 'Invalid email address' });\nexport type EmailAddress = z.infer<typeof emailAddressSchema>;\n","import { CryptoAssetId } from '../assets/asset-id.model';\nimport { NativeCryptoAsset, Sip10Asset } from '../assets/asset.model';\nimport { Money } from '../money.model';\n\nexport type SwappableFungibleCryptoAsset = NativeCryptoAsset | Sip10Asset;\n\nexport interface SwapAsset {\n readonly asset: SwappableFungibleCryptoAsset;\n readonly providerAssets: SwapProviderAsset[];\n}\n\nexport const swapProviderIds = ['bitflow-sdk', 'sbtc-bridge', 'alex-sdk', 'velar-sdk'] as const;\nexport type SwapProviderId = (typeof swapProviderIds)[number];\n\nexport interface SwapProvider {\n readonly id: SwapProviderId;\n readonly isAggregator: boolean;\n}\n\nexport interface SwapProviderAsset {\n readonly providerId: SwapProviderId;\n readonly providerAssetId: string;\n readonly assetId: CryptoAssetId;\n}\n\nexport type SwapQuote =\n | AlexSdkSwapQuote\n | VelarSdkSwapQuote\n | BitflowSdkSwapQuote\n | SbtcBridgeSwapQuote;\n\nexport interface BaseSwapQuote {\n readonly executionType: SwapExecutionType;\n readonly providerId: SwapProviderId;\n readonly baseAsset: SwappableFungibleCryptoAsset;\n readonly targetAsset: SwappableFungibleCryptoAsset;\n readonly baseAmount: Money;\n readonly targetAmount: Money;\n readonly dexPath: SwapDex[];\n readonly assetPath: (NativeCryptoAsset | Sip10Asset)[];\n readonly isExecutable: boolean;\n readonly executionConstraints: ExecutionConstraint[];\n readonly createdAt: Date;\n}\n\nexport interface ExecutionConstraint {\n readonly reason: 'minimum-threshold-not-met' | 'maximum-threshold-exceeded';\n readonly threshold: Money;\n}\n\nexport interface AlexSdkSwapQuote extends BaseSwapQuote {\n readonly providerId: 'alex-sdk';\n readonly providerQuoteData: {\n baseProviderAssetId: string;\n targetProviderAssetId: string;\n alexSdkAmmRoute: unknown;\n };\n}\n\nexport interface VelarSdkSwapQuote extends BaseSwapQuote {\n readonly providerId: 'velar-sdk';\n providerQuoteData: {\n readonly baseProviderAssetId: string;\n readonly targetProviderAssetId: string;\n };\n}\n\nexport interface BitflowSdkSwapQuote extends BaseSwapQuote {\n readonly providerId: 'bitflow-sdk';\n readonly providerQuoteData: {\n bitflowSdkSelectedSwapRoute: unknown;\n };\n}\n\nexport interface SbtcBridgeSwapQuote extends BaseSwapQuote {\n readonly providerId: 'sbtc-bridge';\n}\n\nexport interface SwapDex {\n readonly name: string;\n readonly url: string;\n readonly logo: string;\n readonly description: string;\n}\n\nexport const swapExecutionTypes = ['stacks-contract-call', 'sbtc-bridge-transfer'] as const;\nexport type SwapExecutionType = (typeof swapExecutionTypes)[number];\n\nexport interface BaseSwapExecutionData {\n readonly executionType: SwapExecutionType;\n readonly providerId: SwapProviderId;\n readonly quote: SwapQuote;\n}\nexport interface StacksContractCallSwapExecutionData extends BaseSwapExecutionData {\n readonly executionType: 'stacks-contract-call';\n readonly quote: SwapQuote;\n readonly contractAddress: string;\n readonly contractName: string;\n readonly functionName: string;\n readonly functionArgs: unknown[];\n readonly postConditions: unknown[];\n readonly postConditionMode?: unknown;\n}\nexport interface SbtcBridgeTransferSwapExecutionData extends BaseSwapExecutionData {\n readonly executionType: 'sbtc-bridge-transfer';\n}\nexport type SwapExecutionData =\n | StacksContractCallSwapExecutionData\n | SbtcBridgeTransferSwapExecutionData;\n","export const YieldProviderKeys = {\n bitflow: 'bitflow',\n zest: 'zest',\n granite: 'granite',\n stackingDao: 'stackingdao',\n lisa: 'lisa',\n hermetica: 'hermetica',\n fastPool: 'fast-pool',\n xverse: 'xverse',\n velar: 'velar',\n} as const;\nexport type YieldProviderKey = (typeof YieldProviderKeys)[keyof typeof YieldProviderKeys];\n\nexport interface YieldProvider {\n readonly key: YieldProviderKey;\n readonly name: string;\n readonly logo: string;\n readonly url: string;\n}\n","import { YieldProviderKey, YieldProviderKeys } from './yield-provider.model';\n\nexport const YieldProductKeys = {\n bitflowAmmLp: 'bitflow-amm-lp',\n bitflowAmmStaking: 'bitflow-amm-staking',\n zestBorrowMarket: 'zest-borrow-market',\n graniteV1Earn: 'granite-v1-earn',\n graniteV1Borrow: 'granite-v1-borrow',\n stackingDaoStstx: 'stackingdao-ststx',\n stackingDaoStstxbtc: 'stackingdao-ststxbtc',\n stackingDaoPooledStacking: 'stackingdao-pooled-stacking',\n lisaListx: 'lisa-listx',\n lisaLiquidStaking: 'lisa-liquid-staking',\n hermeticaUsdhStaking: 'hermetica-usdh-staking',\n velarAmmLp: 'velar-amm-lp',\n velarPerps: 'velar-perps',\n velarAmmLpFarming: 'velar-amm-lp-farming',\n fastPoolPooledStacking: 'fast-pool-pooled-stacking',\n xversePooledStacking: 'xverse-pooled-stacking',\n} as const;\nexport type YieldProductKey = (typeof YieldProductKeys)[keyof typeof YieldProductKeys];\n\nexport const YieldProductCategories = {\n AMM: 'amm',\n LENDING: 'lending',\n LIQUID_STACKING: 'liquid-stacking',\n POOLED_STACKING: 'pooled-stacking',\n STAKING: 'staking',\n PERPS: 'perps',\n} as const;\nexport type YieldProductCategory =\n (typeof YieldProductCategories)[keyof typeof YieldProductCategories];\n\nexport const YieldProductToProviderMap = {\n [YieldProductKeys.bitflowAmmLp]: YieldProviderKeys.bitflow,\n [YieldProductKeys.bitflowAmmStaking]: YieldProviderKeys.bitflow,\n [YieldProductKeys.zestBorrowMarket]: YieldProviderKeys.zest,\n [YieldProductKeys.graniteV1Earn]: YieldProviderKeys.granite,\n [YieldProductKeys.graniteV1Borrow]: YieldProviderKeys.granite,\n [YieldProductKeys.stackingDaoStstx]: YieldProviderKeys.stackingDao,\n [YieldProductKeys.stackingDaoStstxbtc]: YieldProviderKeys.stackingDao,\n [YieldProductKeys.stackingDaoPooledStacking]: YieldProviderKeys.stackingDao,\n [YieldProductKeys.lisaListx]: YieldProviderKeys.lisa,\n [YieldProductKeys.lisaLiquidStaking]: YieldProviderKeys.lisa,\n [YieldProductKeys.hermeticaUsdhStaking]: YieldProviderKeys.hermetica,\n [YieldProductKeys.velarAmmLp]: YieldProviderKeys.velar,\n [YieldProductKeys.velarPerps]: YieldProviderKeys.velar,\n [YieldProductKeys.velarAmmLpFarming]: YieldProviderKeys.velar,\n [YieldProductKeys.fastPoolPooledStacking]: YieldProviderKeys.fastPool,\n [YieldProductKeys.xversePooledStacking]: YieldProviderKeys.xverse,\n} as const;\n\nexport type YieldProduct = BaseYieldProduct | PooledStackingYieldProduct;\n\nexport interface BaseYieldProduct {\n readonly key: YieldProductKey;\n readonly provider: YieldProviderKey;\n readonly category: YieldProductCategory;\n readonly name: string;\n readonly url: string;\n}\n\n// normalizes pooled stacking product data\nexport interface PooledStackingYieldProduct extends BaseYieldProduct {\n readonly category: 'pooled-stacking';\n readonly stackerCount: number;\n}\n","import type {\n BitflowAmmLpPosition,\n BitflowAmmStakingPosition,\n} from '../providers/bitflow-position.model';\nimport type {\n GraniteV1BorrowPosition,\n GraniteV1EarnPosition,\n} from '../providers/granite-position.model';\nimport type {\n StackingDaoPooledStackingPosition,\n StackingDaoStStxBtcPosition,\n StackingDaoStStxPosition,\n} from '../providers/stacking-dao-position.model';\nimport type { ZestBorrowMarketPosition } from '../providers/zest-position.model';\nimport type { YieldPosition } from '../yield-position.model';\nimport {\n YieldProduct,\n YieldProductCategories,\n YieldProductCategory,\n YieldProductKey,\n YieldProductKeys,\n YieldProductToProviderMap,\n} from '../yield-product.model';\nimport { YieldProvider, YieldProviderKey } from '../yield-provider.model';\n\nexport function isBitflowAmmLpPosition(pos: YieldPosition): pos is BitflowAmmLpPosition {\n return pos.product === YieldProductKeys.bitflowAmmLp;\n}\n\nexport function isBitflowAmmStakingPosition(pos: YieldPosition): pos is BitflowAmmStakingPosition {\n return pos.product === YieldProductKeys.bitflowAmmStaking;\n}\n\nexport function isZestPosition(pos: YieldPosition): pos is ZestBorrowMarketPosition {\n return pos.product === YieldProductKeys.zestBorrowMarket;\n}\n\nexport function isGraniteEarnPosition(pos: YieldPosition): pos is GraniteV1EarnPosition {\n return pos.product === YieldProductKeys.graniteV1Earn;\n}\n\nexport function isGraniteBorrowPosition(pos: YieldPosition): pos is GraniteV1BorrowPosition {\n return pos.product === YieldProductKeys.graniteV1Borrow;\n}\n\nexport function isStackingDaoStStxPosition(pos: YieldPosition): pos is StackingDaoStStxPosition {\n return pos.product === YieldProductKeys.stackingDaoStstx;\n}\n\nexport function isStackingDaoStStxBtcPosition(\n pos: YieldPosition\n): pos is StackingDaoStStxBtcPosition {\n return pos.product === YieldProductKeys.stackingDaoStstxbtc;\n}\n\nexport function isStackingDaoPooledPosition(\n pos: YieldPosition\n): pos is StackingDaoPooledStackingPosition {\n return pos.product === YieldProductKeys.stackingDaoPooledStacking;\n}\n\nexport function filterPositionsByProvider(\n positions: YieldPosition[],\n provider: YieldProviderKey\n): YieldPosition[] {\n return positions.filter(p => p.provider === provider);\n}\n\nexport function filterPositionsByProduct(\n positions: YieldPosition[],\n product: YieldProductKey\n): YieldPosition[] {\n return positions.filter(p => p.product === product);\n}\n\nexport function filterPositionsByCategory(\n positions: YieldPosition[],\n products: YieldProduct[],\n category: YieldProductCategory\n): YieldPosition[] {\n const productMap = new Map(products.map(p => [p.key, p]));\n return positions.filter(pos => productMap.get(pos.product)?.category === category);\n}\n\nexport function sortPositionsByBalance(\n positions: YieldPosition[],\n ascending = false\n): YieldPosition[] {\n return [...positions].sort((a, b) => {\n const diff = a.totalBalance.amount.comparedTo(b.totalBalance.amount);\n return ascending ? diff : -diff;\n });\n}\n\nexport function sortPositionsByApy(positions: YieldPosition[], ascending = false): YieldPosition[] {\n return [...positions].sort((a, b) => {\n const apyA = a.apy;\n const apyB = b.apy;\n return ascending ? apyA - apyB : apyB - apyA;\n });\n}\n\nexport function sortPositionsByUpdateTime(\n positions: YieldPosition[],\n ascending = false\n): YieldPosition[] {\n return [...positions].sort((a, b) => {\n const timeA = 'updatedAt' in a && a.updatedAt instanceof Date ? a.updatedAt.getTime() : 0;\n const timeB = 'updatedAt' in b && b.updatedAt instanceof Date ? b.updatedAt.getTime() : 0;\n return ascending ? timeA - timeB : timeB - timeA;\n });\n}\n\nexport function getProviderForProduct(product: YieldProductKey): YieldProviderKey {\n return YieldProductToProviderMap[product];\n}\n\nexport function getCategoryForProduct(product: YieldProduct): YieldProductCategory {\n return product.category;\n}\n\nexport function isProductInProvider(product: YieldProductKey, provider: YieldProviderKey): boolean {\n return YieldProductToProviderMap[product] === provider;\n}\n\nexport function getProductsForProvider(provider: YieldProviderKey): YieldProductKey[] {\n return Object.entries(YieldProductToProviderMap)\n .filter(([_, p]) => p === provider)\n .map(([product]) => product as YieldProductKey);\n}\n\nexport function getProductsInCategory(\n products: YieldProduct[],\n category: YieldProductCategory\n): YieldProduct[] {\n return products.filter(p => p.category === category);\n}\n\nexport function groupPositionsByProvider(\n positions: YieldPosition[]\n): Record<YieldProviderKey, YieldPosition[]> {\n const grouped: Partial<Record<YieldProviderKey, YieldPosition[]>> = {};\n\n for (const position of positions) {\n const provider = position.provider;\n if (!grouped[provider]) {\n grouped[provider] = [];\n }\n grouped[provider].push(position);\n }\n\n return grouped as Record<YieldProviderKey, YieldPosition[]>;\n}\n\nexport function groupPositionsByCategory(\n positions: YieldPosition[],\n products: YieldProduct[]\n): Record<string, YieldPosition[]> {\n const grouped: Record<string, YieldPosition[]> = {};\n const productMap = new Map(products.map(p => [p.key, p]));\n\n for (const position of positions) {\n const product = productMap.get(position.product);\n if (!product) continue;\n\n const category = product.category;\n if (!grouped[category]) {\n grouped[category] = [];\n }\n grouped[category].push(position);\n }\n\n return grouped;\n}\n\nexport function getPositionsInCategories(\n positions: YieldPosition[],\n products: YieldProduct[],\n categories: YieldProductCategory[]\n): YieldPosition[] {\n const categorySet = new Set(categories);\n const productMap = new Map(products.map(p => [p.key, p]));\n return positions.filter(pos => {\n const product = productMap.get(pos.product);\n return product && categorySet.has(product.category);\n });\n}\n\nexport function hasPositionsInProvider(\n positions: YieldPosition[],\n provider: YieldProviderKey\n): boolean {\n return positions.some(p => p.provider === provider);\n}\n\nexport function hasPositionsInCategory(\n positions: YieldPosition[],\n products: YieldProduct[],\n category: YieldProductCategory\n): boolean {\n const productMap = new Map(products.map(p => [p.key, p]));\n return positions.some(pos => productMap.get(pos.product)?.category === category);\n}\n\nexport function enrichPositionWithProvider<T extends YieldPosition>(\n position: T,\n provider: YieldProvider\n): T & { providerData: YieldProvider } {\n return { ...position, providerData: provider };\n}\n\nexport function enrichPositionWithProduct<T extends YieldPosition>(\n position: T,\n product: YieldProduct\n): T & { productData: YieldProduct } {\n return { ...position, productData: product };\n}\n\nexport function enrichPositionWithMetadata<T extends YieldPosition>(\n position: T,\n provider: YieldProvider,\n product: YieldProduct\n): T & { providerData: YieldProvider; productData: YieldProduct } {\n return { ...position, providerData: provider, productData: product };\n}\n\nexport function getCategoryDisplayName(category: YieldProductCategory): string {\n const displayNames: Record<YieldProductCategory, string> = {\n [YieldProductCategories.AMM]: 'Liquidity Pools',\n [YieldProductCategories.LENDING]: 'Lending & Borrowing',\n [YieldProductCategories.LIQUID_STACKING]: 'Liquid Stacking',\n [YieldProductCategories.POOLED_STACKING]: 'Pooled Stacking',\n [YieldProductCategories.STAKING]: 'Staking',\n [YieldProductCategories.PERPS]: 'Perpetuals',\n };\n return displayNames[category] || category;\n}\n"],"mappings":";;;AAEA,MAAa,iBAAiB,EAAE,OAAO,EACrC,aAAa,EAAE,QAAQ,EACxB,CAAC;AAEF,MAAa,kBAAkB,eAAe,IAAI,EAAE,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,CAAC,CAAC;AAEzF,MAAa,2BAA2B,EAAE,OAAO;CAC/C,mBAAmB,EAAE,QAAQ;CAC7B,wBAAwB,EAAE,QAAQ;CAClC,8BAA8B,EAAE,QAAQ,CAAC,UAAU;CACnD,mCAAmC,EAAE,QAAQ,CAAC,UAAU;CACzD,CAAC;AAEF,MAAa,0BAA0B,EAAE,OAAO,EAC9C,YAAY,EAAE,QAAQ,EACvB,CAAC;AAEF,MAAa,yBAAyB,EAAE,OAAO;CAC7C,IAAI;CACJ,SAAS,yBAAyB,UAAU;CAC5C,QAAQ,wBAAwB,UAAU;CAC3C,CAAC;;;;ACvBF,MAAa,iBAAiB;CAC5B,SAAS;CACT,KAAK;CACN;;;;ACHD,MAAa,0BAA0B;CACrC,SAAS;CACT,SAAS;CACT,QAAQ;CACT;;;;ACJD,MAAa,uBAAuB;CAClC,qBAAqB;CACrB,sBAAsB;CACtB,WAAW;CACX,WAAW;CACX,cAAc;CACd,YAAY;CACb;AAGD,MAAa,sBAAsB;CACjC,YAAY;CACZ,aAAa;CACd;AAGD,MAAa,uBAAuB;CAClC,aAAa;CACb,qBAAqB;CACrB,6BAA6B;CAC9B;;;;ACHD,SAAgB,gBAA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kBAAkB;GACzC,uBAAuB,kBAAkB;GACzC,uBAAuB,UAAU;GACjC,uBAAuB,QAAQ;EACjC,CACmB,aAAa"}
|
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.51.0",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://github.com/leather-io/mono/tree/dev/packages/models",
|
|
8
8
|
"repository": {
|
|
@@ -22,6 +22,10 @@ export const STX20_API_BASE_URL_MAINNET = 'https://api.stx20.com/api/v1';
|
|
|
22
22
|
|
|
23
23
|
export const BNS_V2_API_BASE_URL = 'https://api.bnsv2.com';
|
|
24
24
|
|
|
25
|
+
export const EMILY_API_BASE_URL_MAINNET = 'https://sbtc-emily.com';
|
|
26
|
+
export const EMILY_API_BASE_URL_TESTNET = 'https://beta.sbtc-emily.com';
|
|
27
|
+
export const EMILY_API_BASE_URL_DEVENV = 'http://localhost:3031';
|
|
28
|
+
|
|
25
29
|
// Copied from @stacks/transactions to avoid dependencies
|
|
26
30
|
export enum ChainId {
|
|
27
31
|
Testnet = 2147483648,
|
package/src/swap/swap.model.ts
CHANGED
|
@@ -5,22 +5,22 @@ import { Money } from '../money.model';
|
|
|
5
5
|
export type SwappableFungibleCryptoAsset = NativeCryptoAsset | Sip10Asset;
|
|
6
6
|
|
|
7
7
|
export interface SwapAsset {
|
|
8
|
-
asset: SwappableFungibleCryptoAsset;
|
|
9
|
-
providerAssets: SwapProviderAsset[];
|
|
8
|
+
readonly asset: SwappableFungibleCryptoAsset;
|
|
9
|
+
readonly providerAssets: SwapProviderAsset[];
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
export const swapProviderIds = ['bitflow-sdk', 'sbtc-bridge', 'alex-sdk', 'velar-sdk'] as const;
|
|
13
13
|
export type SwapProviderId = (typeof swapProviderIds)[number];
|
|
14
14
|
|
|
15
15
|
export interface SwapProvider {
|
|
16
|
-
id: SwapProviderId;
|
|
17
|
-
isAggregator: boolean;
|
|
16
|
+
readonly id: SwapProviderId;
|
|
17
|
+
readonly isAggregator: boolean;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
export interface SwapProviderAsset {
|
|
21
|
-
providerId: SwapProviderId;
|
|
22
|
-
providerAssetId: string;
|
|
23
|
-
assetId: CryptoAssetId;
|
|
21
|
+
readonly providerId: SwapProviderId;
|
|
22
|
+
readonly providerAssetId: string;
|
|
23
|
+
readonly assetId: CryptoAssetId;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
export type SwapQuote =
|
|
@@ -30,20 +30,27 @@ export type SwapQuote =
|
|
|
30
30
|
| SbtcBridgeSwapQuote;
|
|
31
31
|
|
|
32
32
|
export interface BaseSwapQuote {
|
|
33
|
-
executionType: SwapExecutionType;
|
|
34
|
-
providerId: SwapProviderId;
|
|
35
|
-
baseAsset: SwappableFungibleCryptoAsset;
|
|
36
|
-
targetAsset: SwappableFungibleCryptoAsset;
|
|
37
|
-
baseAmount: Money;
|
|
38
|
-
targetAmount: Money;
|
|
39
|
-
dexPath: SwapDex[];
|
|
40
|
-
assetPath: (NativeCryptoAsset | Sip10Asset)[];
|
|
41
|
-
|
|
33
|
+
readonly executionType: SwapExecutionType;
|
|
34
|
+
readonly providerId: SwapProviderId;
|
|
35
|
+
readonly baseAsset: SwappableFungibleCryptoAsset;
|
|
36
|
+
readonly targetAsset: SwappableFungibleCryptoAsset;
|
|
37
|
+
readonly baseAmount: Money;
|
|
38
|
+
readonly targetAmount: Money;
|
|
39
|
+
readonly dexPath: SwapDex[];
|
|
40
|
+
readonly assetPath: (NativeCryptoAsset | Sip10Asset)[];
|
|
41
|
+
readonly isExecutable: boolean;
|
|
42
|
+
readonly executionConstraints: ExecutionConstraint[];
|
|
43
|
+
readonly createdAt: Date;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export interface ExecutionConstraint {
|
|
47
|
+
readonly reason: 'minimum-threshold-not-met' | 'maximum-threshold-exceeded';
|
|
48
|
+
readonly threshold: Money;
|
|
42
49
|
}
|
|
43
50
|
|
|
44
51
|
export interface AlexSdkSwapQuote extends BaseSwapQuote {
|
|
45
|
-
providerId: 'alex-sdk';
|
|
46
|
-
providerQuoteData: {
|
|
52
|
+
readonly providerId: 'alex-sdk';
|
|
53
|
+
readonly providerQuoteData: {
|
|
47
54
|
baseProviderAssetId: string;
|
|
48
55
|
targetProviderAssetId: string;
|
|
49
56
|
alexSdkAmmRoute: unknown;
|
|
@@ -51,51 +58,51 @@ export interface AlexSdkSwapQuote extends BaseSwapQuote {
|
|
|
51
58
|
}
|
|
52
59
|
|
|
53
60
|
export interface VelarSdkSwapQuote extends BaseSwapQuote {
|
|
54
|
-
providerId: 'velar-sdk';
|
|
61
|
+
readonly providerId: 'velar-sdk';
|
|
55
62
|
providerQuoteData: {
|
|
56
|
-
baseProviderAssetId: string;
|
|
57
|
-
targetProviderAssetId: string;
|
|
63
|
+
readonly baseProviderAssetId: string;
|
|
64
|
+
readonly targetProviderAssetId: string;
|
|
58
65
|
};
|
|
59
66
|
}
|
|
60
67
|
|
|
61
68
|
export interface BitflowSdkSwapQuote extends BaseSwapQuote {
|
|
62
|
-
providerId: 'bitflow-sdk';
|
|
63
|
-
providerQuoteData: {
|
|
69
|
+
readonly providerId: 'bitflow-sdk';
|
|
70
|
+
readonly providerQuoteData: {
|
|
64
71
|
bitflowSdkSelectedSwapRoute: unknown;
|
|
65
72
|
};
|
|
66
73
|
}
|
|
67
74
|
|
|
68
75
|
export interface SbtcBridgeSwapQuote extends BaseSwapQuote {
|
|
69
|
-
providerId: 'sbtc-bridge';
|
|
76
|
+
readonly providerId: 'sbtc-bridge';
|
|
70
77
|
}
|
|
71
78
|
|
|
72
79
|
export interface SwapDex {
|
|
73
|
-
name: string;
|
|
74
|
-
url: string;
|
|
75
|
-
logo: string;
|
|
76
|
-
description: string;
|
|
80
|
+
readonly name: string;
|
|
81
|
+
readonly url: string;
|
|
82
|
+
readonly logo: string;
|
|
83
|
+
readonly description: string;
|
|
77
84
|
}
|
|
78
85
|
|
|
79
86
|
export const swapExecutionTypes = ['stacks-contract-call', 'sbtc-bridge-transfer'] as const;
|
|
80
87
|
export type SwapExecutionType = (typeof swapExecutionTypes)[number];
|
|
81
88
|
|
|
82
89
|
export interface BaseSwapExecutionData {
|
|
83
|
-
executionType: SwapExecutionType;
|
|
84
|
-
providerId: SwapProviderId;
|
|
85
|
-
quote: SwapQuote;
|
|
90
|
+
readonly executionType: SwapExecutionType;
|
|
91
|
+
readonly providerId: SwapProviderId;
|
|
92
|
+
readonly quote: SwapQuote;
|
|
86
93
|
}
|
|
87
94
|
export interface StacksContractCallSwapExecutionData extends BaseSwapExecutionData {
|
|
88
|
-
executionType: 'stacks-contract-call';
|
|
89
|
-
quote: SwapQuote;
|
|
90
|
-
contractAddress: string;
|
|
91
|
-
contractName: string;
|
|
92
|
-
functionName: string;
|
|
93
|
-
functionArgs: unknown[];
|
|
94
|
-
postConditions: unknown[];
|
|
95
|
-
postConditionMode?: unknown;
|
|
95
|
+
readonly executionType: 'stacks-contract-call';
|
|
96
|
+
readonly quote: SwapQuote;
|
|
97
|
+
readonly contractAddress: string;
|
|
98
|
+
readonly contractName: string;
|
|
99
|
+
readonly functionName: string;
|
|
100
|
+
readonly functionArgs: unknown[];
|
|
101
|
+
readonly postConditions: unknown[];
|
|
102
|
+
readonly postConditionMode?: unknown;
|
|
96
103
|
}
|
|
97
104
|
export interface SbtcBridgeTransferSwapExecutionData extends BaseSwapExecutionData {
|
|
98
|
-
executionType: 'sbtc-bridge-transfer';
|
|
105
|
+
readonly executionType: 'sbtc-bridge-transfer';
|
|
99
106
|
}
|
|
100
107
|
export type SwapExecutionData =
|
|
101
108
|
| StacksContractCallSwapExecutionData
|