hashgraph / hashgraph/guardian

Enable policy definition syntax to specify token 'end-of-life' rules

Open
#396 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
146
Forks
186
Avg merge
2d 20h
Merged PRs (30d)
126

Description

### Problem description
At present there are extensive facilities in the Policy language which can be used to mandate the 'beginning' of life - i.e. minting - of a token. There needs to be an equivalent capabilities for specifying the retiring rules of tokens.

### Requirements
Implement a definition language in the Policy allowing users to specify rules of retirement in the following way:
- retirement types: either one or the other or both - manual (no enforcement of matching) vs matched
- for the latter case there should be ability to define which policies' tokens can be matched with the ones issued by this policy, and at what matching rate (1:1, 1:2, etc)
- also facility to specify temporal dimension, i.e. which tokens (including the ones issued under the current policy) can be used in for retirements within which specific time period.

Support the above changes in the policy constructor UI and the policy file.

### DOD
- Policy definition language extended as per above
- Documentation updated to reflect the new capabilities
- Demo script update to reflect the capabilities

### Acceptance criteria
- Requirements above are addressed
- Policy engine correctly interprets the corresponding language contract
- Policy Constructor UI is updated to support this

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.