Giter VIP home page Giter VIP logo

flutter's Introduction

Tendermint

UPDATE: TendermintCore featureset is frozen for LTS, see issue #9972
This is the latest stable release used by cosmoshub-4, version 0.34.24
The previous main branch (v0.38.xx) can now be found under "main_backup"

banner

Byzantine-Fault Tolerant State Machine Replication. Or Blockchain, for short.

Version API Reference Go version Discord chat License Sourcegraph

Branch Tests Linting
main Tests Lint

Tendermint Core is a Byzantine Fault Tolerant (BFT) middleware that takes a state transition machine - written in any programming language - and securely replicates it on many machines.

For protocol details, refer to the Tendermint Specification.

For detailed analysis of the consensus protocol, including safety and liveness proofs, read our paper, "The latest gossip on BFT consensus".

Documentation

Complete documentation can be found on the website.

Releases

Please do not depend on main as your production branch. Use releases instead.

Tendermint has been in the production of private and public environments, most notably the blockchains of the Cosmos Network. we haven't released v1.0 yet since we are making breaking changes to the protocol and the APIs. See below for more details about versioning.

In any case, if you intend to run Tendermint in production, we're happy to help. You can contact us over email or join the chat.

More on how releases are conducted can be found here.

Security

To report a security vulnerability, see our bug bounty program. For examples of the kinds of bugs we're looking for, see our security policy.

We also maintain a dedicated mailing list for security updates. We will only ever use this mailing list to notify you of vulnerabilities and fixes in Tendermint Core. You can subscribe here.

Minimum requirements

Requirement Notes
Go version Go 1.18 or higher

Install

See the install instructions.

Quick Start

Contributing

Please abide by the Code of Conduct in all interactions.

Before contributing to the project, please take a look at the contributing guidelines and the style guide. You may also find it helpful to read the specifications, and familiarize yourself with our Architectural Decision Records (ADRs) and Request For Comments (RFCs).

Versioning

Semantic Versioning

Tendermint uses Semantic Versioning to determine when and how the version changes. According to SemVer, anything in the public API can change at any time before version 1.0.0

To provide some stability to users of 0.X.X versions of Tendermint, the MINOR version is used to signal breaking changes across Tendermint's API. This API includes all publicly exposed types, functions, and methods in non-internal Go packages as well as the types and methods accessible via the Tendermint RPC interface.

Breaking changes to these public APIs will be documented in the CHANGELOG.

Upgrades

In an effort to avoid accumulating technical debt prior to 1.0.0, we do not guarantee that breaking changes (ie. bumps in the MINOR version) will work with existing Tendermint blockchains. In these cases you will have to start a new blockchain, or write something custom to get the old data into the new chain. However, any bump in the PATCH version should be compatible with existing blockchain histories.

For more information on upgrading, see UPGRADING.md.

Supported Versions

Because we are a small core team, we only ship patch updates, including security updates, to the most recent minor release and the second-most recent minor release. Consequently, we strongly recommend keeping Tendermint up-to-date. Upgrading instructions can be found in UPGRADING.md.

Resources

Libraries

Applications

Research

Join us!

Tendermint Core is maintained by Interchain GmbH. If you'd like to work full-time on Tendermint Core, we're hiring!

Funding for Tendermint Core development comes primarily from the Interchain Foundation, a Swiss non-profit. The Tendermint trademark is owned by Tendermint Inc., the for-profit entity that also maintains tendermint.com.

flutter's People

Contributors

alessio avatar andrehaueisen avatar andrzejchm avatar ilgooz avatar mduccc avatar wal33d006 avatar zfinix avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

flutter's Issues

Set up CI/CD

steps to be executed in CI:

  1. run format check
  2. run dart analysis
  3. run tests
  4. build iOS and Android debug app
  5. deploy to netlify/firebase app distribution

Mobile Task

Hi, so i'm trying to implement the swap token feature, I followed the instructions and generated the dart proto implementation using starport. I initially tried using the gravity gRPC API on the testnet as stated in the docs but it appears its missing on that bit.
here is my repo: https://github.com/Zfinix/tendermint_starport.

With GRPC


var msgSwapWithinBatch = liquidity.MsgSwapWithinBatch(
      swapRequesterAddress: 'cosmos1vyqxnxnu5unak39l9cz0uah93s2mxc6cg248zx',
      poolId: Int64(14),
      swapTypeId: 1,
      offerCoin: liquidity.Coin(
        denom: 'uphoton',
        amount: '1000',
      ),
      demandCoinDenom:
          'ibc/070B20BE0D1576B9AFBF54428BDF092B26B0D43B84D0EF1E779CBE8240000355',
      offerCoinFee: liquidity.Coin(
        denom: 'uphoton',
        amount: '150',
      ),
      orderPrice: '1000',
    );

    final val = liquidity.MsgClient(baseEnv.networkInfo.gRPCChannel);

    val.swap(msgSwapWithinBatch);

this returns

Unhandled Exception: gRPC Error (code: 12, codeName: UNIMPLEMENTED, message: unknown service tendermint.liquidity.v1beta1.Msg, details: [], rawResponse: null, trailers: {})

With HTTPS (JSONRPC)


I was able to access the liquidity API using the REST and JSONRPC apis and hence decided to use that as the grpc wasn't working.

I'm almost done just need help on making a signed /tendermint.liquidity.v1beta1.MsgSwapWithinBatch request from the dart mobile client but i keep getting this:

{
  "jsonrpc": "2.0",
  "id": "1",
  "result": {
    "check_tx": {
      "code": 32,
      "data": null,
      "log": "account sequence mismatch, expected 26, got 7: incorrect account sequence",
      "info": "",
      "gas_wanted": "200000",
      "gas_used": "30946",
      "events": [],
      "codespace": "sdk"
    },
    "deliver_tx": {
      "code": 0,
      "data": null,
      "log": "",
      "info": "",
      "gas_wanted": "0",
      "gas_used": "0",
      "events": [],
      "codespace": ""
    },
    "hash": "F15A0AF0771DC82B565998B2010F1DAEC66DA57DCF6F2625910008334AD93246",
    "height": "0"
  }
}

I have been able to perform a swap using the CLI tool but not the api:

gaiad tx liquidity swap 14 1 100000uphoton ibc/070B20BE0D1576B9AFBF54428BDF092B26B0D43B84D0EF1E779CBE8240000355 1000 0.003 --from alice --chain-id cosmoshub-testnet --gas-prices "0.03uphoton" --node https://testnet.cosmos.network:443

image

I am running on the test node:

api: https://api.testnet.cosmos.network:443
faucet: https://faucet.testnet.cosmos.network:443
grpc: https://grpc.testnet.cosmos.network:443

I've gone through every single documentation i can find, read through proto files, multiple :
https://github.com/tendermint/liquidity/blob/develop/doc/client.md
https://tutorials.cosmos.network/liquidity-module/
https://app.emeris.com/pool/
https://github.com/cosmos/cosmos-sdk/blob/master/docs/run-node/txs.md
https://docs.tendermint.com/master/rpc/#/
https://sourcegraph.com/search?q=context:global+/tendermint.liquidity.v1beta1.MsgCreatePool&patternType=literal
https://www.youtube.com/watch?v=GxaqpzMk0jk

I've spent over 50 hours+ on the task as i had to follow the https://tutorials.cosmos.network/liquidity-module/ tutorial to the letter and then explore the docs and more.

Thank you 🙏🏽

[Feature] return full transaction

by default, broadcastTransaction method returns TransactionHash if the transaction is successfully broadcasted to the chain, but it would be also beneficial to get the full transaction object that consists of the full logs and any potential errors that would explain why transaction has failed.

Wrong signature causes the loadWallet functionality to break.

If we save any bool variable in the shared preference the app template functionality breaks.

I dig into it and found that the PlainDataStore class contains a method Future<Either<CredentialsStorageFailure, Map<String, String?>>>. Since shared preference can contain an integer, bool, and double too. If we store any of these types of variables this method returns an error.

To Reproduce
Steps to reproduce the behavior:

  1. Store a variable of type int using shared preference. It will break and the loadWalletMethod will throw an error.

Expected behavior

  1. User should be able to get saved wallets.

bug: Update reference forked branch for sacco.dart

The Sacco library currently uses depreciated link which is http://localhost:1317/auth/accounts/{walletAddress}.
I created a PR in Sacco for this fix, now the link for getting account data is localhost:1317/cosmos/auth/v1beta1/accounts/{address}.

This has been done in a branch, the reference of which is to be added in pubspec.yaml file in Flutter app.

Flutter build fails with vanilla chain

Describe the bug
Flutter fails to build on a vanilla Starport generated chain with a Starport generated flutter app.

To Reproduce
Steps to reproduce the behavior:

  1. Scaffold a new chain: starport scaffold chain github.com/mychaind
  2. cd ./mychaind
  3. Scaffold a flutter app: starport scaffold flutter
  4. cd ./flutter
  5. flutter pub get
  6. flutter run
  7. see output failure:
Launching lib/main.dart on Pixel 2 XL in debug mode...
Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
 /home/______/projects/sandbox/cosmos-sdk/mychaind/flutter/android/app/src/debug/AndroidManifest.xml Error:
        Overlay manifest:package attribute declared at AndroidManifest.xml:2:5-57 value=(network.starport.flutter.starport_template)
        has a different value=(com.starport.template) declared in main manifest at AndroidManifest.xml:2:5-36
        Suggestion: remove the overlay declaration at AndroidManifest.xml       and place it in the build.gradle:
                flavorName {
                        applicationId = "network.starport.flutter.starport_template"
                }

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processDebugMainManifest'.
> Manifest merger failed : Overlay manifest:package attribute declared at AndroidManifest.xml:2:5-57 value=(network.starport.flutter.starport_template)
        has a different value=(com.starport.template) declared in main manifest at AndroidManifest.xml:2:5-36
        Suggestion: remove the overlay declaration at AndroidManifest.xml       and place it in the build.gradle:
                flavorName {
                        applicationId = "network.starport.flutter.starport_template"
                }

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 49s
Running Gradle task 'assembleDebug'...                             50.4s
Exception: Gradle task assembleDebug failed with exit code 1

