Skip to content

Commit df2369d

Browse files
authored
[ADHOC] Add limited signer valiator interface (#409)
1 parent 04803bb commit df2369d

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
lines changed

.changeset/tough-actors-cross.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@boostxyz/evm": patch
3+
"@boostxyz/sdk": patch
4+
---
5+
6+
export LimitedSignerValidator component interface

packages/evm/script/solidity/ComponentInterface.s.sol

+8
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import {AManagedBudgetWithFeesV2} from "contracts/budgets/AManagedBudgetWithFees
1414
import {AVestingBudget} from "contracts/budgets/AVestingBudget.sol";
1515

1616
import {ASignerValidator} from "contracts/validators/ASignerValidator.sol";
17+
import {ALimitedSignerValidator} from "contracts/validators/ALimitedSignerValidator.sol";
1718

1819
import {AEventAction} from "contracts/actions/EventAction.sol";
1920

@@ -49,6 +50,7 @@ contract LogComponentInterface is ScriptUtils {
4950
_getInterfaceAManagedBudgetWithFeesV2();
5051
_getInterfaceAVestingBudget();
5152
_getInterfaceASignerValidator();
53+
_getInterfaceALimitedSignerValidator();
5254
_getInterfaceAAllowListIncentive();
5355
_getInterfaceACGDAIncentive();
5456
_getInterfaceAIncentive();
@@ -114,6 +116,12 @@ contract LogComponentInterface is ScriptUtils {
114116
componentJson = componentJsonKey.serialize("ASignerValidator", interfaceId);
115117
}
116118

119+
120+
function _getInterfaceALimitedSignerValidator() internal {
121+
string memory interfaceId = uint256(uint32(type(ALimitedSignerValidator).interfaceId)).toHexString(4);
122+
componentJson = componentJsonKey.serialize("ALimitedSignerValidator", interfaceId);
123+
}
124+
117125
function _getInterfaceAAllowListIncentive() internal {
118126
string memory interfaceId = uint256(uint32(type(AAllowListIncentive).interfaceId)).toHexString(4);
119127
componentJson = componentJsonKey.serialize("AAllowListIncentive", interfaceId);

packages/sdk/src/Validators/Validator.ts

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import { aValidatorAbi } from '@boostxyz/evm';
22
import {
3+
ALimitedSignerValidator,
34
ASignerValidator,
4-
// TODO: bring this back in
5-
// ALimitedSignerValidator,
65
} from '@boostxyz/evm/deploys/componentInterfaces.json';
76
import { readContract } from '@wagmi/core';
87
import { type Address, type Hex, decodeAbiParameters } from 'viem';
@@ -29,8 +28,7 @@ export type Validator = SignerValidator | LimitedSignerValidator;
2928
*/
3029
export const ValidatorByComponentInterface = {
3130
[ASignerValidator as Hex]: SignerValidator,
32-
// TODO bring this back in
33-
// [ALimitedSignerValidator as Hex]: LimitedSignerValidator,
31+
[ALimitedSignerValidator as Hex]: LimitedSignerValidator,
3432
};
3533

3634
/**

0 commit comments

Comments
 (0)