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

Add Confidential Transfers Module #1980

Open
wants to merge 70 commits into
base: main
Choose a base branch
from
Open

Add Confidential Transfers Module #1980

wants to merge 70 commits into from

Conversation

mj850
Copy link
Contributor

@mj850 mj850 commented Dec 7, 2024

Describe your changes and provide context

This is the working branch for adding the Confidential Transfers module.

Testing performed to validate your change

Associated unit and integration tests have been added here.

dssei and others added 30 commits December 6, 2024 17:39
* scaffolding for new module

* keeper scaffolding

* scaffold with types

* go sum

* comments pt1

* comments

* drop prev580
* pending balance type

* convert apply pending balance to a message type

* close account type
* new types

* add deposit to msgs

* add import issues

* revert evm/params to old state

* withdraw with tests

* small changes

* refactor and add tests

* comment
* Genesis draft

* revert evm params

* revert evm params -2

* working simple test

* linting

* addressing linter errors

* remove creating address for now
* add genesis init/export tests

* refactor store

* confidential transfers queries

* working draft test

* more tests

* refactor tests

* all accounts query

* formatting

* add pagination to request/response

* update implementation to use paginated response instead

* formatting

* remove redundant param

* all accounts with denoms

* clean up commented code

* return GetAccount back to keeper

* formatting
* new types

* add deposit to msgs

* add import issues

* revert evm/params to old state

* withdraw with tests

* small changes

* refactor and add tests

* comment

* refactor initialize type

* types

* non module account types

* msg server methods with module accounts

* tests scaffold

* add msg server tests

* codeql

* test issues

* test improvements

* comments

* todo

* app
* basic cli and first draft command for ct module

* add second command draft

* draft of init account

* close account update

* lint errors
* update codec

* cleanup and queryies

* enable in module

* add other query

* fix bug

* fix lint

* add decryption query

* cleanup

* validate address

* comments

* rectify test failures

* speed up withdraw test

* make other tests slightly faster
* - fix ct account by address and denom REST query
- update swagger

* - regenerate with latest changes
- set module version to 1
dssei and others added 26 commits December 10, 2024 11:13
- update kryptology version
* - remove dead code
- add test for keys

* - basic test for transfer object

* - transfer invalid inputs

* - wrong private key test

* - refactor tests

* - refactor tests
- tests for createTransferPartyParams

* - add more checks to transfers

* - tests for VerifyTransferProofs

* - tests for VerifyTransferProofs

* fix tests
* change key devrivation

* hash again

* version

* issues

* types test

* add tests

* bump unit test timeout

* add fixed prefix before hashing denom

* mertge issues
* Consume gas before verifying range proof

* bump timeout

* uint64

* test issue
* - transfer precompile draft

* - formating

* - flatten abi.json

* - refactor test

* - more tests

* - self-review tweaks
* - transfer precompile draft

* - formating

* - flatten abi.json

* - refactor test

* - more tests

* - add transfer with auditors, old tests passing

* - add auditors to sol and abi

* - self-review tweaks

* - transfer with auditors draft

* - move auditor conversion logic to a separate method

* - tests

* - move get account to utils

* - add transfer with auditors payload cli support

* - fix auditors payload cli

* - fix lint warnings

* - fix slice size

* - add check for empty auditor array

* - add panic recover logic to getAuditorsFromArg
* - add sol init account

* - precompile + basic tests

* self-review tweaks

* ct init account payload cli

* caller should = the user address

* add caller check for transfers

* refactor address retrieval logic. Add more tests
* - add sol init account

* - precompile + basic tests

* self-review tweaks

* ct init account payload cli

* caller should = the user address

* add caller check for transfers

* refactor address retrieval logic. Add more tests

* support Sei addresses in transfer precompile

* add tests for Sei addresses

* update tests

* self-review tweaks
* - add sol init account

* - precompile + basic tests

* deposit precompile

* refactor test
* - add sol init account

* - precompile + basic tests

* deposit precompile

* refactor test

* use caller instead of from address

* add amount field comment

* few tweaks

* roll back init-account changes

* remove unintended changes

* remove unintended changes - 2

* use caller in transfer

* init account precompile integration test

* deposit precompile integration test

* transfer precompile integration test

* self review
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants