Skip to content

Commit

Permalink
refactor: manual payout only (excl: e2e)
Browse files Browse the repository at this point in the history
  • Loading branch information
Reecepbcups committed May 30, 2024
1 parent 218c0f5 commit 4925841
Show file tree
Hide file tree
Showing 18 changed files with 1,033 additions and 3,184 deletions.
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;
}
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

0 comments on commit 4925841

Please sign in to comment.