1.0.2 • Published 5 days ago

@withfabric/protocol-sdks v1.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
5 days ago

Fabric Protocol SDKs

SDK monorepo for Fabric EVM protocols.

npm (tag) CI Tests npm bundle size (version)

Peer Dependencies

  • viem
  • wagmi-core
Version Compatability
wagmi versionsdk version
1.x.x0.3.6
2.x.y1.0.0+

If you don't use wagmi or wagmi-core, you can leverage the protocols directly; see our docs.

Installation

npm i viem @wagmi/core @withfabric/protocol-sdks

Wagmi V2 Configuration

Wagmi v2 changed how configuration is managed. As a result the SDK needs to be configured with the wagmi configuration.

import { createConfig } from '@wagmi/core';
import { configureFabricSDK } from '@withfabric/protocol-sdks';

// Create wagmi configuration
const config = return createConfig({
  // ...
});

// Configure the SDK to use your wagmi configuration
configureFabricSDK({ wagmiConfig: config });

Protocols

CFPv1 - Crowd Financing Protocol

The Fabric CrowdFi protocol moves capital between creators and communities.

STP - Subscription Token Protocol

The Fabric Subscription Token Protocol provides onchain recurring revenue for creators and businesses.

V1
V2

Contributing / Running

In order to make changes, fork/clone the repo and run the setup script.

./script/setup

Tests can be run using

npm run test

We accept contributions via pull-request to the main branch. Please ensure your branch is rebased and squashed before issuing a PR.

2.0.0-alpha.3

5 days ago

2.0.0-alpha.2

8 days ago

2.0.0-alpha.1

25 days ago

2.0.0-alpha.0

27 days ago

2.0.0-alpha

27 days ago

1.0.2

2 months ago

1.0.1

2 months ago

0.3.6

3 months ago

0.3.5

3 months ago

0.3.4

3 months ago

0.3.3

6 months ago

0.3.2

7 months ago

0.3.1

7 months ago

0.3.0

7 months ago

0.2.0

10 months ago

0.1.0

10 months ago

1.0.0

10 months ago