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

chore: Bump contracts #694

Merged
merged 3 commits into from
Aug 9, 2024
Merged
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
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@across-protocol/sdk",
"author": "UMA Team",
"version": "3.1.17",
"version": "3.1.18",
"license": "AGPL-3.0",
"homepage": "https://docs.across.to/reference/sdk",
"files": [
Expand Down Expand Up @@ -100,7 +100,7 @@
"dependencies": {
"@across-protocol/across-token": "^1.0.0",
"@across-protocol/constants": "^3.1.13",
"@across-protocol/contracts": "^3.0.8",
"@across-protocol/contracts": "^3.0.9",
"@eth-optimism/sdk": "^3.3.1",
"@pinata/sdk": "^2.1.0",
"@types/mocha": "^10.0.1",
Expand Down
5 changes: 4 additions & 1 deletion src/relayFeeCalculator/chain-queries/factory.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import assert from "assert";
import { CHAIN_IDs, TOKEN_SYMBOLS_MAP } from "@across-protocol/constants";
import { getDeployedAddress } from "@across-protocol/contracts";
import { asL2Provider } from "@eth-optimism/sdk";
import { providers } from "ethers";
import { DEFAULT_SIMULATED_RELAYER_ADDRESS } from "../../constants";
import { chainIsMatic, chainIsOPStack } from "../../utils";
import { chainIsMatic, chainIsOPStack, isDefined } from "../../utils";
import { QueryBase } from "./baseQuery";
import { PolygonQueries } from "./polygon";
import { DEFAULT_LOGGER, Logger } from "../relayFeeCalculator";
Expand All @@ -28,6 +29,8 @@ export class QueryBase__factory {
gasMarkup = 0,
coingeckoBaseCurrency = "eth"
): QueryBase {
assert(isDefined(spokePoolAddress));
bmzig marked this conversation as resolved.
Show resolved Hide resolved

// Currently the only chain that has a custom query class is Polygon
if (chainIsMatic(chainId)) {
return new PolygonQueries(
Expand Down
3 changes: 3 additions & 0 deletions src/relayFeeCalculator/chain-queries/polygon.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import assert from "assert";
import { getDeployedAddress } from "../../utils/DeploymentUtils";
import { DEFAULT_LOGGER, Logger } from "../relayFeeCalculator";
import { providers } from "ethers";
import { CHAIN_IDs, DEFAULT_SIMULATED_RELAYER_ADDRESS, TOKEN_SYMBOLS_MAP } from "../../constants";
import { Coingecko } from "../../coingecko/Coingecko";
import { isDefined } from "../../utils";
import { QueryBase } from "./baseQuery";

export class PolygonQueries extends QueryBase {
Expand All @@ -15,6 +17,7 @@ export class PolygonQueries extends QueryBase {
logger: Logger = DEFAULT_LOGGER,
gasMarkup = 0
) {
assert(isDefined(spokePoolAddress));
super(
provider,
symbolMapping,
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@
"@openzeppelin/contracts" "4.1.0"
"@uma/core" "^2.18.0"

"@across-protocol/contracts@^3.0.8":
version "3.0.8"
resolved "https://registry.yarnpkg.com/@across-protocol/contracts/-/contracts-3.0.8.tgz#ec9f72584048e5db3ee3a4dc5e214561101a5ffb"
integrity sha512-JG3Jt+itG+f9ZcUK1K/SFy6xlmCjCxsf99+Ffp11rPN6FUvDNgscRCoizLlBmibzRbXkR6r6r5F2iPbIPX/gxw==
"@across-protocol/contracts@^3.0.9":
version "3.0.9"
resolved "https://registry.yarnpkg.com/@across-protocol/contracts/-/contracts-3.0.9.tgz#26a738e95ddcc433bc1beeb7367f379886d0f037"
integrity sha512-8eoq2/+2GTVSg4t8mEjFtX7OqG92v5JMGKbwGp47/ucQZt1Hat5OocdqcGbpz3QUOPXmF7RU+1RP5TIei28ohA==
dependencies:
"@across-protocol/constants" "^3.1.13"
"@defi-wonderland/smock" "^2.3.4"
Expand Down
Loading