nevermined_sdk_py.nevermined.templates module

class nevermined_sdk_py.nevermined.templates.Templates(keeper, config)

Bases: object

Nevermined templates class.

approve(template_address, account)

Approve a template already proposed. The account needs to be owner of the templateManager contract to be able of approve the template.

Parameters
  • template_address – Address of the template contract, str

  • account – account approving the template, Account

Returns

bool

propose(template_address, account)

Propose a new template.

Parameters
  • template_address – Address of the template contract, str

  • account – account proposing the template, Account

Returns

bool

revoke(template_address, account)

Revoke a template already approved. The account needs to be owner of the templateManager contract to be able of revoke the template.

Parameters
  • template_address – Address of the template contract, str

  • account – account revoking the template, Account

Returns

bool