Skip to content

Commit

Permalink
Update codeExamples dependencies (#1742)
Browse files Browse the repository at this point in the history
* update compute examples depandancies

* Checking for the decimals on the feeToken

* Adding tests to check if the number of decimals is correct for the publishMarketFee

* Feature/sepolia (#1749)

* add sepolia

* bump contracts

* update install dependacies step in code and compute examples readmes

* commented out update docs for the moment

* Updating CodeExamples.md

* Updating ComputeExamples.md

---------

Co-authored-by: Jamie Hewitt <[email protected]>
Co-authored-by: Jamie Hewitt <[email protected]>
Co-authored-by: Alex Coseru <[email protected]>
Co-authored-by: GitHub Actions Bot <>
  • Loading branch information
4 people authored Jul 14, 2023
1 parent a7c68e9 commit a95d563
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 54 deletions.
48 changes: 24 additions & 24 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -214,27 +214,27 @@ jobs:
- name: Create Guide & Commit if there are changes
run: npm run commit:guides

update_docs:
runs-on: ubuntu-latest
needs: [test_unit, test_integration]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v2
with:
node-version: '16'

- name: checkout ocean.js repo
uses: actions/checkout@v3
with:
repository: 'oceanprotocol/ocean.js'
path: 'ocean.js'
ref: ${{ github.event.pull_request.head.sha }}

- name: setup git config
run: |
# setup the username and email. I tend to use 'GitHub Actions Bot' with no email by default
git config user.name "GitHub Actions Bot"
git config user.email "<>"
- name: Create updated docs & commit changes
run: npm run commit:docs
# update_docs:
# runs-on: ubuntu-latest
# needs: [test_unit, test_integration]
# steps:
# - uses: actions/checkout@v3
# - uses: actions/setup-node@v2
# with:
# node-version: '16'

# - name: checkout ocean.js repo
# uses: actions/checkout@v3
# with:
# repository: 'oceanprotocol/ocean.js'
# path: 'ocean.js'
# ref: ${{ github.event.pull_request.head.sha }}

# - name: setup git config
# run: |
# # setup the username and email. I tend to use 'GitHub Actions Bot' with no email by default
# git config user.name "GitHub Actions Bot"
# git config user.email "<>"

# - name: Create updated docs & commit changes
# run: npm run commit:docs
17 changes: 3 additions & 14 deletions CodeExamples.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,23 +61,12 @@ cat > marketplace.js
# On linux press CTRL + D to save
```

## 3. Install dependancies
## 3. Install dependencies

Open the package.json file in a text editor and update the dependancies to include the following:

```JSON
"dependencies": {
"@oceanprotocol/contracts": "1.0.0-alpha.28",
"@oceanprotocol/lib": "1.0.0-next.37",
"crypto-js": "^4.1.1",
"ethers": "^5.7.2"
}
```

Now in your terminal run the following command:
Install dependencies running the following command in your terminal:

```bash
npm install
npm install @oceanprotocol/lib crypto-js [email protected] typescript @types/node ts-node
```

## 4. Import dependencies and add variables and constants
Expand Down
2 changes: 1 addition & 1 deletion ComputeExamples.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ node dist/compute.js
Install dependencies running the following command in your terminal:

```bash
npm install @oceanprotocol/lib crypto-js ethers typescript @types/node ts-node
npm install @oceanprotocol/lib crypto-js ethers@5.7.2 typescript @types/node ts-node
```

## 4. Import dependencies and add variables, constants and helper methods
Expand Down
17 changes: 3 additions & 14 deletions test/integration/CodeExamples.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,23 +61,12 @@
/// # On linux press CTRL + D to save
/// ```

/// ## 3. Install dependancies
/// ## 3. Install dependencies

/// Open the package.json file in a text editor and update the dependancies to include the following:

/// ```JSON
/// "dependencies": {
/// "@oceanprotocol/contracts": "1.0.0-alpha.28",
/// "@oceanprotocol/lib": "1.0.0-next.37",
/// "crypto-js": "^4.1.1",
/// "ethers": "^5.7.2"
/// }
/// ```

/// Now in your terminal run the following command:
/// Install dependencies running the following command in your terminal:

/// ```bash
/// npm install
/// npm install @oceanprotocol/lib crypto-js [email protected] typescript @types/node ts-node
/// ```

/// ## 4. Import dependencies and add variables and constants
Expand Down
2 changes: 1 addition & 1 deletion test/integration/ComputeExamples.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
/// Install dependencies running the following command in your terminal:

/// ```bash
/// npm install @oceanprotocol/lib crypto-js ethers typescript @types/node ts-node
/// npm install @oceanprotocol/lib crypto-js ethers@5.7.2 typescript @types/node ts-node
/// ```

/// ## 4. Import dependencies and add variables, constants and helper methods
Expand Down

0 comments on commit a95d563

Please sign in to comment.