Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Thala adapter #60

Closed
wants to merge 5 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update dependencies and add Aptos support
- Added @aptos-labs/ts-sdk dependency to package.json.
- Updated lockfile version in pnpm-lock.yaml to 9.0 and included new dependencies.
- Added Aptos to the Chain enum in chains.py.
- Cleaned up thala.py by removing unused imports and added a comment for future reference.
- Updated thala_integration.py to reflect changes in imports.

This commit enhances the project by integrating Aptos support and updating the dependency management.
  • Loading branch information
deHB6 committed Jan 16, 2025
commit 00f0e2cee9cf484ccdfd4bbfd93005358507938b
1 change: 1 addition & 0 deletions constants/chains.py
Original file line number Diff line number Diff line change
@@ -13,3 +13,4 @@ class Chain(Enum):
LYRA = "Lyra"
SWELL = "Swell"
SOLANA = "Solana"
APTOS = "Aptos"
3 changes: 2 additions & 1 deletion constants/thala.py
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
SUSDE_LPT_METADATA = "0x761e59547fb115fe7a61271863858fc69ff3f7b172c0c42629e3517e85988086" # TODO: USDt/zUSDT Address for now
SUSDE_LPT_METADATA = "0x761e59547fb115fe7a61271863858fc69ff3f7b172c0c42629e3517e85988086"
# TODO: USDt/zUSDT Address for now
2 changes: 1 addition & 1 deletion integrations/thala_integration.py
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@
from constants.example_integrations import (
THALA_SUSDE_START_BLOCK,
)
from constants.thala import THALASWAP_CONTRACT_ADDRESS, SUSDE_LPT_METADATA, SUSDE_TOKEN_ADDRESS
from constants.thala import SUSDE_LPT_METADATA
from constants.chains import Chain
from integrations.integration_ids import IntegrationID as IntID
from integrations.l2_delegation_integration import L2DelegationIntegration
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -12,6 +12,7 @@
"dependencies": {
"@kamino-finance/klend-sdk": "^3.2.7",
"@solana/web3.js": "^1.95.2",
"dotenv": "^16.4.5"
"dotenv": "^16.4.5",
"@aptos-labs/ts-sdk": "1.33.1"
}
}
Loading
Loading