Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@withfabric/protocol-sdks

Package Overview
Dependencies
Maintainers
2
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@withfabric/protocol-sdks

SDKs for Fabric EVM Protocols

latest
Source
npmnpm
Version
2.0.2
Version published
Maintainers
2
Created
Source

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.

Keywords

web3

FAQs

Package last updated on 09 Jul 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts