Git Product home page Git Product logo

axelar-local-dev's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

axelar-local-dev's Issues

is it possible provisioning a live evm chain with this repo?

const ganacheOptions = {
database: { dbPath: options.dbPath },
wallet: {
accounts: accounts,
},
chain: {
chainId: chain.chainId,
networkId: chain.chainId,
vmErrorsOnRPCResponse: true,
},
logging: { quiet: true },
};
merge(ganacheOptions, options.ganacheOptions);
chain.ganacheProvider = require('ganache').provider(ganacheOptions);
chain.provider = new providers.Web3Provider(chain.ganacheProvider);

seems replace ganache provider with a json-rpc provider should be fine,right? is it possible that we can do some refactor and reuse most of this repo to provisioning a live chain and deploy contracts required here https://github1s.com/axelarnetwork/axelar-local-dev/blob/HEAD/src/contracts/Gateway.sol

PS:
I'm developer from Parallel team and working on cross-chain integration with axelar bridge, now just copy and paste contracts and scripts for integration in this repo and hope to find a way not doing that.

Cannot find module '../build/TokenDeployer.json'

This issue is not fixed:
Link to original closed issue: #2

Try running from a new hardhat project and installing axelar-local-dev according to the readme.
Then attempt to npx hardhat test, it will give the same error:
Error: Cannot find module '../artifacts/@axelar-network/axelar-cgp-solidity/contracts/TokenDeployer.sol/TokenDeployer.json'

It doesn't have the TokenDeployer.json artifacts because it didn't compile the contracts in the node_modules @axelar-network directory.
Trying to add that directory to the hardhat.confg.js doesn't help.
Not sure how to get this running. Importing the entire test project seems to work fine, but I don't need all that.

which blockexplorer can be used with axelar-local-dev?

I have tried blockscout, the axelar server crashes with:
TypeError: Cannot set properties of undefined (setting '0')
at /home/user/axelar-local-gmp-examples/node_modules/ganache/dist/node/1.js:2:127997
at Array.forEach ()
at /home/user/axelar-local-gmp-examples/node_modules/ganache/dist/node/1.js:2:127899

Can you suggest which blockexplorer to use?

Cannot find module '../build/TokenDeployer.json'

Test example simple/sendToken.js:

node node_modules/@axelar-network/axelar-local-dev/examples/simple/sendToken.js
node:internal/modules/cjs/loader:936
  throw err;
  ^

Error: Cannot find module '../build/TokenDeployer.json'
Require stack:
- /Users/gus/Documents/axelar/git-repos/axelar-local-dev/node_modules/@axelar-network/axelar-local-dev/dist/Network.js
- /Users/gus/Documents/axelar/git-repos/axelar-local-dev/node_modules/@axelar-network/axelar-local-dev/dist/networkUtils.js
- /Users/gus/Documents/axelar/git-repos/axelar-local-dev/node_modules/@axelar-network/axelar-local-dev/examples/simple/sendToken.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
    at Function.Module._load (node:internal/modules/cjs/loader:778:27)
    at Module.require (node:internal/modules/cjs/loader:999:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (/Users/gus/Documents/axelar/git-repos/axelar-local-dev/node_modules/@axelar-network/axelar-local-dev/dist/Network.js:62:21)
    at Module._compile (node:internal/modules/cjs/loader:1099:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
    at Module.load (node:internal/modules/cjs/loader:975:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:999:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/Users/gus/Documents/axelar/git-repos/axelar-local-dev/node_modules/@axelar-network/axelar-local-dev/dist/Network.js',
    '/Users/gus/Documents/axelar/git-repos/axelar-local-dev/node_modules/@axelar-network/axelar-local-dev/dist/networkUtils.js',
    '/Users/gus/Documents/axelar/git-repos/axelar-local-dev/node_modules/@axelar-network/axelar-local-dev/examples/simple/sendToken.js'
  ]
}

Node.js v17.8.0

Type Network

Hello, just to mention that the type Network is not exported as mentioned in the doc. Would be nice to have it available :)

The branch feat/forecaller-service has been deleted.

https://github.com/axelarnetwork/axelar-local-dev/blob/029b9b96bc92332483eec53258d07983a8359ef5/packages/axelar-local-dev/package.json#LL36C1-L36C1

We are referencing branch feat/forecaller-service of repository axelar-cgp-solidity but as you can see here:

axelarnetwork/axelar-cgp-solidity#160 the branch has been closed and deleted now and this is causing npm install to fail with

`
npm ERR! code 1
npm ERR! The git reference could not be found
npm ERR! command git --no-replace-objects checkout feat/forecaller-service
npm ERR! error: pathspec 'feat/forecaller-service' did not match any file(s) known to git

npm ERR! A complete log of this run can be found in: /root/.npm/_logs/2023-06-20T19_26_29_124Z-debug-0.log
`

RelayData is not cleaned up

When using the afterRelay callback the object is not properly reset.
Which makes event logging hard since there is no way of knowing if those events
have been logged before.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.