@@ -62,6 +62,13 @@ pub struct EnvVarsMapping {
62
62
/// eth calls before running triggers; instead eth calls happen when
63
63
/// mappings call `ethereum.call`. Off by default.
64
64
pub disable_declared_calls : bool ,
65
+
66
+ /// Set by the flag `GRAPH_STORE_ERRORS_ARE_NON_DETERMINISTIC`. Off by
67
+ /// default. Setting this to `true` will revert to the old behavior of
68
+ /// treating all store errors as nondeterministic. This is a temporary
69
+ /// measure and can be removed after 2025-07-01, once we are sure the
70
+ /// new behavior works as intended.
71
+ pub store_errors_are_nondeterministic : bool ,
65
72
}
66
73
67
74
// This does not print any values avoid accidentally leaking any sensitive env vars
@@ -89,6 +96,7 @@ impl From<InnerMappingHandlers> for EnvVarsMapping {
89
96
ipfs_request_limit : x. ipfs_request_limit ,
90
97
allow_non_deterministic_ipfs : x. allow_non_deterministic_ipfs . 0 ,
91
98
disable_declared_calls : x. disable_declared_calls . 0 ,
99
+ store_errors_are_nondeterministic : x. store_errors_are_nondeterministic . 0 ,
92
100
}
93
101
}
94
102
}
@@ -123,4 +131,6 @@ pub struct InnerMappingHandlers {
123
131
allow_non_deterministic_ipfs : EnvVarBoolean ,
124
132
#[ envconfig( from = "GRAPH_DISABLE_DECLARED_CALLS" , default = "false" ) ]
125
133
disable_declared_calls : EnvVarBoolean ,
134
+ #[ envconfig( from = "GRAPH_STORE_ERRORS_ARE_NON_DETERMINISTIC" , default = "false" ) ]
135
+ store_errors_are_nondeterministic : EnvVarBoolean ,
126
136
}
0 commit comments