Skip to content

Commit

Permalink
deploy: 1a437eb
Browse files Browse the repository at this point in the history
  • Loading branch information
jacqueline-57b committed Jul 16, 2024
1 parent ec444ef commit 8b9c0bf
Show file tree
Hide file tree
Showing 62 changed files with 20,789 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .env.example
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
27 changes: 27 additions & 0 deletions .gitignore
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
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v20.0.0
62 changes: 62 additions & 0 deletions README.md
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
```
Loading

0 comments on commit 8b9c0bf

Please sign in to comment.