lbm-sdk

module
v0.46.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2022 License: Apache-2.0

README

The LBM SDK is a framework for building blockchain applications in Golang. It is being used to build LBM, the first implementation of the LINE Blockchain Mainnet. This is forked from cosmos-sdk at 2021-03-15.

WARNING: Breaking changes may occur because this repository is still in the pre-release development phase.

Note: Requires Go 1.18+

What is the LBM SDK?

The LBM SDK is an open-source framework for building multi-asset public Proof-of-Stake (PoS) blockchains, as well as permissioned Proof-Of-Authority (PoA) blockchains. Blockchains built with the Cosmos SDK are generally referred to as application-specific blockchains.

The purpose of LBM SDK is to succeed to the objectives of Cosmos sdk while helping develop blockchains that requires faster transaction processing to be applied to reality.

Why the LBM SDK?

Cosmos-sdk, which created the philosophy of application-specific blockchain, established its status as a framework for various application blockchain development. LBM SDK inherited this cosmos-sdk philosophy, addressing slow transaction processing problem that was difficult for cosmos-sdk to apply in real financial system. Real financial systems require thousands of processing performance per second, with LBM SDK adding many performance improvements to meet that demand. The following work was carried out to improve performance.

  • Concurrent checkTx, deliverTx
  • Use fastcache for inter block cache and nodedb cache of iavl
  • Lock granularity enhancement

In addition, the following functions were added:

  • Virtual machine using cosmwasm that makes smart contracts possible to be executed
  • Use Ostracon as consensus engine instead of Tendermint

To learn about Cosmos SDK, please refer Cosmos SDK Docs.

Quick Start

Build

make build
make install

# you can see the version!
simd version

 

Configure

zsh init_node.sh sim {N(number of nodes), default=1}

 

Run

# run a node
simd start --home ~/.simapp/simapp0

# If N is larger than 1, run all node.
# simapp0 has other nodes as persistant_peer. 
simd start --home ~/.simapp/simapp0
simd start --home ~/.simapp/simapp1
...

Visit with your browser

 

Follow Guide

You can refer the sample tx commands at here Test different commands to get a broader understanding of lbm

Directories

