forked from storyprotocol/sdk-e2e-tests
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
957e070
commit 72cef7d
Showing
75 changed files
with
12,932 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
WALLET_PRIVATE_KEY_A=0x0000000000000000000000000000000000000000 | ||
WALLET_PRIVATE_KEY_B=0x0000000000000000000000000000000000000000 | ||
WALLET_PRIVATE_KEY_C=0x0000000000000000000000000000000000000000 | ||
|
||
STORY_RPC_PROVIDER_URL=https://story-network.rpc.caldera.xyz/http | ||
STORY_NFT_CONTRACT_ADDRESS=0x0000000000000000000000000000000000000000 | ||
STORY_LICENSING_MODULE_ADDRESS=0x0000000000000000000000000000000000000000 | ||
STORY_ROYALTY_POLICY_ADDRESS=0x0000000000000000000000000000000000000000 | ||
STORY_MINTING_FEE_TOKEN=0x0000000000000000000000000000000000000000 | ||
STORY_ROYALTY_POLICY_LAP_ADDRESS=0x0000000000000000000000000000000000000000 | ||
STORY_ROYALTY_ERC20=0x0000000000000000000000000000000000000000 | ||
STORY_ARBITRATION_POLICY_ADDRESS=0x0000000000000000000000000000000000000000 | ||
|
||
SEPOLIA_RPC_PROVIDER_URL=https://rpc-sepolia.rockx.com | ||
SEPOLIA_NFT_CONTRACT_ADDRESS=0x0000000000000000000000000000000000000000 | ||
SEPOLIA_LICENSING_MODULE_ADDRESS=0x0000000000000000000000000000000000000000 | ||
SEPOLIA_ROYALTY_POLICY_ADDRESS=0x0000000000000000000000000000000000000000 | ||
SEPOLIA_MINTING_FEE_TOKEN=0x0000000000000000000000000000000000000000 | ||
SEPOLIA_ROYALTY_POLICY_LAP_ADDRESS=0x0000000000000000000000000000000000000000 | ||
SEPOLIA_ARBITRATION_POLICY_ADDRESS=0x0000000000000000000000000000000000000000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
pnpm-debug.log* | ||
lerna-debug.log* | ||
|
||
node_modules | ||
mochawesome-report | ||
dist | ||
dist-ssr | ||
*.local | ||
.env | ||
|
||
# Editor directories and files | ||
.vscode/* | ||
!.vscode/extensions.json | ||
.idea | ||
.DS_Store | ||
*.suo | ||
*.ntvs* | ||
*.njsproj | ||
*.sln | ||
*.sw? | ||
package-lock.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
v20.0.0 |
Binary file not shown.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
/* | ||
object-assign | ||
(c) Sindre Sorhus | ||
@license MIT | ||
*/ | ||
|
||
/*! | ||
Copyright (c) 2017 Jed Watson. | ||
Licensed under the MIT License (MIT), see | ||
http://jedwatson.github.io/classnames | ||
*/ | ||
|
||
/*! ***************************************************************************** | ||
Copyright (c) Microsoft Corporation. All rights reserved. | ||
Licensed under the Apache License, Version 2.0 (the "License"); you may not use | ||
this file except in compliance with the License. You may obtain a copy of the | ||
License at http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED | ||
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, | ||
MERCHANTABLITY OR NON-INFRINGEMENT. | ||
|
||
See the Apache Version 2.0 License for specific language governing permissions | ||
and limitations under the License. | ||
***************************************************************************** */ | ||
|
||
/*! mochawesome-report-generator 6.2.0 | https://github.com/adamgruber/mochawesome-report-generator */ | ||
|
||
/** @license React v0.19.1 | ||
* scheduler.production.min.js | ||
* | ||
* Copyright (c) Facebook, Inc. and its affiliates. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
/** @license React v16.13.1 | ||
* react-dom.production.min.js | ||
* | ||
* Copyright (c) Facebook, Inc. and its affiliates. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
/** @license React v16.13.1 | ||
* react.production.min.js | ||
* | ||
* Copyright (c) Facebook, Inc. and its affiliates. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# SDK-E2E-Tests | ||
|
||
This project dedicates to perform e2e test for the story protocol typescript sdk. | ||
|
||
## Prerequisites to run the e2e test | ||
|
||
- install nvm if don't have it by running: | ||
|
||
`curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash`. | ||
|
||
- run `nvm use` to switch node version to v20.0.0 | ||
- if you don't have v20.0.0 node installed, please install it by running: `nvm install v20.0.0` | ||
|
||
- run `npm i` to install dependencies. | ||
- once all dependencies are installed, you should config your `.env` file with a reference to the `.env.example` file | ||
|
||
## How to run the test | ||
|
||
- Run specific test: | ||
|
||
``` | ||
mocha -r ts-node/register -r mocha-steps ./test/**/**/*.test.ts --timeout 240000 | ||
``` | ||
|
||
- Run smoke test in Sepolia: | ||
|
||
``` | ||
test:sepolia:smoke | ||
``` | ||
|
||
- Run smoke test in Story Network: | ||
|
||
``` | ||
test:story:smoke | ||
``` | ||
|
||
- Run e2e test in Sepolia: | ||
|
||
``` | ||
npm run test:sepolia:e2e | ||
``` | ||
|
||
- Run e2e test in Story Network: | ||
|
||
``` | ||
npm run test:story:e2e | ||
``` | ||
|
||
- Run all tests in Sepolia: | ||
``` | ||
npm run test:sepolia | ||
``` | ||
|
||
- Run all tests in Story: | ||
``` | ||
npm run test:story | ||
``` | ||
|
||
- Open report, test report is under ./mochawesome-report folder | ||
``` | ||
npm run open:report | ||
``` |
Oops, something went wrong.