hashgraph / hashgraph/guardian
Guardian policy driven conditioned payment execution on-chain
- Dominant language
- TypeScript
- Stars
- 146
- Forks
- 186
- Avg merge
- 2d 20h
- Merged PRs (30d)
- 126
Description
### Problem description
Guardian is often used in context where payments are required, e.g. supply chain transactions, environment project financing (loans, credits, forwards, etc), or digital product passports (see for example #5018). There currently no way to integrate payments into Guardian policy to be triggered by policy events - e.g. producing/receiving a certificate, or receiving a token, etc.
### Requirements
1. Implement a set of smart contracts and corresponding policy definition elements which would allow workflow driven execution of the following types of payments:
- Immediate
- Milestone based
- Time-based
- Usage based
2. It must be possible to use ANY hedera-based fungble tokens for payment, including but not limited to hbar and USDT/USDC stablecoins.
3. Payments mechanism must support single and multiple payment destinations
4. Payments mechanism should support `pull` or `push` modes.
Escrow and ensuring Oracle trustworthiness are out of scope for this ticket.
### Definition of done
How do we know we've fully dealt with it?
### Acceptance criteria
Policy authors can configure policies such that at specific milestones of the policy workflow based on conditions (based on proofs) on-chain payment transactions are automatically triggered between accounts which can be in or out of policy.
Contributor guide
Assessment
This issue has not been assessed yet.