コード例 #1
0
 public static TriggerResult InvokeTrigger(this IRuntime runtime, bool allowThrow, byte[] script, NativeContractKind contextName, ContractInterface abi, string triggerName, params object[] args)
 {
     return(runtime.InvokeTrigger(allowThrow, script, contextName.ToString().ToLower(), abi, triggerName, args));
 }
コード例 #2
0
 public static string GetContractName(this NativeContractKind nativeContract)
 {
     return(nativeContract.ToString().ToLower());
 }
コード例 #3
0
 public static ScriptBuilder CallContract(this ScriptBuilder sb, NativeContractKind contractKind, string method, params object[] args)
 {
     return(sb.CallContract(contractKind.ToString().ToLower(), method, args));
 }