1.9.19 • Published 5 days ago

0xsequence v1.9.19

Weekly downloads
217
License
Apache-2.0
Repository
github
Last release
5 days ago

0xsequence

Install

npm install 0xsequence ethers

or

pnpm install 0xsequence ethers

or

yarn add 0xsequence ethers

Development Workflow

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 pnpm 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 pnpm test, or you can boot up the Typescript compiling server (pnpm test:server) and ethereum test node (pnpm start:hardhat and pnpm 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.

Running E2E Tests

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.

From Browser

  1. pnpm test:server -- in one terminal, to start the webpack server compiling typescript
  2. pnpm start:hardhat -- in a second terminal, to start hardhat local ethereum test node
  3. pnpm start:hardhat2 -- (2nd chain) in a third terminal, to start hardhat2 local ethereum test node
  4. open browser to http://localhost:9999/{browser-test-dir}/{test-filename}.test.html for example, http://localhost:9999/wallet-provider/dapp.test.html
  5. open your browser console so you can see the tests running and their results.

Finally, 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. pnpm test:only window-transport.

From CLI

With a single command, you can spin up the testing stack and execute tests:

pnpm 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.

1.9.19

5 days ago

1.9.18

6 days ago

1.9.17

12 days ago

1.9.16

12 days ago

1.9.15

13 days ago

1.9.14

18 days ago

1.9.13

25 days ago

1.9.12

25 days ago

1.9.11

1 month ago

1.9.10

1 month ago

1.9.9

1 month ago

1.9.8

1 month ago

1.9.7

1 month ago

1.9.6

1 month ago

1.9.5

2 months ago

1.9.4

2 months ago

1.9.3

2 months ago

1.9.2

2 months ago

1.9.1

2 months ago

1.9.0

2 months ago

1.8.8

2 months ago

1.8.7

2 months ago

1.8.6

2 months ago

1.8.5

2 months ago

1.8.4

3 months ago

1.8.3

3 months ago

1.8.2

3 months ago

1.8.1

3 months ago

1.8.0

3 months ago

1.7.2

3 months ago

1.7.1

3 months ago

1.7.0

3 months ago

1.6.3

3 months ago

1.6.2

4 months ago

1.6.1

4 months ago

1.6.0

4 months ago

1.5.0

5 months ago

1.4.6

5 months ago

1.4.5

5 months ago

1.4.9

5 months ago

1.4.8

5 months ago

1.4.7

5 months ago

1.4.4

5 months ago

1.4.3

5 months ago

1.4.2

5 months ago

1.4.1

5 months ago

1.4.0

5 months ago

1.3.0

6 months ago

1.2.9

6 months ago

1.2.8

6 months ago

1.2.0

8 months ago

1.2.7

6 months ago

1.2.6

6 months ago

1.2.4

7 months ago

1.2.3

7 months ago

1.2.2

7 months ago

1.2.1

8 months ago

1.1.1

9 months ago

1.1.0

9 months ago

1.1.9

8 months ago

1.1.8

8 months ago

1.1.7

8 months ago

1.1.6

9 months ago

1.1.5

9 months ago

1.1.4

9 months ago

1.1.3

9 months ago

1.1.2

9 months ago

1.1.12

8 months ago

1.1.11

8 months ago

1.1.10

8 months ago

1.1.15

8 months ago

1.1.14

8 months ago

1.1.13

8 months ago

1.0.2

9 months ago

1.0.1

9 months ago

1.0.0

9 months ago

1.0.5

9 months ago

1.0.4

9 months ago

1.0.3

9 months ago

0.43.31

11 months ago

0.43.30

11 months ago

0.43.33

11 months ago

0.43.32

11 months ago

0.43.34

10 months ago

0.43.28

11 months ago

0.43.27

12 months ago

0.43.29

11 months ago

0.43.26

1 year ago

0.43.20

1 year ago

0.43.22

1 year ago

0.43.21

1 year ago

0.43.24

1 year ago

0.43.23

1 year ago

0.43.25

1 year ago

0.43.15

1 year ago

0.43.17

1 year ago

0.43.16

1 year ago

0.43.19

1 year ago

0.43.18

1 year ago

0.43.8

1 year ago

0.43.9

1 year ago

0.43.11

1 year ago

0.43.10

1 year ago

0.43.13

1 year ago

0.43.12

1 year ago

0.43.14

1 year ago

0.43.0

1 year ago

0.42.8

2 years ago

0.42.9

1 year ago

0.42.6

2 years ago

0.42.7

2 years ago

0.42.4

2 years ago

0.42.5

2 years ago

0.42.3

2 years ago

0.43.7

1 year ago

0.43.5

1 year ago

0.43.6

1 year ago

0.43.3

1 year ago

0.43.4

1 year ago

0.43.1

1 year ago

0.43.2

1 year ago

0.42.10

1 year ago

0.41.1

2 years ago

0.41.2

2 years ago

0.42.2

2 years ago

0.42.0

2 years ago

0.42.1

2 years ago

0.41.3

2 years ago

0.41.0

2 years ago

0.40.6

2 years ago

0.40.4

2 years ago

0.40.5

2 years ago

0.40.2

2 years ago

0.40.3

2 years ago

0.40.0

2 years ago

0.40.1

2 years ago

0.39.1

2 years ago

0.39.6

2 years ago

0.39.5

2 years ago

0.39.4

2 years ago

0.39.3

2 years ago

0.39.2

2 years ago

0.36.12

2 years ago

0.36.13

2 years ago

0.37.1

2 years ago

0.37.0

2 years ago

0.38.2

2 years ago

0.38.1

2 years ago

0.38.0

2 years ago

0.39.0

2 years ago

0.36.9

2 years ago

0.36.8

2 years ago

0.36.7

2 years ago

0.36.6

2 years ago

0.36.5

2 years ago

0.36.10

2 years ago

0.36.11

2 years ago

0.36.4

2 years ago

0.36.3

2 years ago

0.36.2

2 years ago

0.36.1

2 years ago

0.36.0

2 years ago

0.35.11

2 years ago

0.35.12

2 years ago

0.35.10

2 years ago

0.34.1

2 years ago

0.34.0

2 years ago

0.35.5

2 years ago

0.35.4

2 years ago

0.35.3

2 years ago

0.35.2

2 years ago

0.31.6

2 years ago

0.35.1

2 years ago

0.31.5

2 years ago

0.35.0

2 years ago

0.31.4

2 years ago

0.35.9

2 years ago

0.35.8

2 years ago

0.35.7

2 years ago

0.35.6

2 years ago

0.29.9

2 years ago

0.29.8

2 years ago

0.30.0

2 years ago

0.31.3

2 years ago

0.31.2

2 years ago

0.31.1

2 years ago

0.31.0

2 years ago

0.29.7

2 years ago

0.29.6

2 years ago

0.29.5

2 years ago

0.29.4

2 years ago

0.29.3

2 years ago

0.29.0

3 years ago

0.29.2

3 years ago

0.29.1

3 years ago

0.28.0

3 years ago

0.27.2

3 years ago

0.27.1

3 years ago

0.27.0

3 years ago

0.25.2

3 years ago

0.26.0

3 years ago

0.25.1

3 years ago

0.25.0

3 years ago

0.24.1

3 years ago

0.24.0

3 years ago

0.23.0

3 years ago

0.22.2

3 years ago

0.22.1

3 years ago

0.22.0

3 years ago

0.21.5

3 years ago

0.21.4

3 years ago

0.21.3

3 years ago

0.21.2

3 years ago

0.21.1

3 years ago

0.21.0

3 years ago

0.20.0

3 years ago

0.19.2

3 years ago

0.19.3

3 years ago

0.19.1

3 years ago

0.19.0

3 years ago

0.18.0

3 years ago

0.17.0

3 years ago

0.16.1

3 years ago

0.16.0

3 years ago

0.15.1

3 years ago

0.15.0

3 years ago

0.14.2

3 years ago

0.14.0

3 years ago

0.13.0

3 years ago

0.12.2

3 years ago

0.12.3

3 years ago

0.12.4

3 years ago

0.12.0

3 years ago

0.12.1

3 years ago

0.11.4

3 years ago

0.11.3

3 years ago

0.11.2

3 years ago

0.11.1

3 years ago

0.11.0

3 years ago

0.10.9

3 years ago

0.10.8

3 years ago

0.10.7

3 years ago

0.10.6

3 years ago

0.10.3

3 years ago

0.10.4

3 years ago

0.10.5

3 years ago

0.10.0

3 years ago

0.10.1

3 years ago

0.10.2

3 years ago

0.9.6

3 years ago

0.9.4

3 years ago

0.9.3

3 years ago

0.9.2

3 years ago

0.9.1

3 years ago

0.8.5

3 years ago

0.8.4

3 years ago

0.8.3

3 years ago

0.8.2

3 years ago

0.8.1

3 years ago

0.8.0

3 years ago

0.7.4

3 years ago

0.7.3

3 years ago

0.7.2

3 years ago

0.7.1

3 years ago

0.7.0

3 years ago

0.0.1

4 years ago