Commit 86bdaa07 authored by Will Cory's avatar Will Cory

chore: Remove niche hooks and actions

parent 5ef67352
---
'@eth-optimism/contracts-ts': minor
---
Removed unused hooks and actions
This diff is collapsed.
...@@ -54,24 +54,18 @@ ...@@ -54,24 +54,18 @@
"420": "0x4200000000000000000000000000000000000015" "420": "0x4200000000000000000000000000000000000015"
}, },
"L1CrossDomainMessenger": { "L1CrossDomainMessenger": {
"1": "0x25ace71c97B33Cc4729CF772ae268934F7ab5fA1" "1": "0x25ace71c97B33Cc4729CF772ae268934F7ab5fA1",
},
"L1CrossDomainMessenger_goerli": {
"5": "0x5086d1eEF304eb5284A0f6720f79403b4e9bE294" "5": "0x5086d1eEF304eb5284A0f6720f79403b4e9bE294"
}, },
"L1ERC721Bridge": { "L1ERC721Bridge": {
"1": "0x5a7749f83b81B301cAb5f48EB8516B986DAef23D" "1": "0x5a7749f83b81B301cAb5f48EB8516B986DAef23D",
},
"L1ERC721Bridge_goerli": {
"5": "0x8DD330DdE8D9898d43b4dc840Da27A07dF91b3c9" "5": "0x8DD330DdE8D9898d43b4dc840Da27A07dF91b3c9"
}, },
"L1FeeVault": { "L1FeeVault": {
"420": "0x420000000000000000000000000000000000001a" "420": "0x420000000000000000000000000000000000001a"
}, },
"L1StandardBridge": { "L1StandardBridge": {
"1": "0x99C9fc46f92E8a1c0deC1b1747d010903E884bE1" "1": "0x99C9fc46f92E8a1c0deC1b1747d010903E884bE1",
},
"L1StandardBridge_goerli": {
"5": "0x636Af16bf2f682dD3109e60102b8E1A089FedAa8" "5": "0x636Af16bf2f682dD3109e60102b8E1A089FedAa8"
}, },
"L2CrossDomainMessenger": { "L2CrossDomainMessenger": {
...@@ -84,9 +78,7 @@ ...@@ -84,9 +78,7 @@
"420": "0x4200000000000000000000000000000000000014" "420": "0x4200000000000000000000000000000000000014"
}, },
"L2OutputOracle": { "L2OutputOracle": {
"1": "0xdfe97868233d1aa22e815a266982f2cf17685a27" "1": "0xdfe97868233d1aa22e815a266982f2cf17685a27",
},
"L2OutputOracle_goerli": {
"5": "0xE6Dfba0953616Bacab0c9A8ecb3a9BBa77FC15c0" "5": "0xE6Dfba0953616Bacab0c9A8ecb3a9BBa77FC15c0"
}, },
"L2StandardBridge": { "L2StandardBridge": {
...@@ -115,9 +107,7 @@ ...@@ -115,9 +107,7 @@
"420": "0x4200000000000000000000000000000000000017" "420": "0x4200000000000000000000000000000000000017"
}, },
"OptimismPortal": { "OptimismPortal": {
"1": "0xbEb5Fc579115071764c7423A4f12eDde41f106Ed" "1": "0xbEb5Fc579115071764c7423A4f12eDde41f106Ed",
},
"OptimismPortal_goerli": {
"5": "0x5b47E1A08Ea6d985D6649300584e6722Ec4B1383" "5": "0x5b47E1A08Ea6d985D6649300584e6722Ec4B1383"
}, },
"Optimist": { "Optimist": {
...@@ -151,9 +141,7 @@ ...@@ -151,9 +141,7 @@
"420": "0x4200000000000000000000000000000000000011" "420": "0x4200000000000000000000000000000000000011"
}, },
"SystemConfig": { "SystemConfig": {
"1": "0x229047fed2591dbec1eF1118d64F7aF3dB9EB290" "1": "0x229047fed2591dbec1eF1118d64F7aF3dB9EB290",
},
"SystemConfig_goerli": {
"5": "0xAe851f927Ee40dE99aaBb7461C00f9622ab91d60" "5": "0xAe851f927Ee40dE99aaBb7461C00f9622ab91d60"
}, },
"SystemDictator": { "SystemDictator": {
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
...@@ -372,11 +372,34 @@ export default defineConfig([ ...@@ -372,11 +372,34 @@ export default defineConfig([
{ {
out: 'src/actions.ts', out: 'src/actions.ts',
contracts: contractsWithFilteredDuplicates, contracts: contractsWithFilteredDuplicates,
plugins: [eslintIgnorePlugin, actions()], plugins: [
eslintIgnorePlugin,
actions({
getContract: true,
// don't include actions because they can be more simply done via getContract
prepareWriteContract: false,
readContract: false,
watchContractEvent: false,
writeContract: false,
}),
],
}, },
{ {
out: 'src/react.ts', out: 'src/react.ts',
contracts: contractsWithFilteredDuplicates, contracts: contractsWithFilteredDuplicates,
plugins: [eslintIgnorePlugin, react()], plugins: [
eslintIgnorePlugin,
react({
useContractRead: true,
useContractWrite: true,
useContractEvent: true,
// don't include more niche actions to keep api more simple
useContractFunctionRead: false,
useContractFunctionWrite: false,
useContractItemEvent: false,
usePrepareContractFunctionWrite: false,
usePrepareContractWrite: false,
}),
],
}, },
]) ])
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment