Created
July 26, 2019 10:37
-
-
Save talfco/12c9729681c347d07829f001db43aeb2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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