Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
08a9f24
feat: wire mint-authority@1.0 and upgrade to latest hb
charmful0x Jul 10, 2026
c3e587e
chore: update mint-authority@1.0 device id
charmful0x Jul 10, 2026
b8b9deb
feat: transfer-enabled opts
charmful0x Jul 10, 2026
5fb3860
feat: adapt to hb token lib
charmful0x Jul 11, 2026
53dcca9
fix: ignore non-balance trie keys during balance canonicalization
charmful0x Jul 11, 2026
8256435
chore: update published token IDs
charmful0x Jul 12, 2026
ffbabdc
impr(security): path=compute enforcement route + authority-actions
charmful0x Jul 13, 2026
2d82530
impr(security): mint-enabled Set-council toggle
charmful0x Jul 13, 2026
b5417e6
impr(security): Set-council authoritative max-supply check test vectors
charmful0x Jul 14, 2026
1e609dc
impr(security): malformed Action catching + adding Un/Subscribe to au…
charmful0x Jul 14, 2026
54654a1
chore(security): add delegated authority signers expansion test
charmful0x Jul 14, 2026
bc71205
chore(security): mint-nonce addition tests
charmful0x Jul 14, 2026
c28aec7
fix(security): use RawQuantities for outbox mint notices test
charmful0x Jul 14, 2026
d499dd8
impr(security): fail closed ini/3 -> canonicalize_balances/2
charmful0x Jul 14, 2026
b2ec7ce
impr(security): allowed-subscriptions whitelist
charmful0x Jul 15, 2026
7ab27ca
impr(security): no trie writes for 0-quantity transfers
charmful0x Jul 15, 2026
4430386
chre(security): update config.json devices impls
charmful0x Jul 16, 2026
001c5eb
chore: bump hb dep
charmful0x Jul 17, 2026
d83b1f7
refactor: arweave-scheduler@1.0 adapting
charmful0x Aug 6, 2026
e3f95cc
chore: new device publish instance
charmful0x Aug 6, 2026
7c018cb
fix token arweave-scheduler all-mode routing
charmful0x Aug 7, 2026
6629d51
chore: Account -> ID terminology update
charmful0x Aug 11, 2026
07e2892
chore: publish new device instance
charmful0x Aug 12, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ _build/
_checkouts/
ebin/
cache-*/
scripts/
scripts/*
debug/
logs
.eunit/
Expand Down
30 changes: 19 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

```sh
rebar3 compile
rebar3 device verify
rebar3 device package
rebar3 device verify --device-src=src,_build/default/lib/hb/src/preloaded/token
rebar3 device package --device-src=src,_build/default/lib/hb/src/preloaded/token
```

## test
Expand All @@ -14,36 +14,44 @@ rebar3 device package
HB_PORT=0 rebar3 device test
rebar3 eunit-all
```

## genesis

Initialization requires valid addresses with non-negative integer balances and a
non-negative `total-supply` equal to their sum. Invalid genesis state fails closed.

## published package

```bash
device publish: token@1.0
Published device: token@1.0;

spec=ibZf_Tqk4omTejmBIgCI6HCvp5HWYlgKhjkDMZPh4UY
Specification ID: pXHakE4TUBUBg4JFnsCmcvXSis7WMXsUtAP5AzOqmjc;

impl=y8vkutjPnDdfOLP2ISSnj1eOBw9x0jTddgY4dhVpWrQ
Implementation ID: PcMKkrsgVld-4JR63GnRaumlqm1icACGDPUGm86wB1I;

signer=vZY2XY1RD9HIfWi8ift-1_DnHLDadZMWrufSh-_rKF0
Signer: vZY2XY1RD9HIfWi8ift-1_DnHLDadZMWrufSh-_rKF0;
```
## local node

```sh
HB_CONFIG=config.json rebar3 device local
```

`config.json` pins the published `process-outbox@1.0` and `security@1.0` implementations through
HyperBEAM's `trusted-devices` runtime map.
`config.json` pins the published `mint-authority@1.0`, `process-outbox@1.0`,
and `security@1.0` implementations through HyperBEAM's `trusted-devices` runtime map.

src:

* https://github.com/permaweb/process-outbox-1.0
* https://github.com/permaweb/security-1.0
* https://github.com/permaweb/mint-authority

```json
{
"trusted-devices": {
"mint-authority@1.0": "uzHd158Q7i40TDjwsbGAB88E_idazRRIBctTq_rLzGo",
"process-outbox@1.0": "HOcPV7wxMHYb3rSQ3EfykQhHx_b8waRWhXolhcBNgHo",
"security@1.0": "ARgymad5oYZcWPpxuV-A9hoSgmm4ElgPIvxMwmeh674"
"security@1.0": "RrkCKxGm72vA9tuDAxKSgDzfvdDhwk1dM0g2ZWmtRKI"
}
}
```
Expand Down Expand Up @@ -74,8 +82,8 @@ calls the token device against the raw published item and bypasses
## publish

```sh
rebar3 device publish --key wallet.json
rebar3 device publish --device-src=src,_build/default/lib/hb/src/preloaded/token --key wallet.json
```

## License
this package is licensed under the [MIT License](./LICENSE)
this package is licensed under the [MIT License](./LICENSE)
3 changes: 2 additions & 1 deletion config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"trusted-devices": {
"mint-authority@1.0": "uzHd158Q7i40TDjwsbGAB88E_idazRRIBctTq_rLzGo",
"process-outbox@1.0": "HOcPV7wxMHYb3rSQ3EfykQhHx_b8waRWhXolhcBNgHo",
"security@1.0": "ARgymad5oYZcWPpxuV-A9hoSgmm4ElgPIvxMwmeh674"
"security@1.0": "RrkCKxGm72vA9tuDAxKSgDzfvdDhwk1dM0g2ZWmtRKI"
}
}
11 changes: 9 additions & 2 deletions rebar.config
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
{erl_opts, [debug_info]}.

{deps, [
{elmdb, {git, "https://github.com/permaweb/elmdb-rs.git",
{ref, "faa762323be6bad2db26abfa1d4243863a877f0f"}}},
{hb, {git, "https://github.com/permaweb/HyperBEAM.git",
{ref, "a0bb76ccda9fdbbc5e82008e6794e588c28d2c18"}}}
{ref, "10c0b765cc235d52086a6bd30d2cd9d698d9deca"}}}
]}.

{overrides, [
Expand All @@ -13,7 +15,7 @@
{plugins, [
{plugin,
{git_subdir, "https://github.com/permaweb/HyperBEAM.git",
{ref, "a0bb76ccda9fdbbc5e82008e6794e588c28d2c18"},
{ref, "10c0b765cc235d52086a6bd30d2cd9d698d9deca"},
"src/forge"}},
{rebar3_eunit_start,
{git, "https://github.com/permaweb/rebar3_eunit_start.git",
Expand All @@ -31,6 +33,11 @@
[
{device, "test --with-core"}
]
},
{'mint-authority-test',
[
{device, "test --device-src=src,_build/default/lib/hb/src/preloaded/token,../mint-authority/src,../outbox-1.0/src,../security/src --timeout 30"}
]
}
]}.

Expand Down
Loading