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
- audit contains ways to log.
- blockchain contains connections to Ethereum.
- controller controller layer that receives all external requests and redirects requests to the service layer
- service contains main logic
- model contains data models of requests and responses of APIs
- errors contains different errors types
- relayhub contains all smart contract
- rpc contains models and ways to interact with RPC request and response
- 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.