SorobanContractInfo

data class SorobanContractInfo(val envInterfaceVersion: ULong, val specEntries: List<SCSpecEntryXdr>, val metaEntries: Map<String, String>)

Stores information parsed from a Soroban contract byte code, including Environment Meta, Contract Spec Entries, and Contract Meta Entries.

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

Constructors

Link copied to clipboard
constructor(envInterfaceVersion: ULong, specEntries: List<SCSpecEntryXdr>, metaEntries: Map<String, String>)

Properties

Link copied to clipboard

Environment interface protocol version from Environment Meta

Link copied to clipboard

Returns all event specifications from the contract spec entries.

Link copied to clipboard

Returns all function specifications from the contract spec entries.

Link copied to clipboard

Contract Meta Entries as key-value pairs. Contracts may store any metadata that can be used by applications and tooling off-network.

Link copied to clipboard

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

Link copied to clipboard

Returns the list of supported SEP (Stellar Ecosystem Proposal) numbers from the contract metadata.

Link copied to clipboard

Returns all UDT enum specifications from the contract spec entries.

Link copied to clipboard

Returns all UDT error enum specifications from the contract spec entries.

Link copied to clipboard

Returns all UDT struct specifications from the contract spec entries.

Link copied to clipboard

Returns all UDT union specifications from the contract spec entries.