ord_dart 0.1.0+2 copy "ord_dart: ^0.1.0+2" to clipboard
ord_dart: ^0.1.0+2 copied to clipboard

retracted

The Flutter plugin that supports Ordinals protocol (Runes protocol only).

example/lib/main.dart

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()}`',
          ),
        ),
      ),
    );
  }
}
0
likes
0
pub points
0%
popularity

Publisher

verified publisherastrox.io

The Flutter plugin that supports Ordinals protocol (Runes protocol only).

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, flutter_rust_bridge, freezed_annotation, meta

More

Packages that depend on ord_dart