Skip to content

Commit

Permalink
Merge branch 'dev' into feature/dev-image
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Mahé authored May 5, 2020
2 parents 682f1da + 6431f8e commit 541bd23
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 43 deletions.
14 changes: 4 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# MESG Engine

[Website](https://mesg.com/) - [Docs](https://docs.mesg.com/) - [Forum](https://forum.mesg.com/) - [Chat](https://discordapp.com/invite/SaZ5HcE) - [Blog](https://medium.com/mesg)
[Website](https://mesg.com/) - [Docs](https://docs.mesg.com/) - [Forum](https://forum.mesg.com/) - [Chat](https://discordapp.com/invite/SaZ5HcE) - [Blog](https://blog.mesg.com/)


[![GoDoc](https://godoc.org/github.com/mesg-foundation/engine?status.svg)](https://godoc.org/github.com/mesg-foundation/engine)
Expand All @@ -25,8 +25,6 @@ To help us build and maintain MESG Engine, refer to the [Contribute](#contribute
- [Quick Start Guide](#quick-start-guide)
- [Services](#services)
- [Architecture](#architecture)
- [Marketplace](#marketplace)
- [Roadmap](#roadmap)
- [Community](#community)
- [Contribute](#contribute)

Expand All @@ -39,7 +37,7 @@ This step-by-step guide will show you how to create an application that gets the

# Services

Services are build and shared on the [Marketplace](https://marketplace.mesg.com/). They are small and reusable pieces of code that, when grouped together, allow developers to build incredible applications with ease.
Services are small and reusable pieces of code that, when grouped together, allow developers to build incredible applications with ease.

You can develop a service for absolutely anything you want, as long as it can run inside Docker. Check the [documentation to create your own services](https://docs.mesg.com/guide/service/what-is-a-service.html).

Expand Down Expand Up @@ -72,20 +70,16 @@ For more info on how to create your events, visit the [Emit an Event](https://do

[![MESG Architecture](https://cdn.rawgit.com/mesg-foundation/core/dev/schema1.svg)](https://docs.mesg.com)

# Marketplace

We have a common place to post all community-developed Services and Applications. Check out the [Marketplace](https://marketplace.mesg.com).

# Community

You can find us and other MESG users on the [forum](https://forum.mesg.com). Feel free to check existing posts and help other users of MESG.

Also, be sure to check out the [blog](https://medium.com/mesg) to stay up-to-date with our articles.
Also, be sure to check out the [blog](https://blog.mesg.com/) to stay up-to-date with our articles.

# Contribute

Contributions are more than welcome. For more details on how to contribute, please check out the [contribution guide](/CONTRIBUTING.md).

If you have any questions, please reach out to us directly on [Discord](https://discordapp.com/invite/5tVTHJC).

[![](https://sourcerer.io/fame/NicolasMahe/mesg-foundation/engine/images/0)](https://sourcerer.io/fame/NicolasMahe/mesg-foundation/engine/links/0)[![](https://sourcerer.io/fame/NicolasMahe/mesg-foundation/engine/images/1)](https://sourcerer.io/fame/NicolasMahe/mesg-foundation/engine/links/1)[![](https://sourcerer.io/fame/NicolasMahe/mesg-foundation/engine/images/2)](https://sourcerer.io/fame/NicolasMahe/mesg-foundation/engine/links/2)[![](https://sourcerer.io/fame/NicolasMahe/mesg-foundation/engine/images/3)](https://sourcerer.io/fame/NicolasMahe/mesg-foundation/engine/links/3)[![](https://sourcerer.io/fame/NicolasMahe/mesg-foundation/engine/images/4)](https://sourcerer.io/fame/NicolasMahe/mesg-foundation/engine/links/4)[![](https://sourcerer.io/fame/NicolasMahe/mesg-foundation/engine/images/5)](https://sourcerer.io/fame/NicolasMahe/mesg-foundation/engine/links/5)[![](https://sourcerer.io/fame/NicolasMahe/mesg-foundation/engine/images/6)](https://sourcerer.io/fame/NicolasMahe/mesg-foundation/engine/links/6)[![](https://sourcerer.io/fame/NicolasMahe/mesg-foundation/engine/images/7)](https://sourcerer.io/fame/NicolasMahe/mesg-foundation/engine/links/7)

34 changes: 17 additions & 17 deletions cosmos/lcd.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ import (

// LCD is a simple cosmos LCD client.
type LCD struct {
endpoint string
cdc *codec.Codec
kb keys.Keybase
chainID string
accName string
accPassword string
minGasPrices sdktypes.DecCoins
endpoint string
cdc *codec.Codec
kb keys.Keybase
chainID string
accName string
accPassword string
gasPrices sdktypes.DecCoins

// local state
acc *auth.BaseAccount
Expand All @@ -39,19 +39,19 @@ type LCD struct {
}

// NewLCD initializes a cosmos LCD client.
func NewLCD(endpoint string, cdc *codec.Codec, kb keys.Keybase, chainID, accName, accPassword, minGasPrices string) (*LCD, error) {
minGasPricesDecoded, err := sdktypes.ParseDecCoins(minGasPrices)
func NewLCD(endpoint string, cdc *codec.Codec, kb keys.Keybase, chainID, accName, accPassword, gasPrices string) (*LCD, error) {
gasPricesDecoded, err := sdktypes.ParseDecCoins(gasPrices)
if err != nil {
return nil, err
}
return &LCD{
endpoint: endpoint,
cdc: cdc,
kb: kb,
chainID: chainID,
accName: accName,
accPassword: accPassword,
minGasPrices: minGasPricesDecoded,
endpoint: endpoint,
cdc: cdc,
kb: kb,
chainID: chainID,
accName: accName,
accPassword: accPassword,
gasPrices: gasPricesDecoded,
}, nil
}

Expand Down Expand Up @@ -213,7 +213,7 @@ func (lcd *LCD) createAndSignTx(msgs []sdk.Msg, acc *auth.BaseAccount) (authtype
lcd.chainID,
"",
nil,
lcd.minGasPrices,
lcd.gasPrices,
).WithKeybase(lcd.kb)

// calculate gas
Expand Down
32 changes: 16 additions & 16 deletions cosmos/rpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ import (
// RPC is a tendermint rpc client with helper functions.
type RPC struct {
rpcclient.Client
cdc *codec.Codec
kb keys.Keybase
chainID string
accName string
accPassword string
minGasPrices sdktypes.DecCoins
cdc *codec.Codec
kb keys.Keybase
chainID string
accName string
accPassword string
gasPrices sdktypes.DecCoins

// Local state
acc authExported.Account
Expand All @@ -38,19 +38,19 @@ type RPC struct {
}

// NewRPC returns a rpc tendermint client.
func NewRPC(client rpcclient.Client, cdc *codec.Codec, kb keys.Keybase, chainID, accName, accPassword, minGasPrices string) (*RPC, error) {
minGasPricesDecoded, err := sdktypes.ParseDecCoins(minGasPrices)
func NewRPC(client rpcclient.Client, cdc *codec.Codec, kb keys.Keybase, chainID, accName, accPassword, gasPrices string) (*RPC, error) {
gasPricesDecoded, err := sdktypes.ParseDecCoins(gasPrices)
if err != nil {
return nil, err
}
return &RPC{
Client: client,
cdc: cdc,
kb: kb,
chainID: chainID,
accName: accName,
accPassword: accPassword,
minGasPrices: minGasPricesDecoded,
Client: client,
cdc: cdc,
kb: kb,
chainID: chainID,
accName: accName,
accPassword: accPassword,
gasPrices: gasPricesDecoded,
}, nil
}

Expand Down Expand Up @@ -213,7 +213,7 @@ func (c *RPC) createAndSignTx(msgs []sdktypes.Msg, acc authExported.Account) (te
c.chainID,
"",
nil,
c.minGasPrices,
c.gasPrices,
).WithKeybase(c.kb)

// calculate gas
Expand Down

0 comments on commit 541bd23

Please sign in to comment.