Rename stake/ to staking/ (#3280)

This commit is contained in:
frog power 4000
2019-01-11 12:08:01 -08:00
committed by Jack Zampolin
parent df567616a9
commit 78a21353da
132 changed files with 1024 additions and 1021 deletions
+3 -3
View File
@@ -2,7 +2,7 @@
## Create or modify delegation distribution
- triggered-by: `stake.TxDelegate`, `stake.TxBeginRedelegate`, `stake.TxBeginUnbonding`
- triggered-by: `staking.TxDelegate`, `staking.TxBeginRedelegate`, `staking.TxBeginUnbonding`
The pool of a new delegator bond will be 0 for the height at which the bond was
added, or the withdrawal has taken place. This is achieved by setting
@@ -10,7 +10,7 @@ added, or the withdrawal has taken place. This is achieved by setting
## Commission rate change
- triggered-by: `stake.TxEditValidator`
- triggered-by: `staking.TxEditValidator`
If a validator changes its commission rate, all commission on fees must be
simultaneously withdrawn using the transaction `TxWithdrawValidator`.
@@ -19,7 +19,7 @@ Additionally the change and associated height must be recorded in a
## Change in Validator State
- triggered-by: `stake.Slash`, `stake.UpdateValidator`
- triggered-by: `staking.Slash`, `staking.UpdateValidator`
Whenever a validator is slashed or enters/leaves the validator group all of the
validator entitled reward tokens must be simultaneously withdrawn from
+2 -2
View File
@@ -24,7 +24,7 @@ func GetDelegatorRewardsAll(delegatorAddr sdk.AccAddress, height int64) DecCoins
// collect all entitled rewards
withdraw = 0
pool = stake.GetPool()
pool = staking.GetPool()
feePool = GetFeePool()
for delegation = range delegations
delInfo = GetDelegationDistInfo(delegation.DelegatorAddr,
@@ -55,7 +55,7 @@ func WithdrawDelegationReward(delegatorAddr, validatorAddr, withdrawAddr sdk.Acc
height = GetHeight()
// get all distribution scenarios
pool = stake.GetPool()
pool = staking.GetPool()
feePool = GetFeePool()
delInfo = GetDelegationDistInfo(delegatorAddr,
validatorAddr)