Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
@eth-optimism/atst
Advanced tools
atst is a typescript / javascript sdk and cli around AttestationStation
Visit Docs for general documentation on AttestationStation.
Install
npm install @eth-optimism/atst wagmi @wagmi/core ethers@5.7.0
The typescript sdk provides a clean wagmi based interface for reading and writing to AttestationStation.
See sdk docs for usage instructions.
The cli provides a convenient cli for interacting with the AttestationStation contract
See cli docs for usage instructions.
For react hooks we recomend using the wagmi cli with the etherscan plugin and react plugin to automatically generate react hooks around AttestationStation.
Use createKey
and createValue
to convert your raw keys and values into bytes that can be used in AttestationStation contract calls
Use parseString
, parseBool
, parseAddress
and parseNumber
to convert values returned by AttestationStation to their correct data type.
For convenience we also export the hooks here:
useAttestationStationAttestation
- Reads attestations with useContractReaduseAttestationStationVersion
- Reads attestation versionuseAttestationStationAttest
- Wraps useContractWrite with AttestationStation abi calling attestusePrepareAttestationStationAttest
- Wraps usePrepare with AttestationStation abi calling attestuseAttestationStationAttestationCreatedEvent
- Wraps useContractEvents for Created eventsAlso some more hooks exported by the cli but these are likely the only ones you need.
Please see our contributing.md. No contribution is too small.
Having your contribution denied feels bad. Please consider opening an issue before adding any new features or apis.
If you have any problems, these resources could help you:
FAQs
@eth-optimism/atst The officia
The npm package @eth-optimism/atst receives a total of 20 weekly downloads. As such, @eth-optimism/atst popularity was classified as not popular.
We found that @eth-optimism/atst demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.