| /******************************************************************************* |
| * Copyright (c) 2020 RBEI and others. |
| * |
| * This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v. 2.0 |
| * which accompanies this distribution, and is available at |
| * https://www.eclipse.org/legal/epl-2.0/ |
| * |
| * SPDX-License-Identifier: EPL-2.0 |
| * |
| * Contributors: |
| * Adhith Gopal - Initial API and Implementation |
| *******************************************************************************/ |
| package org.eclipse.blockchain.core.model; |
| |
| import org.web3j.evm.Configuration; |
| import org.web3j.protocol.Web3j; |
| import org.web3j.protocol.admin.Admin; |
| |
| /** |
| * Embedded EVM container |
| */ |
| public class EmbeddedEVMObject { |
| |
| private Configuration config; |
| private Web3j web3j; |
| private Admin admin; |
| |
| /** |
| * @param config |
| * - The evm configuration |
| * @param web3j |
| * - The web3j instance |
| */ |
| public EmbeddedEVMObject(final Configuration config, final Web3j web3j, |
| final Admin admin) { |
| this.config = config; |
| this.web3j = web3j; |
| this.admin = admin; |
| } |
| |
| /** |
| * @return the admin |
| */ |
| public Admin getAdmin() { |
| return this.admin; |
| } |
| |
| /** |
| * @param admin |
| * the admin to set |
| */ |
| public void setAdmin(final Admin admin) { |
| this.admin = admin; |
| } |
| |
| /** |
| * @return the config |
| */ |
| public Configuration getConfig() { |
| return this.config; |
| } |
| |
| /** |
| * @param config |
| * the config to set |
| */ |
| public void setConfig(final Configuration config) { |
| this.config = config; |
| } |
| |
| /** |
| * @return the web3j |
| */ |
| public Web3j getWeb3j() { |
| return this.web3j; |
| } |
| |
| /** |
| * @param web3j |
| * the web3j to set |
| */ |
| public void setWeb3j(final Web3j web3j) { |
| this.web3j = web3j; |
| } |
| |
| } |