Skip to content

Commit 4ba451e

Browse files
authored
fix: update to use aave-dao address-book (#22)
1 parent 58fa00b commit 4ba451e

16 files changed

Lines changed: 50 additions & 724 deletions

.changeset/common-coats-change.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@bgd-labs/toolbox": patch
3+
---
4+
5+
Update dependenceis

packages/cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"access": "public"
3333
},
3434
"dependencies": {
35-
"@bgd-labs/aave-address-book": "^4.30.3",
35+
"@aave-dao/aave-address-book": "^4.30.3",
3636
"@bgd-labs/toolbox": "workspace:*",
3737
"@commander-js/extra-typings": "^13.1.0",
3838
"@inquirer/prompts": "^7.3.2",

packages/cli/src/tasks/aave-vnet.ts

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
tenderly_createVnet,
77
} from "@bgd-labs/toolbox";
88
import { checkbox, select, Separator, input } from "@inquirer/prompts";
9-
import * as addresses from "@bgd-labs/aave-address-book";
9+
import * as addresses from "@aave-dao/aave-address-book";
1010
import { Address, parseAbi, zeroAddress } from "viem";
1111
import { readContract } from "viem/actions";
1212
import { toAccount } from "viem/accounts";
@@ -145,21 +145,24 @@ export function registerAaveVNet(program: Command) {
145145
});
146146
} catch (e) {}
147147

148-
await controllerContract.write.createPayload([
148+
await controllerContract.write.createPayload(
149149
[
150-
{
151-
target: address as Address,
152-
accessLevel: 1,
153-
callData: "0x",
154-
withDelegateCall: true,
155-
signature: "execute()",
156-
value: 0n,
157-
},
150+
[
151+
{
152+
target: address as Address,
153+
accessLevel: 1,
154+
callData: "0x",
155+
withDelegateCall: true,
156+
signature: "execute()",
157+
value: 0n,
158+
},
159+
],
158160
],
159-
], {
160-
account: toAccount(sender),
161-
chain: vnet.walletClient.chain,
162-
});
161+
{
162+
account: toAccount(sender),
163+
chain: vnet.walletClient.chain,
164+
},
165+
);
163166
await makePayloadExecutableOnTestClient(
164167
vnet.testClient,
165168
controllerAddress,

packages/cli/src/tasks/protocol.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
getReserveTokens,
66
getReserveConfigurations,
77
} from "@bgd-labs/toolbox";
8-
import { AaveV3Ethereum } from "@bgd-labs/aave-address-book";
8+
import { AaveV3Ethereum } from "@aave-dao/aave-address-book";
99

1010
export function registerProtocol(program: Command) {
1111
program

packages/cli/src/tasks/seatbelt-report.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import { IPayloadsControllerCore_ABI } from "@bgd-labs/aave-address-book/abis";
2-
import { getAddressBookReferences } from "@bgd-labs/aave-address-book/utils";
1+
import { getAddressBookReferences } from "@aave-dao/aave-address-book/utils";
32
import {
43
getMdContractName,
54
getPayloadsController,
65
makePayloadExecutableOnTestClient,
76
renderTenderlyReport,
87
tenderly_createVnet,
8+
IPayloadsController_ABI,
99
} from "@bgd-labs/toolbox";
1010
import { Command, Option } from "@commander-js/extra-typings";
1111
import { mkdirSync, writeFileSync } from "node:fs";
@@ -123,7 +123,7 @@ export function registerSeatbeltReport(program: Command) {
123123
account: toAccount(sender),
124124
chain: vnet.walletClient.chain,
125125
to: payloadsController as Address,
126-
data: payloadCalldata as Hex
126+
data: payloadCalldata as Hex,
127127
});
128128
}
129129
if (payloadAddress) {
@@ -154,7 +154,7 @@ export function registerSeatbeltReport(program: Command) {
154154
from: sender,
155155
to: payloadsController,
156156
input: encodeFunctionData({
157-
abi: IPayloadsControllerCore_ABI,
157+
abi: IPayloadsController_ABI,
158158
functionName: "executePayload",
159159
args: [currentId],
160160
}),

packages/toolbox/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"@aave-dao/aave-governance-v3": "github:aave-dao/aave-governance-v3",
3939
"@aave-dao/aave-umbrella": "1.0.0",
4040
"@aave-dao/aave-v3-origin": "3.6.0",
41-
"@bgd-labs/aave-address-book": "^4.31.0",
41+
"@aave-dao/aave-address-book": "^4.31.0",
4242
"@bgd-labs/aave-price-feeds": "github:bgd-labs/aave-price-feeds",
4343
"@bgd-labs/solidity-utils": "^1.1.2",
4444
"@genql/cli": "^6.3.3",

packages/toolbox/remappings.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
aave-address-book/=node_modules/@bgd-labs/aave-address-book/src/
1+
aave-address-book/=node_modules/@aave-dao/aave-address-book/src/
22
aave-delivery-infrastructure/=node_modules/@aave-dao/aave-delivery-infrastructure/src/

packages/toolbox/src/aave/governance/payloads-controller.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { describe, it } from "vitest";
2-
import { GovernanceV3Ethereum } from "@bgd-labs/aave-address-book";
2+
import { GovernanceV3Ethereum } from "@aave/aave-address-book";
33
import { tenderly_createVnet } from "../../ecosystem/tenderly";
44
import { makePayloadExecutableOnTestClient } from "./payloads-controller";
55
import { encodeFunctionData, toHex } from "viem";

packages/toolbox/src/aave/pool/addresses.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { describe, expect, it } from "vitest";
22
import { fetchPoolAddresses } from "./addresses";
33
import { getClient } from "../../ecosystem/rpcs";
4-
import { AaveV3Ethereum } from "@bgd-labs/aave-address-book";
4+
import { AaveV3Ethereum } from "@aave/aave-address-book";
55

66
describe("pool:addresses", () => {
77
it("should generate same addresses", async () => {

packages/toolbox/src/ecosystem/generated/alchemyNetworkMap.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ export const alchemyNetworkMap = {
8282
42431: "tempo-moderato",
8383
43113: "avax-fuji",
8484
43114: "avax-mainnet",
85+
46630: "robinhood-testnet",
8586
53302: "superseed-sepolia",
8687
57054: "sonic-blaze",
8788
57073: "ink-mainnet",

0 commit comments

Comments
 (0)