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

@yacooba/sdk

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@yacooba/sdk

Wrapper for yacooba smart contracts

  • 4.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Commitizen friendly

Yacooba SDK

Installation

npm install @yacooba/sdk

Usage

Yacooba

Import Yacooba and instantiate it

import { Yacooba } from '@yacooba/sdk'

const yacooba = Yacooba(env, provider, chainName)
  • env: Environment to be used, options: dev, stage, prod
  • provider: Ethereum provider needed to communicate with the network
  • chainName: Ethereum network name, options: matic, goerli, mainnet
Connect to event
const event = yacooba.connectEvent(eventAddress) // Optionally we can pass the Signer as second param
Populate transactions
const buyTicketTx = await event.populateTransaction.buyTicket(tierId, attendeeAddress)
Get each typed contract
const forwarder = yacooba.forwarder
const fixedPriceMarket = yacooba.fixedPriceMarket
const auctionMarket = yacooba.auctionMarket
const factory = yacooba.factory
const royaltyRegistry = yacooba.royaltyRegistry
const yac = yacooba.yac
const yooba = yacooba.yooba
const preSale = yacooba.preSale

Utils

Import utils

import { utils } from '@yacooba/sdk'

Example: Sign typed data

const sig = await utils.signTypedData(wallet.privateKey, typedData)

Development

Commit messages: follow conventional commit format (see commitlint)

License

Released under MIT

Keywords

FAQs

Package last updated on 03 Apr 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