@leather.io/models 0.53.0 → 0.55.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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @leather.io/models@0.53.0 build /home/runner/work/mono/mono/packages/models
2
+ > @leather.io/models@0.55.0 build /home/runner/work/mono/mono/packages/models
3
3
  > tsdown
4
4
 
5
5
  ℹ tsdown v0.16.5 powered by rolldown v1.0.0-beta.50
@@ -7,9 +7,9 @@
7
7
  ℹ entry: src/index.ts
8
8
  ℹ tsconfig: tsconfig.json
9
9
  ℹ Build start
10
- ℹ dist/index.js 23.02 kB │ gzip: 5.37 kB
11
- ℹ dist/index.js.map 52.03 kB │ gzip: 11.02 kB
12
- ℹ dist/index.d.ts.map 19.93 kB │ gzip: 7.73 kB
13
- ℹ dist/index.d.ts 51.71 kB │ gzip: 10.33 kB
14
- ℹ 4 files, total: 146.68 kB
15
- ✔ Build complete in 2770ms
10
+ ℹ dist/index.js 23.32 kB │ gzip: 5.50 kB
11
+ ℹ dist/index.js.map 52.78 kB │ gzip: 11.17 kB
12
+ ℹ dist/index.d.ts.map 20.73 kB │ gzip: 8.02 kB
13
+ ℹ dist/index.d.ts 53.50 kB │ gzip: 10.67 kB
14
+ ℹ 4 files, total: 150.33 kB
15
+ ✔ Build complete in 2771ms
package/CHANGELOG.md CHANGED
@@ -36,6 +36,21 @@
36
36
  * devDependencies
37
37
  * @leather.io/prettier-config bumped to 0.9.0
38
38
 
