0.0.7 • Published 2 years ago

@permafacts-tools/facts-sdk v0.0.7

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

facts-sdk

This library was generated with Nx.

Install

npm i @ar-kit/facts-sdk@latest

Use

Import Warp / Arweave in your index.html.

<!-- index.html -->

<head>
  <script src="https://unpkg.com/arweave@1.13.0/bundles/web.bundle.min.js"></script>
  <script src="https://unpkg.com/warp-contracts@1.2.52/bundles/web.iife.bundle.min.js"></script>
</head>

Import @ar-kit/facts-sdk and use.

// some-file.ts

import { assert, attach, buy, sell } from '@ar-kit/facts-sdk';

// assert
const factMarket = await assert({
  data: {}, // Data will be stringified and used as the "contract data"
  description: '<description>',
  owner: '<wallet-address>',
  title: '<title>',
  rebutTx: '<tx>', // Optional
  topic: 'test', // Optional
});

const tx = factMarket.id;

// TODO: attach
// TODO: buy
// TODO: sell

Test

Run nx test node-facts-sdk to execute the unit tests via Jest.

Lint

Run nx lint node-facts-sdk to execute the lint via ESLint.

More

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago