public static ContractInterface Unserialize(BinaryReader reader) { var result = new ContractInterface(); result.UnserializeData(reader); return(result); }
/// <summary> /// Checks if this ABI implements of other ABI (eg: other is a subset of this) /// </summary> public bool Implements(ContractInterface other) { foreach (var method in other.Methods) { if (!this.Implements(method)) { return(false); } } return(true); }
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)); }