Skip to content

Commit

Permalink
Edit package details
Browse files Browse the repository at this point in the history
  • Loading branch information
barnabemonnot committed Jul 8, 2020
1 parent 0b50bd0 commit e21bddf
Show file tree
Hide file tree
Showing 13 changed files with 24 additions and 451 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ spec-changes.md
build
__pycache__
Pipfile
Pipfile.lock
.ipynb_checkpoints
11 changes: 9 additions & 2 deletions beaconrunner/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
name = "beaconrunner"
configs = []
from beaconrunner import (
brlib,
cadCADsupSUP,
eth2,
network,
specs,
validatorlib,
)

6 changes: 3 additions & 3 deletions beaconrunner/brlib.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import secrets
import specs
import network as nt
import beaconrunner.specs as specs
import beaconrunner.network as nt
import time
import random

from eth2spec.utils.ssz.ssz_impl import hash_tree_root
from eth2spec.utils.ssz.ssz_typing import Bitlist
from eth2spec.utils.hash_function import hash
from eth2 import eth_to_gwei
from beaconrunner.eth2 import eth_to_gwei

## Initialisation

Expand Down
5 changes: 3 additions & 2 deletions beaconrunner/network.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import time
from typing import Set, Optional, Sequence, Tuple, Dict
from dataclasses import dataclass, field
from specs import (

from beaconrunner.specs import (
VALIDATOR_REGISTRY_LIMIT,
ValidatorIndex, Slot,
BeaconState, Attestation, SignedBeaconBlock,
Store, get_forkchoice_store, on_block, on_attestation
)
from validatorlib import BRValidator
from beaconrunner.validatorlib import BRValidator

from eth2spec.utils.ssz.ssz_typing import Container, List, uint64

Expand Down
3 changes: 2 additions & 1 deletion beaconrunner/validatorlib.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import time
from typing import Set, Optional, Sequence, Tuple, Dict, Text
from dataclasses import dataclass, field
import specs

import beaconrunner.specs as specs

from eth2spec.utils.ssz.ssz_impl import hash_tree_root
from eth2spec.utils.ssz.ssz_typing import Container, List, uint64, Bitlist, Bytes32
Expand Down
2 changes: 1 addition & 1 deletion beaconrunner/validators/ASAPValidator.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from typing import Optional

import beaconrunner.specs
import beaconrunner.specs as specs
import beaconrunner.validatorlib as vlib

class ASAPValidator(vlib.BRValidator):
Expand Down
2 changes: 1 addition & 1 deletion beaconrunner/validators/PrudentValidator.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from typing import Optional

import beaconrunner.specs
import beaconrunner.specs as specs
import beaconrunner.validatorlib as vlib

class PrudentValidator(vlib.BRValidator):
Expand Down
2 changes: 2 additions & 0 deletions beaconrunner/validators/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from beaconrunner.validators.ASAPValidator import ASAPValidator
from beaconrunner.validators.PrudentValidator import PrudentValidator
Binary file removed dist/beaconrunner-0.1.1-py3-none-any.whl
Binary file not shown.
Binary file removed dist/beaconrunner-0.1.1.tar.gz
Binary file not shown.
220 changes: 0 additions & 220 deletions fast.yaml

This file was deleted.

Loading

0 comments on commit e21bddf

Please sign in to comment.