Commit Graph

20 Commits

Author SHA1 Message Date
Alex Peters 26c3b672e7
Minor integration support 2022-01-28 12:11:25 +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
Mauro Lacy 8d07dc01b4 Return NoSuchContract system error instead of sdk error in ContractInfo query 2021-12-16 10:07:32 +01: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
fkneeland-figure dd390d7f5f
Go Formatting update (#648)
* make fmt

* changelog update
2021-10-21 14:54:16 +02:00
Alex Peters bc785a4f01
Handle contract info query 2021-09-27 12:55:51 +02:00
Alexander Peters a447ee0c12
Ensure query isolation (#611)
* Ensure query isolation

* Review feedback
2021-09-14 17:25:05 +02:00
Alex Peters 0589f38ad3
Optimize BalanceQuery 2021-09-13 14:51:14 +02:00
Alex Peters 8f0707a985
Add decorator options 2021-08-30 14:31:46 +02:00
Piotr Husiatyński b2fc913398
Keeper tests (#590)
* More keeper tests

x/wasm/keeper tests are extended to test various input validation.
Keeper input is validated before passing to the keeper method when used
within wasmd application. We cannot ensure such validation when this
keeper is used outside of wasmd application. To keep it safe, fully
validate keeper methods input.

hackatom.wasm is loaded into memory during initialization to avoid
reading file in each test separately. Once migrated to go 1.16, embed
package should be used instead.

Run goimport on certain files.

Some comments fixed or removed.

* ensure that creator address is not nil
2021-08-27 15:37:07 +02:00
Ethan Frey a428d5c605 Add filtering to logic, tests pass 2021-07-28 10:17:24 +02:00
Ethan Frey 8d73c2d657 IBC Code compiles (non-test) 2021-07-21 21:38:58 +02:00
Alexander Peters c05df881fb
Charge gas for custom event attributes and messages (#539)
* Charge gas for custom event attributes

* Introduce gas register for gas costs

* Review feedback

* Tests and minor updates

* Godoc
2021-06-25 10:00:46 +02:00
Alex Peters 7f5200b9dd
Add cost and api cost options 2021-06-11 11:46:49 +02:00
Alexander Peters 305f13cc0a
Submessage reply can overwrite caller response (#502)
* Reply may overwrite result data

* Fix interface name

* Refacting for tests

* Test response handler

* Fix naked error
2021-04-27 14:00:42 +02:00
Ethan Frey 9ebeb859cf
Update to wasmvm 0.14.0-beta4 (#499)
* Update deps and test contracts to v0.14.0-beta4

* Update to new DistributionMsg, StakingQuery

* Fix existing tests

* Add test for single Validator query
2021-04-27 08:24:38 +02:00
Alex Peters 03bf7b0adf
Introduce new interfaces for extendability 2021-03-24 14:11:42 +01: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