Java Code Examples for org.web3j.tx.TransactionManager
The following examples show how to use
org.web3j.tx.TransactionManager.
These examples are extracted from open source projects.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source Project: besu Author: hyperledger File: OnChainPrivacyGroupManagementProxy.java License: Apache License 2.0 | 6 votes |
public static RemoteCall<OnChainPrivacyGroupManagementProxy> deploy( Web3j web3j, TransactionManager transactionManager, ContractGasProvider contractGasProvider, String _implementation) { String encodedConstructor = FunctionEncoder.encodeConstructor( Arrays.<Type>asList(new org.web3j.abi.datatypes.Address(160, _implementation))); return deployRemoteCall( OnChainPrivacyGroupManagementProxy.class, web3j, transactionManager, contractGasProvider, BINARY, encodedConstructor); }
Example #2
Source Project: besu Author: hyperledger File: OnChainPrivacyGroupManagementProxy.java License: Apache License 2.0 | 6 votes |
@Deprecated public static RemoteCall<OnChainPrivacyGroupManagementProxy> deploy( Web3j web3j, TransactionManager transactionManager, BigInteger gasPrice, BigInteger gasLimit, String _implementation) { String encodedConstructor = FunctionEncoder.encodeConstructor( Arrays.<Type>asList(new org.web3j.abi.datatypes.Address(160, _implementation))); return deployRemoteCall( OnChainPrivacyGroupManagementProxy.class, web3j, transactionManager, gasPrice, gasLimit, BINARY, encodedConstructor); }
Example #3
Source Project: etherscan-explorer Author: bing-chou File: SolidityFunctionWrapper.java License: GNU General Public License v3.0 | 6 votes |
void generateJavaFiles( String contractName, String bin, List<AbiDefinition> abi, String destinationDir, String basePackageName, Map<String, String> addresses) throws IOException, ClassNotFoundException { String className = Strings.capitaliseFirstLetter(contractName); TypeSpec.Builder classBuilder = createClassBuilder(className, bin); classBuilder.addMethod(buildConstructor(Credentials.class, CREDENTIALS)); classBuilder.addMethod(buildConstructor(TransactionManager.class, TRANSACTION_MANAGER)); classBuilder.addMethods( buildFunctionDefinitions(className, classBuilder, abi)); classBuilder.addMethod(buildLoad(className, Credentials.class, CREDENTIALS)); classBuilder.addMethod(buildLoad(className, TransactionManager.class, TRANSACTION_MANAGER)); addAddressesSupport(classBuilder, addresses); write(basePackageName, classBuilder.build(), destinationDir); }
Example #4
Source Project: ethsigner Author: PegaSysEng File: SimpleStorage.java License: Apache License 2.0 | 5 votes |
@Deprecated protected SimpleStorage( String contractAddress, Web3j web3j, TransactionManager transactionManager, BigInteger gasPrice, BigInteger gasLimit) { super(BINARY, contractAddress, web3j, transactionManager, gasPrice, gasLimit); }
Example #5
Source Project: ethsigner Author: PegaSysEng File: SimpleStorage.java License: Apache License 2.0 | 5 votes |
protected SimpleStorage( String contractAddress, Web3j web3j, TransactionManager transactionManager, ContractGasProvider contractGasProvider) { super(BINARY, contractAddress, web3j, transactionManager, contractGasProvider); }
Example #6
Source Project: ethsigner Author: PegaSysEng File: SimpleStorage.java License: Apache License 2.0 | 5 votes |
@Deprecated public static SimpleStorage load( String contractAddress, Web3j web3j, TransactionManager transactionManager, BigInteger gasPrice, BigInteger gasLimit) { return new SimpleStorage(contractAddress, web3j, transactionManager, gasPrice, gasLimit); }
Example #7
Source Project: ethsigner Author: PegaSysEng File: SimpleStorage.java License: Apache License 2.0 | 5 votes |
@Deprecated public static RemoteCall<SimpleStorage> deploy( Web3j web3j, TransactionManager transactionManager, BigInteger gasPrice, BigInteger gasLimit) { return deployRemoteCall( SimpleStorage.class, web3j, transactionManager, gasPrice, gasLimit, BINARY, ""); }
Example #8
Source Project: besu Author: hyperledger File: DefaultOnChainPrivacyGroupManagementContract.java License: Apache License 2.0 | 5 votes |
@Deprecated protected DefaultOnChainPrivacyGroupManagementContract( String contractAddress, Web3j web3j, TransactionManager transactionManager, BigInteger gasPrice, BigInteger gasLimit) { super(BINARY, contractAddress, web3j, transactionManager, gasPrice, gasLimit); }
Example #9
Source Project: besu Author: hyperledger File: DefaultOnChainPrivacyGroupManagementContract.java License: Apache License 2.0 | 5 votes |
protected DefaultOnChainPrivacyGroupManagementContract( String contractAddress, Web3j web3j, TransactionManager transactionManager, ContractGasProvider contractGasProvider) { super(BINARY, contractAddress, web3j, transactionManager, contractGasProvider); }
Example #10
Source Project: besu Author: hyperledger File: DefaultOnChainPrivacyGroupManagementContract.java License: Apache License 2.0 | 5 votes |
@Deprecated public static DefaultOnChainPrivacyGroupManagementContract load( String contractAddress, Web3j web3j, TransactionManager transactionManager, BigInteger gasPrice, BigInteger gasLimit) { return new DefaultOnChainPrivacyGroupManagementContract( contractAddress, web3j, transactionManager, gasPrice, gasLimit); }
Example #11
Source Project: besu Author: hyperledger File: DefaultOnChainPrivacyGroupManagementContract.java License: Apache License 2.0 | 5 votes |
@Deprecated public static RemoteCall<DefaultOnChainPrivacyGroupManagementContract> deploy( Web3j web3j, TransactionManager transactionManager, BigInteger gasPrice, BigInteger gasLimit) { return deployRemoteCall( DefaultOnChainPrivacyGroupManagementContract.class, web3j, transactionManager, gasPrice, gasLimit, BINARY, ""); }
Example #12
Source Project: besu Author: hyperledger File: OnChainPrivacyGroupManagementInterface.java License: Apache License 2.0 | 5 votes |
@Deprecated protected OnChainPrivacyGroupManagementInterface( String contractAddress, Web3j web3j, TransactionManager transactionManager, BigInteger gasPrice, BigInteger gasLimit) { super(BINARY, contractAddress, web3j, transactionManager, gasPrice, gasLimit); }
Example #13
Source Project: besu Author: hyperledger File: OnChainPrivacyGroupManagementInterface.java License: Apache License 2.0 | 5 votes |
protected OnChainPrivacyGroupManagementInterface( String contractAddress, Web3j web3j, TransactionManager transactionManager, ContractGasProvider contractGasProvider) { super(BINARY, contractAddress, web3j, transactionManager, contractGasProvider); }
Example #14
Source Project: besu Author: hyperledger File: OnChainPrivacyGroupManagementInterface.java License: Apache License 2.0 | 5 votes |
@Deprecated public static OnChainPrivacyGroupManagementInterface load( String contractAddress, Web3j web3j, TransactionManager transactionManager, BigInteger gasPrice, BigInteger gasLimit) { return new OnChainPrivacyGroupManagementInterface( contractAddress, web3j, transactionManager, gasPrice, gasLimit); }
Example #15
Source Project: besu Author: hyperledger File: OnChainPrivacyGroupManagementInterface.java License: Apache License 2.0 | 5 votes |
public static RemoteCall<OnChainPrivacyGroupManagementInterface> deploy( Web3j web3j, TransactionManager transactionManager, ContractGasProvider contractGasProvider) { return deployRemoteCall( OnChainPrivacyGroupManagementInterface.class, web3j, transactionManager, contractGasProvider, BINARY, ""); }
Example #16
Source Project: besu Author: hyperledger File: OnChainPrivacyGroupManagementInterface.java License: Apache License 2.0 | 5 votes |
@Deprecated public static RemoteCall<OnChainPrivacyGroupManagementInterface> deploy( Web3j web3j, TransactionManager transactionManager, BigInteger gasPrice, BigInteger gasLimit) { return deployRemoteCall( OnChainPrivacyGroupManagementInterface.class, web3j, transactionManager, gasPrice, gasLimit, BINARY, ""); }
Example #17
Source Project: besu Author: hyperledger File: OnChainPrivacyGroupManagementProxy.java License: Apache License 2.0 | 5 votes |
protected OnChainPrivacyGroupManagementProxy( String contractAddress, Web3j web3j, TransactionManager transactionManager, ContractGasProvider contractGasProvider) { super(BINARY, contractAddress, web3j, transactionManager, contractGasProvider); }
Example #18
Source Project: besu Author: hyperledger File: OnChainPrivacyGroupManagementProxy.java License: Apache License 2.0 | 5 votes |
public static OnChainPrivacyGroupManagementProxy load( String contractAddress, Web3j web3j, TransactionManager transactionManager, ContractGasProvider contractGasProvider) { return new OnChainPrivacyGroupManagementProxy( contractAddress, web3j, transactionManager, contractGasProvider); }
Example #19
Source Project: besu Author: hyperledger File: DeployPrivateSmartContractWithPrivacyGroupIdTransaction.java License: Apache License 2.0 | 5 votes |
@Override public T execute(final NodeRequests node) { final PrivateTransactionManager privateTransactionManager = new BesuPrivateTransactionManager( node.privacy().getBesuClient(), GAS_PROVIDER, senderCredentials, chainId, privateFrom, privacyGroupId); try { final Method method = clazz.getMethod( "deploy", Web3j.class, TransactionManager.class, ContractGasProvider.class); final Object invoked = method.invoke( METHOD_IS_STATIC, node.privacy().getBesuClient(), privateTransactionManager, GAS_PROVIDER); return cast(invoked).send(); } catch (final Exception e) { throw new RuntimeException(e); } }
Example #20
Source Project: besu Author: hyperledger File: LoadPrivateSmartContractTransaction.java License: Apache License 2.0 | 5 votes |
@SuppressWarnings("unchecked") @Override public T execute(final NodeRequests node) { final PrivateTransactionManager privateTransactionManager = new LegacyPrivateTransactionManager( node.privacy().getBesuClient(), GAS_PROVIDER, senderCredentials, chainId, privateFrom, privateFor); try { final Method method = clazz.getMethod( "load", String.class, Web3j.class, TransactionManager.class, ContractGasProvider.class); return (T) method.invoke( METHOD_IS_STATIC, contractAddress, node.privacy().getBesuClient(), privateTransactionManager, GAS_PROVIDER); } catch (final Exception e) { throw new RuntimeException(e); } }
Example #21
Source Project: teku Author: PegaSysEng File: DepositContract.java License: Apache License 2.0 | 5 votes |
@Deprecated public static RemoteCall<DepositContract> deploy( Web3j web3j, TransactionManager transactionManager, BigInteger gasPrice, BigInteger gasLimit) { return deployRemoteCall( DepositContract.class, web3j, transactionManager, gasPrice, gasLimit, BINARY, ""); }
Example #22
Source Project: besu Author: hyperledger File: EventEmitter.java License: Apache License 2.0 | 5 votes |
protected EventEmitter( final String contractAddress, final Web3j web3j, final TransactionManager transactionManager, final ContractGasProvider contractGasProvider) { super(BINARY, contractAddress, web3j, transactionManager, contractGasProvider); }
Example #23
Source Project: besu Author: hyperledger File: EventEmitter.java License: Apache License 2.0 | 5 votes |
@Deprecated public static EventEmitter load( final String contractAddress, final Web3j web3j, final TransactionManager transactionManager, final BigInteger gasPrice, final BigInteger gasLimit) { return new EventEmitter(contractAddress, web3j, transactionManager, gasPrice, gasLimit); }
Example #24
Source Project: besu Author: hyperledger File: EventEmitter.java License: Apache License 2.0 | 5 votes |
public static EventEmitter load( final String contractAddress, final Web3j web3j, final TransactionManager transactionManager, final ContractGasProvider contractGasProvider) { return new EventEmitter(contractAddress, web3j, transactionManager, contractGasProvider); }
Example #25
Source Project: besu Author: hyperledger File: EventEmitter.java License: Apache License 2.0 | 5 votes |
public static RemoteCall<EventEmitter> deploy( final Web3j web3j, final TransactionManager transactionManager, final ContractGasProvider contractGasProvider) { return deployRemoteCall( EventEmitter.class, web3j, transactionManager, contractGasProvider, BINARY, ""); }
Example #26
Source Project: besu Author: hyperledger File: EventEmitter.java License: Apache License 2.0 | 5 votes |
@Deprecated public static RemoteCall<EventEmitter> deploy( final Web3j web3j, final TransactionManager transactionManager, final BigInteger gasPrice, final BigInteger gasLimit) { return deployRemoteCall( EventEmitter.class, web3j, transactionManager, gasPrice, gasLimit, BINARY, ""); }
Example #27
Source Project: besu Author: hyperledger File: RevertReason.java License: Apache License 2.0 | 5 votes |
protected RevertReason( final String contractAddress, final Web3j web3j, final TransactionManager transactionManager, final ContractGasProvider contractGasProvider) { super(BINARY, contractAddress, web3j, transactionManager, contractGasProvider); }
Example #28
Source Project: besu Author: hyperledger File: RevertReason.java License: Apache License 2.0 | 5 votes |
@Deprecated public static RevertReason load( final String contractAddress, final Web3j web3j, final TransactionManager transactionManager, final BigInteger gasPrice, final BigInteger gasLimit) { return new RevertReason(contractAddress, web3j, transactionManager, gasPrice, gasLimit); }
Example #29
Source Project: teku Author: PegaSysEng File: DepositContract.java License: Apache License 2.0 | 5 votes |
protected DepositContract( String contractAddress, Web3j web3j, TransactionManager transactionManager, ContractGasProvider contractGasProvider) { super(BINARY, contractAddress, web3j, transactionManager, contractGasProvider); }
Example #30
Source Project: besu Author: hyperledger File: SimpleStorage.java License: Apache License 2.0 | 5 votes |
protected SimpleStorage( final String contractAddress, final Web3j web3j, final TransactionManager transactionManager, final ContractGasProvider contractGasProvider) { super(BINARY, contractAddress, web3j, transactionManager, contractGasProvider); }