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

server.src.ContractsApiImpl.mustache Maven / Gradle / Ivy

There is a newer version: 4.8.4
Show newest version
package {{packageName}}.server

import {{packageName}}.core.{{projectName}}Api
import org.web3j.openapi.server.config.ContractAddresses
import org.glassfish.jersey.server.ExtendedUriInfo
import org.web3j.crypto.Credentials
import org.web3j.protocol.Web3j
import org.web3j.tx.RawTransactionManager
import org.web3j.tx.gas.ContractGasProvider
import javax.annotation.Generated
import javax.inject.Inject
import javax.ws.rs.core.Context

@Generated
class {{projectName}}ApiImpl @Inject constructor(
    web3j: Web3j,
    credentials: Credentials,
    gasProvider: ContractGasProvider,
    contractAddresses: ContractAddresses,
    @Context uriInfo: ExtendedUriInfo
) : {{projectName}}Api {

    override val contracts = {{projectName}}ResourceImpl(
        web3j, RawTransactionManager(web3j, credentials), gasProvider, contractAddresses, uriInfo
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy