Commit Graph

941 Commits

Author SHA1 Message Date
pinosu
60375abf50 Fix Amino JSON representation (#1844)
* Fix Amino JSON representation

* Update amino encoding
2024-04-11 14:57:51 +02:00
pinosu
386907e2ad Set log scope to Debug (#1827) 2024-03-07 11:30:23 +01:00
Christoph Otter
8047b7f75a Rename gas to gasLeft (#1820) 2024-03-06 17:46:36 +01:00
Christoph Otter
ba3a59cdb6 Merge pull request #1804 from CosmWasm/update-to-wasmvm-2.0
Update to wasmvm 2.0.0-rc.1
2024-03-06 12:40:30 +01:00
Christoph Otter
62eaa6eedf Add nil checks 2024-03-06 10:27:26 +01:00
Christoph Otter
ad93ad3dda Add contract error integration test 2024-03-04 12:15:27 +01:00
Simon Warta
8e184df405 Fix misleading error message for duplicate address on instantiate2
Chaning the label does not help avoiding the collision. Only creator,
checksum and salt is typically used.
2024-02-29 16:11:04 +01:00
Christoph Otter
3e960ee2a6 Fix DeterministicError docs 2024-02-29 15:59:15 +01:00
Christoph Otter
4e7e53422c Add DeterministicError type for redactError 2024-02-28 15:40:19 +01:00
Christoph Otter
1ee2c49136 Use reflect contract from 1.5 2024-02-27 17:38:17 +01:00
Christoph Otter
8607164e87 Add validateAddress test 2024-02-26 18:45:49 +01:00
Christoph Otter
f41bb6f9dc Fix costValidate 2024-02-26 18:44:27 +01:00
Christoph Otter
e982aabcc0 Apply suggestions from code review
Co-authored-by: Simon Warta <2603011+webmaster128@users.noreply.github.com>
2024-02-26 16:55:23 +01:00
Christoph Otter
8663a85993 Add msgResponses in IBCRawPacketHandler 2024-02-26 16:42:54 +01:00
Christoph Otter
77504d8562 Cleanup 2024-02-26 11:41:09 +01:00
Christoph Otter
5dc97d5c0d Rename reflect.wasm to stargate_reflect.wasm 2024-02-26 11:35:51 +01:00
Christoph Otter
4f8d5137b2 Fix spelling 2024-02-21 14:47:56 +01:00
Christoph Otter
9cc1a5afe4 Implement grpc query 2024-02-21 14:19:56 +01:00
Christoph Otter
d94360cb90 Do not redact contract errors 2024-02-21 10:44:07 +01:00
Christoph Otter
97694f1c22 Add extra error for wasmvm errors 2024-02-20 18:03:39 +01:00
Christoph Otter
0ca56bd466 Pass Payload from submsg to reply 2024-02-19 18:02:42 +01:00
Christoph Otter
7f88c95aba Format imports 2024-02-19 16:54:48 +01:00
Christoph Otter
219da83e5a Run gofumpt 2024-02-19 16:21:05 +01:00
Christoph Otter
d6ec8d4cf1 Fix MockMessageHandler 2024-02-16 17:41:15 +01:00
Simon Warta
a30e083b90 Add flattened msgResponses to SubMsgResponse 2024-02-16 17:37:00 +01:00
Christoph Otter
2887105814 Handle TransferMsg.Memo field 2024-02-16 15:37:38 +01:00
Christoph Otter
3539fe9968 Fix gas numbers 2024-02-16 14:29:44 +01:00
Christoph Otter
1037fc8f9e Use updated reflect contract 2024-02-15 17:13:58 +01:00
Christoph Otter
1d77a666e6 Fix errors 2024-02-15 16:45:20 +01:00
Christoph Otter
6d7c91c145 Remove unnecessary conversion 2024-02-15 14:42:07 +01:00
Christoph Otter
dd992b0deb Use different tempdir for each test run 2024-02-15 14:30:37 +01:00
Christoph Otter
ec2c70bf72 Fix address validation 2024-02-15 14:30:37 +01:00
Christoph Otter
244c55a4ba Reduce gas factor 2024-02-15 14:30:37 +01:00
Christoph Otter
cca0005c71 Fix lint 2024-02-15 14:30:37 +01:00
Christoph Otter
54670c4990 Add ValidateAddress impl 2024-02-15 14:30:37 +01:00
Christoph Otter
e4d95c2453 Fix StoreCode gas usage 2024-02-15 14:30:37 +01:00
Christoph Otter
d4e6417dc7 Adjust to nested results 2024-02-15 14:30:37 +01:00
Christoph Otter
c7ba88f81d Adjust to type changes and renamings 2024-02-15 14:30:37 +01:00
Christoph Otter
b1c5bfb230 Update to wasmvm 2.0.0-rc.1 2024-02-15 14:30:37 +01:00
Simon Warta
3206540319 Adapt tests to gas value changes 2024-01-27 16:12:03 +01:00
Simon Warta
315bf5ca18 Generalize "pinned" to "discount" for cases where contract is in memory 2024-01-26 17:18:28 +01:00
Simon Warta
ce0dafad39 Remove NewContractInstanceCosts
We do not have entry-point specific gas metering and
NewContractInstanceCosts is just an alias for setup cost. No need to
maintain it. If we really need it, we should better explain why.
2024-01-25 10:09:40 +01:00
Simon Warta
18ff23339a Rename InstantiateContractCosts -> SetupContractCost 2024-01-25 10:02:20 +01:00
pinosu
64b80740e5 Fix grant cli (#1792) 2024-01-24 10:35:04 +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
dffa3212fc Fix migrate legacy params (#1729)
* Fix migrate legacy params

* Better tests

* Handle upgrade from wasmd 33 chains
2023-11-21 08:56:41 +01:00
Alex Peters
f31351fea0 Pass empty attribute value through stack 2023-11-15 10:22:33 +01:00
FengFeng
4e7316e97b Allow empty attribute values (#1618)
* remove event value judgment

* remove event value judgment

* fix cosmwasm events test
2023-11-15 10:15:58 +01:00
Alexander Peters
2a82e35243 Fix gov v1beta1 support for legacy propsals (#1715)
* Revert "Remove gov v1beta1 dependencies and deprecated proposals (#1646)"

This reverts commit e0da419409.

* Rename legacy propsal files

* Ensure gov store support for v1beta1 types

* Linter

* Cleanup alias
2023-11-15 08:29:33 +01:00
pinosu
4313d7f3ee Upgrade to SDK v0.50.1 (#1696)
* Upgrade to SDK v0.50.1

* Update dependencies

* Upgrade ibc-go

* Remove GetSigners() method

* Update deps
2023-11-13 12:31:36 +01:00