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

docs: add govmint to x/foundation specification #748

Merged
merged 2 commits into from
Oct 26, 2022
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,3 +143,4 @@ Ref: https://keepachangelog.com/en/1.0.0/
* (docs) [\#490](https://github.com/line/lbm-sdk/pull/490) update documents on x/consortium
* (docs) [\#602](https://github.com/line/lbm-sdk/pull/602) update outdated events in specs
* (docs) [\#721](https://github.com/line/lbm-sdk/pull/721) update x/foundation specification
* (docs) [\#748](https://github.com/line/lbm-sdk/pull/748) add `govmint` to x/foundation specification
22 changes: 21 additions & 1 deletion x/foundation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ back these foundation-specific functionalities.
* [Msg/Revoke](#msgrevoke)
* [Msg/FundTreasury](#msgfundtreasury)
* [Msg/WithdrawFromTreasury](#msgwithdrawfromtreasury)
* [Msg/GovMint](#msggovmint)
* [Events](#events)
* [EventUpdateFoundationParams](#eventupdatefoundationparams)
* [EventUpdateDecisionPolicy](#eventupdatedecisionpolicy)
Expand All @@ -44,6 +45,7 @@ back these foundation-specific functionalities.
* [EventRevoke](#eventrevoke)
* [EventFundTreasury](#eventfundedtreasury)
* [EventWithdrawFromTreasury](#eventwithdrawedfromtreasury)
* [EventGovMint](#eventgovmint)
* [Client](#client)
* [CLI](#cli)
* [gRPC](#grpc)
Expand Down Expand Up @@ -476,7 +478,7 @@ Anyone can fund treasury with `MsgFundTreasury`.

+++ https://github.com/line/lbm-sdk/blob/392277a33519d289154e8da27f05f9a6788ab076/proto/lbm/foundation/v1/tx.proto#L76-L81

## Msg/WithdrawFromTresury
## Msg/WithdrawFromTreasury
dudong2 marked this conversation as resolved.
Show resolved Hide resolved

The foundation can withdraw coins from the treasury with
`MsgWithdrawFromTreasury`.
Expand All @@ -489,6 +491,16 @@ The message handling should fail if:
* the address which receives the coins has no authorization of
`ReceiveFromTreasuryAuthorization`.

## Msg/GovMint

Massive minting is possible through 'msggovmint' up to 1 time after the chain is started.
dudong2 marked this conversation as resolved.
Show resolved Hide resolved

+++ https://github.com/line/lbm-sdk/blob/66988a235a0e01f7a1ee76d719d585ff35f0d176/proto/lbm/foundation/v1/tx.proto#L221-L225

The message handling should fail if:

* The remaining left count is 0.
dudong2 marked this conversation as resolved.
Show resolved Hide resolved

# Events

## EventUpdateFoundationParams
Expand Down Expand Up @@ -598,6 +610,14 @@ the treasury.
| to | {toAddress} |
| amount | {amount} |

## EventGovMint

`EventGovMint` is an event emitted when coins are minted by proposal
0Tech marked this conversation as resolved.
Show resolved Hide resolved

| Attribute Key | Attribute Value |
|---------------|-----------------|
| amount | {amount} |

# Client

## CLI
Expand Down