Alex Peters
7b2cfa48ed
Strip message events and reorder
2021-08-11 14:08:56 +02:00
Alex Peters
7bc048e1ed
Add tests for events
2021-08-11 13:12:46 +02:00
Ethan Frey
a579455fdb
Update ibc reflect contract from CosmWasm PR 1046
2021-08-11 11:00:39 +02:00
Alex Peters
e9156be200
Refactor events
2021-08-10 18:19:16 +02:00
Ethan Frey
095ba8cb2f
update test contracts to cosmwasm v0.16.0
2021-08-05 18:53:07 +02:00
Alex Peters
4f22421404
Add contract features to debug logging
...
(cherry picked from commit ccd075200f704c39ae619d36be781092711bbd41)
2021-08-05 15:45:08 +02:00
Ethan Frey
0f6f437b38
Merge pull request #570 from CosmWasm/561-better-ibc-contract-interface
...
Better ibc contract interface
2021-07-29 09:13:59 +02:00
Ethan Frey
12b6eb4fa8
Update gas price
2021-07-28 23:05:05 +02:00
Ethan Frey
b25956d0a1
Use v0.16.0-rc5 contracts
2021-07-28 23:04:02 +02:00
Ethan Frey
0fe0b6223a
Fix relay tests
2021-07-28 22:15:31 +02:00
Ethan Frey
cf854947e9
Change IBCContractKeeper interface, code builds
2021-07-28 22:11:27 +02:00
Ethan Frey
103285337c
Update comments
2021-07-28 13:08:50 +02:00
Ethan Frey
b34290772b
Adjust gas prices in tests
2021-07-28 13:06:09 +02:00
Ethan Frey
774034f862
Make gas register tests more flexible, fix counting bug
2021-07-28 13:04:47 +02:00
Ethan Frey
5149372e53
Change default message size cost to 0
2021-07-28 13:04:47 +02:00
Ethan Frey
c9360f63d1
keeper and types pass tests
2021-07-28 11:24:44 +02:00
Ethan Frey
6bde321974
x/wasm/keeper compiled
2021-07-28 11:24:44 +02:00
Ethan Frey
6f720a4c88
PR Comment: move where truncating address length to 20
2021-07-28 11:18:58 +02:00
Ethan Frey
92850081f0
Fix last tests
2021-07-28 11:18:58 +02:00
Ethan Frey
b8b0f209b2
Update tests (new default contract addr)
2021-07-28 11:18:21 +02:00
Ethan Frey
1330b115d6
Update hash algorithm
2021-07-28 11:18:21 +02:00
Ethan Frey
a428d5c605
Add filtering to logic, tests pass
2021-07-28 10:17:24 +02:00
Ethan Frey
3016668d29
Add failing tests showing nothing filtered now
2021-07-28 10:14:06 +02:00
Ethan Frey
699fbbc215
Changed references in code - 2 broken tests
2021-07-27 14:25:33 +02:00
Ethan Frey
d540e00967
Update with PR comments
2021-07-27 14:15:20 +02:00
Ethan Frey
98b4a12891
Better event tests
2021-07-26 22:20:08 +02:00
Ethan Frey
166f9dc78e
Tests compile and pass
2021-07-26 22:11:29 +02:00
Ethan Frey
be79de6c28
Add error messages on invalid event attributes
2021-07-26 22:05:19 +02:00
Ethan Frey
7d92b4bc13
Fix tests
2021-07-22 15:55:36 +02:00
Ethan Frey
77a38e25ef
Contracts to v0.16.0-rc4, wasmvm to v0.16.0-rc2
2021-07-22 15:53:40 +02:00
Ethan Frey
fec9153e32
Return custom events from IBC calls as well
2021-07-22 10:24:50 +02:00
Ethan Frey
d68f27f4d0
Test for events returned from IBC
2021-07-22 10:24:50 +02:00
Ethan Frey
a464d6b336
Reserve all attributes that start with _
2021-07-22 10:05:23 +02:00
Ethan Frey
81c46ae567
Use _contract_address attribute in emitted events
2021-07-21 22:15:49 +02:00
Ethan Frey
d1f4ae398c
Update to cosmwasm 0.16.0-rc3 contracts, with some fixes
2021-07-21 22:05:45 +02:00
Ethan Frey
a3be0164fb
Keeper tests pass
2021-07-21 21:48:39 +02:00
Ethan Frey
8d73c2d657
IBC Code compiles (non-test)
2021-07-21 21:38:58 +02:00
Ethan Frey
e23ee1765a
Bump wasmvm and testdata to v0.16.0-rc1
2021-07-21 21:12:07 +02:00
Alex Peters
b0b1fa88bc
Upgrade wasmvm v0.15.x
2021-07-07 09:53:03 +02:00
Alex Peters
b0885b03c9
Empty (non nil) reply data can overwrites response
2021-06-25 10:44:50 +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
Alexander Peters
1ada14ed52
Store contract response in event ( #535 )
...
* Store contract response in event
* Review feedback
2021-06-14 08:57:04 +02:00
Alexander Peters
f8e39bf5cd
Merge pull request #534 from CosmWasm/response_428
...
Cleanup keeper result types
2021-06-14 08:56:05 +02:00
Alexander Peters
3b82807e81
Merge pull request #537 from CosmWasm/check_coin
...
Verify converted coin
2021-06-14 08:34:48 +02:00
Alex Peters
44e7669611
Empty submsg result does not overwrite
2021-06-14 08:28:46 +02:00
Alex Peters
110da0f2c3
Verify converted coin
2021-06-11 15:04:36 +02:00
Alex Peters
0dd695c126
Cleanup keeper result types
2021-06-11 12:38:30 +02:00
Alex Peters
7f5200b9dd
Add cost and api cost options
2021-06-11 11:46:49 +02:00
Ethan Frey
6230c3fd0e
Merge pull request #529 from CosmWasm/max_gas_528
...
Remove max gas limit
2021-06-07 11:44:48 +02:00
Alex Peters
470b2dacc7
Test Pinned contract does not loop forever
2021-06-07 11:28:10 +02:00
Alex Peters
c637add01c
Remove max gas limit
2021-06-07 10:46:26 +02:00
Alex Peters
2f2d59a151
Allow access to contract address builder
2021-06-01 10:42:07 +02:00
Alex Peters
ed60864bf2
Use interface for better decoupling
2021-06-01 08:39:06 +02:00
Ethan Frey
0576bab625
Update deps, contracts, and Dockerfile to v0.14.0
2021-05-03 17:11:46 +02:00
Alexander Peters
3d4b3d184f
Upgrade to wasmvm v0.14.0-rc1 ( #508 )
...
* Upgrade to wasmvm v0.14.0-rc1
* Update contracts from cosmwasm#910, re-enable test
* Fix parsing in query type
Co-authored-by: Ethan Frey <ethanfrey@users.noreply.github.com>
2021-04-30 08:26:41 +02:00
Alexander Peters
70dedadb9c
Monitor WasmVM cache metrics ( #503 )
...
* Start collect WasmVM cache metrics
* Review comments
* Integrate wasmvm metrics
* Bring all together
2021-04-28 15:08:54 +02:00
Ethan Frey
846611bcd2
Update to wasmvm v0.14.0-beta5 ( #504 )
...
* Bump deps and contracts to v0.14.0-beta5
* Add admin field/variants to WasmMsg handling
* Compiles
* Update usage of IBC Timeout in tests
* Minor doc/test/Dockerfile updates
Co-authored-by: Alex Peters <alpe@users.noreply.github.com>
2021-04-28 14:35:48 +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
c67cf14db1
Merge pull request #497 from CosmWasm/list_contract_323
...
Improve list contracts by code query
2021-04-27 11:38:07 +02:00
Alex Peters
8c7967e5b4
Review feedback
2021-04-27 09:04:58 +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
c377d7110e
List contract address without other data
2021-04-23 15:15:54 +02:00
Alex Peters
8ef2d2695b
Persist last code update with contract lookup index
2021-04-23 13:29:14 +02:00
Alex Peters
aabc575ff4
Fix InitializePinnedCodes
2021-04-16 13:39:15 +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
Alex Peters
39eed79466
Better interface name
2021-04-13 10:40:13 +02:00
Alex Peters
9ec97b5de9
Handle wasmvm Burn message
2021-04-13 10:27:23 +02:00
Alex Peters
1a355dcb26
Continue wasmvm version upgrade
2021-04-13 10:27:05 +02:00
Ethan Frey
42ca87d161
Handle ReplySuccess + ReplyError properly
2021-04-12 22:14:43 +02:00
Ethan Frey
1bec9259aa
Test to show conditional replies not implemented
2021-04-12 22:11:07 +02:00
Ethan Frey
84a6c4d7f4
Fix gas prices
2021-04-12 21:49:43 +02:00
Ethan Frey
6189e17271
Add ReplyOn fields to SubMsg, state is bech32 not canonical addresses
2021-04-12 21:39:19 +02:00
Ethan Frey
39856bf028
Deps and contracts to v0.14.0-beta3
2021-04-12 21:27:11 +02:00
Alex Peters
55ac19bc7e
Public CoinTransferrer interface
2021-03-24 14:11:43 +01:00
Alex Peters
408bba14a5
Extract contract keeper
2021-03-24 14:11:42 +01:00
Alex Peters
03bf7b0adf
Introduce new interfaces for extendability
2021-03-24 14:11:42 +01:00
loloicci
85173c69d5
fix a typo in comment
2021-03-23 16:18:07 +09: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