Skip to content

Research state management abstraction #175

Open
0 of 2 issues completed
Open
0 of 2 issues completed
@vladjdk

Description

@vladjdk

Figure out a way to abstract all the state management in functions.

An example of something that developers should not consider:

// We don't need this part anymore

if contract.CallerAddress != origin && msg.Amount.Denom == evmtypes.GetEVMCoinDenom() {
		scaledAmt := evmtypes.ConvertAmountTo18DecimalsBigInt(msg.Amount.Amount.BigInt())
		p.SetBalanceChangeEntries(cmn.NewBalanceChangeEntry(delegatorHexAddr, scaledAmt, cmn.Sub))
	}

Find a way to allow users to omit this part but still have balances properly updated.

In the ideal scenario, there are no wrappers.

Sub-issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions