Commit Graph

47 Commits

Author SHA1 Message Date
Tomasz Kulik d3f6f431a4
chore: Bump wasmvm 2.2.3 -> 3.0.0-ibc2.0 2025-04-29 17:33:37 +02:00
LesCyber efd5fe1f05 refactor: use errors.New to replace fmt.Errorf with no parameters
Signed-off-by: LesCyber <andi4cing@gmail.com>
2025-03-02 21:47:23 +08:00
Pino' Surace 5b1b179006
Refactor build address cmd (#2101) 2025-01-21 14:01:05 +01:00
Pino' Surace 2e545957fa
Add CodeInfo rpc query (#1943)
* Add CodeInfo rpc query

* Fix typos

* Add QueryCodeInfoResponse type

* Inline fields in QueryCodeInfoResponse

* Fix comments
2024-09-11 12:33:51 +02:00
Christoph Otter b1c5bfb230 Update to wasmvm 2.0.0-rc.1 2024-02-15 14:30:37 +01:00
Not Jeremy Liu 651abcff89
Add Build Address gRPC Query (#1753)
* add and generate build address query protos

* change init args to bytes

* implement BuildAddress grpc query

* Add unit tests

* Update x/wasm/keeper/querier_test.go

Co-authored-by: pinosu <95283998+pinosu@users.noreply.github.com>

* more verbose error messages

* make CmdBuildAddress use query client instead of keeper

* src instead of srcQuery in tests

* add more test cases

* add test for invalid init args

---------

Co-authored-by: pinosu <95283998+pinosu@users.noreply.github.com>
2024-01-09 10:48:16 +01:00
Alexander Peters afa85da3f4
Set default query limit and ensure constraints (#1632)
* Set default query limit and ensure constraints

* Update x/wasm/client/cli/query.go

Co-authored-by: pinosu <95283998+pinosu@users.noreply.github.com>

---------

Co-authored-by: pinosu <95283998+pinosu@users.noreply.github.com>
2023-09-18 11:25:01 +02:00
Alex Peters 965e28c8a1
Restrict pagination on all state query 2023-09-12 10:45:11 +02:00
Jacob Gadikian 8627f85275
style: lint wasmd in the same manner as cosmos-sdk (#1537)
* golangci-lint run ./... --fix

* linting completed

* use the CosmWasm repo as part of the gci config
2023-07-31 15:53:20 +02:00
Nikhil Suri 2ccffed778 list-contract-by-code bugfix 2023-02-13 19:50:52 +00:00
pinosu 558147d054
Address cli behaviour on tx and query errors (#1125)
* Add SilenceUsage missing flags

* Remove old script

* Edit script comment
2023-01-10 15:38:23 +01:00
pinosu 0223e2bddb
Add SilenceUsage flag to hide menu when an error occurs. (#1068)
* Add SilenceUsage flag to hide menu when an error occurs.

* Fix lint errors
2022-11-02 17:14:41 +01:00
vuong 6d67d5b4f7
Get Contracts by Creator Address (#1021)
* add query to query.proto

* add ContractsByCreatorPrefix in keys.go

* add ContractCreatorThirdIndex to keeper.go

* add querier

* cli

* fix test

* linting

* add key test

* no need to change creator when migrate

* add query test

* minor

* add migrate logic

* add more test

* register migration

* minor

* Update x/wasm/client/cli/query.go

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

* nits

* remove IterateAllContract

* Update x/wasm/keeper/genesis_test.go

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

* nit

* nit: func name

* change key

* improve TestIteratorContractByCreator

* fix test

* use IterateContractInfo in migrate2to3

* minor

* move key

* improve test case

* add pagReq in ContractsByCreator query

* ordering query

* add migrate test

* Make ContractsByCreator plural; formatting and minor updates

* Comment why AbsoluteTxPositionLen makes sense

* Migrate 1 to 2

* Set module version

Co-authored-by: Alexander Peters <alpe@users.noreply.github.com>
Co-authored-by: khanh-notional <50263489+catShaark@users.noreply.github.com>
2022-10-20 19:04:41 +02:00
Alexander Peters 9c5ebbbc4c
Implement improvements to new address generation (#1014)
* Revert default instance address generation to classic sequence based method

 Please enter the commit message for your changes. Lines starting

* Start re-adding classic address generator

* Extract address generation to file; minor updates

* Review comments

* Set max salt size

* Support predictable address on instantiation

* Switch attribute order for backwards compatiblity

* Fix salt param check in CLI

* Enable tests

* Add more tests

* Minor fix

* Remove migration

* Better cli description

* Fix init message length prefix

* Add sanity checks to address generation and minor updates

* Reduce max length in tests for CI

* CLI and address generation updates

* Add test vectors

* Minor updates

* Fix cli long doc
2022-09-22 18:22:35 +02:00
Alex Peters ccb2fdd0b6
Make contract addresses predictable 2022-09-09 12:42:41 +02:00
jhernandezb e54d56e95f add params query 2022-08-31 10:58:42 -06:00
Alexander Peters 00082a25b8
Make app keepers public (#951)
* use ecosystem convention for keeper names in app.go

* fix linting

* Revert variable renaming

* Deprecate attribute access helper

* Formatting only

* Replace usage of deprecated test helper

* Address linter report

Co-authored-by: faddat <jacobgadikian@gmail.com>
2022-08-23 17:01:04 +02:00
Simon Warta 5809ca2843 Use LibwasmvmVersion from wasmvm root 2022-05-16 14:07:51 +02:00
Ethan Frey bff3aff95b Run new "make format" 2022-05-09 22:34:26 +02:00
jhernandezb 86c61efe70 add code-info query command 2022-05-09 11:35:37 -06:00
Alexander Peters 5bb0673264
Proto updates (#847)
* Bump ibc protos to v3

* Bump tendermint protos to v0.34.19

* Fix proofs path

* Format all
2022-05-09 16:32:13 +02:00
Jorge Hernandez 25c8ac63da
Add libwasm-version query command (#846)
* add vm-version query command

* update command name
2022-05-09 10:44:01 +02:00
Alexander Peters c18bc4b00e
Add linter name and minor golint related updates (#663) 2021-10-25 15:33:21 +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 b7a99e69ee
Query all pinned code ids 2021-10-07 13:52:06 +02:00
Alexander Peters 6a6d6c9fc4
Add cli alias (#536)
* Add cli alias

* Review feedback
2021-06-14 09:57:59 +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 d9142662c1
Remove internal package (#464)
* Move internal subfolders up

* Fix broken imports and fmt
2021-03-19 09:52:01 +01:00
Alex Peters 03b31b22dc
CLI integration 2021-01-07 14:19:21 +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
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 bcb00d6017
Upgrade to Stargate commits 2020-10-27 15:01:22 +01: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
Ethan Frey c829fcff5a Rename import from cosmwasm/wasmd to CosmWasm/wasmd 2020-05-13 22:15:40 +02:00
Assaf Morami bb18c59c5d
Implement query list-contract-by-code for the CLI 2020-03-04 12:12:36 +02:00
Ethan Frey fee390d8f4 Return all info with GetCode, not just wasm 2020-03-01 21:20:34 +01:00
Ethan Frey c509fb91d8 Remove contract string list, add address info to by code id, filter out init_msg in list 2020-02-26 09:19:26 +01:00
Ethan Frey 06c3f0f253 All compiles except ./cmd 2020-01-23 19:18:17 +01:00
Alex Peters f051d24fe8
Rework query result type; tests 2020-01-14 17:04:45 +01:00
Alex Peters 9156f29a72
Query contract state variations 2020-01-14 13:47:42 +01:00
Alex Peters c6aac95b69
Add 'raw, all' queries 2020-01-14 12:10:00 +01:00
Ethan Frey a3e7c30a2b Last query cleanup 2019-11-22 19:26:39 +01:00
Ethan Frey 5f304e335c First run-through documented, along with TODOs 2019-11-22 19:00:20 +01:00
Ethan Frey d79ff0cd19 Finalize the query cli commands for x/wasm 2019-11-22 17:57:28 +01:00
Ethan Frey 4a77f43b63 Add query command for wasm code 2019-11-22 17:50:10 +01:00