Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V2.0 #748

Closed
wants to merge 380 commits into from
Closed

V2.0 #748

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
380 commits
Select commit Hold shift + click to select a range
b11c184
Merge pull request #751 from oceanprotocol/feature/v2_deps
alexcos20 May 11, 2023
362dffe
Merge branch 'v2.0' into test/dt3
alexcos20 May 11, 2023
1b849f0
downgrade to node 16
alexcos20 May 11, 2023
2dbe574
remove cache
alexcos20 May 11, 2023
159b6e9
optimize
alexcos20 May 11, 2023
1db1188
Merge pull request #752 from oceanprotocol/bug/node18_fails
alexcos20 May 11, 2023
d6b8656
Merge branch 'v2.0' into test/dt3
alexcos20 May 11, 2023
e815d6f
Add tests for submit_trueval
trizin May 12, 2023
ec52843
Test subscription expire
trizin May 12, 2023
048a53e
Rename test
trizin May 12, 2023
524403e
Test payout_mul function
trizin May 12, 2023
4cfbd0e
Add TruevalSubmitted event
trizin May 12, 2023
a96a5c4
make buyFromFre internal
alexcos20 May 12, 2023
b103c0b
deploy on oasis_saphire_testnet
alexcos20 May 12, 2023
da8bb9f
changes, see comments
alexcos20 May 13, 2023
c4dd008
updates
alexcos20 May 13, 2023
3906605
remove console
alexcos20 May 13, 2023
37f80c9
add compat function bck
alexcos20 May 13, 2023
ca6b648
Merge PR #753 from oceanprotocol/feature/update_template3 into test/dt3
trentmc May 14, 2023
3984ead
comments fixes
alexcos20 May 14, 2023
d7c1504
remove payment managers + add event
alexcos20 May 14, 2023
6247931
optimize contract size
alexcos20 May 14, 2023
1cb4ecb
add RevenueAdded
alexcos20 May 14, 2023
e712605
use mixedCase
alexcos20 May 14, 2023
33926b6
more mixedCase
alexcos20 May 14, 2023
5a97487
fix tests
alexcos20 May 14, 2023
fb684c7
fix bug
alexcos20 May 14, 2023
0bab055
remove nonReentrant
alexcos20 May 18, 2023
1eb80e7
fix nonReentrant
alexcos20 May 18, 2023
510daa4
add floatValue
alexcos20 May 19, 2023
260ffb2
fix feeCollector & slash all edge case
alexcos20 May 19, 2023
958657a
disable Fre when contract is paused
alexcos20 May 19, 2023
0ee0fe5
fix tests
alexcos20 May 19, 2023
4167804
add cancel epoch test
alexcos20 May 19, 2023
20af082
add test for edge case
alexcos20 May 19, 2023
d4804c7
optimize
alexcos20 May 19, 2023
97c7ce8
some renames
alexcos20 May 19, 2023
97eb0d7
remove comment
alexcos20 May 19, 2023
e3a8660
fixes
alexcos20 May 19, 2023
2a5bf67
Merge pull request #755 from oceanprotocol/feature/predictoor_iterati…
alexcos20 May 19, 2023
fbd75ac
add test for buyFromFreAndOrder
alexcos20 Jul 3, 2023
0f0fff3
more tests
alexcos20 Jul 3, 2023
e3980dc
Merge pull request #749 from oceanprotocol/test/dt3
alexcos20 Jul 4, 2023
cfcdc3a
Merge branch 'main' into v2.0
alexcos20 Jul 4, 2023
c30cdf4
add oasis saphire testnet
alexcos20 Jul 4, 2023
dc1faa7
sync seploia & gen-x
alexcos20 Jul 4, 2023
c0e533e
use prerelease tag for npm
alexcos20 Jul 4, 2023
e25f6a4
v2.0.0-alpha.1
alexcos20 Jul 4, 2023
d5a09dc
add auth for getters, instead of using msg.sender
alexcos20 Jul 5, 2023
e5e3618
fix tests
alexcos20 Jul 5, 2023
ed724fa
use template2 style of ordering
alexcos20 Jul 6, 2023
85f6428
refactor getPrediction conditions
alexcos20 Jul 6, 2023
a145805
new deployment
alexcos20 Jul 10, 2023
aaa206e
v2.0.0-alpha.2
alexcos20 Jul 10, 2023
b2fbaf1
Merge pull request #767 from oceanprotocol/feature/predictoor_with_auth
alexcos20 Jul 10, 2023
7a4b92c
add setFeeCollector
alexcos20 Jul 27, 2023
beb6d1a
fix lint
alexcos20 Jul 27, 2023
a0ccf2b
add zero address check
alexcos20 Jul 27, 2023
ba2db08
add batch collects
alexcos20 Jul 27, 2023
5d084c2
remove transferFrom owners
alexcos20 Jul 27, 2023
3117b51
Use timestamp instead on block number
trizin Jul 28, 2023
a9b0213
Update tests
trizin Jul 28, 2023
fc5a0cf
Fix
trizin Jul 28, 2023
8178b30
Use epoch to calculate everything
trizin Jul 28, 2023
6996fd9
Update tests
trizin Jul 28, 2023
03161e0
Update tests
trizin Jul 28, 2023
a36fd83
Fix updateSeconds(
trizin Jul 28, 2023
949e651
Update tests for change in `updateSeconds`
trizin Jul 28, 2023
b1638f7
Add missing semicolon
trizin Jul 28, 2023
82e7702
Adjustments for epoch and fixes
trizin Jul 28, 2023
32a1d19
Adjustments and fixes
trizin Jul 28, 2023
3fe82b8
More adjustments and fixes
trizin Jul 28, 2023
4b2f4e0
Update tests
trizin Jul 28, 2023
1d4e2e7
Start epoch from 0
trizin Jul 29, 2023
4042b9b
Remove unused function
trizin Jul 29, 2023
8f03ea9
Add more comments
trizin Jul 29, 2023
b32870e
Try fix
trizin Jul 29, 2023
8f8e18e
Fix overflow
trizin Jul 29, 2023
32dd2d5
Make starttime public
trizin Jul 29, 2023
62890d9
Test fixes
trizin Jul 29, 2023
738d2ef
Update tests
trizin Jul 29, 2023
3b7e58c
Define undefined secondsPerEpoch
trizin Jul 29, 2023
7364279
Update some events
trizin Jul 29, 2023
e9c8152
Remove -1
trizin Jul 29, 2023
9f5969a
Fix tests
trizin Jul 29, 2023
8d8178c
Update contracts/templates/ERC20Template3.sol
trizin Jul 31, 2023
3073543
Update contracts/templates/ERC20Template3.sol
trizin Jul 31, 2023
1a00726
Update contracts/templates/ERC20Template3.sol
trizin Jul 31, 2023
8768f53
Update contracts/templates/ERC20Template3.sol
trizin Jul 31, 2023
95cdc06
Use timestamp as epoch number
trizin Jul 31, 2023
016d982
Update tests
trizin Jul 31, 2023
6db94ec
Merge branch 'issue779-use-timestamp-instead-of-block-number-in-predi…
trizin Jul 31, 2023
443c895
Fix
trizin Jul 31, 2023
9bce114
Merge branch 'issue779-use-timestamp-instead-of-block-number-in-predi…
trizin Jul 31, 2023
cd90f40
Fix merge error
trizin Jul 31, 2023
fc20d19
_epoch => epoch_start
trizin Aug 1, 2023
97128fb
trueValSubmitTimeoutEpoch => trueValSubmitTimeout
trizin Aug 1, 2023
2deb98f
Fix
trizin Aug 1, 2023
b2f2d7f
Linter and readability
trizin Aug 1, 2023
796fe91
Merge pull request #776 from oceanprotocol/feature/feeCollector_setter
alexcos20 Aug 1, 2023
dd78e36
Update event param name
trizin Aug 2, 2023
e82057d
deployment
alexcos20 Aug 3, 2023
f57872f
Merge pull request #790 from oceanprotocol/feature/deploy_predictoor3…
alexcos20 Aug 3, 2023
deb2eb8
2.0.0-next.3
alexcos20 Aug 3, 2023
ccd6dcd
Add template 3 abi
trizin Aug 3, 2023
ed63008
Let predictoors update their prediction
trizin Aug 3, 2023
73342f9
cannot modify stake amt
trizin Aug 3, 2023
c97a037
Fix
trizin Aug 3, 2023
09386b1
Fix
trizin Aug 3, 2023
725740c
Lint
trizin Aug 3, 2023
7e19947
Add a test
trizin Aug 3, 2023
ecccae7
Emit an event on update
trizin Aug 3, 2023
e1e1acf
Add more tests
trizin Aug 3, 2023
e2598f7
Fix test
trizin Aug 3, 2023
fdbf61a
Remove event
trizin Aug 4, 2023
9734008
Merge pull request #792 from oceanprotocol/issue791-predictoor-update…
trizin Aug 4, 2023
e58562c
v2.0.0-next.4
alexcos20 Aug 4, 2023
f865627
Hide stake amounts for prediction epoch & allow predictoors modify th…
trizin Aug 5, 2023
82ffeca
Fix
trizin Aug 5, 2023
a9fc804
Fix
trizin Aug 5, 2023
a9a8d7b
Fix
trizin Aug 5, 2023
ba6b777
Update duplicate prediction tests
trizin Aug 5, 2023
eace40b
Update aggpredval test
trizin Aug 5, 2023
a005336
Fix
trizin Aug 5, 2023
0ee2bb8
Fix
trizin Aug 5, 2023
9a7fa6b
Add getTotalStake function
trizin Aug 5, 2023
60149d8
Require predictions not closed
trizin Aug 5, 2023
92d0248
Fix
trizin Aug 5, 2023
68891b8
Fix
trizin Aug 5, 2023
0f928ff
Fix
trizin Aug 5, 2023
e0f18bf
Fix
trizin Aug 5, 2023
53fbd6a
Remove require
trizin Aug 5, 2023
87871b2
Fix
trizin Aug 5, 2023
32f8911
Fix approval
trizin Aug 5, 2023
a8a2fd5
Fix test
trizin Aug 5, 2023
b56297b
Fix transfer
trizin Aug 5, 2023
bfeaad1
Fix epoch ts
trizin Aug 5, 2023
82466d2
Fix test
trizin Aug 5, 2023
a13cc15
await fastforward command
trizin Aug 5, 2023
cb5f72a
Add tests for total stake function
trizin Aug 5, 2023
d30cc1f
Fix type error
trizin Aug 5, 2023
54b4d30
Set seconds per epoch to 300
trizin Aug 5, 2023
e93a368
Add a test for toEpochStart
trizin Aug 5, 2023
720bc34
Fix testes where hardcoded values are used
trizin Aug 5, 2023
5e75797
Require s_per_subscription % s_per_epoch == 0
trizin Aug 5, 2023
e7afa9f
Fix test
trizin Aug 5, 2023
5ba4ff6
Reentrancy precaution
trizin Aug 5, 2023
1ec635f
Merge pull request #794 from oceanprotocol/issue793-hide-stake-amount…
alexcos20 Aug 7, 2023
1ac994e
Merge pull request #777 from oceanprotocol/feature/fre_batch_collects
alexcos20 Aug 7, 2023
04dbf29
v2.0.0-next.5
alexcos20 Aug 7, 2023
0007360
expose agg predval after trueval
alexcos20 Aug 16, 2023
eeff4f6
Merge pull request #796 from oceanprotocol/feature/expose_agg_preds_a…
alexcos20 Aug 16, 2023
ba9d21b
v2.0.0-next.6
alexcos20 Aug 16, 2023
870c4b8
Merge pull request #780 from oceanprotocol/issue779-use-timestamp-ins…
alexcos20 Aug 16, 2023
b5af9cd
Remove floatvalue
trizin Aug 17, 2023
fa3355a
Update tests
trizin Aug 17, 2023
9b83579
Make total stake available for all epochs
trizin Aug 17, 2023
3d1c11e
Make aggpredval available after epoch closes
trizin Aug 17, 2023
571c9fb
Update tests
trizin Aug 17, 2023
729cbcc
v2.0.0-next.7
alexcos20 Aug 17, 2023
7bec115
Merge branch 'issue797-remove-floatvalue-from-predictoor-contract' of…
alexcos20 Aug 17, 2023
cdac077
Fix
trizin Aug 17, 2023
0fe9fdc
v2.0.0-next.8
alexcos20 Aug 17, 2023
bac7f0b
Fixes
trizin Aug 17, 2023
d157e1f
v2.0.0-next.9
alexcos20 Aug 17, 2023
cbf7356
Update ABI
trizin Aug 21, 2023
b1871e1
v2.0.0-next.10
trizin Aug 21, 2023
f70b0e4
Add submitTrueValMultiple function
trizin Aug 24, 2023
166a73b
Set submitTrueVal as public
trizin Aug 24, 2023
02aa6c3
Fixes
trizin Aug 24, 2023
eafadc6
Revert changes to template 3
trizin Aug 28, 2023
669482d
Add PredictoorProxy smart contract
trizin Aug 28, 2023
77ef770
Tests and refactoring contract
trizin Aug 28, 2023
a3697e1
Rename to PredictoorHelper
trizin Aug 28, 2023
943aa04
Add expectRevert's
trizin Aug 28, 2023
64835ae
Update contracts/utils/PredictoorHelper.sol
trizin Aug 28, 2023
2178b90
Update deploy script
trizin Aug 28, 2023
3387f41
Update deploy-contracts.js
trizin Aug 29, 2023
025280e
Merge pull request #800 from oceanprotocol/799-add-batchsubmittrueval…
trizin Aug 29, 2023
aa56d1e
fix tests
alexcos20 Aug 29, 2023
97cad4b
Add consume multiple function and ownable
trizin Aug 29, 2023
9bc3590
Add a test for consume multiple function
trizin Aug 29, 2023
4289102
Empty-Commit
trizin Aug 29, 2023
5c86a72
Update deploy script
trizin Aug 29, 2023
3537926
Security fix
trizin Aug 29, 2023
aa12acf
Fixes
trizin Aug 29, 2023
140f272
Fixes
trizin Aug 29, 2023
9686a9f
Merge pull request #803 from oceanprotocol/801-add-consumemultiple-fu…
alexcos20 Aug 29, 2023
c24148a
new deployment
alexcos20 Aug 29, 2023
f6cd041
v2.0.0-next.11
alexcos20 Aug 29, 2023
0c2d2a9
Merge pull request #798 from oceanprotocol/issue797-remove-floatvalue…
alexcos20 Aug 29, 2023
bda9fd5
fix tests
alexcos20 Aug 29, 2023
c35fec8
Deploy PredictoorHelper contract on development chain
trizin Aug 30, 2023
272944a
Remove formatting
trizin Aug 30, 2023
b19ae02
Merge pull request #805 from oceanprotocol/issue804-deploy-script-dev…
trizin Aug 30, 2023
465b216
try nvm
alexcos20 Aug 30, 2023
b8f71f4
Merge pull request #806 from oceanprotocol/bug/fix_noidejs
alexcos20 Aug 30, 2023
02d4cda
devops updates
alexcos20 Sep 7, 2023
98f829b
use ci
alexcos20 Sep 7, 2023
fb8a113
fix docker
alexcos20 Sep 7, 2023
33fac28
optimize deps
alexcos20 Sep 7, 2023
e267f56
more optimize
alexcos20 Sep 7, 2023
0bc699e
Merge pull request #808 from oceanprotocol/feature/devops_updates
alexcos20 Sep 7, 2023
a27b86c
Merge branch 'main' into v2.0
alexcos20 Sep 7, 2023
92fabc9
resync deps
alexcos20 Sep 7, 2023
b39670f
more deps
alexcos20 Sep 7, 2023
23bb8ce
add event for pause operations
alexcos20 Sep 11, 2023
a36b9ba
Merge pull request #809 from oceanprotocol/feature/template3_paused_e…
alexcos20 Sep 11, 2023
2633120
v2.0.0-next.12
alexcos20 Sep 11, 2023
e7a9951
Update sum stakes when prediction gets updated
trizin Sep 12, 2023
df52b55
Update test to verify
trizin Sep 12, 2023
ca701bf
Merge pull request #812 from oceanprotocol/issue811-predictoor-contra…
alexcos20 Sep 12, 2023
76eb7eb
v2.0.0-next.13
alexcos20 Sep 12, 2023
593bd66
Merge branch 'v2.0' into issue743-add-vesting-wallet-and-splitter-con…
alexcos20 Sep 16, 2023
4102ddf
Tiny improvements
trizin Sep 22, 2023
f16c5f0
check if contract is paused at buy
alexcos20 Sep 26, 2023
c3b1b87
Merge pull request #815 from oceanprotocol/potential-improvements-dt3
trizin Sep 26, 2023
5167361
Merge pull request #816 from oceanprotocol/feature/check_paused_at_bu…
alexcos20 Sep 26, 2023
477501a
v2.0.0-alpha.14
alexcos20 Sep 29, 2023
b0aa1b9
Merge pull request #818 from oceanprotocol/feature/sapphire_mainnet
alexcos20 Sep 29, 2023
a4c3dfc
update VestingWalletHalving with audit results
alexcos20 Oct 6, 2023
c549264
bump deps
alexcos20 Oct 6, 2023
3ba4ee4
Merge pull request #744 from oceanprotocol/issue743-add-vesting-walle…
alexcos20 Oct 6, 2023
1255885
bump solidity coverage
alexcos20 Oct 6, 2023
c155041
fix dep
alexcos20 Oct 6, 2023
c3e3631
Merge pull request #824 from oceanprotocol/deps/update_deps
alexcos20 Oct 6, 2023
5152354
send ocean in barge
alexcos20 Oct 6, 2023
5adcec1
always show docker log
alexcos20 Oct 6, 2023
09a24e7
fix typo
alexcos20 Oct 6, 2023
b980106
reduce amount
alexcos20 Oct 6, 2023
07c2272
fix derive path
alexcos20 Oct 6, 2023
795ffa8
Merge pull request #825 from oceanprotocol/feature/send_ocean_in_barge
alexcos20 Oct 6, 2023
3f6697c
check if basetoken is contract
alexcos20 Oct 25, 2023
046ce00
document templates
alexcos20 Oct 25, 2023
5abb2ea
use proper way to send eth
alexcos20 Oct 25, 2023
2b6b4c9
Update contracts/templates/README.md
alexcos20 Oct 26, 2023
bef3b5f
add onda
alexcos20 Oct 26, 2023
7f67cc4
Merge pull request #833 from oceanprotocol/feature/document_templates
alexcos20 Oct 26, 2023
fa8abae
Merge pull request #834 from oceanprotocol/feature/collector_safe_wit…
alexcos20 Oct 26, 2023
1a2cad4
Merge pull request #832 from oceanprotocol/feature/check_fre_basetoke…
alexcos20 Oct 26, 2023
66dafcb
v2.0.0-alpha.15
alexcos20 Oct 30, 2023
1c03bef
In FixedRateExchange.sol: fix calc() docstrings
trentmc Nov 2, 2023
84742ce
deploy on OP sepolia
alexcos20 Nov 9, 2023
5912082
Optimism deploy
alexcos20 Nov 14, 2023
2ef49c4
update deps
alexcos20 Nov 14, 2023
b8377a1
Merge pull request #838 from oceanprotocol/feature/optimism_deployment
alexcos20 Nov 14, 2023
2df54c5
Merge pull request #778 from oceanprotocol/feature/fre_remove_transfe…
alexcos20 Nov 14, 2023
dbd878f
v2.0.0
alexcos20 Nov 14, 2023
9064ff3
fix npm tag
alexcos20 Nov 14, 2023
6bc7356
v2.0.1
alexcos20 Nov 14, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = v1.1.15
current_version = v2.0.1
commit = True
tag = True

Expand Down
37 changes: 23 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,16 +116,27 @@ jobs:
coverageLocations: |
${{ github.workspace }}/coverage/lcov.info:lcov

dockertest:
check_deployment:
runs-on: ubuntu-latest
if: ${{ success() }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Build
run: docker build -t "oceanprotocol/ocean-contracts:test" .
- uses: actions/checkout@v3
- uses: actions/setup-node@v2
with:
node-version: '16'
- name: Cache node_modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
path: ~/.npm
key: ${{ runner.os }}-test-unit-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: ${{ runner.os }}-test-unit-${{ env.cache-name }}-
# Env var expansion workaround
# https://docs.github.com/en/actions/reference/workflow-commands-for-github-actions#setting-an-environment-variable
- name: Set ADDRESS_FILE
run: echo "ADDRESS_FILE=${HOME}/.ocean/ocean-contracts/artifacts/address.json" >> $GITHUB_ENV
- name: Build local docker file
run: docker build -t 'oceanprotocol/ocean-contracts:test' .
- name: Checkout Barge
uses: actions/checkout@v3
with:
Expand All @@ -135,9 +146,10 @@ jobs:
- name: Run Ganache with Barge
working-directory: ${{ github.workspace }}/barge
run: |
bash -x start_ocean.sh --no-ipfs --no-aquarius --no-elasticsearch --no-provider --no-dashboard 2>&1 > start_ocean.log &
bash -x start_ocean.sh --no-aquarius --no-elasticsearch --no-provider --no-dashboard 2>&1 > start_ocean.log &
env:
CONTRACTS_VERSION: test
- run: npm ci
- name: Wait for contracts deployment
working-directory: ${{ github.workspace }}/barge
run: |
Expand All @@ -146,17 +158,14 @@ jobs:
[ -f "$HOME/.ocean/ocean-contracts/artifacts/ready" ] && break
done
ls -la "$HOME/.ocean/ocean-contracts/artifacts/"
- name: "Read address.json contents"
working-directory: ${{ github.workspace }}
run: cat $ADDRESS_FILE
- run: grep -q development $ADDRESS_FILE
name: Searching for development key in addresses.json
- run: cat ${HOME}/.ocean/ocean-contracts/artifacts/address.json
- run: node scripts/check_deployment.js
- name: docker logs
run: docker logs ocean_ocean-contracts_1
if: ${{ failure() }}

publish-npm:
needs: [lint, tests_full]
needs: [lint, tests_full,check_deployment]
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
steps:
Expand All @@ -181,7 +190,7 @@ jobs:

publish-pypi:
runs-on: ubuntu-latest
needs: [lint, tests_full]
needs: [lint, tests_full,check_deployment]
if: startsWith(github.ref, 'refs/tags/v')
steps:
- name: "step-log-ref"
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/deployment_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,4 @@ jobs:
- run: cat ${HOME}/.ocean/ocean-contracts/artifacts/address.json
- run: node scripts/check_deployment.js
- name: docker logs
run: docker logs ocean_ocean-contracts_1
if: ${{ failure() }}
run: docker logs ocean_ocean-contracts_1
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

FROM ubuntu:20.04 as base
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get -y install curl git bash ca-certificates gnupg
RUN apt-get update && apt-get -y install curl bash
# nvm env vars
RUN mkdir -p /usr/local/nvm
ENV NVM_DIR /usr/local/nvm
Expand All @@ -20,7 +20,7 @@ RUN apt-get update && apt-get -y install wget
COPY . /ocean-contracts
WORKDIR /ocean-contracts
ENV NODE_ENV=production
RUN npm install
RUN npm i
RUN wget https://gobinaries.com/tj/node-prune --output-document - | /bin/sh && node-prune


Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,11 @@ from artifacts import address

- Base IP is now represented by an [NFT](https://blog.oceanprotocol.com/what-is-a-data-nft-5804a2d88671), from which a datapublisher can create multiple ERC20s representing different type of access for the same dataset.

- An automated Datatoken [Staking](https://blog.oceanprotocol.com/ocean-v4-one-sided-staking-93988f65e378) helps with the initial DTs distribution and price stability. Goodbye rug pulls!

- Help [Ocean Community Monetize](https://blog.oceanprotocol.com/how-to-make-money-from-ocean-v4-477b3decad51): there's a swap fee for the Ocean Community, if Ocean or allied tokens are the basetoken in a pool, Ocean Community will receive 0.1% swap fee, otherwhise it will be 0.2%.

#### Flexibility

- Based on ERC721 and ERC20 [templates](contracts/templates/README.md) to provide different features
- Introduce an advanced [Fee Structure](https://docs.oceanprotocol.com/core-concepts/fees) both for Market and Provider runners.

- Roles Administration: there are now multiple roles for a more flexible administation both at NFT and ERC20 levels
Expand Down
82 changes: 80 additions & 2 deletions addresses/address.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@
"veFeeDistributor": "0x35F1e6765750E874EB9d0675393A1A394A4749b4",
"DFRewards": "0x4259c164eedA7483dda2b4b622D761A88674D31f",
"DFStrategyV1": "0x1be9C72500B41c286C797D4FE727747Ae9C4E195",
"veFeeEstimate": "0xCFeF55c6ae4d250586e293f29832967a04A9087d"
"veFeeEstimate": "0xCFeF55c6ae4d250586e293f29832967a04A9087d",
"Splitter": "0x648306FF10673e4eAad6F69473e49C973f9F5872",
"VestingWallet0": "0x4699B0f191C68975e89E70c5704537f7ad033f62"
},
"polygon": {
"chainId": 137,
Expand Down Expand Up @@ -134,7 +136,9 @@
"veDelegation": "0xc768eDF2d21fe00ef5804A7Caa775E877e65A70E",
"veFeeDistributor": "0x256c54219816603BB8327F9019533B020a76e936",
"veFeeEstimate": "0x4aA261bC595abC6fDEf0255C83e2a9305261753f",
"SmartWalletChecker": "0xd7ddf62257A41cc6cdAd7A3d36e4f1d925fD142a"
"SmartWalletChecker": "0xd7ddf62257A41cc6cdAd7A3d36e4f1d925fD142a",
"Splitter": "0xadF0D06e58E618de36Af0F1b52891b14FAA61187",
"VestingWallet0": "0x8D011915C437AD5f5e3B0E4c6dd6380c92599f99"
},
"goerli": {
"chainId": 5,
Expand Down Expand Up @@ -251,6 +255,25 @@
"Dispenser": "0xDEfD0018969cd2d4E648209F876ADe184815f038",
"ERC721Factory": "0x9C9eE07b8Ce907D2f9244F8317C1Ed29A3193bAe"
},
"oasis_saphire_testnet": {
"chainId": 23295,
"Ocean": "0x973e69303259B0c2543a38665122b773D28405fB",
"OPFCommunityFeeCollector": "0xe8c6Dc39602031A152440311e364818ba25C2Bc1",
"startBlock": 2565487,
"Router": "0x5FBC2A29f7C8e4533dECD14Dc1c561A8eF0d4e31",
"FixedPrice": "0x0846aec7aADD547131484Bf7fE548589b7F057fe",
"ERC20Template": {
"1": "0x519d462294958A935D34351b3ad9F98cCAB0b7f8",
"2": "0x2bCa501a6f9FB8a96f1b7B09D4f74A32ACAa7584",
"3": "0xf00c16665b79F23c04e5c8652Fe9853046b987c8"
},
"ERC721Template": {
"1": "0x9Ab15cc945b2B58A51384539211dE8a88a1355E8"
},
"Dispenser": "0xbde8224d15885c2E46Be665b9392E619cD142de8",
"ERC721Factory": "0x315ef329D214cde5cE7C206104aC35B1fe66bb8c",
"PredictoorHelper": "0x2e4cb19faD077768fDcB04Bc0549AB76BE8eA63F"
},
"sepolia": {
"chainId": 11155111,
"Ocean": "0x1B083D8584dd3e6Ff37d04a6e7e82b5F622f3985",
Expand All @@ -268,5 +291,60 @@
},
"Dispenser": "0x2720d405ef7cDC8a2E2e5AeBC8883C99611d893C",
"ERC721Factory": "0xEF62FB495266C72a5212A11Dce8baa79Ec0ABeB1"
},
"oasis_saphire": {
"chainId": 23294,
"Ocean": "0x39d22B78A7651A76Ffbde2aaAB5FD92666Aca520",
"OPFCommunityFeeCollector": "0x06100AB868206861a4D7936166A91668c2Ce1312",
"startBlock": 905232,
"Router": "0xd8992Ed72C445c35Cb4A2be468568Ed1079357c8",
"FixedPrice": "0xf26c6C93f9f1d725e149d95f8E7B2334a406aD10",
"ERC20Template": {
"1": "0xDBDa486d8fE29F75e9Ca858F438b380Fc14b1232",
"2": "0xF6410bf5d773C7a41ebFf972f38e7463FA242477",
"3": "0x1B083D8584dd3e6Ff37d04a6e7e82b5F622f3985"
},
"ERC721Template": {
"1": "0x69B6E54Ad2b3c2801d11d8Ad56ea1d892555b776"
},
"Dispenser": "0x2112Eb973af1DBf83a4f11eda82f7a7527D7Fde5",
"ERC721Factory": "0x80E63f73cAc60c1662f27D2DFd2EA834acddBaa8",
"DFRewards": "0xc37F8341Ac6e4a94538302bCd4d49Cf0852D30C0",
"DFStrategyV1": "0x3c21a90599b5B7f37014cA5Bf30d3f1b73d7e391",
"PredictoorHelper": "0xE9397625Df9B63f0C152f975234b7988b54710B8"
},
"optimism_sepolia": {
"chainId": 11155420,
"Ocean": "0xf26c6C93f9f1d725e149d95f8E7B2334a406aD10",
"OPFCommunityFeeCollector": "0xF6410bf5d773C7a41ebFf972f38e7463FA242477",
"startBlock": 3867703,
"Router": "0x1B083D8584dd3e6Ff37d04a6e7e82b5F622f3985",
"FixedPrice": "0x69B6E54Ad2b3c2801d11d8Ad56ea1d892555b776",
"ERC20Template": {
"1": "0x2112Eb973af1DBf83a4f11eda82f7a7527D7Fde5",
"2": "0x80E63f73cAc60c1662f27D2DFd2EA834acddBaa8"
},
"ERC721Template": {
"1": "0x3C5605202eD47C162450AE975415473e73F93072"
},
"Dispenser": "0x30E4CC2C7A9c6aA2b2Ce93586E3Df24a3A00bcDD",
"ERC721Factory": "0xDEfD0018969cd2d4E648209F876ADe184815f038"
},
"optimism": {
"chainId": 10,
"Ocean": "0x2561aa2bB1d2Eb6629EDd7b0938d7679B8b49f9E",
"OPFCommunityFeeCollector": "0xd8992Ed72C445c35Cb4A2be468568Ed1079357c8",
"startBlock": 112181681,
"Router": "0xf26c6C93f9f1d725e149d95f8E7B2334a406aD10",
"FixedPrice": "0xDBDa486d8fE29F75e9Ca858F438b380Fc14b1232",
"ERC20Template": {
"1": "0xF6410bf5d773C7a41ebFf972f38e7463FA242477",
"2": "0x1B083D8584dd3e6Ff37d04a6e7e82b5F622f3985"
},
"ERC721Template": {
"1": "0x69B6E54Ad2b3c2801d11d8Ad56ea1d892555b776"
},
"Dispenser": "0x2112Eb973af1DBf83a4f11eda82f7a7527D7Fde5",
"ERC721Factory": "0x80E63f73cAc60c1662f27D2DFd2EA834acddBaa8"
}
}
Loading
Loading