Skip to content

Commit b51f1e1

Browse files
committed
feat: expose factory config + clean up unused config
1 parent 56f61da commit b51f1e1

File tree

4 files changed

+7
-10
lines changed

4 files changed

+7
-10
lines changed

sdk/prettierrc.js

Lines changed: 0 additions & 9 deletions
This file was deleted.
-27.7 KB
Binary file not shown.

sdk/src/index.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@ import {
99
} from './types';
1010
import { launchRainbowSuperToken, launchRainbowSuperTokenAndBuy } from './launchToken';
1111
import { getAirdropSuggestions, getRainbowSuperTokenByUri, getRainbowSuperTokens } from './api';
12+
import { getTokenLauncherContractConfig, FeeConfig } from './utils/getFactoryConfig';
1213
import { BigNumber } from '@ethersproject/bignumber';
1314
import { getInitialTick } from './getInitialTick';
15+
import { Wallet } from '@ethersproject/wallet';
1416

1517
class TokenLauncherSDK {
1618
private static instance: TokenLauncherSDK;
@@ -56,6 +58,10 @@ class TokenLauncherSDK {
5658
public async getRainbowSuperTokenByUri(uri: string): Promise<GetRainbowSuperTokenResponse> {
5759
return getRainbowSuperTokenByUri(uri, this.config);
5860
}
61+
62+
public async getTokenLauncherContractConfig(wallet: Wallet): Promise<FeeConfig> {
63+
return getTokenLauncherContractConfig(wallet, this.config);
64+
}
5965
}
6066

6167
// Export singleton instance

sdk/src/utils/getFactoryConfig.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Wallet } from '@ethersproject/wallet';
22
import { getRainbowSuperTokenFactory } from './getRainbowSuperTokenFactory';
33
import { SDKConfig } from '../types';
4-
interface FeeConfig {
4+
export interface FeeConfig {
55
creatorLPFeeBps: number;
66
protocolBaseBps: number;
77
creatorBaseBps: number;

0 commit comments

Comments
 (0)