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

com.webank.weid.contract.v2.EvidenceContract Maven / Gradle / Ivy

There is a newer version: 1.3.2-rc.1
Show newest version
package com.webank.weid.contract.v2;

import java.math.BigInteger;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import org.fisco.bcos.channel.client.TransactionSucCallback;
import org.fisco.bcos.channel.event.filter.EventLogPushWithDecodeCallback;
import org.fisco.bcos.web3j.abi.EventEncoder;
import org.fisco.bcos.web3j.abi.FunctionReturnDecoder;
import org.fisco.bcos.web3j.abi.TypeReference;
import org.fisco.bcos.web3j.abi.datatypes.Address;
import org.fisco.bcos.web3j.abi.datatypes.Bool;
import org.fisco.bcos.web3j.abi.datatypes.DynamicArray;
import org.fisco.bcos.web3j.abi.datatypes.Event;
import org.fisco.bcos.web3j.abi.datatypes.Function;
import org.fisco.bcos.web3j.abi.datatypes.Type;
import org.fisco.bcos.web3j.abi.datatypes.Utf8String;
import org.fisco.bcos.web3j.abi.datatypes.generated.Bytes32;
import org.fisco.bcos.web3j.abi.datatypes.generated.Uint256;
import org.fisco.bcos.web3j.crypto.Credentials;
import org.fisco.bcos.web3j.protocol.Web3j;
import org.fisco.bcos.web3j.protocol.core.RemoteCall;
import org.fisco.bcos.web3j.protocol.core.methods.response.Log;
import org.fisco.bcos.web3j.protocol.core.methods.response.TransactionReceipt;
import org.fisco.bcos.web3j.tuples.generated.Tuple5;
import org.fisco.bcos.web3j.tuples.generated.Tuple6;
import org.fisco.bcos.web3j.tx.Contract;
import org.fisco.bcos.web3j.tx.TransactionManager;
import org.fisco.bcos.web3j.tx.gas.ContractGasProvider;
import org.fisco.bcos.web3j.tx.txdecode.TransactionDecoder;

/**
 * 

Auto generated code. *

Do not modify! *

Please use the web3j command line tools, * or the org.fisco.bcos.web3j.codegen.SolidityFunctionWrapperGenerator in the * codegen module to update. * *

Generated with web3j version null. */ @SuppressWarnings("unchecked") public class EvidenceContract extends Contract { public static String BINARY = "608060405234801561001057600080fd5b50611968806100206000396000f300608060405260043610610078576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806318c25f651461007d5780631ee6cba9146100a65780634f522a0b146100cf5780638a2d099c1461010c5780638cd9de6914610149578063f37a078414610172575b600080fd5b34801561008957600080fd5b506100a4600480360361009f9190810190611164565b6101af565b005b3480156100b257600080fd5b506100cd60048036036100c89190810190611253565b610504565b005b3480156100db57600080fd5b506100f660048036036100f19190810190611395565b610924565b604051610103919061166d565b60405180910390f35b34801561011857600080fd5b50610133600480360361012e919081019061136c565b610999565b6040516101409190611652565b60405180910390f35b34801561015557600080fd5b50610170600480360361016b9190810190611164565b6109d1565b005b34801561017e57600080fd5b506101996004803603610194919081019061136c565b610d65565b6040516101a69190611688565b60405180910390f35b60006060806060806060806000808d519850886040519080825280602002602001820160405280156101f05781602001602082028038833980820191505090505b5097508860405190808252806020026020018201604052801561022757816020015b60608152602001906001900390816102125790505b5096508860405190808252806020026020018201604052801561025e57816020015b60608152602001906001900390816102495790505b509550886040519080825280602002602001820160405280156102905781602001602082028038833980820191505090505b509450886040519080825280602002602001820160405280156102c25781602001602082028038833980820191505090505b509350886040519080825280602002602001820160405280156102f45781602001602082028038833980820191505090505b509250600091505b888210156104b3578d8281518110151561031257fe5b90602001906020020151905061032781610999565b156104a65780888381518110151561033b57fe5b9060200190602002019060001916908160001916815250508b8281518110151561036157fe5b90602001906020020151878381518110151561037957fe5b906020019060200201819052508a8281518110151561039457fe5b9060200190602002015186838151811015156103ac57fe5b906020019060200201819052508c828151811015156103c757fe5b9060200190602002015185838151811015156103df57fe5b9060200190602002019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050898281518110151561042957fe5b90602001906020020151848381518110151561044157fe5b9060200190602002018181525050600080826000191660001916815260200190815260200160002054838381518110151561047857fe5b9060200190602002018181525050436000808360001916600019168152602001908152602001600020819055505b81806001019250506102fc565b7f7a3af504b33a01478e0f2342a74eb99878b3aae55d883e9bad3d8236605095998886898988886040516104ec969594939291906115c7565b60405180910390a15050505050505050505050505050565b60006060806060806060806000808e519850886040519080825280602002602001820160405280156105455781602001602082028038833980820191505090505b5097508860405190808252806020026020018201604052801561057c57816020015b60608152602001906001900390816105675790505b509650886040519080825280602002602001820160405280156105b357816020015b606081526020019060019003908161059e5790505b509550886040519080825280602002602001820160405280156105e55781602001602082028038833980820191505090505b509450886040519080825280602002602001820160405280156106175781602001602082028038833980820191505090505b509350886040519080825280602002602001820160405280156106495781602001602082028038833980820191505090505b509250600091505b888210156108d2578e8281518110151561066757fe5b9060200190602002015190506106a48d8381518110151561068457fe5b906020019060200201516020604051908101604052806000815250610d89565b80156106b657506106b481610999565b155b156106c0576108c5565b8088838151811015156106cf57fe5b9060200190602002019060001916908160001916815250508c828151811015156106f557fe5b90602001906020020151878381518110151561070d57fe5b906020019060200201819052508b8281518110151561072857fe5b90602001906020020151868381518110151561074057fe5b906020019060200201819052508d8281518110151561075b57fe5b90602001906020020151858381518110151561077357fe5b9060200190602002019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250508a828151811015156107bd57fe5b9060200190602002015184838151811015156107d557fe5b9060200190602002018181525050600080826000191660001916815260200190815260200160002054838381518110151561080c57fe5b9060200190602002018181525050436000808360001916600019168152602001908152602001600020819055508060018b8481518110151561084a57fe5b906020019060200201516040518082805190602001908083835b6020831015156108895780518252602082019150602081019050602083039250610864565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902081600019169055505b8180600101925050610651565b7f15cc41f44da1ce7effba3d8368638defc8c28c84d4933a0bb810421b8bded61c88868989888860405161090b969594939291906115c7565b60405180910390a1505050505050505050505050505050565b60006001826040518082805190602001908083835b60208310151561095e5780518252602082019150602081019050602083039250610939565b6001836020036101000a0380198251168184511680821785525050505050509050019150509081526020016040518091039020549050919050565b6000806000808460001916600019168152602001908152602001600020541415156109c757600190506109cc565b600090505b919050565b60006060806060806060806000808d51985088604051908082528060200260200182016040528015610a125781602001602082028038833980820191505090505b50975088604051908082528060200260200182016040528015610a4957816020015b6060815260200190600190039081610a345790505b50965088604051908082528060200260200182016040528015610a8057816020015b6060815260200190600190039081610a6b5790505b50955088604051908082528060200260200182016040528015610ab25781602001602082028038833980820191505090505b50945088604051908082528060200260200182016040528015610ae45781602001602082028038833980820191505090505b50935088604051908082528060200260200182016040528015610b165781602001602082028038833980820191505090505b509250600091505b88821015610d14578d82815181101515610b3457fe5b906020019060200201519050610b718c83815181101515610b5157fe5b906020019060200201516020604051908101604052806000815250610d89565b8015610b835750610b8181610999565b155b15610b8d57610d07565b808883815181101515610b9c57fe5b9060200190602002019060001916908160001916815250508b82815181101515610bc257fe5b906020019060200201518783815181101515610bda57fe5b906020019060200201819052508a82815181101515610bf557fe5b906020019060200201518683815181101515610c0d57fe5b906020019060200201819052508c82815181101515610c2857fe5b906020019060200201518583815181101515610c4057fe5b9060200190602002019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250508982815181101515610c8a57fe5b906020019060200201518483815181101515610ca257fe5b90602001906020020181815250506000808260001916600019168152602001908152602001600020548383815181101515610cd957fe5b9060200190602002018181525050436000808360001916600019168152602001908152602001600020819055505b8180600101925050610b1e565b7f15cc41f44da1ce7effba3d8368638defc8c28c84d4933a0bb810421b8bded61c888689898888604051610d4d969594939291906115c7565b60405180910390a15050505050505050505050505050565b60008060008360001916600019168152602001908152602001600020549050919050565b600081518351141515610d9f5760009050610e71565b816040518082805190602001908083835b602083101515610dd55780518252602082019150602081019050602083039250610db0565b6001836020036101000a038019825116818451168082178552505050505050905001915050604051809103902060001916836040518082805190602001908083835b602083101515610e3c5780518252602082019150602081019050602083039250610e17565b6001836020036101000a0380198251168184511680821785525050505050509050019150506040518091039020600019161490505b92915050565b6000610e8382356118a7565b905092915050565b600082601f8301121515610e9e57600080fd5b8135610eb1610eac826116d0565b6116a3565b91508181835260208401935060208101905083856020840282011115610ed657600080fd5b60005b83811015610f065781610eec8882610e77565b845260208401935060208301925050600181019050610ed9565b5050505092915050565b600082601f8301121515610f2357600080fd5b8135610f36610f31826116f8565b6116a3565b91508181835260208401935060208101905083856020840282011115610f5b57600080fd5b60005b83811015610f8b5781610f718882611090565b845260208401935060208301925050600181019050610f5e565b5050505092915050565b600082601f8301121515610fa857600080fd5b8135610fbb610fb682611720565b6116a3565b9150818183526020840193506020810190508360005b838110156110015781358601610fe788826110a4565b845260208401935060208301925050600181019050610fd1565b5050505092915050565b600082601f830112151561101e57600080fd5b813561103161102c82611748565b6116a3565b9150818183526020840193506020810190508385602084028201111561105657600080fd5b60005b83811015611086578161106c8882611150565b845260208401935060208301925050600181019050611059565b5050505092915050565b600061109c82356118c7565b905092915050565b600082601f83011215156110b757600080fd5b81356110ca6110c582611770565b6116a3565b915080825260208301602083018583830111156110e657600080fd5b6110f18382846118db565b50505092915050565b600082601f830112151561110d57600080fd5b813561112061111b8261179c565b6116a3565b9150808252602083016020830185838301111561113c57600080fd5b6111478382846118db565b50505092915050565b600061115c82356118d1565b905092915050565b600080600080600060a0868803121561117c57600080fd5b600086013567ffffffffffffffff81111561119657600080fd5b6111a288828901610f10565b955050602086013567ffffffffffffffff8111156111bf57600080fd5b6111cb88828901610e8b565b945050604086013567ffffffffffffffff8111156111e857600080fd5b6111f488828901610f95565b935050606086013567ffffffffffffffff81111561121157600080fd5b61121d88828901610f95565b925050608086013567ffffffffffffffff81111561123a57600080fd5b6112468882890161100b565b9150509295509295909350565b60008060008060008060c0878903121561126c57600080fd5b600087013567ffffffffffffffff81111561128657600080fd5b61129289828a01610f10565b965050602087013567ffffffffffffffff8111156112af57600080fd5b6112bb89828a01610e8b565b955050604087013567ffffffffffffffff8111156112d857600080fd5b6112e489828a01610f95565b945050606087013567ffffffffffffffff81111561130157600080fd5b61130d89828a01610f95565b935050608087013567ffffffffffffffff81111561132a57600080fd5b61133689828a0161100b565b92505060a087013567ffffffffffffffff81111561135357600080fd5b61135f89828a01610f95565b9150509295509295509295565b60006020828403121561137e57600080fd5b600061138c84828501611090565b91505092915050565b6000602082840312156113a757600080fd5b600082013567ffffffffffffffff8111156113c157600080fd5b6113cd848285016110fa565b91505092915050565b6113df81611867565b82525050565b60006113f0826117fc565b808452602084019350611402836117c8565b60005b82811015611434576114188683516113d6565b61142182611833565b9150602086019550600181019050611405565b50849250505092915050565b600061144b82611807565b80845260208401935061145d836117d5565b60005b8281101561148f57611473868351611573565b61147c82611840565b9150602086019550600181019050611460565b50849250505092915050565b60006114a682611812565b808452602084019350836020820285016114bf856117e2565b60005b848110156114f85783830388526114da838351611582565b92506114e58261184d565b91506020880197506001810190506114c2565b508196508694505050505092915050565b60006115148261181d565b808452602084019350611526836117ef565b60005b828110156115585761153c8683516115b8565b6115458261185a565b9150602086019550600181019050611529565b50849250505092915050565b61156d81611887565b82525050565b61157c81611893565b82525050565b600061158d82611828565b8084526115a18160208601602086016118ea565b6115aa8161191d565b602085010191505092915050565b6115c18161189d565b82525050565b600060c08201905081810360008301526115e18189611440565b905081810360208301526115f581886113e5565b90508181036040830152611609818761149b565b9050818103606083015261161d818661149b565b905081810360808301526116318185611509565b905081810360a08301526116458184611509565b9050979650505050505050565b60006020820190506116676000830184611564565b92915050565b60006020820190506116826000830184611573565b92915050565b600060208201905061169d60008301846115b8565b92915050565b6000604051905081810181811067ffffffffffffffff821117156116c657600080fd5b8060405250919050565b600067ffffffffffffffff8211156116e757600080fd5b602082029050602081019050919050565b600067ffffffffffffffff82111561170f57600080fd5b602082029050602081019050919050565b600067ffffffffffffffff82111561173757600080fd5b602082029050602081019050919050565b600067ffffffffffffffff82111561175f57600080fd5b602082029050602081019050919050565b600067ffffffffffffffff82111561178757600080fd5b601f19601f8301169050602081019050919050565b600067ffffffffffffffff8211156117b357600080fd5b601f19601f8301169050602081019050919050565b6000602082019050919050565b6000602082019050919050565b6000602082019050919050565b6000602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b6000602082019050919050565b6000602082019050919050565b6000602082019050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60008115159050919050565b6000819050919050565b6000819050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6000819050919050565b82818337600083830152505050565b60005b838110156119085780820151818401526020810190506118ed565b83811115611917576000848401525b50505050565b6000601f19601f83011690509190505600a265627a7a723058204744a88b30c44fbbfe6395f0f09fee64f53770afd8538ebde46d003b9a3045436c6578706572696d656e74616cf50037"; public static final String ABI = "[{\"constant\":false,\"inputs\":[{\"indexed\":false,\"name\":\"hash\",\"type\":\"bytes32[]\"},{\"indexed\":false,\"name\":\"signer\",\"type\":\"address[]\"},{\"indexed\":false,\"name\":\"key\",\"type\":\"string[]\"},{\"indexed\":false,\"name\":\"value\",\"type\":\"string[]\"},{\"indexed\":false,\"name\":\"updated\",\"type\":\"uint256[]\"}],\"name\":\"setAttribute\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"indexed\":false,\"name\":\"hash\",\"type\":\"bytes32[]\"},{\"indexed\":false,\"name\":\"signer\",\"type\":\"address[]\"},{\"indexed\":false,\"name\":\"sigs\",\"type\":\"string[]\"},{\"indexed\":false,\"name\":\"logs\",\"type\":\"string[]\"},{\"indexed\":false,\"name\":\"updated\",\"type\":\"uint256[]\"},{\"indexed\":false,\"name\":\"extraKey\",\"type\":\"string[]\"}],\"name\":\"createEvidenceWithExtraKey\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"indexed\":false,\"name\":\"extraKey\",\"type\":\"string\"}],\"name\":\"getHashByExtraKey\",\"outputs\":[{\"indexed\":false,\"name\":\"\",\"type\":\"bytes32\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"indexed\":false,\"name\":\"hash\",\"type\":\"bytes32\"}],\"name\":\"isHashExist\",\"outputs\":[{\"indexed\":false,\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"indexed\":false,\"name\":\"hash\",\"type\":\"bytes32[]\"},{\"indexed\":false,\"name\":\"signer\",\"type\":\"address[]\"},{\"indexed\":false,\"name\":\"sigs\",\"type\":\"string[]\"},{\"indexed\":false,\"name\":\"logs\",\"type\":\"string[]\"},{\"indexed\":false,\"name\":\"updated\",\"type\":\"uint256[]\"}],\"name\":\"createEvidence\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"indexed\":false,\"name\":\"hash\",\"type\":\"bytes32\"}],\"name\":\"getLatestRelatedBlock\",\"outputs\":[{\"indexed\":false,\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"indexed\":false,\"name\":\"hash\",\"type\":\"bytes32[]\"},{\"indexed\":false,\"name\":\"signer\",\"type\":\"address[]\"},{\"indexed\":false,\"name\":\"sigs\",\"type\":\"string[]\"},{\"indexed\":false,\"name\":\"logs\",\"type\":\"string[]\"},{\"indexed\":false,\"name\":\"updated\",\"type\":\"uint256[]\"},{\"indexed\":false,\"name\":\"previousBlock\",\"type\":\"uint256[]\"}],\"name\":\"EvidenceAttributeChanged\",\"payable\":false,\"type\":\"event\"},{\"constant\":false,\"inputs\":[{\"indexed\":false,\"name\":\"hash\",\"type\":\"bytes32[]\"},{\"indexed\":false,\"name\":\"signer\",\"type\":\"address[]\"},{\"indexed\":false,\"name\":\"keys\",\"type\":\"string[]\"},{\"indexed\":false,\"name\":\"values\",\"type\":\"string[]\"},{\"indexed\":false,\"name\":\"updated\",\"type\":\"uint256[]\"},{\"indexed\":false,\"name\":\"previousBlock\",\"type\":\"uint256[]\"}],\"name\":\"EvidenceExtraAttributeChanged\",\"payable\":false,\"type\":\"event\"}]"; public static final TransactionDecoder transactionDecoder = new TransactionDecoder(ABI, BINARY); public static final String FUNC_SETATTRIBUTE = "setAttribute"; public static final String FUNC_CREATEEVIDENCEWITHEXTRAKEY = "createEvidenceWithExtraKey"; public static final String FUNC_GETHASHBYEXTRAKEY = "getHashByExtraKey"; public static final String FUNC_ISHASHEXIST = "isHashExist"; public static final String FUNC_CREATEEVIDENCE = "createEvidence"; public static final String FUNC_GETLATESTRELATEDBLOCK = "getLatestRelatedBlock"; public static final Event EVIDENCEATTRIBUTECHANGED_EVENT = new Event("EvidenceAttributeChanged", Arrays.>asList(new TypeReference>() {}, new TypeReference>() {}, new TypeReference>() {}, new TypeReference>() {}, new TypeReference>() {}, new TypeReference>() {})); ; public static final Event EVIDENCEEXTRAATTRIBUTECHANGED_EVENT = new Event("EvidenceExtraAttributeChanged", Arrays.>asList(new TypeReference>() {}, new TypeReference>() {}, new TypeReference>() {}, new TypeReference>() {}, new TypeReference>() {}, new TypeReference>() {})); ; @Deprecated protected EvidenceContract(String contractAddress, Web3j web3j, Credentials credentials, BigInteger gasPrice, BigInteger gasLimit) { super(BINARY, contractAddress, web3j, credentials, gasPrice, gasLimit); } protected EvidenceContract(String contractAddress, Web3j web3j, Credentials credentials, ContractGasProvider contractGasProvider) { super(BINARY, contractAddress, web3j, credentials, contractGasProvider); } @Deprecated protected EvidenceContract(String contractAddress, Web3j web3j, TransactionManager transactionManager, BigInteger gasPrice, BigInteger gasLimit) { super(BINARY, contractAddress, web3j, transactionManager, gasPrice, gasLimit); } protected EvidenceContract(String contractAddress, Web3j web3j, TransactionManager transactionManager, ContractGasProvider contractGasProvider) { super(BINARY, contractAddress, web3j, transactionManager, contractGasProvider); } public static TransactionDecoder getTransactionDecoder() { return transactionDecoder; } public RemoteCall setAttribute(List hash, List signer, List key, List value, List updated) { final Function function = new Function( FUNC_SETATTRIBUTE, Arrays.asList(hash.isEmpty()?org.fisco.bcos.web3j.abi.datatypes.DynamicArray.empty("bytes32[]"):new org.fisco.bcos.web3j.abi.datatypes.DynamicArray( org.fisco.bcos.web3j.abi.Utils.typeMap(hash, org.fisco.bcos.web3j.abi.datatypes.generated.Bytes32.class)), signer.isEmpty()?org.fisco.bcos.web3j.abi.datatypes.DynamicArray.empty("address[]"):new org.fisco.bcos.web3j.abi.datatypes.DynamicArray( org.fisco.bcos.web3j.abi.Utils.typeMap(signer, org.fisco.bcos.web3j.abi.datatypes.Address.class)), key.isEmpty()?org.fisco.bcos.web3j.abi.datatypes.DynamicArray.empty("string[]"):new org.fisco.bcos.web3j.abi.datatypes.DynamicArray( org.fisco.bcos.web3j.abi.Utils.typeMap(key, org.fisco.bcos.web3j.abi.datatypes.Utf8String.class)), value.isEmpty()?org.fisco.bcos.web3j.abi.datatypes.DynamicArray.empty("string[]"):new org.fisco.bcos.web3j.abi.datatypes.DynamicArray( org.fisco.bcos.web3j.abi.Utils.typeMap(value, org.fisco.bcos.web3j.abi.datatypes.Utf8String.class)), updated.isEmpty()?org.fisco.bcos.web3j.abi.datatypes.DynamicArray.empty("uint256[]"):new org.fisco.bcos.web3j.abi.datatypes.DynamicArray( org.fisco.bcos.web3j.abi.Utils.typeMap(updated, org.fisco.bcos.web3j.abi.datatypes.generated.Uint256.class))), Collections.>emptyList()); return executeRemoteCallTransaction(function); } public void setAttribute(List hash, List signer, List key, List value, List updated, TransactionSucCallback callback) { final Function function = new Function( FUNC_SETATTRIBUTE, Arrays.asList(hash.isEmpty()?org.fisco.bcos.web3j.abi.datatypes.DynamicArray.empty("bytes32[]"):new org.fisco.bcos.web3j.abi.datatypes.DynamicArray( org.fisco.bcos.web3j.abi.Utils.typeMap(hash, org.fisco.bcos.web3j.abi.datatypes.generated.Bytes32.class)), signer.isEmpty()?org.fisco.bcos.web3j.abi.datatypes.DynamicArray.empty("address[]"):new org.fisco.bcos.web3j.abi.datatypes.DynamicArray( org.fisco.bcos.web3j.abi.Utils.typeMap(signer, org.fisco.bcos.web3j.abi.datatypes.Address.class)), key.isEmpty()?org.fisco.bcos.web3j.abi.datatypes.DynamicArray.empty("string[]"):new org.fisco.bcos.web3j.abi.datatypes.DynamicArray( org.fisco.bcos.web3j.abi.Utils.typeMap(key, org.fisco.bcos.web3j.abi.datatypes.Utf8String.class)), value.isEmpty()?org.fisco.bcos.web3j.abi.datatypes.DynamicArray.empty("string[]"):new org.fisco.bcos.web3j.abi.datatypes.DynamicArray( org.fisco.bcos.web3j.abi.Utils.typeMap(value, org.fisco.bcos.web3j.abi.datatypes.Utf8String.class)), updated.isEmpty()?org.fisco.bcos.web3j.abi.datatypes.DynamicArray.empty("uint256[]"):new org.fisco.bcos.web3j.abi.datatypes.DynamicArray( org.fisco.bcos.web3j.abi.Utils.typeMap(updated, org.fisco.bcos.web3j.abi.datatypes.generated.Uint256.class))), Collections.>emptyList()); asyncExecuteTransaction(function, callback); } public String setAttributeSeq(List hash, List signer, List key, List value, List updated) { final Function function = new Function( FUNC_SETATTRIBUTE, Arrays.asList(hash.isEmpty()?org.fisco.bcos.web3j.abi.datatypes.DynamicArray.empty("bytes32[]"):new org.fisco.bcos.web3j.abi.datatypes.DynamicArray( org.fisco.bcos.web3j.abi.Utils.typeMap(hash, org.fisco.bcos.web3j.abi.datatypes.generated.Bytes32.class)), signer.isEmpty()?org.fisco.bcos.web3j.abi.datatypes.DynamicArray.empty("address[]"):new org.fisco.bcos.web3j.abi.datatypes.DynamicArray( org.fisco.bcos.web3j.abi.Utils.typeMap(signer, org.fisco.bcos.web3j.abi.datatypes.Address.class)), key.isEmpty()?org.fisco.bcos.web3j.abi.datatypes.DynamicArray.empty("string[]"):new org.fisco.bcos.web3j.abi.datatypes.DynamicArray( org.fisco.bcos.web3j.abi.Utils.typeMap(key, org.fisco.bcos.web3j.abi.datatypes.Utf8String.class)), value.isEmpty()?org.fisco.bcos.web3j.abi.datatypes.DynamicArray.empty("string[]"):new org.fisco.bcos.web3j.abi.datatypes.DynamicArray( org.fisco.bcos.web3j.abi.Utils.typeMap(value, org.fisco.bcos.web3j.abi.datatypes.Utf8String.class)), updated.isEmpty()?org.fisco.bcos.web3j.abi.datatypes.DynamicArray.empty("uint256[]"):new org.fisco.bcos.web3j.abi.datatypes.DynamicArray( org.fisco.bcos.web3j.abi.Utils.typeMap(updated, org.fisco.bcos.web3j.abi.datatypes.generated.Uint256.class))), Collections.>emptyList()); return createTransactionSeq(function); } public Tuple5, List, List, List, List> getSetAttributeInput(TransactionReceipt transactionReceipt) { String data = transactionReceipt.getInput().substring(10); final Function function = new Function(FUNC_SETATTRIBUTE, Arrays.asList(), Arrays.>asList(new TypeReference>() {}, new TypeReference>() {}, new TypeReference>() {}, new TypeReference>() {}, new TypeReference>() {})); List results = FunctionReturnDecoder.decode(data, function.getOutputParameters());; return new Tuple5, List, List, List, List>( convertToNative((List) results.get(0).getValue()), convertToNative((List

) results.get(1).getValue()), convertToNative((List) results.get(2).getValue()), convertToNative((List) results.get(3).getValue()), convertToNative((List) results.get(4).getValue()) ); } public RemoteCall createEvidenceWithExtraKey(List hash, List signer, List sigs, List logs, List updated, List extraKey) { final Function function = new Function( FUNC_CREATEEVIDENCEWITHEXTRAKEY, Arrays.asList(hash.isEmpty()?org.fisco.bcos.web3j.abi.datatypes.DynamicArray.empty("bytes32[]"):new org.fisco.bcos.web3j.abi.datatypes.DynamicArray( org.fisco.bcos.web3j.abi.Utils.typeMap(hash, org.fisco.bcos.web3j.abi.datatypes.generated.Bytes32.class)), signer.isEmpty()?org.fisco.bcos.web3j.abi.datatypes.DynamicArray.empty("address[]"):new org.fisco.bcos.web3j.abi.datatypes.DynamicArray( org.fisco.bcos.web3j.abi.Utils.typeMap(signer, org.fisco.bcos.web3j.abi.datatypes.Address.class)), sigs.isEmpty()?org.fisco.bcos.web3j.abi.datatypes.DynamicArray.empty("string[]"):new org.fisco.bcos.web3j.abi.datatypes.DynamicArray( org.fisco.bcos.web3j.abi.Utils.typeMap(sigs, org.fisco.bcos.web3j.abi.datatypes.Utf8String.class)), logs.isEmpty()?org.fisco.bcos.web3j.abi.datatypes.DynamicArray.empty("string[]"):new org.fisco.bcos.web3j.abi.datatypes.DynamicArray( org.fisco.bcos.web3j.abi.Utils.typeMap(logs, org.fisco.bcos.web3j.abi.datatypes.Utf8String.class)), updated.isEmpty()?org.fisco.bcos.web3j.abi.datatypes.DynamicArray.empty("uint256[]"):new org.fisco.bcos.web3j.abi.datatypes.DynamicArray( org.fisco.bcos.web3j.abi.Utils.typeMap(updated, org.fisco.bcos.web3j.abi.datatypes.generated.Uint256.class)), extraKey.isEmpty()?org.fisco.bcos.web3j.abi.datatypes.DynamicArray.empty("string[]"):new org.fisco.bcos.web3j.abi.datatypes.DynamicArray( org.fisco.bcos.web3j.abi.Utils.typeMap(extraKey, org.fisco.bcos.web3j.abi.datatypes.Utf8String.class))), Collections.>emptyList()); return executeRemoteCallTransaction(function); } public void createEvidenceWithExtraKey(List hash, List signer, List sigs, List logs, List updated, List extraKey, TransactionSucCallback callback) { final Function function = new Function( FUNC_CREATEEVIDENCEWITHEXTRAKEY, Arrays.asList(hash.isEmpty()?org.fisco.bcos.web3j.abi.datatypes.DynamicArray.empty("bytes32[]"):new org.fisco.bcos.web3j.abi.datatypes.DynamicArray( org.fisco.bcos.web3j.abi.Utils.typeMap(hash, org.fisco.bcos.web3j.abi.datatypes.generated.Bytes32.class)), signer.isEmpty()?org.fisco.bcos.web3j.abi.datatypes.DynamicArray.empty("address[]"):new org.fisco.bcos.web3j.abi.datatypes.DynamicArray( org.fisco.bcos.web3j.abi.Utils.typeMap(signer, org.fisco.bcos.web3j.abi.datatypes.Address.class)), sigs.isEmpty()?org.fisco.bcos.web3j.abi.datatypes.DynamicArray.empty("string[]"):new org.fisco.bcos.web3j.abi.datatypes.DynamicArray( org.fisco.bcos.web3j.abi.Utils.typeMap(sigs, org.fisco.bcos.web3j.abi.datatypes.Utf8String.class)), logs.isEmpty()?org.fisco.bcos.web3j.abi.datatypes.DynamicArray.empty("string[]"):new org.fisco.bcos.web3j.abi.datatypes.DynamicArray( org.fisco.bcos.web3j.abi.Utils.typeMap(logs, org.fisco.bcos.web3j.abi.datatypes.Utf8String.class)), updated.isEmpty()?org.fisco.bcos.web3j.abi.datatypes.DynamicArray.empty("uint256[]"):new org.fisco.bcos.web3j.abi.datatypes.DynamicArray( org.fisco.bcos.web3j.abi.Utils.typeMap(updated, org.fisco.bcos.web3j.abi.datatypes.generated.Uint256.class)), extraKey.isEmpty()?org.fisco.bcos.web3j.abi.datatypes.DynamicArray.empty("string[]"):new org.fisco.bcos.web3j.abi.datatypes.DynamicArray( org.fisco.bcos.web3j.abi.Utils.typeMap(extraKey, org.fisco.bcos.web3j.abi.datatypes.Utf8String.class))), Collections.>emptyList()); asyncExecuteTransaction(function, callback); } public String createEvidenceWithExtraKeySeq(List hash, List signer, List sigs, List logs, List updated, List extraKey) { final Function function = new Function( FUNC_CREATEEVIDENCEWITHEXTRAKEY, Arrays.asList(hash.isEmpty()?org.fisco.bcos.web3j.abi.datatypes.DynamicArray.empty("bytes32[]"):new org.fisco.bcos.web3j.abi.datatypes.DynamicArray( org.fisco.bcos.web3j.abi.Utils.typeMap(hash, org.fisco.bcos.web3j.abi.datatypes.generated.Bytes32.class)), signer.isEmpty()?org.fisco.bcos.web3j.abi.datatypes.DynamicArray.empty("address[]"):new org.fisco.bcos.web3j.abi.datatypes.DynamicArray( org.fisco.bcos.web3j.abi.Utils.typeMap(signer, org.fisco.bcos.web3j.abi.datatypes.Address.class)), sigs.isEmpty()?org.fisco.bcos.web3j.abi.datatypes.DynamicArray.empty("string[]"):new org.fisco.bcos.web3j.abi.datatypes.DynamicArray( org.fisco.bcos.web3j.abi.Utils.typeMap(sigs, org.fisco.bcos.web3j.abi.datatypes.Utf8String.class)), logs.isEmpty()?org.fisco.bcos.web3j.abi.datatypes.DynamicArray.empty("string[]"):new org.fisco.bcos.web3j.abi.datatypes.DynamicArray( org.fisco.bcos.web3j.abi.Utils.typeMap(logs, org.fisco.bcos.web3j.abi.datatypes.Utf8String.class)), updated.isEmpty()?org.fisco.bcos.web3j.abi.datatypes.DynamicArray.empty("uint256[]"):new org.fisco.bcos.web3j.abi.datatypes.DynamicArray( org.fisco.bcos.web3j.abi.Utils.typeMap(updated, org.fisco.bcos.web3j.abi.datatypes.generated.Uint256.class)), extraKey.isEmpty()?org.fisco.bcos.web3j.abi.datatypes.DynamicArray.empty("string[]"):new org.fisco.bcos.web3j.abi.datatypes.DynamicArray( org.fisco.bcos.web3j.abi.Utils.typeMap(extraKey, org.fisco.bcos.web3j.abi.datatypes.Utf8String.class))), Collections.>emptyList()); return createTransactionSeq(function); } public Tuple6, List, List, List, List, List> getCreateEvidenceWithExtraKeyInput(TransactionReceipt transactionReceipt) { String data = transactionReceipt.getInput().substring(10); final Function function = new Function(FUNC_CREATEEVIDENCEWITHEXTRAKEY, Arrays.asList(), Arrays.>asList(new TypeReference>() {}, new TypeReference>() {}, new TypeReference>() {}, new TypeReference>() {}, new TypeReference>() {}, new TypeReference>() {})); List results = FunctionReturnDecoder.decode(data, function.getOutputParameters());; return new Tuple6, List, List, List, List, List>( convertToNative((List) results.get(0).getValue()), convertToNative((List
) results.get(1).getValue()), convertToNative((List) results.get(2).getValue()), convertToNative((List) results.get(3).getValue()), convertToNative((List) results.get(4).getValue()), convertToNative((List) results.get(5).getValue()) ); } public RemoteCall getHashByExtraKey(String extraKey) { final Function function = new Function(FUNC_GETHASHBYEXTRAKEY, Arrays.asList(new org.fisco.bcos.web3j.abi.datatypes.Utf8String(extraKey)), Arrays.>asList(new TypeReference() {})); return executeRemoteCallSingleValueReturn(function, byte[].class); } public RemoteCall isHashExist(byte[] hash) { final Function function = new Function(FUNC_ISHASHEXIST, Arrays.asList(new org.fisco.bcos.web3j.abi.datatypes.generated.Bytes32(hash)), Arrays.>asList(new TypeReference() {})); return executeRemoteCallSingleValueReturn(function, Boolean.class); } public RemoteCall createEvidence(List hash, List signer, List sigs, List logs, List updated) { final Function function = new Function( FUNC_CREATEEVIDENCE, Arrays.asList(hash.isEmpty()?org.fisco.bcos.web3j.abi.datatypes.DynamicArray.empty("bytes32[]"):new org.fisco.bcos.web3j.abi.datatypes.DynamicArray( org.fisco.bcos.web3j.abi.Utils.typeMap(hash, org.fisco.bcos.web3j.abi.datatypes.generated.Bytes32.class)), signer.isEmpty()?org.fisco.bcos.web3j.abi.datatypes.DynamicArray.empty("address[]"):new org.fisco.bcos.web3j.abi.datatypes.DynamicArray( org.fisco.bcos.web3j.abi.Utils.typeMap(signer, org.fisco.bcos.web3j.abi.datatypes.Address.class)), sigs.isEmpty()?org.fisco.bcos.web3j.abi.datatypes.DynamicArray.empty("string[]"):new org.fisco.bcos.web3j.abi.datatypes.DynamicArray( org.fisco.bcos.web3j.abi.Utils.typeMap(sigs, org.fisco.bcos.web3j.abi.datatypes.Utf8String.class)), logs.isEmpty()?org.fisco.bcos.web3j.abi.datatypes.DynamicArray.empty("string[]"):new org.fisco.bcos.web3j.abi.datatypes.DynamicArray( org.fisco.bcos.web3j.abi.Utils.typeMap(logs, org.fisco.bcos.web3j.abi.datatypes.Utf8String.class)), updated.isEmpty()?org.fisco.bcos.web3j.abi.datatypes.DynamicArray.empty("uint256[]"):new org.fisco.bcos.web3j.abi.datatypes.DynamicArray( org.fisco.bcos.web3j.abi.Utils.typeMap(updated, org.fisco.bcos.web3j.abi.datatypes.generated.Uint256.class))), Collections.>emptyList()); return executeRemoteCallTransaction(function); } public void createEvidence(List hash, List signer, List sigs, List logs, List updated, TransactionSucCallback callback) { final Function function = new Function( FUNC_CREATEEVIDENCE, Arrays.asList(hash.isEmpty()?org.fisco.bcos.web3j.abi.datatypes.DynamicArray.empty("bytes32[]"):new org.fisco.bcos.web3j.abi.datatypes.DynamicArray( org.fisco.bcos.web3j.abi.Utils.typeMap(hash, org.fisco.bcos.web3j.abi.datatypes.generated.Bytes32.class)), signer.isEmpty()?org.fisco.bcos.web3j.abi.datatypes.DynamicArray.empty("address[]"):new org.fisco.bcos.web3j.abi.datatypes.DynamicArray( org.fisco.bcos.web3j.abi.Utils.typeMap(signer, org.fisco.bcos.web3j.abi.datatypes.Address.class)), sigs.isEmpty()?org.fisco.bcos.web3j.abi.datatypes.DynamicArray.empty("string[]"):new org.fisco.bcos.web3j.abi.datatypes.DynamicArray( org.fisco.bcos.web3j.abi.Utils.typeMap(sigs, org.fisco.bcos.web3j.abi.datatypes.Utf8String.class)), logs.isEmpty()?org.fisco.bcos.web3j.abi.datatypes.DynamicArray.empty("string[]"):new org.fisco.bcos.web3j.abi.datatypes.DynamicArray( org.fisco.bcos.web3j.abi.Utils.typeMap(logs, org.fisco.bcos.web3j.abi.datatypes.Utf8String.class)), updated.isEmpty()?org.fisco.bcos.web3j.abi.datatypes.DynamicArray.empty("uint256[]"):new org.fisco.bcos.web3j.abi.datatypes.DynamicArray( org.fisco.bcos.web3j.abi.Utils.typeMap(updated, org.fisco.bcos.web3j.abi.datatypes.generated.Uint256.class))), Collections.>emptyList()); asyncExecuteTransaction(function, callback); } public String createEvidenceSeq(List hash, List signer, List sigs, List logs, List updated) { final Function function = new Function( FUNC_CREATEEVIDENCE, Arrays.asList(hash.isEmpty()?org.fisco.bcos.web3j.abi.datatypes.DynamicArray.empty("bytes32[]"):new org.fisco.bcos.web3j.abi.datatypes.DynamicArray( org.fisco.bcos.web3j.abi.Utils.typeMap(hash, org.fisco.bcos.web3j.abi.datatypes.generated.Bytes32.class)), signer.isEmpty()?org.fisco.bcos.web3j.abi.datatypes.DynamicArray.empty("address[]"):new org.fisco.bcos.web3j.abi.datatypes.DynamicArray( org.fisco.bcos.web3j.abi.Utils.typeMap(signer, org.fisco.bcos.web3j.abi.datatypes.Address.class)), sigs.isEmpty()?org.fisco.bcos.web3j.abi.datatypes.DynamicArray.empty("string[]"):new org.fisco.bcos.web3j.abi.datatypes.DynamicArray( org.fisco.bcos.web3j.abi.Utils.typeMap(sigs, org.fisco.bcos.web3j.abi.datatypes.Utf8String.class)), logs.isEmpty()?org.fisco.bcos.web3j.abi.datatypes.DynamicArray.empty("string[]"):new org.fisco.bcos.web3j.abi.datatypes.DynamicArray( org.fisco.bcos.web3j.abi.Utils.typeMap(logs, org.fisco.bcos.web3j.abi.datatypes.Utf8String.class)), updated.isEmpty()?org.fisco.bcos.web3j.abi.datatypes.DynamicArray.empty("uint256[]"):new org.fisco.bcos.web3j.abi.datatypes.DynamicArray( org.fisco.bcos.web3j.abi.Utils.typeMap(updated, org.fisco.bcos.web3j.abi.datatypes.generated.Uint256.class))), Collections.>emptyList()); return createTransactionSeq(function); } public Tuple5, List, List, List, List> getCreateEvidenceInput(TransactionReceipt transactionReceipt) { String data = transactionReceipt.getInput().substring(10); final Function function = new Function(FUNC_CREATEEVIDENCE, Arrays.asList(), Arrays.>asList(new TypeReference>() {}, new TypeReference>() {}, new TypeReference>() {}, new TypeReference>() {}, new TypeReference>() {})); List results = FunctionReturnDecoder.decode(data, function.getOutputParameters());; return new Tuple5, List, List, List, List>( convertToNative((List) results.get(0).getValue()), convertToNative((List
) results.get(1).getValue()), convertToNative((List) results.get(2).getValue()), convertToNative((List) results.get(3).getValue()), convertToNative((List) results.get(4).getValue()) ); } public RemoteCall getLatestRelatedBlock(byte[] hash) { final Function function = new Function(FUNC_GETLATESTRELATEDBLOCK, Arrays.asList(new org.fisco.bcos.web3j.abi.datatypes.generated.Bytes32(hash)), Arrays.>asList(new TypeReference() {})); return executeRemoteCallSingleValueReturn(function, BigInteger.class); } public List getEvidenceAttributeChangedEvents(TransactionReceipt transactionReceipt) { List valueList = extractEventParametersWithLog(EVIDENCEATTRIBUTECHANGED_EVENT, transactionReceipt); ArrayList responses = new ArrayList(valueList.size()); for (Contract.EventValuesWithLog eventValues : valueList) { EvidenceAttributeChangedEventResponse typedResponse = new EvidenceAttributeChangedEventResponse(); typedResponse.log = eventValues.getLog(); typedResponse.hash = (List) eventValues.getNonIndexedValues().get(0).getValue(); typedResponse.signer = (List) eventValues.getNonIndexedValues().get(1).getValue(); typedResponse.sigs = (List) eventValues.getNonIndexedValues().get(2).getValue(); typedResponse.logs = (List) eventValues.getNonIndexedValues().get(3).getValue(); typedResponse.updated = (List) eventValues.getNonIndexedValues().get(4).getValue(); typedResponse.previousBlock = (List) eventValues.getNonIndexedValues().get(5).getValue(); responses.add(typedResponse); } return responses; } public void registerEvidenceAttributeChangedEventLogFilter(String fromBlock, String toBlock, List otherTopcs, EventLogPushWithDecodeCallback callback) { String topic0 = EventEncoder.encode(EVIDENCEATTRIBUTECHANGED_EVENT); registerEventLogPushFilter(ABI,BINARY,topic0,fromBlock,toBlock,otherTopcs,callback); } public void registerEvidenceAttributeChangedEventLogFilter(EventLogPushWithDecodeCallback callback) { String topic0 = EventEncoder.encode(EVIDENCEATTRIBUTECHANGED_EVENT); registerEventLogPushFilter(ABI,BINARY,topic0,callback); } public List getEvidenceExtraAttributeChangedEvents(TransactionReceipt transactionReceipt) { List valueList = extractEventParametersWithLog(EVIDENCEEXTRAATTRIBUTECHANGED_EVENT, transactionReceipt); ArrayList responses = new ArrayList(valueList.size()); for (Contract.EventValuesWithLog eventValues : valueList) { EvidenceExtraAttributeChangedEventResponse typedResponse = new EvidenceExtraAttributeChangedEventResponse(); typedResponse.log = eventValues.getLog(); typedResponse.hash = (List) eventValues.getNonIndexedValues().get(0).getValue(); typedResponse.signer = (List) eventValues.getNonIndexedValues().get(1).getValue(); typedResponse.keys = (List) eventValues.getNonIndexedValues().get(2).getValue(); typedResponse.values = (List) eventValues.getNonIndexedValues().get(3).getValue(); typedResponse.updated = (List) eventValues.getNonIndexedValues().get(4).getValue(); typedResponse.previousBlock = (List) eventValues.getNonIndexedValues().get(5).getValue(); responses.add(typedResponse); } return responses; } public void registerEvidenceExtraAttributeChangedEventLogFilter(String fromBlock, String toBlock, List otherTopcs, EventLogPushWithDecodeCallback callback) { String topic0 = EventEncoder.encode(EVIDENCEEXTRAATTRIBUTECHANGED_EVENT); registerEventLogPushFilter(ABI,BINARY,topic0,fromBlock,toBlock,otherTopcs,callback); } public void registerEvidenceExtraAttributeChangedEventLogFilter(EventLogPushWithDecodeCallback callback) { String topic0 = EventEncoder.encode(EVIDENCEEXTRAATTRIBUTECHANGED_EVENT); registerEventLogPushFilter(ABI,BINARY,topic0,callback); } @Deprecated public static EvidenceContract load(String contractAddress, Web3j web3j, Credentials credentials, BigInteger gasPrice, BigInteger gasLimit) { return new EvidenceContract(contractAddress, web3j, credentials, gasPrice, gasLimit); } @Deprecated public static EvidenceContract load(String contractAddress, Web3j web3j, TransactionManager transactionManager, BigInteger gasPrice, BigInteger gasLimit) { return new EvidenceContract(contractAddress, web3j, transactionManager, gasPrice, gasLimit); } public static EvidenceContract load(String contractAddress, Web3j web3j, Credentials credentials, ContractGasProvider contractGasProvider) { return new EvidenceContract(contractAddress, web3j, credentials, contractGasProvider); } public static EvidenceContract load(String contractAddress, Web3j web3j, TransactionManager transactionManager, ContractGasProvider contractGasProvider) { return new EvidenceContract(contractAddress, web3j, transactionManager, contractGasProvider); } public static RemoteCall deploy(Web3j web3j, Credentials credentials, ContractGasProvider contractGasProvider) { return deployRemoteCall(EvidenceContract.class, web3j, credentials, contractGasProvider, BINARY, ""); } @Deprecated public static RemoteCall deploy(Web3j web3j, Credentials credentials, BigInteger gasPrice, BigInteger gasLimit) { return deployRemoteCall(EvidenceContract.class, web3j, credentials, gasPrice, gasLimit, BINARY, ""); } public static RemoteCall deploy(Web3j web3j, TransactionManager transactionManager, ContractGasProvider contractGasProvider) { return deployRemoteCall(EvidenceContract.class, web3j, transactionManager, contractGasProvider, BINARY, ""); } @Deprecated public static RemoteCall deploy(Web3j web3j, TransactionManager transactionManager, BigInteger gasPrice, BigInteger gasLimit) { return deployRemoteCall(EvidenceContract.class, web3j, transactionManager, gasPrice, gasLimit, BINARY, ""); } public static class EvidenceAttributeChangedEventResponse { public Log log; public List hash; public List signer; public List sigs; public List logs; public List updated; public List previousBlock; } public static class EvidenceExtraAttributeChangedEventResponse { public Log log; public List hash; public List signer; public List keys; public List values; public List updated; public List previousBlock; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy