io.keyko.ocean.keeper.contracts.AgreementStoreManagerExtraFunctionality Maven / Gradle / Ivy
package io.keyko.ocean.keeper.contracts;
import io.reactivex.Flowable;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.concurrent.Callable;
import org.web3j.abi.EventEncoder;
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.Event;
import org.web3j.abi.datatypes.Function;
import org.web3j.abi.datatypes.Type;
import org.web3j.abi.datatypes.generated.Bytes32;
import org.web3j.abi.datatypes.generated.Uint256;
import org.web3j.crypto.Credentials;
import org.web3j.protocol.Web3j;
import org.web3j.protocol.core.DefaultBlockParameter;
import org.web3j.protocol.core.RemoteCall;
import org.web3j.protocol.core.RemoteFunctionCall;
import org.web3j.protocol.core.methods.request.EthFilter;
import org.web3j.protocol.core.methods.response.BaseEventResponse;
import org.web3j.protocol.core.methods.response.Log;
import org.web3j.protocol.core.methods.response.TransactionReceipt;
import org.web3j.tuples.generated.Tuple6;
import org.web3j.tx.Contract;
import org.web3j.tx.TransactionManager;
import org.web3j.tx.gas.ContractGasProvider;
/**
* 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 4.5.16.
*/
@SuppressWarnings("rawtypes")
public class AgreementStoreManagerExtraFunctionality extends Contract {
public static final String BINARY = "0x608060405234801561001057600080fd5b50611e69806100206000396000f3fe608060405234801561001057600080fd5b50600436106101215760003560e01c80638ded3b30116100ad578063caf92b8b11610071578063caf92b8b1461071d578063d1c1db3914610749578063f2fde38b14610775578063f42eb7651461079b578063f8c8765e1461085357610121565b80638ded3b30146102565780638f32d59b14610490578063955d0c2a146104985780639a77db79146106cb578063c4d66de8146106f757610121565b8063715018a6116100f4578063715018a6146101f15780637ec9d81f146101fb5780638945226e146102175780638a9013cb146102345780638da5cb5b1461024e57610121565b806317cfbf5e146101265780633387c4b51461015f5780633f3dcae5146101cc578063579e6e3f146101e9575b600080fd5b6101436004803603602081101561013c57600080fd5b5035610891565b604080516001600160a01b039092168252519081900360200190f35b61017c6004803603602081101561017557600080fd5b5035610920565b60408051602080825283518183015283519192839290830191858101910280838360005b838110156101b85781810151838201526020016101a0565b505050509050019250505060405180910390f35b61017c600480360360208110156101e257600080fd5b503561099c565b6101436109b5565b6101f96109c5565b005b610203610a20565b604080519115158252519081900360200190f35b61017c6004803603602081101561022d57600080fd5b5035610a25565b61023c610a87565b60408051918252519081900360200190f35b610143610a8d565b61023c600480360360e081101561026c57600080fd5b81359160208101359160408201359190810190608081016060820135600160201b81111561029957600080fd5b8201836020820111156102ab57600080fd5b803590602001918460208302840111600160201b831117156102cc57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561031b57600080fd5b82018360208201111561032d57600080fd5b803590602001918460208302840111600160201b8311171561034e57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561039d57600080fd5b8201836020820111156103af57600080fd5b803590602001918460208302840111600160201b831117156103d057600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561041f57600080fd5b82018360208201111561043157600080fd5b803590602001918460208302840111600160201b8311171561045257600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610a9c945050505050565b610203611079565b61023c600480360360c08110156104ae57600080fd5b813591602081013591810190606081016040820135600160201b8111156104d457600080fd5b8201836020820111156104e657600080fd5b803590602001918460208302840111600160201b8311171561050757600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561055657600080fd5b82018360208201111561056857600080fd5b803590602001918460208302840111600160201b8311171561058957600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b8111156105d857600080fd5b8201836020820111156105ea57600080fd5b803590602001918460208302840111600160201b8311171561060b57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561065a57600080fd5b82018360208201111561066c57600080fd5b803590602001918460208302840111600160201b8311171561068d57600080fd5b91908080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525092955061108a945050505050565b61023c600480360360408110156106e157600080fd5b50803590602001356001600160a01b03166113ff565b6101f96004803603602081101561070d57600080fd5b50356001600160a01b031661141a565b6102036004803603604081101561073357600080fd5b50803590602001356001600160a01b031661150f565b6102036004803603604081101561075f57600080fd5b50803590602001356001600160a01b03166115a7565b6101f96004803603602081101561078b57600080fd5b50356001600160a01b0316611646565b6107b8600480360360208110156107b157600080fd5b5035611663565b60405180878152602001866001600160a01b03166001600160a01b0316815260200185815260200180602001846001600160a01b03166001600160a01b03168152602001838152602001828103825285818151815260200191508051906020019060200280838360005b8381101561083a578181015183820152602001610822565b5050505090500197505050505050505060405180910390f35b6101f96004803603608081101561086957600080fd5b506001600160a01b0381358116916020810135821691604082013581169160600135166117ac565b600081815260666020908152604080832054606c548251600160e21b631b0bbd4902815260048101839052925191936001600160a01b0390911692636c2ef5249260248083019392829003018186803b1580156108ed57600080fd5b505afa158015610901573d6000803e3d6000fd5b505050506040513d602081101561091757600080fd5b50519392505050565b6060600061092d83611937565b6001600160a01b038116600090815260686020908152604091829020805483518184028101840190945280845293945091929083018282801561098f57602002820191906000526020600020905b81548152602001906001019080831161097b575b5050505050915050919050565b60606109af606f8363ffffffff6119dd16565b92915050565b606c546001600160a01b03165b90565b6109cd611079565b6109d657600080fd5b6033546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3603380546001600160a01b0319169055565b600190565b600081815260676020908152604091829020805483518184028101840190945280845260609392830182828015610a7b57602002820191906000526020600020905b815481526020019060010190808311610a67575b50505050509050919050565b60695490565b6033546001600160a01b031690565b606b5460408051600160e21b631419a7a10281526004810188905290516000926001600160a01b0316916350669e84916024808301926020929190829003018186803b158015610aeb57600080fd5b505afa158015610aff573d6000803e3d6000fd5b505050506040513d6020811015610b1557600080fd5b50511515600114610b705760408051600160e51b62461bcd02815260206004820152601560248201527f54656d706c617465206e6f7420417070726f7665640000000000000000000000604482015290519081900360640190fd5b606c5460408051600160e11b635de0ef6f028152600481018a905290516000926001600160a01b03169163bbc1dede916024808301926020929190829003018186803b158015610bbf57600080fd5b505afa158015610bd3573d6000803e3d6000fd5b505050506040513d6020811015610be957600080fd5b505111610c385760408051600160e51b62461bcd0281526020600482015260126024820152600160721b71111251081b9bdd081c9959da5cdd195c995902604482015290519081900360640190fd5b606b5460408051600160e01b639757739b02815260048101899052905160609283926001600160a01b0390911691639757739b91602480820192600092909190829003018186803b158015610c8c57600080fd5b505afa158015610ca0573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405260c0811015610cc957600080fd5b815160208301516040840151606085015160808601805194969395929491939283019291600160201b811115610cfe57600080fd5b82016020810184811115610d1157600080fd5b81518560208202830111600160201b82111715610d2d57600080fd5b50509291906020018051600160201b811115610d4857600080fd5b82016020810184811115610d5b57600080fd5b81518560208202830111600160201b82111715610d7757600080fd5b5050929190505050909192939450909192935090919250909150809250819350505081518751148015610dab575081518651145b8015610db8575081518551145b8015610dc5575080518451145b610e195760408051600160e51b62461bcd02815260206004820152601b60248201527f417267756d656e747320686176652077726f6e67206c656e6774680000000000604482015290519081900360640190fd5b60005b8251811015610f1d57606a5488516001600160a01b039091169063fe3ae90f908a9084908110610e4857fe5b6020026020010151858481518110610e5c57fe5b60200260200101518a8581518110610e7057fe5b60200260200101518a8681518110610e8457fe5b60200260200101516040518563ffffffff1660e01b815260040180858152602001846001600160a01b03166001600160a01b03168152602001838152602001828152602001945050505050602060405180830381600087803b158015610ee957600080fd5b505af1158015610efd573d6000803e3d6000fd5b505050506040513d6020811015610f1357600080fd5b5050600101610e1c565b506000610f2989611937565b6001600160a01b0381166000908152606e602052604090208a90559050610f5a60668c8c848c63ffffffff611a4816565b5060005b855181101561101557610fa58c878381518110610f7757fe5b6020026020010151858481518110610f8b57fe5b6020026020010151606d611bbb909392919063ffffffff16565b858181518110610fb157fe5b60200260200101516001600160a01b03168c7f1df2d13a1ab104740f139354d254a1bc6c230efdee681d4c8a463d4fb9b51ca0858481518110610ff057fe5b60200260200101516040518082815260200191505060405180910390a3600101610f5e565b50611028606f8c8763ffffffff611c6a16565b60408051438152905133918c918e917f2b5b2a0bba109d66e716c66ab0737b054eaf5cf4786c8d794647840a4a3c6db6919081900360200190a461106a610a87565b9b9a5050505050505050505050565b6033546001600160a01b0316331490565b606b5460408051600160e01b63b727a25502815233600482015290516000926001600160a01b03169163b727a255916024808301926020929190829003018186803b1580156110d857600080fd5b505afa1580156110ec573d6000803e3d6000fd5b505050506040513d602081101561110257600080fd5b5051151560011461115d5760408051600160e51b62461bcd02815260206004820152601560248201527f54656d706c617465206e6f7420417070726f7665640000000000000000000000604482015290519081900360640190fd5b606c5460408051600160e11b635de0ef6f0281526004810189905290516000926001600160a01b03169163bbc1dede916024808301926020929190829003018186803b1580156111ac57600080fd5b505afa1580156111c0573d6000803e3d6000fd5b505050506040513d60208110156111d657600080fd5b5051116112255760408051600160e51b62461bcd0281526020600482015260126024820152600160721b71111251081b9bdd081c9959da5cdd195c995902604482015290519081900360640190fd5b84518451148015611237575084518351145b8015611244575084518251145b6112985760408051600160e51b62461bcd02815260206004820152601b60248201527f417267756d656e747320686176652077726f6e67206c656e6774680000000000604482015290519081900360640190fd5b60005b855181101561139c57606a5485516001600160a01b039091169063fe3ae90f908790849081106112c757fe5b60200260200101518884815181106112db57fe5b60200260200101518785815181106112ef57fe5b602002602001015187868151811061130357fe5b60200260200101516040518563ffffffff1660e01b815260040180858152602001846001600160a01b03166001600160a01b03168152602001838152602001828152602001945050505050602060405180830381600087803b15801561136857600080fd5b505af115801561137c573d6000803e3d6000fd5b505050506040513d602081101561139257600080fd5b505060010161129b565b506113b160668888338863ffffffff611a4816565b50604080514381529051339188918a917f2b5b2a0bba109d66e716c66ab0737b054eaf5cf4786c8d794647840a4a3c6db6919081900360200190a46113f4610a87565b979650505050505050565b6000611413606d848463ffffffff611c8d16565b9392505050565b600054610100900460ff16806114335750611433611cb0565b80611441575060005460ff16155b61147f57604051600160e51b62461bcd02815260040180806020018281038252602e815260200180611e10602e913960400191505060405180910390fd5b600054610100900460ff161580156114aa576000805460ff1961ff0019909116610100171660011790555b603380546001600160a01b0319166001600160a01b0384811691909117918290556040519116906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3801561150b576000805461ff00191690555b5050565b600082815260666020908152604080832054606c548251600160e01b633c6aa7b7028152600481018390526001600160a01b038781166024830152935192949390911692633c6aa7b792604480840193829003018186803b15801561157357600080fd5b505afa158015611587573d6000803e3d6000fd5b505050506040513d602081101561159d57600080fd5b5051949350505050565b600082815260666020908152604080832054606c548251600160e21b631b0bbd4902815260048101839052925191936001600160a01b0390911692636c2ef5249260248083019392829003018186803b15801561160357600080fd5b505afa158015611617573d6000803e3d6000fd5b505050506040513d602081101561162d57600080fd5b50516001600160a01b0384811691161491505092915050565b61164e611079565b61165757600080fd5b61166081611cb6565b50565b600081815260666020908152604080832060018101549054606c548351600160e21b631b0bbd490281526004810183905293519195948594606094869485946001600160a01b0392831694921692636c2ef524926024808301939192829003018186803b1580156116d357600080fd5b505afa1580156116e7573d6000803e3d6000fd5b505050506040513d60208110156116fd57600080fd5b50516001600160a01b0382166000908152606e60209081526040808320548c845260668352928190206002018054825181850281018501909352808352949a50929850929083018282801561177157602002820191906000526020600020905b81548152602001906001019080831161175d575b50505060009a8b52505060666020526040909820600381015460049091015497999698959795966001600160a01b0390911695945092505050565b600054610100900460ff16806117c557506117c5611cb0565b806117d3575060005460ff16155b61181157604051600160e51b62461bcd02815260040180806020018281038252602e815260200180611e10602e913960400191505060405180910390fd5b600054610100900460ff1615801561183c576000805460ff1961ff0019909116610100171660011790555b6001600160a01b0385161580159061185c57506001600160a01b03841615155b801561187057506001600160a01b03831615155b801561188457506001600160a01b03821615155b6118d85760408051600160e51b62461bcd02815260206004820152600f60248201527f496e76616c696420616464726573730000000000000000000000000000000000604482015290519081900360640190fd5b6118e18561141a565b606a80546001600160a01b038087166001600160a01b031992831617909255606b8054868416908316179055606c8054928516929091169190911790558015611930576000805461ff00191690555b5050505050565b6000600382604051602001808281526020019150506040516020818303038152906040526040518082805190602001908083835b6020831061198a5780518252601f19909201916020918201910161196b565b51815160209384036101000a60001901801990921691161790526040519190930194509192505080830381855afa1580156119c9573d6000803e3d6000fd5b5050506040515160601b60601c9050919050565b60008181526020838152604091829020805483518184028101840190945280845260609392830182828015611a3b57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611a1d575b5050505050905092915050565b60008481526020869052604081206004015415611aaf5760408051600160e51b62461bcd02815260206004820152601160248201527f496420616c726561647920657869737473000000000000000000000000000000604482015290519081900360640190fd5b6040805160a0810182528581526001600160a01b03858116602080840191825283850187815233606086015243608086015260008b81528c8352959095208451815591516001830180546001600160a01b031916919094161790925592518051929392611b229260028501920190611d25565b506060820151600382810180546001600160a01b0319166001600160a01b03938416179055608090930151600490920191909155908701805460018181018355600083815260208082209093018a90559788528981018252604080892080548084018255908a52838a20018a90559690931687526002909801885293852080549182018155855295909320909401929092555054919050565b6000838152602085815260408083206001600160a01b0386168452909152902054158015611bf157506001600160a01b03821615155b611c455760408051600160e51b62461bcd02815260206004820152601460248201527f4163746f7220616c726561647920657869737473000000000000000000000000604482015290519081900360640190fd5b6000928352602093845260408084206001600160a01b03909316845291909352902055565b6000828152602084815260409091208251611c8792840190611d70565b50505050565b6000918252602092835260408083206001600160a01b0390921683529252205490565b303b1590565b6001600160a01b038116611cc957600080fd5b6033546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3603380546001600160a01b0319166001600160a01b0392909216919091179055565b828054828255906000526020600020908101928215611d60579160200282015b82811115611d60578251825591602001919060010190611d45565b50611d6c929150611dd1565b5090565b828054828255906000526020600020908101928215611dc5579160200282015b82811115611dc557825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190611d90565b50611d6c929150611deb565b6109c291905b80821115611d6c5760008155600101611dd7565b6109c291905b80821115611d6c5780546001600160a01b0319168155600101611df156fe436f6e747261637420696e7374616e63652068617320616c7265616479206265656e20696e697469616c697a6564a165627a7a7230582071e6e30c72925a16101b2c812701e37d2cc601b4716facdc339fda8f229a1dd40029";
public static final String FUNC_GETAGREEMENTDIDOWNER = "getAgreementDIDOwner";
public static final String FUNC_GETAGREEMENTIDSFORTEMPLATEID = "getAgreementIdsForTemplateId";
public static final String FUNC_GETAGREEMENTACTORS = "getAgreementActors";
public static final String FUNC_GETDIDREGISTRYADDRESS = "getDIDRegistryAddress";
public static final String FUNC_RENOUNCEOWNERSHIP = "renounceOwnership";
public static final String FUNC_GETAGREEMENTIDSFORDID = "getAgreementIdsForDID";
public static final String FUNC_GETAGREEMENTLISTSIZE = "getAgreementListSize";
public static final String FUNC_OWNER = "owner";
public static final String FUNC_createAgreement = "createAgreement";
public static final String FUNC_ISOWNER = "isOwner";
public static final String FUNC_GETACTORTYPE = "getActorType";
public static final String FUNC_initialize = "initialize";
public static final String FUNC_ISAGREEMENTDIDPROVIDER = "isAgreementDIDProvider";
public static final String FUNC_ISAGREEMENTDIDOWNER = "isAgreementDIDOwner";
public static final String FUNC_TRANSFEROWNERSHIP = "transferOwnership";
public static final String FUNC_GETAGREEMENT = "getAgreement";
public static final String FUNC_DUMMYFUNCTION = "dummyFunction";
public static final Event AGREEMENTCREATED_EVENT = new Event("AgreementCreated",
Arrays.>asList(new TypeReference(true) {}, new TypeReference(true) {}, new TypeReference(true) {}, new TypeReference() {}));
;
public static final Event AGREEMENTACTORADDED_EVENT = new Event("AgreementActorAdded",
Arrays.>asList(new TypeReference(true) {}, new TypeReference(true) {}, new TypeReference() {}));
;
public static final Event OWNERSHIPTRANSFERRED_EVENT = new Event("OwnershipTransferred",
Arrays.>asList(new TypeReference(true) {}, new TypeReference(true) {}));
;
protected static final HashMap _addresses;
static {
_addresses = new HashMap();
}
@Deprecated
protected AgreementStoreManagerExtraFunctionality(String contractAddress, Web3j web3j, Credentials credentials, BigInteger gasPrice, BigInteger gasLimit) {
super(BINARY, contractAddress, web3j, credentials, gasPrice, gasLimit);
}
protected AgreementStoreManagerExtraFunctionality(String contractAddress, Web3j web3j, Credentials credentials, ContractGasProvider contractGasProvider) {
super(BINARY, contractAddress, web3j, credentials, contractGasProvider);
}
@Deprecated
protected AgreementStoreManagerExtraFunctionality(String contractAddress, Web3j web3j, TransactionManager transactionManager, BigInteger gasPrice, BigInteger gasLimit) {
super(BINARY, contractAddress, web3j, transactionManager, gasPrice, gasLimit);
}
protected AgreementStoreManagerExtraFunctionality(String contractAddress, Web3j web3j, TransactionManager transactionManager, ContractGasProvider contractGasProvider) {
super(BINARY, contractAddress, web3j, transactionManager, contractGasProvider);
}
public RemoteFunctionCall getAgreementDIDOwner(byte[] _id) {
final Function function = new Function(FUNC_GETAGREEMENTDIDOWNER,
Arrays.asList(new org.web3j.abi.datatypes.generated.Bytes32(_id)),
Arrays.>asList(new TypeReference() {}));
return executeRemoteCallSingleValueReturn(function, String.class);
}
public RemoteFunctionCall getAgreementIdsForTemplateId(byte[] _templateId) {
final Function function = new Function(FUNC_GETAGREEMENTIDSFORTEMPLATEID,
Arrays.asList(new org.web3j.abi.datatypes.generated.Bytes32(_templateId)),
Arrays.>asList(new TypeReference>() {}));
return new RemoteFunctionCall(function,
new Callable() {
@Override
@SuppressWarnings("unchecked")
public List call() throws Exception {
List result = (List) executeCallSingleValueReturn(function, List.class);
return convertToNative(result);
}
});
}
public RemoteFunctionCall getAgreementActors(byte[] _id) {
final Function function = new Function(FUNC_GETAGREEMENTACTORS,
Arrays.asList(new org.web3j.abi.datatypes.generated.Bytes32(_id)),
Arrays.>asList(new TypeReference>() {}));
return new RemoteFunctionCall(function,
new Callable() {
@Override
@SuppressWarnings("unchecked")
public List call() throws Exception {
List result = (List) executeCallSingleValueReturn(function, List.class);
return convertToNative(result);
}
});
}
public RemoteFunctionCall getDIDRegistryAddress() {
final Function function = new Function(FUNC_GETDIDREGISTRYADDRESS,
Arrays.asList(),
Arrays.>asList(new TypeReference() {}));
return executeRemoteCallSingleValueReturn(function, String.class);
}
public RemoteFunctionCall renounceOwnership() {
final Function function = new Function(
FUNC_RENOUNCEOWNERSHIP,
Arrays.asList(),
Collections.>emptyList());
return executeRemoteCallTransaction(function);
}
public RemoteFunctionCall getAgreementIdsForDID(byte[] _did) {
final Function function = new Function(FUNC_GETAGREEMENTIDSFORDID,
Arrays.asList(new org.web3j.abi.datatypes.generated.Bytes32(_did)),
Arrays.>asList(new TypeReference>() {}));
return new RemoteFunctionCall(function,
new Callable() {
@Override
@SuppressWarnings("unchecked")
public List call() throws Exception {
List result = (List) executeCallSingleValueReturn(function, List.class);
return convertToNative(result);
}
});
}
public RemoteFunctionCall getAgreementListSize() {
final Function function = new Function(FUNC_GETAGREEMENTLISTSIZE,
Arrays.asList(),
Arrays.>asList(new TypeReference() {}));
return executeRemoteCallSingleValueReturn(function, BigInteger.class);
}
public RemoteFunctionCall owner() {
final Function function = new Function(FUNC_OWNER,
Arrays.asList(),
Arrays.>asList(new TypeReference() {}));
return executeRemoteCallSingleValueReturn(function, String.class);
}
public RemoteFunctionCall createAgreement(byte[] _id, byte[] _did, byte[] _templateId, List _conditionIds, List _timeLocks, List _timeOuts, List _actors) {
final Function function = new Function(
FUNC_createAgreement,
Arrays.asList(new org.web3j.abi.datatypes.generated.Bytes32(_id),
new org.web3j.abi.datatypes.generated.Bytes32(_did),
new org.web3j.abi.datatypes.generated.Bytes32(_templateId),
new org.web3j.abi.datatypes.DynamicArray(
org.web3j.abi.datatypes.generated.Bytes32.class,
org.web3j.abi.Utils.typeMap(_conditionIds, org.web3j.abi.datatypes.generated.Bytes32.class)),
new org.web3j.abi.datatypes.DynamicArray(
org.web3j.abi.datatypes.generated.Uint256.class,
org.web3j.abi.Utils.typeMap(_timeLocks, org.web3j.abi.datatypes.generated.Uint256.class)),
new org.web3j.abi.datatypes.DynamicArray(
org.web3j.abi.datatypes.generated.Uint256.class,
org.web3j.abi.Utils.typeMap(_timeOuts, org.web3j.abi.datatypes.generated.Uint256.class)),
new org.web3j.abi.datatypes.DynamicArray(
org.web3j.abi.datatypes.Address.class,
org.web3j.abi.Utils.typeMap(_actors, org.web3j.abi.datatypes.Address.class))),
Collections.>emptyList());
return executeRemoteCallTransaction(function);
}
public RemoteFunctionCall isOwner() {
final Function function = new Function(FUNC_ISOWNER,
Arrays.asList(),
Arrays.>asList(new TypeReference() {}));
return executeRemoteCallSingleValueReturn(function, Boolean.class);
}
public RemoteFunctionCall createAgreement(byte[] _id, byte[] _did, List _conditionTypes, List _conditionIds, List _timeLocks, List _timeOuts) {
final Function function = new Function(
FUNC_createAgreement,
Arrays.asList(new org.web3j.abi.datatypes.generated.Bytes32(_id),
new org.web3j.abi.datatypes.generated.Bytes32(_did),
new org.web3j.abi.datatypes.DynamicArray(
org.web3j.abi.datatypes.Address.class,
org.web3j.abi.Utils.typeMap(_conditionTypes, org.web3j.abi.datatypes.Address.class)),
new org.web3j.abi.datatypes.DynamicArray(
org.web3j.abi.datatypes.generated.Bytes32.class,
org.web3j.abi.Utils.typeMap(_conditionIds, org.web3j.abi.datatypes.generated.Bytes32.class)),
new org.web3j.abi.datatypes.DynamicArray(
org.web3j.abi.datatypes.generated.Uint256.class,
org.web3j.abi.Utils.typeMap(_timeLocks, org.web3j.abi.datatypes.generated.Uint256.class)),
new org.web3j.abi.datatypes.DynamicArray(
org.web3j.abi.datatypes.generated.Uint256.class,
org.web3j.abi.Utils.typeMap(_timeOuts, org.web3j.abi.datatypes.generated.Uint256.class))),
Collections.>emptyList());
return executeRemoteCallTransaction(function);
}
public RemoteFunctionCall getActorType(byte[] _id, String _actor) {
final Function function = new Function(FUNC_GETACTORTYPE,
Arrays.asList(new org.web3j.abi.datatypes.generated.Bytes32(_id),
new org.web3j.abi.datatypes.Address(_actor)),
Arrays.>asList(new TypeReference() {}));
return executeRemoteCallSingleValueReturn(function, byte[].class);
}
public RemoteFunctionCall initialize(String sender) {
final Function function = new Function(
FUNC_initialize,
Arrays.asList(new org.web3j.abi.datatypes.Address(sender)),
Collections.>emptyList());
return executeRemoteCallTransaction(function);
}
public RemoteFunctionCall isAgreementDIDProvider(byte[] _id, String _provider) {
final Function function = new Function(FUNC_ISAGREEMENTDIDPROVIDER,
Arrays.asList(new org.web3j.abi.datatypes.generated.Bytes32(_id),
new org.web3j.abi.datatypes.Address(_provider)),
Arrays.>asList(new TypeReference() {}));
return executeRemoteCallSingleValueReturn(function, Boolean.class);
}
public RemoteFunctionCall isAgreementDIDOwner(byte[] _id, String _owner) {
final Function function = new Function(FUNC_ISAGREEMENTDIDOWNER,
Arrays.asList(new org.web3j.abi.datatypes.generated.Bytes32(_id),
new org.web3j.abi.datatypes.Address(_owner)),
Arrays.>asList(new TypeReference() {}));
return executeRemoteCallSingleValueReturn(function, Boolean.class);
}
public RemoteFunctionCall transferOwnership(String newOwner) {
final Function function = new Function(
FUNC_TRANSFEROWNERSHIP,
Arrays.asList(new org.web3j.abi.datatypes.Address(newOwner)),
Collections.>emptyList());
return executeRemoteCallTransaction(function);
}
public RemoteFunctionCall, String, BigInteger>> getAgreement(byte[] _id) {
final Function function = new Function(FUNC_GETAGREEMENT,
Arrays.asList(new org.web3j.abi.datatypes.generated.Bytes32(_id)),
Arrays.>asList(new TypeReference() {}, new TypeReference() {}, new TypeReference() {}, new TypeReference>() {}, new TypeReference() {}, new TypeReference() {}));
return new RemoteFunctionCall, String, BigInteger>>(function,
new Callable, String, BigInteger>>() {
@Override
public Tuple6, String, BigInteger> call() throws Exception {
List results = executeCallMultipleValueReturn(function);
return new Tuple6, String, BigInteger>(
(byte[]) results.get(0).getValue(),
(String) results.get(1).getValue(),
(byte[]) results.get(2).getValue(),
convertToNative((List) results.get(3).getValue()),
(String) results.get(4).getValue(),
(BigInteger) results.get(5).getValue());
}
});
}
public RemoteFunctionCall initialize(String _owner, String _conditionStoreManagerAddress, String _templateStoreManagerAddress, String _didRegistryAddress) {
final Function function = new Function(
FUNC_initialize,
Arrays.asList(new org.web3j.abi.datatypes.Address(_owner),
new org.web3j.abi.datatypes.Address(_conditionStoreManagerAddress),
new org.web3j.abi.datatypes.Address(_templateStoreManagerAddress),
new org.web3j.abi.datatypes.Address(_didRegistryAddress)),
Collections.>emptyList());
return executeRemoteCallTransaction(function);
}
public List getAgreementCreatedEvents(TransactionReceipt transactionReceipt) {
List valueList = extractEventParametersWithLog(AGREEMENTCREATED_EVENT, transactionReceipt);
ArrayList responses = new ArrayList(valueList.size());
for (Contract.EventValuesWithLog eventValues : valueList) {
AgreementCreatedEventResponse typedResponse = new AgreementCreatedEventResponse();
typedResponse.log = eventValues.getLog();
typedResponse.agreementId = (byte[]) eventValues.getIndexedValues().get(0).getValue();
typedResponse.did = (byte[]) eventValues.getIndexedValues().get(1).getValue();
typedResponse.createdBy = (String) eventValues.getIndexedValues().get(2).getValue();
typedResponse.createdAt = (BigInteger) eventValues.getNonIndexedValues().get(0).getValue();
responses.add(typedResponse);
}
return responses;
}
public Flowable agreementCreatedEventFlowable(EthFilter filter) {
return web3j.ethLogFlowable(filter).map(new io.reactivex.functions.Function() {
@Override
public AgreementCreatedEventResponse apply(Log log) {
Contract.EventValuesWithLog eventValues = extractEventParametersWithLog(AGREEMENTCREATED_EVENT, log);
AgreementCreatedEventResponse typedResponse = new AgreementCreatedEventResponse();
typedResponse.log = log;
typedResponse.agreementId = (byte[]) eventValues.getIndexedValues().get(0).getValue();
typedResponse.did = (byte[]) eventValues.getIndexedValues().get(1).getValue();
typedResponse.createdBy = (String) eventValues.getIndexedValues().get(2).getValue();
typedResponse.createdAt = (BigInteger) eventValues.getNonIndexedValues().get(0).getValue();
return typedResponse;
}
});
}
public Flowable agreementCreatedEventFlowable(DefaultBlockParameter startBlock, DefaultBlockParameter endBlock) {
EthFilter filter = new EthFilter(startBlock, endBlock, getContractAddress());
filter.addSingleTopic(EventEncoder.encode(AGREEMENTCREATED_EVENT));
return agreementCreatedEventFlowable(filter);
}
public List getAgreementActorAddedEvents(TransactionReceipt transactionReceipt) {
List valueList = extractEventParametersWithLog(AGREEMENTACTORADDED_EVENT, transactionReceipt);
ArrayList responses = new ArrayList(valueList.size());
for (Contract.EventValuesWithLog eventValues : valueList) {
AgreementActorAddedEventResponse typedResponse = new AgreementActorAddedEventResponse();
typedResponse.log = eventValues.getLog();
typedResponse.agreementId = (byte[]) eventValues.getIndexedValues().get(0).getValue();
typedResponse.actor = (String) eventValues.getIndexedValues().get(1).getValue();
typedResponse.actorType = (byte[]) eventValues.getNonIndexedValues().get(0).getValue();
responses.add(typedResponse);
}
return responses;
}
public Flowable agreementActorAddedEventFlowable(EthFilter filter) {
return web3j.ethLogFlowable(filter).map(new io.reactivex.functions.Function() {
@Override
public AgreementActorAddedEventResponse apply(Log log) {
Contract.EventValuesWithLog eventValues = extractEventParametersWithLog(AGREEMENTACTORADDED_EVENT, log);
AgreementActorAddedEventResponse typedResponse = new AgreementActorAddedEventResponse();
typedResponse.log = log;
typedResponse.agreementId = (byte[]) eventValues.getIndexedValues().get(0).getValue();
typedResponse.actor = (String) eventValues.getIndexedValues().get(1).getValue();
typedResponse.actorType = (byte[]) eventValues.getNonIndexedValues().get(0).getValue();
return typedResponse;
}
});
}
public Flowable agreementActorAddedEventFlowable(DefaultBlockParameter startBlock, DefaultBlockParameter endBlock) {
EthFilter filter = new EthFilter(startBlock, endBlock, getContractAddress());
filter.addSingleTopic(EventEncoder.encode(AGREEMENTACTORADDED_EVENT));
return agreementActorAddedEventFlowable(filter);
}
public List getOwnershipTransferredEvents(TransactionReceipt transactionReceipt) {
List valueList = extractEventParametersWithLog(OWNERSHIPTRANSFERRED_EVENT, transactionReceipt);
ArrayList responses = new ArrayList(valueList.size());
for (Contract.EventValuesWithLog eventValues : valueList) {
OwnershipTransferredEventResponse typedResponse = new OwnershipTransferredEventResponse();
typedResponse.log = eventValues.getLog();
typedResponse.previousOwner = (String) eventValues.getIndexedValues().get(0).getValue();
typedResponse.newOwner = (String) eventValues.getIndexedValues().get(1).getValue();
responses.add(typedResponse);
}
return responses;
}
public Flowable ownershipTransferredEventFlowable(EthFilter filter) {
return web3j.ethLogFlowable(filter).map(new io.reactivex.functions.Function() {
@Override
public OwnershipTransferredEventResponse apply(Log log) {
Contract.EventValuesWithLog eventValues = extractEventParametersWithLog(OWNERSHIPTRANSFERRED_EVENT, log);
OwnershipTransferredEventResponse typedResponse = new OwnershipTransferredEventResponse();
typedResponse.log = log;
typedResponse.previousOwner = (String) eventValues.getIndexedValues().get(0).getValue();
typedResponse.newOwner = (String) eventValues.getIndexedValues().get(1).getValue();
return typedResponse;
}
});
}
public Flowable ownershipTransferredEventFlowable(DefaultBlockParameter startBlock, DefaultBlockParameter endBlock) {
EthFilter filter = new EthFilter(startBlock, endBlock, getContractAddress());
filter.addSingleTopic(EventEncoder.encode(OWNERSHIPTRANSFERRED_EVENT));
return ownershipTransferredEventFlowable(filter);
}
public RemoteFunctionCall dummyFunction() {
final Function function = new Function(FUNC_DUMMYFUNCTION,
Arrays.asList(),
Arrays.>asList(new TypeReference() {}));
return executeRemoteCallSingleValueReturn(function, Boolean.class);
}
@Deprecated
public static AgreementStoreManagerExtraFunctionality load(String contractAddress, Web3j web3j, Credentials credentials, BigInteger gasPrice, BigInteger gasLimit) {
return new AgreementStoreManagerExtraFunctionality(contractAddress, web3j, credentials, gasPrice, gasLimit);
}
@Deprecated
public static AgreementStoreManagerExtraFunctionality load(String contractAddress, Web3j web3j, TransactionManager transactionManager, BigInteger gasPrice, BigInteger gasLimit) {
return new AgreementStoreManagerExtraFunctionality(contractAddress, web3j, transactionManager, gasPrice, gasLimit);
}
public static AgreementStoreManagerExtraFunctionality load(String contractAddress, Web3j web3j, Credentials credentials, ContractGasProvider contractGasProvider) {
return new AgreementStoreManagerExtraFunctionality(contractAddress, web3j, credentials, contractGasProvider);
}
public static AgreementStoreManagerExtraFunctionality load(String contractAddress, Web3j web3j, TransactionManager transactionManager, ContractGasProvider contractGasProvider) {
return new AgreementStoreManagerExtraFunctionality(contractAddress, web3j, transactionManager, contractGasProvider);
}
public static RemoteCall deploy(Web3j web3j, Credentials credentials, ContractGasProvider contractGasProvider) {
return deployRemoteCall(AgreementStoreManagerExtraFunctionality.class, web3j, credentials, contractGasProvider, BINARY, "");
}
@Deprecated
public static RemoteCall deploy(Web3j web3j, Credentials credentials, BigInteger gasPrice, BigInteger gasLimit) {
return deployRemoteCall(AgreementStoreManagerExtraFunctionality.class, web3j, credentials, gasPrice, gasLimit, BINARY, "");
}
public static RemoteCall deploy(Web3j web3j, TransactionManager transactionManager, ContractGasProvider contractGasProvider) {
return deployRemoteCall(AgreementStoreManagerExtraFunctionality.class, web3j, transactionManager, contractGasProvider, BINARY, "");
}
@Deprecated
public static RemoteCall deploy(Web3j web3j, TransactionManager transactionManager, BigInteger gasPrice, BigInteger gasLimit) {
return deployRemoteCall(AgreementStoreManagerExtraFunctionality.class, web3j, transactionManager, gasPrice, gasLimit, BINARY, "");
}
protected String getStaticDeployedAddress(String networkId) {
return _addresses.get(networkId);
}
public static String getPreviouslyDeployedAddress(String networkId) {
return _addresses.get(networkId);
}
public static class AgreementCreatedEventResponse extends BaseEventResponse {
public byte[] agreementId;
public byte[] did;
public String createdBy;
public BigInteger createdAt;
}
public static class AgreementActorAddedEventResponse extends BaseEventResponse {
public byte[] agreementId;
public String actor;
public byte[] actorType;
}
public static class OwnershipTransferredEventResponse extends BaseEventResponse {
public String previousOwner;
public String newOwner;
}
}