Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
.gradle/
.idea/
build
build

## eclipse ##
.classpath
.project
.settings/
bin/
98 changes: 98 additions & 0 deletions src/main/java/org/fisco/bcos/sdk/model/SolidityConstructor.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
/*
* Copyright 2014-2020 [fisco-dev]
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*
*/
package org.fisco.bcos.sdk.model;

import java.util.List;

/**
* Constructor @Description: SolidityConstructor
*
* @author maojiayu
* @data Jul 17, 2020 2:36:50 PM
*/
public class SolidityConstructor {

private String contractName;
private List<Object> params;
private String binary;
private String abi;
private String data;

/**
* @param contractName
* @param params
* @param binary
* @param abi
* @param data
*/
public SolidityConstructor(
String contractName, List<Object> params, String binary, String abi, String data) {
this.contractName = contractName;
this.params = params;
this.binary = binary;
this.abi = abi;
this.data = data;
}

/** @return the contractName */
public String getContractName() {
return contractName;
}

/** @param contractName the contractName to set */
public void setContractName(String contractName) {
this.contractName = contractName;
}

/** @return the params */
public List<Object> getParams() {
return params;
}

/** @param params the params to set */
public void setParams(List<Object> params) {
this.params = params;
}

/** @return the binary */
public String getBinary() {
return binary;
}

/** @param binary the binary to set */
public void setBinary(String binary) {
this.binary = binary;
}

/** @return the abi */
public String getAbi() {
return abi;
}

/** @param abi the abi to set */
public void setAbi(String abi) {
this.abi = abi;
}

/** @return the data */
public String getData() {
return data;
}

/** @param data the data to set */
public void setData(String data) {
this.data = data;
}
}
23 changes: 23 additions & 0 deletions src/main/java/org/fisco/bcos/sdk/model/SolidityFunction.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/*
* Copyright 2014-2020 [fisco-dev]
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*
*/
package org.fisco.bcos.sdk.model;

/**
* Function @Description: SolidityFunction
*
* @author maojiayu
* @data Jul 17, 2020 2:36:36 PM
*/
public class SolidityFunction {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
/*
* Copyright 2014-2020 [fisco-dev]
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*
*/
package org.fisco.bcos.sdk.transaction.core.impl.executor;

import java.math.BigInteger;
import org.fisco.bcos.sdk.client.response.BcosTransaction;
import org.fisco.bcos.sdk.transaction.core.interf.executor.TransactionBuilderInterface;

public class TransactionBuilder implements TransactionBuilderInterface {

@Override
public BcosTransaction createTransaction(
BigInteger gasPrice,
BigInteger gasLimit,
String to,
String data,
BigInteger value,
BigInteger chainId,
BigInteger groupId,
String extraData) {
// TODO Auto-generated method stub
return null;
}

@Override
public BcosTransaction createTransaction(String to, String data, BigInteger groupId) {
// TODO Auto-generated method stub
return null;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
/*
* Copyright 2014-2020 [fisco-dev]
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*
*/
package org.fisco.bcos.sdk.transaction.core.impl.executor;

import java.util.List;
import java.util.Map;
import org.fisco.bcos.sdk.client.response.BcosTransaction;
import org.fisco.bcos.sdk.client.response.BcosTransactionReceipt;
import org.fisco.bcos.sdk.transaction.core.interf.executor.TransactionDecoderInterface;
import org.fisco.bcos.sdk.transaction.domain.EventLog;
import org.fisco.bcos.sdk.transaction.domain.EventResultEntity;
import org.fisco.bcos.sdk.transaction.domain.InputAndOutputResult;
import org.fisco.bcos.sdk.transaction.domain.TransactionResponse;

public class TransactionDecoder implements TransactionDecoderInterface {

@Override
public BcosTransaction decodeRlp(String hex) {
// TODO Auto-generated method stub
return null;
}

@Override
public String decodeCall(String abi, String output) {
// TODO Auto-generated method stub
return null;
}

@Override
public String decodeOutputReturnJson(String contractName, String input, String output) {
// TODO Auto-generated method stub
return null;
}

@Override
public InputAndOutputResult decodeOutputReturnObject(
String contractName, String input, String output) {
// TODO Auto-generated method stub
return null;
}

@Override
public String decodeEventReturnJson(
String contractName, BcosTransactionReceipt transactionReceipt) {
// TODO Auto-generated method stub
return null;
}

@Override
public Map<String, List<List<EventResultEntity>>> decodeEventReturnObject(
String contractName, BcosTransactionReceipt transactionReceipt) {
// TODO Auto-generated method stub
return null;
}

@Override
public String decodeEventReturnJson(String contractName, List<EventLog> logList) {
// TODO Auto-generated method stub
return null;
}

@Override
public Map<String, List<List<EventResultEntity>>> decodeEventReturnObject(
String contractName, List<EventLog> logList) {
// TODO Auto-generated method stub
return null;
}

@Override
public String decodeEventReturnJson(
String contractName, String eventName, List<EventLog> logList) {
// TODO Auto-generated method stub
return null;
}

@Override
public Map<String, List<List<EventResultEntity>>> decodeEventReturnObject(
String contractName, String eventName, List<EventLog> logList) {
// TODO Auto-generated method stub
return null;
}

@Override
public String decodeReceiptMessage(String input) {
// TODO Auto-generated method stub
return null;
}

@Override
public TransactionResponse decodeTransactionReceipt(
String contractName, BcosTransactionReceipt transactionReceipt) {
// TODO Auto-generated method stub
return null;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/*
* Copyright 2014-2020 [fisco-dev]
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*
*/
package org.fisco.bcos.sdk.transaction.core.impl.executor;

import org.fisco.bcos.sdk.client.response.BcosTransaction;
import org.fisco.bcos.sdk.crypto.signature.SignatureResult;
import org.fisco.bcos.sdk.transaction.core.interf.executor.TransactionEncoderInterface;

public class TransactionEncoder implements TransactionEncoderInterface {

@Override
public byte[] encode(BcosTransaction transaction, SignatureResult signature) {
// TODO Auto-generated method stub
return null;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
/*
* Copyright 2014-2020 [fisco-dev]
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*
*/
package org.fisco.bcos.sdk.transaction.core.impl.executor;

import java.util.concurrent.CompletableFuture;
import org.fisco.bcos.sdk.client.RespCallback;
import org.fisco.bcos.sdk.client.response.BcosTransactionReceipt;
import org.fisco.bcos.sdk.client.response.Call;
import org.fisco.bcos.sdk.transaction.core.interf.executor.TransactionPusherInterface;

public class TransactionPusher implements TransactionPusherInterface {

@Override
public void pushOnly(String signedTransaction) {
// TODO Auto-generated method stub

}

@Override
public BcosTransactionReceipt push(String signedTransaction) {
// TODO Auto-generated method stub
return null;
}

@Override
public <T> BcosTransactionReceipt push(String signedTransaction, RespCallback<T> callback) {
// TODO Auto-generated method stub
return null;
}

@Override
public CompletableFuture<BcosTransactionReceipt> pushAsync(String signedTransaction) {
// TODO Auto-generated method stub
return null;
}

@Override
public Call push(String from, String to, String encodedFunction) {
// TODO Auto-generated method stub
return null;
}
}
Loading