Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: add EpochManagerAdapter infra #7652

Merged
merged 3 commits into from
Sep 21, 2022
Merged

Conversation

matklad
Copy link
Contributor

@matklad matklad commented Sep 20, 2022

Part of #6910

The grand plan is to separate EpochManager out of NightshadeRuntime. As
a first step, I want to separate the types of runtime and epoch
manager, while keeping them in the same object. I want to do this via
the following series of steps:

trait RuntimeAdapter {}
trait EpochManagerAdapter {}

trait RuntimeAdapter: EpochManagerAdapter {}
trait EpochManagerAdapter {}

trait RuntimeAdapter {}

This PR introduces the EpochManagerAdapter infra.

You can see the rough idea of the plan in #7606

@matklad matklad requested a review from mm-near September 20, 2022 17:41
@matklad matklad requested a review from a team as a code owner September 20, 2022 17:41
Part of near#6910

The grand plan is to separate EpochManager out of NightshadeRuntime. As
a first step, I want to separate the *types* of runtime and epoch
manager, while keeping them in the same object. I want to do this via
the following series of steps:

```
trait RuntimeAdapter {}
```

```
trait EpochManagerAdapter {}

trait RuntimeAdapter: EpochManagerAdapter {}
```

```
trait EpochManagerAdapter {}

trait RuntimeAdapter {}
```

This PR introduces the EpochManagerAdapter infra.

You can see the rough idea of the plan in near#7606
Just to show how it works! Expect this repeated a bunch of times soon!
@near-bulldozer near-bulldozer bot merged commit f36550f into near:master Sep 21, 2022
near-bulldozer bot pushed a commit that referenced this pull request Sep 21, 2022
Part of #6910, depends on #7652

Must be reviewed per commit.
@matklad matklad deleted the m/em-1 branch September 22, 2022 09:26
nikurt pushed a commit that referenced this pull request Sep 26, 2022
Part of #6910

The grand plan is to separate EpochManager out of NightshadeRuntime. As
a first step, I want to separate the *types* of runtime and epoch
manager, while keeping them in the same object. I want to do this via
the following series of steps:

```
trait RuntimeAdapter {}
```

```
trait EpochManagerAdapter {}

trait RuntimeAdapter: EpochManagerAdapter {}
```

```
trait EpochManagerAdapter {}

trait RuntimeAdapter {}
```

This PR introduces the EpochManagerAdapter infra.

You can see the rough idea of the plan in #7606
nikurt pushed a commit that referenced this pull request Sep 26, 2022
Part of #6910, depends on #7652

Must be reviewed per commit.
nikurt pushed a commit that referenced this pull request Nov 9, 2022
Part of #6910

The grand plan is to separate EpochManager out of NightshadeRuntime. As
a first step, I want to separate the *types* of runtime and epoch
manager, while keeping them in the same object. I want to do this via
the following series of steps:

```
trait RuntimeAdapter {}
```

```
trait EpochManagerAdapter {}

trait RuntimeAdapter: EpochManagerAdapter {}
```

```
trait EpochManagerAdapter {}

trait RuntimeAdapter {}
```

This PR introduces the EpochManagerAdapter infra.

You can see the rough idea of the plan in #7606
nikurt pushed a commit that referenced this pull request Nov 9, 2022
Part of #6910, depends on #7652

Must be reviewed per commit.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants