Skip to content

Commit 6e67d63

Browse files
cloudgrayvladjdk
andauthored
feat: remove x/authz dependency from precompiles (#62)
* feat: remove authz dependency from precompiles except for erc20 * wip: feat(precompiles): remove x/authz dependency * test(precompiles): remove x/authz dependent test cases * feat: remove x/authz dependency from x/erc20 and werc20 precompile * fix(precompiles): modify contract interface and test contracts * fix(precompiles): remove unused authz related types and test utils * fix(precompiles): modify integration test of staking precompile * feat(x/erc20): add allowance state (#90) * feat(x/erc20): add allowance state * test(x/erc20): add unit test for Allowance * fix(x/erc20): add deleteAllowances method and modify genesis validation * fix(x/erc20): validation of SetAllowance/GetAllowance and InitGenesis * test(x/erc20) add test cases for UnsafeSetAllowance * chore: fix lint * wip: test: modify erc20 precompile tests * test: modify erc20 precompile tests * test(precompiles): �fix integration test fix owner == sender case * refactor(precompiles): remove authz dependent naming and comments * wip: test(x/vm): modify flashLoan test * test(x/vm): fix flashLoan integration test * fix: merge conflict * chore: fix lint * chore: fix lint * feat: remove authz keeper dependency from x/erc20 keeper * chore: fix lint * fix: increase consensusVersion of x/erc20 module * chore: udpate CHANGELOG.md * chore: update CHANGELOG.md * chore: add comments to StakingCaller solidity contract * fix: typo * fix: remove duplicated test case * fix: wrong args for ApprovalEvent * fix: wrong error message for test * refactor: refine code for staking precompile * fix: merge conflicts * refactor: change file name * refactor(testutil): move constants for test to testutil/constants package * refactor(erc20): InitGenesis * test(erc20): add genesis test case * fix(erc20): revert consensusVersion change * refactor(erc20): refactor keeper methods of Allowance state * test(testutil): fix test case and lint * wip: fix(precompiles/erc20): remove incompatible logic with ERC20 Specification * fix: add Approval event to transferFrom method and fix integration tests * fix: FlashLoan.sol contract * fix(x/erc20): allowance methods and test cases * test(precompiles): add test cases for erc20 precompile --------- Co-authored-by: Vlad <vladjdk@gmail.com>
1 parent db7fef8 commit 6e67d63

File tree

114 files changed

+4368
-8089
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

114 files changed

+4368
-8089
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
- [\#83](https://github.com/cosmos/evm/pull/83) Remove base fee v1 from x/feemarket
3030
- [\#93](https://github.com/cosmos/evm/pull/93) Remove legacy subspaces
3131
- [\#95](https://github.com/cosmos/evm/pull/95) Replaced erc20/ with erc20 in native ERC20 denoms prefix for IBC v2
32+
- [\#62](https://github.com/cosmos/evm/pull/62) Remove x/authz dependency from precompiles
3233

3334
### API-Breaking
3435

0 commit comments

Comments
 (0)