io.platin.geo.eth.LightPolygon Maven / Gradle / Ivy
package io.platin.geo.eth;
import java.math.BigInteger;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.concurrent.Callable;
import org.web3j.abi.FunctionEncoder;
import org.web3j.abi.TypeReference;
import org.web3j.abi.datatypes.Address;
import org.web3j.abi.datatypes.Bool;
import org.web3j.abi.datatypes.DynamicArray;
import org.web3j.abi.datatypes.Function;
import org.web3j.abi.datatypes.Type;
import org.web3j.abi.datatypes.generated.Int32;
import org.web3j.abi.datatypes.generated.Uint32;
import org.web3j.abi.datatypes.generated.Uint8;
import org.web3j.crypto.Credentials;
import org.web3j.protocol.Web3j;
import org.web3j.protocol.core.RemoteCall;
import org.web3j.protocol.core.methods.response.TransactionReceipt;
import org.web3j.tx.Contract;
import org.web3j.tx.TransactionManager;
/**
* Auto generated code.
*
Do not modify!
*
Please use the web3j command line tools,
* or the org.web3j.codegen.SolidityFunctionWrapperGenerator in the
* codegen module to update.
*
*
Generated with web3j version 3.4.0.
*/
class LightPolygon extends Contract implements PolygonBasic {
private static final String BINARY = "60806040523480156200001157600080fd5b50604051620019fd380380620019fd83398101604090815281516003805433600160a060020a03199182168117909255600082815260026020529384208054909116909117905590910180519091908190819081908190819081908190819081906008106200007f57600080fd5b8a516001908c9060009081106200009257fe5b6020908102909101015160030b1215620000ab57600080fd5b8a5160ff908c906000908110620000be57fe5b6020908102909101015160030b1315620000d757600080fd5b8a518b906000908110620000e757fe5b90602001906020020151995060038a0260ff168b600160ff168151811015156200010d57fe5b6020908102909101015160030b12156200012657600080fd5b8a518b9060019081106200013657fe5b602090810290910101516000805463ffffffff9092166101000264ffffffff001990921691909117815598508897505b8960ff1688101562000226578a516003908c9060028b019081106200018757fe5b6020908102909101015160030b1215620001a057600080fd5b8a518b9060028a01908110620001b257fe5b602090810291909101015160018054808201825560008290527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf66008820401805460079092166004026101000a63ffffffff8181021990931692851602919091179055998101999890980197965062000166565b60005463ffffffff8a811661010090920416146200024357600080fd5b6000548b5160ff8c1690036001190163ffffffff6101009092048216600202909116146200027057600080fd5b8960020160ff16955060009450600093505b600154841015620003655760018054859081106200029c57fe5b6000918252602080832060088304015460ff8916845260049182905260409093206007909216026101000a90910463ffffffff90811694509092506002840216860190505b808610156200035457818b87815181101515620002fa57fe5b6020908102919091018101518254600180820185556000948552929093206008840401805460079094166004026101000a63ffffffff8181021990951660039390930b9490941693909302179091559590950194620002e1565b600194850194939093019262000282565b505050505050505050505061167d80620003806000396000f30060806040526004361061015e5763ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041663020b3dea811461016357806308d8db6a1461018c5780632754de03146101b757806328bdf86b146101cc5780632b9c4fd81461022857806332d1e0951461029357806334eaac13146102e85780633bcac8d8146103135780633ead67b5146103285780633fa558f3146103495780635dc4d6091461036a57806361f5b8b314610385578063632ff8ce146103b357806375419499146103c8578063875d364e146103e3578063a9ac1333146103f8578063b991ff461461040d578063bb0aa8ef14610422578063c401351814610437578063c9340cbf1461049a578063ce606ee0146104bb578063d07697ad146103f8578063e8d8c042146104ec578063f3350b9714610501578063f4b7095b14610516578063f65408a21461052b578063f9d0e9c114610313575b600080fd5b34801561016f57600080fd5b50610178610585565b604080519115158252519081900360200190f35b34801561019857600080fd5b506101a161058e565b6040805160ff9092168252519081900360200190f35b3480156101c357600080fd5b506101a1610593565b3480156101d857600080fd5b5060408051602060048035808201358381028086018501909652808552610226953695939460249493850192918291850190849080828437509497505050923560ff16935061059892505050565b005b34801561023457600080fd5b5061024360ff60043516610637565b60408051602080825283518183015283519192839290830191858101910280838360005b8381101561027f578181015183820152602001610267565b505050509050019250505060405180910390f35b34801561029f57600080fd5b5060408051602060048035808201358381028086018501909652808552610226953695939460249493850192918291850190849080828437509497506106c39650505050505050565b3480156102f457600080fd5b5061022663ffffffff60043581169060ff6024351690604435166107d7565b34801561031f57600080fd5b506101a16108e6565b34801561033457600080fd5b50610178600160a060020a03600435166108eb565b34801561035557600080fd5b50610178600160a060020a036004351661094e565b34801561037657600080fd5b5061022660ff600435166109a0565b34801561039157600080fd5b5061039a610ab6565b6040805163ffffffff9092168252519081900360200190f35b3480156103bf57600080fd5b5061039a610ac7565b3480156103d457600080fd5b5061039a60ff60043516610ad9565b3480156103ef57600080fd5b50610226610b2b565b34801561040457600080fd5b506101a1610b51565b34801561041957600080fd5b506101a1610b56565b34801561042e57600080fd5b50610178610b5b565b34801561044357600080fd5b5060408051602060048035808201358381028086018501909652808552610226953695939460249493850192918291850190849080828437509497505050833560ff1694505050506020013563ffffffff16610b64565b3480156104a657600080fd5b50610178600160a060020a0360043516610c19565b3480156104c757600080fd5b506104d0610c6e565b60408051600160a060020a039092168252519081900360200190f35b3480156104f857600080fd5b506101a1610c7d565b34801561050d57600080fd5b506101a1610c83565b34801561052257600080fd5b50610243610c88565b34801561053757600080fd5b5060408051602060048035808201358381028086018501909652808552610226953695939460249493850192918291850190849080828437509497505050923560ff169350610d2d92505050565b60005460ff1681565b600381565b60ff81565b6000805460ff16156105a957600080fd5b33600090815260026020526040902054600160a060020a031615156105cd57600080fd5b60015460ff8316106105de57600080fd5b82516002118015906105f257508251600116155b15156105fd57600080fd5b5060ff81166000908152600460205260409020610620818463ffffffff610e7316565b82516106329083906002905b04610ee3565b505050565b60ff81166000908152600460209081526040918290208054835181840281018401909452808452606093928301828280156106b757602002820191906000526020600020906000905b82829054906101000a900460030b60030b815260200190600401906020826003010492830192600103820291508084116106805790505b50505050509050919050565b6000805460ff16156106d457600080fd5b33600090815260026020526040902054600160a060020a031615156106f857600080fd5b81516006111561070757600080fd5b81516001161561071657600080fd5b50805160018054808201825560009182527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf660088204018054600790921660040261010090810a63ffffffff8181021990941660029096048481169190910295909517909155915461078f9290048116908390610fba16565b6000805464ffffffff00191661010063ffffffff93909316929092029190911781556001546000190160ff1681526004602090815260409091208351610632928501906114e2565b6000805460ff16156107e857600080fd5b33600090815260026020526040902054600160a060020a0316151561080c57600080fd5b60015460ff84161061081d57600080fd5b6001805463ffffffff86169160039160ff871690811061083957fe5b90600052602060002090600891828204019190066004029054906101000a900463ffffffff160363ffffffff161015151561087357600080fd5b61088863ffffffff80841690600290610fd916565b915061089f63ffffffff80861690600290610fd916565b60ff8416600090815260046020526040902090945090506108cd8163ffffffff808716908581169061101b16565b6108e083600263ffffffff8716046110db565b50505050565b600281565b600354600090600160a060020a0316331461090557600080fd5b50600160a060020a03166000818152600260205260409020805473ffffffffffffffffffffffffffffffffffffffff199081168317909155600380549091169091179055600190565b600354600090600160a060020a0316331461096857600080fd5b50600160a060020a03166000908152600260205260409020805473ffffffffffffffffffffffffffffffffffffffff19169055600190565b60008054819060ff16156109b357600080fd5b33600090815260026020526040902054600160a060020a031615156109d757600080fd5b60015460ff84161080156109ec575060018054115b15156109f757600080fd5b6001805460ff8516908110610a0857fe5b6000918252602082206008820401549154600790911660040261010090810a90920463ffffffff9081169450610a469290910481169084906111d616565b6000805464ffffffff00191661010063ffffffff93841602179055610a739060019060ff8616906111f116565b5060ff82165b6001548110156106325760ff600184018116600090815260046020526040808220928616825290208154610aad9290611594565b50600101610a79565b600054610100900463ffffffff1681565b600054610100900463ffffffff165b90565b60015460009060ff831610610aed57600080fd5b6001805460ff8416908110610afe57fe5b90600052602060002090600891828204019190066004029054906101000a900463ffffffff169050919050565b600354600160a060020a03163314610b4257600080fd5b6000805460ff19166001179055565b600181565b600081565b60005460ff1690565b6000805460ff1615610b7557600080fd5b33600090815260026020526040902054600160a060020a03161515610b9957600080fd5b60015460ff841610610baa57600080fd5b8351600211801590610bbe57508351600116155b1515610bc957600080fd5b610bde63ffffffff80841690600290610fd916565b60ff841660009081526004602052604090209092509050610c09818563ffffffff808616906112b116565b83516108e090849060029061062c565b600354600090600160a060020a03163314610c3357600080fd5b50600160a060020a03166000818152600260205260409020805473ffffffffffffffffffffffffffffffffffffffff19169091179055600190565b600354600160a060020a031681565b60015490565b600881565b60008052600460209081527f17ef568e3e12ab5b9c7254a8d58478811de00f9e6eb34345acd53bf8fd09d3ec8054604080518285028101850190915281815260609390929190830182828015610d2357602002820191906000526020600020906000905b82829054906101000a900460030b60030b81526020019060040190602082600301049283019260010382029150808411610cec5790505b5050505050905090565b600080548190819060ff1615610d4257600080fd5b33600090815260026020526040902054600160a060020a03161515610d6657600080fd5b60015460ff851610610d7757600080fd5b845160061115610d8657600080fd5b845160011615610d9557600080fd5b845160029063ffffffff16049250610db860018460ff871663ffffffff6113e516565b600054610dd59063ffffffff6101009091048116908590610fba16565b6000805463ffffffff929092166101000264ffffffff00199092169190911790556001546000190191505b60ff80851690831610610e48575060ff60001982018116600090815260046020526040808220928416825290208154610e3b91908390611594565b5060001990910190610e00565b60ff841660009081526004602090815260409091208651610e6b928801906114e2565b505050505050565b60005b815181101561063257828282815181101515610e8e57fe5b6020908102919091018101518254600180820185556000948552929093206008840401805460079094166004026101000a63ffffffff8181021990951660039390930b94909416939093021790915501610e76565b610f278160018460ff16815481101515610ef957fe5b6000918252602090912060088204015460079091166004026101000a900463ffffffff9081169190610fba16565b6001805460ff8516908110610f3857fe5b90600052602060002090600891828204019190066004026101000a81548163ffffffff021916908363ffffffff160217905550610f9681600060019054906101000a900463ffffffff1663ffffffff16610fba90919063ffffffff16565b600060016101000a81548163ffffffff021916908363ffffffff1602179055505050565b600082820163ffffffff8085169082161015610fd257fe5b9392505050565b600082820263ffffffff8416158061101357508263ffffffff168463ffffffff168263ffffffff1681151561100a57fe5b0463ffffffff16145b1515610fd257fe5b825460009081908385011061102f57600080fd5b5050825482900381900360005b818110156110cc5784848285010181548110151561105657fe5b90600052602060002090600891828204019190066004029054906101000a900460030b8582850181548110151561108957fe5b90600052602060002090600891828204019190066004026101000a81548163ffffffff021916908360030b63ffffffff160217905550808060010191505061103c565b8454849003610e6b86826115e2565b8063ffffffff1660018360ff168154811015156110f457fe5b6000918252602090912060088204015460079091166004026101000a900463ffffffff16101561112357600080fd5b6111678160018460ff1681548110151561113957fe5b6000918252602090912060088204015460079091166004026101000a900463ffffffff90811691906111d616565b6001805460ff851690811061117857fe5b90600052602060002090600891828204019190066004026101000a81548163ffffffff021916908363ffffffff160217905550610f9681600060019054906101000a900463ffffffff1663ffffffff166111d690919063ffffffff16565b600063ffffffff80841690831611156111eb57fe5b50900390565b81546000908190831061120357600080fd5b5050815460001901815b8181101561129a57838160010181548110151561122657fe5b90600052602060002090600891828204019190066004029054906101000a900463ffffffff16848281548110151561125a57fe5b90600052602060002090600891828204019190066004026101000a81548163ffffffff021916908363ffffffff160217905550808060010191505061120d565b83546112aa8560001983016115e2565b5050505050565b82546000908190819084106112c557600080fd5b8554855160001982019450016112db87826115e2565b508291505b83821061136d5785828154811015156112f557fe5b90600052602060002090600891828204019190066004029054906101000a900460030b868651840181548110151561132957fe5b90600052602060002090600891828204019190066004026101000a81548163ffffffff021916908360030b63ffffffff1602179055508180600190039250506112e0565b5060005b8451811015610e6b57848181518110151561138857fe5b90602001906020020151868583018154811015156113a257fe5b90600052602060002090600891828204019190066004026101000a81548163ffffffff021916908360030b63ffffffff1602179055508080600101915050611371565b825460009082106113f557600080fd5b835461140485600183016115e2565b50508254600019015b81811061149a57836001820381548110151561142557fe5b90600052602060002090600891828204019190066004029054906101000a900463ffffffff16848281548110151561145957fe5b90600052602060002090600891828204019190066004026101000a81548163ffffffff021916908363ffffffff16021790555080806001900391505061140d565b8284838154811015156114a957fe5b90600052602060002090600891828204019190066004026101000a81548163ffffffff021916908363ffffffff16021790555050505050565b828054828255906000526020600020906007016008900481019282156115845791602002820160005b8382111561155257835183826101000a81548163ffffffff021916908360030b63ffffffff160217905550926020019260040160208160030104928301926001030261150b565b80156115825782816101000a81549063ffffffff0219169055600401602081600301049283019260010302611552565b505b50611590929150611616565b5090565b82805482825590600052602060002090600701600890048101928215611584576000526020600020916007016008900482015b828111156115845782548255916001019190600101906115c7565b8154818355818111156106325760070160089004816007016008900483600052602060002091820191016106329190611637565b610ad691905b8082111561159057805463ffffffff1916815560010161161c565b610ad691905b80821115611590576000815560010161163d5600a165627a7a723058205125922485df480ad154b88d77cc142d35b671f9722735f2ade92915c111056e0029";
public static final String FUNC_IMMUTABILITY = "immutability";
public static final String FUNC_MIN_POINTS_AMOUNT_PER_RING = "MIN_POINTS_AMOUNT_PER_RING";
public static final String FUNC_MAX_RINGS_AMOUNT = "MAX_RINGS_AMOUNT";
public static final String FUNC_ADDPOINTS = "addPoints";
public static final String FUNC_GETPOINTSBYRING = "getPointsByRing";
public static final String FUNC_ADDRING = "addRing";
public static final String FUNC_REMOVEPOINTS = "removePoints";
public static final String FUNC_CELLS_PER_POINT = "CELLS_PER_POINT";
public static final String FUNC_CHANGECONTRACTOWNER = "changeContractOwner";
public static final String FUNC_DELETEORACLEDADDRESS = "deleteOracledAddress";
public static final String FUNC_REMOVERING = "removeRing";
public static final String FUNC_POINTSAMOUNT = "pointsAmount";
public static final String FUNC_GETPOINTSAMOUNT = "getPointsAmount";
public static final String FUNC_GETPOINTSAMOUNTBYRING = "getPointsAmountByRing";
public static final String FUNC_MAKEIMMUTABLE = "makeImmutable";
public static final String FUNC_INDEX_OF_POINTS_AMOUNT = "INDEX_OF_POINTS_AMOUNT";
public static final String FUNC_INDEX_OF_RINGS_AMOUNT = "INDEX_OF_RINGS_AMOUNT";
public static final String FUNC_ISIMMUTABLE = "isImmutable";
public static final String FUNC_ADDORACLEDADDRESS = "addOracledAddress";
public static final String FUNC_CONTRACTOWNER = "contractOwner";
public static final String FUNC_MIN_RINGS_AMOUNT = "MIN_RINGS_AMOUNT";
public static final String FUNC_GETRINGSAMOUNT = "getRingsAmount";
public static final String FUNC_MIN_DATA_SIZE = "MIN_DATA_SIZE";
public static final String FUNC_GETPOINTS = "getPoints";
public static final String FUNC_INDEX_OF_POINTS_AMOUNT_IN_FIRST_RING = "INDEX_OF_POINTS_AMOUNT_IN_FIRST_RING";
protected LightPolygon(String contractAddress, Web3j web3j, Credentials credentials, BigInteger gasPrice, BigInteger gasLimit) {
super(BINARY, contractAddress, web3j, credentials, gasPrice, gasLimit);
}
protected LightPolygon(String contractAddress, Web3j web3j, TransactionManager transactionManager, BigInteger gasPrice, BigInteger gasLimit) {
super(BINARY, contractAddress, web3j, transactionManager, gasPrice, gasLimit);
}
public RemoteCall immutability() {
final Function function = new Function(FUNC_IMMUTABILITY,
Arrays.asList(),
Arrays.>asList(new TypeReference() {}));
return executeRemoteCallSingleValueReturn(function, Boolean.class);
}
public RemoteCall MIN_POINTS_AMOUNT_PER_RING() {
final Function function = new Function(FUNC_MIN_POINTS_AMOUNT_PER_RING,
Arrays.asList(),
Arrays.>asList(new TypeReference() {}));
return executeRemoteCallSingleValueReturn(function, BigInteger.class);
}
public RemoteCall MAX_RINGS_AMOUNT() {
final Function function = new Function(FUNC_MAX_RINGS_AMOUNT,
Arrays.asList(),
Arrays.>asList(new TypeReference() {}));
return executeRemoteCallSingleValueReturn(function, BigInteger.class);
}
public RemoteCall addPoints(List points, BigInteger ringIndex) {
final Function function = new Function(
FUNC_ADDPOINTS,
Arrays.asList(new org.web3j.abi.datatypes.DynamicArray(
org.web3j.abi.Utils.typeMap(points, org.web3j.abi.datatypes.generated.Int32.class)),
new org.web3j.abi.datatypes.generated.Uint8(ringIndex)),
Collections.>emptyList());
return executeRemoteCallTransaction(function);
}
public RemoteCall getPointsByRing(BigInteger ringIndex) {
final Function function = new Function(FUNC_GETPOINTSBYRING,
Arrays.asList(new org.web3j.abi.datatypes.generated.Uint8(ringIndex)),
Arrays.>asList(new TypeReference>() {}));
return new RemoteCall(
new Callable() {
@Override
@SuppressWarnings("unchecked")
public List call() throws Exception {
List result = (List) executeCallSingleValueReturn(function, List.class);
return convertToNative(result);
}
});
}
public RemoteCall addRing(List points) {
final Function function = new Function(
FUNC_ADDRING,
Arrays.asList(new org.web3j.abi.datatypes.DynamicArray(
org.web3j.abi.Utils.typeMap(points, org.web3j.abi.datatypes.generated.Int32.class))),
Collections.>emptyList());
return executeRemoteCallTransaction(function);
}
public RemoteCall removePoints(BigInteger amount, BigInteger ringIndex, BigInteger offset) {
final Function function = new Function(
FUNC_REMOVEPOINTS,
Arrays.asList(new org.web3j.abi.datatypes.generated.Uint32(amount),
new org.web3j.abi.datatypes.generated.Uint8(ringIndex),
new org.web3j.abi.datatypes.generated.Uint32(offset)),
Collections.>emptyList());
return executeRemoteCallTransaction(function);
}
public RemoteCall CELLS_PER_POINT() {
final Function function = new Function(FUNC_CELLS_PER_POINT,
Arrays.asList(),
Arrays.>asList(new TypeReference() {}));
return executeRemoteCallSingleValueReturn(function, BigInteger.class);
}
public RemoteCall changeContractOwner(String _to) {
final Function function = new Function(
FUNC_CHANGECONTRACTOWNER,
Arrays.asList(new org.web3j.abi.datatypes.Address(_to)),
Collections.>emptyList());
return executeRemoteCallTransaction(function);
}
public RemoteCall deleteOracledAddress(String _oracled) {
final Function function = new Function(
FUNC_DELETEORACLEDADDRESS,
Arrays.asList(new org.web3j.abi.datatypes.Address(_oracled)),
Collections.>emptyList());
return executeRemoteCallTransaction(function);
}
public RemoteCall removeRing(BigInteger ringIndex) {
final Function function = new Function(
FUNC_REMOVERING,
Arrays.asList(new org.web3j.abi.datatypes.generated.Uint8(ringIndex)),
Collections.>emptyList());
return executeRemoteCallTransaction(function);
}
public RemoteCall pointsAmount() {
final Function function = new Function(FUNC_POINTSAMOUNT,
Arrays.asList(),
Arrays.>asList(new TypeReference() {}));
return executeRemoteCallSingleValueReturn(function, BigInteger.class);
}
public RemoteCall getPointsAmount() {
final Function function = new Function(FUNC_GETPOINTSAMOUNT,
Arrays.asList(),
Arrays.>asList(new TypeReference() {}));
return executeRemoteCallSingleValueReturn(function, BigInteger.class);
}
public RemoteCall getPointsAmountByRing(BigInteger ringIndex) {
final Function function = new Function(FUNC_GETPOINTSAMOUNTBYRING,
Arrays.asList(new org.web3j.abi.datatypes.generated.Uint8(ringIndex)),
Arrays.>asList(new TypeReference() {}));
return executeRemoteCallSingleValueReturn(function, BigInteger.class);
}
public RemoteCall makeImmutable() {
final Function function = new Function(
FUNC_MAKEIMMUTABLE,
Arrays.asList(),
Collections.>emptyList());
return executeRemoteCallTransaction(function);
}
public RemoteCall INDEX_OF_POINTS_AMOUNT() {
final Function function = new Function(FUNC_INDEX_OF_POINTS_AMOUNT,
Arrays.asList(),
Arrays.>asList(new TypeReference() {}));
return executeRemoteCallSingleValueReturn(function, BigInteger.class);
}
public RemoteCall INDEX_OF_RINGS_AMOUNT() {
final Function function = new Function(FUNC_INDEX_OF_RINGS_AMOUNT,
Arrays.asList(),
Arrays.>asList(new TypeReference() {}));
return executeRemoteCallSingleValueReturn(function, BigInteger.class);
}
public RemoteCall isImmutable() {
final Function function = new Function(FUNC_ISIMMUTABLE,
Arrays.asList(),
Arrays.>asList(new TypeReference() {}));
return executeRemoteCallSingleValueReturn(function, Boolean.class);
}
public RemoteCall addPoints(List points, BigInteger ringIndex, BigInteger pointNum) {
final Function function = new Function(
FUNC_ADDPOINTS,
Arrays.asList(new org.web3j.abi.datatypes.DynamicArray(
org.web3j.abi.Utils.typeMap(points, org.web3j.abi.datatypes.generated.Int32.class)),
new org.web3j.abi.datatypes.generated.Uint8(ringIndex),
new org.web3j.abi.datatypes.generated.Uint32(pointNum)),
Collections.>emptyList());
return executeRemoteCallTransaction(function);
}
public RemoteCall addOracledAddress(String _oracled) {
final Function function = new Function(
FUNC_ADDORACLEDADDRESS,
Arrays.asList(new org.web3j.abi.datatypes.Address(_oracled)),
Collections.>emptyList());
return executeRemoteCallTransaction(function);
}
public RemoteCall contractOwner() {
final Function function = new Function(FUNC_CONTRACTOWNER,
Arrays.asList(),
Arrays.>asList(new TypeReference() {}));
return executeRemoteCallSingleValueReturn(function, String.class);
}
public RemoteCall MIN_RINGS_AMOUNT() {
final Function function = new Function(FUNC_MIN_RINGS_AMOUNT,
Arrays.asList(),
Arrays.>asList(new TypeReference() {}));
return executeRemoteCallSingleValueReturn(function, BigInteger.class);
}
public RemoteCall getRingsAmount() {
final Function function = new Function(FUNC_GETRINGSAMOUNT,
Arrays.asList(),
Arrays.>asList(new TypeReference() {}));
return executeRemoteCallSingleValueReturn(function, BigInteger.class);
}
public RemoteCall MIN_DATA_SIZE() {
final Function function = new Function(FUNC_MIN_DATA_SIZE,
Arrays.asList(),
Arrays.>asList(new TypeReference() {}));
return executeRemoteCallSingleValueReturn(function, BigInteger.class);
}
public RemoteCall getPoints() {
final Function function = new Function(FUNC_GETPOINTS,
Arrays.asList(),
Arrays.>asList(new TypeReference>() {}));
return new RemoteCall(
new Callable() {
@Override
@SuppressWarnings("unchecked")
public List call() throws Exception {
List result = (List) executeCallSingleValueReturn(function, List.class);
return convertToNative(result);
}
});
}
public RemoteCall addRing(List points, BigInteger index) {
final Function function = new Function(
FUNC_ADDRING,
Arrays.asList(new org.web3j.abi.datatypes.DynamicArray(
org.web3j.abi.Utils.typeMap(points, org.web3j.abi.datatypes.generated.Int32.class)),
new org.web3j.abi.datatypes.generated.Uint8(index)),
Collections.>emptyList());
return executeRemoteCallTransaction(function);
}
public RemoteCall INDEX_OF_POINTS_AMOUNT_IN_FIRST_RING() {
final Function function = new Function(FUNC_INDEX_OF_POINTS_AMOUNT_IN_FIRST_RING,
Arrays.asList(),
Arrays.>asList(new TypeReference() {}));
return executeRemoteCallSingleValueReturn(function, BigInteger.class);
}
public static RemoteCall deploy(Web3j web3j, Credentials credentials, BigInteger gasPrice, BigInteger gasLimit, List data) {
String encodedConstructor = FunctionEncoder.encodeConstructor(Arrays.asList(new org.web3j.abi.datatypes.DynamicArray(
org.web3j.abi.Utils.typeMap(data, org.web3j.abi.datatypes.generated.Int32.class))));
return deployRemoteCall(LightPolygon.class, web3j, credentials, gasPrice, gasLimit, BINARY, encodedConstructor);
}
public static RemoteCall deploy(Web3j web3j, TransactionManager transactionManager, BigInteger gasPrice, BigInteger gasLimit, List data) {
String encodedConstructor = FunctionEncoder.encodeConstructor(Arrays.asList(new org.web3j.abi.datatypes.DynamicArray(
org.web3j.abi.Utils.typeMap(data, org.web3j.abi.datatypes.generated.Int32.class))));
return deployRemoteCall(LightPolygon.class, web3j, transactionManager, gasPrice, gasLimit, BINARY, encodedConstructor);
}
public static LightPolygon load(String contractAddress, Web3j web3j, Credentials credentials, BigInteger gasPrice, BigInteger gasLimit) {
return new LightPolygon(contractAddress, web3j, credentials, gasPrice, gasLimit);
}
public static LightPolygon load(String contractAddress, Web3j web3j, TransactionManager transactionManager, BigInteger gasPrice, BigInteger gasLimit) {
return new LightPolygon(contractAddress, web3j, transactionManager, gasPrice, gasLimit);
}
}