Skip to main content

Python package to automate MultiversX smart contracts deployment and contract interactions in general

Project description

MxOps

MxOps is a python package created to automate MultiversX transactions: be it smart contracts deployments, calls, queries or just simple transfers. Inspired from DevOps tools and built on top of mxpy, it aims to ease and make reproducible any set of these interactions with the blockchain.

MxOps aims to be useful in these situations:

  • deployment automation
  • on-chain integration tests
  • contract interaction automation

For a quick overview, here's how to create a token, assign a mint role and mint tokens with MxOps:

allowed_networks:
  - devnet
  - localnet

allowed_scenario:
  - "alice_mint"

accounts:
  - account_name: alice
    pem_path: ./wallets/alice.pem

steps:
  - type: FungibleIssue
    sender: alice
    token_name: AliceToken
    token_ticker: ATK
    initial_supply: 1000000000  # 1,000,000.000 ATK
    num_decimals: 3
    can_add_special_roles: true

  - type: ManageFungibleTokenRoles
    sender: alice
    is_set: true    # if we want to set or unset the roles below
    token_identifier: "%AliceToken.identifier"
    target: alice
    roles:
      - ESDTRoleLocalMint
      - ESDTRoleLocalBurn
  
  - type: FungibleMint
    sender: alice
    token_identifier: "%AliceToken.identifier"
    amount: 100000000  # 100,000.000 ATK

Getting Started

Heads up to the documentation to get started! You will find tutorials, user documentation and examples 🚀

Contribution

This tool is an humble proposal by Catenscia to have a standard way of writing deployment files, integration tests and others. If you want this tool to improve, please tell us your issues and proposals!

And if you're motivated, we will always welcome hepling hands onboard :grin: !

Read the contribution guidelines for more :wink:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mxops-2.0.0.tar.gz (58.8 kB view hashes)

Uploaded Source

Built Distribution

mxops-2.0.0-py3-none-any.whl (62.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page