Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(#patch); uni v3 optimism; fix sync error #2373

Closed
wants to merge 1 commit into from
Closed
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
2 changes: 1 addition & 1 deletion deployment/deployment.json
Original file line number Diff line number Diff line change
Expand Up @@ -4314,7 +4314,7 @@
"status": "dev",
"versions": {
"schema": "4.0.1",
"subgraph": "1.0.0",
"subgraph": "1.0.1",
"methodology": "1.0.0"
},
"files": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
"nonFungiblePositionManagerAddressStartBlock": 0,
"deployment": "UNISWAP_V3_OPTIMISM",
"graftEnabled": false,
Copy link
Collaborator

Choose a reason for hiding this comment

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

should this be true?

"subgraphId": "",
"graftStartBlock": 0
"subgraphId": "Qmb2tPj9aRpG1N9Z2rzogwG6aBUQbxVUDMYYFytC1Dc6T7",
"graftStartBlock": 108380840
}
9 changes: 8 additions & 1 deletion subgraphs/uniswap-v3-forks-swap/src/common/constants.ts
Copy link
Collaborator

Choose a reason for hiding this comment

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

I reckon we do not need to update this file. Added variables are not used in swap subgraphs

Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ export namespace Network {
export const ARBITRUM_ONE = "ARBITRUM_ONE";
export const AVALANCHE = "AVALANCHE";
export const AURORA = "AURORA";
export const BASE = "BASE";
export const BSC = "BSC"; // aka BNB Chain
export const BASE = "BASE";
export const CELO = "CELO";
export const MAINNET = "MAINNET"; // Ethereum mainnet
export const FANTOM = "FANTOM";
Expand Down Expand Up @@ -138,6 +138,9 @@ export const INT_TWO = 2 as i32;
export const INT_THREE = 3 as i32;
export const PRICE_CHANGE_BUFFER_LIMIT = 5 as i32;

export const INT_HUNDRED = 100 as i64;
export const INT_FIVE_HUNDRED = 500 as i64;

export const MAX_UINT = BigInt.fromI32(2).times(BigInt.fromI32(255));
export const DAYS_PER_YEAR = new BigDecimal(BigInt.fromI32(365));
export const SECONDS_PER_DAY = 60 * 60 * 24;
Expand All @@ -146,3 +149,7 @@ export const MS_PER_DAY = new BigDecimal(BigInt.fromI32(24 * 60 * 60 * 1000));
export const MS_PER_YEAR = DAYS_PER_YEAR.times(
new BigDecimal(BigInt.fromI32(24 * 60 * 60 * 1000))
);

export const MOST_RECENT_TRANSACTION = "MOST_RECENT_TRANSACTION";

export const TICK_BASE = BigDecimal.fromString("1.0001");
Loading