Skip to content

Commit

Permalink
Merge branch 'dev' into gda-fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
0xdavinchee committed Jan 5, 2024
2 parents abaeb14 + 1bf8e7c commit a7e370a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
3 changes: 2 additions & 1 deletion packages/sdk-core/src/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -436,5 +436,6 @@ export interface BondIncreasedEvent extends EventBase {
}

export interface UnknownEvent extends EventBase {
name: string;
// @note using the string type breaks the type guard
name: "";
}
3 changes: 2 additions & 1 deletion packages/sdk-core/src/mapGetAllEventsQueryEvents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,8 @@ export const mapGetAllEventsQueryEvents = (
`An unknown event [${eventBase.name}] was detected which couldn't be properly mapped. Please update to the latest version of @superfluid-finance/sdk-core.`
);
return typeGuard<events.UnknownEvent>({
name: eventBase.name,
// force casted as empty string for the type system
name: eventBase.name as "",
id: eventBase.id,
blockNumber: eventBase.blockNumber,
transactionHash: eventBase.transactionHash,
Expand Down
10 changes: 8 additions & 2 deletions packages/subgraph/tasks/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,13 @@ GRAPH_NETWORKS=( $($JQ -r .[] ./hosted-service-networks.json) ) || exit 1
# shellcheck disable=SC2034
SATSUMA_NETWORKS=( "polygon-mainnet" "xdai-mainnet" "eth-mainnet" "eth-sepolia" "optimism-mainnet" "base-mainnet")
# shellcheck disable=SC2034
SUPERFLUID_NETWORKS=( "polygon-zkevm-testnet" "polygon-mainnet" "eth-sepolia" "base-goerli" "eth-mainnet" "xdai-mainnet" "base-mainnet" "optimism-mainnet" "arbitrum-one")
SUPERFLUID_NETWORKS=( "polygon-zkevm-testnet" "polygon-mainnet" "eth-sepolia" "base-goerli" "eth-mainnet" "xdai-mainnet" "base-mainnet" "optimism-mainnet" "arbitrum-one" "celo-mainnet" "bsc-mainnet" "avalanche-c")

declare -A VENDOR_NETWORKS=(
["graph"]="${GRAPH_NETWORKS[@]}"
["satsuma"]="${SATSUMA_NETWORKS[@]}"
["superfluid"]="${SUPERFLUID_NETWORKS[@]}"
)

VENDOR=""
NETWORK=""
Expand Down Expand Up @@ -163,7 +169,7 @@ fi

# Handle all vs specific network
if [ "$NETWORK" == "all" ]; then
for network in "${NETWORKS_REF[@]}"; do
for network in ${VENDOR_NETWORKS[$VENDOR]}; do
deploy_to "$VENDOR" "$network"
done
else
Expand Down

0 comments on commit a7e370a

Please sign in to comment.