github.com/ethereumproject/go-ethereum@v5.5.2+incompatible/core/state/mlog.go (about)

     1  package state
     2  
     3  import "github.com/ethereumproject/go-ethereum/logger"
     4  
     5  var mlogState = logger.MLogRegisterAvailable("state", mlogStateLines)
     6  
     7  var mlogStateLines = []*logger.MLogT{
     8  	mlogStateCreateObject,
     9  	mlogStateAddBalanceObject,
    10  	mlogStateSubBalanceObject,
    11  }
    12  
    13  var mlogStateCreateObject = &logger.MLogT{
    14  	Description: `Called once when a state object is created.
    15  $OBJECT.NEW is the address of the newly-created object.
    16  If there was an existing account with the same address, it is overwritten and its address returned as the $OBJECT.PREV value.`,
    17  	Receiver: "STATE",
    18  	Verb:     "CREATE",
    19  	Subject:  "OBJECT",
    20  	Details: []logger.MLogDetailT{
    21  		{Owner: "OBJECT", Key: "NEW", Value: "STRING"},
    22  		{Owner: "OBJECT", Key: "PREV", Value: "STRING"},
    23  	},
    24  }
    25  
    26  var mlogStateAddBalanceObject = &logger.MLogT{
    27  	Description: "Called once when the balance of an account (state object) is added to.",
    28  	Receiver:    "STATE",
    29  	Verb:        "ADD_BALANCE",
    30  	Subject:     "OBJECT",
    31  	Details: []logger.MLogDetailT{
    32  		{Owner: "OBJECT", Key: "ADDRESS", Value: "STRING"},
    33  		{Owner: "OBJECT", Key: "NONCE", Value: "INT"},
    34  		{Owner: "OBJECT", Key: "BALANCE", Value: "BIGINT"},
    35  		{Owner: "ADD_BALANCE", Key: "AMOUNT", Value: "BIGINT"},
    36  	},
    37  }
    38  
    39  var mlogStateSubBalanceObject = &logger.MLogT{
    40  	Description: "Called once when the balance of an account (state object) is subtracted from.",
    41  	Receiver:    "STATE",
    42  	Verb:        "SUB_BALANCE",
    43  	Subject:     "OBJECT",
    44  	Details: []logger.MLogDetailT{
    45  		{Owner: "OBJECT", Key: "ADDRESS", Value: "STRING"},
    46  		{Owner: "OBJECT", Key: "NONCE", Value: "INT"},
    47  		{Owner: "OBJECT", Key: "BALANCE", Value: "BIGINT"},
    48  		{Owner: "SUB_BALANCE", Key: "AMOUNT", Value: "BIGINT"},
    49  	},
    50  }