cosmos-sdk/types
Aditya d247184157
Revert Capabilities on Failed Tx (#5999)
Reintroduce memKVStore to keep track of fwd and reverse mappings.

On reverse mapping, rather than store a mapping to marshalled
capability; we store the index.

capability.Keeper and all scopedKeeper have access to a capability
map that maps index to the capability pointer.

This is done to make sure that all writes to memKVStore get reverted
on a fail tx, while also allowing GetCapability to retrieve the original
memory pointer from the go map.

Go map must be accessed only by first going through the
memKVStore. SInce writes to go map cannot be automatically
reverted on tx failure, it gets cleaned up on failed GetCapability calls.

Closes: #5965
2020-04-16 18:42:13 +02:00
..
errors Decouple client/tx from x/auth (#5992) 2020-04-15 23:55:02 +02:00
module Remove dependency of types/module package on x/simulation (#5835) 2020-03-23 12:55:44 +01:00
rest spring cleanup (#5991) 2020-04-14 19:13:15 +00:00
simulation Remove dependency of types/module package on x/simulation (#5835) 2020-03-23 12:55:44 +01:00
abci.go Merge PR #4613: Only change rootmultistore hash when substore hashes change 2019-06-25 13:11:22 -04:00
address.go types: add test cases (#5747) 2020-03-04 17:49:59 +00:00
address_bench_test.go Exclude proto files from format (#5706) 2020-02-27 07:53:22 -03:00
address_test.go types: add test cases (#5747) 2020-03-04 17:49:59 +00:00
codec.go JSON Proto changes 2020-03-26 12:46:10 -04:00
coin.go x/ibc: IBC alpha (#5277) 2020-04-08 20:57:52 -04:00
coin_benchmark_test.go Merge PR #5449: Add New constructor for the DecCoin 2020-01-03 15:44:53 -05:00
coin_test.go Merge PR #5491: Protobuf Introduction + Types 2020-01-24 10:32:00 -05:00
config.go Merge PR #5562: Remove KeyringServiceName from the sdk.Config struct 2020-01-23 13:47:11 -05:00
config_test.go types: add test cases (#5747) 2020-03-04 17:49:59 +00:00
context.go Merge PR 5196: RecheckTx Optimizations 2019-10-23 10:43:58 -04:00
context_test.go spring cleanup (#5991) 2020-04-14 19:13:15 +00:00
dec_coin.go Merge PR #5491: Protobuf Introduction + Types 2020-01-24 10:32:00 -05:00
dec_coin_test.go Merge PR #5449: Add New constructor for the DecCoin 2020-01-03 15:44:53 -05:00
decimal.go Merge PR #5600: Migrate x/staking to Protobuf 2020-02-06 14:21:02 -05:00
decimal_test.go lint: various linting fixs (#5825) 2020-03-20 19:24:18 +00:00
denom.go Merge PR #5359: Params Validation 2019-12-10 11:48:57 -05:00
denom_test.go Merge PR #3747: Implement initial simple denom convert utils 2019-03-16 14:18:27 +01:00
events.go Merge PR #5527: Bump Tendermint Version to v0.33.0 2020-01-16 13:46:51 -08:00
events_test.go Merge PR #4648: Flatten events by type when stringified 2019-06-30 16:31:09 -04:00
handler.go fix types.ChainAnteDecorators() panic (#5742) 2020-03-03 16:57:33 +00:00
handler_test.go lint: various linting fixs (#5825) 2020-03-20 19:24:18 +00:00
int.go Merge PR #5600: Migrate x/staking to Protobuf 2020-02-06 14:21:02 -05:00
int_test.go types: add test cases (#5747) 2020-03-04 17:49:59 +00:00
invariant.go Merge PR #4832: print all failed invariants only 2019-08-05 14:21:44 -04:00
invariant_test.go types: add test cases (#5747) 2020-03-04 17:49:59 +00:00
proto.go Merge PR #5627: Regen Network/Slashing protobuf 2020-02-20 01:04:13 +01:00
queryable.go Merge PR #5421: Refactor Error Handling 2019-12-27 12:57:54 -05:00
result.go JSON Proto changes 2020-03-26 12:46:10 -04:00
result_test.go types: add test cases (#5747) 2020-03-04 17:49:59 +00:00
router.go x/ibc ICS24 (#5588) 2020-02-19 10:56:22 +01:00
staking.go Merge PR #5600: Migrate x/staking to Protobuf 2020-02-06 14:21:02 -05:00
staking_test.go lint: various linting fixs (#5825) 2020-03-20 19:24:18 +00:00
store.go Revert Capabilities on Failed Tx (#5999) 2020-04-16 18:42:13 +02:00
store_test.go types: add test cases (#5747) 2020-03-04 17:49:59 +00:00
tx_msg.go DRY code 2020-03-13 09:57:15 -04:00
tx_msg_test.go types: add test cases (#5747) 2020-03-04 17:49:59 +00:00
types.pb.go JSON Proto changes 2020-03-26 12:46:10 -04:00
types.proto JSON Proto changes 2020-03-26 12:46:10 -04:00
uint.go Merge PR #5491: Protobuf Introduction + Types 2020-01-24 10:32:00 -05:00
uint_test.go types: add test cases (#5747) 2020-03-04 17:49:59 +00:00
utils.go x/ibc: IBC alpha (#5277) 2020-04-08 20:57:52 -04:00
utils_test.go x/ibc: IBC alpha (#5277) 2020-04-08 20:57:52 -04:00