Skip to content
This repository has been archived by the owner on Dec 12, 2024. It is now read-only.

MoneyAddress.parse #2

Merged
merged 2 commits into from
Jun 24, 2024
Merged

MoneyAddress.parse #2

merged 2 commits into from
Jun 24, 2024

Conversation

mistermoe
Copy link
Member

Usage

import 'package:dap/src/money_address.dart';

void main() {
  final maddr = MoneyAddress.parse('urn:usdc:eth:0x2345y7432');
  print(maddr.currency); // usdc
  print(maddr.css); // eth:0x2345y7432
  print(maddr.urn); // urn:usdc:eth:0x2345y7432
}

@mistermoe mistermoe merged commit dbdfd35 into main Jun 24, 2024
1 check passed
@mistermoe mistermoe deleted the parse branch June 24, 2024 23:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants