Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
0xsequence
Advanced tools
Readme
npm install 0xsequence ethers
or
pnpm install 0xsequence ethers
or
yarn add 0xsequence ethers
Sequence is a critical piece of software and any change should be delivered via a TDD (test-driven development) workflow.
As well, sequence.js's monorepo tooling is setup with preconstruct, which links all sub-packages together
so it feels like a single program and is easy to work with. Please run yarn dev
in the root of sequence.js/
folder to ensure the monorepo is in 'dev-mode'.
Second, you can run the test suite directly from console with a single yarn test
, or you can boot up the Typescript
compiling server (yarn test:server
) and ethereum test node (yarn start:hardhat
and yarn start:hardhat2
) manually
in separate terminals, and then run a specific test directly from your browser instance. We recommend running the
test stack separately and running specific browser tests manually during development. See here for recommended setup.
This 0xsequence top-level package contains e2e tests which run in a headless chrome browser.
You can view tests running directly from the browser directly, or from the cli which will communicate to the headless browser behind the scenes. See below. Please note, for an improved development workflow we highly recommend to view your tests running from the browser as its more clear and better experience.
yarn test:server
-- in one terminal, to start the webpack server compiling typescriptyarn start:hardhat
-- in a second terminal, to start hardhat local ethereum test nodeyarn start:hardhat2
-- (2nd chain) in a third terminal, to start hardhat2 local ethereum test nodehttp://localhost:9999/{browser-test-dir}/{test-filename}.test.html
for example,
http://localhost:9999/wallet-provider/dapp.test.htmlFinally, if you'd like to run only a specific test case, either add a temporary "return" statement following the last test case, so you will preempt the runner after a certain test case.
As well, since you have all the services running in terminals, you can also execute commands via
the cli by calling test:run
, which is similar to step 4 above, but executing all tests from the terminal.
There is also the test:only
command if you'd like to execute a specific test from ./tests/browser/*.spec.ts
file, ie. yarn test:only window-transport
.
With a single command, you can spin up the testing stack and execute tests:
yarn test
This is useful for a sanity check to ensure tests pass, or using it with the CI. However, if you're developing on sequence.js, its highly recommended you follow the development workflow instructions.
FAQs
Sequence: a modular web3 stack and smart wallet for Ethereum chains
The npm package 0xsequence receives a total of 9,913 weekly downloads. As such, 0xsequence popularity was classified as popular.
We found that 0xsequence demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.