Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to import the wormhole wrapped coins in my Aptos move module? #4085

Open
seiji0411 opened this issue Aug 19, 2024 · 2 comments
Open

How to import the wormhole wrapped coins in my Aptos move module? #4085

seiji0411 opened this issue Aug 19, 2024 · 2 comments

Comments

@seiji0411
Copy link

Description and context

https://aptoscan.com/account/28b98af2e2b8a6387ee392773135e0bf4b1f05e4c0c79ff51ab84a73e2454be8?module=stable_swap_adapter&viewMode=view#modules
I found that this module has the dependences about Wormhole wrapped coins.

use WrappedCoin1::coin::T as WUSDC; // USD Coin (Wormhole)
use WrappedCoin2::coin::T as WWETH; // Wrapped Ether (Wormhole)
use WrappedCoin3::coin::T as WWTBT; // wTBT Pool

I tried to import Wrapped coins in my project as dependencies.
But I did not success. Having error Move abort in 0x1::code: EPACKAGE_DEP_MISSING(0x60005): Dependency could not be resolved to any published package

These are files of wrapped coin module

  • Move.toml
[package]
name = "WrappedCoin1"
version = "0.0.1"

[dependencies]
AptosFramework = { git = "https://github.com/aptos-labs/aptos-core.git", subdir = "aptos-move/framework/aptos-framework/", rev = "aptos-cli-v3.3.1" }

[addresses]
wrapped_coin_1="5e156f1207d0ebfa19a9eeff00d62a282278fb8719f4fab3a586a0a2c0fffbea"
  • coin.move
module wrapped_coin_1::coin {
    struct T has key {}
}

Actually I am wondering that your wrapped coins's module address and the deployed address are different.

module 0x277fa055b6a73c42c0662d5236c65c864ccbf2d4abd21f174a30c8b786eab84b::coin {
...
}
  • Deployed address
    0x5e156f1207d0ebfa19a9eeff00d62a282278fb8719f4fab3a586a0a2c0fffbea

I want to know how to make local dependences of your wrapped coins in my move module.

Please help me!

@seiji0411
Copy link
Author

Actually, building is successful. But while publishing on mainnet, it has the following error.

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

@Generalresolution03
Copy link

Hello @seiji0411
This will be review by the support team. Visit the live support page to initiate a chat with an agent for further assistance via live agent.
Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants