Advertisement
AleksDolgop

Untitled

Jul 6th, 2022
794
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ---types---
  2.  
  3. defi.investmentStatusNone#db33d61e = defi.InvestmentStatus;
  4. defi.investmentStatusInvesting#a54c8944 = defi.InvestmentStatus;
  5. defi.investmentStatusWithdrawing#03458391 = defi.InvestmentStatus;
  6.  
  7. defi.investmentTypeActive#fb630bc8 = defi.InvestmentType;
  8. defi.investmentTypeWithdrawn#05265527 = defi.InvestmentType;
  9.  
  10. defi.operationStrategyForward#ceb45a54 = defi.OperationStrategy;
  11. defi.operationStrategyDeposit#51506e52 = defi.OperationStrategy;
  12.  
  13. defi.operationStatusConfirmed#ada4d0cf = defi.OperationStatus;
  14. defi.operationStatusPending#86bf573f = defi.OperationStatus;
  15. defi.operationStatusFailed#eb9e5880 = defi.OperationStatus;
  16.  
  17. defi.operationDirectionDeposit#b5ca5269 = defi.OperationDirection;
  18. defi.operationDirectionWithdraw#45ea5314 = defi.OperationDirection;
  19.  
  20. defi.inputSortDirectionAsc#740b4eb9 = defi.InputSortDirection;
  21. defi.inputSortDirectionDesc#13bf2216 = defi.InputSortDirection;
  22.  
  23. // Risk level
  24. defi.riskLevelLow#0df74998 = defi.RiskLevel;
  25. defi.riskLevelMedium#0c65d7f2 = defi.RiskLevel;
  26. defi.riskLevelHigh#e591f663 = defi.RiskLevel;
  27.  
  28. defi.portfolioInvestmentCurrency#4d0266dc risk_level:defi.RiskLevel project:defi.Project estimated_balance_currency:string estimated_fee_currency:string = defi.PortfolioInvestmentCurrency;
  29.  
  30. defi.operationFee#2b962962 symbol:string amount:string strategy:defi.OperationStrategy = defi.OperationFee;
  31.  
  32. defi.operation#34da4d47 id:string status:defi.OperationStatus direction:defi.OperationDirection risk_level:defi.RiskLevel project:defi.Project strategy:defi.OperationStrategy symbol:string amount:string date:int = defi.Operation;
  33.  
  34. defi.operationsHistory#05da3e32 count:int items:Vector<defi.Operation> = defi.OperationsHistory;
  35.  
  36. defi.updatePortfolio#c937ad07 portfolio:defi.Portfolio = Update;
  37. defi.updateNewOperation#fd0dc273 operation:defi.Operation = Update;
  38. defi.updateStatusOperation#cc5de71d status:defi.OperationStatus operation:defi.Operation = Update;
  39.  
  40. defi.productItem#70566372 project:defi.Project risk_level:defi.RiskLevel = defi.ProductItem;
  41. defi.productItems#2b80ff9d items:Vector<defi.ProductItem> = defi.ProductItems;
  42.  
  43. defi.inputGetProjectsOptionParams#3789f984 flags:# risk_level:flags.0?defi.RiskLevel project_id:string = defi.InputGetProjectsOptionParams;
  44.  
  45. // Position
  46. defi.investment#9b759516 risk_level:defi.RiskLevel project:defi.Project status:defi.InvestmentStatus type:Vector<defi.InvestmentType> invested_position:string estimated_balance_position:string estimated_amount_position:string estimated_change_position:string estimated_amount_daily_position:string estimated_amount_monthly_position:string estimated_fee_position:string total_deposit_amount:string total_withdraw_amount:string start_date:int end_date:int = defi.Investment;
  47.  
  48. // Portfolio
  49. defi.portfolio#f23c0274 invested_position:string estimated_balance_position:string estimated_amount_position:string estimated_change_position:string investments:Vector<defi.Investment> = defi.Portfolio;
  50.  
  51. // Projects
  52. defi.project#5b88c4ce id:string title:string icon_url:string description:string = defi.Project;
  53. // Old "projectItem"
  54. defi.liquidityPool#985d1ad4 project:defi.Project price:string percent:string apy:string risk_level:defi.RiskLevel = defi.LiquidityPool;
  55. defi.projects#1f1b626d items:Vector<defi.LiquidityPool> = defi.Projects;
  56.  
  57. ---functions---
  58.  
  59. defi.getAvailableInvestProductItems#74a6113b flags:# project_id:string risk_level:flags.0?defi.RiskLevel = defi.ProductItems;
  60.  
  61. defi.getProjects#5a7b1ee1 flags:# params:flags.0?defi.InputGetProjectsOptionParams = defi.Projects;
  62.  
  63. defi.getPortfolio#423f9e56 = defi.Portfolio;
  64.  
  65. defi.getInvestment#4964a35d risk_level:defi.RiskLevel project_id:string = defi.Investment;
  66.  
  67. defi.getOperationsHistory#a97fa0d8 flags:# limit:flags.0?int offset_id:flags.1?string offset:flags.2?int status:flags.3?Vector<defi.OperationStatus> operation_direction:defi.OperationDirection project_id:flags.4?string risk_level:flags.5?defi.RiskLevel = defi.OperationsHistory;
  68.  
  69. defi.getInvestmentFee#045f4fa3 risk_level:defi.RiskLevel project_id:string symbol:string amount:string = defi.OperationFee;
  70. defi.getWithdrawFee#49008b65 risk_level:defi.RiskLevel project_id:string symbol:string amount:string = defi.OperationFee;
  71.  
  72. defi.invest#0cc1f2fa amount:string symbol:string risk_level:defi.RiskLevel project_id:string = crypto.RawTx;
  73. defi.withdraw#24f6b2ff symbol:string risk_level:defi.RiskLevel project_id:string = Bool;
  74.  
  75. defi.getPortfolioInvestmentCurrency#6cd8d5fd risk_level:defi.RiskLevel project_id:string currency_symbol:string = defi.PortfolioInvestmentCurrency;
  76.  
Advertisement
RAW Paste Data Copied
Advertisement