fix: refresh generated artifacts for rewards replay guard

This commit is contained in:
Ahmad Kaouk 2026-04-15 10:36:50 +02:00
parent 9cbc1a0825
commit fe53da4138
No known key found for this signature in database
GPG key ID: CF4E030983820DA8
5 changed files with 555 additions and 526 deletions

View file

@ -1 +1 @@
107e07a8e4ac06299cc380520c6e811bd70c5661
964f27a76c22d4dfdba46a0289eb53b94cbbeb2e

File diff suppressed because one or more lines are too long

View file

@ -1,7 +1,7 @@
{
"storage": [
{
"astId": 138,
"astId": 152,
"contract": "src/DataHavenServiceManager.sol:DataHavenServiceManager",
"label": "_initialized",
"offset": 0,
@ -9,7 +9,7 @@
"type": "t_uint8"
},
{
"astId": 141,
"astId": 155,
"contract": "src/DataHavenServiceManager.sol:DataHavenServiceManager",
"label": "_initializing",
"offset": 1,
@ -17,7 +17,7 @@
"type": "t_bool"
},
{
"astId": 671,
"astId": 769,
"contract": "src/DataHavenServiceManager.sol:DataHavenServiceManager",
"label": "__gap",
"offset": 0,
@ -41,7 +41,7 @@
"type": "t_array(t_uint256)49_storage"
},
{
"astId": 23887,
"astId": 103284,
"contract": "src/DataHavenServiceManager.sol:DataHavenServiceManager",
"label": "snowbridgeInitiator",
"offset": 0,
@ -49,7 +49,7 @@
"type": "t_address"
},
{
"astId": 23892,
"astId": 103289,
"contract": "src/DataHavenServiceManager.sol:DataHavenServiceManager",
"label": "validatorsAllowlist",
"offset": 0,
@ -57,15 +57,15 @@
"type": "t_mapping(t_address,t_bool)"
},
{
"astId": 23896,
"astId": 103293,
"contract": "src/DataHavenServiceManager.sol:DataHavenServiceManager",
"label": "_snowbridgeGateway",
"offset": 0,
"slot": "103",
"type": "t_contract(IGatewayV2)23591"
"type": "t_contract(IGatewayV2)95551"
},
{
"astId": 23901,
"astId": 103298,
"contract": "src/DataHavenServiceManager.sol:DataHavenServiceManager",
"label": "validatorEthAddressToSolochainAddress",
"offset": 0,
@ -73,7 +73,7 @@
"type": "t_mapping(t_address,t_address)"
},
{
"astId": 23905,
"astId": 103302,
"contract": "src/DataHavenServiceManager.sol:DataHavenServiceManager",
"label": "validatorSolochainAddressToEthAddress",
"offset": 0,
@ -81,7 +81,7 @@
"type": "t_mapping(t_address,t_address)"
},
{
"astId": 23908,
"astId": 103305,
"contract": "src/DataHavenServiceManager.sol:DataHavenServiceManager",
"label": "validatorSetSubmitter",
"offset": 0,
@ -89,15 +89,15 @@
"type": "t_address"
},
{
"astId": 23914,
"astId": 103311,
"contract": "src/DataHavenServiceManager.sol:DataHavenServiceManager",
"label": "strategiesAndMultipliers",
"offset": 0,
"slot": "107",
"type": "t_mapping(t_contract(IStrategy)7471,t_uint96)"
"type": "t_mapping(t_contract(IStrategy)26468,t_uint96)"
},
{
"astId": 23917,
"astId": 103314,
"contract": "src/DataHavenServiceManager.sol:DataHavenServiceManager",
"label": "_version",
"offset": 0,
@ -105,15 +105,15 @@
"type": "t_string_storage"
},
{
"astId": 23924,
"astId": 103323,
"contract": "src/DataHavenServiceManager.sol:DataHavenServiceManager",
"label": "rewardsSubmittedForEra",
"label": "rewardsSubmittedForWindow",
"offset": 0,
"slot": "109",
"type": "t_mapping(t_uint32,t_mapping(t_address,t_bool))"
"type": "t_mapping(t_uint32,t_mapping(t_uint32,t_mapping(t_address,t_bool)))"
},
{
"astId": 23929,
"astId": 103328,
"contract": "src/DataHavenServiceManager.sol:DataHavenServiceManager",
"label": "__GAP",
"offset": 0,
@ -150,12 +150,12 @@
"label": "bool",
"numberOfBytes": "1"
},
"t_contract(IGatewayV2)23591": {
"t_contract(IGatewayV2)95551": {
"encoding": "inplace",
"label": "contract IGatewayV2",
"numberOfBytes": "20"
},
"t_contract(IStrategy)7471": {
"t_contract(IStrategy)26468": {
"encoding": "inplace",
"label": "contract IStrategy",
"numberOfBytes": "20"
@ -174,9 +174,9 @@
"numberOfBytes": "32",
"value": "t_bool"
},
"t_mapping(t_contract(IStrategy)7471,t_uint96)": {
"t_mapping(t_contract(IStrategy)26468,t_uint96)": {
"encoding": "mapping",
"key": "t_contract(IStrategy)7471",
"key": "t_contract(IStrategy)26468",
"label": "mapping(contract IStrategy => uint96)",
"numberOfBytes": "32",
"value": "t_uint96"
@ -188,6 +188,13 @@
"numberOfBytes": "32",
"value": "t_mapping(t_address,t_bool)"
},
"t_mapping(t_uint32,t_mapping(t_uint32,t_mapping(t_address,t_bool)))": {
"encoding": "mapping",
"key": "t_uint32",
"label": "mapping(uint32 => mapping(uint32 => mapping(address => bool)))",
"numberOfBytes": "32",
"value": "t_mapping(t_uint32,t_mapping(t_address,t_bool))"
},
"t_string_storage": {
"encoding": "bytes",
"label": "string",

View file

@ -700,15 +700,9 @@ mod tests {
expected_multiplier_u96
);
let empty_calldata = encode_rewards_calldata(
token,
&[],
&[],
start_timestamp,
duration,
"empty",
)
.expect("Encoding should succeed");
let empty_calldata =
encode_rewards_calldata(token, &[], &[], start_timestamp, duration, "empty")
.expect("Encoding should succeed");
let empty_decoded =
submitRewardsCall::abi_decode(&empty_calldata, true).expect("Decoding should work");
let empty_submission = empty_decoded.submission;

View file

@ -2232,10 +2232,11 @@ export const dataHavenServiceManagerAbi = [
{
type: 'function',
inputs: [
{ name: '', internalType: 'uint32', type: 'uint32' },
{ name: '', internalType: 'uint32', type: 'uint32' },
{ name: '', internalType: 'address', type: 'address' },
],
name: 'rewardsSubmittedForEra',
name: 'rewardsSubmittedForWindow',
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
stateMutability: 'view',
},
@ -2353,7 +2354,6 @@ export const dataHavenServiceManagerAbi = [
{
type: 'function',
inputs: [
{ name: 'eraIndex', internalType: 'uint32', type: 'uint32' },
{
name: 'submission',
internalType:
@ -2732,10 +2732,11 @@ export const dataHavenServiceManagerAbi = [
{
type: 'error',
inputs: [
{ name: 'eraIndex', internalType: 'uint32', type: 'uint32' },
{ name: 'startTimestamp', internalType: 'uint32', type: 'uint32' },
{ name: 'duration', internalType: 'uint32', type: 'uint32' },
{ name: 'token', internalType: 'address', type: 'address' },
],
name: 'RewardsAlreadySubmittedForEra',
name: 'RewardsAlreadySubmittedForWindow',
},
{ type: 'error', inputs: [], name: 'SolochainAddressAlreadyAssigned' },
{ type: 'error', inputs: [], name: 'StrategyNotInOperatorSet' },
@ -11049,12 +11050,12 @@ export const readDataHavenServiceManagerOwner =
})
/**
* Wraps __{@link readContract}__ with `abi` set to __{@link dataHavenServiceManagerAbi}__ and `functionName` set to `"rewardsSubmittedForEra"`
* Wraps __{@link readContract}__ with `abi` set to __{@link dataHavenServiceManagerAbi}__ and `functionName` set to `"rewardsSubmittedForWindow"`
*/
export const readDataHavenServiceManagerRewardsSubmittedForEra =
export const readDataHavenServiceManagerRewardsSubmittedForWindow =
/*#__PURE__*/ createReadContract({
abi: dataHavenServiceManagerAbi,
functionName: 'rewardsSubmittedForEra',
functionName: 'rewardsSubmittedForWindow',
})
/**