starknet 3.15.0 → 3.15.3
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/.github/workflows/pr.yml +10 -8
- package/.github/workflows/release.yml +29 -3
- package/CHANGELOG.md +22 -0
- package/__mocks__/Account.json +1182 -1164
- package/__tests__/account.test.ts +19 -8
- package/__tests__/contract.test.ts +4 -10
- package/__tests__/fixtures.ts +25 -13
- package/__tests__/jest.setup.ts +3 -0
- package/__tests__/provider.test.ts +50 -85
- package/__tests__/utils/__snapshots__/utils.browser.test.ts.snap +2 -2
- package/__tests__/utils/__snapshots__/utils.test.ts.snap +2 -2
- package/__tests__/utils/utils.browser.test.ts +3 -5
- package/__tests__/utils/utils.test.ts +3 -5
- package/dist/provider/default.js +10 -3
- package/dist/provider/utils.js +1 -1
- package/dist/types/api.d.ts +7 -3
- package/package.json +4 -2
- package/provider/default.js +12 -2
- package/provider/utils.js +1 -1
- package/src/provider/default.ts +9 -2
- package/src/provider/utils.ts +1 -1
- package/src/types/api.ts +11 -3
- package/types/api.d.ts +10 -3
- package/www/docs/API/{contractFacotry.md → contractFactory.md} +0 -0
- package/www/docs/API/utils.md +231 -0
- package/www/guides/account.md +4 -4
- package/__mocks__/ArgentAccount.json +0 -100369
- package/__mocks__/Readme.md +0 -2
package/.github/workflows/pr.yml
CHANGED
|
@@ -8,19 +8,21 @@ on:
|
|
|
8
8
|
jobs:
|
|
9
9
|
build-and-test:
|
|
10
10
|
runs-on: ubuntu-latest
|
|
11
|
-
|
|
12
|
-
matrix:
|
|
13
|
-
node-version:
|
|
14
|
-
- 14.x
|
|
11
|
+
|
|
15
12
|
env:
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
TEST_PROVIDER_BASE_URL: http://127.0.0.1:5050/
|
|
14
|
+
services:
|
|
15
|
+
devnet:
|
|
16
|
+
image: janek2601/starknet-devnet-patched
|
|
17
|
+
ports:
|
|
18
|
+
- 5050:5050
|
|
19
|
+
|
|
18
20
|
steps:
|
|
19
21
|
- uses: actions/checkout@v2
|
|
20
|
-
- name: Use Node.js
|
|
22
|
+
- name: Use Node.js 14
|
|
21
23
|
uses: actions/setup-node@v2
|
|
22
24
|
with:
|
|
23
|
-
node-version:
|
|
25
|
+
node-version: lts/*
|
|
24
26
|
- run: npm ci
|
|
25
27
|
- run: npm run build --if-present
|
|
26
28
|
- run: npm test
|
|
@@ -4,12 +4,19 @@ on:
|
|
|
4
4
|
branches:
|
|
5
5
|
- main
|
|
6
6
|
- develop
|
|
7
|
+
|
|
7
8
|
jobs:
|
|
8
9
|
build-and-test:
|
|
9
10
|
runs-on: ubuntu-latest
|
|
11
|
+
|
|
10
12
|
env:
|
|
11
|
-
|
|
12
|
-
|
|
13
|
+
TEST_PROVIDER_BASE_URL: http://127.0.0.1:5050/
|
|
14
|
+
services:
|
|
15
|
+
devnet:
|
|
16
|
+
image: janek2601/starknet-devnet-patched
|
|
17
|
+
ports:
|
|
18
|
+
- 5050:5050
|
|
19
|
+
|
|
13
20
|
steps:
|
|
14
21
|
- uses: actions/checkout@v2
|
|
15
22
|
- name: Use Node.js 14
|
|
@@ -24,10 +31,29 @@ jobs:
|
|
|
24
31
|
with:
|
|
25
32
|
name: build
|
|
26
33
|
path: dist
|
|
34
|
+
|
|
35
|
+
integration-test:
|
|
36
|
+
runs-on: ubuntu-latest
|
|
37
|
+
|
|
38
|
+
env:
|
|
39
|
+
TEST_PROVIDER_BASE_URL: https://alpha4.starknet.io
|
|
40
|
+
TEST_ACCOUNT_PRIVATE_KEY: ${{ secrets.TEST_ACCOUNT_PRIVATE_KEY }}
|
|
41
|
+
TEST_ACCOUNT_ADDRESS: ${{ secrets.TEST_ACCOUNT_ADDRESS }}
|
|
42
|
+
TEST_RPC_URL: ${{ secrets.TEST_RPC_URL }}
|
|
43
|
+
|
|
44
|
+
steps:
|
|
45
|
+
- uses: actions/checkout@v2
|
|
46
|
+
- name: Use Node.js 14
|
|
47
|
+
uses: actions/setup-node@v2
|
|
48
|
+
with:
|
|
49
|
+
node-version: lts/*
|
|
50
|
+
- run: npm ci
|
|
51
|
+
- run: npm test
|
|
52
|
+
|
|
27
53
|
release:
|
|
28
54
|
name: Release
|
|
29
55
|
runs-on: ubuntu-latest
|
|
30
|
-
needs: [build-and-test]
|
|
56
|
+
needs: [build-and-test, integration-test]
|
|
31
57
|
steps:
|
|
32
58
|
- uses: actions/checkout@v2
|
|
33
59
|
- uses: actions/setup-node@v2
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
## [3.15.3](https://github.com/0xs34n/starknet.js/compare/v3.15.2...v3.15.3) (2022-06-20)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
- **dev:** regenerated package-lock.json ([849cb1e](https://github.com/0xs34n/starknet.js/commit/849cb1ea3ffd7ba10b40b232d0ebc46b6599c7ea))
|
|
6
|
+
- use cross-fetch only for jest ([83be37a](https://github.com/0xs34n/starknet.js/commit/83be37a9e3328a44abd9583b8167c3cb8d882790))
|
|
7
|
+
|
|
8
|
+
## [3.15.2](https://github.com/0xs34n/starknet.js/compare/v3.15.1...v3.15.2) (2022-06-18)
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
- **cleanup:** cleanup ([a15b6c6](https://github.com/0xs34n/starknet.js/commit/a15b6c6bf13ce7af699c293d697b5136188388c3))
|
|
13
|
+
- **errorcode:** fixed error code >=400 instead of !=200 ([0f16595](https://github.com/0xs34n/starknet.js/commit/0f1659543ba95ce7cac31a5182dad2e33325d4c1))
|
|
14
|
+
- **fetchEndpoint:** error handling and test case fix ([629479f](https://github.com/0xs34n/starknet.js/commit/629479f877aa7d6f39c8d31b2c9449563aadd0e7))
|
|
15
|
+
- **verify:** return false when 500 returned from the gateway ([de3e004](https://github.com/0xs34n/starknet.js/commit/de3e00461730d6fa112046169470d7a603baa296))
|
|
16
|
+
|
|
17
|
+
## [3.15.1](https://github.com/0xs34n/starknet.js/compare/v3.15.0...v3.15.1) (2022-06-17)
|
|
18
|
+
|
|
19
|
+
### Bug Fixes
|
|
20
|
+
|
|
21
|
+
- response type for get-transaction ([a232725](https://github.com/0xs34n/starknet.js/commit/a232725099893b45fd6feda0a4cac7d05f903435))
|
|
22
|
+
|
|
1
23
|
# [3.15.0](https://github.com/0xs34n/starknet.js/compare/v3.14.1...v3.15.0) (2022-06-16)
|
|
2
24
|
|
|
3
25
|
### Bug Fixes
|