Skip to content

Commit

Permalink
Update xcmPallet.md
Browse files Browse the repository at this point in the history
  • Loading branch information
dudo50 committed Feb 8, 2025
1 parent 81ce295 commit f2cc104
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/sdk/xcmPallet.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,13 @@ await EvmBuilder(provider) //Ethereum provider
.build();
```

**Helper functions:**
```
depositToken = async (signer: Signer, amount: bigint, symbol: string) //Deposit token to contract
getTokenBalance = async (signer: Signer, symbol: string) //Get token balance
approveToken = async (signer: Signer, amount: bigint, symbol: string) //Approve token
```

## Dry run your XCM Calls

Dry running let's you check whether your XCM Call will execute, giving you a chance to fix it if it is constructed wrongly or you didn't select correct account/asset or don't have enough balance. It is constructed in same way as standard XCM messages with parameter `.dryRun()` instead of `.build()`
Expand Down

0 comments on commit f2cc104

Please sign in to comment.