Skip to content

Commit

Permalink
change feature flag for arb and ftm
Browse files Browse the repository at this point in the history
  • Loading branch information
0xyijing committed Oct 11, 2023
1 parent 5f4f5f5 commit 291437e
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 6 deletions.
4 changes: 2 additions & 2 deletions docker-compose-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ services:
FLASHWALLET_DEPLOYMENT_BLOCK: 18855797
FEAT_NFT: "true"
NFT_FEATURE_START_BLOCK: 32817445
FEAT_WRAP_UNWRAP_NATIVE_EVENT: "true"
FEAT_WRAP_UNWRAP_NATIVE_TRANSFER_EVENT: "true"
WRAP_UNWRAP_NATIVE_CONTRACT_ADDRESS: '0x21be370d5312f44cb42ce377bc9b8a0cef1a4c83'

event-pipeline-celo:
Expand Down Expand Up @@ -269,7 +269,7 @@ services:
EP_ADDRESS: "0xdef1c0ded9bec7f1a1670819833240f027b25eff"
FEAT_NFT: "true"
NFT_FEATURE_START_BLOCK: 4050733
FEAT_WRAP_UNWRAP_NATIVE_EVENT: "true"
FEAT_WRAP_UNWRAP_NATIVE_TRANSFER_EVENT,: "true"
WRAP_UNWRAP_NATIVE_CONTRACT_ADDRESS: '0x82af49447d8a07e3bd95bd0d56f35241523fbab1'

event-pipeline-base:
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ services:
FLASHWALLET_DEPLOYMENT_BLOCK: 18855797
FEAT_NFT: "true"
NFT_FEATURE_START_BLOCK: 32817445
FEAT_WRAP_UNWRAP_NATIVE_EVENT: "true"
FEAT_WRAP_UNWRAP_NATIVE_TRANSFER_EVENT: "true"
WRAP_UNWRAP_NATIVE_CONTRACT_ADDRESS: '0x21be370d5312f44cb42ce377bc9b8a0cef1a4c83'

event-pipeline-celo:
Expand Down Expand Up @@ -269,7 +269,7 @@ services:
EP_ADDRESS: "0xdef1c0ded9bec7f1a1670819833240f027b25eff"
FEAT_NFT: "true"
NFT_FEATURE_START_BLOCK: 4050733
FEAT_WRAP_UNWRAP_NATIVE_EVENT: "true"
FEAT_WRAP_UNWRAP_NATIVE_TRANSFER_EVENT: "true"
WRAP_UNWRAP_NATIVE_CONTRACT_ADDRESS: '0x82af49447d8a07e3bd95bd0d56f35241523fbab1'

event-pipeline-base:
Expand Down
6 changes: 6 additions & 0 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ import {
DEFAULT_STAKING_POOLS_METADATA_JSON_URL,
DEFAULT_FEAT_ONCHAIN_GOVERNANCE,
DEFAULT_FEAT_WRAP_UNWRAP_NATIVE_EVENT,
DEFAULT_FEAT_WRAP_UNWRAP_NATIVE_TRANSFER_EVENT,
} from './constants';

const throwError = (err: string) => {
Expand Down Expand Up @@ -383,6 +384,11 @@ export const FEAT_WRAP_UNWRAP_NATIVE_EVENT = getBoolConfig(
DEFAULT_FEAT_WRAP_UNWRAP_NATIVE_EVENT,
);

export const FEAT_WRAP_UNWRAP_NATIVE_TRANSFER_EVENT = getBoolConfig(
'FEAT_WRAP_UNWRAP_NATIVE_TRANSFER_EVENT',
DEFAULT_FEAT_WRAP_UNWRAP_NATIVE_TRANSFER_EVENT,
);

export const WRAP_UNWRAP_NATIVE_START_BLOCK = getIntConfig('EP_DEPLOYMENT_BLOCK', -1);

validateStartBlock(
Expand Down
1 change: 1 addition & 0 deletions src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export const DEFAULT_PROMETHEUS_PORT = 3000;
export const DEFAULT_ENABLE_PROMETHEUS_METRICS = false;
export const DEFAULT_FEAT_ONCHAIN_GOVERNANCE = false;
export const DEFAULT_FEAT_WRAP_UNWRAP_NATIVE_EVENT = false;
export const DEFAULT_FEAT_WRAP_UNWRAP_NATIVE_TRANSFER_EVENT = false;

export const BRIDGEFILL_EVENT_TOPIC = ['0xe59e71a14fe90157eedc866c4f8c767d3943d6b6b2e8cd64dddcc92ab4c55af8'];
export const TRANSFORMEDERC20_EVENT_TOPIC = ['0x0f6672f78a59ba8e5e5b5d38df3ebc67f3c792e2c9259b8d97d7f00dd78ba1b3'];
Expand Down
5 changes: 3 additions & 2 deletions src/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ import {
FEAT_UNISWAP_V3_SWAP_EVENT,
FEAT_UNISWAP_V3_VIP_SWAP_EVENT,
FEAT_WRAP_UNWRAP_NATIVE_EVENT,
FEAT_WRAP_UNWRAP_NATIVE_TRANSFER_EVENT,
FEAT_V3_FILL_EVENT,
FEAT_V3_NATIVE_FILL,
FIRST_SEARCH_BLOCK,
Expand Down Expand Up @@ -595,7 +596,7 @@ export const eventScrperProps: EventScraperProps[] = [
callback: null,
},
{
enabled: FEAT_WRAP_UNWRAP_NATIVE_EVENT,
enabled: FEAT_WRAP_UNWRAP_NATIVE_TRANSFER_EVENT,
name: 'WrapNativeTransferEvent',
tType: WrapNativeEvent,
table: 'wrap_native_events',
Expand All @@ -608,7 +609,7 @@ export const eventScrperProps: EventScraperProps[] = [
callback: null,
},
{
enabled: FEAT_WRAP_UNWRAP_NATIVE_EVENT,
enabled: FEAT_WRAP_UNWRAP_NATIVE_TRANSFER_EVENT,
name: 'UnwrapNativeTransferEvent',
tType: UnwrapNativeEvent,
table: 'unwrap_native_events',
Expand Down

0 comments on commit 291437e

Please sign in to comment.