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:
parent
a7c68e995d
commit
a95d563015
|
@ -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'
|
||||
# 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: 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: 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
|
||||
# - name: Create updated docs & commit changes
|
||||
# run: npm run commit:docs
|
||||
|
|
|
@ -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 ethers@5.7.2 typescript @types/node ts-node
|
||||
```
|
||||
|
||||
## 4. Import dependencies and add variables and constants
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 ethers@5.7.2 typescript @types/node ts-node
|
||||
/// ```
|
||||
|
||||
/// ## 4. Import dependencies and add variables and constants
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue