SDK monorepo for Fabric EVM protocols.
- viem
- wagmi-core
wagmi version | sdk version |
---|---|
1.x.x | 0.3.6 |
2.x.y | 1.0.0+ |
If you don't use wagmi or wagmi-core, you can leverage the protocols directly; see our docs.
npm i viem @wagmi/core @withfabric/protocol-sdks
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 });
The Fabric CrowdFi protocol moves capital between creators and communities.
The Fabric Subscription Token Protocol provides onchain recurring revenue for creators and businesses.
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.