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

Integration with other languages via ABI #263

Open
clearloop opened this issue Nov 2, 2024 · 0 comments · May be fixed by #304
Open

Integration with other languages via ABI #263

clearloop opened this issue Nov 2, 2024 · 0 comments · May be fixed by #304

Comments

@clearloop
Copy link
Member

clearloop commented Nov 2, 2024

Describe the feature

Given EVM ABI, generate call interfaces from it

zink::import!("./MyErc20.json");

// which generates 
struct MyErc20(Address);

impl MyErc20 {
  pub fn decimals(&self) -> U256 {
    // do contract call ...
  }
}

// for using it
fn foo(erc20: Address) {
   let decimals = MyErc20::new(erc20).decimals();
}

Solution

No response

@clearloop clearloop changed the title Tracking list for solidity integration Generate external functions from ABIs Nov 2, 2024
@clearloop clearloop changed the title Generate external functions from ABIs Tracking list for ABI integration Nov 2, 2024
@clearloop clearloop changed the title Tracking list for ABI integration Integration other languages via ABI Nov 2, 2024
@clearloop clearloop changed the title Integration other languages via ABI Integration with other languages via ABI Nov 2, 2024
@clearloop clearloop added this to the v0.3.0 - Testsuite milestone Nov 4, 2024
@g4titanx g4titanx linked a pull request Mar 1, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging a pull request may close this issue.

1 participant