Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
7 changes: 6 additions & 1 deletion service_contracts/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ RPC_URL ?=
KEYSTORE ?=
PASSWORD ?=
CHALLENGE_FINALITY ?=
USDFC_PROXY_ADDRESS ?= 0x80B98d3aa09ffff255c3ba4A241111Ff1262F045
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
USDFC_PROXY_ADDRESS ?= 0x80B98d3aa09ffff255c3ba4A241111Ff1262F045
# Mainnet address by default
USDFC_PROXY_ADDRESS ?= 0x80B98d3aa09ffff255c3ba4A241111Ff1262F045


# Default target
.PHONY: default
Expand Down Expand Up @@ -134,7 +135,7 @@ ABI_CONTRACTS := \
SessionKeyRegistry

# Generate ABI file targets
ABI_FILES := $(addprefix abi/,$(addsuffix .abi.json,$(ABI_CONTRACTS)))
ABI_FILES := $(addprefix abi/,$(addsuffix .abi.json,$(ABI_CONTRACTS))) abi/Usdfc.abi.json

# Define a template for ABI extraction; we use a template approach instead of
# defining a global pattern rule because patterns for files that don't exist
Expand All @@ -153,6 +154,10 @@ endef
# Generate rules for each contract using the template above
$(foreach contract,$(ABI_CONTRACTS),$(eval $(call ABI_RULE,$(contract))))

abi/Usdfc.abi.json:
@echo "Extracting ABI for Usdfc..."
@bash tools/fetch-usdfc-abi.sh $(USDFC_PROXY_ADDRESS) abi/Usdfc.abi.json

# Directory for ABIs
abi:
@mkdir -p abi
Expand Down
Loading
Loading