Skip to content

Commit

Permalink
upgraded hook
Browse files Browse the repository at this point in the history
  • Loading branch information
julien51 committed Oct 15, 2024
1 parent fe79071 commit 0de46a4
Show file tree
Hide file tree
Showing 8 changed files with 125,853 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"_format": "hh-sol-dbg-1",
"buildInfo": "../build-info/ed2f213592b117ebfa257bd4909a9364.json"
}

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"_format": "hh-sol-dbg-1",
"buildInfo": "../build-info/ed2f213592b117ebfa257bd4909a9364.json"
}

Large diffs are not rendered by default.

125,117 changes: 125,117 additions & 0 deletions ignition/deployments/chain-8453/build-info/ed2f213592b117ebfa257bd4909a9364.json

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion ignition/deployments/chain-8453/deployed_addresses.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@
"ProxyModule#TransparentUpgradeableProxy": "0x3Ad44f5a1F61d88775d4E4660b821DFC05887A1F",
"ProxyModule#ProxyAdmin": "0x16C034060ED720D92608905E149b9AA5F71feb75",
"UnlockPrimeHookModule#UnlockPrimeHook": "0x3Ad44f5a1F61d88775d4E4660b821DFC05887A1F",
"UnlockPrimeTokenURIHook#UnlockPrimeTokenURIHook": "0x58cFCddC4B9254633B864E9d71e3217e464BeEcB"
"UnlockPrimeTokenURIHook#UnlockPrimeTokenURIHook": "0x58cFCddC4B9254633B864E9d71e3217e464BeEcB",
"UnlockPrimeHookWithRecipientModule#UnlockPrimeHookWithRecipient": "0x3Ad44f5a1F61d88775d4E4660b821DFC05887A1F",
"UpgradeModule#UnlockPrimeHookWithRecipient": "0x3aB34e2885c29B6D91C881e3107641849e7e627E"
}
13 changes: 12 additions & 1 deletion ignition/deployments/chain-8453/journal.jsonl

Large diffs are not rendered by default.

13 changes: 9 additions & 4 deletions ignition/modules/UnlockPrimeHookWithRecipient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,22 @@ const upgradeModule = buildModule("UpgradeModule", (m) => {
]
);

m.call(proxyAdmin, "upgrade", [proxy, UnlockPrimeHookWithRecipient], {
from: proxyAdminOwner,
});
m.call(
proxyAdmin,
"upgradeAndCall",
[proxy, UnlockPrimeHookWithRecipient, "0x"],
{
from: proxyAdminOwner,
}
);

return { proxyAdmin, proxy };
});

const unlockPrimeHookWithRecipientModule = buildModule(
"UnlockPrimeHookWithRecipientModule",
(m) => {
const { proxy, proxyAdmin } = m.useModule(proxyModule);
const { proxy, proxyAdmin } = m.useModule(upgradeModule);

const unlockPrimeHook = m.contractAt("UnlockPrimeHookWithRecipient", proxy);

Expand Down

0 comments on commit 0de46a4

Please sign in to comment.