feat(block2): Ğ1 — publish a Ğ1 address + 'Pay in Ğ1' in chat (levels 1-2)

The optional Ğ1 (free currency) integration, per g1-integration.md.
- Profile: an optional 'Ğ1 address' field, persisted locally and published in
  your NIP-01 kind:0 metadata (separate from the Nostr key).
- commons_core: UserProfile/ProfileTransport carry a 'g1' field (round-trip
  tested).
- Chat: when the peer published a Ğ1 address, a 'Pay in Ğ1' app-bar action opens
  their wallet (url_launcher) so value moves in the wallet, not the app — copies
  the address as a fallback. No payment rails in-app (sharing-model §4.3).

NOTE (vjrj): the wallet deep-link uses the Cesium web wallet as a universal
fallback; swap the URI in chat_screen._payG1 for the Ğ1nkgo/Ğecko scheme you
prefer. Analyzer clean (both packages); profile transport test covers g1.
This commit is contained in:
vjrj 2026-07-10 13:06:38 +02:00
parent d0d2ecb132
commit d7136ec2c2
13 changed files with 138 additions and 14 deletions

View file

@ -644,6 +644,8 @@ class _Translations$profile$pt extends Translations$profile$en {
@override String get nameHint => 'Como os outros te veem';
@override String get about => 'Sobre ti';
@override String get aboutHint => 'Uma linha — o que cultivas, onde';
@override String get g1 => 'Endereço Ğ1 (opcional)';
@override String get g1Hint => 'Para que te paguem em Ğ1 — separado da tua chave';
@override String get yourId => 'A tua identidade';
@override String get idHelp => 'Partilha-a para que te reconheçam';
@override String get copy => 'Copiar';
@ -675,6 +677,8 @@ class _Translations$chat$pt extends Translations$chat$en {
@override String get send => 'Enviar';
@override String get empty => 'Ainda não há mensagens — diz olá';
@override String get offline => 'Configura a partilha para enviar mensagens';
@override String get payG1 => 'Pagar em Ğ1';
@override String get g1Copied => 'Endereço Ğ1 copiado — cola-o na tua carteira';
}
// Path: trust
@ -1355,6 +1359,8 @@ extension on TranslationsPt {
'profile.nameHint' => 'Como os outros te veem',
'profile.about' => 'Sobre ti',
'profile.aboutHint' => 'Uma linha — o que cultivas, onde',
'profile.g1' => 'Endereço Ğ1 (opcional)',
'profile.g1Hint' => 'Para que te paguem em Ğ1 — separado da tua chave',
'profile.yourId' => 'A tua identidade',
'profile.idHelp' => 'Partilha-a para que te reconheçam',
'profile.copy' => 'Copiar',
@ -1368,6 +1374,8 @@ extension on TranslationsPt {
'chat.send' => 'Enviar',
'chat.empty' => 'Ainda não há mensagens — diz olá',
'chat.offline' => 'Configura a partilha para enviar mensagens',
'chat.payG1' => 'Pagar em Ğ1',
'chat.g1Copied' => 'Endereço Ğ1 copiado — cola-o na tua carteira',
'trust.none' => 'Ainda ninguém os avaliza',
'trust.count' => ({required Object n}) => 'Avalizada por ${n}',
'trust.vouch' => 'Conheço esta pessoa',