From 754a3faf89dc2d0561a6503bf0653d111fc6b3db Mon Sep 17 00:00:00 2001 From: Peter Harpending Date: Thu, 6 Jul 2023 11:08:25 -0600 Subject: [PATCH] add vrlp project --- libs/vrlp/.gitignore | 15 +++++++++++++++ libs/vrlp/Emakefile | 1 + libs/vrlp/LICENSE | 14 ++++++++++++++ libs/vrlp/ebin/vrlp.app | 7 +++++++ libs/vrlp/src/vrlp.erl | 23 +++++++++++++++++++++++ libs/vrlp/zomp.meta | 17 +++++++++++++++++ 6 files changed, 77 insertions(+) create mode 100644 libs/vrlp/.gitignore create mode 100644 libs/vrlp/Emakefile create mode 100644 libs/vrlp/LICENSE create mode 100644 libs/vrlp/ebin/vrlp.app create mode 100644 libs/vrlp/src/vrlp.erl create mode 100644 libs/vrlp/zomp.meta diff --git a/libs/vrlp/.gitignore b/libs/vrlp/.gitignore new file mode 100644 index 0000000..20177b4 --- /dev/null +++ b/libs/vrlp/.gitignore @@ -0,0 +1,15 @@ +.eunit +deps +*.o +*.beam +*.plt +*.swp +erl_crash.dump +ebin/*.beam +doc/*.html +doc/*.css +doc/edoc-info +doc/erlang.png +rel/example_project +.concrete/DEV_MODE +.rebar diff --git a/libs/vrlp/Emakefile b/libs/vrlp/Emakefile new file mode 100644 index 0000000..68c7b67 --- /dev/null +++ b/libs/vrlp/Emakefile @@ -0,0 +1 @@ +{"src/*", [debug_info, {i, "include/"}, {outdir, "ebin/"}]}. diff --git a/libs/vrlp/LICENSE b/libs/vrlp/LICENSE new file mode 100644 index 0000000..2408f75 --- /dev/null +++ b/libs/vrlp/LICENSE @@ -0,0 +1,14 @@ +Copyright 2023 Peter Harpending + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED “AS IS” AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND +FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. + diff --git a/libs/vrlp/ebin/vrlp.app b/libs/vrlp/ebin/vrlp.app new file mode 100644 index 0000000..4ad520d --- /dev/null +++ b/libs/vrlp/ebin/vrlp.app @@ -0,0 +1,7 @@ +{application,vrlp, + [{description,"Vanillae's implementation of the Ethereum Recursive-Length-Prefix (RLP) codec"}, + {registered,[]}, + {included_applications,[]}, + {applications,[stdlib,kernel]}, + {vsn,"0.1.0"}, + {modules,[vrlp]}]}. diff --git a/libs/vrlp/src/vrlp.erl b/libs/vrlp/src/vrlp.erl new file mode 100644 index 0000000..f2559b2 --- /dev/null +++ b/libs/vrlp/src/vrlp.erl @@ -0,0 +1,23 @@ +%%% @doc +%%% Vanillae Recursive Length Prefix: vrlp +%%% +%%% This module is currently named `vrlp', but you may want to change that. +%%% Remember that changing the name in `-module()' below requires renaming +%%% this file, and it is recommended to run `zx update .app` in the main +%%% project directory to make sure the ebin/vrlp.app file stays in +%%% sync with the project whenever you add, remove or rename a module. +%%% @end + +-module(vrlp). +-vsn("0.1.0"). +-author("Peter Harpending "). +-copyright("Peter Harpending "). +-license("ISC"). + +-export([hello/0]). + + +-spec hello() -> ok. + +hello() -> + io:format("~p (~p) says \"Hello!\"~n", [self(), ?MODULE]). diff --git a/libs/vrlp/zomp.meta b/libs/vrlp/zomp.meta new file mode 100644 index 0000000..45f332b --- /dev/null +++ b/libs/vrlp/zomp.meta @@ -0,0 +1,17 @@ +{a_email,"peter.harpending@gmail.com"}. +{author,"Peter Harpending"}. +{c_email,"peter.harpending@gmail.com"}. +{copyright,"Peter Harpending"}. +{deps,[]}. +{desc,"Vanillae's implementation of the Ethereum Recursive-Length-Prefix (RLP) codec"}. +{file_exts,[]}. +{key_name,none}. +{license,"ISC"}. +{modules,[]}. +{name,"Vanillae Recursive Length Prefix"}. +{package_id,{"otpr","vrlp",{0,1,0}}}. +{prefix,none}. +{repo_url,"https://github.com/aeternity/Vanillae"}. +{tags,[]}. +{type,lib}. +{ws_url,"https://github.com/aeternity/Vanillae"}.