candid_dart 0.1.0 copy "candid_dart: ^0.1.0" to clipboard
candid_dart: ^0.1.0 copied to clipboard

Generates smart contracts definition in Dart files.

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add candid_dart

With Flutter:

 $ flutter pub add candid_dart

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  candid_dart: ^0.1.0

Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:candid_dart/antlr/CandidBaseListener.dart';
import 'package:candid_dart/antlr/CandidLexer.dart';
import 'package:candid_dart/antlr/CandidListener.dart';
import 'package:candid_dart/antlr/CandidParser.dart';
import 'package:candid_dart/builder.dart';
import 'package:candid_dart/codegen/codegen.dart';
import 'package:candid_dart/codegen/consts.dart';
import 'package:candid_dart/codegen/extension.dart';
import 'package:candid_dart/codegen/parser/class_def_parser.dart';
import 'package:candid_dart/codegen/parser/idl_parser.dart';
import 'package:candid_dart/codegen/parser/type_def_parser.dart';
import 'package:candid_dart/codegen/serialize.dart';
import 'package:candid_dart/codegen/templates.dart';
import 'package:candid_dart/codegen/type_node.dart';