-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into nullpointer0x00/1660-add-genesis-export-init…
…-marker-deny-send
- Loading branch information
Showing
13 changed files
with
425 additions
and
40 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,3 +25,4 @@ Checkout `./bindings` for all supported language bindings. | |
```bash | ||
./gradlew clean :kotlin:jar | ||
``` | ||
|
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
13 changes: 11 additions & 2 deletions
13
...gs/bindings/kotlin/src/main/kotlin/io/provenance/client/protobuf/extensions/Governance.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,12 +1,21 @@ | ||
package io.provenance.client.protobuf.extensions | ||
|
||
import cosmos.gov.v1beta1.Gov | ||
import cosmos.gov.v1beta1.QueryGrpc.QueryBlockingStub as Governance | ||
import cosmos.gov.v1beta1.QueryGrpc.QueryBlockingStub as BlockingGovernance | ||
import cosmos.gov.v1beta1.QueryGrpcKt.QueryCoroutineStub as CoroutineGovernance | ||
|
||
/** | ||
* Get a coin balance in the account at the supplied address. | ||
* | ||
* @return A list of [Gov.Proposal] | ||
*/ | ||
fun Governance.getAllProposals(): List<Gov.Proposal> = | ||
fun BlockingGovernance.getAllProposals(): List<Gov.Proposal> = | ||
proposals(cosmos.gov.v1beta1.QueryOuterClass.QueryProposalsRequest.getDefaultInstance()).proposalsList | ||
|
||
/** | ||
* Get a coin balance in the account at the supplied address. | ||
* | ||
* @return A list of [Gov.Proposal] | ||
*/ | ||
suspend fun CoroutineGovernance.getAllProposals(): List<Gov.Proposal> = | ||
proposals(cosmos.gov.v1beta1.QueryOuterClass.QueryProposalsRequest.getDefaultInstance()).proposalsList |
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.