This package has been deprecated

Author message:

Replaced by @windingtree/off-chain-adapter-swarm

@windingtree/off-chain-accessor-swarm

1.0.0 • Public • Published

Winding Tree Off Chain Data Accessor - Ethereum Swarm.

Swarm-based storage that can be used in Winding Tree wt-js-libs.

Installation

npm install @windingtree/off-chain-accessor-swarm
# or
git clone https://github.com/windingtree/off-chain-accessor-swarm
nvm install
npm install

Usage

import WTLibs from '@windingtree/wt-js-libs';
import SwarmAccessor from '@windingtree/off-chain-accessor-swarm';

const libs = WTLibs.createInstance({
  dataModelOptions: {
    provider: 'http://localhost:8545',
  },
  offChainDataOptions: {
    accessors: {
      'bzz-raw': {
        options: {
          swarmProviderUrl: 'http://localhost:8500',
        }
        create: (options) => {
          return new SwarmAccessor(options);
        },
      },
    },
  },
});

Readme

Keywords

Package Sidebar

Install

npm i @windingtree/off-chain-accessor-swarm

Weekly Downloads

1

Version

1.0.0

License

Apache-2.0

Unpacked Size

1.58 MB

Total Files

19

Last publish

Collaborators

  • kostysh
  • kvakes
  • tomashq