All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.keyko.ocean.keeper.contracts.AgreementStoreManagerWithBug 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 AgreementStoreManagerWithBug extends Contract { public static final String BINARY = "0x608060405234801561001057600080fd5b50611e64806100206000396000f3fe608060405234801561001057600080fd5b50600436106101165760003560e01c80638f32d59b116100a2578063caf92b8b11610071578063caf92b8b1461070a578063d1c1db3914610736578063f2fde38b14610762578063f42eb76514610788578063f8c8765e1461084057610116565b80638f32d59b14610469578063955d0c2a146104855780639a77db79146106b8578063c4d66de8146106e457610116565b8063715018a6116100e9578063715018a6146101e65780638945226e146101f05780638a9013cb1461020d5780638da5cb5b146102275780638ded3b301461022f57610116565b806317cfbf5e1461011b5780633387c4b5146101545780633f3dcae5146101c1578063579e6e3f146101de575b600080fd5b6101386004803603602081101561013157600080fd5b503561087e565b604080516001600160a01b039092168252519081900360200190f35b6101716004803603602081101561016a57600080fd5b503561090d565b60408051602080825283518183015283519192839290830191858101910280838360005b838110156101ad578181015183820152602001610195565b505050509050019250505060405180910390f35b610171600480360360208110156101d757600080fd5b5035610989565b6101386109a2565b6101ee6109b2565b005b6101716004803603602081101561020657600080fd5b5035610a0d565b610215610a6f565b60408051918252519081900360200190f35b610138610a88565b610215600480360360e081101561024557600080fd5b81359160208101359160408201359190810190608081016060820135600160201b81111561027257600080fd5b82018360208201111561028457600080fd5b803590602001918460208302840111600160201b831117156102a557600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b8111156102f457600080fd5b82018360208201111561030657600080fd5b803590602001918460208302840111600160201b8311171561032757600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561037657600080fd5b82018360208201111561038857600080fd5b803590602001918460208302840111600160201b831117156103a957600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b8111156103f857600080fd5b82018360208201111561040a57600080fd5b803590602001918460208302840111600160201b8311171561042b57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610a97945050505050565b610471611074565b604080519115158252519081900360200190f35b610215600480360360c081101561049b57600080fd5b813591602081013591810190606081016040820135600160201b8111156104c157600080fd5b8201836020820111156104d357600080fd5b803590602001918460208302840111600160201b831117156104f457600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561054357600080fd5b82018360208201111561055557600080fd5b803590602001918460208302840111600160201b8311171561057657600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b8111156105c557600080fd5b8201836020820111156105d757600080fd5b803590602001918460208302840111600160201b831117156105f857600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561064757600080fd5b82018360208201111561065957600080fd5b803590602001918460208302840111600160201b8311171561067a57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550611085945050505050565b610215600480360360408110156106ce57600080fd5b50803590602001356001600160a01b03166113fa565b6101ee600480360360208110156106fa57600080fd5b50356001600160a01b0316611415565b6104716004803603604081101561072057600080fd5b50803590602001356001600160a01b031661150a565b6104716004803603604081101561074c57600080fd5b50803590602001356001600160a01b03166115a2565b6101ee6004803603602081101561077857600080fd5b50356001600160a01b0316611641565b6107a56004803603602081101561079e57600080fd5b503561165e565b60405180878152602001866001600160a01b03166001600160a01b0316815260200185815260200180602001846001600160a01b03166001600160a01b03168152602001838152602001828103825285818151815260200191508051906020019060200280838360005b8381101561082757818101518382015260200161080f565b5050505090500197505050505050505060405180910390f35b6101ee6004803603608081101561085657600080fd5b506001600160a01b0381358116916020810135821691604082013581169160600135166117a7565b600081815260666020908152604080832054606c548251600160e21b631b0bbd4902815260048101839052925191936001600160a01b0390911692636c2ef5249260248083019392829003018186803b1580156108da57600080fd5b505afa1580156108ee573d6000803e3d6000fd5b505050506040513d602081101561090457600080fd5b50519392505050565b6060600061091a83611932565b6001600160a01b038116600090815260686020908152604091829020805483518184028101840190945280845293945091929083018282801561097c57602002820191906000526020600020905b815481526020019060010190808311610968575b5050505050915050919050565b606061099c606f8363ffffffff6119d816565b92915050565b606c546001600160a01b03165b90565b6109ba611074565b6109c357600080fd5b6033546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3603380546001600160a01b0319169055565b600081815260676020908152604091829020805483518184028101840190945280845260609392830182828015610a6357602002820191906000526020600020905b815481526020019060010190808311610a4f575b50505050509050919050565b606954600090610a8257506069546109af565b50600090565b6033546001600160a01b031690565b606b5460408051600160e21b631419a7a10281526004810188905290516000926001600160a01b0316916350669e84916024808301926020929190829003018186803b158015610ae657600080fd5b505afa158015610afa573d6000803e3d6000fd5b505050506040513d6020811015610b1057600080fd5b50511515600114610b6b5760408051600160e51b62461bcd02815260206004820152601560248201527f54656d706c617465206e6f7420417070726f7665640000000000000000000000604482015290519081900360640190fd5b606c5460408051600160e11b635de0ef6f028152600481018a905290516000926001600160a01b03169163bbc1dede916024808301926020929190829003018186803b158015610bba57600080fd5b505afa158015610bce573d6000803e3d6000fd5b505050506040513d6020811015610be457600080fd5b505111610c335760408051600160e51b62461bcd0281526020600482015260126024820152600160721b71111251081b9bdd081c9959da5cdd195c995902604482015290519081900360640190fd5b606b5460408051600160e01b639757739b02815260048101899052905160609283926001600160a01b0390911691639757739b91602480820192600092909190829003018186803b158015610c8757600080fd5b505afa158015610c9b573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405260c0811015610cc457600080fd5b815160208301516040840151606085015160808601805194969395929491939283019291600160201b811115610cf957600080fd5b82016020810184811115610d0c57600080fd5b81518560208202830111600160201b82111715610d2857600080fd5b50509291906020018051600160201b811115610d4357600080fd5b82016020810184811115610d5657600080fd5b81518560208202830111600160201b82111715610d7257600080fd5b5050929190505050909192939450909192935090919250909150809250819350505081518751148015610da6575081518651145b8015610db3575081518551145b8015610dc0575080518451145b610e145760408051600160e51b62461bcd02815260206004820152601b60248201527f417267756d656e747320686176652077726f6e67206c656e6774680000000000604482015290519081900360640190fd5b60005b8251811015610f1857606a5488516001600160a01b039091169063fe3ae90f908a9084908110610e4357fe5b6020026020010151858481518110610e5757fe5b60200260200101518a8581518110610e6b57fe5b60200260200101518a8681518110610e7f57fe5b60200260200101516040518563ffffffff1660e01b815260040180858152602001846001600160a01b03166001600160a01b03168152602001838152602001828152602001945050505050602060405180830381600087803b158015610ee457600080fd5b505af1158015610ef8573d6000803e3d6000fd5b505050506040513d6020811015610f0e57600080fd5b5050600101610e17565b506000610f2489611932565b6001600160a01b0381166000908152606e602052604090208a90559050610f5560668c8c848c63ffffffff611a4316565b5060005b855181101561101057610fa08c878381518110610f7257fe5b6020026020010151858481518110610f8657fe5b6020026020010151606d611bb6909392919063ffffffff16565b858181518110610fac57fe5b60200260200101516001600160a01b03168c7f1df2d13a1ab104740f139354d254a1bc6c230efdee681d4c8a463d4fb9b51ca0858481518110610feb57fe5b60200260200101516040518082815260200191505060405180910390a3600101610f59565b50611023606f8c8763ffffffff611c6516565b60408051438152905133918c918e917f2b5b2a0bba109d66e716c66ab0737b054eaf5cf4786c8d794647840a4a3c6db6919081900360200190a4611065610a6f565b9b9a5050505050505050505050565b6033546001600160a01b0316331490565b606b5460408051600160e01b63b727a25502815233600482015290516000926001600160a01b03169163b727a255916024808301926020929190829003018186803b1580156110d357600080fd5b505afa1580156110e7573d6000803e3d6000fd5b505050506040513d60208110156110fd57600080fd5b505115156001146111585760408051600160e51b62461bcd02815260206004820152601560248201527f54656d706c617465206e6f7420417070726f7665640000000000000000000000604482015290519081900360640190fd5b606c5460408051600160e11b635de0ef6f0281526004810189905290516000926001600160a01b03169163bbc1dede916024808301926020929190829003018186803b1580156111a757600080fd5b505afa1580156111bb573d6000803e3d6000fd5b505050506040513d60208110156111d157600080fd5b5051116112205760408051600160e51b62461bcd0281526020600482015260126024820152600160721b71111251081b9bdd081c9959da5cdd195c995902604482015290519081900360640190fd5b84518451148015611232575084518351145b801561123f575084518251145b6112935760408051600160e51b62461bcd02815260206004820152601b60248201527f417267756d656e747320686176652077726f6e67206c656e6774680000000000604482015290519081900360640190fd5b60005b855181101561139757606a5485516001600160a01b039091169063fe3ae90f908790849081106112c257fe5b60200260200101518884815181106112d657fe5b60200260200101518785815181106112ea57fe5b60200260200101518786815181106112fe57fe5b60200260200101516040518563ffffffff1660e01b815260040180858152602001846001600160a01b03166001600160a01b03168152602001838152602001828152602001945050505050602060405180830381600087803b15801561136357600080fd5b505af1158015611377573d6000803e3d6000fd5b505050506040513d602081101561138d57600080fd5b5050600101611296565b506113ac60668888338863ffffffff611a4316565b50604080514381529051339188918a917f2b5b2a0bba109d66e716c66ab0737b054eaf5cf4786c8d794647840a4a3c6db6919081900360200190a46113ef610a6f565b979650505050505050565b600061140e606d848463ffffffff611c8816565b9392505050565b600054610100900460ff168061142e575061142e611cab565b8061143c575060005460ff16155b61147a57604051600160e51b62461bcd02815260040180806020018281038252602e815260200180611e0b602e913960400191505060405180910390fd5b600054610100900460ff161580156114a5576000805460ff1961ff0019909116610100171660011790555b603380546001600160a01b0319166001600160a01b0384811691909117918290556040519116906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a38015611506576000805461ff00191690555b5050565b600082815260666020908152604080832054606c548251600160e01b633c6aa7b7028152600481018390526001600160a01b038781166024830152935192949390911692633c6aa7b792604480840193829003018186803b15801561156e57600080fd5b505afa158015611582573d6000803e3d6000fd5b505050506040513d602081101561159857600080fd5b5051949350505050565b600082815260666020908152604080832054606c548251600160e21b631b0bbd4902815260048101839052925191936001600160a01b0390911692636c2ef5249260248083019392829003018186803b1580156115fe57600080fd5b505afa158015611612573d6000803e3d6000fd5b505050506040513d602081101561162857600080fd5b50516001600160a01b0384811691161491505092915050565b611649611074565b61165257600080fd5b61165b81611cb1565b50565b600081815260666020908152604080832060018101549054606c548351600160e21b631b0bbd490281526004810183905293519195948594606094869485946001600160a01b0392831694921692636c2ef524926024808301939192829003018186803b1580156116ce57600080fd5b505afa1580156116e2573d6000803e3d6000fd5b505050506040513d60208110156116f857600080fd5b50516001600160a01b0382166000908152606e60209081526040808320548c845260668352928190206002018054825181850281018501909352808352949a50929850929083018282801561176c57602002820191906000526020600020905b815481526020019060010190808311611758575b50505060009a8b52505060666020526040909820600381015460049091015497999698959795966001600160a01b0390911695945092505050565b600054610100900460ff16806117c057506117c0611cab565b806117ce575060005460ff16155b61180c57604051600160e51b62461bcd02815260040180806020018281038252602e815260200180611e0b602e913960400191505060405180910390fd5b600054610100900460ff16158015611837576000805460ff1961ff0019909116610100171660011790555b6001600160a01b0385161580159061185757506001600160a01b03841615155b801561186b57506001600160a01b03831615155b801561187f57506001600160a01b03821615155b6118d35760408051600160e51b62461bcd02815260206004820152600f60248201527f496e76616c696420616464726573730000000000000000000000000000000000604482015290519081900360640190fd5b6118dc85611415565b606a80546001600160a01b038087166001600160a01b031992831617909255606b8054868416908316179055606c805492851692909116919091179055801561192b576000805461ff00191690555b5050505050565b6000600382604051602001808281526020019150506040516020818303038152906040526040518082805190602001908083835b602083106119855780518252601f199092019160209182019101611966565b51815160209384036101000a60001901801990921691161790526040519190930194509192505080830381855afa1580156119c4573d6000803e3d6000fd5b5050506040515160601b60601c9050919050565b60008181526020838152604091829020805483518184028101840190945280845260609392830182828015611a3657602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611a18575b5050505050905092915050565b60008481526020869052604081206004015415611aaa5760408051600160e51b62461bcd02815260206004820152601160248201527f496420616c726561647920657869737473000000000000000000000000000000604482015290519081900360640190fd5b6040805160a0810182528581526001600160a01b03858116602080840191825283850187815233606086015243608086015260008b81528c8352959095208451815591516001830180546001600160a01b031916919094161790925592518051929392611b1d9260028501920190611d20565b506060820151600382810180546001600160a01b0319166001600160a01b03938416179055608090930151600490920191909155908701805460018181018355600083815260208082209093018a90559788528981018252604080892080548084018255908a52838a20018a90559690931687526002909801885293852080549182018155855295909320909401929092555054919050565b6000838152602085815260408083206001600160a01b0386168452909152902054158015611bec57506001600160a01b03821615155b611c405760408051600160e51b62461bcd02815260206004820152601460248201527f4163746f7220616c726561647920657869737473000000000000000000000000604482015290519081900360640190fd5b6000928352602093845260408084206001600160a01b03909316845291909352902055565b6000828152602084815260409091208251611c8292840190611d6b565b50505050565b6000918252602092835260408083206001600160a01b0390921683529252205490565b303b1590565b6001600160a01b038116611cc457600080fd5b6033546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3603380546001600160a01b0319166001600160a01b0392909216919091179055565b828054828255906000526020600020908101928215611d5b579160200282015b82811115611d5b578251825591602001919060010190611d40565b50611d67929150611dcc565b5090565b828054828255906000526020600020908101928215611dc0579160200282015b82811115611dc057825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190611d8b565b50611d67929150611de6565b6109af91905b80821115611d675760008155600101611dd2565b6109af91905b80821115611d675780546001600160a01b0319168155600101611dec56fe436f6e747261637420696e7374616e63652068617320616c7265616479206265656e20696e697469616c697a6564a165627a7a7230582093f64dc1a13a66bf03f84231af1841e84ca3925b37cc2ba6d02c4f1a7f269cf40029"; 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_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_GETAGREEMENTLISTSIZE = "getAgreementListSize"; 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 AgreementStoreManagerWithBug(String contractAddress, Web3j web3j, Credentials credentials, BigInteger gasPrice, BigInteger gasLimit) { super(BINARY, contractAddress, web3j, credentials, gasPrice, gasLimit); } protected AgreementStoreManagerWithBug(String contractAddress, Web3j web3j, Credentials credentials, ContractGasProvider contractGasProvider) { super(BINARY, contractAddress, web3j, credentials, contractGasProvider); } @Deprecated protected AgreementStoreManagerWithBug(String contractAddress, Web3j web3j, TransactionManager transactionManager, BigInteger gasPrice, BigInteger gasLimit) { super(BINARY, contractAddress, web3j, transactionManager, gasPrice, gasLimit); } protected AgreementStoreManagerWithBug(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 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 getAgreementListSize() { final Function function = new Function(FUNC_GETAGREEMENTLISTSIZE, Arrays.asList(), Arrays.>asList(new TypeReference() {})); return executeRemoteCallSingleValueReturn(function, BigInteger.class); } @Deprecated public static AgreementStoreManagerWithBug load(String contractAddress, Web3j web3j, Credentials credentials, BigInteger gasPrice, BigInteger gasLimit) { return new AgreementStoreManagerWithBug(contractAddress, web3j, credentials, gasPrice, gasLimit); } @Deprecated public static AgreementStoreManagerWithBug load(String contractAddress, Web3j web3j, TransactionManager transactionManager, BigInteger gasPrice, BigInteger gasLimit) { return new AgreementStoreManagerWithBug(contractAddress, web3j, transactionManager, gasPrice, gasLimit); } public static AgreementStoreManagerWithBug load(String contractAddress, Web3j web3j, Credentials credentials, ContractGasProvider contractGasProvider) { return new AgreementStoreManagerWithBug(contractAddress, web3j, credentials, contractGasProvider); } public static AgreementStoreManagerWithBug load(String contractAddress, Web3j web3j, TransactionManager transactionManager, ContractGasProvider contractGasProvider) { return new AgreementStoreManagerWithBug(contractAddress, web3j, transactionManager, contractGasProvider); } public static RemoteCall deploy(Web3j web3j, Credentials credentials, ContractGasProvider contractGasProvider) { return deployRemoteCall(AgreementStoreManagerWithBug.class, web3j, credentials, contractGasProvider, BINARY, ""); } @Deprecated public static RemoteCall deploy(Web3j web3j, Credentials credentials, BigInteger gasPrice, BigInteger gasLimit) { return deployRemoteCall(AgreementStoreManagerWithBug.class, web3j, credentials, gasPrice, gasLimit, BINARY, ""); } public static RemoteCall deploy(Web3j web3j, TransactionManager transactionManager, ContractGasProvider contractGasProvider) { return deployRemoteCall(AgreementStoreManagerWithBug.class, web3j, transactionManager, contractGasProvider, BINARY, ""); } @Deprecated public static RemoteCall deploy(Web3j web3j, TransactionManager transactionManager, BigInteger gasPrice, BigInteger gasLimit) { return deployRemoteCall(AgreementStoreManagerWithBug.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; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy