retrovrs / CoreContracts

Core Contracts for Partisia Blockchain

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tests and Linter checks

Partisia Core Contracts

Contracts

Name Description
MPC20 Implementation of ERC20 Interface
MPC721 Implementation of ERC721 Interface
MPC1155 Implementation of ERC1155 Interface
MPC20-Staking Implementation of ERC20 Interface with staking mechanism
MPC1-Multisig On-chain multisig contract

Packages

Name Description
Access Control Access Control Smart Contract Extension Lib
Contract Version Contract Versioning Lib
Counter Counters Lib
Ownable Ownable Smart Contract Extension Lib
Pausable Pausable Smart Contract Extension Lib
Utils Set of tool for Smart Contracts

Test

Run cargo test to run all unit tests

How to build contracts

Currently partisia-contract sdk doesn't support Rust Workspaces. So to build contracts from this repo on your own you will need to:

  1. Clone this repo
  2. Create a new contract outside this folder
  3. Import {contract}-base package from packages/ folder.
  4. Copy all the files from selected contract, for example from contracts/mpc20
  5. Run cargo partisia-contract build --release command.

Or you can download pre-compiled artifacts from here

About

Core Contracts for Partisia Blockchain


Languages

Language:Rust 100.0%