[SUI] I can't build my package on testnet

Is someone able to publish a package on testnet using Pyth? I followed the documentation and tried everything its not working. If so, could you please share your Move.toml file and eventually local dependencies?

I couldn’t build using git dependecies for some reasons, so I git cloned the repo to use it as local dependencies, I set the right published-at fields everywhere and now Im facing this kind of issues:

Failed to publish the Move module(s), reason: [warning] Multiple source verification errors found:

- On-chain version of dependency Pyth::price_feed was not found.
- Local dependency did not match its on-chain version at f47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94::Wormhole::package_utils
- On-chain version of dependency Pyth::set_update_fee was not found.
- On-chain version of dependency Pyth::governance was not found.
- On-chain version of dependency Pyth::i64 was not found.
- On-chain version of dependency Pyth::deserialize was not found.
- On-chain version of dependency Pyth::governance_action was not found.
- On-chain version of dependency Pyth::state was not found.
- On-chain version of dependency Pyth::accumulator was not found.
- On-chain version of dependency Pyth::set_governance_data_source was not found.
- On-chain version of dependency Pyth::set_fee_recipient was not found.
- On-chain version of dependency Pyth::price was not found.
- On-chain version of dependency Pyth::setup was not found.
- On-chain version of dependency Pyth::set was not found.
- On-chain version of dependency Pyth::governance_instruction was not found.
- On-chain version of dependency Pyth::price_info was not found.
- On-chain version of dependency Pyth::migrate was not found.
- On-chain version of dependency Pyth::data_source was not found.
- On-chain version of dependency Pyth::hot_potato_vector was not found.
- On-chain version of dependency Pyth::merkle_tree was not found.
- On-chain version of dependency Pyth::price_status was not found.
- On-chain version of dependency Pyth::price_identifier was not found.
- On-chain version of dependency Pyth::event was not found.
- On-chain version of dependency Pyth::contract_upgrade was not found.
- On-chain version of dependency Pyth::batch_price_attestation was not found.
- On-chain version of dependency Pyth::set_stale_price_threshold was not found.
- On-chain version of dependency Pyth::pyth was not found.
- On-chain version of dependency Pyth::set_data_sources was not found.
- On-chain version of dependency Pyth::version_control was not found.
- Local version of dependency abf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837::price_status was not found.
- Local version of dependency abf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837::set_data_sources was not found.
- Local version of dependency abf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837::price_feed was not found.
- Local version of dependency abf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837::governance_instruction was not found.
- Local version of dependency abf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837::set_fee_recipient was not found.
- Local version of dependency abf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837::i64 was not found.
- Local version of dependency abf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837::price_identifier was not found.
- Local version of dependency abf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837::data_source was not found.
- Local version of dependency abf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837::price was not found.
- Local version of dependency abf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837::set_stale_price_threshold was not found.
- Local version of dependency abf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837::batch_price_attestation was not found.
- Local version of dependency abf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837::set was not found.
- Local version of dependency abf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837::set_governance_data_source was not found.
- Local version of dependency abf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837::set_update_fee was not found.
- Local version of dependency abf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837::setup was not found.
- Local version of dependency abf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837::contract_upgrade was not found.
- Local version of dependency abf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837::governance was not found.
- Local version of dependency abf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837::pyth was not found.
- Local version of dependency abf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837::hot_potato_vector was not found.
- Local version of dependency abf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837::governance_action was not found.
- Local version of dependency abf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837::version_control was not found.
- Local version of dependency abf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837::event was not found.
- Local version of dependency abf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837::deserialize was not found.
- Local version of dependency abf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837::state was not found.
- Local version of dependency abf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837::merkle_tree was not found.
- Local version of dependency abf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837::migrate was not found.
- Local version of dependency abf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837::accumulator was not found.
- Local version of dependency abf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837::price_info was not found.

This may indicate that the on-chain version(s) of your package's dependencies may behave differently than the source version(s) your package was built against.

I honestly tried everything idk what can I do… :frowning:

PS: It would be great if Pyth were added to the MVR ( Announcing the Move Registry (MVR): Radical Interoperability )

Hey, my first bet is that your address is not right. the published-at gives you the last package address but for objects you need the initial package address (which is where objects are published-at).

If you give us a reproducible code (like a repo that creates the problem above) so we can try to resolve it quicker for you.

Hi. I was able to verify that our CLI (which leverages the JS SDK) works on testnet. So as ali mentioned there might be some small problems here and there. I can help take a look at the code, if you can provide it! We have plans to add MVR as well!

1 Like

Hey @ali @darunrs thank you for your answers. Ive created a repo where I can reproduce the issue GitHub - adrmarty/pyth-forum-example
Please let me know if you have any other question and thank you for your time! <3

Where can I see the initial package address? I took the address from the documentation

I think I solved it, one need to set

[addresses]
pyth = "0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837"

aswell as the publised-at in the pyth local dependency

I guess Pyth wrong version with Wormhole that ‘sui-upgrade-testnet’ branch not existed

Hey, glad that seems to work! That definitely tracks. We also set the addresses to the address alongside published-at in the contract’s Move.toml:

[package]
name = "Pyth"
version = "0.0.2"

[dependencies.Sui]
git = "https://github.com/MystenLabs/sui.git"
subdir = "crates/sui-framework/packages/sui-framework"
rev = "041c5f2bae2fe52079e44b70514333532d69f4e6"

[dependencies.Wormhole]
git = "https://github.com/wormhole-foundation/wormhole.git"
subdir = "sui/wormhole"
rev = "82d82bffd5a8566e4b5d94be4e4678ad55ab1f4f"

[addresses]
pyth = "0x00b53b0f4174108627fbee72e2498b58d6a2714cded53fac537034c220d26302"
wormhole = "0x5306f64e312b581766351c07af79c72fcb1cd25147157fdc2f8ad76de9a3fb6a"

Let me know if there’s any other issues you’re facing! For your earlier question about initial package address, you can see the addresses here: https://docs.pyth.network/price-feeds/contract-addresses/sui

Other than the docs, I don’t think it’d be easy to find the addresses other than scouring crosschain.

1 Like

can u please share your move.toml file

use local package wormhole and pyth-crosschain

[TESTNET]

  1. your move project
[dependencies.Pyth]
local = "../../../pyth-crosschain/target_chains/sui/contracts"

[dependencies.Wormhole]
local = "../../../wormhole/sui/wormhole"

[dependencies.usdc]
local = "../../../stablecoin-sui/packages/usdc"

[addresses]
wormhole = "0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94"
pyth = "0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837"
  1. pyth-crosschain move file
[package]
name = "Pyth"
version = "0.0.2"
published-at = "0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837"

[dependencies.Sui]
git = "https://github.com/MystenLabs/sui.git"
subdir = "crates/sui-framework/packages/sui-framework"
rev = "041c5f2bae2fe52079e44b70514333532d69f4e6"

[dependencies.Wormhole]
# git = "https://github.com/wormhole-foundation/wormhole.git"
# subdir = "sui/wormhole"
# rev = "82d82bffd5a8566e4b5d94be4e4678ad55ab1f4f"
local = "../../../../wormhole/sui/wormhole"

[addresses]
pyth = "0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837"
wormhole = "0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94"

finally
sui client publish --skip-dependency-verification --silence-warnings

2 Likes

Thank you so so much!!! i tried everything, this is the only thing that worked!!!

1 Like

Failed to fetch package Pyth

Caused by:
Object 0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837 does not exist

Im gonna update my repo to fix the issue I had so that one can just git clone and test :slight_smile:

1 Like

I was actually on the devnet and this got resolve when i switched to testnet

1 Like