Skip to content

Commit e1f9783

Browse files
authored
chore(target_chains/ethereum): add Blast and Mode gas claim patches (#1440)
This change adds the change in our implementation that allowed support for enabling gas claims on Blast and Mode as a reference.
1 parent ce4019b commit e1f9783

File tree

2 files changed

+51
-0
lines changed

2 files changed

+51
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
diff --git a/target_chains/ethereum/contracts/contracts/pyth/Pyth.sol b/target_chains/ethereum/contracts/contracts/pyth/Pyth.sol
2+
index 6b08e386..aa34f117 100644
3+
--- a/target_chains/ethereum/contracts/contracts/pyth/Pyth.sol
4+
+++ b/target_chains/ethereum/contracts/contracts/pyth/Pyth.sol
5+
@@ -12,6 +12,10 @@ import "./PythGetters.sol";
6+
import "./PythSetters.sol";
7+
import "./PythInternalStructs.sol";
8+
9+
+interface IBlast {
10+
+ function configureClaimableGas() external;
11+
+}
12+
+
13+
abstract contract Pyth is
14+
PythGetters,
15+
PythSetters,
16+
@@ -722,4 +726,9 @@ abstract contract Pyth is
17+
function version() public pure returns (string memory) {
18+
return "1.4.3";
19+
}
20+
+
21+
+ function configureClaimableGas() external {
22+
+ IBlast(0x4300000000000000000000000000000000000002)
23+
+ .configureClaimableGas();
24+
+ }
25+
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
diff --git a/target_chains/ethereum/contracts/contracts/pyth/Pyth.sol b/target_chains/ethereum/contracts/contracts/pyth/Pyth.sol
2+
index 6b08e386..2c9b4285 100644
3+
--- a/target_chains/ethereum/contracts/contracts/pyth/Pyth.sol
4+
+++ b/target_chains/ethereum/contracts/contracts/pyth/Pyth.sol
5+
@@ -12,6 +12,10 @@ import "./PythGetters.sol";
6+
import "./PythSetters.sol";
7+
import "./PythInternalStructs.sol";
8+
9+
+interface ISFS {
10+
+ function register(address recipient) external returns (uint256 tokenId);
11+
+}
12+
+
13+
abstract contract Pyth is
14+
PythGetters,
15+
PythSetters,
16+
@@ -722,4 +726,10 @@ abstract contract Pyth is
17+
function version() public pure returns (string memory) {
18+
return "1.4.3";
19+
}
20+
+
21+
+ function configureClaimableGas() external {
22+
+ ISFS(0x8680CEaBcb9b56913c519c069Add6Bc3494B7020).register(
23+
+ address(this)
24+
+ );
25+
+ }
26+
}

0 commit comments

Comments
 (0)