Please provide the version output

  • starport version:
Starport version:       v0.19.2
Starport build date:    2022-01-19T11:16:41Z
Starport source hash:   -
Your OS:                linux
Your arch:              amd64
Your go version:        go version go1.17.6 linux/amd64
Your uname -a:          Linux WE-C-000F5 5.10.60.1-microsoft-standard-WSL2 tendermint/starport#1 SMP Wed Aug 25 23:20:18 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Your cwd:               /home/______/projects/sandbox/cosmos-sdk/mychaind/flutter
Is on Gitpod:           false
  • java version:
openjdk version "1.8.0_292"
OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_292-b10)
OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.292-b10, mixed mode)
  • flutter version:
Flutter 2.8.1 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 77d935af4d (5 weeks ago) • 2021-12-16 08:37:33 -0800
Engine • revision 890a5fca2e
Tools • Dart 2.15.1

[Bug] disable dark mode in starport template

Desription
Currently, when device is set up to work in dark mode, starport template looks bad and most of the UI is unreadable

To Reproduce
Steps to reproduce the behavior:

  1. turn on dark mode on the device
  2. open starport template app
  3. app is showing dark text on dark background

Expected behavior

  1. app is showing in light mode

Firebase App Distribution setup

  • on each commit to open pr we build and distribute android and iOS version to testers and add a comment to the pr with a download link. Only approved testers can follow it, while others will receive 404. there should be a separate testers group on firebase set up for that

  • on each commit to main branch, distribute app version meant for broader audience, interrested only in a working version of the app. there should be a separate testers group on firebase set up for that.

Each of those versions should have a changelog set up out of the last 5 commits

Error connecting: SocketException: OS Error: Connection refused

Desription

When trying to sign a transaction, I am getting this error :

/flutter ( 3753): gRPC Error (code: 14, codeName: UNAVAILABLE, message: Error connecting: SocketException: OS Error: Connection refused, errno = 111, address = api.devtestnet.pylons.tech, port = 60770, details: null, rawResponse: null, trailers: {})
I/flutter ( 3753):
I/flutter ( 3753): AlanTransactionSigningFailure{cause: gRPC Error (code: 14, codeName: UNAVAILABLE, message: Error connecting: SocketException: OS Error: Connection refused, errno = 111, address = api.devtestnet.pylons.tech, port = 60770, details: null, rawResponse: null, trailers: {})}
I/flutter ( 3753): AlanTransactionSigningFailure{cause: gRPC Error (code: 14, codeName: UNAVAILABLE, message: Error connecting: SocketException: OS Error: Connection refused, errno = 111, address = api.devtestnet.pylons.tech, port = 60770, details: null, rawResponse: null, trailers: {})}

I am inclined to think that the problem is in the file :

https://github.com/tendermint/flutter/blob/main/packages/transaction_signing_gateway/lib/alan/alan_credentials_serializer.dart

and that it probably needs to serialize the port information as well, as it seems that AllanSigner is using it somehow and it defaults to 9090 if not found. But this is my assumption.

To Reproduce
Steps to reproduce the behavior:

  1. Use a grpc port different from 9090, the error will likely reproduce.

Expected behavior

  1. Exception reported above.

[Feature] Add `textStyles` field to CosmosTeme

We need to be able to specify typography inside cosmosTheme for the ui components to use in accordance to designs:

  • add CosmosTextStyleData textStyles to CosmosTheme simmilar to colors property.
  • deprecate the CosmosTextTheme and values there should be now specified as properties of the CosmosTextStyleData class

Error reporting not working

When i do a transaction with invalid address. It returns the transaction hash and even though through CLI query i see the error. The transaction signing gateway is not throwing this error.

logs: []
raw_log: 'failed to execute message; message index: 0: ID cookbookLOUD already set:
invalid request'

final result = await _transactionSigningGateway.signTransaction(transaction: unsignedTransaction, walletLookupKey: walletLookupKey).mapError<dynamic>((error) { print(error); throw error; }).flatMap( (signed) => _transactionSigningGateway.broadcastTransaction( walletLookupKey: walletLookupKey, transaction: signed, ), );

CI: Investigate adding app previews

Set up a system where users/developers (stakeholders) who don't have the ability to build and run the project on their machine can preview the app, either by installing it on their phone or viewing it on the web (that could be a good first step).

For tendermint/vue we're using Netlify, maybe there is something similar for Flutter projects.

feat: Mnemonic generation

The app should generate a mnemonic for the user during the first time run, which should be stored in a secure storage.

Issues with package import

Desription
After upgrading to flutter 2.8.0. I am getting the following issue.

Because every version of transaction_signing_gateway from git depends on cosmos_utils from git {relative: false, url: https://github.com/tendermint/flutter.git, ref: starport-redesign, path: packages/cosmos_utils} and pylons_wallet depends on cosmos_utils from git {relative: false, url: https://github.com/tendermint/flutter.git, ref: main, path: packages/cosmos_utils}, transaction_signing_gateway from git is forbidden.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.