39
+ ## [0.55.0](https://github.com/leather-io/mono/compare/@leather.io/models-v0.54.0...@leather.io/models-v0.55.0) (2026-03-05)
40
+
41
+
42
+ ### Features
43
+
44
+ * **services:** activity v2 ([ae29c23](https://github.com/leather-io/mono/commit/ae29c23a6001bffc5ab81c89400e2d9768930478))
45
+ * **services:** integrate bitflow bff api ([8256079](https://github.com/leather-io/mono/commit/8256079c4b1c5760fbaa51f978cdabf8817a0e0a))
46
+
47
+ ## [0.54.0](https://github.com/leather-io/mono/compare/@leather.io/models-v0.53.0...@leather.io/models-v0.54.0) (2026-03-02)
48
+
49
+
50
+ ### Features
51
+
52
+ * **models,services:** unify SwapDex and YieldProvider into StacksProtocol model ([0d7f44c](https://github.com/leather-io/mono/commit/0d7f44cb2961c57aa0730066b39697e5ab7ca632))
53
+
39
54
  ## [0.53.0](https://github.com/leather-io/mono/compare/@leather.io/models-v0.52.0...@leather.io/models-v0.53.0) (2026-02-09)
40
55
 
41
56
 
package/dist/index.d.ts CHANGED
@@ -380,6 +380,65 @@ type OnChainActivity = DeploySmartContractActivity | ExecuteSmartContractActivit
380
380
  type WalletActivity = ConnectAppActivity | SignMessageActivity;
381
381
  type Activity = OnChainActivity | WalletActivity | GeneralActivity;
382
382
  //#endregion
383
+ //#region src/protocols/stacks-protocol.model.d.ts
384
+ declare const StacksProtocolIds: {
385
+ readonly alex: "alex";
386
+ readonly arkadiko: "arkadiko";
387
+ readonly bitflow: "bitflow";
388
+ readonly fastPool: "fast-pool";
389
+ readonly granite: "granite";
390
+ readonly hermetica: "hermetica";
391
+ readonly sbtcBridge: "sbtc-bridge";
392
+ readonly stackingDao: "stacking-dao";
393
+ readonly velar: "velar";
394
+ readonly xverse: "xverse";
395
+ readonly zest: "zest";
396
+ };
397
+ type StacksProtocolId = (typeof StacksProtocolIds)[keyof typeof StacksProtocolIds];
398
+ interface StacksProtocol {
399
+ readonly id: StacksProtocolId;
400
+ readonly name: string;
401
+ readonly url: string;
402
+ readonly logo: string;
403
+ readonly description?: string;
404
+ }
405
+ declare const stacksProtocolActions: readonly ["swap", "add-liquidity", "remove-liquidity", "stake", "unstake", "stack", "unstack", "deposit", "withdraw", "borrow", "repay", "claim-rewards", "bridge"];
406
+ type StacksProtocolAction = (typeof stacksProtocolActions)[number];
407
+ //#endregion
408
+ //#region src/activity/blockchain-activity.model.d.ts
409
+ interface BlockchainActivityContractCall {
410
+ readonly type: 'call';
411
+ readonly contractId: string;
412
+ readonly functionName: string;
413
+ readonly protocol?: StacksProtocolId;
414
+ readonly action?: StacksProtocolAction;
415
+ }
416
+ interface BlockchainActivityContractDeploy {
417
+ readonly type: 'deploy';
418
+ readonly contractId: string;
419
+ }
420
+ type BlockchainActivityEventAction = 'sent' | 'received' | 'locked' | 'minted' | 'burned';
421
+ interface BlockchainActivityEvent {
422
+ readonly action: BlockchainActivityEventAction;
423
+ readonly asset: CryptoAsset;
424
+ readonly counterparty?: string;
425
+ readonly amount: {
426
+ readonly crypto: Money;
427
+ readonly quote: Money;
428
+ };
429
+ }
430
+ interface BlockchainActivity {
431
+ readonly timestamp: number;
432
+ readonly txid: string;
433
+ readonly blockHeight?: number;
434
+ readonly fee?: Money;
435
+ readonly status: OnChainActivityStatus;
436
+ readonly chain: CryptoAssetChain;
437
+ readonly initiatedByUser: boolean;
438
+ readonly events: BlockchainActivityEvent[];
439
+ readonly contract?: BlockchainActivityContractCall | BlockchainActivityContractDeploy;
440
+ }
441
+ //#endregion
383
442
  //#region src/assets/asset-id.model.d.ts
384
443
  interface CryptoAssetId {
385
444
  protocol: CryptoAssetProtocol;
@@ -756,7 +815,7 @@ interface SwapAsset {
756
815
  readonly asset: SwappableFungibleCryptoAsset;
757
816
  readonly providerAssets: SwapProviderAsset[];
758
817
  }
759
- declare const swapProviderIds: readonly ["bitflow-sdk", "sbtc-bridge", "alex-sdk", "velar-sdk"];
818
+ declare const swapProviderIds: readonly ["bitflow-sdk", "bitflow-bff-api", "sbtc-bridge", "alex-sdk", "velar-sdk"];
760
819
  type SwapProviderId = (typeof swapProviderIds)[number];
761
820
  interface SwapProvider {
762
821
  readonly id: SwapProviderId;
@@ -767,7 +826,7 @@ interface SwapProviderAsset {
767
826
  readonly providerAssetId: string;
768
827
  readonly assetId: CryptoAssetId;
769
828
  }
770
- type SwapQuote = AlexSdkSwapQuote | VelarSdkSwapQuote | BitflowSdkSwapQuote | SbtcBridgeSwapQuote;
829
+ type SwapQuote = AlexSdkSwapQuote | VelarSdkSwapQuote | BitflowSdkSwapQuote | BitflowBffApiSwapQuote | SbtcBridgeSwapQuote;
771
830
  interface BaseSwapQuote {
772
831
  readonly executionType: SwapExecutionType;
773
832
  readonly providerId: SwapProviderId;
@@ -775,7 +834,7 @@ interface BaseSwapQuote {
775
834
  readonly targetAsset: SwappableFungibleCryptoAsset;
776
835
  readonly baseAmount: Money;
777
836
  readonly targetAmount: Money;
778
- readonly dexPath: SwapDex[];
837
+ readonly dexPath: StacksProtocol[];
779
838
  readonly assetPath: (NativeCryptoAsset | Sip10Asset)[];
780
839
  readonly isExecutable: boolean;
781
840
  readonly executionConstraints: ExecutionConstraint[];
@@ -806,18 +865,18 @@ interface BitflowSdkSwapQuote extends BaseSwapQuote {
806
865
  bitflowSdkSelectedSwapRoute: unknown;
807
866
  };
808
867
  }
868
+ interface BitflowBffApiSwapQuote extends BaseSwapQuote {
869
+ readonly providerId: 'bitflow-bff-api';
870
+ readonly providerQuoteData: {
871
+ bitflowBffApiQuote: unknown;
872
+ };
873
+ }
809
874
  interface SbtcBridgeSwapQuote extends BaseSwapQuote {
810
875
  readonly providerId: 'sbtc-bridge';
811
876
  readonly providerQuoteData: {
812
877
  signerSweepTxFeeSats: number;
813
878
  };
814
879
  }
815
- interface SwapDex {
816
- readonly name: string;
817
- readonly url: string;
818
- readonly logo: string;
819
- readonly description: string;
820
- }
821
880
  declare const swapExecutionTypes: readonly ["stacks-contract-call", "sbtc-bridge-deposit"];
822
881
  type SwapExecutionType = (typeof swapExecutionTypes)[number];
823
882
  interface BaseSwapExecutionData {
@@ -851,7 +910,7 @@ interface TokenHolderSegment {
851
910
  readonly count: number;
852
911
  readonly balance: number;
853
912
  };
854
- readonly individuals: {
913
+ readonly standard: {
855
914
  readonly count: number;
856
915
  readonly balance: number;
857
916
  };
@@ -991,26 +1050,6 @@ interface OwnedUtxo extends Utxo {
991
1050
  readonly keyOrigin: string;
992
1051
  }
993
1052
  //#endregion
994
- //#region src/yield/yield-provider.model.d.ts
995
- declare const YieldProviderKeys: {
996
- readonly bitflow: "bitflow";
997
- readonly zest: "zest";
998
- readonly granite: "granite";
999
- readonly stackingDao: "stackingdao";
1000
- readonly lisa: "lisa";
1001
- readonly hermetica: "hermetica";
1002
- readonly fastPool: "fast-pool";
1003
- readonly xverse: "xverse";
1004
- readonly velar: "velar";
1005
- };
1006
- type YieldProviderKey = (typeof YieldProviderKeys)[keyof typeof YieldProviderKeys];
1007
- interface YieldProvider {
1008
- readonly key: YieldProviderKey;
1009
- readonly name: string;
1010
- readonly logo: string;
1011
- readonly url: string;
1012
- }
1013
- //#endregion
1014
1053
  //#region src/yield/yield-product.model.d.ts
1015
1054
  declare const YieldProductKeys: {
1016
1055
  readonly bitflowAmmLp: "bitflow-amm-lp";
@@ -1046,11 +1085,11 @@ declare const YieldProductToProviderMap: {
1046
1085
  readonly "zest-borrow-market": "zest";
1047
1086
  readonly "granite-v1-earn": "granite";
1048
1087
  readonly "granite-v1-borrow": "granite";
1049
- readonly "stackingdao-ststx": "stackingdao";
1050
- readonly "stackingdao-ststxbtc": "stackingdao";
1051
- readonly "stackingdao-pooled-stacking": "stackingdao";
1052
- readonly "lisa-listx": "lisa";
1053
- readonly "lisa-liquid-staking": "lisa";
1088
+ readonly "stackingdao-ststx": "stacking-dao";
1089
+ readonly "stackingdao-ststxbtc": "stacking-dao";
1090
+ readonly "stackingdao-pooled-stacking": "stacking-dao";
1091
+ readonly "lisa-listx": "alex";
1092
+ readonly "lisa-liquid-staking": "alex";
1054
1093
  readonly "hermetica-usdh-staking": "hermetica";
1055
1094
  readonly "velar-amm-lp": "velar";
1056
1095
  readonly "velar-perps": "velar";
@@ -1061,7 +1100,7 @@ declare const YieldProductToProviderMap: {
1061
1100
  type YieldProduct = BaseYieldProduct | PooledStackingYieldProduct;
1062
1101
  interface BaseYieldProduct {
1063
1102
  readonly key: YieldProductKey;
1064
- readonly provider: YieldProviderKey;
1103
+ readonly provider: StacksProtocolId;
1065
1104
  readonly category: YieldProductCategory;
1066
1105
  readonly name: string;
1067
1106
  readonly url: string;
@@ -1074,7 +1113,7 @@ interface PooledStackingYieldProduct extends BaseYieldProduct {
1074
1113
  //#region src/yield/yield-position.base.model.d.ts
1075
1114
  interface BaseYieldPosition {
1076
1115
  readonly id: string;
1077
- readonly provider: YieldProviderKey;
1116
+ readonly provider: StacksProtocolId;
1078
1117
  readonly product: YieldProductKey;
1079
1118
  readonly totalBalance: Money;
1080
1119
  readonly apy: number;
@@ -1144,7 +1183,7 @@ interface GraniteV1CollateralAsset {
1144
1183
  //#endregion
1145
1184
  //#region src/yield/providers/stacking-dao-position.model.d.ts
1146
1185
  interface BaseStackingDaoLstPosition extends BaseYieldPosition {
1147
- provider: 'stackingdao';
1186
+ provider: 'stacking-dao';
1148
1187
  withdrawalsBalance: Money;
1149
1188
  lstHolding?: StackingDaoLstHolding;
1150
1189
  withdrawals: StackingDaoLstWithdrawal[];
@@ -1178,7 +1217,7 @@ interface StackingDaoLstWithdrawal {
1178
1217
  unlockBurnHeight: number;
1179
1218
  }
1180
1219
  interface StackingDaoPooledStackingPosition extends BasePooledStackingPosition {
1181
- provider: 'stackingdao';
1220
+ provider: 'stacking-dao';
1182
1221
  product: 'stackingdao-pooled-stacking';
1183
1222
  }
1184
1223
  //#endregion
@@ -1223,12 +1262,12 @@ interface HermeticaStaking {
1223
1262
  //#endregion
1224
1263
  //#region src/yield/providers/lisa-position.model.d.ts
1225
1264
  interface LisaLiStxPosition extends BaseYieldPosition {
1226
- provider: 'lisa';
1265
+ provider: 'alex';
1227
1266
  product: 'lisa-listx';
1228
1267
  holding: LisaLstHolding;
1229
1268
  }
1230
1269
  interface LisaLiquidStakingPosition extends BaseYieldPosition {
1231
- provider: 'lisa';
1270
+ provider: 'alex';
1232
1271
  product: 'lisa-liquid-staking';
1233
1272
  holding: LisaLstHolding;
1234
1273
  }
@@ -1293,33 +1332,33 @@ declare function isGraniteBorrowPosition(pos: YieldPosition): pos is GraniteV1Bo
1293
1332
  declare function isStackingDaoStStxPosition(pos: YieldPosition): pos is StackingDaoStStxPosition;
1294
1333
  declare function isStackingDaoStStxBtcPosition(pos: YieldPosition): pos is StackingDaoStStxBtcPosition;
1295
1334
  declare function isStackingDaoPooledPosition(pos: YieldPosition): pos is StackingDaoPooledStackingPosition;
1296
- declare function filterPositionsByProvider(positions: YieldPosition[], provider: YieldProviderKey): YieldPosition[];
1335
+ declare function filterPositionsByProvider(positions: YieldPosition[], provider: StacksProtocolId): YieldPosition[];
1297
1336
  declare function filterPositionsByProduct(positions: YieldPosition[], product: YieldProductKey): YieldPosition[];
1298
1337
  declare function filterPositionsByCategory(positions: YieldPosition[], products: YieldProduct[], category: YieldProductCategory): YieldPosition[];
1299
1338
  declare function sortPositionsByBalance(positions: YieldPosition[], ascending?: boolean): YieldPosition[];
1300
1339
  declare function sortPositionsByApy(positions: YieldPosition[], ascending?: boolean): YieldPosition[];
1301
1340
  declare function sortPositionsByUpdateTime(positions: YieldPosition[], ascending?: boolean): YieldPosition[];
1302
- declare function getProviderForProduct(product: YieldProductKey): YieldProviderKey;
1341
+ declare function getProviderForProduct(product: YieldProductKey): StacksProtocolId;
1303
1342
  declare function getCategoryForProduct(product: YieldProduct): YieldProductCategory;
1304
- declare function isProductInProvider(product: YieldProductKey, provider: YieldProviderKey): boolean;
1305
- declare function getProductsForProvider(provider: YieldProviderKey): YieldProductKey[];
1343
+ declare function isProductInProvider(product: YieldProductKey, provider: StacksProtocolId): boolean;
1344
+ declare function getProductsForProvider(provider: StacksProtocolId): YieldProductKey[];
1306
1345
  declare function getProductsInCategory(products: YieldProduct[], category: YieldProductCategory): YieldProduct[];
1307
- declare function groupPositionsByProvider(positions: YieldPosition[]): Record<YieldProviderKey, YieldPosition[]>;
1346
+ declare function groupPositionsByProvider(positions: YieldPosition[]): Record<StacksProtocolId, YieldPosition[]>;
1308
1347
  declare function groupPositionsByCategory(positions: YieldPosition[], products: YieldProduct[]): Record<string, YieldPosition[]>;
1309
1348
  declare function getPositionsInCategories(positions: YieldPosition[], products: YieldProduct[], categories: YieldProductCategory[]): YieldPosition[];
1310
- declare function hasPositionsInProvider(positions: YieldPosition[], provider: YieldProviderKey): boolean;
1349
+ declare function hasPositionsInProvider(positions: YieldPosition[], provider: StacksProtocolId): boolean;
1311
1350
  declare function hasPositionsInCategory(positions: YieldPosition[], products: YieldProduct[], category: YieldProductCategory): boolean;
1312
- declare function enrichPositionWithProvider<T extends YieldPosition>(position: T, provider: YieldProvider): T & {
1313
- providerData: YieldProvider;
1351
+ declare function enrichPositionWithProvider<T extends YieldPosition>(position: T, provider: StacksProtocol): T & {
1352
+ providerData: StacksProtocol;
1314
1353
  };
1315
1354
  declare function enrichPositionWithProduct<T extends YieldPosition>(position: T, product: YieldProduct): T & {
1316
1355
  productData: YieldProduct;
1317
1356
  };
1318
- declare function enrichPositionWithMetadata<T extends YieldPosition>(position: T, provider: YieldProvider, product: YieldProduct): T & {
1319
- providerData: YieldProvider;
1357
+ declare function enrichPositionWithMetadata<T extends YieldPosition>(position: T, provider: StacksProtocol, product: YieldProduct): T & {
1358
+ providerData: StacksProtocol;
1320
1359
  productData: YieldProduct;
1321
1360
  };
1322
1361
  declare function getCategoryDisplayName(category: YieldProductCategory): string;
1323
1362
  //#endregion
1324
- 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, InputCurrencyMode, InscriptionAsset, InscriptionMimeType, LisaLiStxPosition, LisaLiquidStakingPosition, LisaLstHolding, LiteralUnion, LockAssetActivity, MarketData, MarketPriceHistory, MarketPriceSnapshot, MarketStats, Money, NativeCryptoAsset, NetworkConfiguration, NetworkModes, NonFungibleCryptoAsset, NonFungibleCryptoAssetProtocol, NonFungibleCryptoAssetProtocols, Nullable, NumType, OnChainActivity, OnChainActivityStatus, OnChainActivityStatuses, OnChainActivityType, OnChainActivityTypes, OwnedUtxo, PooledStackingYieldProduct, Prettify, QuoteCurrency, ReceiveAssetActivity, ReplaceTypes, RuneAsset, SbtcBridgeDepositSwapExecutionData, SbtcBridgeStatus, SbtcBridgeSwapQuote, SendAssetActivity, SignMessageActivity, Sip10Asset, Sip9Asset, Sip9AssetContent, Sip9Attribute, Sip9Collection, Sip9ContentType, Src20Asset, StackingDaoLstHolding, StackingDaoLstWithdrawal, StackingDaoPooledStackingPosition, StackingDaoReward, StackingDaoStStxBtcPosition, StackingDaoStStxPosition, StacksAddressInfo, StacksChainConfig, StacksContractCallSwapExecutionData, StacksFeeEstimate, StacksTransactionFeeQuote, StacksTx, StacksTxStatus, StampAsset, StxAsset, StxBalance, StxTransfer, SupportedBlockchains, SwapAsset, SwapAssetsActivity, SwapDex, SwapExecutionData, SwapExecutionType, SwapProvider, SwapProviderAsset, SwapProviderId, SwapQuote, SwappableFungibleCryptoAsset, TokenAnalytics, TokenDistribution, TokenDistributionPercentileKey, TokenHolderSegment, TokenTopHolderKey, 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, isStxAsset, isSwappableAsset, isZestPosition, networkConfigurationSchema, networkModes, percentileKeys, sip9ContentTypes, sortPositionsByApy, sortPositionsByBalance, sortPositionsByUpdateTime, stacksAddressInfoSchema, supportedBlockchains, swapExecutionTypes, swapProviderIds, testnetModes, topHolderKeys, transactionFeeQuoteType, transactionFeeTiers, walletIdSchema, whenInputCurrencyMode };
1363
+ 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, BitflowBffApiSwapQuote, BitflowSdkSwapQuote, Blockchain, BlockchainActivity, BlockchainActivityContractCall, BlockchainActivityContractDeploy, BlockchainActivityEvent, BlockchainActivityEventAction, 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, InputCurrencyMode, InscriptionAsset, InscriptionMimeType, LisaLiStxPosition, LisaLiquidStakingPosition, LisaLstHolding, LiteralUnion, LockAssetActivity, MarketData, MarketPriceHistory, MarketPriceSnapshot, MarketStats, Money, NativeCryptoAsset, NetworkConfiguration, NetworkModes, NonFungibleCryptoAsset, NonFungibleCryptoAssetProtocol, NonFungibleCryptoAssetProtocols, Nullable, NumType, OnChainActivity, OnChainActivityStatus, OnChainActivityStatuses, OnChainActivityType, OnChainActivityTypes, OwnedUtxo, PooledStackingYieldProduct, Prettify, QuoteCurrency, ReceiveAssetActivity, ReplaceTypes, RuneAsset, SbtcBridgeDepositSwapExecutionData, SbtcBridgeStatus, SbtcBridgeSwapQuote, SendAssetActivity, SignMessageActivity, Sip10Asset, Sip9Asset, Sip9AssetContent, Sip9Attribute, Sip9Collection, Sip9ContentType, Src20Asset, StackingDaoLstHolding, StackingDaoLstWithdrawal, StackingDaoPooledStackingPosition, StackingDaoReward, StackingDaoStStxBtcPosition, StackingDaoStStxPosition, StacksAddressInfo, StacksChainConfig, StacksContractCallSwapExecutionData, StacksFeeEstimate, StacksProtocol, StacksProtocolAction, StacksProtocolId, StacksProtocolIds, StacksTransactionFeeQuote, StacksTx, StacksTxStatus, StampAsset, StxAsset, StxBalance, StxTransfer, SupportedBlockchains, SwapAsset, SwapAssetsActivity, SwapExecutionData, SwapExecutionType, SwapProvider, SwapProviderAsset, SwapProviderId, SwapQuote, SwappableFungibleCryptoAsset, TokenAnalytics, TokenDistribution, TokenDistributionPercentileKey, TokenHolderSegment, TokenTopHolderKey, TransactionErrorKey, TransactionFeeQuote, TransactionFeeQuoteType, TransactionFeeTier, TransactionFees, Utxo, UtxoId, ValueOf, VelarAmmLpPosition, VelarFarmPosition, VelarSdkSwapQuote, WalletActivity, WalletActivityType, WalletActivityTypes, WalletDefaultNetworkConfigurationIds, WalletId, XversePooledStackingPosition, YieldPosition, YieldProduct, YieldProductCategories, YieldProductCategory, YieldProductKey, YieldProductKeys, YieldProductToProviderMap, 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, isStxAsset, isSwappableAsset, isZestPosition, networkConfigurationSchema, networkModes, percentileKeys, sip9ContentTypes, sortPositionsByApy, sortPositionsByBalance, sortPositionsByUpdateTime, stacksAddressInfoSchema, stacksProtocolActions, supportedBlockchains, swapExecutionTypes, swapProviderIds, testnetModes, topHolderKeys, transactionFeeQuoteType, transactionFeeTiers, walletIdSchema, whenInputCurrencyMode };
1325
1364
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../src/account.model.ts","../src/activity/activity-level.model.ts","../src/input-currency-mode.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/token-analytics.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;IA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;AAIvB,iB6CgMG,yB7C5Ld,CAAA,U6C4LkD,a7C5LlD,CAAA,CAAA,QAAA,E6C6LU,C7C7LV,EAAA,OAAA,E6C8LS,Y7C9LT,CAAA,E6C+LC,C7C/LD,GAAA;e6C+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/input-currency-mode.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/protocols/stacks-protocol.model.ts","../src/activity/blockchain-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/token-analytics.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-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,CAA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,E8CgMb,c9ChMa;CAAA;AAIvB,iB8CgMG,yB9C5Ld,CAAA,U8C4LkD,a9C5LlD,CAAA,CAAA,QAAA,E8C6LU,C9C7LV,EAAA,OAAA,E8C8LS,Y9C9LT,CAAA,E8C+LC,C9C/LD,GAAA;e8C+LoB;;iBAIN,qCAAqC,yBACzC,aACA,yBACD,eACR;gBAAoB;eAA6B;;iBAIpC,sBAAA,WAAiC"}
package/dist/index.js CHANGED
@@ -503,10 +503,42 @@ const accountDisplayPreferenceSchema = z.enum([
503
503
  const analyticsPreferenceSchema = z.enum(["consent-given", "rejects-tracking"]);
504
504
  const emailAddressSchema = z.email({ error: "Invalid email address" });
505
505
 
506
+ //#endregion
507
+ //#region src/protocols/stacks-protocol.model.ts
508
+ const StacksProtocolIds = {
509
+ alex: "alex",
510
+ arkadiko: "arkadiko",
511
+ bitflow: "bitflow",
512
+ fastPool: "fast-pool",
513
+ granite: "granite",
514
+ hermetica: "hermetica",
515
+ sbtcBridge: "sbtc-bridge",
516
+ stackingDao: "stacking-dao",
517
+ velar: "velar",
518
+ xverse: "xverse",
519
+ zest: "zest"
520
+ };
521
+ const stacksProtocolActions = [
522
+ "swap",
523
+ "add-liquidity",
524
+ "remove-liquidity",
525
+ "stake",
526
+ "unstake",
527
+ "stack",
528
+ "unstack",
529
+ "deposit",
530
+ "withdraw",
531
+ "borrow",
532
+ "repay",
533
+ "claim-rewards",
534
+ "bridge"
535
+ ];
536
+
506
537
  //#endregion
507
538
  //#region src/swap/swap.model.ts
508
539
  const swapProviderIds = [
509
540
  "bitflow-sdk",
541
+ "bitflow-bff-api",
510
542
  "sbtc-bridge",
511
543
  "alex-sdk",
512
544
  "velar-sdk"
@@ -529,20 +561,6 @@ const percentileKeys = [
529
561
  75
530
562
  ];
531
563
 
532
- //#endregion
533
- //#region src/yield/yield-provider.model.ts
534
- const YieldProviderKeys = {
535
- bitflow: "bitflow",
536
- zest: "zest",
537
- granite: "granite",
538
- stackingDao: "stackingdao",
539
- lisa: "lisa",
540
- hermetica: "hermetica",
541
- fastPool: "fast-pool",
542
- xverse: "xverse",
543
- velar: "velar"
544
- };
545
-
546
564
  //#endregion
547
565
  //#region src/yield/yield-product.model.ts
548
566
  const YieldProductKeys = {
@@ -572,22 +590,22 @@ const YieldProductCategories = {
572
590
  PERPS: "perps"
573
591
  };
574
592
  const YieldProductToProviderMap = {
575
- [YieldProductKeys.bitflowAmmLp]: YieldProviderKeys.bitflow,
576
- [YieldProductKeys.bitflowAmmStaking]: YieldProviderKeys.bitflow,
577
- [YieldProductKeys.zestBorrowMarket]: YieldProviderKeys.zest,
578
- [YieldProductKeys.graniteV1Earn]: YieldProviderKeys.granite,
579
- [YieldProductKeys.graniteV1Borrow]: YieldProviderKeys.granite,
580
- [YieldProductKeys.stackingDaoStstx]: YieldProviderKeys.stackingDao,
581
- [YieldProductKeys.stackingDaoStstxbtc]: YieldProviderKeys.stackingDao,
582
- [YieldProductKeys.stackingDaoPooledStacking]: YieldProviderKeys.stackingDao,
583
- [YieldProductKeys.lisaListx]: YieldProviderKeys.lisa,
584
- [YieldProductKeys.lisaLiquidStaking]: YieldProviderKeys.lisa,
585
- [YieldProductKeys.hermeticaUsdhStaking]: YieldProviderKeys.hermetica,
586
- [YieldProductKeys.velarAmmLp]: YieldProviderKeys.velar,
587
- [YieldProductKeys.velarPerps]: YieldProviderKeys.velar,
588
- [YieldProductKeys.velarAmmLpFarming]: YieldProviderKeys.velar,
589
- [YieldProductKeys.fastPoolPooledStacking]: YieldProviderKeys.fastPool,
590
- [YieldProductKeys.xversePooledStacking]: YieldProviderKeys.xverse
593
+ [YieldProductKeys.bitflowAmmLp]: StacksProtocolIds.bitflow,
594
+ [YieldProductKeys.bitflowAmmStaking]: StacksProtocolIds.bitflow,
595
+ [YieldProductKeys.zestBorrowMarket]: StacksProtocolIds.zest,
596
+ [YieldProductKeys.graniteV1Earn]: StacksProtocolIds.granite,
597
+ [YieldProductKeys.graniteV1Borrow]: StacksProtocolIds.granite,
598
+ [YieldProductKeys.stackingDaoStstx]: StacksProtocolIds.stackingDao,
599
+ [YieldProductKeys.stackingDaoStstxbtc]: StacksProtocolIds.stackingDao,
600
+ [YieldProductKeys.stackingDaoPooledStacking]: StacksProtocolIds.stackingDao,
601
+ [YieldProductKeys.lisaListx]: StacksProtocolIds.alex,
602
+ [YieldProductKeys.lisaLiquidStaking]: StacksProtocolIds.alex,
603
+ [YieldProductKeys.hermeticaUsdhStaking]: StacksProtocolIds.hermetica,
604
+ [YieldProductKeys.velarAmmLp]: StacksProtocolIds.velar,
605
+ [YieldProductKeys.velarPerps]: StacksProtocolIds.velar,
606
+ [YieldProductKeys.velarAmmLpFarming]: StacksProtocolIds.velar,
607
+ [YieldProductKeys.fastPoolPooledStacking]: StacksProtocolIds.fastPool,
608
+ [YieldProductKeys.xversePooledStacking]: StacksProtocolIds.xverse
591
609
  };
592
610
 
593
611
  //#endregion
@@ -728,5 +746,5 @@ function getCategoryDisplayName(category) {
728
746
  }
729
747
 
730
748
  //#endregion
731
- 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, 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, isStxAsset, isSwappableAsset, isZestPosition, networkConfigurationSchema, networkModes, percentileKeys, sip9ContentTypes, sortPositionsByApy, sortPositionsByBalance, sortPositionsByUpdateTime, stacksAddressInfoSchema, supportedBlockchains, swapExecutionTypes, swapProviderIds, testnetModes, topHolderKeys, transactionFeeQuoteType, transactionFeeTiers, walletIdSchema, whenInputCurrencyMode };
749
+ 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, StacksProtocolIds, WalletActivityTypes, WalletDefaultNetworkConfigurationIds, YieldProductCategories, YieldProductKeys, YieldProductToProviderMap, 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, isStxAsset, isSwappableAsset, isZestPosition, networkConfigurationSchema, networkModes, percentileKeys, sip9ContentTypes, sortPositionsByApy, sortPositionsByBalance, sortPositionsByUpdateTime, stacksAddressInfoSchema, stacksProtocolActions, supportedBlockchains, swapExecutionTypes, swapProviderIds, testnetModes, topHolderKeys, transactionFeeQuoteType, transactionFeeTiers, walletIdSchema, whenInputCurrencyMode };
732
750
  //# 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/input-currency-mode.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/token-analytics.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>;\n\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 type InputCurrencyMode = 'crypto' | 'quote';\n\nexport function whenInputCurrencyMode<TValue>(mode: InputCurrencyMode) {\n return <TMode extends Record<InputCurrencyMode, TValue>>(\n modes: TMode\n ): TMode[InputCurrencyMode] => modes[mode];\n}\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 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 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 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 type NativeCryptoAsset = BtcAsset | StxAsset;\nexport type FungibleCryptoAsset =\n | NativeCryptoAsset\n | Sip10Asset\n | Brc20Asset\n | Src20Asset\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\nexport interface MarketStats {\n readonly priceChange: Partial<Record<HistoricalPeriod, number | null>>;\n readonly marketCap?: number;\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 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 readonly providerQuoteData: {\n signerSweepTxFeeSats: number;\n };\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-deposit'] 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 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 SbtcBridgeDepositSwapExecutionData extends BaseSwapExecutionData {\n readonly executionType: 'sbtc-bridge-deposit';\n}\nexport type SwapExecutionData =\n | StacksContractCallSwapExecutionData\n | SbtcBridgeDepositSwapExecutionData;\n","export interface TokenHolderSegment {\n readonly holderCount: number;\n readonly balance: number;\n readonly contracts: { readonly count: number; readonly balance: number };\n readonly multisigs: { readonly count: number; readonly balance: number };\n readonly individuals: { readonly count: number; readonly balance: number };\n}\n\nexport interface TokenAnalytics {\n readonly circulatingSupply: number;\n readonly holderCount?: number;\n readonly distributionScore?: number;\n readonly trustScore?: number;\n readonly trendingScore?: number;\n readonly updatedAt: string;\n}\n\nexport const topHolderKeys = [1, 10, 50, 100, 200] as const;\nexport const percentileKeys = [10, 25, 50, 75] as const;\n\nexport type TokenTopHolderKey = (typeof topHolderKeys)[number];\nexport type TokenDistributionPercentileKey = (typeof percentileKeys)[number];\n\nexport interface TokenDistribution {\n readonly topHolders: Partial<Record<TokenTopHolderKey, TokenHolderSegment>>;\n readonly percentiles: Partial<Record<TokenDistributionPercentileKey, TokenHolderSegment>>;\n readonly updatedAt: string;\n}\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,CA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AAM,aAAa,IAAI,IAAI,SAAS,KAAI,MAAK,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;AACzD,QAAO,UAAU,QAAO,QAAO;EAC7B,MAAM,UAAU,WAAW,IAAI,IAAI,QAAQ;AAC3C,SAAO,WAAW,YAAY,IAAI,QAAQ,SAAS;GACnD;;AAGJ,SAAgB,uBACd,WACA,UACS;AACT,QAAO,UAAU,MAAK,MAAK,EAAE,aAAa,SAAS;;AAGrD,SAAgB,uBACd,WACA,UACA,UACS;CACT,MAAM,aAAa,IAAI,IAAI,SAAS,KAAI,MAAK,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;AACzD,QAAO,UAAU,MAAK,QAAO,WAAW,IAAI,IAAI,QAAQ,EAAE,aAAa,SAAS;;AAGlF,SAAgB,2BACd,UACA,UACqC;AACrC,QAAO;EAAE,GAAG;EAAU,cAAc;EAAU;;AAGhD,SAAgB,0BACd,UACA,SACmC;AACnC,QAAO;EAAE,GAAG;EAAU,aAAa;EAAS;;AAG9C,SAAgB,2BACd,UACA,UACA,SACgE;AAChE,QAAO;EAAE,GAAG;EAAU,cAAc;EAAU,aAAa;EAAS;;AAGtE,SAAgB,uBAAuB,UAAwC;AAS7E,QAR2D;GACxD,uBAAuB,MAAM;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<StacksProtocolId, YieldPosition[]>>","grouped: Record<string, YieldPosition[]>"],"sources":["../src/account.model.ts","../src/activity/activity-level.model.ts","../src/input-currency-mode.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/protocols/stacks-protocol.model.ts","../src/swap/swap.model.ts","../src/token-analytics.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>;\n\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 type InputCurrencyMode = 'crypto' | 'quote';\n\nexport function whenInputCurrencyMode<TValue>(mode: InputCurrencyMode) {\n return <TMode extends Record<InputCurrencyMode, TValue>>(\n modes: TMode\n ): TMode[InputCurrencyMode] => modes[mode];\n}\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 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 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 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 type NativeCryptoAsset = BtcAsset | StxAsset;\nexport type FungibleCryptoAsset =\n | NativeCryptoAsset\n | Sip10Asset\n | Brc20Asset\n | Src20Asset\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\nexport interface MarketStats {\n readonly priceChange: Partial<Record<HistoricalPeriod, number | null>>;\n readonly marketCap?: number;\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 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","export const StacksProtocolIds = {\n alex: 'alex',\n arkadiko: 'arkadiko',\n bitflow: 'bitflow',\n fastPool: 'fast-pool',\n granite: 'granite',\n hermetica: 'hermetica',\n sbtcBridge: 'sbtc-bridge',\n stackingDao: 'stacking-dao',\n velar: 'velar',\n xverse: 'xverse',\n zest: 'zest',\n} as const;\n\nexport type StacksProtocolId = (typeof StacksProtocolIds)[keyof typeof StacksProtocolIds];\n\nexport interface StacksProtocol {\n readonly id: StacksProtocolId;\n readonly name: string;\n readonly url: string;\n readonly logo: string;\n readonly description?: string;\n}\n\nexport const stacksProtocolActions = [\n 'swap',\n 'add-liquidity',\n 'remove-liquidity',\n 'stake',\n 'unstake',\n 'stack',\n 'unstack',\n 'deposit',\n 'withdraw',\n 'borrow',\n 'repay',\n 'claim-rewards',\n 'bridge',\n] as const;\n\nexport type StacksProtocolAction = (typeof stacksProtocolActions)[number];\n","import { CryptoAssetId } from '../assets/asset-id.model';\nimport { NativeCryptoAsset, Sip10Asset } from '../assets/asset.model';\nimport { Money } from '../money.model';\nimport type { StacksProtocol } from '../protocols/stacks-protocol.model';\n\nexport type SwappableFungibleCryptoAsset = NativeCryptoAsset | Sip10Asset;\n\nexport interface SwapAsset {\n readonly asset: SwappableFungibleCryptoAsset;\n readonly providerAssets: SwapProviderAsset[];\n}\n\nexport const swapProviderIds = [\n 'bitflow-sdk',\n 'bitflow-bff-api',\n 'sbtc-bridge',\n 'alex-sdk',\n 'velar-sdk',\n] 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 | BitflowBffApiSwapQuote\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: StacksProtocol[];\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 BitflowBffApiSwapQuote extends BaseSwapQuote {\n readonly providerId: 'bitflow-bff-api';\n readonly providerQuoteData: {\n bitflowBffApiQuote: unknown;\n };\n}\nexport interface SbtcBridgeSwapQuote extends BaseSwapQuote {\n readonly providerId: 'sbtc-bridge';\n readonly providerQuoteData: {\n signerSweepTxFeeSats: number;\n };\n}\n\nexport const swapExecutionTypes = ['stacks-contract-call', 'sbtc-bridge-deposit'] 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 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 SbtcBridgeDepositSwapExecutionData extends BaseSwapExecutionData {\n readonly executionType: 'sbtc-bridge-deposit';\n}\nexport type SwapExecutionData =\n | StacksContractCallSwapExecutionData\n | SbtcBridgeDepositSwapExecutionData;\n","export interface TokenHolderSegment {\n readonly holderCount: number;\n readonly balance: number;\n readonly contracts: { readonly count: number; readonly balance: number };\n readonly multisigs: { readonly count: number; readonly balance: number };\n readonly standard: { readonly count: number; readonly balance: number };\n}\n\nexport interface TokenAnalytics {\n readonly circulatingSupply: number;\n readonly holderCount?: number;\n readonly distributionScore?: number;\n readonly trustScore?: number;\n readonly trendingScore?: number;\n readonly updatedAt: string;\n}\n\nexport const topHolderKeys = [1, 10, 50, 100, 200] as const;\nexport const percentileKeys = [10, 25, 50, 75] as const;\n\nexport type TokenTopHolderKey = (typeof topHolderKeys)[number];\nexport type TokenDistributionPercentileKey = (typeof percentileKeys)[number];\n\nexport interface TokenDistribution {\n readonly topHolders: Partial<Record<TokenTopHolderKey, TokenHolderSegment>>;\n readonly percentiles: Partial<Record<TokenDistributionPercentileKey, TokenHolderSegment>>;\n readonly updatedAt: string;\n}\n","import { StacksProtocolId, StacksProtocolIds } from '../protocols/stacks-protocol.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]: StacksProtocolIds.bitflow,\n [YieldProductKeys.bitflowAmmStaking]: StacksProtocolIds.bitflow,\n [YieldProductKeys.zestBorrowMarket]: StacksProtocolIds.zest,\n [YieldProductKeys.graniteV1Earn]: StacksProtocolIds.granite,\n [YieldProductKeys.graniteV1Borrow]: StacksProtocolIds.granite,\n [YieldProductKeys.stackingDaoStstx]: StacksProtocolIds.stackingDao,\n [YieldProductKeys.stackingDaoStstxbtc]: StacksProtocolIds.stackingDao,\n [YieldProductKeys.stackingDaoPooledStacking]: StacksProtocolIds.stackingDao,\n [YieldProductKeys.lisaListx]: StacksProtocolIds.alex,\n [YieldProductKeys.lisaLiquidStaking]: StacksProtocolIds.alex,\n [YieldProductKeys.hermeticaUsdhStaking]: StacksProtocolIds.hermetica,\n [YieldProductKeys.velarAmmLp]: StacksProtocolIds.velar,\n [YieldProductKeys.velarPerps]: StacksProtocolIds.velar,\n [YieldProductKeys.velarAmmLpFarming]: StacksProtocolIds.velar,\n [YieldProductKeys.fastPoolPooledStacking]: StacksProtocolIds.fastPool,\n [YieldProductKeys.xversePooledStacking]: StacksProtocolIds.xverse,\n} as const;\n\nexport type YieldProduct = BaseYieldProduct | PooledStackingYieldProduct;\n\nexport interface BaseYieldProduct {\n readonly key: YieldProductKey;\n readonly provider: StacksProtocolId;\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 { StacksProtocol, StacksProtocolId } from '../../protocols/stacks-protocol.model';\nimport 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';\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: StacksProtocolId\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): StacksProtocolId {\n return YieldProductToProviderMap[product];\n}\n\nexport function getCategoryForProduct(product: YieldProduct): YieldProductCategory {\n return product.category;\n}\n\nexport function isProductInProvider(product: YieldProductKey, provider: StacksProtocolId): boolean {\n return YieldProductToProviderMap[product] === provider;\n}\n\nexport function getProductsForProvider(provider: StacksProtocolId): 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<StacksProtocolId, YieldPosition[]> {\n const grouped: Partial<Record<StacksProtocolId, 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<StacksProtocolId, 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: StacksProtocolId\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: StacksProtocol\n): T & { providerData: StacksProtocol } {\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: StacksProtocol,\n product: YieldProduct\n): T & { providerData: StacksProtocol; 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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AAE,CAAC,CAAC;AACzD,QAAO,UAAU,QAAO,QAAO;EAC7B,MAAM,UAAU,WAAW,IAAI,IAAI,QAAQ;AAC3C,SAAO,WAAW,YAAY,IAAI,QAAQ,SAAS;GACnD;;AAGJ,SAAgB,uBACd,WACA,UACS;AACT,QAAO,UAAU,MAAK,MAAK,EAAE,aAAa,SAAS;;AAGrD,SAAgB,uBACd,WACA,UACA,UACS;CACT,MAAM,aAAa,IAAI,IAAI,SAAS,KAAI,MAAK,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;AACzD,QAAO,UAAU,MAAK,QAAO,WAAW,IAAI,IAAI,QAAQ,EAAE,aAAa,SAAS;;AAGlF,SAAgB,2BACd,UACA,UACsC;AACtC,QAAO;EAAE,GAAG;EAAU,cAAc;EAAU;;AAGhD,SAAgB,0BACd,UACA,SACmC;AACnC,QAAO;EAAE,GAAG;EAAU,aAAa;EAAS;;AAG9C,SAAgB,2BACd,UACA,UACA,SACiE;AACjE,QAAO;EAAE,GAAG;EAAU,cAAc;EAAU,aAAa;EAAS;;AAGtE,SAAgB,uBAAuB,UAAwC;AAS7E,QAR2D;GACxD,uBAAuB,MAAM;GAC7B,uBAAuB,UAAU;GACjC,uBAAuB,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.53.0",
5
+ "version": "0.55.0",
6
6
  "license": "MIT",
7
7
  "homepage": "https://github.com/leather-io/mono/tree/dev/packages/models",
8
8
  "repository": {
@@ -0,0 +1,41 @@
1
+ import { CryptoAsset, CryptoAssetChain } from '../assets/asset.model';
2
+ import { Money } from '../money.model';
3
+ import { StacksProtocolAction, StacksProtocolId } from '../protocols/stacks-protocol.model';
4
+ import { OnChainActivityStatus } from './activity-status.model';
5
+
6
+ export interface BlockchainActivityContractCall {
7
+ readonly type: 'call';
8
+ readonly contractId: string;
9
+ readonly functionName: string;
10
+ readonly protocol?: StacksProtocolId;
11
+ readonly action?: StacksProtocolAction;
12
+ }
13
+
14
+ export interface BlockchainActivityContractDeploy {
15
+ readonly type: 'deploy';
16
+ readonly contractId: string;
17
+ }
18
+
19
+ export type BlockchainActivityEventAction = 'sent' | 'received' | 'locked' | 'minted' | 'burned';
20
+
21
+ export interface BlockchainActivityEvent {
22
+ readonly action: BlockchainActivityEventAction;
23
+ readonly asset: CryptoAsset;
24
+ readonly counterparty?: string;
25
+ readonly amount: {
26
+ readonly crypto: Money;
27
+ readonly quote: Money;
28
+ };
29
+ }
30
+
31
+ export interface BlockchainActivity {
32
+ readonly timestamp: number;
33
+ readonly txid: string;
34
+ readonly blockHeight?: number;
35
+ readonly fee?: Money;
36
+ readonly status: OnChainActivityStatus;
37
+ readonly chain: CryptoAssetChain;
38
+ readonly initiatedByUser: boolean;
39
+ readonly events: BlockchainActivityEvent[];
40
+ readonly contract?: BlockchainActivityContractCall | BlockchainActivityContractDeploy;
41
+ }
package/src/index.ts CHANGED
@@ -4,6 +4,7 @@ export * from './input-currency-mode.model';
4
4
  export * from './activity/activity-status.model';
5
5
  export * from './activity/activity-type.model';
6
6
  export * from './activity/activity.model';
7
+ export * from './activity/blockchain-activity.model';
7
8
  export * from './assets/asset-id.model';
8
9
  export * from './assets/asset-type-guards';
9
10
  export * from './assets/asset.model';
@@ -22,6 +23,7 @@ export * from './money.model';
22
23
  export * from './network/network.model';
23
24
  export * from './network/network.schema';
24
25
  export * from './settings.model';
26
+ export * from './protocols/stacks-protocol.model';
25
27
  export * from './swap/swap.model';
26
28
  export * from './token-analytics.model';
27
29
  export * from './transactions/bitcoin-transaction.model';
@@ -43,11 +45,3 @@ export * from './yield/providers/zest-position.model';
43
45
  export * from './yield/yield-position.base.model';
44
46
  export * from './yield/yield-position.model';
45
47
  export * from './yield/yield-product.model';
46
- export * from './yield/yield-provider.model';
47
- export * from './activity/activity-level.model';
48
- export * from './activity/activity-status.model';
49
- export * from './activity/activity-type.model';
50
- export * from './activity/activity.model';
51
- export * from './account.model';
52
- export * from './bns.model';
53
- export * from './swap/swap.model';
@@ -0,0 +1,41 @@
1
+ export const StacksProtocolIds = {
2
+ alex: 'alex',
3
+ arkadiko: 'arkadiko',
4
+ bitflow: 'bitflow',
5
+ fastPool: 'fast-pool',
6
+ granite: 'granite',
7
+ hermetica: 'hermetica',
8
+ sbtcBridge: 'sbtc-bridge',
9
+ stackingDao: 'stacking-dao',
10
+ velar: 'velar',
11
+ xverse: 'xverse',
12
+ zest: 'zest',
13
+ } as const;
14
+
15
+ export type StacksProtocolId = (typeof StacksProtocolIds)[keyof typeof StacksProtocolIds];
16
+
17
+ export interface StacksProtocol {
18
+ readonly id: StacksProtocolId;
19
+ readonly name: string;
20
+ readonly url: string;
21
+ readonly logo: string;
22
+ readonly description?: string;
23
+ }
24
+
25
+ export const stacksProtocolActions = [
26
+ 'swap',
27
+ 'add-liquidity',
28
+ 'remove-liquidity',
29
+ 'stake',
30
+ 'unstake',
31
+ 'stack',
32
+ 'unstack',
33
+ 'deposit',
34
+ 'withdraw',
35
+ 'borrow',
36
+ 'repay',
37
+ 'claim-rewards',
38
+ 'bridge',
39
+ ] as const;
40
+
41
+ export type StacksProtocolAction = (typeof stacksProtocolActions)[number];
@@ -1,6 +1,7 @@
1
1
  import { CryptoAssetId } from '../assets/asset-id.model';
2
2
  import { NativeCryptoAsset, Sip10Asset } from '../assets/asset.model';
3
3
  import { Money } from '../money.model';
4
+ import type { StacksProtocol } from '../protocols/stacks-protocol.model';
4
5
 
5
6
  export type SwappableFungibleCryptoAsset = NativeCryptoAsset | Sip10Asset;
6
7
 
@@ -9,7 +10,13 @@ export interface SwapAsset {
9
10
  readonly providerAssets: SwapProviderAsset[];
10
11
  }
11
12
 
12
- export const swapProviderIds = ['bitflow-sdk', 'sbtc-bridge', 'alex-sdk', 'velar-sdk'] as const;
13
+ export const swapProviderIds = [
14
+ 'bitflow-sdk',
15
+ 'bitflow-bff-api',
16
+ 'sbtc-bridge',
17
+ 'alex-sdk',
18
+ 'velar-sdk',
19
+ ] as const;
13
20
  export type SwapProviderId = (typeof swapProviderIds)[number];
14
21
 
15
22
  export interface SwapProvider {
@@ -27,6 +34,7 @@ export type SwapQuote =
27
34
  | AlexSdkSwapQuote
28
35
  | VelarSdkSwapQuote
29
36
  | BitflowSdkSwapQuote
37
+ | BitflowBffApiSwapQuote
30
38
  | SbtcBridgeSwapQuote;
31
39
 
32
40
  export interface BaseSwapQuote {
@@ -36,7 +44,7 @@ export interface BaseSwapQuote {
36
44
  readonly targetAsset: SwappableFungibleCryptoAsset;
37
45
  readonly baseAmount: Money;
38
46
  readonly targetAmount: Money;
39
- readonly dexPath: SwapDex[];
47
+ readonly dexPath: StacksProtocol[];
40
48
  readonly assetPath: (NativeCryptoAsset | Sip10Asset)[];
41
49
  readonly isExecutable: boolean;
42
50
  readonly executionConstraints: ExecutionConstraint[];
@@ -72,6 +80,12 @@ export interface BitflowSdkSwapQuote extends BaseSwapQuote {
72
80
  };
73
81
  }
74
82
 
83
+ export interface BitflowBffApiSwapQuote extends BaseSwapQuote {
84
+ readonly providerId: 'bitflow-bff-api';
85
+ readonly providerQuoteData: {
86
+ bitflowBffApiQuote: unknown;
87
+ };
88
+ }
75
89
  export interface SbtcBridgeSwapQuote extends BaseSwapQuote {
76
90
  readonly providerId: 'sbtc-bridge';
77
91
  readonly providerQuoteData: {
@@ -79,13 +93,6 @@ export interface SbtcBridgeSwapQuote extends BaseSwapQuote {
79
93
  };
80
94
  }
81
95
 
82
- export interface SwapDex {
83
- readonly name: string;
84
- readonly url: string;
85
- readonly logo: string;
86
- readonly description: string;
87
- }
88
-
89
96
  export const swapExecutionTypes = ['stacks-contract-call', 'sbtc-bridge-deposit'] as const;
90
97
  export type SwapExecutionType = (typeof swapExecutionTypes)[number];
91
98
 
@@ -3,7 +3,7 @@ export interface TokenHolderSegment {
3
3
  readonly balance: number;
4
4
  readonly contracts: { readonly count: number; readonly balance: number };
5
5
  readonly multisigs: { readonly count: number; readonly balance: number };
6
- readonly individuals: { readonly count: number; readonly balance: number };
6
+ readonly standard: { readonly count: number; readonly balance: number };
7
7
  }
8
8
 
9
9
  export interface TokenAnalytics {
@@ -1,3 +1,4 @@
1
+ import { StacksProtocol, StacksProtocolId } from '../../protocols/stacks-protocol.model';
1
2
  import type {
2
3
  BitflowAmmLpPosition,
3
4
  BitflowAmmStakingPosition,
@@ -21,7 +22,6 @@ import {
21
22
  YieldProductKeys,
22
23
  YieldProductToProviderMap,
23
24
  } from '../yield-product.model';
24
- import { YieldProvider, YieldProviderKey } from '../yield-provider.model';
25
25
 
26
26
  export function isBitflowAmmLpPosition(pos: YieldPosition): pos is BitflowAmmLpPosition {
27
27
  return pos.product === YieldProductKeys.bitflowAmmLp;
@@ -61,7 +61,7 @@ export function isStackingDaoPooledPosition(
61
61
 
62
62
  export function filterPositionsByProvider(
63
63
  positions: YieldPosition[],
64
- provider: YieldProviderKey
64
+ provider: StacksProtocolId
65
65
  ): YieldPosition[] {
66
66
  return positions.filter(p => p.provider === provider);
67
67
  }
@@ -111,7 +111,7 @@ export function sortPositionsByUpdateTime(
111
111
  });
112
112
  }
113
113
 
114
- export function getProviderForProduct(product: YieldProductKey): YieldProviderKey {
114
+ export function getProviderForProduct(product: YieldProductKey): StacksProtocolId {
115
115
  return YieldProductToProviderMap[product];
116
116
  }
117
117
 
@@ -119,11 +119,11 @@ export function getCategoryForProduct(product: YieldProduct): YieldProductCatego
119
119
  return product.category;
120
120
  }
121
121
 
122
- export function isProductInProvider(product: YieldProductKey, provider: YieldProviderKey): boolean {
122
+ export function isProductInProvider(product: YieldProductKey, provider: StacksProtocolId): boolean {
123
123
  return YieldProductToProviderMap[product] === provider;
124
124
  }
125
125
 
126
- export function getProductsForProvider(provider: YieldProviderKey): YieldProductKey[] {
126
+ export function getProductsForProvider(provider: StacksProtocolId): YieldProductKey[] {
127
127
  return Object.entries(YieldProductToProviderMap)
128
128
  .filter(([_, p]) => p === provider)
129
129
  .map(([product]) => product as YieldProductKey);
@@ -138,8 +138,8 @@ export function getProductsInCategory(
138
138
 
139
139
  export function groupPositionsByProvider(
140
140
  positions: YieldPosition[]
141
- ): Record<YieldProviderKey, YieldPosition[]> {
142
- const grouped: Partial<Record<YieldProviderKey, YieldPosition[]>> = {};
141
+ ): Record<StacksProtocolId, YieldPosition[]> {
142
+ const grouped: Partial<Record<StacksProtocolId, YieldPosition[]>> = {};
143
143
 
144
144
  for (const position of positions) {
145
145
  const provider = position.provider;
@@ -149,7 +149,7 @@ export function groupPositionsByProvider(
149
149
  grouped[provider].push(position);
150
150
  }
151
151
 
152
- return grouped as Record<YieldProviderKey, YieldPosition[]>;
152
+ return grouped as Record<StacksProtocolId, YieldPosition[]>;
153
153
  }
154
154
 
155
155
  export function groupPositionsByCategory(
@@ -188,7 +188,7 @@ export function getPositionsInCategories(
188
188
 
189
189
  export function hasPositionsInProvider(
190
190
  positions: YieldPosition[],
191
- provider: YieldProviderKey
191
+ provider: StacksProtocolId
192
192
  ): boolean {
193
193
  return positions.some(p => p.provider === provider);
194
194
  }
@@ -204,8 +204,8 @@ export function hasPositionsInCategory(
204
204
 
205
205
  export function enrichPositionWithProvider<T extends YieldPosition>(
206
206
  position: T,
207
- provider: YieldProvider
208
- ): T & { providerData: YieldProvider } {
207
+ provider: StacksProtocol
208
+ ): T & { providerData: StacksProtocol } {
209
209
  return { ...position, providerData: provider };
210
210
  }
211
211
 
@@ -218,9 +218,9 @@ export function enrichPositionWithProduct<T extends YieldPosition>(
218
218
 
219
219
  export function enrichPositionWithMetadata<T extends YieldPosition>(
220
220
  position: T,
221
- provider: YieldProvider,
221
+ provider: StacksProtocol,
222
222
  product: YieldProduct
223
- ): T & { providerData: YieldProvider; productData: YieldProduct } {
223
+ ): T & { providerData: StacksProtocol; productData: YieldProduct } {
224
224
  return { ...position, providerData: provider, productData: product };
225
225
  }
226
226
 
@@ -3,13 +3,13 @@ import type { Money } from '../../money.model';
3
3
  import type { BaseYieldPosition } from '../yield-position.base.model';
4
4
 
5
5
  export interface LisaLiStxPosition extends BaseYieldPosition {
6
- provider: 'lisa';
6
+ provider: 'alex';
7
7
  product: 'lisa-listx';
8
8
  holding: LisaLstHolding;
9
9
  }
10
10
 
11
11
  export interface LisaLiquidStakingPosition extends BaseYieldPosition {
12
- provider: 'lisa';
12
+ provider: 'alex';
13
13
  product: 'lisa-liquid-staking';
14
14
  holding: LisaLstHolding;
15
15
  }
@@ -3,7 +3,7 @@ import type { Money } from '../../money.model';
3
3
  import type { BasePooledStackingPosition, BaseYieldPosition } from '../yield-position.base.model';
4
4
 
5
5
  interface BaseStackingDaoLstPosition extends BaseYieldPosition {
6
- provider: 'stackingdao';
6
+ provider: 'stacking-dao';
7
7
  withdrawalsBalance: Money;
8
8
  lstHolding?: StackingDaoLstHolding;
9
9
  withdrawals: StackingDaoLstWithdrawal[];
@@ -43,6 +43,6 @@ export interface StackingDaoLstWithdrawal {
43
43
  }
44
44
 
45
45
  export interface StackingDaoPooledStackingPosition extends BasePooledStackingPosition {
46
- provider: 'stackingdao';
46
+ provider: 'stacking-dao';
47
47
  product: 'stackingdao-pooled-stacking';
48
48
  }
@@ -1,10 +1,10 @@
1
1
  import type { Money } from '../money.model';
2
+ import type { StacksProtocolId } from '../protocols/stacks-protocol.model';
2
3
  import type { YieldProductKey } from './yield-product.model';
3
- import type { YieldProviderKey } from './yield-provider.model';
4
4
 
5
5
  export interface BaseYieldPosition {
6
6
  readonly id: string;
7
- readonly provider: YieldProviderKey;
7
+ readonly provider: StacksProtocolId;
8
8
  readonly product: YieldProductKey;
9
9
  readonly totalBalance: Money;
10
10
  readonly apy: number;
@@ -1,4 +1,4 @@
1
- import { YieldProviderKey, YieldProviderKeys } from './yield-provider.model';
1
+ import { StacksProtocolId, StacksProtocolIds } from '../protocols/stacks-protocol.model';
2
2
 
3
3
  export const YieldProductKeys = {
4
4
  bitflowAmmLp: 'bitflow-amm-lp',
@@ -32,29 +32,29 @@ export type YieldProductCategory =
32
32
  (typeof YieldProductCategories)[keyof typeof YieldProductCategories];
33
33
 
34
34
  export const YieldProductToProviderMap = {
35
- [YieldProductKeys.bitflowAmmLp]: YieldProviderKeys.bitflow,
36
- [YieldProductKeys.bitflowAmmStaking]: YieldProviderKeys.bitflow,
37
- [YieldProductKeys.zestBorrowMarket]: YieldProviderKeys.zest,
38
- [YieldProductKeys.graniteV1Earn]: YieldProviderKeys.granite,
39
- [YieldProductKeys.graniteV1Borrow]: YieldProviderKeys.granite,
40
- [YieldProductKeys.stackingDaoStstx]: YieldProviderKeys.stackingDao,
41
- [YieldProductKeys.stackingDaoStstxbtc]: YieldProviderKeys.stackingDao,
42
- [YieldProductKeys.stackingDaoPooledStacking]: YieldProviderKeys.stackingDao,
43
- [YieldProductKeys.lisaListx]: YieldProviderKeys.lisa,
44
- [YieldProductKeys.lisaLiquidStaking]: YieldProviderKeys.lisa,
45
- [YieldProductKeys.hermeticaUsdhStaking]: YieldProviderKeys.hermetica,
46
- [YieldProductKeys.velarAmmLp]: YieldProviderKeys.velar,
47
- [YieldProductKeys.velarPerps]: YieldProviderKeys.velar,
48
- [YieldProductKeys.velarAmmLpFarming]: YieldProviderKeys.velar,
49
- [YieldProductKeys.fastPoolPooledStacking]: YieldProviderKeys.fastPool,
50
- [YieldProductKeys.xversePooledStacking]: YieldProviderKeys.xverse,
35
+ [YieldProductKeys.bitflowAmmLp]: StacksProtocolIds.bitflow,
36
+ [YieldProductKeys.bitflowAmmStaking]: StacksProtocolIds.bitflow,
37
+ [YieldProductKeys.zestBorrowMarket]: StacksProtocolIds.zest,
38
+ [YieldProductKeys.graniteV1Earn]: StacksProtocolIds.granite,
39
+ [YieldProductKeys.graniteV1Borrow]: StacksProtocolIds.granite,
40
+ [YieldProductKeys.stackingDaoStstx]: StacksProtocolIds.stackingDao,
41
+ [YieldProductKeys.stackingDaoStstxbtc]: StacksProtocolIds.stackingDao,
42
+ [YieldProductKeys.stackingDaoPooledStacking]: StacksProtocolIds.stackingDao,
43
+ [YieldProductKeys.lisaListx]: StacksProtocolIds.alex,
44
+ [YieldProductKeys.lisaLiquidStaking]: StacksProtocolIds.alex,
45
+ [YieldProductKeys.hermeticaUsdhStaking]: StacksProtocolIds.hermetica,
46
+ [YieldProductKeys.velarAmmLp]: StacksProtocolIds.velar,
47
+ [YieldProductKeys.velarPerps]: StacksProtocolIds.velar,
48
+ [YieldProductKeys.velarAmmLpFarming]: StacksProtocolIds.velar,
49
+ [YieldProductKeys.fastPoolPooledStacking]: StacksProtocolIds.fastPool,
50
+ [YieldProductKeys.xversePooledStacking]: StacksProtocolIds.xverse,
51
51
  } as const;
52
52
 
53
53
  export type YieldProduct = BaseYieldProduct | PooledStackingYieldProduct;
54
54
 
55
55
  export interface BaseYieldProduct {
56
56
  readonly key: YieldProductKey;
57
- readonly provider: YieldProviderKey;
57
+ readonly provider: StacksProtocolId;
58
58
  readonly category: YieldProductCategory;
59
59
  readonly name: string;
60
60
  readonly url: string;
@@ -1,19 +0,0 @@
1
- export const YieldProviderKeys = {
2
- bitflow: 'bitflow',
3
- zest: 'zest',
4
- granite: 'granite',
5
- stackingDao: 'stackingdao',
6
- lisa: 'lisa',
7
- hermetica: 'hermetica',
8
- fastPool: 'fast-pool',
9
- xverse: 'xverse',
10
- velar: 'velar',
11
- } as const;
12
- export type YieldProviderKey = (typeof YieldProviderKeys)[keyof typeof YieldProviderKeys];
13
-
14
- export interface YieldProvider {
15
- readonly key: YieldProviderKey;
16
- readonly name: string;
17
- readonly logo: string;
18
- readonly url: string;
19
- }