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

refactor!: manual payout only #68

Merged
merged 10 commits into from
Jun 3, 2024
1,529 changes: 77 additions & 1,452 deletions api/manifest/v1/genesis.pulsar.go

Large diffs are not rendered by default.

795 changes: 522 additions & 273 deletions api/manifest/v1/tx.pulsar.go

Large diffs are not rendered by default.

38 changes: 19 additions & 19 deletions api/manifest/v1/tx_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 0 additions & 27 deletions proto/manifest/v1/genesis.proto
Original file line number Diff line number Diff line change
Expand Up @@ -17,31 +17,4 @@ message Params {
option (amino.name) = "manifest/params";
option (gogoproto.equal) = true;
option (gogoproto.goproto_stringer) = false;

repeated StakeHolders stake_holders = 1;

Inflation inflation = 2;
}

// StakeHolders is the list of addresses and their percentage of the inflation distribution
message StakeHolders {
option (gogoproto.equal) = true;

// manifest address
string address = 1;

// percentage is the micro denom % of tokens this address gets on a distribution.
// 100% = 100_000_000 total. so 1_000000 = 1%.
int32 percentage = 2;
}

// Inflation is the distribution coins to the stake holders
message Inflation {
option (gogoproto.equal) = true;
// if automatic inflation is enabled for distribution
bool automatic_enabled = 1;
// amount of umfx tokens distributed per year
uint64 yearly_amount = 2;
// the token to distribute (i.e. 'umfx')
string mint_denom = 3;
}
Reecepbcups marked this conversation as resolved.
Show resolved Hide resolved
22 changes: 10 additions & 12 deletions proto/manifest/v1/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ service Msg {
// Since: cosmos-sdk 0.47
rpc UpdateParams(MsgUpdateParams) returns (MsgUpdateParamsResponse);

// PayoutStakeholders allows the authority to manually pay out stakeholders.
rpc PayoutStakeholders(MsgPayoutStakeholders) returns (MsgPayoutStakeholdersResponse);
// Payout allows the authority to manually pay out stakeholders.
rpc Payout(MsgPayout) returns (MsgPayoutResponse);

// BurnHeldBalance allows a tokenholder to burn coins they own.
rpc BurnHeldBalance(MsgBurnHeldBalance) returns (MsgBurnHeldBalanceResponse);
Expand All @@ -47,27 +47,25 @@ message MsgUpdateParams {
// Since: cosmos-sdk 0.47
message MsgUpdateParamsResponse {}

// MsgPayoutStakeholders is the Msg/PayoutStakeholders request type.
message MsgPayoutStakeholders {
// MsgPayout is the Msg/Payout request type.
message MsgPayout {
option (cosmos.msg.v1.signer) = "authority";
option (gogoproto.equal) = false;

// authority is the address of the controlling account.
string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];

// payout is the amount of tokens paid to the current stakeholders.
cosmos.base.v1beta1.Coin payout = 2 [
// payout is the amount of tokens paid to accounts.
map<string, cosmos.base.v1beta1.Coin> payouts = 2 [
(gogoproto.nullable) = false,
(amino.dont_omitempty) = true,
(amino.encoding) = "legacy_coins",
(gogoproto.castrepeated) = "cosmossdk.io/api/cosmos/base/v1beta1.Coins"
(amino.dont_omitempty) = true
];
}

// MsgPayoutStakeholdersResponse defines the response structure for executing a MsgPayoutStakeholders message.
message MsgPayoutStakeholdersResponse {}
// MsgPayoutResponse defines the response structure for executing a MsgPayout message.
message MsgPayoutResponse {}

// MsgPayoutStakeholders is the Msg/BurnHeldBalance request type.
// MsgPayout is the Msg/BurnHeldBalance request type.
message MsgBurnHeldBalance {
option (cosmos.msg.v1.signer) = "sender";
option (gogoproto.equal) = false;
Expand Down
78 changes: 0 additions & 78 deletions x/manifest/abci.go

This file was deleted.

Loading
Loading