GithubHelp home page GithubHelp logo

dn3010 / api.js Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cennznet/api.js

0.0 1.0 1.0 2.68 MB

CENNZNet JS SDK for browsers, React Native and Node.js

License: Apache License 2.0

JavaScript 1.75% TypeScript 97.79% Shell 0.39% Dockerfile 0.07%

api.js's Introduction

CENNZNet SDK

The Cennznet JavaScript API library for browsers and Node.js.

Get started

Development guide

Release notes

[27/03/2020] 1.0.0 version:

  • @cennznet/[email protected] (current stage) is working with [cennznet/cennznet:latest][cennznet/cennznet:latest];

Changes made in this version:

  • Derived query for estimating fee is updated.
  • New format to use fee exchange.
    const feeExchange = {
                        assetId: feeAssetId,
                        maxPayment: '50000000000000000',
                    };
                    const transactionPayment = {
                        tip: 2,
                        feeExchange: {
                            FeeExchangeV1: feeExchange,
                        },
                    };
  • CENNZX rpc call to get price queries.
  • Removed plugnet dependencies.
  • Support MultiSignature, registry, discontinue support to v1.

[17/01/2020] Proper document to be added when 1.0.0 final is releasing, here is a quick note:

  • @cennznet/[email protected] is the last version working with cennznet/cennznet:0.*.*;
  • @cennznet/[email protected].* (current stage) is working with [cennznet/cennznet:1.0.0-rc1][cennznet/cennznet:1.0.0-rc1];
  • @cennznet/[email protected].* (next stage) is planned to work with cennznet/cennznet:1.0.0-rc2(to be released);

Changes made in alpha version:

  • Updated Extrinsic types
    • Added ChargeTransactionPayment type, which contains tip (default 0) and FeeExchange (default None);
  • Changed dependencies from @plugnet/api to @polkadot/[email protected] directly (breaking changes were introduced in @polkadot/[email protected], which could be upgraded in beta releases);

Please read the documentation for more.

Components

Name Description
@cennznet/api package that providing the api
@cennznet/wallet a wallet implementation that can be used as signer for api
@cennznet/util cennznet specific utility functions
@cennznet/types cennznet specific type definitions

Cennznet runtime module libraries

Name Description
@cennznet/crml-generic-asset A sdk providing additional features for generic asset runtime module
@cennznet/crml-cennzx-spot A sdk providing additional features for cennzx spot runtime module
@cennznet/crml-attestation A sdk providing additional features for Cennznet's Identity Service.

Examples

docs/examples

api.js's People

Contributors

karishmabothara avatar ianhe8x avatar alexzhenwang avatar benxgao avatar jordy25519 avatar charles-salmon avatar dependabot[bot] avatar

Watchers

James Cloos avatar

Forkers

delri0

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.