Skip to content

Commit

Permalink
get module addresses instead of module accounts
Browse files Browse the repository at this point in the history
  • Loading branch information
mpsc0x committed Dec 11, 2024
1 parent e8d775c commit 3844308
Show file tree
Hide file tree
Showing 10 changed files with 464 additions and 472 deletions.
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"bignumber.js": "^9.1.2",
"buffer": "^6.0.3",
"crypto-js": "^4.2.0",
"dotenv": "^16.4.6",
"dotenv": "^16.4.7",
"ethers": "^6.13.4",
"events": "^3.3.0",
"jest-environment-jsdom": "^29.7.0",
Expand All @@ -81,17 +81,17 @@
"devDependencies": {
"@types/bn.js": "^5.1.6",
"@types/jest": "^29.5.14",
"@types/node": "^22.10.1",
"@typescript-eslint/eslint-plugin": "^8.17.0",
"@typescript-eslint/parser": "^8.17.0",
"@types/node": "^22.10.2",
"@typescript-eslint/eslint-plugin": "^8.18.0",
"@typescript-eslint/parser": "^8.18.0",
"chalk": "^5.3.0",
"eslint": "^9.16.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-airbnb-typescript": "^18.0.0",
"eslint-config-prettier": "^9.1.0",
"eslint-config-standard": "^17.1.0",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-jsdoc": "^50.6.0",
"eslint-plugin-jsdoc": "^50.6.1",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^7.2.1",
"eslint-plugin-tsdoc": "^0.4.0",
Expand All @@ -101,16 +101,16 @@
"node-ts": "^6.1.3",
"npm-run-all": "^4.1.5",
"ora": "^8.1.1",
"prettier": "^3.4.1",
"prettier": "^3.4.2",
"prettier-eslint": "^16.3.0",
"prettier-standard": "^16.4.1",
"rimraf": "^6.0.1",
"ts-jest": "^29.2.5",
"ts-loader": "^9.5.1",
"typedoc": "^0.27.2",
"typedoc": "^0.27.4",
"typescript": "^5.7.2",
"typescript-eslint": "^8.17.0",
"webpack": "^5.97.0",
"typescript-eslint": "^8.18.0",
"webpack": "^5.97.1",
"webpack-cli": "^5.1.4"
},
"optionalDependencies": {
Expand Down
902 changes: 447 additions & 455 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/contracts/acl_manage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export class AclManagerContract {
setRoleAdmin: MoveFunctionId;

constructor(provider: AptosProvider) {
const AclManager = provider.getProfileAccountByName(AAVE_PROFILES.AAVE_ACL);
const AclManager = provider.getProfileAddressByName(AAVE_PROFILES.AAVE_ACL);
const AclManagerAccountAddress = AclManager.toString();
this.hasRoleFuncAddr = `${AclManagerAccountAddress}::acl_manage::has_role`;
this.grantRoleFuncAddr = `${AclManagerAccountAddress}::acl_manage::grant_role`;
Expand Down
2 changes: 1 addition & 1 deletion src/contracts/bridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export class BridgeContract {
BackUnbackedFuncAddr: MoveFunctionId;

constructor(provider: AptosProvider) {
const BridgeManager = provider.getProfileAccountByName(
const BridgeManager = provider.getProfileAddressByName(
AAVE_PROFILES.AAVE_POOL,
);
const BridgeManagerAccountAddress = BridgeManager.toString();
Expand Down
2 changes: 1 addition & 1 deletion src/contracts/flashloan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export class FlashLoanContract {
PayFlashLoanSimpleFuncAddr: MoveFunctionId;

constructor(provider: AptosProvider) {
const FlashLoanManager = provider.getProfileAccountByName(
const FlashLoanManager = provider.getProfileAddressByName(
AAVE_PROFILES.AAVE_POOL,
);
const FlashLoanManagerAccountAddress = FlashLoanManager.toString();
Expand Down
2 changes: 1 addition & 1 deletion src/contracts/pool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ export class PoolContract {
SetPoolDataProviderFuncAddr: MoveFunctionId;

constructor(provider: AptosProvider) {
const PoolManager = provider.getProfileAccountByName(
const PoolManager = provider.getProfileAddressByName(
AAVE_PROFILES.AAVE_POOL,
);
const PoolManagerAccountAddress = PoolManager.toString();
Expand Down
2 changes: 1 addition & 1 deletion src/contracts/supply_borrow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export class SupplyBorrowContract {
GetUserAccountDataFuncAddr: MoveFunctionId;

constructor(provider: AptosProvider) {
const SupplyBorrowManager = provider.getProfileAccountByName(
const SupplyBorrowManager = provider.getProfileAddressByName(
AAVE_PROFILES.AAVE_POOL,
);
const SupplyBorrowManagerAccountAddress = SupplyBorrowManager.toString();
Expand Down
2 changes: 1 addition & 1 deletion src/contracts/tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export class TokensContract {

constructor(provider: AptosProvider) {
// Underlying Token
const AaveTokensManager = provider.getProfileAccountByName(
const AaveTokensManager = provider.getProfileAddressByName(
AAVE_PROFILES.AAVE_POOL,
);
const AaveTokensManagerAccountAddress = AaveTokensManager.toString();
Expand Down
2 changes: 1 addition & 1 deletion src/contracts/uiIncentiveDataProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export class UiIncentiveDataProviderContract {
getUserReservesIncentivesData: MoveFunctionId;

constructor(provider: AptosProvider) {
const PeripheryManager = provider.getProfileAccountByName(
const PeripheryManager = provider.getProfileAddressByName(
AAVE_PROFILES.AAVE_POOL,
);
const PeripheryManagerAccountAddress = PeripheryManager.toString();
Expand Down
2 changes: 1 addition & 1 deletion src/contracts/uiPoolDataProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export class UiPoolDataProviderContract {
getUserReservesData: MoveFunctionId;

constructor(provider: AptosProvider) {
const PeripheryManager = provider.getProfileAccountByName(
const PeripheryManager = provider.getProfileAddressByName(
AAVE_PROFILES.AAVE_POOL,
);
const PeripheryManagerAccountAddress = PeripheryManager.toString();
Expand Down

0 comments on commit 3844308

Please sign in to comment.