Type Alias: CreateCampaignInput
@torque-labs/torque-utils • Docs
@torque-labs/torque-utils / CreateCampaignInput
Type Alias: CreateCampaignInput
type CreateCampaignInput: {
asymmetricRewards: {
amount: string;
participants: null | USER | PUBLISHER | BOTH;
payoutTx: null | string;
tokenAddress: string;
userPubKey: null | string;
}[];
audience: null | string;
blinkOnly: null | boolean;
campaignContent: null | string;
campaignDescription: null | string;
campaignImage: null | string;
campaignName: string;
campaignType: CampaignType;
conversionAudience: {
campaignIds: string[];
operation: ConversionAudienceOperation;
};
conversionCount: null | number;
endTime: number;
eventConfig: (
| {
requirement: ClickActionSchema;
type: CLICK;
}
| {
requirement: CustomEventConfigSchema;
type: CUSTOM_EVENT;
}
| {
requirement: DriftBetActionSchema;
type: DRIFT_BET;
}
| {
requirement: DriftDepositActionSchema;
type: DRIFT_DEPOSIT;
}
| {
requirement: FormSubmissionActionSchema;
type: FORM_SUBMISSION;
}
| {
requirement: KaminoLendActionSchema;
type: KAMINO_LEND;
}
| {
requirement: MarginfiLendActionSchema;
type: MARGINFI_LEND;
}
| {
requirement: MemoActionSchema;
type: MEMO;
}
| {
requirement: NftBidBuySchema;
type: NFT_BUY_BID;
}
| {
requirement: NftCollectionTradeSchema;
type: NFT_COLLECTION_TRADE;
}
| {
requirement: RealmsVoteActionSchema;
type: REALMS_VOTE;
}
| {
requirement: StakeSolanaActionSchema;
type: STAKE_SOL;
}
| {
requirement: SwapActionSchema;
timeConfig: {
duration: number;
requirement: TokenHoldingTimeConfigSchema;
type: TOKEN_HOLDING;
};
type: SWAP;
}
| {
requirement: TensorActionSchema;
type: TENSOR_BID;
}
| {
requirement: TensorActionSchema;
type: TENSOR_BUY;
})[];
landingPage: string;
lootBoxRewards: LootBoxRewardInputSchema;
offerBgImage: null | string;
offerTheme: OfferTheme;
publisherPayoutPerConversion: number;
publisherRewardType: RewardType;
publisherTokenAddress: string;
startTime: number;
userPayoutPerConversion: number;
userRewardType: POINTS | TOKENS | ASYMMETRIC_REWARD;
userTokenAddress: string;
};
The create campaign input type.
Type declaration
Defined in
Last updated