Skip to content

Commit ea80262

Browse files
committed
fix: valid until in payment service
1 parent 79f9460 commit ea80262

File tree

8 files changed

+2248
-2372
lines changed

8 files changed

+2248
-2372
lines changed

aggregation_mode/proof_aggregator/aggregation_programs/sp1/src/chunk_aggregator_main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use sp1_aggregation_program::{ChunkAggregatorInput, Hash32};
77

88
// Generated with `make proof_aggregator_write_program_ids` and copied from program_ids.json
99
pub const USER_PROOFS_AGGREGATOR_PROGRAM_VK_HASH: [u32; 8] = [
10-
1783055897, 486133361, 187778113, 1130718359, 781594768, 1430967573, 1107098593, 1119970919,
10+
1350508345, 1966561241, 1188269068, 690044042, 29282343, 1675238547, 289586595, 1376390494,
1111
];
1212

1313
pub fn main() {

aggregation_mode/proof_aggregator/programs_ids.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"risc0_chunk_aggregator_image_id": "0xd8cfdd5410c70395c0a1af1842a0148428cc46e353355faccfba694dd4862dbf",
33
"risc0_user_proofs_aggregator_image_id": "0xfd24332ba3dfbe883c7be9f0aad5aa4c75db0f002f51dae4e8da562a91be90a1",
44
"risc0_user_proofs_aggregator_image_id_bytes": "[253, 36, 51, 43, 163, 223, 190, 136, 60, 123, 233, 240, 170, 213, 170, 76, 117, 219, 15, 0, 47, 81, 218, 228, 232, 218, 86, 42, 145, 190, 144, 161]",
5-
"sp1_chunk_aggregator_vk_hash": "0x00ba19eed0aaeb0151f07b8d3ee7c659bcd29f3021e48fb42766882f55b84509",
6-
"sp1_user_proofs_aggregator_vk_hash": "0x00d48e8c3273e739c4598a220c36564975d2c6121552b54560fe7df0c2c16667",
7-
"sp1_user_proofs_aggregator_vk_hash_words": "[1783055897, 486133361, 187778113, 1130718359, 781594768, 1430967573, 1107098593, 1119970919]"
5+
"sp1_chunk_aggregator_vk_hash": "0x007df9874549bf8d4c135c40eae4a1b182677356699e528ba0305b3dcc774090",
6+
"sp1_user_proofs_aggregator_vk_hash": "0x00a0fe3e73d4dd5f66369c60629213c8a037da04f8f68724c8a15ed1d20a0d5e",
7+
"sp1_user_proofs_aggregator_vk_hash_words": "[1350508345, 1966561241, 1188269068, 690044042, 29282343, 1675238547, 289586595, 1376390494]"
88
}

contracts/scripts/anvil/state/alignedlayer-deployed-anvil-state.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

contracts/scripts/anvil/state/eigenlayer-deployed-anvil-state.json

Lines changed: 2174 additions & 2363 deletions
Large diffs are not rendered by default.

contracts/scripts/anvil/state/risc0-deployed-anvil-state.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

contracts/scripts/anvil/state/sp1-deployed-anvil-state.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

contracts/src/core/AggregationModePaymentService.sol

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,11 @@ contract AggregationModePaymentService is Initializable, OwnableUpgradeable, UUP
3232
receive() external payable {
3333
uint256 amount = msg.value;
3434

35-
if (amount < 1) {
35+
// 1 eth
36+
if (amount < 1000000000000000000) {
3637
revert InvalidDepositAmount(amount);
3738
}
3839

39-
emit UserPayment(msg.sender, amount, block.timestamp, block.timestamp + paymentValidUntilSeconds * amount);
40+
emit UserPayment(msg.sender, amount, block.timestamp, block.timestamp + paymentValidUntilSeconds);
4041
}
4142
}

network_params.yaml

Lines changed: 64 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)