acorus

package module
v0.0.0-...-1a342eb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 3, 2024 License: MIT Imports: 45 Imported by: 0

README

acorus

acorus repo

Acorus is project which can sync l1->l2 deposit, l2->l1 withdraw transactions of all layer2. The back-end service, written in golang, provides http api for upper-layer service docking.

Tips:

Support layer2 as follow

If you want support your project, please create pr for us, we will support it.

Install

Install dependencies
go mod tidy
build
cd acorus
make
Config env
  • For layer2 chain contracts config, you can config director and refer to exist config do it.
  • For toml config, you can acorus.toml file and config your real env value.
start syncer
./acorus syncer
start api
./acorus api

Contribute

TBD

Documentation

Index

Constants

View Source
const MaxRecvMessageSize = 1024 * 1024 * 300

Variables

This section is empty.

Functions

This section is empty.

Types

type Acorus

type Acorus struct {
	DB *database.DB

	Synchronizer map[uint64]*synchronizer.Synchronizer
	Processor    map[uint64]event2.IEventProcessor
	Worker       map[uint64]worker2.IWorkerProcessor
	Relayer      map[uint64]*relayer.RelayerListener
	// contains filtered or unexported fields
}

func NewAcorus

func NewAcorus(ctx context.Context, cfg *config.Config, shutdown context.CancelCauseFunc) (*Acorus, error)

func (*Acorus) Start

func (as *Acorus) Start(ctx context.Context) error

func (*Acorus) Stop

func (as *Acorus) Stop(ctx context.Context) error

func (*Acorus) Stopped

func (as *Acorus) Stopped() bool

type RpcServerConfig

type RpcServerConfig struct {
	GrpcHostname string
	GrpcPort     int
}

Directories

Path Synopsis
cmd
arb
okx
rpc

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL