Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@eth-optimism/atst

Package Overview
Dependencies
Maintainers
2
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@eth-optimism/atst

@eth-optimism/atst The officia

  • 0.2.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
4
decreased by-73.33%
Maintainers
2
Weekly downloads
 
Created
Source


Optimism

@eth-optimism/atst

The official SDK and cli for Optimism's attestation Station

atst

atst is a typescript / javascript sdk and cli around AttestationStation

Visit Docs for general documentation on AttestationStation.

Getting started

Install

npm install @eth-optimism/atst wagmi @wagmi/core ethers@5.7.0

atst typescript/javascript sdk

The typescript sdk provides a clean wagmi based interface for reading and writing to AttestationStation.

See sdk docs for usage instructions.

atst cli

The cli provides a convenient cli for interacting with the AttestationStation contract

preview

See cli docs for usage instructions.

React API

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 useContractRead
  • useAttestationStationVersion - Reads attestation version
  • useAttestationStationAttest - Wraps useContractWrite with AttestationStation abi calling attest
  • usePrepareAttestationStationAttest - Wraps usePrepare with AttestationStation abi calling attest
  • useAttestationStationAttestationCreatedEvent - Wraps useContractEvents for Created events

Also some more hooks exported by the cli but these are likely the only ones you need.

Contributing

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.

Getting help

If you have any problems, these resources could help you:

Keywords

FAQs

Package last updated on 16 Mar 2023

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc