1
0
mirror of https://github.com/oceanprotocol/ocean.js.git synced 2024-11-26 20:39:05 +01:00

Update codeExamples dependencies (#1742)

* 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 <jamie.hewitt15@gmail.com>
Co-authored-by: Jamie Hewitt <jamie@oceanprotocol.com>
Co-authored-by: Alex Coseru <alex.coseru@gmail.com>
Co-authored-by: GitHub Actions Bot <>
This commit is contained in:
Bogdan Fazakas 2023-07-14 13:23:41 +03:00 committed by GitHub
parent a7c68e995d
commit a95d563015
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 29 additions and 51 deletions

View File

@ -214,27 +214,27 @@ jobs:
- name: Create Guide & Commit if there are changes - name: Create Guide & Commit if there are changes
run: npm run commit:guides run: npm run commit:guides
update_docs: # update_docs:
runs-on: ubuntu-latest # runs-on: ubuntu-latest
needs: [test_unit, test_integration] # needs: [test_unit, test_integration]
steps: # steps:
- uses: actions/checkout@v3 # - uses: actions/checkout@v3
- uses: actions/setup-node@v2 # - uses: actions/setup-node@v2
with: # with:
node-version: '16' # node-version: '16'
- name: checkout ocean.js repo # - name: checkout ocean.js repo
uses: actions/checkout@v3 # uses: actions/checkout@v3
with: # with:
repository: 'oceanprotocol/ocean.js' # repository: 'oceanprotocol/ocean.js'
path: 'ocean.js' # path: 'ocean.js'
ref: ${{ github.event.pull_request.head.sha }} # ref: ${{ github.event.pull_request.head.sha }}
- name: setup git config # - name: setup git config
run: | # run: |
# setup the username and email. I tend to use 'GitHub Actions Bot' with no email by default # # 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.name "GitHub Actions Bot"
git config user.email "<>" # git config user.email "<>"
- name: Create updated docs & commit changes # - name: Create updated docs & commit changes
run: npm run commit:docs # run: npm run commit:docs

View File

@ -61,23 +61,12 @@ cat > marketplace.js
# On linux press CTRL + D to save # 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: Install dependencies running the following command in your terminal:
```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:
```bash ```bash
npm install npm install @oceanprotocol/lib crypto-js ethers@5.7.2 typescript @types/node ts-node
``` ```
## 4. Import dependencies and add variables and constants ## 4. Import dependencies and add variables and constants

View File

@ -104,7 +104,7 @@ node dist/compute.js
Install dependencies running the following command in your terminal: Install dependencies running the following command in your terminal:
```bash ```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 ## 4. Import dependencies and add variables, constants and helper methods

View File

@ -61,23 +61,12 @@
/// # On linux press CTRL + D to save /// # 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: /// Install dependencies running the following command in your terminal:
/// ```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:
/// ```bash /// ```bash
/// npm install /// npm install @oceanprotocol/lib crypto-js ethers@5.7.2 typescript @types/node ts-node
/// ``` /// ```
/// ## 4. Import dependencies and add variables and constants /// ## 4. Import dependencies and add variables and constants

View File

@ -104,7 +104,7 @@
/// Install dependencies running the following command in your terminal: /// Install dependencies running the following command in your terminal:
/// ```bash /// ```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 /// ## 4. Import dependencies and add variables, constants and helper methods