Skip to content

Optimism Plasma DA KVStore Store implementation(irys)

License

Notifications You must be signed in to change notification settings

4everland/opplasmairys

Repository files navigation

Optimism Plasma DA KVStore Store implementation(irys)

Introduction

This simple DA KVStore Store implementation based on irys. See the Irys doc for more information

Install

go get github.com/4everland/opplasmairys

Start

import (
  "github.com/4everland/opplasmairys"
)

config := opplasmairys.Config{
  //IrysPrivateKey
  IrysPrivateKey: os.Getenv("IRYS_PRIVATE_KEY"),
  //IrysPaymentNetwork supported networks: ethereum,matic,bnb,avalanche,arbitrum or fantom
  IrysPaymentNetwork: os.Getenv("IRYS_PAYMENT_NETWORK"),
  //IrysPaymentRPC, optional
  IrysPaymentRPC: os.Getenv("IRYS_PAYMENT_RPC"),
  //IrysFreeUpload, optional
  IrysFreeUpload: os.Getenv("IRYS_FREE_UPLOAD"),
}   
var (
  err error
  //backup kvstore, optional
  store opplasmairys.KVStore
)
//create a new irys store
store, err = opplasmairys.NewDAStore(config, store)

Simple Server

This simple DA server implementation supports irys. See the daserver for more information

About

Optimism Plasma DA KVStore Store implementation(irys)

Resources

License

Stars

Watchers

Forks

Packages