@dashevo/dpns-contract 0.4.0 → 0.21.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dashevo/dpns-contract",
3
- "version": "0.4.0",
3
+ "version": "0.21.4",
4
4
  "description": "A contract and helper scripts for DPNS DApp",
5
5
  "scripts": {
6
6
  "lint": "eslint .",
@@ -31,14 +31,14 @@
31
31
  ],
32
32
  "license": "MIT",
33
33
  "devDependencies": {
34
- "@dashevo/dpp": "~0.21.0-dev.5",
35
- "chai": "^4.2.0",
34
+ "@dashevo/dpp": "~0.21.4",
35
+ "chai": "^4.3.4",
36
36
  "dirty-chai": "^2.0.1",
37
- "eslint": "^6.7.2",
38
- "eslint-config-airbnb-base": "^14.0.0",
39
- "eslint-plugin-import": "^2.19.1",
40
- "mocha": "^8.1.1",
41
- "sinon": "^8.0.1",
42
- "sinon-chai": "^3.4.0"
37
+ "eslint": "^7.32.0",
38
+ "eslint-config-airbnb-base": "^14.2.1",
39
+ "eslint-plugin-import": "^2.24.2",
40
+ "mocha": "^9.1.2",
41
+ "sinon": "^11.1.2",
42
+ "sinon-chai": "^3.7.0"
43
43
  }
44
44
  }
@@ -29,7 +29,9 @@ describe('DPNS Contract', () => {
29
29
  fetchContractStub.resolves(dataContract);
30
30
  });
31
31
 
