Skip to content

Commit

Permalink
chore: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
joepegler committed Sep 4, 2024
1 parent 02decb5 commit 29b7f27
Show file tree
Hide file tree
Showing 12 changed files with 15 additions and 14 deletions.
2 changes: 1 addition & 1 deletion scripts/fetch:deployment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ type FetchDetails = {
}
const {
nexusDeploymentPath = "../node_modules/nexus/deployments",
chainName = "anvil-51654",
chainName = "anvil-52280",
forSrc = ["K1ValidatorFactory", "Nexus", "K1Validator"]
} = yargs(hideBin(process.argv)).argv as unknown as FetchDetails

Expand Down
4 changes: 2 additions & 2 deletions src/__contracts/addresses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import type { Hex } from "viem"
export const addresses: Record<string, Hex> = {
Nexus: "0xecCE0159E098556274debaABB05F1B264b6be159",
Nexus: "0x776d63154D2aa9256D72C420416c930F3B735464",
K1Validator: "0xd98238BBAeA4f91683d250003799EAd31d7F5c55",
K1ValidatorFactory: "0xD608d3E259B0534B98C47F9f672D7192C3e25969"
K1ValidatorFactory: "0x8025afaD10209b8bEF3A3C94684AaE4D309c9996"
} as const
export default addresses
2 changes: 1 addition & 1 deletion tests/account.read.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ describe("account.read", () => {
expect(addresses.every(Boolean)).to.be.true
expect(addresses).toStrictEqual([
"0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
"0x5c5125986F71970e582cc5044EC20d0F32BFA0BD" // Sender smart account
"0xa3962DB24D3cAb711e18d5A508591C6dB82a0f54" // Sender smart account
])
})

Expand Down
2 changes: 1 addition & 1 deletion tests/account.write.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ describe("account.write", () => {
expect(addresses.every(Boolean)).to.be.true
expect(addresses).toStrictEqual([
"0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
"0x5c5125986F71970e582cc5044EC20d0F32BFA0BD" // Sender smart account
"0xa3962DB24D3cAb711e18d5A508591C6dB82a0f54" // Sender smart account
])
})

Expand Down
2 changes: 1 addition & 1 deletion tests/modules.k1Validator.write.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ describe("modules.k1Validator.write", () => {
expect(addresses.every(Boolean)).to.be.true
expect(addresses).toStrictEqual([
"0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
"0x5c5125986F71970e582cc5044EC20d0F32BFA0BD" // Sender smart account
"0xa3962DB24D3cAb711e18d5A508591C6dB82a0f54" // Sender smart account
])
})

Expand Down
2 changes: 1 addition & 1 deletion tests/modules.ownableExecutor.read.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ describe("modules.ownable.executor.read", () => {
expect(addresses.every(Boolean)).to.be.true
expect(addresses).toStrictEqual([
"0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
"0x5c5125986F71970e582cc5044EC20d0F32BFA0BD" // Sender smart account
"0xa3962DB24D3cAb711e18d5A508591C6dB82a0f54" // Sender smart account
])
})

Expand Down
2 changes: 1 addition & 1 deletion tests/modules.ownableExecutor.write.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ describe("modules.ownable.executor.write", () => {
expect(addresses.every(Boolean)).to.be.true
expect(addresses).toStrictEqual([
"0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
"0x5c5125986F71970e582cc5044EC20d0F32BFA0BD" // Sender smart account
"0xa3962DB24D3cAb711e18d5A508591C6dB82a0f54" // Sender smart account
])
})

Expand Down
2 changes: 1 addition & 1 deletion tests/modules.ownableValidator.install.write.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ describe("modules.ownable.validator.install.write", () => {
expect(addresses.every(Boolean)).to.be.true
expect(addresses).toStrictEqual([
"0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
"0x5c5125986F71970e582cc5044EC20d0F32BFA0BD" // Sender smart account
"0xa3962DB24D3cAb711e18d5A508591C6dB82a0f54" // Sender smart account
])
})

Expand Down
2 changes: 1 addition & 1 deletion tests/modules.ownableValidator.uninstall.write.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ describe("modules.ownable.validator.uninstall.write", () => {
expect(addresses.every(Boolean)).to.be.true
expect(addresses).toStrictEqual([
"0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
"0x5c5125986F71970e582cc5044EC20d0F32BFA0BD" // Sender smart account
"0xa3962DB24D3cAb711e18d5A508591C6dB82a0f54" // Sender smart account
])
})

Expand Down
2 changes: 1 addition & 1 deletion tests/smart.sessions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ describe("smart.sessions", () => {
expect(addresses.every(Boolean)).toBeTruthy()
expect(addresses).toStrictEqual([
"0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
"0x5c5125986F71970e582cc5044EC20d0F32BFA0BD" // Sender smart account
"0xa3962DB24D3cAb711e18d5A508591C6dB82a0f54" // Sender smart account
])
})

Expand Down
6 changes: 3 additions & 3 deletions tests/src/__contracts/mockAddresses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ import type { Hex } from "viem"
export const mockAddresses: Record<string, Hex> = {
MockHook: "0xAB9733982E5b98bdDc4f00314E8EA4911A9D1BA5",
Stakeable: "0xc60F4C65a698C0FE5eddACfB71661B580D15BDaa",
NexusAccountFactory: "0x3615306afc0099ed38d749276A2C862E70138c3e",
NexusAccountFactory: "0x609e47C5404758D83102AB4fe58dbeD4AC39Ae78",
BiconomyMetaFactory: "0x98C8792cf50A93900d575842eDAFf3Ccc2C2902b",
Counter: "0x36023f0abe27eC68fD2c6a489A3e21772A08E120",
MockValidator: "0xa5ab9E06eB79805e6b20586e16285f10cA3274fB",
MockToken: "0x56623d18E54cBbCae340EC449E3c5D1DC0bF60cd",
BootstrapLib: "0xbfB775811C01ECf1864F5Da188E9993Ae0D19b64",
BootstrapLib: "0x0c66e850AB4aB7e748bf48698a257aaB87d9a899",
MockRegistry: "0x25D55884BFA6380B0fCDc9E924c495C44Aa46415",
MockHandler: "0xBE52B87DA68EC967e977191bE125584b98c1Ea04",
Bootstrap: "0xdF6E23B226C7129b19e4C7D8bD6D64Ba035e98A4",
Bootstrap: "0xC952c381C006D14395047A8aeE7F67fB59D38A10",
MockExecutor: "0x940C64D0c650615d3Af0053a4CD32AbAbD3F04e7"
} as const
export default mockAddresses
1 change: 1 addition & 0 deletions tests/src/testUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ export const toConfiguredAnvil = async ({
// forkUrl: "https://base-sepolia.gateway.tenderly.co/2oxlNZ7oiNCUpXzrWFuIHx"
})
await instance.start()
console.log("deploying contracts...")
await deployContracts(rpcPort)
await init()
await clean()
Expand Down

0 comments on commit 29b7f27

Please sign in to comment.