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

Decouple auth module from other SDK top-level core packages #4488

Closed
2 of 8 tasks
alessio opened this issue Jun 5, 2019 · 5 comments
Closed
2 of 8 tasks

Decouple auth module from other SDK top-level core packages #4488

alessio opened this issue Jun 5, 2019 · 5 comments
Assignees
Milestone

Comments

@alessio
Copy link
Contributor

alessio commented Jun 5, 2019

Technical task

We want to remove auth package dependency from the following core packages:

  • client
  • simapp (unsure about this)
  • server
  • client/tx/legacy.go

For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned
@alexanderbez
Copy link
Contributor

Would be helpful to first list the dependencies 👍

@alessio alessio added this to the v1.0 LTS milestone Jun 5, 2019
alessio added a commit that referenced this issue Jun 7, 2019
New Signature interface available in the top level types package.
auth.StdSignature implements such interface. User defined auth
module can now define their own custom signature types.

Work carried out in the context of the following issues:
- #4488
- #4487
alessio pushed a commit that referenced this issue Jun 7, 2019
New Signature interface available in the top level types package.
auth.StdSignature implements such interface. User defined auth
module can now define their own custom signature types.

Work carried out in the context of the following issues:
- #4488
- #4487
alessio added a commit that referenced this issue Jun 7, 2019
A new Fee interface is made available in the top level types package.
auth.StdFee implements such interface. User defined auth module can
now define their own custom fee types.

Work carried out in the context of the following issues:
- #4488
- #4487
@rigelrozanski
Copy link
Contributor

Evaluation:

required to be moved into auth/

  • utils
  • rest
  • tx

context/ decoders will no longer depend on auth after #4543 (so context is fine)

Fine staying in auth (everything else):
flags = good
input = good
lcd = good
keys = good
rpc = good
client/ (root) = good

@alexanderbez
Copy link
Contributor

Took a stab at #4543 and that will be much easier once this is done (because if util/). So I'm blocking #4543 on this.

alessio added a commit that referenced this issue Jun 14, 2019
@alessio alessio self-assigned this Jun 19, 2019
alessio added a commit that referenced this issue Jun 19, 2019
AccountDecoder is now entirely redundant.
client package now does no longer depend on x/auth.

Context: #4488
alessio pushed a commit that referenced this issue Jun 19, 2019
AccountDecoder is now entirely redundant.
client package now does no longer depend on x/auth.

Context: #4488
@alessio
Copy link
Contributor Author

alessio commented Jun 20, 2019

I had a conversation with @rigelrozanski about simapp, we think that it is an exception as it is in fact an app. As such, it's OK for simapp to depend on x/auth.

@alessio
Copy link
Contributor Author

alessio commented Jun 20, 2019

Work has been done, top level packages don't depend on x/auth anymore. Test evidence follows:

alessio@bangalter:~/work/cosmos-sdk$ go list -f '{{ .Deps }}' ./crypto/... | grep auth
alessio@bangalter:~/work/cosmos-sdk$ go list -f '{{ .Deps }}' ./baseapp/... | grep auth
alessio@bangalter:~/work/cosmos-sdk$ go list -f '{{ .Deps }}' ./server/... | grep auth
alessio@bangalter:~/work/cosmos-sdk$ go list -f '{{ .Deps }}' ./store/... | grep auth
alessio@bangalter:~/work/cosmos-sdk$ go list -f '{{ .Deps }}' ./tests/... | grep auth
alessio@bangalter:~/work/cosmos-sdk$ go list -f '{{ .Deps }}' ./types/... | grep auth
alessio@bangalter:~/work/cosmos-sdk$ go list -f '{{ .Deps }}' ./version/... | grep auth
alessio@bangalter:~/work/cosmos-sdk$ go list -f '{{ .Deps }}' ./client/... | grep auth
alessio@bangalter:~/work/cosmos-sdk$ 

Hence closing.

@alessio alessio closed this as completed Jun 20, 2019
@alessio alessio mentioned this issue Sep 15, 2020
9 tasks
larry0x pushed a commit to larry0x/cosmos-sdk that referenced this issue May 22, 2023
New Signature interface available in the top level types package.
auth.StdSignature implements such interface. User defined auth
module can now define their own custom signature types.

Work carried out in the context of the following issues:
- cosmos#4488
- cosmos#4487
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants