@@ -33,6 +33,7 @@ type ProposalContent interface {
33
33
GetDeposit () btypes.BigInt
34
34
GetProposalType () ProposalType
35
35
GetProposalLevel () ProposalLevel
36
+ GetProposer () btypes.AccAddress
36
37
}
37
38
38
39
type ProposalResult string
@@ -282,6 +283,7 @@ func (tp TextProposal) GetDescription() string { return tp.Description
282
283
func (tp TextProposal ) GetDeposit () btypes.BigInt { return tp .Deposit }
283
284
func (tp TextProposal ) GetProposalType () ProposalType { return ProposalTypeText }
284
285
func (tp TextProposal ) GetProposalLevel () ProposalLevel { return tp .GetProposalType ().Level () }
286
+ func (tp TextProposal ) GetProposer () btypes.AccAddress { return tp .Proposer }
285
287
286
288
// TaxUsage Proposal
287
289
type TaxUsageProposal struct {
@@ -307,10 +309,11 @@ func NewTaxUsageProposal(proposer btypes.AccAddress, title, description string,
307
309
var _ ProposalContent = TaxUsageProposal {}
308
310
309
311
// nolint
310
- func (tp TaxUsageProposal ) GetTitle () string { return tp .Title }
311
- func (tp TaxUsageProposal ) GetDescription () string { return tp .Description }
312
- func (tp TaxUsageProposal ) GetDeposit () btypes.BigInt { return tp .Deposit }
313
- func (tp TaxUsageProposal ) GetProposalType () ProposalType { return ProposalTypeTaxUsage }
312
+ func (tp TaxUsageProposal ) GetTitle () string { return tp .Title }
313
+ func (tp TaxUsageProposal ) GetDescription () string { return tp .Description }
314
+ func (tp TaxUsageProposal ) GetDeposit () btypes.BigInt { return tp .Deposit }
315
+ func (tp TaxUsageProposal ) GetProposalType () ProposalType { return ProposalTypeTaxUsage }
316
+ func (tp TaxUsageProposal ) GetProposer () btypes.AccAddress { return tp .Proposer }
314
317
315
318
// Parameters change Proposal
316
319
type ParameterProposal struct {
@@ -334,10 +337,11 @@ func NewParameterProposal(proposer btypes.AccAddress, title, description string,
334
337
var _ ProposalContent = ParameterProposal {}
335
338
336
339
// nolint
337
- func (tp ParameterProposal ) GetTitle () string { return tp .Title }
338
- func (tp ParameterProposal ) GetDescription () string { return tp .Description }
339
- func (tp ParameterProposal ) GetDeposit () btypes.BigInt { return tp .Deposit }
340
- func (tp ParameterProposal ) GetProposalType () ProposalType { return ProposalTypeParameterChange }
340
+ func (tp ParameterProposal ) GetTitle () string { return tp .Title }
341
+ func (tp ParameterProposal ) GetDescription () string { return tp .Description }
342
+ func (tp ParameterProposal ) GetDeposit () btypes.BigInt { return tp .Deposit }
343
+ func (tp ParameterProposal ) GetProposalType () ProposalType { return ProposalTypeParameterChange }
344
+ func (tp ParameterProposal ) GetProposer () btypes.AccAddress { return tp .Proposer }
341
345
342
346
// Modify Inflation Phrases Proposal
343
347
type ModifyInflationProposal struct {
@@ -363,10 +367,11 @@ func NewAddInflationPhrase(proposer btypes.AccAddress, title, description string
363
367
var _ ProposalContent = ModifyInflationProposal {}
364
368
365
369
// nolint
366
- func (tp ModifyInflationProposal ) GetTitle () string { return tp .Title }
367
- func (tp ModifyInflationProposal ) GetDescription () string { return tp .Description }
368
- func (tp ModifyInflationProposal ) GetDeposit () btypes.BigInt { return tp .Deposit }
369
- func (tp ModifyInflationProposal ) GetProposalType () ProposalType { return ProposalTypeModifyInflation }
370
+ func (tp ModifyInflationProposal ) GetTitle () string { return tp .Title }
371
+ func (tp ModifyInflationProposal ) GetDescription () string { return tp .Description }
372
+ func (tp ModifyInflationProposal ) GetDeposit () btypes.BigInt { return tp .Deposit }
373
+ func (tp ModifyInflationProposal ) GetProposalType () ProposalType { return ProposalTypeModifyInflation }
374
+ func (tp ModifyInflationProposal ) GetProposer () btypes.AccAddress { return tp .Proposer }
370
375
371
376
type Param struct {
372
377
Module string `json:"module"`
@@ -420,7 +425,8 @@ func NewSoftwareUpgradeProposal(proposer btypes.AccAddress, title, description s
420
425
var _ ProposalContent = SoftwareUpgradeProposal {}
421
426
422
427
// nolint
423
- func (tp SoftwareUpgradeProposal ) GetTitle () string { return tp .Title }
424
- func (tp SoftwareUpgradeProposal ) GetDescription () string { return tp .Description }
425
- func (tp SoftwareUpgradeProposal ) GetDeposit () btypes.BigInt { return tp .Deposit }
426
- func (tp SoftwareUpgradeProposal ) GetProposalType () ProposalType { return ProposalTypeSoftwareUpgrade }
428
+ func (tp SoftwareUpgradeProposal ) GetTitle () string { return tp .Title }
429
+ func (tp SoftwareUpgradeProposal ) GetDescription () string { return tp .Description }
430
+ func (tp SoftwareUpgradeProposal ) GetDeposit () btypes.BigInt { return tp .Deposit }
431
+ func (tp SoftwareUpgradeProposal ) GetProposalType () ProposalType { return ProposalTypeSoftwareUpgrade }
432
+ func (tp SoftwareUpgradeProposal ) GetProposer () btypes.AccAddress { return tp .Proposer }
0 commit comments