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

Commits on May 12, 2020

  1. accounts/abi/bind: generate java structs

    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 committed May 12, 2020
    Configuration menu
    Copy the full SHA
    a88303b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6763074 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    bda652c View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    8557715 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    5d1c041 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    8e78ee0 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    1422955 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    043269a View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    fdacfeb View commit details
    Browse the repository at this point in the history

Commits on May 13, 2020

  1. Configuration menu
    Copy the full SHA
    6be6897 View commit details
    Browse the repository at this point in the history