mirror of https://github.com/nucypher/nucypher.git
Incorporate Seeder as a first-class citizen of the NuCypher contracts
parent
53bc713710
commit
ea0f1d10a3
|
@ -36,6 +36,7 @@ from nucypher.blockchain.eth.constants import (
|
|||
ADJUDICATOR_CONTRACT_NAME,
|
||||
NUCYPHER_TOKEN_CONTRACT_NAME,
|
||||
MULTISIG_CONTRACT_NAME,
|
||||
SEEDER_CONTRACT_NAME,
|
||||
ETH_ADDRESS_BYTE_LENGTH
|
||||
)
|
||||
from nucypher.blockchain.eth.decorators import validate_checksum_address
|
||||
|
@ -1129,7 +1130,7 @@ class WorkLockAgent(EthereumContractAgent):
|
|||
|
||||
class SeederAgent(EthereumContractAgent):
|
||||
|
||||
registry_contract_name = "Seeder"
|
||||
registry_contract_name = SEEDER_CONTRACT_NAME
|
||||
|
||||
def enroll(self, sender_address: str, seed_address: str, ip: str, port: int) -> dict:
|
||||
# TODO: Protection for over-enrollment
|
||||
|
|
|
@ -30,6 +30,7 @@ PREALLOCATION_ESCROW_CONTRACT_NAME = 'PreallocationEscrow'
|
|||
ADJUDICATOR_CONTRACT_NAME = 'Adjudicator'
|
||||
WORKLOCK_CONTRACT_NAME = 'WorkLock'
|
||||
MULTISIG_CONTRACT_NAME = 'MultiSig'
|
||||
SEEDER_CONTRACT_NAME = 'Seeder'
|
||||
|
||||
NUCYPHER_CONTRACT_NAMES = (
|
||||
DISPATCHER_CONTRACT_NAME,
|
||||
|
@ -41,7 +42,8 @@ NUCYPHER_CONTRACT_NAMES = (
|
|||
PREALLOCATION_ESCROW_CONTRACT_NAME,
|
||||
ADJUDICATOR_CONTRACT_NAME,
|
||||
WORKLOCK_CONTRACT_NAME,
|
||||
MULTISIG_CONTRACT_NAME
|
||||
MULTISIG_CONTRACT_NAME,
|
||||
SEEDER_CONTRACT_NAME
|
||||
)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue