Skip to content

Instantly share code, notes, and snippets.

@talfco
Created July 26, 2019 10:37
Show Gist options
  • Save talfco/12c9729681c347d07829f001db43aeb2 to your computer and use it in GitHub Desktop.
Save talfco/12c9729681c347d07829f001db43aeb2 to your computer and use it in GitHub Desktop.
package net.cloudburo.kyber.tutorial.protocol;
import net.cloudburo.kyber.tutorial.methods.request.GasPriceRange;
import net.cloudburo.kyber.tutorial.methods.request.SingleRate;
import net.cloudburo.kyber.tutorial.methods.response.*;
import org.web3j.protocol.core.Request;
import java.math.BigInteger;
public interface KyberAPI {
public Request<?, Currencies> currencies();
public Request<?, BuyRate> buyRate(String id, String qty,boolean onlyOfficialReserve);
public Request<?, SellRate> sellRate(String id, String qty, boolean onlyOfficialReserve);
public Request<?, TradeData> tradeData(String userAddress, SingleRate rate, GasPriceRange gasPrice);
public Request<?, TradeData> tradeData(String userAddress, SingleRate rate, GasPriceRange gasPrice, BigInteger nonce);
public Request<?, TradeData> tradeData(String userAddress, String srcId, String dstId, Float srcQty,Float minDstQty,
GasPriceRange gasPrice, String walletId, boolean onlyOfficialReserve);
public Request<?,EnabledTokensForWallet> enabledTokensForWallet(String userAddress);
public Request<?, EnableTokenTransfer> enableTokenTransfer(String userAddress, String id, GasPriceRange gasPrice);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment