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)); }
public static string GetContractName(this NativeContractKind nativeContract) { return(nativeContract.ToString().ToLower()); }
public static ScriptBuilder CallContract(this ScriptBuilder sb, NativeContractKind contractKind, string method, params object[] args) { return(sb.CallContract(contractKind.ToString().ToLower(), method, args)); }