Deploy

object Deploy

Deploy companion object

Companion
class
trait Product
trait Mirror
class Object
trait Matchable
class Any

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: CLPublicKey, fees: BigInt, chaine: String, gas: Int, ttl: Long): Deploy

create a Deploy to deploy a smart contract to casper network

create a Deploy to deploy a smart contract to casper network

Value Params
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: Option[Hash], entryPoint: String, args: Seq[DeployNamedArg], from: CLPublicKey, fees: BigInt, chaine: String, gas: Int, ttl: Long): Deploy

Creates a Deploy to call a smart contract on the network

Creates a Deploy to call a smart contract on the network

Value Params
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: CLPublicKey, fees: BigInt, chaine: String, gas: Int, ttl: Long): 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 Params
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 Params
header

deploy header

payment

payment DeployExecutable

session

session DeployExecutable

Returns

unsigned Deploy

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

compute body hash

compute body hash

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

compute header hash

compute header hash

Returns

header hash

def signDeploy(deploy: Deploy, keyPair: KeyPair): Deploy

Sign a Deploy

Sign a Deploy

Value Params
deploy

deploy to sign

keyPair

keyPair to sign deploy with

Returns

Deploy

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

create a deploy transfert between two accounts

create a deploy transfert between two accounts

Value Params
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: Option[Hash], entryPoint: String, version: Int, args: Seq[DeployNamedArg], from: CLPublicKey, fees: BigInt, chaine: String, gas: Int, ttl: Long): 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 Params
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: CLPublicKey, fees: BigInt, chaine: String, gas: Int, ttl: Long): 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 Params
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