RegisterContingency

From The Contingency Market

Jump to: navigation, search

Contents

RegisterContingency(ulSessionID,uSequenceID,sIntegrity,asConditionalEventIDs,asAntecedentContingencyIDs,asPreemptiveContingencyIDs,asCollateralContingencyIDs)

Ensures a contingency has been defined with the supplied specification, registering it if not.

PARAMETERS

ulong ulSessionID 
ID of authenticated session.
uint uSequenceID 
Sequence number.
string sIntegrity 
md5("ipaddr(sid,seq)->RegisterContingency(<concat of eventids>,<concat of antecedentids>,<concat of preemptids>,<concat of collateralids>)/secret")
string[] asConditionalEventIDs 
List of EventIDs that must eventually occur for this contingency to succeed.
string[] asAntecedentContingencyIDs 
Contingencies that must succeed before the last conditional event occurs.
string[] asPreemptiveContingencyIDs 
Contingencies where any success is equivalent to all conditional events occurring.
string[] asCollateralContingencyIDs 
Contingencies that must eventually succeed for this contingency to succeed.

RETURNS

SContingencyData {sID,asConditionalEventIDs,asAntecedentContingencyIDs,asPreemptiveContingencyIDs,asCollateralContingencyIDs,sCreationTime,bOutcome,sTimeOfOutcome,sTimeOfTermination}

string sID 
32 digit hex representing this contingency's globally unique id.
string[] asConditionalEventIDs 
An array of 32 digit hex ids for each conditional event.
string[] asAntecedentContingencyIDs 
An array of 32 digit hex ids for each antecedent.
string[] asPreemptiveContingencyIDs 
An array of 32 digit hex ids for each preemptive.
string[] asCollateralContingencyIDs 
An array of 32 digit hex ids for each collateral.
string sCreationTime 
The time at which this contingency was created.
bool bOutcome 
True if this contingency has succeeded. False if failed, not yet determined.
string sTimeOfOutcome 
The time at which the contingency succeeded or failed. Empty if not determined.
string sTimeOfTermination 
The time at which the contingency became determined. Empty if not determined.

FAULTS

Session. Event. Contingency.

Views
Personal tools