Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
fadeev committed Feb 13, 2025
1 parent 8f92fd9 commit 0592b35
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 20 deletions.
8 changes: 4 additions & 4 deletions examples/call/sui/Move.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[move]
version = 3
manifest_digest = "D184DDC88F358780E1A6DD12498EB15E90DBD21FB90CB85771800E4ED8B0C143"
manifest_digest = "82C267DC95A62359B1FF858589A2D574CFA30AA95348E2225AF3A27339241267"
deps_digest = "3C4103934B1E040BB6B23F1D610B4EF9F2F1166A50A104EADCF77467C004C600"
dependencies = [
{ id = "Sui", name = "Sui" },
Expand All @@ -23,7 +23,7 @@ dependencies = [

[[move.package]]
id = "gateway"
source = { git = "https://github.com/zeta-chain/protocol-contracts-sui.git", rev = "gateway-address", subdir = "" }
source = { git = "https://github.com/zeta-chain/protocol-contracts-sui.git", rev = "main", subdir = "" }

dependencies = [
{ id = "Sui", name = "Sui" },
Expand All @@ -38,6 +38,6 @@ flavor = "sui"

[env.local]
chain-id = "4f79e3ab"
original-published-id = "0x0000000000000000000000000000000000000000000000000000000000000000"
latest-published-id = "0x0c05f375babf9417c5baa540a12ab03997e26264d76f07a1576d739b2f44d3cc"
original-published-id = "0xbc9e70f8123f35ad64c0b5705fe661c637b35a82b281347a873be96da8f58d51"
latest-published-id = "0xbc9e70f8123f35ad64c0b5705fe661c637b35a82b281347a873be96da8f58d51"
published-version = "1"
9 changes: 2 additions & 7 deletions examples/call/sui/Move.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,8 @@ edition = "2024.beta"

[dependencies]
Sui = { git = "https://github.com/MystenLabs/sui.git", subdir = "crates/sui-framework/packages/sui-framework", rev = "framework/testnet" }
gateway = { git = "https://github.com/zeta-chain/protocol-contracts-sui.git", rev = "gateway-address" }
gateway = { git = "https://github.com/zeta-chain/protocol-contracts-sui.git", rev = "main" }

[addresses]
call = "0x0"

[dev-addresses]
gateway = "0xab4d0f505bfec34035d501e9f8b1dc54da5065c3481e02c39aa6228441649ed3"

# [published-at]
# gateway = "0xab4d0f505bfec34035d501e9f8b1dc54da5065c3481e02c39aa6228441649ed3"
gateway = "_"
18 changes: 9 additions & 9 deletions examples/call/sui/sources/call.move
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
module call::hello_world {
use std::ascii;
use sui::tx_context::{Self, TxContext};
use sui::coin::Coin;
use gateway::gateway::deposit_impl;
use sui::event;

public entry fun gateway_deposit<T>(
gateway: &mut gateway::gateway::Gateway,
coin: Coin<T>,
receiver: ascii::String,
public struct HelloEvent has copy, drop {
message: vector<u8>,
}

public entry fun hello(
gateway: &gateway::gateway::Gateway,
ctx: &mut TxContext
) {
deposit_impl(gateway, coin, receiver, ctx);
let event = HelloEvent {message: b"Hello, Sui!"};
event::emit(event);
}
}

0 comments on commit 0592b35

Please sign in to comment.