Code Monkey home page Code Monkey logo

layerzero-aptos-contract's Introduction

LayerZero Aptos

LayerZero Aptos endpoint.

Development Guide

Setup

git submodule init
git submodule update --recursive

cargo install --path deps/aptos-core/crates/aptos

Running tests

move modules

run tests of move modules

make test

SDK

to run tests of SDK, we need to launch local testnet first,

aptos node run-local-testnet --force-restart --assume-yes --with-faucet

then execute tests

cd sdk
npx jest ./tests/omniCounter.test.ts
npx jest ./tests/bridge.test.ts

layerzero-aptos-contract's People

Contributors

carmenjiawenc avatar hansonyip avatar lawsongraham avatar mok-lz avatar zouguangxian avatar

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  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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

layerzero-aptos-contract's Issues

Move.counter increment EVM counter

I reported in this issue the documentation to publish counter.move contract.

What would be the procedure for incrementing the counter on an EVM chain from counter.move?

In the case of two EVM chains, the setTrustedRemote repository can be used to authorize communication between the two chains. I tried, but it doesn't seem to work due to a different address. In this case, what should be done?

compile error with aptos 1.0.6

error: entry function cannot return values
┌─ /home/ubuntu/LayerZero-Aptos-Contract/apps/counter/sources/counter.move:71:5

71 │ ╭ public entry fun lz_receive_types(_src_chain_id: u64, _src_address: vector, _payload: vector) : vector<type_info::TypeInfo> {
72 │ │ vector::empty<type_info::TypeInfo>()
73 │ │ }
│ ╰─────^

{
"Error": "Move compilation failed: extended checks failed"
}

Fix bugs when running test:

Fix bugs when running test:

Npm package "@layerzerolabs/core-sdk" doesn't exit, replace it with "@layerzerolabs/lz-sdk".
Update the revision of aptos framework from "895ae28e4a105430d8b9d2ce2f6e48c3b2c7fcf0" to "2a332586aa4ec6b6eb5372b43e6b13d40061c6a5".
Fix typo: export * from "./deployLayerZero".
Other compiling error

Deploy counter.move documentation

Hello,

I'm trying to deploying the counter.move contract in testnet.

I followed the readme process to prepare the environment and everything works.

git submodule init
git submodule update --recursive
cargo install --path deps/aptos-core/crates/aptos
make test

When I try to publish counter.move with this command

aptos move publish --package-dir apps/counter --named-addresses counter=default,zro=default,msglib_v1_1=default,msglib_auth=default,layerzero_common=default,msglib_v2=default,executor_auth=default,executor_v2=default,layerzero=default

OUTPUT

package size 4303 bytes
{
  "Error": "Simulation failed with status: Move abort in 0x1::code: EPACKAGE_DEP_MISSING(0x60005): Dependency could not be resolved to any published package."
}

Which would be the correct command to deploy it?

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.