mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-12-26 08:15:19 +00:00
e14466547d
* wip: issuance module * add keeper and module methods * add begin blocker * add client * update events * add simulations * ignore v0.8 migration tests for now * ignore migration tests in ci * add test suite * update spec to match implementation details * add unblock method * address review comments * fix typos
32 lines
727 B
Markdown
32 lines
727 B
Markdown
<!--
|
|
order: 2
|
|
-->
|
|
|
|
# State
|
|
|
|
## Parameters and Genesis State
|
|
|
|
```go
|
|
|
|
// Asset type for assets in the issuance module
|
|
type Asset struct {
|
|
Owner sdk.AccAddress `json:"owner" yaml:"owner"`
|
|
Denom string `json:"denom" yaml:"denom"`
|
|
BlockedAddresses []sdk.AccAddress `json:"blocked_addresses" yaml:"blocked_addresses"`
|
|
Paused bool `json:"paused" yaml:"paused"`
|
|
}
|
|
|
|
// Assets array of Asset
|
|
type Assets []Asset
|
|
|
|
// Params governance parameters for the issuance module
|
|
type Params struct {
|
|
Assets Assets `json:"assets" yaml:"assets"`
|
|
}
|
|
|
|
// GenesisState state that must be provided at genesis
|
|
type GenesisState struct {
|
|
Assets Assets `json:"assets" yaml:"assets"`
|
|
}
|
|
```
|