packages.valory.skills.transaction_
settlement_
abci.models
Custom objects for the transaction settlement ABCI application.
SharedState Objects
class SharedState(BaseSharedState)
Keep the current shared state of the skill.
MutableParams Objects
@dataclass
class MutableParams(TypeCheckMixin)
Collection for the mutable parameters.
GasParams Objects
@dataclass
class GasParams(BaseParams)
Gas parameters.
TransactionParams Objects
class TransactionParams(BaseParams)
Transaction settlement agent-specific parameters.
__
init__
def __init__(*args: Any, **kwargs: Any) -> None
Initialize the parameters object.
We keep track of the nonce and tip across rounds and periods. We reuse it each time a new raw transaction is generated. If at the time of the new raw transaction being generated the nonce on the ledger does not match the nonce on the skill, then we ignore the skill nonce and tip (effectively we price fresh). Otherwise, we are in a re-submission scenario where we need to take account of the old tip.
Arguments:
args
: positional argumentskwargs
: keyword arguments