ContractEventXdr

data class ContractEventXdr(val ext: ExtensionPointXdr, val contractId: ContractIDXdr?, val type: ContractEventTypeXdr, val body: ContractEventBodyXdr)

XDR Source: struct ContractEvent { // We can use this to add more fields, or because it // is first, to change ContractEvent into a union. ExtensionPoint ext;

ContractID* contractID;
ContractEventType type;

union switch (int v)
{
case 0:
    struct
    {
        SCVal topics<>;
        SCVal data;
    } v0;
}
body;

};

Constructors

Link copied to clipboard
constructor(ext: ExtensionPointXdr, contractId: ContractIDXdr?, type: ContractEventTypeXdr, body: ContractEventBodyXdr)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

We can use this to add more fields, or because it is first, to change ContractEvent into a union.

Link copied to clipboard

Functions

Link copied to clipboard
fun encode(writer: XdrWriter)
Link copied to clipboard

Encodes this XDR object to a base64 string.