Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Phantasma Blockchain Source Code

License

NotificationsYou must be signed in to change notification settings

phantasma-io/phantasma-ng

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Phantasma

Decentralized network for smart storage

Contents


Description

Phantasma implements a decentralized content distribution system running on the blockchain, with strong emphasis on privacy and security.

To learn more about Phantasma, please read theWhite Paper.

Components

ComponentDescriptionStatusPercentage
Chain Coreeg: accounts, transactions, blocksIn development95%
WalletCLI walletIn development95%
VMVirtual machine to run smart contractsIn development95%
Smart Contractseg: language features, compilersIn development80%
EconomyTokens / NFTIn development95%
NetworkP2P communicationIn development85%
ConsensusDistributed consensus for nodesIn development85%
ScalabiltySide-chains / ChannelsIn development80%
RelayOff-chain relayIn development60%
StorageDistributed storageIn development90%
APIRPC api for nodesIn development90%

Compatibility

PlatformStatus
.NET FrameworkWorking
.NET CoreWorking
UnityWorking
Xamarin / MobileWorking
C++Working
MonoWorking
UWPUntested

Installation

To install Phantasma SDK to your project, run the following command in thePackage Manager Console:

PM> Install-Package Phantasma

Building

To build Phantasma on Windows, you need to downloadVisual Studio 2017, install the.NET Framework 4.7 Developer Pack and the.NET Core SDK.

If you need to develop on Linux or macOS, just install the.NET Core SDK.

For more information about how to build dApps for Phantasma, please read thedocumentation.

Debuging

To effectively debugPhantasma.Node, follow the steps outlined below:

  1. Tendermint Executable:

    • To debugPhantasma.Node, it's essential to have thetendermint executable.
    • Download it from this URL:Tendermint v0.34.21 Release.
    • Place the downloaded executable inside the path:/path/to/phantasma-ng/Phantasma.Node/src/bin/Debug/net6.0/tendermintFile.
  2. Configuration Settings:

    • In theconfig.json file, ensure that you specify the path to the folder mentioned above and thetendermint executable.
    • You can find an example configuration in thePhantasma.Node/src directory.
  3. Reset the Blockchain:

    • Delete theStorage folder.
    • Remove theStorage folder located at/path/to/phantasma-ng/Phantasma.Node/src/bin/Debug/net6.0/.
    • Remove thedata folder found inside/path/to/phantasma-ng/Phantasma.Node/src/bin/Debug/net6.0/tendermintFile.
    • Navigate to theDOCKER folder using a terminal and execute the script:./fix-storage.sh. This will reset the blockchain.
    • An easy way to do the deployment and reset in on step is to run this command:cd DOCKER && ./fix-storage.sh || cd .. && ./testnet-startup.sh.
  4. Edit Necessary Files for Protocol Version:

    • InPhantasma.Business/src/Blockchain/Nexus/Nexus.cs:
      • Update the value ofDomainSettings.Phantasma30Protocol toDomainSettings.LatestKnownProtocol at lines 937, 961, and 978.
    • InPhantasma.Node/src/ABCIConnector.cs:
      • Update the value on line 420 fromuint version = DomainSettings.Phantasma30Protocol; touint version = DomainSettings.LatestKnownProtocol;.
  5. Run Node in Editor:

    • If you intend to run the node in an editor like Rider or Visual Studio for debugging purposes:
      • Edit theDOCKER/wrapper-testnet.sh file.
      • Comment out line 28.

Contributing

You can contribute to Phantasma withissues andPRs. Simply filing issues for problems you encounter is a great way to contribute. Contributing implementations is greatly appreciated.

License

MIT License

The Phantasma project is released under the MIT license, seeLICENSE.md for more details.

Related Projects

ProjectDescriptionStatusPercentage
Phantasma WalletCross platform Phantasma wallet2 Available100%
Phantasma ExplorerBlock explorer for visualizing Phantasma chain dataComplete100%
Phantasma NodePhantasma node deploymentIn development90%
Phantasma SDKSoftware development kitIn development60%
Phantasma LinkBrowser extensions for interacting with Phantasma dAppsComplete - PhantasmaLink100%
Phantasma CompilerPhantasma smart contract compiler for high-level languagesIn development30%
Phantasma AssemblerPhantasma smart contract assembler for low-level instructionsIn development90%
NachomenPhantasma-based video gameIn development95%

Releases

No releases published

Packages

No packages published

Contributors15

Languages


[8]ページ先頭

©2009-2025 Movatter.jp