Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cctdaniel committed Nov 6, 2024
1 parent 9633c25 commit eeeaaf5
Show file tree
Hide file tree
Showing 3 changed files with 271 additions and 269 deletions.
51 changes: 19 additions & 32 deletions target_chains/ethereum/contracts/contracts/pulse/IPulse.sol
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,9 @@ interface IPulseConsumer {

interface IPulse {
// Events
event PriceUpdateRequested(
uint64 indexed sequenceNumber,
address indexed provider,
uint256 publishTime,
bytes32[] priceIds,
address requester
);
event ProviderRegistered(PulseState.ProviderInfo providerInfo);

event PriceUpdateRequested(PulseState.Request request);

event PriceUpdateExecuted(
uint64 indexed sequenceNumber,
Expand All @@ -30,18 +26,18 @@ interface IPulse {
bytes32[] priceIds
);

event ProviderRegistered(
address indexed provider,
uint128 feeInWei,
bytes uri
);

event ProviderFeeUpdated(
address indexed provider,
uint128 oldFeeInWei,
uint128 newFeeInWei
);

event ProviderUriUpdated(
address indexed provider,
bytes oldUri,
bytes newUri
);

event ProviderWithdrawn(
address indexed provider,
address indexed recipient,
Expand All @@ -54,12 +50,6 @@ interface IPulse {
address newFeeManager
);

event ProviderUriUpdated(
address indexed provider,
bytes oldUri,
bytes newUri
);

event ProviderMaxNumPricesUpdated(
address indexed provider,
uint32 oldMaxNumPrices,
Expand All @@ -80,7 +70,6 @@ interface IPulse {
address provider,
uint256 publishTime,
bytes32[] calldata priceIds,
bytes[] calldata updateData,
uint256 callbackGasLimit
) external payable returns (uint64 sequenceNumber);

Expand All @@ -97,30 +86,33 @@ interface IPulse {

function setProviderFee(uint128 newFeeInWei) external;

function setProviderFeeAsFeeManager(
address provider,
uint128 newFeeInWei
) external;

function setProviderUri(bytes calldata uri) external;

function withdraw(uint128 amount) external;

function withdrawAsFeeManager(address provider, uint128 amount) external;

function setProviderUri(bytes calldata uri) external;

// Getters
function getFee(address provider) external view returns (uint128 feeAmount);

function getDefaultProvider() external view returns (address);
function getPythFeeInWei() external view returns (uint128 pythFeeInWei);

function getAccruedPythFees()
external
view
returns (uint128 accruedPythFeesInWei);

function getDefaultProvider() external view returns (address);

function getProviderInfo(
address provider
) external view returns (PulseState.ProviderInfo memory info);

function getAdmin() external view returns (address admin);

function getPythFeeInWei() external view returns (uint128 pythFeeInWei);

function getRequest(
address provider,
uint64 sequenceNumber
Expand All @@ -129,10 +121,5 @@ interface IPulse {
// Setters
function setFeeManager(address manager) external;

function setProviderFeeAsFeeManager(
address provider,
uint128 newFeeInWei
) external;

function setMaxNumPrices(uint32 maxNumPrices) external;
}
Loading

0 comments on commit eeeaaf5

Please sign in to comment.