Commit Graph

1234 Commits

Author SHA1 Message Date
Alex Peters d4fadc528f
Handle wrapped errors 2022-01-18 13:55:36 +01:00
Mauro Lacy 1208120c8d Use custom ErrNoSuchContract error
Map to corresponding wasmvmtypes error
2022-01-05 09:29:36 +01:00
Mauro Lacy 702c1be221 Add custom NoSuchContract error 2022-01-04 17:40:35 +01:00
Mauro Lacy 5da060854d Return custom NoSuchContract error from WasmQuerier 2022-01-03 12:36:58 +01:00
Mauro Lacy 2fe10e2617 Add custom NoSuchContract error 2022-01-03 12:35:54 +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
Jacob Gadikian 9a17505cf8
Use replace statements to enforce consistent versioning. (#692)
* Use replace statements to enforce consistent versioning.

* Fix CI (I think.  Consider this a test of that.)

* Further consistency enforcement

* SDK 0.42.11 for much secure

* Update CHANGELOG.md

* Update CHANGELOG.md
2021-12-08 08:33:29 +01:00
Ethan Frey 358052007e
Merge pull request #684 from CosmWasm/659-benchmarks
Fix flickering benchmark tests
2021-11-25 13:41:51 +01:00
Alex Peters cb7497c530
Fix flickering benchmark tests 2021-11-25 10:17:04 +01:00
Jacob Gadikian 1da2078229
Go 1.17 provides a much clearer go.mod file (#679)
* Go 1.17 provides a much clearer go.mod file

* tidy

* Go 1.17 cleanup
2021-11-24 21:18:23 +01:00
Alexander Peters 4ffba67273
Bump wasmvm to v1.0.0-beta2 (#676)
* Bump wasmvm to v1.0.0-beta2

* Update changelog
2021-11-17 20:33:34 +01:00
Ethan Frey 269ba89aeb
Merge pull request #675 from CosmWasm/v0.21_changelog
Update Changelog and Readme for release
2021-11-17 19:33:40 +01:00
Alex Peters 500b29af67
Update Readme 2021-11-17 17:57:36 +01:00
Alex Peters 4f48193c74
Update changelog for v0.21 2021-11-17 17:52:06 +01:00
dependabot[bot] 8b4fcd8627
Bump github.com/cosmos/iavl from 0.17.1 to 0.17.2 (#673)
Bumps [github.com/cosmos/iavl](https://github.com/cosmos/iavl) from 0.17.1 to 0.17.2.
- [Release notes](https://github.com/cosmos/iavl/releases)
- [Changelog](https://github.com/cosmos/iavl/blob/master/CHANGELOG.md)
- [Commits](https://github.com/cosmos/iavl/compare/v0.17.1...v0.17.2)

---
updated-dependencies:
- dependency-name: github.com/cosmos/iavl
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-17 17:20:52 +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
Alexander Peters 1f43ca13c7
Merge pull request #666 from CosmWasm/dependabot/go_modules/github.com/rs/zerolog-1.26.0
Bump github.com/rs/zerolog from 1.25.0 to 1.26.0
2021-11-17 14:55:51 +01:00
Alexander Peters 090b8e91e2
Merge pull request #669 from CosmWasm/api-cleanup
Open read access to sequences
2021-11-08 12:33:03 +01:00
Alex Peters 445fbb7564
Open read access to sequences 2021-11-05 15:07:12 +01:00
dependabot[bot] 100b551daa
Bump github.com/rs/zerolog from 1.25.0 to 1.26.0
Bumps [github.com/rs/zerolog](https://github.com/rs/zerolog) from 1.25.0 to 1.26.0.
- [Release notes](https://github.com/rs/zerolog/releases)
- [Commits](https://github.com/rs/zerolog/compare/v1.25.0...v1.26.0)

---
updated-dependencies:
- dependency-name: github.com/rs/zerolog
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-02 08:22:59 +00:00
Alexander Peters 14e58bfa81
Merge pull request #665 from fkneeland-figure/update_readme_for_m1
Add lack of M1 support to README
2021-10-28 08:27:35 +02:00
fkneeland 5139ea5aff
Added that m1 macs are currently not supported 2021-10-27 14:53:16 -06: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
Alexander Peters 465c085e15
Revert error handling on export (#662) 2021-10-25 15:22:42 +02:00
Ethan Frey 161927c7b4
Merge pull request #661 from CosmWasm/formatting_generated
Format generated files
2021-10-25 12:30:32 +02:00
Alex Peters 950b2e446b
Format generated files 2021-10-25 09:16:38 +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
Ethan Frey c34b4863b1
Merge pull request #657 from mojtaba-esk/patch-1
Handle error on Address not found
2021-10-21 16:24:39 +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
Ethan Frey 2abbc00baf
More bank/cw20 benchmarks (#651)
* Add blocks of 1000 tx

* Increase Block.MasGas for tests/benchmarks

* Add huge initialization
2021-10-19 10:06:52 +02:00
Ethan Frey d82a0b94d2
Merge pull request #650 from fkneeland-figure/remove_unused_flags_from_cmd_prompt
Remove unused flags from cmd prompt
2021-10-15 14:54:34 +02:00
fkneeland fe7ee710ba changelog update 2021-10-14 16:39:25 -06:00
fkneeland 193f517739 remove unused flags from cmd prompt 2021-10-14 16:38:13 -06:00
Ethan Frey 6a471a4a16
Merge pull request #639 from CosmWasm/635-better-app-benchmarks
More realistic benchmarks
2021-10-11 23:28:44 +02:00
Ethan Frey e18e679616
Merge pull request #640 from CosmWasm/upgrade-to-1.0.0-beta
Upgrade wasmvm to v1.0.0-beta
2021-10-11 23:08:22 +02:00
Simon Warta 2afcdb4ae9 Upgrade wasmvm to v1.0.0-beta 2021-10-11 16:40:45 +02:00
Ethan Frey dee6b696e6 Initial account creation also creates cw20 balances 2021-10-08 23:47:20 +02:00
Ethan Frey 6ffc73bc22 All messages send to different recipient 2021-10-08 23:37:38 +02:00
Ethan Frey 80e9cb00b8 Setup unused accounts 2021-10-08 23:21:26 +02:00
Ethan Frey 4cd1118bee Add leveldb tests 2021-10-08 23:04:13 +02:00
Ethan Frey 60ddb826d8 First table tests 2021-10-08 22:57:59 +02:00
Ethan Frey 48405fe012 Refactor wasm setup more 2021-10-08 22:43:36 +02:00
Ethan Frey e57cffb6fb Pull out test initialization 2021-10-08 22:26:18 +02:00