alloy icon indicating copy to clipboard operation
alloy copied to clipboard

[Feature] ABI encode with json in Function

Open pynixwang opened this issue 8 months ago • 3 comments

Component

other

Describe the feature you would like

fn abi_encode_input(&self, values: &[DynSolValue]) -> Result<Vec<u8>, Error>

values is very hard to build.

can we provider a method to build with json

fn abi_encode_input_with_json(&self, values: &[serde_json::Value]) -> Result<Vec<u8>, Error>

Additional context

No response

pynixwang avatar Apr 18 '25 11:04 pynixwang

I could do it but need understand what are they for first.

nadtech-hub avatar Apr 21 '25 04:04 nadtech-hub

I could do it but need understand what are they for first.

a contract call service that pass abi and args dynamically

pynixwang avatar Apr 21 '25 11:04 pynixwang

Hey @zerosnacks curious if anyone is working on this. I would love to get started on this. As it is fairly straight forward, and i have good knowledge on the alloy crate from my previous contributions.

dipanshuhappy avatar Oct 28 '25 11:10 dipanshuhappy