Path Synopsis
grpc/node
Package node is a reverse proxy.
Package node is a reverse proxy.
grpc/reflection
Package reflection is a reverse proxy.
Package reflection is a reverse proxy.
grpc/tmservice
Package tmservice is a reverse proxy.
Package tmservice is a reverse proxy.
rpc
tx
legacy
Package legacy contains a global amino Cdc which is deprecated but still used in several places within the SDK.
Package legacy contains a global amino Cdc which is deprecated but still used in several places within the SDK.
types
Package types defines a custom wrapper for google.protobuf.Any which supports cached values as well as InterfaceRegistry which keeps track of types which can be used with Any for both security and introspection
Package types defines a custom wrapper for google.protobuf.Any which supports cached values as well as InterfaceRegistry which keeps track of types which can be used with Any for both security and introspection
unknownproto
unknownproto implements functionality to "type check" protobuf serialized byte sequences against an expected proto.Message to report:
unknownproto implements functionality to "type check" protobuf serialized byte sequences against an expected proto.Message to report:
cosmovisor module
hd
Package hd provides support for hierarchical deterministic wallets generation and derivation.
Package hd provides support for hierarchical deterministic wallets generation and derivation.
keyring
Package keys provides common key management API.
Package keys provides common key management API.
keys/internal/ecdsa
Package ECDSA implements Cosmos-SDK compatible ECDSA public and private key.
Package ECDSA implements Cosmos-SDK compatible ECDSA public and private key.
nolint
keys/secp256r1
Package secp256r1 implements Cosmos-SDK compatible ECDSA public and private key.
Package secp256r1 implements Cosmos-SDK compatible ECDSA public and private key.
internal
conv
Package conv provides internal functions for convertions and data manipulation
Package conv provides internal functions for convertions and data manipulation
os
The commands from the SDK are defined with `cobra` and configured with the `viper` package.
The commands from the SDK are defined with `cobra` and configured with the `viper` package.
api
cmd
grpc/gogoreflection
Package gogoreflection implements gRPC reflection for gogoproto consumers the normal reflection library does not work as it points to a different singleton registry.
Package gogoreflection implements gRPC reflection for gogoproto consumers the normal reflection library does not work as it points to a different singleton registry.
grpc/reflection/v2
Package v2 is a reverse proxy.
Package v2 is a reverse proxy.
mock
nolint
nolint
params
Package params defines the simulation parameters in the simapp.
Package params defines the simulation parameters in the simapp.
Package std defines all the common and standard inter-module Cosmos SDK types and definitions modules and applications can depend on.
Package std defines all the common and standard inter-module Cosmos SDK types and definitions modules and applications can depend on.
mem
tests
mocks
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
cli
network
Package network implements and exposes a fully operational in-process Tendermint test network that consists of at least one or potentially many validators.
Package network implements and exposes a fully operational in-process Tendermint test network that consists of at least one or potentially many validators.
rest
Package rest provides HTTP types and primitives for REST requests validation and responses handling.
Package rest provides HTTP types and primitives for REST requests validation and responses handling.
bech32/legacybech32
Deprecated: The module provides legacy bech32 functions which will be removed in a future release.
Deprecated: The module provides legacy bech32 functions which will be removed in a future release.
errors
Package errors implements custom error interfaces for cosmos-sdk.
Package errors implements custom error interfaces for cosmos-sdk.
kv
module
Package module contains application module patterns and associated "manager" functionality.
Package module contains application module patterns and associated "manager" functionality.
rest
Package rest provides HTTP types and primitives for REST requests validation and responses handling.
Package rest provides HTTP types and primitives for REST requests validation and responses handling.
tx
Package tx is a reverse proxy.
Package tx is a reverse proxy.
Package version is a convenience utility that provides SDK consumers with a ready-to-use version command that produces apps versioning information based on flags passed at compile time.
Package version is a convenience utility that provides SDK consumers with a ready-to-use version command that produces apps versioning information based on flags passed at compile time.
x
auth/legacy/v043
Package v043 creates in-place store migrations for fixing tracking delegations with vesting accounts.
Package v043 creates in-place store migrations for fixing tracking delegations with vesting accounts.
auth/types
Package types is a reverse proxy.
Package types is a reverse proxy.
authz
Package authz is a reverse proxy.
Package authz is a reverse proxy.
authz/codec
Package codec provides a singleton instance of Amino codec that should be used to register any concrete type that can later be referenced inside a MsgGrant or MsgExec instance so that they can be (de)serialized properly.
Package codec provides a singleton instance of Amino codec that should be used to register any concrete type that can later be referenced inside a MsgGrant or MsgExec instance so that they can be (de)serialized properly.
bank/legacy/v040
Package v040 is copy-pasted from: https://github.com/cosmos/cosmos-sdk/blob/v0.41.0/x/bank/types/key.go
Package v040 is copy-pasted from: https://github.com/cosmos/cosmos-sdk/blob/v0.41.0/x/bank/types/key.go
bank/types
Package types is a reverse proxy.
Package types is a reverse proxy.
collection
Package collection is a reverse proxy.
Package collection is a reverse proxy.
distribution
Package distribution implements a Cosmos SDK module, that provides an implementation of the F1 fee distribution algorithm.
Package distribution implements a Cosmos SDK module, that provides an implementation of the F1 fee distribution algorithm.
distribution/legacy/v040
Package v040 is copy-pasted from: https://github.com/cosmos/cosmos-sdk/blob/v0.41.0/x/distribution/types/keys.go
Package v040 is copy-pasted from: https://github.com/cosmos/cosmos-sdk/blob/v0.41.0/x/distribution/types/keys.go
distribution/types
Package types is a reverse proxy.
Package types is a reverse proxy.
evidence
Package evidence implements a Cosmos SDK module, per ADR 009, that allows for the submission and handling of arbitrary evidence of misbehavior.
Package evidence implements a Cosmos SDK module, per ADR 009, that allows for the submission and handling of arbitrary evidence of misbehavior.
evidence/types
DONTCOVER
DONTCOVER
feegrant
Package feegrant provides functionality for authorizing the payment of transaction fees from one account (key) to another account (key).
Package feegrant provides functionality for authorizing the payment of transaction fees from one account (key) to another account (key).
foundation
Package foundation is a reverse proxy.
Package foundation is a reverse proxy.
genutil
Package genutil contains a variety of genesis utility functionality for usage within a blockchain application.
Package genutil contains a variety of genesis utility functionality for usage within a blockchain application.
gov
gov/codec
Package codec provides a singleton instance of Amino codec that should be used to register any concrete type that can later be referenced inside a MsgSubmitProposal instance so that they can be (de)serialized properly.
Package codec provides a singleton instance of Amino codec that should be used to register any concrete type that can later be referenced inside a MsgSubmitProposal instance so that they can be (de)serialized properly.
gov/legacy/v040
Package v040 is copy-pasted from: https://github.com/cosmos/cosmos-sdk/blob/v0.41.0/x/gov/types/keys.go
Package v040 is copy-pasted from: https://github.com/cosmos/cosmos-sdk/blob/v0.41.0/x/gov/types/keys.go
gov/types
Package types is a reverse proxy.
Package types is a reverse proxy.
Package types is a reverse proxy.
ibc/applications/27-interchain-accounts/host/types
Package types is a reverse proxy.
Package types is a reverse proxy.
ibc/applications/transfer/types
Package types is a reverse proxy.
Package types is a reverse proxy.
ibc/core/02-client
Package client implements the ICS 02 - Client Semantics specification https://github.com/cosmos/ibc/tree/master/spec/core/ics-002-client-semantics.
Package client implements the ICS 02 - Client Semantics specification https://github.com/cosmos/ibc/tree/master/spec/core/ics-002-client-semantics.
ibc/core/02-client/types
Package types is a reverse proxy.
Package types is a reverse proxy.
ibc/core/03-connection/types
Package types is a reverse proxy.
Package types is a reverse proxy.
ibc/core/04-channel/types
Package types is a reverse proxy.
Package types is a reverse proxy.
ibc/core/24-host
24-host is an implementation of ICS24.
24-host is an implementation of ICS24.
ibc/light-clients/06-solomachine
Package solomachine implements a concrete `ConsensusState`, `Header`, `Misbehaviour` and `Equivocation` types for the Solo Machine light client.
Package solomachine implements a concrete `ConsensusState`, `Header`, `Misbehaviour` and `Equivocation` types for the Solo Machine light client.
ibc/light-clients/09-localhost
Package localhost implements a concrete `ConsensusState`, `Header`, `Misbehaviour` and `Equivocation` types for the loop-back client.
Package localhost implements a concrete `ConsensusState`, `Header`, `Misbehaviour` and `Equivocation` types for the loop-back client.
ibc/light-clients/99-ostracon
Package ostracon implements a concrete `ConsensusState`, `Header`, `Misbehaviour` and `Equivocation` types for the Ostracon consensus light client.
Package ostracon implements a concrete `ConsensusState`, `Header`, `Misbehaviour` and `Equivocation` types for the Ostracon consensus light client.
ibc/testing
This file contains the variables, constants, and default values used in the testing package and commonly defined in tests.
This file contains the variables, constants, and default values used in the testing package and commonly defined in tests.
ibc/testing/mock
This package is only intended to be used for testing core IBC.
This package is only intended to be used for testing core IBC.
mint/types
Package types is a reverse proxy.
Package types is a reverse proxy.
params
Package params provides a namespaced module parameter store.
Package params provides a namespaced module parameter store.
params/types
To prevent namespace collision between consumer modules, we define a type Subspace.
To prevent namespace collision between consumer modules, we define a type Subspace.
params/types/proposal
Package proposal is a reverse proxy.
Package proposal is a reverse proxy.
simulation
Package simulation implements a full fledged Cosmos SDK application used for executing simulation test suites.
Package simulation implements a full fledged Cosmos SDK application used for executing simulation test suites.
slashing/legacy/v040
Package v040 is copy-pasted from: https://github.com/cosmos/cosmos-sdk/blob/v0.41.0/x/slashing/types/keys.go
Package v040 is copy-pasted from: https://github.com/cosmos/cosmos-sdk/blob/v0.41.0/x/slashing/types/keys.go
slashing/types
noalias DONTCOVER
noalias DONTCOVER
staking/legacy/v040
Package v040 is copy-pasted from: https://github.com/cosmos/cosmos-sdk/blob/v0.41.0/x/staking/types/keys.go
Package v040 is copy-pasted from: https://github.com/cosmos/cosmos-sdk/blob/v0.41.0/x/staking/types/keys.go
staking/types
Package types is a reverse proxy.
Package types is a reverse proxy.
token
Package token is a reverse proxy.
Package token is a reverse proxy.
upgrade
Package upgrade provides a Cosmos SDK module that can be used for smoothly upgrading a live Cosmos chain to a new software version.
Package upgrade provides a Cosmos SDK module that can be used for smoothly upgrading a live Cosmos chain to a new software version.
upgrade/types
Package types is a reverse proxy.
Package types is a reverse proxy.
wasm
nolint
nolint
wasm/lbmtypes
Package lbmtypes is a reverse proxy.
Package lbmtypes is a reverse proxy.
wasm/types
Package types is a reverse proxy.
Package types is a reverse proxy.

Jump to

Keyboard shortcuts

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