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

cc.youchain.tx.gas.StaticGasProvider Maven / Gradle / Ivy

There is a newer version: 1.1.5
Show newest version
package cc.youchain.tx.gas;

import java.math.BigInteger;

public class StaticGasProvider implements ContractGasProvider {
    private BigInteger gasPrice;
    private BigInteger gasLimit;

    public StaticGasProvider(BigInteger gasPrice, BigInteger gasLimit) {
        this.gasPrice = gasPrice;
        this.gasLimit = gasLimit;
    }

    @Override
    public BigInteger getGasPrice(String contractFunc) {
        return gasPrice;
    }

    @Override
    public BigInteger getGasPrice() {
        return gasPrice;
    }

    @Override
    public BigInteger getGasLimit(String contractFunc) {
        return gasLimit;
    }

    @Override
    public BigInteger getGasLimit() {
        return gasLimit;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy