You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Params are platform configurations that can be changed by spells.
Updated schema
typeParam@entity {
id: ID!description: String! # Human-readable descriptioncurrentValue: String! # String representation of the valueplatform: Platform! # Affected platformtarget: Target! # Affected contracthistory: [ParamHistory]!@derivedFrom(field:"param")
proposals: [ParamProposal]!@derivedFrom(field:"param")
}
typeParamHistory@entity {
id: ID!param: Param!oldValue: String!newValue: String!changedInSpell: Spell! # Spell that changed the Param when it was executedtimestamp: BigInt! # Time of spell execution
}
typeParamProposal@entity {
id: ID!param: Param!proposedValue: String!proposedInSpell: Spell!timestamp: BigInt! # Time of spell creationeta: BigInt! # Eta of spell
}
Current value
When a Spell is executed, the current value of the Param should be updated.
The current value of the Param will also often be set at contract execution. This must be handled manually for now, when the Params are initially created.
The old value will be placed in a proto object ParamHistory.
Proposed values
Params may have multiple proposed values from multiple spells. These are tracked and updated as a proto object ParamProposal.
The proto object only needs to be created when a new Spell is cast and does not need to be further updated.
The text was updated successfully, but these errors were encountered:
Description
Params are platform configurations that can be changed by spells.
Updated schema
Current value
When a Spell is executed, the current value of the Param should be updated.
The current value of the Param will also often be set at contract execution. This must be handled manually for now, when the Params are initially created.
The old value will be placed in a proto object
ParamHistory
.Proposed values
Params may have multiple proposed values from multiple spells. These are tracked and updated as a proto object
ParamProposal
.The proto object only needs to be created when a new Spell is cast and does not need to be further updated.
The text was updated successfully, but these errors were encountered: