├── .github └── workflows │ └── main.yml ├── .gitignore ├── .prettierrc ├── CHANGELOG.md ├── LICENSE.md ├── README.md ├── docs ├── 1. Introduction.md ├── 10. Examples & Recipes │ ├── 10.1. Full Supply Withdraw Flow.md │ ├── 10.2. Liquidation Bot Example.md │ ├── 10.3. Price Monitoring Script.md │ ├── 10.4. Reward Claim Automation.md │ ├── 10.5. Subaccount Management Patterns.md │ └── README.md ├── 11. Troubleshooting.md ├── 2. Core Concepts │ ├── 2.1. Ton Blockchain Basics.md │ ├── 2.2. Lending Protocol Mechanics.md │ ├── 2.3. Oracle Systems │ │ ├── 2.3.1. Classic Oracle.md │ │ ├── 2.3.2. Pyth Oracle.md │ │ ├── 2.3.3. Parser Architecture.md │ │ └── README.md │ ├── 2.4. Subaccounts.md │ ├── 2.5. Price Validation And Medianization.md │ ├── 2.6. Jetton Vs Ton Asset Handling.md │ └── README.md ├── 3. Installation & Setup.md ├── 4. Api Reference │ ├── 4.1. Master Contracts.md │ ├── 4.2. Price System.md │ ├── 4.3. User Interaction.md │ ├── 4.4. Rewards System.md │ ├── 4.5. Utilities.md │ └── README.md ├── 5. Operation Guides │ ├── 5.1. How To Supply Assets.md │ ├── 5.2. How To Withdraw Assets.md │ ├── 5.3. How To Liquidate Undercollateralized Positions.md │ ├── 5.4. Atomic Supply Withdraw (swap Functionality).md │ ├── 5.5. Handling Subaccounts In Operations.md │ └── README.md ├── 6. Price Oracle System │ ├── 6.1. Price Collection Mechanism.md │ ├── 6.2. Price Validation And Filtering.md │ ├── 6.3. Median Price Calculation.md │ ├── 6.4. Oracle Parsers And Format Handling.md │ ├── 6.5. Price Data Packing.md │ └── README.md ├── 7. Type Definitions & Interfaces.md ├── 8. Testing & Debugging.md └── 9. Advanced Topics │ ├── 9.1. Extending Oracle Parsers.md │ ├── 9.2. Custom Price Sources.md │ ├── 9.3. Performance Optimization.md │ ├── 9.4. Gas Cost Considerations.md │ ├── 9.5. Advanced Merkle Proofs.md │ ├── 9.6. Subaccount Management.md │ ├── 9.7. Building Liquidation Bots.md │ ├── 9.8. Security Best Practices.md │ └── README.md ├── jest.config.js ├── package.json ├── src ├── api │ ├── feeds.ts │ ├── helpers.ts │ ├── liquidation.ts │ ├── math.ts │ ├── parser.ts │ ├── parsers │ │ ├── AbstractOracleParser.ts │ │ ├── ClassicOracleParser.ts │ │ ├── PythOracleParser.ts │ │ └── index.ts │ └── prices.ts ├── constants │ ├── assets │ │ ├── assetId.ts │ │ ├── index.ts │ │ ├── mainnet.ts │ │ └── testnet.ts │ ├── general │ │ ├── index.ts │ │ ├── mainnet.ts │ │ └── testnet.ts │ ├── index.ts │ └── pools │ │ ├── index.ts │ │ ├── mainnet.ts │ │ └── testnet.ts ├── contracts │ ├── AbstractMaster.ts │ ├── ClassicMaster.ts │ ├── JettonWallet.ts │ ├── PythMaster.ts │ ├── PythOracle.ts │ ├── UserContract.ts │ └── index.ts ├── index.ts ├── oracles │ ├── Types.ts │ ├── collectors │ │ ├── AbstractCollector.ts │ │ ├── ClassicCollector.ts │ │ ├── PythCollector.ts │ │ └── index.ts │ ├── constants.ts │ ├── index.ts │ ├── prices │ │ ├── AbstractPrices.ts │ │ ├── ClassicPrices.ts │ │ ├── PythPrices.ts │ │ └── index.ts │ ├── sources │ │ ├── Backend.ts │ │ ├── Icp.ts │ │ ├── PriceSource.ts │ │ └── index.ts │ └── utils.ts ├── rewards │ ├── EvaaRewards.ts │ ├── JettonMinter.ts │ ├── JettonWallet.ts │ ├── RewardMaster.ts │ └── RewardUser.ts ├── types │ ├── Master.ts │ ├── MasterRewards.ts │ ├── User.ts │ └── UserRewards.ts └── utils │ ├── fivaUtils.ts │ ├── merkleProof.ts │ ├── sha256BigInt.ts │ ├── tonConnectSender.ts │ ├── userJettonWallet.ts │ └── utils.ts ├── tests ├── address │ ├── AddressCalculation.test.ts │ └── SubaccountCalculation.test.ts ├── asset_config_test.ts ├── classic_prices_test.ts ├── dust_test.ts ├── evaa_down_test.ts ├── health_factor_calculation_test.ts ├── liquidate.ts ├── liquidate_classic.ts ├── math │ └── predictAPY.test.ts ├── parseContractData │ └── parseAltsPool.test.ts ├── parseUserData │ └── parseUserData.test.ts ├── parse_classic.ts ├── parse_pyth.ts ├── parse_user_classic.ts ├── parse_user_pyth.ts ├── price_utils_test.ts ├── prices │ ├── LSDPrice.test.ts │ ├── PriceCollector.test.ts │ ├── PythCollector.test.ts │ ├── PythPrice.test.ts │ ├── PythSW.test.ts │ └── utils.test.ts ├── rewards │ ├── claim_ton.test.ts │ └── withdraw_ton.test.ts ├── supply_classic.ts ├── supply_classic_test.ts ├── supply_withdraw_test.ts ├── suppy_pyth.ts ├── suppy_pyth_test.ts ├── suppy_pyth_w5.ts ├── sw │ └── sw_separated.test.ts ├── sw_no_price.ts ├── utils │ └── sha256BigInt.test.ts ├── withdraw_classic_test.ts ├── withdraw_pyth.ts ├── withdraw_pyth_test.ts └── withdraw_pyth_w5.ts ├── tsconfig.json ├── typedoc.json └── yarn.lock /.github/workflows/main.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/.github/workflows/main.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .idea 2 | node_modules 3 | build 4 | dist 5 | temp 6 | *.log 7 | .env 8 | .vscode/ 9 | .DS_Store -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/.prettierrc -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/LICENSE.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/README.md -------------------------------------------------------------------------------- /docs/1. Introduction.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/docs/1. Introduction.md -------------------------------------------------------------------------------- /docs/10. Examples & Recipes/10.1. Full Supply Withdraw Flow.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/docs/10. Examples & Recipes/10.1. Full Supply Withdraw Flow.md -------------------------------------------------------------------------------- /docs/10. Examples & Recipes/10.2. Liquidation Bot Example.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/docs/10. Examples & Recipes/10.2. Liquidation Bot Example.md -------------------------------------------------------------------------------- /docs/10. Examples & Recipes/10.3. Price Monitoring Script.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/docs/10. Examples & Recipes/10.3. Price Monitoring Script.md -------------------------------------------------------------------------------- /docs/10. Examples & Recipes/10.4. Reward Claim Automation.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/docs/10. Examples & Recipes/10.4. Reward Claim Automation.md -------------------------------------------------------------------------------- /docs/10. Examples & Recipes/10.5. Subaccount Management Patterns.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/docs/10. Examples & Recipes/10.5. Subaccount Management Patterns.md -------------------------------------------------------------------------------- /docs/10. Examples & Recipes/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/docs/10. Examples & Recipes/README.md -------------------------------------------------------------------------------- /docs/11. Troubleshooting.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/docs/11. Troubleshooting.md -------------------------------------------------------------------------------- /docs/2. Core Concepts/2.1. Ton Blockchain Basics.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/docs/2. Core Concepts/2.1. Ton Blockchain Basics.md -------------------------------------------------------------------------------- /docs/2. Core Concepts/2.2. Lending Protocol Mechanics.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/docs/2. Core Concepts/2.2. Lending Protocol Mechanics.md -------------------------------------------------------------------------------- /docs/2. Core Concepts/2.3. Oracle Systems/2.3.1. Classic Oracle.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/docs/2. Core Concepts/2.3. Oracle Systems/2.3.1. Classic Oracle.md -------------------------------------------------------------------------------- /docs/2. Core Concepts/2.3. Oracle Systems/2.3.2. Pyth Oracle.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/docs/2. Core Concepts/2.3. Oracle Systems/2.3.2. Pyth Oracle.md -------------------------------------------------------------------------------- /docs/2. Core Concepts/2.3. Oracle Systems/2.3.3. Parser Architecture.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/docs/2. Core Concepts/2.3. Oracle Systems/2.3.3. Parser Architecture.md -------------------------------------------------------------------------------- /docs/2. Core Concepts/2.3. Oracle Systems/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/docs/2. Core Concepts/2.3. Oracle Systems/README.md -------------------------------------------------------------------------------- /docs/2. Core Concepts/2.4. Subaccounts.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/docs/2. Core Concepts/2.4. Subaccounts.md -------------------------------------------------------------------------------- /docs/2. Core Concepts/2.5. Price Validation And Medianization.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/docs/2. Core Concepts/2.5. Price Validation And Medianization.md -------------------------------------------------------------------------------- /docs/2. Core Concepts/2.6. Jetton Vs Ton Asset Handling.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/docs/2. Core Concepts/2.6. Jetton Vs Ton Asset Handling.md -------------------------------------------------------------------------------- /docs/2. Core Concepts/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/docs/2. Core Concepts/README.md -------------------------------------------------------------------------------- /docs/3. Installation & Setup.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/docs/3. Installation & Setup.md -------------------------------------------------------------------------------- /docs/4. Api Reference/4.1. Master Contracts.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/docs/4. Api Reference/4.1. Master Contracts.md -------------------------------------------------------------------------------- /docs/4. Api Reference/4.2. Price System.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/docs/4. Api Reference/4.2. Price System.md -------------------------------------------------------------------------------- /docs/4. Api Reference/4.3. User Interaction.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/docs/4. Api Reference/4.3. User Interaction.md -------------------------------------------------------------------------------- /docs/4. Api Reference/4.4. Rewards System.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/docs/4. Api Reference/4.4. Rewards System.md -------------------------------------------------------------------------------- /docs/4. Api Reference/4.5. Utilities.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/docs/4. Api Reference/4.5. Utilities.md -------------------------------------------------------------------------------- /docs/4. Api Reference/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/docs/4. Api Reference/README.md -------------------------------------------------------------------------------- /docs/5. Operation Guides/5.1. How To Supply Assets.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/docs/5. Operation Guides/5.1. How To Supply Assets.md -------------------------------------------------------------------------------- /docs/5. Operation Guides/5.2. How To Withdraw Assets.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/docs/5. Operation Guides/5.2. How To Withdraw Assets.md -------------------------------------------------------------------------------- /docs/5. Operation Guides/5.3. How To Liquidate Undercollateralized Positions.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/docs/5. Operation Guides/5.3. How To Liquidate Undercollateralized Positions.md -------------------------------------------------------------------------------- /docs/5. Operation Guides/5.4. Atomic Supply Withdraw (swap Functionality).md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/docs/5. Operation Guides/5.4. Atomic Supply Withdraw (swap Functionality).md -------------------------------------------------------------------------------- /docs/5. Operation Guides/5.5. Handling Subaccounts In Operations.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/docs/5. Operation Guides/5.5. Handling Subaccounts In Operations.md -------------------------------------------------------------------------------- /docs/5. Operation Guides/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/docs/5. Operation Guides/README.md -------------------------------------------------------------------------------- /docs/6. Price Oracle System/6.1. Price Collection Mechanism.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/docs/6. Price Oracle System/6.1. Price Collection Mechanism.md -------------------------------------------------------------------------------- /docs/6. Price Oracle System/6.2. Price Validation And Filtering.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/docs/6. Price Oracle System/6.2. Price Validation And Filtering.md -------------------------------------------------------------------------------- /docs/6. Price Oracle System/6.3. Median Price Calculation.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/docs/6. Price Oracle System/6.3. Median Price Calculation.md -------------------------------------------------------------------------------- /docs/6. Price Oracle System/6.4. Oracle Parsers And Format Handling.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/docs/6. Price Oracle System/6.4. Oracle Parsers And Format Handling.md -------------------------------------------------------------------------------- /docs/6. Price Oracle System/6.5. Price Data Packing.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/docs/6. Price Oracle System/6.5. Price Data Packing.md -------------------------------------------------------------------------------- /docs/6. Price Oracle System/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/docs/6. Price Oracle System/README.md -------------------------------------------------------------------------------- /docs/7. Type Definitions & Interfaces.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/docs/7. Type Definitions & Interfaces.md -------------------------------------------------------------------------------- /docs/8. Testing & Debugging.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/docs/8. Testing & Debugging.md -------------------------------------------------------------------------------- /docs/9. Advanced Topics/9.1. Extending Oracle Parsers.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/docs/9. Advanced Topics/9.1. Extending Oracle Parsers.md -------------------------------------------------------------------------------- /docs/9. Advanced Topics/9.2. Custom Price Sources.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/docs/9. Advanced Topics/9.2. Custom Price Sources.md -------------------------------------------------------------------------------- /docs/9. Advanced Topics/9.3. Performance Optimization.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/docs/9. Advanced Topics/9.3. Performance Optimization.md -------------------------------------------------------------------------------- /docs/9. Advanced Topics/9.4. Gas Cost Considerations.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/docs/9. Advanced Topics/9.4. Gas Cost Considerations.md -------------------------------------------------------------------------------- /docs/9. Advanced Topics/9.5. Advanced Merkle Proofs.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/docs/9. Advanced Topics/9.5. Advanced Merkle Proofs.md -------------------------------------------------------------------------------- /docs/9. Advanced Topics/9.6. Subaccount Management.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/docs/9. Advanced Topics/9.6. Subaccount Management.md -------------------------------------------------------------------------------- /docs/9. Advanced Topics/9.7. Building Liquidation Bots.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/docs/9. Advanced Topics/9.7. Building Liquidation Bots.md -------------------------------------------------------------------------------- /docs/9. Advanced Topics/9.8. Security Best Practices.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/docs/9. Advanced Topics/9.8. Security Best Practices.md -------------------------------------------------------------------------------- /docs/9. Advanced Topics/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/docs/9. Advanced Topics/README.md -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/jest.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/package.json -------------------------------------------------------------------------------- /src/api/feeds.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/src/api/feeds.ts -------------------------------------------------------------------------------- /src/api/helpers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/src/api/helpers.ts -------------------------------------------------------------------------------- /src/api/liquidation.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/src/api/liquidation.ts -------------------------------------------------------------------------------- /src/api/math.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/src/api/math.ts -------------------------------------------------------------------------------- /src/api/parser.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/src/api/parser.ts -------------------------------------------------------------------------------- /src/api/parsers/AbstractOracleParser.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/src/api/parsers/AbstractOracleParser.ts -------------------------------------------------------------------------------- /src/api/parsers/ClassicOracleParser.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/src/api/parsers/ClassicOracleParser.ts -------------------------------------------------------------------------------- /src/api/parsers/PythOracleParser.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/src/api/parsers/PythOracleParser.ts -------------------------------------------------------------------------------- /src/api/parsers/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/src/api/parsers/index.ts -------------------------------------------------------------------------------- /src/api/prices.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/src/api/prices.ts -------------------------------------------------------------------------------- /src/constants/assets/assetId.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/src/constants/assets/assetId.ts -------------------------------------------------------------------------------- /src/constants/assets/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/src/constants/assets/index.ts -------------------------------------------------------------------------------- /src/constants/assets/mainnet.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/src/constants/assets/mainnet.ts -------------------------------------------------------------------------------- /src/constants/assets/testnet.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/src/constants/assets/testnet.ts -------------------------------------------------------------------------------- /src/constants/general/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/src/constants/general/index.ts -------------------------------------------------------------------------------- /src/constants/general/mainnet.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/src/constants/general/mainnet.ts -------------------------------------------------------------------------------- /src/constants/general/testnet.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/src/constants/general/testnet.ts -------------------------------------------------------------------------------- /src/constants/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/src/constants/index.ts -------------------------------------------------------------------------------- /src/constants/pools/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/src/constants/pools/index.ts -------------------------------------------------------------------------------- /src/constants/pools/mainnet.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/src/constants/pools/mainnet.ts -------------------------------------------------------------------------------- /src/constants/pools/testnet.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/src/constants/pools/testnet.ts -------------------------------------------------------------------------------- /src/contracts/AbstractMaster.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/src/contracts/AbstractMaster.ts -------------------------------------------------------------------------------- /src/contracts/ClassicMaster.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/src/contracts/ClassicMaster.ts -------------------------------------------------------------------------------- /src/contracts/JettonWallet.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/src/contracts/JettonWallet.ts -------------------------------------------------------------------------------- /src/contracts/PythMaster.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/src/contracts/PythMaster.ts -------------------------------------------------------------------------------- /src/contracts/PythOracle.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/src/contracts/PythOracle.ts -------------------------------------------------------------------------------- /src/contracts/UserContract.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/src/contracts/UserContract.ts -------------------------------------------------------------------------------- /src/contracts/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/src/contracts/index.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/oracles/Types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/src/oracles/Types.ts -------------------------------------------------------------------------------- /src/oracles/collectors/AbstractCollector.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/src/oracles/collectors/AbstractCollector.ts -------------------------------------------------------------------------------- /src/oracles/collectors/ClassicCollector.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/src/oracles/collectors/ClassicCollector.ts -------------------------------------------------------------------------------- /src/oracles/collectors/PythCollector.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/src/oracles/collectors/PythCollector.ts -------------------------------------------------------------------------------- /src/oracles/collectors/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/src/oracles/collectors/index.ts -------------------------------------------------------------------------------- /src/oracles/constants.ts: -------------------------------------------------------------------------------- 1 | export const TTL_ORACLE_DATA_SEC = 120; -------------------------------------------------------------------------------- /src/oracles/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/src/oracles/index.ts -------------------------------------------------------------------------------- /src/oracles/prices/AbstractPrices.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/src/oracles/prices/AbstractPrices.ts -------------------------------------------------------------------------------- /src/oracles/prices/ClassicPrices.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/src/oracles/prices/ClassicPrices.ts -------------------------------------------------------------------------------- /src/oracles/prices/PythPrices.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/src/oracles/prices/PythPrices.ts -------------------------------------------------------------------------------- /src/oracles/prices/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/src/oracles/prices/index.ts -------------------------------------------------------------------------------- /src/oracles/sources/Backend.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/src/oracles/sources/Backend.ts -------------------------------------------------------------------------------- /src/oracles/sources/Icp.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/src/oracles/sources/Icp.ts -------------------------------------------------------------------------------- /src/oracles/sources/PriceSource.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/src/oracles/sources/PriceSource.ts -------------------------------------------------------------------------------- /src/oracles/sources/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/src/oracles/sources/index.ts -------------------------------------------------------------------------------- /src/oracles/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/src/oracles/utils.ts -------------------------------------------------------------------------------- /src/rewards/EvaaRewards.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/src/rewards/EvaaRewards.ts -------------------------------------------------------------------------------- /src/rewards/JettonMinter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/src/rewards/JettonMinter.ts -------------------------------------------------------------------------------- /src/rewards/JettonWallet.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/src/rewards/JettonWallet.ts -------------------------------------------------------------------------------- /src/rewards/RewardMaster.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/src/rewards/RewardMaster.ts -------------------------------------------------------------------------------- /src/rewards/RewardUser.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/src/rewards/RewardUser.ts -------------------------------------------------------------------------------- /src/types/Master.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/src/types/Master.ts -------------------------------------------------------------------------------- /src/types/MasterRewards.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/src/types/MasterRewards.ts -------------------------------------------------------------------------------- /src/types/User.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/src/types/User.ts -------------------------------------------------------------------------------- /src/types/UserRewards.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/src/types/UserRewards.ts -------------------------------------------------------------------------------- /src/utils/fivaUtils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/src/utils/fivaUtils.ts -------------------------------------------------------------------------------- /src/utils/merkleProof.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/src/utils/merkleProof.ts -------------------------------------------------------------------------------- /src/utils/sha256BigInt.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/src/utils/sha256BigInt.ts -------------------------------------------------------------------------------- /src/utils/tonConnectSender.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/src/utils/tonConnectSender.ts -------------------------------------------------------------------------------- /src/utils/userJettonWallet.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/src/utils/userJettonWallet.ts -------------------------------------------------------------------------------- /src/utils/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/src/utils/utils.ts -------------------------------------------------------------------------------- /tests/address/AddressCalculation.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/tests/address/AddressCalculation.test.ts -------------------------------------------------------------------------------- /tests/address/SubaccountCalculation.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/tests/address/SubaccountCalculation.test.ts -------------------------------------------------------------------------------- /tests/asset_config_test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/tests/asset_config_test.ts -------------------------------------------------------------------------------- /tests/classic_prices_test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/tests/classic_prices_test.ts -------------------------------------------------------------------------------- /tests/dust_test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/tests/dust_test.ts -------------------------------------------------------------------------------- /tests/evaa_down_test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/tests/evaa_down_test.ts -------------------------------------------------------------------------------- /tests/health_factor_calculation_test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/tests/health_factor_calculation_test.ts -------------------------------------------------------------------------------- /tests/liquidate.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/tests/liquidate.ts -------------------------------------------------------------------------------- /tests/liquidate_classic.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/tests/liquidate_classic.ts -------------------------------------------------------------------------------- /tests/math/predictAPY.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/tests/math/predictAPY.test.ts -------------------------------------------------------------------------------- /tests/parseContractData/parseAltsPool.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/tests/parseContractData/parseAltsPool.test.ts -------------------------------------------------------------------------------- /tests/parseUserData/parseUserData.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/tests/parseUserData/parseUserData.test.ts -------------------------------------------------------------------------------- /tests/parse_classic.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/tests/parse_classic.ts -------------------------------------------------------------------------------- /tests/parse_pyth.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/tests/parse_pyth.ts -------------------------------------------------------------------------------- /tests/parse_user_classic.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/tests/parse_user_classic.ts -------------------------------------------------------------------------------- /tests/parse_user_pyth.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/tests/parse_user_pyth.ts -------------------------------------------------------------------------------- /tests/price_utils_test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/tests/price_utils_test.ts -------------------------------------------------------------------------------- /tests/prices/LSDPrice.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/tests/prices/LSDPrice.test.ts -------------------------------------------------------------------------------- /tests/prices/PriceCollector.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/tests/prices/PriceCollector.test.ts -------------------------------------------------------------------------------- /tests/prices/PythCollector.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/tests/prices/PythCollector.test.ts -------------------------------------------------------------------------------- /tests/prices/PythPrice.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/tests/prices/PythPrice.test.ts -------------------------------------------------------------------------------- /tests/prices/PythSW.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/tests/prices/PythSW.test.ts -------------------------------------------------------------------------------- /tests/prices/utils.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/tests/prices/utils.test.ts -------------------------------------------------------------------------------- /tests/rewards/claim_ton.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/tests/rewards/claim_ton.test.ts -------------------------------------------------------------------------------- /tests/rewards/withdraw_ton.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/tests/rewards/withdraw_ton.test.ts -------------------------------------------------------------------------------- /tests/supply_classic.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/tests/supply_classic.ts -------------------------------------------------------------------------------- /tests/supply_classic_test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/tests/supply_classic_test.ts -------------------------------------------------------------------------------- /tests/supply_withdraw_test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/tests/supply_withdraw_test.ts -------------------------------------------------------------------------------- /tests/suppy_pyth.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/tests/suppy_pyth.ts -------------------------------------------------------------------------------- /tests/suppy_pyth_test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/tests/suppy_pyth_test.ts -------------------------------------------------------------------------------- /tests/suppy_pyth_w5.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/tests/suppy_pyth_w5.ts -------------------------------------------------------------------------------- /tests/sw/sw_separated.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/tests/sw/sw_separated.test.ts -------------------------------------------------------------------------------- /tests/sw_no_price.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/tests/sw_no_price.ts -------------------------------------------------------------------------------- /tests/utils/sha256BigInt.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/tests/utils/sha256BigInt.test.ts -------------------------------------------------------------------------------- /tests/withdraw_classic_test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/tests/withdraw_classic_test.ts -------------------------------------------------------------------------------- /tests/withdraw_pyth.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/tests/withdraw_pyth.ts -------------------------------------------------------------------------------- /tests/withdraw_pyth_test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/tests/withdraw_pyth_test.ts -------------------------------------------------------------------------------- /tests/withdraw_pyth_w5.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/tests/withdraw_pyth_w5.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/tsconfig.json -------------------------------------------------------------------------------- /typedoc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/typedoc.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evaafi/sdk/HEAD/yarn.lock --------------------------------------------------------------------------------