
cc.youchain.contracts.token.ERC20Interface Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of core Show documentation
Show all versions of core Show documentation
YOUChain Common library in JAVA.
The newest version!
package cc.youchain.contracts.token;
import java.math.BigInteger;
import java.util.List;
import io.reactivex.Flowable;
import cc.youchain.protocol.core.DefaultBlockParameter;
import cc.youchain.protocol.core.RemoteCall;
import cc.youchain.protocol.core.methods.response.TransactionReceipt;
/**
* The YOUChain ERC-20 token standard.
*
* Implementations should provide the concrete ApprovalEventResponse
and
* TransferEventResponse
from their token as the generic types "R" amd "T".
*
*/
@SuppressWarnings("unused")
public interface ERC20Interface extends ERC20BasicInterface {
RemoteCall allowance(String owner, String spender);
RemoteCall approve(String spender, BigInteger value);
RemoteCall transferFrom(String from, String to, BigInteger value);
List getApprovalEvents(TransactionReceipt transactionReceipt);
Flowable approvalEventFlowable(DefaultBlockParameter startBlock,
DefaultBlockParameter endBlock);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy