-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from echonft/feature/blast
Added blast specific data on contract
- Loading branch information
Showing
17 changed files
with
2,266 additions
and
1,554 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ MAINNET_RPC_URL= | |
SEPOLIA_RPC_URL= | ||
PRIVATE_KEY= | ||
MAINNET_PRIVATE_KEY= | ||
ETHERSCAN_KEY= | ||
ETHERSCAN_API_KEY= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.18; | ||
|
||
enum YieldMode { | ||
AUTOMATIC, | ||
VOID, | ||
CLAIMABLE | ||
} | ||
|
||
enum GasMode { | ||
VOID, | ||
CLAIMABLE | ||
} | ||
|
||
interface IBlast { | ||
// configure | ||
function configureContract(address contractAddress, YieldMode _yield, GasMode gasMode, address governor) external; | ||
function configure(YieldMode _yield, GasMode gasMode, address governor) external; | ||
|
||
// base configuration options | ||
function configureClaimableYield() external; | ||
function configureClaimableYieldOnBehalf(address contractAddress) external; | ||
function configureAutomaticYield() external; | ||
function configureAutomaticYieldOnBehalf(address contractAddress) external; | ||
function configureVoidYield() external; | ||
function configureVoidYieldOnBehalf(address contractAddress) external; | ||
function configureClaimableGas() external; | ||
function configureClaimableGasOnBehalf(address contractAddress) external; | ||
function configureVoidGas() external; | ||
function configureVoidGasOnBehalf(address contractAddress) external; | ||
function configureGovernor(address _governor) external; | ||
function configureGovernorOnBehalf(address _newGovernor, address contractAddress) external; | ||
|
||
// claim yield | ||
function claimYield(address contractAddress, address recipientOfYield, uint256 amount) external returns (uint256); | ||
function claimAllYield(address contractAddress, address recipientOfYield) external returns (uint256); | ||
|
||
// claim gas | ||
function claimAllGas(address contractAddress, address recipientOfGas) external returns (uint256); | ||
function claimGasAtMinClaimRate(address contractAddress, address recipientOfGas, uint256 minClaimRateBips) | ||
external | ||
returns (uint256); | ||
function claimMaxGas(address contractAddress, address recipientOfGas) external returns (uint256); | ||
function claimGas(address contractAddress, address recipientOfGas, uint256 gasToClaim, uint256 gasSecondsToConsume) | ||
external | ||
returns (uint256); | ||
|
||
// read functions | ||
function readClaimableYield(address contractAddress) external view returns (uint256); | ||
function readYieldConfiguration(address contractAddress) external view returns (uint8); | ||
function readGasParams(address contractAddress) | ||
external | ||
view | ||
returns (uint256 etherSeconds, uint256 etherBalance, uint256 lastUpdated, GasMode); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.18; | ||
|
||
interface IBlastPoints { | ||
function configurePointsOperator(address operator) external; | ||
function configurePointsOperatorOnBehalf(address contractAddress, address operator) external; | ||
} |
Oops, something went wrong.