Skip to content

Commit 91ec0a5

Browse files
author
Logan Sulpizio
committed
Remove local testing code containing API key
1 parent 92b295f commit 91ec0a5

File tree

3 files changed

+3
-49
lines changed

3 files changed

+3
-49
lines changed

yam_indexing_module/the_graphe_handler/internals/fetch_all_offer_created.py

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -96,29 +96,4 @@ def fetch_all_offer_created(api_key: str, url: str) -> List[Dict[str, Any]]:
9696
all_offers[i]['topic'] = 'OfferCreated'
9797

9898

99-
return all_offers
100-
101-
102-
103-
# Example usage
104-
if __name__ == "__main__":
105-
# Replace with your actual API key
106-
API_KEY = "6a73e25ab5cf74012b68a2df437c4fef"
107-
108-
try:
109-
# Fetch all offerCreated entities
110-
offers = fetch_all_offer_created(API_KEY)
111-
112-
print(f"\nSuccessfully fetched {len(offers)} offerCreated entities")
113-
114-
# Display first few entities as examples
115-
if offers:
116-
print("\nLast entity example:")
117-
print(json.dumps(offers[-1], indent=2))
118-
119-
# Optionally save to file
120-
# with open("offer_created_data.json", "w") as f:
121-
# json.dump(offers, f, indent=2)
122-
123-
except Exception as e:
124-
print(f"Error: {e}")
99+
return all_offers

yam_indexing_module/the_graphe_handler/internals/fetch_offer_accepted_from_block_range.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -122,14 +122,4 @@ def fetch_offer_accepted_from_block_range(
122122
for i, entity in enumerate(all_entities):
123123
all_entities[i]['topic'] = 'OfferAccepted'
124124

125-
return all_entities
126-
127-
# Example usage
128-
if __name__ == "__main__":
129-
from pprint import pprint
130-
offer_accepted = fetch_offer_accepted_from_block_range(
131-
'https://gateway.thegraph.com/api/subgraphs/id/7xsjkvdDtLJuVkwCigMaBqGqunBvhYjUSPFhpnGL1rvu',
132-
'6a73e25ab5cf74012b68a2df437c4fef',
133-
40454034
134-
)
135-
pprint(offer_accepted)
125+
return all_entities

yam_indexing_module/the_graphe_handler/internals/fetch_offer_created_from_block_range.py

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -122,15 +122,4 @@ def fetch_offer_created_from_block_range(
122122
for i, entity in enumerate(all_entities):
123123
all_entities[i]['topic'] = 'OfferCreated'
124124

125-
return all_entities
126-
127-
128-
# Example usage
129-
if __name__ == "__main__":
130-
from pprint import pprint
131-
offer_created = fetch_offer_created_from_block_range(
132-
'https://gateway.thegraph.com/api/subgraphs/id/7xsjkvdDtLJuVkwCigMaBqGqunBvhYjUSPFhpnGL1rvu',
133-
'6a73e25ab5cf74012b68a2df437c4fef',
134-
40448130
135-
)
136-
pprint(offer_created)
125+
return all_entities

0 commit comments

Comments
 (0)