1.1.3 • Published 4 months ago

@aptos-labs/aptos-protos v1.1.3

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
4 months ago

Aptos Protos

This repository contains the protobuf definitions for the Aptos tech stack.

Usage

Import the generated code like this:

import { aptos } from "@aptos-labs/aptos-protos";

Then use it like this:

function parse(transaction: aptos.transaction.v1.Transaction) {
  console.log(transaction)
}

These configuration options are required for typechecking to work:

// tsconfig.json
{
  "compilerOptions": {
    "moduleResolution": "node",
  }
}

This package should work for both CommonJS ("type": "commonjs") and ES ("type": "module") modules.

Contributing

See CONTRIBUTING.md for more information.