Fix test script (#47)

This commit is contained in:
Franck R 2022-03-17 14:27:11 +11:00 committed by GitHub
parent 612c2f118a
commit e2e21a3cbb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 38 additions and 15 deletions

View File

@ -5,10 +5,12 @@
"words": [
"backoff",
"backoffs",
"barebones",
"bitjson",
"bitauth",
"Bojda",
"bufbuild",
"browserslist",
"chainsafe",
"cimg",
"ciphertext",
@ -17,6 +19,7 @@
"commitlint",
"dependabot",
"dingpu",
"discv5",
"Dlazy",
"dnsaddr",
"Dout",
@ -49,6 +52,7 @@
"jdev",
"jswaku",
"keccak",
"keypair",
"lastpub",
"libauth",
"libp",
@ -61,11 +65,14 @@
"multiaddrs",
"multicodecs",
"mplex",
"multicall",
"multihashes",
"muxed",
"muxer",
"mvps",
"nodekey",
"nwaku",
"onbeforeunload",
"opendns",
"peerhave",
"portfinder",
@ -74,7 +81,9 @@
"protobuf",
"protoc",
"reactjs",
"readline",
"recid",
"relref",
"rlnrelay",
"roadmap",
"sandboxed",
@ -90,12 +99,14 @@
"submodules",
"supercrypto",
"transpiled",
"transpiles",
"typedoc",
"unencrypted",
"unmount",
"unmounts",
"untracked",
"upgrader",
"usedapp",
"vacp",
"varint",
"waku",
@ -105,6 +116,7 @@
"wakuv",
"webfonts",
"websockets",
"websockify",
"wifi",
"xsalsa20"
],
@ -114,7 +126,14 @@
"package-lock.json",
"yarn.lock",
"tsconfig.json",
"presentations.md", // contains youtube links
"node_modules/**"
]
],
"patterns": [
{ "name": "multiaddr", "pattern": "/p2p.*/" },
{
"name": "youtube-link",
"pattern": "/< youtube.*/"
}
],
"ignoreRegExpList": ["multiaddr", "youtube-link"]
}

View File

@ -7,20 +7,24 @@ It is built using [Hugo](https://gohugo.io/) static site generator.
# Development
You will need to [install Hugo](https://gohugo.io/getting-started/installing) and pull submodules:
```sh
git submodule update --init
```
To start a server that also builds the page use:
```sh
hugo server
```
Will expose the built page under http://localhost:1313/.
# Continuous Integration
Two branches are built by [our Jenkins instance](https://ci.status.im/):
* `master` is deployed to https://docs.wakuconnect.dev/ by [CI](https://ci.status.im/job/website/job/docs.wakuconnect.dev/)
* `develop` is deployed to https://dev-docs.wakuconnect.dev/ by [CI](https://ci.status.im/job/website/job/dev-docs.wakuconnect.dev/)
- `master` is deployed to https://docs.wakuconnect.dev/ by [CI](https://ci.status.im/job/website/job/docs.wakuconnect.dev/)
- `develop` is deployed to https://dev-docs.wakuconnect.dev/ by [CI](https://ci.status.im/job/website/job/dev-docs.wakuconnect.dev/)
PRs should be made for `develop` branch and `master` should be [rebased](https://git-scm.com/book/en/v2/Git-Branching-Rebasing) on `develop` once changes are verified.

View File

@ -238,7 +238,7 @@ export class WakuService {
When using the `bootstrap` option, it may take some time to connect to other peers.
That's why we use the `waku.waitForRemotePeer` function to ensure that there are relay peers available to send and receive messages.
Now we can inject the `WakuService` in to the `AppComponent` class to initialise the node and
Now we can inject the `WakuService` in to the `AppComponent` class to initialize the node and
subscribe to any status changes.
Firstly, import the `WakuService`:

View File

@ -46,7 +46,7 @@ As the current strategy is to connect to nodes operated by Status,
we want to ensure that developers consciously opt-in
while providing a friendly developer experience.
We intend to change this in the future and enable boostrap by default
We intend to change this in the future and enable bootstrap by default
once we have implemented more decentralized strategies.
{{< /hint >}}
@ -129,9 +129,9 @@ import { Waku } from "js-waku";
const waku = await Waku.create({
bootstrap: {
getPeers: async () => {
const addrs = [];
const addresses = [];
// Fetch the multiaddrs from somewhere...
return addrs;
return addresses;
},
},
});

View File

@ -20,7 +20,7 @@ yarn add ethers@5.4.6
```
{{< hint warning >}}
The SDK use `ethers` version 5.4.6 due to incompatibility between minor versions it is recomended to use this version.
The SDK use `ethers` version 5.4.6 due to incompatibility between minor versions it is recommended to use this version.
{{< /hint >}}
Delete the template `App` component:
@ -41,7 +41,7 @@ Use `TopBar` component to display wallet information.
For that, create a `PollPage` component that includes the top bar and will include the poll elements.
The component uses `ethers` to connect to the user's wallet:
`MULTICALL_ADDRESS` is an address to mutical smart contract that allows aggregating multiple contract calls into one, thus reducing number of calls to blockchain needed.
`MULTICALL_ADDRESS` is an address to multicall smart contract that allows aggregating multiple contract calls into one, thus reducing number of calls to blockchain needed.
Example multicall addresses: - Mainnet: `0xeefba1e63905ef1d7acba5a8513c70307c1ce441`, - Ropsten: `0x53c43764255c17bd724f74c4ef150724ac50a3ed`
@ -170,4 +170,4 @@ ReactDOM.render(
```
{{< button relref="./01_create_dapp" >}}Back{{< /button >}}
{{< button relref="./03_connect_walle_useDapp" >}}Next: Connect using useDapp{{< /button >}}
{{< button relref="./03_connect_wallet_useDapp" >}}Next: Connect using useDapp{{< /button >}}

View File

@ -7,10 +7,10 @@
"license": "MIT",
"private": true,
"scripts": {
"fix": "prettier \"content*/**/*.md\" \"./*.json\" --write",
"test": "run-p test:*",
"test:format": "prettier \"content*/**/*.md\" \"./*.json\" --list-different",
"test:spelling": "cspell content/**/*.md",
"fix": "prettier \"*.md\" \"./*.json\" --write",
"test": "run-p 'test:*'",
"test:format": "prettier \"*.md\" \"./*.json\" --list-different",
"test:spelling": "cspell \"content/**/*.md\" \"content/*.md\"",
"serve": "hugo server"
},
"dependencies": {