Diff
checker
텍스트
텍스트
이미지
문서
Excel
폴더
Legal
Enterprise
데스크톱
요금제
로그인
데스크톱 앱 다운로드
텍스트 비교
두 텍스트 파일의 차이점을 찾아보세요
도구
기록
표시
레이아웃
나란히 보기
합쳐 보기
실시간 편집
공백 변경 숨기기
변경 없는 행 숨기기
줄바꿈 비활성화
비교 단위
스마트
구문
없음
모양 변경
처리
제외
텍스트 변환
첫 변경으로
수정
Diffchecker Desktop
가장 안전하게 Diffchecker를 사용하는 방법. 데스크톱 앱을 사용하면 비교 데이터가 외부로 전송되지 않습니다!
데스크톱 앱 받기
IDefaultPAUAssembler audited vs deployed
생성일
5개월 전
비교 결과 만료 없음
초기화
내보내기
공유
설명
8 삭제
행
총
삭제
글자
총
삭제
이 기능을 계속 사용하려면 업그레이드해 주세요
Diff
checker
Pro
요금제 보기
155 행
복사
8 추가
행
총
추가
글자
총
추가
이 기능을 계속 사용하려면 업그레이드해 주세요
Diff
checker
Pro
요금제 보기
155 행
복사
// SPDX-License-Identifier: AGPL-3.0-or-later
// SPDX-License-Identifier: AGPL-3.0-or-later
pragma solidity ^0.8.34;
pragma solidity ^0.8.34;
/**
/**
* @title IDefaultPAUAssembler
* @title IDefaultPAUAssembler
* @notice External interface for the {DefaultPAUAssembler}, a one-shot helper that deploys and
* @notice External interface for the {DefaultPAUAssembler}, a one-shot helper that deploys and
* configures a full PAU stack (ALMProxy, RateLimits, Controller) with allocators as
* configures a full PAU stack (ALMProxy, RateLimits, Controller) with allocators as
* AdministeredAgent contracts, in a single transaction. It wires up roles, syncs
* AdministeredAgent contracts, in a single transaction. It wires up roles, syncs
* integrations on the Controller, configures each AdministeredAgent with the uniquely
* integrations on the Controller, configures each AdministeredAgent with the uniquely
* supplied admins/actors/grantors/revokers.
* supplied admins/actors/grantors/revokers.
* @dev All deployed contracts are returned as plain addresses; callers cast them to the
* @dev All deployed contracts are returned as plain addresses; callers cast them to the
* relevant component interfaces as needed.
* relevant component interfaces as needed.
*/
*/
interface IDefaultPAUAssembler {
interface IDefaultPAUAssembler {
/**********************************************************************************************/
/**********************************************************************************************/
/*** Custom Errors ***/
/*** Custom Errors ***/
/**********************************************************************************************/
/**********************************************************************************************/
/// @notice Thrown when an admin array for an AdministeredAgent is empty.
/// @notice Thrown when an admin array for an AdministeredAgent is empty.
error NoAgentAdmins();
error NoAgentAdmins();
/// @notice Thrown when an admin array for a component's default admins is empty.
/// @notice Thrown when an admin array for a component's default admins is empty.
error NoDefaultAdmins();
error NoDefaultAdmins();
/// @notice Thrown when the supplied PAU factory is the zero address.
/// @notice Thrown when the supplied PAU factory is the zero address.
error ZeroPAUFactory();
error ZeroPAUFactory();
/// @notice Thrown when the supplied AdministeredAgent factory is the zero address.
/// @notice Thrown when the supplied AdministeredAgent factory is the zero address.
error ZeroAdministeredAgentFactory();
error ZeroAdministeredAgentFactory();
/// @notice Thrown when a supplied default admin address is the zero address.
/// @notice Thrown when a supplied default admin address is the zero address.
error ZeroDefaultAdmin();
error ZeroDefaultAdmin();
/**********************************************************************************************/
/**********************************************************************************************/
/*** Structs ***/
/*** Structs ***/
/**********************************************************************************************/
/**********************************************************************************************/
/**
/**
* @notice Admins to be granted admin rights on each component of the deployed stack.
* @notice Admins to be granted admin rights on each component of the deployed stack.
* @param accessControlAdmins Admins for the AccessControls contract.
* @param accessControlAdmins Admins for the AccessControls contract.
* @param proxyAdmins Admins for the ALMProxy contract.
* @param proxyAdmins Admins for the ALMProxy contract.
* @param rateLimitsAdmins Admins for the RateLimits contract.
* @param rateLimitsAdmins Admins for the RateLimits contract.
*/
*/
struct AdminConfig {
struct AdminConfig {
address[] accessControlAdmins;
address[] accessControlAdmins;
address[] proxyAdmins;
address[] proxyAdmins;
address[] rateLimitsAdmins;
address[] rateLimitsAdmins;
}
}
/**
/**
* @notice Configuration applied to an AdministeredAgent after deployment.
* @notice Configuration applied to an AdministeredAgent after deployment.
* @param admins Addresses to configure as admins on the agent.
* @param admins Addresses to configure as admins on the agent.
* @param actors Addresses to configure as actors on the agent.
* @param actors Addresses to configure as actors on the agent.
* @param grantors Addresses to configure as grantors on the agent.
* @param grantors Addresses to configure as grantors on the agent.
* @param revokers Addresses to configure as revokers on the agent.
* @param revokers Addresses to configure as revokers on the agent.
*/
*/
struct AdministeredAgentConfig {
struct AdministeredAgentConfig {
address[] admins;
address[] admins;
address[] actors;
address[] actors;
address[] grantors;
address[] grantors;
address[] revokers;
address[] revokers;
}
}
/**********************************************************************************************/
/**********************************************************************************************/
/*** Events ***/
/*** Events ***/
/**********************************************************************************************/
/**********************************************************************************************/
/**
/**
* @notice Emitted once a PAU stack and AdministeredAgents have been deployed and configured.
* @notice Emitted once a PAU stack and AdministeredAgents have been deployed and configured.
* @param proxy The deployed ALMProxy contract.
* @param proxy The deployed ALMProxy contract.
* @param controller The deployed Controller contract.
* @param controller The deployed Controller contract.
* @param accessControls The deployed AccessControls contract.
* @param accessControls The deployed AccessControls contract.
* @param rateLimits The deployed RateLimits contract.
* @param rateLimits The deployed RateLimits contract.
* @param allocatorAgents The deployed allocators as AdministeredAgent contracts.
* @param allocatorAgents The deployed allocators as AdministeredAgent contracts.
* @param integrationIds The integration IDs synced on the Controller.
* @param integrationIds The integration IDs synced on the Controller.
* @param adminConfig The admin configuration applied across the stack.
* @param adminConfig The admin configuration applied across the stack.
* @param allocatorAgentConfigs The configurations applied to each AdministeredAgent allocator.
* @param allocatorAgentConfigs The configurations applied to each AdministeredAgent allocator.
*/
*/
event Deployment(
event Deployment(
address indexed proxy,
address indexed proxy,
address indexed controller,
address indexed controller,
address accessControls,
address accessControls,
address rateLimits,
address rateLimits,
address[] allocatorAgents,
address[] allocatorAgents,
bytes32[] integrationIds,
bytes32[] integrationIds,
AdminConfig adminConfig,
AdminConfig adminConfig,
AdministeredAgentConfig[] allocatorAgentConfigs
AdministeredAgentConfig[] allocatorAgentConfigs
);
);
/**********************************************************************************************/
/**********************************************************************************************/
/*** View/Pure Functions ***/
/*** View/Pure Functions ***/
/**********************************************************************************************/
/**********************************************************************************************/
/**
/**
* @notice Semantic version of this assembler implementation.
* @notice Semantic version of this assembler implementation.
* @return The version string.
* @return The version string.
*/
*/
function VERSION() external view returns (string memory);
function VERSION() external view returns (string memory);
저장된 비교 결과
원본
파일 열기
// SPDX-License-Identifier: AGPL-3.0-or-later pragma solidity ^0.8.34; /** * @title IDefaultPAUAssembler * @notice External interface for the {DefaultPAUAssembler}, a one-shot helper that deploys and * configures a full PAU stack (ALMProxy, RateLimits, Controller) with allocators as * AdministeredAgent contracts, in a single transaction. It wires up roles, syncs * integrations on the Controller, configures each AdministeredAgent with the uniquely * supplied admins/actors/grantors/revokers. * @dev All deployed contracts are returned as plain addresses; callers cast them to the * relevant component interfaces as needed. */ interface IDefaultPAUAssembler { /**********************************************************************************************/ /*** Custom Errors ***/ /**********************************************************************************************/ /// @notice Thrown when an admin array for an AdministeredAgent is empty. error NoAgentAdmins(); /// @notice Thrown when an admin array for a component's default admins is empty. error NoDefaultAdmins(); /// @notice Thrown when the supplied PAU factory is the zero address. error ZeroPAUFactory(); /// @notice Thrown when the supplied AdministeredAgent factory is the zero address. error ZeroAdministeredAgentFactory(); /// @notice Thrown when a supplied default admin address is the zero address. error ZeroDefaultAdmin(); /**********************************************************************************************/ /*** Structs ***/ /**********************************************************************************************/ /** * @notice Admins to be granted admin rights on each component of the deployed stack. * @param accessControlAdmins Admins for the AccessControls contract. * @param proxyAdmins Admins for the ALMProxy contract. * @param rateLimitsAdmins Admins for the RateLimits contract. */ struct AdminConfig { address[] accessControlAdmins; address[] proxyAdmins; address[] rateLimitsAdmins; } /** * @notice Configuration applied to an AdministeredAgent after deployment. * @param admins Addresses to configure as admins on the agent. * @param actors Addresses to configure as actors on the agent. * @param grantors Addresses to configure as grantors on the agent. * @param revokers Addresses to configure as revokers on the agent. */ struct AdministeredAgentConfig { address[] admins; address[] actors; address[] grantors; address[] revokers; } /**********************************************************************************************/ /*** Events ***/ /**********************************************************************************************/ /** * @notice Emitted once a PAU stack and AdministeredAgents have been deployed and configured. * @param proxy The deployed ALMProxy contract. * @param controller The deployed Controller contract. * @param accessControls The deployed AccessControls contract. * @param rateLimits The deployed RateLimits contract. * @param allocatorAgents The deployed allocators as AdministeredAgent contracts. * @param integrationIds The integration IDs synced on the Controller. * @param adminConfig The admin configuration applied across the stack. * @param allocatorAgentConfigs The configurations applied to each AdministeredAgent allocator. */ event Deployment( address indexed proxy, address indexed controller, address accessControls, address rateLimits, address[] allocatorAgents, bytes32[] integrationIds, AdminConfig adminConfig, AdministeredAgentConfig[] allocatorAgentConfigs ); /**********************************************************************************************/ /*** View/Pure Functions ***/ /**********************************************************************************************/ /** * @notice Semantic version of this assembler implementation. * @return The version string. */ function VERSION() external view returns (string memory); /** * @notice The underlying PAU factory used to deploy each individual component. * @return The address of the PAU factory. */ function pauFactory() external view returns (address); /** * @notice The factory used to deploy the AdministeredAgent. * @return The address of the AdministeredAgent factory. */ function administeredAgentFactory() external view returns (address); /**********************************************************************************************/ /*** Interactive Functions ***/ /**********************************************************************************************/ /** * @notice Deploys and configures a full PAU stack (ALMProxy, Controller, AccessControls, * RateLimits) with allocators as AdministeredAgent contracts, in a single transaction. * Wires up roles, syncs integrations on the Controller, configures each * AdministeredAgent with the respective supplied admins/actors/grantors/revokers. * @dev Emits {Deployment} on completion. After this call, this assembler holds no privileged * roles on any of the returned contracts. The Controller is granted CONTROLLER on the * ALMProxy and on the RateLimits. * * Notes: * - When `integrationIds` is empty, the Controller `updateIntegrations` call is * skipped entirely (the Controller reverts on an empty array), so a stack can be * deployed with no integrations and configured later by an admin. * @param integrationIds Integration IDs to sync on the Controller via * `updateIntegrations` (may be empty). * @param adminConfig Admins to grant across the deployed stack. * @param allocatorAgentConfigs Admin/actor/grantor/revoker configuration for the allocator * AdministeredAgent contracts. * @return proxy The deployed ALMProxy contract. * @return controller The deployed Controller contract. * @return accessControls The deployed AccessControls contract. * @return rateLimits The deployed RateLimits contract. * @return allocatorAgents The deployed allocator AdministeredAgent contracts. */ function deploy( bytes32[] memory integrationIds, AdminConfig memory adminConfig, AdministeredAgentConfig[] memory allocatorAgentConfigs ) external returns ( address proxy, address controller, address accessControls, address rateLimits, address[] memory allocatorAgents ); }
수정본
파일 열기
// SPDX-License-Identifier: AGPL-3.0-or-later pragma solidity ^0.8.34; /** * @title IDefaultPAUAssembler * @notice External interface for the {DefaultPAUAssembler}, a one-shot helper that deploys and * configures a full PAU stack (ALMProxy, RateLimits, Controller) with allocators as * AdministeredAgent contracts, in a single transaction. It wires up roles, syncs * integrations on the Controller, configures each AdministeredAgent with the uniquely * supplied admins/actors/grantors/revokers. * @dev All deployed contracts are returned as plain addresses; callers cast them to the * relevant component interfaces as needed. */ interface IDefaultPAUAssembler { /**********************************************************************************************/ /*** Custom Errors ***/ /**********************************************************************************************/ /// @notice Thrown when an admin array for an AdministeredAgent is empty. error NoAgentAdmins(); /// @notice Thrown when an admin array for a component's default admins is empty. error NoDefaultAdmins(); /// @notice Thrown when the supplied PAU factory is the zero address. error ZeroPAUFactory(); /// @notice Thrown when the supplied AdministeredAgent factory is the zero address. error ZeroAdministeredAgentFactory(); /// @notice Thrown when a supplied default admin address is the zero address. error ZeroDefaultAdmin(); /**********************************************************************************************/ /*** Structs ***/ /**********************************************************************************************/ /** * @notice Admins to be granted admin rights on each component of the deployed stack. * @param accessControlAdmins Admins for the AccessControls contract. * @param proxyAdmins Admins for the ALMProxy contract. * @param rateLimitsAdmins Admins for the RateLimits contract. */ struct AdminConfig { address[] accessControlAdmins; address[] proxyAdmins; address[] rateLimitsAdmins; } /** * @notice Configuration applied to an AdministeredAgent after deployment. * @param admins Addresses to configure as admins on the agent. * @param actors Addresses to configure as actors on the agent. * @param grantors Addresses to configure as grantors on the agent. * @param revokers Addresses to configure as revokers on the agent. */ struct AdministeredAgentConfig { address[] admins; address[] actors; address[] grantors; address[] revokers; } /**********************************************************************************************/ /*** Events ***/ /**********************************************************************************************/ /** * @notice Emitted once a PAU stack and AdministeredAgents have been deployed and configured. * @param proxy The deployed ALMProxy contract. * @param controller The deployed Controller contract. * @param accessControls The deployed AccessControls contract. * @param rateLimits The deployed RateLimits contract. * @param allocatorAgents The deployed allocators as AdministeredAgent contracts. * @param integrationIds The integration IDs synced on the Controller. * @param adminConfig The admin configuration applied across the stack. * @param allocatorAgentConfigs The configurations applied to each AdministeredAgent allocator. */ event Deployment( address indexed proxy, address indexed controller, address accessControls, address rateLimits, address[] allocatorAgents, bytes32[] integrationIds, AdminConfig adminConfig, AdministeredAgentConfig[] allocatorAgentConfigs ); /**********************************************************************************************/ /*** View/Pure Functions ***/ /**********************************************************************************************/ /** * @notice Semantic version of this assembler implementation. * @return The version string. */ function VERSION() external view returns (string memory); /** * @notice The underlying PAU factory used to deploy each individual component. * @return The address of the PAU factory. */ function pauFactory() external view returns (address); /** * @notice The factory used to deploy the AdministeredAgent. * @return The address of the AdministeredAgent factory. */ function administeredAgentFactory() external view returns (address); /**********************************************************************************************/ /*** Interactive Functions ***/ /**********************************************************************************************/ /** * @notice Deploys and configures a full PAU stack (ALMProxy, RateLimits, Controller) with * allocators as AdministeredAgent contracts, in a single transaction. Wires up roles, * syncs integrations on the Controller, configures each AdministeredAgent with the * respective supplied admins/actors/grantors/revokers. * @dev Emits {Deployment} on completion. After this call, this assembler holds no privileged * roles on any of the returned contracts. The Controller is granted CONTROLLER on the * ALMProxy (the role that gates `doCall` for a standard proxy). * * Notes: * - When `integrationIds` is empty, the Controller `updateIntegrations` call is * skipped entirely (the Controller reverts on an empty array), so a stack can be * deployed with no integrations and configured later by an admin. * @param integrationIds Integration IDs to sync on the Controller via * `updateIntegrations` (may be empty). * @param adminConfig Admins to grant across the deployed stack. * @param allocatorAgentConfigs Admin/actor/grantor/revoker configuration for the allocator * AdministeredAgent contracts. * @return proxy The deployed ALMProxy contract. * @return controller The deployed Controller contract. * @return accessControls The deployed AccessControls contract. * @return rateLimits The deployed RateLimits contract. * @return allocatorAgents The deployed allocator AdministeredAgent contracts. */ function deploy( bytes32[] memory integrationIds, AdminConfig memory adminConfig, AdministeredAgentConfig[] memory allocatorAgentConfigs ) external returns ( address proxy, address controller, address accessControls, address rateLimits, address[] memory allocatorAgents ); }
비교하기