Stellar PHP SDK API Documentation

SorobanContractInfo
in package

Stores information parsed from a soroban contract byte code such as Environment Meta, Contract Spec Entries and Contract Meta Entries.

See also: https://developers.stellar.org/docs/tools/sdks/build-your-own

Table of Contents

Properties

$envInterfaceVersion  : int
$events  : array<string|int, XdrSCSpecEventV0>
$funcs  : array<string|int, XdrSCSpecFunctionV0>
$metaEntries  : array<string, string>
$specEntries  : array<string|int, XdrSCSpecEntry>
$supportedSeps  : array<string|int, string>
$udtEnums  : array<string|int, XdrSCSpecUDTEnumV0>
$udtErrorEnums  : array<string|int, XdrSCSpecUDTErrorEnumV0>
$udtStructs  : array<string|int, XdrSCSpecUDTStructV0>
$udtUnions  : array<string|int, XdrSCSpecUDTUnionV0>

Methods

__construct()  : mixed

Properties

$envInterfaceVersion

public int $envInterfaceVersion

Environment interface number from Environment Meta.

$events

public array<string|int, XdrSCSpecEventV0> $events

Event specifications extracted from spec entries. Contains all event specifications exported by the contract.

$metaEntries

public array<string, string> $metaEntries

Contract Meta Entries. Key => Value pairs. Contracts may store any metadata in the entries that can be used by applications and tooling off-network.

$specEntries

public array<string|int, XdrSCSpecEntry> $specEntries

Contract Spec Entries. There is a SCSpecEntry for every function, struct, and union exported by the contract.

$supportedSeps

public array<string|int, string> $supportedSeps

List of SEP numbers that this contract claims to support. Extracted from meta entries with key "sep" as defined in SEP-47. SEP-47: https://github.com/stellar/stellar-protocol/blob/master/ecosystem/sep-0047.md

$udtEnums

public array<string|int, XdrSCSpecUDTEnumV0> $udtEnums

User-defined type enums extracted from spec entries. Contains all UDT enum specifications exported by the contract.

$udtErrorEnums

public array<string|int, XdrSCSpecUDTErrorEnumV0> $udtErrorEnums

User-defined type error enums extracted from spec entries. Contains all UDT error enum specifications exported by the contract.

$udtStructs

public array<string|int, XdrSCSpecUDTStructV0> $udtStructs

User-defined type structs extracted from spec entries. Contains all UDT struct specifications exported by the contract.

$udtUnions

public array<string|int, XdrSCSpecUDTUnionV0> $udtUnions

User-defined type unions extracted from spec entries. Contains all UDT union specifications exported by the contract.

Methods

__construct()

public __construct(int $envInterfaceVersion, array<string|int, XdrSCSpecEntry$specEntries, array<string, string> $metaEntries) : mixed
Parameters
$envInterfaceVersion : int

Environment interface number from Environment Meta.

$specEntries : array<string|int, XdrSCSpecEntry>

Contract Spec Entries.

$metaEntries : array<string, string>

Contract Meta Entries. Key => Value pairs.


        
On this page

Search results