Skip to content

Commit 73c1e77

Browse files
authored
Merge pull request #460 from rabbitholegg/mmackz/fabric-export-functions
feat(fabric): export `getFees` and `simulateMint` function
2 parents 488b4c1 + 388ad5e commit 73c1e77

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

.changeset/blue-falcons-camp.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@rabbitholegg/questdk-plugin-fabric": patch
3+
---
4+
5+
export functions required for inbox integration

packages/fabric/src/index.ts

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,28 @@
1-
import { type IActionPlugin } from '@rabbitholegg/questdk'
1+
import type {
2+
ActionParams,
3+
IActionPlugin,
4+
MintActionParams,
5+
} from '@rabbitholegg/questdk-plugin-utils'
26

37
import {
8+
getFees,
9+
getProjectFees,
10+
getMintIntent,
411
getSupportedChainIds,
512
getSupportedTokenAddresses,
613
mint,
14+
simulateMint,
715
} from './Fabric.js'
816

917
export const Fabric: IActionPlugin = {
1018
pluginId: 'fabric',
1119
getSupportedTokenAddresses,
1220
getSupportedChainIds,
1321
mint,
22+
getProjectFees: async (params: ActionParams) =>
23+
getProjectFees(params as unknown as MintActionParams),
24+
getFees: async (params: ActionParams) =>
25+
getFees(params as unknown as MintActionParams),
26+
getMintIntent,
27+
simulateMint,
1428
}

0 commit comments

Comments
 (0)