multiversx-vault-pattern

Official

Track intermediate token balances in-memory.

Authormultiversx
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill addresses the challenge of tracking intermediate token balances during multi-step operations within a single transaction, avoiding expensive storage writes for temporary state.

Core Features & Use Cases

  • In-Memory Ledger: Uses ManagedMapEncoded and ManagedVec for efficient O(1) balance lookups and ordered iteration.
  • Flexible Withdrawals: Supports exact amount, percentage, and full balance withdrawals.
  • Use Case: Ideal for smart contracts performing sequential token operations like aggregators, batch processors, or atomic swaps where intermediate balances don't need to persist across transactions.

Quick Start

Use the multiversx-vault-pattern skill to implement an in-memory token ledger for tracking balances during multi-step token operations within a single transaction.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: multiversx-vault-pattern
Download link: https://github.com/multiversx/mx-ai-skills/archive/main.zip#multiversx-vault-pattern

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.