Skip to content

Core Contracts for Partisia Blockchain

Notifications You must be signed in to change notification settings

dhruvmalik007/CoreContracts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

92 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages