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

upgrade pkgs #78

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
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
15 changes: 6 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "acala-wormhole-relayer",
"version": "1.9.0",
"version": "1.9.1-1",
"description": "",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand All @@ -12,32 +12,29 @@
"build": "tsc",
"clean": "rm -rf coverage .nyc_output dist/",
"dev": "ts-node-dev --respawn src/index.ts | pino-pretty --singleLine --colorize --ignore time,hostname,ip",

"start": "node dist/index.js",
"start:db": "docker compose up -- db",
"start:coverage": "pm2 start --name relayer 'nyc node -r ts-node/register src/index.ts' && ./scripts/health-check.sh",
"start:test-infra": "docker compose up",
"stop:coverage": "pm2 stop relayer && pm2 delete relayer",

"db:init": "prisma init",
"db:gen": "prisma generate",
"db:migrate:dev": "prisma migrate dev",
"db:migrate:prod": "prisma migrate deploy",

"test": "vitest src/__tests__/*.test.ts --singleThread --run",
"test:coverage": "yarn start:coverage && yarn test && yarn stop:coverage",
"test:ci": "yarn start:test-infra -d; yarn test:coverage"
},
"dependencies": {
"@acala-network/api": "~6.0.4",
"@acala-network/asset-router": "~1.0.19",
"@acala-network/bodhi": "~2.7.13",
"@acala-network/api": "~6.2.0",
"@acala-network/asset-router": "~1.0.20-0",
"@acala-network/eth-providers": "~2.9.5",
"@acala-network/bodhi": "~2.9.5",
"@acala-network/contracts": "^4.5.0",
"@acala-network/eth-providers": "~2.7.14",
"@certusone/wormhole-sdk": "^0.9.12",
"@improbable-eng/grpc-web": "^0.14.0",
"@improbable-eng/grpc-web-node-http-transport": "^0.15.0",
"@polkadot/api": "^10.9.1",
"@polkadot/api": "^14",
"@prisma/client": "^5.19.1",
"axios": "^0.26.1",
"bech32": "^2.0.0",
Expand Down
3 changes: 0 additions & 3 deletions src/api/euphrates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@ const prepareRouteEuphrates = async (chain: Mainnet) => {
export const shouldRouteEuphrates = async (params: RouteParamsEuphrates) => {
try {
const { euphratesFactory, feeAddr } = await prepareRouteEuphrates(Mainnet.Acala);
if (!EUPHRATES_POOLS.includes(params.poolId)) {
throw new RouteError(`euphrates poolId ${params.poolId} is not supported`, params);
}

const routerAddr = await euphratesFactory.callStatic.deployEuphratesRouter(
feeAddr,
Expand Down
4 changes: 0 additions & 4 deletions src/api/swapAndLp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,6 @@ export const shouldRouteSwapAndLp = async (params: SwapAndLpParams) => {
try {
const { factory, feeAddr, relayerAddr } = await prepareSwapAndLp(Mainnet.Acala);

if (!EUPHRATES_POOLS.includes(params.poolId)) {
throw new RouteError(`euphrates poolId ${params.poolId} is not supported`, params);
}

const insts = {
...DEFAULT_SWAP_AND_LP_PARAMS,
recipient: params.recipient,
Expand Down
4 changes: 0 additions & 4 deletions src/api/swapAndRoute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,6 @@ export const shouldSwapAndRoute = async (params: SwapAndRouteParams) => {
try {
const { factory, feeAddr } = await prepareSwapAndRoute(Mainnet.Acala);

if (!EUPHRATES_POOLS.includes(params.poolId)) {
throw new RouteError(`euphrates poolId ${params.poolId} is not supported`, params);
}

const insts = {
...DEFAULT_SWAP_AND_ROUTE_PARAMS,
recipient: params.recipient,
Expand Down
3 changes: 2 additions & 1 deletion src/consts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ export const EUPHRATES_ADDR = '0x7Fe92EC600F15cD25253b421bc151c51b0276b7D';
export const EUPHRATES_POOLS = ['0', '1', '2', '3', '6', '7'];
export const SWAP_SUPPLY_TOKENS = [
ROUTER_TOKEN_INFO.jitosol.acalaAddr,
ROUTER_TOKEN_INFO.bnSol.acalaAddr,
];

export const RELAYER_ADDR = '0x8B5C2F71eFa2d88A20E0e1c8EDFeA3767B2ab230';
Expand All @@ -256,4 +257,4 @@ export const MINUTE = 60 * SECOND;
export const HOUR = 60 * MINUTE;
export const DAY = 24 * HOUR;

export const VERSION = '1.9.0';
export const VERSION = '1.9.1-1';
Loading
Loading