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

Generate Java structs #7

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open

Generate Java structs #7

wants to merge 10 commits into from

Conversation

MariusVanDerWijden
Copy link
Owner

No description provided.

This commit enables struct generation for contracts on java.
It will generate for the TUPLE contract the following:

// TupleP is an auto generated low-level Java binding around an user-defined struct.
	public class TupleP {
		public BigInt x;
		public BigInt y;
	}

	// TupleQ is an auto generated low-level Java binding around an user-defined struct.
	public class TupleQ {
		public BigInt x;
		public BigInt y;
	}

	// TupleS is an auto generated low-level Java binding around an user-defined struct.
	public class TupleS {
		public BigInt a;
		public BigInts b;
		public TupleT[] c;
	}

	// TupleT is an auto generated low-level Java binding around an user-defined struct.
	public class TupleT {
		public BigInt x;
		public BigInt y;
	}

	// Func1Results is the output of a call to func1.
	public class Func1Results {
		public TupleS Return0;
		public TupleT[][] Return1;
		public TupleT[][] Return2;
		public TupleS[] Return3;
		public BigInts Return4;
	}
MariusVanDerWijden pushed a commit that referenced this pull request Jun 16, 2021
…er (#7) (ethereum#22989)

Co-authored-by: Gary Rong <garyrong0905@gmail.com>
Co-authored-by: Mikhail Kalinin <noblesse.knight@gmail.com>
MariusVanDerWijden pushed a commit that referenced this pull request Jan 23, 2023
Fix NetworkTransaction packet receive handling
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant