squid_py.ocean.ocean_templates module¶
Ocean module.
-
class
squid_py.ocean.ocean_templates.
OceanTemplates
(keeper, config)¶ Bases:
object
Ocean templates class.
-
approve
(template_id, 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_id – hex str bytes32 ID of the template
account – account approving the template, Account
- Returns
bool
-
propose
(template_id, account)¶ Propose a new template.
- Parameters
template_id – hex str bytes32 ID of the template
account – account proposing the template, Account
- Returns
bool
-
revoke
(template_id, 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_id – hex str bytes32 ID of the template
account – account revoking the template, Account
- Returns
bool
-