This commit is contained in:
2024-10-30 23:26:19 +09:00
parent c0ca2d3c91
commit 4254fe7643
5 changed files with 733 additions and 202 deletions
+14 -4
View File
@@ -1,4 +1,4 @@
% Node, Chain and Net represent the physical network.
%% Node, Chain and Net represent the physical network.
-record(node,
{ip = {161,97,102,143} :: string() | inet:ip_address(),
@@ -21,7 +21,7 @@
% AC and Coin represent the financial authority graph for a given coin.
%% AC and Coin represent the financial authority graph for a given coin.
-record(ac,
{id = none :: string(),
@@ -35,7 +35,7 @@
% Balance, POA, Key, TXs, all culminate in capturing a complete Wallet view.
%% Balance, POA, Key, TXs, all culminate in capturing a complete Wallet view.
-record(balance,
{coin = "gaju" :: string(),
total = 0 :: non_neg_integer(),
@@ -76,9 +76,19 @@
-record(wallet,
{version = 1 :: integer(),
name = "" :: string(),
poas = [] :: [#poa{}],
keys = [] :: [#key{}],
pass = none :: none | binary(),
chain_id = <<"groot.devnet">> :: binary(),
endpoint = #node{} :: #node{},
nets = [#net{}] :: [#net{}]}).
%% Niche registered elements
% WR: Wallet Registration
-record(wr,
{name = "" :: string(),
path = "" :: file:filename(),
pass = false :: boolean()}).