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

cc.youchain.contracts.token.ERC20Interface Maven / Gradle / Ivy

There is a newer version: 1.1.5
Show 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 - 2024 Weber Informatics LLC | Privacy Policy