Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
cctdaniel committed Nov 5, 2024
1 parent a7a391a commit 9633c25
Showing 1 changed file with 10 additions and 16 deletions.
26 changes: 10 additions & 16 deletions target_chains/ethereum/contracts/contracts/pulse/IPulse.sol
Original file line number Diff line number Diff line change
Expand Up @@ -99,33 +99,20 @@ interface IPulse {

function withdraw(uint128 amount) external;

// Add to interface
function withdrawAsFeeManager(address provider, uint128 amount) external;

// Add to Provider management section
function setProviderUri(bytes calldata uri) external;

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

function getDefaultProvider() external view returns (address);

// Add to interface
function setFeeManager(address manager) external;

// Add to interface
function setProviderFeeAsFeeManager(
address provider,
uint128 newFeeInWei
) external;

// Add to Getters section
function getAccruedPythFees()
external
view
returns (uint128 accruedPythFeesInWei);

// Add to Getters section
function getProviderInfo(
address provider
) external view returns (PulseState.ProviderInfo memory info);
Expand All @@ -134,11 +121,18 @@ interface IPulse {

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

function setMaxNumPrices(uint32 maxNumPrices) external;

// Add to Getters section
function getRequest(
address provider,
uint64 sequenceNumber
) external view returns (PulseState.Request memory req);

// Setters
function setFeeManager(address manager) external;

function setProviderFeeAsFeeManager(
address provider,
uint128 newFeeInWei
) external;

function setMaxNumPrices(uint32 maxNumPrices) external;
}

0 comments on commit 9633c25

Please sign in to comment.