This commit is contained in:
2024-10-09 17:42:56 +09:00
parent a286c00783
commit 1f10f7c6f9
3 changed files with 100 additions and 51 deletions
+18 -17
View File
@@ -10,14 +10,14 @@
-record(chain,
{id = "mint.devnet" :: string(),
coins = ["gaju"] :: [string()],
nodes = [#node{}] :: [#node{}]}).
{id = <<"mint.devnet">> :: binary(),
coins = ["gaju"] :: [string()],
nodes = [#node{}] :: [#node{}]}).
-record(net,
{id = "devnet" :: string(),
chains = [#chain{}] :: [#chain{}]}).
{id = <<"devnet">> :: binary(),
chains = [#chain{}] :: [#chain{}]}).
@@ -29,17 +29,17 @@
-record(coin,
{id = "gaju" :: string(),
mint = "mint.devnet" :: string(),
acs = [#ac{}] :: [#ac{}]}).
{id = "gaju" :: string(),
mint = <<"mint.devnet">> :: binary(),
acs = [#ac{}] :: [#ac{}]}).
% Balance, POA, Key, TXs, all culminate in capturing a complete Wallet view.
-record(balance,
{coin = "gaju" :: string(),
total = 0 :: non_neg_integer(),
dist = [{"mint.devnet", 0}] :: [{Chain :: string(), non_neg_integer()}]}).
{coin = "gaju" :: string(),
total = 0 :: non_neg_integer(),
dist = [{<<"mint.devnet">>, 0}] :: [{Chain :: binary(), non_neg_integer()}]}).
-record(poa,
@@ -75,9 +75,10 @@
-record(wallet,
{version = 1 :: integer(),
poas = [] :: [#poa{}],
keys = [] :: [#key{}],
pass = none :: none | binary(),
network_id = <<"mint.devnet">> :: binary(),
chains = [#chain{}] :: [#chain{}]}).
{version = 1 :: integer(),
poas = [] :: [#poa{}],
keys = [] :: [#key{}],
pass = none :: none | binary(),
chain_id = <<"mint.devnet">> :: binary(),
endpoint = #node{} :: #node{},
chains = [#chain{}] :: [#chain{}]}).