Skip to content

Commit a4f39cd

Browse files
committed
1.0.2
1 parent f1de318 commit a4f39cd

4 files changed

Lines changed: 58 additions & 49 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
## 1.0.1
1+
## 1.0.2
22

33
Flutter package ADA Handle 1.0.0 initial release
44
Flutter package ADA Handle 1.0.1 modified the description
5+
Flutter package ADA Handle 1.0.2 added example

README.md

Lines changed: 2 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -23,54 +23,10 @@ Run `flutter pub get`
2323

2424
Import package `import 'package:ada_handle/ada_handle.dart';`
2525

26-
```dart
27-
final String handle = 'walmart';
28-
String policyIdAssetId = AdaHandle.getPolicyAssetHexCombination(handle);
29-
print(policyIdAssetId);
30-
```
31-
32-
Output: `f0ff48bbb7bbe9d59a40f1ce90e9e9d0ff5002ec48f232b49ca0fb9a77616c6d617274`
33-
34-
Pass this value to get back asset information, for example with the [Blockfrost API](https://blockfrost.io)
35-
36-
The following request reads the data from Cardano Mainnet for ADA Handle "walmart"
37-
38-
Attention! HTTP header of your request MUST include the project_id in order to authenticate against Blockfrost servers
39-
40-
<https://cardano-mainnet.blockfrost.io/api/v0/assets/f0ff48bbb7bbe9d59a40f1ce90e9e9d0ff5002ec48f232b49ca0fb9a77616c6d617274>
41-
42-
The Response would look like this:
43-
44-
```json
45-
{
46-
"asset": "f0ff48bbb7bbe9d59a40f1ce90e9e9d0ff5002ec48f232b49ca0fb9a77616c6d617274",
47-
"policy_id": "f0ff48bbb7bbe9d59a40f1ce90e9e9d0ff5002ec48f232b49ca0fb9a",
48-
"asset_name": "77616c6d617274",
49-
"fingerprint": "asset1fg63wnn88nya4gjvythkafe0nl3y3uvkqygek2",
50-
"quantity": "1",
51-
"initial_mint_tx_hash": "f9c13bb4e57d6006ab615d7ded6161bf4c58594b00e68f6276ccdefe9cb14a9d",
52-
"mint_or_burn_count": 1,
53-
"onchain_metadata": {
54-
"core": {
55-
"og": 0,
56-
"prefix": "$",
57-
"version": 0,
58-
"termsofuse": "https://adahandle.com/tou",
59-
"handleEncoding": "utf-8"
60-
},
61-
"name": "$walmart",
62-
"image": "ipfs://Qme8ztELAjaNpPHYSV4pwPrssQ4yiYrsnsZafWNJFRVRty",
63-
"website": "https://adahandle.com",
64-
"description": "The Handle Standard",
65-
"augmentations": []
66-
},
67-
"onchain_metadata_standard": "CIP25v1",
68-
"metadata": null
69-
}
70-
```
71-
7226
## Additional information
7327

28+
Check example how to use [example](example/README.md)
29+
7430
Check also the test use cases [test file](test/ada_handle_test.dart)
7531

7632
## Contribution

example/README.md

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# ada_handle
2+
3+
Demonstrates how to use the [ada_handle package][1]
4+
5+
[1]: ../
6+
7+
8+
```dart
9+
final String handle = 'walmart';
10+
String policyIdAssetId = AdaHandle.getPolicyAssetHexCombination(handle);
11+
print(policyIdAssetId);
12+
```
13+
14+
Output: `f0ff48bbb7bbe9d59a40f1ce90e9e9d0ff5002ec48f232b49ca0fb9a77616c6d617274`
15+
16+
Pass this value to get back asset information, for example with the [Blockfrost API](https://blockfrost.io)
17+
18+
The following request reads the data from Cardano Mainnet for ADA Handle "walmart"
19+
20+
Attention! HTTP header of your request MUST include the project_id in order to authenticate against Blockfrost servers
21+
22+
<https://cardano-mainnet.blockfrost.io/api/v0/assets/f0ff48bbb7bbe9d59a40f1ce90e9e9d0ff5002ec48f232b49ca0fb9a77616c6d617274>
23+
24+
The Response would look like this:
25+
26+
```json
27+
{
28+
"asset": "f0ff48bbb7bbe9d59a40f1ce90e9e9d0ff5002ec48f232b49ca0fb9a77616c6d617274",
29+
"policy_id": "f0ff48bbb7bbe9d59a40f1ce90e9e9d0ff5002ec48f232b49ca0fb9a",
30+
"asset_name": "77616c6d617274",
31+
"fingerprint": "asset1fg63wnn88nya4gjvythkafe0nl3y3uvkqygek2",
32+
"quantity": "1",
33+
"initial_mint_tx_hash": "f9c13bb4e57d6006ab615d7ded6161bf4c58594b00e68f6276ccdefe9cb14a9d",
34+
"mint_or_burn_count": 1,
35+
"onchain_metadata": {
36+
"core": {
37+
"og": 0,
38+
"prefix": "$",
39+
"version": 0,
40+
"termsofuse": "https://adahandle.com/tou",
41+
"handleEncoding": "utf-8"
42+
},
43+
"name": "$walmart",
44+
"image": "ipfs://Qme8ztELAjaNpPHYSV4pwPrssQ4yiYrsnsZafWNJFRVRty",
45+
"website": "https://adahandle.com",
46+
"description": "The Handle Standard",
47+
"augmentations": []
48+
},
49+
"onchain_metadata_standard": "CIP25v1",
50+
"metadata": null
51+
}
52+
```

pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: ada_handle
2-
description: Flutter ADA Handle package
3-
version: 1.0.1
2+
description: Flutter ADA Handle package which is suporting conversion operations for $handle
3+
version: 1.0.2
44
homepage: https://github.com/esodot/flutter_ada_handle
55

66
environment:

0 commit comments

Comments
 (0)