Skip to content

Commit c7aaf83

Browse files
committed
doc: add signatures for the error types
1 parent aa971cb commit c7aaf83

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

target_chains/ethereum/pulse_sdk/solidity/SchedulerErrors.sol

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,37 +4,56 @@ pragma solidity ^0.8.0;
44

55
library SchedulerErrors {
66
// Authorization errors
7+
8+
/// 0x82b42900
79
error Unauthorized();
810

911
// Subscription state errors
12+
13+
/// 0xe7262b66
1014
error InactiveSubscription();
15+
/// 0xf4d678b8
1116
error InsufficientBalance();
17+
/// 0xf6181305
1218
error CannotUpdatePermanentSubscription();
1319

1420
// Price feed errors
21+
/// 0xae2eaaa9
1522
error InvalidPriceId(bytes32 providedPriceId, bytes32 expectedPriceId);
23+
/// 0xf14f93d1
1624
error InvalidPriceIdsLength(uint256 providedLength, uint256 expectedLength);
25+
/// 0x94ec8d9a
1726
error EmptyPriceIds();
27+
/// 0xb3d1acf6
1828
error TooManyPriceIds(uint256 provided, uint256 maximum);
29+
/// 0xe3509591
1930
error DuplicatePriceId(bytes32 priceId);
31+
/// 0xe56ccfaa
2032
error PriceSlotMismatch();
2133

2234
// Update criteria errors
35+
/// 0xa7bcd3ae
2336
error InvalidUpdateCriteria();
37+
/// 0x7e8b0263
2438
error UpdateConditionsNotMet();
39+
/// 0x38fdebae
2540
error TimestampTooOld(
2641
uint256 providedUpdateTimestamp,
2742
uint256 currentTimestamp
2843
);
44+
/// 0x06daa54d
2945
error TimestampOlderThanLastUpdate(
3046
uint256 providedUpdateTimestamp,
3147
uint256 lastUpdatedAt
3248
);
3349

3450
// Whitelist errors
51+
/// 0xbe4b60f7
3552
error TooManyWhitelistedReaders(uint256 provided, uint256 maximum);
53+
/// 0x9941ad5f
3654
error DuplicateWhitelistAddress(address addr);
3755

3856
// Payment errors
57+
/// 0xec58cd53
3958
error KeeperPaymentFailed();
4059
}

0 commit comments

Comments
 (0)