Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ICS 21: Permissioned Token Transfers #1116

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
chore: lint
johnletey committed Jun 14, 2024

Verified

This commit was signed with the committer’s verified signature. The key has expired.
johnletey John Letey
commit 907b71a19f2d576a190a71ae3d7455838ddff94f
8 changes: 6 additions & 2 deletions spec/app/ics-021-permissioned-token-transfer/README.md
Original file line number Diff line number Diff line change
@@ -26,7 +26,7 @@ version compatibility: (optional list of compatible implementations' releases)
### Definitions

- `Host Chain`: The chain where the permissioned tokens are considered native. The host chain facilitates connections to mirror chains, and ensures the propagation of token specific allowlists and blocklists.
- `Mirror Chain`: The chain receiving the permissioned tokens and issuing _controlled_ voucher tokens. It is up to the mirror chain to enforce the propagated allowlists and blocklists.
- `Mirror Chain`: The chain receiving the permissioned tokens and issuing *controlled* voucher tokens. It is up to the mirror chain to enforce the propagated allowlists and blocklists.
- `Allowlist`: A group of addresses that are allowed to interact with a permissioned token. Any address not on the allowlist is forbidden to interact with the token.
- `Blocklist`: A group of addresses that aren't allowed to interact with a permissioned token. Any address not on the blocklist is allowed to interact with the token.

@@ -64,7 +64,7 @@ interface PermissionPropagationPacketData {

### Port & channel setup

A ICS 21 Host module must always bind to a port with the id `ics21host`. Mirror Chains will bind to ports dynamically, as specified in the identifier format [section](#identifier-formats).
An ICS 21 Host module must always bind to a port with the id `ics21host`. Mirror Chains will bind to ports dynamically, as specified in the identifier format [section](#identifier-formats).

The example below assumes a module is implementing the entire `ICS21HostModule` interface. The `setup` function must be called exactly once when the module is created (perhaps when the blockchain itself is initialized) to bind to the appropriate port.

@@ -92,6 +92,10 @@ function setup() {

Once the `setup` function has been called, channels can be created via the IBC routing module.

### Identifier formats

TBD

### Properties & Invariants

(properties & invariants maintained by the protocols specified, if applicable)