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

Generated typed Dart bindings for Flare Network's periphery contracts. Emitted from the published ABI artifacts by flare_network_codegen; do not edit by hand.

Changelog #

0.1.0 #

First release.

164 contract bindings generated from Flare's published ABI artifacts (@flarenetwork/flare-periphery-contract-artifacts): 1,049 read methods, 513 transaction builders, 592 decodable events and 168 decodable custom errors.

Added #

  • A binding class per contract, each with a resolve constructor that goes through the contract registry rather than a hardcoded address, because Flare redeploys contracts.
  • decodeRevert on every binding. 168 of the custom errors in Flare's published ABIs carry no message, so a node reports them as four opaque bytes and nothing else.
  • allEvents on every binding, and an AbiEvent per declared event, so a log can be decoded without hand-writing a topic signature.
  • The source artifact version in each file's header, so a binding can be traced to what it was generated against.

Notes #

  • Transaction builders return an unsigned TransactionRequest. This package holds no keys and signing is a permanent non-goal, as it is in flare_network.
  • Files under lib/src/ are generated. Regenerate with dart run flare_network_codegen, and do not edit them by hand.
0
likes
150
points
27
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Generated typed Dart bindings for Flare Network's periphery contracts. Emitted from the published ABI artifacts by flare_network_codegen; do not edit by hand.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flare_network

More

Packages that depend on flare_network_periphery