-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add rpcUrl to EthereumRepository; change chainId type to BigInteger (#53
) * ChianId is now BigInteger in pm.gnosis.model.Transaction * Multiple networks support: Add modifiable rpcUrl property to ethereum repo * Adjust compileSdk & targetSdk versions
- Loading branch information
Dirk Jäckel
authored
Aug 2, 2021
1 parent
1eadce6
commit 98799b9
Showing
19 changed files
with
80 additions
and
62 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
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
23 changes: 11 additions & 12 deletions
23
...reum-rpc-retrofit/src/main/java/pm/gnosis/ethereum/rpc/retrofit/RetrofitEthereumRpcApi.kt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,23 @@ | ||
package pm.gnosis.ethereum.rpc.retrofit | ||
|
||
import pm.gnosis.ethereum.rpc.models.* | ||
import retrofit2.Call | ||
import retrofit2.Response | ||
import retrofit2.http.Body | ||
import retrofit2.http.POST | ||
import retrofit2.http.Url | ||
|
||
interface RetrofitEthereumRpcApi { | ||
@POST(".") | ||
suspend fun receipt(@Body jsonRpcRequest: JsonRpcRequest): JsonRpcTransactionReceiptResult | ||
@POST | ||
suspend fun receipt(@Url rpcUrl: String, @Body jsonRpcRequest: JsonRpcRequest): JsonRpcTransactionReceiptResult | ||
|
||
@POST(".") | ||
suspend fun block(@Body jsonRpcRequest: JsonRpcRequest): JsonRpcBlockResult | ||
@POST | ||
suspend fun block(@Url rpcUrl: String, @Body jsonRpcRequest: JsonRpcRequest): JsonRpcBlockResult | ||
|
||
@POST(".") | ||
suspend fun transaction(@Body jsonRpcRequest: JsonRpcRequest): JsonRpcTransactionResult | ||
@POST | ||
suspend fun transaction(@Url rpcUrl: String, @Body jsonRpcRequest: JsonRpcRequest): JsonRpcTransactionResult | ||
|
||
@POST(".") | ||
suspend fun post(@Body jsonRpcRequest: JsonRpcRequest): JsonRpcResult | ||
@POST | ||
suspend fun post(@Url rpcUrl: String, @Body jsonRpcRequest: JsonRpcRequest): JsonRpcResult | ||
|
||
@POST(".") | ||
suspend fun post(@Body jsonRpcRequest: Collection<JsonRpcRequest>): Collection<JsonRpcResult> | ||
@POST | ||
suspend fun post(@Url rpcUrl: String, @Body jsonRpcRequest: Collection<JsonRpcRequest>): Collection<JsonRpcResult> | ||
} |
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
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
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
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
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
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
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
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
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
Oops, something went wrong.