Пример #1
0
        public static ContractInterface Unserialize(BinaryReader reader)
        {
            var result = new ContractInterface();

            result.UnserializeData(reader);
            return(result);
        }
Пример #2
0
        /// <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);
        }
Пример #3
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));
 }