pub enum PolicyCriterionObservation {
Show 18 variants
EthValueObservation(EthValueObservation),
EvmAddressObservation(EvmAddressObservation),
EvmNetworkObservation(EvmNetworkObservation),
EvmDataObservation(EvmDataObservation),
EvmMessageObservation(EvmMessageObservation),
EvmTypedDataFieldObservation(EvmTypedDataFieldObservation),
EvmTypedDataVerifyingContractObservation(EvmTypedDataVerifyingContractObservation),
NetUsdChangeObservation(NetUsdChangeObservation),
SolAddressObservation(SolAddressObservation),
SolValueObservation(SolValueObservation),
SplAddressObservation(SplAddressObservation),
SplValueObservation(SplValueObservation),
MintAddressObservation(MintAddressObservation),
SolDataObservation(SolDataObservation),
SolMessageObservation(SolMessageObservation),
ProgramIdObservation(ProgramIdObservation),
SolNetworkObservation(SolNetworkObservation),
RateLimitingObservation(RateLimitingObservation),
}Expand description
The value taken from the operation that a criterion was compared against, discriminated by the criterion’s type. Amounts use the criterion’s units: integer strings of base units (wei, lamports, or token atomic units) and USD in integer cents, so a unit mistake in a rule shows as a difference in magnitude. A field is omitted when the operation has no such value; each field says when that happens.
Values come only from the request, the prepared user operation it names, transaction simulation, and the rate-limit counters the criterion reads. These are never returned: signatures, raw transaction bytes, calldata or instruction data beyond the decoded selector, instruction and arguments, the operations or accounts that make up a rate-limit total, and simulation results other than the net USD change. A string longer than its maxLength is cut to its first maxLength characters and marked truncated: true.
JSON schema
{
"description": "The value taken from the operation that a criterion was compared against, discriminated by the criterion's `type`. Amounts use the criterion's units: integer strings of base units (wei, lamports, or token atomic units) and USD in integer cents, so a unit mistake in a rule shows as a difference in magnitude. A field is omitted when the operation has no such value; each field says when that happens.\nValues come only from the request, the prepared user operation it names, transaction simulation, and the rate-limit counters the criterion reads. These are never returned: signatures, raw transaction bytes, calldata or instruction data beyond the decoded selector, instruction and arguments, the operations or accounts that make up a rate-limit total, and simulation results other than the net USD change. A string longer than its `maxLength` is cut to its first `maxLength` characters and marked `truncated: true`.",
"examples": [
{
"address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"type": "evmAddress"
}
],
"oneOf": [
{
"$ref": "#/components/schemas/EthValueObservation"
},
{
"$ref": "#/components/schemas/EvmAddressObservation"
},
{
"$ref": "#/components/schemas/EvmNetworkObservation"
},
{
"$ref": "#/components/schemas/EvmDataObservation"
},
{
"$ref": "#/components/schemas/EvmMessageObservation"
},
{
"$ref": "#/components/schemas/EvmTypedDataFieldObservation"
},
{
"$ref": "#/components/schemas/EvmTypedDataVerifyingContractObservation"
},
{
"$ref": "#/components/schemas/NetUSDChangeObservation"
},
{
"$ref": "#/components/schemas/SolAddressObservation"
},
{
"$ref": "#/components/schemas/SolValueObservation"
},
{
"$ref": "#/components/schemas/SplAddressObservation"
},
{
"$ref": "#/components/schemas/SplValueObservation"
},
{
"$ref": "#/components/schemas/MintAddressObservation"
},
{
"$ref": "#/components/schemas/SolDataObservation"
},
{
"$ref": "#/components/schemas/SolMessageObservation"
},
{
"$ref": "#/components/schemas/ProgramIdObservation"
},
{
"$ref": "#/components/schemas/SolNetworkObservation"
},
{
"$ref": "#/components/schemas/RateLimitingObservation"
}
]
}