Skip to content

Commit

Permalink
bump v1.8.1-0 for jitosol prod testing
Browse files Browse the repository at this point in the history
  • Loading branch information
shunjizhan committed Jul 9, 2024
1 parent 9deceb7 commit b1a8b3e
Show file tree
Hide file tree
Showing 4 changed files with 10,444 additions and 6,852 deletions.
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "acala-wormhole-relayer",
"version": "1.8.0",
"version": "1.8.1-0",
"description": "",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand All @@ -11,7 +11,7 @@
"scripts": {
"build": "tsc",
"start": "node dist/index.js",
"dev": "nodemon --watch \"*\" --ext \"js,ts,json\" --ignore \"src/**/*.{spec,test}.ts\" --exec \"ts-node src/index.ts\" | pino-pretty --singleLine --colorize --ignore time,hostname",
"dev": "ts-node-dev --respawn src/index.ts | pino-pretty --singleLine --colorize --ignore time,hostname",
"test": "vitest src/__tests__/*.test.ts --singleThread",
"test:relay": "vitest src/__tests__/relay.test.ts",
"test:shouldRelay": "vitest src/__tests__/shouldRelay.test.ts",
Expand All @@ -22,7 +22,7 @@
},
"dependencies": {
"@acala-network/api": "~6.0.4",
"@acala-network/asset-router": "~1.0.18-1",
"@acala-network/asset-router": "~1.0.18",
"@acala-network/bodhi": "~2.7.13",
"@acala-network/contracts": "^4.5.0",
"@acala-network/eth-providers": "~2.7.14",
Expand Down Expand Up @@ -59,12 +59,13 @@
"eslint": "^8.9.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-sort-imports-es6-autofix": "^0.6.0",
"nodemon": "^2.0.15",
"pino-pretty": "^10.0.0",
"prettier": "^2.3.2",
"supertest": "^6.3.3",
"ts-node": "^10.5.0",
"ts-node-dev": "^2.0.0",
"typescript": "^4.3.5",
"vite": "^5.3.3",
"vitest": "^0.33.0"
}
}
3 changes: 2 additions & 1 deletion src/__tests__/relay.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@ import { describe, expect, it } from 'vitest';

import { ETH_RPC, RELAY_CONFIG } from '../consts';
import { PROD_ADDR } from './testConsts';
import { VAA_10_USDC_ETH_TO_ACALA } from './vaa';
import { VAA_10_USDC_ETH_TO_ACALA, VAA_1_JITOSOL_SOL_TO_ACALA } from './vaa';
import { expectError, relay, shouldRelay } from './testUtils';

const provider = new AcalaJsonRpcProvider(ETH_RPC.LOCAL);

const USDC_ADDR = ROUTER_TOKEN_INFO.usdc.acalaAddr;
const JITOSOL_ADDR = ROUTER_TOKEN_INFO.jitosol.acalaAddr;

describe('/shouldRelay', () => {
it('when should relay', async () => {
Expand Down
6 changes: 3 additions & 3 deletions src/consts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -254,9 +254,9 @@ export const TESTNET_MODE_WARNING = `
`;

export const EUPHRATES_ADDR = '0x7Fe92EC600F15cD25253b421bc151c51b0276b7D';
export const EUPHRATES_POOLS = ['0', '1', '2', '3', '7'];
export const EUPHRATES_POOLS = ['0', '1', '2', '3', '6'];
export const SWAP_SUPPLY_TOKENS = [
'0xa7fb00459f5896c3bd4df97870b44e868ae663d7', // jitosol
ROUTER_TOKEN_INFO.jitosol.acalaAddr,
];

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

export const VERSION = '1.8.0';
export const VERSION = '1.8.1-0';
Loading

0 comments on commit b1a8b3e

Please sign in to comment.