Git Product home page Git Product logo

ima-ui's Introduction

IMA UI

Discord

IMA-UI is a Typescirpt/Javascript sample project which uses ima-js under the hood to demonstrate the functionality of SKALE Interchain Messaging Agent (IMA).

This project is for testing purposes only!

Usage

You can connect ima-ui to any pair of networks (Mainnet and SKALE chain), it can be ima-sdk or real networks, like Rinkeby and real SKALE chain.

You can find instructions for running IMA-SDK in this doc.

Required .env variables:

REACT_APP_CUSTOM_MAINNET_URL=https://test-sdk.com/mainnet # example
REACT_APP_MAINNET_CHAIN_ID='0x561'

REACT_APP_CUSTOM_SCHAIN_URL=https://test-sdk.com/schain # example
REACT_APP_SCHAIN_CHAIN_ID='0x12345'

REACT_APP_CUSTOM_SCHAIN_NAME='Bob'

ABIs

To run ima-ui you will need IMA ABIs both for Mainnet and sChain sides:

  1. Put Mainnet IMA ABI to: src/abi/proxyMainnet.json
  2. Put sChain IMA ABI to: src/abi/proxySchain.json
  3. Put Mainnet SKALE Manager ABI to: src/abi/manager.json (for test purposes you can use any valid SKALE Manager ABI from any public release)

Deploy test ERC20 tokens

To test ERC20 transfers you can deploy a few test tokens to the Mainnet & sChain sides using scripts from the repo:

bash scripts/deploy_test_tokens.sh

NOTE: To do this, add the following environment variables to your .env file:

TEST_PRIVATE_KEY=
TEST_ADDRESS=

MAINNET_ENDPOINT=
SCHAIN_ENDPOINT=

After deploying tokens put Mainnet addresses in the src/meta/tokens.json in the following format:

{
  "erc20": {
    "TICKER": {
      "name": "Token name",
      "address": "0x..."
    },
    ...
  }
}

Development

yarn install
yarn start

After running the server you should be able to make changes interactively.

The project is based on react-react-app and uses mui React library for the frontend.

Contributing

If you have any questions please ask our development community on Discord.

Discord

License

GitHub

All contributions are made under the GNU Affero General Public License v3. See LICENSE.

ima-ui's People

Contributors

dmytrotkk avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

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.