Commit Graph

594 Commits

Author SHA1 Message Date
pinosu 07153801fc
Add cosmwasm project prefix to REST query paths (#743)
* Add cosmwasm project prefix to REST query paths
2022-02-08 08:34:04 +01:00
Ethan Frey eb183fabd4
Merge pull request #739 from CosmWasm/proto_upgrade
Update IBC protobuf files
2022-01-31 10:56:42 +01:00
Alex Peters 26c3b672e7
Minor integration support 2022-01-28 12:11:25 +01:00
Alex Peters f8d25eb930
Update IBC protobufs 2022-01-28 11:58:05 +01:00
Ethan Frey 20ed020fa7 Update documentation 2022-01-24 21:25:48 +01:00
Ethan Frey fb568e3ef7 Allow sending tokens along with governance wasm_execute proposal 2022-01-24 21:18:29 +01:00
Ethan Frey 6a2a9d0bfa fix tests 2022-01-24 20:23:20 +01:00
Ethan Frey 0a96e26fba Remove RunAs from Migrate proposal 2022-01-24 20:00:01 +01:00
Ethan Frey 82f023ce51 Test execute and sudo proposal handlers 2022-01-24 19:54:26 +01:00
Ethan Frey 8a9771e8f6 Add tests for Rest client 2022-01-24 19:54:26 +01:00
Ethan Frey fb1240c29a Add rest routes for proposals; 2022-01-24 19:54:26 +01:00
Ethan Frey 027b951f19 Wire up cli for exec and sudo proposal 2022-01-24 19:54:26 +01:00
Ethan Frey 53a44eb4d7 Wire up proposal handlers 2022-01-24 19:54:26 +01:00
Ethan Frey d227112cc3 Registered new proposal types 2022-01-24 19:54:26 +01:00
Ethan Frey 6bd6ffe90b Compile proto files 2022-01-24 19:54:26 +01:00
Ethan Frey 3acc8c960c Expose SetParams as I will need that for migration code outside of this package 2022-01-24 13:46:18 +01:00
Ethan Frey 1e78fbccf2 Fixed error message capitalization 2022-01-21 10:48:54 +01:00
Ethan Frey 332f4cc9a8 Fix tests, handle genesis init as well 2022-01-21 10:48:34 +01:00
Ethan Frey acd1cf9dfe Require --no-admin flag if no admin set 2022-01-21 10:48:34 +01:00
Ethan Frey d60dbd56e0 And properly pin it on governance vote 2022-01-21 10:39:43 +01:00
Ethan Frey ab12678446 Failing test showing it was not currently pinned 2022-01-21 10:39:43 +01:00
Mauro Lacy bf84b199a8
Proper systemerror follow-up (#715)
* Add custom NoSuchContract error

* Return custom NoSuchContract error from WasmQuerier

* Add custom NoSuchContract error

* Use custom ErrNoSuchContract error

Map to corresponding wasmvmtypes error

* Handle wrapped errors

Co-authored-by: Alex Peters <alpe@users.noreply.github.com>
2022-01-20 17:05:10 +01:00
Alexander Peters b8319aa334
Upgrade to cosmos-sdk v0.45.0 (#717)
* Upgrade to cosmos-sdk v0.44.5

* Upgrade to sdk v0.45.0-rc1

* Fix local test deploy scripts

* Bump to v0.45.0 final release

* Fixed replace to 0.45.0 not rc1

* Fix changed import path since rc1

Co-authored-by: Ethan Frey <ethanfrey@users.noreply.github.com>
2022-01-20 12:47:01 +01:00
Alex Peters 9d57522d67
Upgrade wasmvm to v1.0.0-beta5 2022-01-04 09:51:24 +01:00
Mauro Lacy f621948ea8
Merge pull request #701 from CosmWasm/687-proper-systemerror
`ContractInfo` query: return `NoSuchContract` system error instead of sdk error
2022-01-03 10:09:15 +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
Mauro Lacy 8d07dc01b4 Return NoSuchContract system error instead of sdk error in ContractInfo query 2021-12-16 10:07:32 +01:00
Alexander Peters efe87743e4
Limit simulation gas (#674)
* Limit simulation gas

* Put parameters on separate lines
2021-11-17 17:20:26 +01:00
Alex Peters 445fbb7564
Open read access to sequences 2021-11-05 15:07:12 +01:00
Ethan Frey 7edf2f9a8c
Merge pull request #664 from CosmWasm/nolint2
Disable false positive linter alert
2021-10-26 12:18:55 +02:00
Alex Peters a316dccbe5
Disable false positive 2021-10-26 09:00:04 +02:00
fkneeland-figure 9186d81ce5
Fixed wrong error message when lastCodeID value is incorrect (#644)
* Fixed wrong error message when lastCodeID value is incorrect

* Updated changelog

* removed unused import

* fixed typeo
2021-10-26 08:59:41 +02: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
Simon Warta 2afcdb4ae9 Upgrade wasmvm to v1.0.0-beta 2021-10-11 16:40:45 +02:00
Alexander Peters bc7a52260d
Update gas costs (#636)
* Update gas costs

* Review feedback

* Review comments
2021-10-08 14:34:44 +02:00
Ethan Frey 08ee11d405
Benchmarks for gas pricing (#634)
* Run benchmarks on circle CI

* Add benchmark for secp256k1 verification

* Add compilation benchmark

* Move parallelism back to 1 for benchmarks

* Review comments

Co-authored-by: Alex Peters <alpe@users.noreply.github.com>
2021-10-08 12:21:03 +02:00
Ethan Frey 53a6476676
Merge pull request #633 from CosmWasm/596-query-pinned-contracts
Query all pinned code ids
2021-10-07 15:27:55 +02:00
Alexander Peters 62e976a551
Upgrade wasmvm-v1.0.0-soon2 (#628)
* Upgrade wasmvm-v1.0.0-soon2

* Improve comment on DefaultGasMultiplier

Co-authored-by: Simon Warta <simon@warta.it>
2021-10-07 14:11:37 +02:00
Alex Peters b7a99e69ee
Query all pinned code ids 2021-10-07 13:52:06 +02:00
Ethan Frey 61bf2353cb Last gas fix 2021-10-07 12:34:16 +02:00
Ethan Frey e878842136 Adjust gas prices in tests 2021-10-07 12:26:25 +02:00
Ethan Frey e5dc6fe583 Treat all contracts as pinned for gas costs in reply 2021-10-07 11:23:58 +02:00
Alexander Peters 58f3776f6e
Implement tx counter for transaction info (#621)
* Implement tx counter for transaction info

* Count tx before pre-conditions

* Doc update
2021-09-27 21:53:01 +02:00
Alex Peters bc785a4f01
Handle contract info query 2021-09-27 12:55:51 +02:00
Assaf Morami ed96573c53 Fix inconsistent return of contractAddress from keeper/init()
This will not affect functionality whatsoever, it just makes for a more consistent code, as discussed in issue #616.
2021-09-22 21:59:47 +03:00