Skip to content

Commit

Permalink
reintroduce authorized accounts contract
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick95550 committed Jun 13, 2024
1 parent f80643d commit 22d6912
Show file tree
Hide file tree
Showing 10 changed files with 1,636 additions and 19 deletions.
10 changes: 9 additions & 1 deletion common/contracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export const DeployedContractNames = {
seekerStakingManager: 'SeekerStakingManager',
protocolTimeManager: 'ProtocolTimeManager',
registries: 'Registries',
authorizedAccounts: 'AuthorizedAccounts',
};

export const ContractNames = {
Expand All @@ -26,6 +27,7 @@ export type SyloContracts = {
seekers: factories.contracts.mocks.TestSeekers;
protocolTimeManager: factories.contracts.ProtocolTimeManager;
registries: factories.contracts.Registries;
authorizedAccounts: factories.contracts.AuthorizedAccounts;
};

export type ContractAddresses = {
Expand All @@ -35,8 +37,8 @@ export type ContractAddresses = {
seekerStakingManager: string;
seekers: string;
protocolTimeManager: string;
seekerPowerOracle: string;
registries: string;
authorizedAccounts: string;
};

export function connectContracts(
Expand Down Expand Up @@ -78,6 +80,11 @@ export function connectContracts(
provider,
);

const authorizedAccounts = factories.AuthorizedAccounts__factory.connect(
contracts.authorizedAccounts,
provider,
);

return {
syloToken,
syloStakingManager,
Expand All @@ -86,5 +93,6 @@ export function connectContracts(
seekers,
protocolTimeManager,
registries,
authorizedAccounts,
};
}
Loading

0 comments on commit 22d6912

Please sign in to comment.