Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* [1607]: Switch to a local sdk version that has the locked coins injectable. * [1607]: Create initial escrow protos. * [1607]: Generate stuff from the protos. * [1607]: Make the genesis escrows nullable, and fix that field's tag. * [1607]: Change the GetEscrow response field name to amount (from escrow) since it's called amount everywhere else. * [1607]: Make the AccountEscrow entries nullable in the GetAllEscrow query. * [1607]: Write the new module.go and build things out enough to compile. Some stuff is still left to be implemented though. * [1607]: Add the escrow module to the app. * [1607]: Implement the rest of the keeper functions (and keys stuff). Finish the simulation decoder. Make the GetAllEscrow query pay attention to pagination even though I'll want to refactor it in a bit. * [1607]: Create the invariant. Add the bypass check to GetLockedCoins. Tweak the errors from ValidateNewEscrow to also make sense from the invariant. * [1607]: Overhaul the GetAllEscrow query to properly do pagination and entry combination. * [1607]: Add changelog entry. * [1607]: Require addresses in the genesis state to be unique. * [1607]: Change the GetLockedCoins function to just use GetEscrowCoins. * [1607]: Rename EscrowCoinPrefix to KeyPrefixEscrowCoin since the 'key prefix' part is the key piece of info I'm always looking for with those variables. Also, move the UnmarshalEscrowCoinValue function into keys.go (from keeper.go). * [1607]: Write unit tests on the types stuff. * [1607]: Write unit tests on the keys stuff. * [1607]: Start work on the keeper tests. * [1607]: Tweak the error message from GetEscrowCoin to have the address also. * [1607]: Add unit tests for GetEscrowCoin. * [1607]: add some context to the iterator errors. Remove the panic recovery from GetAllAccountEscrows since it's not actually needed. * [1607]: Write unit tests for GetEscrowCoins, IterateEscrow, IterateAllEscrow, GetAllAccountEscrows. * [1607]: Tweak a couple error messages to include extra info. * [1607]: Write unit tests on AddEscrow and RemoveEscrow. * [1607]: Add a couple TODOs for events. * [1607]: Set the bank keeper in the constructor. * [1607]: Add some panic checking assertion helpers. * [1607]: Refactor the keeper test stuff a bit to create some helpers to shorten a lot of the common long setup lines. Make all the helper funcs private so that the only public stuff is tests. * [1607]: Unit tests on InitGenesis and ExportGenesis. * [1607]: Create a helper to shorten the FundAccount calls. * [1607]: Tweak the messages from the invariant. * [1607]: Unit test on the invariant. * [1607]: Change an error form paginateAllEscrow to match other errors of that type. * [1607]: Move clearEscrowState and dumpEscrowState into the keeper.go file (from genesis). Switch to a getStore helper func. * [1607]: Unit tests on the grpc_query funcs. * [1607]: Add a couple more TODOs about the events. * [1607]: Fix RandomAccountEscrows to be able to pick up to all of the accounts. Fix RandomizedGenState to correctly update the bank genesis balances. * [1607]: Simulation unit tests. * [1607]: Switch to a pseudo-version of the sdk at commit 9d5e97ff8efd. That commit is on the prov/dwedul/bp-577-578-to-0.46 branch which is release-pio/v0.46.x plus a couple backports. * [1607]: Create a couple typed events. * [1607]: Add some constructors for the events and unit tests on the constructs and typed event conversion. * [1607]: Emit the events when adding or removing escrow. * [1607]: Switch back to a local version of the sdk since the spendable balances cli query. * [1607]: Add pagination stuff to the GetAllEscrow CLI command. * [1607]: Unit tests on the cli commands. * [1607]: Lint fixes. * [1607]: Comment out the TestEscrowRemovedFromSpendable tests until I can get a more public version of the SDK with that query in it. * [1607]: Switch back to the pseudo-version of the sdk. * [1607]: Add some TODOs for a few tests related to the bank keeper. * [1607]: Rename all the new files from escrow to hold. * [1607]: Regenerate protos after rename. * [1607]: Change the names of proto things from escrow to hold. * [1607]: Fix all the package imports. * [1607]: Fix the event names. * [1607]: Fix all uses of the word escrow in the types files. * [1607]: Fix all uses of the word escrow in the keeper files. * [1607]: Fix all uses of the word escrow in the cli files. * [1607]: Fix the last uses of the word escrow in the hold module. * [1607]: Output the hold gen state and new bank state during RandomizedGenState. * [1607]: Fix the marker send restriction test that started failing with the change in the SDK to subtract from the account before calling the send restriction. * [1607]: Unit tests on the GetLockedCoins fn and bank stuff. * [1607]: Put back import that somehow got deleted. * [1607]: Update changelog. * [1607]: Add the hold storkey to the TestAppImportExport. * [1607]: Switch back to a local version of the sdk that has a fix (hopefully) in it. * [1607]: Fix the one use of InputOutputCoins that broke when I switched the SDK. * [1607]: Tweak the hold simulation RandomizedGenState to give some better info to see if I can figure out what's going wrong with the sims. * [1607]: Add some extra debug output. * [1607]: Add most of a test looking at vesting and holds over time. * [1607]: Rename RemoveHold to ReleaseHold since that feels better. * [1607]: Bring in sdk changes and fix uses of SimulateFromSeed that changed. * [1607]: Update the simulation genesis tests to reflect recent changes. * [1607]: Add a count to the printed statement in RandomizedGenState. * [1607]: Fix the invariant to ignore the vesting locked funds when the block time is zero. Also fix it to properly include all the errors when there's more than two. * [1607] Switch back to a pseudo-version of the sdk at commit 0194df1aa61d. That commit is on the prov/dwedul/1607-delegate-locked-coins branch which is main-pio plus a couple a fix. * Change EventHoldRemoved to EventHoldReleased to match the what the keeper calls it and what sounds more accurate to me. * [1607]: Remove a Printf only added to help with debugging. * [1607]: Re-enable the TestHoldsNotInFromSpendable test since the sdk has it now. * [1607]: Finish the TestVestingAndHoldOverTime test. * [1607]: Add the spec readme and put a TODO in it to finish the rest. * [1607]: Finish spec docs. * [1607]: Update marker messages TOC to add missing entry (added automatically with make update-tocs). * [1607]: go mod tidy since somehow, one of the previous things made a dependency indirect. * [1607]: make proto-format. * [1607]: Add a reason field to the EventHoldAdded. * [1607]: Take in a reason for AddHold and pass it on to the event. * [1607]: Bump the sdk to v0.46.13-pio-2 (from v0.46.13-pio-1). * [1607]: Add the reason to the spec doc. * [1607]: Remove the RandomAccountHolds2 since I decided not to use that version. * [1607]: Remove the bank balances output when generating randomized genesis state. * [1607]: Get rid of addrCoinsStringsObjJSON since the only thing that needs it now is holdsString. * [1607]: 'Both' to 'All' for the EventHoldAdded since it has three attributes. * [1607]: Create some assertion funcs that I commonly want to use and have been copy/pasting. * [1607]: Switch to using the new assertion functions I just made. * [1607]: Move the assertions into their own package and split them into smaller files. This prevents a circular dependency where hold -> testutil -> app -> hold. * [1607]: Add a mutex to the mockTB so that race tests pass for it. I probably could have norace directived those tests, but this is probably better. * [1607]: Add some comments to the AssertPanicEquals funcs about how it's different from PanicsWithError and PanicsWithValue. * [1607]: Add some unit tests on the panic stuff to panic with anonymous structs. * [1607]: Make the event/attribute to strings functions public and add unit tests on them. * [1607]: Switch to assertions.AttrsToStrings in TestTypedEventToEvent. * [1607]: Turn TestHoldsString into a more standard test so I'm not just recreating HoldsString. * [1607]: Change some finalEsc variables to finalHold since esc was for escrow which this no longer is. * [1607]: Add some tests for AddHold and ReleaseHold as well as some specific ones for setHoldCoinAmount.
- Loading branch information