XdrHostFunctionType
in package
Table of Contents
Constants
- HOST_FUNCTION_TYPE_CREATE_CONTRACT = 1
- HOST_FUNCTION_TYPE_CREATE_CONTRACT_V2 = 3
- HOST_FUNCTION_TYPE_INVOKE_CONTRACT = 0
- HOST_FUNCTION_TYPE_UPLOAD_CONTRACT_WASM = 2
Properties
- $value : int
Methods
- __construct() : mixed
- CREATE_CONTRACT() : XdrHostFunctionType
- CREATE_CONTRACT_V2() : XdrHostFunctionType
- decode() : XdrHostFunctionType
- encode() : string
- enumName() : string
- fromBase64Xdr() : static
- fromTxRep() : static
- fromTxRepName() : static
- getValue() : int
- INVOKE_CONTRACT() : XdrHostFunctionType
- toBase64Xdr() : string
- toTxRep() : void
- UPLOAD_CONTRACT_WASM() : XdrHostFunctionType
Constants
HOST_FUNCTION_TYPE_CREATE_CONTRACT
public
mixed
HOST_FUNCTION_TYPE_CREATE_CONTRACT
= 1
HOST_FUNCTION_TYPE_CREATE_CONTRACT_V2
public
mixed
HOST_FUNCTION_TYPE_CREATE_CONTRACT_V2
= 3
HOST_FUNCTION_TYPE_INVOKE_CONTRACT
public
mixed
HOST_FUNCTION_TYPE_INVOKE_CONTRACT
= 0
HOST_FUNCTION_TYPE_UPLOAD_CONTRACT_WASM
public
mixed
HOST_FUNCTION_TYPE_UPLOAD_CONTRACT_WASM
= 2
Properties
$value
public
int
$value
Methods
__construct()
public
__construct(int $value) : mixed
Parameters
- $value : int
CREATE_CONTRACT()
public
static CREATE_CONTRACT() : XdrHostFunctionType
Return values
XdrHostFunctionTypeCREATE_CONTRACT_V2()
public
static CREATE_CONTRACT_V2() : XdrHostFunctionType
Return values
XdrHostFunctionTypedecode()
public
static decode(XdrBuffer $xdr) : XdrHostFunctionType
Parameters
- $xdr : XdrBuffer
Return values
XdrHostFunctionTypeencode()
public
encode() : string
Return values
stringenumName()
public
enumName() : string
Return values
stringfromBase64Xdr()
public
static fromBase64Xdr(string $xdr) : static
Parameters
- $xdr : string
Return values
staticfromTxRep()
public
static fromTxRep(array<string|int, mixed> $map, string $prefix) : static
Parameters
- $map : array<string|int, mixed>
- $prefix : string
Return values
staticfromTxRepName()
public
static fromTxRepName(string $name) : static
Parameters
- $name : string
Return values
staticgetValue()
public
getValue() : int
Return values
intINVOKE_CONTRACT()
public
static INVOKE_CONTRACT() : XdrHostFunctionType
Return values
XdrHostFunctionTypetoBase64Xdr()
public
toBase64Xdr() : string
Return values
stringtoTxRep()
public
toTxRep(string $prefix, array<string|int, mixed> &$lines) : void
Parameters
- $prefix : string
- $lines : array<string|int, mixed>
UPLOAD_CONTRACT_WASM()
public
static UPLOAD_CONTRACT_WASM() : XdrHostFunctionType