-
Couldn't load subscription status.
- Fork 107
feat(precompiles): erc20 factory precompile #405
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
Open
GuillemGarciaDev
wants to merge
15
commits into
cosmos:main
Choose a base branch
from
xrplevm:feat/erc20-factory-precompile
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+1,519
−19
Open
Changes from 8 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
1391fb3
feat(erc20factory): erc20factory precompile
GuillemGarciaDev 78ea7fd
Merge branch 'main' of https://github.com/xrplevm/evm
GuillemGarciaDev 15daee6
Merge branch 'main' into feat/erc20-factory-precompile
GuillemGarciaDev 3c5808f
refactor(erc20factory): integration tests
GuillemGarciaDev 08670ca
fix(precisebank): remove already declared methods
GuillemGarciaDev dd8fdfb
Merge branch 'main' into feat/erc20-factory-precompile
GuillemGarciaDev 0625e33
fix: update branch with main changes
GuillemGarciaDev 417987b
fix(precompiles/erc20factory): add BalanceHandler to erc20factory pre…
GuillemGarciaDev a5ba4a4
fix: remove `tokenType` parameter
GuillemGarciaDev 1ac06bd
Merge remote-tracking branch 'upstream/main' into feat/erc20-factory-…
GuillemGarciaDev baed74a
fix(tests/solidity): fix erc20factory calculate address test
GuillemGarciaDev 1b60425
chore: add erc20 factory precompile feature to CHANGELOG.md
GuillemGarciaDev 1301ec3
Merge branch 'main' into feat/erc20-factory-precompile
GuillemGarciaDev f764802
Merge remote-tracking branch 'upstream/main' into feat/erc20-factory-…
GuillemGarciaDev df9de91
Merge remote-tracking branch 'origin/feat/erc20-factory-precompile' i…
GuillemGarciaDev File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or 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,61 @@ | ||
| // SPDX-License-Identifier: LGPL-3.0-only | ||
| pragma solidity >=0.8.17; | ||
|
|
||
| /** | ||
| * @dev The ERC20 Factory contract's address. | ||
| */ | ||
| address constant ERC20_FACTORY_PRECOMPILE_ADDRESS = 0x0000000000000000000000000000000000000900; | ||
|
|
||
| /** | ||
| * @dev The ERC20 Factory contract's instance. | ||
| */ | ||
| IERC20Factory constant ERC20_FACTORY_CONTRACT = IERC20Factory(ERC20_FACTORY_PRECOMPILE_ADDRESS); | ||
|
|
||
| interface IERC20Factory { | ||
| /** | ||
| * @dev Emitted when a new ERC20 token is created. | ||
| * @param tokenAddress The address of the ERC20 token. | ||
| * @param tokenPairType The type of token pair. | ||
| * @param salt The salt used for deployment. | ||
| * @param name The name of the token. | ||
| * @param symbol The symbol of the token. | ||
| * @param decimals The decimals of the token. | ||
| */ | ||
| event Create( | ||
| address indexed tokenAddress, | ||
| uint8 tokenPairType, | ||
| bytes32 salt, | ||
| string name, | ||
| string symbol, | ||
| uint8 decimals, | ||
| address minter, | ||
| uint256 premintedSupply | ||
| ); | ||
|
|
||
| /** | ||
| * @dev Defines a method for creating an ERC20 token. | ||
| * @param tokenPairType Token Pair type | ||
| * @param salt Salt used for deployment | ||
| * @param name The name of the token. | ||
| * @param symbol The symbol of the token. | ||
| * @param decimals the decimals of the token. | ||
| * @return tokenAddress The ERC20 token address. | ||
| */ | ||
| function create( | ||
| uint8 tokenPairType, | ||
| bytes32 salt, | ||
| string memory name, | ||
| string memory symbol, | ||
| uint8 decimals, | ||
| address minter, | ||
| uint256 premintedSupply | ||
| ) external returns (address tokenAddress); | ||
|
|
||
| /** | ||
| * @dev Calculates the deterministic address for a new token. | ||
| * @param tokenPairType Token Pair type | ||
| * @param salt Salt used for deployment | ||
| * @return tokenAddress The calculated ERC20 token address. | ||
| */ | ||
| function calculateAddress(uint8 tokenPairType, bytes32 salt) external view returns (address tokenAddress); | ||
| } | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.