Skip to content

Commit db1c64c

Browse files
deploy: dc51f9e
0 parents  commit db1c64c

File tree

76 files changed

+12932
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+12932
-0
lines changed

.env.example

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
WALLET_PRIVATE_KEY_A=0x0000000000000000000000000000000000000000
2+
WALLET_PRIVATE_KEY_B=0x0000000000000000000000000000000000000000
3+
WALLET_PRIVATE_KEY_C=0x0000000000000000000000000000000000000000
4+
5+
STORY_RPC_PROVIDER_URL=https://story-network.rpc.caldera.xyz/http
6+
STORY_NFT_CONTRACT_ADDRESS=0x0000000000000000000000000000000000000000
7+
STORY_LICENSING_MODULE_ADDRESS=0x0000000000000000000000000000000000000000
8+
STORY_ROYALTY_POLICY_ADDRESS=0x0000000000000000000000000000000000000000
9+
STORY_MINTING_FEE_TOKEN=0x0000000000000000000000000000000000000000
10+
STORY_ROYALTY_POLICY_LAP_ADDRESS=0x0000000000000000000000000000000000000000
11+
STORY_ROYALTY_ERC20=0x0000000000000000000000000000000000000000
12+
STORY_ARBITRATION_POLICY_ADDRESS=0x0000000000000000000000000000000000000000
13+
14+
SEPOLIA_RPC_PROVIDER_URL=https://rpc-sepolia.rockx.com
15+
SEPOLIA_NFT_CONTRACT_ADDRESS=0x0000000000000000000000000000000000000000
16+
SEPOLIA_LICENSING_MODULE_ADDRESS=0x0000000000000000000000000000000000000000
17+
SEPOLIA_ROYALTY_POLICY_ADDRESS=0x0000000000000000000000000000000000000000
18+
SEPOLIA_MINTING_FEE_TOKEN=0x0000000000000000000000000000000000000000
19+
SEPOLIA_ROYALTY_POLICY_LAP_ADDRESS=0x0000000000000000000000000000000000000000
20+
SEPOLIA_ARBITRATION_POLICY_ADDRESS=0x0000000000000000000000000000000000000000

.gitignore

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
mochawesome-report
12+
dist
13+
dist-ssr
14+
*.local
15+
.env
16+
17+
# Editor directories and files
18+
.vscode/*
19+
!.vscode/extensions.json
20+
.idea
21+
.DS_Store
22+
*.suo
23+
*.ntvs*
24+
*.njsproj
25+
*.sln
26+
*.sw?
27+
package-lock.json

.nojekyll

Whitespace-only changes.

.nvmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v20.0.0
56.3 KB
Binary file not shown.
43.3 KB
Binary file not shown.

20240716/assets/app.css

+14
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

20240716/assets/app.js

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

20240716/assets/app.js.LICENSE.txt

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
/*
2+
object-assign
3+
(c) Sindre Sorhus
4+
@license MIT
5+
*/
6+
7+
/*!
8+
Copyright (c) 2017 Jed Watson.
9+
Licensed under the MIT License (MIT), see
10+
http://jedwatson.github.io/classnames
11+
*/
12+
13+
/*! *****************************************************************************
14+
Copyright (c) Microsoft Corporation. All rights reserved.
15+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
16+
this file except in compliance with the License. You may obtain a copy of the
17+
License at http://www.apache.org/licenses/LICENSE-2.0
18+
19+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
20+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
21+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
22+
MERCHANTABLITY OR NON-INFRINGEMENT.
23+
24+
See the Apache Version 2.0 License for specific language governing permissions
25+
and limitations under the License.
26+
***************************************************************************** */
27+
28+
/*! mochawesome-report-generator 6.2.0 | https://github.com/adamgruber/mochawesome-report-generator */
29+
30+
/** @license React v0.19.1
31+
* scheduler.production.min.js
32+
*
33+
* Copyright (c) Facebook, Inc. and its affiliates.
34+
*
35+
* This source code is licensed under the MIT license found in the
36+
* LICENSE file in the root directory of this source tree.
37+
*/
38+
39+
/** @license React v16.13.1
40+
* react-dom.production.min.js
41+
*
42+
* Copyright (c) Facebook, Inc. and its affiliates.
43+
*
44+
* This source code is licensed under the MIT license found in the
45+
* LICENSE file in the root directory of this source tree.
46+
*/
47+
48+
/** @license React v16.13.1
49+
* react.production.min.js
50+
*
51+
* Copyright (c) Facebook, Inc. and its affiliates.
52+
*
53+
* This source code is licensed under the MIT license found in the
54+
* LICENSE file in the root directory of this source tree.
55+
*/
25.2 KB
Binary file not shown.
19.1 KB
Binary file not shown.
25.7 KB
Binary file not shown.
19.5 KB
Binary file not shown.
25.7 KB
Binary file not shown.
19.4 KB
Binary file not shown.

20240716/pass_07-16-2024_070203_sdk-test-report.html

+2
Large diffs are not rendered by default.

20240716/pass_07-16-2024_070203_sdk-test-report.json

+719
Large diffs are not rendered by default.

README.md

+62
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# SDK-E2E-Tests
2+
3+
This project dedicates to perform e2e test for the story protocol typescript sdk.
4+
5+
## Prerequisites to run the e2e test
6+
7+
- install nvm if don't have it by running:
8+
9+
`curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash`.
10+
11+
- run `nvm use` to switch node version to v20.0.0
12+
- if you don't have v20.0.0 node installed, please install it by running: `nvm install v20.0.0`
13+
14+
- run `npm i` to install dependencies.
15+
- once all dependencies are installed, you should config your `.env` file with a reference to the `.env.example` file
16+
17+
## How to run the test
18+
19+
- Run specific test:
20+
21+
```
22+
mocha -r ts-node/register -r mocha-steps ./test/**/**/*.test.ts --timeout 240000
23+
```
24+
25+
- Run smoke test in Sepolia:
26+
27+
```
28+
test:sepolia:smoke
29+
```
30+
31+
- Run smoke test in Story Network:
32+
33+
```
34+
test:story:smoke
35+
```
36+
37+
- Run e2e test in Sepolia:
38+
39+
```
40+
npm run test:sepolia:e2e
41+
```
42+
43+
- Run e2e test in Story Network:
44+
45+
```
46+
npm run test:story:e2e
47+
```
48+
49+
- Run all tests in Sepolia:
50+
```
51+
npm run test:sepolia
52+
```
53+
54+
- Run all tests in Story:
55+
```
56+
npm run test:story
57+
```
58+
59+
- Open report, test report is under ./mochawesome-report folder
60+
```
61+
npm run open:report
62+
```

0 commit comments

Comments
 (0)