Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
trinitys7 committed Jan 8, 2025
1 parent 2bfccc3 commit 620a723
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion x/asset/spec/01_concepts.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Functionality accounts of a token are accounts that can execute certain actions

In order for a functionality to integrate into the `Asset Module`. It has to implement the `Functionality` interface and has its implementation registered via the method `AddFunctionality`. Once that is done, we can make said functionality available onchain by executing `SoftwareUpgradeProposal` like a regular chain upgrade process.

It's important to note that the token manager can choose what functionalities it wants to disable for its token Which is specified by the token manager when creating the token. After creating the token, all the enabled functionalities will be assigned to the token manager in default but the token manager can assign functionalities to different accounts later on.
Currently, there are 2 type of functionality accounts: `manager` and `distributor`. Each can execute different functionalities. While `distributor` can control the `mint` functionality and custom the `DistributionSettings`, the `manager` can execute the other functionalities like `burn` or `freeze` and could modify the `functionalities_list`. It's important to note that the `manager` can choose what functionalities it wants to disable for its token.

### EVM enable

Expand Down
7 changes: 0 additions & 7 deletions x/asset/spec/02_state.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,6 @@ The `x/asset` module keeps the following objects in state:
| `TokenDistributor` | TokenDistributor info of a denom | `[]byte{4} + []byte(id)` | `[]byte{token_distributor}`| KV |
| `FrozenAddresses` | Frozen Addresses bytecode | `[]byte{5} + []byte(id)` | `[]byte{[]address}` | KV |

### Params

```go
type Params struct {
AllowFunctionalities []string `protobuf:"bytes,1,rep,name=allow_functionalities,json=allowFunctionalities,proto3" json:"allow_functionalities,omitempty"`
}
```

### Token

Expand Down

0 comments on commit 620a723

Please sign in to comment.