Skip to content

Commit

Permalink
chore: comments and description
Browse files Browse the repository at this point in the history
  • Loading branch information
ovidiuolteanu committed Jan 14, 2025
1 parent f03adc2 commit c5799d5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
# mx-sc-dummy-proxy
# mx-sc-dummy-proxy

## Description

This is a simple dummy proxy contract that can call another contract.
Very useful, much wow.
3 changes: 3 additions & 0 deletions dummy-proxy/src/dummy_proxy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ multiversx_sc::imports!();

#[multiversx_sc::module]
pub trait DummyProxyModule {
/// Simply calls the specified endpoint on given contract address
#[endpoint(callEndpoint)]
fn call_endpoint(
&self,
Expand All @@ -18,6 +19,7 @@ pub trait DummyProxyModule {
.sync_call()
}

/// Calls the specified endpoint on given contract address while it also transfers user given tokens with the call
#[endpoint(callInternalTransferEndpoint)]
fn call_int_transfer_endpoint(
&self,
Expand All @@ -36,6 +38,7 @@ pub trait DummyProxyModule {
.sync_call()
}

/// Calls the specified endpoint on given contract address while it also transfers specified tokens owned by the dummy proxy with the call
#[payable("*")]
#[endpoint(callTransferEndpoint)]
fn call_transfer_endpoint(
Expand Down

0 comments on commit c5799d5

Please sign in to comment.