Storage DFMS

Storage DFMS

  • Getting Started
  • CLI
  • Guides
  • Help

›Contract

Contract

  • Create drive
  • Join to Drive

Drive

  • Get Drive Info
  • Upload File
  • Remove File
  • Start Drive Verification
  • End Drive Verification
  • Drive Files Reward

Exchange

  • Exchange

Create drive

Requirements

  • IDE or text editor
  • ProximaX Catapult SDK
  • Have one owner node

Example

Prepare a new 1000MB drive for 12 months with 5 replicas, but the drive can start when 3 replicators joined. The reward will be 5000 SM every 1 month. To accept transactions needed 100% to approve.

//create driveAccount
driveAccount, _ := client.NewAccount()

//prepare drive
driveTx, err := client.NewPrepareDriveTransaction(
        sdk.NewDeadline(1),     //deadline
        owner.PublicAccount,    //public key of owber
        sdk.Duration(12),       //drive duration (in month)
        sdk.Duration(1),        //billing period (in month)
        sdk.Amount(50),         //billing price (in storage units)
        sdk.StorageSize(1000),  //drive size (in MB)
        5,                      //count of replicas
        3,                      //minimal count of replicas
        100,                    //percent approvers (100 or 66)
    )
//aggregate drive by drive account 
driveTx.ToAggregate(driveAccount.PublicAccount)
Join to Drive →
  • Requirements
  • Example
Storage DFMS
Roles
OwnerReplicatorVerifier
Built-in Features
ExchangeDriveChallenge
Protocol
Cross-block protocolFair streaming
Facebook Open Source
Copyright © 2020 ProximaX