|
| 1 | +<?xml version="1.0" encoding="utf-8" ?> |
| 2 | +<c2eventsheet> |
| 3 | + <!--All the 'name' attributes are ignored by Construct 2 - they are there for readability only.--> |
| 4 | + <name>Event sheet 1</name> |
| 5 | + <events> |
| 6 | + <variable constant="0" name="transactionHash" sid="446150716583795" static="0" type="text"></variable> |
| 7 | + <event-block sid="509925707560013"> |
| 8 | + <conditions> |
| 9 | + <condition id="-6" name="Every X seconds" sid="408120403164999" type="System"> |
| 10 | + <param id="0" name="Interval (seconds)">1.0</param> |
| 11 | + </condition> |
| 12 | + </conditions> |
| 13 | + <actions /> |
| 14 | + <sub-events> |
| 15 | + <event-block sid="610890934215784"> |
| 16 | + <conditions> |
| 17 | + <condition id="-8" name="Compare two values" sid="830882158635870" type="System"> |
| 18 | + <param id="0" name="First value">Ethereum.IsConnected</param> |
| 19 | + <param id="1" name="Comparison">0</param> |
| 20 | + <param id="2" name="Second value">1</param> |
| 21 | + </condition> |
| 22 | + </conditions> |
| 23 | + <actions> |
| 24 | + <action id="0" name="Set text" sid="860838014464502" type="YourAccount"> |
| 25 | + <param id="0" name="Text">"Your account is:" & Ethereum.Coinbase</param> |
| 26 | + </action> |
| 27 | + </actions> |
| 28 | + </event-block> |
| 29 | + <event-block sid="162548887694750"> |
| 30 | + <conditions> |
| 31 | + <condition id="-22" name="Else" sid="429022296326978" type="System" /> |
| 32 | + </conditions> |
| 33 | + <actions> |
| 34 | + <action id="0" name="Set text" sid="229679899195688" type="YourAccount"> |
| 35 | + <param id="0" name="Text">"Your account is not connected"</param> |
| 36 | + </action> |
| 37 | + </actions> |
| 38 | + </event-block> |
| 39 | + </sub-events> |
| 40 | + </event-block> |
| 41 | + <event-block sid="883993896273589"> |
| 42 | + <conditions> |
| 43 | + <condition id="-6" name="Every X seconds" sid="752603787129060" type="System"> |
| 44 | + <param id="0" name="Interval (seconds)">1.0</param> |
| 45 | + </condition> |
| 46 | + </conditions> |
| 47 | + <actions> |
| 48 | + <action id="0" name="Call" sid="698266303060983" type="ExampleContractA"> |
| 49 | + <param id="0" name="Name with parameters types">"GetMyNumber"</param> |
| 50 | + <param id="1" name="Parameter {n}"></param> |
| 51 | + <param id="2" name="Callback id">"GetMyNumberCallback"</param> |
| 52 | + </action> |
| 53 | + </actions> |
| 54 | + </event-block> |
| 55 | + <event-block sid="394608527963489"> |
| 56 | + <conditions> |
| 57 | + <condition id="1" name="On function success" sid="415368646700117" type="ExampleContractA"> |
| 58 | + <param id="0" name="ID">"GetMyNumberCallback"</param> |
| 59 | + </condition> |
| 60 | + </conditions> |
| 61 | + <actions> |
| 62 | + <action id="0" name="Set text" sid="987353176861642" type="YourNumber"> |
| 63 | + <param id="0" name="Text">"Your number is: " & ExampleContractA.CurrentCallbackResponse & ExampleContractA.CurrentCallbackError</param> |
| 64 | + </action> |
| 65 | + </actions> |
| 66 | + </event-block> |
| 67 | + <event-block sid="822772268946450"> |
| 68 | + <conditions> |
| 69 | + <condition id="2" name="On function error" sid="749404467993205" type="ExampleContractA"> |
| 70 | + <param id="0" name="ID">"GetMyNumberCallback"</param> |
| 71 | + </condition> |
| 72 | + </conditions> |
| 73 | + <actions> |
| 74 | + <action id="0" name="Set text" sid="470197336335563" type="YourNumber"> |
| 75 | + <param id="0" name="Text">"Your number is: " & ExampleContractA.CurrentCallbackError</param> |
| 76 | + </action> |
| 77 | + </actions> |
| 78 | + </event-block> |
| 79 | + <event-block sid="837393656109423"> |
| 80 | + <conditions> |
| 81 | + <condition id="0" name="On clicked" sid="237622298308912" type="SetYourNumberButton" /> |
| 82 | + </conditions> |
| 83 | + <actions> |
| 84 | + <action id="1" name="Send" sid="316798332115717" type="ExampleContractA"> |
| 85 | + <param id="0" name="Name with parameters types">"SetMyNumber"</param> |
| 86 | + <param id="1" name="Parameter {n}">int(SetYourNumberTextBox.Text)</param> |
| 87 | + <param id="2" name="Callback id">"SetMyNumberCallback"</param> |
| 88 | + <param id="3" name="Value">0</param> |
| 89 | + </action> |
| 90 | + </actions> |
| 91 | + </event-block> |
| 92 | + <event-block sid="924736551615739"> |
| 93 | + <conditions> |
| 94 | + <condition id="1" name="On function success" sid="779222074301653" type="ExampleContractA"> |
| 95 | + <param id="0" name="ID">"SetMyNumberCallback"</param> |
| 96 | + </condition> |
| 97 | + </conditions> |
| 98 | + <actions> |
| 99 | + <action id="-15" name="Set visible" sid="508294509475453" type="WaitingForMining"> |
| 100 | + <param id="0" name="Visibility">1</param> |
| 101 | + </action> |
| 102 | + <action id="-9" name="Set value" sid="139087043711281" type="System"> |
| 103 | + <param id="0" name="Variable">transactionHash</param> |
| 104 | + <param id="1" name="Value">ExampleContractA.CurrentCallbackResponse</param> |
| 105 | + </action> |
| 106 | + <action id="3" name="Get Transaction Receipt" sid="625910675294426" type="Ethereum"> |
| 107 | + <param id="0" name="Hash">transactionHash</param> |
| 108 | + <param id="1" name="Callback id">"GetTransactionReceiptCallback"</param> |
| 109 | + </action> |
| 110 | + </actions> |
| 111 | + </event-block> |
| 112 | + <event-block sid="459032431513902"> |
| 113 | + <conditions> |
| 114 | + <condition id="1" name="On function success" sid="314008797012102" type="Ethereum"> |
| 115 | + <param id="0" name="ID">"GetTransactionReceiptCallback"</param> |
| 116 | + </condition> |
| 117 | + </conditions> |
| 118 | + <actions /> |
| 119 | + <sub-events> |
| 120 | + <event-block sid="753377141086537"> |
| 121 | + <conditions> |
| 122 | + <condition id="-8" name="Compare two values" sid="239270672095644" type="System"> |
| 123 | + <param id="0" name="First value">Ethereum.CurrentCallbackResponse</param> |
| 124 | + <param id="1" name="Comparison">0</param> |
| 125 | + <param id="2" name="Second value">""</param> |
| 126 | + </condition> |
| 127 | + </conditions> |
| 128 | + <actions> |
| 129 | + <action id="3" name="Get Transaction Receipt" sid="163259916419931" type="Ethereum"> |
| 130 | + <param id="0" name="Hash">transactionHash</param> |
| 131 | + <param id="1" name="Callback id">"GetTransactionReceiptCallback"</param> |
| 132 | + </action> |
| 133 | + </actions> |
| 134 | + </event-block> |
| 135 | + <event-block sid="285407469449302"> |
| 136 | + <conditions> |
| 137 | + <condition id="-22" name="Else" sid="281868586032457" type="System" /> |
| 138 | + </conditions> |
| 139 | + <actions> |
| 140 | + <action id="-15" name="Set visible" sid="834618035961752" type="WaitingForMining"> |
| 141 | + <param id="0" name="Visibility">0</param> |
| 142 | + </action> |
| 143 | + </actions> |
| 144 | + </event-block> |
| 145 | + </sub-events> |
| 146 | + </event-block> |
| 147 | + </events> |
| 148 | +</c2eventsheet> |
0 commit comments