Skip to content

Commit

Permalink
chore: update axelar-cgp-solidity and axelar-gmp-sdk-solidity version (
Browse files Browse the repository at this point in the history
…#90)

* chore: update deps version

* chore: fix tests

* chore: bump version to 2.1.1

* chore: fix hardhat not clean before compile

* chore: add findAxelarFrameword function

* chore: refactor find axelar framework path

* chore: fix aptos tests
  • Loading branch information
npty authored Sep 19, 2023
1 parent 89ebb78 commit df7d366
Show file tree
Hide file tree
Showing 15 changed files with 278 additions and 67 deletions.
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
"useWorkspaces": true,
"version": "2.1.0",
"version": "2.1.1",
"packages": [
"packages/*"
]
Expand Down
230 changes: 213 additions & 17 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions packages/axelar-local-dev-aptos/__tests__/aptos.spec.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import { HexString, TxnBuilderTypes } from 'aptos';
import { AptosNetwork, AptosRelayer, createAptosNetwork, findNodeModulesPath } from '..';
import { AptosNetwork, AptosRelayer, createAptosNetwork } from '..';
import fs from 'fs';
import path from 'path';
import { ethers } from 'ethers';
import { Network, createNetwork, deployContract, relay, setLogger } from '@axelar-network/axelar-local-dev';
import { Network, createNetwork, deployContract, relay, setLogger, EvmRelayer } from '@axelar-network/axelar-local-dev';
import HelloWorld from '../artifacts/__tests__/contracts/HelloWorld.sol/HelloWorld.json';
import { EvmRelayer } from '@axelar-network/axelar-local-dev/dist/relay/EvmRelayer';
const { keccak256, toUtf8Bytes } = ethers.utils;

setLogger(() => undefined);
Expand Down
12 changes: 11 additions & 1 deletion packages/axelar-local-dev-aptos/__tests__/utils.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { findNodeModulesPath } from '..';
import { findNodeModulesPath, findAxelarFramework } from '..';
import path from 'path';
import fs from 'fs';

describe('utils', () => {
it('should be able to find base `node_modules` path when the current dir is deep inside the node_modules folder', () => {
Expand All @@ -11,4 +12,13 @@ describe('utils', () => {
const path = findNodeModulesPath(__dirname);
expect(path.endsWith('node_modules')).toBeTruthy();
});

it('should be able to find `axelar_framework` path when the current dir is deep inside the node_modules folder', () => {
const frameworkPath = findAxelarFramework(
path.join(__dirname, '..', '..', '..', '/node_modules/@axelar-network/axelar-local-dev/dist'),
);

const files = fs.readdirSync(frameworkPath);
expect(files.indexOf('package-metadata.bcs') > -1);
});
});
Loading

0 comments on commit df7d366

Please sign in to comment.