polyswarmclient.abstractarbiter

Module Contents

polyswarmclient.abstractarbiter.logger[source]
polyswarmclient.abstractarbiter.MAX_STAKE_RETRIES = 10[source]
class polyswarmclient.abstractarbiter.AbstractArbiter(client, testing=0, scanner=None, chains=None, artifact_types=None)[source]

Bases: object

classmethod connect(cls, polyswarmd_addr, keyfile, password, api_key=None, testing=0, insecure_transport=False, scanner=None, chains=None, artifact_types=None)[source]

Connect the Arbiter to a Client.

Parameters
  • polyswarmd_addr (str) – URL of polyswarmd you are referring to.

  • keyfile (str) – Keyfile filename.

  • password (str) – Password associated with Keyfile.

  • api_key (str) – Your PolySwarm API key.

  • testing (int) – Number of testing bounties to use.

  • insecure_transport (bool) – Allow insecure transport such as HTTP?

  • scanner (AbstractScanner) – Scanner for scanning artifacts

  • chains (set(str)) – Set of chains you are acting on.

  • artifact_types (list(ArtifactType)) – List of artifact types you support

Returns

Arbiter instantiated with a Client.

Return type

AbstractArbiter

run(self)[source]

Run the Client on the Arbiter’s chains.