Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
86bdaa07
Commit
86bdaa07
authored
Oct 12, 2023
by
Will Cory
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: Remove niche hooks and actions
parent
5ef67352
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
20881 additions
and
62015 deletions
+20881
-62015
hot-ligers-hunt.md
.changeset/hot-ligers-hunt.md
+5
-0
abis.json
packages/contracts-ts/abis.json
+3389
-6256
addresses.json
packages/contracts-ts/addresses.json
+6
-18
actions.ts
packages/contracts-ts/src/actions.ts
+3942
-10518
constants.ts
packages/contracts-ts/src/constants.ts
+7863
-11489
react.ts
packages/contracts-ts/src/react.ts
+5651
-33732
wagmi.config.ts
packages/contracts-ts/wagmi.config.ts
+25
-2
No files found.
.changeset/hot-ligers-hunt.md
0 → 100644
View file @
86bdaa07
---
'
@eth-optimism/contracts-ts'
:
minor
---
Removed unused hooks and actions
packages/contracts-ts/abis.json
View file @
86bdaa07
This diff is collapsed.
Click to expand it.
packages/contracts-ts/addresses.json
View file @
86bdaa07
...
@@ -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"
:
{
...
...
packages/contracts-ts/src/actions.ts
View file @
86bdaa07
This diff is collapsed.
Click to expand it.
packages/contracts-ts/src/constants.ts
View file @
86bdaa07
This diff is collapsed.
Click to expand it.
packages/contracts-ts/src/react.ts
View file @
86bdaa07
This diff is collapsed.
Click to expand it.
packages/contracts-ts/wagmi.config.ts
View file @
86bdaa07
...
@@ -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
,
}),
],
},
},
])
])
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment