Alex Peters
1d3bc0ee30
Handle panics in query contract smart
2020-11-24 12:42:39 +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
6a920852bf
Replace sdk.AccAddress with bech32 string
2020-11-17 13:19:54 +01:00
Alexander Peters
550c6f5c4f
Containerized Protobuf generation ( #304 )
...
* Docker container based Protobuf generation and linting
* Add protobuf comments
* Update contrib/prototools-docker/Dockerfile
Co-authored-by: Simon Warta <2603011+webmaster128@users.noreply.github.com>
* Update contrib/prototools-docker/Dockerfile
Co-authored-by: Simon Warta <2603011+webmaster128@users.noreply.github.com>
* Update x/wasm/internal/types/msg.proto
Co-authored-by: Simon Warta <2603011+webmaster128@users.noreply.github.com>
* Update x/wasm/internal/types/types.proto
Co-authored-by: Simon Warta <2603011+webmaster128@users.noreply.github.com>
Co-authored-by: Simon Warta <2603011+webmaster128@users.noreply.github.com>
2020-11-11 12:13:04 +01:00
Alexander Peters
4fb3a50fa7
Support self calling contract on instantiation ( #300 )
...
* Support self calling contract on instantiation
* Review feedback
* Review feedback
2020-11-09 09:16:41 +01:00
Alex Peters
cd3f72e6f1
Review feedback
2020-10-29 13:55:43 +01:00
Alex Peters
5cc3e6dc8b
Add GRPC querier and REST gateway
2020-10-27 15:01:22 +01:00
Alex Peters
bcb00d6017
Upgrade to Stargate commits
2020-10-27 15:01:22 +01:00
Ethan Frey
2b34ee60cb
Return raw stored bytes for raw queries
2020-10-06 17:48:13 +02:00
Alex Peters
0e6d7243e9
Support gaps in query code list
2020-08-06 12:30:07 +02:00
Ethan Frey
f74e077a27
Properly charge gas in keeper
2020-07-27 13:44:18 +02:00
Alex Peters
ad520ed1d3
Return init/migration msg with contract history
2020-07-20 17:22:10 +02:00
Alex Peters
430da1dbf5
Remove unused arguments
2020-07-20 14:44:19 +02:00
Alex Peters
00adcb4a58
Add contract history query handler
2020-07-20 14:44:19 +02:00
Alex Peters
72a1a45030
Use prefix store for contract history
2020-07-20 14:44:19 +02:00
Alex Peters
e6e4839875
Genesis export via code prefix
2020-07-20 14:42:26 +02:00
Alex Peters
f8dbfd12f0
Store code history for contract
2020-07-16 16:49:14 +02:00
Alexander Peters
ebac9aac66
Implement CLI/REST server support for new messages ( #131 )
...
* Cleanup ContractInfo type
* Add admin to contract instanciation
* Add cli commands for new TX
* Add rest support for new TX
* Update changelog
* Make optional admin flag for better UX
* Add flag to not accidentally clear admin on update
2020-06-05 15:08:11 +02:00
Ethan Frey
95bd9e8efa
Update alias.go, format, clean imports
2020-05-13 22:55:07 +02:00
Ethan Frey
c829fcff5a
Rename import from cosmwasm/wasmd to CosmWasm/wasmd
2020-05-13 22:15:40 +02:00
Ethan Frey
fee390d8f4
Return all info with GetCode, not just wasm
2020-03-01 21:20:34 +01:00
Ethan Frey
4bac7d7daf
Return null not error when query missing contract
2020-02-29 20:50:38 +01:00
Ethan Frey
443c6b9614
Also redact Created field when showing contract details
2020-02-27 19:07:56 +01:00
Ethan Frey
340fa4c5b2
Test and fix the sorting and redacting of created at
2020-02-27 19:07:56 +01:00
Ethan Frey
863c5e1439
Cleanup rest - no null init_msg, error on no such contract
2020-02-27 18:08:06 +01:00
Ethan Frey
502e02429e
Properly emit events for every sub-message dispatched by x/wasm
2020-02-27 15:46:27 +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
28591613fa
querySmart returns base64-encoded contract result
...
queryRaw and queryAllState return []model object
(array of key-hex and value-base64)
2020-02-10 20:10:45 +01:00
Ethan Frey
d3abcc69c0
Include source and builder in code info return info
2020-02-09 22:12:29 +01:00
Ethan Frey
a458606b17
Add /wasm/code/{codeID}/contracts to rest to get all contract info by codeID
2020-02-09 22:09:48 +01:00
Ethan Frey
cb148f0d13
Sort the contract addresses on queries
2020-02-09 21:59:20 +01:00
Ethan Frey
33c4e92bdf
Fix tests
2020-01-24 11:23:10 +01:00
Ethan Frey
9d2cbc9c66
WIP: fixing types in tests
2020-01-24 08:19:32 +01:00
Ethan Frey
99be1ca85e
Update data types
2020-01-24 08:19:32 +01:00
Ethan Frey
94667e9678
x/wasm/internal compiles
2020-01-23 19:10:08 +01:00
Ethan Frey
a3ec9f95a5
Updated tendermint cmn imports
2020-01-23 18:59:38 +01:00
Ethan Frey
a93195a21b
Fix tests
2020-01-16 14:46:44 +01:00
Ethan Frey
275c70bcff
Overhauled errors to sdk/errors
2020-01-16 14:35:25 +01:00
Ethan Frey
b891ecd064
Update api call, wasmd builds
2020-01-16 12:24:25 +01:00
Alex Peters
a1e01e5df4
ContrctQueries return non nil model slice
2020-01-14 21:45:43 +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
Sunny Aggarwal
e9c772845f
rename Contract -> ContractInfo
2020-01-09 14:53:36 -05:00
Sunny Aggarwal
5d21232326
added genesis functions
2020-01-06 19:42:44 -05:00
Ethan Frey
a3e7c30a2b
Last query cleanup
2019-11-22 19:26:39 +01:00
Ethan Frey
c164ffdce1
Clean up data types for queries
2019-11-22 19:15:14 +01:00
Ethan Frey
4a77f43b63
Add query command for wasm code
2019-11-22 17:50:10 +01:00
Ethan Frey
a1369d799f
Update imports in x/wasmd
2019-11-22 17:05:38 +01:00
Ethan Frey
4e8001b01f
Raw copy from cosmos/modules (still on v0.37)
2019-11-22 16:59:11 +01:00