Skip to content
This repository has been archived by the owner on Jun 9, 2024. It is now read-only.

How to integrate custom precompile contract #1503

Open
adust09 opened this issue Feb 27, 2024 · 1 comment
Open

How to integrate custom precompile contract #1503

adust09 opened this issue Feb 27, 2024 · 1 comment

Comments

@adust09
Copy link

adust09 commented Feb 27, 2024

Currently the Creating Custom Precompiles page is in progress.

However, I want to know how to do that.
Here is my perspective, is this correct?

  1. Create module.sol
  2. Generate i_module.abigen.go
  3. Create NewPrecompileContract from i_module.abigen.go

If so, how can we create module.sol?
Does this have a one-to-one correspondence with the methods of the Cosmos SDK module?

I am confused because there is no definition of keeper etc. which is necessary when creating a module

@GNaD13
Copy link

GNaD13 commented Feb 27, 2024

Currently the Creating Custom Precompiles page is in progress.

However, I want to know how to do that. Here is my perspective, is this correct?

  1. Create module.sol
  2. Generate i_module.abigen.go
  3. Create NewPrecompileContract from i_module.abigen.go

If so, how can we create module.sol? Does this have a one-to-one correspondence with the methods of the Cosmos SDK module?

I am confused because there is no definition of keeper etc. which is necessary when creating a module

In .sol file we just defined the interface of the contract

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants