axelar-core

所属分类:区块链开发
开发工具:GO
文件大小:14682KB
下载次数:0
上传日期:2023-04-17 17:13:44
上 传 者sh-1993
说明:  axelar核心,axelar:去中心化区块链互操作网络
(axelar-core,Axelar : A Decentralized Blockchain Interoperability Network)

文件列表:
.dockerignore (71, 2023-05-23)
.golangci.yml (129, 2023-05-23)
Dockerfile (1636, 2023-05-23)
Dockerfile.binaries (259, 2023-05-23)
Dockerfile.debug (1846, 2023-05-23)
Dockerfile.protocgen (331, 2023-05-23)
Dockerfile.rosetta (1702, 2023-05-23)
LICENSE (11348, 2023-05-23)
Makefile (9270, 2023-05-23)
app (0, 2023-05-23)
app\app.go (31479, 2023-05-23)
app\app_test.go (550, 2023-05-23)
app\codec (0, 2023-05-23)
app\codec\codec.go (8029, 2023-05-23)
app\encoding.go (654, 2023-05-23)
app\export.go (5570, 2023-05-23)
... ...

# axelar-core The axelar-core app based on the Cosmos SDK is the main application of the axelar network. This repository is used to build the necessary binaries and docker image to run a core node. ## How To Build _Note:_ For a release build, checkout the release tag via `git checkout vX.Y.Z` first. Execute `make build` to create the `axelard` binary in the `./bin` folder. ## Creating docker images To create a regular docker image for the node, execute `make docker-image`. This creates the image axelar/core: latest. To create a docker image for debugging (with [delve](https://github.com/go-delve/delve)), execute `make docker-image-debug`. This creates the image axelar/core-debug:latest. ### Smart contracts bytecode dependency In order to run/build the project locally we need to import the bytecode from gateway smart contracts. 1. Find the specific version of the bytecode here `contract-version.json` 2. Download the right version from the [gateway workflow](https://github.com/axelarnetwork/solidity-cgp-gateway/actions/workflows/publish-bytecode.yaml). Example: `Bytecode-v4.3.0` 3. Unzip the json files under `contract-artifacts/gateway/` 4. Run `make generate` to generate `x/evm/types/contracts.go` ## Interacting with a local node With a local (dockerized) node running, the `axelard` binary can be used to interact with the node. Run `./bin/axelard` or `./bin/axelard --help` after building the binaries to get information about the available commands. ## Show API documentation Execute `GO111MODULE=off go install -u golang.org/x/tools/cmd/godoc` to ensure that `godoc` is installed on the host. After the installation, execute `godoc -http ":{port}" -index` to host a local godoc server. For example, with port `8080` and `godoc -http ":8080" -index`, the documentation is hosted at http://localhost:8080/pkg/github.com/axelarnetwork/axelar-core. The index flag makes the documentation searchable. Comments at the beginning of packages, before types and before functions are automatically taken from the source files to populate the documentation. See https://blog.golang.org/godoc for more information. ### CLI command documentation For the full list of available CLI commands for `axelard` see [here](docs/cli/toc.md) ## Test tools Dev tool dependencies, such as `moq` and `goimports`, can be installed via `make prereqs`. Make sure they're on available on your `PATH`. ## Bug bounty and disclosure of vulnerabilities See the [Axelar documentation website](https://docs.axelar.dev/bug-bounty).

近期下载者

相关文件


收藏者