IPersistenceStrategy.cs 281 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11
using NBitcoin;

namespace Stratis.SmartContracts.CLR
{
    public interface IPersistenceStrategy
    {
        bool ContractExists(uint160 address);
        byte[] FetchBytes(uint160 address, byte[] key);
        void StoreBytes(uint160 address, byte[] key, byte[] value);
    }
}