tasitlabs / tasit-sdk Goto Github PK
View Code? Open in Web Editor NEWA JavaScript / TypeScript SDK for making native mobile Ethereum dapps using React Native
Home Page: https://tasit.dev
License: MIT License
A JavaScript / TypeScript SDK for making native mobile Ethereum dapps using React Native
Home Page: https://tasit.dev
License: MIT License
tasit-contracts
is a collection of the latest contracts from major projects that could become a popular standalone utility that other developers might use for testing other libraries too. (It's part of the tasit-sdk
by default.)
Reducing necessary time to run test cases who need to wait for transactions confirmation.
Refs: #87 (comment)
Error event or a dedicated separate event for the situation of when a transaction is confirmed in 1 or 2 blocks but then get not additional confirmations. Timer should be reset after each confirmation.
I'm currently conflicted on this, but I'm leaning towards thinking making state management part of the Tasit SDK's purview is overkill.
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
Show how meta-transactions work. Perhaps a function with "free" in the name, perhaps the existing function with different args.
Gas limit - gas limit should be automatic by default but customizable if the user wants
A function for sending transactions
A function for broadcasting signed messages
A function for getting data
A function for listening for events
Lint and test and show status in open PRs
ethers.js does not support Infura API v3 yet: ethers-io/ethers.js#286
API v3 uses projectId
and projectSecret
on basic auth.
It isn't clear but seems that ethers.js uses v2 with API_TOKEN
We can:
@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:
ethers.Wallet.createRandom()
: WARNING: Missing strong random number source; using weak randomBytes;
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:
react-native-secure-random-bytes
for more secure random number generationreact-native-fast-crypto
makes crypto functions faster by running them on native sideBefore 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
Some initial ideas:
Implement event that will fire when transaction reaches 7 confirmations (exact name T.B.D.).
Related: https://blog.ethereum.org/2016/05/09/on-settlement-finality/
Refs: #87 (comment)
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)
This section should remain the same regardless of whether tasit init
was used.
#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)
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)
The requirements are different for a standard contract vs. a ZOS-style delegateproxy upgradeable contract
In the PRs view GitHub makes it look like this PR didn't have all steps checked off. So a checklist isn't the right strategy to use in the PR template
@marcelomorgado Let's work on this together in a feature branch feature/lerna-releases
on the tasitlabs
org. Including tagging release, etc.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.