@clonegod/ttd-core 3.1.23 → 3.1.25

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.
Files changed (33) hide show
  1. package/dist/alert/codes.js +1 -0
  2. package/dist/alert/log_rules.js +1 -0
  3. package/dist/app_config/AppConfig.d.ts +1 -3
  4. package/dist/app_config/AppConfig.js +1 -14
  5. package/dist/app_config/EnvArgs.d.ts +2 -1
  6. package/dist/app_config/env_registry.js +2 -1
  7. package/dist/cache/arb_cache.d.ts +1 -2
  8. package/dist/cache/arb_cache.js +46 -37
  9. package/dist/index.d.ts +0 -1
  10. package/dist/index.js +0 -1
  11. package/dist/market_price/estimate_token_amount.js +3 -3
  12. package/dist/pool/cache_pool_config.js +45 -53
  13. package/dist/token/cache_token_config.js +25 -36
  14. package/dist/token/price/get_bsc_token_price.d.ts +4 -1
  15. package/dist/token/price/get_bsc_token_price.js +27 -12
  16. package/dist/token/price/get_eth_token_price.d.ts +4 -1
  17. package/dist/token/price/get_eth_token_price.js +27 -12
  18. package/dist/token/price/get_solana_token_price.d.ts +4 -1
  19. package/dist/token/price/get_solana_token_price.js +27 -12
  20. package/dist/token/price/get_sui_token_price.d.ts +4 -1
  21. package/dist/token/price/get_sui_token_price.js +27 -12
  22. package/dist/token/price/get_tron_token_price.d.ts +4 -1
  23. package/dist/token/price/get_tron_token_price.js +27 -12
  24. package/dist/token/price/get_xlayer_token_price.d.ts +4 -1
  25. package/dist/token/price/get_xlayer_token_price.js +27 -12
  26. package/dist/token/price/index.d.ts +2 -0
  27. package/dist/token/price/index.js +2 -0
  28. package/dist/token/price/price_cache.d.ts +6 -1
  29. package/dist/token/price/price_cache.js +67 -76
  30. package/dist/token/price/token_price_syncer.d.ts +25 -0
  31. package/dist/token/price/token_price_syncer.js +80 -0
  32. package/package.json +1 -1
  33. package/types/index.d.ts +2 -0
package/types/index.d.ts CHANGED
@@ -536,6 +536,8 @@ export interface WalletTokenBalanceInfoType {
536
536
  uiAmount: string
537
537
  price?: string
538
538
  balance?: string
539
+ /** 价格最后刷新时间(HH:MM:SS)。来自 token 的 update_time 字段,便于用户看到价格新鲜度 */
540
+ price_update_time?: string
539
541
  }
540
542
 
541
543