Skip to content
This repository has been archived by the owner on Apr 7, 2022. It is now read-only.

lacchain/gas-management

Repository files navigation

IMPORTANT NOTE: The ongoing development of this project has migrated to the LACNet organization. Please use LACNet's branch instead of this repository which has been deprecated and is no longer supported.

Gas Management

This solution is in charge of distributing gas to the different LACChain Besu writer nodes, it is composed of backend components such as smart contracts. Gas distribution is automatic, whose logic is written in smart contracts.

Package overview

  1. audit contains ways to log.
  2. blockchain contains connections to Ethereum.
  3. controller controller layer that receives all external requests and redirects requests to the service layer
  4. service contains main logic
  5. model contains data models of requests and responses of APIs
  6. errors contains different errors types
  7. relayhub contains all smart contract
  8. rpc contains models and ways to interact with RPC request and response
  9. docs contains documentation about architecture and developer interaction with this solution

Prerequisites

  • Being a validator node in LACChain network
  • Go 1.13+ installation or later
  • GOPATH environment variable is set correctly

Install

$ git clone https://github.com/lacchain/gas-management

$ cd gas-management
$ go build

Run

Execute the executable file generated previously in a Validator node

$ ./gas-relay-signer

Know More

Copyright 2021 LACChain

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published