ord_dart 0.0.8+3 ord_dart: ^0.0.8+3 copied to clipboard
The Flutter plugin that supports Ordinals protocol (Runes protocol only).
import 'dart:typed_data';
import 'package:flutter/material.dart';
import 'package:ord_dart/ord_dart.dart';
void main() async {
await OrdDart.init();
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
Uint8List getEncipher() {
final etching = Etching(
divisibility: 2,
premine: BigInt.from(11000000000),
rune: Rune.fromStr(s: "ZZZZZFEHUZZZZZ"),
spacers: 7967,
symbol: "ᚠ",
terms: Terms(
amount: BigInt.from(100),
cap: BigInt.from(1111111),
height: null,
offset: null,
),
turbo: true,
);
final runestone = Runestone(etching: etching);
return runestone.encipher();
}
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(title: const Text('ord_dart quickstart')),
body: Center(
child: Text(
'Action: Call Rust `RuneStone.encipher`\n'
'Result: `${getEncipher()}`',
),
),
),
);
}
}