Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions sdk/prettierrc.js

This file was deleted.

Binary file removed sdk/rainbow-me-token-launcher-0.1.0.tgz
Binary file not shown.
6 changes: 6 additions & 0 deletions sdk/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ import {
} from './types';
import { launchRainbowSuperToken, launchRainbowSuperTokenAndBuy } from './launchToken';
import { getAirdropSuggestions, getRainbowSuperTokenByUri, getRainbowSuperTokens } from './api';
import { getTokenLauncherContractConfig, FeeConfig } from './utils/getFactoryConfig';
import { BigNumber } from '@ethersproject/bignumber';
import { getInitialTick } from './getInitialTick';
import { Wallet } from '@ethersproject/wallet';

class TokenLauncherSDK {
private static instance: TokenLauncherSDK;
Expand Down Expand Up @@ -56,6 +58,10 @@ class TokenLauncherSDK {
public async getRainbowSuperTokenByUri(uri: string): Promise<GetRainbowSuperTokenResponse> {
return getRainbowSuperTokenByUri(uri, this.config);
}

public async getTokenLauncherContractConfig(wallet: Wallet): Promise<FeeConfig> {
return getTokenLauncherContractConfig(wallet, this.config);
}
}

// Export singleton instance
Expand Down
2 changes: 1 addition & 1 deletion sdk/src/utils/getFactoryConfig.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Wallet } from '@ethersproject/wallet';
import { getRainbowSuperTokenFactory } from './getRainbowSuperTokenFactory';
import { SDKConfig } from '../types';
interface FeeConfig {
export interface FeeConfig {
creatorLPFeeBps: number;
protocolBaseBps: number;
creatorBaseBps: number;
Expand Down