Stellar PHP SDK API Documentation

XdrHostFunction extends XdrHostFunctionBase
in package

Table of Contents

Properties

$createContract  : XdrCreateContractArgs|null
$createContractV2  : XdrCreateContractArgsV2|null
$invokeContract  : XdrInvokeContractArgs|null
$type  : XdrHostFunctionType
$wasm  : XdrDataValueMandatory|null

Methods

__construct()  : mixed
decode()  : static
encode()  : string
forCreatingContract()  : XdrHostFunction
forCreatingContractV2()  : XdrHostFunction
forCreatingContractV2WithArgs()  : XdrHostFunction
forCreatingContractWithArgs()  : XdrHostFunction
forDeploySACWithAsset()  : XdrHostFunction
forInvokingContractWithArgs()  : XdrHostFunction
forUploadContractWasm()  : XdrHostFunction
fromBase64Xdr()  : static
fromTxRep()  : static
Override fromTxRep so the wasm field is parsed from a hex string into an XdrDataValueMandatory wrapper (the base assigns a raw string to the typed field).
getCreateContract()  : XdrCreateContractArgs|null
getCreateContractV2()  : XdrCreateContractArgsV2|null
getInvokeContract()  : XdrInvokeContractArgs|null
getType()  : XdrHostFunctionType
getWasm()  : XdrDataValueMandatory|null
setCreateContract()  : void
setCreateContractV2()  : void
setInvokeContract()  : void
setType()  : void
setWasm()  : void
toBase64Xdr()  : string
toTxRep()  : void
Override toTxRep so the wasm field is serialized as a hex string from the XdrDataValueMandatory wrapper (the base passes the object directly to bytesToHex).

Properties

Methods

fromBase64Xdr()

public static fromBase64Xdr(string $xdr) : static
Parameters
$xdr : string
Return values
static

fromTxRep()

Override fromTxRep so the wasm field is parsed from a hex string into an XdrDataValueMandatory wrapper (the base assigns a raw string to the typed field).

public static fromTxRep(array<string, string> $map, string $prefix) : static
Parameters
$map : array<string, string>
$prefix : string
Return values
static

toTxRep()

Override toTxRep so the wasm field is serialized as a hex string from the XdrDataValueMandatory wrapper (the base passes the object directly to bytesToHex).

public toTxRep(string $prefix, array<string, string> &$lines) : void
Parameters
$prefix : string
$lines : array<string, string>

        
On this page

Search results