Module: MVM
- Defined in:
- lib/mvm.rb,
lib/mvm/nft.rb,
lib/mvm/scan.rb,
lib/mvm/bridge.rb,
lib/mvm/client.rb,
lib/mvm/registry.rb
Overview
MVM (Mixin Virtual Machine)
MVM module provides integration with Mixin Virtual Machine, an Ethereum-compatible virtual machine running on Mixin Network.
Overview
MVM enables smart contract execution on Mixin Network with:
-
EVM compatibility (Ethereum Virtual Machine)
-
High performance and low cost
-
Seamless integration with Mixin Network assets
-
NFT support (ERC-721, ERC-1155)
-
Bridge functionality for cross-chain operations
Components
- MVM::Bridge
-
Bridge operations for cross-chain transfers
- MVM::Client
-
HTTP client for MVM services
- MVM::Nft
-
NFT operations (ERC-721, ERC-1155)
- MVM::Registry
-
Contract registry operations
- MVM::Scan
-
Blockchain explorer interface
Constants
- RPC_URL
-
The default RPC endpoint for MVM
- MIRROR_ADDRESS
-
The mirror contract address
- REGISTRY_ADDRESS
-
The registry contract address
Usage
Access bridge information:
bridge = MVM.bridge
info = bridge.info
Work with NFTs:
nft = MVM.nft
# NFT operations...
Use the blockchain scanner:
scan = MVM.scan
# Scan operations...
Access the registry:
registry = MVM.registry
# Registry operations...
References
Defined Under Namespace
Classes: Bridge, Client, Error, HttpError, Nft, Registry, ResponseError, Scan
Constant Summary collapse
- RPC_URL =
The default RPC URL for Mixin Virtual Machine.
'https://geth.mvm.dev'- MIRROR_ADDRESS =
The mirror contract address for cross-chain operations.
'0xC193486e6Bf3E8461cb8fcdF178676a5D75c066A'- REGISTRY_ADDRESS =
The registry contract address for contract management.
'0x3c84B6C98FBeB813e05a7A7813F0442883450B1F'
Class Method Summary collapse
-
.bridge ⇒ MVM::Bridge
Returns a singleton Bridge instance.
-
.nft(**params) ⇒ MVM::Nft
Returns a singleton or new NFT instance.
-
.registry(**params) ⇒ MVM::Registry
Returns a singleton or new Registry instance.
-
.scan ⇒ MVM::Scan
Returns a singleton Scan instance.
Class Method Details
.bridge ⇒ MVM::Bridge
Returns a singleton Bridge instance.
97 98 99 |
# File 'lib/mvm.rb', line 97 def self.bridge @bridge ||= MVM::Bridge.new end |
.nft(**params) ⇒ MVM::Nft
Returns a singleton or new NFT instance.
107 108 109 |
# File 'lib/mvm.rb', line 107 def self.nft(**params) @nft ||= MVM::Nft.new(**params) end |
.registry(**params) ⇒ MVM::Registry
Returns a singleton or new Registry instance.
126 127 128 |
# File 'lib/mvm.rb', line 126 def self.registry(**params) @registry ||= MVM::Registry.new(**params) end |