32
- it('should have a valid contract definition', async () => {
32
+ it('should have a valid contract definition', async function shouldHaveValidContract() {
33
+ this.timeout(5000);
34
+
33
35
  const validationResult = await dpp.dataContract.validate(dataContract);
34
36
 
35
37
  expect(validationResult.isValid()).to.be.true();
@@ -1,38 +0,0 @@
1
- ---
2
- name: Bug report
3
- about: Create a report to help us improve
4
- title: ''
5
- labels: 'bug'
6
- assignees: ''
7
-
8
- ---
9
-
10
- <!--- Provide a general summary of the issue in the Title above -->
11
-
12
- ## Expected Behavior
13
- <!--- Tell us what should happen -->
14
-
15
- ## Current Behavior
16
- <!--- Tell us what happens instead of the expected behavior -->
17
-
18
- ## Possible Solution
19
- <!--- Not obligatory, but suggest a fix/reason for the bug -->
20
-
21
- ## Steps to Reproduce (for bugs)
22
- <!--- Provide a link to a live example, or an unambiguous set of steps to -->
23
- <!--- reproduce this bug. Include code to reproduce, if relevant -->
24
- 1.
25
- 2.
26
- 3.
27
- 4.
28
-
29
- ## Context
30
- <!--- How has this issue affected you? What are you trying to accomplish? -->
31
- <!--- Providing context helps us come up with a solution that is most useful in the real world -->
32
-
33
- ## Your Environment
34
- <!--- Include as many relevant details about the environment you experienced the bug in -->
35
- * Version used:
36
- * Environment name and version (e.g. Chrome 39, node.js 5.4):
37
- * Operating System and version (desktop, server, or mobile):
38
- * Link to your project:
@@ -1,26 +0,0 @@
1
- ---
2
- name: Feature request
3
- about: Suggest an idea for this project
4
- title: ''
5
- labels: 'enhancement'
6
- assignees: ''
7
-
8
- ---
9
-
10
- <!--- Provide a general summary of the feature request in the Title above -->
11
-
12
- ## Expected Behavior
13
- <!--- A clear and concise description of what you want to happen -->
14
-
15
- ## Current Behavior
16
- <!--- Explain the difference from current behavior -->
17
-
18
- ## Possible Solution
19
- <!--- Suggest ideas of how to implement the addition or change -->
20
-
21
- ## Alternatives Considered
22
- <!--- A clear and concise description of any alternative solutions or features you've considered -->
23
-
24
- ## Additional Context
25
- <!--- Add any other context or screenshots about the feature request here. -->
26
-
@@ -1,32 +0,0 @@
1
- <!--- Provide a general summary of your changes in the Title above -->
2
- <!--- Pull request titles must use the [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/#summary) format -->
3
-
4
- ## Issue being fixed or feature implemented
5
- <!--- Why is this change required? What problem does it solve? -->
6
- <!--- If it fixes an open issue, please link to the issue here. -->
7
-
8
-
9
- ## What was done?
10
- <!--- Describe your changes in detail -->
11
-
12
-
13
- ## How Has This Been Tested?
14
- <!--- Please describe in detail how you tested your changes. -->
15
- <!--- Include details of your testing environment, and the tests you ran to -->
16
- <!--- see how your change affects other areas of the code, etc. -->
17
-
18
-
19
- ## Breaking Changes
20
- <!--- Please describe any breaking changes your code introduces and verify that -->
21
- <!--- the title includes "!" following the conventional commit type (e.g. "feat!: ..."-->
22
-
23
-
24
- ## Checklist:
25
- <!--- Go over all the following points, and put an `x` in all the boxes that apply. -->
26
- - [ ] I have performed a self-review of my own code
27
- - [ ] I have commented my code, particularly in hard-to-understand areas
28
- - [ ] I have added or updated relevant unit/integration/functional/e2e tests
29
- - [ ] I have made corresponding changes to the documentation
30
-
31
- **For repository code-owners and collaborators only**
32
- - [ ] I have assigned this pull request to a milestone
@@ -1,83 +0,0 @@
1
- name: Test and Release
2
-
3
- on:
4
- workflow_dispatch:
5
- release:
6
- types:
7
- - published
8
- pull_request:
9
- branches:
10
- - master
11
- - v[0-9]+.[0-9]+-dev
12
-
13
- jobs:
14
- test:
15
- name: Run DPNS Contract tests
16
- runs-on: ubuntu-20.04
17
- timeout-minutes: 10
18
- steps:
19
- - uses: actions/checkout@v2
20
-
21
- - uses: actions/setup-node@v2
22
- with:
23
- node-version: '16'
24
-
25
- - name: Enable NPM cache
26
- uses: actions/cache@v2
27
- with:
28
- path: '~/.npm'
29
- key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
30
- restore-keys: |
31
- ${{ runner.os }}-node-
32
-
33
- - name: Check NPM package lock version is updated
34
- uses: dashevo/gh-action-check-package-lock@v1
35
-
36
- - name: Install NPM dependencies
37
- run: npm ci
38
-
39
- - name: Run ESLinter
40
- run: npm run lint
41
-
42
- - name: Run tests
43
- run: npm run test
44
-
45
- release:
46
- name: Release NPM package
47
- runs-on: ubuntu-20.04
48
- needs: test
49
- if: ${{ github.event_name == 'release' }}
50
- steps:
51
- - uses: actions/checkout@v2
52
-
53
- - name: Check package version matches tag
54
- uses: geritol/match-tag-to-package-version@0.1.0
55
- env:
56
- TAG_PREFIX: refs/tags/v
57
-
58
- - name: Enable NPM cache
59
- uses: actions/cache@v2
60
- with:
61
- path: '~/.npm'
62
- key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
63
- restore-keys: |
64
- ${{ runner.os }}-node-
65
-
66
- - name: Install NPM dependencies
67
- run: npm ci
68
-
69
- - name: Set release tag
70
- uses: actions/github-script@v3
71
- id: tag
72
- with:
73
- result-encoding: string
74
- script: |
75
- const tag = context.payload.release.tag_name;
76
- const [, major, minor] = tag.match(/^v([0-9]+)\.([0-9]+)/);
77
- return (tag.includes('dev') ? `${major}.${minor}-dev` : 'latest');
78
-
79
- - name: Publish NPM package
80
- uses: JS-DevTools/npm-publish@v1
81
- with:
82
- token: ${{ secrets.NPM_TOKEN }}
83
- tag: ${{ steps.tag.outputs.result }}