Code Monkey home page Code Monkey logo

concordium-wallet's Introduction

Concordium Wallet

Concordium's reference wallet for mobile and web, written in Flutter.

JSON models

The JSON models used to deserialize the responses from Wallet Proxy are generated using json_serializable. It works by specifying the data model as plain Dart classes along with a little special syntax for the fromJson and toJson methods. When running the command

dart run build_runner build

the library will expand this syntax into appropriate implementations of these methods in a new file declared with the part directive.

See for example wallet_proxy/model.dart which expands into wallet_proxy/model.g.dart.

The generated class is checked into the repo, but imports always refer to the original one.

Automated Tests

For unit / widget tests, run:

flutter test

For integration tests on android or ios, make sure you have the test device connected and run:

flutter test integration_test

To run integration tests for web, you must install chromedriver, and run it in a separate terminal:

chromedriver --port=4444

And then run the script:

./integration_test/run_tests.sh

If the HEADER environment variable is set, the tests run with a header.

To run a specific test file, examplified here with test_file_name, run::

flutter drive --driver=integration_test/test_driver.dart --target=integration_test/test_file_name.dart -d web-server

You can replace -d web-server with -d chrome for the test to not run headless.

Licenses

To see the allowed licenses, check out scripts/license.yaml.

To get a (readable) list of the licenses of dependencies run:

dart run license_checker check-licenses --config scripts/license.yaml

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.