Augusto Elesbão
6b8b45c32b
fix: propagate funds validation errors
...
The validation functions on the `tx` type masquerade the root error
message for the `Funds` validation. Having the original error helps to
save time when debugging the cause for a failed tx.
One example is if someone sends multiple funds to a contract execution
without sorting the denoms, which is one of the validations in the
`Coins.Validate` method. With the error propagation, the developer can
quickly determine why the tx failed.
2023-10-04 11:36:22 +02:00
pinosu
e0da419409
Remove gov v1beta1 dependencies and deprecated proposals ( #1646 )
2023-10-04 09:31:48 +02:00
dependabot[bot]
b845e14491
Bump github.com/cosmos/ibc-go/v8 from 8.0.0-beta.0 to 8.0.0-beta.1 ( #1648 )
...
* Bump github.com/cosmos/ibc-go/v8 from 8.0.0-beta.0 to 8.0.0-beta.1
Bumps [github.com/cosmos/ibc-go/v8](https://github.com/cosmos/ibc-go ) from 8.0.0-beta.0 to 8.0.0-beta.1.
- [Release notes](https://github.com/cosmos/ibc-go/releases )
- [Changelog](https://github.com/cosmos/ibc-go/blob/main/CHANGELOG.md )
- [Commits](https://github.com/cosmos/ibc-go/compare/v8.0.0-beta.0...v8.0.0-beta.1 )
---
updated-dependencies:
- dependency-name: github.com/cosmos/ibc-go/v8
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
* Fix conflicts
* Fix lint
* Make lint pass
---------
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Pino' Surace <pino.surace@live.it >
2023-10-03 14:13:19 +02:00
dependabot[bot]
ca682c085e
Bump github.com/docker/distribution from 2.8.2+incompatible to 2.8.3+incompatible ( #1647 )
...
* Bump github.com/docker/distribution
Bumps [github.com/docker/distribution](https://github.com/docker/distribution ) from 2.8.2+incompatible to 2.8.3+incompatible.
- [Release notes](https://github.com/docker/distribution/releases )
- [Commits](https://github.com/docker/distribution/compare/v2.8.2...v2.8.3 )
---
updated-dependencies:
- dependency-name: github.com/docker/distribution
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
* Fix lint
---------
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Pino' Surace <pino.surace@live.it >
2023-10-03 13:04:54 +02:00
pinosu
e65480838a
Add msg update contract label ( #1640 )
...
* Add msg update contract label
* fix tests
2023-09-28 10:49:44 +02:00
Alexander Peters
cd66f786b2
SDK upgrade to v0.50 (branch) ( #1611 )
...
* Start implementation
* Add implementation + some e2e test
* Fix lint
* Squashed: sdk upgrade to v0.50
* rebuild protos with newer proto builder
(cherry picked from commit fd8f4c1d0d2163f0a504356c16cd2d250f6218f3)
* update ibc-go
(cherry picked from commit fb8667960fbeedb7d242baa644572986a154d4b6)
* bump cosmos-sdk and ibc in the v50 branch (#1616 )
* tidy
* upgade ibc
* remove the toolchain command
* Bump sdk version
* Use correct bech32 prefix
* Bump SDK
* Enable fraud system test again
* Fix genesis param name
* Fix import/export simulations
* set log level for benchmarks
(cherry picked from commit 1cfb93008c596db62d22aba882f37a469546bfb9)
* Apply review comments
* Remove gov beta1 helpers
* Bump sdk version to latest in branch
* Fix linter
* Setup mergify for main
* Update mergify for better branch name
---------
Co-authored-by: Pino' Surace <pino.surace@live.it >
Co-authored-by: Jacob Gadikian <jacobgadikian@gmail.com >
2023-09-25 10:42:35 +02: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
7dc2d0cfbc
Fix genesis import with predictable addresses
2023-09-18 06:26:19 +02:00
Alexander Peters
7dba5c7c73
Merge pull request #1624 from CosmWasm/upper_limit
...
Ensure some contraints and limits on pin/unpin code ids
2023-09-18 05:23:55 +02:00
pinosu
6a2bffd479
Add grant system tests ( #1626 )
...
* Add grant system tests
* Add unpermissioned chain test case
* Fix tests
* Update cli and fix feedbacks
* Revisit CLI and system tests (#1627 )
* Restructure CLI; fix system test
* Review feedback
---------
Co-authored-by: Alexander Peters <alpe@users.noreply.github.com >
2023-09-15 16:59:27 +02:00
Alex Peters
b72d182d2a
Ensure some contraints and limits on pin/unpin code ids
2023-09-15 11:11:01 +02:00
Alexander Peters
e0bfaa5231
Merge pull request #1620 from CosmWasm/channel_query
...
Start rework channel query
2023-09-14 15:09:52 +02:00
pinosu
dd22204644
Add store code authz ( #1591 )
...
* Start implementation
* Add implementation + some e2e test
* Fix lint
* Fix comments
* Add ante handler
* Add cli cmd + more test cases
* Add cli tests
* Add ante handler test
* Add more tests
* Fix comments
* Enable empty permissions for the grant
* Fix lint
* Update version
2023-09-14 13:28:57 +02:00
Alex Peters
d5fa2780c1
Handle query for non ibc contracts
2023-09-13 16:31:41 +02:00
Alex Peters
177c0a9218
Test channels query
2023-09-13 15:28:16 +02:00
Alex Peters
e81d655287
Start rework channel query
2023-09-12 11:30:04 +02:00
Alex Peters
965e28c8a1
Restrict pagination on all state query
2023-09-12 10:45:11 +02:00
pinosu
09b50085cd
Remove legacy gov proposal dependencies ( #1587 )
...
* Remove legacy gov proposal dependencies
* Fix comments
* Fix lint
* Update files
* Fix lint
* Fix lint
2023-09-07 15:13:19 +02:00
Alexander Peters
0f82c95b6d
Linter only ( #1609 )
...
* Linter only
* Bump linter version
2023-09-07 13:04:28 +02:00
Alexander Peters
3d9d92c770
Wasmvm 1.4 upgrade ( #1590 )
...
* Start wasmvm 1.4 upgrade
* Checksum lowercase
* Start distribution query tests
* Use wasmvm 1.4.0
* Implement remaining distribution queries
* Update test
* Update to burner v1.4; minor updates
* Add dec coin test
* Fix merge conflict
2023-09-07 09:14:51 +02:00
pinosu
87dce540ec
Add StoreAndMigrateContract proposal ( #1539 )
...
* Add StoreAndMigrateContract msg
* Add tests
* Add proposal cli
* Fix comments
2023-09-07 08:42:00 +02:00
170210
9e3904c551
test: add test cases in ContractsByCode
...
Signed-off-by: 170210 <j170210@icloud.com >
2023-09-07 14:19:21 +09:00
pinosu
f1835a13e4
Add logging for query err before redacting ( #1605 )
...
* Add logging for query err before redacting
* Fix comments
2023-09-06 11:42:16 +02:00
Pino' Surace
ffcfa8dfa0
Remove Wasmer references
2023-09-04 17:01:29 +02:00
Alexander Peters
daf48eacdf
Merge pull request #1582 from CosmWasm/gas_unit_test
...
Add unit test for gas calculation
2023-08-31 09:00:25 +02:00
Alex Peters
0d3bfceeeb
Rename key store key attribute to be more concrete
...
Please enter the commit message for your changes. Lines starting
2023-08-30 15:25:52 +02:00
Pino' Surace
baf335762f
Add unit test for gas calculation
2023-08-29 12:27:02 +02:00
Alex Peters
4595e6d8f6
Fail fast on wasmvm cache metric setup
2023-08-28 13:24:45 +02:00
Paul Chen
acfe1e4f27
fix: make sure wasmvm cache metrics collector after VM setup
2023-08-28 17:54:22 +08:00
Christoph Otter
bfaf589d8e
Fix gas calculation ( #1567 )
2023-08-24 10:55:56 +02:00
Simon Warta
881d6a71b6
Improve ToWasmVMGas/FromWasmVMGas code level documentation ( #1564 )
2023-08-24 10:55:35 +02:00
pinosu
08c517b110
Fix label validation error ( #1555 )
2023-08-17 09:41:25 +02:00
Jacob Gadikian
dc970c4f34
marshaler to codec ( #1545 )
...
* marshaler to codec
* Update tests/e2e/ibc_fees_test.go
Co-authored-by: pinosu <95283998+pinosu@users.noreply.github.com >
* Update tests/e2e/ibc_fees_test.go
Co-authored-by: pinosu <95283998+pinosu@users.noreply.github.com >
* fix a few remaining issues
---------
Co-authored-by: pinosu <95283998+pinosu@users.noreply.github.com >
2023-08-04 14:31:03 +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
Jacob Gadikian
2d54a1d3d6
fix: use a constant for badAddress in tx_test.go ( #1533 )
...
* use a constant
* use a constant for badAddress
2023-07-24 15:16:33 +02:00
pinosu
19c17cbf15
Add/Remove addresses for code upload params ( #1493 )
...
* Start implementation
* Add tests
* Add fix
* Fix comments
* Minor chore (#1522 )
* Minor chore
* Remove duplicate tests
---------
Co-authored-by: Alexander Peters <alpe@users.noreply.github.com >
2023-07-19 18:00:16 +02:00
Alexander Peters
fe3afd5200
Test coin metadata query ( #1520 )
...
* Test coin metadata query; contract updates
* Update tests and contracts
2023-07-19 15:12:07 +02:00
Alexander Peters
551acabaac
Merge pull request #1517 from CosmWasm/distr_query
...
Add distribution query
2023-07-19 11:27:19 +02:00
Ethan Frey
07700a16c6
Allow better override of wasmVM in x/wasm keeper ( #1494 )
...
* Allow better override of wasmVM in x/wasm keeper
* Add post vm options
---------
Co-authored-by: Alex Peters <alpe@users.noreply.github.com >
2023-07-18 17:42:28 +02:00
Alex Peters
a17f5f2fbf
Add distribution query
2023-07-18 15:29:16 +02:00
larry
e5049ba686
Add a method to do raw query in ibctesting ( #1505 )
...
* add a method to do raw query in ibctesting
* update error message
2023-07-17 12:59:03 +02:00
Till Ziegler
c23ecae7a7
Add Encodings For MsgFundCommunityPool from Distribution ( #1458 )
...
* add FundCommunityPoolMsg to DistributionMsgs
* gofumpt
2023-07-07 08:43:21 +02:00
Christoph Otter
d2e9aceaaf
Add AllDenomMetadata BankQuery ( #1426 )
...
* x/wasm: add AllDenomMetadata BankQuery
* x/wasm: fix AllDenomMetadata BankQuery to have pagination and add DenomMetadata BankQuery
* Use simplified pagination
* Fix request conversion
* Add unknown denom test cases
* Add test for pagination conversion
* Fix nits
* Use wasmvm 1.3.0-rc.0
* Fix test
---------
Co-authored-by: Nikhil Suri <nikhilsuri@comcast.net >
2023-07-06 14:57:05 +02:00
pinosu
1a5a2d96e5
Upgrade to wasmvm 1.3.0-rc.0 ( #1486 )
...
* Upgrade to wasmvm 1.3.0-rc.0
* Fix comments
2023-07-06 13:07:48 +02:00
pinosu
0fd9ecd923
Deprecate alias.go ( #1484 )
...
* Deprecate alias.go
* Fix comments
2023-07-06 11:43:08 +02:00
Alexander Peters
63f73d3e6c
Gov authorization propagation for sub-messages ( #1482 )
...
* Add gov authorization propagation for sub-messages
* Minor update
2023-07-06 11:42:01 +02:00
pinosu
1763477831
Remove check for wasm limit size in state sync ( #1471 )
...
* Remove check for wasm limit size in state sync
* Fix comments
* Store original value in variable
2023-07-05 11:33:35 +02:00
Alexander Peters
f171a67ed0
Add updates to ibctesting framework for MS ( #1472 )
...
* Add message fees
* Init slashing module for tests
* Capture endblock ibc events and other ibctesting updates
2023-07-04 11:19:58 +02:00
Alexander Peters
448cc643d8
Bump seq in ibctests for failed messages as well ( #1464 )
...
* Bump seq in ibctests for failed messages as well
* Increase wait time for system tests
* Revert "Increase wait time for system tests"
This reverts commit 1b233bc30b270b031237d9a4a71b074211faf565.
2023-06-29 10:59:48 +02:00
Alex Peters
b2214cf2d9
Ensure history position does not conflict
2023-06-27 18:27:04 +02:00