Commit Graph

101 Commits

Author SHA1 Message Date
Alex Peters d4fadc528f
Handle wrapped errors 2022-01-18 13:55:36 +01:00
Orkun Külçe e7f41f2d17
Implement PinCode and UnpinCode proposal client handlers (#707)
* Implement PinCodes proposal cli

* Implement UnpinCodes proposal cli

* Fix descriptions

* Apply suggestions from code review

Co-authored-by: Alexander Peters <alpe@users.noreply.github.com>

Co-authored-by: Alexander Peters <alpe@users.noreply.github.com>
2021-12-23 11:12:45 +01:00
Alexander Peters c18bc4b00e
Add linter name and minor golint related updates (#663) 2021-10-25 15:33:21 +02:00
Alexander Peters dfba1395d9
Fix message representation for signing (#658)
* Introduce RawContractMessage type

* Add json signbytes test for proposals

* No assumptions on MsgIBCSend.data content

* Smart query uses RawContractMessage

* Revert method signature change to be consistent

* Review comment

* Update after discussions
2021-10-25 15:23:19 +02:00
fkneeland-figure 57517b0c33
Add golangci lint check on pull requests (#645)
* added golangci lint check on pull requests

* changelog update

* updated to use circleci instead of github actions

* testing a golang change

* added workflow

* updated how we find the golangci command in the make file

* using orb for golangci

* Added golangci install make command

* use docker image for golangci

* stop using make in circleci

* reverted golang change to trigger ci

* gofmt

* make fmt

* fixed a few things

* updated version on golintci

* fixed all the lint errors

* check version

* skipped wrongly failing lint

* Revert generated file changes

* fix import grouping, return errors on failures, initialization of arrays revert

* fixed a few lint errors

* addressed more code review comments

* updated with error check

* increased timeout for golangci-lint

* dont format autogenerated files

Co-authored-by: Carlton Hanna <channa@figure.com>
2021-10-25 09:09:47 +02:00
Mojtaba 0984acaf7e
Handle error on Address not found
If we use a wallet address which does not exist, it gives the following error: 
```
Error: empty address string is not allowed
```
which is coming from the SDK and confusing to the user. 
The reason is because one error is not handled properly, in the new proposal, the error is handled which returns the following error if the address does not exist:

```
Error: The specified item could not be found in the keyring
```
2021-10-21 16:09:26 +02:00
fkneeland-figure dd390d7f5f
Go Formatting update (#648)
* make fmt

* changelog update
2021-10-21 14:54:16 +02:00
fkneeland 193f517739 remove unused flags from cmd prompt 2021-10-14 16:38:13 -06:00
Alex Peters b7a99e69ee
Query all pinned code ids 2021-10-07 13:52:06 +02:00
Alex Peters 49bed8952f
Remove obsolete cli params 2021-08-02 14:55:42 +02:00
Ethan Frey 2387a48727 All code compiles and tests 2021-07-28 11:24:44 +02:00
Ethan Frey 92850081f0 Fix last tests 2021-07-28 11:18:58 +02:00
Ethan Frey 477c794913 Almost all tests pass 2021-07-28 11:18:21 +02:00
Ethan Frey d6432413a6 Fixed remaining PR comments 2021-07-27 14:25:33 +02:00
Ethan Frey 7eb7814437 Update JSON/YAML parsing and test code 2021-07-27 14:25:33 +02:00
Ethan Frey 6c7bb96511 Rename remaining {Init,Migrate}Msg fields 2021-07-27 14:25:33 +02:00
Ethan Frey 699fbbc215 Changed references in code - 2 broken tests 2021-07-27 14:25:33 +02:00
Alexander Peters 6a6d6c9fc4
Add cli alias (#536)
* Add cli alias

* Review feedback
2021-06-14 09:57:59 +02:00
Alex Peters 2f2d59a151
Allow access to contract address builder 2021-06-01 10:42:07 +02:00
Alexander Peters d90bf6ec3f
Extend ContractInfo for custom data (#492)
* Extend ContractInfo with custom data

* Review comments
2021-04-16 13:38:21 +02:00
Alexander Peters 8109bba871
Add extension points to the CLI (#477)
* Extract interfaces for genesis state in CLI

* Add more godoc

* Review feedback
2021-03-31 13:24:06 +02:00
Alexander Peters d9142662c1
Remove internal package (#464)
* Move internal subfolders up

* Fix broken imports and fmt
2021-03-19 09:52:01 +01:00
Alex Peters 7583340d82
Rename to funds in msgs 2021-03-03 13:59:03 +01:00
secret d46871eab9 remove redundant wasm limit in rest 2021-02-05 17:58:14 +08:00
Ethan Frey 9650941e12 Don't enforce balance when no funds sent 2021-01-08 17:25:51 +01:00
Ethan Frey 87eb03d0e9 Rename s, a args for clarity 2021-01-08 17:11:57 +01:00
Alex Peters 83d22a9352
Polish gen msg code and tests 2021-01-07 14:20:00 +01:00
Alex Peters 5882bf36cd
Add cli tests 2021-01-07 14:19:22 +01:00
Alex Peters be1927bcff
Replace viper in cli 2021-01-07 14:19:21 +01:00
Alex Peters 03b31b22dc
CLI integration 2021-01-07 14:19:21 +01:00
vincent 6acc71218b
Fix legacy REST API (#352)
* fix legacy amino register

* add label for '/wasm/code/{codeId}'

* cleanup
2021-01-05 14:07:48 +01:00
Alexander Peters 53bbf96e9e
Upgrade to cosmos-sdk v0.40.0-rc5 (#345)
* Upgrade to cosmos-sdk v0.40.0-rc5

* Migrate cli queries

* Update changelog

* Remove DONTCOVER filter for coverage
2020-12-17 14:13:18 +01:00
Alex Peters 0b7b70363b
Use base request data for sender 2020-11-25 11:04:40 +01:00
Alexander Peters b0b407d5f8
Add pagination to grpc queries (#317)
* Start pagination for queries

* Complete pagination support

* Cleanups

* Use GRPC endpoint in CLI queries

* Decode page-key in cli

* Review feedback
2020-11-23 12:56:25 +01:00
Alex Peters 6a920852bf
Replace sdk.AccAddress with bech32 string 2020-11-17 13:19:54 +01:00
Alex Peters bf83c4476c
Upgrade to Stargate RC2 2020-11-03 18:20:26 +01:00
Alex Peters bcb00d6017
Upgrade to Stargate commits 2020-10-27 15:01:22 +01:00
Ethan Frey 80a7cfea84 Manually encode as base64 as auto-encoded doesn't work 2020-10-09 10:32:46 +02:00
Ethan Frey 13169ab629 Base64 encoded return data on wasm raw query REST endpoint 2020-10-08 20:18:51 +02:00
Ethan Frey eb0f86ebe2 Use json.RawMessage for better encoding of REST interface on raw queries 2020-10-06 19:43:52 +02:00
Ethan Frey 4689220bbf Update raw query REST response 2020-10-06 17:52:18 +02:00
Ethan Frey 989830e073 Fix old contract naming in integration tests 2020-10-05 22:31:39 +02:00
Alex Peters e62f2cac44
Add CLI + REST support for contract history 2020-07-20 14:58:44 +02:00
Alex Peters 1c4d4d8f0e
Validate json msg payload 2020-07-20 14:43:23 +02:00
Alex Peters db464d891b
Rename ambiguous Code attribute 2020-07-17 17:02:21 +02:00
Alexander Peters 774f6d7876
Introduce Wasmgovd (#189)
* Introduce wasmgovd; disable wasm proposals with wasmd

* Update changelog

* Setup wasmgov with permission Nobody

* Review feedback
2020-07-16 16:47:44 +02:00
Alexander Peters 9ab18fc46f
Add wasm gov proposals to cli (#183)
* Add wasm gov proposals to cli

* Update changelog

* Rework gov proposal rest handlers

* Fix json naming

* Pretty print byte arrays in CLI

* Replace ambiguous cli flag and rest routes

* Minor cli usage doc update
2020-07-14 13:30:41 +02:00
Ethan Frey 3b96d488c1 Updated with PR comments 2020-06-26 12:06:15 +02:00
Ethan Frey b65f47f95a Rename MsgUpdateAdministrator -> MsgUpdateAdmin 2020-06-26 11:11:44 +02:00
Alex Peters 42f544f5c8
Minor fixes 2020-06-12 14:50:59 +02:00