Skip to content

Commit 91c1271

Browse files
authored
Add support for Sepolia. (#1482)
* Add support for Sepolia. Test. Bump version v3.0.3 -> v3.0.4. * Delete test.
1 parent f88f553 commit 91c1271

File tree

12 files changed

+5
-13
lines changed

12 files changed

+5
-13
lines changed

.bumpversion.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 3.0.3
2+
current_version = 3.0.4
33
commit = True
44
tag = True
55

ocean_lib/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77

88
__author__ = """OceanProtocol"""
99
# fmt: off
10-
__version__ = '3.0.3'
10+
__version__ = '3.0.4'
1111
# fmt: on

ocean_lib/assets/ddo.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ def __init__(
3434
event: Optional[dict] = None,
3535
stats: Optional[dict] = None,
3636
) -> None:
37-
3837
self.did = did
3938
self.context = context or ["https://w3id.org/did/v1"]
4039
self.chain_id = chain_id

ocean_lib/data_provider/data_service_provider.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ def initialize(
4444
consumer_address: str,
4545
userdata: Optional[Dict] = None,
4646
) -> Response:
47-
4847
method, initialize_endpoint = DataServiceProvider.build_endpoint(
4948
"initialize", service.service_endpoint
5049
)
@@ -413,7 +412,6 @@ def compute_job_result_logs(
413412
def _send_compute_request(
414413
http_method: str, did: str, job_id: str, service_endpoint: str, consumer
415414
) -> Dict[str, Any]:
416-
417415
nonce, signature = DataServiceProvider.sign_message(
418416
consumer,
419417
f"{consumer.address}{job_id}{did}",

ocean_lib/example_config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
"moonriver": "https://v4.provider.moonriver.oceanprotocol.com",
3838
"moonbase": "https://v4.provider.moonbase.oceanprotocol.com",
3939
"mumbai": "https://v4.provider.mumbai.oceanprotocol.com",
40+
"sepolia": "https://v4.provider.oceanprotocol.com",
4041
"development": DEFAULT_PROVIDER_URL,
4142
}
4243

ocean_lib/models/datatoken_base.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,6 @@ def start_order(
186186
tx_dict: dict,
187187
consume_market_fees=None,
188188
) -> str:
189-
190189
if not consume_market_fees:
191190
consume_market_fees = TokenFeeInfo()
192191

ocean_lib/models/test/test_data_nft.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,6 @@ def test_permissions(
182182
def test_add_and_remove_permissions(
183183
publisher_wallet, consumer_wallet, config, data_nft
184184
):
185-
186185
# Assert consumer has no permissions
187186
permissions = data_nft.getPermissions(consumer_wallet.address)
188187
assert not permissions[DataNFTPermissions.MANAGER]

ocean_lib/models/test/test_exchange_main.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020

2121
@pytest.mark.unit
2222
def test_with_defaults(OCEAN, DT, alice, bob):
23-
2423
# =========================================================================
2524
# Create exchange
2625
exchange = DT.create_exchange(

ocean_lib/ocean/ocean.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,6 @@ def get_user_orders(self, address: str, datatoken: str) -> List[AttributeDict]:
177177
def retrieve_provider_fees(
178178
self, ddo: DDO, access_service: Service, publisher_wallet
179179
) -> dict:
180-
181180
initialize_response = DataServiceProvider.initialize(
182181
ddo.did, access_service, consumer_address=publisher_wallet.address
183182
)
@@ -195,7 +194,6 @@ def retrieve_provider_fees_for_compute(
195194
compute_environment: str,
196195
valid_until: int,
197196
) -> dict:
198-
199197
initialize_compute_response = DataServiceProvider.initialize_compute(
200198
[x.as_dictionary() for x in datasets],
201199
algorithm_data.as_dictionary(),

ocean_lib/services/consumer_parameters.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ def __init__(
2727
description: str,
2828
options: Optional[List[str]] = None,
2929
) -> None:
30-
3130
fn_args = locals().copy()
3231
for attr_name in ConsumerParameters.required_attrs():
3332
setattr(self, attr_name, fn_args[attr_name])

0 commit comments

Comments
 (0)