Deploy

object Deploy

Deploy companion object

Companion:
class
trait Product
trait Mirror
class Object
trait Matchable
class Any
Deploy.type

Type members

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Inherited from:
Mirror

Value members

Concrete methods

def contract(wasm: Array[Byte], from: Option[CLPublicKey], fees: BigInt, chaine: String, gas: Int, ttl: String): Deploy

create a Deploy to deploy a smart contract to casper network

create a Deploy to deploy a smart contract to casper network

Value parameters:
chaine

casper chaine name

fees

payment

from

source that will dpeloys the smart contract

gas

gas price

id

id

ttl

TTL

wasm

compiled smart contract bytes

Returns:

an Unsigned Deploy

def contractByHashCall(hash: Hash, entryPoint: String, args: Seq[DeployNamedArg], from: Option[CLPublicKey], fees: BigInt, chaine: String, gas: Int, ttl: String): Deploy

Creates a Deploy to call a smart contract on the network

Creates a Deploy to call a smart contract on the network

Value parameters:
args

sequence of execution arguments

chaine

casper chaine name

entryPoint

enty point (function) to call in the smart contract

fees

paymenet amount

from

source of the call on the smart contract

gas

gas price

hash

hash of the smart contract to call

ttl

TTL

Returns:

an Unsigned Deploy

def contractByNameCall(name: String, entryPoint: String, args: Seq[DeployNamedArg], from: Option[CLPublicKey], fees: BigInt, chaine: String, gas: Int, ttl: String): Deploy

Deploy to call a smart contract on the network (ex: delegation, undelegation)

Deploy to call a smart contract on the network (ex: delegation, undelegation)

Value parameters:
args

sequence of execution arguments

chaine

casper chaine name

entryPoint

enty point (function) to call in the smart contract

fees

paymenet amount

from

source of the call on the smart contract

gas

gas price

name

name of the smart contract

ttl

TTL

Returns:

an Unsigned Deploy

Create an unsigned deploy

Create an unsigned deploy

Value parameters:
header

deploy header

payment

payment DeployExecutable

session

session DeployExecutable

Returns:

unsigned Deploy

def deployBodyHash(payment: DeployExecutable, session: DeployExecutable): Option[Array[Byte]]

compute body hash

compute body hash

Returns:

Array[Byte]

def deployHeaderHash(header: DeployHeader): Option[Array[Byte]]

compute header hash

compute header hash

Returns:

header hash

def signDeploy(deploy: Deploy, keyPair: KeyPair): Option[Deploy]

Sign a Deploy

Sign a Deploy

Value parameters:
deploy

deploy to sign

keyPair

keyPair to sign deploy with

Returns:

Option[Deploy]

def transfer(from: Option[CLPublicKey], to: Option[CLPublicKey], amount: Long, fees: BigInt, chaine: String, id: BigInt, gas: Int, ttl: String): Deploy

create a deploy transfert between two accounts

create a deploy transfert between two accounts

Value parameters:
amount

amount to transfer

chaine

casper chaine name

fees

payment

from

source of the transfer

gas

gas fees

id

transfert id

to

recipient account

ttl

deploy time to live

Returns:

a Unsigne dDeploy

def versionnedContractByHashCall(hash: Hash, entryPoint: String, version: Int, args: Seq[DeployNamedArg], from: Option[CLPublicKey], fees: BigInt, chaine: String, gas: Int, ttl: String): Deploy

Creates a Deploy to call a function in a versionned smart contract on the network

Creates a Deploy to call a function in a versionned smart contract on the network

Value parameters:
args

sequence of execution arguments

chaine

casper chaine name

entryPoint

enty point (function) to call in the smart contract

fees

paymenet amount

from

source of the call on the smart contract

gas

gas price

hash

hash of the smart contract to call

ttl

TTL

version

version of the contract

Returns:

an Unsigned Deploy

def versionnedContractByNameCall(name: String, entryPoint: String, version: Int, args: Seq[DeployNamedArg], from: Option[CLPublicKey], fees: BigInt, chaine: String, gas: Int, ttl: String): Deploy

Creates a Deploy to call a function in a versionned smart contract on the network

Creates a Deploy to call a function in a versionned smart contract on the network

Value parameters:
args

sequence of execution arguments

chaine

casper chaine name

entryPoint

enty point (function) to call in the smart contract

fees

paymenet amount

from

source of the call on the smart contract

gas

gas price

name

name of the smart contract to call

ttl

TTL

version

version of the contract

Returns:

an Unsigned Deploy

Implicits

Implicits

implicit val decoder: Decoder[Deploy]
implicit val encoder: Encoder[Deploy]