Skip to content
Open
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion config/global.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@
"corePeriphery": [
"ERC20Proxy",
"Executor",
"FeeCollector",
"FeeForwarder",
"GasZipPeriphery",
"LiFiTimelockController",
Expand Down
22 changes: 21 additions & 1 deletion config/networks.json
Original file line number Diff line number Diff line change
Expand Up @@ -612,6 +612,26 @@
"deployedWithSolcVersion": "0.8.17",
"create3Factory": "0x93FEC2C00BfE902F733B57c5a6CeeD7CD1384AE1"
},
"injective": {
"name": "injective",
"chainId": 1776,
"nativeAddress": "0x0000000000000000000000000000000000000000",
"nativeCurrency": "INJ",
"wrappedNativeAddress": "0x0000000088827d2d103ee2d9a6b781773ae03ffb",
"status": "active",
"type": "mainnet",
"rpcUrl": "https://sentry.evm-rpc.injective.network",
"verificationType": "blockscout",
"explorerUrl": "https://blockscout.injective.network",
"explorerApiUrl": "https://blockscout-api.injective.network/api/",
"multicallAddress": "0xcA11bde05977b3631167028862bE2a173976CA11",
"safeAddress": "0xA14dD3d7CA72aE2d08055813a2DEa4CaC40910B6",
"gasZipChainId": 0,
"isZkEVM": false,
"deployedWithEvmVersion": "cancun",
"deployedWithSolcVersion": "0.8.28",
"create3Factory": "0x68b068F7869CCE4FB95E0504096Ae336dd4ae7F6"
},
"ink": {
"name": "ink",
"chainId": 57073,
Expand Down Expand Up @@ -1580,4 +1600,4 @@
"deployedWithSolcVersion": "",
"create3Factory": ""
}
}
}
32 changes: 31 additions & 1 deletion config/whitelist.json
Original file line number Diff line number Diff line change
Expand Up @@ -7656,6 +7656,36 @@
]
}
],
"injective": [
{
"name": "FeeForwarder",
"address": "0x2C7475cBe7A9813dbe93C94297491ED7bD86cFab",
"selectors": [
{
"selector": "0x0e8ae67f",
"signature": "forwardNativeFees((address,uint256)[])"
},
{
"selector": "0x332d746b",
"signature": "forwardERC20Fees(address,(address,uint256)[])"
}
]
},
{
"name": "TokenWrapper",
"address": "0x1c9633Cf7E22C36e6b9EAE03CdA5F4042d746683",
"selectors": [
{
"selector": "0x3ccfd60b",
"signature": "withdraw()"
},
{
"selector": "0xd0e30db0",
"signature": "deposit()"
}
]
}
],
"ink": [
{
"name": "FeeCollector",
Expand Down Expand Up @@ -11737,4 +11767,4 @@
}
]
}
}
}
72 changes: 72 additions & 0 deletions deployments/injective.diamond.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
{
"LiFiDiamond": {
"Facets": {
"0xd62b8AC8568b0B947494F0D1d6f829D159577faf": {
"Name": "DiamondCutFacet",
"Version": "1.0.0"
},
"0xeaE5Fbe2303D33B45290e49A6f7996a81cA18c3a": {
"Name": "DiamondLoupeFacet",
"Version": "1.0.0"
},
"0xBb2A38a1f10f45453DEe9607a6479e0782b4B946": {
"Name": "AccessManagerFacet",
"Version": "1.0.0"
},
"0x15cF475Eb7462F8d09a3B0a112624B263f314952": {
"Name": "CalldataVerificationFacet",
"Version": "1.3.1"
},
"0x822C8b5e31948437268c4B55CB48abA660852a97": {
"Name": "EmergencyPauseFacet",
"Version": "1.0.1"
},
"0xce42dEd9C024240D4EC5Fc5eD2F45D542b78Faf6": {
"Name": "GenericSwapFacet",
"Version": "1.0.0"
},
"0x81320d8FC37A776D99c4818FE10d7d516aF8B355": {
"Name": "GenericSwapFacetV3",
"Version": "2.0.0"
},
"0xD63D886315b1Cdc522d64c65a9927cF7774316E6": {
"Name": "LiFiIntentEscrowFacet",
"Version": "1.1.2"
},
"0x3aeF2be30DDe6fAf277DB5DFCd72749497D5B077": {
"Name": "OwnershipFacet",
"Version": "1.0.0"
},
"0xcc267357b6666a3dc2009D368C9Ade4C533a5637": {
"Name": "PeripheryRegistryFacet",
"Version": "1.0.0"
},
"0xFFfA02772afae9917A8a6bE1E3e66D2Ea7719D52": {
"Name": "WhitelistManagerFacet",
"Version": "1.1.0"
},
"0x17C19CbDe88235E9056469A21110AAb731a63538": {
"Name": "WithdrawFacet",
"Version": "1.0.0"
}
},
"Periphery": {
"ERC20Proxy": "0x408F530786Fa2f8B638AA5B22BFd701cD2c9f45f",
"Executor": "0x60A5bBc9F40B79d341DB3f17f145f6b3897c9661",
"FeeCollector": "",
"FeeForwarder": "0x2C7475cBe7A9813dbe93C94297491ED7bD86cFab",
"GasZipPeriphery": "",
"LiFiDEXAggregator": "",
"LidoWrapper": "",
"OutputValidator": "",
"Patcher": "",
"Permit2Proxy": "",
"ReceiverAcrossV3": "",
"ReceiverAcrossV4": "",
"ReceiverChainflip": "",
"ReceiverOIF": "",
"ReceiverStargateV2": "",
"TokenWrapper": "0x1c9633Cf7E22C36e6b9EAE03CdA5F4042d746683"
}
}
}
20 changes: 20 additions & 0 deletions deployments/injective.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"AccessManagerFacet": "0xBb2A38a1f10f45453DEe9607a6479e0782b4B946",
"CalldataVerificationFacet": "0x15cF475Eb7462F8d09a3B0a112624B263f314952",
"DiamondCutFacet": "0xd62b8AC8568b0B947494F0D1d6f829D159577faf",
"DiamondLoupeFacet": "0xeaE5Fbe2303D33B45290e49A6f7996a81cA18c3a",
"EmergencyPauseFacet": "0x822C8b5e31948437268c4B55CB48abA660852a97",
"GenericSwapFacet": "0xce42dEd9C024240D4EC5Fc5eD2F45D542b78Faf6",
"GenericSwapFacetV3": "0x81320d8FC37A776D99c4818FE10d7d516aF8B355",
"LiFiIntentEscrowFacet": "0xD63D886315b1Cdc522d64c65a9927cF7774316E6",
"OwnershipFacet": "0x3aeF2be30DDe6fAf277DB5DFCd72749497D5B077",
"PeripheryRegistryFacet": "0xcc267357b6666a3dc2009D368C9Ade4C533a5637",
"WhitelistManagerFacet": "0xFFfA02772afae9917A8a6bE1E3e66D2Ea7719D52",
"WithdrawFacet": "0x17C19CbDe88235E9056469A21110AAb731a63538",
"LiFiDiamond": "0xeCeC3970Ca674278DA8D9B1c484ACaF6B20181F5",
"ERC20Proxy": "0x408F530786Fa2f8B638AA5B22BFd701cD2c9f45f",
"Executor": "0x60A5bBc9F40B79d341DB3f17f145f6b3897c9661",
"FeeForwarder": "0x2C7475cBe7A9813dbe93C94297491ED7bD86cFab",
"TokenWrapper": "0x1c9633Cf7E22C36e6b9EAE03CdA5F4042d746683",
"LiFiTimelockController": "0x7a708D4522B707EbA89e85Ca1279584C28F0f872"
}
2 changes: 2 additions & 0 deletions foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ gnosis = "${ETH_NODE_URI_GNOSIS}"
gravity = "${ETH_NODE_URI_GRAVITY}"
etherlink = "${ETH_NODE_URI_ETHERLINK}"
immutablezkevm = "${ETH_NODE_URI_IMMUTABLEZKEVM}"
injective = "${ETH_NODE_URI_INJECTIVE}"
jovay = "${ETH_NODE_URI_JOVAY}"
ink = "${ETH_NODE_URI_INK}"
kaia = "${ETH_NODE_URI_KAIA}"
Expand Down Expand Up @@ -178,6 +179,7 @@ hemi = { key = "${NO_ETHERSCAN_API_KEY_REQUIRED}", url = "https://explorer.hemi.
hyperevm = { key = "${MAINNET_ETHERSCAN_API_KEY}", url = "https://api.etherscan.io/v2/api?chainid=999", chain = "999" }
etherlink = { key = "${NO_ETHERSCAN_API_KEY_REQUIRED}", url = "https://explorer.etherlink.com/api", chain = "42793", verifier = "blockscout" }
ink = { key = "${NO_ETHERSCAN_API_KEY_REQUIRED}", url = "https://explorer.inkonchain.com/api", verifier = "blockscout", chain = "57073"}
injective = { key = "${NO_ETHERSCAN_API_KEY_REQUIRED}", url = "https://blockscout-api.injective.network/api", verifier = "blockscout", chain = "1776"}
jovay = { key = "${NO_ETHERSCAN_API_KEY_REQUIRED}", url = "https://explorer.jovay.io/api", chain = "5734951"}
immutablezkevm = { key = "${NO_ETHERSCAN_API_KEY_REQUIRED}", url = "https://explorer.immutable.com/api", chain = "13371", verifier = "blockscout" }
kaia = { key = "${NO_ETHERSCAN_API_KEY_REQUIRED}", url = "https://www.oklink.com/api/v5/explorer/contract/verify-source-code-plugin/kaia", chain = "8217", verifier = "oklink" }
Expand Down
27 changes: 27 additions & 0 deletions script/deploy/_targetState.json
Original file line number Diff line number Diff line change
Expand Up @@ -2517,5 +2517,32 @@
"LiFiIntentEscrowFacetV2": "1.0.0"
}
}
},
"injective": {
"production": {
"LiFiDiamond": {
"AccessManagerFacet": "1.0.0",
"CalldataVerificationFacet": "1.3.1",
"DiamondCutFacet": "1.0.0",
"DiamondLoupeFacet": "1.0.0",
"EmergencyPauseFacet": "1.0.1",
"GasZipFacet": "2.0.5",
"GenericSwapFacet": "1.0.0",
"GenericSwapFacetV3": "2.0.0",
"LiFiIntentEscrowFacet": "1.1.2",
"LiFiTimelockController": "1.0.1",
"OwnershipFacet": "1.0.0",
"PeripheryRegistryFacet": "1.0.0",
"WhitelistManagerFacet": "1.1.0",
"WithdrawFacet": "1.0.0",
"LiFiDiamond": "1.0.0",
"ERC20Proxy": "1.2.0",
"Executor": "2.1.0",
"FeeForwarder": "1.0.0",
"GasZipPeriphery": "1.0.2",
"TokenWrapper": "1.2.1",
"Permit2Proxy": "1.0.4"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

Remove omitted components from target state.

The PR summary states that Permit2 and Gas.zip configurations are intentionally omitted because Permit2 has no deployed code on Injective and Gas.zip is unavailable. However, GasZipFacet, GasZipPeriphery, and Permit2Proxy are included in this target state block. Leaving them here will likely cause the deployment pipeline to erroneously attempt to deploy or verify them.

Additionally, since the summary mentions that Intents are deferred, please verify if LiFiIntentEscrowFacet should also be removed from the target state or if the facet itself is still intended to be deployed without its full peripheral integrations.

♻️ Proposed fix
-        "GasZipFacet": "2.0.5",
         "GenericSwapFacet": "1.0.0",
         "GenericSwapFacetV3": "2.0.0",
         "LiFiIntentEscrowFacet": "1.1.2",
         "LiFiTimelockController": "1.0.1",
         "OwnershipFacet": "1.0.0",
         "PeripheryRegistryFacet": "1.0.0",
         "WhitelistManagerFacet": "1.1.0",
         "WithdrawFacet": "1.0.0",
         "LiFiDiamond": "1.0.0",
         "ERC20Proxy": "1.2.0",
         "Executor": "2.1.0",
         "FeeForwarder": "1.0.0",
-        "GasZipPeriphery": "1.0.2",
-        "TokenWrapper": "1.2.1",
-        "Permit2Proxy": "1.0.4"
+        "TokenWrapper": "1.2.1"
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
"GasZipFacet": "2.0.5",
"GenericSwapFacet": "1.0.0",
"GenericSwapFacetV3": "2.0.0",
"LiFiIntentEscrowFacet": "1.1.2",
"LiFiTimelockController": "1.0.1",
"OwnershipFacet": "1.0.0",
"PeripheryRegistryFacet": "1.0.0",
"WhitelistManagerFacet": "1.1.0",
"WithdrawFacet": "1.0.0",
"LiFiDiamond": "1.0.0",
"ERC20Proxy": "1.2.0",
"Executor": "2.1.0",
"FeeForwarder": "1.0.0",
"GasZipPeriphery": "1.0.2",
"TokenWrapper": "1.2.1",
"Permit2Proxy": "1.0.4"
"GenericSwapFacet": "1.0.0",
"GenericSwapFacetV3": "2.0.0",
"LiFiIntentEscrowFacet": "1.1.2",
"LiFiTimelockController": "1.0.1",
"OwnershipFacet": "1.0.0",
"PeripheryRegistryFacet": "1.0.0",
"WhitelistManagerFacet": "1.1.0",
"WithdrawFacet": "1.0.0",
"LiFiDiamond": "1.0.0",
"ERC20Proxy": "1.2.0",
"Executor": "2.1.0",
"FeeForwarder": "1.0.0",
"TokenWrapper": "1.2.1"
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@script/deploy/_targetState.json` around lines 2529 - 2544, Remove
GasZipFacet, GasZipPeriphery, and Permit2Proxy from the target state because
their configurations are intentionally omitted and unavailable on Injective.
Verify the deferred Intents scope and remove LiFiIntentEscrowFacet as well
unless it is explicitly intended to deploy independently of its peripheral
integrations.

}
}
}
}
Loading