[DX] module contracts/predictoor_contract.py & class PredictoorContract are confusing labels #812
Closed
2 tasks done
Labels
Type: Bug
Something isn't working
Summary / TODO
contracts/predictoor_contract.py
&PredictoorContract
->contracts/feed_contract.py
&FeedContract
predictoor_contract
etc -->feed_contract
(orfeed
when appropriate). Note that some modules already use this (eg predictoor bot)Background
In
ocean-contracts
repo, we haveERC20Template3.sol
. This is the datatoken template that implements Predictoor-style datafeeds.We have deployed 20 of these contracts: 10 for 5min, 10 for 60min.
In this repo, the module
contracts/predictoor_contract.py
is a Python wrapper forERC20Template3.sol
. Its class isPredictoorContract
.Then throughout lots of this repo, we refer to those contracts as
predictoor_contracts
.Here's the problem: they're feeds not predictoors.
Let's clarify. When we say "predictoors" in the context of Predictoor product, we are referring to the bots making the predictions, or to the people running those bots. We are not referring to the feeds. "Predictoor" is an inappropriate label.
One could say "but what about contracts used for the Predictoor system?"
We need a better label!
Related Labels
Let's review other related labels.
First, here are related labels in pdr-backend repo (this repo):
contracts/erc721_factory.py
, classErc721Factory
contracts/data_nft.py
, classDataNft
cli/arg_feed.py
, classArgFeed
subgraph/subgraph_feed.py
, classSubgraphFeed
In ocean.py repo, models/ directory, related labels:
datatoken_base.py
, classDatatokenBase
. Children:datatoken1.py
, classDatatoken1
datatoken2.py
, classDatatoken2
erc721_token_factory_base.py
, classERC721TokenFactoryBase
. Children:data_nft_factory.py
, classDataNFTFactoryContract
data_nft
, classDataNFT
Goals
Goals for our labels:
Candidate Labels --> Analysis
(Module name, class name) --> Analysis
Summary: the winner is: feed_contract.py, FeedContract
The text was updated successfully, but these errors were encountered: