Skip to content

Commit

Permalink
Add support for Sepolia. (#1482)
Browse files Browse the repository at this point in the history
* Add support for Sepolia. Test. Bump version v3.0.3 -> v3.0.4.

* Delete test.
  • Loading branch information
mariacarmina authored Sep 28, 2023
1 parent f88f553 commit 91c1271
Show file tree
Hide file tree
Showing 12 changed files with 5 additions and 13 deletions.
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 = 3.0.3
current_version = 3.0.4
commit = True
tag = True

Expand Down
2 changes: 1 addition & 1 deletion ocean_lib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@

__author__ = """OceanProtocol"""
# fmt: off
__version__ = '3.0.3'
__version__ = '3.0.4'
# fmt: on
1 change: 0 additions & 1 deletion ocean_lib/assets/ddo.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ def __init__(
event: Optional[dict] = None,
stats: Optional[dict] = None,
) -> None:

self.did = did
self.context = context or ["https://w3id.org/did/v1"]
self.chain_id = chain_id
Expand Down
2 changes: 0 additions & 2 deletions ocean_lib/data_provider/data_service_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ def initialize(
consumer_address: str,
userdata: Optional[Dict] = None,
) -> Response:

method, initialize_endpoint = DataServiceProvider.build_endpoint(
"initialize", service.service_endpoint
)
Expand Down Expand Up @@ -413,7 +412,6 @@ def compute_job_result_logs(
def _send_compute_request(
http_method: str, did: str, job_id: str, service_endpoint: str, consumer
) -> Dict[str, Any]:

nonce, signature = DataServiceProvider.sign_message(
consumer,
f"{consumer.address}{job_id}{did}",
Expand Down
1 change: 1 addition & 0 deletions ocean_lib/example_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"moonriver": "https://v4.provider.moonriver.oceanprotocol.com",
"moonbase": "https://v4.provider.moonbase.oceanprotocol.com",
"mumbai": "https://v4.provider.mumbai.oceanprotocol.com",
"sepolia": "https://v4.provider.oceanprotocol.com",
"development": DEFAULT_PROVIDER_URL,
}

Expand Down
1 change: 0 additions & 1 deletion ocean_lib/models/datatoken_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,6 @@ def start_order(
tx_dict: dict,
consume_market_fees=None,
) -> str:

if not consume_market_fees:
consume_market_fees = TokenFeeInfo()

Expand Down
1 change: 0 additions & 1 deletion ocean_lib/models/test/test_data_nft.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,6 @@ def test_permissions(
def test_add_and_remove_permissions(
publisher_wallet, consumer_wallet, config, data_nft
):

# Assert consumer has no permissions
permissions = data_nft.getPermissions(consumer_wallet.address)
assert not permissions[DataNFTPermissions.MANAGER]
Expand Down
1 change: 0 additions & 1 deletion ocean_lib/models/test/test_exchange_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

@pytest.mark.unit
def test_with_defaults(OCEAN, DT, alice, bob):

# =========================================================================
# Create exchange
exchange = DT.create_exchange(
Expand Down
2 changes: 0 additions & 2 deletions ocean_lib/ocean/ocean.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,6 @@ def get_user_orders(self, address: str, datatoken: str) -> List[AttributeDict]:
def retrieve_provider_fees(
self, ddo: DDO, access_service: Service, publisher_wallet
) -> dict:

initialize_response = DataServiceProvider.initialize(
ddo.did, access_service, consumer_address=publisher_wallet.address
)
Expand All @@ -195,7 +194,6 @@ def retrieve_provider_fees_for_compute(
compute_environment: str,
valid_until: int,
) -> dict:

initialize_compute_response = DataServiceProvider.initialize_compute(
[x.as_dictionary() for x in datasets],
algorithm_data.as_dictionary(),
Expand Down
1 change: 0 additions & 1 deletion ocean_lib/services/consumer_parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ def __init__(
description: str,
options: Optional[List[str]] = None,
) -> None:

fn_args = locals().copy()
for attr_name in ConsumerParameters.required_attrs():
setattr(self, attr_name, fn_args[attr_name])
Expand Down
2 changes: 1 addition & 1 deletion ocean_lib/test/test_example_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def test_moonbeam_alpha_example_config(monkeypatch):


@pytest.mark.unit
def test_get_address_of_type(monkeypatch):
def test_get_address_of_type():
config = get_config_dict("polygon")

data_nft_factory = get_address_of_type(config, DataNFTFactoryContract.CONTRACT_NAME)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
url="https://github.com/oceanprotocol/ocean.py",
# fmt: off
# bumpversion.sh needs single-quotes
version='3.0.3',
version='3.0.4',
# fmt: on
zip_safe=False,
)

0 comments on commit 91c1271

Please sign in to comment.