-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Separate account getters from client/context (#4579)
Account getters are removed from client context. x/auth has the queriers necessary for retrieving account information. These functions should be removed since they are currently redundant and don't provide any extra value. Closes: #4543
- Loading branch information
Alessio Treglia
authored
Jun 19, 2019
1 parent
84a2582
commit 1eb7706
Showing
13 changed files
with
184 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#4543 Account getters are no longer part of client.CLIContext() and have now moved | ||
to reside in the auth-specific AccountRetriever. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
package mocks | ||
|
||
import ( | ||
gomock "github.com/golang/mock/gomock" | ||
reflect "reflect" | ||
) | ||
|
||
type MockNodeQuerier struct { | ||
ctrl *gomock.Controller | ||
recorder *MockNodeQuerierMockRecorder | ||
} | ||
|
||
type MockNodeQuerierMockRecorder struct { | ||
mock *MockNodeQuerier | ||
} | ||
|
||
func NewMockNodeQuerier(ctrl *gomock.Controller) *MockNodeQuerier { | ||
mock := &MockNodeQuerier{ctrl: ctrl} | ||
mock.recorder = &MockNodeQuerierMockRecorder{mock} | ||
return mock | ||
} | ||
|
||
func (m *MockNodeQuerier) EXPECT() *MockNodeQuerierMockRecorder { | ||
return m.recorder | ||
} | ||
|
||
func (m *MockNodeQuerier) QueryWithData(path string, data []byte) ([]byte, int64, error) { | ||
m.ctrl.T.Helper() | ||
ret := m.ctrl.Call(m, "QueryWithData", path, data) | ||
ret0, _ := ret[0].([]byte) | ||
ret1, _ := ret[1].(int64) | ||
ret2, _ := ret[2].(error) | ||
return ret0, ret1, ret2 | ||
} | ||
|
||
func (mr *MockNodeQuerierMockRecorder) QueryWithData(path, data interface{}) *gomock.Call { | ||
mr.mock.ctrl.T.Helper() | ||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueryWithData", reflect.TypeOf((*MockNodeQuerier)(nil).QueryWithData), path, data) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.