GithubHelp home page GithubHelp logo

tasitlabs / tasit-sdk Goto Github PK

View Code? Open in Web Editor NEW
98.0 98.0 10.0 14.81 MB

A JavaScript / TypeScript SDK for making native mobile Ethereum dapps using React Native

Home Page: https://tasit.dev

License: MIT License

JavaScript 5.25% CSS 0.55% TypeScript 66.41% Solidity 27.79%
android dapp ethereum ios javascript mobile mobile-dapps native react-native sdk smart-contracts solidity tasit typescript

tasit-sdk's People

Contributors

dependabot[bot] avatar greenkeeper[bot] avatar marcelomorgado avatar pcowgill 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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  avatar  avatar

tasit-sdk's Issues

Document how tasit-action works behind the scenes a little more

  1. tasit-action should internally keep track of whether it's connected and establish a connection whenever it's needed, but it shouldn't be connected by default. I don't think tasit-action needs a connect() function

  2. Show how meta-transactions work. Perhaps a function with "free" in the name, perhaps the existing function with different args.

  3. Gas limit - gas limit should be automatic by default but customizable if the user wants

Use a better random number source

@marcelomorgado tested the ethers.js module manually following examples on docs (wallet creation, tx sign, provider calls, contract read/write functions and events). The library worked well, and the remaining issues to address are these:

  1. ethers.Wallet.createRandom(): WARNING: Missing strong random number source; using weak randomBytes;
  2. ethers.Wallet.fromEncryptedJson(json, password) / ethers.Wallet.encrypt(password): scrypt is too slow to be functional (> 5min).

Let's determine whether these are the best packages to use to address this:

  1. react-native-secure-random-bytes for more secure random number generation
  2. react-native-fast-crypto makes crypto functions faster by running them on native side

Before we go with those, we should explore alternatives in pure js and other native alternatives wrapped in a react-native package.

Note: This task is a prerequisite for #4

TasitAction.Contract confirmation-timeout event

When event reach timeout it' should emit a specific event. The timed out event listener shouldn't be removed automatically.

Actually, I would argue that even the confirmation listener shouldn't have a timeout. Internally within the SDK, the event for a "confirmation-timeout" (exact name T.B.D.) will only be fired after a timeout since the last confirmation, though. But no listener will be removed automatically after a timeout without an explicit removeListener

Refs: #71 (comment)

Add remaining contract interaction functionality to tasit-action

#71 (comment) (PR #139)
#71 (comment) (extracted to #138)
#71 (comment) (resolved)
#71 (comment) (resolved)
#71 (comment) (resolved)
#71 (comment) (resolved)
#71 (comment) (resolved)
#71 (comment) (resolved)
#71 (comment) (resolved)
#71 (comment) (resolved)
#71 (comment) (resolved)
#71 (comment) (resolved)
#71 (comment) (resolved)
#71 (comment) (extracted to #88)
#71 (comment) (extracted to #88)
#71 (comment) (extracted to #118)
#71 (comment) (extracted to #119)
#71 (comment) (extracted to #104)
#71 (comment) (extracted to Extracted to #120)
#71 (comment) (resolved)
#71 (comment) (resolved)
#71 (comment) (extracted to #103)
#71 (comment) (resolved)
#71 (comment) (resolved)
#71 (comment) (extracted to #105)
#71 (comment) (resolved)
#71 (comment) (extracted to #96)

Solve TasitAction.Contract open threads

Events behavior/API
#87 (comment) medium-high priority (PR #122)
#87 (comment) low priority (resolved)
#87 (comment) (#112)
#87 (comment) high priority (#100)
#87 (comment) high priority (#100)
#87 (comment) high priority (#100)
#87 (comment) (#96)
#87 (comment) low priority
#87 (comment) (#97)
#95 (comment) (PR #102)
#95 (comment)

waitForMessage
#87 (comment) (PR #102)

Config
#87 (comment) low priority (#103)
#87 (comment) low priority
#87 (comment) low priority (#103)

Tests
#87 (comment) (PR #114)
#87 (comment) (#113)
Solve Non-Deterministic tests (PR #102)
#87 (comment)
#87 (comment)
#87 (comment)
#87 (comment) (PR #102)
#87 (comment) (PR #102)
#87 (comment) (Faketimers, thread below).
#87 (comment)
#87 (comment) (PR #102)
#87 (comment) (duplicated)
#87 (comment) (#104)
#87 (comment) (#105)
#87 (comment) (PR #102)
#87 (comment) (PR #102)
#87 (comment)
#87 (comment) (PR #102)
#87 (comment)
#87 (comment) (PR #102)
#87 (comment) (#106)
#87 (comment) (#106)
#87 (comment) (#104)
#87 (comment) (PR #102)

Others
#87 (comment) (#98)
#87 (comment) (#99)

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.