Skip to content

This repository contains detailed the technical documentation and code of the GAS distribution mechanism. It also includes manuals to deploy your first smart contracts.

License

Notifications You must be signed in to change notification settings

Wealize/lacchain-gas-management

 
 

Repository files navigation

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 2022 LACNet

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

This repository contains detailed the technical documentation and code of the GAS distribution mechanism. It also includes manuals to deploy your first smart contracts.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 68.6%
  • Solidity 24.0%
  • JavaScript 7.4%