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
func toBlockNumArg(number *big.Int) string { | |
if number == nil { | |
return "latest" | |
} | |
return hexutil.EncodeBig(number) | |
} |
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
const ( | |
PendingBlockNumber = BlockNumber(-2) | |
LatestBlockNumber = BlockNumber(-1) | |
EarliestBlockNumber = BlockNumber(0) | |
) |
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
import java.util.concurrent.atomic.AtomicBoolean; | |
import io.reactivex.Observable; | |
import io.reactivex.ObservableTransformer; | |
import io.reactivex.functions.Function; | |
class ExhaustMapTransformer<Upstream, Downstream> implements ObservableTransformer<Upstream, Downstream> { | |
private final AtomicBoolean workInProgress = new AtomicBoolean(false); | |
private final Function<Upstream, Observable<Downstream>> mapper; |
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 com.siplay.android_siplay.helper; | |
import android.support.annotation.CallSuper; | |
import retrofit2.Response; | |
/** | |
* Created by Agustin Tomas Larghi on 20/04/2017. | |
* Email: agustin.tomas.larghi@gmail.com | |
*/ |