Exemple #1
0
 public ApplicationEngine(IScriptContainer container, IScriptTable table, InteropService service, Fixed8 gas, bool testMode = false)
     : base(container, Cryptography.Crypto.Default, table, service)
 {
     this.gas_amount = gas_free + gas.GetData();
     this.testMode   = testMode;
 }
Exemple #2
0
 public ApplicationEngine(TriggerType trigger, IScriptContainer container, IScriptTable table, InteropService service, Fixed8 gas, bool testMode = false)
     : base(container, Cryptography.Crypto.Default, table, service)
 {
     this.gas_amount = gas_free + gas.GetData();
     this.testMode   = testMode;
     this.Trigger    = trigger;
     if (table is CachedScriptTable)
     {
         this.script_table = (CachedScriptTable)table;
     }
 }
Exemple #3
0
 protected override bool OnSysCall(uint method)
 {
     return(InteropService.Invoke(this, method));
 }