Skip to content

Commit

Permalink
fix: bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
8sunyuan committed Feb 14, 2025
1 parent 26ab055 commit beb3600
Show file tree
Hide file tree
Showing 8 changed files with 70 additions and 37 deletions.
4 changes: 2 additions & 2 deletions pkg/bindings/AllocationManager/binding.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pkg/bindings/AllocationManagerStorage/binding.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pkg/bindings/DelegationManager/binding.go

Large diffs are not rendered by default.

81 changes: 56 additions & 25 deletions pkg/bindings/IAVSRegistrar/binding.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pkg/bindings/IAllocationManager/binding.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pkg/bindings/RewardsCoordinator/binding.go

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions script/releases/v1.1.1-slashing/1-eoa.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ contract Deploy is EOADeployer {
name: type(AllocationManager).name,
deployedTo: address(
new AllocationManager({
_delegationManager: Env.proxy.delegationManager(),
_delegation: Env.proxy.delegationManager(),
_pauserRegistry: Env.impl.pauserRegistry(),
_permissionController: Env.proxy.permissionController(),
_DEALLOCATION_DELAY: Env.DEALLOCATION_DELAY(),
_DEALLOCATION_DELAY: Env.MIN_WITHDRAWAL_DELAY(),
_ALLOCATION_CONFIGURATION_DELAY: Env.ALLOCATION_CONFIGURATION_DELAY()
})
)
Expand Down Expand Up @@ -61,10 +61,10 @@ contract Deploy is EOADeployer {
/// @dev Validate the immutables set in the new implementation constructors
function _validateImplConstructors() internal view {
AllocationManager allocationManager = Env.impl.allocationManager();
assertTrue(allocationManager.delegationManager() == Env.proxy.delegationManager(), "dm invalid");
assertTrue(allocationManager.delegation() == Env.proxy.delegationManager(), "dm invalid");
assertTrue(allocationManager.pauserRegistry() == Env.impl.pauserRegistry(), "pR invalid");
assertTrue(allocationManager.permissionController() == Env.proxy.permissionController(), "pc invalid");
assertTrue(allocationManager.DEALLOCATION_DELAY() == Env.DEALLOCATION_DELAY(), "deallocationDelay invalid");
assertTrue(allocationManager.DEALLOCATION_DELAY() == Env.MIN_WITHDRAWAL_DELAY(), "deallocationDelay invalid");
assertTrue(
allocationManager.ALLOCATION_CONFIGURATION_DELAY() == Env.ALLOCATION_CONFIGURATION_DELAY(),
"allocationConfigurationDelay invalid"
Expand Down
6 changes: 4 additions & 2 deletions script/releases/v1.1.1-slashing/3-execute.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,12 @@ contract Execute is Queue {

function _validateProxyConstructors() internal view {
AllocationManager allocationManager = Env.proxy.allocationManager();
assertTrue(allocationManager.delegationManager() == Env.proxy.delegationManager(), "alm.dm invalid");
assertTrue(allocationManager.delegation() == Env.proxy.delegationManager(), "alm.dm invalid");
assertTrue(allocationManager.pauserRegistry() == Env.impl.pauserRegistry(), "alm.pR invalid");
assertTrue(allocationManager.permissionController() == Env.proxy.permissionController(), "alm.pc invalid");
assertTrue(allocationManager.DEALLOCATION_DELAY() == Env.DEALLOCATION_DELAY(), "alm.deallocationDelay invalid");
assertTrue(
allocationManager.DEALLOCATION_DELAY() == Env.MIN_WITHDRAWAL_DELAY(), "alm.deallocationDelay invalid"
);
assertTrue(
allocationManager.ALLOCATION_CONFIGURATION_DELAY() == Env.ALLOCATION_CONFIGURATION_DELAY(),
"alm.allocationConfigurationDelay invalid"
Expand Down

0 comments on commit beb3600

Please sign in to comment.